Add BuildRequire to enable iconv support
[platform/upstream/gettext.git] / gettext-tools / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="src/msgfmt.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 gl_use_threads_default=
633 gt_needs=
634 ac_header_list=
635 ac_func_list=
636 gl_fnmatch_required=POSIX
637 gl_getopt_required=POSIX
638 gl_getopt_required=POSIX
639 enable_option_checking=no
640 ac_subst_vars='gtpotests_LTLIBOBJS
641 gtpotests_LIBOBJS
642 gtpo_LTLIBOBJS
643 gtpo_LIBOBJS
644 grgltests_LTLIBOBJS
645 grgltests_LIBOBJS
646 grgl_LTLIBOBJS
647 grgl_LIBOBJS
648 gltests_LTLIBOBJS
649 gltests_LIBOBJS
650 gl_LTLIBOBJS
651 gl_LIBOBJS
652 am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 subdirs
657 TESTLIBASPRINTF
658 CXXCPP
659 CROSS_COMPILING
660 PERL
661 TEXI2PDF
662 DVIPS
663 ARCHIVE_FORMAT
664 aclocaldir
665 EMACSLOADPATH
666 EMACS
667 HAVE_GLOBAL_SYMBOL_PIPE
668 GLOBAL_SYMBOL_PIPE
669 LIBEXPAT_PREFIX
670 HAVE_LIBEXPAT
671 LTLIBEXPAT
672 LIBEXPAT
673 GETTEXTLIB_EXPORTS_FLAGS
674 WOE32DLL_FALSE
675 WOE32DLL_TRUE
676 gtpotests_WITNESS
677 LIBGREP_LTLIBDEPS
678 LIBGREP_LIBDEPS
679 grgltests_WITNESS
680 HAVE_LANGINFO_YESEXPR
681 HAVE_LANGINFO_ERA
682 HAVE_LANGINFO_T_FMT_AMPM
683 HAVE_LANGINFO_CODESET
684 HAVE_LANGINFO_H
685 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
686 NEXT_LANGINFO_H
687 REPLACE_NL_LANGINFO
688 HAVE_NL_LANGINFO
689 GNULIB_NL_LANGINFO
690 LIBTESTS_LIBDEPS
691 YIELD_LIB
692 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE
693 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE
694 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE
695 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE
696 POSIX_SPAWN_PORTED_FALSE
697 POSIX_SPAWN_PORTED_TRUE
698 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
699 NEXT_INTTYPES_H
700 UINT64_MAX_EQ_ULONG_MAX
701 UINT32_MAX_LT_UINTMAX_MAX
702 PRIPTR_PREFIX
703 INT64_MAX_EQ_LONG_MAX
704 INT32_MAX_LT_INTMAX_MAX
705 REPLACE_STRTOIMAX
706 HAVE_DECL_STRTOUMAX
707 HAVE_DECL_STRTOIMAX
708 HAVE_DECL_IMAXDIV
709 HAVE_DECL_IMAXABS
710 GNULIB_STRTOUMAX
711 GNULIB_STRTOIMAX
712 GNULIB_IMAXDIV
713 GNULIB_IMAXABS
714 LOCALE_TR_UTF8
715 gltests_WITNESS
716 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
717 NEXT_WCHAR_H
718 HAVE_FEATURES_H
719 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
720 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
721 LIBUNISTRING_UNIWIDTH_H
722 LIBUNISTRING_UNITYPES_H
723 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
724 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
725 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE
726 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE
727 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
728 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
729 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE
730 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE
731 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE
732 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE
733 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE
734 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE
735 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE
736 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE
737 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE
738 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE
739 LIBUNISTRING_UNISTR_H
740 HAVE_UNISTD_H
741 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
742 NEXT_UNISTD_H
743 LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE
744 LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE
745 LIBUNISTRING_UNINAME_H
746 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE
747 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE
748 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE
749 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE
750 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE
751 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE
752 LIBUNISTRING_UNILBRK_H
753 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE
754 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE
755 LIBUNISTRING_UNICONV_H
756 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
757 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
758 TIME_H_DEFINES_STRUCT_TIMESPEC
759 NEXT_AS_FIRST_DIRECTIVE_TIME_H
760 NEXT_TIME_H
761 REPLACE_TIMEGM
762 REPLACE_NANOSLEEP
763 REPLACE_MKTIME
764 REPLACE_LOCALTIME_R
765 HAVE_TIMEGM
766 HAVE_STRPTIME
767 HAVE_NANOSLEEP
768 HAVE_DECL_LOCALTIME_R
769 GNULIB_TIME_R
770 GNULIB_TIMEGM
771 GNULIB_STRPTIME
772 GNULIB_NANOSLEEP
773 GNULIB_MKTIME
774 INCTERMINFO
775 LTLIBTERMINFO
776 LIBTERMINFO
777 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
778 NEXT_SYS_WAIT_H
779 GNULIB_WAITPID
780 WINDOWS_64_BIT_OFF_T
781 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
782 NEXT_SYS_TYPES_H
783 HAVE_SYS_SELECT_H
784 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
785 NEXT_SYS_SELECT_H
786 REPLACE_SELECT
787 REPLACE_PSELECT
788 HAVE_PSELECT
789 GNULIB_SELECT
790 GNULIB_PSELECT
791 NEXT_AS_FIRST_DIRECTIVE_STRING_H
792 NEXT_STRING_H
793 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
794 NEXT_STDLIB_H
795 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
796 NEXT_STDIO_H
797 GL_GENERATE_STDINT_H_FALSE
798 GL_GENERATE_STDINT_H_TRUE
799 STDINT_H
800 WINT_T_SUFFIX
801 WCHAR_T_SUFFIX
802 SIG_ATOMIC_T_SUFFIX
803 SIZE_T_SUFFIX
804 PTRDIFF_T_SUFFIX
805 HAVE_SIGNED_WINT_T
806 HAVE_SIGNED_WCHAR_T
807 HAVE_SIGNED_SIG_ATOMIC_T
808 BITSIZEOF_WINT_T
809 BITSIZEOF_WCHAR_T
810 BITSIZEOF_SIG_ATOMIC_T
811 BITSIZEOF_SIZE_T
812 BITSIZEOF_PTRDIFF_T
813 HAVE_SYS_BITYPES_H
814 HAVE_SYS_INTTYPES_H
815 HAVE_STDINT_H
816 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
817 NEXT_STDINT_H
818 HAVE_SYS_TYPES_H
819 HAVE_INTTYPES_H
820 HAVE_WCHAR_H
821 HAVE_UNSIGNED_LONG_LONG_INT
822 HAVE_LONG_LONG_INT
823 HAVE__BOOL
824 GL_GENERATE_STDBOOL_H_FALSE
825 GL_GENERATE_STDBOOL_H_TRUE
826 STDBOOL_H
827 GL_GENERATE_STDARG_H_FALSE
828 GL_GENERATE_STDARG_H_TRUE
829 STDARG_H
830 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
831 NEXT_STDARG_H
832 HAVE_SPAWN_H
833 NEXT_AS_FIRST_DIRECTIVE_SPAWN_H
834 NEXT_SPAWN_H
835 ASM_SYMBOL_PREFIX
836 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
837 NEXT_SIGNAL_H
838 GL_GENERATE_SCHED_H_FALSE
839 GL_GENERATE_SCHED_H_TRUE
840 SCHED_H
841 HAVE_STRUCT_SCHED_PARAM
842 HAVE_SCHED_H
843 NEXT_AS_FIRST_DIRECTIVE_SCHED_H
844 NEXT_SCHED_H
845 RELOCATABLE_STRIP
846 RELOCATABLE_BUILD_DIR
847 RELOCATABLE_SRC_DIR
848 RELOCATABLE_CONFIG_H_DIR
849 RELOCATABLE_LIBRARY_PATH
850 RELOCATABLE_VIA_WRAPPER_FALSE
851 RELOCATABLE_VIA_WRAPPER_TRUE
852 RELOCATABLE_VIA_LD_FALSE
853 RELOCATABLE_VIA_LD_TRUE
854 INSTALL_PROGRAM_ENV
855 RELOCATABLE_LDFLAGS
856 RELOCATABLE
857 REPLACE_RAISE
858 REPLACE_PTHREAD_SIGMASK
859 HAVE_SIGHANDLER_T
860 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
861 HAVE_STRUCT_SIGACTION_SA_SIGACTION
862 HAVE_SIGACTION
863 HAVE_SIGINFO_T
864 HAVE_SIGSET_T
865 HAVE_RAISE
866 HAVE_PTHREAD_SIGMASK
867 HAVE_POSIX_SIGNALBLOCKING
868 GNULIB_SIGACTION
869 GNULIB_SIGPROCMASK
870 GNULIB_SIGNAL_H_SIGPIPE
871 GNULIB_RAISE
872 GNULIB_PTHREAD_SIGMASK
873 USE_ACL
874 LIB_ACL
875 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
876 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
877 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
878 REPLACE_POSIX_SPAWN
879 HAVE_POSIX_SPAWN_FILE_ACTIONS_T
880 HAVE_POSIX_SPAWNATTR_T
881 HAVE_POSIX_SPAWN
882 GNULIB_POSIX_SPAWNATTR_DESTROY
883 GNULIB_POSIX_SPAWNATTR_SETSIGMASK
884 GNULIB_POSIX_SPAWNATTR_GETSIGMASK
885 GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT
886 GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT
887 GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY
888 GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY
889 GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM
890 GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM
891 GNULIB_POSIX_SPAWNATTR_SETPGROUP
892 GNULIB_POSIX_SPAWNATTR_GETPGROUP
893 GNULIB_POSIX_SPAWNATTR_SETFLAGS
894 GNULIB_POSIX_SPAWNATTR_GETFLAGS
895 GNULIB_POSIX_SPAWNATTR_INIT
896 GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY
897 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
898 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
899 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
900 GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT
901 GNULIB_POSIX_SPAWNP
902 GNULIB_POSIX_SPAWN
903 OPENMP_CFLAGS
904 NO_CXX
905 APPLE_UNIVERSAL_BUILD
906 LOCALE_FR
907 UNDEFINE_STRTOK_R
908 REPLACE_STRTOK_R
909 REPLACE_STRSIGNAL
910 REPLACE_STRNLEN
911 REPLACE_STRNDUP
912 REPLACE_STRNCAT
913 REPLACE_STRERROR_R
914 REPLACE_STRERROR
915 REPLACE_STRCHRNUL
916 REPLACE_STRCASESTR
917 REPLACE_STRSTR
918 REPLACE_STRDUP
919 REPLACE_STPNCPY
920 REPLACE_MEMMEM
921 REPLACE_MEMCHR
922 HAVE_STRVERSCMP
923 HAVE_DECL_STRSIGNAL
924 HAVE_DECL_STRERROR_R
925 HAVE_DECL_STRTOK_R
926 HAVE_STRCASESTR
927 HAVE_STRSEP
928 HAVE_STRPBRK
929 HAVE_DECL_STRNLEN
930 HAVE_DECL_STRNDUP
931 HAVE_DECL_STRDUP
932 HAVE_STRCHRNUL
933 HAVE_STPNCPY
934 HAVE_STPCPY
935 HAVE_RAWMEMCHR
936 HAVE_DECL_MEMRCHR
937 HAVE_MEMPCPY
938 HAVE_DECL_MEMMEM
939 HAVE_MEMCHR
940 HAVE_FFSLL
941 HAVE_FFSL
942 HAVE_MBSLEN
943 GNULIB_STRVERSCMP
944 GNULIB_STRSIGNAL
945 GNULIB_STRERROR_R
946 GNULIB_STRERROR
947 GNULIB_MBSTOK_R
948 GNULIB_MBSSEP
949 GNULIB_MBSSPN
950 GNULIB_MBSPBRK
951 GNULIB_MBSCSPN
952 GNULIB_MBSCASESTR
953 GNULIB_MBSPCASECMP
954 GNULIB_MBSNCASECMP
955 GNULIB_MBSCASECMP
956 GNULIB_MBSSTR
957 GNULIB_MBSRCHR
958 GNULIB_MBSCHR
959 GNULIB_MBSNLEN
960 GNULIB_MBSLEN
961 GNULIB_STRTOK_R
962 GNULIB_STRCASESTR
963 GNULIB_STRSTR
964 GNULIB_STRSEP
965 GNULIB_STRPBRK
966 GNULIB_STRNLEN
967 GNULIB_STRNDUP
968 GNULIB_STRNCAT
969 GNULIB_STRDUP
970 GNULIB_STRCHRNUL
971 GNULIB_STPNCPY
972 GNULIB_STPCPY
973 GNULIB_RAWMEMCHR
974 GNULIB_MEMRCHR
975 GNULIB_MEMPCPY
976 GNULIB_MEMMEM
977 GNULIB_MEMCHR
978 GNULIB_FFSLL
979 GNULIB_FFSL
980 LOCALE_FR_UTF8
981 LOCALE_ZH_CN
982 LOCALE_JA
983 REPLACE_WCSWIDTH
984 REPLACE_WCWIDTH
985 REPLACE_WCSNRTOMBS
986 REPLACE_WCSRTOMBS
987 REPLACE_WCRTOMB
988 REPLACE_MBSNRTOWCS
989 REPLACE_MBSRTOWCS
990 REPLACE_MBRLEN
991 REPLACE_MBRTOWC
992 REPLACE_MBSINIT
993 REPLACE_WCTOB
994 REPLACE_BTOWC
995 REPLACE_MBSTATE_T
996 HAVE_DECL_WCWIDTH
997 HAVE_DECL_WCTOB
998 HAVE_WCSWIDTH
999 HAVE_WCSTOK
1000 HAVE_WCSSTR
1001 HAVE_WCSPBRK
1002 HAVE_WCSSPN
1003 HAVE_WCSCSPN
1004 HAVE_WCSRCHR
1005 HAVE_WCSCHR
1006 HAVE_WCSDUP
1007 HAVE_WCSXFRM
1008 HAVE_WCSCOLL
1009 HAVE_WCSNCASECMP
1010 HAVE_WCSCASECMP
1011 HAVE_WCSNCMP
1012 HAVE_WCSCMP
1013 HAVE_WCSNCAT
1014 HAVE_WCSCAT
1015 HAVE_WCPNCPY
1016 HAVE_WCSNCPY
1017 HAVE_WCPCPY
1018 HAVE_WCSCPY
1019 HAVE_WCSNLEN
1020 HAVE_WCSLEN
1021 HAVE_WMEMSET
1022 HAVE_WMEMMOVE
1023 HAVE_WMEMCPY
1024 HAVE_WMEMCMP
1025 HAVE_WMEMCHR
1026 HAVE_WCSNRTOMBS
1027 HAVE_WCSRTOMBS
1028 HAVE_WCRTOMB
1029 HAVE_MBSNRTOWCS
1030 HAVE_MBSRTOWCS
1031 HAVE_MBRLEN
1032 HAVE_MBRTOWC
1033 HAVE_MBSINIT
1034 HAVE_BTOWC
1035 GNULIB_WCSWIDTH
1036 GNULIB_WCSTOK
1037 GNULIB_WCSSTR
1038 GNULIB_WCSPBRK
1039 GNULIB_WCSSPN
1040 GNULIB_WCSCSPN
1041 GNULIB_WCSRCHR
1042 GNULIB_WCSCHR
1043 GNULIB_WCSDUP
1044 GNULIB_WCSXFRM
1045 GNULIB_WCSCOLL
1046 GNULIB_WCSNCASECMP
1047 GNULIB_WCSCASECMP
1048 GNULIB_WCSNCMP
1049 GNULIB_WCSCMP
1050 GNULIB_WCSNCAT
1051 GNULIB_WCSCAT
1052 GNULIB_WCPNCPY
1053 GNULIB_WCSNCPY
1054 GNULIB_WCPCPY
1055 GNULIB_WCSCPY
1056 GNULIB_WCSNLEN
1057 GNULIB_WCSLEN
1058 GNULIB_WMEMSET
1059 GNULIB_WMEMMOVE
1060 GNULIB_WMEMCPY
1061 GNULIB_WMEMCMP
1062 GNULIB_WMEMCHR
1063 GNULIB_WCWIDTH
1064 GNULIB_WCSNRTOMBS
1065 GNULIB_WCSRTOMBS
1066 GNULIB_WCRTOMB
1067 GNULIB_MBSNRTOWCS
1068 GNULIB_MBSRTOWCS
1069 GNULIB_MBRLEN
1070 GNULIB_MBRTOWC
1071 GNULIB_MBSINIT
1072 GNULIB_WCTOB
1073 GNULIB_BTOWC
1074 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1075 NEXT_LOCALE_H
1076 HAVE_XLOCALE_H
1077 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1078 NEXT_STDDEF_H
1079 GL_GENERATE_STDDEF_H_FALSE
1080 GL_GENERATE_STDDEF_H_TRUE
1081 STDDEF_H
1082 HAVE_WCHAR_T
1083 REPLACE_NULL
1084 REPLACE_STRUCT_LCONV
1085 REPLACE_DUPLOCALE
1086 REPLACE_SETLOCALE
1087 REPLACE_LOCALECONV
1088 HAVE_DUPLOCALE
1089 GNULIB_DUPLOCALE
1090 GNULIB_SETLOCALE
1091 GNULIB_LOCALECONV
1092 LOCALCHARSET_TESTS_ENVIRONMENT
1093 INCLUDED_LIBXML_FALSE
1094 INCLUDED_LIBXML_TRUE
1095 LIBXML_H
1096 INCXML
1097 LTLIBXML
1098 LIBXML
1099 LIBUNISTRING_PREFIX
1100 LTLIBUNISTRING
1101 LIBUNISTRING
1102 HAVE_LIBUNISTRING
1103 INCLUDED_LIBCROCO_FALSE
1104 INCLUDED_LIBCROCO_TRUE
1105 INCCROCO
1106 LTLIBCROCO
1107 LIBCROCO
1108 INCLUDED_LIBGLIB_FALSE
1109 INCLUDED_LIBGLIB_TRUE
1110 LIBGLIB_H
1111 INCGLIB
1112 LTLIBGLIB
1113 LIBGLIB
1114 REPLACE_TOWLOWER
1115 REPLACE_ISWCNTRL
1116 HAVE_WCTYPE_H
1117 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1118 NEXT_WCTYPE_H
1119 HAVE_WINT_T
1120 HAVE_ISWCNTRL
1121 REPLACE_ISWBLANK
1122 HAVE_WCTRANS_T
1123 HAVE_WCTYPE_T
1124 HAVE_ISWBLANK
1125 GNULIB_TOWCTRANS
1126 GNULIB_WCTRANS
1127 GNULIB_ISWCTYPE
1128 GNULIB_WCTYPE
1129 GNULIB_ISWBLANK
1130 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1131 NEXT_ICONV_H
1132 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1133 NEXT_SYS_TIME_H
1134 REPLACE_STRUCT_TIMEVAL
1135 REPLACE_GETTIMEOFDAY
1136 HAVE_SYS_TIME_H
1137 HAVE_STRUCT_TIMEVAL
1138 HAVE_GETTIMEOFDAY
1139 GNULIB_GETTIMEOFDAY
1140 GNULIB_GL_UNISTD_H_GETOPT
1141 GETOPT_H
1142 HAVE_GETOPT_H
1143 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1144 NEXT_GETOPT_H
1145 WINDOWS_64_BIT_ST_SIZE
1146 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1147 NEXT_SYS_STAT_H
1148 REPLACE_UTIMENSAT
1149 REPLACE_STAT
1150 REPLACE_MKNOD
1151 REPLACE_MKFIFO
1152 REPLACE_MKDIR
1153 REPLACE_LSTAT
1154 REPLACE_FUTIMENS
1155 REPLACE_FSTATAT
1156 REPLACE_FSTAT
1157 HAVE_UTIMENSAT
1158 HAVE_MKNODAT
1159 HAVE_MKNOD
1160 HAVE_MKFIFOAT
1161 HAVE_MKFIFO
1162 HAVE_MKDIRAT
1163 HAVE_LSTAT
1164 HAVE_LCHMOD
1165 HAVE_FUTIMENS
1166 HAVE_FSTATAT
1167 HAVE_FCHMODAT
1168 GNULIB_UTIMENSAT
1169 GNULIB_STAT
1170 GNULIB_MKNODAT
1171 GNULIB_MKNOD
1172 GNULIB_MKFIFOAT
1173 GNULIB_MKFIFO
1174 GNULIB_MKDIRAT
1175 GNULIB_LSTAT
1176 GNULIB_LCHMOD
1177 GNULIB_FUTIMENS
1178 GNULIB_FSTATAT
1179 GNULIB_FSTAT
1180 GNULIB_FCHMODAT
1181 REPLACE_VSPRINTF
1182 REPLACE_VSNPRINTF
1183 REPLACE_VPRINTF
1184 REPLACE_VFPRINTF
1185 REPLACE_VDPRINTF
1186 REPLACE_VASPRINTF
1187 REPLACE_TMPFILE
1188 REPLACE_STDIO_WRITE_FUNCS
1189 REPLACE_STDIO_READ_FUNCS
1190 REPLACE_SPRINTF
1191 REPLACE_SNPRINTF
1192 REPLACE_RENAMEAT
1193 REPLACE_RENAME
1194 REPLACE_REMOVE
1195 REPLACE_PRINTF
1196 REPLACE_POPEN
1197 REPLACE_PERROR
1198 REPLACE_OBSTACK_PRINTF
1199 REPLACE_GETLINE
1200 REPLACE_GETDELIM
1201 REPLACE_FTELLO
1202 REPLACE_FTELL
1203 REPLACE_FSEEKO
1204 REPLACE_FSEEK
1205 REPLACE_FREOPEN
1206 REPLACE_FPURGE
1207 REPLACE_FPRINTF
1208 REPLACE_FOPEN
1209 REPLACE_FFLUSH
1210 REPLACE_FDOPEN
1211 REPLACE_FCLOSE
1212 REPLACE_DPRINTF
1213 HAVE_VDPRINTF
1214 HAVE_VASPRINTF
1215 HAVE_RENAMEAT
1216 HAVE_POPEN
1217 HAVE_PCLOSE
1218 HAVE_FTELLO
1219 HAVE_FSEEKO
1220 HAVE_DPRINTF
1221 HAVE_DECL_VSNPRINTF
1222 HAVE_DECL_SNPRINTF
1223 HAVE_DECL_OBSTACK_PRINTF
1224 HAVE_DECL_GETLINE
1225 HAVE_DECL_GETDELIM
1226 HAVE_DECL_FTELLO
1227 HAVE_DECL_FSEEKO
1228 HAVE_DECL_FPURGE
1229 GNULIB_VSPRINTF_POSIX
1230 GNULIB_VSNPRINTF
1231 GNULIB_VPRINTF_POSIX
1232 GNULIB_VPRINTF
1233 GNULIB_VFPRINTF_POSIX
1234 GNULIB_VFPRINTF
1235 GNULIB_VDPRINTF
1236 GNULIB_VSCANF
1237 GNULIB_VFSCANF
1238 GNULIB_VASPRINTF
1239 GNULIB_TMPFILE
1240 GNULIB_STDIO_H_SIGPIPE
1241 GNULIB_STDIO_H_NONBLOCKING
1242 GNULIB_SPRINTF_POSIX
1243 GNULIB_SNPRINTF
1244 GNULIB_SCANF
1245 GNULIB_RENAMEAT
1246 GNULIB_RENAME
1247 GNULIB_REMOVE
1248 GNULIB_PUTS
1249 GNULIB_PUTCHAR
1250 GNULIB_PUTC
1251 GNULIB_PRINTF_POSIX
1252 GNULIB_PRINTF
1253 GNULIB_POPEN
1254 GNULIB_PERROR
1255 GNULIB_PCLOSE
1256 GNULIB_OBSTACK_PRINTF_POSIX
1257 GNULIB_OBSTACK_PRINTF
1258 GNULIB_GETLINE
1259 GNULIB_GETDELIM
1260 GNULIB_GETCHAR
1261 GNULIB_GETC
1262 GNULIB_FWRITE
1263 GNULIB_FTELLO
1264 GNULIB_FTELL
1265 GNULIB_FSEEKO
1266 GNULIB_FSEEK
1267 GNULIB_FSCANF
1268 GNULIB_FREOPEN
1269 GNULIB_FREAD
1270 GNULIB_FPUTS
1271 GNULIB_FPUTC
1272 GNULIB_FPURGE
1273 GNULIB_FPRINTF_POSIX
1274 GNULIB_FPRINTF
1275 GNULIB_FOPEN
1276 GNULIB_FGETS
1277 GNULIB_FGETC
1278 GNULIB_FFLUSH
1279 GNULIB_FDOPEN
1280 GNULIB_FCLOSE
1281 GNULIB_DPRINTF
1282 GL_GENERATE_FNMATCH_H_FALSE
1283 GL_GENERATE_FNMATCH_H_TRUE
1284 FNMATCH_H
1285 REPLACE_ITOLD
1286 GL_GENERATE_FLOAT_H_FALSE
1287 GL_GENERATE_FLOAT_H_TRUE
1288 FLOAT_H
1289 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1290 NEXT_FLOAT_H
1291 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1292 NEXT_FCNTL_H
1293 REPLACE_OPENAT
1294 REPLACE_OPEN
1295 REPLACE_FCNTL
1296 HAVE_OPENAT
1297 HAVE_FCNTL
1298 GNULIB_OPENAT
1299 GNULIB_OPEN
1300 GNULIB_NONBLOCKING
1301 GNULIB_FCNTL
1302 EOVERFLOW_VALUE
1303 EOVERFLOW_HIDDEN
1304 ENOLINK_VALUE
1305 ENOLINK_HIDDEN
1306 EMULTIHOP_VALUE
1307 EMULTIHOP_HIDDEN
1308 GL_GENERATE_ERRNO_H_FALSE
1309 GL_GENERATE_ERRNO_H_TRUE
1310 ERRNO_H
1311 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1312 NEXT_ERRNO_H
1313 HAVE_DIRENT_H
1314 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1315 NEXT_DIRENT_H
1316 PRAGMA_COLUMNS
1317 PRAGMA_SYSTEM_HEADER
1318 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1319 INCLUDE_NEXT
1320 pkglibexecdir
1321 lispdir
1322 REPLACE_FDOPENDIR
1323 REPLACE_DIRFD
1324 REPLACE_CLOSEDIR
1325 REPLACE_OPENDIR
1326 HAVE_ALPHASORT
1327 HAVE_SCANDIR
1328 HAVE_FDOPENDIR
1329 HAVE_DECL_FDOPENDIR
1330 HAVE_DECL_DIRFD
1331 HAVE_CLOSEDIR
1332 HAVE_REWINDDIR
1333 HAVE_READDIR
1334 HAVE_OPENDIR
1335 GNULIB_ALPHASORT
1336 GNULIB_SCANDIR
1337 GNULIB_FDOPENDIR
1338 GNULIB_DIRFD
1339 GNULIB_CLOSEDIR
1340 GNULIB_REWINDDIR
1341 GNULIB_READDIR
1342 GNULIB_OPENDIR
1343 HAVE_WINSOCK2_H
1344 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1345 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1346 UNISTD_H_HAVE_WINSOCK2_H
1347 REPLACE_WRITE
1348 REPLACE_USLEEP
1349 REPLACE_UNLINKAT
1350 REPLACE_UNLINK
1351 REPLACE_TTYNAME_R
1352 REPLACE_SYMLINK
1353 REPLACE_SLEEP
1354 REPLACE_RMDIR
1355 REPLACE_READLINK
1356 REPLACE_READ
1357 REPLACE_PWRITE
1358 REPLACE_PREAD
1359 REPLACE_LSEEK
1360 REPLACE_LINKAT
1361 REPLACE_LINK
1362 REPLACE_LCHOWN
1363 REPLACE_ISATTY
1364 REPLACE_GETPAGESIZE
1365 REPLACE_GETGROUPS
1366 REPLACE_GETLOGIN_R
1367 REPLACE_GETDOMAINNAME
1368 REPLACE_GETCWD
1369 REPLACE_FTRUNCATE
1370 REPLACE_FCHOWNAT
1371 REPLACE_DUP2
1372 REPLACE_DUP
1373 REPLACE_CLOSE
1374 REPLACE_CHOWN
1375 HAVE_SYS_PARAM_H
1376 HAVE_OS_H
1377 HAVE_DECL_TTYNAME_R
1378 HAVE_DECL_SETHOSTNAME
1379 HAVE_DECL_GETUSERSHELL
1380 HAVE_DECL_GETPAGESIZE
1381 HAVE_DECL_GETLOGIN_R
1382 HAVE_DECL_GETDOMAINNAME
1383 HAVE_DECL_FDATASYNC
1384 HAVE_DECL_FCHDIR
1385 HAVE_DECL_ENVIRON
1386 HAVE_USLEEP
1387 HAVE_UNLINKAT
1388 HAVE_SYMLINKAT
1389 HAVE_SYMLINK
1390 HAVE_SLEEP
1391 HAVE_SETHOSTNAME
1392 HAVE_READLINKAT
1393 HAVE_READLINK
1394 HAVE_PWRITE
1395 HAVE_PREAD
1396 HAVE_PIPE2
1397 HAVE_PIPE
1398 HAVE_LINKAT
1399 HAVE_LINK
1400 HAVE_LCHOWN
1401 HAVE_GROUP_MEMBER
1402 HAVE_GETPAGESIZE
1403 HAVE_GETLOGIN
1404 HAVE_GETHOSTNAME
1405 HAVE_GETGROUPS
1406 HAVE_GETDTABLESIZE
1407 HAVE_FTRUNCATE
1408 HAVE_FSYNC
1409 HAVE_FDATASYNC
1410 HAVE_FCHOWNAT
1411 HAVE_FCHDIR
1412 HAVE_FACCESSAT
1413 HAVE_EUIDACCESS
1414 HAVE_DUP3
1415 HAVE_DUP2
1416 HAVE_CHOWN
1417 GNULIB_WRITE
1418 GNULIB_USLEEP
1419 GNULIB_UNLINKAT
1420 GNULIB_UNLINK
1421 GNULIB_UNISTD_H_SIGPIPE
1422 GNULIB_UNISTD_H_NONBLOCKING
1423 GNULIB_TTYNAME_R
1424 GNULIB_SYMLINKAT
1425 GNULIB_SYMLINK
1426 GNULIB_SLEEP
1427 GNULIB_SETHOSTNAME
1428 GNULIB_RMDIR
1429 GNULIB_READLINKAT
1430 GNULIB_READLINK
1431 GNULIB_READ
1432 GNULIB_PWRITE
1433 GNULIB_PREAD
1434 GNULIB_PIPE2
1435 GNULIB_PIPE
1436 GNULIB_LSEEK
1437 GNULIB_LINKAT
1438 GNULIB_LINK
1439 GNULIB_LCHOWN
1440 GNULIB_ISATTY
1441 GNULIB_GROUP_MEMBER
1442 GNULIB_GETUSERSHELL
1443 GNULIB_GETPAGESIZE
1444 GNULIB_GETLOGIN_R
1445 GNULIB_GETLOGIN
1446 GNULIB_GETHOSTNAME
1447 GNULIB_GETGROUPS
1448 GNULIB_GETDTABLESIZE
1449 GNULIB_GETDOMAINNAME
1450 GNULIB_GETCWD
1451 GNULIB_FTRUNCATE
1452 GNULIB_FSYNC
1453 GNULIB_FDATASYNC
1454 GNULIB_FCHOWNAT
1455 GNULIB_FCHDIR
1456 GNULIB_FACCESSAT
1457 GNULIB_EUIDACCESS
1458 GNULIB_ENVIRON
1459 GNULIB_DUP3
1460 GNULIB_DUP2
1461 GNULIB_DUP
1462 GNULIB_CLOSE
1463 GNULIB_CHOWN
1464 GNULIB_CHDIR
1465 REPLACE_WCTOMB
1466 REPLACE_UNSETENV
1467 REPLACE_STRTOD
1468 REPLACE_SETENV
1469 REPLACE_REALPATH
1470 REPLACE_REALLOC
1471 REPLACE_RANDOM_R
1472 REPLACE_PUTENV
1473 REPLACE_PTSNAME_R
1474 REPLACE_PTSNAME
1475 REPLACE_MKSTEMP
1476 REPLACE_MBTOWC
1477 REPLACE_MALLOC
1478 REPLACE_CANONICALIZE_FILE_NAME
1479 REPLACE_CALLOC
1480 HAVE_DECL_UNSETENV
1481 HAVE_UNLOCKPT
1482 HAVE_SYS_LOADAVG_H
1483 HAVE_STRUCT_RANDOM_DATA
1484 HAVE_STRTOULL
1485 HAVE_STRTOLL
1486 HAVE_STRTOD
1487 HAVE_DECL_SETENV
1488 HAVE_SETENV
1489 HAVE_SECURE_GETENV
1490 HAVE_RPMATCH
1491 HAVE_REALPATH
1492 HAVE_RANDOM_R
1493 HAVE_RANDOM_H
1494 HAVE_RANDOM
1495 HAVE_PTSNAME_R
1496 HAVE_PTSNAME
1497 HAVE_POSIX_OPENPT
1498 HAVE_MKSTEMPS
1499 HAVE_MKSTEMP
1500 HAVE_MKOSTEMPS
1501 HAVE_MKOSTEMP
1502 HAVE_MKDTEMP
1503 HAVE_GRANTPT
1504 HAVE_GETSUBOPT
1505 HAVE_DECL_GETLOADAVG
1506 HAVE_CANONICALIZE_FILE_NAME
1507 HAVE_ATOLL
1508 HAVE__EXIT
1509 GNULIB_WCTOMB
1510 GNULIB_UNSETENV
1511 GNULIB_UNLOCKPT
1512 GNULIB_SYSTEM_POSIX
1513 GNULIB_STRTOULL
1514 GNULIB_STRTOLL
1515 GNULIB_STRTOD
1516 GNULIB_SETENV
1517 GNULIB_SECURE_GETENV
1518 GNULIB_RPMATCH
1519 GNULIB_REALPATH
1520 GNULIB_REALLOC_POSIX
1521 GNULIB_RANDOM_R
1522 GNULIB_RANDOM
1523 GNULIB_PUTENV
1524 GNULIB_PTSNAME_R
1525 GNULIB_PTSNAME
1526 GNULIB_POSIX_OPENPT
1527 GNULIB_MKSTEMPS
1528 GNULIB_MKSTEMP
1529 GNULIB_MKOSTEMPS
1530 GNULIB_MKOSTEMP
1531 GNULIB_MKDTEMP
1532 GNULIB_MBTOWC
1533 GNULIB_MALLOC_POSIX
1534 GNULIB_GRANTPT
1535 GNULIB_GETSUBOPT
1536 GNULIB_GETLOADAVG
1537 GNULIB_CANONICALIZE_FILE_NAME
1538 GNULIB_CALLOC_POSIX
1539 GNULIB_ATOLL
1540 GNULIB__EXIT
1541 GL_GENERATE_BYTESWAP_H_FALSE
1542 GL_GENERATE_BYTESWAP_H_TRUE
1543 BYTESWAP_H
1544 am__fastdepCXX_FALSE
1545 am__fastdepCXX_TRUE
1546 CXXDEPMODE
1547 ANSICXX_FALSE
1548 ANSICXX_TRUE
1549 CXXFLAGS
1550 ac_ct_CXX
1551 CXX
1552 CXX_CHOICE
1553 GL_GENERATE_ALLOCA_H_FALSE
1554 GL_GENERATE_ALLOCA_H_TRUE
1555 ALLOCA_H
1556 GL_COND_LIBTOOL_FALSE
1557 GL_COND_LIBTOOL_TRUE
1558 MSGMERGE_LIBM
1559 BISON_LOCALEDIR
1560 POSUB
1561 LTLIBINTL
1562 LIBINTL
1563 INTLLIBS
1564 INTL_LIBTOOL_SUFFIX_PREFIX
1565 INTLOBJS
1566 GENCAT
1567 INSTOBJEXT
1568 DATADIRNAME
1569 CATOBJEXT
1570 USE_INCLUDED_LIBINTL
1571 BUILD_INCLUDED_LIBINTL
1572 LTLIBC
1573 WINDRES
1574 WOE32
1575 WOE32DLL
1576 HAVE_WPRINTF
1577 HAVE_NEWLOCALE
1578 HAVE_SNPRINTF
1579 HAVE_ASPRINTF
1580 HAVE_POSIX_PRINTF
1581 INTL_DEFAULT_VERBOSITY
1582 INTL_MACOSX_LIBS
1583 GLIBC21
1584 INTLBISON
1585 GL_GENERATE_ICONV_H_FALSE
1586 GL_GENERATE_ICONV_H_TRUE
1587 ICONV_H
1588 REPLACE_ICONV_UTF
1589 REPLACE_ICONV_OPEN
1590 REPLACE_ICONV
1591 ICONV_CONST
1592 GNULIB_ICONV
1593 LTLIBICONV
1594 LIBICONV
1595 LTLIBMULTITHREAD
1596 LIBMULTITHREAD
1597 LTLIBTHREAD
1598 LIBTHREAD
1599 LIBPTH_PREFIX
1600 LTLIBPTH
1601 LIBPTH
1602 PRI_MACROS_BROKEN
1603 ALLOCA
1604 HAVE_VISIBILITY
1605 CFLAG_VISIBILITY
1606 GLIBC2
1607 XGETTEXT_EXTRA_OPTIONS
1608 MSGMERGE
1609 XGETTEXT_015
1610 XGETTEXT
1611 GMSGFMT_015
1612 MSGFMT_015
1613 GMSGFMT
1614 MSGFMT
1615 GETTEXT_MACRO_VERSION
1616 USE_NLS
1617 WOE32_FALSE
1618 WOE32_TRUE
1619 RC
1620 OTOOL64
1621 OTOOL
1622 LIPO
1623 NMEDIT
1624 DSYMUTIL
1625 MANIFEST_TOOL
1626 ac_ct_AR
1627 LN_S
1628 NM
1629 ac_ct_DUMPBIN
1630 DUMPBIN
1631 LD
1632 FGREP
1633 SED
1634 LIBTOOL
1635 OBJDUMP
1636 DLLTOOL
1637 AS
1638 RANLIB
1639 ARFLAGS
1640 AR
1641 host_os
1642 host_vendor
1643 host_cpu
1644 host
1645 build_os
1646 build_vendor
1647 build_cpu
1648 build
1649 TESTCSHARP
1650 HAVE_CLIX
1651 HAVE_MONO
1652 HAVE_ILRUN
1653 CLIX_PATH
1654 CLIX_PATH_VAR
1655 MONO_PATH_SEPARATOR
1656 MONO_PATH
1657 HAVE_CLIX_IN_PATH
1658 HAVE_MONO_IN_PATH
1659 HAVE_ILRUN_IN_PATH
1660 BUILDCSHARP
1661 CSHARPCOMPFLAGS
1662 HAVE_CSC
1663 HAVE_MCS
1664 HAVE_CSCC
1665 HAVE_CSC_IN_PATH
1666 HAVE_MCS_IN_PATH
1667 HAVE_CSCC_IN_PATH
1668 CSHARP_CHOICE
1669 TESTJAVA
1670 BUILDJAVA
1671 JAR
1672 HAVE_JIKES
1673 HAVE_JAVAC
1674 HAVE_GCJ_C
1675 HAVE_JAVAC_ENVVAR
1676 CONF_JAVAC
1677 HAVE_JIKES_IN_PATH
1678 HAVE_JAVAC_IN_PATH
1679 HAVE_GCJ_IN_PATH
1680 HAVE_JVIEW
1681 HAVE_JRE
1682 HAVE_JAVA
1683 HAVE_GIJ
1684 HAVE_JAVA_ENVVAR
1685 CLASSPATH_SEPARATOR
1686 CLASSPATH
1687 CONF_JAVA
1688 HAVE_JVIEW_IN_PATH
1689 HAVE_JRE_IN_PATH
1690 HAVE_JAVA_IN_PATH
1691 HAVE_GIJ_IN_PATH
1692 EGREP
1693 GREP
1694 CPP
1695 BUILDJAVAEXE
1696 HAVE_GCJ
1697 GCJFLAGS
1698 GCJ
1699 JAVA_CHOICE
1700 YFLAGS
1701 YACC
1702 am__fastdepCC_FALSE
1703 am__fastdepCC_TRUE
1704 CCDEPMODE
1705 am__nodep
1706 AMDEPBACKSLASH
1707 AMDEP_FALSE
1708 AMDEP_TRUE
1709 am__quote
1710 am__include
1711 DEPDIR
1712 OBJEXT
1713 EXEEXT
1714 ac_ct_CC
1715 CPPFLAGS
1716 LDFLAGS
1717 CFLAGS
1718 CC
1719 AM_BACKSLASH
1720 AM_DEFAULT_VERBOSITY
1721 AM_DEFAULT_V
1722 AM_V
1723 am__untar
1724 am__tar
1725 AMTAR
1726 am__leading_dot
1727 SET_MAKE
1728 AWK
1729 mkdir_p
1730 MKDIR_P
1731 INSTALL_STRIP_PROGRAM
1732 STRIP
1733 install_sh
1734 MAKEINFO
1735 AUTOHEADER
1736 AUTOMAKE
1737 AUTOCONF
1738 ACLOCAL
1739 VERSION
1740 PACKAGE
1741 CYGPATH_W
1742 am__isrc
1743 INSTALL_DATA
1744 INSTALL_SCRIPT
1745 INSTALL_PROGRAM
1746 target_alias
1747 host_alias
1748 build_alias
1749 LIBS
1750 ECHO_T
1751 ECHO_N
1752 ECHO_C
1753 DEFS
1754 mandir
1755 localedir
1756 libdir
1757 psdir
1758 pdfdir
1759 dvidir
1760 htmldir
1761 infodir
1762 docdir
1763 oldincludedir
1764 includedir
1765 localstatedir
1766 sharedstatedir
1767 sysconfdir
1768 datadir
1769 datarootdir
1770 libexecdir
1771 sbindir
1772 bindir
1773 program_transform_name
1774 prefix
1775 exec_prefix
1776 PACKAGE_URL
1777 PACKAGE_BUGREPORT
1778 PACKAGE_STRING
1779 PACKAGE_VERSION
1780 PACKAGE_TARNAME
1781 PACKAGE_NAME
1782 PATH_SEPARATOR
1783 SHELL'
1784 ac_subst_files='relocatable_sh'
1785 ac_user_opts='
1786 enable_option_checking
1787 enable_silent_rules
1788 enable_dependency_tracking
1789 enable_java
1790 enable_native_java
1791 enable_csharp
1792 enable_largefile
1793 enable_threads
1794 enable_shared
1795 enable_static
1796 with_pic
1797 enable_fast_install
1798 with_gnu_ld
1799 with_sysroot
1800 enable_libtool_lock
1801 enable_nls
1802 enable_rpath
1803 with_libpth_prefix
1804 with_libiconv_prefix
1805 with_included_gettext
1806 with_libintl_prefix
1807 enable_c__
1808 with_included_glib
1809 with_libglib_2_0_prefix
1810 with_included_libcroco
1811 with_libcroco_0_6_prefix
1812 with_included_libunistring
1813 with_libunistring_prefix
1814 with_included_libxml
1815 with_libxml2_prefix
1816 enable_openmp
1817 enable_acl
1818 enable_relocatable
1819 enable_curses
1820 with_libncurses_prefix
1821 with_libtermcap_prefix
1822 with_libxcurses_prefix
1823 with_libcurses_prefix
1824 with_included_regex
1825 with_libexpat_prefix
1826 with_emacs
1827 with_lispdir
1828 with_git
1829 with_cvs
1830 with_bzip2
1831 with_xz
1832 '
1833       ac_precious_vars='build_alias
1834 host_alias
1835 target_alias
1836 CC
1837 CFLAGS
1838 LDFLAGS
1839 LIBS
1840 CPPFLAGS
1841 YACC
1842 YFLAGS
1843 GCJ
1844 GCJFLAGS
1845 CPP
1846 CXX
1847 CXXFLAGS
1848 EMACS
1849 EMACSLOADPATH
1850 CCC
1851 CXXCPP'
1852 ac_subdirs_all='examples'
1853
1854 # Initialize some variables set by options.
1855 ac_init_help=
1856 ac_init_version=false
1857 ac_unrecognized_opts=
1858 ac_unrecognized_sep=
1859 # The variables have the same names as the options, with
1860 # dashes changed to underlines.
1861 cache_file=/dev/null
1862 exec_prefix=NONE
1863 no_create=
1864 no_recursion=
1865 prefix=NONE
1866 program_prefix=NONE
1867 program_suffix=NONE
1868 program_transform_name=s,x,x,
1869 silent=
1870 site=
1871 srcdir=
1872 verbose=
1873 x_includes=NONE
1874 x_libraries=NONE
1875
1876 # Installation directory options.
1877 # These are left unexpanded so users can "make install exec_prefix=/foo"
1878 # and all the variables that are supposed to be based on exec_prefix
1879 # by default will actually change.
1880 # Use braces instead of parens because sh, perl, etc. also accept them.
1881 # (The list follows the same order as the GNU Coding Standards.)
1882 bindir='${exec_prefix}/bin'
1883 sbindir='${exec_prefix}/sbin'
1884 libexecdir='${exec_prefix}/libexec'
1885 datarootdir='${prefix}/share'
1886 datadir='${datarootdir}'
1887 sysconfdir='${prefix}/etc'
1888 sharedstatedir='${prefix}/com'
1889 localstatedir='${prefix}/var'
1890 includedir='${prefix}/include'
1891 oldincludedir='/usr/include'
1892 docdir='${datarootdir}/doc/${PACKAGE}'
1893 infodir='${datarootdir}/info'
1894 htmldir='${docdir}'
1895 dvidir='${docdir}'
1896 pdfdir='${docdir}'
1897 psdir='${docdir}'
1898 libdir='${exec_prefix}/lib'
1899 localedir='${datarootdir}/locale'
1900 mandir='${datarootdir}/man'
1901
1902 ac_prev=
1903 ac_dashdash=
1904 for ac_option
1905 do
1906   # If the previous option needs an argument, assign it.
1907   if test -n "$ac_prev"; then
1908     eval $ac_prev=\$ac_option
1909     ac_prev=
1910     continue
1911   fi
1912
1913   case $ac_option in
1914   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1915   *=)   ac_optarg= ;;
1916   *)    ac_optarg=yes ;;
1917   esac
1918
1919   # Accept the important Cygnus configure options, so we can diagnose typos.
1920
1921   case $ac_dashdash$ac_option in
1922   --)
1923     ac_dashdash=yes ;;
1924
1925   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1926     ac_prev=bindir ;;
1927   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1928     bindir=$ac_optarg ;;
1929
1930   -build | --build | --buil | --bui | --bu)
1931     ac_prev=build_alias ;;
1932   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1933     build_alias=$ac_optarg ;;
1934
1935   -cache-file | --cache-file | --cache-fil | --cache-fi \
1936   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1937     ac_prev=cache_file ;;
1938   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1939   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1940     cache_file=$ac_optarg ;;
1941
1942   --config-cache | -C)
1943     cache_file=config.cache ;;
1944
1945   -datadir | --datadir | --datadi | --datad)
1946     ac_prev=datadir ;;
1947   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1948     datadir=$ac_optarg ;;
1949
1950   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1951   | --dataroo | --dataro | --datar)
1952     ac_prev=datarootdir ;;
1953   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1954   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1955     datarootdir=$ac_optarg ;;
1956
1957   -disable-* | --disable-*)
1958     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1959     # Reject names that are not valid shell variable names.
1960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1961       as_fn_error $? "invalid feature name: $ac_useropt"
1962     ac_useropt_orig=$ac_useropt
1963     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1964     case $ac_user_opts in
1965       *"
1966 "enable_$ac_useropt"
1967 "*) ;;
1968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1969          ac_unrecognized_sep=', ';;
1970     esac
1971     eval enable_$ac_useropt=no ;;
1972
1973   -docdir | --docdir | --docdi | --doc | --do)
1974     ac_prev=docdir ;;
1975   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1976     docdir=$ac_optarg ;;
1977
1978   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1979     ac_prev=dvidir ;;
1980   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1981     dvidir=$ac_optarg ;;
1982
1983   -enable-* | --enable-*)
1984     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1985     # Reject names that are not valid shell variable names.
1986     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1987       as_fn_error $? "invalid feature name: $ac_useropt"
1988     ac_useropt_orig=$ac_useropt
1989     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1990     case $ac_user_opts in
1991       *"
1992 "enable_$ac_useropt"
1993 "*) ;;
1994       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1995          ac_unrecognized_sep=', ';;
1996     esac
1997     eval enable_$ac_useropt=\$ac_optarg ;;
1998
1999   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2000   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2001   | --exec | --exe | --ex)
2002     ac_prev=exec_prefix ;;
2003   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2004   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2005   | --exec=* | --exe=* | --ex=*)
2006     exec_prefix=$ac_optarg ;;
2007
2008   -gas | --gas | --ga | --g)
2009     # Obsolete; use --with-gas.
2010     with_gas=yes ;;
2011
2012   -help | --help | --hel | --he | -h)
2013     ac_init_help=long ;;
2014   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2015     ac_init_help=recursive ;;
2016   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2017     ac_init_help=short ;;
2018
2019   -host | --host | --hos | --ho)
2020     ac_prev=host_alias ;;
2021   -host=* | --host=* | --hos=* | --ho=*)
2022     host_alias=$ac_optarg ;;
2023
2024   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2025     ac_prev=htmldir ;;
2026   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2027   | --ht=*)
2028     htmldir=$ac_optarg ;;
2029
2030   -includedir | --includedir | --includedi | --included | --include \
2031   | --includ | --inclu | --incl | --inc)
2032     ac_prev=includedir ;;
2033   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2034   | --includ=* | --inclu=* | --incl=* | --inc=*)
2035     includedir=$ac_optarg ;;
2036
2037   -infodir | --infodir | --infodi | --infod | --info | --inf)
2038     ac_prev=infodir ;;
2039   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2040     infodir=$ac_optarg ;;
2041
2042   -libdir | --libdir | --libdi | --libd)
2043     ac_prev=libdir ;;
2044   -libdir=* | --libdir=* | --libdi=* | --libd=*)
2045     libdir=$ac_optarg ;;
2046
2047   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2048   | --libexe | --libex | --libe)
2049     ac_prev=libexecdir ;;
2050   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2051   | --libexe=* | --libex=* | --libe=*)
2052     libexecdir=$ac_optarg ;;
2053
2054   -localedir | --localedir | --localedi | --localed | --locale)
2055     ac_prev=localedir ;;
2056   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2057     localedir=$ac_optarg ;;
2058
2059   -localstatedir | --localstatedir | --localstatedi | --localstated \
2060   | --localstate | --localstat | --localsta | --localst | --locals)
2061     ac_prev=localstatedir ;;
2062   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2063   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2064     localstatedir=$ac_optarg ;;
2065
2066   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2067     ac_prev=mandir ;;
2068   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2069     mandir=$ac_optarg ;;
2070
2071   -nfp | --nfp | --nf)
2072     # Obsolete; use --without-fp.
2073     with_fp=no ;;
2074
2075   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2076   | --no-cr | --no-c | -n)
2077     no_create=yes ;;
2078
2079   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2080   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2081     no_recursion=yes ;;
2082
2083   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2084   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2085   | --oldin | --oldi | --old | --ol | --o)
2086     ac_prev=oldincludedir ;;
2087   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2088   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2089   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2090     oldincludedir=$ac_optarg ;;
2091
2092   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2093     ac_prev=prefix ;;
2094   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2095     prefix=$ac_optarg ;;
2096
2097   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2098   | --program-pre | --program-pr | --program-p)
2099     ac_prev=program_prefix ;;
2100   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2101   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2102     program_prefix=$ac_optarg ;;
2103
2104   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2105   | --program-suf | --program-su | --program-s)
2106     ac_prev=program_suffix ;;
2107   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2108   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2109     program_suffix=$ac_optarg ;;
2110
2111   -program-transform-name | --program-transform-name \
2112   | --program-transform-nam | --program-transform-na \
2113   | --program-transform-n | --program-transform- \
2114   | --program-transform | --program-transfor \
2115   | --program-transfo | --program-transf \
2116   | --program-trans | --program-tran \
2117   | --progr-tra | --program-tr | --program-t)
2118     ac_prev=program_transform_name ;;
2119   -program-transform-name=* | --program-transform-name=* \
2120   | --program-transform-nam=* | --program-transform-na=* \
2121   | --program-transform-n=* | --program-transform-=* \
2122   | --program-transform=* | --program-transfor=* \
2123   | --program-transfo=* | --program-transf=* \
2124   | --program-trans=* | --program-tran=* \
2125   | --progr-tra=* | --program-tr=* | --program-t=*)
2126     program_transform_name=$ac_optarg ;;
2127
2128   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2129     ac_prev=pdfdir ;;
2130   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2131     pdfdir=$ac_optarg ;;
2132
2133   -psdir | --psdir | --psdi | --psd | --ps)
2134     ac_prev=psdir ;;
2135   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2136     psdir=$ac_optarg ;;
2137
2138   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2139   | -silent | --silent | --silen | --sile | --sil)
2140     silent=yes ;;
2141
2142   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2143     ac_prev=sbindir ;;
2144   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2145   | --sbi=* | --sb=*)
2146     sbindir=$ac_optarg ;;
2147
2148   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2149   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2150   | --sharedst | --shareds | --shared | --share | --shar \
2151   | --sha | --sh)
2152     ac_prev=sharedstatedir ;;
2153   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2154   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2155   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2156   | --sha=* | --sh=*)
2157     sharedstatedir=$ac_optarg ;;
2158
2159   -site | --site | --sit)
2160     ac_prev=site ;;
2161   -site=* | --site=* | --sit=*)
2162     site=$ac_optarg ;;
2163
2164   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2165     ac_prev=srcdir ;;
2166   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2167     srcdir=$ac_optarg ;;
2168
2169   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2170   | --syscon | --sysco | --sysc | --sys | --sy)
2171     ac_prev=sysconfdir ;;
2172   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2173   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2174     sysconfdir=$ac_optarg ;;
2175
2176   -target | --target | --targe | --targ | --tar | --ta | --t)
2177     ac_prev=target_alias ;;
2178   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2179     target_alias=$ac_optarg ;;
2180
2181   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2182     verbose=yes ;;
2183
2184   -version | --version | --versio | --versi | --vers | -V)
2185     ac_init_version=: ;;
2186
2187   -with-* | --with-*)
2188     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2189     # Reject names that are not valid shell variable names.
2190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2191       as_fn_error $? "invalid package name: $ac_useropt"
2192     ac_useropt_orig=$ac_useropt
2193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2194     case $ac_user_opts in
2195       *"
2196 "with_$ac_useropt"
2197 "*) ;;
2198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2199          ac_unrecognized_sep=', ';;
2200     esac
2201     eval with_$ac_useropt=\$ac_optarg ;;
2202
2203   -without-* | --without-*)
2204     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2205     # Reject names that are not valid shell variable names.
2206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2207       as_fn_error $? "invalid package name: $ac_useropt"
2208     ac_useropt_orig=$ac_useropt
2209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2210     case $ac_user_opts in
2211       *"
2212 "with_$ac_useropt"
2213 "*) ;;
2214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2215          ac_unrecognized_sep=', ';;
2216     esac
2217     eval with_$ac_useropt=no ;;
2218
2219   --x)
2220     # Obsolete; use --with-x.
2221     with_x=yes ;;
2222
2223   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2224   | --x-incl | --x-inc | --x-in | --x-i)
2225     ac_prev=x_includes ;;
2226   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2227   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2228     x_includes=$ac_optarg ;;
2229
2230   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2231   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2232     ac_prev=x_libraries ;;
2233   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2234   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2235     x_libraries=$ac_optarg ;;
2236
2237   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2238 Try \`$0 --help' for more information"
2239     ;;
2240
2241   *=*)
2242     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2243     # Reject names that are not valid shell variable names.
2244     case $ac_envvar in #(
2245       '' | [0-9]* | *[!_$as_cr_alnum]* )
2246       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2247     esac
2248     eval $ac_envvar=\$ac_optarg
2249     export $ac_envvar ;;
2250
2251   *)
2252     # FIXME: should be removed in autoconf 3.0.
2253     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2254     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2255       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2256     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2257     ;;
2258
2259   esac
2260 done
2261
2262 if test -n "$ac_prev"; then
2263   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2264   as_fn_error $? "missing argument to $ac_option"
2265 fi
2266
2267 if test -n "$ac_unrecognized_opts"; then
2268   case $enable_option_checking in
2269     no) ;;
2270     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2271     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2272   esac
2273 fi
2274
2275 # Check all directory arguments for consistency.
2276 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2277                 datadir sysconfdir sharedstatedir localstatedir includedir \
2278                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2279                 libdir localedir mandir
2280 do
2281   eval ac_val=\$$ac_var
2282   # Remove trailing slashes.
2283   case $ac_val in
2284     */ )
2285       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2286       eval $ac_var=\$ac_val;;
2287   esac
2288   # Be sure to have absolute directory names.
2289   case $ac_val in
2290     [\\/$]* | ?:[\\/]* )  continue;;
2291     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2292   esac
2293   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2294 done
2295
2296 # There might be people who depend on the old broken behavior: `$host'
2297 # used to hold the argument of --host etc.
2298 # FIXME: To remove some day.
2299 build=$build_alias
2300 host=$host_alias
2301 target=$target_alias
2302
2303 # FIXME: To remove some day.
2304 if test "x$host_alias" != x; then
2305   if test "x$build_alias" = x; then
2306     cross_compiling=maybe
2307   elif test "x$build_alias" != "x$host_alias"; then
2308     cross_compiling=yes
2309   fi
2310 fi
2311
2312 ac_tool_prefix=
2313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2314
2315 test "$silent" = yes && exec 6>/dev/null
2316
2317
2318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2319 ac_ls_di=`ls -di .` &&
2320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2321   as_fn_error $? "working directory cannot be determined"
2322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2323   as_fn_error $? "pwd does not report name of working directory"
2324
2325
2326 # Find the source files, if location was not specified.
2327 if test -z "$srcdir"; then
2328   ac_srcdir_defaulted=yes
2329   # Try the directory containing this script, then the parent directory.
2330   ac_confdir=`$as_dirname -- "$as_myself" ||
2331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2332          X"$as_myself" : 'X\(//\)[^/]' \| \
2333          X"$as_myself" : 'X\(//\)$' \| \
2334          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2335 $as_echo X"$as_myself" |
2336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2337             s//\1/
2338             q
2339           }
2340           /^X\(\/\/\)[^/].*/{
2341             s//\1/
2342             q
2343           }
2344           /^X\(\/\/\)$/{
2345             s//\1/
2346             q
2347           }
2348           /^X\(\/\).*/{
2349             s//\1/
2350             q
2351           }
2352           s/.*/./; q'`
2353   srcdir=$ac_confdir
2354   if test ! -r "$srcdir/$ac_unique_file"; then
2355     srcdir=..
2356   fi
2357 else
2358   ac_srcdir_defaulted=no
2359 fi
2360 if test ! -r "$srcdir/$ac_unique_file"; then
2361   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2362   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2363 fi
2364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2365 ac_abs_confdir=`(
2366         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2367         pwd)`
2368 # When building in place, set srcdir=.
2369 if test "$ac_abs_confdir" = "$ac_pwd"; then
2370   srcdir=.
2371 fi
2372 # Remove unnecessary trailing slashes from srcdir.
2373 # Double slashes in file names in object file debugging info
2374 # mess up M-x gdb in Emacs.
2375 case $srcdir in
2376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2377 esac
2378 for ac_var in $ac_precious_vars; do
2379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2380   eval ac_env_${ac_var}_value=\$${ac_var}
2381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2383 done
2384
2385 #
2386 # Report the --help message.
2387 #
2388 if test "$ac_init_help" = "long"; then
2389   # Omit some internal or obsolete options to make the list less imposing.
2390   # This message is too long to be a string in the A/UX 3.1 sh.
2391   cat <<_ACEOF
2392 \`configure' configures this package to adapt to many kinds of systems.
2393
2394 Usage: $0 [OPTION]... [VAR=VALUE]...
2395
2396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2397 VAR=VALUE.  See below for descriptions of some of the useful variables.
2398
2399 Defaults for the options are specified in brackets.
2400
2401 Configuration:
2402   -h, --help              display this help and exit
2403       --help=short        display options specific to this package
2404       --help=recursive    display the short help of all the included packages
2405   -V, --version           display version information and exit
2406   -q, --quiet, --silent   do not print \`checking ...' messages
2407       --cache-file=FILE   cache test results in FILE [disabled]
2408   -C, --config-cache      alias for \`--cache-file=config.cache'
2409   -n, --no-create         do not create output files
2410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2411
2412 Installation directories:
2413   --prefix=PREFIX         install architecture-independent files in PREFIX
2414                           [$ac_default_prefix]
2415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2416                           [PREFIX]
2417
2418 By default, \`make install' will install all the files in
2419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2421 for instance \`--prefix=\$HOME'.
2422
2423 For better control, use the options below.
2424
2425 Fine tuning of the installation directories:
2426   --bindir=DIR            user executables [EPREFIX/bin]
2427   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2428   --libexecdir=DIR        program executables [EPREFIX/libexec]
2429   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2430   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2431   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2432   --libdir=DIR            object code libraries [EPREFIX/lib]
2433   --includedir=DIR        C header files [PREFIX/include]
2434   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2435   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2436   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2437   --infodir=DIR           info documentation [DATAROOTDIR/info]
2438   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2439   --mandir=DIR            man documentation [DATAROOTDIR/man]
2440   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2441   --htmldir=DIR           html documentation [DOCDIR]
2442   --dvidir=DIR            dvi documentation [DOCDIR]
2443   --pdfdir=DIR            pdf documentation [DOCDIR]
2444   --psdir=DIR             ps documentation [DOCDIR]
2445 _ACEOF
2446
2447   cat <<\_ACEOF
2448
2449 Program names:
2450   --program-prefix=PREFIX            prepend PREFIX to installed program names
2451   --program-suffix=SUFFIX            append SUFFIX to installed program names
2452   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2453
2454 System types:
2455   --build=BUILD     configure for building on BUILD [guessed]
2456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2457 _ACEOF
2458 fi
2459
2460 if test -n "$ac_init_help"; then
2461
2462   cat <<\_ACEOF
2463
2464 Optional Features:
2465   --disable-option-checking  ignore unrecognized --enable/--with options
2466   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2467   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2468   --enable-silent-rules   less verbose build output (undo: "make V=1")
2469   --disable-silent-rules  verbose build output (undo: "make V=0")
2470   --enable-dependency-tracking
2471                           do not reject slow dependency extractors
2472   --disable-dependency-tracking
2473                           speeds up one-time build
2474   --disable-java          do not build Java sources
2475   --disable-native-java   do not compile Java to native executables
2476   --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
2477   --disable-largefile     omit support for large files
2478   --enable-threads={posix|solaris|pth|windows}
2479                           specify multithreading API
2480   --disable-threads       build without multithread safety
2481   --enable-shared[=PKGS]  build shared libraries [default=yes]
2482   --enable-static[=PKGS]  build static libraries [default=yes]
2483   --enable-fast-install[=PKGS]
2484                           optimize for fast installation [default=yes]
2485   --disable-libtool-lock  avoid locking (might break parallel builds)
2486   --disable-nls           do not use Native Language Support
2487   --disable-rpath         do not hardcode runtime library paths
2488   --disable-c++           do not build C++ sources
2489   --disable-openmp        do not use OpenMP
2490   --disable-acl           do not support ACLs
2491   --enable-relocatable    install a package that can be moved in the file
2492                           system
2493   --disable-curses        do not use libncurses, libtermcap even if they exist
2494
2495 Optional Packages:
2496   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2497   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2498   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2499                           both]
2500   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2501   --with-sysroot=DIR Search for dependent libraries within DIR
2502                         (or the compiler's sysroot if not specified).
2503   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2504   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2505   --without-libpth-prefix     don't search for libpth in includedir and libdir
2506   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2507   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2508   --with-included-gettext use the GNU gettext library included here
2509   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2510   --without-libintl-prefix     don't search for libintl in includedir and libdir
2511   --with-included-glib    use the glib2 included here
2512   --with-libglib-2.0-prefix[=DIR]  search for libglib-2.0 in DIR/include and DIR/lib
2513   --without-libglib-2.0-prefix     don't search for libglib-2.0 in includedir and libdir
2514   --with-included-libcroco  use the libcroco included here
2515   --with-libcroco-0.6-prefix[=DIR]  search for libcroco-0.6 in DIR/include and DIR/lib
2516   --without-libcroco-0.6-prefix     don't search for libcroco-0.6 in includedir and libdir
2517   --with-included-libunistring  use the libunistring parts included here
2518   --with-libunistring-prefix[=DIR]  search for libunistring in DIR/include and DIR/lib
2519   --without-libunistring-prefix     don't search for libunistring in includedir and libdir
2520   --with-included-libxml  use the libxml2 included here
2521   --with-libxml2-prefix[=DIR]  search for libxml2 in DIR/include and DIR/lib
2522   --without-libxml2-prefix     don't search for libxml2 in includedir and libdir
2523   --with-libncurses-prefix[=DIR]  search for libncurses in DIR/include and DIR/lib
2524   --without-libncurses-prefix     don't search for libncurses in includedir and libdir
2525   --with-libtermcap-prefix[=DIR]  search for libtermcap in DIR/include and DIR/lib
2526   --without-libtermcap-prefix     don't search for libtermcap in includedir and libdir
2527   --with-libxcurses-prefix[=DIR]  search for libxcurses in DIR/include and DIR/lib
2528   --without-libxcurses-prefix     don't search for libxcurses in includedir and libdir
2529   --with-libcurses-prefix[=DIR]  search for libcurses in DIR/include and DIR/lib
2530   --without-libcurses-prefix     don't search for libcurses in includedir and libdir
2531   --without-included-regex
2532                           don't compile regex; this is the default on systems
2533                           with recent-enough versions of the GNU C Library
2534                           (use with caution on other systems).
2535   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
2536   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
2537   --without-emacs         do not use Emacs, don't install po-mode
2538   --with-lispdir          override the default lisp directory
2539   --without-git           don't use git to compress the infrastructure archive
2540   --with-cvs              use cvs to compress the infrastructure archive
2541                           (deprecated)
2542   --without-bzip2         don't use bzip2 to compress the infrastructure archive
2543   --without-xz            don't use xz to compress the infrastructure archive
2544
2545 Some influential environment variables:
2546   CC          C compiler command
2547   CFLAGS      C compiler flags
2548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2549               nonstandard directory <lib dir>
2550   LIBS        libraries to pass to the linker, e.g. -l<library>
2551   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2552               you have headers in a nonstandard directory <include dir>
2553   YACC        The `Yet Another Compiler Compiler' implementation to use.
2554               Defaults to the first program found out of: `bison -y', `byacc',
2555               `yacc'.
2556   YFLAGS      The list of arguments that will be passed by default to $YACC.
2557               This script will default YFLAGS to the empty string to avoid a
2558               default value of `-d' given by some make applications.
2559   GCJ         Java native code compiler command
2560   GCJFLAGS    Java native code compiler flags
2561   CPP         C preprocessor
2562   CXX         C++ compiler command
2563   CXXFLAGS    C++ compiler flags
2564   EMACS       the Emacs editor command
2565   EMACSLOADPATH
2566               the Emacs library search path
2567   CXXCPP      C++ preprocessor
2568
2569 Use these variables to override the choices made by `configure' or to help
2570 it to find libraries and programs with nonstandard names/locations.
2571
2572 Report bugs to the package provider.
2573 _ACEOF
2574 ac_status=$?
2575 fi
2576
2577 if test "$ac_init_help" = "recursive"; then
2578   # If there are subdirs, report their specific --help.
2579   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2580     test -d "$ac_dir" ||
2581       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2582       continue
2583     ac_builddir=.
2584
2585 case "$ac_dir" in
2586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2587 *)
2588   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2589   # A ".." for each directory in $ac_dir_suffix.
2590   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2591   case $ac_top_builddir_sub in
2592   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2593   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2594   esac ;;
2595 esac
2596 ac_abs_top_builddir=$ac_pwd
2597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2598 # for backward compatibility:
2599 ac_top_builddir=$ac_top_build_prefix
2600
2601 case $srcdir in
2602   .)  # We are building in place.
2603     ac_srcdir=.
2604     ac_top_srcdir=$ac_top_builddir_sub
2605     ac_abs_top_srcdir=$ac_pwd ;;
2606   [\\/]* | ?:[\\/]* )  # Absolute name.
2607     ac_srcdir=$srcdir$ac_dir_suffix;
2608     ac_top_srcdir=$srcdir
2609     ac_abs_top_srcdir=$srcdir ;;
2610   *) # Relative name.
2611     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2612     ac_top_srcdir=$ac_top_build_prefix$srcdir
2613     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2614 esac
2615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2616
2617     cd "$ac_dir" || { ac_status=$?; continue; }
2618     # Check for guested configure.
2619     if test -f "$ac_srcdir/configure.gnu"; then
2620       echo &&
2621       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2622     elif test -f "$ac_srcdir/configure"; then
2623       echo &&
2624       $SHELL "$ac_srcdir/configure" --help=recursive
2625     else
2626       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2627     fi || ac_status=$?
2628     cd "$ac_pwd" || { ac_status=$?; break; }
2629   done
2630 fi
2631
2632 test -n "$ac_init_help" && exit $ac_status
2633 if $ac_init_version; then
2634   cat <<\_ACEOF
2635 configure
2636 generated by GNU Autoconf 2.69
2637
2638 Copyright (C) 2012 Free Software Foundation, Inc.
2639 This configure script is free software; the Free Software Foundation
2640 gives unlimited permission to copy, distribute and modify it.
2641 _ACEOF
2642   exit
2643 fi
2644
2645 ## ------------------------ ##
2646 ## Autoconf initialization. ##
2647 ## ------------------------ ##
2648
2649 # ac_fn_c_try_compile LINENO
2650 # --------------------------
2651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2652 ac_fn_c_try_compile ()
2653 {
2654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655   rm -f conftest.$ac_objext
2656   if { { ac_try="$ac_compile"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 $as_echo "$ac_try_echo"; } >&5
2663   (eval "$ac_compile") 2>conftest.err
2664   ac_status=$?
2665   if test -s conftest.err; then
2666     grep -v '^ *+' conftest.err >conftest.er1
2667     cat conftest.er1 >&5
2668     mv -f conftest.er1 conftest.err
2669   fi
2670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671   test $ac_status = 0; } && {
2672          test -z "$ac_c_werror_flag" ||
2673          test ! -s conftest.err
2674        } && test -s conftest.$ac_objext; then :
2675   ac_retval=0
2676 else
2677   $as_echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680         ac_retval=1
2681 fi
2682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2683   as_fn_set_status $ac_retval
2684
2685 } # ac_fn_c_try_compile
2686
2687 # ac_fn_c_try_cpp LINENO
2688 # ----------------------
2689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2690 ac_fn_c_try_cpp ()
2691 {
2692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693   if { { ac_try="$ac_cpp conftest.$ac_ext"
2694 case "(($ac_try" in
2695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696   *) ac_try_echo=$ac_try;;
2697 esac
2698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2699 $as_echo "$ac_try_echo"; } >&5
2700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2701   ac_status=$?
2702   if test -s conftest.err; then
2703     grep -v '^ *+' conftest.err >conftest.er1
2704     cat conftest.er1 >&5
2705     mv -f conftest.er1 conftest.err
2706   fi
2707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2708   test $ac_status = 0; } > conftest.i && {
2709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2710          test ! -s conftest.err
2711        }; then :
2712   ac_retval=0
2713 else
2714   $as_echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717     ac_retval=1
2718 fi
2719   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2720   as_fn_set_status $ac_retval
2721
2722 } # ac_fn_c_try_cpp
2723
2724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2725 # -------------------------------------------------------
2726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2727 # the include files in INCLUDES and setting the cache variable VAR
2728 # accordingly.
2729 ac_fn_c_check_header_mongrel ()
2730 {
2731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732   if eval \${$3+:} false; then :
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if eval \${$3+:} false; then :
2736   $as_echo_n "(cached) " >&6
2737 fi
2738 eval ac_res=\$$3
2739                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2740 $as_echo "$ac_res" >&6; }
2741 else
2742   # Is the header compilable?
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2744 $as_echo_n "checking $2 usability... " >&6; }
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h.  */
2747 $4
2748 #include <$2>
2749 _ACEOF
2750 if ac_fn_c_try_compile "$LINENO"; then :
2751   ac_header_compiler=yes
2752 else
2753   ac_header_compiler=no
2754 fi
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2757 $as_echo "$ac_header_compiler" >&6; }
2758
2759 # Is the header present?
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2761 $as_echo_n "checking $2 presence... " >&6; }
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h.  */
2764 #include <$2>
2765 _ACEOF
2766 if ac_fn_c_try_cpp "$LINENO"; then :
2767   ac_header_preproc=yes
2768 else
2769   ac_header_preproc=no
2770 fi
2771 rm -f conftest.err conftest.i conftest.$ac_ext
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2773 $as_echo "$ac_header_preproc" >&6; }
2774
2775 # So?  What about this header?
2776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2777   yes:no: )
2778     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2782     ;;
2783   no:yes:* )
2784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2786     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2787 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2788     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2790     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2791 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2794     ;;
2795 esac
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2797 $as_echo_n "checking for $2... " >&6; }
2798 if eval \${$3+:} false; then :
2799   $as_echo_n "(cached) " >&6
2800 else
2801   eval "$3=\$ac_header_compiler"
2802 fi
2803 eval ac_res=\$$3
2804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805 $as_echo "$ac_res" >&6; }
2806 fi
2807   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2808
2809 } # ac_fn_c_check_header_mongrel
2810
2811 # ac_fn_c_try_run LINENO
2812 # ----------------------
2813 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2814 # that executables *can* be run.
2815 ac_fn_c_try_run ()
2816 {
2817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2818   if { { ac_try="$ac_link"
2819 case "(($ac_try" in
2820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821   *) ac_try_echo=$ac_try;;
2822 esac
2823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2824 $as_echo "$ac_try_echo"; } >&5
2825   (eval "$ac_link") 2>&5
2826   ac_status=$?
2827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2828   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2829   { { case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2834 $as_echo "$ac_try_echo"; } >&5
2835   (eval "$ac_try") 2>&5
2836   ac_status=$?
2837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838   test $ac_status = 0; }; }; then :
2839   ac_retval=0
2840 else
2841   $as_echo "$as_me: program exited with status $ac_status" >&5
2842        $as_echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845        ac_retval=$ac_status
2846 fi
2847   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2848   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2849   as_fn_set_status $ac_retval
2850
2851 } # ac_fn_c_try_run
2852
2853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2854 # -------------------------------------------------------
2855 # Tests whether HEADER exists and can be compiled using the include files in
2856 # INCLUDES, setting the cache variable VAR accordingly.
2857 ac_fn_c_check_header_compile ()
2858 {
2859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2861 $as_echo_n "checking for $2... " >&6; }
2862 if eval \${$3+:} false; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h.  */
2867 $4
2868 #include <$2>
2869 _ACEOF
2870 if ac_fn_c_try_compile "$LINENO"; then :
2871   eval "$3=yes"
2872 else
2873   eval "$3=no"
2874 fi
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 fi
2877 eval ac_res=\$$3
2878                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2879 $as_echo "$ac_res" >&6; }
2880   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881
2882 } # ac_fn_c_check_header_compile
2883
2884 # ac_fn_c_try_link LINENO
2885 # -----------------------
2886 # Try to link conftest.$ac_ext, and return whether this succeeded.
2887 ac_fn_c_try_link ()
2888 {
2889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2890   rm -f conftest.$ac_objext conftest$ac_exeext
2891   if { { ac_try="$ac_link"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897 $as_echo "$ac_try_echo"; } >&5
2898   (eval "$ac_link") 2>conftest.err
2899   ac_status=$?
2900   if test -s conftest.err; then
2901     grep -v '^ *+' conftest.err >conftest.er1
2902     cat conftest.er1 >&5
2903     mv -f conftest.er1 conftest.err
2904   fi
2905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906   test $ac_status = 0; } && {
2907          test -z "$ac_c_werror_flag" ||
2908          test ! -s conftest.err
2909        } && test -s conftest$ac_exeext && {
2910          test "$cross_compiling" = yes ||
2911          test -x conftest$ac_exeext
2912        }; then :
2913   ac_retval=0
2914 else
2915   $as_echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918         ac_retval=1
2919 fi
2920   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2921   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2922   # interfere with the next link command; also delete a directory that is
2923   # left behind by Apple's compiler.  We do this before executing the actions.
2924   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926   as_fn_set_status $ac_retval
2927
2928 } # ac_fn_c_try_link
2929
2930 # ac_fn_c_check_func LINENO FUNC VAR
2931 # ----------------------------------
2932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2933 ac_fn_c_check_func ()
2934 {
2935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2937 $as_echo_n "checking for $2... " >&6; }
2938 if eval \${$3+:} false; then :
2939   $as_echo_n "(cached) " >&6
2940 else
2941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h.  */
2943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2945 #define $2 innocuous_$2
2946
2947 /* System header to define __stub macros and hopefully few prototypes,
2948     which can conflict with char $2 (); below.
2949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950     <limits.h> exists even on freestanding compilers.  */
2951
2952 #ifdef __STDC__
2953 # include <limits.h>
2954 #else
2955 # include <assert.h>
2956 #endif
2957
2958 #undef $2
2959
2960 /* Override any GCC internal prototype to avoid an error.
2961    Use char because int might match the return type of a GCC
2962    builtin and then its argument prototype would still apply.  */
2963 #ifdef __cplusplus
2964 extern "C"
2965 #endif
2966 char $2 ();
2967 /* The GNU C library defines this for functions which it implements
2968     to always fail with ENOSYS.  Some functions are actually named
2969     something starting with __ and the normal name is an alias.  */
2970 #if defined __stub_$2 || defined __stub___$2
2971 choke me
2972 #endif
2973
2974 int
2975 main ()
2976 {
2977 return $2 ();
2978   ;
2979   return 0;
2980 }
2981 _ACEOF
2982 if ac_fn_c_try_link "$LINENO"; then :
2983   eval "$3=yes"
2984 else
2985   eval "$3=no"
2986 fi
2987 rm -f core conftest.err conftest.$ac_objext \
2988     conftest$ac_exeext conftest.$ac_ext
2989 fi
2990 eval ac_res=\$$3
2991                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2992 $as_echo "$ac_res" >&6; }
2993   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2994
2995 } # ac_fn_c_check_func
2996
2997 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2998 # -------------------------------------------
2999 # Tests whether TYPE exists after having included INCLUDES, setting cache
3000 # variable VAR accordingly.
3001 ac_fn_c_check_type ()
3002 {
3003   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3005 $as_echo_n "checking for $2... " >&6; }
3006 if eval \${$3+:} false; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   eval "$3=no"
3010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h.  */
3012 $4
3013 int
3014 main ()
3015 {
3016 if (sizeof ($2))
3017          return 0;
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 if ac_fn_c_try_compile "$LINENO"; then :
3023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h.  */
3025 $4
3026 int
3027 main ()
3028 {
3029 if (sizeof (($2)))
3030             return 0;
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 if ac_fn_c_try_compile "$LINENO"; then :
3036
3037 else
3038   eval "$3=yes"
3039 fi
3040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 fi
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 fi
3044 eval ac_res=\$$3
3045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3046 $as_echo "$ac_res" >&6; }
3047   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3048
3049 } # ac_fn_c_check_type
3050
3051 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3052 # ---------------------------------------------
3053 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3054 # accordingly.
3055 ac_fn_c_check_decl ()
3056 {
3057   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3058   as_decl_name=`echo $2|sed 's/ *(.*//'`
3059   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3061 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3062 if eval \${$3+:} false; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h.  */
3067 $4
3068 int
3069 main ()
3070 {
3071 #ifndef $as_decl_name
3072 #ifdef __cplusplus
3073   (void) $as_decl_use;
3074 #else
3075   (void) $as_decl_name;
3076 #endif
3077 #endif
3078
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 if ac_fn_c_try_compile "$LINENO"; then :
3084   eval "$3=yes"
3085 else
3086   eval "$3=no"
3087 fi
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 fi
3090 eval ac_res=\$$3
3091                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3092 $as_echo "$ac_res" >&6; }
3093   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3094
3095 } # ac_fn_c_check_decl
3096
3097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3098 # --------------------------------------------
3099 # Tries to find the compile-time value of EXPR in a program that includes
3100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3101 # computed
3102 ac_fn_c_compute_int ()
3103 {
3104   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3105   if test "$cross_compiling" = yes; then
3106     # Depending upon the size, compute the lo and hi bounds.
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h.  */
3109 $4
3110 int
3111 main ()
3112 {
3113 static int test_array [1 - 2 * !(($2) >= 0)];
3114 test_array [0] = 0;
3115 return test_array [0];
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 if ac_fn_c_try_compile "$LINENO"; then :
3122   ac_lo=0 ac_mid=0
3123   while :; do
3124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h.  */
3126 $4
3127 int
3128 main ()
3129 {
3130 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3131 test_array [0] = 0;
3132 return test_array [0];
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 if ac_fn_c_try_compile "$LINENO"; then :
3139   ac_hi=$ac_mid; break
3140 else
3141   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3142                         if test $ac_lo -le $ac_mid; then
3143                           ac_lo= ac_hi=
3144                           break
3145                         fi
3146                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3147 fi
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149   done
3150 else
3151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h.  */
3153 $4
3154 int
3155 main ()
3156 {
3157 static int test_array [1 - 2 * !(($2) < 0)];
3158 test_array [0] = 0;
3159 return test_array [0];
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 if ac_fn_c_try_compile "$LINENO"; then :
3166   ac_hi=-1 ac_mid=-1
3167   while :; do
3168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h.  */
3170 $4
3171 int
3172 main ()
3173 {
3174 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3175 test_array [0] = 0;
3176 return test_array [0];
3177
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 if ac_fn_c_try_compile "$LINENO"; then :
3183   ac_lo=$ac_mid; break
3184 else
3185   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3186                         if test $ac_mid -le $ac_hi; then
3187                           ac_lo= ac_hi=
3188                           break
3189                         fi
3190                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3191 fi
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193   done
3194 else
3195   ac_lo= ac_hi=
3196 fi
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 # Binary search between lo and hi bounds.
3201 while test "x$ac_lo" != "x$ac_hi"; do
3202   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h.  */
3205 $4
3206 int
3207 main ()
3208 {
3209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3210 test_array [0] = 0;
3211 return test_array [0];
3212
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 if ac_fn_c_try_compile "$LINENO"; then :
3218   ac_hi=$ac_mid
3219 else
3220   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3221 fi
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 done
3224 case $ac_lo in #((
3225 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3226 '') ac_retval=1 ;;
3227 esac
3228   else
3229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h.  */
3231 $4
3232 static long int longval () { return $2; }
3233 static unsigned long int ulongval () { return $2; }
3234 #include <stdio.h>
3235 #include <stdlib.h>
3236 int
3237 main ()
3238 {
3239
3240   FILE *f = fopen ("conftest.val", "w");
3241   if (! f)
3242     return 1;
3243   if (($2) < 0)
3244     {
3245       long int i = longval ();
3246       if (i != ($2))
3247         return 1;
3248       fprintf (f, "%ld", i);
3249     }
3250   else
3251     {
3252       unsigned long int i = ulongval ();
3253       if (i != ($2))
3254         return 1;
3255       fprintf (f, "%lu", i);
3256     }
3257   /* Do not output a trailing newline, as this causes \r\n confusion
3258      on some platforms.  */
3259   return ferror (f) || fclose (f) != 0;
3260
3261   ;
3262   return 0;
3263 }
3264 _ACEOF
3265 if ac_fn_c_try_run "$LINENO"; then :
3266   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3267 else
3268   ac_retval=1
3269 fi
3270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3271   conftest.$ac_objext conftest.beam conftest.$ac_ext
3272 rm -f conftest.val
3273
3274   fi
3275   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3276   as_fn_set_status $ac_retval
3277
3278 } # ac_fn_c_compute_int
3279
3280 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3281 # ----------------------------------------------------
3282 # Tries to find if the field MEMBER exists in type AGGR, after including
3283 # INCLUDES, setting cache variable VAR accordingly.
3284 ac_fn_c_check_member ()
3285 {
3286   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3288 $as_echo_n "checking for $2.$3... " >&6; }
3289 if eval \${$4+:} false; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h.  */
3294 $5
3295 int
3296 main ()
3297 {
3298 static $2 ac_aggr;
3299 if (ac_aggr.$3)
3300 return 0;
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 if ac_fn_c_try_compile "$LINENO"; then :
3306   eval "$4=yes"
3307 else
3308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h.  */
3310 $5
3311 int
3312 main ()
3313 {
3314 static $2 ac_aggr;
3315 if (sizeof ac_aggr.$3)
3316 return 0;
3317   ;
3318   return 0;
3319 }
3320 _ACEOF
3321 if ac_fn_c_try_compile "$LINENO"; then :
3322   eval "$4=yes"
3323 else
3324   eval "$4=no"
3325 fi
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3330 eval ac_res=\$$4
3331                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3332 $as_echo "$ac_res" >&6; }
3333   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3334
3335 } # ac_fn_c_check_member
3336
3337 # ac_fn_cxx_try_compile LINENO
3338 # ----------------------------
3339 # Try to compile conftest.$ac_ext, and return whether this succeeded.
3340 ac_fn_cxx_try_compile ()
3341 {
3342   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3343   rm -f conftest.$ac_objext
3344   if { { ac_try="$ac_compile"
3345 case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351   (eval "$ac_compile") 2>conftest.err
3352   ac_status=$?
3353   if test -s conftest.err; then
3354     grep -v '^ *+' conftest.err >conftest.er1
3355     cat conftest.er1 >&5
3356     mv -f conftest.er1 conftest.err
3357   fi
3358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359   test $ac_status = 0; } && {
3360          test -z "$ac_cxx_werror_flag" ||
3361          test ! -s conftest.err
3362        } && test -s conftest.$ac_objext; then :
3363   ac_retval=0
3364 else
3365   $as_echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368         ac_retval=1
3369 fi
3370   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3371   as_fn_set_status $ac_retval
3372
3373 } # ac_fn_cxx_try_compile
3374
3375 # ac_fn_cxx_try_cpp LINENO
3376 # ------------------------
3377 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3378 ac_fn_cxx_try_cpp ()
3379 {
3380   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3381   if { { ac_try="$ac_cpp conftest.$ac_ext"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3389   ac_status=$?
3390   if test -s conftest.err; then
3391     grep -v '^ *+' conftest.err >conftest.er1
3392     cat conftest.er1 >&5
3393     mv -f conftest.er1 conftest.err
3394   fi
3395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396   test $ac_status = 0; } > conftest.i && {
3397          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3398          test ! -s conftest.err
3399        }; then :
3400   ac_retval=0
3401 else
3402   $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405     ac_retval=1
3406 fi
3407   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3408   as_fn_set_status $ac_retval
3409
3410 } # ac_fn_cxx_try_cpp
3411
3412 # ac_fn_cxx_try_link LINENO
3413 # -------------------------
3414 # Try to link conftest.$ac_ext, and return whether this succeeded.
3415 ac_fn_cxx_try_link ()
3416 {
3417   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3418   rm -f conftest.$ac_objext conftest$ac_exeext
3419   if { { ac_try="$ac_link"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426   (eval "$ac_link") 2>conftest.err
3427   ac_status=$?
3428   if test -s conftest.err; then
3429     grep -v '^ *+' conftest.err >conftest.er1
3430     cat conftest.er1 >&5
3431     mv -f conftest.er1 conftest.err
3432   fi
3433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434   test $ac_status = 0; } && {
3435          test -z "$ac_cxx_werror_flag" ||
3436          test ! -s conftest.err
3437        } && test -s conftest$ac_exeext && {
3438          test "$cross_compiling" = yes ||
3439          test -x conftest$ac_exeext
3440        }; then :
3441   ac_retval=0
3442 else
3443   $as_echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446         ac_retval=1
3447 fi
3448   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3449   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3450   # interfere with the next link command; also delete a directory that is
3451   # left behind by Apple's compiler.  We do this before executing the actions.
3452   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3453   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3454   as_fn_set_status $ac_retval
3455
3456 } # ac_fn_cxx_try_link
3457 cat >config.log <<_ACEOF
3458 This file contains any messages produced by compilers while
3459 running configure, to aid debugging if configure makes a mistake.
3460
3461 It was created by $as_me, which was
3462 generated by GNU Autoconf 2.69.  Invocation command line was
3463
3464   $ $0 $@
3465
3466 _ACEOF
3467 exec 5>>config.log
3468 {
3469 cat <<_ASUNAME
3470 ## --------- ##
3471 ## Platform. ##
3472 ## --------- ##
3473
3474 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3475 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3476 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3477 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3478 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3479
3480 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3481 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3482
3483 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3484 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3485 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3486 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3487 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3488 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3489 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3490
3491 _ASUNAME
3492
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498     $as_echo "PATH: $as_dir"
3499   done
3500 IFS=$as_save_IFS
3501
3502 } >&5
3503
3504 cat >&5 <<_ACEOF
3505
3506
3507 ## ----------- ##
3508 ## Core tests. ##
3509 ## ----------- ##
3510
3511 _ACEOF
3512
3513
3514 # Keep a trace of the command line.
3515 # Strip out --no-create and --no-recursion so they do not pile up.
3516 # Strip out --silent because we don't want to record it for future runs.
3517 # Also quote any args containing shell meta-characters.
3518 # Make two passes to allow for proper duplicate-argument suppression.
3519 ac_configure_args=
3520 ac_configure_args0=
3521 ac_configure_args1=
3522 ac_must_keep_next=false
3523 for ac_pass in 1 2
3524 do
3525   for ac_arg
3526   do
3527     case $ac_arg in
3528     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3529     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3530     | -silent | --silent | --silen | --sile | --sil)
3531       continue ;;
3532     *\'*)
3533       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3534     esac
3535     case $ac_pass in
3536     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3537     2)
3538       as_fn_append ac_configure_args1 " '$ac_arg'"
3539       if test $ac_must_keep_next = true; then
3540         ac_must_keep_next=false # Got value, back to normal.
3541       else
3542         case $ac_arg in
3543           *=* | --config-cache | -C | -disable-* | --disable-* \
3544           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3545           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3546           | -with-* | --with-* | -without-* | --without-* | --x)
3547             case "$ac_configure_args0 " in
3548               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3549             esac
3550             ;;
3551           -* ) ac_must_keep_next=true ;;
3552         esac
3553       fi
3554       as_fn_append ac_configure_args " '$ac_arg'"
3555       ;;
3556     esac
3557   done
3558 done
3559 { ac_configure_args0=; unset ac_configure_args0;}
3560 { ac_configure_args1=; unset ac_configure_args1;}
3561
3562 # When interrupted or exit'd, cleanup temporary files, and complete
3563 # config.log.  We remove comments because anyway the quotes in there
3564 # would cause problems or look ugly.
3565 # WARNING: Use '\'' to represent an apostrophe within the trap.
3566 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3567 trap 'exit_status=$?
3568   # Save into config.log some information that might help in debugging.
3569   {
3570     echo
3571
3572     $as_echo "## ---------------- ##
3573 ## Cache variables. ##
3574 ## ---------------- ##"
3575     echo
3576     # The following way of writing the cache mishandles newlines in values,
3577 (
3578   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3579     eval ac_val=\$$ac_var
3580     case $ac_val in #(
3581     *${as_nl}*)
3582       case $ac_var in #(
3583       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3585       esac
3586       case $ac_var in #(
3587       _ | IFS | as_nl) ;; #(
3588       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3589       *) { eval $ac_var=; unset $ac_var;} ;;
3590       esac ;;
3591     esac
3592   done
3593   (set) 2>&1 |
3594     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3595     *${as_nl}ac_space=\ *)
3596       sed -n \
3597         "s/'\''/'\''\\\\'\'''\''/g;
3598           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3599       ;; #(
3600     *)
3601       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3602       ;;
3603     esac |
3604     sort
3605 )
3606     echo
3607
3608     $as_echo "## ----------------- ##
3609 ## Output variables. ##
3610 ## ----------------- ##"
3611     echo
3612     for ac_var in $ac_subst_vars
3613     do
3614       eval ac_val=\$$ac_var
3615       case $ac_val in
3616       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3617       esac
3618       $as_echo "$ac_var='\''$ac_val'\''"
3619     done | sort
3620     echo
3621
3622     if test -n "$ac_subst_files"; then
3623       $as_echo "## ------------------- ##
3624 ## File substitutions. ##
3625 ## ------------------- ##"
3626       echo
3627       for ac_var in $ac_subst_files
3628       do
3629         eval ac_val=\$$ac_var
3630         case $ac_val in
3631         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3632         esac
3633         $as_echo "$ac_var='\''$ac_val'\''"
3634       done | sort
3635       echo
3636     fi
3637
3638     if test -s confdefs.h; then
3639       $as_echo "## ----------- ##
3640 ## confdefs.h. ##
3641 ## ----------- ##"
3642       echo
3643       cat confdefs.h
3644       echo
3645     fi
3646     test "$ac_signal" != 0 &&
3647       $as_echo "$as_me: caught signal $ac_signal"
3648     $as_echo "$as_me: exit $exit_status"
3649   } >&5
3650   rm -f core *.core core.conftest.* &&
3651     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3652     exit $exit_status
3653 ' 0
3654 for ac_signal in 1 2 13 15; do
3655   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3656 done
3657 ac_signal=0
3658
3659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3660 rm -f -r conftest* confdefs.h
3661
3662 $as_echo "/* confdefs.h */" > confdefs.h
3663
3664 # Predefined preprocessor variables.
3665
3666 cat >>confdefs.h <<_ACEOF
3667 #define PACKAGE_NAME "$PACKAGE_NAME"
3668 _ACEOF
3669
3670 cat >>confdefs.h <<_ACEOF
3671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3672 _ACEOF
3673
3674 cat >>confdefs.h <<_ACEOF
3675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3676 _ACEOF
3677
3678 cat >>confdefs.h <<_ACEOF
3679 #define PACKAGE_STRING "$PACKAGE_STRING"
3680 _ACEOF
3681
3682 cat >>confdefs.h <<_ACEOF
3683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3684 _ACEOF
3685
3686 cat >>confdefs.h <<_ACEOF
3687 #define PACKAGE_URL "$PACKAGE_URL"
3688 _ACEOF
3689
3690
3691 # Let the site file select an alternate cache file if it wants to.
3692 # Prefer an explicitly selected file to automatically selected ones.
3693 ac_site_file1=NONE
3694 ac_site_file2=NONE
3695 if test -n "$CONFIG_SITE"; then
3696   # We do not want a PATH search for config.site.
3697   case $CONFIG_SITE in #((
3698     -*)  ac_site_file1=./$CONFIG_SITE;;
3699     */*) ac_site_file1=$CONFIG_SITE;;
3700     *)   ac_site_file1=./$CONFIG_SITE;;
3701   esac
3702 elif test "x$prefix" != xNONE; then
3703   ac_site_file1=$prefix/share/config.site
3704   ac_site_file2=$prefix/etc/config.site
3705 else
3706   ac_site_file1=$ac_default_prefix/share/config.site
3707   ac_site_file2=$ac_default_prefix/etc/config.site
3708 fi
3709 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3710 do
3711   test "x$ac_site_file" = xNONE && continue
3712   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3713     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3714 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3715     sed 's/^/| /' "$ac_site_file" >&5
3716     . "$ac_site_file" \
3717       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719 as_fn_error $? "failed to load site script $ac_site_file
3720 See \`config.log' for more details" "$LINENO" 5; }
3721   fi
3722 done
3723
3724 if test -r "$cache_file"; then
3725   # Some versions of bash will fail to source /dev/null (special files
3726   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3727   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3728     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3729 $as_echo "$as_me: loading cache $cache_file" >&6;}
3730     case $cache_file in
3731       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3732       *)                      . "./$cache_file";;
3733     esac
3734   fi
3735 else
3736   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3737 $as_echo "$as_me: creating cache $cache_file" >&6;}
3738   >$cache_file
3739 fi
3740
3741 gt_needs="$gt_needs need-ngettext"
3742 as_fn_append ac_header_list " stdlib.h"
3743 as_fn_append ac_header_list " unistd.h"
3744 as_fn_append ac_header_list " sys/param.h"
3745 as_fn_append ac_func_list " symlink"
3746 as_fn_append ac_header_list " string.h"
3747 as_fn_append ac_func_list " canonicalize_file_name"
3748 as_fn_append ac_func_list " getcwd"
3749 as_fn_append ac_func_list " readlink"
3750 as_fn_append ac_func_list " realpath"
3751 as_fn_append ac_func_list " readlinkat"
3752 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3753 as_fn_append ac_header_list " sys/socket.h"
3754 as_fn_append ac_header_list " utime.h"
3755 as_fn_append ac_header_list " dirent.h"
3756 as_fn_append ac_func_list " fcntl"
3757 as_fn_append ac_func_list " btowc"
3758 as_fn_append ac_func_list " isblank"
3759 as_fn_append ac_func_list " iswctype"
3760 as_fn_append ac_func_list " mbsrtowcs"
3761 as_fn_append ac_func_list " mempcpy"
3762 as_fn_append ac_func_list " wmemchr"
3763 as_fn_append ac_func_list " wmemcpy"
3764 as_fn_append ac_func_list " wmempcpy"
3765 as_fn_append ac_header_list " wctype.h"
3766 as_fn_append ac_header_list " sys/stat.h"
3767 as_fn_append ac_func_list " getdelim"
3768 as_fn_append ac_func_list " getdtablesize"
3769 gl_getopt_required=GNU
3770 as_fn_append ac_header_list " getopt.h"
3771 as_fn_append ac_header_list " sys/time.h"
3772 as_fn_append ac_func_list " gettimeofday"
3773 as_fn_append ac_header_list " iconv.h"
3774 as_fn_append ac_func_list " iswcntrl"
3775 as_fn_append ac_func_list " iswblank"
3776 as_fn_append ac_header_list " libcroco-0.6/libcroco/libcroco-config.h"
3777 as_fn_append ac_header_list " libxml2/libxml/xmlexports.h"
3778 as_fn_append ac_header_list " libxml2/libxml/xmlversion.h"
3779 as_fn_append ac_header_list " xlocale.h"
3780 as_fn_append ac_func_list " lstat"
3781 as_fn_append ac_func_list " mbsinit"
3782 as_fn_append ac_func_list " mbrtowc"
3783 as_fn_append ac_func_list " mbslen"
3784 as_fn_append ac_header_list " wchar.h"
3785 as_fn_append ac_func_list " isascii"
3786 as_fn_append ac_header_list " sys/mman.h"
3787 as_fn_append ac_func_list " mprotect"
3788 as_fn_append ac_func_list " select"
3789 as_fn_append ac_func_list " pipe2"
3790 as_fn_append ac_func_list " posix_spawn"
3791 as_fn_append ac_func_list " setenv"
3792 as_fn_append ac_header_list " sched.h"
3793 as_fn_append ac_func_list " secure_getenv"
3794 as_fn_append ac_func_list " sigaction"
3795 as_fn_append ac_func_list " sigaltstack"
3796 as_fn_append ac_func_list " siginterrupt"
3797 as_fn_append ac_func_list " snprintf"
3798 as_fn_append ac_header_list " spawn.h"
3799 as_fn_append ac_header_list " stdint.h"
3800 as_fn_append ac_func_list " stpncpy"
3801 as_fn_append ac_header_list " sys/select.h"
3802 as_fn_append ac_header_list " sys/wait.h"
3803 as_fn_append ac_func_list " pipe"
3804 as_fn_append ac_func_list " vasnprintf"
3805 as_fn_append ac_header_list " features.h"
3806 as_fn_append ac_func_list " wcwidth"
3807 as_fn_append ac_header_list " inttypes.h"
3808 as_fn_append ac_func_list " newlocale"
3809 as_fn_append ac_func_list " sleep"
3810 as_fn_append ac_func_list " wcrtomb"
3811 as_fn_append ac_func_list " wctob"
3812 as_fn_append ac_header_list " langinfo.h"
3813 as_fn_append ac_func_list " mbrlen"
3814 as_fn_append ac_func_list " nl_langinfo"
3815 as_fn_append ac_func_list " wcscoll"
3816 as_fn_append ac_func_list " getrlimit"
3817 as_fn_append ac_func_list " setrlimit"
3818 as_fn_append ac_func_list " uselocale"
3819 # Check that the precious variables saved in the cache have kept the same
3820 # value.
3821 ac_cache_corrupted=false
3822 for ac_var in $ac_precious_vars; do
3823   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3824   eval ac_new_set=\$ac_env_${ac_var}_set
3825   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3826   eval ac_new_val=\$ac_env_${ac_var}_value
3827   case $ac_old_set,$ac_new_set in
3828     set,)
3829       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3830 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3831       ac_cache_corrupted=: ;;
3832     ,set)
3833       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3834 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3835       ac_cache_corrupted=: ;;
3836     ,);;
3837     *)
3838       if test "x$ac_old_val" != "x$ac_new_val"; then
3839         # differences in whitespace do not lead to failure.
3840         ac_old_val_w=`echo x $ac_old_val`
3841         ac_new_val_w=`echo x $ac_new_val`
3842         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3843           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3844 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3845           ac_cache_corrupted=:
3846         else
3847           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3848 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3849           eval $ac_var=\$ac_old_val
3850         fi
3851         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3852 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3853         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3854 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3855       fi;;
3856   esac
3857   # Pass precious variables to config.status.
3858   if test "$ac_new_set" = set; then
3859     case $ac_new_val in
3860     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3861     *) ac_arg=$ac_var=$ac_new_val ;;
3862     esac
3863     case " $ac_configure_args " in
3864       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3865       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3866     esac
3867   fi
3868 done
3869 if $ac_cache_corrupted; then
3870   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3873 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3874   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3875 fi
3876 ## -------------------- ##
3877 ## Main body of script. ##
3878 ## -------------------- ##
3879
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885
3886
3887
3888 ac_aux_dir=
3889 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
3890   if test -f "$ac_dir/install-sh"; then
3891     ac_aux_dir=$ac_dir
3892     ac_install_sh="$ac_aux_dir/install-sh -c"
3893     break
3894   elif test -f "$ac_dir/install.sh"; then
3895     ac_aux_dir=$ac_dir
3896     ac_install_sh="$ac_aux_dir/install.sh -c"
3897     break
3898   elif test -f "$ac_dir/shtool"; then
3899     ac_aux_dir=$ac_dir
3900     ac_install_sh="$ac_aux_dir/shtool install -c"
3901     break
3902   fi
3903 done
3904 if test -z "$ac_aux_dir"; then
3905   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
3906 fi
3907
3908 # These three variables are undocumented and unsupported,
3909 # and are intended to be withdrawn in a future Autoconf release.
3910 # They can cause serious problems if a builder's source tree is in a directory
3911 # whose full name contains unusual characters.
3912 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3913 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3914 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3915
3916
3917 . $srcdir/../version.sh
3918
3919
3920
3921
3922
3923
3924 am__api_version='1.14'
3925
3926 # Find a good install program.  We prefer a C program (faster),
3927 # so one script is as good as another.  But avoid the broken or
3928 # incompatible versions:
3929 # SysV /etc/install, /usr/sbin/install
3930 # SunOS /usr/etc/install
3931 # IRIX /sbin/install
3932 # AIX /bin/install
3933 # AmigaOS /C/install, which installs bootblocks on floppy discs
3934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3937 # OS/2's system install, which has a completely different semantic
3938 # ./install, which can be erroneously created by make from ./install.sh.
3939 # Reject install programs that cannot install multiple files.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3942 if test -z "$INSTALL"; then
3943 if ${ac_cv_path_install+:} false; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951     # Account for people who put trailing slashes in PATH elements.
3952 case $as_dir/ in #((
3953   ./ | .// | /[cC]/* | \
3954   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3955   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3956   /usr/ucb/* ) ;;
3957   *)
3958     # OSF1 and SCO ODT 3.0 have their own names for install.
3959     # Don't use installbsd from OSF since it installs stuff as root
3960     # by default.
3961     for ac_prog in ginstall scoinst install; do
3962       for ac_exec_ext in '' $ac_executable_extensions; do
3963         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3964           if test $ac_prog = install &&
3965             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3966             # AIX install.  It has an incompatible calling convention.
3967             :
3968           elif test $ac_prog = install &&
3969             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3970             # program-specific install script used by HP pwplus--don't use.
3971             :
3972           else
3973             rm -rf conftest.one conftest.two conftest.dir
3974             echo one > conftest.one
3975             echo two > conftest.two
3976             mkdir conftest.dir
3977             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3978               test -s conftest.one && test -s conftest.two &&
3979               test -s conftest.dir/conftest.one &&
3980               test -s conftest.dir/conftest.two
3981             then
3982               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3983               break 3
3984             fi
3985           fi
3986         fi
3987       done
3988     done
3989     ;;
3990 esac
3991
3992   done
3993 IFS=$as_save_IFS
3994
3995 rm -rf conftest.one conftest.two conftest.dir
3996
3997 fi
3998   if test "${ac_cv_path_install+set}" = set; then
3999     INSTALL=$ac_cv_path_install
4000   else
4001     # As a last resort, use the slow shell script.  Don't cache a
4002     # value for INSTALL within a source directory, because that will
4003     # break other packages using the cache if that directory is
4004     # removed, or if the value is a relative name.
4005     INSTALL=$ac_install_sh
4006   fi
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4009 $as_echo "$INSTALL" >&6; }
4010
4011 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4012 # It thinks the first close brace ends the variable substitution.
4013 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4014
4015 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4016
4017 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4018
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4020 $as_echo_n "checking whether build environment is sane... " >&6; }
4021 # Reject unsafe characters in $srcdir or the absolute working directory
4022 # name.  Accept space and tab only in the latter.
4023 am_lf='
4024 '
4025 case `pwd` in
4026   *[\\\"\#\$\&\'\`$am_lf]*)
4027     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4028 esac
4029 case $srcdir in
4030   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4031     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4032 esac
4033
4034 # Do 'set' in a subshell so we don't clobber the current shell's
4035 # arguments.  Must try -L first in case configure is actually a
4036 # symlink; some systems play weird games with the mod time of symlinks
4037 # (eg FreeBSD returns the mod time of the symlink's containing
4038 # directory).
4039 if (
4040    am_has_slept=no
4041    for am_try in 1 2; do
4042      echo "timestamp, slept: $am_has_slept" > conftest.file
4043      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4044      if test "$*" = "X"; then
4045         # -L didn't work.
4046         set X `ls -t "$srcdir/configure" conftest.file`
4047      fi
4048      if test "$*" != "X $srcdir/configure conftest.file" \
4049         && test "$*" != "X conftest.file $srcdir/configure"; then
4050
4051         # If neither matched, then we have a broken ls.  This can happen
4052         # if, for instance, CONFIG_SHELL is bash and it inherits a
4053         # broken ls alias from the environment.  This has actually
4054         # happened.  Such a system could not be considered "sane".
4055         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4056   alias in your environment" "$LINENO" 5
4057      fi
4058      if test "$2" = conftest.file || test $am_try -eq 2; then
4059        break
4060      fi
4061      # Just in case.
4062      sleep 1
4063      am_has_slept=yes
4064    done
4065    test "$2" = conftest.file
4066    )
4067 then
4068    # Ok.
4069    :
4070 else
4071    as_fn_error $? "newly created file is older than distributed files!
4072 Check your system clock" "$LINENO" 5
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4075 $as_echo "yes" >&6; }
4076 # If we didn't sleep, we still need to ensure time stamps of config.status and
4077 # generated files are strictly newer.
4078 am_sleep_pid=
4079 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4080   ( sleep 1 ) &
4081   am_sleep_pid=$!
4082 fi
4083
4084 rm -f conftest.file
4085
4086 test "$program_prefix" != NONE &&
4087   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4088 # Use a double $ so make ignores it.
4089 test "$program_suffix" != NONE &&
4090   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4091 # Double any \ or $.
4092 # By default was `s,x,x', remove it if useless.
4093 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4094 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4095
4096 # expand $ac_aux_dir to an absolute path
4097 am_aux_dir=`cd $ac_aux_dir && pwd`
4098
4099 if test x"${MISSING+set}" != xset; then
4100   case $am_aux_dir in
4101   *\ * | *\     *)
4102     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4103   *)
4104     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4105   esac
4106 fi
4107 # Use eval to expand $SHELL
4108 if eval "$MISSING --is-lightweight"; then
4109   am_missing_run="$MISSING "
4110 else
4111   am_missing_run=
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4113 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4114 fi
4115
4116 if test x"${install_sh}" != xset; then
4117   case $am_aux_dir in
4118   *\ * | *\     *)
4119     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4120   *)
4121     install_sh="\${SHELL} $am_aux_dir/install-sh"
4122   esac
4123 fi
4124
4125 # Installed binaries are usually stripped using 'strip' when the user
4126 # run "make install-strip".  However 'strip' might not be the right
4127 # tool to use in cross-compilation environments, therefore Automake
4128 # will honor the 'STRIP' environment variable to overrule this program.
4129 if test "$cross_compiling" != no; then
4130   if test -n "$ac_tool_prefix"; then
4131   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4132 set dummy ${ac_tool_prefix}strip; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_STRIP+:} false; then :
4136   $as_echo_n "(cached) " >&6
4137 else
4138   if test -n "$STRIP"; then
4139   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144   IFS=$as_save_IFS
4145   test -z "$as_dir" && as_dir=.
4146     for ac_exec_ext in '' $ac_executable_extensions; do
4147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150     break 2
4151   fi
4152 done
4153   done
4154 IFS=$as_save_IFS
4155
4156 fi
4157 fi
4158 STRIP=$ac_cv_prog_STRIP
4159 if test -n "$STRIP"; then
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4161 $as_echo "$STRIP" >&6; }
4162 else
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 fi
4166
4167
4168 fi
4169 if test -z "$ac_cv_prog_STRIP"; then
4170   ac_ct_STRIP=$STRIP
4171   # Extract the first word of "strip", so it can be a program name with args.
4172 set dummy strip; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if test -n "$ac_ct_STRIP"; then
4179   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186     for ac_exec_ext in '' $ac_executable_extensions; do
4187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188     ac_cv_prog_ac_ct_STRIP="strip"
4189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193   done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4199 if test -n "$ac_ct_STRIP"; then
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4201 $as_echo "$ac_ct_STRIP" >&6; }
4202 else
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207   if test "x$ac_ct_STRIP" = x; then
4208     STRIP=":"
4209   else
4210     case $cross_compiling:$ac_tool_warned in
4211 yes:)
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4214 ac_tool_warned=yes ;;
4215 esac
4216     STRIP=$ac_ct_STRIP
4217   fi
4218 else
4219   STRIP="$ac_cv_prog_STRIP"
4220 fi
4221
4222 fi
4223 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4224
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4226 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4227 if test -z "$MKDIR_P"; then
4228   if ${ac_cv_path_mkdir+:} false; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236     for ac_prog in mkdir gmkdir; do
4237          for ac_exec_ext in '' $ac_executable_extensions; do
4238            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4239            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4240              'mkdir (GNU coreutils) '* | \
4241              'mkdir (coreutils) '* | \
4242              'mkdir (fileutils) '4.1*)
4243                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4244                break 3;;
4245            esac
4246          done
4247        done
4248   done
4249 IFS=$as_save_IFS
4250
4251 fi
4252
4253   test -d ./--version && rmdir ./--version
4254   if test "${ac_cv_path_mkdir+set}" = set; then
4255     MKDIR_P="$ac_cv_path_mkdir -p"
4256   else
4257     # As a last resort, use the slow shell script.  Don't cache a
4258     # value for MKDIR_P within a source directory, because that will
4259     # break other packages using the cache if that directory is
4260     # removed, or if the value is a relative name.
4261     MKDIR_P="$ac_install_sh -d"
4262   fi
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4265 $as_echo "$MKDIR_P" >&6; }
4266
4267 for ac_prog in gawk mawk nawk awk
4268 do
4269   # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if ${ac_cv_prog_AWK+:} false; then :
4274   $as_echo_n "(cached) " >&6
4275 else
4276   if test -n "$AWK"; then
4277   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284     for ac_exec_ext in '' $ac_executable_extensions; do
4285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_prog_AWK="$ac_prog"
4287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291   done
4292 IFS=$as_save_IFS
4293
4294 fi
4295 fi
4296 AWK=$ac_cv_prog_AWK
4297 if test -n "$AWK"; then
4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4299 $as_echo "$AWK" >&6; }
4300 else
4301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4303 fi
4304
4305
4306   test -n "$AWK" && break
4307 done
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4310 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4311 set x ${MAKE-make}
4312 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4313 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   cat >conftest.make <<\_ACEOF
4317 SHELL = /bin/sh
4318 all:
4319         @echo '@@@%%%=$(MAKE)=@@@%%%'
4320 _ACEOF
4321 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4322 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4323   *@@@%%%=?*=@@@%%%*)
4324     eval ac_cv_prog_make_${ac_make}_set=yes;;
4325   *)
4326     eval ac_cv_prog_make_${ac_make}_set=no;;
4327 esac
4328 rm -f conftest.make
4329 fi
4330 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4332 $as_echo "yes" >&6; }
4333   SET_MAKE=
4334 else
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337   SET_MAKE="MAKE=${MAKE-make}"
4338 fi
4339
4340 rm -rf .tst 2>/dev/null
4341 mkdir .tst 2>/dev/null
4342 if test -d .tst; then
4343   am__leading_dot=.
4344 else
4345   am__leading_dot=_
4346 fi
4347 rmdir .tst 2>/dev/null
4348
4349 # Check whether --enable-silent-rules was given.
4350 if test "${enable_silent_rules+set}" = set; then :
4351   enableval=$enable_silent_rules;
4352 fi
4353
4354 case $enable_silent_rules in # (((
4355   yes) AM_DEFAULT_VERBOSITY=0;;
4356    no) AM_DEFAULT_VERBOSITY=1;;
4357     *) AM_DEFAULT_VERBOSITY=1;;
4358 esac
4359 am_make=${MAKE-make}
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4361 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4362 if ${am_cv_make_support_nested_variables+:} false; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if $as_echo 'TRUE=$(BAR$(V))
4366 BAR0=false
4367 BAR1=true
4368 V=1
4369 am__doit:
4370         @$(TRUE)
4371 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4372   am_cv_make_support_nested_variables=yes
4373 else
4374   am_cv_make_support_nested_variables=no
4375 fi
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4378 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4379 if test $am_cv_make_support_nested_variables = yes; then
4380     AM_V='$(V)'
4381   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4382 else
4383   AM_V=$AM_DEFAULT_VERBOSITY
4384   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4385 fi
4386 AM_BACKSLASH='\'
4387
4388
4389
4390   if test "`cd $srcdir && pwd`" != "`pwd`"; then
4391   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4392   # is not polluted with repeated "-I."
4393   am__isrc=' -I$(srcdir)'
4394   # test to see if srcdir already configured
4395   if test -f $srcdir/config.status; then
4396     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4397   fi
4398 fi
4399
4400 # test whether we have cygpath
4401 if test -z "$CYGPATH_W"; then
4402   if (cygpath --version) >/dev/null 2>/dev/null; then
4403     CYGPATH_W='cygpath -w'
4404   else
4405     CYGPATH_W=echo
4406   fi
4407 fi
4408
4409
4410 # Define the identity of the package.
4411  PACKAGE=''
4412  VERSION=''
4413
4414
4415 # Some tools Automake needs.
4416
4417 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4418
4419
4420 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4421
4422
4423 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4424
4425
4426 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4427
4428
4429 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4430
4431 # For better backward compatibility.  To be removed once Automake 1.9.x
4432 # dies out for good.  For more background, see:
4433 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4434 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4435 mkdir_p='$(MKDIR_P)'
4436
4437 # We need awk for the "check" target.  The system "awk" is bad on
4438 # some platforms.
4439 # Always define AMTAR for backward compatibility.  Yes, it's still used
4440 # in the wild :-(  We should find a proper way to deprecate it ...
4441 AMTAR='$${TAR-tar}'
4442
4443
4444 # We'll loop over all known methods to create a tar archive until one works.
4445 _am_tools='gnutar  pax cpio none'
4446
4447 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4448
4449
4450
4451
4452
4453
4454 # POSIX will say in a future version that running "rm -f" with no argument
4455 # is OK; and we want to be able to make that assumption in our Makefile
4456 # recipes.  So use an aggressive probe to check that the usage we want is
4457 # actually supported "in the wild" to an acceptable degree.
4458 # See automake bug#10828.
4459 # To make any issue more visible, cause the running configure to be aborted
4460 # by default if the 'rm' program in use doesn't match our expectations; the
4461 # user can still override this though.
4462 if rm -f && rm -fr && rm -rf; then : OK; else
4463   cat >&2 <<'END'
4464 Oops!
4465
4466 Your 'rm' program seems unable to run without file operands specified
4467 on the command line, even when the '-f' option is present.  This is contrary
4468 to the behaviour of most rm programs out there, and not conforming with
4469 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4470
4471 Please tell bug-automake@gnu.org about your system, including the value
4472 of your $PATH and any error possibly output before this message.  This
4473 can help us improve future automake versions.
4474
4475 END
4476   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4477     echo 'Configuration will proceed anyway, since you have set the' >&2
4478     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4479     echo >&2
4480   else
4481     cat >&2 <<'END'
4482 Aborting the configuration process, to ensure you take notice of the issue.
4483
4484 You can download and install GNU coreutils to get an 'rm' implementation
4485 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4486
4487 If you want to complete the configuration process using your problematic
4488 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4489 to "yes", and re-run configure.
4490
4491 END
4492     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4493   fi
4494 fi
4495     PACKAGE=gettext-tools
4496
4497      VERSION=$VERSION_NUMBER
4498
4499
4500
4501 cat >>confdefs.h <<_ACEOF
4502 #define PACKAGE "$PACKAGE"
4503 _ACEOF
4504
4505
4506 cat >>confdefs.h <<_ACEOF
4507 #define VERSION "$VERSION"
4508 _ACEOF
4509
4510
4511
4512 ac_config_headers="$ac_config_headers config.h"
4513
4514
4515 test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
4516
4517 ac_ext=c
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 if test -n "$ac_tool_prefix"; then
4523   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4524 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if ${ac_cv_prog_CC+:} false; then :
4528   $as_echo_n "(cached) " >&6
4529 else
4530   if test -n "$CC"; then
4531   ac_cv_prog_CC="$CC" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538     for ac_exec_ext in '' $ac_executable_extensions; do
4539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542     break 2
4543   fi
4544 done
4545   done
4546 IFS=$as_save_IFS
4547
4548 fi
4549 fi
4550 CC=$ac_cv_prog_CC
4551 if test -n "$CC"; then
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4553 $as_echo "$CC" >&6; }
4554 else
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557 fi
4558
4559
4560 fi
4561 if test -z "$ac_cv_prog_CC"; then
4562   ac_ct_CC=$CC
4563   # Extract the first word of "gcc", so it can be a program name with args.
4564 set dummy gcc; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   if test -n "$ac_ct_CC"; then
4571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578     for ac_exec_ext in '' $ac_executable_extensions; do
4579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4580     ac_cv_prog_ac_ct_CC="gcc"
4581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582     break 2
4583   fi
4584 done
4585   done
4586 IFS=$as_save_IFS
4587
4588 fi
4589 fi
4590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4591 if test -n "$ac_ct_CC"; then
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4593 $as_echo "$ac_ct_CC" >&6; }
4594 else
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4597 fi
4598
4599   if test "x$ac_ct_CC" = x; then
4600     CC=""
4601   else
4602     case $cross_compiling:$ac_tool_warned in
4603 yes:)
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4606 ac_tool_warned=yes ;;
4607 esac
4608     CC=$ac_ct_CC
4609   fi
4610 else
4611   CC="$ac_cv_prog_CC"
4612 fi
4613
4614 if test -z "$CC"; then
4615           if test -n "$ac_tool_prefix"; then
4616     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}cc; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if ${ac_cv_prog_CC+:} false; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if test -n "$CC"; then
4624   ac_cv_prog_CC="$CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631     for ac_exec_ext in '' $ac_executable_extensions; do
4632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633     ac_cv_prog_CC="${ac_tool_prefix}cc"
4634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638   done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 CC=$ac_cv_prog_CC
4644 if test -n "$CC"; then
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4646 $as_echo "$CC" >&6; }
4647 else
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4651
4652
4653   fi
4654 fi
4655 if test -z "$CC"; then
4656   # Extract the first word of "cc", so it can be a program name with args.
4657 set dummy cc; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_CC+:} false; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$CC"; then
4664   ac_cv_prog_CC="$CC" # Let the user override the test.
4665 else
4666   ac_prog_rejected=no
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672     for ac_exec_ext in '' $ac_executable_extensions; do
4673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4675        ac_prog_rejected=yes
4676        continue
4677      fi
4678     ac_cv_prog_CC="cc"
4679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683   done
4684 IFS=$as_save_IFS
4685
4686 if test $ac_prog_rejected = yes; then
4687   # We found a bogon in the path, so make sure we never use it.
4688   set dummy $ac_cv_prog_CC
4689   shift
4690   if test $# != 0; then
4691     # We chose a different compiler from the bogus one.
4692     # However, it has the same basename, so the bogon will be chosen
4693     # first if we set CC to just the basename; use the full file name.
4694     shift
4695     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4696   fi
4697 fi
4698 fi
4699 fi
4700 CC=$ac_cv_prog_CC
4701 if test -n "$CC"; then
4702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4703 $as_echo "$CC" >&6; }
4704 else
4705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4707 fi
4708
4709
4710 fi
4711 if test -z "$CC"; then
4712   if test -n "$ac_tool_prefix"; then
4713   for ac_prog in cl.exe
4714   do
4715     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if ${ac_cv_prog_CC+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   if test -n "$CC"; then
4723   ac_cv_prog_CC="$CC" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728   IFS=$as_save_IFS
4729   test -z "$as_dir" && as_dir=.
4730     for ac_exec_ext in '' $ac_executable_extensions; do
4731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4732     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734     break 2
4735   fi
4736 done
4737   done
4738 IFS=$as_save_IFS
4739
4740 fi
4741 fi
4742 CC=$ac_cv_prog_CC
4743 if test -n "$CC"; then
4744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4745 $as_echo "$CC" >&6; }
4746 else
4747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 $as_echo "no" >&6; }
4749 fi
4750
4751
4752     test -n "$CC" && break
4753   done
4754 fi
4755 if test -z "$CC"; then
4756   ac_ct_CC=$CC
4757   for ac_prog in cl.exe
4758 do
4759   # Extract the first word of "$ac_prog", so it can be a program name with args.
4760 set dummy $ac_prog; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4764   $as_echo_n "(cached) " >&6
4765 else
4766   if test -n "$ac_ct_CC"; then
4767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774     for ac_exec_ext in '' $ac_executable_extensions; do
4775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776     ac_cv_prog_ac_ct_CC="$ac_prog"
4777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778     break 2
4779   fi
4780 done
4781   done
4782 IFS=$as_save_IFS
4783
4784 fi
4785 fi
4786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4787 if test -n "$ac_ct_CC"; then
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4789 $as_echo "$ac_ct_CC" >&6; }
4790 else
4791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4793 fi
4794
4795
4796   test -n "$ac_ct_CC" && break
4797 done
4798
4799   if test "x$ac_ct_CC" = x; then
4800     CC=""
4801   else
4802     case $cross_compiling:$ac_tool_warned in
4803 yes:)
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806 ac_tool_warned=yes ;;
4807 esac
4808     CC=$ac_ct_CC
4809   fi
4810 fi
4811
4812 fi
4813
4814
4815 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4817 as_fn_error $? "no acceptable C compiler found in \$PATH
4818 See \`config.log' for more details" "$LINENO" 5; }
4819
4820 # Provide some information about the compiler.
4821 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4822 set X $ac_compile
4823 ac_compiler=$2
4824 for ac_option in --version -v -V -qversion; do
4825   { { ac_try="$ac_compiler $ac_option >&5"
4826 case "(($ac_try" in
4827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828   *) ac_try_echo=$ac_try;;
4829 esac
4830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4831 $as_echo "$ac_try_echo"; } >&5
4832   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4833   ac_status=$?
4834   if test -s conftest.err; then
4835     sed '10a\
4836 ... rest of stderr output deleted ...
4837          10q' conftest.err >conftest.er1
4838     cat conftest.er1 >&5
4839   fi
4840   rm -f conftest.er1 conftest.err
4841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4842   test $ac_status = 0; }
4843 done
4844
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h.  */
4847
4848 int
4849 main ()
4850 {
4851
4852   ;
4853   return 0;
4854 }
4855 _ACEOF
4856 ac_clean_files_save=$ac_clean_files
4857 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4858 # Try to create an executable without -o first, disregard a.out.
4859 # It will help us diagnose broken compilers, and finding out an intuition
4860 # of exeext.
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4862 $as_echo_n "checking whether the C compiler works... " >&6; }
4863 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4864
4865 # The possible output files:
4866 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4867
4868 ac_rmfiles=
4869 for ac_file in $ac_files
4870 do
4871   case $ac_file in
4872     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4873     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4874   esac
4875 done
4876 rm -f $ac_rmfiles
4877
4878 if { { ac_try="$ac_link_default"
4879 case "(($ac_try" in
4880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881   *) ac_try_echo=$ac_try;;
4882 esac
4883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4884 $as_echo "$ac_try_echo"; } >&5
4885   (eval "$ac_link_default") 2>&5
4886   ac_status=$?
4887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4888   test $ac_status = 0; }; then :
4889   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4890 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4891 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4892 # so that the user can short-circuit this test for compilers unknown to
4893 # Autoconf.
4894 for ac_file in $ac_files ''
4895 do
4896   test -f "$ac_file" || continue
4897   case $ac_file in
4898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4899         ;;
4900     [ab].out )
4901         # We found the default executable, but exeext='' is most
4902         # certainly right.
4903         break;;
4904     *.* )
4905         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4906         then :; else
4907            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4908         fi
4909         # We set ac_cv_exeext here because the later test for it is not
4910         # safe: cross compilers may not add the suffix if given an `-o'
4911         # argument, so we may need to know it at that point already.
4912         # Even if this section looks crufty: it has the advantage of
4913         # actually working.
4914         break;;
4915     * )
4916         break;;
4917   esac
4918 done
4919 test "$ac_cv_exeext" = no && ac_cv_exeext=
4920
4921 else
4922   ac_file=''
4923 fi
4924 if test -z "$ac_file"; then :
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 $as_echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4929
4930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4932 as_fn_error 77 "C compiler cannot create executables
4933 See \`config.log' for more details" "$LINENO" 5; }
4934 else
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4936 $as_echo "yes" >&6; }
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4939 $as_echo_n "checking for C compiler default output file name... " >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4941 $as_echo "$ac_file" >&6; }
4942 ac_exeext=$ac_cv_exeext
4943
4944 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4945 ac_clean_files=$ac_clean_files_save
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4947 $as_echo_n "checking for suffix of executables... " >&6; }
4948 if { { ac_try="$ac_link"
4949 case "(($ac_try" in
4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951   *) ac_try_echo=$ac_try;;
4952 esac
4953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4954 $as_echo "$ac_try_echo"; } >&5
4955   (eval "$ac_link") 2>&5
4956   ac_status=$?
4957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4958   test $ac_status = 0; }; then :
4959   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4960 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4961 # work properly (i.e., refer to `conftest.exe'), while it won't with
4962 # `rm'.
4963 for ac_file in conftest.exe conftest conftest.*; do
4964   test -f "$ac_file" || continue
4965   case $ac_file in
4966     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4967     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4968           break;;
4969     * ) break;;
4970   esac
4971 done
4972 else
4973   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4975 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4976 See \`config.log' for more details" "$LINENO" 5; }
4977 fi
4978 rm -f conftest conftest$ac_cv_exeext
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4980 $as_echo "$ac_cv_exeext" >&6; }
4981
4982 rm -f conftest.$ac_ext
4983 EXEEXT=$ac_cv_exeext
4984 ac_exeext=$EXEEXT
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h.  */
4987 #include <stdio.h>
4988 int
4989 main ()
4990 {
4991 FILE *f = fopen ("conftest.out", "w");
4992  return ferror (f) || fclose (f) != 0;
4993
4994   ;
4995   return 0;
4996 }
4997 _ACEOF
4998 ac_clean_files="$ac_clean_files conftest.out"
4999 # Check that the compiler produces executables we can run.  If not, either
5000 # the compiler is broken, or we cross compile.
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5002 $as_echo_n "checking whether we are cross compiling... " >&6; }
5003 if test "$cross_compiling" != yes; then
5004   { { ac_try="$ac_link"
5005 case "(($ac_try" in
5006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007   *) ac_try_echo=$ac_try;;
5008 esac
5009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5010 $as_echo "$ac_try_echo"; } >&5
5011   (eval "$ac_link") 2>&5
5012   ac_status=$?
5013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5014   test $ac_status = 0; }
5015   if { ac_try='./conftest$ac_cv_exeext'
5016   { { case "(($ac_try" in
5017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018   *) ac_try_echo=$ac_try;;
5019 esac
5020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5021 $as_echo "$ac_try_echo"; } >&5
5022   (eval "$ac_try") 2>&5
5023   ac_status=$?
5024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5025   test $ac_status = 0; }; }; then
5026     cross_compiling=no
5027   else
5028     if test "$cross_compiling" = maybe; then
5029         cross_compiling=yes
5030     else
5031         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033 as_fn_error $? "cannot run C compiled programs.
5034 If you meant to cross compile, use \`--host'.
5035 See \`config.log' for more details" "$LINENO" 5; }
5036     fi
5037   fi
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5040 $as_echo "$cross_compiling" >&6; }
5041
5042 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5043 ac_clean_files=$ac_clean_files_save
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5045 $as_echo_n "checking for suffix of object files... " >&6; }
5046 if ${ac_cv_objext+:} false; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h.  */
5051
5052 int
5053 main ()
5054 {
5055
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 rm -f conftest.o conftest.obj
5061 if { { ac_try="$ac_compile"
5062 case "(($ac_try" in
5063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064   *) ac_try_echo=$ac_try;;
5065 esac
5066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5067 $as_echo "$ac_try_echo"; } >&5
5068   (eval "$ac_compile") 2>&5
5069   ac_status=$?
5070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5071   test $ac_status = 0; }; then :
5072   for ac_file in conftest.o conftest.obj conftest.*; do
5073   test -f "$ac_file" || continue;
5074   case $ac_file in
5075     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5076     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5077        break;;
5078   esac
5079 done
5080 else
5081   $as_echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5086 as_fn_error $? "cannot compute suffix of object files: cannot compile
5087 See \`config.log' for more details" "$LINENO" 5; }
5088 fi
5089 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5092 $as_echo "$ac_cv_objext" >&6; }
5093 OBJEXT=$ac_cv_objext
5094 ac_objext=$OBJEXT
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5096 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5097 if ${ac_cv_c_compiler_gnu+:} false; then :
5098   $as_echo_n "(cached) " >&6
5099 else
5100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h.  */
5102
5103 int
5104 main ()
5105 {
5106 #ifndef __GNUC__
5107        choke me
5108 #endif
5109
5110   ;
5111   return 0;
5112 }
5113 _ACEOF
5114 if ac_fn_c_try_compile "$LINENO"; then :
5115   ac_compiler_gnu=yes
5116 else
5117   ac_compiler_gnu=no
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5121
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5124 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5125 if test $ac_compiler_gnu = yes; then
5126   GCC=yes
5127 else
5128   GCC=
5129 fi
5130 ac_test_CFLAGS=${CFLAGS+set}
5131 ac_save_CFLAGS=$CFLAGS
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5133 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5134 if ${ac_cv_prog_cc_g+:} false; then :
5135   $as_echo_n "(cached) " >&6
5136 else
5137   ac_save_c_werror_flag=$ac_c_werror_flag
5138    ac_c_werror_flag=yes
5139    ac_cv_prog_cc_g=no
5140    CFLAGS="-g"
5141    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h.  */
5143
5144 int
5145 main ()
5146 {
5147
5148   ;
5149   return 0;
5150 }
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153   ac_cv_prog_cc_g=yes
5154 else
5155   CFLAGS=""
5156       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h.  */
5158
5159 int
5160 main ()
5161 {
5162
5163   ;
5164   return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168
5169 else
5170   ac_c_werror_flag=$ac_save_c_werror_flag
5171          CFLAGS="-g"
5172          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h.  */
5174
5175 int
5176 main ()
5177 {
5178
5179   ;
5180   return 0;
5181 }
5182 _ACEOF
5183 if ac_fn_c_try_compile "$LINENO"; then :
5184   ac_cv_prog_cc_g=yes
5185 fi
5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187 fi
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191    ac_c_werror_flag=$ac_save_c_werror_flag
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5194 $as_echo "$ac_cv_prog_cc_g" >&6; }
5195 if test "$ac_test_CFLAGS" = set; then
5196   CFLAGS=$ac_save_CFLAGS
5197 elif test $ac_cv_prog_cc_g = yes; then
5198   if test "$GCC" = yes; then
5199     CFLAGS="-g -O2"
5200   else
5201     CFLAGS="-g"
5202   fi
5203 else
5204   if test "$GCC" = yes; then
5205     CFLAGS="-O2"
5206   else
5207     CFLAGS=
5208   fi
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5211 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5212 if ${ac_cv_prog_cc_c89+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   ac_cv_prog_cc_c89=no
5216 ac_save_CC=$CC
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h.  */
5219 #include <stdarg.h>
5220 #include <stdio.h>
5221 struct stat;
5222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5223 struct buf { int x; };
5224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5225 static char *e (p, i)
5226      char **p;
5227      int i;
5228 {
5229   return p[i];
5230 }
5231 static char *f (char * (*g) (char **, int), char **p, ...)
5232 {
5233   char *s;
5234   va_list v;
5235   va_start (v,p);
5236   s = g (p, va_arg (v,int));
5237   va_end (v);
5238   return s;
5239 }
5240
5241 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5242    function prototypes and stuff, but not '\xHH' hex character constants.
5243    These don't provoke an error unfortunately, instead are silently treated
5244    as 'x'.  The following induces an error, until -std is added to get
5245    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5246    array size at least.  It's necessary to write '\x00'==0 to get something
5247    that's true only with -std.  */
5248 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5249
5250 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5251    inside strings and character constants.  */
5252 #define FOO(x) 'x'
5253 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5254
5255 int test (int i, double x);
5256 struct s1 {int (*f) (int a);};
5257 struct s2 {int (*f) (double a);};
5258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5259 int argc;
5260 char **argv;
5261 int
5262 main ()
5263 {
5264 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5270         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5271 do
5272   CC="$ac_save_CC $ac_arg"
5273   if ac_fn_c_try_compile "$LINENO"; then :
5274   ac_cv_prog_cc_c89=$ac_arg
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext
5277   test "x$ac_cv_prog_cc_c89" != "xno" && break
5278 done
5279 rm -f conftest.$ac_ext
5280 CC=$ac_save_CC
5281
5282 fi
5283 # AC_CACHE_VAL
5284 case "x$ac_cv_prog_cc_c89" in
5285   x)
5286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5287 $as_echo "none needed" >&6; } ;;
5288   xno)
5289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5290 $as_echo "unsupported" >&6; } ;;
5291   *)
5292     CC="$CC $ac_cv_prog_cc_c89"
5293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5294 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5295 esac
5296 if test "x$ac_cv_prog_cc_c89" != xno; then :
5297
5298 fi
5299
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5312 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5313 if ${am_cv_prog_cc_c_o+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h.  */
5318
5319 int
5320 main ()
5321 {
5322
5323   ;
5324   return 0;
5325 }
5326 _ACEOF
5327   # Make sure it works both with $CC and with simple cc.
5328   # Following AC_PROG_CC_C_O, we do the test twice because some
5329   # compilers refuse to overwrite an existing .o file with -o,
5330   # though they will create one.
5331   am_cv_prog_cc_c_o=yes
5332   for am_i in 1 2; do
5333     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5334    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5335    ac_status=$?
5336    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337    (exit $ac_status); } \
5338          && test -f conftest2.$ac_objext; then
5339       : OK
5340     else
5341       am_cv_prog_cc_c_o=no
5342       break
5343     fi
5344   done
5345   rm -f core conftest*
5346   unset am_i
5347 fi
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5349 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5350 if test "$am_cv_prog_cc_c_o" != yes; then
5351    # Losing compiler, so override with the script.
5352    # FIXME: It is wrong to rewrite CC.
5353    # But if we don't then we get into trouble of one sort or another.
5354    # A longer-term fix would be to have automake use am__CC in this case,
5355    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5356    CC="$am_aux_dir/compile $CC"
5357 fi
5358 ac_ext=c
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364 DEPDIR="${am__leading_dot}deps"
5365
5366 ac_config_commands="$ac_config_commands depfiles"
5367
5368
5369 am_make=${MAKE-make}
5370 cat > confinc << 'END'
5371 am__doit:
5372         @echo this is the am__doit target
5373 .PHONY: am__doit
5374 END
5375 # If we don't find an include directive, just comment out the code.
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5377 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5378 am__include="#"
5379 am__quote=
5380 _am_result=none
5381 # First try GNU make style include.
5382 echo "include confinc" > confmf
5383 # Ignore all kinds of additional output from 'make'.
5384 case `$am_make -s -f confmf 2> /dev/null` in #(
5385 *the\ am__doit\ target*)
5386   am__include=include
5387   am__quote=
5388   _am_result=GNU
5389   ;;
5390 esac
5391 # Now try BSD make style include.
5392 if test "$am__include" = "#"; then
5393    echo '.include "confinc"' > confmf
5394    case `$am_make -s -f confmf 2> /dev/null` in #(
5395    *the\ am__doit\ target*)
5396      am__include=.include
5397      am__quote="\""
5398      _am_result=BSD
5399      ;;
5400    esac
5401 fi
5402
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5405 $as_echo "$_am_result" >&6; }
5406 rm -f confinc confmf
5407
5408 # Check whether --enable-dependency-tracking was given.
5409 if test "${enable_dependency_tracking+set}" = set; then :
5410   enableval=$enable_dependency_tracking;
5411 fi
5412
5413 if test "x$enable_dependency_tracking" != xno; then
5414   am_depcomp="$ac_aux_dir/depcomp"
5415   AMDEPBACKSLASH='\'
5416   am__nodep='_no'
5417 fi
5418  if test "x$enable_dependency_tracking" != xno; then
5419   AMDEP_TRUE=
5420   AMDEP_FALSE='#'
5421 else
5422   AMDEP_TRUE='#'
5423   AMDEP_FALSE=
5424 fi
5425
5426
5427
5428 depcc="$CC"   am_compiler_list=
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5431 $as_echo_n "checking dependency style of $depcc... " >&6; }
5432 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5436   # We make a subdir and do the tests there.  Otherwise we can end up
5437   # making bogus files that we don't know about and never remove.  For
5438   # instance it was reported that on HP-UX the gcc test will end up
5439   # making a dummy file named 'D' -- because '-MD' means "put the output
5440   # in D".
5441   rm -rf conftest.dir
5442   mkdir conftest.dir
5443   # Copy depcomp to subdir because otherwise we won't find it if we're
5444   # using a relative directory.
5445   cp "$am_depcomp" conftest.dir
5446   cd conftest.dir
5447   # We will build objects and dependencies in a subdirectory because
5448   # it helps to detect inapplicable dependency modes.  For instance
5449   # both Tru64's cc and ICC support -MD to output dependencies as a
5450   # side effect of compilation, but ICC will put the dependencies in
5451   # the current directory while Tru64 will put them in the object
5452   # directory.
5453   mkdir sub
5454
5455   am_cv_CC_dependencies_compiler_type=none
5456   if test "$am_compiler_list" = ""; then
5457      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5458   fi
5459   am__universal=false
5460   case " $depcc " in #(
5461      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5462      esac
5463
5464   for depmode in $am_compiler_list; do
5465     # Setup a source with many dependencies, because some compilers
5466     # like to wrap large dependency lists on column 80 (with \), and
5467     # we should not choose a depcomp mode which is confused by this.
5468     #
5469     # We need to recreate these files for each test, as the compiler may
5470     # overwrite some of them when testing with obscure command lines.
5471     # This happens at least with the AIX C compiler.
5472     : > sub/conftest.c
5473     for i in 1 2 3 4 5 6; do
5474       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5475       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5476       # Solaris 10 /bin/sh.
5477       echo '/* dummy */' > sub/conftst$i.h
5478     done
5479     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5480
5481     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5482     # mode.  It turns out that the SunPro C++ compiler does not properly
5483     # handle '-M -o', and we need to detect this.  Also, some Intel
5484     # versions had trouble with output in subdirs.
5485     am__obj=sub/conftest.${OBJEXT-o}
5486     am__minus_obj="-o $am__obj"
5487     case $depmode in
5488     gcc)
5489       # This depmode causes a compiler race in universal mode.
5490       test "$am__universal" = false || continue
5491       ;;
5492     nosideeffect)
5493       # After this tag, mechanisms are not by side-effect, so they'll
5494       # only be used when explicitly requested.
5495       if test "x$enable_dependency_tracking" = xyes; then
5496         continue
5497       else
5498         break
5499       fi
5500       ;;
5501     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5502       # This compiler won't grok '-c -o', but also, the minuso test has
5503       # not run yet.  These depmodes are late enough in the game, and
5504       # so weak that their functioning should not be impacted.
5505       am__obj=conftest.${OBJEXT-o}
5506       am__minus_obj=
5507       ;;
5508     none) break ;;
5509     esac
5510     if depmode=$depmode \
5511        source=sub/conftest.c object=$am__obj \
5512        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5513        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5514          >/dev/null 2>conftest.err &&
5515        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5516        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5517        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5518        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5519       # icc doesn't choke on unknown options, it will just issue warnings
5520       # or remarks (even with -Werror).  So we grep stderr for any message
5521       # that says an option was ignored or not supported.
5522       # When given -MP, icc 7.0 and 7.1 complain thusly:
5523       #   icc: Command line warning: ignoring option '-M'; no argument required
5524       # The diagnosis changed in icc 8.0:
5525       #   icc: Command line remark: option '-MP' not supported
5526       if (grep 'ignoring option' conftest.err ||
5527           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5528         am_cv_CC_dependencies_compiler_type=$depmode
5529         break
5530       fi
5531     fi
5532   done
5533
5534   cd ..
5535   rm -rf conftest.dir
5536 else
5537   am_cv_CC_dependencies_compiler_type=none
5538 fi
5539
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5542 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5543 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5544
5545  if
5546   test "x$enable_dependency_tracking" != xno \
5547   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5548   am__fastdepCC_TRUE=
5549   am__fastdepCC_FALSE='#'
5550 else
5551   am__fastdepCC_TRUE='#'
5552   am__fastdepCC_FALSE=
5553 fi
5554
5555
5556
5557 for ac_prog in 'bison -y' byacc
5558 do
5559   # Extract the first word of "$ac_prog", so it can be a program name with args.
5560 set dummy $ac_prog; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_YACC+:} false; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   if test -n "$YACC"; then
5567   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572   IFS=$as_save_IFS
5573   test -z "$as_dir" && as_dir=.
5574     for ac_exec_ext in '' $ac_executable_extensions; do
5575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576     ac_cv_prog_YACC="$ac_prog"
5577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578     break 2
5579   fi
5580 done
5581   done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 YACC=$ac_cv_prog_YACC
5587 if test -n "$YACC"; then
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5589 $as_echo "$YACC" >&6; }
5590 else
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596   test -n "$YACC" && break
5597 done
5598 test -n "$YACC" || YACC="yacc"
5599
5600
5601
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
5603 $as_echo_n "checking whether to use Java... " >&6; }
5604   # Check whether --enable-java was given.
5605 if test "${enable_java+set}" = set; then :
5606   enableval=$enable_java; JAVA_CHOICE="$enableval"
5607 else
5608   JAVA_CHOICE=yes
5609 fi
5610
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
5612 $as_echo "$JAVA_CHOICE" >&6; }
5613   if test "$JAVA_CHOICE" = yes; then
5614     # Check whether --enable-native-java was given.
5615 if test "${enable_native_java+set}" = set; then :
5616   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
5617 fi
5618
5619   fi
5620
5621
5622
5623
5624
5625
5626
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
5628 $as_echo_n "checking for Java to native code compiler... " >&6; }
5629   # Search for the gcj command or use the one provided by the user.
5630   if test -z "$GCJ"; then
5631                 if test -n "$ac_tool_prefix"; then
5632   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5633 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5634 :
5635 if ${ac_cv_prog_GCJ+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   if test -n "$GCJ"; then
5639   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646     for ac_exec_ext in '' $ac_executable_extensions; do
5647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650     break 2
5651   fi
5652 done
5653   done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 GCJ=$ac_cv_prog_GCJ
5659 if test -n "$GCJ"; then
5660   :
5661 else
5662   :
5663 fi
5664
5665
5666 fi
5667 if test -z "$ac_cv_prog_GCJ"; then
5668   ac_ct_GCJ=$GCJ
5669   # Extract the first word of "gcj", so it can be a program name with args.
5670 set dummy gcj; ac_word=$2
5671 :
5672 if ${ac_cv_prog_ac_ct_GCJ+:} false; then :
5673   $as_echo_n "(cached) " >&6
5674 else
5675   if test -n "$ac_ct_GCJ"; then
5676   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681   IFS=$as_save_IFS
5682   test -z "$as_dir" && as_dir=.
5683     for ac_exec_ext in '' $ac_executable_extensions; do
5684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685     ac_cv_prog_ac_ct_GCJ="gcj"
5686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687     break 2
5688   fi
5689 done
5690   done
5691 IFS=$as_save_IFS
5692
5693 fi
5694 fi
5695 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
5696 if test -n "$ac_ct_GCJ"; then
5697   :
5698 else
5699   :
5700 fi
5701
5702   if test "x$ac_ct_GCJ" = x; then
5703     GCJ="none"
5704   else
5705     case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned=yes ;;
5710 esac
5711     GCJ=$ac_ct_GCJ
5712   fi
5713 else
5714   GCJ="$ac_cv_prog_GCJ"
5715 fi
5716
5717               fi
5718   # Choose GCJFLAGS or use the one provided by the user.
5719   if test "$GCJ" != none; then
5720     test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
5721   fi
5722   # Check whether the version is ok and it can create executables.
5723   ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
5724   if test "$GCJ" != none \
5725      && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
5726      && (
5727       # See if libgcj.so is well installed and if exception handling works.
5728       cat > conftest.java <<EOF
5729 public class conftest {
5730   public static void main (String[] args) {
5731     try {
5732       java.util.ResourceBundle.getBundle("foobar");
5733     } catch (Exception e) {
5734     }
5735     System.exit(0);
5736   }
5737 }
5738 EOF
5739       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
5740   (eval $ac_gcj_link) 2>&5
5741   ac_status=$?
5742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5743   test $ac_status = 0; }
5744       error=$?
5745       if test $error = 0 && test "$cross_compiling" != yes; then
5746         # Run conftest and catch its exit status, but silently.
5747         error=`./conftest >/dev/null 2>&1; echo $?`
5748         test $error = 0 || error=1
5749         rm -f core conftest.core
5750       fi
5751       rm -f conftest.java conftest$ac_exeext
5752       exit $error
5753      ); then
5754     :
5755   else
5756     GCJ=none
5757   fi
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
5759 $as_echo "$GCJ" >&6; }
5760   if test "$GCJ" != none; then
5761     HAVE_GCJ=1
5762   else
5763     HAVE_GCJ=
5764   fi
5765
5766
5767
5768
5769 if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then
5770   BUILDJAVAEXE=yes
5771 else
5772   BUILDJAVAEXE=no
5773 fi
5774
5775
5776
5777 ac_ext=c
5778 ac_cpp='$CPP $CPPFLAGS'
5779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5783 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5784 # On Suns, sometimes $CPP names a directory.
5785 if test -n "$CPP" && test -d "$CPP"; then
5786   CPP=
5787 fi
5788 if test -z "$CPP"; then
5789   if ${ac_cv_prog_CPP+:} false; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792       # Double quotes because CPP needs to be expanded
5793     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5794     do
5795       ac_preproc_ok=false
5796 for ac_c_preproc_warn_flag in '' yes
5797 do
5798   # Use a header file that comes with gcc, so configuring glibc
5799   # with a fresh cross-compiler works.
5800   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5801   # <limits.h> exists even on freestanding compilers.
5802   # On the NeXT, cc -E runs the code through the compiler's parser,
5803   # not just through cpp. "Syntax error" is here to catch this case.
5804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h.  */
5806 #ifdef __STDC__
5807 # include <limits.h>
5808 #else
5809 # include <assert.h>
5810 #endif
5811                      Syntax error
5812 _ACEOF
5813 if ac_fn_c_try_cpp "$LINENO"; then :
5814
5815 else
5816   # Broken: fails on valid input.
5817 continue
5818 fi
5819 rm -f conftest.err conftest.i conftest.$ac_ext
5820
5821   # OK, works on sane cases.  Now check whether nonexistent headers
5822   # can be detected and how.
5823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h.  */
5825 #include <ac_nonexistent.h>
5826 _ACEOF
5827 if ac_fn_c_try_cpp "$LINENO"; then :
5828   # Broken: success on invalid input.
5829 continue
5830 else
5831   # Passes both tests.
5832 ac_preproc_ok=:
5833 break
5834 fi
5835 rm -f conftest.err conftest.i conftest.$ac_ext
5836
5837 done
5838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5839 rm -f conftest.i conftest.err conftest.$ac_ext
5840 if $ac_preproc_ok; then :
5841   break
5842 fi
5843
5844     done
5845     ac_cv_prog_CPP=$CPP
5846
5847 fi
5848   CPP=$ac_cv_prog_CPP
5849 else
5850   ac_cv_prog_CPP=$CPP
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5853 $as_echo "$CPP" >&6; }
5854 ac_preproc_ok=false
5855 for ac_c_preproc_warn_flag in '' yes
5856 do
5857   # Use a header file that comes with gcc, so configuring glibc
5858   # with a fresh cross-compiler works.
5859   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5860   # <limits.h> exists even on freestanding compilers.
5861   # On the NeXT, cc -E runs the code through the compiler's parser,
5862   # not just through cpp. "Syntax error" is here to catch this case.
5863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h.  */
5865 #ifdef __STDC__
5866 # include <limits.h>
5867 #else
5868 # include <assert.h>
5869 #endif
5870                      Syntax error
5871 _ACEOF
5872 if ac_fn_c_try_cpp "$LINENO"; then :
5873
5874 else
5875   # Broken: fails on valid input.
5876 continue
5877 fi
5878 rm -f conftest.err conftest.i conftest.$ac_ext
5879
5880   # OK, works on sane cases.  Now check whether nonexistent headers
5881   # can be detected and how.
5882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h.  */
5884 #include <ac_nonexistent.h>
5885 _ACEOF
5886 if ac_fn_c_try_cpp "$LINENO"; then :
5887   # Broken: success on invalid input.
5888 continue
5889 else
5890   # Passes both tests.
5891 ac_preproc_ok=:
5892 break
5893 fi
5894 rm -f conftest.err conftest.i conftest.$ac_ext
5895
5896 done
5897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5898 rm -f conftest.i conftest.err conftest.$ac_ext
5899 if $ac_preproc_ok; then :
5900
5901 else
5902   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5904 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5905 See \`config.log' for more details" "$LINENO" 5; }
5906 fi
5907
5908 ac_ext=c
5909 ac_cpp='$CPP $CPPFLAGS'
5910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5913
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5916 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5917 if ${ac_cv_path_GREP+:} false; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   if test -z "$GREP"; then
5921   ac_path_GREP_found=false
5922   # Loop through the user's path and test for each of PROGNAME-LIST
5923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928     for ac_prog in grep ggrep; do
5929     for ac_exec_ext in '' $ac_executable_extensions; do
5930       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5931       as_fn_executable_p "$ac_path_GREP" || continue
5932 # Check for GNU ac_path_GREP and select it if it is found.
5933   # Check for GNU $ac_path_GREP
5934 case `"$ac_path_GREP" --version 2>&1` in
5935 *GNU*)
5936   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5937 *)
5938   ac_count=0
5939   $as_echo_n 0123456789 >"conftest.in"
5940   while :
5941   do
5942     cat "conftest.in" "conftest.in" >"conftest.tmp"
5943     mv "conftest.tmp" "conftest.in"
5944     cp "conftest.in" "conftest.nl"
5945     $as_echo 'GREP' >> "conftest.nl"
5946     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5947     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5948     as_fn_arith $ac_count + 1 && ac_count=$as_val
5949     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5950       # Best one so far, save it but keep looking for a better one
5951       ac_cv_path_GREP="$ac_path_GREP"
5952       ac_path_GREP_max=$ac_count
5953     fi
5954     # 10*(2^10) chars as input seems more than enough
5955     test $ac_count -gt 10 && break
5956   done
5957   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5958 esac
5959
5960       $ac_path_GREP_found && break 3
5961     done
5962   done
5963   done
5964 IFS=$as_save_IFS
5965   if test -z "$ac_cv_path_GREP"; then
5966     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5967   fi
5968 else
5969   ac_cv_path_GREP=$GREP
5970 fi
5971
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5974 $as_echo "$ac_cv_path_GREP" >&6; }
5975  GREP="$ac_cv_path_GREP"
5976
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5979 $as_echo_n "checking for egrep... " >&6; }
5980 if ${ac_cv_path_EGREP+:} false; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5984    then ac_cv_path_EGREP="$GREP -E"
5985    else
5986      if test -z "$EGREP"; then
5987   ac_path_EGREP_found=false
5988   # Loop through the user's path and test for each of PROGNAME-LIST
5989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5991 do
5992   IFS=$as_save_IFS
5993   test -z "$as_dir" && as_dir=.
5994     for ac_prog in egrep; do
5995     for ac_exec_ext in '' $ac_executable_extensions; do
5996       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5997       as_fn_executable_p "$ac_path_EGREP" || continue
5998 # Check for GNU ac_path_EGREP and select it if it is found.
5999   # Check for GNU $ac_path_EGREP
6000 case `"$ac_path_EGREP" --version 2>&1` in
6001 *GNU*)
6002   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6003 *)
6004   ac_count=0
6005   $as_echo_n 0123456789 >"conftest.in"
6006   while :
6007   do
6008     cat "conftest.in" "conftest.in" >"conftest.tmp"
6009     mv "conftest.tmp" "conftest.in"
6010     cp "conftest.in" "conftest.nl"
6011     $as_echo 'EGREP' >> "conftest.nl"
6012     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6013     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6014     as_fn_arith $ac_count + 1 && ac_count=$as_val
6015     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6016       # Best one so far, save it but keep looking for a better one
6017       ac_cv_path_EGREP="$ac_path_EGREP"
6018       ac_path_EGREP_max=$ac_count
6019     fi
6020     # 10*(2^10) chars as input seems more than enough
6021     test $ac_count -gt 10 && break
6022   done
6023   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6024 esac
6025
6026       $ac_path_EGREP_found && break 3
6027     done
6028   done
6029   done
6030 IFS=$as_save_IFS
6031   if test -z "$ac_cv_path_EGREP"; then
6032     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6033   fi
6034 else
6035   ac_cv_path_EGREP=$EGREP
6036 fi
6037
6038    fi
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6041 $as_echo "$ac_cv_path_EGREP" >&6; }
6042  EGREP="$ac_cv_path_EGREP"
6043
6044
6045
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java virtual machine" >&5
6047 $as_echo_n "checking for Java virtual machine... " >&6; }
6048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h.  */
6050
6051 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
6052   yes
6053 #endif
6054
6055 _ACEOF
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057   $EGREP "yes" >/dev/null 2>&1; then :
6058   CLASSPATH_SEPARATOR=';'
6059 else
6060   CLASSPATH_SEPARATOR=':'
6061 fi
6062 rm -f conftest*
6063
6064   CONF_JAVA=
6065   HAVE_JAVA_ENVVAR=
6066   HAVE_GIJ=
6067   HAVE_JAVA=
6068   HAVE_JRE=
6069   HAVE_JVIEW=
6070   HAVE_JAVAEXEC=1
6071   if test -n "$JAVA"; then
6072     HAVE_JAVA_ENVVAR=1
6073     CONF_JAVA="$JAVA"
6074   else
6075                 # Extract the first word of "gij", so it can be a program name with args.
6076 set dummy gij; ac_word=$2
6077 :
6078 if ${ac_cv_prog_HAVE_GIJ_IN_PATH+:} false; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   if test -n "$HAVE_GIJ_IN_PATH"; then
6082   ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091     ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
6092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096   done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
6102 if test -n "$HAVE_GIJ_IN_PATH"; then
6103   :
6104 else
6105   :
6106 fi
6107
6108
6109     # Extract the first word of "java", so it can be a program name with args.
6110 set dummy java; ac_word=$2
6111 :
6112 if ${ac_cv_prog_HAVE_JAVA_IN_PATH+:} false; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   if test -n "$HAVE_JAVA_IN_PATH"; then
6116   ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125     ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
6126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130   done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
6136 if test -n "$HAVE_JAVA_IN_PATH"; then
6137   :
6138 else
6139   :
6140 fi
6141
6142
6143     # Extract the first word of "jre", so it can be a program name with args.
6144 set dummy jre; ac_word=$2
6145 :
6146 if ${ac_cv_prog_HAVE_JRE_IN_PATH+:} false; then :
6147   $as_echo_n "(cached) " >&6
6148 else
6149   if test -n "$HAVE_JRE_IN_PATH"; then
6150   ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157     for ac_exec_ext in '' $ac_executable_extensions; do
6158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159     ac_cv_prog_HAVE_JRE_IN_PATH="yes"
6160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164   done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
6170 if test -n "$HAVE_JRE_IN_PATH"; then
6171   :
6172 else
6173   :
6174 fi
6175
6176
6177     # Extract the first word of "jview", so it can be a program name with args.
6178 set dummy jview; ac_word=$2
6179 :
6180 if ${ac_cv_prog_HAVE_JVIEW_IN_PATH+:} false; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   if test -n "$HAVE_JVIEW_IN_PATH"; then
6184   ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191     for ac_exec_ext in '' $ac_executable_extensions; do
6192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193     ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
6194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198   done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
6204 if test -n "$HAVE_JVIEW_IN_PATH"; then
6205   :
6206 else
6207   :
6208 fi
6209
6210
6211
6212     export CLASSPATH
6213     if test -n "$HAVE_GIJ_IN_PATH" \
6214        && gij --version >/dev/null 2>/dev/null \
6215        ; then
6216       HAVE_GIJ=1
6217       CONF_JAVA="gij"
6218     else
6219       if test -n "$HAVE_JAVA_IN_PATH" \
6220          && java -version >/dev/null 2>/dev/null \
6221          ; then
6222         HAVE_JAVA=1
6223         CONF_JAVA="java"
6224       else
6225         if test -n "$HAVE_JRE_IN_PATH" \
6226            && (jre >/dev/null 2>/dev/null || test $? = 1) \
6227            ; then
6228           HAVE_JRE=1
6229           CONF_JAVA="jre"
6230         else
6231           if test -n "$HAVE_JVIEW_IN_PATH" \
6232              && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
6233              ; then
6234             HAVE_JVIEW=1
6235             CONF_JAVA="jview"
6236           else
6237             HAVE_JAVAEXEC=
6238           fi
6239         fi
6240       fi
6241     fi
6242
6243   fi
6244   if test -n "$HAVE_JAVAEXEC"; then
6245     ac_result="$CONF_JAVA"
6246   else
6247     ac_result="no"
6248   fi
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6250 $as_echo "$ac_result" >&6; }
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h.  */
6264
6265 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
6266   yes
6267 #endif
6268
6269 _ACEOF
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271   $EGREP "yes" >/dev/null 2>&1; then :
6272   CLASSPATH_SEPARATOR=';'
6273 else
6274   CLASSPATH_SEPARATOR=':'
6275 fi
6276 rm -f conftest*
6277
6278   source_version=1.3
6279   test -n "$source_version" || {
6280     as_fn_error $? "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
6281   }
6282   if test -n "$HAVE_JAVAEXEC"; then
6283               cat > conftestver.java <<EOF
6284 public class conftestver {
6285   public static void main (String[] args) {
6286     System.out.println(System.getProperty("java.specification.version"));
6287   }
6288 }
6289 EOF
6290                                                                       echo 'yzwx!$!I!D,!)!3+!4!5*!6,!4!7,!8!9)!:)!;"!(MeienN"!$FGW"!%Ojab"!2QeibRohZblVYZgb"!%hYei"!9FXQfYpYKgYidKUnleidLGW"!,Ujol_bPegb"!3_jicnbmnpblJfYpY/!*!+)!</!=!>"!=fYpYJmkb_ece_YnejiJpblmeji/!?!@)!A/!B!C"!._jicnbmnpbl"!3fYpYKgYidKSZfb_n"!3fYpYKgYidKUqmnbh"!$jon"!8QfYpYKejKTleinUnlbYhL"!.dbnTljkblnq"!EFQfYpYKgYidKUnleidLGQfYpYKgYidKUnleidL"!6fYpYKejKTleinUnlbYh"!)kleingi"!8FQfYpYKgYidKUnleidLGW!D!(!)!!!!!#!"!*!+!"!,!!!@!"!"!!!&Hu!"r!!!"!.!!!(!"!!!"!+!/!0!"!,!!!F!#!"!!!/s!#5$v!%t!&r!!!"!.!!!,!#!!!$!.!%!"!1!!!#!2' \
6291          | tr -d '\012\015' \
6292          | tr '!"#$%&()*+,./0123456789:;<=>?@ABCDEFGHJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzI' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \
6293          > conftestver.class
6294        target_version=`{
6295          unset JAVA_HOME
6296          echo "$as_me:6296: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver" >&5
6297          CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver 2>&5
6298        }`
6299        case "$target_version" in
6300          1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;;
6301          null)
6302                       target_version=1.1 ;;
6303          *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&5
6304 $as_echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;}
6305             target_version=1.1 ;;
6306        esac
6307      else
6308        target_version="1.1"
6309      fi
6310
6311   case "$source_version" in
6312     1.3) goodcode='class conftest {}'
6313          failcode='class conftestfail { static { assert(true); } }' ;;
6314     1.4) goodcode='class conftest     { static { assert(true); } }'
6315          failcode='class conftestfail<T> { T foo() { return null; } }' ;;
6316     1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
6317          failcode='class conftestfail syntax error' ;;
6318     *) as_fn_error $? "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
6319   esac
6320   case "$target_version" in
6321     1.1) cfversion=45 ;;
6322     1.2) cfversion=46 ;;
6323     1.3) cfversion=47 ;;
6324     1.4) cfversion=48 ;;
6325     1.5) cfversion=49 ;;
6326     1.6) cfversion=50 ;;
6327     *) as_fn_error $? "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
6328   esac
6329   # Function to output the classfile version of a file (8th byte) in decimal.
6330   if od -A x < /dev/null >/dev/null 2>/dev/null; then
6331     # Use POSIX od.
6332     func_classfile_version ()
6333     {
6334       od -A n -t d1 -j 7 -N 1 "$1"
6335     }
6336   else
6337     # Use BSD hexdump.
6338     func_classfile_version ()
6339     {
6340       dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
6341       echo
6342     }
6343   fi
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
6345 $as_echo_n "checking for Java compiler... " >&6; }
6346                                                                                         CONF_JAVAC=
6347   HAVE_JAVAC_ENVVAR=
6348   HAVE_GCJ_C=
6349   HAVE_JAVAC=
6350   HAVE_JIKES=
6351   HAVE_JAVACOMP=
6352   cat > conftestlib.java <<EOF
6353 public class conftestlib {
6354   public static void main (String[] args) {
6355   }
6356 }
6357 EOF
6358   echo "$goodcode" > conftest.java
6359   echo "$failcode" > conftestfail.java
6360         if test -n "$JAVAC"; then
6361         if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
6362             if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6363                         rm -f conftest.class
6364         if { echo "$as_me:6364: $JAVAC -d . conftest.java" >&5
6365              $JAVAC -d . conftest.java >&5 2>&1
6366            } \
6367            && test -f conftest.class \
6368            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6369                     rm -f conftest.class
6370           rm -f conftestfail.class
6371           if { echo "$as_me:6371: $JAVAC -fsource=$source_version -d . conftest.java" >&5
6372                $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
6373              } \
6374              && test -f conftest.class \
6375              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6376              && { echo "$as_me:6376: $JAVAC -d . conftestfail.java" >&5
6377                   $JAVAC -d . conftestfail.java >&5 2>&1
6378                 } \
6379              && test -f conftestfail.class \
6380              && ! { echo "$as_me:6380: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
6381                     $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6382                   }; then
6383             CONF_JAVAC="$JAVAC -fsource=$source_version"
6384             HAVE_JAVAC_ENVVAR=1
6385             HAVE_JAVACOMP=1
6386           else
6387             CONF_JAVAC="$JAVAC"
6388             HAVE_JAVAC_ENVVAR=1
6389             HAVE_JAVACOMP=1
6390           fi
6391         else
6392                     rm -f conftest.class
6393           rm -f conftestfail.class
6394           if { echo "$as_me:6394: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6395                $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6396              } \
6397              && test -f conftest.class \
6398              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6399             CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
6400             HAVE_JAVAC_ENVVAR=1
6401             HAVE_JAVACOMP=1
6402           fi
6403         fi
6404       else
6405                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6406                     rm -f conftest.class
6407           if { echo "$as_me:6407: $JAVAC -d . conftest.java" >&5
6408                $JAVAC -d . conftest.java >&5 2>&1
6409              } \
6410              && test -f conftest.class; then
6411             CONF_JAVAC="$JAVAC"
6412             HAVE_JAVAC_ENVVAR=1
6413             HAVE_JAVACOMP=1
6414           fi
6415         else
6416           if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
6417                                     javac_works=
6418             rm -f conftest.class
6419             if { echo "$as_me:6419: $JAVAC -d . conftest.java" >&5
6420                  $JAVAC -d . conftest.java >&5 2>&1
6421                } \
6422                && test -f conftest.class; then
6423               javac_works=1
6424             fi
6425             javac_noassert_works=
6426             rm -f conftest.class
6427             if { echo "$as_me:6427: $JAVAC -fno-assert -d . conftest.java" >&5
6428                  $JAVAC -fno-assert -d . conftest.java >&5 2>&1
6429                } \
6430                && test -f conftest.class; then
6431               javac_noassert_works=1
6432             fi
6433             if test -n "$javac_works" && test -n "$javac_noassert_works"; then
6434               rm -f conftestfail.class
6435               if { echo "$as_me:6435: $JAVAC -d . conftestfail.java" >&5
6436                    $JAVAC -d . conftestfail.java >&5 2>&1
6437                  } \
6438                  && test -f conftestfail.class \
6439                  && ! { echo "$as_me:6439: $JAVAC -fno-assert -d . conftestfail.java" >&5
6440                         $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
6441                       }; then
6442                                 javac_works=
6443               fi
6444             fi
6445             if test -n "$javac_works"; then
6446               CONF_JAVAC="$JAVAC"
6447               HAVE_JAVAC_ENVVAR=1
6448               HAVE_JAVACOMP=1
6449             else
6450               if test -n "$javac_noassert_works"; then
6451                 CONF_JAVAC="$JAVAC -fno-assert"
6452                 HAVE_JAVAC_ENVVAR=1
6453                 HAVE_JAVACOMP=1
6454               fi
6455             fi
6456           fi
6457         fi
6458       fi
6459     else
6460                   rm -f conftest.class
6461       if { echo "$as_me:6461: $JAVAC -d . conftest.java" >&5
6462            $JAVAC -d . conftest.java >&5 2>&1
6463          } \
6464          && test -f conftest.class \
6465          && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6466                 rm -f conftest.class
6467         rm -f conftestfail.class
6468         if { echo "$as_me:6468: $JAVAC -source $source_version -d . conftest.java" >&5
6469              $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
6470            } \
6471            && test -f conftest.class \
6472            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6473            && { echo "$as_me:6473: $JAVAC -d . conftestfail.java" >&5
6474                 $JAVAC -d . conftestfail.java >&5 2>&1
6475               } \
6476            && test -f conftestfail.class \
6477            && ! { echo "$as_me:6477: $JAVAC -source $source_version -d . conftestfail.java" >&5
6478                   $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
6479                 }; then
6480           CONF_JAVAC="$JAVAC -source $source_version"
6481           HAVE_JAVAC_ENVVAR=1
6482           HAVE_JAVACOMP=1
6483         else
6484           CONF_JAVAC="$JAVAC"
6485           HAVE_JAVAC_ENVVAR=1
6486           HAVE_JAVACOMP=1
6487         fi
6488       else
6489                         rm -f conftest.class
6490         if { echo "$as_me:6490: $JAVAC -target $target_version -d . conftest.java" >&5
6491              $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
6492            } \
6493            && test -f conftest.class \
6494            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6495                     rm -f conftest.class
6496           rm -f conftestfail.class
6497           if { echo "$as_me:6497: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6498                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6499              } \
6500              && test -f conftest.class \
6501              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6502              && { echo "$as_me:6502: $JAVAC -target $target_version -d . conftestfail.java" >&5
6503                   $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
6504                 } \
6505              && test -f conftestfail.class \
6506              && ! { echo "$as_me:6506: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
6507                     $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
6508                   }; then
6509             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6510             HAVE_JAVAC_ENVVAR=1
6511             HAVE_JAVACOMP=1
6512           else
6513             CONF_JAVAC="$JAVAC -target $target_version"
6514             HAVE_JAVAC_ENVVAR=1
6515             HAVE_JAVACOMP=1
6516           fi
6517         else
6518                                         rm -f conftest.class
6519           if { echo "$as_me:6519: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6520                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6521              } \
6522              && test -f conftest.class \
6523              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6524             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6525             HAVE_JAVAC_ENVVAR=1
6526             HAVE_JAVACOMP=1
6527           fi
6528         fi
6529       fi
6530     fi
6531   fi
6532   if test -z "$HAVE_JAVACOMP"; then
6533                 # Extract the first word of "gcj", so it can be a program name with args.
6534 set dummy gcj; ac_word=$2
6535 :
6536 if ${ac_cv_prog_HAVE_GCJ_IN_PATH+:} false; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   if test -n "$HAVE_GCJ_IN_PATH"; then
6540   ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547     for ac_exec_ext in '' $ac_executable_extensions; do
6548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549     ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
6550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554   done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
6560 if test -n "$HAVE_GCJ_IN_PATH"; then
6561   :
6562 else
6563   :
6564 fi
6565
6566
6567     # Extract the first word of "javac", so it can be a program name with args.
6568 set dummy javac; ac_word=$2
6569 :
6570 if ${ac_cv_prog_HAVE_JAVAC_IN_PATH+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   if test -n "$HAVE_JAVAC_IN_PATH"; then
6574   ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581     for ac_exec_ext in '' $ac_executable_extensions; do
6582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583     ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
6584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588   done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
6594 if test -n "$HAVE_JAVAC_IN_PATH"; then
6595   :
6596 else
6597   :
6598 fi
6599
6600
6601     # Extract the first word of "jikes", so it can be a program name with args.
6602 set dummy jikes; ac_word=$2
6603 :
6604 if ${ac_cv_prog_HAVE_JIKES_IN_PATH+:} false; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607   if test -n "$HAVE_JIKES_IN_PATH"; then
6608   ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613   IFS=$as_save_IFS
6614   test -z "$as_dir" && as_dir=.
6615     for ac_exec_ext in '' $ac_executable_extensions; do
6616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617     ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
6618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622   done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
6628 if test -n "$HAVE_JIKES_IN_PATH"; then
6629   :
6630 else
6631   :
6632 fi
6633
6634
6635                 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
6636             if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
6637                 if { echo "$as_me:6637: gcj -C -d . conftestlib.java" >&5
6638              gcj -C -d . conftestlib.java >&5 2>&1
6639            }; then
6640                     if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6641                                     rm -f conftest.class
6642             if { echo "$as_me:6642: gcj -C -d . conftest.java" >&5
6643                  gcj -C -d . conftest.java >&5 2>&1
6644                } \
6645                && test -f conftest.class \
6646                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6647                             rm -f conftest.class
6648               rm -f conftestfail.class
6649               if { echo "$as_me:6649: gcj -C -fsource=$source_version -d . conftest.java" >&5
6650                    gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
6651                  } \
6652                  && test -f conftest.class \
6653                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6654                  && { echo "$as_me:6654: gcj -C -d . conftestfail.java" >&5
6655                       gcj -C -d . conftestfail.java >&5 2>&1
6656                     } \
6657                  && test -f conftestfail.class \
6658                  && ! { echo "$as_me:6658: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
6659                         gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6660                       }; then
6661                 CONF_JAVAC="gcj -C -fsource=$source_version"
6662                 HAVE_JAVAC_ENVVAR=1
6663                 HAVE_JAVACOMP=1
6664               else
6665                 CONF_JAVAC="gcj -C"
6666                 HAVE_JAVAC_ENVVAR=1
6667                 HAVE_JAVACOMP=1
6668               fi
6669             else
6670                             rm -f conftest.class
6671               rm -f conftestfail.class
6672               if { echo "$as_me:6672: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6673                    gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6674                  } \
6675                  && test -f conftest.class \
6676                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6677                 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
6678                 HAVE_JAVAC_ENVVAR=1
6679                 HAVE_JAVACOMP=1
6680               fi
6681             fi
6682           else
6683                                                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6684               rm -f conftest.class
6685               if { echo "$as_me:6685: gcj -C -d . conftest.java" >&5
6686                    gcj -C -d . conftest.java >&5 2>&1
6687                  } \
6688                  && test -f conftest.class; then
6689                 CONF_JAVAC="gcj -C"
6690                 HAVE_GCJ_C=1
6691                 HAVE_JAVACOMP=1
6692               fi
6693             else
6694               if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
6695                                                 rm -f conftest.class
6696                 if { echo "$as_me:6696: gcj -C -fno-assert -d . conftest.java" >&5
6697                      gcj -C -fno-assert -d . conftest.java >&5 2>&1
6698                    } \
6699                    && test -f conftest.class; then
6700                   CONF_JAVAC="gcj -C -fno-assert"
6701                   HAVE_GCJ_C=1
6702                   HAVE_JAVACOMP=1
6703                 else
6704                   rm -f conftest.class
6705                   if { echo "$as_me:6705: gcj -C -d . conftest.java" >&5
6706                        gcj -C -d . conftest.java >&5 2>&1
6707                      } \
6708                      && test -f conftest.class; then
6709                     CONF_JAVAC="gcj -C"
6710                     HAVE_GCJ_C=1
6711                     HAVE_JAVACOMP=1
6712                   fi
6713                 fi
6714               fi
6715             fi
6716           fi
6717         fi
6718       fi
6719     fi
6720     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
6721             if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
6722          && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then
6723                                 rm -f conftest.class
6724         if { echo "$as_me:6724: javac -d . conftest.java" >&5
6725              javac -d . conftest.java >&5 2>&1
6726            } \
6727            && test -f conftest.class \
6728            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6729                     rm -f conftest.class
6730           rm -f conftestfail.class
6731           if { echo "$as_me:6731: javac -source $source_version -d . conftest.java" >&5
6732                javac -source "$source_version" -d . conftest.java >&5 2>&1
6733              } \
6734              && test -f conftest.class \
6735              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6736              && { echo "$as_me:6736: javac -d . conftestfail.java" >&5
6737                   javac -d . conftestfail.java >&5 2>&1
6738                 } \
6739              && test -f conftestfail.class \
6740              && ! { echo "$as_me:6740: javac -source $source_version -d . conftestfail.java" >&5
6741                     javac -source "$source_version" -d . conftestfail.java >&5 2>&1
6742                   }; then
6743             CONF_JAVAC="javac -source $source_version"
6744             HAVE_JAVAC=1
6745             HAVE_JAVACOMP=1
6746           else
6747             CONF_JAVAC="javac"
6748             HAVE_JAVAC=1
6749             HAVE_JAVACOMP=1
6750           fi
6751         else
6752                               rm -f conftest.class
6753           if { echo "$as_me:6753: javac -target $target_version -d . conftest.java" >&5
6754                javac -target "$target_version" -d . conftest.java >&5 2>&1
6755              } \
6756              && test -f conftest.class \
6757              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6758                         rm -f conftest.class
6759             rm -f conftestfail.class
6760             if { echo "$as_me:6760: javac -target $target_version -source $source_version -d . conftest.java" >&5
6761                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6762                } \
6763                && test -f conftest.class \
6764                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6765                && { echo "$as_me:6765: javac -target $target_version -d . conftestfail.java" >&5
6766                     javac -target "$target_version" -d . conftestfail.java >&5 2>&1
6767                   } \
6768                && test -f conftestfail.class \
6769                && ! { echo "$as_me:6769: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
6770                       javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
6771                     }; then
6772               CONF_JAVAC="javac -target $target_version -source $source_version"
6773               HAVE_JAVAC=1
6774               HAVE_JAVACOMP=1
6775             else
6776               CONF_JAVAC="javac -target $target_version"
6777               HAVE_JAVAC=1
6778               HAVE_JAVACOMP=1
6779             fi
6780           else
6781                                                 rm -f conftest.class
6782             if { echo "$as_me:6782: javac -target $target_version -source $source_version -d . conftest.java" >&5
6783                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6784                } \
6785                && test -f conftest.class \
6786                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6787               CONF_JAVAC="javac -target $target_version -source $source_version"
6788               HAVE_JAVAC=1
6789               HAVE_JAVACOMP=1
6790             fi
6791           fi
6792         fi
6793       fi
6794     fi
6795     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
6796             if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
6797          && (
6798               # See if the existing CLASSPATH is sufficient to make jikes work.
6799               unset JAVA_HOME
6800               jikes conftestlib.java >&5 2>&1
6801               error=$?
6802               rm -f conftestlib.class
6803               exit $error
6804             ); then
6805                                 if test "$source_version" = 1.3; then
6806           CONF_JAVAC="jikes"
6807           HAVE_JIKES=1
6808           HAVE_JAVACOMP=1
6809         fi
6810       fi
6811     fi
6812   fi
6813   rm -f conftest*.java conftest*.class
6814   if test -n "$HAVE_JAVACOMP"; then
6815     ac_result="$CONF_JAVAC"
6816   else
6817     ac_result="no"
6818   fi
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6820 $as_echo "$ac_result" >&6; }
6821
6822
6823
6824
6825
6826
6827
6828
6829 # Extract the first word of "jar", so it can be a program name with args.
6830 set dummy jar; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_prog_JAR+:} false; then :
6834   $as_echo_n "(cached) " >&6
6835 else
6836   if test -n "$JAR"; then
6837   ac_cv_prog_JAR="$JAR" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842   IFS=$as_save_IFS
6843   test -z "$as_dir" && as_dir=.
6844     for ac_exec_ext in '' $ac_executable_extensions; do
6845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846     ac_cv_prog_JAR="jar"
6847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848     break 2
6849   fi
6850 done
6851   done
6852 IFS=$as_save_IFS
6853
6854 fi
6855 fi
6856 JAR=$ac_cv_prog_JAR
6857 if test -n "$JAR"; then
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
6859 $as_echo "$JAR" >&6; }
6860 else
6861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6863 fi
6864
6865
6866 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
6867   BUILDJAVA=yes
6868 else
6869   BUILDJAVA=no
6870 fi
6871
6872 if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
6873   TESTJAVA=yes
6874 else
6875   TESTJAVA=no
6876 fi
6877
6878
6879
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
6881 $as_echo_n "checking for preferred C# implementation... " >&6; }
6882   # Check whether --enable-csharp was given.
6883 if test "${enable_csharp+set}" = set; then :
6884   enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
6885 else
6886   CSHARP_CHOICE=any
6887 fi
6888
6889
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
6891 $as_echo "$CSHARP_CHOICE" >&6; }
6892   case "$CSHARP_CHOICE" in
6893     pnet)
6894
6895 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
6896
6897       ;;
6898     mono)
6899
6900 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
6901
6902       ;;
6903   esac
6904
6905
6906
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
6908 $as_echo_n "checking for C# compiler... " >&6; }
6909   HAVE_CSHARPCOMP=1
6910         # Extract the first word of "cscc", so it can be a program name with args.
6911 set dummy cscc; ac_word=$2
6912 :
6913 if ${ac_cv_prog_HAVE_CSCC_IN_PATH+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   if test -n "$HAVE_CSCC_IN_PATH"; then
6917   ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924     for ac_exec_ext in '' $ac_executable_extensions; do
6925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926     ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
6927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931   done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
6937 if test -n "$HAVE_CSCC_IN_PATH"; then
6938   :
6939 else
6940   :
6941 fi
6942
6943
6944   # Extract the first word of "mcs", so it can be a program name with args.
6945 set dummy mcs; ac_word=$2
6946 :
6947 if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then :
6948   $as_echo_n "(cached) " >&6
6949 else
6950   if test -n "$HAVE_MCS_IN_PATH"; then
6951   ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958     for ac_exec_ext in '' $ac_executable_extensions; do
6959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960     ac_cv_prog_HAVE_MCS_IN_PATH="yes"
6961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965   done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
6971 if test -n "$HAVE_MCS_IN_PATH"; then
6972   :
6973 else
6974   :
6975 fi
6976
6977
6978   # Extract the first word of "csc", so it can be a program name with args.
6979 set dummy csc; ac_word=$2
6980 :
6981 if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984   if test -n "$HAVE_CSC_IN_PATH"; then
6985   ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990   IFS=$as_save_IFS
6991   test -z "$as_dir" && as_dir=.
6992     for ac_exec_ext in '' $ac_executable_extensions; do
6993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994     ac_cv_prog_HAVE_CSC_IN_PATH="yes"
6995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996     break 2
6997   fi
6998 done
6999   done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
7005 if test -n "$HAVE_CSC_IN_PATH"; then
7006   :
7007 else
7008   :
7009 fi
7010
7011
7012         for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
7013     case "$impl" in
7014       pnet)
7015         if test -n "$HAVE_CSCC_IN_PATH" \
7016            && cscc --version >/dev/null 2>/dev/null \
7017            && (
7018              # See if pnetlib is well installed.
7019              echo 'class ConfTest { static void Main() { } }' > conftest.cs
7020              cscc -o conftest.exe conftest.cs 2>/dev/null
7021              error=$?
7022              rm -f conftest.cs conftest.exe
7023              exit $error
7024             ); then
7025           HAVE_CSCC=1
7026           ac_result="cscc"
7027           break
7028         fi
7029         ;;
7030       mono)
7031         if test -n "$HAVE_MCS_IN_PATH" \
7032            && mcs --version >/dev/null 2>/dev/null \
7033            && mcs --version 2>/dev/null | grep Mono >/dev/null; then
7034           HAVE_MCS=1
7035           ac_result="mcs"
7036           break
7037         fi
7038         ;;
7039       sscli)
7040         if test -n "$HAVE_CSC_IN_PATH" \
7041            && csc -help >/dev/null 2>/dev/null \
7042            && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
7043           HAVE_CSC=1
7044           ac_result="csc"
7045           break
7046         fi
7047         ;;
7048       no)
7049         HAVE_CSHARPCOMP=
7050         ac_result="no"
7051         break
7052         ;;
7053     esac
7054   done
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
7056 $as_echo "$ac_result" >&6; }
7057
7058
7059
7060     if test -z "${CSHARPCOMPFLAGS+set}"; then
7061     CSHARPCOMPFLAGS="-O -g"
7062   fi
7063
7064
7065 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
7066   BUILDCSHARP=yes
7067 else
7068   BUILDCSHARP=no
7069 fi
7070
7071
7072
7073
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# program execution engine" >&5
7075 $as_echo_n "checking for C# program execution engine... " >&6; }
7076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h.  */
7078
7079 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
7080   yes
7081 #endif
7082
7083 _ACEOF
7084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7085   $EGREP "yes" >/dev/null 2>&1; then :
7086   MONO_PATH_SEPARATOR=';'
7087 else
7088   MONO_PATH_SEPARATOR=':'
7089 fi
7090 rm -f conftest*
7091
7092   HAVE_CSHARPEXEC=1
7093         # Extract the first word of "ilrun", so it can be a program name with args.
7094 set dummy ilrun; ac_word=$2
7095 :
7096 if ${ac_cv_prog_HAVE_ILRUN_IN_PATH+:} false; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   if test -n "$HAVE_ILRUN_IN_PATH"; then
7100   ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107     for ac_exec_ext in '' $ac_executable_extensions; do
7108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109     ac_cv_prog_HAVE_ILRUN_IN_PATH="yes"
7110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114   done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH
7120 if test -n "$HAVE_ILRUN_IN_PATH"; then
7121   :
7122 else
7123   :
7124 fi
7125
7126
7127   # Extract the first word of "mono", so it can be a program name with args.
7128 set dummy mono; ac_word=$2
7129 :
7130 if ${ac_cv_prog_HAVE_MONO_IN_PATH+:} false; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   if test -n "$HAVE_MONO_IN_PATH"; then
7134   ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141     for ac_exec_ext in '' $ac_executable_extensions; do
7142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143     ac_cv_prog_HAVE_MONO_IN_PATH="yes"
7144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148   done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH
7154 if test -n "$HAVE_MONO_IN_PATH"; then
7155   :
7156 else
7157   :
7158 fi
7159
7160
7161   # Extract the first word of "clix", so it can be a program name with args.
7162 set dummy clix; ac_word=$2
7163 :
7164 if ${ac_cv_prog_HAVE_CLIX_IN_PATH+:} false; then :
7165   $as_echo_n "(cached) " >&6
7166 else
7167   if test -n "$HAVE_CLIX_IN_PATH"; then
7168   ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175     for ac_exec_ext in '' $ac_executable_extensions; do
7176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177     ac_cv_prog_HAVE_CLIX_IN_PATH="yes"
7178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182   done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH
7188 if test -n "$HAVE_CLIX_IN_PATH"; then
7189   :
7190 else
7191   :
7192 fi
7193
7194
7195         for impl in "$CSHARP_CHOICE" pnet mono no; do
7196     case "$impl" in
7197       pnet)
7198         if test -n "$HAVE_ILRUN_IN_PATH" \
7199            && ilrun --version >/dev/null 2>/dev/null \
7200            && ilrun $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
7201           HAVE_ILRUN=1
7202           ac_result="ilrun"
7203           break
7204         fi
7205         ;;
7206       mono)
7207         if test -n "$HAVE_MONO_IN_PATH" \
7208            && mono --version >/dev/null 2>/dev/null \
7209            && mono $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
7210           HAVE_MONO=1
7211           ac_result="mono"
7212           break
7213         fi
7214         ;;
7215       sscli)
7216         if test -n "$HAVE_CLIX_IN_PATH" \
7217            && clix $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
7218           HAVE_CLIX=1
7219           case $host_os in
7220             cygwin* | mingw* | pw32*)
7221               CLIX_PATH_VAR=PATH
7222               ;;
7223             darwin* | rhapsody*)
7224               CLIX_PATH_VAR=DYLD_LIBRARY_PATH
7225               ;;
7226             *)
7227               CLIX_PATH_VAR=LD_LIBRARY_PATH
7228               ;;
7229           esac
7230           eval CLIX_PATH=\"\$CLIX_PATH_VAR\"
7231           ac_result="clix"
7232           break
7233         fi
7234         ;;
7235       no)
7236         HAVE_CSHARPEXEC=
7237         ac_result="no"
7238         break
7239         ;;
7240     esac
7241   done
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
7243 $as_echo "$ac_result" >&6; }
7244
7245
7246
7247
7248
7249
7250
7251
7252 if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
7253   TESTCSHARP=yes
7254 else
7255   TESTCSHARP=no
7256 fi
7257
7258
7259 # Make sure we can run config.sub.
7260 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7261   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7262
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7264 $as_echo_n "checking build system type... " >&6; }
7265 if ${ac_cv_build+:} false; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268   ac_build_alias=$build_alias
7269 test "x$ac_build_alias" = x &&
7270   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7271 test "x$ac_build_alias" = x &&
7272   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7273 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7274   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7275
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7278 $as_echo "$ac_cv_build" >&6; }
7279 case $ac_cv_build in
7280 *-*-*) ;;
7281 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7282 esac
7283 build=$ac_cv_build
7284 ac_save_IFS=$IFS; IFS='-'
7285 set x $ac_cv_build
7286 shift
7287 build_cpu=$1
7288 build_vendor=$2
7289 shift; shift
7290 # Remember, the first character of IFS is used to create $*,
7291 # except with old shells:
7292 build_os=$*
7293 IFS=$ac_save_IFS
7294 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7295
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7298 $as_echo_n "checking host system type... " >&6; }
7299 if ${ac_cv_host+:} false; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   if test "x$host_alias" = x; then
7303   ac_cv_host=$ac_cv_build
7304 else
7305   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7306     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7307 fi
7308
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7311 $as_echo "$ac_cv_host" >&6; }
7312 case $ac_cv_host in
7313 *-*-*) ;;
7314 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7315 esac
7316 host=$ac_cv_host
7317 ac_save_IFS=$IFS; IFS='-'
7318 set x $ac_cv_host
7319 shift
7320 host_cpu=$1
7321 host_vendor=$2
7322 shift; shift
7323 # Remember, the first character of IFS is used to create $*,
7324 # except with old shells:
7325 host_os=$*
7326 IFS=$ac_save_IFS
7327 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7328
7329
7330
7331
7332
7333
7334
7335
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7337 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
7338 if ${gl_cv_c_amsterdam_compiler+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341
7342       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h.  */
7344
7345 #ifdef __ACK__
7346 Amsterdam
7347 #endif
7348
7349 _ACEOF
7350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7351   $EGREP "Amsterdam" >/dev/null 2>&1; then :
7352   gl_cv_c_amsterdam_compiler=yes
7353 else
7354   gl_cv_c_amsterdam_compiler=no
7355 fi
7356 rm -f conftest*
7357
7358
7359 fi
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7361 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
7362   if test -z "$AR"; then
7363     if test $gl_cv_c_amsterdam_compiler = yes; then
7364       AR='cc -c.a'
7365       if test -z "$ARFLAGS"; then
7366         ARFLAGS='-o'
7367       fi
7368     else
7369                   if test -n "$ac_tool_prefix"; then
7370   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7371 set dummy ${ac_tool_prefix}ar; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_AR+:} false; then :
7375   $as_echo_n "(cached) " >&6
7376 else
7377   if test -n "$AR"; then
7378   ac_cv_prog_AR="$AR" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383   IFS=$as_save_IFS
7384   test -z "$as_dir" && as_dir=.
7385     for ac_exec_ext in '' $ac_executable_extensions; do
7386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387     ac_cv_prog_AR="${ac_tool_prefix}ar"
7388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389     break 2
7390   fi
7391 done
7392   done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 AR=$ac_cv_prog_AR
7398 if test -n "$AR"; then
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7400 $as_echo "$AR" >&6; }
7401 else
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406
7407 fi
7408 if test -z "$ac_cv_prog_AR"; then
7409   ac_ct_AR=$AR
7410   # Extract the first word of "ar", so it can be a program name with args.
7411 set dummy ar; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417   if test -n "$ac_ct_AR"; then
7418   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427     ac_cv_prog_ac_ct_AR="ar"
7428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7438 if test -n "$ac_ct_AR"; then
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7440 $as_echo "$ac_ct_AR" >&6; }
7441 else
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446   if test "x$ac_ct_AR" = x; then
7447     AR="ar"
7448   else
7449     case $cross_compiling:$ac_tool_warned in
7450 yes:)
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7454 esac
7455     AR=$ac_ct_AR
7456   fi
7457 else
7458   AR="$ac_cv_prog_AR"
7459 fi
7460
7461       if test -z "$ARFLAGS"; then
7462         ARFLAGS='cru'
7463       fi
7464     fi
7465   else
7466     if test -z "$ARFLAGS"; then
7467       ARFLAGS='cru'
7468     fi
7469   fi
7470
7471
7472   if test -z "$RANLIB"; then
7473     if test $gl_cv_c_amsterdam_compiler = yes; then
7474       RANLIB=':'
7475     else
7476             if test -n "$ac_tool_prefix"; then
7477   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_RANLIB+:} false; then :
7482   $as_echo_n "(cached) " >&6
7483 else
7484   if test -n "$RANLIB"; then
7485   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492     for ac_exec_ext in '' $ac_executable_extensions; do
7493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499   done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 RANLIB=$ac_cv_prog_RANLIB
7505 if test -n "$RANLIB"; then
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7507 $as_echo "$RANLIB" >&6; }
7508 else
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 fi
7512
7513
7514 fi
7515 if test -z "$ac_cv_prog_RANLIB"; then
7516   ac_ct_RANLIB=$RANLIB
7517   # Extract the first word of "ranlib", so it can be a program name with args.
7518 set dummy ranlib; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524   if test -n "$ac_ct_RANLIB"; then
7525   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532     for ac_exec_ext in '' $ac_executable_extensions; do
7533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534     ac_cv_prog_ac_ct_RANLIB="ranlib"
7535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536     break 2
7537   fi
7538 done
7539   done
7540 IFS=$as_save_IFS
7541
7542 fi
7543 fi
7544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7545 if test -n "$ac_ct_RANLIB"; then
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7547 $as_echo "$ac_ct_RANLIB" >&6; }
7548 else
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551 fi
7552
7553   if test "x$ac_ct_RANLIB" = x; then
7554     RANLIB=":"
7555   else
7556     case $cross_compiling:$ac_tool_warned in
7557 yes:)
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560 ac_tool_warned=yes ;;
7561 esac
7562     RANLIB=$ac_ct_RANLIB
7563   fi
7564 else
7565   RANLIB="$ac_cv_prog_RANLIB"
7566 fi
7567
7568     fi
7569   fi
7570
7571
7572
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7574 $as_echo_n "checking for ANSI C header files... " >&6; }
7575 if ${ac_cv_header_stdc+:} false; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h.  */
7580 #include <stdlib.h>
7581 #include <stdarg.h>
7582 #include <string.h>
7583 #include <float.h>
7584
7585 int
7586 main ()
7587 {
7588
7589   ;
7590   return 0;
7591 }
7592 _ACEOF
7593 if ac_fn_c_try_compile "$LINENO"; then :
7594   ac_cv_header_stdc=yes
7595 else
7596   ac_cv_header_stdc=no
7597 fi
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599
7600 if test $ac_cv_header_stdc = yes; then
7601   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h.  */
7604 #include <string.h>
7605
7606 _ACEOF
7607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7608   $EGREP "memchr" >/dev/null 2>&1; then :
7609
7610 else
7611   ac_cv_header_stdc=no
7612 fi
7613 rm -f conftest*
7614
7615 fi
7616
7617 if test $ac_cv_header_stdc = yes; then
7618   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h.  */
7621 #include <stdlib.h>
7622
7623 _ACEOF
7624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7625   $EGREP "free" >/dev/null 2>&1; then :
7626
7627 else
7628   ac_cv_header_stdc=no
7629 fi
7630 rm -f conftest*
7631
7632 fi
7633
7634 if test $ac_cv_header_stdc = yes; then
7635   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7636   if test "$cross_compiling" = yes; then :
7637   :
7638 else
7639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h.  */
7641 #include <ctype.h>
7642 #include <stdlib.h>
7643 #if ((' ' & 0x0FF) == 0x020)
7644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7646 #else
7647 # define ISLOWER(c) \
7648                    (('a' <= (c) && (c) <= 'i') \
7649                      || ('j' <= (c) && (c) <= 'r') \
7650                      || ('s' <= (c) && (c) <= 'z'))
7651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7652 #endif
7653
7654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7655 int
7656 main ()
7657 {
7658   int i;
7659   for (i = 0; i < 256; i++)
7660     if (XOR (islower (i), ISLOWER (i))
7661         || toupper (i) != TOUPPER (i))
7662       return 2;
7663   return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_run "$LINENO"; then :
7667
7668 else
7669   ac_cv_header_stdc=no
7670 fi
7671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7672   conftest.$ac_objext conftest.beam conftest.$ac_ext
7673 fi
7674
7675 fi
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7678 $as_echo "$ac_cv_header_stdc" >&6; }
7679 if test $ac_cv_header_stdc = yes; then
7680
7681 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7682
7683 fi
7684
7685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7687                   inttypes.h stdint.h unistd.h
7688 do :
7689   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7690 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7691 "
7692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7693   cat >>confdefs.h <<_ACEOF
7694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7695 _ACEOF
7696
7697 fi
7698
7699 done
7700
7701
7702
7703   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7704 if test "x$ac_cv_header_minix_config_h" = xyes; then :
7705   MINIX=yes
7706 else
7707   MINIX=
7708 fi
7709
7710
7711   if test "$MINIX" = yes; then
7712
7713 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7714
7715
7716 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7717
7718
7719 $as_echo "#define _MINIX 1" >>confdefs.h
7720
7721
7722 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7723
7724   fi
7725
7726
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7728 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7729 if ${ac_cv_safe_to_define___extensions__+:} false; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h.  */
7734
7735 #         define __EXTENSIONS__ 1
7736           $ac_includes_default
7737 int
7738 main ()
7739 {
7740
7741   ;
7742   return 0;
7743 }
7744 _ACEOF
7745 if ac_fn_c_try_compile "$LINENO"; then :
7746   ac_cv_safe_to_define___extensions__=yes
7747 else
7748   ac_cv_safe_to_define___extensions__=no
7749 fi
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 fi
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7753 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7754   test $ac_cv_safe_to_define___extensions__ = yes &&
7755     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7756
7757   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7758
7759   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7760
7761   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7762
7763   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7764
7765   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7766
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7768 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7769 if ${ac_cv_should_define__xopen_source+:} false; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772   ac_cv_should_define__xopen_source=no
7773      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h.  */
7775
7776           #include <wchar.h>
7777           mbstate_t x;
7778 int
7779 main ()
7780 {
7781
7782   ;
7783   return 0;
7784 }
7785 _ACEOF
7786 if ac_fn_c_try_compile "$LINENO"; then :
7787
7788 else
7789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h.  */
7791
7792              #define _XOPEN_SOURCE 500
7793              #include <wchar.h>
7794              mbstate_t x;
7795 int
7796 main ()
7797 {
7798
7799   ;
7800   return 0;
7801 }
7802 _ACEOF
7803 if ac_fn_c_try_compile "$LINENO"; then :
7804   ac_cv_should_define__xopen_source=yes
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7811 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
7812   test $ac_cv_should_define__xopen_source = yes &&
7813     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825   # IEEE behaviour is the default on all CPUs except Alpha and SH
7826   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
7827   # and the GCC 4.1.2 manual).
7828   case "$host_cpu" in
7829     alpha*)
7830       # On Alpha systems, a compiler option provides the behaviour.
7831       # See the ieee(3) manual page, also available at
7832       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
7833       if test -n "$GCC"; then
7834         # GCC has the option -mieee.
7835         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
7836         CPPFLAGS="$CPPFLAGS -mieee"
7837       else
7838         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
7839         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
7840         CPPFLAGS="$CPPFLAGS -ieee"
7841       fi
7842       ;;
7843     sh*)
7844       if test -n "$GCC"; then
7845         # GCC has the option -mieee.
7846         CPPFLAGS="$CPPFLAGS -mieee"
7847       fi
7848       ;;
7849   esac
7850
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7852 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7853 if ${ac_cv_sys_largefile_source+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   while :; do
7857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h.  */
7859 #include <sys/types.h> /* for off_t */
7860      #include <stdio.h>
7861 int
7862 main ()
7863 {
7864 int (*fp) (FILE *, off_t, int) = fseeko;
7865      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7866   ;
7867   return 0;
7868 }
7869 _ACEOF
7870 if ac_fn_c_try_link "$LINENO"; then :
7871   ac_cv_sys_largefile_source=no; break
7872 fi
7873 rm -f core conftest.err conftest.$ac_objext \
7874     conftest$ac_exeext conftest.$ac_ext
7875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h.  */
7877 #define _LARGEFILE_SOURCE 1
7878 #include <sys/types.h> /* for off_t */
7879      #include <stdio.h>
7880 int
7881 main ()
7882 {
7883 int (*fp) (FILE *, off_t, int) = fseeko;
7884      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 if ac_fn_c_try_link "$LINENO"; then :
7890   ac_cv_sys_largefile_source=1; break
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext \
7893     conftest$ac_exeext conftest.$ac_ext
7894   ac_cv_sys_largefile_source=unknown
7895   break
7896 done
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7899 $as_echo "$ac_cv_sys_largefile_source" >&6; }
7900 case $ac_cv_sys_largefile_source in #(
7901   no | unknown) ;;
7902   *)
7903 cat >>confdefs.h <<_ACEOF
7904 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7905 _ACEOF
7906 ;;
7907 esac
7908 rm -rf conftest*
7909
7910 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7911 # in glibc 2.1.3, but that breaks too many other things.
7912 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7913 if test $ac_cv_sys_largefile_source != unknown; then
7914
7915 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
7916
7917 fi
7918
7919 # Check whether --enable-largefile was given.
7920 if test "${enable_largefile+set}" = set; then :
7921   enableval=$enable_largefile;
7922 fi
7923
7924 if test "$enable_largefile" != no; then
7925
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7927 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7928 if ${ac_cv_sys_largefile_CC+:} false; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   ac_cv_sys_largefile_CC=no
7932      if test "$GCC" != yes; then
7933        ac_save_CC=$CC
7934        while :; do
7935          # IRIX 6.2 and later do not support large files by default,
7936          # so use the C compiler's -n32 option if that helps.
7937          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h.  */
7939 #include <sys/types.h>
7940  /* Check that off_t can represent 2**63 - 1 correctly.
7941     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7942     since some C++ compilers masquerading as C compilers
7943     incorrectly reject 9223372036854775807.  */
7944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7945   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7946                        && LARGE_OFF_T % 2147483647 == 1)
7947                       ? 1 : -1];
7948 int
7949 main ()
7950 {
7951
7952   ;
7953   return 0;
7954 }
7955 _ACEOF
7956          if ac_fn_c_try_compile "$LINENO"; then :
7957   break
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext
7960          CC="$CC -n32"
7961          if ac_fn_c_try_compile "$LINENO"; then :
7962   ac_cv_sys_largefile_CC=' -n32'; break
7963 fi
7964 rm -f core conftest.err conftest.$ac_objext
7965          break
7966        done
7967        CC=$ac_save_CC
7968        rm -f conftest.$ac_ext
7969     fi
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7972 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7973   if test "$ac_cv_sys_largefile_CC" != no; then
7974     CC=$CC$ac_cv_sys_largefile_CC
7975   fi
7976
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7978 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7979 if ${ac_cv_sys_file_offset_bits+:} false; then :
7980   $as_echo_n "(cached) " >&6
7981 else
7982   while :; do
7983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h.  */
7985 #include <sys/types.h>
7986  /* Check that off_t can represent 2**63 - 1 correctly.
7987     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7988     since some C++ compilers masquerading as C compilers
7989     incorrectly reject 9223372036854775807.  */
7990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7991   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7992                        && LARGE_OFF_T % 2147483647 == 1)
7993                       ? 1 : -1];
7994 int
7995 main ()
7996 {
7997
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 if ac_fn_c_try_compile "$LINENO"; then :
8003   ac_cv_sys_file_offset_bits=no; break
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008 #define _FILE_OFFSET_BITS 64
8009 #include <sys/types.h>
8010  /* Check that off_t can represent 2**63 - 1 correctly.
8011     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8012     since some C++ compilers masquerading as C compilers
8013     incorrectly reject 9223372036854775807.  */
8014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8015   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8016                        && LARGE_OFF_T % 2147483647 == 1)
8017                       ? 1 : -1];
8018 int
8019 main ()
8020 {
8021
8022   ;
8023   return 0;
8024 }
8025 _ACEOF
8026 if ac_fn_c_try_compile "$LINENO"; then :
8027   ac_cv_sys_file_offset_bits=64; break
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030   ac_cv_sys_file_offset_bits=unknown
8031   break
8032 done
8033 fi
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8035 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8036 case $ac_cv_sys_file_offset_bits in #(
8037   no | unknown) ;;
8038   *)
8039 cat >>confdefs.h <<_ACEOF
8040 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8041 _ACEOF
8042 ;;
8043 esac
8044 rm -rf conftest*
8045   if test $ac_cv_sys_file_offset_bits = unknown; then
8046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8047 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8048 if ${ac_cv_sys_large_files+:} false; then :
8049   $as_echo_n "(cached) " >&6
8050 else
8051   while :; do
8052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h.  */
8054 #include <sys/types.h>
8055  /* Check that off_t can represent 2**63 - 1 correctly.
8056     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8057     since some C++ compilers masquerading as C compilers
8058     incorrectly reject 9223372036854775807.  */
8059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8060   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8061                        && LARGE_OFF_T % 2147483647 == 1)
8062                       ? 1 : -1];
8063 int
8064 main ()
8065 {
8066
8067   ;
8068   return 0;
8069 }
8070 _ACEOF
8071 if ac_fn_c_try_compile "$LINENO"; then :
8072   ac_cv_sys_large_files=no; break
8073 fi
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h.  */
8077 #define _LARGE_FILES 1
8078 #include <sys/types.h>
8079  /* Check that off_t can represent 2**63 - 1 correctly.
8080     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8081     since some C++ compilers masquerading as C compilers
8082     incorrectly reject 9223372036854775807.  */
8083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8084   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8085                        && LARGE_OFF_T % 2147483647 == 1)
8086                       ? 1 : -1];
8087 int
8088 main ()
8089 {
8090
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096   ac_cv_sys_large_files=1; break
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099   ac_cv_sys_large_files=unknown
8100   break
8101 done
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8104 $as_echo "$ac_cv_sys_large_files" >&6; }
8105 case $ac_cv_sys_large_files in #(
8106   no | unknown) ;;
8107   *)
8108 cat >>confdefs.h <<_ACEOF
8109 #define _LARGE_FILES $ac_cv_sys_large_files
8110 _ACEOF
8111 ;;
8112 esac
8113 rm -rf conftest*
8114   fi
8115
8116
8117 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
8118
8119 fi
8120
8121    case $ac_cv_prog_cc_stdc in #(
8122   no) :
8123     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
8124   *) :
8125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8126 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
8127 if ${ac_cv_prog_cc_c99+:} false; then :
8128   $as_echo_n "(cached) " >&6
8129 else
8130   ac_cv_prog_cc_c99=no
8131 ac_save_CC=$CC
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h.  */
8134 #include <stdarg.h>
8135 #include <stdbool.h>
8136 #include <stdlib.h>
8137 #include <wchar.h>
8138 #include <stdio.h>
8139
8140 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
8141 #define debug(...) fprintf (stderr, __VA_ARGS__)
8142 #define showlist(...) puts (#__VA_ARGS__)
8143 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8144 static void
8145 test_varargs_macros (void)
8146 {
8147   int x = 1234;
8148   int y = 5678;
8149   debug ("Flag");
8150   debug ("X = %d\n", x);
8151   showlist (The first, second, and third items.);
8152   report (x>y, "x is %d but y is %d", x, y);
8153 }
8154
8155 // Check long long types.
8156 #define BIG64 18446744073709551615ull
8157 #define BIG32 4294967295ul
8158 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8159 #if !BIG_OK
8160   your preprocessor is broken;
8161 #endif
8162 #if BIG_OK
8163 #else
8164   your preprocessor is broken;
8165 #endif
8166 static long long int bignum = -9223372036854775807LL;
8167 static unsigned long long int ubignum = BIG64;
8168
8169 struct incomplete_array
8170 {
8171   int datasize;
8172   double data[];
8173 };
8174
8175 struct named_init {
8176   int number;
8177   const wchar_t *name;
8178   double average;
8179 };
8180
8181 typedef const char *ccp;
8182
8183 static inline int
8184 test_restrict (ccp restrict text)
8185 {
8186   // See if C++-style comments work.
8187   // Iterate through items via the restricted pointer.
8188   // Also check for declarations in for loops.
8189   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8190     continue;
8191   return 0;
8192 }
8193
8194 // Check varargs and va_copy.
8195 static void
8196 test_varargs (const char *format, ...)
8197 {
8198   va_list args;
8199   va_start (args, format);
8200   va_list args_copy;
8201   va_copy (args_copy, args);
8202
8203   const char *str;
8204   int number;
8205   float fnumber;
8206
8207   while (*format)
8208     {
8209       switch (*format++)
8210         {
8211         case 's': // string
8212           str = va_arg (args_copy, const char *);
8213           break;
8214         case 'd': // int
8215           number = va_arg (args_copy, int);
8216           break;
8217         case 'f': // float
8218           fnumber = va_arg (args_copy, double);
8219           break;
8220         default:
8221           break;
8222         }
8223     }
8224   va_end (args_copy);
8225   va_end (args);
8226 }
8227
8228 int
8229 main ()
8230 {
8231
8232   // Check bool.
8233   _Bool success = false;
8234
8235   // Check restrict.
8236   if (test_restrict ("String literal") == 0)
8237     success = true;
8238   char *restrict newvar = "Another string";
8239
8240   // Check varargs.
8241   test_varargs ("s, d' f .", "string", 65, 34.234);
8242   test_varargs_macros ();
8243
8244   // Check flexible array members.
8245   struct incomplete_array *ia =
8246     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8247   ia->datasize = 10;
8248   for (int i = 0; i < ia->datasize; ++i)
8249     ia->data[i] = i * 1.234;
8250
8251   // Check named initializers.
8252   struct named_init ni = {
8253     .number = 34,
8254     .name = L"Test wide string",
8255     .average = 543.34343,
8256   };
8257
8258   ni.number = 58;
8259
8260   int dynamic_array[ni.number];
8261   dynamic_array[ni.number - 1] = 543;
8262
8263   // work around unused variable warnings
8264   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8265           || dynamic_array[ni.number - 1] != 543);
8266
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
8272 do
8273   CC="$ac_save_CC $ac_arg"
8274   if ac_fn_c_try_compile "$LINENO"; then :
8275   ac_cv_prog_cc_c99=$ac_arg
8276 fi
8277 rm -f core conftest.err conftest.$ac_objext
8278   test "x$ac_cv_prog_cc_c99" != "xno" && break
8279 done
8280 rm -f conftest.$ac_ext
8281 CC=$ac_save_CC
8282
8283 fi
8284 # AC_CACHE_VAL
8285 case "x$ac_cv_prog_cc_c99" in
8286   x)
8287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8288 $as_echo "none needed" >&6; } ;;
8289   xno)
8290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8291 $as_echo "unsupported" >&6; } ;;
8292   *)
8293     CC="$CC $ac_cv_prog_cc_c99"
8294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8295 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8296 esac
8297 if test "x$ac_cv_prog_cc_c99" != xno; then :
8298   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
8299 else
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8301 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8302 if ${ac_cv_prog_cc_c89+:} false; then :
8303   $as_echo_n "(cached) " >&6
8304 else
8305   ac_cv_prog_cc_c89=no
8306 ac_save_CC=$CC
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h.  */
8309 #include <stdarg.h>
8310 #include <stdio.h>
8311 struct stat;
8312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8313 struct buf { int x; };
8314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8315 static char *e (p, i)
8316      char **p;
8317      int i;
8318 {
8319   return p[i];
8320 }
8321 static char *f (char * (*g) (char **, int), char **p, ...)
8322 {
8323   char *s;
8324   va_list v;
8325   va_start (v,p);
8326   s = g (p, va_arg (v,int));
8327   va_end (v);
8328   return s;
8329 }
8330
8331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
8332    function prototypes and stuff, but not '\xHH' hex character constants.
8333    These don't provoke an error unfortunately, instead are silently treated
8334    as 'x'.  The following induces an error, until -std is added to get
8335    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
8336    array size at least.  It's necessary to write '\x00'==0 to get something
8337    that's true only with -std.  */
8338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8339
8340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8341    inside strings and character constants.  */
8342 #define FOO(x) 'x'
8343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8344
8345 int test (int i, double x);
8346 struct s1 {int (*f) (int a);};
8347 struct s2 {int (*f) (double a);};
8348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8349 int argc;
8350 char **argv;
8351 int
8352 main ()
8353 {
8354 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8360         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8361 do
8362   CC="$ac_save_CC $ac_arg"
8363   if ac_fn_c_try_compile "$LINENO"; then :
8364   ac_cv_prog_cc_c89=$ac_arg
8365 fi
8366 rm -f core conftest.err conftest.$ac_objext
8367   test "x$ac_cv_prog_cc_c89" != "xno" && break
8368 done
8369 rm -f conftest.$ac_ext
8370 CC=$ac_save_CC
8371
8372 fi
8373 # AC_CACHE_VAL
8374 case "x$ac_cv_prog_cc_c89" in
8375   x)
8376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8377 $as_echo "none needed" >&6; } ;;
8378   xno)
8379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8380 $as_echo "unsupported" >&6; } ;;
8381   *)
8382     CC="$CC $ac_cv_prog_cc_c89"
8383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8384 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8385 esac
8386 if test "x$ac_cv_prog_cc_c89" != xno; then :
8387   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
8388 else
8389   ac_cv_prog_cc_stdc=no
8390 fi
8391
8392 fi
8393  ;;
8394 esac
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
8396 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
8397   if ${ac_cv_prog_cc_stdc+:} false; then :
8398   $as_echo_n "(cached) " >&6
8399 fi
8400
8401   case $ac_cv_prog_cc_stdc in #(
8402   no) :
8403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8404 $as_echo "unsupported" >&6; } ;; #(
8405   '') :
8406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8407 $as_echo "none needed" >&6; } ;; #(
8408   *) :
8409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
8410 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
8411 esac
8412
8413
8414
8415
8416
8417
8418   # Check whether --enable-threads was given.
8419 if test "${enable_threads+set}" = set; then :
8420   enableval=$enable_threads; gl_use_threads=$enableval
8421 else
8422   if test -n "$gl_use_threads_default"; then
8423        gl_use_threads="$gl_use_threads_default"
8424      else
8425        case "$host_os" in
8426                                                                osf*) gl_use_threads=no ;;
8427          cygwin*)
8428                case `uname -r` in
8429                  1.[0-5].*) gl_use_threads=no ;;
8430                  *)         gl_use_threads=yes ;;
8431                esac
8432                ;;
8433          *)    gl_use_threads=yes ;;
8434        esac
8435      fi
8436
8437 fi
8438
8439   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8440     # For using <pthread.h>:
8441     case "$host_os" in
8442       osf*)
8443         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8444         # groks <pthread.h>. cc also understands the flag -pthread, but
8445         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8446         # 2. putting a flag into CPPFLAGS that has an effect on the linker
8447         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8448         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8449         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8450         ;;
8451     esac
8452     # Some systems optimize for single-threaded programs by default, and
8453     # need special flags to disable these optimizations. For example, the
8454     # definition of 'errno' in <errno.h>.
8455     case "$host_os" in
8456       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8457       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8458     esac
8459   fi
8460
8461
8462
8463
8464   # Code from module acl:
8465   # Code from module acl-tests:
8466   # Code from module alloca-opt:
8467   # Code from module alloca-opt-tests:
8468   # Code from module allocator:
8469   # Code from module ansi-c++-opt:
8470   # Code from module areadlink:
8471   # Code from module areadlink-tests:
8472   # Code from module argmatch:
8473   # Code from module argmatch-tests:
8474   # Code from module array-list:
8475   # Code from module array-list-tests:
8476   # Code from module atexit:
8477   # Code from module atexit-tests:
8478   # Code from module backupfile:
8479   # Code from module basename:
8480   # Code from module binary-io:
8481   # Code from module binary-io-tests:
8482   # Code from module bison-i18n:
8483   # Code from module btowc:
8484   # Code from module btowc-tests:
8485   # Code from module byteswap:
8486   # Code from module byteswap-tests:
8487   # Code from module c-ctype:
8488   # Code from module c-ctype-tests:
8489   # Code from module c-strcase:
8490   # Code from module c-strcase-tests:
8491   # Code from module c-strcaseeq:
8492   # Code from module c-strcasestr:
8493   # Code from module c-strcasestr-tests:
8494   # Code from module c-strstr:
8495   # Code from module c-strstr-tests:
8496   # Code from module canonicalize-lgpl:
8497   # Code from module canonicalize-lgpl-tests:
8498   # Code from module careadlinkat:
8499   # Code from module classpath:
8500   # Code from module clean-temp:
8501   # Code from module cloexec:
8502   # Code from module cloexec-tests:
8503   # Code from module close:
8504   # Code from module close-tests:
8505   # Code from module closedir:
8506   # Code from module closeout:
8507   # Code from module concat-filename:
8508   # Code from module configmake:
8509   # Code from module copy-file:
8510   # Code from module copy-file-tests:
8511   # Code from module csharpcomp:
8512   # Code from module csharpcomp-script:
8513   # Code from module csharpexec:
8514   # Code from module csharpexec-script:
8515   # Code from module diffseq:
8516   # Code from module dirent:
8517   # Code from module dirent-tests:
8518   # Code from module dosname:
8519   # Code from module double-slash-root:
8520   # Code from module dup:
8521   # Code from module dup-tests:
8522   # Code from module dup2:
8523   # Code from module dup2-tests:
8524   # Code from module environ:
8525   # Code from module environ-tests:
8526   # Code from module errno:
8527   # Code from module errno-tests:
8528   # Code from module error:
8529   # Code from module error-progname:
8530   # Code from module execute:
8531   # Code from module exitfail:
8532   # Code from module extensions:
8533
8534   # Code from module extern-inline:
8535   # Code from module fatal-signal:
8536   # Code from module fcntl:
8537   # Code from module fcntl-h:
8538   # Code from module fcntl-h-tests:
8539   # Code from module fcntl-tests:
8540   # Code from module fd-hook:
8541   # Code from module fd-ostream:
8542   # Code from module fd-safer-flag:
8543   # Code from module fdopen:
8544   # Code from module fdopen-tests:
8545   # Code from module fgetc-tests:
8546   # Code from module file-ostream:
8547   # Code from module filename:
8548   # Code from module findprog:
8549   # Code from module float:
8550   # Code from module float-tests:
8551   # Code from module fnmatch:
8552   # Code from module fnmatch-tests:
8553   # Code from module fopen:
8554   # Code from module fopen-tests:
8555   # Code from module fpieee:
8556
8557   # Code from module fpucw:
8558   # Code from module fputc-tests:
8559   # Code from module fread-tests:
8560   # Code from module fstat:
8561   # Code from module fstat-tests:
8562   # Code from module fstrcmp:
8563   # Code from module fstrcmp-tests:
8564   # Code from module ftell:
8565   # Code from module ftell-tests:
8566   # Code from module ftello:
8567
8568   # Code from module ftello-tests:
8569   # Code from module full-write:
8570   # Code from module fwrite-tests:
8571   # Code from module fwriteerror:
8572   # Code from module gcd:
8573   # Code from module gcj:
8574   # Code from module getcwd-lgpl:
8575   # Code from module getcwd-lgpl-tests:
8576   # Code from module getdelim:
8577   # Code from module getdelim-tests:
8578   # Code from module getdtablesize:
8579   # Code from module getdtablesize-tests:
8580   # Code from module getline:
8581   # Code from module getline-tests:
8582   # Code from module getopt-gnu:
8583   # Code from module getopt-posix:
8584   # Code from module getopt-posix-tests:
8585   # Code from module getpagesize:
8586   # Code from module gettext:
8587   # Code from module gettext-h:
8588   # Code from module gettext-tools-misc:
8589   # Code from module gettimeofday:
8590   # Code from module gettimeofday-tests:
8591   # Code from module gperf:
8592   # Code from module hash:
8593   # Code from module havelib:
8594   # Code from module html-ostream:
8595   # Code from module html-styled-ostream:
8596   # Code from module iconv:
8597   # Code from module iconv-h:
8598   # Code from module iconv-h-tests:
8599   # Code from module iconv-tests:
8600   # Code from module iconv_open:
8601   # Code from module ignore-value:
8602   # Code from module ignore-value-tests:
8603   # Code from module include_next:
8604   # Code from module inline:
8605   # Code from module intprops:
8606   # Code from module intprops-tests:
8607   # Code from module inttypes:
8608   # Code from module inttypes-incomplete:
8609   # Code from module inttypes-tests:
8610   # Code from module iswblank:
8611   # Code from module iswblank-tests:
8612   # Code from module java:
8613   # Code from module javacomp:
8614   # Code from module javacomp-script:
8615   # Code from module javaexec:
8616   # Code from module javaexec-script:
8617   # Code from module javaversion:
8618   # Code from module largefile:
8619
8620   # Code from module libcroco:
8621   # Code from module libglib:
8622   # Code from module libunistring-optional:
8623   # Code from module libxml:
8624   # Code from module linkedhash-list:
8625   # Code from module linkedhash-list-tests:
8626   # Code from module list:
8627   # Code from module localcharset:
8628   # Code from module locale:
8629   # Code from module locale-tests:
8630   # Code from module localename:
8631   # Code from module localename-tests:
8632   # Code from module lock:
8633   # Code from module lock-tests:
8634   # Code from module lseek:
8635   # Code from module lseek-tests:
8636   # Code from module lstat:
8637   # Code from module lstat-tests:
8638   # Code from module malloc-posix:
8639   # Code from module malloca:
8640   # Code from module malloca-tests:
8641   # Code from module mbchar:
8642   # Code from module mbiter:
8643   # Code from module mbrtowc:
8644   # Code from module mbrtowc-tests:
8645   # Code from module mbsinit:
8646   # Code from module mbsinit-tests:
8647   # Code from module mbslen:
8648   # Code from module mbsrtowcs:
8649   # Code from module mbsrtowcs-tests:
8650   # Code from module mbsstr:
8651   # Code from module mbsstr-tests:
8652   # Code from module mbswidth:
8653   # Code from module mbtowc:
8654   # Code from module mbuiter:
8655   # Code from module memchr:
8656   # Code from module memchr-tests:
8657   # Code from module memmove:
8658   # Code from module memset:
8659   # Code from module minmax:
8660   # Code from module mkdtemp:
8661   # Code from module moo:
8662   # Code from module moo-tests:
8663   # Code from module msvc-inval:
8664   # Code from module msvc-nothrow:
8665   # Code from module multiarch:
8666   # Code from module no-c++:
8667   # Code from module nocrash:
8668   # Code from module obstack:
8669   # Code from module open:
8670   # Code from module open-tests:
8671   # Code from module opendir:
8672   # Code from module openmp:
8673   # Code from module ostream:
8674   # Code from module pathmax:
8675   # Code from module pathmax-tests:
8676   # Code from module pipe-filter-ii:
8677   # Code from module pipe-filter-ii-tests:
8678   # Code from module pipe2:
8679   # Code from module pipe2-safer:
8680   # Code from module pipe2-tests:
8681   # Code from module posix_spawn-internal:
8682   # Code from module posix_spawn_file_actions_addclose:
8683   # Code from module posix_spawn_file_actions_addclose-tests:
8684   # Code from module posix_spawn_file_actions_adddup2:
8685   # Code from module posix_spawn_file_actions_adddup2-tests:
8686   # Code from module posix_spawn_file_actions_addopen:
8687   # Code from module posix_spawn_file_actions_addopen-tests:
8688   # Code from module posix_spawn_file_actions_destroy:
8689   # Code from module posix_spawn_file_actions_init:
8690   # Code from module posix_spawnattr_destroy:
8691   # Code from module posix_spawnattr_init:
8692   # Code from module posix_spawnattr_setflags:
8693   # Code from module posix_spawnattr_setsigmask:
8694   # Code from module posix_spawnp:
8695   # Code from module posix_spawnp-tests:
8696   # Code from module progname:
8697   # Code from module propername:
8698   # Code from module putenv:
8699   # Code from module qacl:
8700   # Code from module quote:
8701   # Code from module quotearg:
8702   # Code from module quotearg-simple:
8703   # Code from module quotearg-simple-tests:
8704   # Code from module raise:
8705   # Code from module raise-tests:
8706   # Code from module rawmemchr:
8707   # Code from module rawmemchr-tests:
8708   # Code from module read:
8709   # Code from module read-file:
8710   # Code from module read-file-tests:
8711   # Code from module read-tests:
8712   # Code from module readdir:
8713   # Code from module readlink:
8714   # Code from module readlink-tests:
8715   # Code from module realloc-posix:
8716   # Code from module relocatable-prog:
8717   # Code from module relocatable-prog-wrapper:
8718   # Code from module relocatable-script:
8719   # Code from module rmdir:
8720   # Code from module rmdir-tests:
8721   # Code from module safe-read:
8722   # Code from module safe-write:
8723   # Code from module same-inode:
8724   # Code from module sched:
8725   # Code from module sched-tests:
8726   # Code from module secure_getenv:
8727   # Code from module setenv:
8728   # Code from module setenv-tests:
8729   # Code from module setlocale:
8730   # Code from module setlocale-tests:
8731   # Code from module sh-quote:
8732   # Code from module sh-quote-tests:
8733   # Code from module sigaction:
8734   # Code from module sigaction-tests:
8735   # Code from module signal-h:
8736   # Code from module signal-h-tests:
8737   # Code from module sigpipe:
8738   # Code from module sigpipe-tests:
8739   # Code from module sigprocmask:
8740   # Code from module sigprocmask-tests:
8741   # Code from module size_max:
8742   # Code from module sleep:
8743   # Code from module sleep-tests:
8744   # Code from module snippet/_Noreturn:
8745   # Code from module snippet/arg-nonnull:
8746   # Code from module snippet/c++defs:
8747   # Code from module snippet/unused-parameter:
8748   # Code from module snippet/warn-on-use:
8749   # Code from module snprintf:
8750   # Code from module snprintf-tests:
8751   # Code from module spawn:
8752   # Code from module spawn-pipe:
8753   # Code from module spawn-pipe-tests:
8754   # Code from module spawn-tests:
8755   # Code from module ssize_t:
8756   # Code from module stat:
8757   # Code from module stat-tests:
8758   # Code from module stdarg:
8759
8760
8761
8762   # Code from module stdbool:
8763   # Code from module stdbool-tests:
8764   # Code from module stddef:
8765   # Code from module stddef-tests:
8766   # Code from module stdint:
8767   # Code from module stdint-tests:
8768   # Code from module stdio:
8769   # Code from module stdio-tests:
8770   # Code from module stdlib:
8771   # Code from module stdlib-tests:
8772   # Code from module stpcpy:
8773   # Code from module stpncpy:
8774   # Code from module strchrnul:
8775   # Code from module strchrnul-tests:
8776   # Code from module strcspn:
8777   # Code from module streq:
8778   # Code from module strerror:
8779   # Code from module strerror-override:
8780   # Code from module strerror-tests:
8781   # Code from module striconv:
8782   # Code from module striconv-tests:
8783   # Code from module striconveh:
8784   # Code from module striconveh-tests:
8785   # Code from module striconveha:
8786   # Code from module striconveha-tests:
8787   # Code from module string:
8788   # Code from module string-tests:
8789   # Code from module strnlen:
8790   # Code from module strnlen-tests:
8791   # Code from module strnlen1:
8792   # Code from module strpbrk:
8793   # Code from module strstr:
8794   # Code from module strstr-simple:
8795   # Code from module strstr-tests:
8796   # Code from module strtol:
8797   # Code from module strtol-tests:
8798   # Code from module strtoul:
8799   # Code from module strtoul-tests:
8800   # Code from module styled-ostream:
8801   # Code from module symlink:
8802   # Code from module symlink-tests:
8803   # Code from module sys_select:
8804   # Code from module sys_select-tests:
8805   # Code from module sys_stat:
8806   # Code from module sys_stat-tests:
8807   # Code from module sys_time:
8808   # Code from module sys_time-tests:
8809   # Code from module sys_types:
8810   # Code from module sys_types-tests:
8811   # Code from module sys_wait:
8812   # Code from module sys_wait-tests:
8813   # Code from module tempname:
8814   # Code from module term-ostream:
8815   # Code from module term-ostream-tests:
8816   # Code from module term-styled-ostream:
8817   # Code from module terminfo:
8818   # Code from module terminfo-h:
8819   # Code from module test-framework-sh:
8820   # Code from module test-framework-sh-tests:
8821   # Code from module thread:
8822   # Code from module thread-tests:
8823   # Code from module threadlib:
8824
8825
8826
8827   # Code from module time:
8828   # Code from module time-tests:
8829   # Code from module tls:
8830   # Code from module tls-tests:
8831   # Code from module tmpdir:
8832   # Code from module trim:
8833   # Code from module uniconv/base:
8834   # Code from module uniconv/u8-conv-from-enc:
8835   # Code from module uniconv/u8-conv-from-enc-tests:
8836   # Code from module unilbrk/base:
8837   # Code from module unilbrk/tables:
8838   # Code from module unilbrk/u8-possible-linebreaks:
8839   # Code from module unilbrk/u8-width-linebreaks:
8840   # Code from module unilbrk/u8-width-linebreaks-tests:
8841   # Code from module unilbrk/ulc-common:
8842   # Code from module unilbrk/ulc-width-linebreaks:
8843   # Code from module uniname/base:
8844   # Code from module uniname/uniname:
8845   # Code from module uniname/uniname-tests:
8846   # Code from module unistd:
8847   # Code from module unistd-safer:
8848   # Code from module unistd-safer-tests:
8849   # Code from module unistd-tests:
8850   # Code from module unistr/base:
8851   # Code from module unistr/u16-mbtouc:
8852   # Code from module unistr/u16-mbtouc-tests:
8853   # Code from module unistr/u8-check:
8854   # Code from module unistr/u8-check-tests:
8855   # Code from module unistr/u8-cmp:
8856   # Code from module unistr/u8-cmp-tests:
8857   # Code from module unistr/u8-mblen:
8858   # Code from module unistr/u8-mblen-tests:
8859   # Code from module unistr/u8-mbtouc:
8860   # Code from module unistr/u8-mbtouc-unsafe:
8861   # Code from module unistr/u8-mbtoucr:
8862   # Code from module unistr/u8-mbtoucr-tests:
8863   # Code from module unistr/u8-prev:
8864   # Code from module unistr/u8-prev-tests:
8865   # Code from module unistr/u8-strlen:
8866   # Code from module unistr/u8-strlen-tests:
8867   # Code from module unistr/u8-uctomb:
8868   # Code from module unistr/u8-uctomb-tests:
8869   # Code from module unitypes:
8870   # Code from module uniwidth/base:
8871   # Code from module uniwidth/width:
8872   # Code from module unlocked-io:
8873   # Code from module unsetenv:
8874   # Code from module unsetenv-tests:
8875   # Code from module vasnprintf:
8876   # Code from module vasnprintf-tests:
8877   # Code from module vasprintf:
8878   # Code from module vasprintf-tests:
8879   # Code from module verify:
8880   # Code from module verify-tests:
8881   # Code from module vsnprintf:
8882   # Code from module vsnprintf-tests:
8883   # Code from module wait-process:
8884   # Code from module waitpid:
8885   # Code from module wchar:
8886   # Code from module wchar-tests:
8887   # Code from module wcrtomb:
8888   # Code from module wcrtomb-tests:
8889   # Code from module wctob:
8890   # Code from module wctomb:
8891   # Code from module wctype-h:
8892   # Code from module wctype-h-tests:
8893   # Code from module wcwidth:
8894   # Code from module wcwidth-tests:
8895   # Code from module write:
8896   # Code from module write-tests:
8897   # Code from module xalloc:
8898   # Code from module xalloc-die:
8899   # Code from module xalloc-die-tests:
8900   # Code from module xconcat-filename:
8901   # Code from module xerror:
8902   # Code from module xlist:
8903   # Code from module xmalloca:
8904   # Code from module xreadlink:
8905   # Code from module xsetenv:
8906   # Code from module xsize:
8907   # Code from module xstriconv:
8908   # Code from module xstriconveh:
8909   # Code from module xvasprintf:
8910   # Code from module xvasprintf-tests:
8911   # Code from module yield:
8912
8913
8914
8915   # Code from module btowc:
8916   # Code from module langinfo:
8917   # Code from module localeconv:
8918   # Code from module mbrlen:
8919   # Code from module mbtowc:
8920   # Code from module nl_langinfo:
8921   # Code from module regex:
8922   # Code from module snippet/c++defs:
8923   # Code from module snippet/warn-on-use:
8924   # Code from module wcrtomb:
8925
8926
8927
8928
8929   # Code from module alloca-opt:
8930   # Code from module basename:
8931   # Code from module c-ctype:
8932   # Code from module c-strcase:
8933   # Code from module c-strcaseeq:
8934   # Code from module c-strstr:
8935   # Code from module close:
8936   # Code from module concat-filename:
8937   # Code from module configmake:
8938   # Code from module diffseq:
8939   # Code from module dosname:
8940   # Code from module errno:
8941   # Code from module error:
8942   # Code from module error-progname:
8943   # Code from module exitfail:
8944   # Code from module extensions:
8945
8946   # Code from module extern-inline:
8947   # Code from module fcntl-h:
8948   # Code from module fd-hook:
8949   # Code from module file-ostream:
8950   # Code from module filename:
8951   # Code from module float:
8952   # Code from module fopen:
8953   # Code from module fstat:
8954   # Code from module fstrcmp:
8955   # Code from module fwriteerror:
8956   # Code from module gcd:
8957   # Code from module getdelim:
8958   # Code from module getline:
8959   # Code from module gettext-h:
8960   # Code from module gperf:
8961   # Code from module hash:
8962   # Code from module havelib:
8963   # Code from module iconv:
8964   # Code from module iconv-h:
8965   # Code from module iconv_open:
8966   # Code from module include_next:
8967   # Code from module inline:
8968   # Code from module intprops:
8969   # Code from module largefile:
8970
8971   # Code from module libunistring-optional:
8972   # Code from module localcharset:
8973   # Code from module lock:
8974   # Code from module malloc-posix:
8975   # Code from module malloca:
8976   # Code from module mbrtowc:
8977   # Code from module mbsinit:
8978   # Code from module mbswidth:
8979   # Code from module memchr:
8980   # Code from module minmax:
8981   # Code from module moo:
8982   # Code from module msvc-inval:
8983   # Code from module msvc-nothrow:
8984   # Code from module multiarch:
8985   # Code from module obstack:
8986   # Code from module open:
8987   # Code from module ostream:
8988   # Code from module pathmax:
8989   # Code from module progname:
8990   # Code from module raise:
8991   # Code from module rawmemchr:
8992   # Code from module realloc-posix:
8993   # Code from module relocatable-lib:
8994   # Code from module signal-h:
8995   # Code from module sigpipe:
8996   # Code from module sigprocmask:
8997   # Code from module size_max:
8998   # Code from module snippet/_Noreturn:
8999   # Code from module snippet/arg-nonnull:
9000   # Code from module snippet/c++defs:
9001   # Code from module snippet/unused-parameter:
9002   # Code from module snippet/warn-on-use:
9003   # Code from module ssize_t:
9004   # Code from module stat:
9005   # Code from module stdarg:
9006
9007
9008
9009   # Code from module stdbool:
9010   # Code from module stddef:
9011   # Code from module stdint:
9012   # Code from module stdio:
9013   # Code from module stdlib:
9014   # Code from module stpcpy:
9015   # Code from module strchrnul:
9016   # Code from module streq:
9017   # Code from module strerror:
9018   # Code from module strerror-override:
9019   # Code from module striconv:
9020   # Code from module striconveh:
9021   # Code from module striconveha:
9022   # Code from module string:
9023   # Code from module strstr:
9024   # Code from module strstr-simple:
9025   # Code from module sys_stat:
9026   # Code from module sys_types:
9027   # Code from module threadlib:
9028
9029
9030
9031   # Code from module time:
9032   # Code from module tls:
9033   # Code from module uniconv/base:
9034   # Code from module uniconv/u8-conv-from-enc:
9035   # Code from module unilbrk/base:
9036   # Code from module unilbrk/tables:
9037   # Code from module unilbrk/u8-possible-linebreaks:
9038   # Code from module unilbrk/u8-width-linebreaks:
9039   # Code from module unilbrk/ulc-common:
9040   # Code from module unilbrk/ulc-width-linebreaks:
9041   # Code from module unistd:
9042   # Code from module unistr/base:
9043   # Code from module unistr/u16-mbtouc:
9044   # Code from module unistr/u8-check:
9045   # Code from module unistr/u8-mblen:
9046   # Code from module unistr/u8-mbtouc:
9047   # Code from module unistr/u8-mbtouc-unsafe:
9048   # Code from module unistr/u8-mbtoucr:
9049   # Code from module unistr/u8-prev:
9050   # Code from module unistr/u8-uctomb:
9051   # Code from module unitypes:
9052   # Code from module uniwidth/base:
9053   # Code from module uniwidth/width:
9054   # Code from module unlocked-io:
9055   # Code from module vasnprintf:
9056   # Code from module vasprintf:
9057   # Code from module verify:
9058   # Code from module wchar:
9059   # Code from module wctype-h:
9060   # Code from module wcwidth:
9061   # Code from module xalloc:
9062   # Code from module xalloc-die:
9063   # Code from module xconcat-filename:
9064   # Code from module xerror:
9065   # Code from module xmalloca:
9066   # Code from module xsize:
9067   # Code from module xstriconv:
9068   # Code from module xvasprintf:
9069
9070
9071
9072
9073
9074   case "$host_os" in
9075     mingw* | cygwin*)
9076       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
9077 $as_echo_n "checking for auto-import of symbols... " >&6; }
9078       if ${gl_cv_ld_autoimport+:} false; then :
9079   $as_echo_n "(cached) " >&6
9080 else
9081
9082         gl_save_LDFLAGS="$LDFLAGS"
9083         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
9084         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h.  */
9086
9087 int
9088 main ()
9089 {
9090
9091   ;
9092   return 0;
9093 }
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"; then :
9096   gl_cv_ld_autoimport=yes
9097 else
9098   gl_cv_ld_autoimport=no
9099 fi
9100 rm -f core conftest.err conftest.$ac_objext \
9101     conftest$ac_exeext conftest.$ac_ext
9102         LDFLAGS="$gl_save_LDFLAGS"
9103 fi
9104
9105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
9106 $as_echo "$gl_cv_ld_autoimport" >&6; }
9107       if test $gl_cv_ld_autoimport = yes; then
9108         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
9109       fi
9110       ;;
9111   esac
9112
9113
9114 case `pwd` in
9115   *\ * | *\     *)
9116     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9117 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9118 esac
9119
9120
9121
9122 macro_version='2.4.2'
9123 macro_revision='1.3337'
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137 ltmain="$ac_aux_dir/ltmain.sh"
9138
9139 # Backslashify metacharacters that are still active within
9140 # double-quoted strings.
9141 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9142
9143 # Same as above, but do not quote variable references.
9144 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9145
9146 # Sed substitution to delay expansion of an escaped shell variable in a
9147 # double_quote_subst'ed string.
9148 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9149
9150 # Sed substitution to delay expansion of an escaped single quote.
9151 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9152
9153 # Sed substitution to avoid accidental globbing in evaled expressions
9154 no_glob_subst='s/\*/\\\*/g'
9155
9156 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9157 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9158 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9159
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9161 $as_echo_n "checking how to print strings... " >&6; }
9162 # Test print first, because it will be a builtin if present.
9163 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9164    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9165   ECHO='print -r --'
9166 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9167   ECHO='printf %s\n'
9168 else
9169   # Use this function as a fallback that always works.
9170   func_fallback_echo ()
9171   {
9172     eval 'cat <<_LTECHO_EOF
9173 $1
9174 _LTECHO_EOF'
9175   }
9176   ECHO='func_fallback_echo'
9177 fi
9178
9179 # func_echo_all arg...
9180 # Invoke $ECHO with all args, space-separated.
9181 func_echo_all ()
9182 {
9183     $ECHO ""
9184 }
9185
9186 case "$ECHO" in
9187   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9188 $as_echo "printf" >&6; } ;;
9189   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9190 $as_echo "print -r" >&6; } ;;
9191   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9192 $as_echo "cat" >&6; } ;;
9193 esac
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9209 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9210 if ${ac_cv_path_SED+:} false; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9214      for ac_i in 1 2 3 4 5 6 7; do
9215        ac_script="$ac_script$as_nl$ac_script"
9216      done
9217      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9218      { ac_script=; unset ac_script;}
9219      if test -z "$SED"; then
9220   ac_path_SED_found=false
9221   # Loop through the user's path and test for each of PROGNAME-LIST
9222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 for as_dir in $PATH
9224 do
9225   IFS=$as_save_IFS
9226   test -z "$as_dir" && as_dir=.
9227     for ac_prog in sed gsed; do
9228     for ac_exec_ext in '' $ac_executable_extensions; do
9229       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9230       as_fn_executable_p "$ac_path_SED" || continue
9231 # Check for GNU ac_path_SED and select it if it is found.
9232   # Check for GNU $ac_path_SED
9233 case `"$ac_path_SED" --version 2>&1` in
9234 *GNU*)
9235   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9236 *)
9237   ac_count=0
9238   $as_echo_n 0123456789 >"conftest.in"
9239   while :
9240   do
9241     cat "conftest.in" "conftest.in" >"conftest.tmp"
9242     mv "conftest.tmp" "conftest.in"
9243     cp "conftest.in" "conftest.nl"
9244     $as_echo '' >> "conftest.nl"
9245     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9246     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9247     as_fn_arith $ac_count + 1 && ac_count=$as_val
9248     if test $ac_count -gt ${ac_path_SED_max-0}; then
9249       # Best one so far, save it but keep looking for a better one
9250       ac_cv_path_SED="$ac_path_SED"
9251       ac_path_SED_max=$ac_count
9252     fi
9253     # 10*(2^10) chars as input seems more than enough
9254     test $ac_count -gt 10 && break
9255   done
9256   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9257 esac
9258
9259       $ac_path_SED_found && break 3
9260     done
9261   done
9262   done
9263 IFS=$as_save_IFS
9264   if test -z "$ac_cv_path_SED"; then
9265     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9266   fi
9267 else
9268   ac_cv_path_SED=$SED
9269 fi
9270
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9273 $as_echo "$ac_cv_path_SED" >&6; }
9274  SED="$ac_cv_path_SED"
9275   rm -f conftest.sed
9276
9277 test -z "$SED" && SED=sed
9278 Xsed="$SED -e 1s/^X//"
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9291 $as_echo_n "checking for fgrep... " >&6; }
9292 if ${ac_cv_path_FGREP+:} false; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9296    then ac_cv_path_FGREP="$GREP -F"
9297    else
9298      if test -z "$FGREP"; then
9299   ac_path_FGREP_found=false
9300   # Loop through the user's path and test for each of PROGNAME-LIST
9301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9303 do
9304   IFS=$as_save_IFS
9305   test -z "$as_dir" && as_dir=.
9306     for ac_prog in fgrep; do
9307     for ac_exec_ext in '' $ac_executable_extensions; do
9308       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9309       as_fn_executable_p "$ac_path_FGREP" || continue
9310 # Check for GNU ac_path_FGREP and select it if it is found.
9311   # Check for GNU $ac_path_FGREP
9312 case `"$ac_path_FGREP" --version 2>&1` in
9313 *GNU*)
9314   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9315 *)
9316   ac_count=0
9317   $as_echo_n 0123456789 >"conftest.in"
9318   while :
9319   do
9320     cat "conftest.in" "conftest.in" >"conftest.tmp"
9321     mv "conftest.tmp" "conftest.in"
9322     cp "conftest.in" "conftest.nl"
9323     $as_echo 'FGREP' >> "conftest.nl"
9324     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9325     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9326     as_fn_arith $ac_count + 1 && ac_count=$as_val
9327     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9328       # Best one so far, save it but keep looking for a better one
9329       ac_cv_path_FGREP="$ac_path_FGREP"
9330       ac_path_FGREP_max=$ac_count
9331     fi
9332     # 10*(2^10) chars as input seems more than enough
9333     test $ac_count -gt 10 && break
9334   done
9335   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9336 esac
9337
9338       $ac_path_FGREP_found && break 3
9339     done
9340   done
9341   done
9342 IFS=$as_save_IFS
9343   if test -z "$ac_cv_path_FGREP"; then
9344     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9345   fi
9346 else
9347   ac_cv_path_FGREP=$FGREP
9348 fi
9349
9350    fi
9351 fi
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9353 $as_echo "$ac_cv_path_FGREP" >&6; }
9354  FGREP="$ac_cv_path_FGREP"
9355
9356
9357 test -z "$GREP" && GREP=grep
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377 # Check whether --with-gnu-ld was given.
9378 if test "${with_gnu_ld+set}" = set; then :
9379   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9380 else
9381   with_gnu_ld=no
9382 fi
9383
9384 ac_prog=ld
9385 if test "$GCC" = yes; then
9386   # Check if gcc -print-prog-name=ld gives a path.
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9388 $as_echo_n "checking for ld used by $CC... " >&6; }
9389   case $host in
9390   *-*-mingw*)
9391     # gcc leaves a trailing carriage return which upsets mingw
9392     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9393   *)
9394     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9395   esac
9396   case $ac_prog in
9397     # Accept absolute paths.
9398     [\\/]* | ?:[\\/]*)
9399       re_direlt='/[^/][^/]*/\.\./'
9400       # Canonicalize the pathname of ld
9401       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9402       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9403         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9404       done
9405       test -z "$LD" && LD="$ac_prog"
9406       ;;
9407   "")
9408     # If it fails, then pretend we aren't using GCC.
9409     ac_prog=ld
9410     ;;
9411   *)
9412     # If it is relative, then search for the first ld in PATH.
9413     with_gnu_ld=unknown
9414     ;;
9415   esac
9416 elif test "$with_gnu_ld" = yes; then
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9418 $as_echo_n "checking for GNU ld... " >&6; }
9419 else
9420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9421 $as_echo_n "checking for non-GNU ld... " >&6; }
9422 fi
9423 if ${lt_cv_path_LD+:} false; then :
9424   $as_echo_n "(cached) " >&6
9425 else
9426   if test -z "$LD"; then
9427   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9428   for ac_dir in $PATH; do
9429     IFS="$lt_save_ifs"
9430     test -z "$ac_dir" && ac_dir=.
9431     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9432       lt_cv_path_LD="$ac_dir/$ac_prog"
9433       # Check to see if the program is GNU ld.  I'd rather use --version,
9434       # but apparently some variants of GNU ld only accept -v.
9435       # Break only if it was the GNU/non-GNU ld that we prefer.
9436       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9437       *GNU* | *'with BFD'*)
9438         test "$with_gnu_ld" != no && break
9439         ;;
9440       *)
9441         test "$with_gnu_ld" != yes && break
9442         ;;
9443       esac
9444     fi
9445   done
9446   IFS="$lt_save_ifs"
9447 else
9448   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9449 fi
9450 fi
9451
9452 LD="$lt_cv_path_LD"
9453 if test -n "$LD"; then
9454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9455 $as_echo "$LD" >&6; }
9456 else
9457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9459 fi
9460 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9462 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9463 if ${lt_cv_prog_gnu_ld+:} false; then :
9464   $as_echo_n "(cached) " >&6
9465 else
9466   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9467 case `$LD -v 2>&1 </dev/null` in
9468 *GNU* | *'with BFD'*)
9469   lt_cv_prog_gnu_ld=yes
9470   ;;
9471 *)
9472   lt_cv_prog_gnu_ld=no
9473   ;;
9474 esac
9475 fi
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9477 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9478 with_gnu_ld=$lt_cv_prog_gnu_ld
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9489 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9490 if ${lt_cv_path_NM+:} false; then :
9491   $as_echo_n "(cached) " >&6
9492 else
9493   if test -n "$NM"; then
9494   # Let the user override the test.
9495   lt_cv_path_NM="$NM"
9496 else
9497   lt_nm_to_check="${ac_tool_prefix}nm"
9498   if test -n "$ac_tool_prefix" \
9499      && { test "$build" = "$host" \
9500           || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
9501         }; then
9502     lt_nm_to_check="$lt_nm_to_check nm"
9503   fi
9504   for lt_tmp_nm in $lt_nm_to_check; do
9505     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9506     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9507       IFS="$lt_save_ifs"
9508       test -z "$ac_dir" && ac_dir=.
9509       tmp_nm="$ac_dir/$lt_tmp_nm"
9510       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9511         # Check to see if the nm accepts a BSD-compat flag.
9512         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9513         #   nm: unknown option "B" ignored
9514         # Tru64's nm complains that /dev/null is an invalid object file
9515         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9516         */dev/null* | *'Invalid file or object type'*)
9517           lt_cv_path_NM="$tmp_nm -B"
9518           break
9519           ;;
9520         *)
9521           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9522           */dev/null*)
9523             lt_cv_path_NM="$tmp_nm -p"
9524             break
9525             ;;
9526           *)
9527             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9528             continue # so that we can try to find one that supports BSD flags
9529             ;;
9530           esac
9531           ;;
9532         esac
9533       fi
9534     done
9535     IFS="$lt_save_ifs"
9536   done
9537   : ${lt_cv_path_NM=no}
9538 fi
9539 fi
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9541 $as_echo "$lt_cv_path_NM" >&6; }
9542 if test "$lt_cv_path_NM" != "no"; then
9543   NM="$lt_cv_path_NM"
9544 else
9545   # Didn't find any BSD compatible name lister, look for dumpbin.
9546   if test -n "$DUMPBIN"; then :
9547     # Let the user override the test.
9548   else
9549     if test -n "$ac_tool_prefix"; then
9550   for ac_prog in dumpbin "link -dump"
9551   do
9552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if ${ac_cv_prog_DUMPBIN+:} false; then :
9557   $as_echo_n "(cached) " >&6
9558 else
9559   if test -n "$DUMPBIN"; then
9560   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9561 else
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in $PATH
9564 do
9565   IFS=$as_save_IFS
9566   test -z "$as_dir" && as_dir=.
9567     for ac_exec_ext in '' $ac_executable_extensions; do
9568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9569     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571     break 2
9572   fi
9573 done
9574   done
9575 IFS=$as_save_IFS
9576
9577 fi
9578 fi
9579 DUMPBIN=$ac_cv_prog_DUMPBIN
9580 if test -n "$DUMPBIN"; then
9581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9582 $as_echo "$DUMPBIN" >&6; }
9583 else
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587
9588
9589     test -n "$DUMPBIN" && break
9590   done
9591 fi
9592 if test -z "$DUMPBIN"; then
9593   ac_ct_DUMPBIN=$DUMPBIN
9594   for ac_prog in dumpbin "link -dump"
9595 do
9596   # Extract the first word of "$ac_prog", so it can be a program name with args.
9597 set dummy $ac_prog; ac_word=$2
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599 $as_echo_n "checking for $ac_word... " >&6; }
9600 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9601   $as_echo_n "(cached) " >&6
9602 else
9603   if test -n "$ac_ct_DUMPBIN"; then
9604   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9605 else
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9608 do
9609   IFS=$as_save_IFS
9610   test -z "$as_dir" && as_dir=.
9611     for ac_exec_ext in '' $ac_executable_extensions; do
9612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9613     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9615     break 2
9616   fi
9617 done
9618   done
9619 IFS=$as_save_IFS
9620
9621 fi
9622 fi
9623 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9624 if test -n "$ac_ct_DUMPBIN"; then
9625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9626 $as_echo "$ac_ct_DUMPBIN" >&6; }
9627 else
9628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9630 fi
9631
9632
9633   test -n "$ac_ct_DUMPBIN" && break
9634 done
9635
9636   if test "x$ac_ct_DUMPBIN" = x; then
9637     DUMPBIN=":"
9638   else
9639     case $cross_compiling:$ac_tool_warned in
9640 yes:)
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9643 ac_tool_warned=yes ;;
9644 esac
9645     DUMPBIN=$ac_ct_DUMPBIN
9646   fi
9647 fi
9648
9649     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9650     *COFF*)
9651       DUMPBIN="$DUMPBIN -symbols"
9652       ;;
9653     *)
9654       DUMPBIN=:
9655       ;;
9656     esac
9657   fi
9658
9659   if test "$DUMPBIN" != ":"; then
9660     NM="$DUMPBIN"
9661   fi
9662 fi
9663 test -z "$NM" && NM=nm
9664
9665
9666
9667
9668
9669
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9671 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9672 if ${lt_cv_nm_interface+:} false; then :
9673   $as_echo_n "(cached) " >&6
9674 else
9675   lt_cv_nm_interface="BSD nm"
9676   echo "int some_variable = 0;" > conftest.$ac_ext
9677   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9678   (eval "$ac_compile" 2>conftest.err)
9679   cat conftest.err >&5
9680   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9681   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9682   cat conftest.err >&5
9683   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9684   cat conftest.out >&5
9685   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9686     lt_cv_nm_interface="MS dumpbin"
9687   fi
9688   rm -f conftest*
9689 fi
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9691 $as_echo "$lt_cv_nm_interface" >&6; }
9692
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9694 $as_echo_n "checking whether ln -s works... " >&6; }
9695 LN_S=$as_ln_s
9696 if test "$LN_S" = "ln -s"; then
9697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 $as_echo "yes" >&6; }
9699 else
9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9701 $as_echo "no, using $LN_S" >&6; }
9702 fi
9703
9704 # find the maximum length of command line arguments
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9706 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9707 if ${lt_cv_sys_max_cmd_len+:} false; then :
9708   $as_echo_n "(cached) " >&6
9709 else
9710     i=0
9711   teststring="ABCD"
9712
9713   case $build_os in
9714   msdosdjgpp*)
9715     # On DJGPP, this test can blow up pretty badly due to problems in libc
9716     # (any single argument exceeding 2000 bytes causes a buffer overrun
9717     # during glob expansion).  Even if it were fixed, the result of this
9718     # check would be larger than it should be.
9719     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9720     ;;
9721
9722   gnu*)
9723     # Under GNU Hurd, this test is not required because there is
9724     # no limit to the length of command line arguments.
9725     # Libtool will interpret -1 as no limit whatsoever
9726     lt_cv_sys_max_cmd_len=-1;
9727     ;;
9728
9729   cygwin* | mingw* | cegcc*)
9730     # On Win9x/ME, this test blows up -- it succeeds, but takes
9731     # about 5 minutes as the teststring grows exponentially.
9732     # Worse, since 9x/ME are not pre-emptively multitasking,
9733     # you end up with a "frozen" computer, even though with patience
9734     # the test eventually succeeds (with a max line length of 256k).
9735     # Instead, let's just punt: use the minimum linelength reported by
9736     # all of the supported platforms: 8192 (on NT/2K/XP).
9737     lt_cv_sys_max_cmd_len=8192;
9738     ;;
9739
9740   mint*)
9741     # On MiNT this can take a long time and run out of memory.
9742     lt_cv_sys_max_cmd_len=8192;
9743     ;;
9744
9745   amigaos*)
9746     # On AmigaOS with pdksh, this test takes hours, literally.
9747     # So we just punt and use a minimum line length of 8192.
9748     lt_cv_sys_max_cmd_len=8192;
9749     ;;
9750
9751   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9752     # This has been around since 386BSD, at least.  Likely further.
9753     if test -x /sbin/sysctl; then
9754       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9755     elif test -x /usr/sbin/sysctl; then
9756       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9757     else
9758       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9759     fi
9760     # And add a safety zone
9761     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9762     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9763     ;;
9764
9765   interix*)
9766     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9767     lt_cv_sys_max_cmd_len=196608
9768     ;;
9769
9770   os2*)
9771     # The test takes a long time on OS/2.
9772     lt_cv_sys_max_cmd_len=8192
9773     ;;
9774
9775   osf*)
9776     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9777     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9778     # nice to cause kernel panics so lets avoid the loop below.
9779     # First set a reasonable default.
9780     lt_cv_sys_max_cmd_len=16384
9781     #
9782     if test -x /sbin/sysconfig; then
9783       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9784         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9785       esac
9786     fi
9787     ;;
9788   sco3.2v5*)
9789     lt_cv_sys_max_cmd_len=102400
9790     ;;
9791   sysv5* | sco5v6* | sysv4.2uw2*)
9792     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9793     if test -n "$kargmax"; then
9794       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9795     else
9796       lt_cv_sys_max_cmd_len=32768
9797     fi
9798     ;;
9799   *)
9800     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9801     if test -n "$lt_cv_sys_max_cmd_len"; then
9802       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9803       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9804     else
9805       # Make teststring a little bigger before we do anything with it.
9806       # a 1K string should be a reasonable start.
9807       for i in 1 2 3 4 5 6 7 8 ; do
9808         teststring=$teststring$teststring
9809       done
9810       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9811       # If test is not a shell built-in, we'll probably end up computing a
9812       # maximum length that is only half of the actual maximum length, but
9813       # we can't tell.
9814       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
9815                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9816               test $i != 17 # 1/2 MB should be enough
9817       do
9818         i=`expr $i + 1`
9819         teststring=$teststring$teststring
9820       done
9821       # Only check the string length outside the loop.
9822       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9823       teststring=
9824       # Add a significant safety factor because C++ compilers can tack on
9825       # massive amounts of additional arguments before passing them to the
9826       # linker.  It appears as though 1/2 is a usable value.
9827       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9828     fi
9829     ;;
9830   esac
9831
9832 fi
9833
9834 if test -n $lt_cv_sys_max_cmd_len ; then
9835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9836 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9837 else
9838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9839 $as_echo "none" >&6; }
9840 fi
9841 max_cmd_len=$lt_cv_sys_max_cmd_len
9842
9843
9844
9845
9846
9847
9848 : ${CP="cp -f"}
9849 : ${MV="mv -f"}
9850 : ${RM="rm -f"}
9851
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9853 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9854 # Try some XSI features
9855 xsi_shell=no
9856 ( _lt_dummy="a/b/c"
9857   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9858       = c,a/b,b/c, \
9859     && eval 'test $(( 1 + 1 )) -eq 2 \
9860     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9861   && xsi_shell=yes
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9863 $as_echo "$xsi_shell" >&6; }
9864
9865
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9867 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9868 lt_shell_append=no
9869 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9870     >/dev/null 2>&1 \
9871   && lt_shell_append=yes
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9873 $as_echo "$lt_shell_append" >&6; }
9874
9875
9876 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9877   lt_unset=unset
9878 else
9879   lt_unset=false
9880 fi
9881
9882
9883
9884
9885
9886 # test EBCDIC or ASCII
9887 case `echo X|tr X '\101'` in
9888  A) # ASCII based system
9889     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9890   lt_SP2NL='tr \040 \012'
9891   lt_NL2SP='tr \015\012 \040\040'
9892   ;;
9893  *) # EBCDIC based system
9894   lt_SP2NL='tr \100 \n'
9895   lt_NL2SP='tr \r\n \100\100'
9896   ;;
9897 esac
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9908 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9909 if ${lt_cv_to_host_file_cmd+:} false; then :
9910   $as_echo_n "(cached) " >&6
9911 else
9912   case $host in
9913   *-*-mingw* )
9914     case $build in
9915       *-*-mingw* ) # actually msys
9916         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9917         ;;
9918       *-*-cygwin* )
9919         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9920         ;;
9921       * ) # otherwise, assume *nix
9922         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9923         ;;
9924     esac
9925     ;;
9926   *-*-cygwin* )
9927     case $build in
9928       *-*-mingw* ) # actually msys
9929         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9930         ;;
9931       *-*-cygwin* )
9932         lt_cv_to_host_file_cmd=func_convert_file_noop
9933         ;;
9934       * ) # otherwise, assume *nix
9935         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9936         ;;
9937     esac
9938     ;;
9939   * ) # unhandled hosts (and "normal" native builds)
9940     lt_cv_to_host_file_cmd=func_convert_file_noop
9941     ;;
9942 esac
9943
9944 fi
9945
9946 to_host_file_cmd=$lt_cv_to_host_file_cmd
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9948 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9949
9950
9951
9952
9953
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9955 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9956 if ${lt_cv_to_tool_file_cmd+:} false; then :
9957   $as_echo_n "(cached) " >&6
9958 else
9959   #assume ordinary cross tools, or native build.
9960 lt_cv_to_tool_file_cmd=func_convert_file_noop
9961 case $host in
9962   *-*-mingw* )
9963     case $build in
9964       *-*-mingw* ) # actually msys
9965         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9966         ;;
9967     esac
9968     ;;
9969 esac
9970
9971 fi
9972
9973 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9975 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9976
9977
9978
9979
9980
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9982 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9983 if ${lt_cv_ld_reload_flag+:} false; then :
9984   $as_echo_n "(cached) " >&6
9985 else
9986   lt_cv_ld_reload_flag='-r'
9987 fi
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9989 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9990 reload_flag=$lt_cv_ld_reload_flag
9991 case $reload_flag in
9992 "" | " "*) ;;
9993 *) reload_flag=" $reload_flag" ;;
9994 esac
9995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9996 case $host_os in
9997   cygwin* | mingw* | pw32* | cegcc*)
9998     if test "$GCC" != yes; then
9999       reload_cmds=false
10000     fi
10001     ;;
10002   darwin*)
10003     if test "$GCC" = yes; then
10004       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10005     else
10006       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10007     fi
10008     ;;
10009 esac
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019 if test -n "$ac_tool_prefix"; then
10020   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10021 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023 $as_echo_n "checking for $ac_word... " >&6; }
10024 if ${ac_cv_prog_OBJDUMP+:} false; then :
10025   $as_echo_n "(cached) " >&6
10026 else
10027   if test -n "$OBJDUMP"; then
10028   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10029 else
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033   IFS=$as_save_IFS
10034   test -z "$as_dir" && as_dir=.
10035     for ac_exec_ext in '' $ac_executable_extensions; do
10036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10037     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039     break 2
10040   fi
10041 done
10042   done
10043 IFS=$as_save_IFS
10044
10045 fi
10046 fi
10047 OBJDUMP=$ac_cv_prog_OBJDUMP
10048 if test -n "$OBJDUMP"; then
10049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10050 $as_echo "$OBJDUMP" >&6; }
10051 else
10052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 fi
10055
10056
10057 fi
10058 if test -z "$ac_cv_prog_OBJDUMP"; then
10059   ac_ct_OBJDUMP=$OBJDUMP
10060   # Extract the first word of "objdump", so it can be a program name with args.
10061 set dummy objdump; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   if test -n "$ac_ct_OBJDUMP"; then
10068   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10069 else
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10072 do
10073   IFS=$as_save_IFS
10074   test -z "$as_dir" && as_dir=.
10075     for ac_exec_ext in '' $ac_executable_extensions; do
10076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10077     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079     break 2
10080   fi
10081 done
10082   done
10083 IFS=$as_save_IFS
10084
10085 fi
10086 fi
10087 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10088 if test -n "$ac_ct_OBJDUMP"; then
10089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10090 $as_echo "$ac_ct_OBJDUMP" >&6; }
10091 else
10092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10094 fi
10095
10096   if test "x$ac_ct_OBJDUMP" = x; then
10097     OBJDUMP="false"
10098   else
10099     case $cross_compiling:$ac_tool_warned in
10100 yes:)
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10103 ac_tool_warned=yes ;;
10104 esac
10105     OBJDUMP=$ac_ct_OBJDUMP
10106   fi
10107 else
10108   OBJDUMP="$ac_cv_prog_OBJDUMP"
10109 fi
10110
10111 test -z "$OBJDUMP" && OBJDUMP=objdump
10112
10113
10114
10115
10116
10117
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10119 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10120 if ${lt_cv_deplibs_check_method+:} false; then :
10121   $as_echo_n "(cached) " >&6
10122 else
10123   lt_cv_file_magic_cmd='$MAGIC_CMD'
10124 lt_cv_file_magic_test_file=
10125 lt_cv_deplibs_check_method='unknown'
10126 # Need to set the preceding variable on all platforms that support
10127 # interlibrary dependencies.
10128 # 'none' -- dependencies not supported.
10129 # `unknown' -- same as none, but documents that we really don't know.
10130 # 'pass_all' -- all dependencies passed with no checks.
10131 # 'test_compile' -- check by making test program.
10132 # 'file_magic [[regex]]' -- check by looking for files in library path
10133 # which responds to the $file_magic_cmd with a given extended regex.
10134 # If you have `file' or equivalent on your system and you're not sure
10135 # whether `pass_all' will *always* work, you probably want this one.
10136
10137 case $host_os in
10138 aix[4-9]*)
10139   lt_cv_deplibs_check_method=pass_all
10140   ;;
10141
10142 beos*)
10143   lt_cv_deplibs_check_method=pass_all
10144   ;;
10145
10146 bsdi[45]*)
10147   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10148   lt_cv_file_magic_cmd='/usr/bin/file -L'
10149   lt_cv_file_magic_test_file=/shlib/libc.so
10150   ;;
10151
10152 cygwin*)
10153   # func_win32_libid is a shell function defined in ltmain.sh
10154   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10155   lt_cv_file_magic_cmd='func_win32_libid'
10156   ;;
10157
10158 mingw* | pw32*)
10159   # Base MSYS/MinGW do not provide the 'file' command needed by
10160   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10161   # unless we find 'file', for example because we are cross-compiling.
10162   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10163   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10164     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10165     lt_cv_file_magic_cmd='func_win32_libid'
10166   else
10167     # Keep this pattern in sync with the one in func_win32_libid.
10168     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10169     lt_cv_file_magic_cmd='$OBJDUMP -f'
10170   fi
10171   ;;
10172
10173 cegcc*)
10174   # use the weaker test based on 'objdump'. See mingw*.
10175   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10176   lt_cv_file_magic_cmd='$OBJDUMP -f'
10177   ;;
10178
10179 darwin* | rhapsody*)
10180   lt_cv_deplibs_check_method=pass_all
10181   ;;
10182
10183 freebsd* | dragonfly*)
10184   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10185     case $host_cpu in
10186     i*86 )
10187       # Not sure whether the presence of OpenBSD here was a mistake.
10188       # Let's accept both of them until this is cleared up.
10189       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10190       lt_cv_file_magic_cmd=/usr/bin/file
10191       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10192       ;;
10193     esac
10194   else
10195     lt_cv_deplibs_check_method=pass_all
10196   fi
10197   ;;
10198
10199 gnu*)
10200   lt_cv_deplibs_check_method=pass_all
10201   ;;
10202
10203 haiku*)
10204   lt_cv_deplibs_check_method=pass_all
10205   ;;
10206
10207 hpux10.20* | hpux11*)
10208   lt_cv_file_magic_cmd=/usr/bin/file
10209   case $host_cpu in
10210   ia64*)
10211     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10212     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10213     ;;
10214   hppa*64*)
10215     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
10216     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10217     ;;
10218   *)
10219     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10220     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10221     ;;
10222   esac
10223   ;;
10224
10225 interix[3-9]*)
10226   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10227   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10228   ;;
10229
10230 irix5* | irix6* | nonstopux*)
10231   case $LD in
10232   *-32|*"-32 ") libmagic=32-bit;;
10233   *-n32|*"-n32 ") libmagic=N32;;
10234   *-64|*"-64 ") libmagic=64-bit;;
10235   *) libmagic=never-match;;
10236   esac
10237   lt_cv_deplibs_check_method=pass_all
10238   ;;
10239
10240 # This must be glibc/ELF.
10241 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10242   lt_cv_deplibs_check_method=pass_all
10243   ;;
10244
10245 netbsd*)
10246   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10247     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10248   else
10249     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10250   fi
10251   ;;
10252
10253 newos6*)
10254   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10255   lt_cv_file_magic_cmd=/usr/bin/file
10256   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10257   ;;
10258
10259 *nto* | *qnx*)
10260   lt_cv_deplibs_check_method=pass_all
10261   ;;
10262
10263 openbsd*)
10264   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10266   else
10267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10268   fi
10269   ;;
10270
10271 osf3* | osf4* | osf5*)
10272   lt_cv_deplibs_check_method=pass_all
10273   ;;
10274
10275 rdos*)
10276   lt_cv_deplibs_check_method=pass_all
10277   ;;
10278
10279 solaris*)
10280   lt_cv_deplibs_check_method=pass_all
10281   ;;
10282
10283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10284   lt_cv_deplibs_check_method=pass_all
10285   ;;
10286
10287 sysv4 | sysv4.3*)
10288   case $host_vendor in
10289   motorola)
10290     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10291     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10292     ;;
10293   ncr)
10294     lt_cv_deplibs_check_method=pass_all
10295     ;;
10296   sequent)
10297     lt_cv_file_magic_cmd='/bin/file'
10298     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10299     ;;
10300   sni)
10301     lt_cv_file_magic_cmd='/bin/file'
10302     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10303     lt_cv_file_magic_test_file=/lib/libc.so
10304     ;;
10305   siemens)
10306     lt_cv_deplibs_check_method=pass_all
10307     ;;
10308   pc)
10309     lt_cv_deplibs_check_method=pass_all
10310     ;;
10311   esac
10312   ;;
10313
10314 tpf*)
10315   lt_cv_deplibs_check_method=pass_all
10316   ;;
10317 esac
10318
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10321 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10322
10323 file_magic_glob=
10324 want_nocaseglob=no
10325 if test "$build" = "$host"; then
10326   case $host_os in
10327   mingw* | pw32*)
10328     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10329       want_nocaseglob=yes
10330     else
10331       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10332     fi
10333     ;;
10334   esac
10335 fi
10336
10337 file_magic_cmd=$lt_cv_file_magic_cmd
10338 deplibs_check_method=$lt_cv_deplibs_check_method
10339 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362 if test -n "$ac_tool_prefix"; then
10363   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10364 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366 $as_echo_n "checking for $ac_word... " >&6; }
10367 if ${ac_cv_prog_DLLTOOL+:} false; then :
10368   $as_echo_n "(cached) " >&6
10369 else
10370   if test -n "$DLLTOOL"; then
10371   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10372 else
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in $PATH
10375 do
10376   IFS=$as_save_IFS
10377   test -z "$as_dir" && as_dir=.
10378     for ac_exec_ext in '' $ac_executable_extensions; do
10379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382     break 2
10383   fi
10384 done
10385   done
10386 IFS=$as_save_IFS
10387
10388 fi
10389 fi
10390 DLLTOOL=$ac_cv_prog_DLLTOOL
10391 if test -n "$DLLTOOL"; then
10392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10393 $as_echo "$DLLTOOL" >&6; }
10394 else
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396 $as_echo "no" >&6; }
10397 fi
10398
10399
10400 fi
10401 if test -z "$ac_cv_prog_DLLTOOL"; then
10402   ac_ct_DLLTOOL=$DLLTOOL
10403   # Extract the first word of "dlltool", so it can be a program name with args.
10404 set dummy dlltool; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   if test -n "$ac_ct_DLLTOOL"; then
10411   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10412 else
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10415 do
10416   IFS=$as_save_IFS
10417   test -z "$as_dir" && as_dir=.
10418     for ac_exec_ext in '' $ac_executable_extensions; do
10419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10420     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422     break 2
10423   fi
10424 done
10425   done
10426 IFS=$as_save_IFS
10427
10428 fi
10429 fi
10430 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10431 if test -n "$ac_ct_DLLTOOL"; then
10432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10433 $as_echo "$ac_ct_DLLTOOL" >&6; }
10434 else
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10437 fi
10438
10439   if test "x$ac_ct_DLLTOOL" = x; then
10440     DLLTOOL="false"
10441   else
10442     case $cross_compiling:$ac_tool_warned in
10443 yes:)
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10446 ac_tool_warned=yes ;;
10447 esac
10448     DLLTOOL=$ac_ct_DLLTOOL
10449   fi
10450 else
10451   DLLTOOL="$ac_cv_prog_DLLTOOL"
10452 fi
10453
10454 test -z "$DLLTOOL" && DLLTOOL=dlltool
10455
10456
10457
10458
10459
10460
10461
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10463 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10464 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10465   $as_echo_n "(cached) " >&6
10466 else
10467   lt_cv_sharedlib_from_linklib_cmd='unknown'
10468
10469 case $host_os in
10470 cygwin* | mingw* | pw32* | cegcc*)
10471   # two different shell functions defined in ltmain.sh
10472   # decide which to use based on capabilities of $DLLTOOL
10473   case `$DLLTOOL --help 2>&1` in
10474   *--identify-strict*)
10475     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10476     ;;
10477   *)
10478     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10479     ;;
10480   esac
10481   ;;
10482 *)
10483   # fallback: assume linklib IS sharedlib
10484   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10485   ;;
10486 esac
10487
10488 fi
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10490 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10491 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10492 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10493
10494
10495
10496
10497
10498
10499
10500 if test -n "$ac_tool_prefix"; then
10501   for ac_prog in ar
10502   do
10503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 $as_echo_n "checking for $ac_word... " >&6; }
10507 if ${ac_cv_prog_AR+:} false; then :
10508   $as_echo_n "(cached) " >&6
10509 else
10510   if test -n "$AR"; then
10511   ac_cv_prog_AR="$AR" # Let the user override the test.
10512 else
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10515 do
10516   IFS=$as_save_IFS
10517   test -z "$as_dir" && as_dir=.
10518     for ac_exec_ext in '' $ac_executable_extensions; do
10519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10520     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522     break 2
10523   fi
10524 done
10525   done
10526 IFS=$as_save_IFS
10527
10528 fi
10529 fi
10530 AR=$ac_cv_prog_AR
10531 if test -n "$AR"; then
10532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10533 $as_echo "$AR" >&6; }
10534 else
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10537 fi
10538
10539
10540     test -n "$AR" && break
10541   done
10542 fi
10543 if test -z "$AR"; then
10544   ac_ct_AR=$AR
10545   for ac_prog in ar
10546 do
10547   # Extract the first word of "$ac_prog", so it can be a program name with args.
10548 set dummy $ac_prog; ac_word=$2
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10552   $as_echo_n "(cached) " >&6
10553 else
10554   if test -n "$ac_ct_AR"; then
10555   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10556 else
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in $PATH
10559 do
10560   IFS=$as_save_IFS
10561   test -z "$as_dir" && as_dir=.
10562     for ac_exec_ext in '' $ac_executable_extensions; do
10563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564     ac_cv_prog_ac_ct_AR="$ac_prog"
10565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566     break 2
10567   fi
10568 done
10569   done
10570 IFS=$as_save_IFS
10571
10572 fi
10573 fi
10574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10575 if test -n "$ac_ct_AR"; then
10576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10577 $as_echo "$ac_ct_AR" >&6; }
10578 else
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }
10581 fi
10582
10583
10584   test -n "$ac_ct_AR" && break
10585 done
10586
10587   if test "x$ac_ct_AR" = x; then
10588     AR="false"
10589   else
10590     case $cross_compiling:$ac_tool_warned in
10591 yes:)
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10594 ac_tool_warned=yes ;;
10595 esac
10596     AR=$ac_ct_AR
10597   fi
10598 fi
10599
10600 : ${AR=ar}
10601 : ${AR_FLAGS=cru}
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10614 $as_echo_n "checking for archiver @FILE support... " >&6; }
10615 if ${lt_cv_ar_at_file+:} false; then :
10616   $as_echo_n "(cached) " >&6
10617 else
10618   lt_cv_ar_at_file=no
10619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h.  */
10621
10622 int
10623 main ()
10624 {
10625
10626   ;
10627   return 0;
10628 }
10629 _ACEOF
10630 if ac_fn_c_try_compile "$LINENO"; then :
10631   echo conftest.$ac_objext > conftest.lst
10632       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10633       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10634   (eval $lt_ar_try) 2>&5
10635   ac_status=$?
10636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10637   test $ac_status = 0; }
10638       if test "$ac_status" -eq 0; then
10639         # Ensure the archiver fails upon bogus file names.
10640         rm -f conftest.$ac_objext libconftest.a
10641         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10642   (eval $lt_ar_try) 2>&5
10643   ac_status=$?
10644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10645   test $ac_status = 0; }
10646         if test "$ac_status" -ne 0; then
10647           lt_cv_ar_at_file=@
10648         fi
10649       fi
10650       rm -f conftest.* libconftest.a
10651
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10657 $as_echo "$lt_cv_ar_at_file" >&6; }
10658
10659 if test "x$lt_cv_ar_at_file" = xno; then
10660   archiver_list_spec=
10661 else
10662   archiver_list_spec=$lt_cv_ar_at_file
10663 fi
10664
10665
10666
10667
10668
10669
10670
10671 if test -n "$ac_tool_prefix"; then
10672   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10673 set dummy ${ac_tool_prefix}strip; ac_word=$2
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 $as_echo_n "checking for $ac_word... " >&6; }
10676 if ${ac_cv_prog_STRIP+:} false; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   if test -n "$STRIP"; then
10680   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10681 else
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10684 do
10685   IFS=$as_save_IFS
10686   test -z "$as_dir" && as_dir=.
10687     for ac_exec_ext in '' $ac_executable_extensions; do
10688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10691     break 2
10692   fi
10693 done
10694   done
10695 IFS=$as_save_IFS
10696
10697 fi
10698 fi
10699 STRIP=$ac_cv_prog_STRIP
10700 if test -n "$STRIP"; then
10701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10702 $as_echo "$STRIP" >&6; }
10703 else
10704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10706 fi
10707
10708
10709 fi
10710 if test -z "$ac_cv_prog_STRIP"; then
10711   ac_ct_STRIP=$STRIP
10712   # Extract the first word of "strip", so it can be a program name with args.
10713 set dummy strip; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10717   $as_echo_n "(cached) " >&6
10718 else
10719   if test -n "$ac_ct_STRIP"; then
10720   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10721 else
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10724 do
10725   IFS=$as_save_IFS
10726   test -z "$as_dir" && as_dir=.
10727     for ac_exec_ext in '' $ac_executable_extensions; do
10728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729     ac_cv_prog_ac_ct_STRIP="strip"
10730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731     break 2
10732   fi
10733 done
10734   done
10735 IFS=$as_save_IFS
10736
10737 fi
10738 fi
10739 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10740 if test -n "$ac_ct_STRIP"; then
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10742 $as_echo "$ac_ct_STRIP" >&6; }
10743 else
10744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10746 fi
10747
10748   if test "x$ac_ct_STRIP" = x; then
10749     STRIP=":"
10750   else
10751     case $cross_compiling:$ac_tool_warned in
10752 yes:)
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10755 ac_tool_warned=yes ;;
10756 esac
10757     STRIP=$ac_ct_STRIP
10758   fi
10759 else
10760   STRIP="$ac_cv_prog_STRIP"
10761 fi
10762
10763 test -z "$STRIP" && STRIP=:
10764
10765
10766
10767
10768
10769
10770 if test -n "$ac_tool_prefix"; then
10771   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10774 $as_echo_n "checking for $ac_word... " >&6; }
10775 if ${ac_cv_prog_RANLIB+:} false; then :
10776   $as_echo_n "(cached) " >&6
10777 else
10778   if test -n "$RANLIB"; then
10779   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10780 else
10781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782 for as_dir in $PATH
10783 do
10784   IFS=$as_save_IFS
10785   test -z "$as_dir" && as_dir=.
10786     for ac_exec_ext in '' $ac_executable_extensions; do
10787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10790     break 2
10791   fi
10792 done
10793   done
10794 IFS=$as_save_IFS
10795
10796 fi
10797 fi
10798 RANLIB=$ac_cv_prog_RANLIB
10799 if test -n "$RANLIB"; then
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10801 $as_echo "$RANLIB" >&6; }
10802 else
10803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10805 fi
10806
10807
10808 fi
10809 if test -z "$ac_cv_prog_RANLIB"; then
10810   ac_ct_RANLIB=$RANLIB
10811   # Extract the first word of "ranlib", so it can be a program name with args.
10812 set dummy ranlib; ac_word=$2
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10814 $as_echo_n "checking for $ac_word... " >&6; }
10815 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10816   $as_echo_n "(cached) " >&6
10817 else
10818   if test -n "$ac_ct_RANLIB"; then
10819   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10820 else
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10823 do
10824   IFS=$as_save_IFS
10825   test -z "$as_dir" && as_dir=.
10826     for ac_exec_ext in '' $ac_executable_extensions; do
10827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10828     ac_cv_prog_ac_ct_RANLIB="ranlib"
10829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10830     break 2
10831   fi
10832 done
10833   done
10834 IFS=$as_save_IFS
10835
10836 fi
10837 fi
10838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10839 if test -n "$ac_ct_RANLIB"; then
10840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10841 $as_echo "$ac_ct_RANLIB" >&6; }
10842 else
10843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10845 fi
10846
10847   if test "x$ac_ct_RANLIB" = x; then
10848     RANLIB=":"
10849   else
10850     case $cross_compiling:$ac_tool_warned in
10851 yes:)
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10854 ac_tool_warned=yes ;;
10855 esac
10856     RANLIB=$ac_ct_RANLIB
10857   fi
10858 else
10859   RANLIB="$ac_cv_prog_RANLIB"
10860 fi
10861
10862 test -z "$RANLIB" && RANLIB=:
10863
10864
10865
10866
10867
10868
10869 # Determine commands to create old-style static archives.
10870 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10871 old_postinstall_cmds='chmod 644 $oldlib'
10872 old_postuninstall_cmds=
10873
10874 if test -n "$RANLIB"; then
10875   case $host_os in
10876   openbsd*)
10877     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10878     ;;
10879   *)
10880     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10881     ;;
10882   esac
10883   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10884 fi
10885
10886 case $host_os in
10887   darwin*)
10888     lock_old_archive_extraction=yes ;;
10889   *)
10890     lock_old_archive_extraction=no ;;
10891 esac
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931 # If no C compiler was specified, use CC.
10932 LTCC=${LTCC-"$CC"}
10933
10934 # If no C compiler flags were specified, use CFLAGS.
10935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10936
10937 # Allow CC to be a program name with arguments.
10938 compiler=$CC
10939
10940
10941 # Check for command to grab the raw symbol name followed by C symbol from nm.
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10943 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10944 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10945   $as_echo_n "(cached) " >&6
10946 else
10947
10948 # These are sane defaults that work on at least a few old systems.
10949 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10950
10951 # Character class describing NM global symbol codes.
10952 symcode='[BCDEGRST]'
10953
10954 # Regexp to match symbols that can be accessed directly from C.
10955 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10956
10957 # Define system-specific variables.
10958 case $host_os in
10959 aix*)
10960   symcode='[BCDT]'
10961   ;;
10962 cygwin* | mingw* | pw32* | cegcc*)
10963   symcode='[ABCDGISTW]'
10964   ;;
10965 hpux*)
10966   if test "$host_cpu" = ia64; then
10967     symcode='[ABCDEGRST]'
10968   fi
10969   ;;
10970 irix* | nonstopux*)
10971   symcode='[BCDEGRST]'
10972   ;;
10973 osf*)
10974   symcode='[BCDEGQRST]'
10975   ;;
10976 solaris*)
10977   symcode='[BDRT]'
10978   ;;
10979 sco3.2v5*)
10980   symcode='[DT]'
10981   ;;
10982 sysv4.2uw2*)
10983   symcode='[DT]'
10984   ;;
10985 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10986   symcode='[ABDT]'
10987   ;;
10988 sysv4)
10989   symcode='[DFNSTU]'
10990   ;;
10991 esac
10992
10993 # If we're using GNU nm, then use its standard symbol codes.
10994 case `$NM -V 2>&1` in
10995 *GNU* | *'with BFD'*)
10996   symcode='[ABCDGIRSTW]' ;;
10997 esac
10998
10999 # Transform an extracted symbol line into a proper C declaration.
11000 # Some systems (esp. on ia64) link data and code symbols differently,
11001 # so use this general approach.
11002 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11003
11004 # Transform an extracted symbol line into symbol name and symbol address
11005 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
11006 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
11007
11008 # Handle CRLF in mingw tool chain
11009 opt_cr=
11010 case $build_os in
11011 mingw*)
11012   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11013   ;;
11014 esac
11015
11016 # Try without a prefix underscore, then with it.
11017 for ac_symprfx in "" "_"; do
11018
11019   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11020   symxfrm="\\1 $ac_symprfx\\2 \\2"
11021
11022   # Write the raw and C identifiers.
11023   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11024     # Fake it for dumpbin and say T for any non-static function
11025     # and D for any global variable.
11026     # Also find C++ and __fastcall symbols from MSVC++,
11027     # which start with @ or ?.
11028     lt_cv_sys_global_symbol_pipe="$AWK '"\
11029 "     {last_section=section; section=\$ 3};"\
11030 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11031 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11032 "     \$ 0!~/External *\|/{next};"\
11033 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11034 "     {if(hide[section]) next};"\
11035 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11036 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11037 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
11038 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11039 "     ' prfx=^$ac_symprfx"
11040   else
11041     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11042   fi
11043   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11044
11045   # Check to see that the pipe works correctly.
11046   pipe_works=no
11047
11048   rm -f conftest*
11049   cat > conftest.$ac_ext <<_LT_EOF
11050 #ifdef __cplusplus
11051 extern "C" {
11052 #endif
11053 char nm_test_var;
11054 void nm_test_func(void);
11055 void nm_test_func(void){}
11056 #ifdef __cplusplus
11057 }
11058 #endif
11059 int main(){nm_test_var='a';nm_test_func();return(0);}
11060 _LT_EOF
11061
11062   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11063   (eval $ac_compile) 2>&5
11064   ac_status=$?
11065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066   test $ac_status = 0; }; then
11067     # Now try to grab the symbols.
11068     nlist=conftest.nm
11069     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11070   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11071   ac_status=$?
11072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11073   test $ac_status = 0; } && test -s "$nlist"; then
11074       # Try sorting and uniquifying the output.
11075       if sort "$nlist" | uniq > "$nlist"T; then
11076         mv -f "$nlist"T "$nlist"
11077       else
11078         rm -f "$nlist"T
11079       fi
11080
11081       # Make sure that we snagged all the symbols we need.
11082       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11083         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11084           cat <<_LT_EOF > conftest.$ac_ext
11085 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11086 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11087 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11088    relocations are performed -- see ld's documentation on pseudo-relocs.  */
11089 # define LT_DLSYM_CONST
11090 #elif defined(__osf__)
11091 /* This system does not cope well with relocations in const data.  */
11092 # define LT_DLSYM_CONST
11093 #else
11094 # define LT_DLSYM_CONST const
11095 #endif
11096
11097 #ifdef __cplusplus
11098 extern "C" {
11099 #endif
11100
11101 _LT_EOF
11102           # Now generate the symbol file.
11103           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11104
11105           cat <<_LT_EOF >> conftest.$ac_ext
11106
11107 /* The mapping between symbol names and symbols.  */
11108 LT_DLSYM_CONST struct {
11109   const char *name;
11110   void       *address;
11111 }
11112 lt__PROGRAM__LTX_preloaded_symbols[] =
11113 {
11114   { "@PROGRAM@", (void *) 0 },
11115 _LT_EOF
11116           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11117           cat <<\_LT_EOF >> conftest.$ac_ext
11118   {0, (void *) 0}
11119 };
11120
11121 /* This works around a problem in FreeBSD linker */
11122 #ifdef FREEBSD_WORKAROUND
11123 static const void *lt_preloaded_setup() {
11124   return lt__PROGRAM__LTX_preloaded_symbols;
11125 }
11126 #endif
11127
11128 #ifdef __cplusplus
11129 }
11130 #endif
11131 _LT_EOF
11132           # Now try linking the two files.
11133           mv conftest.$ac_objext conftstm.$ac_objext
11134           lt_globsym_save_LIBS=$LIBS
11135           lt_globsym_save_CFLAGS=$CFLAGS
11136           LIBS="conftstm.$ac_objext"
11137           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11138           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11139   (eval $ac_link) 2>&5
11140   ac_status=$?
11141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11142   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11143             pipe_works=yes
11144           fi
11145           LIBS=$lt_globsym_save_LIBS
11146           CFLAGS=$lt_globsym_save_CFLAGS
11147         else
11148           echo "cannot find nm_test_func in $nlist" >&5
11149         fi
11150       else
11151         echo "cannot find nm_test_var in $nlist" >&5
11152       fi
11153     else
11154       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11155     fi
11156   else
11157     echo "$progname: failed program was:" >&5
11158     cat conftest.$ac_ext >&5
11159   fi
11160   rm -rf conftest* conftst*
11161
11162   # Do not use the global_symbol_pipe unless it works.
11163   if test "$pipe_works" = yes; then
11164     break
11165   else
11166     lt_cv_sys_global_symbol_pipe=
11167   fi
11168 done
11169
11170 fi
11171
11172 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11173   lt_cv_sys_global_symbol_to_cdecl=
11174 fi
11175 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11177 $as_echo "failed" >&6; }
11178 else
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11180 $as_echo "ok" >&6; }
11181 fi
11182
11183 # Response file support.
11184 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11185   nm_file_list_spec='@'
11186 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11187   nm_file_list_spec='@'
11188 fi
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11217 $as_echo_n "checking for sysroot... " >&6; }
11218
11219 # Check whether --with-sysroot was given.
11220 if test "${with_sysroot+set}" = set; then :
11221   withval=$with_sysroot;
11222 else
11223   with_sysroot=no
11224 fi
11225
11226
11227 lt_sysroot=
11228 case ${with_sysroot} in #(
11229  yes)
11230    if test "$GCC" = yes; then
11231      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11232    fi
11233    ;; #(
11234  /*)
11235    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11236    ;; #(
11237  no|'')
11238    ;; #(
11239  *)
11240    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11241 $as_echo "${with_sysroot}" >&6; }
11242    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11243    ;;
11244 esac
11245
11246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11247 $as_echo "${lt_sysroot:-no}" >&6; }
11248
11249
11250
11251
11252
11253 # Check whether --enable-libtool-lock was given.
11254 if test "${enable_libtool_lock+set}" = set; then :
11255   enableval=$enable_libtool_lock;
11256 fi
11257
11258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11259
11260 # Some flags need to be propagated to the compiler or linker for good
11261 # libtool support.
11262 case $host in
11263 ia64-*-hpux*)
11264   # Find out which ABI we are using.
11265   echo 'int i;' > conftest.$ac_ext
11266   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11267   (eval $ac_compile) 2>&5
11268   ac_status=$?
11269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11270   test $ac_status = 0; }; then
11271     case `/usr/bin/file conftest.$ac_objext` in
11272       *ELF-32*)
11273         HPUX_IA64_MODE="32"
11274         ;;
11275       *ELF-64*)
11276         HPUX_IA64_MODE="64"
11277         ;;
11278     esac
11279   fi
11280   rm -rf conftest*
11281   ;;
11282 *-*-irix6*)
11283   # Find out which ABI we are using.
11284   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11285   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11286   (eval $ac_compile) 2>&5
11287   ac_status=$?
11288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11289   test $ac_status = 0; }; then
11290     if test "$lt_cv_prog_gnu_ld" = yes; then
11291       case `/usr/bin/file conftest.$ac_objext` in
11292         *32-bit*)
11293           LD="${LD-ld} -melf32bsmip"
11294           ;;
11295         *N32*)
11296           LD="${LD-ld} -melf32bmipn32"
11297           ;;
11298         *64-bit*)
11299           LD="${LD-ld} -melf64bmip"
11300         ;;
11301       esac
11302     else
11303       case `/usr/bin/file conftest.$ac_objext` in
11304         *32-bit*)
11305           LD="${LD-ld} -32"
11306           ;;
11307         *N32*)
11308           LD="${LD-ld} -n32"
11309           ;;
11310         *64-bit*)
11311           LD="${LD-ld} -64"
11312           ;;
11313       esac
11314     fi
11315   fi
11316   rm -rf conftest*
11317   ;;
11318
11319 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11320 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11321   # Find out which ABI we are using.
11322   echo 'int i;' > conftest.$ac_ext
11323   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11324   (eval $ac_compile) 2>&5
11325   ac_status=$?
11326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327   test $ac_status = 0; }; then
11328     case `/usr/bin/file conftest.o` in
11329       *32-bit*)
11330         case $host in
11331           x86_64-*kfreebsd*-gnu)
11332             LD="${LD-ld} -m elf_i386_fbsd"
11333             ;;
11334           x86_64-*linux*)
11335             LD="${LD-ld} -m elf_i386"
11336             ;;
11337           ppc64-*linux*|powerpc64-*linux*)
11338             LD="${LD-ld} -m elf32ppclinux"
11339             ;;
11340           s390x-*linux*)
11341             LD="${LD-ld} -m elf_s390"
11342             ;;
11343           sparc64-*linux*)
11344             LD="${LD-ld} -m elf32_sparc"
11345             ;;
11346         esac
11347         ;;
11348       *64-bit*)
11349         case $host in
11350           x86_64-*kfreebsd*-gnu)
11351             LD="${LD-ld} -m elf_x86_64_fbsd"
11352             ;;
11353           x86_64-*linux*)
11354             LD="${LD-ld} -m elf_x86_64"
11355             ;;
11356           ppc*-*linux*|powerpc*-*linux*)
11357             LD="${LD-ld} -m elf64ppc"
11358             ;;
11359           s390*-*linux*|s390*-*tpf*)
11360             LD="${LD-ld} -m elf64_s390"
11361             ;;
11362           sparc*-*linux*)
11363             LD="${LD-ld} -m elf64_sparc"
11364             ;;
11365         esac
11366         ;;
11367     esac
11368   fi
11369   rm -rf conftest*
11370   ;;
11371
11372 *-*-sco3.2v5*)
11373   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11374   SAVE_CFLAGS="$CFLAGS"
11375   CFLAGS="$CFLAGS -belf"
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11377 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11378 if ${lt_cv_cc_needs_belf+:} false; then :
11379   $as_echo_n "(cached) " >&6
11380 else
11381   ac_ext=c
11382 ac_cpp='$CPP $CPPFLAGS'
11383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11386
11387      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h.  */
11389
11390 int
11391 main ()
11392 {
11393
11394   ;
11395   return 0;
11396 }
11397 _ACEOF
11398 if ac_fn_c_try_link "$LINENO"; then :
11399   lt_cv_cc_needs_belf=yes
11400 else
11401   lt_cv_cc_needs_belf=no
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext \
11404     conftest$ac_exeext conftest.$ac_ext
11405      ac_ext=c
11406 ac_cpp='$CPP $CPPFLAGS'
11407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11410
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11413 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11414   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11415     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11416     CFLAGS="$SAVE_CFLAGS"
11417   fi
11418   ;;
11419 *-*solaris*)
11420   # Find out which ABI we are using.
11421   echo 'int i;' > conftest.$ac_ext
11422   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11423   (eval $ac_compile) 2>&5
11424   ac_status=$?
11425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11426   test $ac_status = 0; }; then
11427     case `/usr/bin/file conftest.o` in
11428     *64-bit*)
11429       case $lt_cv_prog_gnu_ld in
11430       yes*)
11431         case $host in
11432         i?86-*-solaris*)
11433           LD="${LD-ld} -m elf_x86_64"
11434           ;;
11435         sparc*-*-solaris*)
11436           LD="${LD-ld} -m elf64_sparc"
11437           ;;
11438         esac
11439         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11440         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11441           LD="${LD-ld}_sol2"
11442         fi
11443         ;;
11444       *)
11445         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11446           LD="${LD-ld} -64"
11447         fi
11448         ;;
11449       esac
11450       ;;
11451     esac
11452   fi
11453   rm -rf conftest*
11454   ;;
11455 esac
11456
11457 need_locks="$enable_libtool_lock"
11458
11459 if test -n "$ac_tool_prefix"; then
11460   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11461 set dummy ${ac_tool_prefix}mt; ac_word=$2
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463 $as_echo_n "checking for $ac_word... " >&6; }
11464 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11465   $as_echo_n "(cached) " >&6
11466 else
11467   if test -n "$MANIFEST_TOOL"; then
11468   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11469 else
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11472 do
11473   IFS=$as_save_IFS
11474   test -z "$as_dir" && as_dir=.
11475     for ac_exec_ext in '' $ac_executable_extensions; do
11476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11477     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479     break 2
11480   fi
11481 done
11482   done
11483 IFS=$as_save_IFS
11484
11485 fi
11486 fi
11487 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11488 if test -n "$MANIFEST_TOOL"; then
11489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11490 $as_echo "$MANIFEST_TOOL" >&6; }
11491 else
11492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11494 fi
11495
11496
11497 fi
11498 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11499   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11500   # Extract the first word of "mt", so it can be a program name with args.
11501 set dummy mt; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11505   $as_echo_n "(cached) " >&6
11506 else
11507   if test -n "$ac_ct_MANIFEST_TOOL"; then
11508   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11509 else
11510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511 for as_dir in $PATH
11512 do
11513   IFS=$as_save_IFS
11514   test -z "$as_dir" && as_dir=.
11515     for ac_exec_ext in '' $ac_executable_extensions; do
11516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11517     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11519     break 2
11520   fi
11521 done
11522   done
11523 IFS=$as_save_IFS
11524
11525 fi
11526 fi
11527 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11528 if test -n "$ac_ct_MANIFEST_TOOL"; then
11529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11530 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11531 else
11532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11534 fi
11535
11536   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11537     MANIFEST_TOOL=":"
11538   else
11539     case $cross_compiling:$ac_tool_warned in
11540 yes:)
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11543 ac_tool_warned=yes ;;
11544 esac
11545     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11546   fi
11547 else
11548   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11549 fi
11550
11551 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11553 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11554 if ${lt_cv_path_mainfest_tool+:} false; then :
11555   $as_echo_n "(cached) " >&6
11556 else
11557   lt_cv_path_mainfest_tool=no
11558   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11559   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11560   cat conftest.err >&5
11561   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11562     lt_cv_path_mainfest_tool=yes
11563   fi
11564   rm -f conftest*
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11567 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11568 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11569   MANIFEST_TOOL=:
11570 fi
11571
11572
11573
11574
11575
11576
11577   case $host_os in
11578     rhapsody* | darwin*)
11579     if test -n "$ac_tool_prefix"; then
11580   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11581 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11585   $as_echo_n "(cached) " >&6
11586 else
11587   if test -n "$DSYMUTIL"; then
11588   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11589 else
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11592 do
11593   IFS=$as_save_IFS
11594   test -z "$as_dir" && as_dir=.
11595     for ac_exec_ext in '' $ac_executable_extensions; do
11596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599     break 2
11600   fi
11601 done
11602   done
11603 IFS=$as_save_IFS
11604
11605 fi
11606 fi
11607 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11608 if test -n "$DSYMUTIL"; then
11609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11610 $as_echo "$DSYMUTIL" >&6; }
11611 else
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11614 fi
11615
11616
11617 fi
11618 if test -z "$ac_cv_prog_DSYMUTIL"; then
11619   ac_ct_DSYMUTIL=$DSYMUTIL
11620   # Extract the first word of "dsymutil", so it can be a program name with args.
11621 set dummy dsymutil; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   if test -n "$ac_ct_DSYMUTIL"; then
11628   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11629 else
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11632 do
11633   IFS=$as_save_IFS
11634   test -z "$as_dir" && as_dir=.
11635     for ac_exec_ext in '' $ac_executable_extensions; do
11636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639     break 2
11640   fi
11641 done
11642   done
11643 IFS=$as_save_IFS
11644
11645 fi
11646 fi
11647 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11648 if test -n "$ac_ct_DSYMUTIL"; then
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11650 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11651 else
11652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654 fi
11655
11656   if test "x$ac_ct_DSYMUTIL" = x; then
11657     DSYMUTIL=":"
11658   else
11659     case $cross_compiling:$ac_tool_warned in
11660 yes:)
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11663 ac_tool_warned=yes ;;
11664 esac
11665     DSYMUTIL=$ac_ct_DSYMUTIL
11666   fi
11667 else
11668   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11669 fi
11670
11671     if test -n "$ac_tool_prefix"; then
11672   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11673 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675 $as_echo_n "checking for $ac_word... " >&6; }
11676 if ${ac_cv_prog_NMEDIT+:} false; then :
11677   $as_echo_n "(cached) " >&6
11678 else
11679   if test -n "$NMEDIT"; then
11680   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11681 else
11682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $PATH
11684 do
11685   IFS=$as_save_IFS
11686   test -z "$as_dir" && as_dir=.
11687     for ac_exec_ext in '' $ac_executable_extensions; do
11688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11689     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691     break 2
11692   fi
11693 done
11694   done
11695 IFS=$as_save_IFS
11696
11697 fi
11698 fi
11699 NMEDIT=$ac_cv_prog_NMEDIT
11700 if test -n "$NMEDIT"; then
11701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11702 $as_echo "$NMEDIT" >&6; }
11703 else
11704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11706 fi
11707
11708
11709 fi
11710 if test -z "$ac_cv_prog_NMEDIT"; then
11711   ac_ct_NMEDIT=$NMEDIT
11712   # Extract the first word of "nmedit", so it can be a program name with args.
11713 set dummy nmedit; ac_word=$2
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715 $as_echo_n "checking for $ac_word... " >&6; }
11716 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11717   $as_echo_n "(cached) " >&6
11718 else
11719   if test -n "$ac_ct_NMEDIT"; then
11720   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11721 else
11722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723 for as_dir in $PATH
11724 do
11725   IFS=$as_save_IFS
11726   test -z "$as_dir" && as_dir=.
11727     for ac_exec_ext in '' $ac_executable_extensions; do
11728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11729     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731     break 2
11732   fi
11733 done
11734   done
11735 IFS=$as_save_IFS
11736
11737 fi
11738 fi
11739 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11740 if test -n "$ac_ct_NMEDIT"; then
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11742 $as_echo "$ac_ct_NMEDIT" >&6; }
11743 else
11744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 fi
11747
11748   if test "x$ac_ct_NMEDIT" = x; then
11749     NMEDIT=":"
11750   else
11751     case $cross_compiling:$ac_tool_warned in
11752 yes:)
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11755 ac_tool_warned=yes ;;
11756 esac
11757     NMEDIT=$ac_ct_NMEDIT
11758   fi
11759 else
11760   NMEDIT="$ac_cv_prog_NMEDIT"
11761 fi
11762
11763     if test -n "$ac_tool_prefix"; then
11764   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11765 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767 $as_echo_n "checking for $ac_word... " >&6; }
11768 if ${ac_cv_prog_LIPO+:} false; then :
11769   $as_echo_n "(cached) " >&6
11770 else
11771   if test -n "$LIPO"; then
11772   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11773 else
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11776 do
11777   IFS=$as_save_IFS
11778   test -z "$as_dir" && as_dir=.
11779     for ac_exec_ext in '' $ac_executable_extensions; do
11780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783     break 2
11784   fi
11785 done
11786   done
11787 IFS=$as_save_IFS
11788
11789 fi
11790 fi
11791 LIPO=$ac_cv_prog_LIPO
11792 if test -n "$LIPO"; then
11793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11794 $as_echo "$LIPO" >&6; }
11795 else
11796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11798 fi
11799
11800
11801 fi
11802 if test -z "$ac_cv_prog_LIPO"; then
11803   ac_ct_LIPO=$LIPO
11804   # Extract the first word of "lipo", so it can be a program name with args.
11805 set dummy lipo; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807 $as_echo_n "checking for $ac_word... " >&6; }
11808 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   if test -n "$ac_ct_LIPO"; then
11812   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11813 else
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11816 do
11817   IFS=$as_save_IFS
11818   test -z "$as_dir" && as_dir=.
11819     for ac_exec_ext in '' $ac_executable_extensions; do
11820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821     ac_cv_prog_ac_ct_LIPO="lipo"
11822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823     break 2
11824   fi
11825 done
11826   done
11827 IFS=$as_save_IFS
11828
11829 fi
11830 fi
11831 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11832 if test -n "$ac_ct_LIPO"; then
11833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11834 $as_echo "$ac_ct_LIPO" >&6; }
11835 else
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11838 fi
11839
11840   if test "x$ac_ct_LIPO" = x; then
11841     LIPO=":"
11842   else
11843     case $cross_compiling:$ac_tool_warned in
11844 yes:)
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11847 ac_tool_warned=yes ;;
11848 esac
11849     LIPO=$ac_ct_LIPO
11850   fi
11851 else
11852   LIPO="$ac_cv_prog_LIPO"
11853 fi
11854
11855     if test -n "$ac_tool_prefix"; then
11856   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11857 set dummy ${ac_tool_prefix}otool; ac_word=$2
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859 $as_echo_n "checking for $ac_word... " >&6; }
11860 if ${ac_cv_prog_OTOOL+:} false; then :
11861   $as_echo_n "(cached) " >&6
11862 else
11863   if test -n "$OTOOL"; then
11864   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11865 else
11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11868 do
11869   IFS=$as_save_IFS
11870   test -z "$as_dir" && as_dir=.
11871     for ac_exec_ext in '' $ac_executable_extensions; do
11872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875     break 2
11876   fi
11877 done
11878   done
11879 IFS=$as_save_IFS
11880
11881 fi
11882 fi
11883 OTOOL=$ac_cv_prog_OTOOL
11884 if test -n "$OTOOL"; then
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11886 $as_echo "$OTOOL" >&6; }
11887 else
11888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 fi
11891
11892
11893 fi
11894 if test -z "$ac_cv_prog_OTOOL"; then
11895   ac_ct_OTOOL=$OTOOL
11896   # Extract the first word of "otool", so it can be a program name with args.
11897 set dummy otool; ac_word=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11901   $as_echo_n "(cached) " >&6
11902 else
11903   if test -n "$ac_ct_OTOOL"; then
11904   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11905 else
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11908 do
11909   IFS=$as_save_IFS
11910   test -z "$as_dir" && as_dir=.
11911     for ac_exec_ext in '' $ac_executable_extensions; do
11912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913     ac_cv_prog_ac_ct_OTOOL="otool"
11914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915     break 2
11916   fi
11917 done
11918   done
11919 IFS=$as_save_IFS
11920
11921 fi
11922 fi
11923 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11924 if test -n "$ac_ct_OTOOL"; then
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11926 $as_echo "$ac_ct_OTOOL" >&6; }
11927 else
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11930 fi
11931
11932   if test "x$ac_ct_OTOOL" = x; then
11933     OTOOL=":"
11934   else
11935     case $cross_compiling:$ac_tool_warned in
11936 yes:)
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11939 ac_tool_warned=yes ;;
11940 esac
11941     OTOOL=$ac_ct_OTOOL
11942   fi
11943 else
11944   OTOOL="$ac_cv_prog_OTOOL"
11945 fi
11946
11947     if test -n "$ac_tool_prefix"; then
11948   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11949 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_prog_OTOOL64+:} false; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955   if test -n "$OTOOL64"; then
11956   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11957 else
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11960 do
11961   IFS=$as_save_IFS
11962   test -z "$as_dir" && as_dir=.
11963     for ac_exec_ext in '' $ac_executable_extensions; do
11964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967     break 2
11968   fi
11969 done
11970   done
11971 IFS=$as_save_IFS
11972
11973 fi
11974 fi
11975 OTOOL64=$ac_cv_prog_OTOOL64
11976 if test -n "$OTOOL64"; then
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11978 $as_echo "$OTOOL64" >&6; }
11979 else
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982 fi
11983
11984
11985 fi
11986 if test -z "$ac_cv_prog_OTOOL64"; then
11987   ac_ct_OTOOL64=$OTOOL64
11988   # Extract the first word of "otool64", so it can be a program name with args.
11989 set dummy otool64; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995   if test -n "$ac_ct_OTOOL64"; then
11996   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11997 else
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12000 do
12001   IFS=$as_save_IFS
12002   test -z "$as_dir" && as_dir=.
12003     for ac_exec_ext in '' $ac_executable_extensions; do
12004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005     ac_cv_prog_ac_ct_OTOOL64="otool64"
12006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007     break 2
12008   fi
12009 done
12010   done
12011 IFS=$as_save_IFS
12012
12013 fi
12014 fi
12015 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12016 if test -n "$ac_ct_OTOOL64"; then
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12018 $as_echo "$ac_ct_OTOOL64" >&6; }
12019 else
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12022 fi
12023
12024   if test "x$ac_ct_OTOOL64" = x; then
12025     OTOOL64=":"
12026   else
12027     case $cross_compiling:$ac_tool_warned in
12028 yes:)
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12031 ac_tool_warned=yes ;;
12032 esac
12033     OTOOL64=$ac_ct_OTOOL64
12034   fi
12035 else
12036   OTOOL64="$ac_cv_prog_OTOOL64"
12037 fi
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12066 $as_echo_n "checking for -single_module linker flag... " >&6; }
12067 if ${lt_cv_apple_cc_single_mod+:} false; then :
12068   $as_echo_n "(cached) " >&6
12069 else
12070   lt_cv_apple_cc_single_mod=no
12071       if test -z "${LT_MULTI_MODULE}"; then
12072         # By default we will add the -single_module flag. You can override
12073         # by either setting the environment variable LT_MULTI_MODULE
12074         # non-empty at configure time, or by adding -multi_module to the
12075         # link flags.
12076         rm -rf libconftest.dylib*
12077         echo "int foo(void){return 1;}" > conftest.c
12078         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12079 -dynamiclib -Wl,-single_module conftest.c" >&5
12080         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12081           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12082         _lt_result=$?
12083         # If there is a non-empty error log, and "single_module"
12084         # appears in it, assume the flag caused a linker warning
12085         if test -s conftest.err && $GREP single_module conftest.err; then
12086           cat conftest.err >&5
12087         # Otherwise, if the output was created with a 0 exit code from
12088         # the compiler, it worked.
12089         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
12090           lt_cv_apple_cc_single_mod=yes
12091         else
12092           cat conftest.err >&5
12093         fi
12094         rm -rf libconftest.dylib*
12095         rm -f conftest.*
12096       fi
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12099 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12100
12101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12102 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12103 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12104   $as_echo_n "(cached) " >&6
12105 else
12106   lt_cv_ld_exported_symbols_list=no
12107       save_LDFLAGS=$LDFLAGS
12108       echo "_main" > conftest.sym
12109       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12110       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h.  */
12112
12113 int
12114 main ()
12115 {
12116
12117   ;
12118   return 0;
12119 }
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122   lt_cv_ld_exported_symbols_list=yes
12123 else
12124   lt_cv_ld_exported_symbols_list=no
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext \
12127     conftest$ac_exeext conftest.$ac_ext
12128         LDFLAGS="$save_LDFLAGS"
12129
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12132 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12133
12134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12135 $as_echo_n "checking for -force_load linker flag... " >&6; }
12136 if ${lt_cv_ld_force_load+:} false; then :
12137   $as_echo_n "(cached) " >&6
12138 else
12139   lt_cv_ld_force_load=no
12140       cat > conftest.c << _LT_EOF
12141 int forced_loaded() { return 2;}
12142 _LT_EOF
12143       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12144       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12145       echo "$AR cru libconftest.a conftest.o" >&5
12146       $AR cru libconftest.a conftest.o 2>&5
12147       echo "$RANLIB libconftest.a" >&5
12148       $RANLIB libconftest.a 2>&5
12149       cat > conftest.c << _LT_EOF
12150 int main() { return 0;}
12151 _LT_EOF
12152       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12153       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12154       _lt_result=$?
12155       if test -s conftest.err && $GREP force_load conftest.err; then
12156         cat conftest.err >&5
12157       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
12158         lt_cv_ld_force_load=yes
12159       else
12160         cat conftest.err >&5
12161       fi
12162         rm -f conftest.err libconftest.a conftest conftest.c
12163         rm -rf conftest.dSYM
12164
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12167 $as_echo "$lt_cv_ld_force_load" >&6; }
12168     case $host_os in
12169     rhapsody* | darwin1.[012])
12170       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12171     darwin1.*)
12172       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12173     darwin*) # darwin 5.x on
12174       # if running on 10.5 or later, the deployment target defaults
12175       # to the OS version, if on x86, and 10.4, the deployment
12176       # target defaults to 10.4. Don't you love it?
12177       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12178         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12179           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12180         10.[012]*)
12181           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12182         10.*)
12183           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12184       esac
12185     ;;
12186   esac
12187     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12188       _lt_dar_single_mod='$single_module'
12189     fi
12190     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12191       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12192     else
12193       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12194     fi
12195     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12196       _lt_dsymutil='~$DSYMUTIL $lib || :'
12197     else
12198       _lt_dsymutil=
12199     fi
12200     ;;
12201   esac
12202
12203 for ac_header in dlfcn.h
12204 do :
12205   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12206 "
12207 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12208   cat >>confdefs.h <<_ACEOF
12209 #define HAVE_DLFCN_H 1
12210 _ACEOF
12211
12212 fi
12213
12214 done
12215
12216
12217
12218
12219
12220 # Set options
12221 enable_win32_dll=yes
12222
12223 case $host in
12224 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12225   if test -n "$ac_tool_prefix"; then
12226   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12227 set dummy ${ac_tool_prefix}as; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_prog_AS+:} false; then :
12231   $as_echo_n "(cached) " >&6
12232 else
12233   if test -n "$AS"; then
12234   ac_cv_prog_AS="$AS" # Let the user override the test.
12235 else
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239   IFS=$as_save_IFS
12240   test -z "$as_dir" && as_dir=.
12241     for ac_exec_ext in '' $ac_executable_extensions; do
12242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243     ac_cv_prog_AS="${ac_tool_prefix}as"
12244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245     break 2
12246   fi
12247 done
12248   done
12249 IFS=$as_save_IFS
12250
12251 fi
12252 fi
12253 AS=$ac_cv_prog_AS
12254 if test -n "$AS"; then
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12256 $as_echo "$AS" >&6; }
12257 else
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 fi
12261
12262
12263 fi
12264 if test -z "$ac_cv_prog_AS"; then
12265   ac_ct_AS=$AS
12266   # Extract the first word of "as", so it can be a program name with args.
12267 set dummy as; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12271   $as_echo_n "(cached) " >&6
12272 else
12273   if test -n "$ac_ct_AS"; then
12274   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12275 else
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12278 do
12279   IFS=$as_save_IFS
12280   test -z "$as_dir" && as_dir=.
12281     for ac_exec_ext in '' $ac_executable_extensions; do
12282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12283     ac_cv_prog_ac_ct_AS="as"
12284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285     break 2
12286   fi
12287 done
12288   done
12289 IFS=$as_save_IFS
12290
12291 fi
12292 fi
12293 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12294 if test -n "$ac_ct_AS"; then
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12296 $as_echo "$ac_ct_AS" >&6; }
12297 else
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301
12302   if test "x$ac_ct_AS" = x; then
12303     AS="false"
12304   else
12305     case $cross_compiling:$ac_tool_warned in
12306 yes:)
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12309 ac_tool_warned=yes ;;
12310 esac
12311     AS=$ac_ct_AS
12312   fi
12313 else
12314   AS="$ac_cv_prog_AS"
12315 fi
12316
12317   if test -n "$ac_tool_prefix"; then
12318   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12319 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if ${ac_cv_prog_DLLTOOL+:} false; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   if test -n "$DLLTOOL"; then
12326   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12330 do
12331   IFS=$as_save_IFS
12332   test -z "$as_dir" && as_dir=.
12333     for ac_exec_ext in '' $ac_executable_extensions; do
12334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12335     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337     break 2
12338   fi
12339 done
12340   done
12341 IFS=$as_save_IFS
12342
12343 fi
12344 fi
12345 DLLTOOL=$ac_cv_prog_DLLTOOL
12346 if test -n "$DLLTOOL"; then
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12348 $as_echo "$DLLTOOL" >&6; }
12349 else
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 fi
12353
12354
12355 fi
12356 if test -z "$ac_cv_prog_DLLTOOL"; then
12357   ac_ct_DLLTOOL=$DLLTOOL
12358   # Extract the first word of "dlltool", so it can be a program name with args.
12359 set dummy dlltool; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365   if test -n "$ac_ct_DLLTOOL"; then
12366   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12367 else
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12370 do
12371   IFS=$as_save_IFS
12372   test -z "$as_dir" && as_dir=.
12373     for ac_exec_ext in '' $ac_executable_extensions; do
12374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12375     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377     break 2
12378   fi
12379 done
12380   done
12381 IFS=$as_save_IFS
12382
12383 fi
12384 fi
12385 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12386 if test -n "$ac_ct_DLLTOOL"; then
12387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12388 $as_echo "$ac_ct_DLLTOOL" >&6; }
12389 else
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392 fi
12393
12394   if test "x$ac_ct_DLLTOOL" = x; then
12395     DLLTOOL="false"
12396   else
12397     case $cross_compiling:$ac_tool_warned in
12398 yes:)
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401 ac_tool_warned=yes ;;
12402 esac
12403     DLLTOOL=$ac_ct_DLLTOOL
12404   fi
12405 else
12406   DLLTOOL="$ac_cv_prog_DLLTOOL"
12407 fi
12408
12409   if test -n "$ac_tool_prefix"; then
12410   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12411 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if ${ac_cv_prog_OBJDUMP+:} false; then :
12415   $as_echo_n "(cached) " >&6
12416 else
12417   if test -n "$OBJDUMP"; then
12418   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12419 else
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12422 do
12423   IFS=$as_save_IFS
12424   test -z "$as_dir" && as_dir=.
12425     for ac_exec_ext in '' $ac_executable_extensions; do
12426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12427     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429     break 2
12430   fi
12431 done
12432   done
12433 IFS=$as_save_IFS
12434
12435 fi
12436 fi
12437 OBJDUMP=$ac_cv_prog_OBJDUMP
12438 if test -n "$OBJDUMP"; then
12439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12440 $as_echo "$OBJDUMP" >&6; }
12441 else
12442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12444 fi
12445
12446
12447 fi
12448 if test -z "$ac_cv_prog_OBJDUMP"; then
12449   ac_ct_OBJDUMP=$OBJDUMP
12450   # Extract the first word of "objdump", so it can be a program name with args.
12451 set dummy objdump; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12455   $as_echo_n "(cached) " >&6
12456 else
12457   if test -n "$ac_ct_OBJDUMP"; then
12458   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463   IFS=$as_save_IFS
12464   test -z "$as_dir" && as_dir=.
12465     for ac_exec_ext in '' $ac_executable_extensions; do
12466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469     break 2
12470   fi
12471 done
12472   done
12473 IFS=$as_save_IFS
12474
12475 fi
12476 fi
12477 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12478 if test -n "$ac_ct_OBJDUMP"; then
12479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12480 $as_echo "$ac_ct_OBJDUMP" >&6; }
12481 else
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485
12486   if test "x$ac_ct_OBJDUMP" = x; then
12487     OBJDUMP="false"
12488   else
12489     case $cross_compiling:$ac_tool_warned in
12490 yes:)
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12493 ac_tool_warned=yes ;;
12494 esac
12495     OBJDUMP=$ac_ct_OBJDUMP
12496   fi
12497 else
12498   OBJDUMP="$ac_cv_prog_OBJDUMP"
12499 fi
12500
12501   ;;
12502 esac
12503
12504 test -z "$AS" && AS=as
12505
12506
12507
12508
12509
12510 test -z "$DLLTOOL" && DLLTOOL=dlltool
12511
12512
12513
12514
12515
12516 test -z "$OBJDUMP" && OBJDUMP=objdump
12517
12518
12519
12520
12521
12522
12523
12524         enable_dlopen=no
12525
12526
12527
12528             # Check whether --enable-shared was given.
12529 if test "${enable_shared+set}" = set; then :
12530   enableval=$enable_shared; p=${PACKAGE-default}
12531     case $enableval in
12532     yes) enable_shared=yes ;;
12533     no) enable_shared=no ;;
12534     *)
12535       enable_shared=no
12536       # Look at the argument we got.  We use all the common list separators.
12537       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12538       for pkg in $enableval; do
12539         IFS="$lt_save_ifs"
12540         if test "X$pkg" = "X$p"; then
12541           enable_shared=yes
12542         fi
12543       done
12544       IFS="$lt_save_ifs"
12545       ;;
12546     esac
12547 else
12548   enable_shared=yes
12549 fi
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559   # Check whether --enable-static was given.
12560 if test "${enable_static+set}" = set; then :
12561   enableval=$enable_static; p=${PACKAGE-default}
12562     case $enableval in
12563     yes) enable_static=yes ;;
12564     no) enable_static=no ;;
12565     *)
12566      enable_static=no
12567       # Look at the argument we got.  We use all the common list separators.
12568       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12569       for pkg in $enableval; do
12570         IFS="$lt_save_ifs"
12571         if test "X$pkg" = "X$p"; then
12572           enable_static=yes
12573         fi
12574       done
12575       IFS="$lt_save_ifs"
12576       ;;
12577     esac
12578 else
12579   enable_static=yes
12580 fi
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591 # Check whether --with-pic was given.
12592 if test "${with_pic+set}" = set; then :
12593   withval=$with_pic; lt_p=${PACKAGE-default}
12594     case $withval in
12595     yes|no) pic_mode=$withval ;;
12596     *)
12597       pic_mode=default
12598       # Look at the argument we got.  We use all the common list separators.
12599       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12600       for lt_pkg in $withval; do
12601         IFS="$lt_save_ifs"
12602         if test "X$lt_pkg" = "X$lt_p"; then
12603           pic_mode=yes
12604         fi
12605       done
12606       IFS="$lt_save_ifs"
12607       ;;
12608     esac
12609 else
12610   pic_mode=default
12611 fi
12612
12613
12614 test -z "$pic_mode" && pic_mode=default
12615
12616
12617
12618
12619
12620
12621
12622   # Check whether --enable-fast-install was given.
12623 if test "${enable_fast_install+set}" = set; then :
12624   enableval=$enable_fast_install; p=${PACKAGE-default}
12625     case $enableval in
12626     yes) enable_fast_install=yes ;;
12627     no) enable_fast_install=no ;;
12628     *)
12629       enable_fast_install=no
12630       # Look at the argument we got.  We use all the common list separators.
12631       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12632       for pkg in $enableval; do
12633         IFS="$lt_save_ifs"
12634         if test "X$pkg" = "X$p"; then
12635           enable_fast_install=yes
12636         fi
12637       done
12638       IFS="$lt_save_ifs"
12639       ;;
12640     esac
12641 else
12642   enable_fast_install=yes
12643 fi
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655 # This can be used to rebuild libtool when needed
12656 LIBTOOL_DEPS="$ltmain"
12657
12658 # Always use our own libtool.
12659 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690 test -z "$LN_S" && LN_S="ln -s"
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705 if test -n "${ZSH_VERSION+set}" ; then
12706    setopt NO_GLOB_SUBST
12707 fi
12708
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12710 $as_echo_n "checking for objdir... " >&6; }
12711 if ${lt_cv_objdir+:} false; then :
12712   $as_echo_n "(cached) " >&6
12713 else
12714   rm -f .libs 2>/dev/null
12715 mkdir .libs 2>/dev/null
12716 if test -d .libs; then
12717   lt_cv_objdir=.libs
12718 else
12719   # MS-DOS does not allow filenames that begin with a dot.
12720   lt_cv_objdir=_libs
12721 fi
12722 rmdir .libs 2>/dev/null
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12725 $as_echo "$lt_cv_objdir" >&6; }
12726 objdir=$lt_cv_objdir
12727
12728
12729
12730
12731
12732 cat >>confdefs.h <<_ACEOF
12733 #define LT_OBJDIR "$lt_cv_objdir/"
12734 _ACEOF
12735
12736
12737
12738
12739 case $host_os in
12740 aix3*)
12741   # AIX sometimes has problems with the GCC collect2 program.  For some
12742   # reason, if we set the COLLECT_NAMES environment variable, the problems
12743   # vanish in a puff of smoke.
12744   if test "X${COLLECT_NAMES+set}" != Xset; then
12745     COLLECT_NAMES=
12746     export COLLECT_NAMES
12747   fi
12748   ;;
12749 esac
12750
12751 # Global variables:
12752 ofile=libtool
12753 can_build_shared=yes
12754
12755 # All known linkers require a `.a' archive for static linking (except MSVC,
12756 # which needs '.lib').
12757 libext=a
12758
12759 with_gnu_ld="$lt_cv_prog_gnu_ld"
12760
12761 old_CC="$CC"
12762 old_CFLAGS="$CFLAGS"
12763
12764 # Set sane defaults for various variables
12765 test -z "$CC" && CC=cc
12766 test -z "$LTCC" && LTCC=$CC
12767 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12768 test -z "$LD" && LD=ld
12769 test -z "$ac_objext" && ac_objext=o
12770
12771 for cc_temp in $compiler""; do
12772   case $cc_temp in
12773     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12774     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12775     \-*) ;;
12776     *) break;;
12777   esac
12778 done
12779 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12780
12781
12782 # Only perform the check for file, if the check method requires it
12783 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12784 case $deplibs_check_method in
12785 file_magic*)
12786   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12788 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12789 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12790   $as_echo_n "(cached) " >&6
12791 else
12792   case $MAGIC_CMD in
12793 [\\/*] |  ?:[\\/]*)
12794   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12795   ;;
12796 *)
12797   lt_save_MAGIC_CMD="$MAGIC_CMD"
12798   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12799   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12800   for ac_dir in $ac_dummy; do
12801     IFS="$lt_save_ifs"
12802     test -z "$ac_dir" && ac_dir=.
12803     if test -f $ac_dir/${ac_tool_prefix}file; then
12804       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12805       if test -n "$file_magic_test_file"; then
12806         case $deplibs_check_method in
12807         "file_magic "*)
12808           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12809           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12810           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12811             $EGREP "$file_magic_regex" > /dev/null; then
12812             :
12813           else
12814             cat <<_LT_EOF 1>&2
12815
12816 *** Warning: the command libtool uses to detect shared libraries,
12817 *** $file_magic_cmd, produces output that libtool cannot recognize.
12818 *** The result is that libtool may fail to recognize shared libraries
12819 *** as such.  This will affect the creation of libtool libraries that
12820 *** depend on shared libraries, but programs linked with such libtool
12821 *** libraries will work regardless of this problem.  Nevertheless, you
12822 *** may want to report the problem to your system manager and/or to
12823 *** bug-libtool@gnu.org
12824
12825 _LT_EOF
12826           fi ;;
12827         esac
12828       fi
12829       break
12830     fi
12831   done
12832   IFS="$lt_save_ifs"
12833   MAGIC_CMD="$lt_save_MAGIC_CMD"
12834   ;;
12835 esac
12836 fi
12837
12838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12839 if test -n "$MAGIC_CMD"; then
12840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12841 $as_echo "$MAGIC_CMD" >&6; }
12842 else
12843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 fi
12846
12847
12848
12849
12850
12851 if test -z "$lt_cv_path_MAGIC_CMD"; then
12852   if test -n "$ac_tool_prefix"; then
12853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12854 $as_echo_n "checking for file... " >&6; }
12855 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12856   $as_echo_n "(cached) " >&6
12857 else
12858   case $MAGIC_CMD in
12859 [\\/*] |  ?:[\\/]*)
12860   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12861   ;;
12862 *)
12863   lt_save_MAGIC_CMD="$MAGIC_CMD"
12864   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12865   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12866   for ac_dir in $ac_dummy; do
12867     IFS="$lt_save_ifs"
12868     test -z "$ac_dir" && ac_dir=.
12869     if test -f $ac_dir/file; then
12870       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12871       if test -n "$file_magic_test_file"; then
12872         case $deplibs_check_method in
12873         "file_magic "*)
12874           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12875           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12876           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12877             $EGREP "$file_magic_regex" > /dev/null; then
12878             :
12879           else
12880             cat <<_LT_EOF 1>&2
12881
12882 *** Warning: the command libtool uses to detect shared libraries,
12883 *** $file_magic_cmd, produces output that libtool cannot recognize.
12884 *** The result is that libtool may fail to recognize shared libraries
12885 *** as such.  This will affect the creation of libtool libraries that
12886 *** depend on shared libraries, but programs linked with such libtool
12887 *** libraries will work regardless of this problem.  Nevertheless, you
12888 *** may want to report the problem to your system manager and/or to
12889 *** bug-libtool@gnu.org
12890
12891 _LT_EOF
12892           fi ;;
12893         esac
12894       fi
12895       break
12896     fi
12897   done
12898   IFS="$lt_save_ifs"
12899   MAGIC_CMD="$lt_save_MAGIC_CMD"
12900   ;;
12901 esac
12902 fi
12903
12904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12905 if test -n "$MAGIC_CMD"; then
12906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12907 $as_echo "$MAGIC_CMD" >&6; }
12908 else
12909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12911 fi
12912
12913
12914   else
12915     MAGIC_CMD=:
12916   fi
12917 fi
12918
12919   fi
12920   ;;
12921 esac
12922
12923 # Use C for the default configuration in the libtool script
12924
12925 lt_save_CC="$CC"
12926 ac_ext=c
12927 ac_cpp='$CPP $CPPFLAGS'
12928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12931
12932
12933 # Source file extension for C test sources.
12934 ac_ext=c
12935
12936 # Object file extension for compiled C test sources.
12937 objext=o
12938 objext=$objext
12939
12940 # Code to be used in simple compile tests
12941 lt_simple_compile_test_code="int some_variable = 0;"
12942
12943 # Code to be used in simple link tests
12944 lt_simple_link_test_code='int main(){return(0);}'
12945
12946
12947
12948
12949
12950
12951
12952 # If no C compiler was specified, use CC.
12953 LTCC=${LTCC-"$CC"}
12954
12955 # If no C compiler flags were specified, use CFLAGS.
12956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12957
12958 # Allow CC to be a program name with arguments.
12959 compiler=$CC
12960
12961 # Save the default compiler, since it gets overwritten when the other
12962 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12963 compiler_DEFAULT=$CC
12964
12965 # save warnings/boilerplate of simple test code
12966 ac_outfile=conftest.$ac_objext
12967 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12968 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12969 _lt_compiler_boilerplate=`cat conftest.err`
12970 $RM conftest*
12971
12972 ac_outfile=conftest.$ac_objext
12973 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12974 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12975 _lt_linker_boilerplate=`cat conftest.err`
12976 $RM -r conftest*
12977
12978
12979 ## CAVEAT EMPTOR:
12980 ## There is no encapsulation within the following macros, do not change
12981 ## the running order or otherwise move them around unless you know exactly
12982 ## what you are doing...
12983 if test -n "$compiler"; then
12984
12985 lt_prog_compiler_no_builtin_flag=
12986
12987 if test "$GCC" = yes; then
12988   case $cc_basename in
12989   nvcc*)
12990     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12991   *)
12992     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12993   esac
12994
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12996 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12997 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12998   $as_echo_n "(cached) " >&6
12999 else
13000   lt_cv_prog_compiler_rtti_exceptions=no
13001    ac_outfile=conftest.$ac_objext
13002    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13003    lt_compiler_flag="-fno-rtti -fno-exceptions"
13004    # Insert the option either (1) after the last *FLAGS variable, or
13005    # (2) before a word containing "conftest.", or (3) at the end.
13006    # Note that $ac_compile itself does not contain backslashes and begins
13007    # with a dollar sign (not a hyphen), so the echo should work correctly.
13008    # The option is referenced via a variable to avoid confusing sed.
13009    lt_compile=`echo "$ac_compile" | $SED \
13010    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13012    -e 's:$: $lt_compiler_flag:'`
13013    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13014    (eval "$lt_compile" 2>conftest.err)
13015    ac_status=$?
13016    cat conftest.err >&5
13017    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018    if (exit $ac_status) && test -s "$ac_outfile"; then
13019      # The compiler can only warn and ignore the option if not recognized
13020      # So say no if there are warnings other than the usual output.
13021      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13022      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13023      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13024        lt_cv_prog_compiler_rtti_exceptions=yes
13025      fi
13026    fi
13027    $RM conftest*
13028
13029 fi
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13031 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13032
13033 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13034     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13035 else
13036     :
13037 fi
13038
13039 fi
13040
13041
13042
13043
13044
13045
13046   lt_prog_compiler_wl=
13047 lt_prog_compiler_pic=
13048 lt_prog_compiler_static=
13049
13050
13051   if test "$GCC" = yes; then
13052     lt_prog_compiler_wl='-Wl,'
13053     lt_prog_compiler_static='-static'
13054
13055     case $host_os in
13056       aix*)
13057       # All AIX code is PIC.
13058       if test "$host_cpu" = ia64; then
13059         # AIX 5 now supports IA64 processor
13060         lt_prog_compiler_static='-Bstatic'
13061       fi
13062       ;;
13063
13064     amigaos*)
13065       case $host_cpu in
13066       powerpc)
13067             # see comment about AmigaOS4 .so support
13068             lt_prog_compiler_pic='-fPIC'
13069         ;;
13070       m68k)
13071             # FIXME: we need at least 68020 code to build shared libraries, but
13072             # adding the `-m68020' flag to GCC prevents building anything better,
13073             # like `-m68040'.
13074             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13075         ;;
13076       esac
13077       ;;
13078
13079     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13080       # PIC is the default for these OSes.
13081       ;;
13082
13083     mingw* | cygwin* | pw32* | os2* | cegcc*)
13084       # This hack is so that the source file can tell whether it is being
13085       # built for inclusion in a dll (and should export symbols for example).
13086       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13087       # (--disable-auto-import) libraries
13088       lt_prog_compiler_pic='-DDLL_EXPORT'
13089       ;;
13090
13091     darwin* | rhapsody*)
13092       # PIC is the default on this platform
13093       # Common symbols not allowed in MH_DYLIB files
13094       lt_prog_compiler_pic='-fno-common'
13095       ;;
13096
13097     haiku*)
13098       # PIC is the default for Haiku.
13099       # The "-static" flag exists, but is broken.
13100       lt_prog_compiler_static=
13101       ;;
13102
13103     hpux*)
13104       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13105       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13106       # sets the default TLS model and affects inlining.
13107       case $host_cpu in
13108       hppa*64*)
13109         # +Z the default
13110         ;;
13111       *)
13112         lt_prog_compiler_pic='-fPIC'
13113         ;;
13114       esac
13115       ;;
13116
13117     interix[3-9]*)
13118       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13119       # Instead, we relocate shared libraries at runtime.
13120       ;;
13121
13122     msdosdjgpp*)
13123       # Just because we use GCC doesn't mean we suddenly get shared libraries
13124       # on systems that don't support them.
13125       lt_prog_compiler_can_build_shared=no
13126       enable_shared=no
13127       ;;
13128
13129     *nto* | *qnx*)
13130       # QNX uses GNU C++, but need to define -shared option too, otherwise
13131       # it will coredump.
13132       lt_prog_compiler_pic='-fPIC -shared'
13133       ;;
13134
13135     sysv4*MP*)
13136       if test -d /usr/nec; then
13137         lt_prog_compiler_pic=-Kconform_pic
13138       fi
13139       ;;
13140
13141     *)
13142       lt_prog_compiler_pic='-fPIC'
13143       ;;
13144     esac
13145
13146     case $cc_basename in
13147     nvcc*) # Cuda Compiler Driver 2.2
13148       lt_prog_compiler_wl='-Xlinker '
13149       if test -n "$lt_prog_compiler_pic"; then
13150         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13151       fi
13152       ;;
13153     esac
13154   else
13155     # PORTME Check for flag to pass linker flags through the system compiler.
13156     case $host_os in
13157     aix*)
13158       lt_prog_compiler_wl='-Wl,'
13159       if test "$host_cpu" = ia64; then
13160         # AIX 5 now supports IA64 processor
13161         lt_prog_compiler_static='-Bstatic'
13162       else
13163         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13164       fi
13165       ;;
13166
13167     mingw* | cygwin* | pw32* | os2* | cegcc*)
13168       # This hack is so that the source file can tell whether it is being
13169       # built for inclusion in a dll (and should export symbols for example).
13170       lt_prog_compiler_pic='-DDLL_EXPORT'
13171       ;;
13172
13173     hpux9* | hpux10* | hpux11*)
13174       lt_prog_compiler_wl='-Wl,'
13175       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13176       # not for PA HP-UX.
13177       case $host_cpu in
13178       hppa*64*|ia64*)
13179         # +Z the default
13180         ;;
13181       *)
13182         lt_prog_compiler_pic='+Z'
13183         ;;
13184       esac
13185       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13186       lt_prog_compiler_static='${wl}-a ${wl}archive'
13187       ;;
13188
13189     irix5* | irix6* | nonstopux*)
13190       lt_prog_compiler_wl='-Wl,'
13191       # PIC (with -KPIC) is the default.
13192       lt_prog_compiler_static='-non_shared'
13193       ;;
13194
13195     linux* | k*bsd*-gnu | kopensolaris*-gnu)
13196       case $cc_basename in
13197       # old Intel for x86_64 which still supported -KPIC.
13198       ecc*)
13199         lt_prog_compiler_wl='-Wl,'
13200         lt_prog_compiler_pic='-KPIC'
13201         lt_prog_compiler_static='-static'
13202         ;;
13203       # icc used to be incompatible with GCC.
13204       # ICC 10 doesn't accept -KPIC any more.
13205       icc* | ifort*)
13206         lt_prog_compiler_wl='-Wl,'
13207         lt_prog_compiler_pic='-fPIC'
13208         lt_prog_compiler_static='-static'
13209         ;;
13210       # Lahey Fortran 8.1.
13211       lf95*)
13212         lt_prog_compiler_wl='-Wl,'
13213         lt_prog_compiler_pic='--shared'
13214         lt_prog_compiler_static='--static'
13215         ;;
13216       nagfor*)
13217         # NAG Fortran compiler
13218         lt_prog_compiler_wl='-Wl,-Wl,,'
13219         lt_prog_compiler_pic='-PIC'
13220         lt_prog_compiler_static='-Bstatic'
13221         ;;
13222       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13223         # Portland Group compilers (*not* the Pentium gcc compiler,
13224         # which looks to be a dead project)
13225         lt_prog_compiler_wl='-Wl,'
13226         lt_prog_compiler_pic='-fpic'
13227         lt_prog_compiler_static='-Bstatic'
13228         ;;
13229       ccc*)
13230         lt_prog_compiler_wl='-Wl,'
13231         # All Alpha code is PIC.
13232         lt_prog_compiler_static='-non_shared'
13233         ;;
13234       xl* | bgxl* | bgf* | mpixl*)
13235         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13236         lt_prog_compiler_wl='-Wl,'
13237         lt_prog_compiler_pic='-qpic'
13238         lt_prog_compiler_static='-qstaticlink'
13239         ;;
13240       *)
13241         case `$CC -V 2>&1 | sed 5q` in
13242         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13243           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13244           lt_prog_compiler_pic='-KPIC'
13245           lt_prog_compiler_static='-Bstatic'
13246           lt_prog_compiler_wl=''
13247           ;;
13248         *Sun\ F* | *Sun*Fortran*)
13249           lt_prog_compiler_pic='-KPIC'
13250           lt_prog_compiler_static='-Bstatic'
13251           lt_prog_compiler_wl='-Qoption ld '
13252           ;;
13253         *Sun\ C*)
13254           # Sun C 5.9
13255           lt_prog_compiler_pic='-KPIC'
13256           lt_prog_compiler_static='-Bstatic'
13257           lt_prog_compiler_wl='-Wl,'
13258           ;;
13259         *Intel*\ [CF]*Compiler*)
13260           lt_prog_compiler_wl='-Wl,'
13261           lt_prog_compiler_pic='-fPIC'
13262           lt_prog_compiler_static='-static'
13263           ;;
13264         *Portland\ Group*)
13265           lt_prog_compiler_wl='-Wl,'
13266           lt_prog_compiler_pic='-fpic'
13267           lt_prog_compiler_static='-Bstatic'
13268           ;;
13269         esac
13270         ;;
13271       esac
13272       ;;
13273
13274     newsos6)
13275       lt_prog_compiler_pic='-KPIC'
13276       lt_prog_compiler_static='-Bstatic'
13277       ;;
13278
13279     *nto* | *qnx*)
13280       # QNX uses GNU C++, but need to define -shared option too, otherwise
13281       # it will coredump.
13282       lt_prog_compiler_pic='-fPIC -shared'
13283       ;;
13284
13285     osf3* | osf4* | osf5*)
13286       lt_prog_compiler_wl='-Wl,'
13287       # All OSF/1 code is PIC.
13288       lt_prog_compiler_static='-non_shared'
13289       ;;
13290
13291     rdos*)
13292       lt_prog_compiler_static='-non_shared'
13293       ;;
13294
13295     solaris*)
13296       lt_prog_compiler_pic='-KPIC'
13297       lt_prog_compiler_static='-Bstatic'
13298       case $cc_basename in
13299       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13300         lt_prog_compiler_wl='-Qoption ld ';;
13301       *)
13302         lt_prog_compiler_wl='-Wl,';;
13303       esac
13304       ;;
13305
13306     sunos4*)
13307       lt_prog_compiler_wl='-Qoption ld '
13308       lt_prog_compiler_pic='-PIC'
13309       lt_prog_compiler_static='-Bstatic'
13310       ;;
13311
13312     sysv4 | sysv4.2uw2* | sysv4.3*)
13313       lt_prog_compiler_wl='-Wl,'
13314       lt_prog_compiler_pic='-KPIC'
13315       lt_prog_compiler_static='-Bstatic'
13316       ;;
13317
13318     sysv4*MP*)
13319       if test -d /usr/nec ;then
13320         lt_prog_compiler_pic='-Kconform_pic'
13321         lt_prog_compiler_static='-Bstatic'
13322       fi
13323       ;;
13324
13325     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13326       lt_prog_compiler_wl='-Wl,'
13327       lt_prog_compiler_pic='-KPIC'
13328       lt_prog_compiler_static='-Bstatic'
13329       ;;
13330
13331     unicos*)
13332       lt_prog_compiler_wl='-Wl,'
13333       lt_prog_compiler_can_build_shared=no
13334       ;;
13335
13336     uts4*)
13337       lt_prog_compiler_pic='-pic'
13338       lt_prog_compiler_static='-Bstatic'
13339       ;;
13340
13341     *)
13342       lt_prog_compiler_can_build_shared=no
13343       ;;
13344     esac
13345   fi
13346
13347 case $host_os in
13348   # For platforms which do not support PIC, -DPIC is meaningless:
13349   *djgpp*)
13350     lt_prog_compiler_pic=
13351     ;;
13352   *)
13353     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13354     ;;
13355 esac
13356
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13358 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13359 if ${lt_cv_prog_compiler_pic+:} false; then :
13360   $as_echo_n "(cached) " >&6
13361 else
13362   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13363 fi
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13365 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13366 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13367
13368 #
13369 # Check to make sure the PIC flag actually works.
13370 #
13371 if test -n "$lt_prog_compiler_pic"; then
13372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13373 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13374 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13375   $as_echo_n "(cached) " >&6
13376 else
13377   lt_cv_prog_compiler_pic_works=no
13378    ac_outfile=conftest.$ac_objext
13379    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13380    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13381    # Insert the option either (1) after the last *FLAGS variable, or
13382    # (2) before a word containing "conftest.", or (3) at the end.
13383    # Note that $ac_compile itself does not contain backslashes and begins
13384    # with a dollar sign (not a hyphen), so the echo should work correctly.
13385    # The option is referenced via a variable to avoid confusing sed.
13386    lt_compile=`echo "$ac_compile" | $SED \
13387    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13388    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13389    -e 's:$: $lt_compiler_flag:'`
13390    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13391    (eval "$lt_compile" 2>conftest.err)
13392    ac_status=$?
13393    cat conftest.err >&5
13394    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395    if (exit $ac_status) && test -s "$ac_outfile"; then
13396      # The compiler can only warn and ignore the option if not recognized
13397      # So say no if there are warnings other than the usual output.
13398      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13399      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13400      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13401        lt_cv_prog_compiler_pic_works=yes
13402      fi
13403    fi
13404    $RM conftest*
13405
13406 fi
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13408 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13409
13410 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13411     case $lt_prog_compiler_pic in
13412      "" | " "*) ;;
13413      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13414      esac
13415 else
13416     lt_prog_compiler_pic=
13417      lt_prog_compiler_can_build_shared=no
13418 fi
13419
13420 fi
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432 #
13433 # Check to make sure the static flag actually works.
13434 #
13435 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13437 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13438 if ${lt_cv_prog_compiler_static_works+:} false; then :
13439   $as_echo_n "(cached) " >&6
13440 else
13441   lt_cv_prog_compiler_static_works=no
13442    save_LDFLAGS="$LDFLAGS"
13443    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13444    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13445    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13446      # The linker can only warn and ignore the option if not recognized
13447      # So say no if there are warnings
13448      if test -s conftest.err; then
13449        # Append any errors to the config.log.
13450        cat conftest.err 1>&5
13451        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13452        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13453        if diff conftest.exp conftest.er2 >/dev/null; then
13454          lt_cv_prog_compiler_static_works=yes
13455        fi
13456      else
13457        lt_cv_prog_compiler_static_works=yes
13458      fi
13459    fi
13460    $RM -r conftest*
13461    LDFLAGS="$save_LDFLAGS"
13462
13463 fi
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13465 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13466
13467 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13468     :
13469 else
13470     lt_prog_compiler_static=
13471 fi
13472
13473
13474
13475
13476
13477
13478
13479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13481 if ${lt_cv_prog_compiler_c_o+:} false; then :
13482   $as_echo_n "(cached) " >&6
13483 else
13484   lt_cv_prog_compiler_c_o=no
13485    $RM -r conftest 2>/dev/null
13486    mkdir conftest
13487    cd conftest
13488    mkdir out
13489    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13490
13491    lt_compiler_flag="-o out/conftest2.$ac_objext"
13492    # Insert the option either (1) after the last *FLAGS variable, or
13493    # (2) before a word containing "conftest.", or (3) at the end.
13494    # Note that $ac_compile itself does not contain backslashes and begins
13495    # with a dollar sign (not a hyphen), so the echo should work correctly.
13496    lt_compile=`echo "$ac_compile" | $SED \
13497    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13498    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13499    -e 's:$: $lt_compiler_flag:'`
13500    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13501    (eval "$lt_compile" 2>out/conftest.err)
13502    ac_status=$?
13503    cat out/conftest.err >&5
13504    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13506    then
13507      # The compiler can only warn and ignore the option if not recognized
13508      # So say no if there are warnings
13509      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13510      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13511      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13512        lt_cv_prog_compiler_c_o=yes
13513      fi
13514    fi
13515    chmod u+w . 2>&5
13516    $RM conftest*
13517    # SGI C++ compiler will create directory out/ii_files/ for
13518    # template instantiation
13519    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13520    $RM out/* && rmdir out
13521    cd ..
13522    $RM -r conftest
13523    $RM conftest*
13524
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13527 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13528
13529
13530
13531
13532
13533
13534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13536 if ${lt_cv_prog_compiler_c_o+:} false; then :
13537   $as_echo_n "(cached) " >&6
13538 else
13539   lt_cv_prog_compiler_c_o=no
13540    $RM -r conftest 2>/dev/null
13541    mkdir conftest
13542    cd conftest
13543    mkdir out
13544    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13545
13546    lt_compiler_flag="-o out/conftest2.$ac_objext"
13547    # Insert the option either (1) after the last *FLAGS variable, or
13548    # (2) before a word containing "conftest.", or (3) at the end.
13549    # Note that $ac_compile itself does not contain backslashes and begins
13550    # with a dollar sign (not a hyphen), so the echo should work correctly.
13551    lt_compile=`echo "$ac_compile" | $SED \
13552    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13554    -e 's:$: $lt_compiler_flag:'`
13555    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13556    (eval "$lt_compile" 2>out/conftest.err)
13557    ac_status=$?
13558    cat out/conftest.err >&5
13559    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13561    then
13562      # The compiler can only warn and ignore the option if not recognized
13563      # So say no if there are warnings
13564      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13565      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13566      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13567        lt_cv_prog_compiler_c_o=yes
13568      fi
13569    fi
13570    chmod u+w . 2>&5
13571    $RM conftest*
13572    # SGI C++ compiler will create directory out/ii_files/ for
13573    # template instantiation
13574    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13575    $RM out/* && rmdir out
13576    cd ..
13577    $RM -r conftest
13578    $RM conftest*
13579
13580 fi
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13582 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13583
13584
13585
13586
13587 hard_links="nottested"
13588 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13589   # do not overwrite the value of need_locks provided by the user
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13591 $as_echo_n "checking if we can lock with hard links... " >&6; }
13592   hard_links=yes
13593   $RM conftest*
13594   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13595   touch conftest.a
13596   ln conftest.a conftest.b 2>&5 || hard_links=no
13597   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13599 $as_echo "$hard_links" >&6; }
13600   if test "$hard_links" = no; then
13601     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13602 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13603     need_locks=warn
13604   fi
13605 else
13606   need_locks=no
13607 fi
13608
13609
13610
13611
13612
13613
13614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13615 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13616
13617   runpath_var=
13618   allow_undefined_flag=
13619   always_export_symbols=no
13620   archive_cmds=
13621   archive_expsym_cmds=
13622   compiler_needs_object=no
13623   enable_shared_with_static_runtimes=no
13624   export_dynamic_flag_spec=
13625   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13626   hardcode_automatic=no
13627   hardcode_direct=no
13628   hardcode_direct_absolute=no
13629   hardcode_libdir_flag_spec=
13630   hardcode_libdir_separator=
13631   hardcode_minus_L=no
13632   hardcode_shlibpath_var=unsupported
13633   inherit_rpath=no
13634   link_all_deplibs=unknown
13635   module_cmds=
13636   module_expsym_cmds=
13637   old_archive_from_new_cmds=
13638   old_archive_from_expsyms_cmds=
13639   thread_safe_flag_spec=
13640   whole_archive_flag_spec=
13641   # include_expsyms should be a list of space-separated symbols to be *always*
13642   # included in the symbol list
13643   include_expsyms=
13644   # exclude_expsyms can be an extended regexp of symbols to exclude
13645   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13646   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13647   # as well as any symbol that contains `d'.
13648   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13649   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13650   # platforms (ab)use it in PIC code, but their linkers get confused if
13651   # the symbol is explicitly referenced.  Since portable code cannot
13652   # rely on this symbol name, it's probably fine to never include it in
13653   # preloaded symbol tables.
13654   # Exclude shared library initialization/finalization symbols.
13655   extract_expsyms_cmds=
13656
13657   case $host_os in
13658   cygwin* | mingw* | pw32* | cegcc*)
13659     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13660     # When not using gcc, we currently assume that we are using
13661     # Microsoft Visual C++.
13662     if test "$GCC" != yes; then
13663       with_gnu_ld=no
13664     fi
13665     ;;
13666   interix*)
13667     # we just hope/assume this is gcc and not c89 (= MSVC++)
13668     with_gnu_ld=yes
13669     ;;
13670   openbsd*)
13671     with_gnu_ld=no
13672     ;;
13673   esac
13674
13675   ld_shlibs=yes
13676
13677   # On some targets, GNU ld is compatible enough with the native linker
13678   # that we're better off using the native interface for both.
13679   lt_use_gnu_ld_interface=no
13680   if test "$with_gnu_ld" = yes; then
13681     case $host_os in
13682       aix*)
13683         # The AIX port of GNU ld has always aspired to compatibility
13684         # with the native linker.  However, as the warning in the GNU ld
13685         # block says, versions before 2.19.5* couldn't really create working
13686         # shared libraries, regardless of the interface used.
13687         case `$LD -v 2>&1` in
13688           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13689           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13690           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13691           *)
13692             lt_use_gnu_ld_interface=yes
13693             ;;
13694         esac
13695         ;;
13696       *)
13697         lt_use_gnu_ld_interface=yes
13698         ;;
13699     esac
13700   fi
13701
13702   if test "$lt_use_gnu_ld_interface" = yes; then
13703     # If archive_cmds runs LD, not CC, wlarc should be empty
13704     wlarc='${wl}'
13705
13706     # Set some defaults for GNU ld with shared library support. These
13707     # are reset later if shared libraries are not supported. Putting them
13708     # here allows them to be overridden if necessary.
13709     runpath_var=LD_RUN_PATH
13710     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13711     export_dynamic_flag_spec='${wl}--export-dynamic'
13712     # ancient GNU ld didn't support --whole-archive et. al.
13713     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13714       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13715     else
13716       whole_archive_flag_spec=
13717     fi
13718     supports_anon_versioning=no
13719     case `$LD -v 2>&1` in
13720       *GNU\ gold*) supports_anon_versioning=yes ;;
13721       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13722       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13723       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13724       *\ 2.11.*) ;; # other 2.11 versions
13725       *) supports_anon_versioning=yes ;;
13726     esac
13727
13728     # See if GNU ld supports shared libraries.
13729     case $host_os in
13730     aix[3-9]*)
13731       # On AIX/PPC, the GNU linker is very broken
13732       if test "$host_cpu" != ia64; then
13733         ld_shlibs=no
13734         cat <<_LT_EOF 1>&2
13735
13736 *** Warning: the GNU linker, at least up to release 2.19, is reported
13737 *** to be unable to reliably create shared libraries on AIX.
13738 *** Therefore, libtool is disabling shared libraries support.  If you
13739 *** really care for shared libraries, you may want to install binutils
13740 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13741 *** You will then need to restart the configuration process.
13742
13743 _LT_EOF
13744       fi
13745       ;;
13746
13747     amigaos*)
13748       case $host_cpu in
13749       powerpc)
13750             # see comment about AmigaOS4 .so support
13751             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13752             archive_expsym_cmds=''
13753         ;;
13754       m68k)
13755             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13756             hardcode_libdir_flag_spec='-L$libdir'
13757             hardcode_minus_L=yes
13758         ;;
13759       esac
13760       ;;
13761
13762     beos*)
13763       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13764         allow_undefined_flag=unsupported
13765         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13766         # support --undefined.  This deserves some investigation.  FIXME
13767         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13768       else
13769         ld_shlibs=no
13770       fi
13771       ;;
13772
13773     cygwin* | mingw* | pw32* | cegcc*)
13774       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13775       # as there is no search path for DLLs.
13776       hardcode_libdir_flag_spec='-L$libdir'
13777       export_dynamic_flag_spec='${wl}--export-all-symbols'
13778       allow_undefined_flag=unsupported
13779       always_export_symbols=no
13780       enable_shared_with_static_runtimes=yes
13781       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13782       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13783
13784       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13785         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13786         # If the export-symbols file already is a .def file (1st line
13787         # is EXPORTS), use it as is; otherwise, prepend...
13788         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13789           cp $export_symbols $output_objdir/$soname.def;
13790         else
13791           echo EXPORTS > $output_objdir/$soname.def;
13792           cat $export_symbols >> $output_objdir/$soname.def;
13793         fi~
13794         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13795       else
13796         ld_shlibs=no
13797       fi
13798       ;;
13799
13800     haiku*)
13801       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13802       link_all_deplibs=yes
13803       ;;
13804
13805     interix[3-9]*)
13806       hardcode_direct=no
13807       hardcode_shlibpath_var=no
13808       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13809       export_dynamic_flag_spec='${wl}-E'
13810       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13811       # Instead, shared libraries are loaded at an image base (0x10000000 by
13812       # default) and relocated if they conflict, which is a slow very memory
13813       # consuming and fragmenting process.  To avoid this, we pick a random,
13814       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13815       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13816       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13817       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13818       ;;
13819
13820     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13821       tmp_diet=no
13822       if test "$host_os" = linux-dietlibc; then
13823         case $cc_basename in
13824           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13825         esac
13826       fi
13827       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13828          && test "$tmp_diet" = no
13829       then
13830         tmp_addflag=' $pic_flag'
13831         tmp_sharedflag='-shared'
13832         case $cc_basename,$host_cpu in
13833         pgcc*)                          # Portland Group C compiler
13834           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13835           tmp_addflag=' $pic_flag'
13836           ;;
13837         pgf77* | pgf90* | pgf95* | pgfortran*)
13838                                         # Portland Group f77 and f90 compilers
13839           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13840           tmp_addflag=' $pic_flag -Mnomain' ;;
13841         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13842           tmp_addflag=' -i_dynamic' ;;
13843         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13844           tmp_addflag=' -i_dynamic -nofor_main' ;;
13845         ifc* | ifort*)                  # Intel Fortran compiler
13846           tmp_addflag=' -nofor_main' ;;
13847         lf95*)                          # Lahey Fortran 8.1
13848           whole_archive_flag_spec=
13849           tmp_sharedflag='--shared' ;;
13850         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13851           tmp_sharedflag='-qmkshrobj'
13852           tmp_addflag= ;;
13853         nvcc*)  # Cuda Compiler Driver 2.2
13854           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13855           compiler_needs_object=yes
13856           ;;
13857         esac
13858         case `$CC -V 2>&1 | sed 5q` in
13859         *Sun\ C*)                       # Sun C 5.9
13860           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13861           compiler_needs_object=yes
13862           tmp_sharedflag='-G' ;;
13863         *Sun\ F*)                       # Sun Fortran 8.3
13864           tmp_sharedflag='-G' ;;
13865         esac
13866         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867
13868         if test "x$supports_anon_versioning" = xyes; then
13869           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13870             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13871             echo "local: *; };" >> $output_objdir/$libname.ver~
13872             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13873         fi
13874
13875         case $cc_basename in
13876         xlf* | bgf* | bgxlf* | mpixlf*)
13877           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13878           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13879           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13880           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13881           if test "x$supports_anon_versioning" = xyes; then
13882             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13883               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13884               echo "local: *; };" >> $output_objdir/$libname.ver~
13885               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13886           fi
13887           ;;
13888         esac
13889       else
13890         ld_shlibs=no
13891       fi
13892       ;;
13893
13894     netbsd*)
13895       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13896         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13897         wlarc=
13898       else
13899         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13900         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13901       fi
13902       ;;
13903
13904     solaris*)
13905       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13906         ld_shlibs=no
13907         cat <<_LT_EOF 1>&2
13908
13909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13910 *** create shared libraries on Solaris systems.  Therefore, libtool
13911 *** is disabling shared libraries support.  We urge you to upgrade GNU
13912 *** binutils to release 2.9.1 or newer.  Another option is to modify
13913 *** your PATH or compiler configuration so that the native linker is
13914 *** used, and then restart.
13915
13916 _LT_EOF
13917       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13918         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13919         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13920       else
13921         ld_shlibs=no
13922       fi
13923       ;;
13924
13925     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13926       case `$LD -v 2>&1` in
13927         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13928         ld_shlibs=no
13929         cat <<_LT_EOF 1>&2
13930
13931 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13932 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13933 *** is disabling shared libraries support.  We urge you to upgrade GNU
13934 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13935 *** your PATH or compiler configuration so that the native linker is
13936 *** used, and then restart.
13937
13938 _LT_EOF
13939         ;;
13940         *)
13941           # For security reasons, it is highly recommended that you always
13942           # use absolute paths for naming shared libraries, and exclude the
13943           # DT_RUNPATH tag from executables and libraries.  But doing so
13944           # requires that you compile everything twice, which is a pain.
13945           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13946             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13947             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13948             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13949           else
13950             ld_shlibs=no
13951           fi
13952         ;;
13953       esac
13954       ;;
13955
13956     sunos4*)
13957       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13958       wlarc=
13959       hardcode_direct=yes
13960       hardcode_shlibpath_var=no
13961       ;;
13962
13963     *)
13964       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13965         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13966         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13967       else
13968         ld_shlibs=no
13969       fi
13970       ;;
13971     esac
13972
13973     if test "$ld_shlibs" = no; then
13974       runpath_var=
13975       hardcode_libdir_flag_spec=
13976       export_dynamic_flag_spec=
13977       whole_archive_flag_spec=
13978     fi
13979   else
13980     # PORTME fill in a description of your system's linker (not GNU ld)
13981     case $host_os in
13982     aix3*)
13983       allow_undefined_flag=unsupported
13984       always_export_symbols=yes
13985       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13986       # Note: this linker hardcodes the directories in LIBPATH if there
13987       # are no directories specified by -L.
13988       hardcode_minus_L=yes
13989       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13990         # Neither direct hardcoding nor static linking is supported with a
13991         # broken collect2.
13992         hardcode_direct=unsupported
13993       fi
13994       ;;
13995
13996     aix[4-9]*)
13997       if test "$host_cpu" = ia64; then
13998         # On IA64, the linker does run time linking by default, so we don't
13999         # have to do anything special.
14000         aix_use_runtimelinking=no
14001         exp_sym_flag='-Bexport'
14002         no_entry_flag=""
14003       else
14004         # If we're using GNU nm, then we don't want the "-C" option.
14005         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14006         # Also, AIX nm treats weak defined symbols like other global
14007         # defined symbols, whereas GNU nm marks them as "W".
14008         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14009           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14010         else
14011           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14012         fi
14013         aix_use_runtimelinking=no
14014
14015         # Test if we are trying to use run time linking or normal
14016         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14017         # need to do runtime linking.
14018         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14019           for ld_flag in $LDFLAGS; do
14020           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14021             aix_use_runtimelinking=yes
14022             break
14023           fi
14024           done
14025           ;;
14026         esac
14027
14028         exp_sym_flag='-bexport'
14029         no_entry_flag='-bnoentry'
14030       fi
14031
14032       # When large executables or shared objects are built, AIX ld can
14033       # have problems creating the table of contents.  If linking a library
14034       # or program results in "error TOC overflow" add -mminimal-toc to
14035       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14036       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14037
14038       archive_cmds=''
14039       hardcode_direct=yes
14040       hardcode_direct_absolute=yes
14041       hardcode_libdir_separator=':'
14042       link_all_deplibs=yes
14043       file_list_spec='${wl}-f,'
14044
14045       if test "$GCC" = yes; then
14046         case $host_os in aix4.[012]|aix4.[012].*)
14047         # We only want to do this on AIX 4.2 and lower, the check
14048         # below for broken collect2 doesn't work under 4.3+
14049           collect2name=`${CC} -print-prog-name=collect2`
14050           if test -f "$collect2name" &&
14051            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14052           then
14053           # We have reworked collect2
14054           :
14055           else
14056           # We have old collect2
14057           hardcode_direct=unsupported
14058           # It fails to find uninstalled libraries when the uninstalled
14059           # path is not listed in the libpath.  Setting hardcode_minus_L
14060           # to unsupported forces relinking
14061           hardcode_minus_L=yes
14062           hardcode_libdir_flag_spec='-L$libdir'
14063           hardcode_libdir_separator=
14064           fi
14065           ;;
14066         esac
14067         shared_flag='-shared'
14068         if test "$aix_use_runtimelinking" = yes; then
14069           shared_flag="$shared_flag "'${wl}-G'
14070         fi
14071       else
14072         # not using gcc
14073         if test "$host_cpu" = ia64; then
14074         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14075         # chokes on -Wl,-G. The following line is correct:
14076           shared_flag='-G'
14077         else
14078           if test "$aix_use_runtimelinking" = yes; then
14079             shared_flag='${wl}-G'
14080           else
14081             shared_flag='${wl}-bM:SRE'
14082           fi
14083         fi
14084       fi
14085
14086       export_dynamic_flag_spec='${wl}-bexpall'
14087       # It seems that -bexpall does not export symbols beginning with
14088       # underscore (_), so it is better to generate a list of symbols to export.
14089       always_export_symbols=yes
14090       if test "$aix_use_runtimelinking" = yes; then
14091         # Warning - without using the other runtime loading flags (-brtl),
14092         # -berok will link without error, but may produce a broken library.
14093         allow_undefined_flag='-berok'
14094         # Determine the default libpath from the value encoded in an
14095         # empty executable.
14096         if test "${lt_cv_aix_libpath+set}" = set; then
14097   aix_libpath=$lt_cv_aix_libpath
14098 else
14099   if ${lt_cv_aix_libpath_+:} false; then :
14100   $as_echo_n "(cached) " >&6
14101 else
14102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h.  */
14104
14105 int
14106 main ()
14107 {
14108
14109   ;
14110   return 0;
14111 }
14112 _ACEOF
14113 if ac_fn_c_try_link "$LINENO"; then :
14114
14115   lt_aix_libpath_sed='
14116       /Import File Strings/,/^$/ {
14117           /^0/ {
14118               s/^0  *\([^ ]*\) *$/\1/
14119               p
14120           }
14121       }'
14122   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14123   # Check for a 64-bit object if we didn't find anything.
14124   if test -z "$lt_cv_aix_libpath_"; then
14125     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14126   fi
14127 fi
14128 rm -f core conftest.err conftest.$ac_objext \
14129     conftest$ac_exeext conftest.$ac_ext
14130   if test -z "$lt_cv_aix_libpath_"; then
14131     lt_cv_aix_libpath_="/usr/lib:/lib"
14132   fi
14133
14134 fi
14135
14136   aix_libpath=$lt_cv_aix_libpath_
14137 fi
14138
14139         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14140         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14141       else
14142         if test "$host_cpu" = ia64; then
14143           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14144           allow_undefined_flag="-z nodefs"
14145           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14146         else
14147          # Determine the default libpath from the value encoded in an
14148          # empty executable.
14149          if test "${lt_cv_aix_libpath+set}" = set; then
14150   aix_libpath=$lt_cv_aix_libpath
14151 else
14152   if ${lt_cv_aix_libpath_+:} false; then :
14153   $as_echo_n "(cached) " >&6
14154 else
14155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h.  */
14157
14158 int
14159 main ()
14160 {
14161
14162   ;
14163   return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_c_try_link "$LINENO"; then :
14167
14168   lt_aix_libpath_sed='
14169       /Import File Strings/,/^$/ {
14170           /^0/ {
14171               s/^0  *\([^ ]*\) *$/\1/
14172               p
14173           }
14174       }'
14175   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14176   # Check for a 64-bit object if we didn't find anything.
14177   if test -z "$lt_cv_aix_libpath_"; then
14178     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14179   fi
14180 fi
14181 rm -f core conftest.err conftest.$ac_objext \
14182     conftest$ac_exeext conftest.$ac_ext
14183   if test -z "$lt_cv_aix_libpath_"; then
14184     lt_cv_aix_libpath_="/usr/lib:/lib"
14185   fi
14186
14187 fi
14188
14189   aix_libpath=$lt_cv_aix_libpath_
14190 fi
14191
14192          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14193           # Warning - without using the other run time loading flags,
14194           # -berok will link without error, but may produce a broken library.
14195           no_undefined_flag=' ${wl}-bernotok'
14196           allow_undefined_flag=' ${wl}-berok'
14197           if test "$with_gnu_ld" = yes; then
14198             # We only use this code for GNU lds that support --whole-archive.
14199             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14200           else
14201             # Exported symbols can be pulled into shared objects from archives
14202             whole_archive_flag_spec='$convenience'
14203           fi
14204           archive_cmds_need_lc=yes
14205           # This is similar to how AIX traditionally builds its shared libraries.
14206           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14207         fi
14208       fi
14209       ;;
14210
14211     amigaos*)
14212       case $host_cpu in
14213       powerpc)
14214             # see comment about AmigaOS4 .so support
14215             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14216             archive_expsym_cmds=''
14217         ;;
14218       m68k)
14219             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14220             hardcode_libdir_flag_spec='-L$libdir'
14221             hardcode_minus_L=yes
14222         ;;
14223       esac
14224       ;;
14225
14226     bsdi[45]*)
14227       export_dynamic_flag_spec=-rdynamic
14228       ;;
14229
14230     cygwin* | mingw* | pw32* | cegcc*)
14231       # When not using gcc, we currently assume that we are using
14232       # Microsoft Visual C++.
14233       # hardcode_libdir_flag_spec is actually meaningless, as there is
14234       # no search path for DLLs.
14235       case $cc_basename in
14236       cl*)
14237         # Native MSVC
14238         hardcode_libdir_flag_spec=' '
14239         allow_undefined_flag=unsupported
14240         always_export_symbols=yes
14241         file_list_spec='@'
14242         # Tell ltmain to make .lib files, not .a files.
14243         libext=lib
14244         # Tell ltmain to make .dll files, not .so files.
14245         shrext_cmds=".dll"
14246         # FIXME: Setting linknames here is a bad hack.
14247         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14248         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14249             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14250           else
14251             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14252           fi~
14253           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14254           linknames='
14255         # The linker will not automatically build a static lib if we build a DLL.
14256         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14257         enable_shared_with_static_runtimes=yes
14258         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14259         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14260         # Don't use ranlib
14261         old_postinstall_cmds='chmod 644 $oldlib'
14262         postlink_cmds='lt_outputfile="@OUTPUT@"~
14263           lt_tool_outputfile="@TOOL_OUTPUT@"~
14264           case $lt_outputfile in
14265             *.exe|*.EXE) ;;
14266             *)
14267               lt_outputfile="$lt_outputfile.exe"
14268               lt_tool_outputfile="$lt_tool_outputfile.exe"
14269               ;;
14270           esac~
14271           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14272             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14273             $RM "$lt_outputfile.manifest";
14274           fi'
14275         ;;
14276       *)
14277         # Assume MSVC wrapper
14278         hardcode_libdir_flag_spec=' '
14279         allow_undefined_flag=unsupported
14280         # Tell ltmain to make .lib files, not .a files.
14281         libext=lib
14282         # Tell ltmain to make .dll files, not .so files.
14283         shrext_cmds=".dll"
14284         # FIXME: Setting linknames here is a bad hack.
14285         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14286         # The linker will automatically build a .lib file if we build a DLL.
14287         old_archive_from_new_cmds='true'
14288         # FIXME: Should let the user specify the lib program.
14289         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14290         enable_shared_with_static_runtimes=yes
14291         ;;
14292       esac
14293       ;;
14294
14295     darwin* | rhapsody*)
14296
14297
14298   archive_cmds_need_lc=no
14299   hardcode_direct=no
14300   hardcode_automatic=yes
14301   hardcode_shlibpath_var=unsupported
14302   if test "$lt_cv_ld_force_load" = "yes"; then
14303     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14304
14305   else
14306     whole_archive_flag_spec=''
14307   fi
14308   link_all_deplibs=yes
14309   allow_undefined_flag="$_lt_dar_allow_undefined"
14310   case $cc_basename in
14311      ifort*) _lt_dar_can_shared=yes ;;
14312      *) _lt_dar_can_shared=$GCC ;;
14313   esac
14314   if test "$_lt_dar_can_shared" = "yes"; then
14315     output_verbose_link_cmd=func_echo_all
14316     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14317     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14318     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14319     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14320
14321   else
14322   ld_shlibs=no
14323   fi
14324
14325       ;;
14326
14327     dgux*)
14328       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14329       hardcode_libdir_flag_spec='-L$libdir'
14330       hardcode_shlibpath_var=no
14331       ;;
14332
14333     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14334     # support.  Future versions do this automatically, but an explicit c++rt0.o
14335     # does not break anything, and helps significantly (at the cost of a little
14336     # extra space).
14337     freebsd2.2*)
14338       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14339       hardcode_libdir_flag_spec='-R$libdir'
14340       hardcode_direct=yes
14341       hardcode_shlibpath_var=no
14342       ;;
14343
14344     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14345     freebsd2.*)
14346       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14347       hardcode_direct=yes
14348       hardcode_minus_L=yes
14349       hardcode_shlibpath_var=no
14350       ;;
14351
14352     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14353     freebsd* | dragonfly*)
14354       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14355       hardcode_libdir_flag_spec='-R$libdir'
14356       hardcode_direct=yes
14357       hardcode_shlibpath_var=no
14358       ;;
14359
14360     hpux9*)
14361       if test "$GCC" = yes; then
14362         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14363       else
14364         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14365       fi
14366       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14367       hardcode_libdir_separator=:
14368       hardcode_direct=yes
14369
14370       # hardcode_minus_L: Not really in the search PATH,
14371       # but as the default location of the library.
14372       hardcode_minus_L=yes
14373       export_dynamic_flag_spec='${wl}-E'
14374       ;;
14375
14376     hpux10*)
14377       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14378         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14379       else
14380         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14381       fi
14382       if test "$with_gnu_ld" = no; then
14383         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14384         hardcode_libdir_separator=:
14385         hardcode_direct=yes
14386         hardcode_direct_absolute=yes
14387         export_dynamic_flag_spec='${wl}-E'
14388         # hardcode_minus_L: Not really in the search PATH,
14389         # but as the default location of the library.
14390         hardcode_minus_L=yes
14391       fi
14392       ;;
14393
14394     hpux11*)
14395       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14396         case $host_cpu in
14397         hppa*64*)
14398           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14399           ;;
14400         ia64*)
14401           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14402           ;;
14403         *)
14404           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14405           ;;
14406         esac
14407       else
14408         case $host_cpu in
14409         hppa*64*)
14410           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14411           ;;
14412         ia64*)
14413           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14414           ;;
14415         *)
14416
14417           # Older versions of the 11.00 compiler do not understand -b yet
14418           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14420 $as_echo_n "checking if $CC understands -b... " >&6; }
14421 if ${lt_cv_prog_compiler__b+:} false; then :
14422   $as_echo_n "(cached) " >&6
14423 else
14424   lt_cv_prog_compiler__b=no
14425    save_LDFLAGS="$LDFLAGS"
14426    LDFLAGS="$LDFLAGS -b"
14427    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14428    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14429      # The linker can only warn and ignore the option if not recognized
14430      # So say no if there are warnings
14431      if test -s conftest.err; then
14432        # Append any errors to the config.log.
14433        cat conftest.err 1>&5
14434        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14435        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14436        if diff conftest.exp conftest.er2 >/dev/null; then
14437          lt_cv_prog_compiler__b=yes
14438        fi
14439      else
14440        lt_cv_prog_compiler__b=yes
14441      fi
14442    fi
14443    $RM -r conftest*
14444    LDFLAGS="$save_LDFLAGS"
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14448 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14449
14450 if test x"$lt_cv_prog_compiler__b" = xyes; then
14451     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14452 else
14453     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14454 fi
14455
14456           ;;
14457         esac
14458       fi
14459       if test "$with_gnu_ld" = no; then
14460         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14461         hardcode_libdir_separator=:
14462
14463         case $host_cpu in
14464         hppa*64*|ia64*)
14465           hardcode_direct=no
14466           hardcode_shlibpath_var=no
14467           ;;
14468         *)
14469           hardcode_direct=yes
14470           hardcode_direct_absolute=yes
14471           export_dynamic_flag_spec='${wl}-E'
14472
14473           # hardcode_minus_L: Not really in the search PATH,
14474           # but as the default location of the library.
14475           hardcode_minus_L=yes
14476           ;;
14477         esac
14478       fi
14479       ;;
14480
14481     irix5* | irix6* | nonstopux*)
14482       if test "$GCC" = yes; then
14483         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14484         # Try to use the -exported_symbol ld option, if it does not
14485         # work, assume that -exports_file does not work either and
14486         # implicitly export all symbols.
14487         # This should be the same for all languages, so no per-tag cache variable.
14488         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14489 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14490 if ${lt_cv_irix_exported_symbol+:} false; then :
14491   $as_echo_n "(cached) " >&6
14492 else
14493   save_LDFLAGS="$LDFLAGS"
14494            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14495            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h.  */
14497 int foo (void) { return 0; }
14498 _ACEOF
14499 if ac_fn_c_try_link "$LINENO"; then :
14500   lt_cv_irix_exported_symbol=yes
14501 else
14502   lt_cv_irix_exported_symbol=no
14503 fi
14504 rm -f core conftest.err conftest.$ac_objext \
14505     conftest$ac_exeext conftest.$ac_ext
14506            LDFLAGS="$save_LDFLAGS"
14507 fi
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14509 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14510         if test "$lt_cv_irix_exported_symbol" = yes; then
14511           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14512         fi
14513       else
14514         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14515         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
14516       fi
14517       archive_cmds_need_lc='no'
14518       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14519       hardcode_libdir_separator=:
14520       inherit_rpath=yes
14521       link_all_deplibs=yes
14522       ;;
14523
14524     netbsd*)
14525       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14526         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14527       else
14528         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14529       fi
14530       hardcode_libdir_flag_spec='-R$libdir'
14531       hardcode_direct=yes
14532       hardcode_shlibpath_var=no
14533       ;;
14534
14535     newsos6)
14536       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14537       hardcode_direct=yes
14538       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14539       hardcode_libdir_separator=:
14540       hardcode_shlibpath_var=no
14541       ;;
14542
14543     *nto* | *qnx*)
14544       ;;
14545
14546     openbsd*)
14547       if test -f /usr/libexec/ld.so; then
14548         hardcode_direct=yes
14549         hardcode_shlibpath_var=no
14550         hardcode_direct_absolute=yes
14551         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14552           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14553           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14554           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14555           export_dynamic_flag_spec='${wl}-E'
14556         else
14557           case $host_os in
14558            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14559              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14560              hardcode_libdir_flag_spec='-R$libdir'
14561              ;;
14562            *)
14563              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14564              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14565              ;;
14566           esac
14567         fi
14568       else
14569         ld_shlibs=no
14570       fi
14571       ;;
14572
14573     os2*)
14574       hardcode_libdir_flag_spec='-L$libdir'
14575       hardcode_minus_L=yes
14576       allow_undefined_flag=unsupported
14577       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14578       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14579       ;;
14580
14581     osf3*)
14582       if test "$GCC" = yes; then
14583         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14584         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14585       else
14586         allow_undefined_flag=' -expect_unresolved \*'
14587         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14588       fi
14589       archive_cmds_need_lc='no'
14590       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14591       hardcode_libdir_separator=:
14592       ;;
14593
14594     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14595       if test "$GCC" = yes; then
14596         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14597         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14598         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14599       else
14600         allow_undefined_flag=' -expect_unresolved \*'
14601         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14602         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
14603         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
14604
14605         # Both c and cxx compiler support -rpath directly
14606         hardcode_libdir_flag_spec='-rpath $libdir'
14607       fi
14608       archive_cmds_need_lc='no'
14609       hardcode_libdir_separator=:
14610       ;;
14611
14612     solaris*)
14613       no_undefined_flag=' -z defs'
14614       if test "$GCC" = yes; then
14615         wlarc='${wl}'
14616         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14617         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14618           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14619       else
14620         case `$CC -V 2>&1` in
14621         *"Compilers 5.0"*)
14622           wlarc=''
14623           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14624           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14625           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14626           ;;
14627         *)
14628           wlarc='${wl}'
14629           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14630           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14631           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14632           ;;
14633         esac
14634       fi
14635       hardcode_libdir_flag_spec='-R$libdir'
14636       hardcode_shlibpath_var=no
14637       case $host_os in
14638       solaris2.[0-5] | solaris2.[0-5].*) ;;
14639       *)
14640         # The compiler driver will combine and reorder linker options,
14641         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14642         # but is careful enough not to reorder.
14643         # Supported since Solaris 2.6 (maybe 2.5.1?)
14644         if test "$GCC" = yes; then
14645           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14646         else
14647           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14648         fi
14649         ;;
14650       esac
14651       link_all_deplibs=yes
14652       ;;
14653
14654     sunos4*)
14655       if test "x$host_vendor" = xsequent; then
14656         # Use $CC to link under sequent, because it throws in some extra .o
14657         # files that make .init and .fini sections work.
14658         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14659       else
14660         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14661       fi
14662       hardcode_libdir_flag_spec='-L$libdir'
14663       hardcode_direct=yes
14664       hardcode_minus_L=yes
14665       hardcode_shlibpath_var=no
14666       ;;
14667
14668     sysv4)
14669       case $host_vendor in
14670         sni)
14671           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14672           hardcode_direct=yes # is this really true???
14673         ;;
14674         siemens)
14675           ## LD is ld it makes a PLAMLIB
14676           ## CC just makes a GrossModule.
14677           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14678           reload_cmds='$CC -r -o $output$reload_objs'
14679           hardcode_direct=no
14680         ;;
14681         motorola)
14682           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14683           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14684         ;;
14685       esac
14686       runpath_var='LD_RUN_PATH'
14687       hardcode_shlibpath_var=no
14688       ;;
14689
14690     sysv4.3*)
14691       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14692       hardcode_shlibpath_var=no
14693       export_dynamic_flag_spec='-Bexport'
14694       ;;
14695
14696     sysv4*MP*)
14697       if test -d /usr/nec; then
14698         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14699         hardcode_shlibpath_var=no
14700         runpath_var=LD_RUN_PATH
14701         hardcode_runpath_var=yes
14702         ld_shlibs=yes
14703       fi
14704       ;;
14705
14706     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14707       no_undefined_flag='${wl}-z,text'
14708       archive_cmds_need_lc=no
14709       hardcode_shlibpath_var=no
14710       runpath_var='LD_RUN_PATH'
14711
14712       if test "$GCC" = yes; then
14713         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14714         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14715       else
14716         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14717         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14718       fi
14719       ;;
14720
14721     sysv5* | sco3.2v5* | sco5v6*)
14722       # Note: We can NOT use -z defs as we might desire, because we do not
14723       # link with -lc, and that would cause any symbols used from libc to
14724       # always be unresolved, which means just about no library would
14725       # ever link correctly.  If we're not using GNU ld we use -z text
14726       # though, which does catch some bad symbols but isn't as heavy-handed
14727       # as -z defs.
14728       no_undefined_flag='${wl}-z,text'
14729       allow_undefined_flag='${wl}-z,nodefs'
14730       archive_cmds_need_lc=no
14731       hardcode_shlibpath_var=no
14732       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14733       hardcode_libdir_separator=':'
14734       link_all_deplibs=yes
14735       export_dynamic_flag_spec='${wl}-Bexport'
14736       runpath_var='LD_RUN_PATH'
14737
14738       if test "$GCC" = yes; then
14739         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14740         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14741       else
14742         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14743         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14744       fi
14745       ;;
14746
14747     uts4*)
14748       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14749       hardcode_libdir_flag_spec='-L$libdir'
14750       hardcode_shlibpath_var=no
14751       ;;
14752
14753     *)
14754       ld_shlibs=no
14755       ;;
14756     esac
14757
14758     if test x$host_vendor = xsni; then
14759       case $host in
14760       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14761         export_dynamic_flag_spec='${wl}-Blargedynsym'
14762         ;;
14763       esac
14764     fi
14765   fi
14766
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14768 $as_echo "$ld_shlibs" >&6; }
14769 test "$ld_shlibs" = no && can_build_shared=no
14770
14771 with_gnu_ld=$with_gnu_ld
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787 #
14788 # Do we need to explicitly link libc?
14789 #
14790 case "x$archive_cmds_need_lc" in
14791 x|xyes)
14792   # Assume -lc should be added
14793   archive_cmds_need_lc=yes
14794
14795   if test "$enable_shared" = yes && test "$GCC" = yes; then
14796     case $archive_cmds in
14797     *'~'*)
14798       # FIXME: we may have to deal with multi-command sequences.
14799       ;;
14800     '$CC '*)
14801       # Test whether the compiler implicitly links with -lc since on some
14802       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14803       # to ld, don't add -lc before -lgcc.
14804       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14805 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14806 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14807   $as_echo_n "(cached) " >&6
14808 else
14809   $RM conftest*
14810         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14811
14812         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14813   (eval $ac_compile) 2>&5
14814   ac_status=$?
14815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816   test $ac_status = 0; } 2>conftest.err; then
14817           soname=conftest
14818           lib=conftest
14819           libobjs=conftest.$ac_objext
14820           deplibs=
14821           wl=$lt_prog_compiler_wl
14822           pic_flag=$lt_prog_compiler_pic
14823           compiler_flags=-v
14824           linker_flags=-v
14825           verstring=
14826           output_objdir=.
14827           libname=conftest
14828           lt_save_allow_undefined_flag=$allow_undefined_flag
14829           allow_undefined_flag=
14830           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14831   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14832   ac_status=$?
14833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14834   test $ac_status = 0; }
14835           then
14836             lt_cv_archive_cmds_need_lc=no
14837           else
14838             lt_cv_archive_cmds_need_lc=yes
14839           fi
14840           allow_undefined_flag=$lt_save_allow_undefined_flag
14841         else
14842           cat conftest.err 1>&5
14843         fi
14844         $RM conftest*
14845
14846 fi
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14848 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14849       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14850       ;;
14851     esac
14852   fi
14853   ;;
14854 esac
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15008 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15009
15010 if test "$GCC" = yes; then
15011   case $host_os in
15012     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15013     *) lt_awk_arg="/^libraries:/" ;;
15014   esac
15015   case $host_os in
15016     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15017     *) lt_sed_strip_eq="s,=/,/,g" ;;
15018   esac
15019   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15020   case $lt_search_path_spec in
15021   *\;*)
15022     # if the path contains ";" then we assume it to be the separator
15023     # otherwise default to the standard path separator (i.e. ":") - it is
15024     # assumed that no part of a normal pathname contains ";" but that should
15025     # okay in the real world where ";" in dirpaths is itself problematic.
15026     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15027     ;;
15028   *)
15029     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15030     ;;
15031   esac
15032   # Ok, now we have the path, separated by spaces, we can step through it
15033   # and add multilib dir if necessary.
15034   lt_tmp_lt_search_path_spec=
15035   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15036   for lt_sys_path in $lt_search_path_spec; do
15037     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15038       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15039     else
15040       test -d "$lt_sys_path" && \
15041         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15042     fi
15043   done
15044   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15045 BEGIN {RS=" "; FS="/|\n";} {
15046   lt_foo="";
15047   lt_count=0;
15048   for (lt_i = NF; lt_i > 0; lt_i--) {
15049     if ($lt_i != "" && $lt_i != ".") {
15050       if ($lt_i == "..") {
15051         lt_count++;
15052       } else {
15053         if (lt_count == 0) {
15054           lt_foo="/" $lt_i lt_foo;
15055         } else {
15056           lt_count--;
15057         }
15058       }
15059     }
15060   }
15061   if (lt_foo != "") { lt_freq[lt_foo]++; }
15062   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15063 }'`
15064   # AWK program above erroneously prepends '/' to C:/dos/paths
15065   # for these hosts.
15066   case $host_os in
15067     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15068       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15069   esac
15070   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15071 else
15072   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15073 fi
15074 library_names_spec=
15075 libname_spec='lib$name'
15076 soname_spec=
15077 shrext_cmds=".so"
15078 postinstall_cmds=
15079 postuninstall_cmds=
15080 finish_cmds=
15081 finish_eval=
15082 shlibpath_var=
15083 shlibpath_overrides_runpath=unknown
15084 version_type=none
15085 dynamic_linker="$host_os ld.so"
15086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15087 need_lib_prefix=unknown
15088 hardcode_into_libs=no
15089
15090 # when you set need_version to no, make sure it does not cause -set_version
15091 # flags to be left without arguments
15092 need_version=unknown
15093
15094 case $host_os in
15095 aix3*)
15096   version_type=linux # correct to gnu/linux during the next big refactor
15097   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15098   shlibpath_var=LIBPATH
15099
15100   # AIX 3 has no versioning support, so we append a major version to the name.
15101   soname_spec='${libname}${release}${shared_ext}$major'
15102   ;;
15103
15104 aix[4-9]*)
15105   version_type=linux # correct to gnu/linux during the next big refactor
15106   need_lib_prefix=no
15107   need_version=no
15108   hardcode_into_libs=yes
15109   if test "$host_cpu" = ia64; then
15110     # AIX 5 supports IA64
15111     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15112     shlibpath_var=LD_LIBRARY_PATH
15113   else
15114     # With GCC up to 2.95.x, collect2 would create an import file
15115     # for dependence libraries.  The import file would start with
15116     # the line `#! .'.  This would cause the generated library to
15117     # depend on `.', always an invalid library.  This was fixed in
15118     # development snapshots of GCC prior to 3.0.
15119     case $host_os in
15120       aix4 | aix4.[01] | aix4.[01].*)
15121       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15122            echo ' yes '
15123            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15124         :
15125       else
15126         can_build_shared=no
15127       fi
15128       ;;
15129     esac
15130     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15131     # soname into executable. Probably we can add versioning support to
15132     # collect2, so additional links can be useful in future.
15133     if test "$aix_use_runtimelinking" = yes; then
15134       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15135       # instead of lib<name>.a to let people know that these are not
15136       # typical AIX shared libraries.
15137       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138     else
15139       # We preserve .a as extension for shared libraries through AIX4.2
15140       # and later when we are not doing run time linking.
15141       library_names_spec='${libname}${release}.a $libname.a'
15142       soname_spec='${libname}${release}${shared_ext}$major'
15143     fi
15144     shlibpath_var=LIBPATH
15145   fi
15146   ;;
15147
15148 amigaos*)
15149   case $host_cpu in
15150   powerpc)
15151     # Since July 2007 AmigaOS4 officially supports .so libraries.
15152     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154     ;;
15155   m68k)
15156     library_names_spec='$libname.ixlibrary $libname.a'
15157     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15158     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15159     ;;
15160   esac
15161   ;;
15162
15163 beos*)
15164   library_names_spec='${libname}${shared_ext}'
15165   dynamic_linker="$host_os ld.so"
15166   shlibpath_var=LIBRARY_PATH
15167   ;;
15168
15169 bsdi[45]*)
15170   version_type=linux # correct to gnu/linux during the next big refactor
15171   need_version=no
15172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173   soname_spec='${libname}${release}${shared_ext}$major'
15174   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15175   shlibpath_var=LD_LIBRARY_PATH
15176   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15177   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15178   # the default ld.so.conf also contains /usr/contrib/lib and
15179   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15180   # libtool to hard-code these into programs
15181   ;;
15182
15183 cygwin* | mingw* | pw32* | cegcc*)
15184   version_type=windows
15185   shrext_cmds=".dll"
15186   need_version=no
15187   need_lib_prefix=no
15188
15189   case $GCC,$cc_basename in
15190   yes,*)
15191     # gcc
15192     library_names_spec='$libname.dll.a'
15193     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15194     postinstall_cmds='base_file=`basename \${file}`~
15195       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15196       dldir=$destdir/`dirname \$dlpath`~
15197       test -d \$dldir || mkdir -p \$dldir~
15198       $install_prog $dir/$dlname \$dldir/$dlname~
15199       chmod a+x \$dldir/$dlname~
15200       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15201         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15202       fi'
15203     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15204       dlpath=$dir/\$dldll~
15205        $RM \$dlpath'
15206     shlibpath_overrides_runpath=yes
15207
15208     case $host_os in
15209     cygwin*)
15210       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15211       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15212
15213       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15214       ;;
15215     mingw* | cegcc*)
15216       # MinGW DLLs use traditional 'lib' prefix
15217       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15218       ;;
15219     pw32*)
15220       # pw32 DLLs use 'pw' prefix rather than 'lib'
15221       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15222       ;;
15223     esac
15224     dynamic_linker='Win32 ld.exe'
15225     ;;
15226
15227   *,cl*)
15228     # Native MSVC
15229     libname_spec='$name'
15230     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15231     library_names_spec='${libname}.dll.lib'
15232
15233     case $build_os in
15234     mingw*)
15235       sys_lib_search_path_spec=
15236       lt_save_ifs=$IFS
15237       IFS=';'
15238       for lt_path in $LIB
15239       do
15240         IFS=$lt_save_ifs
15241         # Let DOS variable expansion print the short 8.3 style file name.
15242         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15243         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15244       done
15245       IFS=$lt_save_ifs
15246       # Convert to MSYS style.
15247       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15248       ;;
15249     cygwin*)
15250       # Convert to unix form, then to dos form, then back to unix form
15251       # but this time dos style (no spaces!) so that the unix form looks
15252       # like /cygdrive/c/PROGRA~1:/cygdr...
15253       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15254       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15255       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15256       ;;
15257     *)
15258       sys_lib_search_path_spec="$LIB"
15259       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15260         # It is most probably a Windows format PATH.
15261         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15262       else
15263         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15264       fi
15265       # FIXME: find the short name or the path components, as spaces are
15266       # common. (e.g. "Program Files" -> "PROGRA~1")
15267       ;;
15268     esac
15269
15270     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15271     postinstall_cmds='base_file=`basename \${file}`~
15272       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15273       dldir=$destdir/`dirname \$dlpath`~
15274       test -d \$dldir || mkdir -p \$dldir~
15275       $install_prog $dir/$dlname \$dldir/$dlname'
15276     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15277       dlpath=$dir/\$dldll~
15278        $RM \$dlpath'
15279     shlibpath_overrides_runpath=yes
15280     dynamic_linker='Win32 link.exe'
15281     ;;
15282
15283   *)
15284     # Assume MSVC wrapper
15285     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15286     dynamic_linker='Win32 ld.exe'
15287     ;;
15288   esac
15289   # FIXME: first we should search . and the directory the executable is in
15290   shlibpath_var=PATH
15291   ;;
15292
15293 darwin* | rhapsody*)
15294   dynamic_linker="$host_os dyld"
15295   version_type=darwin
15296   need_lib_prefix=no
15297   need_version=no
15298   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15299   soname_spec='${libname}${release}${major}$shared_ext'
15300   shlibpath_overrides_runpath=yes
15301   shlibpath_var=DYLD_LIBRARY_PATH
15302   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15303
15304   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15305   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15306   ;;
15307
15308 dgux*)
15309   version_type=linux # correct to gnu/linux during the next big refactor
15310   need_lib_prefix=no
15311   need_version=no
15312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15313   soname_spec='${libname}${release}${shared_ext}$major'
15314   shlibpath_var=LD_LIBRARY_PATH
15315   ;;
15316
15317 freebsd* | dragonfly*)
15318   # DragonFly does not have aout.  When/if they implement a new
15319   # versioning mechanism, adjust this.
15320   if test -x /usr/bin/objformat; then
15321     objformat=`/usr/bin/objformat`
15322   else
15323     case $host_os in
15324     freebsd[23].*) objformat=aout ;;
15325     *) objformat=elf ;;
15326     esac
15327   fi
15328   version_type=freebsd-$objformat
15329   case $version_type in
15330     freebsd-elf*)
15331       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15332       need_version=no
15333       need_lib_prefix=no
15334       ;;
15335     freebsd-*)
15336       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15337       need_version=yes
15338       ;;
15339   esac
15340   shlibpath_var=LD_LIBRARY_PATH
15341   case $host_os in
15342   freebsd2.*)
15343     shlibpath_overrides_runpath=yes
15344     ;;
15345   freebsd3.[01]* | freebsdelf3.[01]*)
15346     shlibpath_overrides_runpath=yes
15347     hardcode_into_libs=yes
15348     ;;
15349   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15350   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15351     shlibpath_overrides_runpath=no
15352     hardcode_into_libs=yes
15353     ;;
15354   *) # from 4.6 on, and DragonFly
15355     shlibpath_overrides_runpath=yes
15356     hardcode_into_libs=yes
15357     ;;
15358   esac
15359   ;;
15360
15361 gnu*)
15362   version_type=linux # correct to gnu/linux during the next big refactor
15363   need_lib_prefix=no
15364   need_version=no
15365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15366   soname_spec='${libname}${release}${shared_ext}$major'
15367   shlibpath_var=LD_LIBRARY_PATH
15368   shlibpath_overrides_runpath=no
15369   hardcode_into_libs=yes
15370   ;;
15371
15372 haiku*)
15373   version_type=linux # correct to gnu/linux during the next big refactor
15374   need_lib_prefix=no
15375   need_version=no
15376   dynamic_linker="$host_os runtime_loader"
15377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15378   soname_spec='${libname}${release}${shared_ext}$major'
15379   shlibpath_var=LIBRARY_PATH
15380   shlibpath_overrides_runpath=yes
15381   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15382   hardcode_into_libs=yes
15383   ;;
15384
15385 hpux9* | hpux10* | hpux11*)
15386   # Give a soname corresponding to the major version so that dld.sl refuses to
15387   # link against other versions.
15388   version_type=sunos
15389   need_lib_prefix=no
15390   need_version=no
15391   case $host_cpu in
15392   ia64*)
15393     shrext_cmds='.so'
15394     hardcode_into_libs=yes
15395     dynamic_linker="$host_os dld.so"
15396     shlibpath_var=LD_LIBRARY_PATH
15397     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15399     soname_spec='${libname}${release}${shared_ext}$major'
15400     if test "X$HPUX_IA64_MODE" = X32; then
15401       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15402     else
15403       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15404     fi
15405     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15406     ;;
15407   hppa*64*)
15408     shrext_cmds='.sl'
15409     hardcode_into_libs=yes
15410     dynamic_linker="$host_os dld.sl"
15411     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15412     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414     soname_spec='${libname}${release}${shared_ext}$major'
15415     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15416     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15417     ;;
15418   *)
15419     shrext_cmds='.sl'
15420     dynamic_linker="$host_os dld.sl"
15421     shlibpath_var=SHLIB_PATH
15422     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15424     soname_spec='${libname}${release}${shared_ext}$major'
15425     ;;
15426   esac
15427   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15428   postinstall_cmds='chmod 555 $lib'
15429   # or fails outright, so override atomically:
15430   install_override_mode=555
15431   ;;
15432
15433 interix[3-9]*)
15434   version_type=linux # correct to gnu/linux during the next big refactor
15435   need_lib_prefix=no
15436   need_version=no
15437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15440   shlibpath_var=LD_LIBRARY_PATH
15441   shlibpath_overrides_runpath=no
15442   hardcode_into_libs=yes
15443   ;;
15444
15445 irix5* | irix6* | nonstopux*)
15446   case $host_os in
15447     nonstopux*) version_type=nonstopux ;;
15448     *)
15449         if test "$lt_cv_prog_gnu_ld" = yes; then
15450                 version_type=linux # correct to gnu/linux during the next big refactor
15451         else
15452                 version_type=irix
15453         fi ;;
15454   esac
15455   need_lib_prefix=no
15456   need_version=no
15457   soname_spec='${libname}${release}${shared_ext}$major'
15458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15459   case $host_os in
15460   irix5* | nonstopux*)
15461     libsuff= shlibsuff=
15462     ;;
15463   *)
15464     case $LD in # libtool.m4 will add one of these switches to LD
15465     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15466       libsuff= shlibsuff= libmagic=32-bit;;
15467     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15468       libsuff=32 shlibsuff=N32 libmagic=N32;;
15469     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15470       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15471     *) libsuff= shlibsuff= libmagic=never-match;;
15472     esac
15473     ;;
15474   esac
15475   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15476   shlibpath_overrides_runpath=no
15477   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15478   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15479   hardcode_into_libs=yes
15480   ;;
15481
15482 # No shared lib support for Linux oldld, aout, or coff.
15483 linux*oldld* | linux*aout* | linux*coff*)
15484   dynamic_linker=no
15485   ;;
15486
15487 # This must be glibc/ELF.
15488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15489   version_type=linux # correct to gnu/linux during the next big refactor
15490   need_lib_prefix=no
15491   need_version=no
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493   soname_spec='${libname}${release}${shared_ext}$major'
15494   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15495   shlibpath_var=LD_LIBRARY_PATH
15496   shlibpath_overrides_runpath=no
15497
15498   # Some binutils ld are patched to set DT_RUNPATH
15499   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15500   $as_echo_n "(cached) " >&6
15501 else
15502   lt_cv_shlibpath_overrides_runpath=no
15503     save_LDFLAGS=$LDFLAGS
15504     save_libdir=$libdir
15505     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15506          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h.  */
15509
15510 int
15511 main ()
15512 {
15513
15514   ;
15515   return 0;
15516 }
15517 _ACEOF
15518 if ac_fn_c_try_link "$LINENO"; then :
15519   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15520   lt_cv_shlibpath_overrides_runpath=yes
15521 fi
15522 fi
15523 rm -f core conftest.err conftest.$ac_objext \
15524     conftest$ac_exeext conftest.$ac_ext
15525     LDFLAGS=$save_LDFLAGS
15526     libdir=$save_libdir
15527
15528 fi
15529
15530   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15531
15532   # This implies no fast_install, which is unacceptable.
15533   # Some rework will be needed to allow for fast_install
15534   # before this can be enabled.
15535   hardcode_into_libs=yes
15536
15537   # Append ld.so.conf contents to the search path
15538   if test -f /etc/ld.so.conf; then
15539     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15540     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15541   fi
15542
15543   # We used to test for /lib/ld.so.1 and disable shared libraries on
15544   # powerpc, because MkLinux only supported shared libraries with the
15545   # GNU dynamic linker.  Since this was broken with cross compilers,
15546   # most powerpc-linux boxes support dynamic linking these days and
15547   # people can always --disable-shared, the test was removed, and we
15548   # assume the GNU/Linux dynamic linker is in use.
15549   dynamic_linker='GNU/Linux ld.so'
15550   ;;
15551
15552 netbsd*)
15553   version_type=sunos
15554   need_lib_prefix=no
15555   need_version=no
15556   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15559     dynamic_linker='NetBSD (a.out) ld.so'
15560   else
15561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15562     soname_spec='${libname}${release}${shared_ext}$major'
15563     dynamic_linker='NetBSD ld.elf_so'
15564   fi
15565   shlibpath_var=LD_LIBRARY_PATH
15566   shlibpath_overrides_runpath=yes
15567   hardcode_into_libs=yes
15568   ;;
15569
15570 newsos6)
15571   version_type=linux # correct to gnu/linux during the next big refactor
15572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573   shlibpath_var=LD_LIBRARY_PATH
15574   shlibpath_overrides_runpath=yes
15575   ;;
15576
15577 *nto* | *qnx*)
15578   version_type=qnx
15579   need_lib_prefix=no
15580   need_version=no
15581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582   soname_spec='${libname}${release}${shared_ext}$major'
15583   shlibpath_var=LD_LIBRARY_PATH
15584   shlibpath_overrides_runpath=no
15585   hardcode_into_libs=yes
15586   dynamic_linker='ldqnx.so'
15587   ;;
15588
15589 openbsd*)
15590   version_type=sunos
15591   sys_lib_dlsearch_path_spec="/usr/lib"
15592   need_lib_prefix=no
15593   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15594   case $host_os in
15595     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15596     *)                          need_version=no  ;;
15597   esac
15598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15599   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15600   shlibpath_var=LD_LIBRARY_PATH
15601   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15602     case $host_os in
15603       openbsd2.[89] | openbsd2.[89].*)
15604         shlibpath_overrides_runpath=no
15605         ;;
15606       *)
15607         shlibpath_overrides_runpath=yes
15608         ;;
15609       esac
15610   else
15611     shlibpath_overrides_runpath=yes
15612   fi
15613   ;;
15614
15615 os2*)
15616   libname_spec='$name'
15617   shrext_cmds=".dll"
15618   need_lib_prefix=no
15619   library_names_spec='$libname${shared_ext} $libname.a'
15620   dynamic_linker='OS/2 ld.exe'
15621   shlibpath_var=LIBPATH
15622   ;;
15623
15624 osf3* | osf4* | osf5*)
15625   version_type=osf
15626   need_lib_prefix=no
15627   need_version=no
15628   soname_spec='${libname}${release}${shared_ext}$major'
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15632   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15633   ;;
15634
15635 rdos*)
15636   dynamic_linker=no
15637   ;;
15638
15639 solaris*)
15640   version_type=linux # correct to gnu/linux during the next big refactor
15641   need_lib_prefix=no
15642   need_version=no
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644   soname_spec='${libname}${release}${shared_ext}$major'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   shlibpath_overrides_runpath=yes
15647   hardcode_into_libs=yes
15648   # ldd complains unless libraries are executable
15649   postinstall_cmds='chmod +x $lib'
15650   ;;
15651
15652 sunos4*)
15653   version_type=sunos
15654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15655   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   shlibpath_overrides_runpath=yes
15658   if test "$with_gnu_ld" = yes; then
15659     need_lib_prefix=no
15660   fi
15661   need_version=yes
15662   ;;
15663
15664 sysv4 | sysv4.3*)
15665   version_type=linux # correct to gnu/linux during the next big refactor
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667   soname_spec='${libname}${release}${shared_ext}$major'
15668   shlibpath_var=LD_LIBRARY_PATH
15669   case $host_vendor in
15670     sni)
15671       shlibpath_overrides_runpath=no
15672       need_lib_prefix=no
15673       runpath_var=LD_RUN_PATH
15674       ;;
15675     siemens)
15676       need_lib_prefix=no
15677       ;;
15678     motorola)
15679       need_lib_prefix=no
15680       need_version=no
15681       shlibpath_overrides_runpath=no
15682       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15683       ;;
15684   esac
15685   ;;
15686
15687 sysv4*MP*)
15688   if test -d /usr/nec ;then
15689     version_type=linux # correct to gnu/linux during the next big refactor
15690     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15691     soname_spec='$libname${shared_ext}.$major'
15692     shlibpath_var=LD_LIBRARY_PATH
15693   fi
15694   ;;
15695
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15697   version_type=freebsd-elf
15698   need_lib_prefix=no
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701   soname_spec='${libname}${release}${shared_ext}$major'
15702   shlibpath_var=LD_LIBRARY_PATH
15703   shlibpath_overrides_runpath=yes
15704   hardcode_into_libs=yes
15705   if test "$with_gnu_ld" = yes; then
15706     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15707   else
15708     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709     case $host_os in
15710       sco3.2v5*)
15711         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15712         ;;
15713     esac
15714   fi
15715   sys_lib_dlsearch_path_spec='/usr/lib'
15716   ;;
15717
15718 tpf*)
15719   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15720   version_type=linux # correct to gnu/linux during the next big refactor
15721   need_lib_prefix=no
15722   need_version=no
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=no
15726   hardcode_into_libs=yes
15727   ;;
15728
15729 uts4*)
15730   version_type=linux # correct to gnu/linux during the next big refactor
15731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732   soname_spec='${libname}${release}${shared_ext}$major'
15733   shlibpath_var=LD_LIBRARY_PATH
15734   ;;
15735
15736 *)
15737   dynamic_linker=no
15738   ;;
15739 esac
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15741 $as_echo "$dynamic_linker" >&6; }
15742 test "$dynamic_linker" = no && can_build_shared=no
15743
15744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15745 if test "$GCC" = yes; then
15746   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15747 fi
15748
15749 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15750   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15751 fi
15752 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15753   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15754 fi
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15848 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15849 hardcode_action=
15850 if test -n "$hardcode_libdir_flag_spec" ||
15851    test -n "$runpath_var" ||
15852    test "X$hardcode_automatic" = "Xyes" ; then
15853
15854   # We can hardcode non-existent directories.
15855   if test "$hardcode_direct" != no &&
15856      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15857      # have to relink, otherwise we might link with an installed library
15858      # when we should be linking with a yet-to-be-installed one
15859      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15860      test "$hardcode_minus_L" != no; then
15861     # Linking always hardcodes the temporary library directory.
15862     hardcode_action=relink
15863   else
15864     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15865     hardcode_action=immediate
15866   fi
15867 else
15868   # We cannot hardcode anything, or else we can only hardcode existing
15869   # directories.
15870   hardcode_action=unsupported
15871 fi
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15873 $as_echo "$hardcode_action" >&6; }
15874
15875 if test "$hardcode_action" = relink ||
15876    test "$inherit_rpath" = yes; then
15877   # Fast installation is not supported
15878   enable_fast_install=no
15879 elif test "$shlibpath_overrides_runpath" = yes ||
15880      test "$enable_shared" = no; then
15881   # Fast installation is not necessary
15882   enable_fast_install=needless
15883 fi
15884
15885
15886
15887
15888
15889
15890   if test "x$enable_dlopen" != xyes; then
15891   enable_dlopen=unknown
15892   enable_dlopen_self=unknown
15893   enable_dlopen_self_static=unknown
15894 else
15895   lt_cv_dlopen=no
15896   lt_cv_dlopen_libs=
15897
15898   case $host_os in
15899   beos*)
15900     lt_cv_dlopen="load_add_on"
15901     lt_cv_dlopen_libs=
15902     lt_cv_dlopen_self=yes
15903     ;;
15904
15905   mingw* | pw32* | cegcc*)
15906     lt_cv_dlopen="LoadLibrary"
15907     lt_cv_dlopen_libs=
15908     ;;
15909
15910   cygwin*)
15911     lt_cv_dlopen="dlopen"
15912     lt_cv_dlopen_libs=
15913     ;;
15914
15915   darwin*)
15916   # if libdl is installed we need to link against it
15917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15918 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15919 if ${ac_cv_lib_dl_dlopen+:} false; then :
15920   $as_echo_n "(cached) " >&6
15921 else
15922   ac_check_lib_save_LIBS=$LIBS
15923 LIBS="-ldl  $LIBS"
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h.  */
15926
15927 /* Override any GCC internal prototype to avoid an error.
15928    Use char because int might match the return type of a GCC
15929    builtin and then its argument prototype would still apply.  */
15930 #ifdef __cplusplus
15931 extern "C"
15932 #endif
15933 char dlopen ();
15934 int
15935 main ()
15936 {
15937 return dlopen ();
15938   ;
15939   return 0;
15940 }
15941 _ACEOF
15942 if ac_fn_c_try_link "$LINENO"; then :
15943   ac_cv_lib_dl_dlopen=yes
15944 else
15945   ac_cv_lib_dl_dlopen=no
15946 fi
15947 rm -f core conftest.err conftest.$ac_objext \
15948     conftest$ac_exeext conftest.$ac_ext
15949 LIBS=$ac_check_lib_save_LIBS
15950 fi
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15952 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15953 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15954   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15955 else
15956
15957     lt_cv_dlopen="dyld"
15958     lt_cv_dlopen_libs=
15959     lt_cv_dlopen_self=yes
15960
15961 fi
15962
15963     ;;
15964
15965   *)
15966     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15967 if test "x$ac_cv_func_shl_load" = xyes; then :
15968   lt_cv_dlopen="shl_load"
15969 else
15970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15971 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15972 if ${ac_cv_lib_dld_shl_load+:} false; then :
15973   $as_echo_n "(cached) " >&6
15974 else
15975   ac_check_lib_save_LIBS=$LIBS
15976 LIBS="-ldld  $LIBS"
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h.  */
15979
15980 /* Override any GCC internal prototype to avoid an error.
15981    Use char because int might match the return type of a GCC
15982    builtin and then its argument prototype would still apply.  */
15983 #ifdef __cplusplus
15984 extern "C"
15985 #endif
15986 char shl_load ();
15987 int
15988 main ()
15989 {
15990 return shl_load ();
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 if ac_fn_c_try_link "$LINENO"; then :
15996   ac_cv_lib_dld_shl_load=yes
15997 else
15998   ac_cv_lib_dld_shl_load=no
15999 fi
16000 rm -f core conftest.err conftest.$ac_objext \
16001     conftest$ac_exeext conftest.$ac_ext
16002 LIBS=$ac_check_lib_save_LIBS
16003 fi
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16005 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16006 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16007   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16008 else
16009   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16010 if test "x$ac_cv_func_dlopen" = xyes; then :
16011   lt_cv_dlopen="dlopen"
16012 else
16013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16014 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16015 if ${ac_cv_lib_dl_dlopen+:} false; then :
16016   $as_echo_n "(cached) " >&6
16017 else
16018   ac_check_lib_save_LIBS=$LIBS
16019 LIBS="-ldl  $LIBS"
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h.  */
16022
16023 /* Override any GCC internal prototype to avoid an error.
16024    Use char because int might match the return type of a GCC
16025    builtin and then its argument prototype would still apply.  */
16026 #ifdef __cplusplus
16027 extern "C"
16028 #endif
16029 char dlopen ();
16030 int
16031 main ()
16032 {
16033 return dlopen ();
16034   ;
16035   return 0;
16036 }
16037 _ACEOF
16038 if ac_fn_c_try_link "$LINENO"; then :
16039   ac_cv_lib_dl_dlopen=yes
16040 else
16041   ac_cv_lib_dl_dlopen=no
16042 fi
16043 rm -f core conftest.err conftest.$ac_objext \
16044     conftest$ac_exeext conftest.$ac_ext
16045 LIBS=$ac_check_lib_save_LIBS
16046 fi
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16048 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16049 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16050   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16051 else
16052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16053 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16054 if ${ac_cv_lib_svld_dlopen+:} false; then :
16055   $as_echo_n "(cached) " >&6
16056 else
16057   ac_check_lib_save_LIBS=$LIBS
16058 LIBS="-lsvld  $LIBS"
16059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h.  */
16061
16062 /* Override any GCC internal prototype to avoid an error.
16063    Use char because int might match the return type of a GCC
16064    builtin and then its argument prototype would still apply.  */
16065 #ifdef __cplusplus
16066 extern "C"
16067 #endif
16068 char dlopen ();
16069 int
16070 main ()
16071 {
16072 return dlopen ();
16073   ;
16074   return 0;
16075 }
16076 _ACEOF
16077 if ac_fn_c_try_link "$LINENO"; then :
16078   ac_cv_lib_svld_dlopen=yes
16079 else
16080   ac_cv_lib_svld_dlopen=no
16081 fi
16082 rm -f core conftest.err conftest.$ac_objext \
16083     conftest$ac_exeext conftest.$ac_ext
16084 LIBS=$ac_check_lib_save_LIBS
16085 fi
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16087 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16088 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16089   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16090 else
16091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16092 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16093 if ${ac_cv_lib_dld_dld_link+:} false; then :
16094   $as_echo_n "(cached) " >&6
16095 else
16096   ac_check_lib_save_LIBS=$LIBS
16097 LIBS="-ldld  $LIBS"
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h.  */
16100
16101 /* Override any GCC internal prototype to avoid an error.
16102    Use char because int might match the return type of a GCC
16103    builtin and then its argument prototype would still apply.  */
16104 #ifdef __cplusplus
16105 extern "C"
16106 #endif
16107 char dld_link ();
16108 int
16109 main ()
16110 {
16111 return dld_link ();
16112   ;
16113   return 0;
16114 }
16115 _ACEOF
16116 if ac_fn_c_try_link "$LINENO"; then :
16117   ac_cv_lib_dld_dld_link=yes
16118 else
16119   ac_cv_lib_dld_dld_link=no
16120 fi
16121 rm -f core conftest.err conftest.$ac_objext \
16122     conftest$ac_exeext conftest.$ac_ext
16123 LIBS=$ac_check_lib_save_LIBS
16124 fi
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16126 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16127 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16128   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16129 fi
16130
16131
16132 fi
16133
16134
16135 fi
16136
16137
16138 fi
16139
16140
16141 fi
16142
16143
16144 fi
16145
16146     ;;
16147   esac
16148
16149   if test "x$lt_cv_dlopen" != xno; then
16150     enable_dlopen=yes
16151   else
16152     enable_dlopen=no
16153   fi
16154
16155   case $lt_cv_dlopen in
16156   dlopen)
16157     save_CPPFLAGS="$CPPFLAGS"
16158     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16159
16160     save_LDFLAGS="$LDFLAGS"
16161     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16162
16163     save_LIBS="$LIBS"
16164     LIBS="$lt_cv_dlopen_libs $LIBS"
16165
16166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16167 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16168 if ${lt_cv_dlopen_self+:} false; then :
16169   $as_echo_n "(cached) " >&6
16170 else
16171           if test "$cross_compiling" = yes; then :
16172   lt_cv_dlopen_self=cross
16173 else
16174   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16175   lt_status=$lt_dlunknown
16176   cat > conftest.$ac_ext <<_LT_EOF
16177 #line $LINENO "configure"
16178 #include "confdefs.h"
16179
16180 #if HAVE_DLFCN_H
16181 #include <dlfcn.h>
16182 #endif
16183
16184 #include <stdio.h>
16185
16186 #ifdef RTLD_GLOBAL
16187 #  define LT_DLGLOBAL           RTLD_GLOBAL
16188 #else
16189 #  ifdef DL_GLOBAL
16190 #    define LT_DLGLOBAL         DL_GLOBAL
16191 #  else
16192 #    define LT_DLGLOBAL         0
16193 #  endif
16194 #endif
16195
16196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16197    find out it does not work in some platform. */
16198 #ifndef LT_DLLAZY_OR_NOW
16199 #  ifdef RTLD_LAZY
16200 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16201 #  else
16202 #    ifdef DL_LAZY
16203 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16204 #    else
16205 #      ifdef RTLD_NOW
16206 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16207 #      else
16208 #        ifdef DL_NOW
16209 #          define LT_DLLAZY_OR_NOW      DL_NOW
16210 #        else
16211 #          define LT_DLLAZY_OR_NOW      0
16212 #        endif
16213 #      endif
16214 #    endif
16215 #  endif
16216 #endif
16217
16218 /* When -fvisbility=hidden is used, assume the code has been annotated
16219    correspondingly for the symbols needed.  */
16220 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16221 int fnord () __attribute__((visibility("default")));
16222 #endif
16223
16224 int fnord () { return 42; }
16225 int main ()
16226 {
16227   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16228   int status = $lt_dlunknown;
16229
16230   if (self)
16231     {
16232       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16233       else
16234         {
16235           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16236           else puts (dlerror ());
16237         }
16238       /* dlclose (self); */
16239     }
16240   else
16241     puts (dlerror ());
16242
16243   return status;
16244 }
16245 _LT_EOF
16246   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16247   (eval $ac_link) 2>&5
16248   ac_status=$?
16249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16250   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16251     (./conftest; exit; ) >&5 2>/dev/null
16252     lt_status=$?
16253     case x$lt_status in
16254       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16255       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16256       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16257     esac
16258   else :
16259     # compilation failed
16260     lt_cv_dlopen_self=no
16261   fi
16262 fi
16263 rm -fr conftest*
16264
16265
16266 fi
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16268 $as_echo "$lt_cv_dlopen_self" >&6; }
16269
16270     if test "x$lt_cv_dlopen_self" = xyes; then
16271       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16272       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16273 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16274 if ${lt_cv_dlopen_self_static+:} false; then :
16275   $as_echo_n "(cached) " >&6
16276 else
16277           if test "$cross_compiling" = yes; then :
16278   lt_cv_dlopen_self_static=cross
16279 else
16280   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16281   lt_status=$lt_dlunknown
16282   cat > conftest.$ac_ext <<_LT_EOF
16283 #line $LINENO "configure"
16284 #include "confdefs.h"
16285
16286 #if HAVE_DLFCN_H
16287 #include <dlfcn.h>
16288 #endif
16289
16290 #include <stdio.h>
16291
16292 #ifdef RTLD_GLOBAL
16293 #  define LT_DLGLOBAL           RTLD_GLOBAL
16294 #else
16295 #  ifdef DL_GLOBAL
16296 #    define LT_DLGLOBAL         DL_GLOBAL
16297 #  else
16298 #    define LT_DLGLOBAL         0
16299 #  endif
16300 #endif
16301
16302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16303    find out it does not work in some platform. */
16304 #ifndef LT_DLLAZY_OR_NOW
16305 #  ifdef RTLD_LAZY
16306 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16307 #  else
16308 #    ifdef DL_LAZY
16309 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16310 #    else
16311 #      ifdef RTLD_NOW
16312 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16313 #      else
16314 #        ifdef DL_NOW
16315 #          define LT_DLLAZY_OR_NOW      DL_NOW
16316 #        else
16317 #          define LT_DLLAZY_OR_NOW      0
16318 #        endif
16319 #      endif
16320 #    endif
16321 #  endif
16322 #endif
16323
16324 /* When -fvisbility=hidden is used, assume the code has been annotated
16325    correspondingly for the symbols needed.  */
16326 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16327 int fnord () __attribute__((visibility("default")));
16328 #endif
16329
16330 int fnord () { return 42; }
16331 int main ()
16332 {
16333   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16334   int status = $lt_dlunknown;
16335
16336   if (self)
16337     {
16338       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16339       else
16340         {
16341           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16342           else puts (dlerror ());
16343         }
16344       /* dlclose (self); */
16345     }
16346   else
16347     puts (dlerror ());
16348
16349   return status;
16350 }
16351 _LT_EOF
16352   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16353   (eval $ac_link) 2>&5
16354   ac_status=$?
16355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16356   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16357     (./conftest; exit; ) >&5 2>/dev/null
16358     lt_status=$?
16359     case x$lt_status in
16360       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16361       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16362       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16363     esac
16364   else :
16365     # compilation failed
16366     lt_cv_dlopen_self_static=no
16367   fi
16368 fi
16369 rm -fr conftest*
16370
16371
16372 fi
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16374 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16375     fi
16376
16377     CPPFLAGS="$save_CPPFLAGS"
16378     LDFLAGS="$save_LDFLAGS"
16379     LIBS="$save_LIBS"
16380     ;;
16381   esac
16382
16383   case $lt_cv_dlopen_self in
16384   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16385   *) enable_dlopen_self=unknown ;;
16386   esac
16387
16388   case $lt_cv_dlopen_self_static in
16389   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16390   *) enable_dlopen_self_static=unknown ;;
16391   esac
16392 fi
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410 striplib=
16411 old_striplib=
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16413 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16414 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16415   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16416   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418 $as_echo "yes" >&6; }
16419 else
16420 # FIXME - insert some real tests, host_os isn't really good enough
16421   case $host_os in
16422   darwin*)
16423     if test -n "$STRIP" ; then
16424       striplib="$STRIP -x"
16425       old_striplib="$STRIP -S"
16426       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16427 $as_echo "yes" >&6; }
16428     else
16429       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430 $as_echo "no" >&6; }
16431     fi
16432     ;;
16433   *)
16434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16435 $as_echo "no" >&6; }
16436     ;;
16437   esac
16438 fi
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451   # Report which library types will actually be built
16452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16453 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16455 $as_echo "$can_build_shared" >&6; }
16456
16457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16458 $as_echo_n "checking whether to build shared libraries... " >&6; }
16459   test "$can_build_shared" = "no" && enable_shared=no
16460
16461   # On AIX, shared libraries and static libraries use the same namespace, and
16462   # are all built from PIC.
16463   case $host_os in
16464   aix3*)
16465     test "$enable_shared" = yes && enable_static=no
16466     if test -n "$RANLIB"; then
16467       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16468       postinstall_cmds='$RANLIB $lib'
16469     fi
16470     ;;
16471
16472   aix[4-9]*)
16473     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16474       test "$enable_shared" = yes && enable_static=no
16475     fi
16476     ;;
16477   esac
16478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16479 $as_echo "$enable_shared" >&6; }
16480
16481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16482 $as_echo_n "checking whether to build static libraries... " >&6; }
16483   # Make sure either enable_shared or enable_static is yes.
16484   test "$enable_shared" = yes || enable_static=yes
16485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16486 $as_echo "$enable_static" >&6; }
16487
16488
16489
16490
16491 fi
16492 ac_ext=c
16493 ac_cpp='$CPP $CPPFLAGS'
16494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16497
16498 CC="$lt_save_CC"
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514         ac_config_commands="$ac_config_commands libtool"
16515
16516
16517
16518
16519 # Only expand once:
16520
16521
16522
16523 if test -n "$ac_tool_prefix"; then
16524   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16525 set dummy ${ac_tool_prefix}windres; ac_word=$2
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16527 $as_echo_n "checking for $ac_word... " >&6; }
16528 if ${ac_cv_prog_RC+:} false; then :
16529   $as_echo_n "(cached) " >&6
16530 else
16531   if test -n "$RC"; then
16532   ac_cv_prog_RC="$RC" # Let the user override the test.
16533 else
16534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16535 for as_dir in $PATH
16536 do
16537   IFS=$as_save_IFS
16538   test -z "$as_dir" && as_dir=.
16539     for ac_exec_ext in '' $ac_executable_extensions; do
16540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16541     ac_cv_prog_RC="${ac_tool_prefix}windres"
16542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16543     break 2
16544   fi
16545 done
16546   done
16547 IFS=$as_save_IFS
16548
16549 fi
16550 fi
16551 RC=$ac_cv_prog_RC
16552 if test -n "$RC"; then
16553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16554 $as_echo "$RC" >&6; }
16555 else
16556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16557 $as_echo "no" >&6; }
16558 fi
16559
16560
16561 fi
16562 if test -z "$ac_cv_prog_RC"; then
16563   ac_ct_RC=$RC
16564   # Extract the first word of "windres", so it can be a program name with args.
16565 set dummy windres; ac_word=$2
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16567 $as_echo_n "checking for $ac_word... " >&6; }
16568 if ${ac_cv_prog_ac_ct_RC+:} false; then :
16569   $as_echo_n "(cached) " >&6
16570 else
16571   if test -n "$ac_ct_RC"; then
16572   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16573 else
16574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575 for as_dir in $PATH
16576 do
16577   IFS=$as_save_IFS
16578   test -z "$as_dir" && as_dir=.
16579     for ac_exec_ext in '' $ac_executable_extensions; do
16580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16581     ac_cv_prog_ac_ct_RC="windres"
16582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16583     break 2
16584   fi
16585 done
16586   done
16587 IFS=$as_save_IFS
16588
16589 fi
16590 fi
16591 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16592 if test -n "$ac_ct_RC"; then
16593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16594 $as_echo "$ac_ct_RC" >&6; }
16595 else
16596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16597 $as_echo "no" >&6; }
16598 fi
16599
16600   if test "x$ac_ct_RC" = x; then
16601     RC=""
16602   else
16603     case $cross_compiling:$ac_tool_warned in
16604 yes:)
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16607 ac_tool_warned=yes ;;
16608 esac
16609     RC=$ac_ct_RC
16610   fi
16611 else
16612   RC="$ac_cv_prog_RC"
16613 fi
16614
16615
16616
16617
16618 # Source file extension for RC test sources.
16619 ac_ext=rc
16620
16621 # Object file extension for compiled RC test sources.
16622 objext=o
16623 objext_RC=$objext
16624
16625 # Code to be used in simple compile tests
16626 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16627
16628 # Code to be used in simple link tests
16629 lt_simple_link_test_code="$lt_simple_compile_test_code"
16630
16631 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16632
16633
16634
16635
16636
16637
16638 # If no C compiler was specified, use CC.
16639 LTCC=${LTCC-"$CC"}
16640
16641 # If no C compiler flags were specified, use CFLAGS.
16642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16643
16644 # Allow CC to be a program name with arguments.
16645 compiler=$CC
16646
16647
16648 # save warnings/boilerplate of simple test code
16649 ac_outfile=conftest.$ac_objext
16650 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16652 _lt_compiler_boilerplate=`cat conftest.err`
16653 $RM conftest*
16654
16655 ac_outfile=conftest.$ac_objext
16656 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16658 _lt_linker_boilerplate=`cat conftest.err`
16659 $RM -r conftest*
16660
16661
16662 # Allow CC to be a program name with arguments.
16663 lt_save_CC="$CC"
16664 lt_save_CFLAGS=$CFLAGS
16665 lt_save_GCC=$GCC
16666 GCC=
16667 CC=${RC-"windres"}
16668 CFLAGS=
16669 compiler=$CC
16670 compiler_RC=$CC
16671 for cc_temp in $compiler""; do
16672   case $cc_temp in
16673     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16674     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16675     \-*) ;;
16676     *) break;;
16677   esac
16678 done
16679 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16680
16681 lt_cv_prog_compiler_c_o_RC=yes
16682
16683 if test -n "$compiler"; then
16684   :
16685
16686
16687
16688 fi
16689
16690 GCC=$lt_save_GCC
16691 ac_ext=c
16692 ac_cpp='$CPP $CPPFLAGS'
16693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16696
16697 CC=$lt_save_CC
16698 CFLAGS=$lt_save_CFLAGS
16699
16700
16701 case "$host_os" in
16702   mingw* | cygwin*) is_woe32=yes ;;
16703   *) is_woe32=no ;;
16704 esac
16705  if test $is_woe32 = yes; then
16706   WOE32_TRUE=
16707   WOE32_FALSE='#'
16708 else
16709   WOE32_TRUE='#'
16710   WOE32_FALSE=
16711 fi
16712
16713
16714 case "$host_os" in
16715   cygwin*) ac_cv_lib_error_at_line=no ;;
16716 esac
16717
16718
16719
16720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16721 $as_echo_n "checking whether NLS is requested... " >&6; }
16722     # Check whether --enable-nls was given.
16723 if test "${enable_nls+set}" = set; then :
16724   enableval=$enable_nls; USE_NLS=$enableval
16725 else
16726   USE_NLS=yes
16727 fi
16728
16729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16730 $as_echo "$USE_NLS" >&6; }
16731
16732
16733
16734
16735       GETTEXT_MACRO_VERSION=0.18
16736
16737
16738
16739
16740 # Prepare PATH_SEPARATOR.
16741 # The user is always right.
16742 if test "${PATH_SEPARATOR+set}" != set; then
16743   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16744   # contains only /bin. Note that ksh looks also at the FPATH variable,
16745   # so we have to set that as well for the test.
16746   PATH_SEPARATOR=:
16747   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16748     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16749            || PATH_SEPARATOR=';'
16750        }
16751 fi
16752
16753 # Find out how to test for executable files. Don't use a zero-byte file,
16754 # as systems may use methods other than mode bits to determine executability.
16755 cat >conf$$.file <<_ASEOF
16756 #! /bin/sh
16757 exit 0
16758 _ASEOF
16759 chmod +x conf$$.file
16760 if test -x conf$$.file >/dev/null 2>&1; then
16761   ac_executable_p="test -x"
16762 else
16763   ac_executable_p="test -f"
16764 fi
16765 rm -f conf$$.file
16766
16767 # Extract the first word of "msgfmt", so it can be a program name with args.
16768 set dummy msgfmt; ac_word=$2
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16770 $as_echo_n "checking for $ac_word... " >&6; }
16771 if ${ac_cv_path_MSGFMT+:} false; then :
16772   $as_echo_n "(cached) " >&6
16773 else
16774   case "$MSGFMT" in
16775   [\\/]* | ?:[\\/]*)
16776     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16777     ;;
16778   *)
16779     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16780     for ac_dir in $PATH; do
16781       IFS="$ac_save_IFS"
16782       test -z "$ac_dir" && ac_dir=.
16783       for ac_exec_ext in '' $ac_executable_extensions; do
16784         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16785           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16786           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16787      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16788             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16789             break 2
16790           fi
16791         fi
16792       done
16793     done
16794     IFS="$ac_save_IFS"
16795   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16796     ;;
16797 esac
16798 fi
16799 MSGFMT="$ac_cv_path_MSGFMT"
16800 if test "$MSGFMT" != ":"; then
16801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16802 $as_echo "$MSGFMT" >&6; }
16803 else
16804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805 $as_echo "no" >&6; }
16806 fi
16807
16808   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16809 set dummy gmsgfmt; ac_word=$2
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16811 $as_echo_n "checking for $ac_word... " >&6; }
16812 if ${ac_cv_path_GMSGFMT+:} false; then :
16813   $as_echo_n "(cached) " >&6
16814 else
16815   case $GMSGFMT in
16816   [\\/]* | ?:[\\/]*)
16817   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16818   ;;
16819   *)
16820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16821 for as_dir in $PATH
16822 do
16823   IFS=$as_save_IFS
16824   test -z "$as_dir" && as_dir=.
16825     for ac_exec_ext in '' $ac_executable_extensions; do
16826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16827     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16829     break 2
16830   fi
16831 done
16832   done
16833 IFS=$as_save_IFS
16834
16835   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16836   ;;
16837 esac
16838 fi
16839 GMSGFMT=$ac_cv_path_GMSGFMT
16840 if test -n "$GMSGFMT"; then
16841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16842 $as_echo "$GMSGFMT" >&6; }
16843 else
16844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16845 $as_echo "no" >&6; }
16846 fi
16847
16848
16849
16850     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16851     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
16852     *) MSGFMT_015=$MSGFMT ;;
16853   esac
16854
16855   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16856     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
16857     *) GMSGFMT_015=$GMSGFMT ;;
16858   esac
16859
16860
16861
16862 # Prepare PATH_SEPARATOR.
16863 # The user is always right.
16864 if test "${PATH_SEPARATOR+set}" != set; then
16865   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16866   # contains only /bin. Note that ksh looks also at the FPATH variable,
16867   # so we have to set that as well for the test.
16868   PATH_SEPARATOR=:
16869   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16870     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16871            || PATH_SEPARATOR=';'
16872        }
16873 fi
16874
16875 # Find out how to test for executable files. Don't use a zero-byte file,
16876 # as systems may use methods other than mode bits to determine executability.
16877 cat >conf$$.file <<_ASEOF
16878 #! /bin/sh
16879 exit 0
16880 _ASEOF
16881 chmod +x conf$$.file
16882 if test -x conf$$.file >/dev/null 2>&1; then
16883   ac_executable_p="test -x"
16884 else
16885   ac_executable_p="test -f"
16886 fi
16887 rm -f conf$$.file
16888
16889 # Extract the first word of "xgettext", so it can be a program name with args.
16890 set dummy xgettext; ac_word=$2
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16892 $as_echo_n "checking for $ac_word... " >&6; }
16893 if ${ac_cv_path_XGETTEXT+:} false; then :
16894   $as_echo_n "(cached) " >&6
16895 else
16896   case "$XGETTEXT" in
16897   [\\/]* | ?:[\\/]*)
16898     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16899     ;;
16900   *)
16901     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16902     for ac_dir in $PATH; do
16903       IFS="$ac_save_IFS"
16904       test -z "$ac_dir" && ac_dir=.
16905       for ac_exec_ext in '' $ac_executable_extensions; do
16906         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16907           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16908           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16909      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16910             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16911             break 2
16912           fi
16913         fi
16914       done
16915     done
16916     IFS="$ac_save_IFS"
16917   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16918     ;;
16919 esac
16920 fi
16921 XGETTEXT="$ac_cv_path_XGETTEXT"
16922 if test "$XGETTEXT" != ":"; then
16923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16924 $as_echo "$XGETTEXT" >&6; }
16925 else
16926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927 $as_echo "no" >&6; }
16928 fi
16929
16930     rm -f messages.po
16931
16932     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16933     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16934     *) XGETTEXT_015=$XGETTEXT ;;
16935   esac
16936
16937
16938
16939 # Prepare PATH_SEPARATOR.
16940 # The user is always right.
16941 if test "${PATH_SEPARATOR+set}" != set; then
16942   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16943   # contains only /bin. Note that ksh looks also at the FPATH variable,
16944   # so we have to set that as well for the test.
16945   PATH_SEPARATOR=:
16946   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16947     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16948            || PATH_SEPARATOR=';'
16949        }
16950 fi
16951
16952 # Find out how to test for executable files. Don't use a zero-byte file,
16953 # as systems may use methods other than mode bits to determine executability.
16954 cat >conf$$.file <<_ASEOF
16955 #! /bin/sh
16956 exit 0
16957 _ASEOF
16958 chmod +x conf$$.file
16959 if test -x conf$$.file >/dev/null 2>&1; then
16960   ac_executable_p="test -x"
16961 else
16962   ac_executable_p="test -f"
16963 fi
16964 rm -f conf$$.file
16965
16966 # Extract the first word of "msgmerge", so it can be a program name with args.
16967 set dummy msgmerge; ac_word=$2
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16969 $as_echo_n "checking for $ac_word... " >&6; }
16970 if ${ac_cv_path_MSGMERGE+:} false; then :
16971   $as_echo_n "(cached) " >&6
16972 else
16973   case "$MSGMERGE" in
16974   [\\/]* | ?:[\\/]*)
16975     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16976     ;;
16977   *)
16978     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16979     for ac_dir in $PATH; do
16980       IFS="$ac_save_IFS"
16981       test -z "$ac_dir" && ac_dir=.
16982       for ac_exec_ext in '' $ac_executable_extensions; do
16983         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16984           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16985           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16986             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16987             break 2
16988           fi
16989         fi
16990       done
16991     done
16992     IFS="$ac_save_IFS"
16993   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16994     ;;
16995 esac
16996 fi
16997 MSGMERGE="$ac_cv_path_MSGMERGE"
16998 if test "$MSGMERGE" != ":"; then
16999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17000 $as_echo "$MSGMERGE" >&6; }
17001 else
17002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17003 $as_echo "no" >&6; }
17004 fi
17005
17006
17007         test -n "$localedir" || localedir='${datadir}/locale'
17008
17009
17010     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
17011
17012
17013   ac_config_commands="$ac_config_commands po-directories"
17014
17015
17016
17017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17018 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17019 if ${ac_cv_gnu_library_2+:} false; then :
17020   $as_echo_n "(cached) " >&6
17021 else
17022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h.  */
17024
17025 #include <features.h>
17026 #ifdef __GNU_LIBRARY__
17027  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
17028   Lucky GNU user
17029  #endif
17030 #endif
17031
17032 _ACEOF
17033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17034   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17035   ac_cv_gnu_library_2=yes
17036 else
17037   ac_cv_gnu_library_2=no
17038 fi
17039 rm -f conftest*
17040
17041
17042
17043 fi
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17045 $as_echo "$ac_cv_gnu_library_2" >&6; }
17046
17047     GLIBC2="$ac_cv_gnu_library_2"
17048
17049
17050
17051
17052   CFLAG_VISIBILITY=
17053   HAVE_VISIBILITY=0
17054   if test -n "$GCC"; then
17055                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
17056 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
17057     if ${gl_cv_cc_vis_werror+:} false; then :
17058   $as_echo_n "(cached) " >&6
17059 else
17060
17061       gl_save_CFLAGS="$CFLAGS"
17062       CFLAGS="$CFLAGS -Werror"
17063       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h.  */
17065
17066 int
17067 main ()
17068 {
17069
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 if ac_fn_c_try_compile "$LINENO"; then :
17075   gl_cv_cc_vis_werror=yes
17076 else
17077   gl_cv_cc_vis_werror=no
17078 fi
17079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080       CFLAGS="$gl_save_CFLAGS"
17081 fi
17082
17083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
17084 $as_echo "$gl_cv_cc_vis_werror" >&6; }
17085         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
17086 $as_echo_n "checking for simple visibility declarations... " >&6; }
17087     if ${gl_cv_cc_visibility+:} false; then :
17088   $as_echo_n "(cached) " >&6
17089 else
17090
17091       gl_save_CFLAGS="$CFLAGS"
17092       CFLAGS="$CFLAGS -fvisibility=hidden"
17093                                     if test $gl_cv_cc_vis_werror = yes; then
17094         CFLAGS="$CFLAGS -Werror"
17095       fi
17096       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h.  */
17098 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
17099              extern __attribute__((__visibility__("default"))) int exportedvar;
17100              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
17101              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
17102              void dummyfunc (void) {}
17103
17104 int
17105 main ()
17106 {
17107
17108   ;
17109   return 0;
17110 }
17111 _ACEOF
17112 if ac_fn_c_try_compile "$LINENO"; then :
17113   gl_cv_cc_visibility=yes
17114 else
17115   gl_cv_cc_visibility=no
17116 fi
17117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17118       CFLAGS="$gl_save_CFLAGS"
17119 fi
17120
17121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
17122 $as_echo "$gl_cv_cc_visibility" >&6; }
17123     if test $gl_cv_cc_visibility = yes; then
17124       CFLAG_VISIBILITY="-fvisibility=hidden"
17125       HAVE_VISIBILITY=1
17126     fi
17127   fi
17128
17129
17130
17131 cat >>confdefs.h <<_ACEOF
17132 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17133 _ACEOF
17134
17135
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17137 $as_echo_n "checking for inline... " >&6; }
17138 if ${ac_cv_c_inline+:} false; then :
17139   $as_echo_n "(cached) " >&6
17140 else
17141   ac_cv_c_inline=no
17142 for ac_kw in inline __inline__ __inline; do
17143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h.  */
17145 #ifndef __cplusplus
17146 typedef int foo_t;
17147 static $ac_kw foo_t static_foo () {return 0; }
17148 $ac_kw foo_t foo () {return 0; }
17149 #endif
17150
17151 _ACEOF
17152 if ac_fn_c_try_compile "$LINENO"; then :
17153   ac_cv_c_inline=$ac_kw
17154 fi
17155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17156   test "$ac_cv_c_inline" != no && break
17157 done
17158
17159 fi
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17161 $as_echo "$ac_cv_c_inline" >&6; }
17162
17163 case $ac_cv_c_inline in
17164   inline | yes) ;;
17165   *)
17166     case $ac_cv_c_inline in
17167       no) ac_val=;;
17168       *) ac_val=$ac_cv_c_inline;;
17169     esac
17170     cat >>confdefs.h <<_ACEOF
17171 #ifndef __cplusplus
17172 #define inline $ac_val
17173 #endif
17174 _ACEOF
17175     ;;
17176 esac
17177
17178 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17179 if test "x$ac_cv_type_size_t" = xyes; then :
17180
17181 else
17182
17183 cat >>confdefs.h <<_ACEOF
17184 #define size_t unsigned int
17185 _ACEOF
17186
17187 fi
17188
17189
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
17191 $as_echo_n "checking for stdint.h... " >&6; }
17192 if ${gl_cv_header_stdint_h+:} false; then :
17193   $as_echo_n "(cached) " >&6
17194 else
17195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h.  */
17197 #include <sys/types.h>
17198             #include <stdint.h>
17199 int
17200 main ()
17201 {
17202 uintmax_t i = (uintmax_t) -1; return !i;
17203   ;
17204   return 0;
17205 }
17206 _ACEOF
17207 if ac_fn_c_try_compile "$LINENO"; then :
17208   gl_cv_header_stdint_h=yes
17209 else
17210   gl_cv_header_stdint_h=no
17211 fi
17212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17213 fi
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
17215 $as_echo "$gl_cv_header_stdint_h" >&6; }
17216   if test $gl_cv_header_stdint_h = yes; then
17217
17218 cat >>confdefs.h <<_ACEOF
17219 #define HAVE_STDINT_H_WITH_UINTMAX 1
17220 _ACEOF
17221
17222   fi
17223
17224 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17225 # for constant arguments.  Useless!
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17227 $as_echo_n "checking for working alloca.h... " >&6; }
17228 if ${ac_cv_working_alloca_h+:} false; then :
17229   $as_echo_n "(cached) " >&6
17230 else
17231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h.  */
17233 #include <alloca.h>
17234 int
17235 main ()
17236 {
17237 char *p = (char *) alloca (2 * sizeof (int));
17238                           if (p) return 0;
17239   ;
17240   return 0;
17241 }
17242 _ACEOF
17243 if ac_fn_c_try_link "$LINENO"; then :
17244   ac_cv_working_alloca_h=yes
17245 else
17246   ac_cv_working_alloca_h=no
17247 fi
17248 rm -f core conftest.err conftest.$ac_objext \
17249     conftest$ac_exeext conftest.$ac_ext
17250 fi
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17252 $as_echo "$ac_cv_working_alloca_h" >&6; }
17253 if test $ac_cv_working_alloca_h = yes; then
17254
17255 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17256
17257 fi
17258
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17260 $as_echo_n "checking for alloca... " >&6; }
17261 if ${ac_cv_func_alloca_works+:} false; then :
17262   $as_echo_n "(cached) " >&6
17263 else
17264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h.  */
17266 #ifdef __GNUC__
17267 # define alloca __builtin_alloca
17268 #else
17269 # ifdef _MSC_VER
17270 #  include <malloc.h>
17271 #  define alloca _alloca
17272 # else
17273 #  ifdef HAVE_ALLOCA_H
17274 #   include <alloca.h>
17275 #  else
17276 #   ifdef _AIX
17277  #pragma alloca
17278 #   else
17279 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17280 void *alloca (size_t);
17281 #    endif
17282 #   endif
17283 #  endif
17284 # endif
17285 #endif
17286
17287 int
17288 main ()
17289 {
17290 char *p = (char *) alloca (1);
17291                                     if (p) return 0;
17292   ;
17293   return 0;
17294 }
17295 _ACEOF
17296 if ac_fn_c_try_link "$LINENO"; then :
17297   ac_cv_func_alloca_works=yes
17298 else
17299   ac_cv_func_alloca_works=no
17300 fi
17301 rm -f core conftest.err conftest.$ac_objext \
17302     conftest$ac_exeext conftest.$ac_ext
17303 fi
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17305 $as_echo "$ac_cv_func_alloca_works" >&6; }
17306
17307 if test $ac_cv_func_alloca_works = yes; then
17308
17309 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17310
17311 else
17312   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17313 # that cause trouble.  Some versions do not even contain alloca or
17314 # contain a buggy version.  If you still want to use their alloca,
17315 # use ar to extract alloca.o from them instead of compiling alloca.c.
17316
17317 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17318
17319 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17320
17321
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17323 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17324 if ${ac_cv_os_cray+:} false; then :
17325   $as_echo_n "(cached) " >&6
17326 else
17327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h.  */
17329 #if defined CRAY && ! defined CRAY2
17330 webecray
17331 #else
17332 wenotbecray
17333 #endif
17334
17335 _ACEOF
17336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17337   $EGREP "webecray" >/dev/null 2>&1; then :
17338   ac_cv_os_cray=yes
17339 else
17340   ac_cv_os_cray=no
17341 fi
17342 rm -f conftest*
17343
17344 fi
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17346 $as_echo "$ac_cv_os_cray" >&6; }
17347 if test $ac_cv_os_cray = yes; then
17348   for ac_func in _getb67 GETB67 getb67; do
17349     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17350 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17351 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17352
17353 cat >>confdefs.h <<_ACEOF
17354 #define CRAY_STACKSEG_END $ac_func
17355 _ACEOF
17356
17357     break
17358 fi
17359
17360   done
17361 fi
17362
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17364 $as_echo_n "checking stack direction for C alloca... " >&6; }
17365 if ${ac_cv_c_stack_direction+:} false; then :
17366   $as_echo_n "(cached) " >&6
17367 else
17368   if test "$cross_compiling" = yes; then :
17369   ac_cv_c_stack_direction=0
17370 else
17371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h.  */
17373 $ac_includes_default
17374 int
17375 find_stack_direction (int *addr, int depth)
17376 {
17377   int dir, dummy = 0;
17378   if (! addr)
17379     addr = &dummy;
17380   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17381   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17382   return dir + dummy;
17383 }
17384
17385 int
17386 main (int argc, char **argv)
17387 {
17388   return find_stack_direction (0, argc + !argv + 20) < 0;
17389 }
17390 _ACEOF
17391 if ac_fn_c_try_run "$LINENO"; then :
17392   ac_cv_c_stack_direction=1
17393 else
17394   ac_cv_c_stack_direction=-1
17395 fi
17396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17397   conftest.$ac_objext conftest.beam conftest.$ac_ext
17398 fi
17399
17400 fi
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17402 $as_echo "$ac_cv_c_stack_direction" >&6; }
17403 cat >>confdefs.h <<_ACEOF
17404 #define STACK_DIRECTION $ac_cv_c_stack_direction
17405 _ACEOF
17406
17407
17408 fi
17409
17410
17411
17412
17413   for ac_header in $ac_header_list
17414 do :
17415   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17416 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17417 "
17418 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17419   cat >>confdefs.h <<_ACEOF
17420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17421 _ACEOF
17422
17423 fi
17424
17425 done
17426
17427
17428
17429
17430
17431
17432
17433
17434 for ac_func in getpagesize
17435 do :
17436   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17437 if test "x$ac_cv_func_getpagesize" = xyes; then :
17438   cat >>confdefs.h <<_ACEOF
17439 #define HAVE_GETPAGESIZE 1
17440 _ACEOF
17441
17442 fi
17443 done
17444
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17446 $as_echo_n "checking for working mmap... " >&6; }
17447 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
17448   $as_echo_n "(cached) " >&6
17449 else
17450   if test "$cross_compiling" = yes; then :
17451   ac_cv_func_mmap_fixed_mapped=no
17452 else
17453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h.  */
17455 $ac_includes_default
17456 /* malloc might have been renamed as rpl_malloc. */
17457 #undef malloc
17458
17459 /* Thanks to Mike Haertel and Jim Avera for this test.
17460    Here is a matrix of mmap possibilities:
17461         mmap private not fixed
17462         mmap private fixed at somewhere currently unmapped
17463         mmap private fixed at somewhere already mapped
17464         mmap shared not fixed
17465         mmap shared fixed at somewhere currently unmapped
17466         mmap shared fixed at somewhere already mapped
17467    For private mappings, we should verify that changes cannot be read()
17468    back from the file, nor mmap's back from the file at a different
17469    address.  (There have been systems where private was not correctly
17470    implemented like the infamous i386 svr4.0, and systems where the
17471    VM page cache was not coherent with the file system buffer cache
17472    like early versions of FreeBSD and possibly contemporary NetBSD.)
17473    For shared mappings, we should conversely verify that changes get
17474    propagated back to all the places they're supposed to be.
17475
17476    Grep wants private fixed already mapped.
17477    The main things grep needs to know about mmap are:
17478    * does it exist and is it safe to write into the mmap'd area
17479    * how to use it (BSD variants)  */
17480
17481 #include <fcntl.h>
17482 #include <sys/mman.h>
17483
17484 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17485 char *malloc ();
17486 #endif
17487
17488 /* This mess was copied from the GNU getpagesize.h.  */
17489 #ifndef HAVE_GETPAGESIZE
17490 # ifdef _SC_PAGESIZE
17491 #  define getpagesize() sysconf(_SC_PAGESIZE)
17492 # else /* no _SC_PAGESIZE */
17493 #  ifdef HAVE_SYS_PARAM_H
17494 #   include <sys/param.h>
17495 #   ifdef EXEC_PAGESIZE
17496 #    define getpagesize() EXEC_PAGESIZE
17497 #   else /* no EXEC_PAGESIZE */
17498 #    ifdef NBPG
17499 #     define getpagesize() NBPG * CLSIZE
17500 #     ifndef CLSIZE
17501 #      define CLSIZE 1
17502 #     endif /* no CLSIZE */
17503 #    else /* no NBPG */
17504 #     ifdef NBPC
17505 #      define getpagesize() NBPC
17506 #     else /* no NBPC */
17507 #      ifdef PAGESIZE
17508 #       define getpagesize() PAGESIZE
17509 #      endif /* PAGESIZE */
17510 #     endif /* no NBPC */
17511 #    endif /* no NBPG */
17512 #   endif /* no EXEC_PAGESIZE */
17513 #  else /* no HAVE_SYS_PARAM_H */
17514 #   define getpagesize() 8192   /* punt totally */
17515 #  endif /* no HAVE_SYS_PARAM_H */
17516 # endif /* no _SC_PAGESIZE */
17517
17518 #endif /* no HAVE_GETPAGESIZE */
17519
17520 int
17521 main ()
17522 {
17523   char *data, *data2, *data3;
17524   const char *cdata2;
17525   int i, pagesize;
17526   int fd, fd2;
17527
17528   pagesize = getpagesize ();
17529
17530   /* First, make a file with some known garbage in it. */
17531   data = (char *) malloc (pagesize);
17532   if (!data)
17533     return 1;
17534   for (i = 0; i < pagesize; ++i)
17535     *(data + i) = rand ();
17536   umask (0);
17537   fd = creat ("conftest.mmap", 0600);
17538   if (fd < 0)
17539     return 2;
17540   if (write (fd, data, pagesize) != pagesize)
17541     return 3;
17542   close (fd);
17543
17544   /* Next, check that the tail of a page is zero-filled.  File must have
17545      non-zero length, otherwise we risk SIGBUS for entire page.  */
17546   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17547   if (fd2 < 0)
17548     return 4;
17549   cdata2 = "";
17550   if (write (fd2, cdata2, 1) != 1)
17551     return 5;
17552   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17553   if (data2 == MAP_FAILED)
17554     return 6;
17555   for (i = 0; i < pagesize; ++i)
17556     if (*(data2 + i))
17557       return 7;
17558   close (fd2);
17559   if (munmap (data2, pagesize))
17560     return 8;
17561
17562   /* Next, try to mmap the file at a fixed address which already has
17563      something else allocated at it.  If we can, also make sure that
17564      we see the same garbage.  */
17565   fd = open ("conftest.mmap", O_RDWR);
17566   if (fd < 0)
17567     return 9;
17568   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17569                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17570     return 10;
17571   for (i = 0; i < pagesize; ++i)
17572     if (*(data + i) != *(data2 + i))
17573       return 11;
17574
17575   /* Finally, make sure that changes to the mapped area do not
17576      percolate back to the file as seen by read().  (This is a bug on
17577      some variants of i386 svr4.0.)  */
17578   for (i = 0; i < pagesize; ++i)
17579     *(data2 + i) = *(data2 + i) + 1;
17580   data3 = (char *) malloc (pagesize);
17581   if (!data3)
17582     return 12;
17583   if (read (fd, data3, pagesize) != pagesize)
17584     return 13;
17585   for (i = 0; i < pagesize; ++i)
17586     if (*(data + i) != *(data3 + i))
17587       return 14;
17588   close (fd);
17589   return 0;
17590 }
17591 _ACEOF
17592 if ac_fn_c_try_run "$LINENO"; then :
17593   ac_cv_func_mmap_fixed_mapped=yes
17594 else
17595   ac_cv_func_mmap_fixed_mapped=no
17596 fi
17597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17598   conftest.$ac_objext conftest.beam conftest.$ac_ext
17599 fi
17600
17601 fi
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17603 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17604 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17605
17606 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17607
17608 fi
17609 rm -f conftest.mmap conftest.txt
17610
17611
17612
17613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
17614 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
17615 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
17616   $as_echo_n "(cached) " >&6
17617 else
17618
17619       gt_cv_int_divbyzero_sigfpe=
17620       case "$host_os" in
17621         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
17622           # On Mac OS X 10.2 or newer, just assume the same as when cross-
17623           # compiling. If we were to perform the real test, 1 Crash Report
17624           # dialog window would pop up.
17625           case "$host_cpu" in
17626             i[34567]86 | x86_64)
17627               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
17628           esac
17629           ;;
17630       esac
17631       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
17632         if test "$cross_compiling" = yes; then :
17633
17634             # Guess based on the CPU.
17635             case "$host_cpu" in
17636               alpha* | i[34567]86 | x86_64 | m68k | s390*)
17637                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
17638               *)
17639                 gt_cv_int_divbyzero_sigfpe="guessing no";;
17640             esac
17641
17642 else
17643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h.  */
17645
17646 #include <stdlib.h>
17647 #include <signal.h>
17648
17649 static void
17650 sigfpe_handler (int sig)
17651 {
17652   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
17653   exit (sig != SIGFPE);
17654 }
17655
17656 int x = 1;
17657 int y = 0;
17658 int z;
17659 int nan;
17660
17661 int main ()
17662 {
17663   signal (SIGFPE, sigfpe_handler);
17664 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
17665 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
17666   signal (SIGTRAP, sigfpe_handler);
17667 #endif
17668 /* Linux/SPARC yields signal SIGILL.  */
17669 #if defined (__sparc__) && defined (__linux__)
17670   signal (SIGILL, sigfpe_handler);
17671 #endif
17672
17673   z = x / y;
17674   nan = y / y;
17675   exit (2);
17676 }
17677
17678 _ACEOF
17679 if ac_fn_c_try_run "$LINENO"; then :
17680   gt_cv_int_divbyzero_sigfpe=yes
17681 else
17682   gt_cv_int_divbyzero_sigfpe=no
17683 fi
17684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17685   conftest.$ac_objext conftest.beam conftest.$ac_ext
17686 fi
17687
17688       fi
17689
17690 fi
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
17692 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
17693   case "$gt_cv_int_divbyzero_sigfpe" in
17694     *yes) value=1;;
17695     *) value=0;;
17696   esac
17697
17698 cat >>confdefs.h <<_ACEOF
17699 #define INTDIV0_RAISES_SIGFPE $value
17700 _ACEOF
17701
17702
17703
17704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
17705 $as_echo_n "checking for inttypes.h... " >&6; }
17706 if ${gl_cv_header_inttypes_h+:} false; then :
17707   $as_echo_n "(cached) " >&6
17708 else
17709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h.  */
17711
17712 #include <sys/types.h>
17713 #include <inttypes.h>
17714
17715 int
17716 main ()
17717 {
17718 uintmax_t i = (uintmax_t) -1; return !i;
17719   ;
17720   return 0;
17721 }
17722 _ACEOF
17723 if ac_fn_c_try_compile "$LINENO"; then :
17724   gl_cv_header_inttypes_h=yes
17725 else
17726   gl_cv_header_inttypes_h=no
17727 fi
17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729 fi
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
17731 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17732   if test $gl_cv_header_inttypes_h = yes; then
17733
17734 cat >>confdefs.h <<_ACEOF
17735 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17736 _ACEOF
17737
17738   fi
17739
17740
17741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17742 $as_echo_n "checking for unsigned long long int... " >&6; }
17743 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17744   $as_echo_n "(cached) " >&6
17745 else
17746   ac_cv_type_unsigned_long_long_int=yes
17747      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17748        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h.  */
17750
17751   /* For now, do not test the preprocessor; as of 2007 there are too many
17752          implementations with broken preprocessors.  Perhaps this can
17753          be revisited in 2012.  In the meantime, code should not expect
17754          #if to work with literals wider than 32 bits.  */
17755       /* Test literals.  */
17756       long long int ll = 9223372036854775807ll;
17757       long long int nll = -9223372036854775807LL;
17758       unsigned long long int ull = 18446744073709551615ULL;
17759       /* Test constant expressions.   */
17760       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17761                      ? 1 : -1)];
17762       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17763                      ? 1 : -1)];
17764       int i = 63;
17765 int
17766 main ()
17767 {
17768 /* Test availability of runtime routines for shift and division.  */
17769       long long int llmax = 9223372036854775807ll;
17770       unsigned long long int ullmax = 18446744073709551615ull;
17771       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17772               | (llmax / ll) | (llmax % ll)
17773               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17774               | (ullmax / ull) | (ullmax % ull));
17775   ;
17776   return 0;
17777 }
17778
17779 _ACEOF
17780 if ac_fn_c_try_link "$LINENO"; then :
17781
17782 else
17783   ac_cv_type_unsigned_long_long_int=no
17784 fi
17785 rm -f core conftest.err conftest.$ac_objext \
17786     conftest$ac_exeext conftest.$ac_ext
17787      fi
17788 fi
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17790 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17791   if test $ac_cv_type_unsigned_long_long_int = yes; then
17792
17793 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17794
17795   fi
17796
17797
17798
17799
17800   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
17801
17802     test $ac_cv_type_unsigned_long_long_int = yes \
17803       && ac_type='unsigned long long' \
17804       || ac_type='unsigned long'
17805
17806 cat >>confdefs.h <<_ACEOF
17807 #define uintmax_t $ac_type
17808 _ACEOF
17809
17810   else
17811
17812 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
17813
17814   fi
17815
17816
17817   for ac_header in inttypes.h
17818 do :
17819   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
17820 if test "x$ac_cv_header_inttypes_h" = xyes; then :
17821   cat >>confdefs.h <<_ACEOF
17822 #define HAVE_INTTYPES_H 1
17823 _ACEOF
17824
17825 fi
17826
17827 done
17828
17829   if test $ac_cv_header_inttypes_h = yes; then
17830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
17831 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
17832 if ${gt_cv_inttypes_pri_broken+:} false; then :
17833   $as_echo_n "(cached) " >&6
17834 else
17835
17836         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h.  */
17838
17839 #include <inttypes.h>
17840 #ifdef PRId32
17841 char *p = PRId32;
17842 #endif
17843
17844 int
17845 main ()
17846 {
17847
17848   ;
17849   return 0;
17850 }
17851 _ACEOF
17852 if ac_fn_c_try_compile "$LINENO"; then :
17853   gt_cv_inttypes_pri_broken=no
17854 else
17855   gt_cv_inttypes_pri_broken=yes
17856 fi
17857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17858
17859 fi
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
17861 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
17862   fi
17863   if test "$gt_cv_inttypes_pri_broken" = yes; then
17864
17865 cat >>confdefs.h <<_ACEOF
17866 #define PRI_MACROS_BROKEN 1
17867 _ACEOF
17868
17869     PRI_MACROS_BROKEN=1
17870   else
17871     PRI_MACROS_BROKEN=0
17872   fi
17873
17874
17875
17876       if test "X$prefix" = "XNONE"; then
17877     acl_final_prefix="$ac_default_prefix"
17878   else
17879     acl_final_prefix="$prefix"
17880   fi
17881   if test "X$exec_prefix" = "XNONE"; then
17882     acl_final_exec_prefix='${prefix}'
17883   else
17884     acl_final_exec_prefix="$exec_prefix"
17885   fi
17886   acl_save_prefix="$prefix"
17887   prefix="$acl_final_prefix"
17888   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17889   prefix="$acl_save_prefix"
17890
17891
17892
17893 # Check whether --with-gnu-ld was given.
17894 if test "${with_gnu_ld+set}" = set; then :
17895   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17896 else
17897   with_gnu_ld=no
17898 fi
17899
17900 # Prepare PATH_SEPARATOR.
17901 # The user is always right.
17902 if test "${PATH_SEPARATOR+set}" != set; then
17903   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17904   # contains only /bin. Note that ksh looks also at the FPATH variable,
17905   # so we have to set that as well for the test.
17906   PATH_SEPARATOR=:
17907   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17908     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17909            || PATH_SEPARATOR=';'
17910        }
17911 fi
17912
17913 ac_prog=ld
17914 if test "$GCC" = yes; then
17915   # Check if gcc -print-prog-name=ld gives a path.
17916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17917 $as_echo_n "checking for ld used by $CC... " >&6; }
17918   case $host in
17919   *-*-mingw*)
17920     # gcc leaves a trailing carriage return which upsets mingw
17921     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17922   *)
17923     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17924   esac
17925   case $ac_prog in
17926     # Accept absolute paths.
17927     [\\/]* | ?:[\\/]*)
17928       re_direlt='/[^/][^/]*/\.\./'
17929       # Canonicalize the pathname of ld
17930       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
17931       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
17932         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17933       done
17934       test -z "$LD" && LD="$ac_prog"
17935       ;;
17936   "")
17937     # If it fails, then pretend we aren't using GCC.
17938     ac_prog=ld
17939     ;;
17940   *)
17941     # If it is relative, then search for the first ld in PATH.
17942     with_gnu_ld=unknown
17943     ;;
17944   esac
17945 elif test "$with_gnu_ld" = yes; then
17946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17947 $as_echo_n "checking for GNU ld... " >&6; }
17948 else
17949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17950 $as_echo_n "checking for non-GNU ld... " >&6; }
17951 fi
17952 if ${acl_cv_path_LD+:} false; then :
17953   $as_echo_n "(cached) " >&6
17954 else
17955   if test -z "$LD"; then
17956   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17957   for ac_dir in $PATH; do
17958     IFS="$acl_save_ifs"
17959     test -z "$ac_dir" && ac_dir=.
17960     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17961       acl_cv_path_LD="$ac_dir/$ac_prog"
17962       # Check to see if the program is GNU ld.  I'd rather use --version,
17963       # but apparently some variants of GNU ld only accept -v.
17964       # Break only if it was the GNU/non-GNU ld that we prefer.
17965       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17966       *GNU* | *'with BFD'*)
17967         test "$with_gnu_ld" != no && break
17968         ;;
17969       *)
17970         test "$with_gnu_ld" != yes && break
17971         ;;
17972       esac
17973     fi
17974   done
17975   IFS="$acl_save_ifs"
17976 else
17977   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17978 fi
17979 fi
17980
17981 LD="$acl_cv_path_LD"
17982 if test -n "$LD"; then
17983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17984 $as_echo "$LD" >&6; }
17985 else
17986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17987 $as_echo "no" >&6; }
17988 fi
17989 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17991 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17992 if ${acl_cv_prog_gnu_ld+:} false; then :
17993   $as_echo_n "(cached) " >&6
17994 else
17995   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17996 case `$LD -v 2>&1 </dev/null` in
17997 *GNU* | *'with BFD'*)
17998   acl_cv_prog_gnu_ld=yes
17999   ;;
18000 *)
18001   acl_cv_prog_gnu_ld=no
18002   ;;
18003 esac
18004 fi
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18006 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18007 with_gnu_ld=$acl_cv_prog_gnu_ld
18008
18009
18010
18011
18012                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18013 $as_echo_n "checking for shared library run path origin... " >&6; }
18014 if ${acl_cv_rpath+:} false; then :
18015   $as_echo_n "(cached) " >&6
18016 else
18017
18018     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18019     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18020     . ./conftest.sh
18021     rm -f ./conftest.sh
18022     acl_cv_rpath=done
18023
18024 fi
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18026 $as_echo "$acl_cv_rpath" >&6; }
18027   wl="$acl_cv_wl"
18028   acl_libext="$acl_cv_libext"
18029   acl_shlibext="$acl_cv_shlibext"
18030   acl_libname_spec="$acl_cv_libname_spec"
18031   acl_library_names_spec="$acl_cv_library_names_spec"
18032   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18033   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18034   acl_hardcode_direct="$acl_cv_hardcode_direct"
18035   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18036     # Check whether --enable-rpath was given.
18037 if test "${enable_rpath+set}" = set; then :
18038   enableval=$enable_rpath; :
18039 else
18040   enable_rpath=yes
18041 fi
18042
18043
18044
18045
18046   acl_libdirstem=lib
18047   acl_libdirstem2=
18048   case "$host_os" in
18049     solaris*)
18050                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18051 $as_echo_n "checking for 64-bit host... " >&6; }
18052 if ${gl_cv_solaris_64bit+:} false; then :
18053   $as_echo_n "(cached) " >&6
18054 else
18055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056 /* end confdefs.h.  */
18057
18058 #ifdef _LP64
18059 sixtyfour bits
18060 #endif
18061
18062 _ACEOF
18063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18064   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18065   gl_cv_solaris_64bit=yes
18066 else
18067   gl_cv_solaris_64bit=no
18068 fi
18069 rm -f conftest*
18070
18071
18072 fi
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18074 $as_echo "$gl_cv_solaris_64bit" >&6; }
18075       if test $gl_cv_solaris_64bit = yes; then
18076         acl_libdirstem=lib/64
18077         case "$host_cpu" in
18078           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
18079           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18080         esac
18081       fi
18082       ;;
18083     *)
18084       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18085       if test -n "$searchpath"; then
18086         acl_save_IFS="${IFS=    }"; IFS=":"
18087         for searchdir in $searchpath; do
18088           if test -d "$searchdir"; then
18089             case "$searchdir" in
18090               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18091               */../ | */.. )
18092                 # Better ignore directories of this form. They are misleading.
18093                 ;;
18094               *) searchdir=`cd "$searchdir" && pwd`
18095                  case "$searchdir" in
18096                    */lib64 ) acl_libdirstem=lib64 ;;
18097                  esac ;;
18098             esac
18099           fi
18100         done
18101         IFS="$acl_save_IFS"
18102       fi
18103       ;;
18104   esac
18105   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18106
18107
18108
18109   gl_threads_api=none
18110   LIBTHREAD=
18111   LTLIBTHREAD=
18112   LIBMULTITHREAD=
18113   LTLIBMULTITHREAD=
18114   if test "$gl_use_threads" != no; then
18115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
18116 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
18117 if ${gl_cv_have_weak+:} false; then :
18118   $as_echo_n "(cached) " >&6
18119 else
18120   gl_cv_have_weak=no
18121               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h.  */
18123 extern void xyzzy ();
18124 #pragma weak xyzzy
18125 int
18126 main ()
18127 {
18128 xyzzy();
18129   ;
18130   return 0;
18131 }
18132 _ACEOF
18133 if ac_fn_c_try_link "$LINENO"; then :
18134   gl_cv_have_weak=maybe
18135 fi
18136 rm -f core conftest.err conftest.$ac_objext \
18137     conftest$ac_exeext conftest.$ac_ext
18138        if test $gl_cv_have_weak = maybe; then
18139                            if test "$cross_compiling" = yes; then :
18140                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h.  */
18142 #ifdef __ELF__
18143                Extensible Linking Format
18144                #endif
18145
18146 _ACEOF
18147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18148   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
18149   gl_cv_have_weak="guessing yes"
18150 else
18151   gl_cv_have_weak="guessing no"
18152 fi
18153 rm -f conftest*
18154
18155
18156 else
18157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h.  */
18159
18160 #include <stdio.h>
18161 #pragma weak fputs
18162 int main ()
18163 {
18164   return (fputs == NULL);
18165 }
18166 _ACEOF
18167 if ac_fn_c_try_run "$LINENO"; then :
18168   gl_cv_have_weak=yes
18169 else
18170   gl_cv_have_weak=no
18171 fi
18172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18173   conftest.$ac_objext conftest.beam conftest.$ac_ext
18174 fi
18175
18176        fi
18177
18178 fi
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
18180 $as_echo "$gl_cv_have_weak" >&6; }
18181     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
18182       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
18183       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
18184       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18185 if test "x$ac_cv_header_pthread_h" = xyes; then :
18186   gl_have_pthread_h=yes
18187 else
18188   gl_have_pthread_h=no
18189 fi
18190
18191
18192       if test "$gl_have_pthread_h" = yes; then
18193         # Other possible tests:
18194         #   -lpthreads (FSU threads, PCthreads)
18195         #   -lgthreads
18196         gl_have_pthread=
18197         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
18198         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
18199         # the second one only in libpthread, and lock.c needs it.
18200         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h.  */
18202 #include <pthread.h>
18203 int
18204 main ()
18205 {
18206 pthread_mutex_lock((pthread_mutex_t*)0);
18207                pthread_mutexattr_init((pthread_mutexattr_t*)0);
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 if ac_fn_c_try_link "$LINENO"; then :
18213   gl_have_pthread=yes
18214 fi
18215 rm -f core conftest.err conftest.$ac_objext \
18216     conftest$ac_exeext conftest.$ac_ext
18217         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
18218         # since it is defined as a macro on OSF/1.)
18219         if test -n "$gl_have_pthread"; then
18220           # The program links fine without libpthread. But it may actually
18221           # need to link with libpthread in order to create multiple threads.
18222           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18223 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18224 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18225   $as_echo_n "(cached) " >&6
18226 else
18227   ac_check_lib_save_LIBS=$LIBS
18228 LIBS="-lpthread  $LIBS"
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h.  */
18231
18232 /* Override any GCC internal prototype to avoid an error.
18233    Use char because int might match the return type of a GCC
18234    builtin and then its argument prototype would still apply.  */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char pthread_kill ();
18239 int
18240 main ()
18241 {
18242 return pthread_kill ();
18243   ;
18244   return 0;
18245 }
18246 _ACEOF
18247 if ac_fn_c_try_link "$LINENO"; then :
18248   ac_cv_lib_pthread_pthread_kill=yes
18249 else
18250   ac_cv_lib_pthread_pthread_kill=no
18251 fi
18252 rm -f core conftest.err conftest.$ac_objext \
18253     conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18255 fi
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18257 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18258 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18259   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18260              # On Solaris and HP-UX, most pthread functions exist also in libc.
18261              # Therefore pthread_in_use() needs to actually try to create a
18262              # thread: pthread_create from libc will fail, whereas
18263              # pthread_create will actually create a thread.
18264              case "$host_os" in
18265                solaris* | hpux*)
18266
18267 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
18268
18269              esac
18270
18271 fi
18272
18273         else
18274           # Some library is needed. Try libpthread and libc_r.
18275           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18276 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18277 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18278   $as_echo_n "(cached) " >&6
18279 else
18280   ac_check_lib_save_LIBS=$LIBS
18281 LIBS="-lpthread  $LIBS"
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h.  */
18284
18285 /* Override any GCC internal prototype to avoid an error.
18286    Use char because int might match the return type of a GCC
18287    builtin and then its argument prototype would still apply.  */
18288 #ifdef __cplusplus
18289 extern "C"
18290 #endif
18291 char pthread_kill ();
18292 int
18293 main ()
18294 {
18295 return pthread_kill ();
18296   ;
18297   return 0;
18298 }
18299 _ACEOF
18300 if ac_fn_c_try_link "$LINENO"; then :
18301   ac_cv_lib_pthread_pthread_kill=yes
18302 else
18303   ac_cv_lib_pthread_pthread_kill=no
18304 fi
18305 rm -f core conftest.err conftest.$ac_objext \
18306     conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18308 fi
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18310 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18311 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18312   gl_have_pthread=yes
18313              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
18314              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18315 fi
18316
18317           if test -z "$gl_have_pthread"; then
18318             # For FreeBSD 4.
18319             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
18320 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
18321 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
18322   $as_echo_n "(cached) " >&6
18323 else
18324   ac_check_lib_save_LIBS=$LIBS
18325 LIBS="-lc_r  $LIBS"
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h.  */
18328
18329 /* Override any GCC internal prototype to avoid an error.
18330    Use char because int might match the return type of a GCC
18331    builtin and then its argument prototype would still apply.  */
18332 #ifdef __cplusplus
18333 extern "C"
18334 #endif
18335 char pthread_kill ();
18336 int
18337 main ()
18338 {
18339 return pthread_kill ();
18340   ;
18341   return 0;
18342 }
18343 _ACEOF
18344 if ac_fn_c_try_link "$LINENO"; then :
18345   ac_cv_lib_c_r_pthread_kill=yes
18346 else
18347   ac_cv_lib_c_r_pthread_kill=no
18348 fi
18349 rm -f core conftest.err conftest.$ac_objext \
18350     conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18352 fi
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
18354 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
18355 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
18356   gl_have_pthread=yes
18357                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
18358                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
18359 fi
18360
18361           fi
18362         fi
18363         if test -n "$gl_have_pthread"; then
18364           gl_threads_api=posix
18365
18366 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
18367
18368           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
18369             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18370
18371 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
18372
18373               LIBTHREAD=
18374               LTLIBTHREAD=
18375             fi
18376           fi
18377         fi
18378       fi
18379     fi
18380     if test -z "$gl_have_pthread"; then
18381       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
18382         gl_have_solaristhread=
18383         gl_save_LIBS="$LIBS"
18384         LIBS="$LIBS -lthread"
18385         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h.  */
18387
18388 #include <thread.h>
18389 #include <synch.h>
18390
18391 int
18392 main ()
18393 {
18394 thr_self();
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 if ac_fn_c_try_link "$LINENO"; then :
18400   gl_have_solaristhread=yes
18401 fi
18402 rm -f core conftest.err conftest.$ac_objext \
18403     conftest$ac_exeext conftest.$ac_ext
18404         LIBS="$gl_save_LIBS"
18405         if test -n "$gl_have_solaristhread"; then
18406           gl_threads_api=solaris
18407           LIBTHREAD=-lthread
18408           LTLIBTHREAD=-lthread
18409           LIBMULTITHREAD="$LIBTHREAD"
18410           LTLIBMULTITHREAD="$LTLIBTHREAD"
18411
18412 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
18413
18414           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18415
18416 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
18417
18418             LIBTHREAD=
18419             LTLIBTHREAD=
18420           fi
18421         fi
18422       fi
18423     fi
18424     if test "$gl_use_threads" = pth; then
18425       gl_save_CPPFLAGS="$CPPFLAGS"
18426
18427
18428
18429
18430
18431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
18432 $as_echo_n "checking how to link with libpth... " >&6; }
18433 if ${ac_cv_libpth_libs+:} false; then :
18434   $as_echo_n "(cached) " >&6
18435 else
18436
18437
18438
18439
18440
18441
18442
18443
18444     use_additional=yes
18445
18446   acl_save_prefix="$prefix"
18447   prefix="$acl_final_prefix"
18448   acl_save_exec_prefix="$exec_prefix"
18449   exec_prefix="$acl_final_exec_prefix"
18450
18451     eval additional_includedir=\"$includedir\"
18452     eval additional_libdir=\"$libdir\"
18453
18454   exec_prefix="$acl_save_exec_prefix"
18455   prefix="$acl_save_prefix"
18456
18457
18458 # Check whether --with-libpth-prefix was given.
18459 if test "${with_libpth_prefix+set}" = set; then :
18460   withval=$with_libpth_prefix;
18461     if test "X$withval" = "Xno"; then
18462       use_additional=no
18463     else
18464       if test "X$withval" = "X"; then
18465
18466   acl_save_prefix="$prefix"
18467   prefix="$acl_final_prefix"
18468   acl_save_exec_prefix="$exec_prefix"
18469   exec_prefix="$acl_final_exec_prefix"
18470
18471           eval additional_includedir=\"$includedir\"
18472           eval additional_libdir=\"$libdir\"
18473
18474   exec_prefix="$acl_save_exec_prefix"
18475   prefix="$acl_save_prefix"
18476
18477       else
18478         additional_includedir="$withval/include"
18479         additional_libdir="$withval/$acl_libdirstem"
18480         if test "$acl_libdirstem2" != "$acl_libdirstem" \
18481            && ! test -d "$withval/$acl_libdirstem"; then
18482           additional_libdir="$withval/$acl_libdirstem2"
18483         fi
18484       fi
18485     fi
18486
18487 fi
18488
18489       LIBPTH=
18490   LTLIBPTH=
18491   INCPTH=
18492   LIBPTH_PREFIX=
18493       HAVE_LIBPTH=
18494   rpathdirs=
18495   ltrpathdirs=
18496   names_already_handled=
18497   names_next_round='pth '
18498   while test -n "$names_next_round"; do
18499     names_this_round="$names_next_round"
18500     names_next_round=
18501     for name in $names_this_round; do
18502       already_handled=
18503       for n in $names_already_handled; do
18504         if test "$n" = "$name"; then
18505           already_handled=yes
18506           break
18507         fi
18508       done
18509       if test -z "$already_handled"; then
18510         names_already_handled="$names_already_handled $name"
18511                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18512         eval value=\"\$HAVE_LIB$uppername\"
18513         if test -n "$value"; then
18514           if test "$value" = yes; then
18515             eval value=\"\$LIB$uppername\"
18516             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
18517             eval value=\"\$LTLIB$uppername\"
18518             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
18519           else
18520                                     :
18521           fi
18522         else
18523                               found_dir=
18524           found_la=
18525           found_so=
18526           found_a=
18527           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18528           if test -n "$acl_shlibext"; then
18529             shrext=".$acl_shlibext"             # typically: shrext=.so
18530           else
18531             shrext=
18532           fi
18533           if test $use_additional = yes; then
18534             dir="$additional_libdir"
18535                                     if test -n "$acl_shlibext"; then
18536               if test -f "$dir/$libname$shrext"; then
18537                 found_dir="$dir"
18538                 found_so="$dir/$libname$shrext"
18539               else
18540                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18541                   ver=`(cd "$dir" && \
18542                         for f in "$libname$shrext".*; do echo "$f"; done \
18543                         | sed -e "s,^$libname$shrext\\\\.,," \
18544                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18545                         | sed 1q ) 2>/dev/null`
18546                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18547                     found_dir="$dir"
18548                     found_so="$dir/$libname$shrext.$ver"
18549                   fi
18550                 else
18551                   eval library_names=\"$acl_library_names_spec\"
18552                   for f in $library_names; do
18553                     if test -f "$dir/$f"; then
18554                       found_dir="$dir"
18555                       found_so="$dir/$f"
18556                       break
18557                     fi
18558                   done
18559                 fi
18560               fi
18561             fi
18562                         if test "X$found_dir" = "X"; then
18563               if test -f "$dir/$libname.$acl_libext"; then
18564                 found_dir="$dir"
18565                 found_a="$dir/$libname.$acl_libext"
18566               fi
18567             fi
18568             if test "X$found_dir" != "X"; then
18569               if test -f "$dir/$libname.la"; then
18570                 found_la="$dir/$libname.la"
18571               fi
18572             fi
18573           fi
18574           if test "X$found_dir" = "X"; then
18575             for x in $LDFLAGS $LTLIBPTH; do
18576
18577   acl_save_prefix="$prefix"
18578   prefix="$acl_final_prefix"
18579   acl_save_exec_prefix="$exec_prefix"
18580   exec_prefix="$acl_final_exec_prefix"
18581   eval x=\"$x\"
18582   exec_prefix="$acl_save_exec_prefix"
18583   prefix="$acl_save_prefix"
18584
18585               case "$x" in
18586                 -L*)
18587                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18588                                     if test -n "$acl_shlibext"; then
18589                     if test -f "$dir/$libname$shrext"; then
18590                       found_dir="$dir"
18591                       found_so="$dir/$libname$shrext"
18592                     else
18593                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18594                         ver=`(cd "$dir" && \
18595                               for f in "$libname$shrext".*; do echo "$f"; done \
18596                               | sed -e "s,^$libname$shrext\\\\.,," \
18597                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18598                               | sed 1q ) 2>/dev/null`
18599                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18600                           found_dir="$dir"
18601                           found_so="$dir/$libname$shrext.$ver"
18602                         fi
18603                       else
18604                         eval library_names=\"$acl_library_names_spec\"
18605                         for f in $library_names; do
18606                           if test -f "$dir/$f"; then
18607                             found_dir="$dir"
18608                             found_so="$dir/$f"
18609                             break
18610                           fi
18611                         done
18612                       fi
18613                     fi
18614                   fi
18615                                     if test "X$found_dir" = "X"; then
18616                     if test -f "$dir/$libname.$acl_libext"; then
18617                       found_dir="$dir"
18618                       found_a="$dir/$libname.$acl_libext"
18619                     fi
18620                   fi
18621                   if test "X$found_dir" != "X"; then
18622                     if test -f "$dir/$libname.la"; then
18623                       found_la="$dir/$libname.la"
18624                     fi
18625                   fi
18626                   ;;
18627               esac
18628               if test "X$found_dir" != "X"; then
18629                 break
18630               fi
18631             done
18632           fi
18633           if test "X$found_dir" != "X"; then
18634                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
18635             if test "X$found_so" != "X"; then
18636                                                         if test "$enable_rpath" = no \
18637                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18638                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18639                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18640               else
18641                                                                                 haveit=
18642                 for x in $ltrpathdirs; do
18643                   if test "X$x" = "X$found_dir"; then
18644                     haveit=yes
18645                     break
18646                   fi
18647                 done
18648                 if test -z "$haveit"; then
18649                   ltrpathdirs="$ltrpathdirs $found_dir"
18650                 fi
18651                                 if test "$acl_hardcode_direct" = yes; then
18652                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18653                 else
18654                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18655                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18656                                                             haveit=
18657                     for x in $rpathdirs; do
18658                       if test "X$x" = "X$found_dir"; then
18659                         haveit=yes
18660                         break
18661                       fi
18662                     done
18663                     if test -z "$haveit"; then
18664                       rpathdirs="$rpathdirs $found_dir"
18665                     fi
18666                   else
18667                                                                                 haveit=
18668                     for x in $LDFLAGS $LIBPTH; do
18669
18670   acl_save_prefix="$prefix"
18671   prefix="$acl_final_prefix"
18672   acl_save_exec_prefix="$exec_prefix"
18673   exec_prefix="$acl_final_exec_prefix"
18674   eval x=\"$x\"
18675   exec_prefix="$acl_save_exec_prefix"
18676   prefix="$acl_save_prefix"
18677
18678                       if test "X$x" = "X-L$found_dir"; then
18679                         haveit=yes
18680                         break
18681                       fi
18682                     done
18683                     if test -z "$haveit"; then
18684                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
18685                     fi
18686                     if test "$acl_hardcode_minus_L" != no; then
18687                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18688                     else
18689                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
18690                     fi
18691                   fi
18692                 fi
18693               fi
18694             else
18695               if test "X$found_a" != "X"; then
18696                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
18697               else
18698                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
18699               fi
18700             fi
18701                         additional_includedir=
18702             case "$found_dir" in
18703               */$acl_libdirstem | */$acl_libdirstem/)
18704                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18705                 if test "$name" = 'pth'; then
18706                   LIBPTH_PREFIX="$basedir"
18707                 fi
18708                 additional_includedir="$basedir/include"
18709                 ;;
18710               */$acl_libdirstem2 | */$acl_libdirstem2/)
18711                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18712                 if test "$name" = 'pth'; then
18713                   LIBPTH_PREFIX="$basedir"
18714                 fi
18715                 additional_includedir="$basedir/include"
18716                 ;;
18717             esac
18718             if test "X$additional_includedir" != "X"; then
18719                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18720                 haveit=
18721                 if test "X$additional_includedir" = "X/usr/local/include"; then
18722                   if test -n "$GCC"; then
18723                     case $host_os in
18724                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18725                     esac
18726                   fi
18727                 fi
18728                 if test -z "$haveit"; then
18729                   for x in $CPPFLAGS $INCPTH; do
18730
18731   acl_save_prefix="$prefix"
18732   prefix="$acl_final_prefix"
18733   acl_save_exec_prefix="$exec_prefix"
18734   exec_prefix="$acl_final_exec_prefix"
18735   eval x=\"$x\"
18736   exec_prefix="$acl_save_exec_prefix"
18737   prefix="$acl_save_prefix"
18738
18739                     if test "X$x" = "X-I$additional_includedir"; then
18740                       haveit=yes
18741                       break
18742                     fi
18743                   done
18744                   if test -z "$haveit"; then
18745                     if test -d "$additional_includedir"; then
18746                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
18747                     fi
18748                   fi
18749                 fi
18750               fi
18751             fi
18752                         if test -n "$found_la"; then
18753                                                         save_libdir="$libdir"
18754               case "$found_la" in
18755                 */* | *\\*) . "$found_la" ;;
18756                 *) . "./$found_la" ;;
18757               esac
18758               libdir="$save_libdir"
18759                             for dep in $dependency_libs; do
18760                 case "$dep" in
18761                   -L*)
18762                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18763                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18764                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18765                       haveit=
18766                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18767                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18768                         if test -n "$GCC"; then
18769                           case $host_os in
18770                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18771                           esac
18772                         fi
18773                       fi
18774                       if test -z "$haveit"; then
18775                         haveit=
18776                         for x in $LDFLAGS $LIBPTH; do
18777
18778   acl_save_prefix="$prefix"
18779   prefix="$acl_final_prefix"
18780   acl_save_exec_prefix="$exec_prefix"
18781   exec_prefix="$acl_final_exec_prefix"
18782   eval x=\"$x\"
18783   exec_prefix="$acl_save_exec_prefix"
18784   prefix="$acl_save_prefix"
18785
18786                           if test "X$x" = "X-L$additional_libdir"; then
18787                             haveit=yes
18788                             break
18789                           fi
18790                         done
18791                         if test -z "$haveit"; then
18792                           if test -d "$additional_libdir"; then
18793                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
18794                           fi
18795                         fi
18796                         haveit=
18797                         for x in $LDFLAGS $LTLIBPTH; do
18798
18799   acl_save_prefix="$prefix"
18800   prefix="$acl_final_prefix"
18801   acl_save_exec_prefix="$exec_prefix"
18802   exec_prefix="$acl_final_exec_prefix"
18803   eval x=\"$x\"
18804   exec_prefix="$acl_save_exec_prefix"
18805   prefix="$acl_save_prefix"
18806
18807                           if test "X$x" = "X-L$additional_libdir"; then
18808                             haveit=yes
18809                             break
18810                           fi
18811                         done
18812                         if test -z "$haveit"; then
18813                           if test -d "$additional_libdir"; then
18814                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
18815                           fi
18816                         fi
18817                       fi
18818                     fi
18819                     ;;
18820                   -R*)
18821                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18822                     if test "$enable_rpath" != no; then
18823                                                                   haveit=
18824                       for x in $rpathdirs; do
18825                         if test "X$x" = "X$dir"; then
18826                           haveit=yes
18827                           break
18828                         fi
18829                       done
18830                       if test -z "$haveit"; then
18831                         rpathdirs="$rpathdirs $dir"
18832                       fi
18833                                                                   haveit=
18834                       for x in $ltrpathdirs; do
18835                         if test "X$x" = "X$dir"; then
18836                           haveit=yes
18837                           break
18838                         fi
18839                       done
18840                       if test -z "$haveit"; then
18841                         ltrpathdirs="$ltrpathdirs $dir"
18842                       fi
18843                     fi
18844                     ;;
18845                   -l*)
18846                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18847                     ;;
18848                   *.la)
18849                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18850                     ;;
18851                   *)
18852                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
18853                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
18854                     ;;
18855                 esac
18856               done
18857             fi
18858           else
18859                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
18860             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
18861           fi
18862         fi
18863       fi
18864     done
18865   done
18866   if test "X$rpathdirs" != "X"; then
18867     if test -n "$acl_hardcode_libdir_separator"; then
18868                         alldirs=
18869       for found_dir in $rpathdirs; do
18870         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18871       done
18872             acl_save_libdir="$libdir"
18873       libdir="$alldirs"
18874       eval flag=\"$acl_hardcode_libdir_flag_spec\"
18875       libdir="$acl_save_libdir"
18876       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
18877     else
18878             for found_dir in $rpathdirs; do
18879         acl_save_libdir="$libdir"
18880         libdir="$found_dir"
18881         eval flag=\"$acl_hardcode_libdir_flag_spec\"
18882         libdir="$acl_save_libdir"
18883         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
18884       done
18885     fi
18886   fi
18887   if test "X$ltrpathdirs" != "X"; then
18888             for found_dir in $ltrpathdirs; do
18889       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
18890     done
18891   fi
18892
18893
18894
18895
18896
18897
18898     ac_cv_libpth_libs="$LIBPTH"
18899     ac_cv_libpth_ltlibs="$LTLIBPTH"
18900     ac_cv_libpth_cppflags="$INCPTH"
18901     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
18902
18903 fi
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
18905 $as_echo "$ac_cv_libpth_libs" >&6; }
18906   LIBPTH="$ac_cv_libpth_libs"
18907   LTLIBPTH="$ac_cv_libpth_ltlibs"
18908   INCPTH="$ac_cv_libpth_cppflags"
18909   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
18910
18911   for element in $INCPTH; do
18912     haveit=
18913     for x in $CPPFLAGS; do
18914
18915   acl_save_prefix="$prefix"
18916   prefix="$acl_final_prefix"
18917   acl_save_exec_prefix="$exec_prefix"
18918   exec_prefix="$acl_final_exec_prefix"
18919   eval x=\"$x\"
18920   exec_prefix="$acl_save_exec_prefix"
18921   prefix="$acl_save_prefix"
18922
18923       if test "X$x" = "X$element"; then
18924         haveit=yes
18925         break
18926       fi
18927     done
18928     if test -z "$haveit"; then
18929       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18930     fi
18931   done
18932
18933
18934
18935
18936       HAVE_LIBPTH=yes
18937
18938
18939
18940       gl_have_pth=
18941       gl_save_LIBS="$LIBS"
18942       LIBS="$LIBS $LIBPTH"
18943       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h.  */
18945 #include <pth.h>
18946 int
18947 main ()
18948 {
18949 pth_self();
18950   ;
18951   return 0;
18952 }
18953 _ACEOF
18954 if ac_fn_c_try_link "$LINENO"; then :
18955   gl_have_pth=yes
18956 fi
18957 rm -f core conftest.err conftest.$ac_objext \
18958     conftest$ac_exeext conftest.$ac_ext
18959       LIBS="$gl_save_LIBS"
18960       if test -n "$gl_have_pth"; then
18961         gl_threads_api=pth
18962         LIBTHREAD="$LIBPTH"
18963         LTLIBTHREAD="$LTLIBPTH"
18964         LIBMULTITHREAD="$LIBTHREAD"
18965         LTLIBMULTITHREAD="$LTLIBTHREAD"
18966
18967 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
18968
18969         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
18970           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18971
18972 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
18973
18974             LIBTHREAD=
18975             LTLIBTHREAD=
18976           fi
18977         fi
18978       else
18979         CPPFLAGS="$gl_save_CPPFLAGS"
18980       fi
18981     fi
18982     if test -z "$gl_have_pthread"; then
18983       case "$gl_use_threads" in
18984         yes | windows | win32) # The 'win32' is for backward compatibility.
18985           if { case "$host_os" in
18986                  mingw*) true;;
18987                  *) false;;
18988                esac
18989              }; then
18990             gl_threads_api=windows
18991
18992 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
18993
18994           fi
18995           ;;
18996       esac
18997     fi
18998   fi
18999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
19000 $as_echo_n "checking for multithread API to use... " >&6; }
19001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
19002 $as_echo "$gl_threads_api" >&6; }
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014   if test "$gl_threads_api" = posix; then
19015     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
19016     # pthread_rwlock_* functions.
19017     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
19018 "
19019 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
19020
19021 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
19022
19023 fi
19024
19025     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
19026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h.  */
19028
19029       #include <pthread.h>
19030 int
19031 main ()
19032 {
19033
19034 #if __FreeBSD__ == 4
19035 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
19036 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
19037        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
19038 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
19039 #else
19040 int x = (int)PTHREAD_MUTEX_RECURSIVE;
19041 return !x;
19042 #endif
19043
19044   ;
19045   return 0;
19046 }
19047 _ACEOF
19048 if ac_fn_c_try_compile "$LINENO"; then :
19049
19050 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
19051
19052 fi
19053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19054   fi
19055   :
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068     use_additional=yes
19069
19070   acl_save_prefix="$prefix"
19071   prefix="$acl_final_prefix"
19072   acl_save_exec_prefix="$exec_prefix"
19073   exec_prefix="$acl_final_exec_prefix"
19074
19075     eval additional_includedir=\"$includedir\"
19076     eval additional_libdir=\"$libdir\"
19077
19078   exec_prefix="$acl_save_exec_prefix"
19079   prefix="$acl_save_prefix"
19080
19081
19082 # Check whether --with-libiconv-prefix was given.
19083 if test "${with_libiconv_prefix+set}" = set; then :
19084   withval=$with_libiconv_prefix;
19085     if test "X$withval" = "Xno"; then
19086       use_additional=no
19087     else
19088       if test "X$withval" = "X"; then
19089
19090   acl_save_prefix="$prefix"
19091   prefix="$acl_final_prefix"
19092   acl_save_exec_prefix="$exec_prefix"
19093   exec_prefix="$acl_final_exec_prefix"
19094
19095           eval additional_includedir=\"$includedir\"
19096           eval additional_libdir=\"$libdir\"
19097
19098   exec_prefix="$acl_save_exec_prefix"
19099   prefix="$acl_save_prefix"
19100
19101       else
19102         additional_includedir="$withval/include"
19103         additional_libdir="$withval/$acl_libdirstem"
19104         if test "$acl_libdirstem2" != "$acl_libdirstem" \
19105            && ! test -d "$withval/$acl_libdirstem"; then
19106           additional_libdir="$withval/$acl_libdirstem2"
19107         fi
19108       fi
19109     fi
19110
19111 fi
19112
19113       LIBICONV=
19114   LTLIBICONV=
19115   INCICONV=
19116   LIBICONV_PREFIX=
19117       HAVE_LIBICONV=
19118   rpathdirs=
19119   ltrpathdirs=
19120   names_already_handled=
19121   names_next_round='iconv '
19122   while test -n "$names_next_round"; do
19123     names_this_round="$names_next_round"
19124     names_next_round=
19125     for name in $names_this_round; do
19126       already_handled=
19127       for n in $names_already_handled; do
19128         if test "$n" = "$name"; then
19129           already_handled=yes
19130           break
19131         fi
19132       done
19133       if test -z "$already_handled"; then
19134         names_already_handled="$names_already_handled $name"
19135                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19136         eval value=\"\$HAVE_LIB$uppername\"
19137         if test -n "$value"; then
19138           if test "$value" = yes; then
19139             eval value=\"\$LIB$uppername\"
19140             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19141             eval value=\"\$LTLIB$uppername\"
19142             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19143           else
19144                                     :
19145           fi
19146         else
19147                               found_dir=
19148           found_la=
19149           found_so=
19150           found_a=
19151           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19152           if test -n "$acl_shlibext"; then
19153             shrext=".$acl_shlibext"             # typically: shrext=.so
19154           else
19155             shrext=
19156           fi
19157           if test $use_additional = yes; then
19158             dir="$additional_libdir"
19159                                     if test -n "$acl_shlibext"; then
19160               if test -f "$dir/$libname$shrext"; then
19161                 found_dir="$dir"
19162                 found_so="$dir/$libname$shrext"
19163               else
19164                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19165                   ver=`(cd "$dir" && \
19166                         for f in "$libname$shrext".*; do echo "$f"; done \
19167                         | sed -e "s,^$libname$shrext\\\\.,," \
19168                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19169                         | sed 1q ) 2>/dev/null`
19170                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19171                     found_dir="$dir"
19172                     found_so="$dir/$libname$shrext.$ver"
19173                   fi
19174                 else
19175                   eval library_names=\"$acl_library_names_spec\"
19176                   for f in $library_names; do
19177                     if test -f "$dir/$f"; then
19178                       found_dir="$dir"
19179                       found_so="$dir/$f"
19180                       break
19181                     fi
19182                   done
19183                 fi
19184               fi
19185             fi
19186                         if test "X$found_dir" = "X"; then
19187               if test -f "$dir/$libname.$acl_libext"; then
19188                 found_dir="$dir"
19189                 found_a="$dir/$libname.$acl_libext"
19190               fi
19191             fi
19192             if test "X$found_dir" != "X"; then
19193               if test -f "$dir/$libname.la"; then
19194                 found_la="$dir/$libname.la"
19195               fi
19196             fi
19197           fi
19198           if test "X$found_dir" = "X"; then
19199             for x in $LDFLAGS $LTLIBICONV; do
19200
19201   acl_save_prefix="$prefix"
19202   prefix="$acl_final_prefix"
19203   acl_save_exec_prefix="$exec_prefix"
19204   exec_prefix="$acl_final_exec_prefix"
19205   eval x=\"$x\"
19206   exec_prefix="$acl_save_exec_prefix"
19207   prefix="$acl_save_prefix"
19208
19209               case "$x" in
19210                 -L*)
19211                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19212                                     if test -n "$acl_shlibext"; then
19213                     if test -f "$dir/$libname$shrext"; then
19214                       found_dir="$dir"
19215                       found_so="$dir/$libname$shrext"
19216                     else
19217                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19218                         ver=`(cd "$dir" && \
19219                               for f in "$libname$shrext".*; do echo "$f"; done \
19220                               | sed -e "s,^$libname$shrext\\\\.,," \
19221                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19222                               | sed 1q ) 2>/dev/null`
19223                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19224                           found_dir="$dir"
19225                           found_so="$dir/$libname$shrext.$ver"
19226                         fi
19227                       else
19228                         eval library_names=\"$acl_library_names_spec\"
19229                         for f in $library_names; do
19230                           if test -f "$dir/$f"; then
19231                             found_dir="$dir"
19232                             found_so="$dir/$f"
19233                             break
19234                           fi
19235                         done
19236                       fi
19237                     fi
19238                   fi
19239                                     if test "X$found_dir" = "X"; then
19240                     if test -f "$dir/$libname.$acl_libext"; then
19241                       found_dir="$dir"
19242                       found_a="$dir/$libname.$acl_libext"
19243                     fi
19244                   fi
19245                   if test "X$found_dir" != "X"; then
19246                     if test -f "$dir/$libname.la"; then
19247                       found_la="$dir/$libname.la"
19248                     fi
19249                   fi
19250                   ;;
19251               esac
19252               if test "X$found_dir" != "X"; then
19253                 break
19254               fi
19255             done
19256           fi
19257           if test "X$found_dir" != "X"; then
19258                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19259             if test "X$found_so" != "X"; then
19260                                                         if test "$enable_rpath" = no \
19261                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19262                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19263                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19264               else
19265                                                                                 haveit=
19266                 for x in $ltrpathdirs; do
19267                   if test "X$x" = "X$found_dir"; then
19268                     haveit=yes
19269                     break
19270                   fi
19271                 done
19272                 if test -z "$haveit"; then
19273                   ltrpathdirs="$ltrpathdirs $found_dir"
19274                 fi
19275                                 if test "$acl_hardcode_direct" = yes; then
19276                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19277                 else
19278                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19279                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19280                                                             haveit=
19281                     for x in $rpathdirs; do
19282                       if test "X$x" = "X$found_dir"; then
19283                         haveit=yes
19284                         break
19285                       fi
19286                     done
19287                     if test -z "$haveit"; then
19288                       rpathdirs="$rpathdirs $found_dir"
19289                     fi
19290                   else
19291                                                                                 haveit=
19292                     for x in $LDFLAGS $LIBICONV; do
19293
19294   acl_save_prefix="$prefix"
19295   prefix="$acl_final_prefix"
19296   acl_save_exec_prefix="$exec_prefix"
19297   exec_prefix="$acl_final_exec_prefix"
19298   eval x=\"$x\"
19299   exec_prefix="$acl_save_exec_prefix"
19300   prefix="$acl_save_prefix"
19301
19302                       if test "X$x" = "X-L$found_dir"; then
19303                         haveit=yes
19304                         break
19305                       fi
19306                     done
19307                     if test -z "$haveit"; then
19308                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19309                     fi
19310                     if test "$acl_hardcode_minus_L" != no; then
19311                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19312                     else
19313                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19314                     fi
19315                   fi
19316                 fi
19317               fi
19318             else
19319               if test "X$found_a" != "X"; then
19320                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19321               else
19322                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19323               fi
19324             fi
19325                         additional_includedir=
19326             case "$found_dir" in
19327               */$acl_libdirstem | */$acl_libdirstem/)
19328                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19329                 if test "$name" = 'iconv'; then
19330                   LIBICONV_PREFIX="$basedir"
19331                 fi
19332                 additional_includedir="$basedir/include"
19333                 ;;
19334               */$acl_libdirstem2 | */$acl_libdirstem2/)
19335                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19336                 if test "$name" = 'iconv'; then
19337                   LIBICONV_PREFIX="$basedir"
19338                 fi
19339                 additional_includedir="$basedir/include"
19340                 ;;
19341             esac
19342             if test "X$additional_includedir" != "X"; then
19343                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
19344                 haveit=
19345                 if test "X$additional_includedir" = "X/usr/local/include"; then
19346                   if test -n "$GCC"; then
19347                     case $host_os in
19348                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19349                     esac
19350                   fi
19351                 fi
19352                 if test -z "$haveit"; then
19353                   for x in $CPPFLAGS $INCICONV; do
19354
19355   acl_save_prefix="$prefix"
19356   prefix="$acl_final_prefix"
19357   acl_save_exec_prefix="$exec_prefix"
19358   exec_prefix="$acl_final_exec_prefix"
19359   eval x=\"$x\"
19360   exec_prefix="$acl_save_exec_prefix"
19361   prefix="$acl_save_prefix"
19362
19363                     if test "X$x" = "X-I$additional_includedir"; then
19364                       haveit=yes
19365                       break
19366                     fi
19367                   done
19368                   if test -z "$haveit"; then
19369                     if test -d "$additional_includedir"; then
19370                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19371                     fi
19372                   fi
19373                 fi
19374               fi
19375             fi
19376                         if test -n "$found_la"; then
19377                                                         save_libdir="$libdir"
19378               case "$found_la" in
19379                 */* | *\\*) . "$found_la" ;;
19380                 *) . "./$found_la" ;;
19381               esac
19382               libdir="$save_libdir"
19383                             for dep in $dependency_libs; do
19384                 case "$dep" in
19385                   -L*)
19386                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19387                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19388                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19389                       haveit=
19390                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19391                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19392                         if test -n "$GCC"; then
19393                           case $host_os in
19394                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19395                           esac
19396                         fi
19397                       fi
19398                       if test -z "$haveit"; then
19399                         haveit=
19400                         for x in $LDFLAGS $LIBICONV; do
19401
19402   acl_save_prefix="$prefix"
19403   prefix="$acl_final_prefix"
19404   acl_save_exec_prefix="$exec_prefix"
19405   exec_prefix="$acl_final_exec_prefix"
19406   eval x=\"$x\"
19407   exec_prefix="$acl_save_exec_prefix"
19408   prefix="$acl_save_prefix"
19409
19410                           if test "X$x" = "X-L$additional_libdir"; then
19411                             haveit=yes
19412                             break
19413                           fi
19414                         done
19415                         if test -z "$haveit"; then
19416                           if test -d "$additional_libdir"; then
19417                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19418                           fi
19419                         fi
19420                         haveit=
19421                         for x in $LDFLAGS $LTLIBICONV; do
19422
19423   acl_save_prefix="$prefix"
19424   prefix="$acl_final_prefix"
19425   acl_save_exec_prefix="$exec_prefix"
19426   exec_prefix="$acl_final_exec_prefix"
19427   eval x=\"$x\"
19428   exec_prefix="$acl_save_exec_prefix"
19429   prefix="$acl_save_prefix"
19430
19431                           if test "X$x" = "X-L$additional_libdir"; then
19432                             haveit=yes
19433                             break
19434                           fi
19435                         done
19436                         if test -z "$haveit"; then
19437                           if test -d "$additional_libdir"; then
19438                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19439                           fi
19440                         fi
19441                       fi
19442                     fi
19443                     ;;
19444                   -R*)
19445                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
19446                     if test "$enable_rpath" != no; then
19447                                                                   haveit=
19448                       for x in $rpathdirs; do
19449                         if test "X$x" = "X$dir"; then
19450                           haveit=yes
19451                           break
19452                         fi
19453                       done
19454                       if test -z "$haveit"; then
19455                         rpathdirs="$rpathdirs $dir"
19456                       fi
19457                                                                   haveit=
19458                       for x in $ltrpathdirs; do
19459                         if test "X$x" = "X$dir"; then
19460                           haveit=yes
19461                           break
19462                         fi
19463                       done
19464                       if test -z "$haveit"; then
19465                         ltrpathdirs="$ltrpathdirs $dir"
19466                       fi
19467                     fi
19468                     ;;
19469                   -l*)
19470                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19471                     ;;
19472                   *.la)
19473                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19474                     ;;
19475                   *)
19476                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19477                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19478                     ;;
19479                 esac
19480               done
19481             fi
19482           else
19483                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19484             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19485           fi
19486         fi
19487       fi
19488     done
19489   done
19490   if test "X$rpathdirs" != "X"; then
19491     if test -n "$acl_hardcode_libdir_separator"; then
19492                         alldirs=
19493       for found_dir in $rpathdirs; do
19494         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19495       done
19496             acl_save_libdir="$libdir"
19497       libdir="$alldirs"
19498       eval flag=\"$acl_hardcode_libdir_flag_spec\"
19499       libdir="$acl_save_libdir"
19500       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19501     else
19502             for found_dir in $rpathdirs; do
19503         acl_save_libdir="$libdir"
19504         libdir="$found_dir"
19505         eval flag=\"$acl_hardcode_libdir_flag_spec\"
19506         libdir="$acl_save_libdir"
19507         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19508       done
19509     fi
19510   fi
19511   if test "X$ltrpathdirs" != "X"; then
19512             for found_dir in $ltrpathdirs; do
19513       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19514     done
19515   fi
19516
19517
19518
19519
19520
19521
19522
19523
19524   GNULIB_ICONV=0;
19525     ICONV_CONST=;
19526   REPLACE_ICONV=0;
19527   REPLACE_ICONV_OPEN=0;
19528   REPLACE_ICONV_UTF=0;
19529   ICONV_H='';
19530    if test -n "$ICONV_H"; then
19531   GL_GENERATE_ICONV_H_TRUE=
19532   GL_GENERATE_ICONV_H_FALSE='#'
19533 else
19534   GL_GENERATE_ICONV_H_TRUE='#'
19535   GL_GENERATE_ICONV_H_FALSE=
19536 fi
19537
19538
19539
19540
19541
19542
19543
19544           am_save_CPPFLAGS="$CPPFLAGS"
19545
19546   for element in $INCICONV; do
19547     haveit=
19548     for x in $CPPFLAGS; do
19549
19550   acl_save_prefix="$prefix"
19551   prefix="$acl_final_prefix"
19552   acl_save_exec_prefix="$exec_prefix"
19553   exec_prefix="$acl_final_exec_prefix"
19554   eval x=\"$x\"
19555   exec_prefix="$acl_save_exec_prefix"
19556   prefix="$acl_save_prefix"
19557
19558       if test "X$x" = "X$element"; then
19559         haveit=yes
19560         break
19561       fi
19562     done
19563     if test -z "$haveit"; then
19564       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19565     fi
19566   done
19567
19568
19569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19570 $as_echo_n "checking for iconv... " >&6; }
19571 if ${am_cv_func_iconv+:} false; then :
19572   $as_echo_n "(cached) " >&6
19573 else
19574
19575     am_cv_func_iconv="no, consider installing GNU libiconv"
19576     am_cv_lib_iconv=no
19577     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h.  */
19579
19580 #include <stdlib.h>
19581 #include <iconv.h>
19582
19583 int
19584 main ()
19585 {
19586 iconv_t cd = iconv_open("","");
19587            iconv(cd,NULL,NULL,NULL,NULL);
19588            iconv_close(cd);
19589   ;
19590   return 0;
19591 }
19592 _ACEOF
19593 if ac_fn_c_try_link "$LINENO"; then :
19594   am_cv_func_iconv=yes
19595 fi
19596 rm -f core conftest.err conftest.$ac_objext \
19597     conftest$ac_exeext conftest.$ac_ext
19598     if test "$am_cv_func_iconv" != yes; then
19599       am_save_LIBS="$LIBS"
19600       LIBS="$LIBS $LIBICONV"
19601       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h.  */
19603
19604 #include <stdlib.h>
19605 #include <iconv.h>
19606
19607 int
19608 main ()
19609 {
19610 iconv_t cd = iconv_open("","");
19611              iconv(cd,NULL,NULL,NULL,NULL);
19612              iconv_close(cd);
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 if ac_fn_c_try_link "$LINENO"; then :
19618   am_cv_lib_iconv=yes
19619         am_cv_func_iconv=yes
19620 fi
19621 rm -f core conftest.err conftest.$ac_objext \
19622     conftest$ac_exeext conftest.$ac_ext
19623       LIBS="$am_save_LIBS"
19624     fi
19625
19626 fi
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19628 $as_echo "$am_cv_func_iconv" >&6; }
19629   if test "$am_cv_func_iconv" = yes; then
19630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19631 $as_echo_n "checking for working iconv... " >&6; }
19632 if ${am_cv_func_iconv_works+:} false; then :
19633   $as_echo_n "(cached) " >&6
19634 else
19635
19636                   am_save_LIBS="$LIBS"
19637       if test $am_cv_lib_iconv = yes; then
19638         LIBS="$LIBS $LIBICONV"
19639       fi
19640       if test "$cross_compiling" = yes; then :
19641
19642          case "$host_os" in
19643            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19644            *)            am_cv_func_iconv_works="guessing yes" ;;
19645          esac
19646
19647 else
19648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h.  */
19650
19651 #include <iconv.h>
19652 #include <string.h>
19653 int main ()
19654 {
19655   int result = 0;
19656   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19657      returns.  */
19658   {
19659     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19660     if (cd_utf8_to_88591 != (iconv_t)(-1))
19661       {
19662         static const char input[] = "\342\202\254"; /* EURO SIGN */
19663         char buf[10];
19664         const char *inptr = input;
19665         size_t inbytesleft = strlen (input);
19666         char *outptr = buf;
19667         size_t outbytesleft = sizeof (buf);
19668         size_t res = iconv (cd_utf8_to_88591,
19669                             (char **) &inptr, &inbytesleft,
19670                             &outptr, &outbytesleft);
19671         if (res == 0)
19672           result |= 1;
19673         iconv_close (cd_utf8_to_88591);
19674       }
19675   }
19676   /* Test against Solaris 10 bug: Failures are not distinguishable from
19677      successful returns.  */
19678   {
19679     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19680     if (cd_ascii_to_88591 != (iconv_t)(-1))
19681       {
19682         static const char input[] = "\263";
19683         char buf[10];
19684         const char *inptr = input;
19685         size_t inbytesleft = strlen (input);
19686         char *outptr = buf;
19687         size_t outbytesleft = sizeof (buf);
19688         size_t res = iconv (cd_ascii_to_88591,
19689                             (char **) &inptr, &inbytesleft,
19690                             &outptr, &outbytesleft);
19691         if (res == 0)
19692           result |= 2;
19693         iconv_close (cd_ascii_to_88591);
19694       }
19695   }
19696   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
19697   {
19698     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19699     if (cd_88591_to_utf8 != (iconv_t)(-1))
19700       {
19701         static const char input[] = "\304";
19702         static char buf[2] = { (char)0xDE, (char)0xAD };
19703         const char *inptr = input;
19704         size_t inbytesleft = 1;
19705         char *outptr = buf;
19706         size_t outbytesleft = 1;
19707         size_t res = iconv (cd_88591_to_utf8,
19708                             (char **) &inptr, &inbytesleft,
19709                             &outptr, &outbytesleft);
19710         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19711           result |= 4;
19712         iconv_close (cd_88591_to_utf8);
19713       }
19714   }
19715 #if 0 /* This bug could be worked around by the caller.  */
19716   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
19717   {
19718     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19719     if (cd_88591_to_utf8 != (iconv_t)(-1))
19720       {
19721         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19722         char buf[50];
19723         const char *inptr = input;
19724         size_t inbytesleft = strlen (input);
19725         char *outptr = buf;
19726         size_t outbytesleft = sizeof (buf);
19727         size_t res = iconv (cd_88591_to_utf8,
19728                             (char **) &inptr, &inbytesleft,
19729                             &outptr, &outbytesleft);
19730         if ((int)res > 0)
19731           result |= 8;
19732         iconv_close (cd_88591_to_utf8);
19733       }
19734   }
19735 #endif
19736   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19737      provided.  */
19738   if (/* Try standardized names.  */
19739       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19740       /* Try IRIX, OSF/1 names.  */
19741       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19742       /* Try AIX names.  */
19743       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19744       /* Try HP-UX names.  */
19745       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19746     result |= 16;
19747   return result;
19748 }
19749 _ACEOF
19750 if ac_fn_c_try_run "$LINENO"; then :
19751   am_cv_func_iconv_works=yes
19752 else
19753   am_cv_func_iconv_works=no
19754 fi
19755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19756   conftest.$ac_objext conftest.beam conftest.$ac_ext
19757 fi
19758
19759       LIBS="$am_save_LIBS"
19760
19761 fi
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19763 $as_echo "$am_cv_func_iconv_works" >&6; }
19764     case "$am_cv_func_iconv_works" in
19765       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19766       *)   am_func_iconv=yes ;;
19767     esac
19768   else
19769     am_func_iconv=no am_cv_lib_iconv=no
19770   fi
19771   if test "$am_func_iconv" = yes; then
19772
19773 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19774
19775   fi
19776   if test "$am_cv_lib_iconv" = yes; then
19777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19778 $as_echo_n "checking how to link with libiconv... " >&6; }
19779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19780 $as_echo "$LIBICONV" >&6; }
19781   else
19782             CPPFLAGS="$am_save_CPPFLAGS"
19783     LIBICONV=
19784     LTLIBICONV=
19785   fi
19786
19787
19788
19789   if test "$am_cv_func_iconv" = yes; then
19790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19791 $as_echo_n "checking for iconv declaration... " >&6; }
19792     if ${am_cv_proto_iconv+:} false; then :
19793   $as_echo_n "(cached) " >&6
19794 else
19795
19796       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h.  */
19798
19799 #include <stdlib.h>
19800 #include <iconv.h>
19801 extern
19802 #ifdef __cplusplus
19803 "C"
19804 #endif
19805 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
19806 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19807 #else
19808 size_t iconv();
19809 #endif
19810
19811 int
19812 main ()
19813 {
19814
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 if ac_fn_c_try_compile "$LINENO"; then :
19820   am_cv_proto_iconv_arg1=""
19821 else
19822   am_cv_proto_iconv_arg1="const"
19823 fi
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
19826 fi
19827
19828     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19829     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
19830          $am_cv_proto_iconv" >&5
19831 $as_echo "
19832          $am_cv_proto_iconv" >&6; }
19833
19834 cat >>confdefs.h <<_ACEOF
19835 #define ICONV_CONST $am_cv_proto_iconv_arg1
19836 _ACEOF
19837
19838
19839        if test -n "$am_cv_proto_iconv_arg1"; then
19840          ICONV_CONST="const"
19841        fi
19842
19843   fi
19844
19845
19846
19847
19848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19849 /* end confdefs.h.  */
19850 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
19851 int
19852 main ()
19853 {
19854
19855   ;
19856   return 0;
19857 }
19858 _ACEOF
19859 if ac_fn_c_try_link "$LINENO"; then :
19860
19861 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
19862
19863 fi
19864 rm -f core conftest.err conftest.$ac_objext \
19865     conftest$ac_exeext conftest.$ac_ext
19866
19867   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
19868 do :
19869   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19872   cat >>confdefs.h <<_ACEOF
19873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19874 _ACEOF
19875
19876 fi
19877
19878 done
19879
19880   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
19881     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
19882     argz_stringify argz_next __fsetlocking
19883 do :
19884   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19885 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19886 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19887   cat >>confdefs.h <<_ACEOF
19888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19889 _ACEOF
19890
19891 fi
19892 done
19893
19894
19895           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
19896 "
19897 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
19898   ac_have_decl=1
19899 else
19900   ac_have_decl=0
19901 fi
19902
19903 cat >>confdefs.h <<_ACEOF
19904 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
19905 _ACEOF
19906 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
19907 "
19908 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
19909   ac_have_decl=1
19910 else
19911   ac_have_decl=0
19912 fi
19913
19914 cat >>confdefs.h <<_ACEOF
19915 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
19916 _ACEOF
19917
19918
19919
19920
19921                       for ac_prog in bison
19922 do
19923   # Extract the first word of "$ac_prog", so it can be a program name with args.
19924 set dummy $ac_prog; ac_word=$2
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19926 $as_echo_n "checking for $ac_word... " >&6; }
19927 if ${ac_cv_prog_INTLBISON+:} false; then :
19928   $as_echo_n "(cached) " >&6
19929 else
19930   if test -n "$INTLBISON"; then
19931   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19932 else
19933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19934 for as_dir in $PATH
19935 do
19936   IFS=$as_save_IFS
19937   test -z "$as_dir" && as_dir=.
19938     for ac_exec_ext in '' $ac_executable_extensions; do
19939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19940     ac_cv_prog_INTLBISON="$ac_prog"
19941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19942     break 2
19943   fi
19944 done
19945   done
19946 IFS=$as_save_IFS
19947
19948 fi
19949 fi
19950 INTLBISON=$ac_cv_prog_INTLBISON
19951 if test -n "$INTLBISON"; then
19952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19953 $as_echo "$INTLBISON" >&6; }
19954 else
19955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19956 $as_echo "no" >&6; }
19957 fi
19958
19959
19960   test -n "$INTLBISON" && break
19961 done
19962
19963   if test -z "$INTLBISON"; then
19964     ac_verc_fail=yes
19965   else
19966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19967 $as_echo_n "checking version of bison... " >&6; }
19968     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19969     case $ac_prog_version in
19970       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19971       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19972          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19973       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19974     esac
19975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19976 $as_echo "$ac_prog_version" >&6; }
19977   fi
19978   if test $ac_verc_fail = yes; then
19979     INTLBISON=:
19980   fi
19981
19982
19983
19984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19985 $as_echo_n "checking for long long int... " >&6; }
19986 if ${ac_cv_type_long_long_int+:} false; then :
19987   $as_echo_n "(cached) " >&6
19988 else
19989   ac_cv_type_long_long_int=yes
19990       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19991         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19992         if test $ac_cv_type_long_long_int = yes; then
19993                                         if test "$cross_compiling" = yes; then :
19994   :
19995 else
19996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h.  */
19998 #include <limits.h>
19999                  #ifndef LLONG_MAX
20000                  # define HALF \
20001                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20002                  # define LLONG_MAX (HALF - 1 + HALF)
20003                  #endif
20004 int
20005 main ()
20006 {
20007 long long int n = 1;
20008                  int i;
20009                  for (i = 0; ; i++)
20010                    {
20011                      long long int m = n << i;
20012                      if (m >> i != n)
20013                        return 1;
20014                      if (LLONG_MAX / 2 < m)
20015                        break;
20016                    }
20017                  return 0;
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 if ac_fn_c_try_run "$LINENO"; then :
20023
20024 else
20025   ac_cv_type_long_long_int=no
20026 fi
20027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20028   conftest.$ac_objext conftest.beam conftest.$ac_ext
20029 fi
20030
20031         fi
20032       fi
20033 fi
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20035 $as_echo "$ac_cv_type_long_long_int" >&6; }
20036   if test $ac_cv_type_long_long_int = yes; then
20037
20038 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20039
20040   fi
20041
20042
20043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20044 $as_echo_n "checking for wchar_t... " >&6; }
20045 if ${gt_cv_c_wchar_t+:} false; then :
20046   $as_echo_n "(cached) " >&6
20047 else
20048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049 /* end confdefs.h.  */
20050 #include <stddef.h>
20051             wchar_t foo = (wchar_t)'\0';
20052 int
20053 main ()
20054 {
20055
20056   ;
20057   return 0;
20058 }
20059 _ACEOF
20060 if ac_fn_c_try_compile "$LINENO"; then :
20061   gt_cv_c_wchar_t=yes
20062 else
20063   gt_cv_c_wchar_t=no
20064 fi
20065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20066 fi
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20068 $as_echo "$gt_cv_c_wchar_t" >&6; }
20069   if test $gt_cv_c_wchar_t = yes; then
20070
20071 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20072
20073   fi
20074
20075
20076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20077 $as_echo_n "checking for wint_t... " >&6; }
20078 if ${gt_cv_c_wint_t+:} false; then :
20079   $as_echo_n "(cached) " >&6
20080 else
20081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h.  */
20083
20084 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20085    <wchar.h>.
20086    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20087    before <wchar.h>.  */
20088 #include <stddef.h>
20089 #include <stdio.h>
20090 #include <time.h>
20091 #include <wchar.h>
20092             wint_t foo = (wchar_t)'\0';
20093 int
20094 main ()
20095 {
20096
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 if ac_fn_c_try_compile "$LINENO"; then :
20102   gt_cv_c_wint_t=yes
20103 else
20104   gt_cv_c_wint_t=no
20105 fi
20106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20107 fi
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20109 $as_echo "$gt_cv_c_wint_t" >&6; }
20110   if test $gt_cv_c_wint_t = yes; then
20111
20112 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20113
20114   fi
20115
20116
20117
20118
20119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20120 $as_echo_n "checking for intmax_t... " >&6; }
20121 if ${gt_cv_c_intmax_t+:} false; then :
20122   $as_echo_n "(cached) " >&6
20123 else
20124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125 /* end confdefs.h.  */
20126
20127 #include <stddef.h>
20128 #include <stdlib.h>
20129 #if HAVE_STDINT_H_WITH_UINTMAX
20130 #include <stdint.h>
20131 #endif
20132 #if HAVE_INTTYPES_H_WITH_UINTMAX
20133 #include <inttypes.h>
20134 #endif
20135
20136 int
20137 main ()
20138 {
20139 intmax_t x = -1;
20140             return !x;
20141   ;
20142   return 0;
20143 }
20144 _ACEOF
20145 if ac_fn_c_try_compile "$LINENO"; then :
20146   gt_cv_c_intmax_t=yes
20147 else
20148   gt_cv_c_intmax_t=no
20149 fi
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20151 fi
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20153 $as_echo "$gt_cv_c_intmax_t" >&6; }
20154   if test $gt_cv_c_intmax_t = yes; then
20155
20156 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20157
20158   fi
20159
20160
20161
20162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
20163 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
20164 if ${gt_cv_func_printf_posix+:} false; then :
20165   $as_echo_n "(cached) " >&6
20166 else
20167
20168       if test "$cross_compiling" = yes; then :
20169
20170           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20171 /* end confdefs.h.  */
20172
20173 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
20174   notposix
20175 #endif
20176
20177 _ACEOF
20178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20179   $EGREP "notposix" >/dev/null 2>&1; then :
20180   gt_cv_func_printf_posix="guessing no"
20181 else
20182   gt_cv_func_printf_posix="guessing yes"
20183 fi
20184 rm -f conftest*
20185
20186
20187 else
20188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20189 /* end confdefs.h.  */
20190
20191 #include <stdio.h>
20192 #include <string.h>
20193 /* The string "%2$d %1$d", with dollar characters protected from the shell's
20194    dollar expansion (possibly an autoconf bug).  */
20195 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
20196 static char buf[100];
20197 int main ()
20198 {
20199   sprintf (buf, format, 33, 55);
20200   return (strcmp (buf, "55 33") != 0);
20201 }
20202 _ACEOF
20203 if ac_fn_c_try_run "$LINENO"; then :
20204   gt_cv_func_printf_posix=yes
20205 else
20206   gt_cv_func_printf_posix=no
20207 fi
20208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20209   conftest.$ac_objext conftest.beam conftest.$ac_ext
20210 fi
20211
20212
20213 fi
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
20215 $as_echo "$gt_cv_func_printf_posix" >&6; }
20216   case $gt_cv_func_printf_posix in
20217     *yes)
20218
20219 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
20220
20221       ;;
20222   esac
20223
20224
20225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
20226 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
20227 if ${ac_cv_gnu_library_2_1+:} false; then :
20228   $as_echo_n "(cached) " >&6
20229 else
20230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h.  */
20232
20233 #include <features.h>
20234 #ifdef __GNU_LIBRARY__
20235  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20236   Lucky GNU user
20237  #endif
20238 #endif
20239 #ifdef __UCLIBC__
20240  Lucky user
20241 #endif
20242
20243 _ACEOF
20244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20245   $EGREP "Lucky" >/dev/null 2>&1; then :
20246   ac_cv_gnu_library_2_1=yes
20247 else
20248   ac_cv_gnu_library_2_1=no
20249 fi
20250 rm -f conftest*
20251
20252
20253
20254 fi
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20256 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20257
20258     GLIBC21="$ac_cv_gnu_library_2_1"
20259
20260
20261
20262   for ac_header in stdint.h
20263 do :
20264   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20265 if test "x$ac_cv_header_stdint_h" = xyes; then :
20266   cat >>confdefs.h <<_ACEOF
20267 #define HAVE_STDINT_H 1
20268 _ACEOF
20269
20270 fi
20271
20272 done
20273
20274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20275 $as_echo_n "checking for SIZE_MAX... " >&6; }
20276 if ${gl_cv_size_max+:} false; then :
20277   $as_echo_n "(cached) " >&6
20278 else
20279
20280     gl_cv_size_max=
20281     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20282 /* end confdefs.h.  */
20283
20284 #include <limits.h>
20285 #if HAVE_STDINT_H
20286 #include <stdint.h>
20287 #endif
20288 #ifdef SIZE_MAX
20289 Found it
20290 #endif
20291
20292 _ACEOF
20293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20294   $EGREP "Found it" >/dev/null 2>&1; then :
20295   gl_cv_size_max=yes
20296 fi
20297 rm -f conftest*
20298
20299     if test -z "$gl_cv_size_max"; then
20300                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
20301 #include <limits.h>"; then :
20302
20303 else
20304   size_t_bits_minus_1=
20305 fi
20306
20307       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20308
20309 else
20310   fits_in_uint=
20311 fi
20312
20313       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
20314         if test $fits_in_uint = 1; then
20315                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316 /* end confdefs.h.  */
20317 #include <stddef.h>
20318                  extern size_t foo;
20319                  extern unsigned long foo;
20320
20321 int
20322 main ()
20323 {
20324
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 if ac_fn_c_try_compile "$LINENO"; then :
20330   fits_in_uint=0
20331 fi
20332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333         fi
20334                                 if test $fits_in_uint = 1; then
20335           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
20336         else
20337           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
20338         fi
20339       else
20340                 gl_cv_size_max='((size_t)~(size_t)0)'
20341       fi
20342     fi
20343
20344 fi
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
20346 $as_echo "$gl_cv_size_max" >&6; }
20347   if test "$gl_cv_size_max" != yes; then
20348
20349 cat >>confdefs.h <<_ACEOF
20350 #define SIZE_MAX $gl_cv_size_max
20351 _ACEOF
20352
20353   fi
20354
20355
20356
20357
20358   for ac_header in stdint.h
20359 do :
20360   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20361 if test "x$ac_cv_header_stdint_h" = xyes; then :
20362   cat >>confdefs.h <<_ACEOF
20363 #define HAVE_STDINT_H 1
20364 _ACEOF
20365
20366 fi
20367
20368 done
20369
20370
20371
20372
20373
20374   for ac_func in $ac_func_list
20375 do :
20376   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20379   cat >>confdefs.h <<_ACEOF
20380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20381 _ACEOF
20382
20383 fi
20384 done
20385
20386
20387
20388
20389
20390
20391
20392
20393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
20394 $as_echo_n "checking for working fcntl.h... " >&6; }
20395 if ${gl_cv_header_working_fcntl_h+:} false; then :
20396   $as_echo_n "(cached) " >&6
20397 else
20398   if test "$cross_compiling" = yes; then :
20399   gl_cv_header_working_fcntl_h=cross-compiling
20400 else
20401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20402 /* end confdefs.h.  */
20403 #include <sys/types.h>
20404            #include <sys/stat.h>
20405            #if HAVE_UNISTD_H
20406            # include <unistd.h>
20407            #else /* on Windows with MSVC */
20408            # include <io.h>
20409            # include <stdlib.h>
20410            # defined sleep(n) _sleep ((n) * 1000)
20411            #endif
20412            #include <fcntl.h>
20413            #ifndef O_NOATIME
20414             #define O_NOATIME 0
20415            #endif
20416            #ifndef O_NOFOLLOW
20417             #define O_NOFOLLOW 0
20418            #endif
20419            static int const constants[] =
20420             {
20421               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20422               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20423             };
20424
20425 int
20426 main ()
20427 {
20428
20429             int result = !constants;
20430             #if HAVE_SYMLINK
20431             {
20432               static char const sym[] = "conftest.sym";
20433               if (symlink ("/dev/null", sym) != 0)
20434                 result |= 2;
20435               else
20436                 {
20437                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
20438                   if (fd >= 0)
20439                     {
20440                       close (fd);
20441                       result |= 4;
20442                     }
20443                 }
20444               if (unlink (sym) != 0 || symlink (".", sym) != 0)
20445                 result |= 2;
20446               else
20447                 {
20448                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
20449                   if (fd >= 0)
20450                     {
20451                       close (fd);
20452                       result |= 4;
20453                     }
20454                 }
20455               unlink (sym);
20456             }
20457             #endif
20458             {
20459               static char const file[] = "confdefs.h";
20460               int fd = open (file, O_RDONLY | O_NOATIME);
20461               if (fd < 0)
20462                 result |= 8;
20463               else
20464                 {
20465                   struct stat st0;
20466                   if (fstat (fd, &st0) != 0)
20467                     result |= 16;
20468                   else
20469                     {
20470                       char c;
20471                       sleep (1);
20472                       if (read (fd, &c, 1) != 1)
20473                         result |= 24;
20474                       else
20475                         {
20476                           if (close (fd) != 0)
20477                             result |= 32;
20478                           else
20479                             {
20480                               struct stat st1;
20481                               if (stat (file, &st1) != 0)
20482                                 result |= 40;
20483                               else
20484                                 if (st0.st_atime != st1.st_atime)
20485                                   result |= 64;
20486                             }
20487                         }
20488                     }
20489                 }
20490             }
20491             return result;
20492   ;
20493   return 0;
20494 }
20495 _ACEOF
20496 if ac_fn_c_try_run "$LINENO"; then :
20497   gl_cv_header_working_fcntl_h=yes
20498 else
20499   case $? in #(
20500         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20501         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20502         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20503          *) gl_cv_header_working_fcntl_h='no';;
20504         esac
20505 fi
20506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20507   conftest.$ac_objext conftest.beam conftest.$ac_ext
20508 fi
20509
20510 fi
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
20512 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
20513
20514   case $gl_cv_header_working_fcntl_h in #(
20515   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20516   *) ac_val=1;;
20517   esac
20518
20519 cat >>confdefs.h <<_ACEOF
20520 #define HAVE_WORKING_O_NOATIME $ac_val
20521 _ACEOF
20522
20523
20524   case $gl_cv_header_working_fcntl_h in #(
20525   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20526   *) ac_val=1;;
20527   esac
20528
20529 cat >>confdefs.h <<_ACEOF
20530 #define HAVE_WORKING_O_NOFOLLOW $ac_val
20531 _ACEOF
20532
20533
20534
20535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20536 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20537 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20538   $as_echo_n "(cached) " >&6
20539 else
20540   gt_save_LIBS="$LIBS"
20541      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20542      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543 /* end confdefs.h.  */
20544 #include <CoreFoundation/CFPreferences.h>
20545 int
20546 main ()
20547 {
20548 CFPreferencesCopyAppValue(NULL, NULL)
20549   ;
20550   return 0;
20551 }
20552 _ACEOF
20553 if ac_fn_c_try_link "$LINENO"; then :
20554   gt_cv_func_CFPreferencesCopyAppValue=yes
20555 else
20556   gt_cv_func_CFPreferencesCopyAppValue=no
20557 fi
20558 rm -f core conftest.err conftest.$ac_objext \
20559     conftest$ac_exeext conftest.$ac_ext
20560      LIBS="$gt_save_LIBS"
20561 fi
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20563 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20564   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20565
20566 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20567
20568   fi
20569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20570 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20571 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20572   $as_echo_n "(cached) " >&6
20573 else
20574   gt_save_LIBS="$LIBS"
20575      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h.  */
20578 #include <CoreFoundation/CFLocale.h>
20579 int
20580 main ()
20581 {
20582 CFLocaleCopyCurrent();
20583   ;
20584   return 0;
20585 }
20586 _ACEOF
20587 if ac_fn_c_try_link "$LINENO"; then :
20588   gt_cv_func_CFLocaleCopyCurrent=yes
20589 else
20590   gt_cv_func_CFLocaleCopyCurrent=no
20591 fi
20592 rm -f core conftest.err conftest.$ac_objext \
20593     conftest$ac_exeext conftest.$ac_ext
20594      LIBS="$gt_save_LIBS"
20595 fi
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20597 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20598   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20599
20600 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20601
20602   fi
20603   INTL_MACOSX_LIBS=
20604   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20605     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20606   fi
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617     case "$enable_silent_rules" in
20618     yes) INTL_DEFAULT_VERBOSITY=0;;
20619     no)  INTL_DEFAULT_VERBOSITY=1;;
20620     *)   INTL_DEFAULT_VERBOSITY=1;;
20621   esac
20622
20623
20624   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20625 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20626
20627 else
20628
20629 $as_echo "#define ptrdiff_t long" >>confdefs.h
20630
20631
20632 fi
20633
20634   for ac_header in features.h stddef.h stdlib.h string.h
20635 do :
20636   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20637 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20639   cat >>confdefs.h <<_ACEOF
20640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20641 _ACEOF
20642
20643 fi
20644
20645 done
20646
20647   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
20648     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20649 do :
20650   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20651 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20652 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20653   cat >>confdefs.h <<_ACEOF
20654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20655 _ACEOF
20656
20657 fi
20658 done
20659
20660
20661       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20662 "
20663 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20664   ac_have_decl=1
20665 else
20666   ac_have_decl=0
20667 fi
20668
20669 cat >>confdefs.h <<_ACEOF
20670 #define HAVE_DECL__SNPRINTF $ac_have_decl
20671 _ACEOF
20672 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
20673 "
20674 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
20675   ac_have_decl=1
20676 else
20677   ac_have_decl=0
20678 fi
20679
20680 cat >>confdefs.h <<_ACEOF
20681 #define HAVE_DECL__SNWPRINTF $ac_have_decl
20682 _ACEOF
20683
20684
20685           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
20686 "
20687 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
20688   ac_have_decl=1
20689 else
20690   ac_have_decl=0
20691 fi
20692
20693 cat >>confdefs.h <<_ACEOF
20694 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
20695 _ACEOF
20696
20697
20698   case $gt_cv_func_printf_posix in
20699     *yes) HAVE_POSIX_PRINTF=1 ;;
20700     *) HAVE_POSIX_PRINTF=0 ;;
20701   esac
20702
20703   if test "$ac_cv_func_asprintf" = yes; then
20704     HAVE_ASPRINTF=1
20705   else
20706     HAVE_ASPRINTF=0
20707   fi
20708
20709   if test "$ac_cv_func_snprintf" = yes; then
20710     HAVE_SNPRINTF=1
20711   else
20712     HAVE_SNPRINTF=0
20713   fi
20714
20715   if test "$ac_cv_func_newlocale" = yes; then
20716     HAVE_NEWLOCALE=1
20717   else
20718     HAVE_NEWLOCALE=0
20719   fi
20720
20721   if test "$ac_cv_func_wprintf" = yes; then
20722     HAVE_WPRINTF=1
20723   else
20724     HAVE_WPRINTF=0
20725   fi
20726
20727
20728
20729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20730 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20731 if ${am_cv_langinfo_codeset+:} false; then :
20732   $as_echo_n "(cached) " >&6
20733 else
20734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20735 /* end confdefs.h.  */
20736 #include <langinfo.h>
20737 int
20738 main ()
20739 {
20740 char* cs = nl_langinfo(CODESET); return !cs;
20741   ;
20742   return 0;
20743 }
20744 _ACEOF
20745 if ac_fn_c_try_link "$LINENO"; then :
20746   am_cv_langinfo_codeset=yes
20747 else
20748   am_cv_langinfo_codeset=no
20749 fi
20750 rm -f core conftest.err conftest.$ac_objext \
20751     conftest$ac_exeext conftest.$ac_ext
20752
20753 fi
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20755 $as_echo "$am_cv_langinfo_codeset" >&6; }
20756   if test $am_cv_langinfo_codeset = yes; then
20757
20758 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20759
20760   fi
20761
20762
20763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20764 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20765 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20766   $as_echo_n "(cached) " >&6
20767 else
20768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h.  */
20770 #include <locale.h>
20771 int
20772 main ()
20773 {
20774 return LC_MESSAGES
20775   ;
20776   return 0;
20777 }
20778 _ACEOF
20779 if ac_fn_c_try_link "$LINENO"; then :
20780   gt_cv_val_LC_MESSAGES=yes
20781 else
20782   gt_cv_val_LC_MESSAGES=no
20783 fi
20784 rm -f core conftest.err conftest.$ac_objext \
20785     conftest$ac_exeext conftest.$ac_ext
20786 fi
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20788 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20789   if test $gt_cv_val_LC_MESSAGES = yes; then
20790
20791 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20792
20793   fi
20794
20795
20796                 if test "$enable_shared" = yes; then
20797     case "$host_os" in
20798       mingw* | cygwin*) is_woe32dll=yes ;;
20799       *) is_woe32dll=no ;;
20800     esac
20801   else
20802     is_woe32dll=no
20803   fi
20804   WOE32DLL=$is_woe32dll
20805
20806
20807       case "$host_os" in
20808     mingw* | cygwin*) is_woe32=yes ;;
20809     *) is_woe32=no ;;
20810   esac
20811   WOE32=$is_woe32
20812
20813   if test $WOE32 = yes; then
20814         if test -n "$ac_tool_prefix"; then
20815   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20816 set dummy ${ac_tool_prefix}windres; ac_word=$2
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20818 $as_echo_n "checking for $ac_word... " >&6; }
20819 if ${ac_cv_prog_WINDRES+:} false; then :
20820   $as_echo_n "(cached) " >&6
20821 else
20822   if test -n "$WINDRES"; then
20823   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20824 else
20825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20826 for as_dir in $PATH
20827 do
20828   IFS=$as_save_IFS
20829   test -z "$as_dir" && as_dir=.
20830     for ac_exec_ext in '' $ac_executable_extensions; do
20831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20832     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20834     break 2
20835   fi
20836 done
20837   done
20838 IFS=$as_save_IFS
20839
20840 fi
20841 fi
20842 WINDRES=$ac_cv_prog_WINDRES
20843 if test -n "$WINDRES"; then
20844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20845 $as_echo "$WINDRES" >&6; }
20846 else
20847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20848 $as_echo "no" >&6; }
20849 fi
20850
20851
20852 fi
20853 if test -z "$ac_cv_prog_WINDRES"; then
20854   ac_ct_WINDRES=$WINDRES
20855   # Extract the first word of "windres", so it can be a program name with args.
20856 set dummy windres; ac_word=$2
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20858 $as_echo_n "checking for $ac_word... " >&6; }
20859 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20860   $as_echo_n "(cached) " >&6
20861 else
20862   if test -n "$ac_ct_WINDRES"; then
20863   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20864 else
20865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20866 for as_dir in $PATH
20867 do
20868   IFS=$as_save_IFS
20869   test -z "$as_dir" && as_dir=.
20870     for ac_exec_ext in '' $ac_executable_extensions; do
20871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20872     ac_cv_prog_ac_ct_WINDRES="windres"
20873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20874     break 2
20875   fi
20876 done
20877   done
20878 IFS=$as_save_IFS
20879
20880 fi
20881 fi
20882 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20883 if test -n "$ac_ct_WINDRES"; then
20884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20885 $as_echo "$ac_ct_WINDRES" >&6; }
20886 else
20887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20888 $as_echo "no" >&6; }
20889 fi
20890
20891   if test "x$ac_ct_WINDRES" = x; then
20892     WINDRES=""
20893   else
20894     case $cross_compiling:$ac_tool_warned in
20895 yes:)
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20898 ac_tool_warned=yes ;;
20899 esac
20900     WINDRES=$ac_ct_WINDRES
20901   fi
20902 else
20903   WINDRES="$ac_cv_prog_WINDRES"
20904 fi
20905
20906   fi
20907
20908               case "$host_os" in
20909     hpux*) LTLIBC="" ;;
20910     *)     LTLIBC="-lc" ;;
20911   esac
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20940 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20941 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20942   $as_echo_n "(cached) " >&6
20943 else
20944   gt_save_LIBS="$LIBS"
20945      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20946      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20947 /* end confdefs.h.  */
20948 #include <CoreFoundation/CFPreferences.h>
20949 int
20950 main ()
20951 {
20952 CFPreferencesCopyAppValue(NULL, NULL)
20953   ;
20954   return 0;
20955 }
20956 _ACEOF
20957 if ac_fn_c_try_link "$LINENO"; then :
20958   gt_cv_func_CFPreferencesCopyAppValue=yes
20959 else
20960   gt_cv_func_CFPreferencesCopyAppValue=no
20961 fi
20962 rm -f core conftest.err conftest.$ac_objext \
20963     conftest$ac_exeext conftest.$ac_ext
20964      LIBS="$gt_save_LIBS"
20965 fi
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20967 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20968   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20969
20970 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20971
20972   fi
20973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20974 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20975 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20976   $as_echo_n "(cached) " >&6
20977 else
20978   gt_save_LIBS="$LIBS"
20979      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20980      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20981 /* end confdefs.h.  */
20982 #include <CoreFoundation/CFLocale.h>
20983 int
20984 main ()
20985 {
20986 CFLocaleCopyCurrent();
20987   ;
20988   return 0;
20989 }
20990 _ACEOF
20991 if ac_fn_c_try_link "$LINENO"; then :
20992   gt_cv_func_CFLocaleCopyCurrent=yes
20993 else
20994   gt_cv_func_CFLocaleCopyCurrent=no
20995 fi
20996 rm -f core conftest.err conftest.$ac_objext \
20997     conftest$ac_exeext conftest.$ac_ext
20998      LIBS="$gt_save_LIBS"
20999 fi
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21001 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21002   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21003
21004 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21005
21006   fi
21007   INTL_MACOSX_LIBS=
21008   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21009     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21010   fi
21011
21012
21013
21014
21015
21016
21017     BUILD_INCLUDED_LIBINTL=no
21018     USE_INCLUDED_LIBINTL=no
21019
21020   LIBINTL=
21021   LTLIBINTL=
21022   POSUB=
21023
21024     case " $gt_needs " in
21025     *" need-formatstring-macros "*) gt_api_version=3 ;;
21026     *" need-ngettext "*) gt_api_version=2 ;;
21027     *) gt_api_version=1 ;;
21028   esac
21029   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
21030   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
21031
21032     if test "$USE_NLS" = "yes"; then
21033     gt_use_preinstalled_gnugettext=no
21034
21035       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21036 $as_echo_n "checking whether included gettext is requested... " >&6; }
21037
21038 # Check whether --with-included-gettext was given.
21039 if test "${with_included_gettext+set}" = set; then :
21040   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21041 else
21042   nls_cv_force_use_gnu_gettext=no
21043 fi
21044
21045       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21046 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21047
21048       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21049       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21050
21051
21052         if test $gt_api_version -ge 3; then
21053           gt_revision_test_code='
21054 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21055 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
21056 #endif
21057 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
21058 '
21059         else
21060           gt_revision_test_code=
21061         fi
21062         if test $gt_api_version -ge 2; then
21063           gt_expression_test_code=' + * ngettext ("", "", 0)'
21064         else
21065           gt_expression_test_code=
21066         fi
21067
21068         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21069 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21070 if eval \${$gt_func_gnugettext_libc+:} false; then :
21071   $as_echo_n "(cached) " >&6
21072 else
21073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h.  */
21075
21076 #include <libintl.h>
21077 $gt_revision_test_code
21078 extern int _nl_msg_cat_cntr;
21079 extern int *_nl_domain_bindings;
21080
21081 int
21082 main ()
21083 {
21084
21085 bindtextdomain ("", "");
21086 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
21087
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 if ac_fn_c_try_link "$LINENO"; then :
21093   eval "$gt_func_gnugettext_libc=yes"
21094 else
21095   eval "$gt_func_gnugettext_libc=no"
21096 fi
21097 rm -f core conftest.err conftest.$ac_objext \
21098     conftest$ac_exeext conftest.$ac_ext
21099 fi
21100 eval ac_res=\$$gt_func_gnugettext_libc
21101                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21102 $as_echo "$ac_res" >&6; }
21103
21104         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
21105
21106
21107
21108
21109
21110
21111
21112
21113     use_additional=yes
21114
21115   acl_save_prefix="$prefix"
21116   prefix="$acl_final_prefix"
21117   acl_save_exec_prefix="$exec_prefix"
21118   exec_prefix="$acl_final_exec_prefix"
21119
21120     eval additional_includedir=\"$includedir\"
21121     eval additional_libdir=\"$libdir\"
21122
21123   exec_prefix="$acl_save_exec_prefix"
21124   prefix="$acl_save_prefix"
21125
21126
21127 # Check whether --with-libintl-prefix was given.
21128 if test "${with_libintl_prefix+set}" = set; then :
21129   withval=$with_libintl_prefix;
21130     if test "X$withval" = "Xno"; then
21131       use_additional=no
21132     else
21133       if test "X$withval" = "X"; then
21134
21135   acl_save_prefix="$prefix"
21136   prefix="$acl_final_prefix"
21137   acl_save_exec_prefix="$exec_prefix"
21138   exec_prefix="$acl_final_exec_prefix"
21139
21140           eval additional_includedir=\"$includedir\"
21141           eval additional_libdir=\"$libdir\"
21142
21143   exec_prefix="$acl_save_exec_prefix"
21144   prefix="$acl_save_prefix"
21145
21146       else
21147         additional_includedir="$withval/include"
21148         additional_libdir="$withval/$acl_libdirstem"
21149         if test "$acl_libdirstem2" != "$acl_libdirstem" \
21150            && ! test -d "$withval/$acl_libdirstem"; then
21151           additional_libdir="$withval/$acl_libdirstem2"
21152         fi
21153       fi
21154     fi
21155
21156 fi
21157
21158       LIBINTL=
21159   LTLIBINTL=
21160   INCINTL=
21161   LIBINTL_PREFIX=
21162       HAVE_LIBINTL=
21163   rpathdirs=
21164   ltrpathdirs=
21165   names_already_handled=
21166   names_next_round='intl '
21167   while test -n "$names_next_round"; do
21168     names_this_round="$names_next_round"
21169     names_next_round=
21170     for name in $names_this_round; do
21171       already_handled=
21172       for n in $names_already_handled; do
21173         if test "$n" = "$name"; then
21174           already_handled=yes
21175           break
21176         fi
21177       done
21178       if test -z "$already_handled"; then
21179         names_already_handled="$names_already_handled $name"
21180                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
21181         eval value=\"\$HAVE_LIB$uppername\"
21182         if test -n "$value"; then
21183           if test "$value" = yes; then
21184             eval value=\"\$LIB$uppername\"
21185             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21186             eval value=\"\$LTLIB$uppername\"
21187             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21188           else
21189                                     :
21190           fi
21191         else
21192                               found_dir=
21193           found_la=
21194           found_so=
21195           found_a=
21196           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
21197           if test -n "$acl_shlibext"; then
21198             shrext=".$acl_shlibext"             # typically: shrext=.so
21199           else
21200             shrext=
21201           fi
21202           if test $use_additional = yes; then
21203             dir="$additional_libdir"
21204                                     if test -n "$acl_shlibext"; then
21205               if test -f "$dir/$libname$shrext"; then
21206                 found_dir="$dir"
21207                 found_so="$dir/$libname$shrext"
21208               else
21209                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21210                   ver=`(cd "$dir" && \
21211                         for f in "$libname$shrext".*; do echo "$f"; done \
21212                         | sed -e "s,^$libname$shrext\\\\.,," \
21213                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21214                         | sed 1q ) 2>/dev/null`
21215                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21216                     found_dir="$dir"
21217                     found_so="$dir/$libname$shrext.$ver"
21218                   fi
21219                 else
21220                   eval library_names=\"$acl_library_names_spec\"
21221                   for f in $library_names; do
21222                     if test -f "$dir/$f"; then
21223                       found_dir="$dir"
21224                       found_so="$dir/$f"
21225                       break
21226                     fi
21227                   done
21228                 fi
21229               fi
21230             fi
21231                         if test "X$found_dir" = "X"; then
21232               if test -f "$dir/$libname.$acl_libext"; then
21233                 found_dir="$dir"
21234                 found_a="$dir/$libname.$acl_libext"
21235               fi
21236             fi
21237             if test "X$found_dir" != "X"; then
21238               if test -f "$dir/$libname.la"; then
21239                 found_la="$dir/$libname.la"
21240               fi
21241             fi
21242           fi
21243           if test "X$found_dir" = "X"; then
21244             for x in $LDFLAGS $LTLIBINTL; do
21245
21246   acl_save_prefix="$prefix"
21247   prefix="$acl_final_prefix"
21248   acl_save_exec_prefix="$exec_prefix"
21249   exec_prefix="$acl_final_exec_prefix"
21250   eval x=\"$x\"
21251   exec_prefix="$acl_save_exec_prefix"
21252   prefix="$acl_save_prefix"
21253
21254               case "$x" in
21255                 -L*)
21256                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21257                                     if test -n "$acl_shlibext"; then
21258                     if test -f "$dir/$libname$shrext"; then
21259                       found_dir="$dir"
21260                       found_so="$dir/$libname$shrext"
21261                     else
21262                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21263                         ver=`(cd "$dir" && \
21264                               for f in "$libname$shrext".*; do echo "$f"; done \
21265                               | sed -e "s,^$libname$shrext\\\\.,," \
21266                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21267                               | sed 1q ) 2>/dev/null`
21268                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21269                           found_dir="$dir"
21270                           found_so="$dir/$libname$shrext.$ver"
21271                         fi
21272                       else
21273                         eval library_names=\"$acl_library_names_spec\"
21274                         for f in $library_names; do
21275                           if test -f "$dir/$f"; then
21276                             found_dir="$dir"
21277                             found_so="$dir/$f"
21278                             break
21279                           fi
21280                         done
21281                       fi
21282                     fi
21283                   fi
21284                                     if test "X$found_dir" = "X"; then
21285                     if test -f "$dir/$libname.$acl_libext"; then
21286                       found_dir="$dir"
21287                       found_a="$dir/$libname.$acl_libext"
21288                     fi
21289                   fi
21290                   if test "X$found_dir" != "X"; then
21291                     if test -f "$dir/$libname.la"; then
21292                       found_la="$dir/$libname.la"
21293                     fi
21294                   fi
21295                   ;;
21296               esac
21297               if test "X$found_dir" != "X"; then
21298                 break
21299               fi
21300             done
21301           fi
21302           if test "X$found_dir" != "X"; then
21303                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21304             if test "X$found_so" != "X"; then
21305                                                         if test "$enable_rpath" = no \
21306                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21307                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
21308                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21309               else
21310                                                                                 haveit=
21311                 for x in $ltrpathdirs; do
21312                   if test "X$x" = "X$found_dir"; then
21313                     haveit=yes
21314                     break
21315                   fi
21316                 done
21317                 if test -z "$haveit"; then
21318                   ltrpathdirs="$ltrpathdirs $found_dir"
21319                 fi
21320                                 if test "$acl_hardcode_direct" = yes; then
21321                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21322                 else
21323                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21324                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21325                                                             haveit=
21326                     for x in $rpathdirs; do
21327                       if test "X$x" = "X$found_dir"; then
21328                         haveit=yes
21329                         break
21330                       fi
21331                     done
21332                     if test -z "$haveit"; then
21333                       rpathdirs="$rpathdirs $found_dir"
21334                     fi
21335                   else
21336                                                                                 haveit=
21337                     for x in $LDFLAGS $LIBINTL; do
21338
21339   acl_save_prefix="$prefix"
21340   prefix="$acl_final_prefix"
21341   acl_save_exec_prefix="$exec_prefix"
21342   exec_prefix="$acl_final_exec_prefix"
21343   eval x=\"$x\"
21344   exec_prefix="$acl_save_exec_prefix"
21345   prefix="$acl_save_prefix"
21346
21347                       if test "X$x" = "X-L$found_dir"; then
21348                         haveit=yes
21349                         break
21350                       fi
21351                     done
21352                     if test -z "$haveit"; then
21353                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21354                     fi
21355                     if test "$acl_hardcode_minus_L" != no; then
21356                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21357                     else
21358                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21359                     fi
21360                   fi
21361                 fi
21362               fi
21363             else
21364               if test "X$found_a" != "X"; then
21365                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21366               else
21367                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21368               fi
21369             fi
21370                         additional_includedir=
21371             case "$found_dir" in
21372               */$acl_libdirstem | */$acl_libdirstem/)
21373                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21374                 if test "$name" = 'intl'; then
21375                   LIBINTL_PREFIX="$basedir"
21376                 fi
21377                 additional_includedir="$basedir/include"
21378                 ;;
21379               */$acl_libdirstem2 | */$acl_libdirstem2/)
21380                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21381                 if test "$name" = 'intl'; then
21382                   LIBINTL_PREFIX="$basedir"
21383                 fi
21384                 additional_includedir="$basedir/include"
21385                 ;;
21386             esac
21387             if test "X$additional_includedir" != "X"; then
21388                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21389                 haveit=
21390                 if test "X$additional_includedir" = "X/usr/local/include"; then
21391                   if test -n "$GCC"; then
21392                     case $host_os in
21393                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21394                     esac
21395                   fi
21396                 fi
21397                 if test -z "$haveit"; then
21398                   for x in $CPPFLAGS $INCINTL; do
21399
21400   acl_save_prefix="$prefix"
21401   prefix="$acl_final_prefix"
21402   acl_save_exec_prefix="$exec_prefix"
21403   exec_prefix="$acl_final_exec_prefix"
21404   eval x=\"$x\"
21405   exec_prefix="$acl_save_exec_prefix"
21406   prefix="$acl_save_prefix"
21407
21408                     if test "X$x" = "X-I$additional_includedir"; then
21409                       haveit=yes
21410                       break
21411                     fi
21412                   done
21413                   if test -z "$haveit"; then
21414                     if test -d "$additional_includedir"; then
21415                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21416                     fi
21417                   fi
21418                 fi
21419               fi
21420             fi
21421                         if test -n "$found_la"; then
21422                                                         save_libdir="$libdir"
21423               case "$found_la" in
21424                 */* | *\\*) . "$found_la" ;;
21425                 *) . "./$found_la" ;;
21426               esac
21427               libdir="$save_libdir"
21428                             for dep in $dependency_libs; do
21429                 case "$dep" in
21430                   -L*)
21431                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21432                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21433                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
21434                       haveit=
21435                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
21436                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
21437                         if test -n "$GCC"; then
21438                           case $host_os in
21439                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21440                           esac
21441                         fi
21442                       fi
21443                       if test -z "$haveit"; then
21444                         haveit=
21445                         for x in $LDFLAGS $LIBINTL; do
21446
21447   acl_save_prefix="$prefix"
21448   prefix="$acl_final_prefix"
21449   acl_save_exec_prefix="$exec_prefix"
21450   exec_prefix="$acl_final_exec_prefix"
21451   eval x=\"$x\"
21452   exec_prefix="$acl_save_exec_prefix"
21453   prefix="$acl_save_prefix"
21454
21455                           if test "X$x" = "X-L$additional_libdir"; then
21456                             haveit=yes
21457                             break
21458                           fi
21459                         done
21460                         if test -z "$haveit"; then
21461                           if test -d "$additional_libdir"; then
21462                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21463                           fi
21464                         fi
21465                         haveit=
21466                         for x in $LDFLAGS $LTLIBINTL; do
21467
21468   acl_save_prefix="$prefix"
21469   prefix="$acl_final_prefix"
21470   acl_save_exec_prefix="$exec_prefix"
21471   exec_prefix="$acl_final_exec_prefix"
21472   eval x=\"$x\"
21473   exec_prefix="$acl_save_exec_prefix"
21474   prefix="$acl_save_prefix"
21475
21476                           if test "X$x" = "X-L$additional_libdir"; then
21477                             haveit=yes
21478                             break
21479                           fi
21480                         done
21481                         if test -z "$haveit"; then
21482                           if test -d "$additional_libdir"; then
21483                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21484                           fi
21485                         fi
21486                       fi
21487                     fi
21488                     ;;
21489                   -R*)
21490                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21491                     if test "$enable_rpath" != no; then
21492                                                                   haveit=
21493                       for x in $rpathdirs; do
21494                         if test "X$x" = "X$dir"; then
21495                           haveit=yes
21496                           break
21497                         fi
21498                       done
21499                       if test -z "$haveit"; then
21500                         rpathdirs="$rpathdirs $dir"
21501                       fi
21502                                                                   haveit=
21503                       for x in $ltrpathdirs; do
21504                         if test "X$x" = "X$dir"; then
21505                           haveit=yes
21506                           break
21507                         fi
21508                       done
21509                       if test -z "$haveit"; then
21510                         ltrpathdirs="$ltrpathdirs $dir"
21511                       fi
21512                     fi
21513                     ;;
21514                   -l*)
21515                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21516                     ;;
21517                   *.la)
21518                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21519                     ;;
21520                   *)
21521                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21522                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21523                     ;;
21524                 esac
21525               done
21526             fi
21527           else
21528                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21529             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21530           fi
21531         fi
21532       fi
21533     done
21534   done
21535   if test "X$rpathdirs" != "X"; then
21536     if test -n "$acl_hardcode_libdir_separator"; then
21537                         alldirs=
21538       for found_dir in $rpathdirs; do
21539         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21540       done
21541             acl_save_libdir="$libdir"
21542       libdir="$alldirs"
21543       eval flag=\"$acl_hardcode_libdir_flag_spec\"
21544       libdir="$acl_save_libdir"
21545       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21546     else
21547             for found_dir in $rpathdirs; do
21548         acl_save_libdir="$libdir"
21549         libdir="$found_dir"
21550         eval flag=\"$acl_hardcode_libdir_flag_spec\"
21551         libdir="$acl_save_libdir"
21552         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21553       done
21554     fi
21555   fi
21556   if test "X$ltrpathdirs" != "X"; then
21557             for found_dir in $ltrpathdirs; do
21558       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21559     done
21560   fi
21561
21562
21563
21564
21565
21566
21567           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21568 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21569 if eval \${$gt_func_gnugettext_libintl+:} false; then :
21570   $as_echo_n "(cached) " >&6
21571 else
21572   gt_save_CPPFLAGS="$CPPFLAGS"
21573             CPPFLAGS="$CPPFLAGS $INCINTL"
21574             gt_save_LIBS="$LIBS"
21575             LIBS="$LIBS $LIBINTL"
21576                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21577 /* end confdefs.h.  */
21578
21579 #include <libintl.h>
21580 $gt_revision_test_code
21581 extern int _nl_msg_cat_cntr;
21582 extern
21583 #ifdef __cplusplus
21584 "C"
21585 #endif
21586 const char *_nl_expand_alias (const char *);
21587
21588 int
21589 main ()
21590 {
21591
21592 bindtextdomain ("", "");
21593 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21594
21595   ;
21596   return 0;
21597 }
21598 _ACEOF
21599 if ac_fn_c_try_link "$LINENO"; then :
21600   eval "$gt_func_gnugettext_libintl=yes"
21601 else
21602   eval "$gt_func_gnugettext_libintl=no"
21603 fi
21604 rm -f core conftest.err conftest.$ac_objext \
21605     conftest$ac_exeext conftest.$ac_ext
21606                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
21607               LIBS="$LIBS $LIBICONV"
21608               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609 /* end confdefs.h.  */
21610
21611 #include <libintl.h>
21612 $gt_revision_test_code
21613 extern int _nl_msg_cat_cntr;
21614 extern
21615 #ifdef __cplusplus
21616 "C"
21617 #endif
21618 const char *_nl_expand_alias (const char *);
21619
21620 int
21621 main ()
21622 {
21623
21624 bindtextdomain ("", "");
21625 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21626
21627   ;
21628   return 0;
21629 }
21630 _ACEOF
21631 if ac_fn_c_try_link "$LINENO"; then :
21632   LIBINTL="$LIBINTL $LIBICONV"
21633                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21634                  eval "$gt_func_gnugettext_libintl=yes"
21635
21636 fi
21637 rm -f core conftest.err conftest.$ac_objext \
21638     conftest$ac_exeext conftest.$ac_ext
21639             fi
21640             CPPFLAGS="$gt_save_CPPFLAGS"
21641             LIBS="$gt_save_LIBS"
21642 fi
21643 eval ac_res=\$$gt_func_gnugettext_libintl
21644                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21645 $as_echo "$ac_res" >&6; }
21646         fi
21647
21648                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
21649            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
21650                 && test "$PACKAGE" != gettext-runtime \
21651                 && test "$PACKAGE" != gettext-tools; }; then
21652           gt_use_preinstalled_gnugettext=yes
21653         else
21654                     LIBINTL=
21655           LTLIBINTL=
21656           INCINTL=
21657         fi
21658
21659
21660         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21661                               nls_cv_use_gnu_gettext=yes
21662         fi
21663       fi
21664
21665       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21666                 BUILD_INCLUDED_LIBINTL=yes
21667         USE_INCLUDED_LIBINTL=yes
21668         LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
21669         LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
21670         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21671       fi
21672
21673       CATOBJEXT=
21674       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21675          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21676                 CATOBJEXT=.gmo
21677       fi
21678
21679
21680     if test -n "$INTL_MACOSX_LIBS"; then
21681       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21682          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21683                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21684         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21685       fi
21686     fi
21687
21688     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21689        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21690
21691 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21692
21693     else
21694       USE_NLS=no
21695     fi
21696   fi
21697
21698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21699 $as_echo_n "checking whether to use NLS... " >&6; }
21700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21701 $as_echo "$USE_NLS" >&6; }
21702   if test "$USE_NLS" = "yes"; then
21703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21704 $as_echo_n "checking where the gettext function comes from... " >&6; }
21705     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21706       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21707         gt_source="external libintl"
21708       else
21709         gt_source="libc"
21710       fi
21711     else
21712       gt_source="included intl directory"
21713     fi
21714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21715 $as_echo "$gt_source" >&6; }
21716   fi
21717
21718   if test "$USE_NLS" = "yes"; then
21719
21720     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21721       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21723 $as_echo_n "checking how to link with libintl... " >&6; }
21724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21725 $as_echo "$LIBINTL" >&6; }
21726
21727   for element in $INCINTL; do
21728     haveit=
21729     for x in $CPPFLAGS; do
21730
21731   acl_save_prefix="$prefix"
21732   prefix="$acl_final_prefix"
21733   acl_save_exec_prefix="$exec_prefix"
21734   exec_prefix="$acl_final_exec_prefix"
21735   eval x=\"$x\"
21736   exec_prefix="$acl_save_exec_prefix"
21737   prefix="$acl_save_prefix"
21738
21739       if test "X$x" = "X$element"; then
21740         haveit=yes
21741         break
21742       fi
21743     done
21744     if test -z "$haveit"; then
21745       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21746     fi
21747   done
21748
21749       fi
21750
21751
21752 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21753
21754
21755 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21756
21757     fi
21758
21759         POSUB=po
21760   fi
21761
21762
21763             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21764       BUILD_INCLUDED_LIBINTL=yes
21765     fi
21766
21767
21768
21769
21770
21771         nls_cv_header_intl=
21772     nls_cv_header_libgt=
21773
21774         DATADIRNAME=share
21775
21776
21777         INSTOBJEXT=.mo
21778
21779
21780         GENCAT=gencat
21781
21782
21783         INTLOBJS=
21784     if test "$USE_INCLUDED_LIBINTL" = yes; then
21785       INTLOBJS="\$(GETTOBJS)"
21786     fi
21787
21788
21789         INTL_LIBTOOL_SUFFIX_PREFIX=l
21790
21791
21792
21793     INTLLIBS="$LIBINTL"
21794
21795
21796
21797
21798
21799
21800
21801
21802   if test -z "$USE_NLS"; then
21803     echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
21804     exit 1
21805   fi
21806   BISON_LOCALEDIR=
21807   BISON_USE_NLS=no
21808   if test "$USE_NLS" = yes; then
21809                         if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
21810       BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
21811     fi
21812
21813     if test -n "$BISON_LOCALEDIR"; then
21814                               USER_LINGUAS="${LINGUAS-%UNSET%}"
21815       if test -n "$USER_LINGUAS"; then
21816         BISON_USE_NLS=yes
21817       fi
21818     fi
21819   fi
21820   if test $BISON_USE_NLS = yes; then
21821
21822 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
21823
21824   fi
21825
21826
21827 MSGMERGE_LIBM=?
21828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21829 /* end confdefs.h.  */
21830
21831    #ifndef __NO_MATH_INLINES
21832    # define __NO_MATH_INLINES 1 /* for glibc */
21833    #endif
21834    #include <math.h>
21835    double x;
21836 int
21837 main ()
21838 {
21839 x = ceil(x); x = sqrt(x);
21840   ;
21841   return 0;
21842 }
21843 _ACEOF
21844 if ac_fn_c_try_link "$LINENO"; then :
21845   MSGMERGE_LIBM=
21846 fi
21847 rm -f core conftest.err conftest.$ac_objext \
21848     conftest$ac_exeext conftest.$ac_ext
21849 if test "$MSGMERGE_LIBM" = "?"; then
21850   save_LIBS="$LIBS"
21851   LIBS="$LIBS -lm"
21852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21853 /* end confdefs.h.  */
21854
21855      #ifndef __NO_MATH_INLINES
21856      # define __NO_MATH_INLINES 1 /* for glibc */
21857      #endif
21858      #include <math.h>
21859      double x;
21860 int
21861 main ()
21862 {
21863 x = ceil(x); x = sqrt(x);
21864   ;
21865   return 0;
21866 }
21867 _ACEOF
21868 if ac_fn_c_try_link "$LINENO"; then :
21869   MSGMERGE_LIBM="-lm"
21870 fi
21871 rm -f core conftest.err conftest.$ac_objext \
21872     conftest$ac_exeext conftest.$ac_ext
21873   LIBS="$save_LIBS"
21874 fi
21875 if test "$MSGMERGE_LIBM" = "?"; then
21876   MSGMERGE_LIBM=
21877 fi
21878
21879
21880
21881
21882
21883
21884
21885           LIBC_FATAL_STDERR_=1
21886   export LIBC_FATAL_STDERR_
21887
21888
21889
21890
21891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
21892 $as_echo_n "checking whether to use C++... " >&6; }
21893     # Check whether --enable-c++ was given.
21894 if test "${enable_c__+set}" = set; then :
21895   enableval=$enable_c__; CXX_CHOICE="$enableval"
21896 else
21897   CXX_CHOICE=yes
21898 fi
21899
21900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_CHOICE" >&5
21901 $as_echo "$CXX_CHOICE" >&6; }
21902
21903
21904
21905   GNULIB__EXIT=0;
21906   GNULIB_ATOLL=0;
21907   GNULIB_CALLOC_POSIX=0;
21908   GNULIB_CANONICALIZE_FILE_NAME=0;
21909   GNULIB_GETLOADAVG=0;
21910   GNULIB_GETSUBOPT=0;
21911   GNULIB_GRANTPT=0;
21912   GNULIB_MALLOC_POSIX=0;
21913   GNULIB_MBTOWC=0;
21914   GNULIB_MKDTEMP=0;
21915   GNULIB_MKOSTEMP=0;
21916   GNULIB_MKOSTEMPS=0;
21917   GNULIB_MKSTEMP=0;
21918   GNULIB_MKSTEMPS=0;
21919   GNULIB_POSIX_OPENPT=0;
21920   GNULIB_PTSNAME=0;
21921   GNULIB_PTSNAME_R=0;
21922   GNULIB_PUTENV=0;
21923   GNULIB_RANDOM=0;
21924   GNULIB_RANDOM_R=0;
21925   GNULIB_REALLOC_POSIX=0;
21926   GNULIB_REALPATH=0;
21927   GNULIB_RPMATCH=0;
21928   GNULIB_SECURE_GETENV=0;
21929   GNULIB_SETENV=0;
21930   GNULIB_STRTOD=0;
21931   GNULIB_STRTOLL=0;
21932   GNULIB_STRTOULL=0;
21933   GNULIB_SYSTEM_POSIX=0;
21934   GNULIB_UNLOCKPT=0;
21935   GNULIB_UNSETENV=0;
21936   GNULIB_WCTOMB=0;
21937     HAVE__EXIT=1;
21938   HAVE_ATOLL=1;
21939   HAVE_CANONICALIZE_FILE_NAME=1;
21940   HAVE_DECL_GETLOADAVG=1;
21941   HAVE_GETSUBOPT=1;
21942   HAVE_GRANTPT=1;
21943   HAVE_MKDTEMP=1;
21944   HAVE_MKOSTEMP=1;
21945   HAVE_MKOSTEMPS=1;
21946   HAVE_MKSTEMP=1;
21947   HAVE_MKSTEMPS=1;
21948   HAVE_POSIX_OPENPT=1;
21949   HAVE_PTSNAME=1;
21950   HAVE_PTSNAME_R=1;
21951   HAVE_RANDOM=1;
21952   HAVE_RANDOM_H=1;
21953   HAVE_RANDOM_R=1;
21954   HAVE_REALPATH=1;
21955   HAVE_RPMATCH=1;
21956   HAVE_SECURE_GETENV=1;
21957   HAVE_SETENV=1;
21958   HAVE_DECL_SETENV=1;
21959   HAVE_STRTOD=1;
21960   HAVE_STRTOLL=1;
21961   HAVE_STRTOULL=1;
21962   HAVE_STRUCT_RANDOM_DATA=1;
21963   HAVE_SYS_LOADAVG_H=0;
21964   HAVE_UNLOCKPT=1;
21965   HAVE_DECL_UNSETENV=1;
21966   REPLACE_CALLOC=0;
21967   REPLACE_CANONICALIZE_FILE_NAME=0;
21968   REPLACE_MALLOC=0;
21969   REPLACE_MBTOWC=0;
21970   REPLACE_MKSTEMP=0;
21971   REPLACE_PTSNAME=0;
21972   REPLACE_PTSNAME_R=0;
21973   REPLACE_PUTENV=0;
21974   REPLACE_RANDOM_R=0;
21975   REPLACE_REALLOC=0;
21976   REPLACE_REALPATH=0;
21977   REPLACE_SETENV=0;
21978   REPLACE_STRTOD=0;
21979   REPLACE_UNSETENV=0;
21980   REPLACE_WCTOMB=0;
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21991 $as_echo_n "checking whether // is distinct from /... " >&6; }
21992 if ${gl_cv_double_slash_root+:} false; then :
21993   $as_echo_n "(cached) " >&6
21994 else
21995    if test x"$cross_compiling" = xyes ; then
21996         # When cross-compiling, there is no way to tell whether // is special
21997         # short of a list of hosts.  However, the only known hosts to date
21998         # that have a distinct // are Apollo DomainOS (too old to port to),
21999         # Cygwin, and z/OS.  If anyone knows of another system for which // has
22000         # special semantics and is distinct from /, please report it to
22001         # <bug-gnulib@gnu.org>.
22002         case $host in
22003           *-cygwin | i370-ibm-openedition)
22004             gl_cv_double_slash_root=yes ;;
22005           *)
22006             # Be optimistic and assume that / and // are the same when we
22007             # don't know.
22008             gl_cv_double_slash_root='unknown, assuming no' ;;
22009         esac
22010       else
22011         set x `ls -di / // 2>/dev/null`
22012         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
22013           gl_cv_double_slash_root=no
22014         else
22015           gl_cv_double_slash_root=yes
22016         fi
22017       fi
22018 fi
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
22020 $as_echo "$gl_cv_double_slash_root" >&6; }
22021   if test "$gl_cv_double_slash_root" = yes; then
22022
22023 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
22024
22025   fi
22026
22027
22028
22029
22030
22031      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
22032 $as_echo_n "checking whether realpath works... " >&6; }
22033 if ${gl_cv_func_realpath_works+:} false; then :
22034   $as_echo_n "(cached) " >&6
22035 else
22036
22037     touch conftest.a
22038     mkdir conftest.d
22039     if test "$cross_compiling" = yes; then :
22040   case "$host_os" in
22041                        # Guess yes on glibc systems.
22042         *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
22043                        # If we don't know, assume the worst.
22044         *)             gl_cv_func_realpath_works="guessing no" ;;
22045       esac
22046
22047 else
22048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22049 /* end confdefs.h.  */
22050
22051
22052
22053 #include <stdlib.h>
22054 #if defined __MACH__ && defined __APPLE__
22055 /* Avoid a crash on Mac OS X.  */
22056 #include <mach/mach.h>
22057 #include <mach/mach_error.h>
22058 #include <mach/thread_status.h>
22059 #include <mach/exception.h>
22060 #include <mach/task.h>
22061 #include <pthread.h>
22062 /* The exception port on which our thread listens.  */
22063 static mach_port_t our_exception_port;
22064 /* The main function of the thread listening for exceptions of type
22065    EXC_BAD_ACCESS.  */
22066 static void *
22067 mach_exception_thread (void *arg)
22068 {
22069   /* Buffer for a message to be received.  */
22070   struct {
22071     mach_msg_header_t head;
22072     mach_msg_body_t msgh_body;
22073     char data[1024];
22074   } msg;
22075   mach_msg_return_t retval;
22076   /* Wait for a message on the exception port.  */
22077   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
22078                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
22079   if (retval != MACH_MSG_SUCCESS)
22080     abort ();
22081   exit (1);
22082 }
22083 static void
22084 nocrash_init (void)
22085 {
22086   mach_port_t self = mach_task_self ();
22087   /* Allocate a port on which the thread shall listen for exceptions.  */
22088   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
22089       == KERN_SUCCESS) {
22090     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
22091     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
22092                                 MACH_MSG_TYPE_MAKE_SEND)
22093         == KERN_SUCCESS) {
22094       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
22095          for us.  */
22096       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
22097       /* Create the thread listening on the exception port.  */
22098       pthread_attr_t attr;
22099       pthread_t thread;
22100       if (pthread_attr_init (&attr) == 0
22101           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
22102           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
22103         pthread_attr_destroy (&attr);
22104         /* Replace the exception port info for these exceptions with our own.
22105            Note that we replace the exception port for the entire task, not only
22106            for a particular thread.  This has the effect that when our exception
22107            port gets the message, the thread specific exception port has already
22108            been asked, and we don't need to bother about it.
22109            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
22110         task_set_exception_ports (self, mask, our_exception_port,
22111                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
22112       }
22113     }
22114   }
22115 }
22116 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22117 /* Avoid a crash on native Windows.  */
22118 #define WIN32_LEAN_AND_MEAN
22119 #include <windows.h>
22120 #include <winerror.h>
22121 static LONG WINAPI
22122 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
22123 {
22124   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
22125     {
22126     case EXCEPTION_ACCESS_VIOLATION:
22127     case EXCEPTION_IN_PAGE_ERROR:
22128     case EXCEPTION_STACK_OVERFLOW:
22129     case EXCEPTION_GUARD_PAGE:
22130     case EXCEPTION_PRIV_INSTRUCTION:
22131     case EXCEPTION_ILLEGAL_INSTRUCTION:
22132     case EXCEPTION_DATATYPE_MISALIGNMENT:
22133     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
22134     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
22135       exit (1);
22136     }
22137   return EXCEPTION_CONTINUE_SEARCH;
22138 }
22139 static void
22140 nocrash_init (void)
22141 {
22142   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
22143 }
22144 #else
22145 /* Avoid a crash on POSIX systems.  */
22146 #include <signal.h>
22147 /* A POSIX signal handler.  */
22148 static void
22149 exception_handler (int sig)
22150 {
22151   exit (1);
22152 }
22153 static void
22154 nocrash_init (void)
22155 {
22156 #ifdef SIGSEGV
22157   signal (SIGSEGV, exception_handler);
22158 #endif
22159 #ifdef SIGBUS
22160   signal (SIGBUS, exception_handler);
22161 #endif
22162 }
22163 #endif
22164
22165         #include <stdlib.h>
22166         #include <string.h>
22167
22168 int
22169 main ()
22170 {
22171
22172         int result = 0;
22173         {
22174           char *name = realpath ("conftest.a", NULL);
22175           if (!(name && *name == '/'))
22176             result |= 1;
22177         }
22178         {
22179           char *name = realpath ("conftest.b/../conftest.a", NULL);
22180           if (name != NULL)
22181             result |= 2;
22182         }
22183         {
22184           char *name = realpath ("conftest.a/", NULL);
22185           if (name != NULL)
22186             result |= 4;
22187         }
22188         {
22189           char *name1 = realpath (".", NULL);
22190           char *name2 = realpath ("conftest.d//./..", NULL);
22191           if (strcmp (name1, name2) != 0)
22192             result |= 8;
22193         }
22194         return result;
22195
22196   ;
22197   return 0;
22198 }
22199
22200 _ACEOF
22201 if ac_fn_c_try_run "$LINENO"; then :
22202   gl_cv_func_realpath_works=yes
22203 else
22204   gl_cv_func_realpath_works=no
22205 fi
22206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22207   conftest.$ac_objext conftest.beam conftest.$ac_ext
22208 fi
22209
22210     rm -rf conftest.a conftest.d
22211
22212 fi
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
22214 $as_echo "$gl_cv_func_realpath_works" >&6; }
22215   case "$gl_cv_func_realpath_works" in
22216     *yes)
22217
22218 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
22219
22220       ;;
22221   esac
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233   GNULIB_CHDIR=0;
22234   GNULIB_CHOWN=0;
22235   GNULIB_CLOSE=0;
22236   GNULIB_DUP=0;
22237   GNULIB_DUP2=0;
22238   GNULIB_DUP3=0;
22239   GNULIB_ENVIRON=0;
22240   GNULIB_EUIDACCESS=0;
22241   GNULIB_FACCESSAT=0;
22242   GNULIB_FCHDIR=0;
22243   GNULIB_FCHOWNAT=0;
22244   GNULIB_FDATASYNC=0;
22245   GNULIB_FSYNC=0;
22246   GNULIB_FTRUNCATE=0;
22247   GNULIB_GETCWD=0;
22248   GNULIB_GETDOMAINNAME=0;
22249   GNULIB_GETDTABLESIZE=0;
22250   GNULIB_GETGROUPS=0;
22251   GNULIB_GETHOSTNAME=0;
22252   GNULIB_GETLOGIN=0;
22253   GNULIB_GETLOGIN_R=0;
22254   GNULIB_GETPAGESIZE=0;
22255   GNULIB_GETUSERSHELL=0;
22256   GNULIB_GROUP_MEMBER=0;
22257   GNULIB_ISATTY=0;
22258   GNULIB_LCHOWN=0;
22259   GNULIB_LINK=0;
22260   GNULIB_LINKAT=0;
22261   GNULIB_LSEEK=0;
22262   GNULIB_PIPE=0;
22263   GNULIB_PIPE2=0;
22264   GNULIB_PREAD=0;
22265   GNULIB_PWRITE=0;
22266   GNULIB_READ=0;
22267   GNULIB_READLINK=0;
22268   GNULIB_READLINKAT=0;
22269   GNULIB_RMDIR=0;
22270   GNULIB_SETHOSTNAME=0;
22271   GNULIB_SLEEP=0;
22272   GNULIB_SYMLINK=0;
22273   GNULIB_SYMLINKAT=0;
22274   GNULIB_TTYNAME_R=0;
22275   GNULIB_UNISTD_H_NONBLOCKING=0;
22276   GNULIB_UNISTD_H_SIGPIPE=0;
22277   GNULIB_UNLINK=0;
22278   GNULIB_UNLINKAT=0;
22279   GNULIB_USLEEP=0;
22280   GNULIB_WRITE=0;
22281     HAVE_CHOWN=1;
22282   HAVE_DUP2=1;
22283   HAVE_DUP3=1;
22284   HAVE_EUIDACCESS=1;
22285   HAVE_FACCESSAT=1;
22286   HAVE_FCHDIR=1;
22287   HAVE_FCHOWNAT=1;
22288   HAVE_FDATASYNC=1;
22289   HAVE_FSYNC=1;
22290   HAVE_FTRUNCATE=1;
22291   HAVE_GETDTABLESIZE=1;
22292   HAVE_GETGROUPS=1;
22293   HAVE_GETHOSTNAME=1;
22294   HAVE_GETLOGIN=1;
22295   HAVE_GETPAGESIZE=1;
22296   HAVE_GROUP_MEMBER=1;
22297   HAVE_LCHOWN=1;
22298   HAVE_LINK=1;
22299   HAVE_LINKAT=1;
22300   HAVE_PIPE=1;
22301   HAVE_PIPE2=1;
22302   HAVE_PREAD=1;
22303   HAVE_PWRITE=1;
22304   HAVE_READLINK=1;
22305   HAVE_READLINKAT=1;
22306   HAVE_SETHOSTNAME=1;
22307   HAVE_SLEEP=1;
22308   HAVE_SYMLINK=1;
22309   HAVE_SYMLINKAT=1;
22310   HAVE_UNLINKAT=1;
22311   HAVE_USLEEP=1;
22312   HAVE_DECL_ENVIRON=1;
22313   HAVE_DECL_FCHDIR=1;
22314   HAVE_DECL_FDATASYNC=1;
22315   HAVE_DECL_GETDOMAINNAME=1;
22316   HAVE_DECL_GETLOGIN_R=1;
22317   HAVE_DECL_GETPAGESIZE=1;
22318   HAVE_DECL_GETUSERSHELL=1;
22319   HAVE_DECL_SETHOSTNAME=1;
22320   HAVE_DECL_TTYNAME_R=1;
22321   HAVE_OS_H=0;
22322   HAVE_SYS_PARAM_H=0;
22323   REPLACE_CHOWN=0;
22324   REPLACE_CLOSE=0;
22325   REPLACE_DUP=0;
22326   REPLACE_DUP2=0;
22327   REPLACE_FCHOWNAT=0;
22328   REPLACE_FTRUNCATE=0;
22329   REPLACE_GETCWD=0;
22330   REPLACE_GETDOMAINNAME=0;
22331   REPLACE_GETLOGIN_R=0;
22332   REPLACE_GETGROUPS=0;
22333   REPLACE_GETPAGESIZE=0;
22334   REPLACE_ISATTY=0;
22335   REPLACE_LCHOWN=0;
22336   REPLACE_LINK=0;
22337   REPLACE_LINKAT=0;
22338   REPLACE_LSEEK=0;
22339   REPLACE_PREAD=0;
22340   REPLACE_PWRITE=0;
22341   REPLACE_READ=0;
22342   REPLACE_READLINK=0;
22343   REPLACE_RMDIR=0;
22344   REPLACE_SLEEP=0;
22345   REPLACE_SYMLINK=0;
22346   REPLACE_TTYNAME_R=0;
22347   REPLACE_UNLINK=0;
22348   REPLACE_UNLINKAT=0;
22349   REPLACE_USLEEP=0;
22350   REPLACE_WRITE=0;
22351   UNISTD_H_HAVE_WINSOCK2_H=0;
22352   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
22353
22354
22355
22356
22357
22358
22359   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
22360     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
22361
22362 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
22363
22364   else
22365     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
22366   fi
22367
22368
22369
22370
22371
22372      GNULIB_OPENDIR=0;
22373   GNULIB_READDIR=0;
22374   GNULIB_REWINDDIR=0;
22375   GNULIB_CLOSEDIR=0;
22376   GNULIB_DIRFD=0;
22377   GNULIB_FDOPENDIR=0;
22378   GNULIB_SCANDIR=0;
22379   GNULIB_ALPHASORT=0;
22380     HAVE_OPENDIR=1;
22381   HAVE_READDIR=1;
22382   HAVE_REWINDDIR=1;
22383   HAVE_CLOSEDIR=1;
22384   HAVE_DECL_DIRFD=1;
22385   HAVE_DECL_FDOPENDIR=1;
22386   HAVE_FDOPENDIR=1;
22387   HAVE_SCANDIR=1;
22388   HAVE_ALPHASORT=1;
22389   REPLACE_OPENDIR=0;
22390   REPLACE_CLOSEDIR=0;
22391   REPLACE_DIRFD=0;
22392   REPLACE_FDOPENDIR=0;
22393
22394
22395
22396
22397
22398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
22399 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
22400 if ${gl_cv_have_include_next+:} false; then :
22401   $as_echo_n "(cached) " >&6
22402 else
22403   rm -rf conftestd1a conftestd1b conftestd2
22404      mkdir conftestd1a conftestd1b conftestd2
22405                                                   cat <<EOF > conftestd1a/conftest.h
22406 #define DEFINED_IN_CONFTESTD1
22407 #include_next <conftest.h>
22408 #ifdef DEFINED_IN_CONFTESTD2
22409 int foo;
22410 #else
22411 #error "include_next doesn't work"
22412 #endif
22413 EOF
22414      cat <<EOF > conftestd1b/conftest.h
22415 #define DEFINED_IN_CONFTESTD1
22416 #include <stdio.h>
22417 #include_next <conftest.h>
22418 #ifdef DEFINED_IN_CONFTESTD2
22419 int foo;
22420 #else
22421 #error "include_next doesn't work"
22422 #endif
22423 EOF
22424      cat <<EOF > conftestd2/conftest.h
22425 #ifndef DEFINED_IN_CONFTESTD1
22426 #error "include_next test doesn't work"
22427 #endif
22428 #define DEFINED_IN_CONFTESTD2
22429 EOF
22430      gl_save_CPPFLAGS="$CPPFLAGS"
22431      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
22432      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h.  */
22434 #include <conftest.h>
22435 _ACEOF
22436 if ac_fn_c_try_compile "$LINENO"; then :
22437   gl_cv_have_include_next=yes
22438 else
22439   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
22440         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22441 /* end confdefs.h.  */
22442 #include <conftest.h>
22443 _ACEOF
22444 if ac_fn_c_try_compile "$LINENO"; then :
22445   gl_cv_have_include_next=buggy
22446 else
22447   gl_cv_have_include_next=no
22448 fi
22449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450
22451 fi
22452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22453      CPPFLAGS="$gl_save_CPPFLAGS"
22454      rm -rf conftestd1a conftestd1b conftestd2
22455
22456 fi
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
22458 $as_echo "$gl_cv_have_include_next" >&6; }
22459   PRAGMA_SYSTEM_HEADER=
22460   if test $gl_cv_have_include_next = yes; then
22461     INCLUDE_NEXT=include_next
22462     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
22463     if test -n "$GCC"; then
22464       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
22465     fi
22466   else
22467     if test $gl_cv_have_include_next = buggy; then
22468       INCLUDE_NEXT=include
22469       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
22470     else
22471       INCLUDE_NEXT=include
22472       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
22473     fi
22474   fi
22475
22476
22477
22478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
22479 $as_echo_n "checking whether system header files limit the line length... " >&6; }
22480 if ${gl_cv_pragma_columns+:} false; then :
22481   $as_echo_n "(cached) " >&6
22482 else
22483        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h.  */
22485
22486 #ifdef __TANDEM
22487 choke me
22488 #endif
22489
22490 _ACEOF
22491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22492   $EGREP "choke me" >/dev/null 2>&1; then :
22493   gl_cv_pragma_columns=yes
22494 else
22495   gl_cv_pragma_columns=no
22496 fi
22497 rm -f conftest*
22498
22499
22500 fi
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
22502 $as_echo "$gl_cv_pragma_columns" >&6; }
22503   if test $gl_cv_pragma_columns = yes; then
22504     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
22505   else
22506     PRAGMA_COLUMNS=
22507   fi
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
22520 $as_echo_n "checking if environ is properly declared... " >&6; }
22521   if ${gt_cv_var_environ_declaration+:} false; then :
22522   $as_echo_n "(cached) " >&6
22523 else
22524
22525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22526 /* end confdefs.h.  */
22527 #if HAVE_UNISTD_H
22528      #include <unistd.h>
22529      #endif
22530      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
22531      #include <stdlib.h>
22532
22533            extern struct { int foo; } environ;
22534 int
22535 main ()
22536 {
22537 environ.foo = 1;
22538   ;
22539   return 0;
22540 }
22541 _ACEOF
22542 if ac_fn_c_try_compile "$LINENO"; then :
22543   gt_cv_var_environ_declaration=no
22544 else
22545   gt_cv_var_environ_declaration=yes
22546 fi
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548 fi
22549
22550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
22551 $as_echo "$gt_cv_var_environ_declaration" >&6; }
22552   if test $gt_cv_var_environ_declaration = yes; then
22553
22554 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
22555
22556   fi
22557
22558
22559   if test $gt_cv_var_environ_declaration != yes; then
22560     HAVE_DECL_ENVIRON=0
22561   fi
22562
22563
22564
22565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
22566 $as_echo_n "checking for complete errno.h... " >&6; }
22567 if ${gl_cv_header_errno_h_complete+:} false; then :
22568   $as_echo_n "(cached) " >&6
22569 else
22570
22571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22572 /* end confdefs.h.  */
22573
22574 #include <errno.h>
22575 #if !defined ETXTBSY
22576 booboo
22577 #endif
22578 #if !defined ENOMSG
22579 booboo
22580 #endif
22581 #if !defined EIDRM
22582 booboo
22583 #endif
22584 #if !defined ENOLINK
22585 booboo
22586 #endif
22587 #if !defined EPROTO
22588 booboo
22589 #endif
22590 #if !defined EMULTIHOP
22591 booboo
22592 #endif
22593 #if !defined EBADMSG
22594 booboo
22595 #endif
22596 #if !defined EOVERFLOW
22597 booboo
22598 #endif
22599 #if !defined ENOTSUP
22600 booboo
22601 #endif
22602 #if !defined ENETRESET
22603 booboo
22604 #endif
22605 #if !defined ECONNABORTED
22606 booboo
22607 #endif
22608 #if !defined ESTALE
22609 booboo
22610 #endif
22611 #if !defined EDQUOT
22612 booboo
22613 #endif
22614 #if !defined ECANCELED
22615 booboo
22616 #endif
22617 #if !defined EOWNERDEAD
22618 booboo
22619 #endif
22620 #if !defined ENOTRECOVERABLE
22621 booboo
22622 #endif
22623 #if !defined EILSEQ
22624 booboo
22625 #endif
22626
22627 _ACEOF
22628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22629   $EGREP "booboo" >/dev/null 2>&1; then :
22630   gl_cv_header_errno_h_complete=no
22631 else
22632   gl_cv_header_errno_h_complete=yes
22633 fi
22634 rm -f conftest*
22635
22636
22637 fi
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
22639 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
22640   if test $gl_cv_header_errno_h_complete = yes; then
22641     ERRNO_H=''
22642   else
22643
22644
22645
22646
22647
22648
22649
22650
22651      if test $gl_cv_have_include_next = yes; then
22652        gl_cv_next_errno_h='<'errno.h'>'
22653      else
22654        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
22655 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
22656 if ${gl_cv_next_errno_h+:} false; then :
22657   $as_echo_n "(cached) " >&6
22658 else
22659
22660                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22661 /* end confdefs.h.  */
22662 #include <errno.h>
22663
22664 _ACEOF
22665                                                                                                                         case "$host_os" in
22666                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22667                  *)    gl_absname_cpp="$ac_cpp" ;;
22668                esac
22669
22670                case "$host_os" in
22671                  mingw*)
22672                                                                                                                                      gl_dirsep_regex='[/\\]'
22673                    ;;
22674                  *)
22675                    gl_dirsep_regex='\/'
22676                    ;;
22677                esac
22678                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22679
22680                gl_header_literal_regex=`echo 'errno.h' \
22681                                         | sed -e "$gl_make_literal_regex_sed"`
22682                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22683                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22684                    s|^/[^/]|//&|
22685                    p
22686                    q
22687                  }'
22688                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22689                       sed -n "$gl_absolute_header_sed"`'"'
22690
22691
22692 fi
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
22694 $as_echo "$gl_cv_next_errno_h" >&6; }
22695      fi
22696      NEXT_ERRNO_H=$gl_cv_next_errno_h
22697
22698      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22699        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22700        gl_next_as_first_directive='<'errno.h'>'
22701      else
22702        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22703        gl_next_as_first_directive=$gl_cv_next_errno_h
22704      fi
22705      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
22706
22707
22708
22709
22710     ERRNO_H='errno.h'
22711   fi
22712
22713    if test -n "$ERRNO_H"; then
22714   GL_GENERATE_ERRNO_H_TRUE=
22715   GL_GENERATE_ERRNO_H_FALSE='#'
22716 else
22717   GL_GENERATE_ERRNO_H_TRUE='#'
22718   GL_GENERATE_ERRNO_H_FALSE=
22719 fi
22720
22721
22722   if test -n "$ERRNO_H"; then
22723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
22724 $as_echo_n "checking for EMULTIHOP value... " >&6; }
22725 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
22726   $as_echo_n "(cached) " >&6
22727 else
22728
22729       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h.  */
22731
22732 #include <errno.h>
22733 #ifdef EMULTIHOP
22734 yes
22735 #endif
22736
22737 _ACEOF
22738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22739   $EGREP "yes" >/dev/null 2>&1; then :
22740   gl_cv_header_errno_h_EMULTIHOP=yes
22741 else
22742   gl_cv_header_errno_h_EMULTIHOP=no
22743 fi
22744 rm -f conftest*
22745
22746       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
22747         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22748 /* end confdefs.h.  */
22749
22750 #define _XOPEN_SOURCE_EXTENDED 1
22751 #include <errno.h>
22752 #ifdef EMULTIHOP
22753 yes
22754 #endif
22755
22756 _ACEOF
22757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22758   $EGREP "yes" >/dev/null 2>&1; then :
22759   gl_cv_header_errno_h_EMULTIHOP=hidden
22760 fi
22761 rm -f conftest*
22762
22763         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
22764                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
22765 #define _XOPEN_SOURCE_EXTENDED 1
22766 #include <errno.h>
22767 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
22768 #include <stdio.h>
22769 #include <stdlib.h>
22770 "; then :
22771
22772 fi
22773
22774         fi
22775       fi
22776
22777 fi
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
22779 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
22780     case $gl_cv_header_errno_h_EMULTIHOP in
22781       yes | no)
22782         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
22783         ;;
22784       *)
22785         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
22786         ;;
22787     esac
22788
22789
22790   fi
22791
22792
22793   if test -n "$ERRNO_H"; then
22794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
22795 $as_echo_n "checking for ENOLINK value... " >&6; }
22796 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
22797   $as_echo_n "(cached) " >&6
22798 else
22799
22800       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801 /* end confdefs.h.  */
22802
22803 #include <errno.h>
22804 #ifdef ENOLINK
22805 yes
22806 #endif
22807
22808 _ACEOF
22809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22810   $EGREP "yes" >/dev/null 2>&1; then :
22811   gl_cv_header_errno_h_ENOLINK=yes
22812 else
22813   gl_cv_header_errno_h_ENOLINK=no
22814 fi
22815 rm -f conftest*
22816
22817       if test $gl_cv_header_errno_h_ENOLINK = no; then
22818         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22819 /* end confdefs.h.  */
22820
22821 #define _XOPEN_SOURCE_EXTENDED 1
22822 #include <errno.h>
22823 #ifdef ENOLINK
22824 yes
22825 #endif
22826
22827 _ACEOF
22828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22829   $EGREP "yes" >/dev/null 2>&1; then :
22830   gl_cv_header_errno_h_ENOLINK=hidden
22831 fi
22832 rm -f conftest*
22833
22834         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
22835                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
22836 #define _XOPEN_SOURCE_EXTENDED 1
22837 #include <errno.h>
22838 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
22839 #include <stdio.h>
22840 #include <stdlib.h>
22841 "; then :
22842
22843 fi
22844
22845         fi
22846       fi
22847
22848 fi
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
22850 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
22851     case $gl_cv_header_errno_h_ENOLINK in
22852       yes | no)
22853         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
22854         ;;
22855       *)
22856         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
22857         ;;
22858     esac
22859
22860
22861   fi
22862
22863
22864   if test -n "$ERRNO_H"; then
22865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
22866 $as_echo_n "checking for EOVERFLOW value... " >&6; }
22867 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
22868   $as_echo_n "(cached) " >&6
22869 else
22870
22871       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22872 /* end confdefs.h.  */
22873
22874 #include <errno.h>
22875 #ifdef EOVERFLOW
22876 yes
22877 #endif
22878
22879 _ACEOF
22880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22881   $EGREP "yes" >/dev/null 2>&1; then :
22882   gl_cv_header_errno_h_EOVERFLOW=yes
22883 else
22884   gl_cv_header_errno_h_EOVERFLOW=no
22885 fi
22886 rm -f conftest*
22887
22888       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
22889         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h.  */
22891
22892 #define _XOPEN_SOURCE_EXTENDED 1
22893 #include <errno.h>
22894 #ifdef EOVERFLOW
22895 yes
22896 #endif
22897
22898 _ACEOF
22899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22900   $EGREP "yes" >/dev/null 2>&1; then :
22901   gl_cv_header_errno_h_EOVERFLOW=hidden
22902 fi
22903 rm -f conftest*
22904
22905         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
22906                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
22907 #define _XOPEN_SOURCE_EXTENDED 1
22908 #include <errno.h>
22909 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
22910 #include <stdio.h>
22911 #include <stdlib.h>
22912 "; then :
22913
22914 fi
22915
22916         fi
22917       fi
22918
22919 fi
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
22921 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
22922     case $gl_cv_header_errno_h_EOVERFLOW in
22923       yes | no)
22924         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
22925         ;;
22926       *)
22927         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
22928         ;;
22929     esac
22930
22931
22932   fi
22933
22934
22935 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
22936 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
22937   ac_have_decl=1
22938 else
22939   ac_have_decl=0
22940 fi
22941
22942 cat >>confdefs.h <<_ACEOF
22943 #define HAVE_DECL_STRERROR_R $ac_have_decl
22944 _ACEOF
22945
22946 for ac_func in strerror_r
22947 do :
22948   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22949 if test "x$ac_cv_func_strerror_r" = xyes; then :
22950   cat >>confdefs.h <<_ACEOF
22951 #define HAVE_STRERROR_R 1
22952 _ACEOF
22953
22954 fi
22955 done
22956
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
22958 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
22959 if ${ac_cv_func_strerror_r_char_p+:} false; then :
22960   $as_echo_n "(cached) " >&6
22961 else
22962
22963     ac_cv_func_strerror_r_char_p=no
22964     if test $ac_cv_have_decl_strerror_r = yes; then
22965       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22966 /* end confdefs.h.  */
22967 $ac_includes_default
22968 int
22969 main ()
22970 {
22971
22972           char buf[100];
22973           char x = *strerror_r (0, buf, sizeof buf);
22974           char *p = strerror_r (0, buf, sizeof buf);
22975           return !p || x;
22976
22977   ;
22978   return 0;
22979 }
22980 _ACEOF
22981 if ac_fn_c_try_compile "$LINENO"; then :
22982   ac_cv_func_strerror_r_char_p=yes
22983 fi
22984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985     else
22986       # strerror_r is not declared.  Choose between
22987       # systems that have relatively inaccessible declarations for the
22988       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
22989       # former has a strerror_r that returns char*, while the latter
22990       # has a strerror_r that returns `int'.
22991       # This test should segfault on the DEC system.
22992       if test "$cross_compiling" = yes; then :
22993   :
22994 else
22995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h.  */
22997 $ac_includes_default
22998         extern char *strerror_r ();
22999 int
23000 main ()
23001 {
23002 char buf[100];
23003           char x = *strerror_r (0, buf, sizeof buf);
23004           return ! isalpha (x);
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 if ac_fn_c_try_run "$LINENO"; then :
23010   ac_cv_func_strerror_r_char_p=yes
23011 fi
23012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23013   conftest.$ac_objext conftest.beam conftest.$ac_ext
23014 fi
23015
23016     fi
23017
23018 fi
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
23020 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
23021 if test $ac_cv_func_strerror_r_char_p = yes; then
23022
23023 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
23024
23025 fi
23026
23027
23028   XGETTEXT_EXTRA_OPTIONS=
23029
23030 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23031 if test "x$ac_cv_type_mode_t" = xyes; then :
23032
23033 else
23034
23035 cat >>confdefs.h <<_ACEOF
23036 #define mode_t int
23037 _ACEOF
23038
23039 fi
23040
23041
23042   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
23043 "
23044 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
23045
23046 cat >>confdefs.h <<_ACEOF
23047 #define HAVE_SIG_ATOMIC_T 1
23048 _ACEOF
23049
23050
23051 else
23052
23053 $as_echo "#define sig_atomic_t int" >>confdefs.h
23054
23055 fi
23056
23057
23058
23059   GNULIB_FCNTL=0;
23060   GNULIB_NONBLOCKING=0;
23061   GNULIB_OPEN=0;
23062   GNULIB_OPENAT=0;
23063     HAVE_FCNTL=1;
23064   HAVE_OPENAT=1;
23065   REPLACE_FCNTL=0;
23066   REPLACE_OPEN=0;
23067   REPLACE_OPENAT=0;
23068
23069
23070
23071 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23072 if test "x$ac_cv_type_pid_t" = xyes; then :
23073
23074 else
23075
23076 cat >>confdefs.h <<_ACEOF
23077 #define pid_t int
23078 _ACEOF
23079
23080 fi
23081
23082
23083   ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
23084 if test "x$ac_cv_func_eaccess" = xyes; then :
23085
23086 else
23087
23088 $as_echo "#define eaccess access" >>confdefs.h
23089
23090 fi
23091
23092
23093
23094
23095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23096 $as_echo_n "checking for mbstate_t... " >&6; }
23097 if ${ac_cv_type_mbstate_t+:} false; then :
23098   $as_echo_n "(cached) " >&6
23099 else
23100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23101 /* end confdefs.h.  */
23102 $ac_includes_default
23103 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23104    <wchar.h>.
23105    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23106    included before <wchar.h>.  */
23107 #include <stddef.h>
23108 #include <stdio.h>
23109 #include <time.h>
23110 #include <wchar.h>
23111 int
23112 main ()
23113 {
23114 mbstate_t x; return sizeof x;
23115   ;
23116   return 0;
23117 }
23118 _ACEOF
23119 if ac_fn_c_try_compile "$LINENO"; then :
23120   ac_cv_type_mbstate_t=yes
23121 else
23122   ac_cv_type_mbstate_t=no
23123 fi
23124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125 fi
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23127 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23128    if test $ac_cv_type_mbstate_t = yes; then
23129
23130 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23131
23132    else
23133
23134 $as_echo "#define mbstate_t int" >>confdefs.h
23135
23136    fi
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157   GNULIB_DPRINTF=0;
23158   GNULIB_FCLOSE=0;
23159   GNULIB_FDOPEN=0;
23160   GNULIB_FFLUSH=0;
23161   GNULIB_FGETC=0;
23162   GNULIB_FGETS=0;
23163   GNULIB_FOPEN=0;
23164   GNULIB_FPRINTF=0;
23165   GNULIB_FPRINTF_POSIX=0;
23166   GNULIB_FPURGE=0;
23167   GNULIB_FPUTC=0;
23168   GNULIB_FPUTS=0;
23169   GNULIB_FREAD=0;
23170   GNULIB_FREOPEN=0;
23171   GNULIB_FSCANF=0;
23172   GNULIB_FSEEK=0;
23173   GNULIB_FSEEKO=0;
23174   GNULIB_FTELL=0;
23175   GNULIB_FTELLO=0;
23176   GNULIB_FWRITE=0;
23177   GNULIB_GETC=0;
23178   GNULIB_GETCHAR=0;
23179   GNULIB_GETDELIM=0;
23180   GNULIB_GETLINE=0;
23181   GNULIB_OBSTACK_PRINTF=0;
23182   GNULIB_OBSTACK_PRINTF_POSIX=0;
23183   GNULIB_PCLOSE=0;
23184   GNULIB_PERROR=0;
23185   GNULIB_POPEN=0;
23186   GNULIB_PRINTF=0;
23187   GNULIB_PRINTF_POSIX=0;
23188   GNULIB_PUTC=0;
23189   GNULIB_PUTCHAR=0;
23190   GNULIB_PUTS=0;
23191   GNULIB_REMOVE=0;
23192   GNULIB_RENAME=0;
23193   GNULIB_RENAMEAT=0;
23194   GNULIB_SCANF=0;
23195   GNULIB_SNPRINTF=0;
23196   GNULIB_SPRINTF_POSIX=0;
23197   GNULIB_STDIO_H_NONBLOCKING=0;
23198   GNULIB_STDIO_H_SIGPIPE=0;
23199   GNULIB_TMPFILE=0;
23200   GNULIB_VASPRINTF=0;
23201   GNULIB_VFSCANF=0;
23202   GNULIB_VSCANF=0;
23203   GNULIB_VDPRINTF=0;
23204   GNULIB_VFPRINTF=0;
23205   GNULIB_VFPRINTF_POSIX=0;
23206   GNULIB_VPRINTF=0;
23207   GNULIB_VPRINTF_POSIX=0;
23208   GNULIB_VSNPRINTF=0;
23209   GNULIB_VSPRINTF_POSIX=0;
23210     HAVE_DECL_FPURGE=1;
23211   HAVE_DECL_FSEEKO=1;
23212   HAVE_DECL_FTELLO=1;
23213   HAVE_DECL_GETDELIM=1;
23214   HAVE_DECL_GETLINE=1;
23215   HAVE_DECL_OBSTACK_PRINTF=1;
23216   HAVE_DECL_SNPRINTF=1;
23217   HAVE_DECL_VSNPRINTF=1;
23218   HAVE_DPRINTF=1;
23219   HAVE_FSEEKO=1;
23220   HAVE_FTELLO=1;
23221   HAVE_PCLOSE=1;
23222   HAVE_POPEN=1;
23223   HAVE_RENAMEAT=1;
23224   HAVE_VASPRINTF=1;
23225   HAVE_VDPRINTF=1;
23226   REPLACE_DPRINTF=0;
23227   REPLACE_FCLOSE=0;
23228   REPLACE_FDOPEN=0;
23229   REPLACE_FFLUSH=0;
23230   REPLACE_FOPEN=0;
23231   REPLACE_FPRINTF=0;
23232   REPLACE_FPURGE=0;
23233   REPLACE_FREOPEN=0;
23234   REPLACE_FSEEK=0;
23235   REPLACE_FSEEKO=0;
23236   REPLACE_FTELL=0;
23237   REPLACE_FTELLO=0;
23238   REPLACE_GETDELIM=0;
23239   REPLACE_GETLINE=0;
23240   REPLACE_OBSTACK_PRINTF=0;
23241   REPLACE_PERROR=0;
23242   REPLACE_POPEN=0;
23243   REPLACE_PRINTF=0;
23244   REPLACE_REMOVE=0;
23245   REPLACE_RENAME=0;
23246   REPLACE_RENAMEAT=0;
23247   REPLACE_SNPRINTF=0;
23248   REPLACE_SPRINTF=0;
23249   REPLACE_STDIO_READ_FUNCS=0;
23250   REPLACE_STDIO_WRITE_FUNCS=0;
23251   REPLACE_TMPFILE=0;
23252   REPLACE_VASPRINTF=0;
23253   REPLACE_VDPRINTF=0;
23254   REPLACE_VFPRINTF=0;
23255   REPLACE_VPRINTF=0;
23256   REPLACE_VSNPRINTF=0;
23257   REPLACE_VSPRINTF=0;
23258
23259
23260      GNULIB_FCHMODAT=0;
23261   GNULIB_FSTAT=0;
23262   GNULIB_FSTATAT=0;
23263   GNULIB_FUTIMENS=0;
23264   GNULIB_LCHMOD=0;
23265   GNULIB_LSTAT=0;
23266   GNULIB_MKDIRAT=0;
23267   GNULIB_MKFIFO=0;
23268   GNULIB_MKFIFOAT=0;
23269   GNULIB_MKNOD=0;
23270   GNULIB_MKNODAT=0;
23271   GNULIB_STAT=0;
23272   GNULIB_UTIMENSAT=0;
23273     HAVE_FCHMODAT=1;
23274   HAVE_FSTATAT=1;
23275   HAVE_FUTIMENS=1;
23276   HAVE_LCHMOD=1;
23277   HAVE_LSTAT=1;
23278   HAVE_MKDIRAT=1;
23279   HAVE_MKFIFO=1;
23280   HAVE_MKFIFOAT=1;
23281   HAVE_MKNOD=1;
23282   HAVE_MKNODAT=1;
23283   HAVE_UTIMENSAT=1;
23284   REPLACE_FSTAT=0;
23285   REPLACE_FSTATAT=0;
23286   REPLACE_FUTIMENS=0;
23287   REPLACE_LSTAT=0;
23288   REPLACE_MKDIR=0;
23289   REPLACE_MKFIFO=0;
23290   REPLACE_MKNOD=0;
23291   REPLACE_STAT=0;
23292   REPLACE_UTIMENSAT=0;
23293
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
23295 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
23296 if ${ac_cv_header_stat_broken+:} false; then :
23297   $as_echo_n "(cached) " >&6
23298 else
23299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23300 /* end confdefs.h.  */
23301 #include <sys/types.h>
23302 #include <sys/stat.h>
23303
23304 #if defined S_ISBLK && defined S_IFDIR
23305 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
23306 #endif
23307
23308 #if defined S_ISBLK && defined S_IFCHR
23309 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
23310 #endif
23311
23312 #if defined S_ISLNK && defined S_IFREG
23313 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
23314 #endif
23315
23316 #if defined S_ISSOCK && defined S_IFREG
23317 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23318 #endif
23319
23320 _ACEOF
23321 if ac_fn_c_try_compile "$LINENO"; then :
23322   ac_cv_header_stat_broken=no
23323 else
23324   ac_cv_header_stat_broken=yes
23325 fi
23326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23327 fi
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
23329 $as_echo "$ac_cv_header_stat_broken" >&6; }
23330 if test $ac_cv_header_stat_broken = yes; then
23331
23332 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
23333
23334 fi
23335
23336
23337
23338
23339
23340   case "$host_os" in
23341     mingw*)
23342                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
23343 $as_echo_n "checking for 64-bit off_t... " >&6; }
23344 if ${gl_cv_type_off_t_64+:} false; then :
23345   $as_echo_n "(cached) " >&6
23346 else
23347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23348 /* end confdefs.h.  */
23349 #include <sys/types.h>
23350                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
23351
23352 int
23353 main ()
23354 {
23355
23356   ;
23357   return 0;
23358 }
23359 _ACEOF
23360 if ac_fn_c_try_compile "$LINENO"; then :
23361   gl_cv_type_off_t_64=yes
23362 else
23363   gl_cv_type_off_t_64=no
23364 fi
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366
23367 fi
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
23369 $as_echo "$gl_cv_type_off_t_64" >&6; }
23370       if test $gl_cv_type_off_t_64 = no; then
23371         WINDOWS_64_BIT_OFF_T=1
23372       else
23373         WINDOWS_64_BIT_OFF_T=0
23374       fi
23375                   WINDOWS_64_BIT_ST_SIZE=1
23376       ;;
23377     *)
23378                                                       WINDOWS_64_BIT_OFF_T=0
23379       WINDOWS_64_BIT_ST_SIZE=0
23380       ;;
23381   esac
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397      if test $gl_cv_have_include_next = yes; then
23398        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23399      else
23400        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23401 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23402 if ${gl_cv_next_sys_stat_h+:} false; then :
23403   $as_echo_n "(cached) " >&6
23404 else
23405
23406              if test $ac_cv_header_sys_stat_h = yes; then
23407
23408
23409                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23410 /* end confdefs.h.  */
23411 #include <sys/stat.h>
23412
23413 _ACEOF
23414                                                                                                                         case "$host_os" in
23415                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23416                  *)    gl_absname_cpp="$ac_cpp" ;;
23417                esac
23418
23419                case "$host_os" in
23420                  mingw*)
23421                                                                                                                                      gl_dirsep_regex='[/\\]'
23422                    ;;
23423                  *)
23424                    gl_dirsep_regex='\/'
23425                    ;;
23426                esac
23427                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23428
23429                gl_header_literal_regex=`echo 'sys/stat.h' \
23430                                         | sed -e "$gl_make_literal_regex_sed"`
23431                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23432                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23433                    s|^/[^/]|//&|
23434                    p
23435                    q
23436                  }'
23437                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23438                       sed -n "$gl_absolute_header_sed"`'"'
23439           else
23440                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23441              fi
23442
23443
23444 fi
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23446 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23447      fi
23448      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23449
23450      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23451        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23452        gl_next_as_first_directive='<'sys/stat.h'>'
23453      else
23454        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23455        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23456      fi
23457      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23470
23471 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23472
23473   fi
23474
23475       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23476      #include <sys/stat.h>
23477 "
23478 if test "x$ac_cv_type_nlink_t" = xyes; then :
23479
23480 else
23481
23482 $as_echo "#define nlink_t int" >>confdefs.h
23483
23484 fi
23485
23486
23487
23488     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
23489     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23491 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23492 if eval \${$as_gl_Symbol+:} false; then :
23493   $as_echo_n "(cached) " >&6
23494 else
23495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23496 /* end confdefs.h.  */
23497 #include <sys/stat.h>
23498
23499 int
23500 main ()
23501 {
23502 #undef $gl_func
23503   (void) $gl_func;
23504   ;
23505   return 0;
23506 }
23507 _ACEOF
23508 if ac_fn_c_try_compile "$LINENO"; then :
23509   eval "$as_gl_Symbol=yes"
23510 else
23511   eval "$as_gl_Symbol=no"
23512 fi
23513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23514 fi
23515 eval ac_res=\$$as_gl_Symbol
23516                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23517 $as_echo "$ac_res" >&6; }
23518     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23519   cat >>confdefs.h <<_ACEOF
23520 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23521 _ACEOF
23522
23523                      eval ac_cv_have_decl_$gl_func=yes
23524 fi
23525       done
23526
23527
23528 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
23529 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
23530   ac_have_decl=1
23531 else
23532   ac_have_decl=0
23533 fi
23534
23535 cat >>confdefs.h <<_ACEOF
23536 #define HAVE_DECL_GETDELIM $ac_have_decl
23537 _ACEOF
23538
23539
23540
23541
23542
23543 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
23544 if test "x$ac_cv_have_decl_getline" = xyes; then :
23545   ac_have_decl=1
23546 else
23547   ac_have_decl=0
23548 fi
23549
23550 cat >>confdefs.h <<_ACEOF
23551 #define HAVE_DECL_GETLINE $ac_have_decl
23552 _ACEOF
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569      if test $gl_cv_have_include_next = yes; then
23570        gl_cv_next_getopt_h='<'getopt.h'>'
23571      else
23572        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
23573 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
23574 if ${gl_cv_next_getopt_h+:} false; then :
23575   $as_echo_n "(cached) " >&6
23576 else
23577
23578              if test $ac_cv_header_getopt_h = yes; then
23579
23580
23581                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23582 /* end confdefs.h.  */
23583 #include <getopt.h>
23584
23585 _ACEOF
23586                                                                                                                         case "$host_os" in
23587                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23588                  *)    gl_absname_cpp="$ac_cpp" ;;
23589                esac
23590
23591                case "$host_os" in
23592                  mingw*)
23593                                                                                                                                      gl_dirsep_regex='[/\\]'
23594                    ;;
23595                  *)
23596                    gl_dirsep_regex='\/'
23597                    ;;
23598                esac
23599                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23600
23601                gl_header_literal_regex=`echo 'getopt.h' \
23602                                         | sed -e "$gl_make_literal_regex_sed"`
23603                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23604                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23605                    s|^/[^/]|//&|
23606                    p
23607                    q
23608                  }'
23609                                                             gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23610                       sed -n "$gl_absolute_header_sed"`'"'
23611           else
23612                gl_cv_next_getopt_h='<'getopt.h'>'
23613              fi
23614
23615
23616 fi
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
23618 $as_echo "$gl_cv_next_getopt_h" >&6; }
23619      fi
23620      NEXT_GETOPT_H=$gl_cv_next_getopt_h
23621
23622      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23623        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23624        gl_next_as_first_directive='<'getopt.h'>'
23625      else
23626        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23627        gl_next_as_first_directive=$gl_cv_next_getopt_h
23628      fi
23629      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
23630
23631
23632
23633
23634   if test $ac_cv_header_getopt_h = yes; then
23635     HAVE_GETOPT_H=1
23636   else
23637     HAVE_GETOPT_H=0
23638   fi
23639
23640
23641   gl_replace_getopt=
23642
23643     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
23644     for ac_header in getopt.h
23645 do :
23646   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
23647 if test "x$ac_cv_header_getopt_h" = xyes; then :
23648   cat >>confdefs.h <<_ACEOF
23649 #define HAVE_GETOPT_H 1
23650 _ACEOF
23651
23652 else
23653   gl_replace_getopt=yes
23654 fi
23655
23656 done
23657
23658   fi
23659
23660     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
23661     for ac_func in getopt_long_only
23662 do :
23663   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
23664 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
23665   cat >>confdefs.h <<_ACEOF
23666 #define HAVE_GETOPT_LONG_ONLY 1
23667 _ACEOF
23668
23669 else
23670   gl_replace_getopt=yes
23671 fi
23672 done
23673
23674   fi
23675
23676           if test -z "$gl_replace_getopt"; then
23677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
23678 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
23679 if ${gl_cv_func_getopt_posix+:} false; then :
23680   $as_echo_n "(cached) " >&6
23681 else
23682
23683                                                 if test $cross_compiling = no; then
23684                               if test "$cross_compiling" = yes; then :
23685   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23687 as_fn_error $? "cannot run test program while cross compiling
23688 See \`config.log' for more details" "$LINENO" 5; }
23689 else
23690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23691 /* end confdefs.h.  */
23692
23693 #include <unistd.h>
23694 #include <stdlib.h>
23695 #include <string.h>
23696
23697 int
23698 main ()
23699 {
23700   static char program[] = "program";
23701   static char a[] = "-a";
23702   static char foo[] = "foo";
23703   static char bar[] = "bar";
23704   char *argv[] = { program, a, foo, bar, NULL };
23705   int c;
23706
23707   c = getopt (4, argv, "ab");
23708   if (!(c == 'a'))
23709     return 1;
23710   c = getopt (4, argv, "ab");
23711   if (!(c == -1))
23712     return 2;
23713   if (!(optind == 2))
23714     return 3;
23715   return 0;
23716 }
23717
23718 _ACEOF
23719 if ac_fn_c_try_run "$LINENO"; then :
23720   gl_cv_func_getopt_posix=maybe
23721 else
23722   gl_cv_func_getopt_posix=no
23723 fi
23724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23725   conftest.$ac_objext conftest.beam conftest.$ac_ext
23726 fi
23727
23728           if test $gl_cv_func_getopt_posix = maybe; then
23729                                     if test "$cross_compiling" = yes; then :
23730   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23732 as_fn_error $? "cannot run test program while cross compiling
23733 See \`config.log' for more details" "$LINENO" 5; }
23734 else
23735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23736 /* end confdefs.h.  */
23737
23738 #include <unistd.h>
23739 #include <stdlib.h>
23740 #include <string.h>
23741
23742 int
23743 main ()
23744 {
23745   static char program[] = "program";
23746   static char donald[] = "donald";
23747   static char p[] = "-p";
23748   static char billy[] = "billy";
23749   static char duck[] = "duck";
23750   static char a[] = "-a";
23751   static char bar[] = "bar";
23752   char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
23753   int c;
23754
23755   c = getopt (7, argv, "+abp:q:");
23756   if (!(c == -1))
23757     return 4;
23758   if (!(strcmp (argv[0], "program") == 0))
23759     return 5;
23760   if (!(strcmp (argv[1], "donald") == 0))
23761     return 6;
23762   if (!(strcmp (argv[2], "-p") == 0))
23763     return 7;
23764   if (!(strcmp (argv[3], "billy") == 0))
23765     return 8;
23766   if (!(strcmp (argv[4], "duck") == 0))
23767     return 9;
23768   if (!(strcmp (argv[5], "-a") == 0))
23769     return 10;
23770   if (!(strcmp (argv[6], "bar") == 0))
23771     return 11;
23772   if (!(optind == 1))
23773     return 12;
23774   return 0;
23775 }
23776
23777 _ACEOF
23778 if ac_fn_c_try_run "$LINENO"; then :
23779   gl_cv_func_getopt_posix=maybe
23780 else
23781   gl_cv_func_getopt_posix=no
23782 fi
23783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23784   conftest.$ac_objext conftest.beam conftest.$ac_ext
23785 fi
23786
23787           fi
23788           if test $gl_cv_func_getopt_posix = maybe; then
23789                         if test "$cross_compiling" = yes; then :
23790   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23792 as_fn_error $? "cannot run test program while cross compiling
23793 See \`config.log' for more details" "$LINENO" 5; }
23794 else
23795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23796 /* end confdefs.h.  */
23797
23798 #include <unistd.h>
23799 #include <stdlib.h>
23800 #include <string.h>
23801
23802 int
23803 main ()
23804 {
23805   static char program[] = "program";
23806   static char ab[] = "-ab";
23807   char *argv[3] = { program, ab, NULL };
23808   if (getopt (2, argv, "ab:") != 'a')
23809     return 13;
23810   if (getopt (2, argv, "ab:") != '?')
23811     return 14;
23812   if (optopt != 'b')
23813     return 15;
23814   if (optind != 2)
23815     return 16;
23816   return 0;
23817 }
23818
23819 _ACEOF
23820 if ac_fn_c_try_run "$LINENO"; then :
23821   gl_cv_func_getopt_posix=yes
23822 else
23823   gl_cv_func_getopt_posix=no
23824 fi
23825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23826   conftest.$ac_objext conftest.beam conftest.$ac_ext
23827 fi
23828
23829           fi
23830         else
23831           case "$host_os" in
23832             darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
23833             *)                       gl_cv_func_getopt_posix="guessing yes";;
23834           esac
23835         fi
23836
23837 fi
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
23839 $as_echo "$gl_cv_func_getopt_posix" >&6; }
23840     case "$gl_cv_func_getopt_posix" in
23841       *no) gl_replace_getopt=yes ;;
23842     esac
23843   fi
23844
23845   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
23846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
23847 $as_echo_n "checking for working GNU getopt function... " >&6; }
23848 if ${gl_cv_func_getopt_gnu+:} false; then :
23849   $as_echo_n "(cached) " >&6
23850 else
23851   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
23852        # optstring is necessary for programs like m4 that have POSIX-mandated
23853        # semantics for supporting options interspersed with files.
23854        # Also, since getopt_long is a GNU extension, we require optind=0.
23855        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
23856        # so take care to revert to the correct (non-)export state.
23857        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
23858        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
23859          xx) gl_had_POSIXLY_CORRECT=exported ;;
23860          x)  gl_had_POSIXLY_CORRECT=yes      ;;
23861          *)  gl_had_POSIXLY_CORRECT=         ;;
23862        esac
23863        POSIXLY_CORRECT=1
23864        export POSIXLY_CORRECT
23865        if test "$cross_compiling" = yes; then :
23866            gl_cv_func_getopt_gnu="guessing no"
23867
23868 else
23869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23870 /* end confdefs.h.  */
23871 #include <getopt.h>
23872                            #include <stddef.h>
23873                            #include <string.h>
23874
23875 #include <stdlib.h>
23876 #if defined __MACH__ && defined __APPLE__
23877 /* Avoid a crash on Mac OS X.  */
23878 #include <mach/mach.h>
23879 #include <mach/mach_error.h>
23880 #include <mach/thread_status.h>
23881 #include <mach/exception.h>
23882 #include <mach/task.h>
23883 #include <pthread.h>
23884 /* The exception port on which our thread listens.  */
23885 static mach_port_t our_exception_port;
23886 /* The main function of the thread listening for exceptions of type
23887    EXC_BAD_ACCESS.  */
23888 static void *
23889 mach_exception_thread (void *arg)
23890 {
23891   /* Buffer for a message to be received.  */
23892   struct {
23893     mach_msg_header_t head;
23894     mach_msg_body_t msgh_body;
23895     char data[1024];
23896   } msg;
23897   mach_msg_return_t retval;
23898   /* Wait for a message on the exception port.  */
23899   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
23900                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
23901   if (retval != MACH_MSG_SUCCESS)
23902     abort ();
23903   exit (1);
23904 }
23905 static void
23906 nocrash_init (void)
23907 {
23908   mach_port_t self = mach_task_self ();
23909   /* Allocate a port on which the thread shall listen for exceptions.  */
23910   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
23911       == KERN_SUCCESS) {
23912     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
23913     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
23914                                 MACH_MSG_TYPE_MAKE_SEND)
23915         == KERN_SUCCESS) {
23916       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
23917          for us.  */
23918       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
23919       /* Create the thread listening on the exception port.  */
23920       pthread_attr_t attr;
23921       pthread_t thread;
23922       if (pthread_attr_init (&attr) == 0
23923           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
23924           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
23925         pthread_attr_destroy (&attr);
23926         /* Replace the exception port info for these exceptions with our own.
23927            Note that we replace the exception port for the entire task, not only
23928            for a particular thread.  This has the effect that when our exception
23929            port gets the message, the thread specific exception port has already
23930            been asked, and we don't need to bother about it.
23931            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
23932         task_set_exception_ports (self, mask, our_exception_port,
23933                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
23934       }
23935     }
23936   }
23937 }
23938 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23939 /* Avoid a crash on native Windows.  */
23940 #define WIN32_LEAN_AND_MEAN
23941 #include <windows.h>
23942 #include <winerror.h>
23943 static LONG WINAPI
23944 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
23945 {
23946   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
23947     {
23948     case EXCEPTION_ACCESS_VIOLATION:
23949     case EXCEPTION_IN_PAGE_ERROR:
23950     case EXCEPTION_STACK_OVERFLOW:
23951     case EXCEPTION_GUARD_PAGE:
23952     case EXCEPTION_PRIV_INSTRUCTION:
23953     case EXCEPTION_ILLEGAL_INSTRUCTION:
23954     case EXCEPTION_DATATYPE_MISALIGNMENT:
23955     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
23956     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
23957       exit (1);
23958     }
23959   return EXCEPTION_CONTINUE_SEARCH;
23960 }
23961 static void
23962 nocrash_init (void)
23963 {
23964   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
23965 }
23966 #else
23967 /* Avoid a crash on POSIX systems.  */
23968 #include <signal.h>
23969 /* A POSIX signal handler.  */
23970 static void
23971 exception_handler (int sig)
23972 {
23973   exit (1);
23974 }
23975 static void
23976 nocrash_init (void)
23977 {
23978 #ifdef SIGSEGV
23979   signal (SIGSEGV, exception_handler);
23980 #endif
23981 #ifdef SIGBUS
23982   signal (SIGBUS, exception_handler);
23983 #endif
23984 }
23985 #endif
23986
23987
23988 int
23989 main ()
23990 {
23991
23992              int result = 0;
23993
23994              nocrash_init();
23995
23996              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
23997                 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
23998                 OSF/1 5.1, Solaris 10.  */
23999              {
24000                static char conftest[] = "conftest";
24001                static char plus[] = "-+";
24002                char *argv[3] = { conftest, plus, NULL };
24003                opterr = 0;
24004                if (getopt (2, argv, "+a") != '?')
24005                  result |= 1;
24006              }
24007              /* This code succeeds on glibc 2.8, mingw,
24008                 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
24009                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
24010              {
24011                static char program[] = "program";
24012                static char p[] = "-p";
24013                static char foo[] = "foo";
24014                static char bar[] = "bar";
24015                char *argv[] = { program, p, foo, bar, NULL };
24016
24017                optind = 1;
24018                if (getopt (4, argv, "p::") != 'p')
24019                  result |= 2;
24020                else if (optarg != NULL)
24021                  result |= 4;
24022                else if (getopt (4, argv, "p::") != -1)
24023                  result |= 6;
24024                else if (optind != 2)
24025                  result |= 8;
24026              }
24027              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
24028              {
24029                static char program[] = "program";
24030                static char foo[] = "foo";
24031                static char p[] = "-p";
24032                char *argv[] = { program, foo, p, NULL };
24033                optind = 0;
24034                if (getopt (3, argv, "-p") != 1)
24035                  result |= 16;
24036                else if (getopt (3, argv, "-p") != 'p')
24037                  result |= 16;
24038              }
24039              /* This code fails on glibc 2.11.  */
24040              {
24041                static char program[] = "program";
24042                static char b[] = "-b";
24043                static char a[] = "-a";
24044                char *argv[] = { program, b, a, NULL };
24045                optind = opterr = 0;
24046                if (getopt (3, argv, "+:a:b") != 'b')
24047                  result |= 32;
24048                else if (getopt (3, argv, "+:a:b") != ':')
24049                  result |= 32;
24050              }
24051              /* This code dumps core on glibc 2.14.  */
24052              {
24053                static char program[] = "program";
24054                static char w[] = "-W";
24055                static char dummy[] = "dummy";
24056                char *argv[] = { program, w, dummy, NULL };
24057                optind = opterr = 1;
24058                if (getopt (3, argv, "W;") != 'W')
24059                  result |= 64;
24060              }
24061              return result;
24062
24063   ;
24064   return 0;
24065 }
24066 _ACEOF
24067 if ac_fn_c_try_run "$LINENO"; then :
24068   gl_cv_func_getopt_gnu=yes
24069 else
24070   gl_cv_func_getopt_gnu=no
24071 fi
24072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24073   conftest.$ac_objext conftest.beam conftest.$ac_ext
24074 fi
24075
24076        case $gl_had_POSIXLY_CORRECT in
24077          exported) ;;
24078          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
24079          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
24080        esac
24081
24082 fi
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
24084 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
24085     if test "$gl_cv_func_getopt_gnu" != yes; then
24086       gl_replace_getopt=yes
24087     else
24088       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
24089 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
24090 if ${gl_cv_func_getopt_long_gnu+:} false; then :
24091   $as_echo_n "(cached) " >&6
24092 else
24093   if test "$cross_compiling" = yes; then :
24094               case "$host_os" in
24095               openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
24096               *)        gl_cv_func_getopt_long_gnu="guessing yes";;
24097             esac
24098
24099 else
24100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24101 /* end confdefs.h.  */
24102 #include <getopt.h>
24103                 #include <stddef.h>
24104                 #include <string.h>
24105
24106 int
24107 main ()
24108 {
24109 static const struct option long_options[] =
24110                   {
24111                     { "xtremely-",no_argument,       NULL, 1003 },
24112                     { "xtra",     no_argument,       NULL, 1001 },
24113                     { "xtreme",   no_argument,       NULL, 1002 },
24114                     { "xtremely", no_argument,       NULL, 1003 },
24115                     { NULL,       0,                 NULL, 0 }
24116                   };
24117                 /* This code fails on OpenBSD 5.0.  */
24118                 {
24119                   static char program[] = "program";
24120                   static char xtremel[] = "--xtremel";
24121                   char *argv[] = { program, xtremel, NULL };
24122                   int option_index;
24123                   optind = 1; opterr = 0;
24124                   if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
24125                     return 1;
24126                 }
24127                 return 0;
24128
24129   ;
24130   return 0;
24131 }
24132 _ACEOF
24133 if ac_fn_c_try_run "$LINENO"; then :
24134   gl_cv_func_getopt_long_gnu=yes
24135 else
24136   gl_cv_func_getopt_long_gnu=no
24137 fi
24138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24139   conftest.$ac_objext conftest.beam conftest.$ac_ext
24140 fi
24141
24142
24143 fi
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
24145 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
24146       case "$gl_cv_func_getopt_long_gnu" in
24147         *yes) ;;
24148         *) gl_replace_getopt=yes ;;
24149       esac
24150     fi
24151   fi
24152
24153
24154
24155
24156
24157
24158     REPLACE_GETOPT=0
24159     if test -n "$gl_replace_getopt"; then
24160       REPLACE_GETOPT=1
24161     fi
24162
24163   if test $REPLACE_GETOPT = 1; then
24164
24165   GETOPT_H=getopt.h
24166
24167 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
24168
24169
24170
24171   fi
24172
24173 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
24174 if test "x$ac_cv_have_decl_getenv" = xyes; then :
24175   ac_have_decl=1
24176 else
24177   ac_have_decl=0
24178 fi
24179
24180 cat >>confdefs.h <<_ACEOF
24181 #define HAVE_DECL_GETENV $ac_have_decl
24182 _ACEOF
24183
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
24185 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24186 if ${ac_cv_c_restrict+:} false; then :
24187   $as_echo_n "(cached) " >&6
24188 else
24189   ac_cv_c_restrict=no
24190    # The order here caters to the fact that C++ does not require restrict.
24191    for ac_kw in __restrict __restrict__ _Restrict restrict; do
24192      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193 /* end confdefs.h.  */
24194 typedef int * int_ptr;
24195         int foo (int_ptr $ac_kw ip) {
24196         return ip[0];
24197        }
24198 int
24199 main ()
24200 {
24201 int s[1];
24202         int * $ac_kw t = s;
24203         t[0] = 0;
24204         return foo(t)
24205   ;
24206   return 0;
24207 }
24208 _ACEOF
24209 if ac_fn_c_try_compile "$LINENO"; then :
24210   ac_cv_c_restrict=$ac_kw
24211 fi
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213      test "$ac_cv_c_restrict" != no && break
24214    done
24215
24216 fi
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
24218 $as_echo "$ac_cv_c_restrict" >&6; }
24219
24220  case $ac_cv_c_restrict in
24221    restrict) ;;
24222    no) $as_echo "#define restrict /**/" >>confdefs.h
24223  ;;
24224    *)  cat >>confdefs.h <<_ACEOF
24225 #define restrict $ac_cv_c_restrict
24226 _ACEOF
24227  ;;
24228  esac
24229
24230
24231   GNULIB_GETTIMEOFDAY=0;
24232     HAVE_GETTIMEOFDAY=1;
24233   HAVE_STRUCT_TIMEVAL=1;
24234   HAVE_SYS_TIME_H=1;
24235   REPLACE_GETTIMEOFDAY=0;
24236   REPLACE_STRUCT_TIMEVAL=0;
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253      if test $gl_cv_have_include_next = yes; then
24254        gl_cv_next_sys_time_h='<'sys/time.h'>'
24255      else
24256        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
24257 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
24258 if ${gl_cv_next_sys_time_h+:} false; then :
24259   $as_echo_n "(cached) " >&6
24260 else
24261
24262              if test $ac_cv_header_sys_time_h = yes; then
24263
24264
24265                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24266 /* end confdefs.h.  */
24267 #include <sys/time.h>
24268
24269 _ACEOF
24270                                                                                                                         case "$host_os" in
24271                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24272                  *)    gl_absname_cpp="$ac_cpp" ;;
24273                esac
24274
24275                case "$host_os" in
24276                  mingw*)
24277                                                                                                                                      gl_dirsep_regex='[/\\]'
24278                    ;;
24279                  *)
24280                    gl_dirsep_regex='\/'
24281                    ;;
24282                esac
24283                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24284
24285                gl_header_literal_regex=`echo 'sys/time.h' \
24286                                         | sed -e "$gl_make_literal_regex_sed"`
24287                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24288                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24289                    s|^/[^/]|//&|
24290                    p
24291                    q
24292                  }'
24293                                                             gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24294                       sed -n "$gl_absolute_header_sed"`'"'
24295           else
24296                gl_cv_next_sys_time_h='<'sys/time.h'>'
24297              fi
24298
24299
24300 fi
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
24302 $as_echo "$gl_cv_next_sys_time_h" >&6; }
24303      fi
24304      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
24305
24306      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24307        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24308        gl_next_as_first_directive='<'sys/time.h'>'
24309      else
24310        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24311        gl_next_as_first_directive=$gl_cv_next_sys_time_h
24312      fi
24313      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
24314
24315
24316
24317
24318
24319   if test $ac_cv_header_sys_time_h != yes; then
24320     HAVE_SYS_TIME_H=0
24321   fi
24322
24323
24324
24325
24326
24327   if test $ac_cv_header_sys_socket_h != yes; then
24328                     for ac_header in winsock2.h
24329 do :
24330   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24331 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24332   cat >>confdefs.h <<_ACEOF
24333 #define HAVE_WINSOCK2_H 1
24334 _ACEOF
24335
24336 fi
24337
24338 done
24339
24340   fi
24341   if test "$ac_cv_header_winsock2_h" = yes; then
24342     HAVE_WINSOCK2_H=1
24343     UNISTD_H_HAVE_WINSOCK2_H=1
24344     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24345   else
24346     HAVE_WINSOCK2_H=0
24347   fi
24348
24349
24350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
24351 $as_echo_n "checking for struct timeval... " >&6; }
24352 if ${gl_cv_sys_struct_timeval+:} false; then :
24353   $as_echo_n "(cached) " >&6
24354 else
24355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24356 /* end confdefs.h.  */
24357 #if HAVE_SYS_TIME_H
24358              #include <sys/time.h>
24359             #endif
24360             #include <time.h>
24361             #if HAVE_WINSOCK2_H
24362             # include <winsock2.h>
24363             #endif
24364
24365 int
24366 main ()
24367 {
24368 static struct timeval x; x.tv_sec = x.tv_usec;
24369   ;
24370   return 0;
24371 }
24372 _ACEOF
24373 if ac_fn_c_try_compile "$LINENO"; then :
24374   gl_cv_sys_struct_timeval=yes
24375 else
24376   gl_cv_sys_struct_timeval=no
24377 fi
24378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24379
24380 fi
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
24382 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
24383   if test $gl_cv_sys_struct_timeval != yes; then
24384     HAVE_STRUCT_TIMEVAL=0
24385   else
24386                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
24387 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
24388 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
24389   $as_echo_n "(cached) " >&6
24390 else
24391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24392 /* end confdefs.h.  */
24393 #if HAVE_SYS_TIME_H
24394                #include <sys/time.h>
24395               #endif
24396               #include <time.h>
24397               #if HAVE_WINSOCK2_H
24398               # include <winsock2.h>
24399               #endif
24400
24401 int
24402 main ()
24403 {
24404 static struct timeval x;
24405               typedef int verify_tv_sec_type[
24406                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
24407               ];
24408
24409   ;
24410   return 0;
24411 }
24412 _ACEOF
24413 if ac_fn_c_try_compile "$LINENO"; then :
24414   gl_cv_sys_struct_timeval_tv_sec=yes
24415 else
24416   gl_cv_sys_struct_timeval_tv_sec=no
24417 fi
24418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24419
24420 fi
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
24422 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
24423     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
24424       REPLACE_STRUCT_TIMEVAL=1
24425     fi
24426   fi
24427
24428
24429     for gl_func in gettimeofday; do
24430     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24432 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24433 if eval \${$as_gl_Symbol+:} false; then :
24434   $as_echo_n "(cached) " >&6
24435 else
24436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h.  */
24438
24439 #if HAVE_SYS_TIME_H
24440 # include <sys/time.h>
24441 #endif
24442 #include <time.h>
24443
24444 int
24445 main ()
24446 {
24447 #undef $gl_func
24448   (void) $gl_func;
24449   ;
24450   return 0;
24451 }
24452 _ACEOF
24453 if ac_fn_c_try_compile "$LINENO"; then :
24454   eval "$as_gl_Symbol=yes"
24455 else
24456   eval "$as_gl_Symbol=no"
24457 fi
24458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24459 fi
24460 eval ac_res=\$$as_gl_Symbol
24461                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24462 $as_echo "$ac_res" >&6; }
24463     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24464   cat >>confdefs.h <<_ACEOF
24465 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24466 _ACEOF
24467
24468                      eval ac_cv_have_decl_$gl_func=yes
24469 fi
24470       done
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481   GNULIB_ISWBLANK=0;
24482   GNULIB_WCTYPE=0;
24483   GNULIB_ISWCTYPE=0;
24484   GNULIB_WCTRANS=0;
24485   GNULIB_TOWCTRANS=0;
24486     HAVE_ISWBLANK=1;
24487   HAVE_WCTYPE_T=1;
24488   HAVE_WCTRANS_T=1;
24489   REPLACE_ISWBLANK=0;
24490
24491
24492
24493
24494
24495
24496
24497
24498   if test $ac_cv_func_iswcntrl = yes; then
24499     HAVE_ISWCNTRL=1
24500   else
24501     HAVE_ISWCNTRL=0
24502   fi
24503
24504
24505
24506   if test $gt_cv_c_wint_t = yes; then
24507     HAVE_WINT_T=1
24508   else
24509     HAVE_WINT_T=0
24510   fi
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522      if test $gl_cv_have_include_next = yes; then
24523        gl_cv_next_wctype_h='<'wctype.h'>'
24524      else
24525        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
24526 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24527 if ${gl_cv_next_wctype_h+:} false; then :
24528   $as_echo_n "(cached) " >&6
24529 else
24530
24531              if test $ac_cv_header_wctype_h = yes; then
24532
24533
24534                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535 /* end confdefs.h.  */
24536 #include <wctype.h>
24537
24538 _ACEOF
24539                                                                                                                         case "$host_os" in
24540                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24541                  *)    gl_absname_cpp="$ac_cpp" ;;
24542                esac
24543
24544                case "$host_os" in
24545                  mingw*)
24546                                                                                                                                      gl_dirsep_regex='[/\\]'
24547                    ;;
24548                  *)
24549                    gl_dirsep_regex='\/'
24550                    ;;
24551                esac
24552                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24553
24554                gl_header_literal_regex=`echo 'wctype.h' \
24555                                         | sed -e "$gl_make_literal_regex_sed"`
24556                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24557                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24558                    s|^/[^/]|//&|
24559                    p
24560                    q
24561                  }'
24562                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24563                       sed -n "$gl_absolute_header_sed"`'"'
24564           else
24565                gl_cv_next_wctype_h='<'wctype.h'>'
24566              fi
24567
24568
24569 fi
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
24571 $as_echo "$gl_cv_next_wctype_h" >&6; }
24572      fi
24573      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
24574
24575      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24576        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24577        gl_next_as_first_directive='<'wctype.h'>'
24578      else
24579        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24580        gl_next_as_first_directive=$gl_cv_next_wctype_h
24581      fi
24582      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
24583
24584
24585
24586
24587   if test $ac_cv_header_wctype_h = yes; then
24588     if test $ac_cv_func_iswcntrl = yes; then
24589                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
24590 $as_echo_n "checking whether iswcntrl works... " >&6; }
24591 if ${gl_cv_func_iswcntrl_works+:} false; then :
24592   $as_echo_n "(cached) " >&6
24593 else
24594
24595           if test "$cross_compiling" = yes; then :
24596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24597 /* end confdefs.h.  */
24598 #include <stdlib.h>
24599                           #if __GNU_LIBRARY__ == 1
24600                           Linux libc5 i18n is broken.
24601                           #endif
24602 int
24603 main ()
24604 {
24605
24606   ;
24607   return 0;
24608 }
24609 _ACEOF
24610 if ac_fn_c_try_compile "$LINENO"; then :
24611   gl_cv_func_iswcntrl_works="guessing yes"
24612 else
24613   gl_cv_func_iswcntrl_works="guessing no"
24614 fi
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24616
24617 else
24618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h.  */
24620
24621                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24622                   included before <wchar.h>.
24623                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24624                   must be included before <wchar.h>.  */
24625                #include <stddef.h>
24626                #include <stdio.h>
24627                #include <time.h>
24628                #include <wchar.h>
24629                #include <wctype.h>
24630                int main () { return iswprint ('x') == 0; }
24631
24632 _ACEOF
24633 if ac_fn_c_try_run "$LINENO"; then :
24634   gl_cv_func_iswcntrl_works=yes
24635 else
24636   gl_cv_func_iswcntrl_works=no
24637 fi
24638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24639   conftest.$ac_objext conftest.beam conftest.$ac_ext
24640 fi
24641
24642
24643 fi
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
24645 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24646     fi
24647     HAVE_WCTYPE_H=1
24648   else
24649     HAVE_WCTYPE_H=0
24650   fi
24651
24652
24653   case "$gl_cv_func_iswcntrl_works" in
24654     *yes) REPLACE_ISWCNTRL=0 ;;
24655     *)    REPLACE_ISWCNTRL=1 ;;
24656   esac
24657
24658
24659   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
24660         :
24661   fi
24662
24663   if test $REPLACE_ISWCNTRL = 1; then
24664     REPLACE_TOWLOWER=1
24665   else
24666     for ac_func in towlower
24667 do :
24668   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
24669 if test "x$ac_cv_func_towlower" = xyes; then :
24670   cat >>confdefs.h <<_ACEOF
24671 #define HAVE_TOWLOWER 1
24672 _ACEOF
24673
24674 fi
24675 done
24676
24677     if test $ac_cv_func_towlower = yes; then
24678       REPLACE_TOWLOWER=0
24679     else
24680       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24681              included before <wchar.h>.
24682              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24683              must be included before <wchar.h>.  */
24684           #include <stddef.h>
24685           #include <stdio.h>
24686           #include <time.h>
24687           #include <wchar.h>
24688           #if HAVE_WCTYPE_H
24689           # include <wctype.h>
24690           #endif
24691
24692 "
24693 if test "x$ac_cv_have_decl_towlower" = xyes; then :
24694   ac_have_decl=1
24695 else
24696   ac_have_decl=0
24697 fi
24698
24699 cat >>confdefs.h <<_ACEOF
24700 #define HAVE_DECL_TOWLOWER $ac_have_decl
24701 _ACEOF
24702
24703       if test $ac_cv_have_decl_towlower = yes; then
24704                                 REPLACE_TOWLOWER=1
24705       else
24706         REPLACE_TOWLOWER=0
24707       fi
24708     fi
24709   fi
24710
24711
24712   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
24713         :
24714   fi
24715
24716           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
24717 $as_echo_n "checking for wctype_t... " >&6; }
24718 if ${gl_cv_type_wctype_t+:} false; then :
24719   $as_echo_n "(cached) " >&6
24720 else
24721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24722 /* end confdefs.h.  */
24723 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24724                included before <wchar.h>.
24725                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24726                must be included before <wchar.h>.  */
24727             #include <stddef.h>
24728             #include <stdio.h>
24729             #include <time.h>
24730             #include <wchar.h>
24731             #if HAVE_WCTYPE_H
24732             # include <wctype.h>
24733             #endif
24734             wctype_t a;
24735
24736 int
24737 main ()
24738 {
24739
24740   ;
24741   return 0;
24742 }
24743 _ACEOF
24744 if ac_fn_c_try_compile "$LINENO"; then :
24745   gl_cv_type_wctype_t=yes
24746 else
24747   gl_cv_type_wctype_t=no
24748 fi
24749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24750
24751 fi
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
24753 $as_echo "$gl_cv_type_wctype_t" >&6; }
24754   if test $gl_cv_type_wctype_t = no; then
24755     HAVE_WCTYPE_T=0
24756   fi
24757
24758       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
24759 $as_echo_n "checking for wctrans_t... " >&6; }
24760 if ${gl_cv_type_wctrans_t+:} false; then :
24761   $as_echo_n "(cached) " >&6
24762 else
24763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24764 /* end confdefs.h.  */
24765 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24766                included before <wchar.h>.
24767                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24768                must be included before <wchar.h>.  */
24769             #include <stddef.h>
24770             #include <stdio.h>
24771             #include <time.h>
24772             #include <wchar.h>
24773             #include <wctype.h>
24774             wctrans_t a;
24775
24776 int
24777 main ()
24778 {
24779
24780   ;
24781   return 0;
24782 }
24783 _ACEOF
24784 if ac_fn_c_try_compile "$LINENO"; then :
24785   gl_cv_type_wctrans_t=yes
24786 else
24787   gl_cv_type_wctrans_t=no
24788 fi
24789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790
24791 fi
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
24793 $as_echo "$gl_cv_type_wctrans_t" >&6; }
24794   if test $gl_cv_type_wctrans_t = no; then
24795     HAVE_WCTRANS_T=0
24796   fi
24797
24798
24799     for gl_func in wctype iswctype wctrans towctrans     ; do
24800     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24802 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24803 if eval \${$as_gl_Symbol+:} false; then :
24804   $as_echo_n "(cached) " >&6
24805 else
24806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24807 /* end confdefs.h.  */
24808
24809 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24810    <wchar.h>.
24811    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24812    included before <wchar.h>.  */
24813 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24814 # include <stddef.h>
24815 # include <stdio.h>
24816 # include <time.h>
24817 # include <wchar.h>
24818 #endif
24819 #include <wctype.h>
24820
24821 int
24822 main ()
24823 {
24824 #undef $gl_func
24825   (void) $gl_func;
24826   ;
24827   return 0;
24828 }
24829 _ACEOF
24830 if ac_fn_c_try_compile "$LINENO"; then :
24831   eval "$as_gl_Symbol=yes"
24832 else
24833   eval "$as_gl_Symbol=no"
24834 fi
24835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24836 fi
24837 eval ac_res=\$$as_gl_Symbol
24838                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24839 $as_echo "$ac_res" >&6; }
24840     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24841   cat >>confdefs.h <<_ACEOF
24842 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24843 _ACEOF
24844
24845                      eval ac_cv_have_decl_$gl_func=yes
24846 fi
24847       done
24848
24849
24850
24851
24852
24853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
24854 $as_echo_n "checking whether included glib is requested... " >&6; }
24855
24856 # Check whether --with-included-glib was given.
24857 if test "${with_included_glib+set}" = set; then :
24858   withval=$with_included_glib; gl_cv_libglib_force_included=$withval
24859 else
24860   gl_cv_libglib_force_included=no
24861 fi
24862
24863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
24864 $as_echo "$gl_cv_libglib_force_included" >&6; }
24865
24866   gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
24867   LIBGLIB=
24868   LTLIBGLIB=
24869   INCGLIB=
24870   if test "$gl_cv_libglib_use_included" != yes; then
24871             if ${gl_cv_libglib+:} false; then :
24872   $as_echo_n "(cached) " >&6
24873 else
24874
24875       gl_cv_libglib=no
24876       gl_cv_LIBGLIB=
24877       gl_cv_LTLIBGLIB=
24878       gl_cv_INCGLIB=
24879       gl_save_LIBS="$LIBS"
24880
24881
24882
24883
24884
24885
24886
24887     use_additional=yes
24888
24889   acl_save_prefix="$prefix"
24890   prefix="$acl_final_prefix"
24891   acl_save_exec_prefix="$exec_prefix"
24892   exec_prefix="$acl_final_exec_prefix"
24893
24894     eval additional_includedir=\"$includedir\"
24895     eval additional_libdir=\"$libdir\"
24896
24897   exec_prefix="$acl_save_exec_prefix"
24898   prefix="$acl_save_prefix"
24899
24900
24901 # Check whether --with-libglib-2.0-prefix was given.
24902 if test "${with_libglib_2_0_prefix+set}" = set; then :
24903   withval=$with_libglib_2_0_prefix;
24904     if test "X$withval" = "Xno"; then
24905       use_additional=no
24906     else
24907       if test "X$withval" = "X"; then
24908
24909   acl_save_prefix="$prefix"
24910   prefix="$acl_final_prefix"
24911   acl_save_exec_prefix="$exec_prefix"
24912   exec_prefix="$acl_final_exec_prefix"
24913
24914           eval additional_includedir=\"$includedir\"
24915           eval additional_libdir=\"$libdir\"
24916
24917   exec_prefix="$acl_save_exec_prefix"
24918   prefix="$acl_save_prefix"
24919
24920       else
24921         additional_includedir="$withval/include"
24922         additional_libdir="$withval/$acl_libdirstem"
24923         if test "$acl_libdirstem2" != "$acl_libdirstem" \
24924            && ! test -d "$withval/$acl_libdirstem"; then
24925           additional_libdir="$withval/$acl_libdirstem2"
24926         fi
24927       fi
24928     fi
24929
24930 fi
24931
24932       LIBGLIB_2_0=
24933   LTLIBGLIB_2_0=
24934   INCGLIB_2_0=
24935   LIBGLIB_2_0_PREFIX=
24936       HAVE_LIBGLIB_2_0=
24937   rpathdirs=
24938   ltrpathdirs=
24939   names_already_handled=
24940   names_next_round='glib-2.0 '
24941   while test -n "$names_next_round"; do
24942     names_this_round="$names_next_round"
24943     names_next_round=
24944     for name in $names_this_round; do
24945       already_handled=
24946       for n in $names_already_handled; do
24947         if test "$n" = "$name"; then
24948           already_handled=yes
24949           break
24950         fi
24951       done
24952       if test -z "$already_handled"; then
24953         names_already_handled="$names_already_handled $name"
24954                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
24955         eval value=\"\$HAVE_LIB$uppername\"
24956         if test -n "$value"; then
24957           if test "$value" = yes; then
24958             eval value=\"\$LIB$uppername\"
24959             test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
24960             eval value=\"\$LTLIB$uppername\"
24961             test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
24962           else
24963                                     :
24964           fi
24965         else
24966                               found_dir=
24967           found_la=
24968           found_so=
24969           found_a=
24970           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
24971           if test -n "$acl_shlibext"; then
24972             shrext=".$acl_shlibext"             # typically: shrext=.so
24973           else
24974             shrext=
24975           fi
24976           if test $use_additional = yes; then
24977             dir="$additional_libdir"
24978                                     if test -n "$acl_shlibext"; then
24979               if test -f "$dir/$libname$shrext"; then
24980                 found_dir="$dir"
24981                 found_so="$dir/$libname$shrext"
24982               else
24983                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24984                   ver=`(cd "$dir" && \
24985                         for f in "$libname$shrext".*; do echo "$f"; done \
24986                         | sed -e "s,^$libname$shrext\\\\.,," \
24987                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24988                         | sed 1q ) 2>/dev/null`
24989                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24990                     found_dir="$dir"
24991                     found_so="$dir/$libname$shrext.$ver"
24992                   fi
24993                 else
24994                   eval library_names=\"$acl_library_names_spec\"
24995                   for f in $library_names; do
24996                     if test -f "$dir/$f"; then
24997                       found_dir="$dir"
24998                       found_so="$dir/$f"
24999                       break
25000                     fi
25001                   done
25002                 fi
25003               fi
25004             fi
25005                         if test "X$found_dir" = "X"; then
25006               if test -f "$dir/$libname.$acl_libext"; then
25007                 found_dir="$dir"
25008                 found_a="$dir/$libname.$acl_libext"
25009               fi
25010             fi
25011             if test "X$found_dir" != "X"; then
25012               if test -f "$dir/$libname.la"; then
25013                 found_la="$dir/$libname.la"
25014               fi
25015             fi
25016           fi
25017           if test "X$found_dir" = "X"; then
25018             for x in $LDFLAGS $LTLIBGLIB_2_0; do
25019
25020   acl_save_prefix="$prefix"
25021   prefix="$acl_final_prefix"
25022   acl_save_exec_prefix="$exec_prefix"
25023   exec_prefix="$acl_final_exec_prefix"
25024   eval x=\"$x\"
25025   exec_prefix="$acl_save_exec_prefix"
25026   prefix="$acl_save_prefix"
25027
25028               case "$x" in
25029                 -L*)
25030                   dir=`echo "X$x" | sed -e 's/^X-L//'`
25031                                     if test -n "$acl_shlibext"; then
25032                     if test -f "$dir/$libname$shrext"; then
25033                       found_dir="$dir"
25034                       found_so="$dir/$libname$shrext"
25035                     else
25036                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25037                         ver=`(cd "$dir" && \
25038                               for f in "$libname$shrext".*; do echo "$f"; done \
25039                               | sed -e "s,^$libname$shrext\\\\.,," \
25040                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25041                               | sed 1q ) 2>/dev/null`
25042                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25043                           found_dir="$dir"
25044                           found_so="$dir/$libname$shrext.$ver"
25045                         fi
25046                       else
25047                         eval library_names=\"$acl_library_names_spec\"
25048                         for f in $library_names; do
25049                           if test -f "$dir/$f"; then
25050                             found_dir="$dir"
25051                             found_so="$dir/$f"
25052                             break
25053                           fi
25054                         done
25055                       fi
25056                     fi
25057                   fi
25058                                     if test "X$found_dir" = "X"; then
25059                     if test -f "$dir/$libname.$acl_libext"; then
25060                       found_dir="$dir"
25061                       found_a="$dir/$libname.$acl_libext"
25062                     fi
25063                   fi
25064                   if test "X$found_dir" != "X"; then
25065                     if test -f "$dir/$libname.la"; then
25066                       found_la="$dir/$libname.la"
25067                     fi
25068                   fi
25069                   ;;
25070               esac
25071               if test "X$found_dir" != "X"; then
25072                 break
25073               fi
25074             done
25075           fi
25076           if test "X$found_dir" != "X"; then
25077                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
25078             if test "X$found_so" != "X"; then
25079                                                         if test "$enable_rpath" = no \
25080                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
25081                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
25082                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
25083               else
25084                                                                                 haveit=
25085                 for x in $ltrpathdirs; do
25086                   if test "X$x" = "X$found_dir"; then
25087                     haveit=yes
25088                     break
25089                   fi
25090                 done
25091                 if test -z "$haveit"; then
25092                   ltrpathdirs="$ltrpathdirs $found_dir"
25093                 fi
25094                                 if test "$acl_hardcode_direct" = yes; then
25095                                                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
25096                 else
25097                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
25098                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
25099                                                             haveit=
25100                     for x in $rpathdirs; do
25101                       if test "X$x" = "X$found_dir"; then
25102                         haveit=yes
25103                         break
25104                       fi
25105                     done
25106                     if test -z "$haveit"; then
25107                       rpathdirs="$rpathdirs $found_dir"
25108                     fi
25109                   else
25110                                                                                 haveit=
25111                     for x in $LDFLAGS $LIBGLIB_2_0; do
25112
25113   acl_save_prefix="$prefix"
25114   prefix="$acl_final_prefix"
25115   acl_save_exec_prefix="$exec_prefix"
25116   exec_prefix="$acl_final_exec_prefix"
25117   eval x=\"$x\"
25118   exec_prefix="$acl_save_exec_prefix"
25119   prefix="$acl_save_prefix"
25120
25121                       if test "X$x" = "X-L$found_dir"; then
25122                         haveit=yes
25123                         break
25124                       fi
25125                     done
25126                     if test -z "$haveit"; then
25127                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
25128                     fi
25129                     if test "$acl_hardcode_minus_L" != no; then
25130                                                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
25131                     else
25132                                                                                                                                                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
25133                     fi
25134                   fi
25135                 fi
25136               fi
25137             else
25138               if test "X$found_a" != "X"; then
25139                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
25140               else
25141                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
25142               fi
25143             fi
25144                         additional_includedir=
25145             case "$found_dir" in
25146               */$acl_libdirstem | */$acl_libdirstem/)
25147                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25148                 if test "$name" = 'glib-2.0'; then
25149                   LIBGLIB_2_0_PREFIX="$basedir"
25150                 fi
25151                 additional_includedir="$basedir/include"
25152                 ;;
25153               */$acl_libdirstem2 | */$acl_libdirstem2/)
25154                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
25155                 if test "$name" = 'glib-2.0'; then
25156                   LIBGLIB_2_0_PREFIX="$basedir"
25157                 fi
25158                 additional_includedir="$basedir/include"
25159                 ;;
25160             esac
25161             if test "X$additional_includedir" != "X"; then
25162                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25163                 haveit=
25164                 if test "X$additional_includedir" = "X/usr/local/include"; then
25165                   if test -n "$GCC"; then
25166                     case $host_os in
25167                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25168                     esac
25169                   fi
25170                 fi
25171                 if test -z "$haveit"; then
25172                   for x in $CPPFLAGS $INCGLIB_2_0; do
25173
25174   acl_save_prefix="$prefix"
25175   prefix="$acl_final_prefix"
25176   acl_save_exec_prefix="$exec_prefix"
25177   exec_prefix="$acl_final_exec_prefix"
25178   eval x=\"$x\"
25179   exec_prefix="$acl_save_exec_prefix"
25180   prefix="$acl_save_prefix"
25181
25182                     if test "X$x" = "X-I$additional_includedir"; then
25183                       haveit=yes
25184                       break
25185                     fi
25186                   done
25187                   if test -z "$haveit"; then
25188                     if test -d "$additional_includedir"; then
25189                                             INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
25190                     fi
25191                   fi
25192                 fi
25193               fi
25194             fi
25195                         if test -n "$found_la"; then
25196                                                         save_libdir="$libdir"
25197               case "$found_la" in
25198                 */* | *\\*) . "$found_la" ;;
25199                 *) . "./$found_la" ;;
25200               esac
25201               libdir="$save_libdir"
25202                             for dep in $dependency_libs; do
25203                 case "$dep" in
25204                   -L*)
25205                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25206                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
25207                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
25208                       haveit=
25209                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
25210                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
25211                         if test -n "$GCC"; then
25212                           case $host_os in
25213                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25214                           esac
25215                         fi
25216                       fi
25217                       if test -z "$haveit"; then
25218                         haveit=
25219                         for x in $LDFLAGS $LIBGLIB_2_0; do
25220
25221   acl_save_prefix="$prefix"
25222   prefix="$acl_final_prefix"
25223   acl_save_exec_prefix="$exec_prefix"
25224   exec_prefix="$acl_final_exec_prefix"
25225   eval x=\"$x\"
25226   exec_prefix="$acl_save_exec_prefix"
25227   prefix="$acl_save_prefix"
25228
25229                           if test "X$x" = "X-L$additional_libdir"; then
25230                             haveit=yes
25231                             break
25232                           fi
25233                         done
25234                         if test -z "$haveit"; then
25235                           if test -d "$additional_libdir"; then
25236                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
25237                           fi
25238                         fi
25239                         haveit=
25240                         for x in $LDFLAGS $LTLIBGLIB_2_0; do
25241
25242   acl_save_prefix="$prefix"
25243   prefix="$acl_final_prefix"
25244   acl_save_exec_prefix="$exec_prefix"
25245   exec_prefix="$acl_final_exec_prefix"
25246   eval x=\"$x\"
25247   exec_prefix="$acl_save_exec_prefix"
25248   prefix="$acl_save_prefix"
25249
25250                           if test "X$x" = "X-L$additional_libdir"; then
25251                             haveit=yes
25252                             break
25253                           fi
25254                         done
25255                         if test -z "$haveit"; then
25256                           if test -d "$additional_libdir"; then
25257                                                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
25258                           fi
25259                         fi
25260                       fi
25261                     fi
25262                     ;;
25263                   -R*)
25264                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25265                     if test "$enable_rpath" != no; then
25266                                                                   haveit=
25267                       for x in $rpathdirs; do
25268                         if test "X$x" = "X$dir"; then
25269                           haveit=yes
25270                           break
25271                         fi
25272                       done
25273                       if test -z "$haveit"; then
25274                         rpathdirs="$rpathdirs $dir"
25275                       fi
25276                                                                   haveit=
25277                       for x in $ltrpathdirs; do
25278                         if test "X$x" = "X$dir"; then
25279                           haveit=yes
25280                           break
25281                         fi
25282                       done
25283                       if test -z "$haveit"; then
25284                         ltrpathdirs="$ltrpathdirs $dir"
25285                       fi
25286                     fi
25287                     ;;
25288                   -l*)
25289                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25290                     ;;
25291                   *.la)
25292                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25293                     ;;
25294                   *)
25295                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
25296                     LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
25297                     ;;
25298                 esac
25299               done
25300             fi
25301           else
25302                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
25303             LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
25304           fi
25305         fi
25306       fi
25307     done
25308   done
25309   if test "X$rpathdirs" != "X"; then
25310     if test -n "$acl_hardcode_libdir_separator"; then
25311                         alldirs=
25312       for found_dir in $rpathdirs; do
25313         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
25314       done
25315             acl_save_libdir="$libdir"
25316       libdir="$alldirs"
25317       eval flag=\"$acl_hardcode_libdir_flag_spec\"
25318       libdir="$acl_save_libdir"
25319       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
25320     else
25321             for found_dir in $rpathdirs; do
25322         acl_save_libdir="$libdir"
25323         libdir="$found_dir"
25324         eval flag=\"$acl_hardcode_libdir_flag_spec\"
25325         libdir="$acl_save_libdir"
25326         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
25327       done
25328     fi
25329   fi
25330   if test "X$ltrpathdirs" != "X"; then
25331             for found_dir in $ltrpathdirs; do
25332       LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
25333     done
25334   fi
25335
25336
25337
25338
25339
25340
25341       LIBS="$gl_save_LIBS $LIBGLIB_2_0"
25342       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25343 /* end confdefs.h.  */
25344 #include <glib.h>
25345 #ifndef G_BEGIN_DECLS
25346 error this glib.h includes a glibconfig.h from a glib version 1.x
25347 #endif
25348
25349 int
25350 main ()
25351 {
25352 g_string_new ("foo");
25353   ;
25354   return 0;
25355 }
25356 _ACEOF
25357 if ac_fn_c_try_link "$LINENO"; then :
25358   gl_cv_libglib=yes
25359          gl_cv_LIBGLIB="$LIBGLIB_2_0"
25360          gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
25361
25362 fi
25363 rm -f core conftest.err conftest.$ac_objext \
25364     conftest$ac_exeext conftest.$ac_ext
25365       if test "$gl_cv_libglib" != yes; then
25366         gl_save_CPPFLAGS="$CPPFLAGS"
25367         CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
25368         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h.  */
25370 #include <glib.h>
25371 #ifndef G_BEGIN_DECLS
25372 error this glib.h includes a glibconfig.h from a glib version 1.x
25373 #endif
25374
25375 int
25376 main ()
25377 {
25378 g_string_new ("foo");
25379   ;
25380   return 0;
25381 }
25382 _ACEOF
25383 if ac_fn_c_try_link "$LINENO"; then :
25384   gl_cv_libglib=yes
25385            gl_cv_LIBGLIB="$LIBGLIB_2_0"
25386            gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
25387            gl_cv_INCGLIB="$INCGLIB_2_0"
25388
25389 fi
25390 rm -f core conftest.err conftest.$ac_objext \
25391     conftest$ac_exeext conftest.$ac_ext
25392         if test "$gl_cv_libglib" != yes; then
25393                               if test -n "$LIBGLIB_2_0_PREFIX"; then
25394             CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
25395             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25396 /* end confdefs.h.  */
25397 #include <glib.h>
25398 #ifndef G_BEGIN_DECLS
25399 error this glib.h includes a glibconfig.h from a glib version 1.x
25400 #endif
25401
25402 int
25403 main ()
25404 {
25405 g_string_new ("foo");
25406   ;
25407   return 0;
25408 }
25409 _ACEOF
25410 if ac_fn_c_try_link "$LINENO"; then :
25411   gl_cv_libglib=yes
25412                gl_cv_LIBGLIB="$LIBGLIB_2_0"
25413                gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
25414                gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
25415
25416 fi
25417 rm -f core conftest.err conftest.$ac_objext \
25418     conftest$ac_exeext conftest.$ac_ext
25419           fi
25420         fi
25421         CPPFLAGS="$gl_save_CPPFLAGS"
25422       fi
25423       LIBS="$gl_save_LIBS"
25424
25425 fi
25426
25427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
25428 $as_echo_n "checking for glib... " >&6; }
25429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
25430 $as_echo "$gl_cv_libglib" >&6; }
25431     if test $gl_cv_libglib = yes; then
25432       LIBGLIB="$gl_cv_LIBGLIB"
25433       LTLIBGLIB="$gl_cv_LTLIBGLIB"
25434       INCGLIB="$gl_cv_INCGLIB"
25435     else
25436       gl_cv_libglib_use_included=yes
25437     fi
25438   fi
25439
25440
25441
25442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
25443 $as_echo_n "checking whether to use the included glib... " >&6; }
25444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
25445 $as_echo "$gl_cv_libglib_use_included" >&6; }
25446
25447   if test "$gl_cv_libglib_use_included" = yes; then
25448     LIBGLIB_H=
25449     LIBGLIB_H="$LIBGLIB_H glib.h"
25450     LIBGLIB_H="$LIBGLIB_H glibconfig.h"
25451     LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
25452     LIBGLIB_H="$LIBGLIB_H glib/glist.h"
25453     LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
25454     LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
25455     LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
25456     LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
25457
25458     for ac_header in unistd.h
25459 do :
25460   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25461 if test "x$ac_cv_header_unistd_h" = xyes; then :
25462   cat >>confdefs.h <<_ACEOF
25463 #define HAVE_UNISTD_H 1
25464 _ACEOF
25465
25466 fi
25467
25468 done
25469
25470       else
25471     LIBGLIB_H=
25472   fi
25473
25474
25475    if test "$gl_cv_libglib_use_included" = yes; then
25476   INCLUDED_LIBGLIB_TRUE=
25477   INCLUDED_LIBGLIB_FALSE='#'
25478 else
25479   INCLUDED_LIBGLIB_TRUE='#'
25480   INCLUDED_LIBGLIB_FALSE=
25481 fi
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libunistring is requested" >&5
25493 $as_echo_n "checking whether included libunistring is requested... " >&6; }
25494
25495 # Check whether --with-included-libunistring was given.
25496 if test "${with_included_libunistring+set}" = set; then :
25497   withval=$with_included_libunistring; gl_libunistring_force_included=$withval
25498 else
25499   gl_libunistring_force_included=no
25500 fi
25501
25502       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_force_included" >&5
25503 $as_echo "$gl_libunistring_force_included" >&6; }
25504       gl_libunistring_use_included="$gl_libunistring_force_included"
25505       if test "$gl_libunistring_use_included" = yes; then
25506                         if test -z "$HAVE_LIBUNISTRING"; then
25507           HAVE_LIBUNISTRING=no
25508         fi
25509         LIBUNISTRING=
25510         LTLIBUNISTRING=
25511       else
25512
25513
25514   if test -n "$LIBICONV"; then
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528     use_additional=yes
25529
25530   acl_save_prefix="$prefix"
25531   prefix="$acl_final_prefix"
25532   acl_save_exec_prefix="$exec_prefix"
25533   exec_prefix="$acl_final_exec_prefix"
25534
25535     eval additional_includedir=\"$includedir\"
25536     eval additional_libdir=\"$libdir\"
25537
25538   exec_prefix="$acl_save_exec_prefix"
25539   prefix="$acl_save_prefix"
25540
25541
25542 # Check whether --with-libunistring-prefix was given.
25543 if test "${with_libunistring_prefix+set}" = set; then :
25544   withval=$with_libunistring_prefix;
25545     if test "X$withval" = "Xno"; then
25546       use_additional=no
25547     else
25548       if test "X$withval" = "X"; then
25549
25550   acl_save_prefix="$prefix"
25551   prefix="$acl_final_prefix"
25552   acl_save_exec_prefix="$exec_prefix"
25553   exec_prefix="$acl_final_exec_prefix"
25554
25555           eval additional_includedir=\"$includedir\"
25556           eval additional_libdir=\"$libdir\"
25557
25558   exec_prefix="$acl_save_exec_prefix"
25559   prefix="$acl_save_prefix"
25560
25561       else
25562         additional_includedir="$withval/include"
25563         additional_libdir="$withval/$acl_libdirstem"
25564         if test "$acl_libdirstem2" != "$acl_libdirstem" \
25565            && ! test -d "$withval/$acl_libdirstem"; then
25566           additional_libdir="$withval/$acl_libdirstem2"
25567         fi
25568       fi
25569     fi
25570
25571 fi
25572
25573       LIBUNISTRING=
25574   LTLIBUNISTRING=
25575   INCUNISTRING=
25576   LIBUNISTRING_PREFIX=
25577       HAVE_LIBUNISTRING=
25578   rpathdirs=
25579   ltrpathdirs=
25580   names_already_handled=
25581   names_next_round='unistring '
25582   while test -n "$names_next_round"; do
25583     names_this_round="$names_next_round"
25584     names_next_round=
25585     for name in $names_this_round; do
25586       already_handled=
25587       for n in $names_already_handled; do
25588         if test "$n" = "$name"; then
25589           already_handled=yes
25590           break
25591         fi
25592       done
25593       if test -z "$already_handled"; then
25594         names_already_handled="$names_already_handled $name"
25595                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
25596         eval value=\"\$HAVE_LIB$uppername\"
25597         if test -n "$value"; then
25598           if test "$value" = yes; then
25599             eval value=\"\$LIB$uppername\"
25600             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
25601             eval value=\"\$LTLIB$uppername\"
25602             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
25603           else
25604                                     :
25605           fi
25606         else
25607                               found_dir=
25608           found_la=
25609           found_so=
25610           found_a=
25611           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
25612           if test -n "$acl_shlibext"; then
25613             shrext=".$acl_shlibext"             # typically: shrext=.so
25614           else
25615             shrext=
25616           fi
25617           if test $use_additional = yes; then
25618             dir="$additional_libdir"
25619                                     if test -n "$acl_shlibext"; then
25620               if test -f "$dir/$libname$shrext"; then
25621                 found_dir="$dir"
25622                 found_so="$dir/$libname$shrext"
25623               else
25624                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25625                   ver=`(cd "$dir" && \
25626                         for f in "$libname$shrext".*; do echo "$f"; done \
25627                         | sed -e "s,^$libname$shrext\\\\.,," \
25628                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25629                         | sed 1q ) 2>/dev/null`
25630                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25631                     found_dir="$dir"
25632                     found_so="$dir/$libname$shrext.$ver"
25633                   fi
25634                 else
25635                   eval library_names=\"$acl_library_names_spec\"
25636                   for f in $library_names; do
25637                     if test -f "$dir/$f"; then
25638                       found_dir="$dir"
25639                       found_so="$dir/$f"
25640                       break
25641                     fi
25642                   done
25643                 fi
25644               fi
25645             fi
25646                         if test "X$found_dir" = "X"; then
25647               if test -f "$dir/$libname.$acl_libext"; then
25648                 found_dir="$dir"
25649                 found_a="$dir/$libname.$acl_libext"
25650               fi
25651             fi
25652             if test "X$found_dir" != "X"; then
25653               if test -f "$dir/$libname.la"; then
25654                 found_la="$dir/$libname.la"
25655               fi
25656             fi
25657           fi
25658           if test "X$found_dir" = "X"; then
25659             for x in $LDFLAGS $LTLIBUNISTRING; do
25660
25661   acl_save_prefix="$prefix"
25662   prefix="$acl_final_prefix"
25663   acl_save_exec_prefix="$exec_prefix"
25664   exec_prefix="$acl_final_exec_prefix"
25665   eval x=\"$x\"
25666   exec_prefix="$acl_save_exec_prefix"
25667   prefix="$acl_save_prefix"
25668
25669               case "$x" in
25670                 -L*)
25671                   dir=`echo "X$x" | sed -e 's/^X-L//'`
25672                                     if test -n "$acl_shlibext"; then
25673                     if test -f "$dir/$libname$shrext"; then
25674                       found_dir="$dir"
25675                       found_so="$dir/$libname$shrext"
25676                     else
25677                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25678                         ver=`(cd "$dir" && \
25679                               for f in "$libname$shrext".*; do echo "$f"; done \
25680                               | sed -e "s,^$libname$shrext\\\\.,," \
25681                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25682                               | sed 1q ) 2>/dev/null`
25683                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25684                           found_dir="$dir"
25685                           found_so="$dir/$libname$shrext.$ver"
25686                         fi
25687                       else
25688                         eval library_names=\"$acl_library_names_spec\"
25689                         for f in $library_names; do
25690                           if test -f "$dir/$f"; then
25691                             found_dir="$dir"
25692                             found_so="$dir/$f"
25693                             break
25694                           fi
25695                         done
25696                       fi
25697                     fi
25698                   fi
25699                                     if test "X$found_dir" = "X"; then
25700                     if test -f "$dir/$libname.$acl_libext"; then
25701                       found_dir="$dir"
25702                       found_a="$dir/$libname.$acl_libext"
25703                     fi
25704                   fi
25705                   if test "X$found_dir" != "X"; then
25706                     if test -f "$dir/$libname.la"; then
25707                       found_la="$dir/$libname.la"
25708                     fi
25709                   fi
25710                   ;;
25711               esac
25712               if test "X$found_dir" != "X"; then
25713                 break
25714               fi
25715             done
25716           fi
25717           if test "X$found_dir" != "X"; then
25718                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
25719             if test "X$found_so" != "X"; then
25720                                                         if test "$enable_rpath" = no \
25721                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
25722                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
25723                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
25724               else
25725                                                                                 haveit=
25726                 for x in $ltrpathdirs; do
25727                   if test "X$x" = "X$found_dir"; then
25728                     haveit=yes
25729                     break
25730                   fi
25731                 done
25732                 if test -z "$haveit"; then
25733                   ltrpathdirs="$ltrpathdirs $found_dir"
25734                 fi
25735                                 if test "$acl_hardcode_direct" = yes; then
25736                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
25737                 else
25738                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
25739                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
25740                                                             haveit=
25741                     for x in $rpathdirs; do
25742                       if test "X$x" = "X$found_dir"; then
25743                         haveit=yes
25744                         break
25745                       fi
25746                     done
25747                     if test -z "$haveit"; then
25748                       rpathdirs="$rpathdirs $found_dir"
25749                     fi
25750                   else
25751                                                                                 haveit=
25752                     for x in $LDFLAGS $LIBUNISTRING; do
25753
25754   acl_save_prefix="$prefix"
25755   prefix="$acl_final_prefix"
25756   acl_save_exec_prefix="$exec_prefix"
25757   exec_prefix="$acl_final_exec_prefix"
25758   eval x=\"$x\"
25759   exec_prefix="$acl_save_exec_prefix"
25760   prefix="$acl_save_prefix"
25761
25762                       if test "X$x" = "X-L$found_dir"; then
25763                         haveit=yes
25764                         break
25765                       fi
25766                     done
25767                     if test -z "$haveit"; then
25768                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
25769                     fi
25770                     if test "$acl_hardcode_minus_L" != no; then
25771                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
25772                     else
25773                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
25774                     fi
25775                   fi
25776                 fi
25777               fi
25778             else
25779               if test "X$found_a" != "X"; then
25780                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
25781               else
25782                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
25783               fi
25784             fi
25785                         additional_includedir=
25786             case "$found_dir" in
25787               */$acl_libdirstem | */$acl_libdirstem/)
25788                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25789                 if test "$name" = 'unistring'; then
25790                   LIBUNISTRING_PREFIX="$basedir"
25791                 fi
25792                 additional_includedir="$basedir/include"
25793                 ;;
25794               */$acl_libdirstem2 | */$acl_libdirstem2/)
25795                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
25796                 if test "$name" = 'unistring'; then
25797                   LIBUNISTRING_PREFIX="$basedir"
25798                 fi
25799                 additional_includedir="$basedir/include"
25800                 ;;
25801             esac
25802             if test "X$additional_includedir" != "X"; then
25803                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25804                 haveit=
25805                 if test "X$additional_includedir" = "X/usr/local/include"; then
25806                   if test -n "$GCC"; then
25807                     case $host_os in
25808                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25809                     esac
25810                   fi
25811                 fi
25812                 if test -z "$haveit"; then
25813                   for x in $CPPFLAGS $INCUNISTRING; do
25814
25815   acl_save_prefix="$prefix"
25816   prefix="$acl_final_prefix"
25817   acl_save_exec_prefix="$exec_prefix"
25818   exec_prefix="$acl_final_exec_prefix"
25819   eval x=\"$x\"
25820   exec_prefix="$acl_save_exec_prefix"
25821   prefix="$acl_save_prefix"
25822
25823                     if test "X$x" = "X-I$additional_includedir"; then
25824                       haveit=yes
25825                       break
25826                     fi
25827                   done
25828                   if test -z "$haveit"; then
25829                     if test -d "$additional_includedir"; then
25830                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
25831                     fi
25832                   fi
25833                 fi
25834               fi
25835             fi
25836                         if test -n "$found_la"; then
25837                                                         save_libdir="$libdir"
25838               case "$found_la" in
25839                 */* | *\\*) . "$found_la" ;;
25840                 *) . "./$found_la" ;;
25841               esac
25842               libdir="$save_libdir"
25843                             for dep in $dependency_libs; do
25844                 case "$dep" in
25845                   -L*)
25846                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25847                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
25848                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
25849                       haveit=
25850                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
25851                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
25852                         if test -n "$GCC"; then
25853                           case $host_os in
25854                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25855                           esac
25856                         fi
25857                       fi
25858                       if test -z "$haveit"; then
25859                         haveit=
25860                         for x in $LDFLAGS $LIBUNISTRING; do
25861
25862   acl_save_prefix="$prefix"
25863   prefix="$acl_final_prefix"
25864   acl_save_exec_prefix="$exec_prefix"
25865   exec_prefix="$acl_final_exec_prefix"
25866   eval x=\"$x\"
25867   exec_prefix="$acl_save_exec_prefix"
25868   prefix="$acl_save_prefix"
25869
25870                           if test "X$x" = "X-L$additional_libdir"; then
25871                             haveit=yes
25872                             break
25873                           fi
25874                         done
25875                         if test -z "$haveit"; then
25876                           if test -d "$additional_libdir"; then
25877                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
25878                           fi
25879                         fi
25880                         haveit=
25881                         for x in $LDFLAGS $LTLIBUNISTRING; do
25882
25883   acl_save_prefix="$prefix"
25884   prefix="$acl_final_prefix"
25885   acl_save_exec_prefix="$exec_prefix"
25886   exec_prefix="$acl_final_exec_prefix"
25887   eval x=\"$x\"
25888   exec_prefix="$acl_save_exec_prefix"
25889   prefix="$acl_save_prefix"
25890
25891                           if test "X$x" = "X-L$additional_libdir"; then
25892                             haveit=yes
25893                             break
25894                           fi
25895                         done
25896                         if test -z "$haveit"; then
25897                           if test -d "$additional_libdir"; then
25898                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
25899                           fi
25900                         fi
25901                       fi
25902                     fi
25903                     ;;
25904                   -R*)
25905                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25906                     if test "$enable_rpath" != no; then
25907                                                                   haveit=
25908                       for x in $rpathdirs; do
25909                         if test "X$x" = "X$dir"; then
25910                           haveit=yes
25911                           break
25912                         fi
25913                       done
25914                       if test -z "$haveit"; then
25915                         rpathdirs="$rpathdirs $dir"
25916                       fi
25917                                                                   haveit=
25918                       for x in $ltrpathdirs; do
25919                         if test "X$x" = "X$dir"; then
25920                           haveit=yes
25921                           break
25922                         fi
25923                       done
25924                       if test -z "$haveit"; then
25925                         ltrpathdirs="$ltrpathdirs $dir"
25926                       fi
25927                     fi
25928                     ;;
25929                   -l*)
25930                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25931                     ;;
25932                   *.la)
25933                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25934                     ;;
25935                   *)
25936                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
25937                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
25938                     ;;
25939                 esac
25940               done
25941             fi
25942           else
25943                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
25944             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
25945           fi
25946         fi
25947       fi
25948     done
25949   done
25950   if test "X$rpathdirs" != "X"; then
25951     if test -n "$acl_hardcode_libdir_separator"; then
25952                         alldirs=
25953       for found_dir in $rpathdirs; do
25954         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
25955       done
25956             acl_save_libdir="$libdir"
25957       libdir="$alldirs"
25958       eval flag=\"$acl_hardcode_libdir_flag_spec\"
25959       libdir="$acl_save_libdir"
25960       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
25961     else
25962             for found_dir in $rpathdirs; do
25963         acl_save_libdir="$libdir"
25964         libdir="$found_dir"
25965         eval flag=\"$acl_hardcode_libdir_flag_spec\"
25966         libdir="$acl_save_libdir"
25967         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
25968       done
25969     fi
25970   fi
25971   if test "X$ltrpathdirs" != "X"; then
25972             for found_dir in $ltrpathdirs; do
25973       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
25974     done
25975   fi
25976
25977
25978
25979
25980
25981
25982
25983         ac_save_CPPFLAGS="$CPPFLAGS"
25984
25985   for element in $INCUNISTRING; do
25986     haveit=
25987     for x in $CPPFLAGS; do
25988
25989   acl_save_prefix="$prefix"
25990   prefix="$acl_final_prefix"
25991   acl_save_exec_prefix="$exec_prefix"
25992   exec_prefix="$acl_final_exec_prefix"
25993   eval x=\"$x\"
25994   exec_prefix="$acl_save_exec_prefix"
25995   prefix="$acl_save_prefix"
25996
25997       if test "X$x" = "X$element"; then
25998         haveit=yes
25999         break
26000       fi
26001     done
26002     if test -z "$haveit"; then
26003       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26004     fi
26005   done
26006
26007
26008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
26009 $as_echo_n "checking for libunistring... " >&6; }
26010 if ${ac_cv_libunistring+:} false; then :
26011   $as_echo_n "(cached) " >&6
26012 else
26013
26014     ac_save_LIBS="$LIBS"
26015                                 case " $LIBUNISTRING" in
26016       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
26017       *)       LIBS="$LIBUNISTRING $LIBS" ;;
26018     esac
26019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26020 /* end confdefs.h.  */
26021 #include <uniconv.h>
26022 int
26023 main ()
26024 {
26025 u8_strconv_from_locale((char*)0);
26026   ;
26027   return 0;
26028 }
26029 _ACEOF
26030 if ac_fn_c_try_link "$LINENO"; then :
26031   ac_cv_libunistring=yes
26032 else
26033   ac_cv_libunistring='no, trying again together with libiconv'
26034 fi
26035 rm -f core conftest.err conftest.$ac_objext \
26036     conftest$ac_exeext conftest.$ac_ext
26037     LIBS="$ac_save_LIBS"
26038
26039 fi
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
26041 $as_echo "$ac_cv_libunistring" >&6; }
26042   if test "$ac_cv_libunistring" = yes; then
26043     HAVE_LIBUNISTRING=yes
26044
26045 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
26046
26047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
26048 $as_echo_n "checking how to link with libunistring... " >&6; }
26049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
26050 $as_echo "$LIBUNISTRING" >&6; }
26051   else
26052     HAVE_LIBUNISTRING=no
26053             CPPFLAGS="$ac_save_CPPFLAGS"
26054     LIBUNISTRING=
26055     LTLIBUNISTRING=
26056     LIBUNISTRING_PREFIX=
26057   fi
26058
26059
26060
26061
26062
26063
26064
26065     if test "$ac_cv_libunistring" != yes; then
26066                         unset ac_cv_libunistring
26067       glus_save_LIBS="$LIBS"
26068       LIBS="$LIBS $LIBICONV"
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082     use_additional=yes
26083
26084   acl_save_prefix="$prefix"
26085   prefix="$acl_final_prefix"
26086   acl_save_exec_prefix="$exec_prefix"
26087   exec_prefix="$acl_final_exec_prefix"
26088
26089     eval additional_includedir=\"$includedir\"
26090     eval additional_libdir=\"$libdir\"
26091
26092   exec_prefix="$acl_save_exec_prefix"
26093   prefix="$acl_save_prefix"
26094
26095
26096 # Check whether --with-libunistring-prefix was given.
26097 if test "${with_libunistring_prefix+set}" = set; then :
26098   withval=$with_libunistring_prefix;
26099     if test "X$withval" = "Xno"; then
26100       use_additional=no
26101     else
26102       if test "X$withval" = "X"; then
26103
26104   acl_save_prefix="$prefix"
26105   prefix="$acl_final_prefix"
26106   acl_save_exec_prefix="$exec_prefix"
26107   exec_prefix="$acl_final_exec_prefix"
26108
26109           eval additional_includedir=\"$includedir\"
26110           eval additional_libdir=\"$libdir\"
26111
26112   exec_prefix="$acl_save_exec_prefix"
26113   prefix="$acl_save_prefix"
26114
26115       else
26116         additional_includedir="$withval/include"
26117         additional_libdir="$withval/$acl_libdirstem"
26118         if test "$acl_libdirstem2" != "$acl_libdirstem" \
26119            && ! test -d "$withval/$acl_libdirstem"; then
26120           additional_libdir="$withval/$acl_libdirstem2"
26121         fi
26122       fi
26123     fi
26124
26125 fi
26126
26127       LIBUNISTRING=
26128   LTLIBUNISTRING=
26129   INCUNISTRING=
26130   LIBUNISTRING_PREFIX=
26131       HAVE_LIBUNISTRING=
26132   rpathdirs=
26133   ltrpathdirs=
26134   names_already_handled=
26135   names_next_round='unistring '
26136   while test -n "$names_next_round"; do
26137     names_this_round="$names_next_round"
26138     names_next_round=
26139     for name in $names_this_round; do
26140       already_handled=
26141       for n in $names_already_handled; do
26142         if test "$n" = "$name"; then
26143           already_handled=yes
26144           break
26145         fi
26146       done
26147       if test -z "$already_handled"; then
26148         names_already_handled="$names_already_handled $name"
26149                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
26150         eval value=\"\$HAVE_LIB$uppername\"
26151         if test -n "$value"; then
26152           if test "$value" = yes; then
26153             eval value=\"\$LIB$uppername\"
26154             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
26155             eval value=\"\$LTLIB$uppername\"
26156             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
26157           else
26158                                     :
26159           fi
26160         else
26161                               found_dir=
26162           found_la=
26163           found_so=
26164           found_a=
26165           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
26166           if test -n "$acl_shlibext"; then
26167             shrext=".$acl_shlibext"             # typically: shrext=.so
26168           else
26169             shrext=
26170           fi
26171           if test $use_additional = yes; then
26172             dir="$additional_libdir"
26173                                     if test -n "$acl_shlibext"; then
26174               if test -f "$dir/$libname$shrext"; then
26175                 found_dir="$dir"
26176                 found_so="$dir/$libname$shrext"
26177               else
26178                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26179                   ver=`(cd "$dir" && \
26180                         for f in "$libname$shrext".*; do echo "$f"; done \
26181                         | sed -e "s,^$libname$shrext\\\\.,," \
26182                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26183                         | sed 1q ) 2>/dev/null`
26184                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26185                     found_dir="$dir"
26186                     found_so="$dir/$libname$shrext.$ver"
26187                   fi
26188                 else
26189                   eval library_names=\"$acl_library_names_spec\"
26190                   for f in $library_names; do
26191                     if test -f "$dir/$f"; then
26192                       found_dir="$dir"
26193                       found_so="$dir/$f"
26194                       break
26195                     fi
26196                   done
26197                 fi
26198               fi
26199             fi
26200                         if test "X$found_dir" = "X"; then
26201               if test -f "$dir/$libname.$acl_libext"; then
26202                 found_dir="$dir"
26203                 found_a="$dir/$libname.$acl_libext"
26204               fi
26205             fi
26206             if test "X$found_dir" != "X"; then
26207               if test -f "$dir/$libname.la"; then
26208                 found_la="$dir/$libname.la"
26209               fi
26210             fi
26211           fi
26212           if test "X$found_dir" = "X"; then
26213             for x in $LDFLAGS $LTLIBUNISTRING; do
26214
26215   acl_save_prefix="$prefix"
26216   prefix="$acl_final_prefix"
26217   acl_save_exec_prefix="$exec_prefix"
26218   exec_prefix="$acl_final_exec_prefix"
26219   eval x=\"$x\"
26220   exec_prefix="$acl_save_exec_prefix"
26221   prefix="$acl_save_prefix"
26222
26223               case "$x" in
26224                 -L*)
26225                   dir=`echo "X$x" | sed -e 's/^X-L//'`
26226                                     if test -n "$acl_shlibext"; then
26227                     if test -f "$dir/$libname$shrext"; then
26228                       found_dir="$dir"
26229                       found_so="$dir/$libname$shrext"
26230                     else
26231                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26232                         ver=`(cd "$dir" && \
26233                               for f in "$libname$shrext".*; do echo "$f"; done \
26234                               | sed -e "s,^$libname$shrext\\\\.,," \
26235                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26236                               | sed 1q ) 2>/dev/null`
26237                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26238                           found_dir="$dir"
26239                           found_so="$dir/$libname$shrext.$ver"
26240                         fi
26241                       else
26242                         eval library_names=\"$acl_library_names_spec\"
26243                         for f in $library_names; do
26244                           if test -f "$dir/$f"; then
26245                             found_dir="$dir"
26246                             found_so="$dir/$f"
26247                             break
26248                           fi
26249                         done
26250                       fi
26251                     fi
26252                   fi
26253                                     if test "X$found_dir" = "X"; then
26254                     if test -f "$dir/$libname.$acl_libext"; then
26255                       found_dir="$dir"
26256                       found_a="$dir/$libname.$acl_libext"
26257                     fi
26258                   fi
26259                   if test "X$found_dir" != "X"; then
26260                     if test -f "$dir/$libname.la"; then
26261                       found_la="$dir/$libname.la"
26262                     fi
26263                   fi
26264                   ;;
26265               esac
26266               if test "X$found_dir" != "X"; then
26267                 break
26268               fi
26269             done
26270           fi
26271           if test "X$found_dir" != "X"; then
26272                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
26273             if test "X$found_so" != "X"; then
26274                                                         if test "$enable_rpath" = no \
26275                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
26276                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
26277                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
26278               else
26279                                                                                 haveit=
26280                 for x in $ltrpathdirs; do
26281                   if test "X$x" = "X$found_dir"; then
26282                     haveit=yes
26283                     break
26284                   fi
26285                 done
26286                 if test -z "$haveit"; then
26287                   ltrpathdirs="$ltrpathdirs $found_dir"
26288                 fi
26289                                 if test "$acl_hardcode_direct" = yes; then
26290                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
26291                 else
26292                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26293                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
26294                                                             haveit=
26295                     for x in $rpathdirs; do
26296                       if test "X$x" = "X$found_dir"; then
26297                         haveit=yes
26298                         break
26299                       fi
26300                     done
26301                     if test -z "$haveit"; then
26302                       rpathdirs="$rpathdirs $found_dir"
26303                     fi
26304                   else
26305                                                                                 haveit=
26306                     for x in $LDFLAGS $LIBUNISTRING; do
26307
26308   acl_save_prefix="$prefix"
26309   prefix="$acl_final_prefix"
26310   acl_save_exec_prefix="$exec_prefix"
26311   exec_prefix="$acl_final_exec_prefix"
26312   eval x=\"$x\"
26313   exec_prefix="$acl_save_exec_prefix"
26314   prefix="$acl_save_prefix"
26315
26316                       if test "X$x" = "X-L$found_dir"; then
26317                         haveit=yes
26318                         break
26319                       fi
26320                     done
26321                     if test -z "$haveit"; then
26322                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
26323                     fi
26324                     if test "$acl_hardcode_minus_L" != no; then
26325                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
26326                     else
26327                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
26328                     fi
26329                   fi
26330                 fi
26331               fi
26332             else
26333               if test "X$found_a" != "X"; then
26334                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
26335               else
26336                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
26337               fi
26338             fi
26339                         additional_includedir=
26340             case "$found_dir" in
26341               */$acl_libdirstem | */$acl_libdirstem/)
26342                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26343                 if test "$name" = 'unistring'; then
26344                   LIBUNISTRING_PREFIX="$basedir"
26345                 fi
26346                 additional_includedir="$basedir/include"
26347                 ;;
26348               */$acl_libdirstem2 | */$acl_libdirstem2/)
26349                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
26350                 if test "$name" = 'unistring'; then
26351                   LIBUNISTRING_PREFIX="$basedir"
26352                 fi
26353                 additional_includedir="$basedir/include"
26354                 ;;
26355             esac
26356             if test "X$additional_includedir" != "X"; then
26357                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
26358                 haveit=
26359                 if test "X$additional_includedir" = "X/usr/local/include"; then
26360                   if test -n "$GCC"; then
26361                     case $host_os in
26362                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26363                     esac
26364                   fi
26365                 fi
26366                 if test -z "$haveit"; then
26367                   for x in $CPPFLAGS $INCUNISTRING; do
26368
26369   acl_save_prefix="$prefix"
26370   prefix="$acl_final_prefix"
26371   acl_save_exec_prefix="$exec_prefix"
26372   exec_prefix="$acl_final_exec_prefix"
26373   eval x=\"$x\"
26374   exec_prefix="$acl_save_exec_prefix"
26375   prefix="$acl_save_prefix"
26376
26377                     if test "X$x" = "X-I$additional_includedir"; then
26378                       haveit=yes
26379                       break
26380                     fi
26381                   done
26382                   if test -z "$haveit"; then
26383                     if test -d "$additional_includedir"; then
26384                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
26385                     fi
26386                   fi
26387                 fi
26388               fi
26389             fi
26390                         if test -n "$found_la"; then
26391                                                         save_libdir="$libdir"
26392               case "$found_la" in
26393                 */* | *\\*) . "$found_la" ;;
26394                 *) . "./$found_la" ;;
26395               esac
26396               libdir="$save_libdir"
26397                             for dep in $dependency_libs; do
26398                 case "$dep" in
26399                   -L*)
26400                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26401                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
26402                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
26403                       haveit=
26404                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
26405                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
26406                         if test -n "$GCC"; then
26407                           case $host_os in
26408                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26409                           esac
26410                         fi
26411                       fi
26412                       if test -z "$haveit"; then
26413                         haveit=
26414                         for x in $LDFLAGS $LIBUNISTRING; do
26415
26416   acl_save_prefix="$prefix"
26417   prefix="$acl_final_prefix"
26418   acl_save_exec_prefix="$exec_prefix"
26419   exec_prefix="$acl_final_exec_prefix"
26420   eval x=\"$x\"
26421   exec_prefix="$acl_save_exec_prefix"
26422   prefix="$acl_save_prefix"
26423
26424                           if test "X$x" = "X-L$additional_libdir"; then
26425                             haveit=yes
26426                             break
26427                           fi
26428                         done
26429                         if test -z "$haveit"; then
26430                           if test -d "$additional_libdir"; then
26431                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
26432                           fi
26433                         fi
26434                         haveit=
26435                         for x in $LDFLAGS $LTLIBUNISTRING; do
26436
26437   acl_save_prefix="$prefix"
26438   prefix="$acl_final_prefix"
26439   acl_save_exec_prefix="$exec_prefix"
26440   exec_prefix="$acl_final_exec_prefix"
26441   eval x=\"$x\"
26442   exec_prefix="$acl_save_exec_prefix"
26443   prefix="$acl_save_prefix"
26444
26445                           if test "X$x" = "X-L$additional_libdir"; then
26446                             haveit=yes
26447                             break
26448                           fi
26449                         done
26450                         if test -z "$haveit"; then
26451                           if test -d "$additional_libdir"; then
26452                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
26453                           fi
26454                         fi
26455                       fi
26456                     fi
26457                     ;;
26458                   -R*)
26459                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
26460                     if test "$enable_rpath" != no; then
26461                                                                   haveit=
26462                       for x in $rpathdirs; do
26463                         if test "X$x" = "X$dir"; then
26464                           haveit=yes
26465                           break
26466                         fi
26467                       done
26468                       if test -z "$haveit"; then
26469                         rpathdirs="$rpathdirs $dir"
26470                       fi
26471                                                                   haveit=
26472                       for x in $ltrpathdirs; do
26473                         if test "X$x" = "X$dir"; then
26474                           haveit=yes
26475                           break
26476                         fi
26477                       done
26478                       if test -z "$haveit"; then
26479                         ltrpathdirs="$ltrpathdirs $dir"
26480                       fi
26481                     fi
26482                     ;;
26483                   -l*)
26484                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26485                     ;;
26486                   *.la)
26487                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26488                     ;;
26489                   *)
26490                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
26491                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
26492                     ;;
26493                 esac
26494               done
26495             fi
26496           else
26497                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
26498             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
26499           fi
26500         fi
26501       fi
26502     done
26503   done
26504   if test "X$rpathdirs" != "X"; then
26505     if test -n "$acl_hardcode_libdir_separator"; then
26506                         alldirs=
26507       for found_dir in $rpathdirs; do
26508         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
26509       done
26510             acl_save_libdir="$libdir"
26511       libdir="$alldirs"
26512       eval flag=\"$acl_hardcode_libdir_flag_spec\"
26513       libdir="$acl_save_libdir"
26514       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
26515     else
26516             for found_dir in $rpathdirs; do
26517         acl_save_libdir="$libdir"
26518         libdir="$found_dir"
26519         eval flag=\"$acl_hardcode_libdir_flag_spec\"
26520         libdir="$acl_save_libdir"
26521         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
26522       done
26523     fi
26524   fi
26525   if test "X$ltrpathdirs" != "X"; then
26526             for found_dir in $ltrpathdirs; do
26527       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
26528     done
26529   fi
26530
26531
26532
26533
26534
26535
26536
26537         ac_save_CPPFLAGS="$CPPFLAGS"
26538
26539   for element in $INCUNISTRING; do
26540     haveit=
26541     for x in $CPPFLAGS; do
26542
26543   acl_save_prefix="$prefix"
26544   prefix="$acl_final_prefix"
26545   acl_save_exec_prefix="$exec_prefix"
26546   exec_prefix="$acl_final_exec_prefix"
26547   eval x=\"$x\"
26548   exec_prefix="$acl_save_exec_prefix"
26549   prefix="$acl_save_prefix"
26550
26551       if test "X$x" = "X$element"; then
26552         haveit=yes
26553         break
26554       fi
26555     done
26556     if test -z "$haveit"; then
26557       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26558     fi
26559   done
26560
26561
26562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
26563 $as_echo_n "checking for libunistring... " >&6; }
26564 if ${ac_cv_libunistring+:} false; then :
26565   $as_echo_n "(cached) " >&6
26566 else
26567
26568     ac_save_LIBS="$LIBS"
26569                                 case " $LIBUNISTRING" in
26570       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
26571       *)       LIBS="$LIBUNISTRING $LIBS" ;;
26572     esac
26573     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26574 /* end confdefs.h.  */
26575 #include <uniconv.h>
26576 int
26577 main ()
26578 {
26579 u8_strconv_from_locale((char*)0);
26580   ;
26581   return 0;
26582 }
26583 _ACEOF
26584 if ac_fn_c_try_link "$LINENO"; then :
26585   ac_cv_libunistring=yes
26586 else
26587   ac_cv_libunistring='no, consider installing GNU libunistring'
26588 fi
26589 rm -f core conftest.err conftest.$ac_objext \
26590     conftest$ac_exeext conftest.$ac_ext
26591     LIBS="$ac_save_LIBS"
26592
26593 fi
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
26595 $as_echo "$ac_cv_libunistring" >&6; }
26596   if test "$ac_cv_libunistring" = yes; then
26597     HAVE_LIBUNISTRING=yes
26598
26599 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
26600
26601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
26602 $as_echo_n "checking how to link with libunistring... " >&6; }
26603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
26604 $as_echo "$LIBUNISTRING" >&6; }
26605   else
26606     HAVE_LIBUNISTRING=no
26607             CPPFLAGS="$ac_save_CPPFLAGS"
26608     LIBUNISTRING=
26609     LTLIBUNISTRING=
26610     LIBUNISTRING_PREFIX=
26611   fi
26612
26613
26614
26615
26616
26617
26618
26619       if test -n "$LIBUNISTRING"; then
26620         LIBUNISTRING="$LIBUNISTRING $LIBICONV"
26621         LTLIBUNISTRING="$LTLIBUNISTRING $LTLIBICONV"
26622       fi
26623       LIBS="$glus_save_LIBS"
26624     fi
26625   else
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639     use_additional=yes
26640
26641   acl_save_prefix="$prefix"
26642   prefix="$acl_final_prefix"
26643   acl_save_exec_prefix="$exec_prefix"
26644   exec_prefix="$acl_final_exec_prefix"
26645
26646     eval additional_includedir=\"$includedir\"
26647     eval additional_libdir=\"$libdir\"
26648
26649   exec_prefix="$acl_save_exec_prefix"
26650   prefix="$acl_save_prefix"
26651
26652
26653 # Check whether --with-libunistring-prefix was given.
26654 if test "${with_libunistring_prefix+set}" = set; then :
26655   withval=$with_libunistring_prefix;
26656     if test "X$withval" = "Xno"; then
26657       use_additional=no
26658     else
26659       if test "X$withval" = "X"; then
26660
26661   acl_save_prefix="$prefix"
26662   prefix="$acl_final_prefix"
26663   acl_save_exec_prefix="$exec_prefix"
26664   exec_prefix="$acl_final_exec_prefix"
26665
26666           eval additional_includedir=\"$includedir\"
26667           eval additional_libdir=\"$libdir\"
26668
26669   exec_prefix="$acl_save_exec_prefix"
26670   prefix="$acl_save_prefix"
26671
26672       else
26673         additional_includedir="$withval/include"
26674         additional_libdir="$withval/$acl_libdirstem"
26675         if test "$acl_libdirstem2" != "$acl_libdirstem" \
26676            && ! test -d "$withval/$acl_libdirstem"; then
26677           additional_libdir="$withval/$acl_libdirstem2"
26678         fi
26679       fi
26680     fi
26681
26682 fi
26683
26684       LIBUNISTRING=
26685   LTLIBUNISTRING=
26686   INCUNISTRING=
26687   LIBUNISTRING_PREFIX=
26688       HAVE_LIBUNISTRING=
26689   rpathdirs=
26690   ltrpathdirs=
26691   names_already_handled=
26692   names_next_round='unistring '
26693   while test -n "$names_next_round"; do
26694     names_this_round="$names_next_round"
26695     names_next_round=
26696     for name in $names_this_round; do
26697       already_handled=
26698       for n in $names_already_handled; do
26699         if test "$n" = "$name"; then
26700           already_handled=yes
26701           break
26702         fi
26703       done
26704       if test -z "$already_handled"; then
26705         names_already_handled="$names_already_handled $name"
26706                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
26707         eval value=\"\$HAVE_LIB$uppername\"
26708         if test -n "$value"; then
26709           if test "$value" = yes; then
26710             eval value=\"\$LIB$uppername\"
26711             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
26712             eval value=\"\$LTLIB$uppername\"
26713             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
26714           else
26715                                     :
26716           fi
26717         else
26718                               found_dir=
26719           found_la=
26720           found_so=
26721           found_a=
26722           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
26723           if test -n "$acl_shlibext"; then
26724             shrext=".$acl_shlibext"             # typically: shrext=.so
26725           else
26726             shrext=
26727           fi
26728           if test $use_additional = yes; then
26729             dir="$additional_libdir"
26730                                     if test -n "$acl_shlibext"; then
26731               if test -f "$dir/$libname$shrext"; then
26732                 found_dir="$dir"
26733                 found_so="$dir/$libname$shrext"
26734               else
26735                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26736                   ver=`(cd "$dir" && \
26737                         for f in "$libname$shrext".*; do echo "$f"; done \
26738                         | sed -e "s,^$libname$shrext\\\\.,," \
26739                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26740                         | sed 1q ) 2>/dev/null`
26741                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26742                     found_dir="$dir"
26743                     found_so="$dir/$libname$shrext.$ver"
26744                   fi
26745                 else
26746                   eval library_names=\"$acl_library_names_spec\"
26747                   for f in $library_names; do
26748                     if test -f "$dir/$f"; then
26749                       found_dir="$dir"
26750                       found_so="$dir/$f"
26751                       break
26752                     fi
26753                   done
26754                 fi
26755               fi
26756             fi
26757                         if test "X$found_dir" = "X"; then
26758               if test -f "$dir/$libname.$acl_libext"; then
26759                 found_dir="$dir"
26760                 found_a="$dir/$libname.$acl_libext"
26761               fi
26762             fi
26763             if test "X$found_dir" != "X"; then
26764               if test -f "$dir/$libname.la"; then
26765                 found_la="$dir/$libname.la"
26766               fi
26767             fi
26768           fi
26769           if test "X$found_dir" = "X"; then
26770             for x in $LDFLAGS $LTLIBUNISTRING; do
26771
26772   acl_save_prefix="$prefix"
26773   prefix="$acl_final_prefix"
26774   acl_save_exec_prefix="$exec_prefix"
26775   exec_prefix="$acl_final_exec_prefix"
26776   eval x=\"$x\"
26777   exec_prefix="$acl_save_exec_prefix"
26778   prefix="$acl_save_prefix"
26779
26780               case "$x" in
26781                 -L*)
26782                   dir=`echo "X$x" | sed -e 's/^X-L//'`
26783                                     if test -n "$acl_shlibext"; then
26784                     if test -f "$dir/$libname$shrext"; then
26785                       found_dir="$dir"
26786                       found_so="$dir/$libname$shrext"
26787                     else
26788                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26789                         ver=`(cd "$dir" && \
26790                               for f in "$libname$shrext".*; do echo "$f"; done \
26791                               | sed -e "s,^$libname$shrext\\\\.,," \
26792                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26793                               | sed 1q ) 2>/dev/null`
26794                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26795                           found_dir="$dir"
26796                           found_so="$dir/$libname$shrext.$ver"
26797                         fi
26798                       else
26799                         eval library_names=\"$acl_library_names_spec\"
26800                         for f in $library_names; do
26801                           if test -f "$dir/$f"; then
26802                             found_dir="$dir"
26803                             found_so="$dir/$f"
26804                             break
26805                           fi
26806                         done
26807                       fi
26808                     fi
26809                   fi
26810                                     if test "X$found_dir" = "X"; then
26811                     if test -f "$dir/$libname.$acl_libext"; then
26812                       found_dir="$dir"
26813                       found_a="$dir/$libname.$acl_libext"
26814                     fi
26815                   fi
26816                   if test "X$found_dir" != "X"; then
26817                     if test -f "$dir/$libname.la"; then
26818                       found_la="$dir/$libname.la"
26819                     fi
26820                   fi
26821                   ;;
26822               esac
26823               if test "X$found_dir" != "X"; then
26824                 break
26825               fi
26826             done
26827           fi
26828           if test "X$found_dir" != "X"; then
26829                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
26830             if test "X$found_so" != "X"; then
26831                                                         if test "$enable_rpath" = no \
26832                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
26833                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
26834                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
26835               else
26836                                                                                 haveit=
26837                 for x in $ltrpathdirs; do
26838                   if test "X$x" = "X$found_dir"; then
26839                     haveit=yes
26840                     break
26841                   fi
26842                 done
26843                 if test -z "$haveit"; then
26844                   ltrpathdirs="$ltrpathdirs $found_dir"
26845                 fi
26846                                 if test "$acl_hardcode_direct" = yes; then
26847                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
26848                 else
26849                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26850                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
26851                                                             haveit=
26852                     for x in $rpathdirs; do
26853                       if test "X$x" = "X$found_dir"; then
26854                         haveit=yes
26855                         break
26856                       fi
26857                     done
26858                     if test -z "$haveit"; then
26859                       rpathdirs="$rpathdirs $found_dir"
26860                     fi
26861                   else
26862                                                                                 haveit=
26863                     for x in $LDFLAGS $LIBUNISTRING; do
26864
26865   acl_save_prefix="$prefix"
26866   prefix="$acl_final_prefix"
26867   acl_save_exec_prefix="$exec_prefix"
26868   exec_prefix="$acl_final_exec_prefix"
26869   eval x=\"$x\"
26870   exec_prefix="$acl_save_exec_prefix"
26871   prefix="$acl_save_prefix"
26872
26873                       if test "X$x" = "X-L$found_dir"; then
26874                         haveit=yes
26875                         break
26876                       fi
26877                     done
26878                     if test -z "$haveit"; then
26879                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
26880                     fi
26881                     if test "$acl_hardcode_minus_L" != no; then
26882                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
26883                     else
26884                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
26885                     fi
26886                   fi
26887                 fi
26888               fi
26889             else
26890               if test "X$found_a" != "X"; then
26891                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
26892               else
26893                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
26894               fi
26895             fi
26896                         additional_includedir=
26897             case "$found_dir" in
26898               */$acl_libdirstem | */$acl_libdirstem/)
26899                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26900                 if test "$name" = 'unistring'; then
26901                   LIBUNISTRING_PREFIX="$basedir"
26902                 fi
26903                 additional_includedir="$basedir/include"
26904                 ;;
26905               */$acl_libdirstem2 | */$acl_libdirstem2/)
26906                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
26907                 if test "$name" = 'unistring'; then
26908                   LIBUNISTRING_PREFIX="$basedir"
26909                 fi
26910                 additional_includedir="$basedir/include"
26911                 ;;
26912             esac
26913             if test "X$additional_includedir" != "X"; then
26914                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
26915                 haveit=
26916                 if test "X$additional_includedir" = "X/usr/local/include"; then
26917                   if test -n "$GCC"; then
26918                     case $host_os in
26919                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26920                     esac
26921                   fi
26922                 fi
26923                 if test -z "$haveit"; then
26924                   for x in $CPPFLAGS $INCUNISTRING; do
26925
26926   acl_save_prefix="$prefix"
26927   prefix="$acl_final_prefix"
26928   acl_save_exec_prefix="$exec_prefix"
26929   exec_prefix="$acl_final_exec_prefix"
26930   eval x=\"$x\"
26931   exec_prefix="$acl_save_exec_prefix"
26932   prefix="$acl_save_prefix"
26933
26934                     if test "X$x" = "X-I$additional_includedir"; then
26935                       haveit=yes
26936                       break
26937                     fi
26938                   done
26939                   if test -z "$haveit"; then
26940                     if test -d "$additional_includedir"; then
26941                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
26942                     fi
26943                   fi
26944                 fi
26945               fi
26946             fi
26947                         if test -n "$found_la"; then
26948                                                         save_libdir="$libdir"
26949               case "$found_la" in
26950                 */* | *\\*) . "$found_la" ;;
26951                 *) . "./$found_la" ;;
26952               esac
26953               libdir="$save_libdir"
26954                             for dep in $dependency_libs; do
26955                 case "$dep" in
26956                   -L*)
26957                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26958                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
26959                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
26960                       haveit=
26961                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
26962                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
26963                         if test -n "$GCC"; then
26964                           case $host_os in
26965                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26966                           esac
26967                         fi
26968                       fi
26969                       if test -z "$haveit"; then
26970                         haveit=
26971                         for x in $LDFLAGS $LIBUNISTRING; do
26972
26973   acl_save_prefix="$prefix"
26974   prefix="$acl_final_prefix"
26975   acl_save_exec_prefix="$exec_prefix"
26976   exec_prefix="$acl_final_exec_prefix"
26977   eval x=\"$x\"
26978   exec_prefix="$acl_save_exec_prefix"
26979   prefix="$acl_save_prefix"
26980
26981                           if test "X$x" = "X-L$additional_libdir"; then
26982                             haveit=yes
26983                             break
26984                           fi
26985                         done
26986                         if test -z "$haveit"; then
26987                           if test -d "$additional_libdir"; then
26988                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
26989                           fi
26990                         fi
26991                         haveit=
26992                         for x in $LDFLAGS $LTLIBUNISTRING; do
26993
26994   acl_save_prefix="$prefix"
26995   prefix="$acl_final_prefix"
26996   acl_save_exec_prefix="$exec_prefix"
26997   exec_prefix="$acl_final_exec_prefix"
26998   eval x=\"$x\"
26999   exec_prefix="$acl_save_exec_prefix"
27000   prefix="$acl_save_prefix"
27001
27002                           if test "X$x" = "X-L$additional_libdir"; then
27003                             haveit=yes
27004                             break
27005                           fi
27006                         done
27007                         if test -z "$haveit"; then
27008                           if test -d "$additional_libdir"; then
27009                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
27010                           fi
27011                         fi
27012                       fi
27013                     fi
27014                     ;;
27015                   -R*)
27016                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
27017                     if test "$enable_rpath" != no; then
27018                                                                   haveit=
27019                       for x in $rpathdirs; do
27020                         if test "X$x" = "X$dir"; then
27021                           haveit=yes
27022                           break
27023                         fi
27024                       done
27025                       if test -z "$haveit"; then
27026                         rpathdirs="$rpathdirs $dir"
27027                       fi
27028                                                                   haveit=
27029                       for x in $ltrpathdirs; do
27030                         if test "X$x" = "X$dir"; then
27031                           haveit=yes
27032                           break
27033                         fi
27034                       done
27035                       if test -z "$haveit"; then
27036                         ltrpathdirs="$ltrpathdirs $dir"
27037                       fi
27038                     fi
27039                     ;;
27040                   -l*)
27041                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27042                     ;;
27043                   *.la)
27044                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27045                     ;;
27046                   *)
27047                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
27048                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
27049                     ;;
27050                 esac
27051               done
27052             fi
27053           else
27054                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
27055             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
27056           fi
27057         fi
27058       fi
27059     done
27060   done
27061   if test "X$rpathdirs" != "X"; then
27062     if test -n "$acl_hardcode_libdir_separator"; then
27063                         alldirs=
27064       for found_dir in $rpathdirs; do
27065         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27066       done
27067             acl_save_libdir="$libdir"
27068       libdir="$alldirs"
27069       eval flag=\"$acl_hardcode_libdir_flag_spec\"
27070       libdir="$acl_save_libdir"
27071       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
27072     else
27073             for found_dir in $rpathdirs; do
27074         acl_save_libdir="$libdir"
27075         libdir="$found_dir"
27076         eval flag=\"$acl_hardcode_libdir_flag_spec\"
27077         libdir="$acl_save_libdir"
27078         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
27079       done
27080     fi
27081   fi
27082   if test "X$ltrpathdirs" != "X"; then
27083             for found_dir in $ltrpathdirs; do
27084       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
27085     done
27086   fi
27087
27088
27089
27090
27091
27092
27093
27094         ac_save_CPPFLAGS="$CPPFLAGS"
27095
27096   for element in $INCUNISTRING; do
27097     haveit=
27098     for x in $CPPFLAGS; do
27099
27100   acl_save_prefix="$prefix"
27101   prefix="$acl_final_prefix"
27102   acl_save_exec_prefix="$exec_prefix"
27103   exec_prefix="$acl_final_exec_prefix"
27104   eval x=\"$x\"
27105   exec_prefix="$acl_save_exec_prefix"
27106   prefix="$acl_save_prefix"
27107
27108       if test "X$x" = "X$element"; then
27109         haveit=yes
27110         break
27111       fi
27112     done
27113     if test -z "$haveit"; then
27114       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27115     fi
27116   done
27117
27118
27119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
27120 $as_echo_n "checking for libunistring... " >&6; }
27121 if ${ac_cv_libunistring+:} false; then :
27122   $as_echo_n "(cached) " >&6
27123 else
27124
27125     ac_save_LIBS="$LIBS"
27126                                 case " $LIBUNISTRING" in
27127       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
27128       *)       LIBS="$LIBUNISTRING $LIBS" ;;
27129     esac
27130     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27131 /* end confdefs.h.  */
27132 #include <uniconv.h>
27133 int
27134 main ()
27135 {
27136 u8_strconv_from_locale((char*)0);
27137   ;
27138   return 0;
27139 }
27140 _ACEOF
27141 if ac_fn_c_try_link "$LINENO"; then :
27142   ac_cv_libunistring=yes
27143 else
27144   ac_cv_libunistring='no, consider installing GNU libunistring'
27145 fi
27146 rm -f core conftest.err conftest.$ac_objext \
27147     conftest$ac_exeext conftest.$ac_ext
27148     LIBS="$ac_save_LIBS"
27149
27150 fi
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
27152 $as_echo "$ac_cv_libunistring" >&6; }
27153   if test "$ac_cv_libunistring" = yes; then
27154     HAVE_LIBUNISTRING=yes
27155
27156 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
27157
27158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
27159 $as_echo_n "checking how to link with libunistring... " >&6; }
27160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
27161 $as_echo "$LIBUNISTRING" >&6; }
27162   else
27163     HAVE_LIBUNISTRING=no
27164             CPPFLAGS="$ac_save_CPPFLAGS"
27165     LIBUNISTRING=
27166     LTLIBUNISTRING=
27167     LIBUNISTRING_PREFIX=
27168   fi
27169
27170
27171
27172
27173
27174
27175
27176   fi
27177   if test $HAVE_LIBUNISTRING = yes; then
27178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring version" >&5
27179 $as_echo_n "checking for libunistring version... " >&6; }
27180 if ${gl_cv_libunistring_version+:} false; then :
27181   $as_echo_n "(cached) " >&6
27182 else
27183   if ac_fn_c_compute_int "$LINENO" "_LIBUNISTRING_VERSION" "gl_libunistring_hexversion"        "#include <unistring/version.h>"; then :
27184
27185 fi
27186
27187                      if test $gl_libunistring_hexversion = 9; then
27188                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27189 /* end confdefs.h.  */
27190 #include <unistring/cdefs.h>
27191 int
27192 main ()
27193 {
27194
27195   ;
27196   return 0;
27197 }
27198 _ACEOF
27199 if ac_fn_c_try_compile "$LINENO"; then :
27200   gl_cv_libunistring_version092=true
27201 else
27202   gl_cv_libunistring_version092=false
27203 fi
27204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27205          if $gl_cv_libunistring_version092; then
27206
27207
27208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27209 /* end confdefs.h.  */
27210 #include <unistr.h>
27211 _ACEOF
27212                 case "$host_os" in
27213     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27214     *)    gl_absname_cpp="$ac_cpp" ;;
27215   esac
27216
27217   case "$host_os" in
27218     mingw*)
27219                                           gl_dirsep_regex='[/\\]'
27220       ;;
27221     *)
27222       gl_dirsep_regex='\/'
27223       ;;
27224   esac
27225       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27226   gl_header_literal_regex=`echo 'unistr.h' \
27227                            | sed -e "$gl_make_literal_regex_sed"`
27228   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27229       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27230       s|^/[^/]|//&|
27231       p
27232       q
27233     }'
27234
27235         gl_cv_absolute_unistr_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27236   sed -n "$gl_absolute_header_sed"`
27237
27238            if test -n "$gl_cv_absolute_unistr_h" \
27239               && grep 'Copy no more than N units of SRC to DEST.  Return a pointer' $gl_cv_absolute_unistr_h > /dev/null; then
27240                           gl_libunistring_hexversion=2307
27241            else
27242                           gl_libunistring_hexversion=2306
27243            fi
27244          else
27245                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27246 /* end confdefs.h.  */
27247 #include <unicase.h>
27248                   casing_suffix_context_t ct;
27249 int
27250 main ()
27251 {
27252
27253   ;
27254   return 0;
27255 }
27256 _ACEOF
27257 if ac_fn_c_try_compile "$LINENO"; then :
27258   gl_cv_libunistring_version091=true
27259 else
27260   gl_cv_libunistring_version091=false
27261 fi
27262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27263            if $gl_cv_libunistring_version091; then
27264                           gl_libunistring_hexversion=2305
27265            else
27266                           gl_libunistring_hexversion=2304
27267            fi
27268          fi
27269        fi
27270               gl_libunistring_major=`expr $gl_libunistring_hexversion / 65536`
27271        gl_libunistring_minor=`expr $gl_libunistring_hexversion / 256 % 256`
27272        gl_libunistring_subminor=`expr $gl_libunistring_hexversion % 256`
27273        gl_cv_libunistring_version="$gl_libunistring_major.$gl_libunistring_minor.$gl_libunistring_subminor"
27274
27275 fi
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libunistring_version" >&5
27277 $as_echo "$gl_cv_libunistring_version" >&6; }
27278     LIBUNISTRING_VERSION="$gl_cv_libunistring_version"
27279   fi
27280
27281         if test $HAVE_LIBUNISTRING = no; then
27282           gl_libunistring_use_included=yes
27283           LIBUNISTRING=
27284           LTLIBUNISTRING=
27285         fi
27286       fi
27287
27288
27289
27290
27291
27292
27293 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
27294 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
27295   ac_have_decl=1
27296 else
27297   ac_have_decl=0
27298 fi
27299
27300 cat >>confdefs.h <<_ACEOF
27301 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
27302 _ACEOF
27303
27304
27305   GNULIB_LOCALECONV=0;
27306   GNULIB_SETLOCALE=0;
27307   GNULIB_DUPLOCALE=0;
27308     HAVE_DUPLOCALE=1;
27309   REPLACE_LOCALECONV=0;
27310   REPLACE_SETLOCALE=0;
27311   REPLACE_DUPLOCALE=0;
27312   REPLACE_STRUCT_LCONV=0;
27313
27314
27315     REPLACE_NULL=0;
27316   HAVE_WCHAR_T=1;
27317
27318
27319
27320
27321   STDDEF_H=
27322   if test $gt_cv_c_wchar_t = no; then
27323     HAVE_WCHAR_T=0
27324     STDDEF_H=stddef.h
27325   fi
27326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
27327 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
27328 if ${gl_cv_decl_null_works+:} false; then :
27329   $as_echo_n "(cached) " >&6
27330 else
27331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27332 /* end confdefs.h.  */
27333 #include <stddef.h>
27334       int test[2 * (sizeof NULL == sizeof (void *)) -1];
27335
27336 int
27337 main ()
27338 {
27339
27340   ;
27341   return 0;
27342 }
27343 _ACEOF
27344 if ac_fn_c_try_compile "$LINENO"; then :
27345   gl_cv_decl_null_works=yes
27346 else
27347   gl_cv_decl_null_works=no
27348 fi
27349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27350 fi
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
27352 $as_echo "$gl_cv_decl_null_works" >&6; }
27353   if test $gl_cv_decl_null_works = no; then
27354     REPLACE_NULL=1
27355     STDDEF_H=stddef.h
27356   fi
27357
27358    if test -n "$STDDEF_H"; then
27359   GL_GENERATE_STDDEF_H_TRUE=
27360   GL_GENERATE_STDDEF_H_FALSE='#'
27361 else
27362   GL_GENERATE_STDDEF_H_TRUE='#'
27363   GL_GENERATE_STDDEF_H_FALSE=
27364 fi
27365
27366   if test -n "$STDDEF_H"; then
27367
27368
27369
27370
27371
27372
27373
27374
27375      if test $gl_cv_have_include_next = yes; then
27376        gl_cv_next_stddef_h='<'stddef.h'>'
27377      else
27378        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
27379 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
27380 if ${gl_cv_next_stddef_h+:} false; then :
27381   $as_echo_n "(cached) " >&6
27382 else
27383
27384                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27385 /* end confdefs.h.  */
27386 #include <stddef.h>
27387
27388 _ACEOF
27389                                                                                                                         case "$host_os" in
27390                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
27391                  *)    gl_absname_cpp="$ac_cpp" ;;
27392                esac
27393
27394                case "$host_os" in
27395                  mingw*)
27396                                                                                                                                      gl_dirsep_regex='[/\\]'
27397                    ;;
27398                  *)
27399                    gl_dirsep_regex='\/'
27400                    ;;
27401                esac
27402                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27403
27404                gl_header_literal_regex=`echo 'stddef.h' \
27405                                         | sed -e "$gl_make_literal_regex_sed"`
27406                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27407                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27408                    s|^/[^/]|//&|
27409                    p
27410                    q
27411                  }'
27412                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27413                       sed -n "$gl_absolute_header_sed"`'"'
27414
27415
27416 fi
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
27418 $as_echo "$gl_cv_next_stddef_h" >&6; }
27419      fi
27420      NEXT_STDDEF_H=$gl_cv_next_stddef_h
27421
27422      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27423        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27424        gl_next_as_first_directive='<'stddef.h'>'
27425      else
27426        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27427        gl_next_as_first_directive=$gl_cv_next_stddef_h
27428      fi
27429      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
27430
27431
27432
27433
27434   fi
27435
27436
27437
27438
27439
27440
27441       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
27442 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
27443 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
27444   $as_echo_n "(cached) " >&6
27445 else
27446   rm -f conftest.sym conftest.file
27447      echo >conftest.file
27448      if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
27449        if test "$cross_compiling" = yes; then :
27450   case "$host_os" in
27451                     # Guess yes on glibc systems.
27452             *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
27453                     # If we don't know, assume the worst.
27454             *)      gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
27455           esac
27456
27457 else
27458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27459 /* end confdefs.h.  */
27460 $ac_includes_default
27461 int
27462 main ()
27463 {
27464 struct stat sbuf;
27465               /* Linux will dereference the symlink and fail, as required by
27466                  POSIX.  That is better in the sense that it means we will not
27467                  have to compile and use the lstat wrapper.  */
27468               return lstat ("conftest.sym/", &sbuf) == 0;
27469
27470   ;
27471   return 0;
27472 }
27473 _ACEOF
27474 if ac_fn_c_try_run "$LINENO"; then :
27475   gl_cv_func_lstat_dereferences_slashed_symlink=yes
27476 else
27477   gl_cv_func_lstat_dereferences_slashed_symlink=no
27478 fi
27479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27480   conftest.$ac_objext conftest.beam conftest.$ac_ext
27481 fi
27482
27483      else
27484        # If the 'ln -s' command failed, then we probably don't even
27485        # have an lstat function.
27486        gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
27487      fi
27488      rm -f conftest.sym conftest.file
27489
27490 fi
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
27492 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
27493   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
27494     *yes)
27495
27496 cat >>confdefs.h <<_ACEOF
27497 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
27498 _ACEOF
27499
27500       ;;
27501   esac
27502
27503
27504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
27505 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
27506 if ${gl_cv_func_malloc_posix+:} false; then :
27507   $as_echo_n "(cached) " >&6
27508 else
27509
27510                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27511 /* end confdefs.h.  */
27512
27513 int
27514 main ()
27515 {
27516 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
27517              choke me
27518              #endif
27519
27520   ;
27521   return 0;
27522 }
27523 _ACEOF
27524 if ac_fn_c_try_compile "$LINENO"; then :
27525   gl_cv_func_malloc_posix=yes
27526 else
27527   gl_cv_func_malloc_posix=no
27528 fi
27529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27530
27531 fi
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
27533 $as_echo "$gl_cv_func_malloc_posix" >&6; }
27534
27535
27536
27537       for ac_header in stdlib.h
27538 do :
27539   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
27540 if test "x$ac_cv_header_stdlib_h" = xyes; then :
27541   cat >>confdefs.h <<_ACEOF
27542 #define HAVE_STDLIB_H 1
27543 _ACEOF
27544
27545 fi
27546
27547 done
27548
27549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
27550 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
27551 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
27552   $as_echo_n "(cached) " >&6
27553 else
27554   if test "$cross_compiling" = yes; then :
27555   case "$host_os" in
27556           # Guess yes on platforms where we know the result.
27557           *-gnu* | freebsd* | netbsd* | openbsd* \
27558           | hpux* | solaris* | cygwin* | mingw*)
27559             ac_cv_func_malloc_0_nonnull=yes ;;
27560           # If we don't know, assume the worst.
27561           *) ac_cv_func_malloc_0_nonnull=no ;;
27562         esac
27563
27564 else
27565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27566 /* end confdefs.h.  */
27567 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
27568             # include <stdlib.h>
27569             #else
27570             char *malloc ();
27571             #endif
27572
27573 int
27574 main ()
27575 {
27576 return ! malloc (0);
27577   ;
27578   return 0;
27579 }
27580
27581 _ACEOF
27582 if ac_fn_c_try_run "$LINENO"; then :
27583   ac_cv_func_malloc_0_nonnull=yes
27584 else
27585   ac_cv_func_malloc_0_nonnull=no
27586 fi
27587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27588   conftest.$ac_objext conftest.beam conftest.$ac_ext
27589 fi
27590
27591
27592 fi
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
27594 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
27595   if test $ac_cv_func_malloc_0_nonnull = yes; then :
27596   gl_cv_func_malloc_0_nonnull=1
27597 else
27598   gl_cv_func_malloc_0_nonnull=0
27599 fi
27600
27601
27602 cat >>confdefs.h <<_ACEOF
27603 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
27604 _ACEOF
27605
27606
27607
27608   GNULIB_BTOWC=0;
27609   GNULIB_WCTOB=0;
27610   GNULIB_MBSINIT=0;
27611   GNULIB_MBRTOWC=0;
27612   GNULIB_MBRLEN=0;
27613   GNULIB_MBSRTOWCS=0;
27614   GNULIB_MBSNRTOWCS=0;
27615   GNULIB_WCRTOMB=0;
27616   GNULIB_WCSRTOMBS=0;
27617   GNULIB_WCSNRTOMBS=0;
27618   GNULIB_WCWIDTH=0;
27619   GNULIB_WMEMCHR=0;
27620   GNULIB_WMEMCMP=0;
27621   GNULIB_WMEMCPY=0;
27622   GNULIB_WMEMMOVE=0;
27623   GNULIB_WMEMSET=0;
27624   GNULIB_WCSLEN=0;
27625   GNULIB_WCSNLEN=0;
27626   GNULIB_WCSCPY=0;
27627   GNULIB_WCPCPY=0;
27628   GNULIB_WCSNCPY=0;
27629   GNULIB_WCPNCPY=0;
27630   GNULIB_WCSCAT=0;
27631   GNULIB_WCSNCAT=0;
27632   GNULIB_WCSCMP=0;
27633   GNULIB_WCSNCMP=0;
27634   GNULIB_WCSCASECMP=0;
27635   GNULIB_WCSNCASECMP=0;
27636   GNULIB_WCSCOLL=0;
27637   GNULIB_WCSXFRM=0;
27638   GNULIB_WCSDUP=0;
27639   GNULIB_WCSCHR=0;
27640   GNULIB_WCSRCHR=0;
27641   GNULIB_WCSCSPN=0;
27642   GNULIB_WCSSPN=0;
27643   GNULIB_WCSPBRK=0;
27644   GNULIB_WCSSTR=0;
27645   GNULIB_WCSTOK=0;
27646   GNULIB_WCSWIDTH=0;
27647     HAVE_BTOWC=1;
27648   HAVE_MBSINIT=1;
27649   HAVE_MBRTOWC=1;
27650   HAVE_MBRLEN=1;
27651   HAVE_MBSRTOWCS=1;
27652   HAVE_MBSNRTOWCS=1;
27653   HAVE_WCRTOMB=1;
27654   HAVE_WCSRTOMBS=1;
27655   HAVE_WCSNRTOMBS=1;
27656   HAVE_WMEMCHR=1;
27657   HAVE_WMEMCMP=1;
27658   HAVE_WMEMCPY=1;
27659   HAVE_WMEMMOVE=1;
27660   HAVE_WMEMSET=1;
27661   HAVE_WCSLEN=1;
27662   HAVE_WCSNLEN=1;
27663   HAVE_WCSCPY=1;
27664   HAVE_WCPCPY=1;
27665   HAVE_WCSNCPY=1;
27666   HAVE_WCPNCPY=1;
27667   HAVE_WCSCAT=1;
27668   HAVE_WCSNCAT=1;
27669   HAVE_WCSCMP=1;
27670   HAVE_WCSNCMP=1;
27671   HAVE_WCSCASECMP=1;
27672   HAVE_WCSNCASECMP=1;
27673   HAVE_WCSCOLL=1;
27674   HAVE_WCSXFRM=1;
27675   HAVE_WCSDUP=1;
27676   HAVE_WCSCHR=1;
27677   HAVE_WCSRCHR=1;
27678   HAVE_WCSCSPN=1;
27679   HAVE_WCSSPN=1;
27680   HAVE_WCSPBRK=1;
27681   HAVE_WCSSTR=1;
27682   HAVE_WCSTOK=1;
27683   HAVE_WCSWIDTH=1;
27684   HAVE_DECL_WCTOB=1;
27685   HAVE_DECL_WCWIDTH=1;
27686   REPLACE_MBSTATE_T=0;
27687   REPLACE_BTOWC=0;
27688   REPLACE_WCTOB=0;
27689   REPLACE_MBSINIT=0;
27690   REPLACE_MBRTOWC=0;
27691   REPLACE_MBRLEN=0;
27692   REPLACE_MBSRTOWCS=0;
27693   REPLACE_MBSNRTOWCS=0;
27694   REPLACE_WCRTOMB=0;
27695   REPLACE_WCSRTOMBS=0;
27696   REPLACE_WCSNRTOMBS=0;
27697   REPLACE_WCWIDTH=0;
27698   REPLACE_WCSWIDTH=0;
27699
27700
27701
27702
27703
27704
27705
27706
27707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
27708 $as_echo_n "checking for a traditional japanese locale... " >&6; }
27709 if ${gt_cv_locale_ja+:} false; then :
27710   $as_echo_n "(cached) " >&6
27711 else
27712
27713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27714 /* end confdefs.h.  */
27715
27716 #include <locale.h>
27717 #include <time.h>
27718 #if HAVE_LANGINFO_CODESET
27719 # include <langinfo.h>
27720 #endif
27721 #include <stdlib.h>
27722 #include <string.h>
27723 struct tm t;
27724 char buf[16];
27725 int main ()
27726 {
27727   const char *p;
27728   /* Check whether the given locale name is recognized by the system.  */
27729 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
27730   /* On native Windows, setlocale(category, "") looks at the system settings,
27731      not at the environment variables.  Also, when an encoding suffix such
27732      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
27733      category of the locale to "C".  */
27734   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
27735       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
27736     return 1;
27737 #else
27738   if (setlocale (LC_ALL, "") == NULL) return 1;
27739 #endif
27740   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
27741      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
27742      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
27743      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
27744      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
27745      some unit tests fail.
27746      On MirBSD 10, when an unsupported locale is specified, setlocale()
27747      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
27748 #if HAVE_LANGINFO_CODESET
27749   {
27750     const char *cs = nl_langinfo (CODESET);
27751     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
27752         || strcmp (cs, "UTF-8") == 0)
27753       return 1;
27754   }
27755 #endif
27756 #ifdef __CYGWIN__
27757   /* On Cygwin, avoid locale names without encoding suffix, because the
27758      locale_charset() function relies on the encoding suffix.  Note that
27759      LC_ALL is set on the command line.  */
27760   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
27761 #endif
27762   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
27763      on Cygwin 1.5.x.  */
27764   if (MB_CUR_MAX == 1)
27765     return 1;
27766   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
27767      This excludes the UTF-8 encoding (except on MirBSD).  */
27768   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
27769   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
27770   for (p = buf; *p != '\0'; p++)
27771     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
27772       return 1;
27773   return 0;
27774 }
27775
27776 _ACEOF
27777     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
27778   (eval $ac_link) 2>&5
27779   ac_status=$?
27780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27781   test $ac_status = 0; } && test -s conftest$ac_exeext; then
27782       case "$host_os" in
27783         # Handle native Windows specially, because there setlocale() interprets
27784         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
27785         # "fr" or "fra" as "French" or "French_France.1252",
27786         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
27787         # "ja" as "Japanese" or "Japanese_Japan.932",
27788         # and similar.
27789         mingw*)
27790           # Note that on native Windows, the Japanese locale is
27791           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
27792           # cannot use it here.
27793           gt_cv_locale_ja=none
27794           ;;
27795         *)
27796           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
27797           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
27798           # configure script would override the LC_ALL setting. Likewise for
27799           # LC_CTYPE, which is also set at the beginning of the configure script.
27800           # Test for the AIX locale name.
27801           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27802             gt_cv_locale_ja=ja_JP
27803           else
27804             # Test for the locale name with explicit encoding suffix.
27805             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27806               gt_cv_locale_ja=ja_JP.EUC-JP
27807             else
27808               # Test for the HP-UX, OSF/1, NetBSD locale name.
27809               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27810                 gt_cv_locale_ja=ja_JP.eucJP
27811               else
27812                 # Test for the IRIX, FreeBSD locale name.
27813                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27814                   gt_cv_locale_ja=ja_JP.EUC
27815                 else
27816                   # Test for the Solaris 7 locale name.
27817                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27818                     gt_cv_locale_ja=ja
27819                   else
27820                     # Special test for NetBSD 1.6.
27821                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
27822                       gt_cv_locale_ja=ja_JP.eucJP
27823                     else
27824                       # None found.
27825                       gt_cv_locale_ja=none
27826                     fi
27827                   fi
27828                 fi
27829               fi
27830             fi
27831           fi
27832           ;;
27833       esac
27834     fi
27835     rm -fr conftest*
27836
27837 fi
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
27839 $as_echo "$gt_cv_locale_ja" >&6; }
27840   LOCALE_JA=$gt_cv_locale_ja
27841
27842
27843
27844
27845
27846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
27847 $as_echo_n "checking for a transitional chinese locale... " >&6; }
27848 if ${gt_cv_locale_zh_CN+:} false; then :
27849   $as_echo_n "(cached) " >&6
27850 else
27851
27852     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27853 /* end confdefs.h.  */
27854
27855 #include <locale.h>
27856 #include <stdlib.h>
27857 #include <time.h>
27858 #if HAVE_LANGINFO_CODESET
27859 # include <langinfo.h>
27860 #endif
27861 #include <stdlib.h>
27862 #include <string.h>
27863 struct tm t;
27864 char buf[16];
27865 int main ()
27866 {
27867   const char *p;
27868   /* Check whether the given locale name is recognized by the system.  */
27869 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
27870   /* On native Windows, setlocale(category, "") looks at the system settings,
27871      not at the environment variables.  Also, when an encoding suffix such
27872      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
27873      category of the locale to "C".  */
27874   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
27875       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
27876     return 1;
27877 #else
27878   if (setlocale (LC_ALL, "") == NULL) return 1;
27879 #endif
27880   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
27881      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
27882      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
27883      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
27884      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
27885      some unit tests fail.
27886      On MirBSD 10, when an unsupported locale is specified, setlocale()
27887      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
27888 #if HAVE_LANGINFO_CODESET
27889   {
27890     const char *cs = nl_langinfo (CODESET);
27891     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
27892         || strcmp (cs, "UTF-8") == 0)
27893       return 1;
27894   }
27895 #endif
27896 #ifdef __CYGWIN__
27897   /* On Cygwin, avoid locale names without encoding suffix, because the
27898      locale_charset() function relies on the encoding suffix.  Note that
27899      LC_ALL is set on the command line.  */
27900   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
27901 #endif
27902   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
27903      This excludes the UTF-8 encoding (except on MirBSD).  */
27904   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
27905   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
27906   for (p = buf; *p != '\0'; p++)
27907     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
27908       return 1;
27909   /* Check whether a typical GB18030 multibyte sequence is recognized as a
27910      single wide character.  This excludes the GB2312 and GBK encodings.  */
27911   if (mblen ("\203\062\332\066", 5) != 4)
27912     return 1;
27913   return 0;
27914 }
27915
27916 _ACEOF
27917     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
27918   (eval $ac_link) 2>&5
27919   ac_status=$?
27920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27921   test $ac_status = 0; } && test -s conftest$ac_exeext; then
27922       case "$host_os" in
27923         # Handle native Windows specially, because there setlocale() interprets
27924         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
27925         # "fr" or "fra" as "French" or "French_France.1252",
27926         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
27927         # "ja" as "Japanese" or "Japanese_Japan.932",
27928         # and similar.
27929         mingw*)
27930           # Test for the hypothetical native Windows locale name.
27931           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27932             gt_cv_locale_zh_CN=Chinese_China.54936
27933           else
27934             # None found.
27935             gt_cv_locale_zh_CN=none
27936           fi
27937           ;;
27938         solaris2.8)
27939           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
27940           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
27941           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
27942           gt_cv_locale_zh_CN=none
27943           ;;
27944         *)
27945           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
27946           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
27947           # configure script would override the LC_ALL setting. Likewise for
27948           # LC_CTYPE, which is also set at the beginning of the configure script.
27949           # Test for the locale name without encoding suffix.
27950           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27951             gt_cv_locale_zh_CN=zh_CN
27952           else
27953             # Test for the locale name with explicit encoding suffix.
27954             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
27955               gt_cv_locale_zh_CN=zh_CN.GB18030
27956             else
27957               # None found.
27958               gt_cv_locale_zh_CN=none
27959             fi
27960           fi
27961           ;;
27962       esac
27963     else
27964       # If there was a link error, due to mblen(), the system is so old that
27965       # it certainly doesn't have a chinese locale.
27966       gt_cv_locale_zh_CN=none
27967     fi
27968     rm -fr conftest*
27969
27970 fi
27971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
27972 $as_echo "$gt_cv_locale_zh_CN" >&6; }
27973   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
27974
27975
27976
27977
27978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
27979 $as_echo_n "checking for a french Unicode locale... " >&6; }
27980 if ${gt_cv_locale_fr_utf8+:} false; then :
27981   $as_echo_n "(cached) " >&6
27982 else
27983
27984     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27985 /* end confdefs.h.  */
27986
27987 #include <locale.h>
27988 #include <time.h>
27989 #if HAVE_LANGINFO_CODESET
27990 # include <langinfo.h>
27991 #endif
27992 #include <stdlib.h>
27993 #include <string.h>
27994 struct tm t;
27995 char buf[16];
27996 int main () {
27997   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
27998      imitates locale dependent behaviour by looking at the environment
27999      variables, and all locales use the UTF-8 encoding.  */
28000 #if !(defined __BEOS__ || defined __HAIKU__)
28001   /* Check whether the given locale name is recognized by the system.  */
28002 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
28003   /* On native Windows, setlocale(category, "") looks at the system settings,
28004      not at the environment variables.  Also, when an encoding suffix such
28005      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
28006      category of the locale to "C".  */
28007   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
28008       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
28009     return 1;
28010 # else
28011   if (setlocale (LC_ALL, "") == NULL) return 1;
28012 # endif
28013   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28014      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28015      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28016      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28017      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28018      some unit tests fail.  */
28019 # if HAVE_LANGINFO_CODESET
28020   {
28021     const char *cs = nl_langinfo (CODESET);
28022     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
28023       return 1;
28024   }
28025 # endif
28026 # ifdef __CYGWIN__
28027   /* On Cygwin, avoid locale names without encoding suffix, because the
28028      locale_charset() function relies on the encoding suffix.  Note that
28029      LC_ALL is set on the command line.  */
28030   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28031 # endif
28032   /* Check whether in the abbreviation of the second month, the second
28033      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
28034      two bytes long, with UTF-8 encoding.  */
28035   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28036   if (strftime (buf, sizeof (buf), "%b", &t) < 4
28037       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
28038     return 1;
28039 #endif
28040 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
28041   /* Check whether the decimal separator is a comma.
28042      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28043      are nl_langinfo(RADIXCHAR) are both ".".  */
28044   if (localeconv () ->decimal_point[0] != ',') return 1;
28045 #endif
28046   return 0;
28047 }
28048
28049 _ACEOF
28050     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28051   (eval $ac_link) 2>&5
28052   ac_status=$?
28053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28054   test $ac_status = 0; } && test -s conftest$ac_exeext; then
28055       case "$host_os" in
28056         # Handle native Windows specially, because there setlocale() interprets
28057         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
28058         # "fr" or "fra" as "French" or "French_France.1252",
28059         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
28060         # "ja" as "Japanese" or "Japanese_Japan.932",
28061         # and similar.
28062         mingw*)
28063           # Test for the hypothetical native Windows locale name.
28064           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28065             gt_cv_locale_fr_utf8=French_France.65001
28066           else
28067             # None found.
28068             gt_cv_locale_fr_utf8=none
28069           fi
28070           ;;
28071         *)
28072           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28073           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
28074           # configure script would override the LC_ALL setting. Likewise for
28075           # LC_CTYPE, which is also set at the beginning of the configure script.
28076           # Test for the usual locale name.
28077           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28078             gt_cv_locale_fr_utf8=fr_FR
28079           else
28080             # Test for the locale name with explicit encoding suffix.
28081             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28082               gt_cv_locale_fr_utf8=fr_FR.UTF-8
28083             else
28084               # Test for the Solaris 7 locale name.
28085               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28086                 gt_cv_locale_fr_utf8=fr.UTF-8
28087               else
28088                 # None found.
28089                 gt_cv_locale_fr_utf8=none
28090               fi
28091             fi
28092           fi
28093           ;;
28094       esac
28095     fi
28096     rm -fr conftest*
28097
28098 fi
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
28100 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
28101   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
28102
28103
28104
28105   GNULIB_FFSL=0;
28106   GNULIB_FFSLL=0;
28107   GNULIB_MEMCHR=0;
28108   GNULIB_MEMMEM=0;
28109   GNULIB_MEMPCPY=0;
28110   GNULIB_MEMRCHR=0;
28111   GNULIB_RAWMEMCHR=0;
28112   GNULIB_STPCPY=0;
28113   GNULIB_STPNCPY=0;
28114   GNULIB_STRCHRNUL=0;
28115   GNULIB_STRDUP=0;
28116   GNULIB_STRNCAT=0;
28117   GNULIB_STRNDUP=0;
28118   GNULIB_STRNLEN=0;
28119   GNULIB_STRPBRK=0;
28120   GNULIB_STRSEP=0;
28121   GNULIB_STRSTR=0;
28122   GNULIB_STRCASESTR=0;
28123   GNULIB_STRTOK_R=0;
28124   GNULIB_MBSLEN=0;
28125   GNULIB_MBSNLEN=0;
28126   GNULIB_MBSCHR=0;
28127   GNULIB_MBSRCHR=0;
28128   GNULIB_MBSSTR=0;
28129   GNULIB_MBSCASECMP=0;
28130   GNULIB_MBSNCASECMP=0;
28131   GNULIB_MBSPCASECMP=0;
28132   GNULIB_MBSCASESTR=0;
28133   GNULIB_MBSCSPN=0;
28134   GNULIB_MBSPBRK=0;
28135   GNULIB_MBSSPN=0;
28136   GNULIB_MBSSEP=0;
28137   GNULIB_MBSTOK_R=0;
28138   GNULIB_STRERROR=0;
28139   GNULIB_STRERROR_R=0;
28140   GNULIB_STRSIGNAL=0;
28141   GNULIB_STRVERSCMP=0;
28142   HAVE_MBSLEN=0;
28143     HAVE_FFSL=1;
28144   HAVE_FFSLL=1;
28145   HAVE_MEMCHR=1;
28146   HAVE_DECL_MEMMEM=1;
28147   HAVE_MEMPCPY=1;
28148   HAVE_DECL_MEMRCHR=1;
28149   HAVE_RAWMEMCHR=1;
28150   HAVE_STPCPY=1;
28151   HAVE_STPNCPY=1;
28152   HAVE_STRCHRNUL=1;
28153   HAVE_DECL_STRDUP=1;
28154   HAVE_DECL_STRNDUP=1;
28155   HAVE_DECL_STRNLEN=1;
28156   HAVE_STRPBRK=1;
28157   HAVE_STRSEP=1;
28158   HAVE_STRCASESTR=1;
28159   HAVE_DECL_STRTOK_R=1;
28160   HAVE_DECL_STRERROR_R=1;
28161   HAVE_DECL_STRSIGNAL=1;
28162   HAVE_STRVERSCMP=1;
28163   REPLACE_MEMCHR=0;
28164   REPLACE_MEMMEM=0;
28165   REPLACE_STPNCPY=0;
28166   REPLACE_STRDUP=0;
28167   REPLACE_STRSTR=0;
28168   REPLACE_STRCASESTR=0;
28169   REPLACE_STRCHRNUL=0;
28170   REPLACE_STRERROR=0;
28171   REPLACE_STRERROR_R=0;
28172   REPLACE_STRNCAT=0;
28173   REPLACE_STRNDUP=0;
28174   REPLACE_STRNLEN=0;
28175   REPLACE_STRSIGNAL=0;
28176   REPLACE_STRTOK_R=0;
28177   UNDEFINE_STRTOK_R=0;
28178
28179
28180
28181
28182
28183
28184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
28185 $as_echo_n "checking for a traditional french locale... " >&6; }
28186 if ${gt_cv_locale_fr+:} false; then :
28187   $as_echo_n "(cached) " >&6
28188 else
28189
28190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28191 /* end confdefs.h.  */
28192
28193 #include <locale.h>
28194 #include <time.h>
28195 #if HAVE_LANGINFO_CODESET
28196 # include <langinfo.h>
28197 #endif
28198 #include <stdlib.h>
28199 #include <string.h>
28200 struct tm t;
28201 char buf[16];
28202 int main () {
28203   /* Check whether the given locale name is recognized by the system.  */
28204 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
28205   /* On native Windows, setlocale(category, "") looks at the system settings,
28206      not at the environment variables.  Also, when an encoding suffix such
28207      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
28208      category of the locale to "C".  */
28209   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
28210       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
28211     return 1;
28212 #else
28213   if (setlocale (LC_ALL, "") == NULL) return 1;
28214 #endif
28215   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
28216      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
28217      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
28218      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
28219      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
28220      some unit tests fail.
28221      On MirBSD 10, when an unsupported locale is specified, setlocale()
28222      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
28223 #if HAVE_LANGINFO_CODESET
28224   {
28225     const char *cs = nl_langinfo (CODESET);
28226     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
28227         || strcmp (cs, "UTF-8") == 0)
28228       return 1;
28229   }
28230 #endif
28231 #ifdef __CYGWIN__
28232   /* On Cygwin, avoid locale names without encoding suffix, because the
28233      locale_charset() function relies on the encoding suffix.  Note that
28234      LC_ALL is set on the command line.  */
28235   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
28236 #endif
28237   /* Check whether in the abbreviation of the second month, the second
28238      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
28239      one byte long. This excludes the UTF-8 encoding.  */
28240   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
28241   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
28242 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
28243   /* Check whether the decimal separator is a comma.
28244      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
28245      are nl_langinfo(RADIXCHAR) are both ".".  */
28246   if (localeconv () ->decimal_point[0] != ',') return 1;
28247 #endif
28248   return 0;
28249 }
28250
28251 _ACEOF
28252     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
28253   (eval $ac_link) 2>&5
28254   ac_status=$?
28255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28256   test $ac_status = 0; } && test -s conftest$ac_exeext; then
28257       case "$host_os" in
28258         # Handle native Windows specially, because there setlocale() interprets
28259         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
28260         # "fr" or "fra" as "French" or "French_France.1252",
28261         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
28262         # "ja" as "Japanese" or "Japanese_Japan.932",
28263         # and similar.
28264         mingw*)
28265           # Test for the native Windows locale name.
28266           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28267             gt_cv_locale_fr=French_France.1252
28268           else
28269             # None found.
28270             gt_cv_locale_fr=none
28271           fi
28272           ;;
28273         *)
28274           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
28275           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
28276           # configure script would override the LC_ALL setting. Likewise for
28277           # LC_CTYPE, which is also set at the beginning of the configure script.
28278           # Test for the usual locale name.
28279           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28280             gt_cv_locale_fr=fr_FR
28281           else
28282             # Test for the locale name with explicit encoding suffix.
28283             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28284               gt_cv_locale_fr=fr_FR.ISO-8859-1
28285             else
28286               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
28287               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28288                 gt_cv_locale_fr=fr_FR.ISO8859-1
28289               else
28290                 # Test for the HP-UX locale name.
28291                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28292                   gt_cv_locale_fr=fr_FR.iso88591
28293                 else
28294                   # Test for the Solaris 7 locale name.
28295                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
28296                     gt_cv_locale_fr=fr
28297                   else
28298                     # None found.
28299                     gt_cv_locale_fr=none
28300                   fi
28301                 fi
28302               fi
28303             fi
28304           fi
28305           ;;
28306       esac
28307     fi
28308     rm -fr conftest*
28309
28310 fi
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
28312 $as_echo "$gt_cv_locale_fr" >&6; }
28313   LOCALE_FR=$gt_cv_locale_fr
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
28329   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
28330   # irrelevant for anonymous mappings.
28331   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
28332 if test "x$ac_cv_func_mmap" = xyes; then :
28333   gl_have_mmap=yes
28334 else
28335   gl_have_mmap=no
28336 fi
28337
28338
28339   # Try to allow MAP_ANONYMOUS.
28340   gl_have_mmap_anonymous=no
28341   if test $gl_have_mmap = yes; then
28342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
28343 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
28344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28345 /* end confdefs.h.  */
28346
28347 #include <sys/mman.h>
28348 #ifdef MAP_ANONYMOUS
28349     I cannot identify this map
28350 #endif
28351
28352 _ACEOF
28353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28354   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
28355   gl_have_mmap_anonymous=yes
28356 fi
28357 rm -f conftest*
28358
28359     if test $gl_have_mmap_anonymous != yes; then
28360       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28361 /* end confdefs.h.  */
28362
28363 #include <sys/mman.h>
28364 #ifdef MAP_ANON
28365     I cannot identify this map
28366 #endif
28367
28368 _ACEOF
28369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28370   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
28371
28372 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
28373
28374          gl_have_mmap_anonymous=yes
28375 fi
28376 rm -f conftest*
28377
28378     fi
28379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
28380 $as_echo "$gl_have_mmap_anonymous" >&6; }
28381     if test $gl_have_mmap_anonymous = yes; then
28382
28383 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
28384
28385     fi
28386   fi
28387
28388
28389
28390
28391
28392
28393   if test $HAVE_MEMCHR = 1; then
28394     # Detect platform-specific bugs in some versions of glibc:
28395     # memchr should not dereference anything with length 0
28396     #   http://bugzilla.redhat.com/499689
28397     # memchr should not dereference overestimated length after a match
28398     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
28399     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
28400     # Assume that memchr works on platforms that lack mprotect.
28401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
28402 $as_echo_n "checking whether memchr works... " >&6; }
28403 if ${gl_cv_func_memchr_works+:} false; then :
28404   $as_echo_n "(cached) " >&6
28405 else
28406   if test "$cross_compiling" = yes; then :
28407          gl_cv_func_memchr_works="guessing no"
28408 else
28409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28410 /* end confdefs.h.  */
28411
28412 #include <string.h>
28413 #if HAVE_SYS_MMAN_H
28414 # include <fcntl.h>
28415 # include <unistd.h>
28416 # include <sys/types.h>
28417 # include <sys/mman.h>
28418 # ifndef MAP_FILE
28419 #  define MAP_FILE 0
28420 # endif
28421 #endif
28422
28423 int
28424 main ()
28425 {
28426
28427   int result = 0;
28428   char *fence = NULL;
28429 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
28430 # if HAVE_MAP_ANONYMOUS
28431   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
28432   const int fd = -1;
28433 # else /* !HAVE_MAP_ANONYMOUS */
28434   const int flags = MAP_FILE | MAP_PRIVATE;
28435   int fd = open ("/dev/zero", O_RDONLY, 0666);
28436   if (fd >= 0)
28437 # endif
28438     {
28439       int pagesize = getpagesize ();
28440       char *two_pages =
28441         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
28442                        flags, fd, 0);
28443       if (two_pages != (char *)(-1)
28444           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
28445         fence = two_pages + pagesize;
28446     }
28447 #endif
28448   if (fence)
28449     {
28450       if (memchr (fence, 0, 0))
28451         result |= 1;
28452       strcpy (fence - 9, "12345678");
28453       if (memchr (fence - 9, 0, 79) != fence - 1)
28454         result |= 2;
28455       if (memchr (fence - 1, 0, 3) != fence - 1)
28456         result |= 4;
28457     }
28458   return result;
28459
28460   ;
28461   return 0;
28462 }
28463 _ACEOF
28464 if ac_fn_c_try_run "$LINENO"; then :
28465   gl_cv_func_memchr_works=yes
28466 else
28467   gl_cv_func_memchr_works=no
28468 fi
28469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28470   conftest.$ac_objext conftest.beam conftest.$ac_ext
28471 fi
28472
28473 fi
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
28475 $as_echo "$gl_cv_func_memchr_works" >&6; }
28476     if test "$gl_cv_func_memchr_works" != yes; then
28477       REPLACE_MEMCHR=1
28478     fi
28479   fi
28480
28481
28482
28483
28484
28485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
28486 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
28487 if ${gl_cv_minmax_in_limits_h+:} false; then :
28488   $as_echo_n "(cached) " >&6
28489 else
28490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28491 /* end confdefs.h.  */
28492 #include <limits.h>
28493             int x = MIN (42, 17);
28494 int
28495 main ()
28496 {
28497
28498   ;
28499   return 0;
28500 }
28501 _ACEOF
28502 if ac_fn_c_try_compile "$LINENO"; then :
28503   gl_cv_minmax_in_limits_h=yes
28504 else
28505   gl_cv_minmax_in_limits_h=no
28506 fi
28507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28508 fi
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
28510 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
28511   if test $gl_cv_minmax_in_limits_h = yes; then
28512
28513 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
28514
28515   fi
28516
28517
28518
28519
28520
28521
28522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
28523 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
28524 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
28525   $as_echo_n "(cached) " >&6
28526 else
28527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28528 /* end confdefs.h.  */
28529 #include <sys/param.h>
28530             int x = MIN (42, 17);
28531 int
28532 main ()
28533 {
28534
28535   ;
28536   return 0;
28537 }
28538 _ACEOF
28539 if ac_fn_c_try_compile "$LINENO"; then :
28540   gl_cv_minmax_in_sys_param_h=yes
28541 else
28542   gl_cv_minmax_in_sys_param_h=no
28543 fi
28544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28545 fi
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
28547 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
28548   if test $gl_cv_minmax_in_sys_param_h = yes; then
28549
28550 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
28551
28552   fi
28553
28554
28555
28556
28557
28558     gl_cv_c_multiarch=no
28559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28560 /* end confdefs.h.  */
28561 #ifndef __APPLE_CC__
28562          not a universal capable compiler
28563         #endif
28564         typedef int dummy;
28565
28566 _ACEOF
28567 if ac_fn_c_try_compile "$LINENO"; then :
28568
28569                arch=
28570      prev=
28571      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
28572        if test -n "$prev"; then
28573          case $word in
28574            i?86 | x86_64 | ppc | ppc64)
28575              if test -z "$arch" || test "$arch" = "$word"; then
28576                arch="$word"
28577              else
28578                gl_cv_c_multiarch=yes
28579              fi
28580              ;;
28581          esac
28582          prev=
28583        else
28584          if test "x$word" = "x-arch"; then
28585            prev=arch
28586          fi
28587        fi
28588      done
28589
28590 fi
28591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28592   if test $gl_cv_c_multiarch = yes; then
28593     APPLE_UNIVERSAL_BUILD=1
28594   else
28595     APPLE_UNIVERSAL_BUILD=0
28596   fi
28597
28598
28599
28600
28601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
28602 $as_echo_n "checking for promoted mode_t type... " >&6; }
28603 if ${gl_cv_promoted_mode_t+:} false; then :
28604   $as_echo_n "(cached) " >&6
28605 else
28606
28607                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28608 /* end confdefs.h.  */
28609 #include <sys/types.h>
28610 int
28611 main ()
28612 {
28613 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
28614   ;
28615   return 0;
28616 }
28617 _ACEOF
28618 if ac_fn_c_try_compile "$LINENO"; then :
28619   gl_cv_promoted_mode_t='int'
28620 else
28621   gl_cv_promoted_mode_t='mode_t'
28622 fi
28623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28624
28625 fi
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
28627 $as_echo "$gl_cv_promoted_mode_t" >&6; }
28628
28629 cat >>confdefs.h <<_ACEOF
28630 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
28631 _ACEOF
28632
28633
28634
28635
28636
28637
28638
28639   GNULIB_POSIX_SPAWN=0;
28640   GNULIB_POSIX_SPAWNP=0;
28641   GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=0;
28642   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
28643   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
28644   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
28645   GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=0;
28646   GNULIB_POSIX_SPAWNATTR_INIT=0;
28647   GNULIB_POSIX_SPAWNATTR_GETFLAGS=0;
28648   GNULIB_POSIX_SPAWNATTR_SETFLAGS=0;
28649   GNULIB_POSIX_SPAWNATTR_GETPGROUP=0;
28650   GNULIB_POSIX_SPAWNATTR_SETPGROUP=0;
28651   GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM=0;
28652   GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM=0;
28653   GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY=0;
28654   GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY=0;
28655   GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT=0;
28656   GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT=0;
28657   GNULIB_POSIX_SPAWNATTR_GETSIGMASK=0;
28658   GNULIB_POSIX_SPAWNATTR_SETSIGMASK=0;
28659   GNULIB_POSIX_SPAWNATTR_DESTROY=0;
28660     HAVE_POSIX_SPAWN=1;
28661   HAVE_POSIX_SPAWNATTR_T=1;
28662   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=1;
28663
28664   REPLACE_POSIX_SPAWN=0;
28665   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
28666
28667   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
28668
28669   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
28670
28671
28672
28673
28674
28675
28676
28677
28678   if test $ac_cv_func_posix_spawn != yes; then
28679     HAVE_POSIX_SPAWN=0
28680   fi
28681
28682
28683
28684
28685                                       if test $ac_cv_func_posix_spawn = yes; then
28686
28687
28688      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn works" >&5
28689 $as_echo_n "checking whether posix_spawn works... " >&6; }
28690 if ${gl_cv_func_posix_spawn_works+:} false; then :
28691   $as_echo_n "(cached) " >&6
28692 else
28693   if test $cross_compiling = no; then
28694        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28695 /* end confdefs.h.  */
28696
28697 #include <errno.h>
28698 #include <fcntl.h>
28699 #include <signal.h>
28700 #include <spawn.h>
28701 #include <stdbool.h>
28702 #include <stdio.h>
28703 #include <stdlib.h>
28704 #include <string.h>
28705 #include <unistd.h>
28706 #include <sys/types.h>
28707 #include <sys/wait.h>
28708
28709 extern char **environ;
28710
28711 #ifndef STDIN_FILENO
28712 # define STDIN_FILENO 0
28713 #endif
28714 #ifndef STDOUT_FILENO
28715 # define STDOUT_FILENO 1
28716 #endif
28717 #ifndef STDERR_FILENO
28718 # define STDERR_FILENO 2
28719 #endif
28720
28721 #ifndef WTERMSIG
28722 # define WTERMSIG(x) ((x) & 0x7f)
28723 #endif
28724 #ifndef WIFEXITED
28725 # define WIFEXITED(x) (WTERMSIG (x) == 0)
28726 #endif
28727 #ifndef WEXITSTATUS
28728 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
28729 #endif
28730
28731 #define CHILD_PROGRAM_FILENAME "/non/exist/ent"
28732
28733 static int
28734 fd_safer (int fd)
28735 {
28736   if (0 <= fd && fd <= 2)
28737     {
28738       int f = fd_safer (dup (fd));
28739       int e = errno;
28740       close (fd);
28741       errno = e;
28742       fd = f;
28743     }
28744
28745   return fd;
28746 }
28747
28748 int
28749 main ()
28750 {
28751   char *argv[2] = { CHILD_PROGRAM_FILENAME, NULL };
28752   int ofd[2];
28753   sigset_t blocked_signals;
28754   sigset_t fatal_signal_set;
28755   posix_spawn_file_actions_t actions;
28756   bool actions_allocated;
28757   posix_spawnattr_t attrs;
28758   bool attrs_allocated;
28759   int err;
28760   pid_t child;
28761   int status;
28762   int exitstatus;
28763
28764   setvbuf (stdout, NULL, _IOFBF, 0);
28765   puts ("This should be seen only once.");
28766   if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0)
28767     {
28768       perror ("cannot create pipe");
28769       exit (1);
28770     }
28771   sigprocmask (SIG_SETMASK, NULL, &blocked_signals);
28772   sigemptyset (&fatal_signal_set);
28773   sigaddset (&fatal_signal_set, SIGINT);
28774   sigaddset (&fatal_signal_set, SIGTERM);
28775   sigaddset (&fatal_signal_set, SIGHUP);
28776   sigaddset (&fatal_signal_set, SIGPIPE);
28777   sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL);
28778   actions_allocated = false;
28779   attrs_allocated = false;
28780   if ((err = posix_spawn_file_actions_init (&actions)) != 0
28781       || (actions_allocated = true,
28782           (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0
28783           || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0
28784           || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0
28785           || (err = posix_spawnattr_init (&attrs)) != 0
28786           || (attrs_allocated = true,
28787               (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0
28788               || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0)
28789           || (err = posix_spawnp (&child, CHILD_PROGRAM_FILENAME, &actions, &attrs, argv, environ)) != 0))
28790     {
28791       if (actions_allocated)
28792         posix_spawn_file_actions_destroy (&actions);
28793       if (attrs_allocated)
28794         posix_spawnattr_destroy (&attrs);
28795       sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
28796       if (err == ENOENT)
28797         return 0;
28798       else
28799         {
28800           errno = err;
28801           perror ("subprocess failed");
28802           exit (1);
28803         }
28804     }
28805   posix_spawn_file_actions_destroy (&actions);
28806   posix_spawnattr_destroy (&attrs);
28807   sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
28808   close (ofd[0]);
28809   close (ofd[1]);
28810   status = 0;
28811   while (waitpid (child, &status, 0) != child)
28812     ;
28813   if (!WIFEXITED (status))
28814     {
28815       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
28816       exit (1);
28817     }
28818   exitstatus = WEXITSTATUS (status);
28819   if (exitstatus != 127)
28820     {
28821       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
28822       exit (1);
28823     }
28824   return 0;
28825 }
28826
28827 _ACEOF
28828 if ac_fn_c_try_link "$LINENO"; then :
28829   if test -s conftest$ac_exeext \
28830              && ./conftest$ac_exeext > conftest.out \
28831              && echo 'This should be seen only once.' > conftest.ok \
28832              && cmp conftest.out conftest.ok > /dev/null; then
28833             gl_cv_func_posix_spawn_works=yes
28834           else
28835             gl_cv_func_posix_spawn_works=no
28836           fi
28837 else
28838   gl_cv_func_posix_spawn_works=no
28839 fi
28840 rm -f core conftest.err conftest.$ac_objext \
28841     conftest$ac_exeext conftest.$ac_ext
28842        if test $gl_cv_func_posix_spawn_works = yes; then
28843          if test "$cross_compiling" = yes; then :
28844   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28846 as_fn_error $? "cannot run test program while cross compiling
28847 See \`config.log' for more details" "$LINENO" 5; }
28848 else
28849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28850 /* end confdefs.h.  */
28851
28852 /* Test whether posix_spawn_file_actions_addopen supports filename arguments
28853    that contain special characters such as '*'.  */
28854
28855 #include <errno.h>
28856 #include <fcntl.h>
28857 #include <signal.h>
28858 #include <spawn.h>
28859 #include <stdbool.h>
28860 #include <stdio.h>
28861 #include <string.h>
28862 #include <unistd.h>
28863 #include <sys/types.h>
28864 #include <sys/wait.h>
28865
28866 extern char **environ;
28867
28868 #ifndef STDIN_FILENO
28869 # define STDIN_FILENO 0
28870 #endif
28871 #ifndef STDOUT_FILENO
28872 # define STDOUT_FILENO 1
28873 #endif
28874 #ifndef STDERR_FILENO
28875 # define STDERR_FILENO 2
28876 #endif
28877
28878 #ifndef WTERMSIG
28879 # define WTERMSIG(x) ((x) & 0x7f)
28880 #endif
28881 #ifndef WIFEXITED
28882 # define WIFEXITED(x) (WTERMSIG (x) == 0)
28883 #endif
28884 #ifndef WEXITSTATUS
28885 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
28886 #endif
28887
28888 #define CHILD_PROGRAM_FILENAME "conftest"
28889 #define DATA_FILENAME "conftest%=*#?"
28890
28891 static int
28892 parent_main (void)
28893 {
28894   FILE *fp;
28895   char *argv[3] = { CHILD_PROGRAM_FILENAME, "-child", NULL };
28896   posix_spawn_file_actions_t actions;
28897   bool actions_allocated;
28898   int err;
28899   pid_t child;
28900   int status;
28901   int exitstatus;
28902
28903   /* Create a data file with specific contents.  */
28904   fp = fopen (DATA_FILENAME, "wb");
28905   if (fp == NULL)
28906     {
28907       perror ("cannot create data file");
28908       return 1;
28909     }
28910   fwrite ("Halle Potta", 1, 11, fp);
28911   if (fflush (fp) || fclose (fp))
28912     {
28913       perror ("cannot prepare data file");
28914       return 2;
28915     }
28916
28917   /* Avoid reading from our stdin, as it could block.  */
28918   freopen ("/dev/null", "rb", stdin);
28919
28920   /* Test whether posix_spawn_file_actions_addopen with this file name
28921      actually works, but spawning a child that reads from this file.  */
28922   actions_allocated = false;
28923   if ((err = posix_spawn_file_actions_init (&actions)) != 0
28924       || (actions_allocated = true,
28925           (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) != 0
28926           || (err = posix_spawn (&child, CHILD_PROGRAM_FILENAME, &actions, NULL, argv, environ)) != 0))
28927     {
28928       if (actions_allocated)
28929         posix_spawn_file_actions_destroy (&actions);
28930       errno = err;
28931       perror ("subprocess failed");
28932       return 3;
28933     }
28934   posix_spawn_file_actions_destroy (&actions);
28935   status = 0;
28936   while (waitpid (child, &status, 0) != child)
28937     ;
28938   if (!WIFEXITED (status))
28939     {
28940       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
28941       return 4;
28942     }
28943   exitstatus = WEXITSTATUS (status);
28944   if (exitstatus != 0)
28945     {
28946       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
28947       return 5;
28948     }
28949   return 0;
28950 }
28951
28952 static int
28953 child_main (void)
28954 {
28955   char buf[1024];
28956
28957   /* See if reading from STDIN_FILENO yields the expected contents.  */
28958   if (fread (buf, 1, sizeof (buf), stdin) == 11
28959       && memcmp (buf, "Halle Potta", 11) == 0)
28960     return 0;
28961   else
28962     return 8;
28963 }
28964
28965 static void
28966 cleanup_then_die (int sig)
28967 {
28968   /* Clean up data file.  */
28969   unlink (DATA_FILENAME);
28970
28971   /* Re-raise the signal and die from it.  */
28972   signal (sig, SIG_DFL);
28973   raise (sig);
28974 }
28975
28976 int
28977 main (int argc, char *argv[])
28978 {
28979   int exitstatus;
28980
28981   if (!(argc > 1 && strcmp (argv[1], "-child") == 0))
28982     {
28983       /* This is the parent process.  */
28984       signal (SIGINT, cleanup_then_die);
28985       signal (SIGTERM, cleanup_then_die);
28986       #ifdef SIGHUP
28987       signal (SIGHUP, cleanup_then_die);
28988       #endif
28989
28990       exitstatus = parent_main ();
28991     }
28992   else
28993     {
28994       /* This is the child process.  */
28995
28996       exitstatus = child_main ();
28997     }
28998   unlink (DATA_FILENAME);
28999   return exitstatus;
29000 }
29001
29002 _ACEOF
29003 if ac_fn_c_try_run "$LINENO"; then :
29004
29005 else
29006   gl_cv_func_posix_spawn_works=no
29007 fi
29008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29009   conftest.$ac_objext conftest.beam conftest.$ac_ext
29010 fi
29011
29012        fi
29013      else
29014        case "$host_os" in
29015          aix*) gl_cv_func_posix_spawn_works="guessing no";;
29016          *)    gl_cv_func_posix_spawn_works="guessing yes";;
29017        esac
29018      fi
29019
29020 fi
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_works" >&5
29022 $as_echo "$gl_cv_func_posix_spawn_works" >&6; }
29023
29024     case "$gl_cv_func_posix_spawn_works" in
29025       *yes)
29026
29027 $as_echo "#define HAVE_WORKING_POSIX_SPAWN 1" >>confdefs.h
29028
29029                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedpolicy is supported" >&5
29030 $as_echo_n "checking whether posix_spawnattr_setschedpolicy is supported... " >&6; }
29031 if ${gl_cv_func_spawnattr_setschedpolicy+:} false; then :
29032   $as_echo_n "(cached) " >&6
29033 else
29034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29035 /* end confdefs.h.  */
29036
29037 #include <spawn.h>
29038 #if POSIX_SPAWN_SETSCHEDULER
29039  POSIX scheduling supported
29040 #endif
29041
29042 _ACEOF
29043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29044   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
29045   gl_cv_func_spawnattr_setschedpolicy=yes
29046 else
29047   gl_cv_func_spawnattr_setschedpolicy=no
29048 fi
29049 rm -f conftest*
29050
29051
29052 fi
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedpolicy" >&5
29054 $as_echo "$gl_cv_func_spawnattr_setschedpolicy" >&6; }
29055                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedparam is supported" >&5
29056 $as_echo_n "checking whether posix_spawnattr_setschedparam is supported... " >&6; }
29057 if ${gl_cv_func_spawnattr_setschedparam+:} false; then :
29058   $as_echo_n "(cached) " >&6
29059 else
29060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29061 /* end confdefs.h.  */
29062
29063 #include <spawn.h>
29064 #if POSIX_SPAWN_SETSCHEDPARAM
29065  POSIX scheduling supported
29066 #endif
29067
29068 _ACEOF
29069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29070   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
29071   gl_cv_func_spawnattr_setschedparam=yes
29072 else
29073   gl_cv_func_spawnattr_setschedparam=no
29074 fi
29075 rm -f conftest*
29076
29077
29078 fi
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedparam" >&5
29080 $as_echo "$gl_cv_func_spawnattr_setschedparam" >&6; }
29081         ;;
29082       *) REPLACE_POSIX_SPAWN=1 ;;
29083     esac
29084   fi
29085
29086
29087   GNULIB_PTHREAD_SIGMASK=0;
29088   GNULIB_RAISE=0;
29089   GNULIB_SIGNAL_H_SIGPIPE=0;
29090   GNULIB_SIGPROCMASK=0;
29091   GNULIB_SIGACTION=0;
29092     HAVE_POSIX_SIGNALBLOCKING=1;
29093   HAVE_PTHREAD_SIGMASK=1;
29094   HAVE_RAISE=1;
29095   HAVE_SIGSET_T=1;
29096   HAVE_SIGINFO_T=1;
29097   HAVE_SIGACTION=1;
29098   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
29099
29100   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
29101
29102   HAVE_SIGHANDLER_T=1;
29103   REPLACE_PTHREAD_SIGMASK=0;
29104   REPLACE_RAISE=0;
29105
29106
29107   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
29108       #include <signal.h>
29109       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
29110       #include <sys/types.h>
29111
29112 "
29113 if test "x$ac_cv_type_sigset_t" = xyes; then :
29114
29115 cat >>confdefs.h <<_ACEOF
29116 #define HAVE_SIGSET_T 1
29117 _ACEOF
29118
29119 gl_cv_type_sigset_t=yes
29120 else
29121   gl_cv_type_sigset_t=no
29122 fi
29123
29124   if test $gl_cv_type_sigset_t != yes; then
29125     HAVE_SIGSET_T=0
29126   fi
29127
29128
29129
29130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
29131 $as_echo_n "checking for SIGPIPE... " >&6; }
29132 if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
29133   $as_echo_n "(cached) " >&6
29134 else
29135
29136     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29137 /* end confdefs.h.  */
29138
29139 #include <signal.h>
29140 #if !defined SIGPIPE
29141 booboo
29142 #endif
29143
29144 _ACEOF
29145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29146   $EGREP "booboo" >/dev/null 2>&1; then :
29147   gl_cv_header_signal_h_SIGPIPE=no
29148 else
29149   gl_cv_header_signal_h_SIGPIPE=yes
29150 fi
29151 rm -f conftest*
29152
29153
29154 fi
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
29156 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
29157
29158
29159                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
29160 $as_echo_n "checking for shared library path variable... " >&6; }
29161 if ${acl_cv_libpath+:} false; then :
29162   $as_echo_n "(cached) " >&6
29163 else
29164
29165     LD="$LD" \
29166     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
29167     . ./conftest.sh
29168     rm -f ./conftest.sh
29169     acl_cv_libpath=${acl_cv_shlibpath_var:-none}
29170
29171 fi
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
29173 $as_echo "$acl_cv_libpath" >&6; }
29174   shlibpath_var="$acl_cv_shlibpath_var"
29175
29176
29177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
29178 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
29179   # Check whether --enable-relocatable was given.
29180 if test "${enable_relocatable+set}" = set; then :
29181   enableval=$enable_relocatable; if test "$enableval" != no; then
29182        RELOCATABLE=yes
29183      else
29184        RELOCATABLE=no
29185      fi
29186
29187 else
29188   RELOCATABLE=no
29189 fi
29190
29191
29192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
29193 $as_echo "$RELOCATABLE" >&6; }
29194
29195
29196
29197     if test "X$prefix" = "XNONE"; then
29198     reloc_final_prefix="$ac_default_prefix"
29199   else
29200     reloc_final_prefix="$prefix"
29201   fi
29202
29203 cat >>confdefs.h <<_ACEOF
29204 #define INSTALLPREFIX "${reloc_final_prefix}"
29205 _ACEOF
29206
29207   if test $RELOCATABLE = yes; then
29208
29209 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
29210
29211   fi
29212
29213
29214
29215
29216
29217
29218   is_noop=no
29219   use_elf_origin_trick=no
29220   use_wrapper=no
29221   if test $RELOCATABLE = yes; then
29222     # --enable-relocatable implies --disable-rpath
29223     enable_rpath=no
29224     for ac_header in mach-o/dyld.h
29225 do :
29226   ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
29227 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
29228   cat >>confdefs.h <<_ACEOF
29229 #define HAVE_MACH_O_DYLD_H 1
29230 _ACEOF
29231
29232 fi
29233
29234 done
29235
29236     for ac_func in _NSGetExecutablePath
29237 do :
29238   ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
29239 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
29240   cat >>confdefs.h <<_ACEOF
29241 #define HAVE__NSGETEXECUTABLEPATH 1
29242 _ACEOF
29243
29244 fi
29245 done
29246
29247     case "$host_os" in
29248       mingw*) is_noop=yes ;;
29249       linux* | kfreebsd*) use_elf_origin_trick=yes ;;
29250     esac
29251     if test $is_noop = yes; then
29252       RELOCATABLE_LDFLAGS=:
29253
29254     else
29255       if test $use_elf_origin_trick = yes; then
29256                 case "$ac_aux_dir" in
29257           /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
29258           *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
29259         esac
29260         RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
29261
29262       else
29263         use_wrapper=yes
29264                                         INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
29265
29266         case "$ac_aux_dir" in
29267           /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
29268           *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
29269         esac
29270       fi
29271     fi
29272   fi
29273    if test $is_noop = yes || test $use_elf_origin_trick = yes; then
29274   RELOCATABLE_VIA_LD_TRUE=
29275   RELOCATABLE_VIA_LD_FALSE='#'
29276 else
29277   RELOCATABLE_VIA_LD_TRUE='#'
29278   RELOCATABLE_VIA_LD_FALSE=
29279 fi
29280
29281    if test $use_wrapper = yes; then
29282   RELOCATABLE_VIA_WRAPPER_TRUE=
29283   RELOCATABLE_VIA_WRAPPER_FALSE='#'
29284 else
29285   RELOCATABLE_VIA_WRAPPER_TRUE='#'
29286   RELOCATABLE_VIA_WRAPPER_FALSE=
29287 fi
29288
29289
29290
29291
29292
29293
29294
29295
29296       RELOCATABLE_STRIP=':'
29297
29298
29299 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
29300 if test "x$ac_cv_have_decl_setenv" = xyes; then :
29301   ac_have_decl=1
29302 else
29303   ac_have_decl=0
29304 fi
29305
29306 cat >>confdefs.h <<_ACEOF
29307 #define HAVE_DECL_SETENV $ac_have_decl
29308 _ACEOF
29309
29310
29311
29312
29313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
29314 $as_echo_n "checking for ssize_t... " >&6; }
29315 if ${gt_cv_ssize_t+:} false; then :
29316   $as_echo_n "(cached) " >&6
29317 else
29318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29319 /* end confdefs.h.  */
29320 #include <sys/types.h>
29321 int
29322 main ()
29323 {
29324 int x = sizeof (ssize_t *) + sizeof (ssize_t);
29325             return !x;
29326   ;
29327   return 0;
29328 }
29329 _ACEOF
29330 if ac_fn_c_try_compile "$LINENO"; then :
29331   gt_cv_ssize_t=yes
29332 else
29333   gt_cv_ssize_t=no
29334 fi
29335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29336 fi
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
29338 $as_echo "$gt_cv_ssize_t" >&6; }
29339   if test $gt_cv_ssize_t = no; then
29340
29341 $as_echo "#define ssize_t int" >>confdefs.h
29342
29343   fi
29344
29345
29346
29347
29348
29349
29350
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
29352 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
29353 if ${ac_cv_type_uid_t+:} false; then :
29354   $as_echo_n "(cached) " >&6
29355 else
29356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29357 /* end confdefs.h.  */
29358 #include <sys/types.h>
29359
29360 _ACEOF
29361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29362   $EGREP "uid_t" >/dev/null 2>&1; then :
29363   ac_cv_type_uid_t=yes
29364 else
29365   ac_cv_type_uid_t=no
29366 fi
29367 rm -f conftest*
29368
29369 fi
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
29371 $as_echo "$ac_cv_type_uid_t" >&6; }
29372 if test $ac_cv_type_uid_t = no; then
29373
29374 $as_echo "#define uid_t int" >>confdefs.h
29375
29376
29377 $as_echo "#define gid_t int" >>confdefs.h
29378
29379 fi
29380
29381
29382
29383
29384
29385
29386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29387 /* end confdefs.h.  */
29388
29389 #ifdef _MSC_VER
29390 MicrosoftCompiler
29391 #endif
29392
29393 _ACEOF
29394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29395   $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
29396   gl_asmext='asm'
29397      gl_c_asm_opt='-c -Fa'
29398
29399 else
29400   gl_asmext='s'
29401      gl_c_asm_opt='-S'
29402
29403 fi
29404 rm -f conftest*
29405
29406
29407
29408
29409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
29410 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
29411 if ${gl_cv_prog_as_underscore+:} false; then :
29412   $as_echo_n "(cached) " >&6
29413 else
29414   cat > conftest.c <<EOF
29415 #ifdef __cplusplus
29416 extern "C" int foo (void);
29417 #endif
29418 int foo(void) { return 0; }
29419 EOF
29420      # Look for the assembly language name in the .s file.
29421      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
29422   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29423   (eval $ac_try) 2>&5
29424   ac_status=$?
29425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29426   test $ac_status = 0; }; } >/dev/null 2>&1
29427      if grep _foo conftest.$gl_asmext >/dev/null ; then
29428        gl_cv_prog_as_underscore=yes
29429      else
29430        gl_cv_prog_as_underscore=no
29431      fi
29432      rm -f conftest*
29433
29434 fi
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
29436 $as_echo "$gl_cv_prog_as_underscore" >&6; }
29437   if test $gl_cv_prog_as_underscore = yes; then
29438     USER_LABEL_PREFIX=_
29439   else
29440     USER_LABEL_PREFIX=
29441   fi
29442
29443 cat >>confdefs.h <<_ACEOF
29444 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
29445 _ACEOF
29446
29447   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
29459 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
29460 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
29461   $as_echo_n "(cached) " >&6
29462 else
29463
29464       if test "$cross_compiling" = yes; then :
29465
29466          case "$host_os" in
29467                                  # Guess yes on glibc systems.
29468            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
29469                                  # Guess yes on FreeBSD >= 5.
29470            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
29471            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
29472                                  # Guess yes on Mac OS X >= 10.3.
29473            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
29474            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
29475                                  # Guess yes on OpenBSD >= 3.9.
29476            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
29477                                  gl_cv_func_snprintf_retval_c99="guessing no";;
29478            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
29479                                  # Guess yes on Solaris >= 2.10.
29480            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
29481            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
29482                                  # Guess yes on AIX >= 4.
29483            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
29484            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
29485                                  # Guess yes on NetBSD >= 3.
29486            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
29487                                  gl_cv_func_snprintf_retval_c99="guessing no";;
29488            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
29489                                  # Guess yes on BeOS.
29490            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
29491                                  # If we don't know, assume the worst.
29492            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
29493          esac
29494
29495 else
29496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29497 /* end confdefs.h.  */
29498
29499 #include <stdio.h>
29500 #include <string.h>
29501 #if HAVE_SNPRINTF
29502 # define my_snprintf snprintf
29503 #else
29504 # include <stdarg.h>
29505 static int my_snprintf (char *buf, int size, const char *format, ...)
29506 {
29507   va_list args;
29508   int ret;
29509   va_start (args, format);
29510   ret = vsnprintf (buf, size, format, args);
29511   va_end (args);
29512   return ret;
29513 }
29514 #endif
29515 static char buf[100];
29516 int main ()
29517 {
29518   strcpy (buf, "ABCDEF");
29519   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
29520     return 1;
29521   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
29522     return 2;
29523   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
29524     return 3;
29525   return 0;
29526 }
29527 _ACEOF
29528 if ac_fn_c_try_run "$LINENO"; then :
29529   gl_cv_func_snprintf_retval_c99=yes
29530 else
29531   gl_cv_func_snprintf_retval_c99=no
29532 fi
29533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29534   conftest.$ac_objext conftest.beam conftest.$ac_ext
29535 fi
29536
29537
29538 fi
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
29540 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
29541
29542 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29543 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
29544   ac_have_decl=1
29545 else
29546   ac_have_decl=0
29547 fi
29548
29549 cat >>confdefs.h <<_ACEOF
29550 #define HAVE_DECL_SNPRINTF $ac_have_decl
29551 _ACEOF
29552
29553
29554
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
29556 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
29557 if ${ac_cv_header_stdbool_h+:} false; then :
29558   $as_echo_n "(cached) " >&6
29559 else
29560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29561 /* end confdefs.h.  */
29562
29563              #include <stdbool.h>
29564              #ifndef bool
29565               "error: bool is not defined"
29566              #endif
29567              #ifndef false
29568               "error: false is not defined"
29569              #endif
29570              #if false
29571               "error: false is not 0"
29572              #endif
29573              #ifndef true
29574               "error: true is not defined"
29575              #endif
29576              #if true != 1
29577               "error: true is not 1"
29578              #endif
29579              #ifndef __bool_true_false_are_defined
29580               "error: __bool_true_false_are_defined is not defined"
29581              #endif
29582
29583              struct s { _Bool s: 1; _Bool t; } s;
29584
29585              char a[true == 1 ? 1 : -1];
29586              char b[false == 0 ? 1 : -1];
29587              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
29588              char d[(bool) 0.5 == true ? 1 : -1];
29589              /* See body of main program for 'e'.  */
29590              char f[(_Bool) 0.0 == false ? 1 : -1];
29591              char g[true];
29592              char h[sizeof (_Bool)];
29593              char i[sizeof s.t];
29594              enum { j = false, k = true, l = false * true, m = true * 256 };
29595              /* The following fails for
29596                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
29597              _Bool n[m];
29598              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
29599              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
29600              /* Catch a bug in an HP-UX C compiler.  See
29601                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
29602                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
29603               */
29604              _Bool q = true;
29605              _Bool *pq = &q;
29606
29607 int
29608 main ()
29609 {
29610
29611              bool e = &s;
29612              *pq |= q;
29613              *pq |= ! q;
29614              /* Refer to every declared value, to avoid compiler optimizations.  */
29615              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
29616                      + !m + !n + !o + !p + !q + !pq);
29617
29618   ;
29619   return 0;
29620 }
29621 _ACEOF
29622 if ac_fn_c_try_compile "$LINENO"; then :
29623   ac_cv_header_stdbool_h=yes
29624 else
29625   ac_cv_header_stdbool_h=no
29626 fi
29627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29628 fi
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
29630 $as_echo "$ac_cv_header_stdbool_h" >&6; }
29631    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
29632 if test "x$ac_cv_type__Bool" = xyes; then :
29633
29634 cat >>confdefs.h <<_ACEOF
29635 #define HAVE__BOOL 1
29636 _ACEOF
29637
29638
29639 fi
29640
29641
29642
29643
29644
29645
29646
29647   if test $ac_cv_type_long_long_int = yes; then
29648     HAVE_LONG_LONG_INT=1
29649   else
29650     HAVE_LONG_LONG_INT=0
29651   fi
29652
29653
29654   if test $ac_cv_type_unsigned_long_long_int = yes; then
29655     HAVE_UNSIGNED_LONG_LONG_INT=1
29656   else
29657     HAVE_UNSIGNED_LONG_LONG_INT=0
29658   fi
29659
29660
29661
29662   if test $ac_cv_header_wchar_h = yes; then
29663     HAVE_WCHAR_H=1
29664   else
29665     HAVE_WCHAR_H=0
29666   fi
29667
29668
29669       if test $ac_cv_header_inttypes_h = yes; then
29670     HAVE_INTTYPES_H=1
29671   else
29672     HAVE_INTTYPES_H=0
29673   fi
29674
29675
29676       if test $ac_cv_header_sys_types_h = yes; then
29677     HAVE_SYS_TYPES_H=1
29678   else
29679     HAVE_SYS_TYPES_H=0
29680   fi
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692      if test $gl_cv_have_include_next = yes; then
29693        gl_cv_next_stdint_h='<'stdint.h'>'
29694      else
29695        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
29696 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
29697 if ${gl_cv_next_stdint_h+:} false; then :
29698   $as_echo_n "(cached) " >&6
29699 else
29700
29701              if test $ac_cv_header_stdint_h = yes; then
29702
29703
29704                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29705 /* end confdefs.h.  */
29706 #include <stdint.h>
29707
29708 _ACEOF
29709                                                                                                                         case "$host_os" in
29710                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
29711                  *)    gl_absname_cpp="$ac_cpp" ;;
29712                esac
29713
29714                case "$host_os" in
29715                  mingw*)
29716                                                                                                                                      gl_dirsep_regex='[/\\]'
29717                    ;;
29718                  *)
29719                    gl_dirsep_regex='\/'
29720                    ;;
29721                esac
29722                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29723
29724                gl_header_literal_regex=`echo 'stdint.h' \
29725                                         | sed -e "$gl_make_literal_regex_sed"`
29726                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29727                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29728                    s|^/[^/]|//&|
29729                    p
29730                    q
29731                  }'
29732                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29733                       sed -n "$gl_absolute_header_sed"`'"'
29734           else
29735                gl_cv_next_stdint_h='<'stdint.h'>'
29736              fi
29737
29738
29739 fi
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
29741 $as_echo "$gl_cv_next_stdint_h" >&6; }
29742      fi
29743      NEXT_STDINT_H=$gl_cv_next_stdint_h
29744
29745      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29746        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29747        gl_next_as_first_directive='<'stdint.h'>'
29748      else
29749        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29750        gl_next_as_first_directive=$gl_cv_next_stdint_h
29751      fi
29752      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
29753
29754
29755
29756
29757   if test $ac_cv_header_stdint_h = yes; then
29758     HAVE_STDINT_H=1
29759   else
29760     HAVE_STDINT_H=0
29761   fi
29762
29763
29764     if test $ac_cv_header_stdint_h = yes; then
29765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
29766 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
29767 if ${gl_cv_header_working_stdint_h+:} false; then :
29768   $as_echo_n "(cached) " >&6
29769 else
29770   gl_cv_header_working_stdint_h=no
29771        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29772 /* end confdefs.h.  */
29773
29774
29775 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29776 #include <stdint.h>
29777 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
29778 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
29779 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
29780 #endif
29781
29782
29783   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29784      included before <wchar.h>.  */
29785   #include <stddef.h>
29786   #include <signal.h>
29787   #if HAVE_WCHAR_H
29788   # include <stdio.h>
29789   # include <time.h>
29790   # include <wchar.h>
29791   #endif
29792
29793
29794 #ifdef INT8_MAX
29795 int8_t a1 = INT8_MAX;
29796 int8_t a1min = INT8_MIN;
29797 #endif
29798 #ifdef INT16_MAX
29799 int16_t a2 = INT16_MAX;
29800 int16_t a2min = INT16_MIN;
29801 #endif
29802 #ifdef INT32_MAX
29803 int32_t a3 = INT32_MAX;
29804 int32_t a3min = INT32_MIN;
29805 #endif
29806 #ifdef INT64_MAX
29807 int64_t a4 = INT64_MAX;
29808 int64_t a4min = INT64_MIN;
29809 #endif
29810 #ifdef UINT8_MAX
29811 uint8_t b1 = UINT8_MAX;
29812 #else
29813 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
29814 #endif
29815 #ifdef UINT16_MAX
29816 uint16_t b2 = UINT16_MAX;
29817 #endif
29818 #ifdef UINT32_MAX
29819 uint32_t b3 = UINT32_MAX;
29820 #endif
29821 #ifdef UINT64_MAX
29822 uint64_t b4 = UINT64_MAX;
29823 #endif
29824 int_least8_t c1 = INT8_C (0x7f);
29825 int_least8_t c1max = INT_LEAST8_MAX;
29826 int_least8_t c1min = INT_LEAST8_MIN;
29827 int_least16_t c2 = INT16_C (0x7fff);
29828 int_least16_t c2max = INT_LEAST16_MAX;
29829 int_least16_t c2min = INT_LEAST16_MIN;
29830 int_least32_t c3 = INT32_C (0x7fffffff);
29831 int_least32_t c3max = INT_LEAST32_MAX;
29832 int_least32_t c3min = INT_LEAST32_MIN;
29833 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
29834 int_least64_t c4max = INT_LEAST64_MAX;
29835 int_least64_t c4min = INT_LEAST64_MIN;
29836 uint_least8_t d1 = UINT8_C (0xff);
29837 uint_least8_t d1max = UINT_LEAST8_MAX;
29838 uint_least16_t d2 = UINT16_C (0xffff);
29839 uint_least16_t d2max = UINT_LEAST16_MAX;
29840 uint_least32_t d3 = UINT32_C (0xffffffff);
29841 uint_least32_t d3max = UINT_LEAST32_MAX;
29842 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
29843 uint_least64_t d4max = UINT_LEAST64_MAX;
29844 int_fast8_t e1 = INT_FAST8_MAX;
29845 int_fast8_t e1min = INT_FAST8_MIN;
29846 int_fast16_t e2 = INT_FAST16_MAX;
29847 int_fast16_t e2min = INT_FAST16_MIN;
29848 int_fast32_t e3 = INT_FAST32_MAX;
29849 int_fast32_t e3min = INT_FAST32_MIN;
29850 int_fast64_t e4 = INT_FAST64_MAX;
29851 int_fast64_t e4min = INT_FAST64_MIN;
29852 uint_fast8_t f1 = UINT_FAST8_MAX;
29853 uint_fast16_t f2 = UINT_FAST16_MAX;
29854 uint_fast32_t f3 = UINT_FAST32_MAX;
29855 uint_fast64_t f4 = UINT_FAST64_MAX;
29856 #ifdef INTPTR_MAX
29857 intptr_t g = INTPTR_MAX;
29858 intptr_t gmin = INTPTR_MIN;
29859 #endif
29860 #ifdef UINTPTR_MAX
29861 uintptr_t h = UINTPTR_MAX;
29862 #endif
29863 intmax_t i = INTMAX_MAX;
29864 uintmax_t j = UINTMAX_MAX;
29865
29866 #include <limits.h> /* for CHAR_BIT */
29867 #define TYPE_MINIMUM(t) \
29868   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
29869 #define TYPE_MAXIMUM(t) \
29870   ((t) ((t) 0 < (t) -1 \
29871         ? (t) -1 \
29872         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
29873 struct s {
29874   int check_PTRDIFF:
29875       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
29876       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
29877       ? 1 : -1;
29878   /* Detect bug in FreeBSD 6.0 / ia64.  */
29879   int check_SIG_ATOMIC:
29880       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
29881       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
29882       ? 1 : -1;
29883   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
29884   int check_WCHAR:
29885       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
29886       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
29887       ? 1 : -1;
29888   /* Detect bug in mingw.  */
29889   int check_WINT:
29890       WINT_MIN == TYPE_MINIMUM (wint_t)
29891       && WINT_MAX == TYPE_MAXIMUM (wint_t)
29892       ? 1 : -1;
29893
29894   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
29895   int check_UINT8_C:
29896         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
29897   int check_UINT16_C:
29898         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
29899
29900   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
29901 #ifdef UINT8_MAX
29902   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
29903 #endif
29904 #ifdef UINT16_MAX
29905   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
29906 #endif
29907 #ifdef UINT32_MAX
29908   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
29909 #endif
29910 #ifdef UINT64_MAX
29911   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
29912 #endif
29913   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
29914   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
29915   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
29916   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
29917   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
29918   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
29919   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
29920   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
29921   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
29922   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
29923   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
29924 };
29925
29926 int
29927 main ()
29928 {
29929
29930   ;
29931   return 0;
29932 }
29933 _ACEOF
29934 if ac_fn_c_try_compile "$LINENO"; then :
29935                                                     if test "$cross_compiling" = yes; then :
29936                  gl_cv_header_working_stdint_h=yes
29937
29938 else
29939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29940 /* end confdefs.h.  */
29941
29942
29943 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29944 #include <stdint.h>
29945
29946
29947   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29948      included before <wchar.h>.  */
29949   #include <stddef.h>
29950   #include <signal.h>
29951   #if HAVE_WCHAR_H
29952   # include <stdio.h>
29953   # include <time.h>
29954   # include <wchar.h>
29955   #endif
29956
29957
29958 #include <stdio.h>
29959 #include <string.h>
29960 #define MVAL(macro) MVAL1(macro)
29961 #define MVAL1(expression) #expression
29962 static const char *macro_values[] =
29963   {
29964 #ifdef INT8_MAX
29965     MVAL (INT8_MAX),
29966 #endif
29967 #ifdef INT16_MAX
29968     MVAL (INT16_MAX),
29969 #endif
29970 #ifdef INT32_MAX
29971     MVAL (INT32_MAX),
29972 #endif
29973 #ifdef INT64_MAX
29974     MVAL (INT64_MAX),
29975 #endif
29976 #ifdef UINT8_MAX
29977     MVAL (UINT8_MAX),
29978 #endif
29979 #ifdef UINT16_MAX
29980     MVAL (UINT16_MAX),
29981 #endif
29982 #ifdef UINT32_MAX
29983     MVAL (UINT32_MAX),
29984 #endif
29985 #ifdef UINT64_MAX
29986     MVAL (UINT64_MAX),
29987 #endif
29988     NULL
29989   };
29990
29991 int
29992 main ()
29993 {
29994
29995   const char **mv;
29996   for (mv = macro_values; *mv != NULL; mv++)
29997     {
29998       const char *value = *mv;
29999       /* Test whether it looks like a cast expression.  */
30000       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
30001           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
30002           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
30003           || strncmp (value, "((int)"/*)*/, 6) == 0
30004           || strncmp (value, "((signed short)"/*)*/, 15) == 0
30005           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
30006         return mv - macro_values + 1;
30007     }
30008   return 0;
30009
30010   ;
30011   return 0;
30012 }
30013 _ACEOF
30014 if ac_fn_c_try_run "$LINENO"; then :
30015   gl_cv_header_working_stdint_h=yes
30016 fi
30017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30018   conftest.$ac_objext conftest.beam conftest.$ac_ext
30019 fi
30020
30021
30022 fi
30023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30024
30025 fi
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
30027 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
30028   fi
30029   if test "$gl_cv_header_working_stdint_h" = yes; then
30030     STDINT_H=
30031   else
30032             for ac_header in sys/inttypes.h sys/bitypes.h
30033 do :
30034   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30035 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30036 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30037   cat >>confdefs.h <<_ACEOF
30038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30039 _ACEOF
30040
30041 fi
30042
30043 done
30044
30045     if test $ac_cv_header_sys_inttypes_h = yes; then
30046       HAVE_SYS_INTTYPES_H=1
30047     else
30048       HAVE_SYS_INTTYPES_H=0
30049     fi
30050
30051     if test $ac_cv_header_sys_bitypes_h = yes; then
30052       HAVE_SYS_BITYPES_H=1
30053     else
30054       HAVE_SYS_BITYPES_H=0
30055     fi
30056
30057
30058
30059
30060   if test $APPLE_UNIVERSAL_BUILD = 0; then
30061
30062
30063   for gltype in ptrdiff_t size_t ; do
30064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
30065 $as_echo_n "checking for bit size of $gltype... " >&6; }
30066 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
30067   $as_echo_n "(cached) " >&6
30068 else
30069   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
30070   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30071      included before <wchar.h>.  */
30072   #include <stddef.h>
30073   #include <signal.h>
30074   #if HAVE_WCHAR_H
30075   # include <stdio.h>
30076   # include <time.h>
30077   # include <wchar.h>
30078   #endif
30079
30080 #include <limits.h>"; then :
30081
30082 else
30083   result=unknown
30084 fi
30085
30086        eval gl_cv_bitsizeof_${gltype}=\$result
30087
30088 fi
30089 eval ac_res=\$gl_cv_bitsizeof_${gltype}
30090                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30091 $as_echo "$ac_res" >&6; }
30092     eval result=\$gl_cv_bitsizeof_${gltype}
30093     if test $result = unknown; then
30094                                                 result=0
30095     fi
30096     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30097     cat >>confdefs.h <<_ACEOF
30098 #define BITSIZEOF_${GLTYPE} $result
30099 _ACEOF
30100
30101     eval BITSIZEOF_${GLTYPE}=\$result
30102   done
30103
30104
30105   fi
30106
30107
30108   for gltype in sig_atomic_t wchar_t wint_t ; do
30109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
30110 $as_echo_n "checking for bit size of $gltype... " >&6; }
30111 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
30112   $as_echo_n "(cached) " >&6
30113 else
30114   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
30115   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30116      included before <wchar.h>.  */
30117   #include <stddef.h>
30118   #include <signal.h>
30119   #if HAVE_WCHAR_H
30120   # include <stdio.h>
30121   # include <time.h>
30122   # include <wchar.h>
30123   #endif
30124
30125 #include <limits.h>"; then :
30126
30127 else
30128   result=unknown
30129 fi
30130
30131        eval gl_cv_bitsizeof_${gltype}=\$result
30132
30133 fi
30134 eval ac_res=\$gl_cv_bitsizeof_${gltype}
30135                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30136 $as_echo "$ac_res" >&6; }
30137     eval result=\$gl_cv_bitsizeof_${gltype}
30138     if test $result = unknown; then
30139                                                 result=0
30140     fi
30141     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30142     cat >>confdefs.h <<_ACEOF
30143 #define BITSIZEOF_${GLTYPE} $result
30144 _ACEOF
30145
30146     eval BITSIZEOF_${GLTYPE}=\$result
30147   done
30148
30149
30150
30151
30152   for gltype in sig_atomic_t wchar_t wint_t ; do
30153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
30154 $as_echo_n "checking whether $gltype is signed... " >&6; }
30155 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
30156   $as_echo_n "(cached) " >&6
30157 else
30158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30159 /* end confdefs.h.  */
30160
30161   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30162      included before <wchar.h>.  */
30163   #include <stddef.h>
30164   #include <signal.h>
30165   #if HAVE_WCHAR_H
30166   # include <stdio.h>
30167   # include <time.h>
30168   # include <wchar.h>
30169   #endif
30170
30171             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
30172 int
30173 main ()
30174 {
30175
30176   ;
30177   return 0;
30178 }
30179 _ACEOF
30180 if ac_fn_c_try_compile "$LINENO"; then :
30181   result=yes
30182 else
30183   result=no
30184 fi
30185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30186        eval gl_cv_type_${gltype}_signed=\$result
30187
30188 fi
30189 eval ac_res=\$gl_cv_type_${gltype}_signed
30190                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30191 $as_echo "$ac_res" >&6; }
30192     eval result=\$gl_cv_type_${gltype}_signed
30193     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30194     if test "$result" = yes; then
30195       cat >>confdefs.h <<_ACEOF
30196 #define HAVE_SIGNED_${GLTYPE} 1
30197 _ACEOF
30198
30199       eval HAVE_SIGNED_${GLTYPE}=1
30200     else
30201       eval HAVE_SIGNED_${GLTYPE}=0
30202     fi
30203   done
30204
30205
30206   gl_cv_type_ptrdiff_t_signed=yes
30207   gl_cv_type_size_t_signed=no
30208   if test $APPLE_UNIVERSAL_BUILD = 0; then
30209
30210
30211   for gltype in ptrdiff_t size_t ; do
30212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
30213 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30214 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
30215   $as_echo_n "(cached) " >&6
30216 else
30217   eval gl_cv_type_${gltype}_suffix=no
30218        eval result=\$gl_cv_type_${gltype}_signed
30219        if test "$result" = yes; then
30220          glsufu=
30221        else
30222          glsufu=u
30223        fi
30224        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30225          case $glsuf in
30226            '')  gltype1='int';;
30227            l)   gltype1='long int';;
30228            ll)  gltype1='long long int';;
30229            i64) gltype1='__int64';;
30230            u)   gltype1='unsigned int';;
30231            ul)  gltype1='unsigned long int';;
30232            ull) gltype1='unsigned long long int';;
30233            ui64)gltype1='unsigned __int64';;
30234          esac
30235          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30236 /* end confdefs.h.  */
30237
30238   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30239      included before <wchar.h>.  */
30240   #include <stddef.h>
30241   #include <signal.h>
30242   #if HAVE_WCHAR_H
30243   # include <stdio.h>
30244   # include <time.h>
30245   # include <wchar.h>
30246   #endif
30247
30248               extern $gltype foo;
30249               extern $gltype1 foo;
30250 int
30251 main ()
30252 {
30253
30254   ;
30255   return 0;
30256 }
30257 _ACEOF
30258 if ac_fn_c_try_compile "$LINENO"; then :
30259   eval gl_cv_type_${gltype}_suffix=\$glsuf
30260 fi
30261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30262          eval result=\$gl_cv_type_${gltype}_suffix
30263          test "$result" != no && break
30264        done
30265 fi
30266 eval ac_res=\$gl_cv_type_${gltype}_suffix
30267                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30268 $as_echo "$ac_res" >&6; }
30269     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30270     eval result=\$gl_cv_type_${gltype}_suffix
30271     test "$result" = no && result=
30272     eval ${GLTYPE}_SUFFIX=\$result
30273     cat >>confdefs.h <<_ACEOF
30274 #define ${GLTYPE}_SUFFIX $result
30275 _ACEOF
30276
30277   done
30278
30279
30280   fi
30281
30282
30283   for gltype in sig_atomic_t wchar_t wint_t ; do
30284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
30285 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30286 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
30287   $as_echo_n "(cached) " >&6
30288 else
30289   eval gl_cv_type_${gltype}_suffix=no
30290        eval result=\$gl_cv_type_${gltype}_signed
30291        if test "$result" = yes; then
30292          glsufu=
30293        else
30294          glsufu=u
30295        fi
30296        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30297          case $glsuf in
30298            '')  gltype1='int';;
30299            l)   gltype1='long int';;
30300            ll)  gltype1='long long int';;
30301            i64) gltype1='__int64';;
30302            u)   gltype1='unsigned int';;
30303            ul)  gltype1='unsigned long int';;
30304            ull) gltype1='unsigned long long int';;
30305            ui64)gltype1='unsigned __int64';;
30306          esac
30307          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30308 /* end confdefs.h.  */
30309
30310   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30311      included before <wchar.h>.  */
30312   #include <stddef.h>
30313   #include <signal.h>
30314   #if HAVE_WCHAR_H
30315   # include <stdio.h>
30316   # include <time.h>
30317   # include <wchar.h>
30318   #endif
30319
30320               extern $gltype foo;
30321               extern $gltype1 foo;
30322 int
30323 main ()
30324 {
30325
30326   ;
30327   return 0;
30328 }
30329 _ACEOF
30330 if ac_fn_c_try_compile "$LINENO"; then :
30331   eval gl_cv_type_${gltype}_suffix=\$glsuf
30332 fi
30333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30334          eval result=\$gl_cv_type_${gltype}_suffix
30335          test "$result" != no && break
30336        done
30337 fi
30338 eval ac_res=\$gl_cv_type_${gltype}_suffix
30339                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30340 $as_echo "$ac_res" >&6; }
30341     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30342     eval result=\$gl_cv_type_${gltype}_suffix
30343     test "$result" = no && result=
30344     eval ${GLTYPE}_SUFFIX=\$result
30345     cat >>confdefs.h <<_ACEOF
30346 #define ${GLTYPE}_SUFFIX $result
30347 _ACEOF
30348
30349   done
30350
30351
30352
30353           if test $BITSIZEOF_WINT_T -lt 32; then
30354     BITSIZEOF_WINT_T=32
30355   fi
30356
30357     STDINT_H=stdint.h
30358   fi
30359
30360    if test -n "$STDINT_H"; then
30361   GL_GENERATE_STDINT_H_TRUE=
30362   GL_GENERATE_STDINT_H_FALSE='#'
30363 else
30364   GL_GENERATE_STDINT_H_TRUE='#'
30365   GL_GENERATE_STDINT_H_FALSE=
30366 fi
30367
30368
30369 ac_fn_c_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default"
30370 if test "x$ac_cv_have_decl_stpncpy" = xyes; then :
30371   ac_have_decl=1
30372 else
30373   ac_have_decl=0
30374 fi
30375
30376 cat >>confdefs.h <<_ACEOF
30377 #define HAVE_DECL_STPNCPY $ac_have_decl
30378 _ACEOF
30379
30380
30381
30382
30383      REPLACE_STRERROR_0=0
30384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
30385 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
30386 if ${gl_cv_func_strerror_0_works+:} false; then :
30387   $as_echo_n "(cached) " >&6
30388 else
30389   if test "$cross_compiling" = yes; then :
30390   case "$host_os" in
30391                  # Guess yes on glibc systems.
30392          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
30393                  # If we don't know, assume the worst.
30394          *)      gl_cv_func_strerror_0_works="guessing no" ;;
30395        esac
30396
30397 else
30398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30399 /* end confdefs.h.  */
30400 #include <string.h>
30401            #include <errno.h>
30402
30403 int
30404 main ()
30405 {
30406 int result = 0;
30407            char *str;
30408            errno = 0;
30409            str = strerror (0);
30410            if (!*str) result |= 1;
30411            if (errno) result |= 2;
30412            if (strstr (str, "nknown") || strstr (str, "ndefined"))
30413              result |= 4;
30414            return result;
30415   ;
30416   return 0;
30417 }
30418 _ACEOF
30419 if ac_fn_c_try_run "$LINENO"; then :
30420   gl_cv_func_strerror_0_works=yes
30421 else
30422   gl_cv_func_strerror_0_works=no
30423 fi
30424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30425   conftest.$ac_objext conftest.beam conftest.$ac_ext
30426 fi
30427
30428
30429 fi
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
30431 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
30432   case "$gl_cv_func_strerror_0_works" in
30433     *yes) ;;
30434     *)
30435       REPLACE_STRERROR_0=1
30436
30437 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
30438
30439       ;;
30440   esac
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453      if test $gl_cv_have_include_next = yes; then
30454        gl_cv_next_string_h='<'string.h'>'
30455      else
30456        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
30457 $as_echo_n "checking absolute name of <string.h>... " >&6; }
30458 if ${gl_cv_next_string_h+:} false; then :
30459   $as_echo_n "(cached) " >&6
30460 else
30461
30462                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30463 /* end confdefs.h.  */
30464 #include <string.h>
30465
30466 _ACEOF
30467                                                                                                                         case "$host_os" in
30468                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
30469                  *)    gl_absname_cpp="$ac_cpp" ;;
30470                esac
30471
30472                case "$host_os" in
30473                  mingw*)
30474                                                                                                                                      gl_dirsep_regex='[/\\]'
30475                    ;;
30476                  *)
30477                    gl_dirsep_regex='\/'
30478                    ;;
30479                esac
30480                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30481
30482                gl_header_literal_regex=`echo 'string.h' \
30483                                         | sed -e "$gl_make_literal_regex_sed"`
30484                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30485                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30486                    s|^/[^/]|//&|
30487                    p
30488                    q
30489                  }'
30490                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30491                       sed -n "$gl_absolute_header_sed"`'"'
30492
30493
30494 fi
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
30496 $as_echo "$gl_cv_next_string_h" >&6; }
30497      fi
30498      NEXT_STRING_H=$gl_cv_next_string_h
30499
30500      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30501        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30502        gl_next_as_first_directive='<'string.h'>'
30503      else
30504        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30505        gl_next_as_first_directive=$gl_cv_next_string_h
30506      fi
30507      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
30508
30509
30510
30511
30512
30513
30514     for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
30515     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30517 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30518 if eval \${$as_gl_Symbol+:} false; then :
30519   $as_echo_n "(cached) " >&6
30520 else
30521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30522 /* end confdefs.h.  */
30523 #include <string.h>
30524
30525 int
30526 main ()
30527 {
30528 #undef $gl_func
30529   (void) $gl_func;
30530   ;
30531   return 0;
30532 }
30533 _ACEOF
30534 if ac_fn_c_try_compile "$LINENO"; then :
30535   eval "$as_gl_Symbol=yes"
30536 else
30537   eval "$as_gl_Symbol=no"
30538 fi
30539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30540 fi
30541 eval ac_res=\$$as_gl_Symbol
30542                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30543 $as_echo "$ac_res" >&6; }
30544     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30545   cat >>confdefs.h <<_ACEOF
30546 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30547 _ACEOF
30548
30549                      eval ac_cv_have_decl_$gl_func=yes
30550 fi
30551       done
30552
30553
30554 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
30555 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
30556   ac_have_decl=1
30557 else
30558   ac_have_decl=0
30559 fi
30560
30561 cat >>confdefs.h <<_ACEOF
30562 #define HAVE_DECL_STRNLEN $ac_have_decl
30563 _ACEOF
30564
30565
30566
30567
30568   if test "$gl_cv_func_memchr_works" != yes; then
30569     REPLACE_STRSTR=1
30570   else
30571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
30572 $as_echo_n "checking whether strstr works... " >&6; }
30573 if ${gl_cv_func_strstr_works_always+:} false; then :
30574   $as_echo_n "(cached) " >&6
30575 else
30576   if test "$cross_compiling" = yes; then :
30577                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30578 /* end confdefs.h.  */
30579
30580 #ifdef __GNU_LIBRARY__
30581  #include <features.h>
30582  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
30583      || defined __UCLIBC__
30584   Lucky user
30585  #endif
30586 #elif defined __CYGWIN__
30587  #include <cygwin/version.h>
30588  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
30589   Lucky user
30590  #endif
30591 #else
30592   Lucky user
30593 #endif
30594
30595 _ACEOF
30596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30597   $EGREP "Lucky user" >/dev/null 2>&1; then :
30598   gl_cv_func_strstr_works_always="guessing yes"
30599 else
30600   gl_cv_func_strstr_works_always="guessing no"
30601 fi
30602 rm -f conftest*
30603
30604
30605 else
30606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30607 /* end confdefs.h.  */
30608
30609 #include <string.h> /* for strstr */
30610 #define P "_EF_BF_BD"
30611 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
30612 #define NEEDLE P P P P P
30613
30614 int
30615 main ()
30616 {
30617 return !!strstr (HAYSTACK, NEEDLE);
30618
30619   ;
30620   return 0;
30621 }
30622 _ACEOF
30623 if ac_fn_c_try_run "$LINENO"; then :
30624   gl_cv_func_strstr_works_always=yes
30625 else
30626   gl_cv_func_strstr_works_always=no
30627 fi
30628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30629   conftest.$ac_objext conftest.beam conftest.$ac_ext
30630 fi
30631
30632
30633 fi
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
30635 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
30636     case "$gl_cv_func_strstr_works_always" in
30637       *yes) ;;
30638       *)
30639         REPLACE_STRSTR=1
30640         ;;
30641     esac
30642   fi
30643
30644
30645   GNULIB_PSELECT=0;
30646   GNULIB_SELECT=0;
30647     HAVE_PSELECT=1;
30648   REPLACE_PSELECT=0;
30649   REPLACE_SELECT=0;
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671      if test $gl_cv_have_include_next = yes; then
30672        gl_cv_next_sys_types_h='<'sys/types.h'>'
30673      else
30674        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
30675 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
30676 if ${gl_cv_next_sys_types_h+:} false; then :
30677   $as_echo_n "(cached) " >&6
30678 else
30679
30680                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30681 /* end confdefs.h.  */
30682 #include <sys/types.h>
30683
30684 _ACEOF
30685                                                                                                                         case "$host_os" in
30686                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
30687                  *)    gl_absname_cpp="$ac_cpp" ;;
30688                esac
30689
30690                case "$host_os" in
30691                  mingw*)
30692                                                                                                                                      gl_dirsep_regex='[/\\]'
30693                    ;;
30694                  *)
30695                    gl_dirsep_regex='\/'
30696                    ;;
30697                esac
30698                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30699
30700                gl_header_literal_regex=`echo 'sys/types.h' \
30701                                         | sed -e "$gl_make_literal_regex_sed"`
30702                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30703                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30704                    s|^/[^/]|//&|
30705                    p
30706                    q
30707                  }'
30708                                                             gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30709                       sed -n "$gl_absolute_header_sed"`'"'
30710
30711
30712 fi
30713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
30714 $as_echo "$gl_cv_next_sys_types_h" >&6; }
30715      fi
30716      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
30717
30718      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30719        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30720        gl_next_as_first_directive='<'sys/types.h'>'
30721      else
30722        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30723        gl_next_as_first_directive=$gl_cv_next_sys_types_h
30724      fi
30725      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738   GNULIB_WAITPID=0;
30739
30740
30741
30742
30743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether curses libraries may be used" >&5
30744 $as_echo_n "checking whether curses libraries may be used... " >&6; }
30745   # Check whether --enable-curses was given.
30746 if test "${enable_curses+set}" = set; then :
30747   enableval=$enable_curses; gl_curses_allowed="$enableval"
30748 else
30749   gl_curses_allowed=yes
30750 fi
30751
30752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_curses_allowed" >&5
30753 $as_echo "$gl_curses_allowed" >&6; }
30754
30755
30756
30757
30758
30759
30760
30761
30762   if test "$gl_curses_allowed" != no; then
30763
30764
30765
30766
30767
30768
30769
30770
30771     use_additional=yes
30772
30773   acl_save_prefix="$prefix"
30774   prefix="$acl_final_prefix"
30775   acl_save_exec_prefix="$exec_prefix"
30776   exec_prefix="$acl_final_exec_prefix"
30777
30778     eval additional_includedir=\"$includedir\"
30779     eval additional_libdir=\"$libdir\"
30780
30781   exec_prefix="$acl_save_exec_prefix"
30782   prefix="$acl_save_prefix"
30783
30784
30785 # Check whether --with-libncurses-prefix was given.
30786 if test "${with_libncurses_prefix+set}" = set; then :
30787   withval=$with_libncurses_prefix;
30788     if test "X$withval" = "Xno"; then
30789       use_additional=no
30790     else
30791       if test "X$withval" = "X"; then
30792
30793   acl_save_prefix="$prefix"
30794   prefix="$acl_final_prefix"
30795   acl_save_exec_prefix="$exec_prefix"
30796   exec_prefix="$acl_final_exec_prefix"
30797
30798           eval additional_includedir=\"$includedir\"
30799           eval additional_libdir=\"$libdir\"
30800
30801   exec_prefix="$acl_save_exec_prefix"
30802   prefix="$acl_save_prefix"
30803
30804       else
30805         additional_includedir="$withval/include"
30806         additional_libdir="$withval/$acl_libdirstem"
30807         if test "$acl_libdirstem2" != "$acl_libdirstem" \
30808            && ! test -d "$withval/$acl_libdirstem"; then
30809           additional_libdir="$withval/$acl_libdirstem2"
30810         fi
30811       fi
30812     fi
30813
30814 fi
30815
30816       LIBNCURSES=
30817   LTLIBNCURSES=
30818   INCNCURSES=
30819   LIBNCURSES_PREFIX=
30820       HAVE_LIBNCURSES=
30821   rpathdirs=
30822   ltrpathdirs=
30823   names_already_handled=
30824   names_next_round='ncurses '
30825   while test -n "$names_next_round"; do
30826     names_this_round="$names_next_round"
30827     names_next_round=
30828     for name in $names_this_round; do
30829       already_handled=
30830       for n in $names_already_handled; do
30831         if test "$n" = "$name"; then
30832           already_handled=yes
30833           break
30834         fi
30835       done
30836       if test -z "$already_handled"; then
30837         names_already_handled="$names_already_handled $name"
30838                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
30839         eval value=\"\$HAVE_LIB$uppername\"
30840         if test -n "$value"; then
30841           if test "$value" = yes; then
30842             eval value=\"\$LIB$uppername\"
30843             test -z "$value" || LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$value"
30844             eval value=\"\$LTLIB$uppername\"
30845             test -z "$value" || LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$value"
30846           else
30847                                     :
30848           fi
30849         else
30850                               found_dir=
30851           found_la=
30852           found_so=
30853           found_a=
30854           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
30855           if test -n "$acl_shlibext"; then
30856             shrext=".$acl_shlibext"             # typically: shrext=.so
30857           else
30858             shrext=
30859           fi
30860           if test $use_additional = yes; then
30861             dir="$additional_libdir"
30862                                     if test -n "$acl_shlibext"; then
30863               if test -f "$dir/$libname$shrext"; then
30864                 found_dir="$dir"
30865                 found_so="$dir/$libname$shrext"
30866               else
30867                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
30868                   ver=`(cd "$dir" && \
30869                         for f in "$libname$shrext".*; do echo "$f"; done \
30870                         | sed -e "s,^$libname$shrext\\\\.,," \
30871                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
30872                         | sed 1q ) 2>/dev/null`
30873                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
30874                     found_dir="$dir"
30875                     found_so="$dir/$libname$shrext.$ver"
30876                   fi
30877                 else
30878                   eval library_names=\"$acl_library_names_spec\"
30879                   for f in $library_names; do
30880                     if test -f "$dir/$f"; then
30881                       found_dir="$dir"
30882                       found_so="$dir/$f"
30883                       break
30884                     fi
30885                   done
30886                 fi
30887               fi
30888             fi
30889                         if test "X$found_dir" = "X"; then
30890               if test -f "$dir/$libname.$acl_libext"; then
30891                 found_dir="$dir"
30892                 found_a="$dir/$libname.$acl_libext"
30893               fi
30894             fi
30895             if test "X$found_dir" != "X"; then
30896               if test -f "$dir/$libname.la"; then
30897                 found_la="$dir/$libname.la"
30898               fi
30899             fi
30900           fi
30901           if test "X$found_dir" = "X"; then
30902             for x in $LDFLAGS $LTLIBNCURSES; do
30903
30904   acl_save_prefix="$prefix"
30905   prefix="$acl_final_prefix"
30906   acl_save_exec_prefix="$exec_prefix"
30907   exec_prefix="$acl_final_exec_prefix"
30908   eval x=\"$x\"
30909   exec_prefix="$acl_save_exec_prefix"
30910   prefix="$acl_save_prefix"
30911
30912               case "$x" in
30913                 -L*)
30914                   dir=`echo "X$x" | sed -e 's/^X-L//'`
30915                                     if test -n "$acl_shlibext"; then
30916                     if test -f "$dir/$libname$shrext"; then
30917                       found_dir="$dir"
30918                       found_so="$dir/$libname$shrext"
30919                     else
30920                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
30921                         ver=`(cd "$dir" && \
30922                               for f in "$libname$shrext".*; do echo "$f"; done \
30923                               | sed -e "s,^$libname$shrext\\\\.,," \
30924                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
30925                               | sed 1q ) 2>/dev/null`
30926                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
30927                           found_dir="$dir"
30928                           found_so="$dir/$libname$shrext.$ver"
30929                         fi
30930                       else
30931                         eval library_names=\"$acl_library_names_spec\"
30932                         for f in $library_names; do
30933                           if test -f "$dir/$f"; then
30934                             found_dir="$dir"
30935                             found_so="$dir/$f"
30936                             break
30937                           fi
30938                         done
30939                       fi
30940                     fi
30941                   fi
30942                                     if test "X$found_dir" = "X"; then
30943                     if test -f "$dir/$libname.$acl_libext"; then
30944                       found_dir="$dir"
30945                       found_a="$dir/$libname.$acl_libext"
30946                     fi
30947                   fi
30948                   if test "X$found_dir" != "X"; then
30949                     if test -f "$dir/$libname.la"; then
30950                       found_la="$dir/$libname.la"
30951                     fi
30952                   fi
30953                   ;;
30954               esac
30955               if test "X$found_dir" != "X"; then
30956                 break
30957               fi
30958             done
30959           fi
30960           if test "X$found_dir" != "X"; then
30961                         LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$found_dir -l$name"
30962             if test "X$found_so" != "X"; then
30963                                                         if test "$enable_rpath" = no \
30964                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
30965                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
30966                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
30967               else
30968                                                                                 haveit=
30969                 for x in $ltrpathdirs; do
30970                   if test "X$x" = "X$found_dir"; then
30971                     haveit=yes
30972                     break
30973                   fi
30974                 done
30975                 if test -z "$haveit"; then
30976                   ltrpathdirs="$ltrpathdirs $found_dir"
30977                 fi
30978                                 if test "$acl_hardcode_direct" = yes; then
30979                                                       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
30980                 else
30981                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
30982                                                             LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
30983                                                             haveit=
30984                     for x in $rpathdirs; do
30985                       if test "X$x" = "X$found_dir"; then
30986                         haveit=yes
30987                         break
30988                       fi
30989                     done
30990                     if test -z "$haveit"; then
30991                       rpathdirs="$rpathdirs $found_dir"
30992                     fi
30993                   else
30994                                                                                 haveit=
30995                     for x in $LDFLAGS $LIBNCURSES; do
30996
30997   acl_save_prefix="$prefix"
30998   prefix="$acl_final_prefix"
30999   acl_save_exec_prefix="$exec_prefix"
31000   exec_prefix="$acl_final_exec_prefix"
31001   eval x=\"$x\"
31002   exec_prefix="$acl_save_exec_prefix"
31003   prefix="$acl_save_prefix"
31004
31005                       if test "X$x" = "X-L$found_dir"; then
31006                         haveit=yes
31007                         break
31008                       fi
31009                     done
31010                     if test -z "$haveit"; then
31011                       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir"
31012                     fi
31013                     if test "$acl_hardcode_minus_L" != no; then
31014                                                                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
31015                     else
31016                                                                                                                                                                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
31017                     fi
31018                   fi
31019                 fi
31020               fi
31021             else
31022               if test "X$found_a" != "X"; then
31023                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_a"
31024               else
31025                                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir -l$name"
31026               fi
31027             fi
31028                         additional_includedir=
31029             case "$found_dir" in
31030               */$acl_libdirstem | */$acl_libdirstem/)
31031                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
31032                 if test "$name" = 'ncurses'; then
31033                   LIBNCURSES_PREFIX="$basedir"
31034                 fi
31035                 additional_includedir="$basedir/include"
31036                 ;;
31037               */$acl_libdirstem2 | */$acl_libdirstem2/)
31038                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
31039                 if test "$name" = 'ncurses'; then
31040                   LIBNCURSES_PREFIX="$basedir"
31041                 fi
31042                 additional_includedir="$basedir/include"
31043                 ;;
31044             esac
31045             if test "X$additional_includedir" != "X"; then
31046                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
31047                 haveit=
31048                 if test "X$additional_includedir" = "X/usr/local/include"; then
31049                   if test -n "$GCC"; then
31050                     case $host_os in
31051                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
31052                     esac
31053                   fi
31054                 fi
31055                 if test -z "$haveit"; then
31056                   for x in $CPPFLAGS $INCNCURSES; do
31057
31058   acl_save_prefix="$prefix"
31059   prefix="$acl_final_prefix"
31060   acl_save_exec_prefix="$exec_prefix"
31061   exec_prefix="$acl_final_exec_prefix"
31062   eval x=\"$x\"
31063   exec_prefix="$acl_save_exec_prefix"
31064   prefix="$acl_save_prefix"
31065
31066                     if test "X$x" = "X-I$additional_includedir"; then
31067                       haveit=yes
31068                       break
31069                     fi
31070                   done
31071                   if test -z "$haveit"; then
31072                     if test -d "$additional_includedir"; then
31073                                             INCNCURSES="${INCNCURSES}${INCNCURSES:+ }-I$additional_includedir"
31074                     fi
31075                   fi
31076                 fi
31077               fi
31078             fi
31079                         if test -n "$found_la"; then
31080                                                         save_libdir="$libdir"
31081               case "$found_la" in
31082                 */* | *\\*) . "$found_la" ;;
31083                 *) . "./$found_la" ;;
31084               esac
31085               libdir="$save_libdir"
31086                             for dep in $dependency_libs; do
31087                 case "$dep" in
31088                   -L*)
31089                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
31090                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
31091                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
31092                       haveit=
31093                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
31094                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
31095                         if test -n "$GCC"; then
31096                           case $host_os in
31097                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
31098                           esac
31099                         fi
31100                       fi
31101                       if test -z "$haveit"; then
31102                         haveit=
31103                         for x in $LDFLAGS $LIBNCURSES; do
31104
31105   acl_save_prefix="$prefix"
31106   prefix="$acl_final_prefix"
31107   acl_save_exec_prefix="$exec_prefix"
31108   exec_prefix="$acl_final_exec_prefix"
31109   eval x=\"$x\"
31110   exec_prefix="$acl_save_exec_prefix"
31111   prefix="$acl_save_prefix"
31112
31113                           if test "X$x" = "X-L$additional_libdir"; then
31114                             haveit=yes
31115                             break
31116                           fi
31117                         done
31118                         if test -z "$haveit"; then
31119                           if test -d "$additional_libdir"; then
31120                                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$additional_libdir"
31121                           fi
31122                         fi
31123                         haveit=
31124                         for x in $LDFLAGS $LTLIBNCURSES; do
31125
31126   acl_save_prefix="$prefix"
31127   prefix="$acl_final_prefix"
31128   acl_save_exec_prefix="$exec_prefix"
31129   exec_prefix="$acl_final_exec_prefix"
31130   eval x=\"$x\"
31131   exec_prefix="$acl_save_exec_prefix"
31132   prefix="$acl_save_prefix"
31133
31134                           if test "X$x" = "X-L$additional_libdir"; then
31135                             haveit=yes
31136                             break
31137                           fi
31138                         done
31139                         if test -z "$haveit"; then
31140                           if test -d "$additional_libdir"; then
31141                                                         LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$additional_libdir"
31142                           fi
31143                         fi
31144                       fi
31145                     fi
31146                     ;;
31147                   -R*)
31148                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
31149                     if test "$enable_rpath" != no; then
31150                                                                   haveit=
31151                       for x in $rpathdirs; do
31152                         if test "X$x" = "X$dir"; then
31153                           haveit=yes
31154                           break
31155                         fi
31156                       done
31157                       if test -z "$haveit"; then
31158                         rpathdirs="$rpathdirs $dir"
31159                       fi
31160                                                                   haveit=
31161                       for x in $ltrpathdirs; do
31162                         if test "X$x" = "X$dir"; then
31163                           haveit=yes
31164                           break
31165                         fi
31166                       done
31167                       if test -z "$haveit"; then
31168                         ltrpathdirs="$ltrpathdirs $dir"
31169                       fi
31170                     fi
31171                     ;;
31172                   -l*)
31173                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
31174                     ;;
31175                   *.la)
31176                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
31177                     ;;
31178                   *)
31179                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$dep"
31180                     LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$dep"
31181                     ;;
31182                 esac
31183               done
31184             fi
31185           else
31186                                                             LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
31187             LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-l$name"
31188           fi
31189         fi
31190       fi
31191     done
31192   done
31193   if test "X$rpathdirs" != "X"; then
31194     if test -n "$acl_hardcode_libdir_separator"; then
31195                         alldirs=
31196       for found_dir in $rpathdirs; do
31197         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
31198       done
31199             acl_save_libdir="$libdir"
31200       libdir="$alldirs"
31201       eval flag=\"$acl_hardcode_libdir_flag_spec\"
31202       libdir="$acl_save_libdir"
31203       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
31204     else
31205             for found_dir in $rpathdirs; do
31206         acl_save_libdir="$libdir"
31207         libdir="$found_dir"
31208         eval flag=\"$acl_hardcode_libdir_flag_spec\"
31209         libdir="$acl_save_libdir"
31210         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
31211       done
31212     fi
31213   fi
31214   if test "X$ltrpathdirs" != "X"; then
31215             for found_dir in $ltrpathdirs; do
31216       LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-R$found_dir"
31217     done
31218   fi
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233     use_additional=yes
31234
31235   acl_save_prefix="$prefix"
31236   prefix="$acl_final_prefix"
31237   acl_save_exec_prefix="$exec_prefix"
31238   exec_prefix="$acl_final_exec_prefix"
31239
31240     eval additional_includedir=\"$includedir\"
31241     eval additional_libdir=\"$libdir\"
31242
31243   exec_prefix="$acl_save_exec_prefix"
31244   prefix="$acl_save_prefix"
31245
31246
31247 # Check whether --with-libtermcap-prefix was given.
31248 if test "${with_libtermcap_prefix+set}" = set; then :
31249   withval=$with_libtermcap_prefix;
31250     if test "X$withval" = "Xno"; then
31251       use_additional=no
31252     else
31253       if test "X$withval" = "X"; then
31254
31255   acl_save_prefix="$prefix"
31256   prefix="$acl_final_prefix"
31257   acl_save_exec_prefix="$exec_prefix"
31258   exec_prefix="$acl_final_exec_prefix"
31259
31260           eval additional_includedir=\"$includedir\"
31261           eval additional_libdir=\"$libdir\"
31262
31263   exec_prefix="$acl_save_exec_prefix"
31264   prefix="$acl_save_prefix"
31265
31266       else
31267         additional_includedir="$withval/include"
31268         additional_libdir="$withval/$acl_libdirstem"
31269         if test "$acl_libdirstem2" != "$acl_libdirstem" \
31270            && ! test -d "$withval/$acl_libdirstem"; then
31271           additional_libdir="$withval/$acl_libdirstem2"
31272         fi
31273       fi
31274     fi
31275
31276 fi
31277
31278       LIBTERMCAP=
31279   LTLIBTERMCAP=
31280   INCTERMCAP=
31281   LIBTERMCAP_PREFIX=
31282       HAVE_LIBTERMCAP=
31283   rpathdirs=
31284   ltrpathdirs=
31285   names_already_handled=
31286   names_next_round='termcap '
31287   while test -n "$names_next_round"; do
31288     names_this_round="$names_next_round"
31289     names_next_round=
31290     for name in $names_this_round; do
31291       already_handled=
31292       for n in $names_already_handled; do
31293         if test "$n" = "$name"; then
31294           already_handled=yes
31295           break
31296         fi
31297       done
31298       if test -z "$already_handled"; then
31299         names_already_handled="$names_already_handled $name"
31300                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
31301         eval value=\"\$HAVE_LIB$uppername\"
31302         if test -n "$value"; then
31303           if test "$value" = yes; then
31304             eval value=\"\$LIB$uppername\"
31305             test -z "$value" || LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$value"
31306             eval value=\"\$LTLIB$uppername\"
31307             test -z "$value" || LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$value"
31308           else
31309                                     :
31310           fi
31311         else
31312                               found_dir=
31313           found_la=
31314           found_so=
31315           found_a=
31316           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
31317           if test -n "$acl_shlibext"; then
31318             shrext=".$acl_shlibext"             # typically: shrext=.so
31319           else
31320             shrext=
31321           fi
31322           if test $use_additional = yes; then
31323             dir="$additional_libdir"
31324                                     if test -n "$acl_shlibext"; then
31325               if test -f "$dir/$libname$shrext"; then
31326                 found_dir="$dir"
31327                 found_so="$dir/$libname$shrext"
31328               else
31329                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
31330                   ver=`(cd "$dir" && \
31331                         for f in "$libname$shrext".*; do echo "$f"; done \
31332                         | sed -e "s,^$libname$shrext\\\\.,," \
31333                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
31334                         | sed 1q ) 2>/dev/null`
31335                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
31336                     found_dir="$dir"
31337                     found_so="$dir/$libname$shrext.$ver"
31338                   fi
31339                 else
31340                   eval library_names=\"$acl_library_names_spec\"
31341                   for f in $library_names; do
31342                     if test -f "$dir/$f"; then
31343                       found_dir="$dir"
31344                       found_so="$dir/$f"
31345                       break
31346                     fi
31347                   done
31348                 fi
31349               fi
31350             fi
31351                         if test "X$found_dir" = "X"; then
31352               if test -f "$dir/$libname.$acl_libext"; then
31353                 found_dir="$dir"
31354                 found_a="$dir/$libname.$acl_libext"
31355               fi
31356             fi
31357             if test "X$found_dir" != "X"; then
31358               if test -f "$dir/$libname.la"; then
31359                 found_la="$dir/$libname.la"
31360               fi
31361             fi
31362           fi
31363           if test "X$found_dir" = "X"; then
31364             for x in $LDFLAGS $LTLIBTERMCAP; do
31365
31366   acl_save_prefix="$prefix"
31367   prefix="$acl_final_prefix"
31368   acl_save_exec_prefix="$exec_prefix"
31369   exec_prefix="$acl_final_exec_prefix"
31370   eval x=\"$x\"
31371   exec_prefix="$acl_save_exec_prefix"
31372   prefix="$acl_save_prefix"
31373
31374               case "$x" in
31375                 -L*)
31376                   dir=`echo "X$x" | sed -e 's/^X-L//'`
31377                                     if test -n "$acl_shlibext"; then
31378                     if test -f "$dir/$libname$shrext"; then
31379                       found_dir="$dir"
31380                       found_so="$dir/$libname$shrext"
31381                     else
31382                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
31383                         ver=`(cd "$dir" && \
31384                               for f in "$libname$shrext".*; do echo "$f"; done \
31385                               | sed -e "s,^$libname$shrext\\\\.,," \
31386                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
31387                               | sed 1q ) 2>/dev/null`
31388                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
31389                           found_dir="$dir"
31390                           found_so="$dir/$libname$shrext.$ver"
31391                         fi
31392                       else
31393                         eval library_names=\"$acl_library_names_spec\"
31394                         for f in $library_names; do
31395                           if test -f "$dir/$f"; then
31396                             found_dir="$dir"
31397                             found_so="$dir/$f"
31398                             break
31399                           fi
31400                         done
31401                       fi
31402                     fi
31403                   fi
31404                                     if test "X$found_dir" = "X"; then
31405                     if test -f "$dir/$libname.$acl_libext"; then
31406                       found_dir="$dir"
31407                       found_a="$dir/$libname.$acl_libext"
31408                     fi
31409                   fi
31410                   if test "X$found_dir" != "X"; then
31411                     if test -f "$dir/$libname.la"; then
31412                       found_la="$dir/$libname.la"
31413                     fi
31414                   fi
31415                   ;;
31416               esac
31417               if test "X$found_dir" != "X"; then
31418                 break
31419               fi
31420             done
31421           fi
31422           if test "X$found_dir" != "X"; then
31423                         LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$found_dir -l$name"
31424             if test "X$found_so" != "X"; then
31425                                                         if test "$enable_rpath" = no \
31426                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
31427                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
31428                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
31429               else
31430                                                                                 haveit=
31431                 for x in $ltrpathdirs; do
31432                   if test "X$x" = "X$found_dir"; then
31433                     haveit=yes
31434                     break
31435                   fi
31436                 done
31437                 if test -z "$haveit"; then
31438                   ltrpathdirs="$ltrpathdirs $found_dir"
31439                 fi
31440                                 if test "$acl_hardcode_direct" = yes; then
31441                                                       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
31442                 else
31443                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
31444                                                             LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
31445                                                             haveit=
31446                     for x in $rpathdirs; do
31447                       if test "X$x" = "X$found_dir"; then
31448                         haveit=yes
31449                         break
31450                       fi
31451                     done
31452                     if test -z "$haveit"; then
31453                       rpathdirs="$rpathdirs $found_dir"
31454                     fi
31455                   else
31456                                                                                 haveit=
31457                     for x in $LDFLAGS $LIBTERMCAP; do
31458
31459   acl_save_prefix="$prefix"
31460   prefix="$acl_final_prefix"
31461   acl_save_exec_prefix="$exec_prefix"
31462   exec_prefix="$acl_final_exec_prefix"
31463   eval x=\"$x\"
31464   exec_prefix="$acl_save_exec_prefix"
31465   prefix="$acl_save_prefix"
31466
31467                       if test "X$x" = "X-L$found_dir"; then
31468                         haveit=yes
31469                         break
31470                       fi
31471                     done
31472                     if test -z "$haveit"; then
31473                       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir"
31474                     fi
31475                     if test "$acl_hardcode_minus_L" != no; then
31476                                                                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
31477                     else
31478                                                                                                                                                                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
31479                     fi
31480                   fi
31481                 fi
31482               fi
31483             else
31484               if test "X$found_a" != "X"; then
31485                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_a"
31486               else
31487                                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir -l$name"
31488               fi
31489             fi
31490                         additional_includedir=
31491             case "$found_dir" in
31492               */$acl_libdirstem | */$acl_libdirstem/)
31493                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
31494                 if test "$name" = 'termcap'; then
31495                   LIBTERMCAP_PREFIX="$basedir"
31496                 fi
31497                 additional_includedir="$basedir/include"
31498                 ;;
31499               */$acl_libdirstem2 | */$acl_libdirstem2/)
31500                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
31501                 if test "$name" = 'termcap'; then
31502                   LIBTERMCAP_PREFIX="$basedir"
31503                 fi
31504                 additional_includedir="$basedir/include"
31505                 ;;
31506             esac
31507             if test "X$additional_includedir" != "X"; then
31508                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
31509                 haveit=
31510                 if test "X$additional_includedir" = "X/usr/local/include"; then
31511                   if test -n "$GCC"; then
31512                     case $host_os in
31513                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
31514                     esac
31515                   fi
31516                 fi
31517                 if test -z "$haveit"; then
31518                   for x in $CPPFLAGS $INCTERMCAP; do
31519
31520   acl_save_prefix="$prefix"
31521   prefix="$acl_final_prefix"
31522   acl_save_exec_prefix="$exec_prefix"
31523   exec_prefix="$acl_final_exec_prefix"
31524   eval x=\"$x\"
31525   exec_prefix="$acl_save_exec_prefix"
31526   prefix="$acl_save_prefix"
31527
31528                     if test "X$x" = "X-I$additional_includedir"; then
31529                       haveit=yes
31530                       break
31531                     fi
31532                   done
31533                   if test -z "$haveit"; then
31534                     if test -d "$additional_includedir"; then
31535                                             INCTERMCAP="${INCTERMCAP}${INCTERMCAP:+ }-I$additional_includedir"
31536                     fi
31537                   fi
31538                 fi
31539               fi
31540             fi
31541                         if test -n "$found_la"; then
31542                                                         save_libdir="$libdir"
31543               case "$found_la" in
31544                 */* | *\\*) . "$found_la" ;;
31545                 *) . "./$found_la" ;;
31546               esac
31547               libdir="$save_libdir"
31548                             for dep in $dependency_libs; do
31549                 case "$dep" in
31550                   -L*)
31551                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
31552                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
31553                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
31554                       haveit=
31555                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
31556                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
31557                         if test -n "$GCC"; then
31558                           case $host_os in
31559                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
31560                           esac
31561                         fi
31562                       fi
31563                       if test -z "$haveit"; then
31564                         haveit=
31565                         for x in $LDFLAGS $LIBTERMCAP; do
31566
31567   acl_save_prefix="$prefix"
31568   prefix="$acl_final_prefix"
31569   acl_save_exec_prefix="$exec_prefix"
31570   exec_prefix="$acl_final_exec_prefix"
31571   eval x=\"$x\"
31572   exec_prefix="$acl_save_exec_prefix"
31573   prefix="$acl_save_prefix"
31574
31575                           if test "X$x" = "X-L$additional_libdir"; then
31576                             haveit=yes
31577                             break
31578                           fi
31579                         done
31580                         if test -z "$haveit"; then
31581                           if test -d "$additional_libdir"; then
31582                                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$additional_libdir"
31583                           fi
31584                         fi
31585                         haveit=
31586                         for x in $LDFLAGS $LTLIBTERMCAP; do
31587
31588   acl_save_prefix="$prefix"
31589   prefix="$acl_final_prefix"
31590   acl_save_exec_prefix="$exec_prefix"
31591   exec_prefix="$acl_final_exec_prefix"
31592   eval x=\"$x\"
31593   exec_prefix="$acl_save_exec_prefix"
31594   prefix="$acl_save_prefix"
31595
31596                           if test "X$x" = "X-L$additional_libdir"; then
31597                             haveit=yes
31598                             break
31599                           fi
31600                         done
31601                         if test -z "$haveit"; then
31602                           if test -d "$additional_libdir"; then
31603                                                         LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$additional_libdir"
31604                           fi
31605                         fi
31606                       fi
31607                     fi
31608                     ;;
31609                   -R*)
31610                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
31611                     if test "$enable_rpath" != no; then
31612                                                                   haveit=
31613                       for x in $rpathdirs; do
31614                         if test "X$x" = "X$dir"; then
31615                           haveit=yes
31616                           break
31617                         fi
31618                       done
31619                       if test -z "$haveit"; then
31620                         rpathdirs="$rpathdirs $dir"
31621                       fi
31622                                                                   haveit=
31623                       for x in $ltrpathdirs; do
31624                         if test "X$x" = "X$dir"; then
31625                           haveit=yes
31626                           break
31627                         fi
31628                       done
31629                       if test -z "$haveit"; then
31630                         ltrpathdirs="$ltrpathdirs $dir"
31631                       fi
31632                     fi
31633                     ;;
31634                   -l*)
31635                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
31636                     ;;
31637                   *.la)
31638                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
31639                     ;;
31640                   *)
31641                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$dep"
31642                     LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$dep"
31643                     ;;
31644                 esac
31645               done
31646             fi
31647           else
31648                                                             LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
31649             LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-l$name"
31650           fi
31651         fi
31652       fi
31653     done
31654   done
31655   if test "X$rpathdirs" != "X"; then
31656     if test -n "$acl_hardcode_libdir_separator"; then
31657                         alldirs=
31658       for found_dir in $rpathdirs; do
31659         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
31660       done
31661             acl_save_libdir="$libdir"
31662       libdir="$alldirs"
31663       eval flag=\"$acl_hardcode_libdir_flag_spec\"
31664       libdir="$acl_save_libdir"
31665       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
31666     else
31667             for found_dir in $rpathdirs; do
31668         acl_save_libdir="$libdir"
31669         libdir="$found_dir"
31670         eval flag=\"$acl_hardcode_libdir_flag_spec\"
31671         libdir="$acl_save_libdir"
31672         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
31673       done
31674     fi
31675   fi
31676   if test "X$ltrpathdirs" != "X"; then
31677             for found_dir in $ltrpathdirs; do
31678       LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-R$found_dir"
31679     done
31680   fi
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695     use_additional=yes
31696
31697   acl_save_prefix="$prefix"
31698   prefix="$acl_final_prefix"
31699   acl_save_exec_prefix="$exec_prefix"
31700   exec_prefix="$acl_final_exec_prefix"
31701
31702     eval additional_includedir=\"$includedir\"
31703     eval additional_libdir=\"$libdir\"
31704
31705   exec_prefix="$acl_save_exec_prefix"
31706   prefix="$acl_save_prefix"
31707
31708
31709 # Check whether --with-libxcurses-prefix was given.
31710 if test "${with_libxcurses_prefix+set}" = set; then :
31711   withval=$with_libxcurses_prefix;
31712     if test "X$withval" = "Xno"; then
31713       use_additional=no
31714     else
31715       if test "X$withval" = "X"; then
31716
31717   acl_save_prefix="$prefix"
31718   prefix="$acl_final_prefix"
31719   acl_save_exec_prefix="$exec_prefix"
31720   exec_prefix="$acl_final_exec_prefix"
31721
31722           eval additional_includedir=\"$includedir\"
31723           eval additional_libdir=\"$libdir\"
31724
31725   exec_prefix="$acl_save_exec_prefix"
31726   prefix="$acl_save_prefix"
31727
31728       else
31729         additional_includedir="$withval/include"
31730         additional_libdir="$withval/$acl_libdirstem"
31731         if test "$acl_libdirstem2" != "$acl_libdirstem" \
31732            && ! test -d "$withval/$acl_libdirstem"; then
31733           additional_libdir="$withval/$acl_libdirstem2"
31734         fi
31735       fi
31736     fi
31737
31738 fi
31739
31740       LIBXCURSES=
31741   LTLIBXCURSES=
31742   INCXCURSES=
31743   LIBXCURSES_PREFIX=
31744       HAVE_LIBXCURSES=
31745   rpathdirs=
31746   ltrpathdirs=
31747   names_already_handled=
31748   names_next_round='xcurses '
31749   while test -n "$names_next_round"; do
31750     names_this_round="$names_next_round"
31751     names_next_round=
31752     for name in $names_this_round; do
31753       already_handled=
31754       for n in $names_already_handled; do
31755         if test "$n" = "$name"; then
31756           already_handled=yes
31757           break
31758         fi
31759       done
31760       if test -z "$already_handled"; then
31761         names_already_handled="$names_already_handled $name"
31762                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
31763         eval value=\"\$HAVE_LIB$uppername\"
31764         if test -n "$value"; then
31765           if test "$value" = yes; then
31766             eval value=\"\$LIB$uppername\"
31767             test -z "$value" || LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$value"
31768             eval value=\"\$LTLIB$uppername\"
31769             test -z "$value" || LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$value"
31770           else
31771                                     :
31772           fi
31773         else
31774                               found_dir=
31775           found_la=
31776           found_so=
31777           found_a=
31778           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
31779           if test -n "$acl_shlibext"; then
31780             shrext=".$acl_shlibext"             # typically: shrext=.so
31781           else
31782             shrext=
31783           fi
31784           if test $use_additional = yes; then
31785             dir="$additional_libdir"
31786                                     if test -n "$acl_shlibext"; then
31787               if test -f "$dir/$libname$shrext"; then
31788                 found_dir="$dir"
31789                 found_so="$dir/$libname$shrext"
31790               else
31791                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
31792                   ver=`(cd "$dir" && \
31793                         for f in "$libname$shrext".*; do echo "$f"; done \
31794                         | sed -e "s,^$libname$shrext\\\\.,," \
31795                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
31796                         | sed 1q ) 2>/dev/null`
31797                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
31798                     found_dir="$dir"
31799                     found_so="$dir/$libname$shrext.$ver"
31800                   fi
31801                 else
31802                   eval library_names=\"$acl_library_names_spec\"
31803                   for f in $library_names; do
31804                     if test -f "$dir/$f"; then
31805                       found_dir="$dir"
31806                       found_so="$dir/$f"
31807                       break
31808                     fi
31809                   done
31810                 fi
31811               fi
31812             fi
31813                         if test "X$found_dir" = "X"; then
31814               if test -f "$dir/$libname.$acl_libext"; then
31815                 found_dir="$dir"
31816                 found_a="$dir/$libname.$acl_libext"
31817               fi
31818             fi
31819             if test "X$found_dir" != "X"; then
31820               if test -f "$dir/$libname.la"; then
31821                 found_la="$dir/$libname.la"
31822               fi
31823             fi
31824           fi
31825           if test "X$found_dir" = "X"; then
31826             for x in $LDFLAGS $LTLIBXCURSES; do
31827
31828   acl_save_prefix="$prefix"
31829   prefix="$acl_final_prefix"
31830   acl_save_exec_prefix="$exec_prefix"
31831   exec_prefix="$acl_final_exec_prefix"
31832   eval x=\"$x\"
31833   exec_prefix="$acl_save_exec_prefix"
31834   prefix="$acl_save_prefix"
31835
31836               case "$x" in
31837                 -L*)
31838                   dir=`echo "X$x" | sed -e 's/^X-L//'`
31839                                     if test -n "$acl_shlibext"; then
31840                     if test -f "$dir/$libname$shrext"; then
31841                       found_dir="$dir"
31842                       found_so="$dir/$libname$shrext"
31843                     else
31844                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
31845                         ver=`(cd "$dir" && \
31846                               for f in "$libname$shrext".*; do echo "$f"; done \
31847                               | sed -e "s,^$libname$shrext\\\\.,," \
31848                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
31849                               | sed 1q ) 2>/dev/null`
31850                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
31851                           found_dir="$dir"
31852                           found_so="$dir/$libname$shrext.$ver"
31853                         fi
31854                       else
31855                         eval library_names=\"$acl_library_names_spec\"
31856                         for f in $library_names; do
31857                           if test -f "$dir/$f"; then
31858                             found_dir="$dir"
31859                             found_so="$dir/$f"
31860                             break
31861                           fi
31862                         done
31863                       fi
31864                     fi
31865                   fi
31866                                     if test "X$found_dir" = "X"; then
31867                     if test -f "$dir/$libname.$acl_libext"; then
31868                       found_dir="$dir"
31869                       found_a="$dir/$libname.$acl_libext"
31870                     fi
31871                   fi
31872                   if test "X$found_dir" != "X"; then
31873                     if test -f "$dir/$libname.la"; then
31874                       found_la="$dir/$libname.la"
31875                     fi
31876                   fi
31877                   ;;
31878               esac
31879               if test "X$found_dir" != "X"; then
31880                 break
31881               fi
31882             done
31883           fi
31884           if test "X$found_dir" != "X"; then
31885                         LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$found_dir -l$name"
31886             if test "X$found_so" != "X"; then
31887                                                         if test "$enable_rpath" = no \
31888                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
31889                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
31890                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
31891               else
31892                                                                                 haveit=
31893                 for x in $ltrpathdirs; do
31894                   if test "X$x" = "X$found_dir"; then
31895                     haveit=yes
31896                     break
31897                   fi
31898                 done
31899                 if test -z "$haveit"; then
31900                   ltrpathdirs="$ltrpathdirs $found_dir"
31901                 fi
31902                                 if test "$acl_hardcode_direct" = yes; then
31903                                                       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
31904                 else
31905                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
31906                                                             LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
31907                                                             haveit=
31908                     for x in $rpathdirs; do
31909                       if test "X$x" = "X$found_dir"; then
31910                         haveit=yes
31911                         break
31912                       fi
31913                     done
31914                     if test -z "$haveit"; then
31915                       rpathdirs="$rpathdirs $found_dir"
31916                     fi
31917                   else
31918                                                                                 haveit=
31919                     for x in $LDFLAGS $LIBXCURSES; do
31920
31921   acl_save_prefix="$prefix"
31922   prefix="$acl_final_prefix"
31923   acl_save_exec_prefix="$exec_prefix"
31924   exec_prefix="$acl_final_exec_prefix"
31925   eval x=\"$x\"
31926   exec_prefix="$acl_save_exec_prefix"
31927   prefix="$acl_save_prefix"
31928
31929                       if test "X$x" = "X-L$found_dir"; then
31930                         haveit=yes
31931                         break
31932                       fi
31933                     done
31934                     if test -z "$haveit"; then
31935                       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir"
31936                     fi
31937                     if test "$acl_hardcode_minus_L" != no; then
31938                                                                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
31939                     else
31940                                                                                                                                                                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
31941                     fi
31942                   fi
31943                 fi
31944               fi
31945             else
31946               if test "X$found_a" != "X"; then
31947                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_a"
31948               else
31949                                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir -l$name"
31950               fi
31951             fi
31952                         additional_includedir=
31953             case "$found_dir" in
31954               */$acl_libdirstem | */$acl_libdirstem/)
31955                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
31956                 if test "$name" = 'xcurses'; then
31957                   LIBXCURSES_PREFIX="$basedir"
31958                 fi
31959                 additional_includedir="$basedir/include"
31960                 ;;
31961               */$acl_libdirstem2 | */$acl_libdirstem2/)
31962                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
31963                 if test "$name" = 'xcurses'; then
31964                   LIBXCURSES_PREFIX="$basedir"
31965                 fi
31966                 additional_includedir="$basedir/include"
31967                 ;;
31968             esac
31969             if test "X$additional_includedir" != "X"; then
31970                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
31971                 haveit=
31972                 if test "X$additional_includedir" = "X/usr/local/include"; then
31973                   if test -n "$GCC"; then
31974                     case $host_os in
31975                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
31976                     esac
31977                   fi
31978                 fi
31979                 if test -z "$haveit"; then
31980                   for x in $CPPFLAGS $INCXCURSES; do
31981
31982   acl_save_prefix="$prefix"
31983   prefix="$acl_final_prefix"
31984   acl_save_exec_prefix="$exec_prefix"
31985   exec_prefix="$acl_final_exec_prefix"
31986   eval x=\"$x\"
31987   exec_prefix="$acl_save_exec_prefix"
31988   prefix="$acl_save_prefix"
31989
31990                     if test "X$x" = "X-I$additional_includedir"; then
31991                       haveit=yes
31992                       break
31993                     fi
31994                   done
31995                   if test -z "$haveit"; then
31996                     if test -d "$additional_includedir"; then
31997                                             INCXCURSES="${INCXCURSES}${INCXCURSES:+ }-I$additional_includedir"
31998                     fi
31999                   fi
32000                 fi
32001               fi
32002             fi
32003                         if test -n "$found_la"; then
32004                                                         save_libdir="$libdir"
32005               case "$found_la" in
32006                 */* | *\\*) . "$found_la" ;;
32007                 *) . "./$found_la" ;;
32008               esac
32009               libdir="$save_libdir"
32010                             for dep in $dependency_libs; do
32011                 case "$dep" in
32012                   -L*)
32013                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
32014                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
32015                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
32016                       haveit=
32017                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
32018                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
32019                         if test -n "$GCC"; then
32020                           case $host_os in
32021                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
32022                           esac
32023                         fi
32024                       fi
32025                       if test -z "$haveit"; then
32026                         haveit=
32027                         for x in $LDFLAGS $LIBXCURSES; do
32028
32029   acl_save_prefix="$prefix"
32030   prefix="$acl_final_prefix"
32031   acl_save_exec_prefix="$exec_prefix"
32032   exec_prefix="$acl_final_exec_prefix"
32033   eval x=\"$x\"
32034   exec_prefix="$acl_save_exec_prefix"
32035   prefix="$acl_save_prefix"
32036
32037                           if test "X$x" = "X-L$additional_libdir"; then
32038                             haveit=yes
32039                             break
32040                           fi
32041                         done
32042                         if test -z "$haveit"; then
32043                           if test -d "$additional_libdir"; then
32044                                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$additional_libdir"
32045                           fi
32046                         fi
32047                         haveit=
32048                         for x in $LDFLAGS $LTLIBXCURSES; do
32049
32050   acl_save_prefix="$prefix"
32051   prefix="$acl_final_prefix"
32052   acl_save_exec_prefix="$exec_prefix"
32053   exec_prefix="$acl_final_exec_prefix"
32054   eval x=\"$x\"
32055   exec_prefix="$acl_save_exec_prefix"
32056   prefix="$acl_save_prefix"
32057
32058                           if test "X$x" = "X-L$additional_libdir"; then
32059                             haveit=yes
32060                             break
32061                           fi
32062                         done
32063                         if test -z "$haveit"; then
32064                           if test -d "$additional_libdir"; then
32065                                                         LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$additional_libdir"
32066                           fi
32067                         fi
32068                       fi
32069                     fi
32070                     ;;
32071                   -R*)
32072                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
32073                     if test "$enable_rpath" != no; then
32074                                                                   haveit=
32075                       for x in $rpathdirs; do
32076                         if test "X$x" = "X$dir"; then
32077                           haveit=yes
32078                           break
32079                         fi
32080                       done
32081                       if test -z "$haveit"; then
32082                         rpathdirs="$rpathdirs $dir"
32083                       fi
32084                                                                   haveit=
32085                       for x in $ltrpathdirs; do
32086                         if test "X$x" = "X$dir"; then
32087                           haveit=yes
32088                           break
32089                         fi
32090                       done
32091                       if test -z "$haveit"; then
32092                         ltrpathdirs="$ltrpathdirs $dir"
32093                       fi
32094                     fi
32095                     ;;
32096                   -l*)
32097                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
32098                     ;;
32099                   *.la)
32100                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
32101                     ;;
32102                   *)
32103                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$dep"
32104                     LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$dep"
32105                     ;;
32106                 esac
32107               done
32108             fi
32109           else
32110                                                             LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
32111             LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-l$name"
32112           fi
32113         fi
32114       fi
32115     done
32116   done
32117   if test "X$rpathdirs" != "X"; then
32118     if test -n "$acl_hardcode_libdir_separator"; then
32119                         alldirs=
32120       for found_dir in $rpathdirs; do
32121         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
32122       done
32123             acl_save_libdir="$libdir"
32124       libdir="$alldirs"
32125       eval flag=\"$acl_hardcode_libdir_flag_spec\"
32126       libdir="$acl_save_libdir"
32127       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
32128     else
32129             for found_dir in $rpathdirs; do
32130         acl_save_libdir="$libdir"
32131         libdir="$found_dir"
32132         eval flag=\"$acl_hardcode_libdir_flag_spec\"
32133         libdir="$acl_save_libdir"
32134         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
32135       done
32136     fi
32137   fi
32138   if test "X$ltrpathdirs" != "X"; then
32139             for found_dir in $ltrpathdirs; do
32140       LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-R$found_dir"
32141     done
32142   fi
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153
32154
32155
32156
32157     use_additional=yes
32158
32159   acl_save_prefix="$prefix"
32160   prefix="$acl_final_prefix"
32161   acl_save_exec_prefix="$exec_prefix"
32162   exec_prefix="$acl_final_exec_prefix"
32163
32164     eval additional_includedir=\"$includedir\"
32165     eval additional_libdir=\"$libdir\"
32166
32167   exec_prefix="$acl_save_exec_prefix"
32168   prefix="$acl_save_prefix"
32169
32170
32171 # Check whether --with-libcurses-prefix was given.
32172 if test "${with_libcurses_prefix+set}" = set; then :
32173   withval=$with_libcurses_prefix;
32174     if test "X$withval" = "Xno"; then
32175       use_additional=no
32176     else
32177       if test "X$withval" = "X"; then
32178
32179   acl_save_prefix="$prefix"
32180   prefix="$acl_final_prefix"
32181   acl_save_exec_prefix="$exec_prefix"
32182   exec_prefix="$acl_final_exec_prefix"
32183
32184           eval additional_includedir=\"$includedir\"
32185           eval additional_libdir=\"$libdir\"
32186
32187   exec_prefix="$acl_save_exec_prefix"
32188   prefix="$acl_save_prefix"
32189
32190       else
32191         additional_includedir="$withval/include"
32192         additional_libdir="$withval/$acl_libdirstem"
32193         if test "$acl_libdirstem2" != "$acl_libdirstem" \
32194            && ! test -d "$withval/$acl_libdirstem"; then
32195           additional_libdir="$withval/$acl_libdirstem2"
32196         fi
32197       fi
32198     fi
32199
32200 fi
32201
32202       LIBCURSES=
32203   LTLIBCURSES=
32204   INCCURSES=
32205   LIBCURSES_PREFIX=
32206       HAVE_LIBCURSES=
32207   rpathdirs=
32208   ltrpathdirs=
32209   names_already_handled=
32210   names_next_round='curses '
32211   while test -n "$names_next_round"; do
32212     names_this_round="$names_next_round"
32213     names_next_round=
32214     for name in $names_this_round; do
32215       already_handled=
32216       for n in $names_already_handled; do
32217         if test "$n" = "$name"; then
32218           already_handled=yes
32219           break
32220         fi
32221       done
32222       if test -z "$already_handled"; then
32223         names_already_handled="$names_already_handled $name"
32224                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
32225         eval value=\"\$HAVE_LIB$uppername\"
32226         if test -n "$value"; then
32227           if test "$value" = yes; then
32228             eval value=\"\$LIB$uppername\"
32229             test -z "$value" || LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$value"
32230             eval value=\"\$LTLIB$uppername\"
32231             test -z "$value" || LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$value"
32232           else
32233                                     :
32234           fi
32235         else
32236                               found_dir=
32237           found_la=
32238           found_so=
32239           found_a=
32240           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
32241           if test -n "$acl_shlibext"; then
32242             shrext=".$acl_shlibext"             # typically: shrext=.so
32243           else
32244             shrext=
32245           fi
32246           if test $use_additional = yes; then
32247             dir="$additional_libdir"
32248                                     if test -n "$acl_shlibext"; then
32249               if test -f "$dir/$libname$shrext"; then
32250                 found_dir="$dir"
32251                 found_so="$dir/$libname$shrext"
32252               else
32253                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
32254                   ver=`(cd "$dir" && \
32255                         for f in "$libname$shrext".*; do echo "$f"; done \
32256                         | sed -e "s,^$libname$shrext\\\\.,," \
32257                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
32258                         | sed 1q ) 2>/dev/null`
32259                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
32260                     found_dir="$dir"
32261                     found_so="$dir/$libname$shrext.$ver"
32262                   fi
32263                 else
32264                   eval library_names=\"$acl_library_names_spec\"
32265                   for f in $library_names; do
32266                     if test -f "$dir/$f"; then
32267                       found_dir="$dir"
32268                       found_so="$dir/$f"
32269                       break
32270                     fi
32271                   done
32272                 fi
32273               fi
32274             fi
32275                         if test "X$found_dir" = "X"; then
32276               if test -f "$dir/$libname.$acl_libext"; then
32277                 found_dir="$dir"
32278                 found_a="$dir/$libname.$acl_libext"
32279               fi
32280             fi
32281             if test "X$found_dir" != "X"; then
32282               if test -f "$dir/$libname.la"; then
32283                 found_la="$dir/$libname.la"
32284               fi
32285             fi
32286           fi
32287           if test "X$found_dir" = "X"; then
32288             for x in $LDFLAGS $LTLIBCURSES; do
32289
32290   acl_save_prefix="$prefix"
32291   prefix="$acl_final_prefix"
32292   acl_save_exec_prefix="$exec_prefix"
32293   exec_prefix="$acl_final_exec_prefix"
32294   eval x=\"$x\"
32295   exec_prefix="$acl_save_exec_prefix"
32296   prefix="$acl_save_prefix"
32297
32298               case "$x" in
32299                 -L*)
32300                   dir=`echo "X$x" | sed -e 's/^X-L//'`
32301                                     if test -n "$acl_shlibext"; then
32302                     if test -f "$dir/$libname$shrext"; then
32303                       found_dir="$dir"
32304                       found_so="$dir/$libname$shrext"
32305                     else
32306                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
32307                         ver=`(cd "$dir" && \
32308                               for f in "$libname$shrext".*; do echo "$f"; done \
32309                               | sed -e "s,^$libname$shrext\\\\.,," \
32310                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
32311                               | sed 1q ) 2>/dev/null`
32312                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
32313                           found_dir="$dir"
32314                           found_so="$dir/$libname$shrext.$ver"
32315                         fi
32316                       else
32317                         eval library_names=\"$acl_library_names_spec\"
32318                         for f in $library_names; do
32319                           if test -f "$dir/$f"; then
32320                             found_dir="$dir"
32321                             found_so="$dir/$f"
32322                             break
32323                           fi
32324                         done
32325                       fi
32326                     fi
32327                   fi
32328                                     if test "X$found_dir" = "X"; then
32329                     if test -f "$dir/$libname.$acl_libext"; then
32330                       found_dir="$dir"
32331                       found_a="$dir/$libname.$acl_libext"
32332                     fi
32333                   fi
32334                   if test "X$found_dir" != "X"; then
32335                     if test -f "$dir/$libname.la"; then
32336                       found_la="$dir/$libname.la"
32337                     fi
32338                   fi
32339                   ;;
32340               esac
32341               if test "X$found_dir" != "X"; then
32342                 break
32343               fi
32344             done
32345           fi
32346           if test "X$found_dir" != "X"; then
32347                         LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$found_dir -l$name"
32348             if test "X$found_so" != "X"; then
32349                                                         if test "$enable_rpath" = no \
32350                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
32351                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
32352                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
32353               else
32354                                                                                 haveit=
32355                 for x in $ltrpathdirs; do
32356                   if test "X$x" = "X$found_dir"; then
32357                     haveit=yes
32358                     break
32359                   fi
32360                 done
32361                 if test -z "$haveit"; then
32362                   ltrpathdirs="$ltrpathdirs $found_dir"
32363                 fi
32364                                 if test "$acl_hardcode_direct" = yes; then
32365                                                       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
32366                 else
32367                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
32368                                                             LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
32369                                                             haveit=
32370                     for x in $rpathdirs; do
32371                       if test "X$x" = "X$found_dir"; then
32372                         haveit=yes
32373                         break
32374                       fi
32375                     done
32376                     if test -z "$haveit"; then
32377                       rpathdirs="$rpathdirs $found_dir"
32378                     fi
32379                   else
32380                                                                                 haveit=
32381                     for x in $LDFLAGS $LIBCURSES; do
32382
32383   acl_save_prefix="$prefix"
32384   prefix="$acl_final_prefix"
32385   acl_save_exec_prefix="$exec_prefix"
32386   exec_prefix="$acl_final_exec_prefix"
32387   eval x=\"$x\"
32388   exec_prefix="$acl_save_exec_prefix"
32389   prefix="$acl_save_prefix"
32390
32391                       if test "X$x" = "X-L$found_dir"; then
32392                         haveit=yes
32393                         break
32394                       fi
32395                     done
32396                     if test -z "$haveit"; then
32397                       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir"
32398                     fi
32399                     if test "$acl_hardcode_minus_L" != no; then
32400                                                                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
32401                     else
32402                                                                                                                                                                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
32403                     fi
32404                   fi
32405                 fi
32406               fi
32407             else
32408               if test "X$found_a" != "X"; then
32409                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_a"
32410               else
32411                                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir -l$name"
32412               fi
32413             fi
32414                         additional_includedir=
32415             case "$found_dir" in
32416               */$acl_libdirstem | */$acl_libdirstem/)
32417                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
32418                 if test "$name" = 'curses'; then
32419                   LIBCURSES_PREFIX="$basedir"
32420                 fi
32421                 additional_includedir="$basedir/include"
32422                 ;;
32423               */$acl_libdirstem2 | */$acl_libdirstem2/)
32424                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
32425                 if test "$name" = 'curses'; then
32426                   LIBCURSES_PREFIX="$basedir"
32427                 fi
32428                 additional_includedir="$basedir/include"
32429                 ;;
32430             esac
32431             if test "X$additional_includedir" != "X"; then
32432                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
32433                 haveit=
32434                 if test "X$additional_includedir" = "X/usr/local/include"; then
32435                   if test -n "$GCC"; then
32436                     case $host_os in
32437                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
32438                     esac
32439                   fi
32440                 fi
32441                 if test -z "$haveit"; then
32442                   for x in $CPPFLAGS $INCCURSES; do
32443
32444   acl_save_prefix="$prefix"
32445   prefix="$acl_final_prefix"
32446   acl_save_exec_prefix="$exec_prefix"
32447   exec_prefix="$acl_final_exec_prefix"
32448   eval x=\"$x\"
32449   exec_prefix="$acl_save_exec_prefix"
32450   prefix="$acl_save_prefix"
32451
32452                     if test "X$x" = "X-I$additional_includedir"; then
32453                       haveit=yes
32454                       break
32455                     fi
32456                   done
32457                   if test -z "$haveit"; then
32458                     if test -d "$additional_includedir"; then
32459                                             INCCURSES="${INCCURSES}${INCCURSES:+ }-I$additional_includedir"
32460                     fi
32461                   fi
32462                 fi
32463               fi
32464             fi
32465                         if test -n "$found_la"; then
32466                                                         save_libdir="$libdir"
32467               case "$found_la" in
32468                 */* | *\\*) . "$found_la" ;;
32469                 *) . "./$found_la" ;;
32470               esac
32471               libdir="$save_libdir"
32472                             for dep in $dependency_libs; do
32473                 case "$dep" in
32474                   -L*)
32475                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
32476                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
32477                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
32478                       haveit=
32479                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
32480                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
32481                         if test -n "$GCC"; then
32482                           case $host_os in
32483                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
32484                           esac
32485                         fi
32486                       fi
32487                       if test -z "$haveit"; then
32488                         haveit=
32489                         for x in $LDFLAGS $LIBCURSES; do
32490
32491   acl_save_prefix="$prefix"
32492   prefix="$acl_final_prefix"
32493   acl_save_exec_prefix="$exec_prefix"
32494   exec_prefix="$acl_final_exec_prefix"
32495   eval x=\"$x\"
32496   exec_prefix="$acl_save_exec_prefix"
32497   prefix="$acl_save_prefix"
32498
32499                           if test "X$x" = "X-L$additional_libdir"; then
32500                             haveit=yes
32501                             break
32502                           fi
32503                         done
32504                         if test -z "$haveit"; then
32505                           if test -d "$additional_libdir"; then
32506                                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$additional_libdir"
32507                           fi
32508                         fi
32509                         haveit=
32510                         for x in $LDFLAGS $LTLIBCURSES; do
32511
32512   acl_save_prefix="$prefix"
32513   prefix="$acl_final_prefix"
32514   acl_save_exec_prefix="$exec_prefix"
32515   exec_prefix="$acl_final_exec_prefix"
32516   eval x=\"$x\"
32517   exec_prefix="$acl_save_exec_prefix"
32518   prefix="$acl_save_prefix"
32519
32520                           if test "X$x" = "X-L$additional_libdir"; then
32521                             haveit=yes
32522                             break
32523                           fi
32524                         done
32525                         if test -z "$haveit"; then
32526                           if test -d "$additional_libdir"; then
32527                                                         LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$additional_libdir"
32528                           fi
32529                         fi
32530                       fi
32531                     fi
32532                     ;;
32533                   -R*)
32534                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
32535                     if test "$enable_rpath" != no; then
32536                                                                   haveit=
32537                       for x in $rpathdirs; do
32538                         if test "X$x" = "X$dir"; then
32539                           haveit=yes
32540                           break
32541                         fi
32542                       done
32543                       if test -z "$haveit"; then
32544                         rpathdirs="$rpathdirs $dir"
32545                       fi
32546                                                                   haveit=
32547                       for x in $ltrpathdirs; do
32548                         if test "X$x" = "X$dir"; then
32549                           haveit=yes
32550                           break
32551                         fi
32552                       done
32553                       if test -z "$haveit"; then
32554                         ltrpathdirs="$ltrpathdirs $dir"
32555                       fi
32556                     fi
32557                     ;;
32558                   -l*)
32559                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
32560                     ;;
32561                   *.la)
32562                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
32563                     ;;
32564                   *)
32565                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$dep"
32566                     LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$dep"
32567                     ;;
32568                 esac
32569               done
32570             fi
32571           else
32572                                                             LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
32573             LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-l$name"
32574           fi
32575         fi
32576       fi
32577     done
32578   done
32579   if test "X$rpathdirs" != "X"; then
32580     if test -n "$acl_hardcode_libdir_separator"; then
32581                         alldirs=
32582       for found_dir in $rpathdirs; do
32583         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
32584       done
32585             acl_save_libdir="$libdir"
32586       libdir="$alldirs"
32587       eval flag=\"$acl_hardcode_libdir_flag_spec\"
32588       libdir="$acl_save_libdir"
32589       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
32590     else
32591             for found_dir in $rpathdirs; do
32592         acl_save_libdir="$libdir"
32593         libdir="$found_dir"
32594         eval flag=\"$acl_hardcode_libdir_flag_spec\"
32595         libdir="$acl_save_libdir"
32596         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
32597       done
32598     fi
32599   fi
32600   if test "X$ltrpathdirs" != "X"; then
32601             for found_dir in $ltrpathdirs; do
32602       LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-R$found_dir"
32603     done
32604   fi
32605
32606
32607
32608
32609
32610
32611
32612   else
32613
32614     LIBNCURSES=
32615     LTLIBNCURSES=
32616     INCNCURSES=
32617
32618     LIBTERMCAP=
32619     LTLIBTERMCAP=
32620     INCTERMCAP=
32621
32622     LIBXCURSES=
32623     LTLIBXCURSES=
32624     INCXCURSES=
32625
32626     LIBCURSES=
32627     LTLIBCURSES=
32628     INCCURSES=
32629
32630   fi
32631
32632       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where terminfo library functions come from" >&5
32633 $as_echo_n "checking where terminfo library functions come from... " >&6; }
32634 if ${gl_cv_terminfo+:} false; then :
32635   $as_echo_n "(cached) " >&6
32636 else
32637
32638     gl_cv_terminfo="not found, consider installing GNU ncurses"
32639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32640 /* end confdefs.h.  */
32641 extern
32642       #ifdef __cplusplus
32643       "C"
32644       #endif
32645       int setupterm (const char *, int, int *);
32646       extern
32647       #ifdef __cplusplus
32648       "C"
32649       #endif
32650       int tigetnum (const char *);
32651       extern
32652       #ifdef __cplusplus
32653       "C"
32654       #endif
32655       int tigetflag (const char *);
32656       extern
32657       #ifdef __cplusplus
32658       "C"
32659       #endif
32660       const char * tigetstr (const char *);
32661
32662 int
32663 main ()
32664 {
32665 return setupterm ("xterm", 0, (int *)0)
32666                  + tigetnum ("colors")
32667                  + tigetflag ("hc") + * tigetstr("oc");
32668   ;
32669   return 0;
32670 }
32671 _ACEOF
32672 if ac_fn_c_try_link "$LINENO"; then :
32673   gl_cv_terminfo=libc
32674 fi
32675 rm -f core conftest.err conftest.$ac_objext \
32676     conftest$ac_exeext conftest.$ac_ext
32677     if test "$gl_cv_terminfo" != libc; then
32678       gl_save_LIBS="$LIBS"
32679       LIBS="$LIBS $LIBNCURSES"
32680       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32681 /* end confdefs.h.  */
32682 extern
32683         #ifdef __cplusplus
32684         "C"
32685         #endif
32686         int setupterm (const char *, int, int *);
32687         extern
32688         #ifdef __cplusplus
32689         "C"
32690         #endif
32691         int tigetnum (const char *);
32692         extern
32693         #ifdef __cplusplus
32694         "C"
32695         #endif
32696         int tigetflag (const char *);
32697         extern
32698         #ifdef __cplusplus
32699         "C"
32700         #endif
32701         const char * tigetstr (const char *);
32702
32703 int
32704 main ()
32705 {
32706 return setupterm ("xterm", 0, (int *)0)
32707                    + tigetnum ("colors")
32708                    + tigetflag ("hc") + * tigetstr("oc");
32709   ;
32710   return 0;
32711 }
32712 _ACEOF
32713 if ac_fn_c_try_link "$LINENO"; then :
32714   gl_cv_terminfo=libncurses
32715 fi
32716 rm -f core conftest.err conftest.$ac_objext \
32717     conftest$ac_exeext conftest.$ac_ext
32718       LIBS="$gl_save_LIBS"
32719       if test "$gl_cv_terminfo" != libncurses; then
32720         gl_save_LIBS="$LIBS"
32721         LIBS="$LIBS $LIBTERMCAP"
32722         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32723 /* end confdefs.h.  */
32724 extern
32725           #ifdef __cplusplus
32726           "C"
32727           #endif
32728           int setupterm (const char *, int, int *);
32729           extern
32730           #ifdef __cplusplus
32731           "C"
32732           #endif
32733           int tigetnum (const char *);
32734           extern
32735           #ifdef __cplusplus
32736           "C"
32737           #endif
32738           int tigetflag (const char *);
32739           extern
32740           #ifdef __cplusplus
32741           "C"
32742           #endif
32743           const char * tigetstr (const char *);
32744
32745 int
32746 main ()
32747 {
32748 return setupterm ("xterm", 0, (int *)0)
32749                      + tigetnum ("colors")
32750                      + tigetflag ("hc") + * tigetstr("oc");
32751   ;
32752   return 0;
32753 }
32754 _ACEOF
32755 if ac_fn_c_try_link "$LINENO"; then :
32756   gl_cv_terminfo=libtermcap
32757 fi
32758 rm -f core conftest.err conftest.$ac_objext \
32759     conftest$ac_exeext conftest.$ac_ext
32760         LIBS="$gl_save_LIBS"
32761         if test "$gl_cv_terminfo" != libtermcap; then
32762           gl_save_LIBS="$LIBS"
32763           LIBS="$LIBS $LIBXCURSES"
32764           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32765 /* end confdefs.h.  */
32766 extern
32767             #ifdef __cplusplus
32768             "C"
32769             #endif
32770             int setupterm (const char *, int, int *);
32771             extern
32772             #ifdef __cplusplus
32773             "C"
32774             #endif
32775             int tigetnum (const char *);
32776             extern
32777             #ifdef __cplusplus
32778             "C"
32779             #endif
32780             int tigetflag (const char *);
32781             extern
32782             #ifdef __cplusplus
32783             "C"
32784             #endif
32785             const char * tigetstr (const char *);
32786
32787 int
32788 main ()
32789 {
32790 return setupterm ("xterm", 0, (int *)0)
32791                        + tigetnum ("colors")
32792                        + tigetflag ("hc") + * tigetstr("oc");
32793   ;
32794   return 0;
32795 }
32796 _ACEOF
32797 if ac_fn_c_try_link "$LINENO"; then :
32798   gl_cv_terminfo=libxcurses
32799 fi
32800 rm -f core conftest.err conftest.$ac_objext \
32801     conftest$ac_exeext conftest.$ac_ext
32802           LIBS="$gl_save_LIBS"
32803           if test "$gl_cv_terminfo" != libxcurses; then
32804             gl_save_LIBS="$LIBS"
32805             LIBS="$LIBS $LIBCURSES"
32806             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32807 /* end confdefs.h.  */
32808 extern
32809               #ifdef __cplusplus
32810               "C"
32811               #endif
32812               int setupterm (const char *, int, int *);
32813               extern
32814               #ifdef __cplusplus
32815               "C"
32816               #endif
32817               int tigetnum (const char *);
32818               extern
32819               #ifdef __cplusplus
32820               "C"
32821               #endif
32822               int tigetflag (const char *);
32823               extern
32824               #ifdef __cplusplus
32825               "C"
32826               #endif
32827               const char * tigetstr (const char *);
32828
32829 int
32830 main ()
32831 {
32832 return setupterm ("xterm", 0, (int *)0)
32833                          + tigetnum ("colors")
32834                          + tigetflag ("hc") + * tigetstr("oc");
32835   ;
32836   return 0;
32837 }
32838 _ACEOF
32839 if ac_fn_c_try_link "$LINENO"; then :
32840   gl_cv_terminfo=libcurses
32841 fi
32842 rm -f core conftest.err conftest.$ac_objext \
32843     conftest$ac_exeext conftest.$ac_ext
32844             LIBS="$gl_save_LIBS"
32845           fi
32846         fi
32847       fi
32848     fi
32849
32850 fi
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo" >&5
32852 $as_echo "$gl_cv_terminfo" >&6; }
32853   case "$gl_cv_terminfo" in
32854     libc)
32855       LIBTERMINFO=
32856       LTLIBTERMINFO=
32857       INCTERMINFO=
32858       ;;
32859     libncurses)
32860       LIBTERMINFO="$LIBNCURSES"
32861       LTLIBTERMINFO="$LTLIBNCURSES"
32862       INCTERMINFO="$INCNCURSES"
32863       ;;
32864     libtermcap)
32865       LIBTERMINFO="$LIBTERMCAP"
32866       LTLIBTERMINFO="$LTLIBTERMCAP"
32867       INCTERMINFO="$INCTERMCAP"
32868       ;;
32869     libxcurses)
32870       LIBTERMINFO="$LIBXCURSES"
32871       LTLIBTERMINFO="$LTLIBXCURSES"
32872       INCTERMINFO="$INCXCURSES"
32873       ;;
32874     libcurses)
32875       LIBTERMINFO="$LIBCURSES"
32876       LTLIBTERMINFO="$LTLIBCURSES"
32877       INCTERMINFO="$INCCURSES"
32878       ;;
32879   esac
32880   case "$gl_cv_terminfo" in
32881     libc | libncurses | libtermcap | libxcurses | libcurses)
32882
32883 $as_echo "#define HAVE_TERMINFO 1" >>confdefs.h
32884
32885       ;;
32886     *)
32887             { $as_echo "$as_me:${as_lineno-$LINENO}: checking where termcap library functions come from" >&5
32888 $as_echo_n "checking where termcap library functions come from... " >&6; }
32889 if ${gl_cv_termcap+:} false; then :
32890   $as_echo_n "(cached) " >&6
32891 else
32892
32893         gl_cv_termcap="not found, consider installing GNU ncurses"
32894         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32895 /* end confdefs.h.  */
32896 extern
32897           #ifdef __cplusplus
32898           "C"
32899           #endif
32900           int tgetent (char *, const char *);
32901
32902 int
32903 main ()
32904 {
32905 return tgetent ((char *) 0, "xterm");
32906   ;
32907   return 0;
32908 }
32909 _ACEOF
32910 if ac_fn_c_try_link "$LINENO"; then :
32911   gl_cv_termcap=libc
32912 fi
32913 rm -f core conftest.err conftest.$ac_objext \
32914     conftest$ac_exeext conftest.$ac_ext
32915         if test "$gl_cv_termcap" != libc; then
32916           gl_save_LIBS="$LIBS"
32917           LIBS="$LIBS $LIBNCURSES"
32918           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32919 /* end confdefs.h.  */
32920 extern
32921             #ifdef __cplusplus
32922             "C"
32923             #endif
32924             int tgetent (char *, const char *);
32925
32926 int
32927 main ()
32928 {
32929 return tgetent ((char *) 0, "xterm");
32930   ;
32931   return 0;
32932 }
32933 _ACEOF
32934 if ac_fn_c_try_link "$LINENO"; then :
32935   gl_cv_termcap=libncurses
32936 fi
32937 rm -f core conftest.err conftest.$ac_objext \
32938     conftest$ac_exeext conftest.$ac_ext
32939           LIBS="$gl_save_LIBS"
32940           if test "$gl_cv_termcap" != libncurses; then
32941             gl_save_LIBS="$LIBS"
32942             LIBS="$LIBS $LIBTERMCAP"
32943             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32944 /* end confdefs.h.  */
32945 extern
32946               #ifdef __cplusplus
32947               "C"
32948               #endif
32949               int tgetent (char *, const char *);
32950
32951 int
32952 main ()
32953 {
32954 return tgetent ((char *) 0, "xterm");
32955   ;
32956   return 0;
32957 }
32958 _ACEOF
32959 if ac_fn_c_try_link "$LINENO"; then :
32960   gl_cv_termcap=libtermcap
32961 fi
32962 rm -f core conftest.err conftest.$ac_objext \
32963     conftest$ac_exeext conftest.$ac_ext
32964             LIBS="$gl_save_LIBS"
32965           fi
32966         fi
32967
32968 fi
32969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_termcap" >&5
32970 $as_echo "$gl_cv_termcap" >&6; }
32971       case "$gl_cv_termcap" in
32972         libc)
32973           LIBTERMINFO=
32974           LTLIBTERMINFO=
32975           INCTERMINFO=
32976           ;;
32977         libncurses)
32978           LIBTERMINFO="$LIBNCURSES"
32979           LTLIBTERMINFO="$LTLIBNCURSES"
32980           INCTERMINFO="$INCNCURSES"
32981           ;;
32982         libtermcap)
32983           LIBTERMINFO="$LIBTERMCAP"
32984           LTLIBTERMINFO="$LTLIBTERMCAP"
32985           INCTERMINFO="$INCTERMCAP"
32986           ;;
32987       esac
32988       case "$gl_cv_termcap" in
32989         libc | libncurses | libtermcap)
32990
32991 $as_echo "#define HAVE_TERMCAP 1" >>confdefs.h
32992
32993           ;;
32994       esac
32995       ;;
32996   esac
32997
32998
32999
33000
33001       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparam" >&5
33002 $as_echo_n "checking for tparam... " >&6; }
33003 if ${gl_cv_terminfo_tparam+:} false; then :
33004   $as_echo_n "(cached) " >&6
33005 else
33006
33007     gl_save_LIBS="$LIBS"
33008     LIBS="$LIBS $LIBTERMINFO"
33009     gl_save_CPPFLAGS="$CPPFLAGS"
33010     CPPFLAGS="$CPPFLAGS $INCTERMINFO"
33011     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33012 /* end confdefs.h.  */
33013 extern
33014       #ifdef __cplusplus
33015       "C"
33016       #endif
33017       char * tparam (const char *, void *, int, ...);
33018       char buf;
33019
33020 int
33021 main ()
33022 {
33023 return tparam ("\033\133%dm", &buf, 1, 8);
33024   ;
33025   return 0;
33026 }
33027 _ACEOF
33028 if ac_fn_c_try_link "$LINENO"; then :
33029   gl_cv_terminfo_tparam=yes
33030 else
33031   gl_cv_terminfo_tparam=no
33032 fi
33033 rm -f core conftest.err conftest.$ac_objext \
33034     conftest$ac_exeext conftest.$ac_ext
33035     CPPFLAGS="$gl_save_CPPFLAGS"
33036     LIBS="$gl_save_LIBS"
33037
33038 fi
33039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparam" >&5
33040 $as_echo "$gl_cv_terminfo_tparam" >&6; }
33041   if test $gl_cv_terminfo_tparam = yes; then
33042
33043 $as_echo "#define HAVE_TPARAM 1" >>confdefs.h
33044
33045   else
33046             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm" >&5
33047 $as_echo_n "checking for tparm... " >&6; }
33048 if ${gl_cv_terminfo_tparm+:} false; then :
33049   $as_echo_n "(cached) " >&6
33050 else
33051
33052       gl_save_LIBS="$LIBS"
33053       LIBS="$LIBS $LIBTERMINFO"
33054       gl_save_CPPFLAGS="$CPPFLAGS"
33055       CPPFLAGS="$CPPFLAGS $INCTERMINFO"
33056       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33057 /* end confdefs.h.  */
33058 extern
33059         #ifdef __cplusplus
33060         "C"
33061         #endif
33062         char * tparm (const char *, ...);
33063
33064 int
33065 main ()
33066 {
33067 return tparm ("\033\133%dm", 8);
33068   ;
33069   return 0;
33070 }
33071 _ACEOF
33072 if ac_fn_c_try_link "$LINENO"; then :
33073   gl_cv_terminfo_tparm=yes
33074 else
33075   gl_cv_terminfo_tparm=no
33076 fi
33077 rm -f core conftest.err conftest.$ac_objext \
33078     conftest$ac_exeext conftest.$ac_ext
33079       CPPFLAGS="$gl_save_CPPFLAGS"
33080       LIBS="$gl_save_LIBS"
33081
33082 fi
33083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparm" >&5
33084 $as_echo "$gl_cv_terminfo_tparm" >&6; }
33085   fi
33086
33087
33088   GNULIB_MKTIME=0;
33089   GNULIB_NANOSLEEP=0;
33090   GNULIB_STRPTIME=0;
33091   GNULIB_TIMEGM=0;
33092   GNULIB_TIME_R=0;
33093     HAVE_DECL_LOCALTIME_R=1;
33094   HAVE_NANOSLEEP=1;
33095   HAVE_STRPTIME=1;
33096   HAVE_TIMEGM=1;
33097         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
33098   REPLACE_MKTIME=GNULIB_PORTCHECK;
33099   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
33100   REPLACE_TIMEGM=GNULIB_PORTCHECK;
33101
33102
33103
33104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
33105 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
33106 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
33107   $as_echo_n "(cached) " >&6
33108 else
33109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33110 /* end confdefs.h.  */
33111 #include <time.h>
33112
33113 int
33114 main ()
33115 {
33116 static struct timespec x; x.tv_sec = x.tv_nsec;
33117   ;
33118   return 0;
33119 }
33120 _ACEOF
33121 if ac_fn_c_try_compile "$LINENO"; then :
33122   gl_cv_sys_struct_timespec_in_time_h=yes
33123 else
33124   gl_cv_sys_struct_timespec_in_time_h=no
33125 fi
33126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33127 fi
33128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
33129 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
33130
33131   TIME_H_DEFINES_STRUCT_TIMESPEC=0
33132   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
33133   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
33134   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
33135     TIME_H_DEFINES_STRUCT_TIMESPEC=1
33136   else
33137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
33138 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
33139 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
33140   $as_echo_n "(cached) " >&6
33141 else
33142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33143 /* end confdefs.h.  */
33144 #include <sys/time.h>
33145
33146 int
33147 main ()
33148 {
33149 static struct timespec x; x.tv_sec = x.tv_nsec;
33150   ;
33151   return 0;
33152 }
33153 _ACEOF
33154 if ac_fn_c_try_compile "$LINENO"; then :
33155   gl_cv_sys_struct_timespec_in_sys_time_h=yes
33156 else
33157   gl_cv_sys_struct_timespec_in_sys_time_h=no
33158 fi
33159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33160 fi
33161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
33162 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
33163     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
33164       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
33165     else
33166       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
33167 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
33168 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
33169   $as_echo_n "(cached) " >&6
33170 else
33171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33172 /* end confdefs.h.  */
33173 #include <pthread.h>
33174
33175 int
33176 main ()
33177 {
33178 static struct timespec x; x.tv_sec = x.tv_nsec;
33179   ;
33180   return 0;
33181 }
33182 _ACEOF
33183 if ac_fn_c_try_compile "$LINENO"; then :
33184   gl_cv_sys_struct_timespec_in_pthread_h=yes
33185 else
33186   gl_cv_sys_struct_timespec_in_pthread_h=no
33187 fi
33188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33189 fi
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
33191 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
33192       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
33193         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
33194       fi
33195     fi
33196   fi
33197
33198
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212      if test $gl_cv_have_include_next = yes; then
33213        gl_cv_next_time_h='<'time.h'>'
33214      else
33215        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
33216 $as_echo_n "checking absolute name of <time.h>... " >&6; }
33217 if ${gl_cv_next_time_h+:} false; then :
33218   $as_echo_n "(cached) " >&6
33219 else
33220
33221                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33222 /* end confdefs.h.  */
33223 #include <time.h>
33224
33225 _ACEOF
33226                                                                                                                         case "$host_os" in
33227                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
33228                  *)    gl_absname_cpp="$ac_cpp" ;;
33229                esac
33230
33231                case "$host_os" in
33232                  mingw*)
33233                                                                                                                                      gl_dirsep_regex='[/\\]'
33234                    ;;
33235                  *)
33236                    gl_dirsep_regex='\/'
33237                    ;;
33238                esac
33239                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33240
33241                gl_header_literal_regex=`echo 'time.h' \
33242                                         | sed -e "$gl_make_literal_regex_sed"`
33243                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33244                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33245                    s|^/[^/]|//&|
33246                    p
33247                    q
33248                  }'
33249                                                             gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33250                       sed -n "$gl_absolute_header_sed"`'"'
33251
33252
33253 fi
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
33255 $as_echo "$gl_cv_next_time_h" >&6; }
33256      fi
33257      NEXT_TIME_H=$gl_cv_next_time_h
33258
33259      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33260        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33261        gl_next_as_first_directive='<'time.h'>'
33262      else
33263        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33264        gl_next_as_first_directive=$gl_cv_next_time_h
33265      fi
33266      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
33267
33268
33269
33270
33271
33272
33273
33274
33275
33276
33277
33278
33279 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
33280 i\
33281 0
33282 q
33283 '
33284 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
33285 i\
33286 0
33287 q
33288 '
33289 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
33290 i\
33291 0
33292 q
33293 '
33294
33295
33296   if test "$HAVE_LIBUNISTRING" = yes; then
33297     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
33298     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
33299     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
33300   fi
33301
33302
33303
33304 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
33305 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
33306   ac_have_decl=1
33307 else
33308   ac_have_decl=0
33309 fi
33310
33311 cat >>confdefs.h <<_ACEOF
33312 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
33313 _ACEOF
33314
33315 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
33316 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
33317   ac_have_decl=1
33318 else
33319   ac_have_decl=0
33320 fi
33321
33322 cat >>confdefs.h <<_ACEOF
33323 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
33324 _ACEOF
33325
33326 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
33327 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
33328   ac_have_decl=1
33329 else
33330   ac_have_decl=0
33331 fi
33332
33333 cat >>confdefs.h <<_ACEOF
33334 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
33335 _ACEOF
33336
33337 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
33338 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
33339   ac_have_decl=1
33340 else
33341   ac_have_decl=0
33342 fi
33343
33344 cat >>confdefs.h <<_ACEOF
33345 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
33346 _ACEOF
33347
33348 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
33349 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
33350   ac_have_decl=1
33351 else
33352   ac_have_decl=0
33353 fi
33354
33355 cat >>confdefs.h <<_ACEOF
33356 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
33357 _ACEOF
33358
33359 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
33360 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
33361   ac_have_decl=1
33362 else
33363   ac_have_decl=0
33364 fi
33365
33366 cat >>confdefs.h <<_ACEOF
33367 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
33368 _ACEOF
33369
33370 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
33371 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
33372   ac_have_decl=1
33373 else
33374   ac_have_decl=0
33375 fi
33376
33377 cat >>confdefs.h <<_ACEOF
33378 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
33379 _ACEOF
33380
33381 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
33382 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
33383   ac_have_decl=1
33384 else
33385   ac_have_decl=0
33386 fi
33387
33388 cat >>confdefs.h <<_ACEOF
33389 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
33390 _ACEOF
33391
33392 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
33393 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
33394   ac_have_decl=1
33395 else
33396   ac_have_decl=0
33397 fi
33398
33399 cat >>confdefs.h <<_ACEOF
33400 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
33401 _ACEOF
33402
33403 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
33404 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
33405   ac_have_decl=1
33406 else
33407   ac_have_decl=0
33408 fi
33409
33410 cat >>confdefs.h <<_ACEOF
33411 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
33412 _ACEOF
33413
33414 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
33415 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
33416   ac_have_decl=1
33417 else
33418   ac_have_decl=0
33419 fi
33420
33421 cat >>confdefs.h <<_ACEOF
33422 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
33423 _ACEOF
33424
33425 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
33426 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
33427   ac_have_decl=1
33428 else
33429   ac_have_decl=0
33430 fi
33431
33432 cat >>confdefs.h <<_ACEOF
33433 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
33434 _ACEOF
33435
33436 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
33437 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
33438   ac_have_decl=1
33439 else
33440   ac_have_decl=0
33441 fi
33442
33443 cat >>confdefs.h <<_ACEOF
33444 #define HAVE_DECL_UNSETENV $ac_have_decl
33445 _ACEOF
33446
33447
33448
33449
33450
33451
33452
33453   if test $ac_cv_header_features_h = yes; then
33454     HAVE_FEATURES_H=1
33455   else
33456     HAVE_FEATURES_H=0
33457   fi
33458
33459
33460
33461
33462
33463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
33464 $as_echo_n "checking for intmax_t... " >&6; }
33465 if ${gt_cv_c_intmax_t+:} false; then :
33466   $as_echo_n "(cached) " >&6
33467 else
33468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33469 /* end confdefs.h.  */
33470
33471 #include <stddef.h>
33472 #include <stdlib.h>
33473 #if HAVE_STDINT_H_WITH_UINTMAX
33474 #include <stdint.h>
33475 #endif
33476 #if HAVE_INTTYPES_H_WITH_UINTMAX
33477 #include <inttypes.h>
33478 #endif
33479
33480 int
33481 main ()
33482 {
33483 intmax_t x = -1; return !x;
33484   ;
33485   return 0;
33486 }
33487 _ACEOF
33488 if ac_fn_c_try_compile "$LINENO"; then :
33489   gt_cv_c_intmax_t=yes
33490 else
33491   gt_cv_c_intmax_t=no
33492 fi
33493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33494 fi
33495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
33496 $as_echo "$gt_cv_c_intmax_t" >&6; }
33497   if test $gt_cv_c_intmax_t = yes; then
33498
33499 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
33500
33501   else
33502
33503     test $ac_cv_type_long_long_int = yes \
33504       && ac_type='long long' \
33505       || ac_type='long'
33506
33507 cat >>confdefs.h <<_ACEOF
33508 #define intmax_t $ac_type
33509 _ACEOF
33510
33511   fi
33512
33513
33514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
33515 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
33516 if ${gl_cv_cc_double_expbit0+:} false; then :
33517   $as_echo_n "(cached) " >&6
33518 else
33519
33520       if test "$cross_compiling" = yes; then :
33521
33522                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33523 /* end confdefs.h.  */
33524
33525 #if defined arm || defined __arm || defined __arm__
33526   mixed_endianness
33527 #endif
33528
33529 _ACEOF
33530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33531   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
33532   gl_cv_cc_double_expbit0="unknown"
33533 else
33534
33535                                                          :
33536 if ${ac_cv_c_bigendian+:} false; then :
33537   $as_echo_n "(cached) " >&6
33538 else
33539   ac_cv_c_bigendian=unknown
33540     # See if we're dealing with a universal compiler.
33541     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33542 /* end confdefs.h.  */
33543 #ifndef __APPLE_CC__
33544                not a universal capable compiler
33545              #endif
33546              typedef int dummy;
33547
33548 _ACEOF
33549 if ac_fn_c_try_compile "$LINENO"; then :
33550
33551         # Check for potential -arch flags.  It is not universal unless
33552         # there are at least two -arch flags with different values.
33553         ac_arch=
33554         ac_prev=
33555         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
33556          if test -n "$ac_prev"; then
33557            case $ac_word in
33558              i?86 | x86_64 | ppc | ppc64)
33559                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
33560                  ac_arch=$ac_word
33561                else
33562                  ac_cv_c_bigendian=universal
33563                  break
33564                fi
33565                ;;
33566            esac
33567            ac_prev=
33568          elif test "x$ac_word" = "x-arch"; then
33569            ac_prev=arch
33570          fi
33571        done
33572 fi
33573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33574     if test $ac_cv_c_bigendian = unknown; then
33575       # See if sys/param.h defines the BYTE_ORDER macro.
33576       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33577 /* end confdefs.h.  */
33578 #include <sys/types.h>
33579              #include <sys/param.h>
33580
33581 int
33582 main ()
33583 {
33584 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33585                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33586                      && LITTLE_ENDIAN)
33587               bogus endian macros
33588              #endif
33589
33590   ;
33591   return 0;
33592 }
33593 _ACEOF
33594 if ac_fn_c_try_compile "$LINENO"; then :
33595   # It does; now see whether it defined to BIG_ENDIAN or not.
33596          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33597 /* end confdefs.h.  */
33598 #include <sys/types.h>
33599                 #include <sys/param.h>
33600
33601 int
33602 main ()
33603 {
33604 #if BYTE_ORDER != BIG_ENDIAN
33605                  not big endian
33606                 #endif
33607
33608   ;
33609   return 0;
33610 }
33611 _ACEOF
33612 if ac_fn_c_try_compile "$LINENO"; then :
33613   ac_cv_c_bigendian=yes
33614 else
33615   ac_cv_c_bigendian=no
33616 fi
33617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33618 fi
33619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33620     fi
33621     if test $ac_cv_c_bigendian = unknown; then
33622       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
33623       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33624 /* end confdefs.h.  */
33625 #include <limits.h>
33626
33627 int
33628 main ()
33629 {
33630 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
33631               bogus endian macros
33632              #endif
33633
33634   ;
33635   return 0;
33636 }
33637 _ACEOF
33638 if ac_fn_c_try_compile "$LINENO"; then :
33639   # It does; now see whether it defined to _BIG_ENDIAN or not.
33640          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33641 /* end confdefs.h.  */
33642 #include <limits.h>
33643
33644 int
33645 main ()
33646 {
33647 #ifndef _BIG_ENDIAN
33648                  not big endian
33649                 #endif
33650
33651   ;
33652   return 0;
33653 }
33654 _ACEOF
33655 if ac_fn_c_try_compile "$LINENO"; then :
33656   ac_cv_c_bigendian=yes
33657 else
33658   ac_cv_c_bigendian=no
33659 fi
33660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33661 fi
33662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33663     fi
33664     if test $ac_cv_c_bigendian = unknown; then
33665       # Compile a test program.
33666       if test "$cross_compiling" = yes; then :
33667   # Try to guess by grepping values from an object file.
33668          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33669 /* end confdefs.h.  */
33670 short int ascii_mm[] =
33671                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33672                 short int ascii_ii[] =
33673                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33674                 int use_ascii (int i) {
33675                   return ascii_mm[i] + ascii_ii[i];
33676                 }
33677                 short int ebcdic_ii[] =
33678                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33679                 short int ebcdic_mm[] =
33680                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33681                 int use_ebcdic (int i) {
33682                   return ebcdic_mm[i] + ebcdic_ii[i];
33683                 }
33684                 extern int foo;
33685
33686 int
33687 main ()
33688 {
33689 return use_ascii (foo) == use_ebcdic (foo);
33690   ;
33691   return 0;
33692 }
33693 _ACEOF
33694 if ac_fn_c_try_compile "$LINENO"; then :
33695   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
33696               ac_cv_c_bigendian=yes
33697             fi
33698             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33699               if test "$ac_cv_c_bigendian" = unknown; then
33700                 ac_cv_c_bigendian=no
33701               else
33702                 # finding both strings is unlikely to happen, but who knows?
33703                 ac_cv_c_bigendian=unknown
33704               fi
33705             fi
33706 fi
33707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33708 else
33709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33710 /* end confdefs.h.  */
33711 $ac_includes_default
33712 int
33713 main ()
33714 {
33715
33716              /* Are we little or big endian?  From Harbison&Steele.  */
33717              union
33718              {
33719                long int l;
33720                char c[sizeof (long int)];
33721              } u;
33722              u.l = 1;
33723              return u.c[sizeof (long int) - 1] == 1;
33724
33725   ;
33726   return 0;
33727 }
33728 _ACEOF
33729 if ac_fn_c_try_run "$LINENO"; then :
33730   ac_cv_c_bigendian=no
33731 else
33732   ac_cv_c_bigendian=yes
33733 fi
33734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33735   conftest.$ac_objext conftest.beam conftest.$ac_ext
33736 fi
33737
33738     fi
33739 fi
33740 :
33741  case $ac_cv_c_bigendian in #(
33742    yes)
33743      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
33744    no)
33745      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
33746    universal)
33747
33748 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
33749
33750      ;; #(
33751    *)
33752      gl_cv_cc_double_expbit0="unknown" ;;
33753  esac
33754
33755
33756 fi
33757 rm -f conftest*
33758
33759
33760 else
33761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33762 /* end confdefs.h.  */
33763
33764 #include <float.h>
33765 #include <stddef.h>
33766 #include <stdio.h>
33767 #include <string.h>
33768 #define NWORDS \
33769   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
33770 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
33771 static unsigned int ored_words[NWORDS];
33772 static unsigned int anded_words[NWORDS];
33773 static void add_to_ored_words (double x)
33774 {
33775   memory_double m;
33776   size_t i;
33777   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
33778   memset (&m, 0, sizeof (memory_double));
33779   m.value = x;
33780   for (i = 0; i < NWORDS; i++)
33781     {
33782       ored_words[i] |= m.word[i];
33783       anded_words[i] &= m.word[i];
33784     }
33785 }
33786 int main ()
33787 {
33788   size_t j;
33789   FILE *fp = fopen ("conftest.out", "w");
33790   if (fp == NULL)
33791     return 1;
33792   for (j = 0; j < NWORDS; j++)
33793     anded_words[j] = ~ (unsigned int) 0;
33794   add_to_ored_words (0.25);
33795   add_to_ored_words (0.5);
33796   add_to_ored_words (1.0);
33797   add_to_ored_words (2.0);
33798   add_to_ored_words (4.0);
33799   /* Remove bits that are common (e.g. if representation of the first mantissa
33800      bit is explicit).  */
33801   for (j = 0; j < NWORDS; j++)
33802     ored_words[j] &= ~anded_words[j];
33803   /* Now find the nonzero word.  */
33804   for (j = 0; j < NWORDS; j++)
33805     if (ored_words[j] != 0)
33806       break;
33807   if (j < NWORDS)
33808     {
33809       size_t i;
33810       for (i = j + 1; i < NWORDS; i++)
33811         if (ored_words[i] != 0)
33812           {
33813             fprintf (fp, "unknown");
33814             return (fclose (fp) != 0);
33815           }
33816       for (i = 0; ; i++)
33817         if ((ored_words[j] >> i) & 1)
33818           {
33819             fprintf (fp, "word %d bit %d", (int) j, (int) i);
33820             return (fclose (fp) != 0);
33821           }
33822     }
33823   fprintf (fp, "unknown");
33824   return (fclose (fp) != 0);
33825 }
33826
33827 _ACEOF
33828 if ac_fn_c_try_run "$LINENO"; then :
33829   gl_cv_cc_double_expbit0=`cat conftest.out`
33830 else
33831   gl_cv_cc_double_expbit0="unknown"
33832 fi
33833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33834   conftest.$ac_objext conftest.beam conftest.$ac_ext
33835 fi
33836
33837       rm -f conftest.out
33838
33839 fi
33840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
33841 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
33842   case "$gl_cv_cc_double_expbit0" in
33843     word*bit*)
33844       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
33845       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
33846
33847 cat >>confdefs.h <<_ACEOF
33848 #define DBL_EXPBIT0_WORD $word
33849 _ACEOF
33850
33851
33852 cat >>confdefs.h <<_ACEOF
33853 #define DBL_EXPBIT0_BIT $bit
33854 _ACEOF
33855
33856       ;;
33857   esac
33858
33859
33860
33861
33862
33863
33864   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
33865 do :
33866   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33868 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33869   cat >>confdefs.h <<_ACEOF
33870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33871 _ACEOF
33872
33873 fi
33874 done
33875
33876       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
33877 "
33878 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
33879   ac_have_decl=1
33880 else
33881   ac_have_decl=0
33882 fi
33883
33884 cat >>confdefs.h <<_ACEOF
33885 #define HAVE_DECL__SNPRINTF $ac_have_decl
33886 _ACEOF
33887
33888
33889
33890   case "$gl_cv_func_snprintf_retval_c99" in
33891     *yes)
33892
33893 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
33894
33895       ;;
33896   esac
33897
33898 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
33899 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
33900   ac_have_decl=1
33901 else
33902   ac_have_decl=0
33903 fi
33904
33905 cat >>confdefs.h <<_ACEOF
33906 #define HAVE_DECL_VSNPRINTF $ac_have_decl
33907 _ACEOF
33908
33909
33910             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
33911 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
33912 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
33913   $as_echo_n "(cached) " >&6
33914 else
33915   gl_cv_header_wchar_h_correct_inline=yes
33916      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33917 /* end confdefs.h.  */
33918
33919        #define wcstod renamed_wcstod
33920 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
33921    <wchar.h>.
33922    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33923    included before <wchar.h>.  */
33924 #include <stddef.h>
33925 #include <stdio.h>
33926 #include <time.h>
33927 #include <wchar.h>
33928 extern int zero (void);
33929 int main () { return zero(); }
33930
33931 _ACEOF
33932      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
33933   (eval $ac_compile) 2>&5
33934   ac_status=$?
33935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33936   test $ac_status = 0; }; then
33937        mv conftest.$ac_objext conftest1.$ac_objext
33938        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33939 /* end confdefs.h.  */
33940
33941          #define wcstod renamed_wcstod
33942 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
33943    <wchar.h>.
33944    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33945    included before <wchar.h>.  */
33946 #include <stddef.h>
33947 #include <stdio.h>
33948 #include <time.h>
33949 #include <wchar.h>
33950 int zero (void) { return 0; }
33951
33952 _ACEOF
33953        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
33954   (eval $ac_compile) 2>&5
33955   ac_status=$?
33956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33957   test $ac_status = 0; }; then
33958          mv conftest.$ac_objext conftest2.$ac_objext
33959          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
33960            :
33961          else
33962            gl_cv_header_wchar_h_correct_inline=no
33963          fi
33964        fi
33965      fi
33966      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
33967
33968 fi
33969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
33970 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
33971   if test $gl_cv_header_wchar_h_correct_inline = no; then
33972     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
33973 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
33974 C99 mode. You have four options:
33975   - Add the flag -fgnu89-inline to CC and reconfigure, or
33976   - Fix your include files, using parts of
33977     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
33978   - Use a gcc version older than 4.3, or
33979   - Don't use the flags -std=c99 or -std=gnu99.
33980 Configuration aborted." "$LINENO" 5
33981   fi
33982
33983
33984
33985 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
33986 if test "x$ac_cv_have_decl_alarm" = xyes; then :
33987   ac_have_decl=1
33988 else
33989   ac_have_decl=0
33990 fi
33991
33992 cat >>confdefs.h <<_ACEOF
33993 #define HAVE_DECL_ALARM $ac_have_decl
33994 _ACEOF
33995
33996
33997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
33998 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
33999 if ${gl_cv_var_stdin_large_offset+:} false; then :
34000   $as_echo_n "(cached) " >&6
34001 else
34002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34003 /* end confdefs.h.  */
34004 #include <stdio.h>
34005 int
34006 main ()
34007 {
34008 #if defined __SL64 && defined __SCLE /* cygwin */
34009   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
34010      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
34011      it is easier to do a version check than building a runtime test.  */
34012 # include <cygwin/version.h>
34013 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
34014   choke me
34015 # endif
34016 #endif
34017   ;
34018   return 0;
34019 }
34020 _ACEOF
34021 if ac_fn_c_try_link "$LINENO"; then :
34022   gl_cv_var_stdin_large_offset=yes
34023 else
34024   gl_cv_var_stdin_large_offset=no
34025 fi
34026 rm -f core conftest.err conftest.$ac_objext \
34027     conftest$ac_exeext conftest.$ac_ext
34028 fi
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
34030 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
34031
34032 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
34033 if test "x$ac_cv_have_decl_ftello" = xyes; then :
34034   ac_have_decl=1
34035 else
34036   ac_have_decl=0
34037 fi
34038
34039 cat >>confdefs.h <<_ACEOF
34040 #define HAVE_DECL_FTELLO $ac_have_decl
34041 _ACEOF
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052   if test $ac_cv_have_decl_ftello = no; then
34053     HAVE_DECL_FTELLO=0
34054   fi
34055
34056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
34057 $as_echo_n "checking for ftello... " >&6; }
34058 if ${gl_cv_func_ftello+:} false; then :
34059   $as_echo_n "(cached) " >&6
34060 else
34061
34062       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34063 /* end confdefs.h.  */
34064 #include <stdio.h>
34065 int
34066 main ()
34067 {
34068 ftello (stdin);
34069   ;
34070   return 0;
34071 }
34072 _ACEOF
34073 if ac_fn_c_try_link "$LINENO"; then :
34074   gl_cv_func_ftello=yes
34075 else
34076   gl_cv_func_ftello=no
34077 fi
34078 rm -f core conftest.err conftest.$ac_objext \
34079     conftest$ac_exeext conftest.$ac_ext
34080
34081 fi
34082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
34083 $as_echo "$gl_cv_func_ftello" >&6; }
34084   if test $gl_cv_func_ftello = no; then
34085     HAVE_FTELLO=0
34086   else
34087     if test $WINDOWS_64_BIT_OFF_T = 1; then
34088       REPLACE_FTELLO=1
34089     fi
34090     if test $gl_cv_var_stdin_large_offset = no; then
34091       REPLACE_FTELLO=1
34092     fi
34093     if test $REPLACE_FTELLO = 0; then
34094
34095       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
34096 $as_echo_n "checking whether ftello works... " >&6; }
34097 if ${gl_cv_func_ftello_works+:} false; then :
34098   $as_echo_n "(cached) " >&6
34099 else
34100
34101                               case "$host_os" in
34102                       # Guess no on Solaris.
34103             solaris*) gl_cv_func_ftello_works="guessing no" ;;
34104                       # Guess yes otherwise.
34105             *)        gl_cv_func_ftello_works="guessing yes" ;;
34106           esac
34107           if test "$cross_compiling" = yes; then :
34108   :
34109 else
34110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34111 /* end confdefs.h.  */
34112
34113 #include <stdio.h>
34114 #include <stdlib.h>
34115 #include <string.h>
34116 #define TESTFILE "conftest.tmp"
34117 int
34118 main (void)
34119 {
34120   FILE *fp;
34121
34122   /* Create a file with some contents.  */
34123   fp = fopen (TESTFILE, "w");
34124   if (fp == NULL)
34125     return 70;
34126   if (fwrite ("foogarsh", 1, 8, fp) < 8)
34127     return 71;
34128   if (fclose (fp))
34129     return 72;
34130
34131   /* The file's contents is now "foogarsh".  */
34132
34133   /* Try writing after reading to EOF.  */
34134   fp = fopen (TESTFILE, "r+");
34135   if (fp == NULL)
34136     return 73;
34137   if (fseek (fp, -1, SEEK_END))
34138     return 74;
34139   if (!(getc (fp) == 'h'))
34140     return 1;
34141   if (!(getc (fp) == EOF))
34142     return 2;
34143   if (!(ftell (fp) == 8))
34144     return 3;
34145   if (!(ftell (fp) == 8))
34146     return 4;
34147   if (!(putc ('!', fp) == '!'))
34148     return 5;
34149   if (!(ftell (fp) == 9))
34150     return 6;
34151   if (!(fclose (fp) == 0))
34152     return 7;
34153   fp = fopen (TESTFILE, "r");
34154   if (fp == NULL)
34155     return 75;
34156   {
34157     char buf[10];
34158     if (!(fread (buf, 1, 10, fp) == 9))
34159       return 10;
34160     if (!(memcmp (buf, "foogarsh!", 9) == 0))
34161       return 11;
34162   }
34163   if (!(fclose (fp) == 0))
34164     return 12;
34165
34166   /* The file's contents is now "foogarsh!".  */
34167
34168   return 0;
34169 }
34170 _ACEOF
34171 if ac_fn_c_try_run "$LINENO"; then :
34172   gl_cv_func_ftello_works=yes
34173 else
34174   gl_cv_func_ftello_works=no
34175 fi
34176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34177   conftest.$ac_objext conftest.beam conftest.$ac_ext
34178 fi
34179
34180
34181 fi
34182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
34183 $as_echo "$gl_cv_func_ftello_works" >&6; }
34184       case "$gl_cv_func_ftello_works" in
34185         *yes) ;;
34186         *)
34187           REPLACE_FTELLO=1
34188
34189 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
34190
34191           ;;
34192       esac
34193     fi
34194   fi
34195
34196
34197
34198
34199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
34200 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
34201 if ${gl_cv_func_ungetc_works+:} false; then :
34202   $as_echo_n "(cached) " >&6
34203 else
34204   if test "$cross_compiling" = yes; then :
34205   case "$host_os" in
34206                    # Guess yes on glibc systems.
34207            *-gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
34208                    # If we don't know, assume the worst.
34209            *)      gl_cv_func_ungetc_works="guessing no" ;;
34210          esac
34211
34212 else
34213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34214 /* end confdefs.h.  */
34215
34216 #include <stdio.h>
34217
34218 int
34219 main ()
34220 {
34221 FILE *f;
34222            if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
34223            if (fputs ("abc", f) < 0) return 2;
34224            rewind (f);
34225            if (fgetc (f) != 'a') return 3;
34226            if (fgetc (f) != 'b') return 4;
34227            if (ungetc ('d', f) != 'd') return 5;
34228            if (ftell (f) != 1) return 6;
34229            if (fgetc (f) != 'd') return 7;
34230            if (ftell (f) != 2) return 8;
34231            if (fseek (f, 0, SEEK_CUR) != 0) return 9;
34232            if (ftell (f) != 2) return 10;
34233            if (fgetc (f) != 'c') return 11;
34234            fclose (f); remove ("conftest.tmp");
34235   ;
34236   return 0;
34237 }
34238 _ACEOF
34239 if ac_fn_c_try_run "$LINENO"; then :
34240   gl_cv_func_ungetc_works=yes
34241 else
34242   gl_cv_func_ungetc_works=no
34243 fi
34244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34245   conftest.$ac_objext conftest.beam conftest.$ac_ext
34246 fi
34247
34248
34249 fi
34250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
34251 $as_echo "$gl_cv_func_ungetc_works" >&6; }
34252   case "$gl_cv_func_ungetc_works" in
34253     *yes) ;;
34254     *)
34255
34256 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
34257
34258       ;;
34259   esac
34260
34261
34262
34263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
34264 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
34265 if ${gl_cv_func_getcwd_null+:} false; then :
34266   $as_echo_n "(cached) " >&6
34267 else
34268   if test "$cross_compiling" = yes; then :
34269   case "$host_os" in
34270                      # Guess yes on glibc systems.
34271             *-gnu*)  gl_cv_func_getcwd_null="guessing yes";;
34272                      # Guess yes on Cygwin.
34273             cygwin*) gl_cv_func_getcwd_null="guessing yes";;
34274                      # If we don't know, assume the worst.
34275             *)       gl_cv_func_getcwd_null="guessing no";;
34276           esac
34277
34278 else
34279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34280 /* end confdefs.h.  */
34281
34282 #        if HAVE_UNISTD_H
34283 #         include <unistd.h>
34284 #        else /* on Windows with MSVC */
34285 #         include <direct.h>
34286 #        endif
34287 #        ifndef getcwd
34288          char *getcwd ();
34289 #        endif
34290
34291 int
34292 main ()
34293 {
34294
34295 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
34296 /* mingw cwd does not start with '/', but getcwd does allocate.
34297    However, mingw fails to honor non-zero size.  */
34298 #else
34299            if (chdir ("/") != 0)
34300              return 1;
34301            else
34302              {
34303                char *f = getcwd (NULL, 0);
34304                if (! f)
34305                  return 2;
34306                if (f[0] != '/')
34307                  return 3;
34308                if (f[1] != '\0')
34309                  return 4;
34310                return 0;
34311              }
34312 #endif
34313
34314   ;
34315   return 0;
34316 }
34317 _ACEOF
34318 if ac_fn_c_try_run "$LINENO"; then :
34319   gl_cv_func_getcwd_null=yes
34320 else
34321   gl_cv_func_getcwd_null=no
34322 fi
34323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34324   conftest.$ac_objext conftest.beam conftest.$ac_ext
34325 fi
34326
34327 fi
34328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
34329 $as_echo "$gl_cv_func_getcwd_null" >&6; }
34330
34331
34332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
34333 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
34334 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
34335   $as_echo_n "(cached) " >&6
34336 else
34337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34338 /* end confdefs.h.  */
34339 #include <unistd.h>
34340 int
34341 main ()
34342 {
34343 extern
34344            #ifdef __cplusplus
34345            "C"
34346            #endif
34347            char *getcwd (char *, size_t);
34348
34349   ;
34350   return 0;
34351 }
34352
34353 _ACEOF
34354 if ac_fn_c_try_compile "$LINENO"; then :
34355   gl_cv_func_getcwd_posix_signature=yes
34356 else
34357   gl_cv_func_getcwd_posix_signature=no
34358 fi
34359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34360
34361 fi
34362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
34363 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
34364
34365
34366
34367
34368   GNULIB_IMAXABS=0;
34369   GNULIB_IMAXDIV=0;
34370   GNULIB_STRTOIMAX=0;
34371   GNULIB_STRTOUMAX=0;
34372     HAVE_DECL_IMAXABS=1;
34373   HAVE_DECL_IMAXDIV=1;
34374   HAVE_DECL_STRTOIMAX=1;
34375   HAVE_DECL_STRTOUMAX=1;
34376   REPLACE_STRTOIMAX=0;
34377   INT32_MAX_LT_INTMAX_MAX=1;
34378   INT64_MAX_EQ_LONG_MAX='defined _LP64';
34379   PRI_MACROS_BROKEN=0;
34380   PRIPTR_PREFIX=__PRIPTR_PREFIX;
34381   UINT32_MAX_LT_UINTMAX_MAX=1;
34382   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
34383
34384
34385
34386
34387
34388
34389
34390
34391
34392
34393
34394
34395
34396
34397
34398      if test $gl_cv_have_include_next = yes; then
34399        gl_cv_next_inttypes_h='<'inttypes.h'>'
34400      else
34401        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
34402 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
34403 if ${gl_cv_next_inttypes_h+:} false; then :
34404   $as_echo_n "(cached) " >&6
34405 else
34406
34407              if test $ac_cv_header_inttypes_h = yes; then
34408
34409
34410                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34411 /* end confdefs.h.  */
34412 #include <inttypes.h>
34413
34414 _ACEOF
34415                                                                                                                         case "$host_os" in
34416                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
34417                  *)    gl_absname_cpp="$ac_cpp" ;;
34418                esac
34419
34420                case "$host_os" in
34421                  mingw*)
34422                                                                                                                                      gl_dirsep_regex='[/\\]'
34423                    ;;
34424                  *)
34425                    gl_dirsep_regex='\/'
34426                    ;;
34427                esac
34428                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34429
34430                gl_header_literal_regex=`echo 'inttypes.h' \
34431                                         | sed -e "$gl_make_literal_regex_sed"`
34432                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34433                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34434                    s|^/[^/]|//&|
34435                    p
34436                    q
34437                  }'
34438                                                             gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34439                       sed -n "$gl_absolute_header_sed"`'"'
34440           else
34441                gl_cv_next_inttypes_h='<'inttypes.h'>'
34442              fi
34443
34444
34445 fi
34446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
34447 $as_echo "$gl_cv_next_inttypes_h" >&6; }
34448      fi
34449      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
34450
34451      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34452        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34453        gl_next_as_first_directive='<'inttypes.h'>'
34454      else
34455        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34456        gl_next_as_first_directive=$gl_cv_next_inttypes_h
34457      fi
34458      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
34459
34460
34461
34462
34463
34464
34465
34466
34467     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
34468     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34470 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34471 if eval \${$as_gl_Symbol+:} false; then :
34472   $as_echo_n "(cached) " >&6
34473 else
34474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34475 /* end confdefs.h.  */
34476 #include <inttypes.h>
34477
34478 int
34479 main ()
34480 {
34481 #undef $gl_func
34482   (void) $gl_func;
34483   ;
34484   return 0;
34485 }
34486 _ACEOF
34487 if ac_fn_c_try_compile "$LINENO"; then :
34488   eval "$as_gl_Symbol=yes"
34489 else
34490   eval "$as_gl_Symbol=no"
34491 fi
34492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34493 fi
34494 eval ac_res=\$$as_gl_Symbol
34495                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34496 $as_echo "$ac_res" >&6; }
34497     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34498   cat >>confdefs.h <<_ACEOF
34499 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34500 _ACEOF
34501
34502                      eval ac_cv_have_decl_$gl_func=yes
34503 fi
34504       done
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516    if true; then
34517   GL_COND_LIBTOOL_TRUE=
34518   GL_COND_LIBTOOL_FALSE='#'
34519 else
34520   GL_COND_LIBTOOL_TRUE='#'
34521   GL_COND_LIBTOOL_FALSE=
34522 fi
34523
34524   gl_cond_libtool=true
34525   gl_m4_base='gnulib-m4'
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535   gl_source_base='gnulib-lib'
34536
34537
34538
34539
34540
34541   if test $ac_cv_func_alloca_works = no; then
34542
34543
34544   :
34545
34546   fi
34547
34548   # Define an additional variable used in the Makefile substitution.
34549
34550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34551 /* end confdefs.h.  */
34552
34553 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
34554   Need own alloca
34555 #endif
34556
34557 _ACEOF
34558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34559   $EGREP "Need own alloca" >/dev/null 2>&1; then :
34560   ALLOCA_H=alloca.h
34561 else
34562   ALLOCA_H=
34563 fi
34564 rm -f conftest*
34565
34566
34567    if test -n "$ALLOCA_H"; then
34568   GL_GENERATE_ALLOCA_H_TRUE=
34569   GL_GENERATE_ALLOCA_H_FALSE='#'
34570 else
34571   GL_GENERATE_ALLOCA_H_TRUE='#'
34572   GL_GENERATE_ALLOCA_H_FALSE=
34573 fi
34574
34575
34576
34577
34578
34579   if test "$CXX_CHOICE" = no; then
34580     CXX=no
34581   fi
34582   if test -z "$CXX"; then
34583     if test -n "$CCC"; then
34584       CXX="$CCC"
34585     else
34586       if test -n "$ac_tool_prefix"; then
34587   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
34588   do
34589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
34590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
34591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34592 $as_echo_n "checking for $ac_word... " >&6; }
34593 if ${ac_cv_prog_CXX+:} false; then :
34594   $as_echo_n "(cached) " >&6
34595 else
34596   if test -n "$CXX"; then
34597   ac_cv_prog_CXX="$CXX" # Let the user override the test.
34598 else
34599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34600 for as_dir in $PATH
34601 do
34602   IFS=$as_save_IFS
34603   test -z "$as_dir" && as_dir=.
34604     for ac_exec_ext in '' $ac_executable_extensions; do
34605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34606     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
34607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34608     break 2
34609   fi
34610 done
34611   done
34612 IFS=$as_save_IFS
34613
34614 fi
34615 fi
34616 CXX=$ac_cv_prog_CXX
34617 if test -n "$CXX"; then
34618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
34619 $as_echo "$CXX" >&6; }
34620 else
34621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34622 $as_echo "no" >&6; }
34623 fi
34624
34625
34626     test -n "$CXX" && break
34627   done
34628 fi
34629 if test -z "$CXX"; then
34630   ac_ct_CXX=$CXX
34631   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
34632 do
34633   # Extract the first word of "$ac_prog", so it can be a program name with args.
34634 set dummy $ac_prog; ac_word=$2
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34636 $as_echo_n "checking for $ac_word... " >&6; }
34637 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
34638   $as_echo_n "(cached) " >&6
34639 else
34640   if test -n "$ac_ct_CXX"; then
34641   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
34642 else
34643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34644 for as_dir in $PATH
34645 do
34646   IFS=$as_save_IFS
34647   test -z "$as_dir" && as_dir=.
34648     for ac_exec_ext in '' $ac_executable_extensions; do
34649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34650     ac_cv_prog_ac_ct_CXX="$ac_prog"
34651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34652     break 2
34653   fi
34654 done
34655   done
34656 IFS=$as_save_IFS
34657
34658 fi
34659 fi
34660 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
34661 if test -n "$ac_ct_CXX"; then
34662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
34663 $as_echo "$ac_ct_CXX" >&6; }
34664 else
34665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34666 $as_echo "no" >&6; }
34667 fi
34668
34669
34670   test -n "$ac_ct_CXX" && break
34671 done
34672
34673   if test "x$ac_ct_CXX" = x; then
34674     CXX=":"
34675   else
34676     case $cross_compiling:$ac_tool_warned in
34677 yes:)
34678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
34679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
34680 ac_tool_warned=yes ;;
34681 esac
34682     CXX=$ac_ct_CXX
34683   fi
34684 fi
34685
34686     fi
34687   fi
34688   if test "$CXX" != no; then
34689             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
34690 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
34691     ac_ext=cpp
34692 ac_cpp='$CXXCPP $CPPFLAGS'
34693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34696
34697
34698
34699     echo 'int main () { return 0; }' > conftest.$ac_ext
34700     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
34701   (eval $ac_link) 2>&5
34702   ac_status=$?
34703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34704   test $ac_status = 0; } && test -s conftest$ac_exeext; then
34705       gl_cv_prog_ansicxx_works=yes
34706       if (./conftest; exit) 2>/dev/null; then
34707         gl_cv_prog_ansicxx_cross=no
34708       else
34709         gl_cv_prog_ansicxx_cross=yes
34710       fi
34711     else
34712       gl_cv_prog_ansicxx_works=no
34713     fi
34714     rm -fr conftest*
34715     ac_ext=c
34716 ac_cpp='$CPP $CPPFLAGS'
34717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34720
34721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
34722 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
34723     if test $gl_cv_prog_ansicxx_works = no; then
34724       CXX=no
34725     else
34726                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
34727 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
34728       ac_ext=cpp
34729 ac_cpp='$CXXCPP $CPPFLAGS'
34730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34733
34734       cat <<EOF > conftest.$ac_ext
34735 #include <iostream>
34736 namespace test { using namespace std; }
34737 std::ostream* ptr;
34738 int main () { return 0; }
34739 EOF
34740       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
34741   (eval $ac_link) 2>&5
34742   ac_status=$?
34743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34744   test $ac_status = 0; } && test -s conftest$ac_exeext; then
34745         gl_cv_prog_ansicxx_namespaces=yes
34746       else
34747         gl_cv_prog_ansicxx_namespaces=no
34748       fi
34749       rm -fr conftest*
34750       ac_ext=c
34751 ac_cpp='$CPP $CPPFLAGS'
34752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34755
34756       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
34757 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
34758       if test $gl_cv_prog_ansicxx_namespaces = no; then
34759         CXX=no
34760       fi
34761     fi
34762   fi
34763
34764
34765
34766    if test "$CXX" != no; then
34767   ANSICXX_TRUE=
34768   ANSICXX_FALSE='#'
34769 else
34770   ANSICXX_TRUE='#'
34771   ANSICXX_FALSE=
34772 fi
34773
34774
34775   if test "$CXX" != no; then
34776
34777 depcc="$CXX"  am_compiler_list=
34778
34779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
34780 $as_echo_n "checking dependency style of $depcc... " >&6; }
34781 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
34782   $as_echo_n "(cached) " >&6
34783 else
34784   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34785   # We make a subdir and do the tests there.  Otherwise we can end up
34786   # making bogus files that we don't know about and never remove.  For
34787   # instance it was reported that on HP-UX the gcc test will end up
34788   # making a dummy file named 'D' -- because '-MD' means "put the output
34789   # in D".
34790   rm -rf conftest.dir
34791   mkdir conftest.dir
34792   # Copy depcomp to subdir because otherwise we won't find it if we're
34793   # using a relative directory.
34794   cp "$am_depcomp" conftest.dir
34795   cd conftest.dir
34796   # We will build objects and dependencies in a subdirectory because
34797   # it helps to detect inapplicable dependency modes.  For instance
34798   # both Tru64's cc and ICC support -MD to output dependencies as a
34799   # side effect of compilation, but ICC will put the dependencies in
34800   # the current directory while Tru64 will put them in the object
34801   # directory.
34802   mkdir sub
34803
34804   am_cv_CXX_dependencies_compiler_type=none
34805   if test "$am_compiler_list" = ""; then
34806      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34807   fi
34808   am__universal=false
34809   case " $depcc " in #(
34810      *\ -arch\ *\ -arch\ *) am__universal=true ;;
34811      esac
34812
34813   for depmode in $am_compiler_list; do
34814     # Setup a source with many dependencies, because some compilers
34815     # like to wrap large dependency lists on column 80 (with \), and
34816     # we should not choose a depcomp mode which is confused by this.
34817     #
34818     # We need to recreate these files for each test, as the compiler may
34819     # overwrite some of them when testing with obscure command lines.
34820     # This happens at least with the AIX C compiler.
34821     : > sub/conftest.c
34822     for i in 1 2 3 4 5 6; do
34823       echo '#include "conftst'$i'.h"' >> sub/conftest.c
34824       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
34825       # Solaris 10 /bin/sh.
34826       echo '/* dummy */' > sub/conftst$i.h
34827     done
34828     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
34829
34830     # We check with '-c' and '-o' for the sake of the "dashmstdout"
34831     # mode.  It turns out that the SunPro C++ compiler does not properly
34832     # handle '-M -o', and we need to detect this.  Also, some Intel
34833     # versions had trouble with output in subdirs.
34834     am__obj=sub/conftest.${OBJEXT-o}
34835     am__minus_obj="-o $am__obj"
34836     case $depmode in
34837     gcc)
34838       # This depmode causes a compiler race in universal mode.
34839       test "$am__universal" = false || continue
34840       ;;
34841     nosideeffect)
34842       # After this tag, mechanisms are not by side-effect, so they'll
34843       # only be used when explicitly requested.
34844       if test "x$enable_dependency_tracking" = xyes; then
34845         continue
34846       else
34847         break
34848       fi
34849       ;;
34850     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
34851       # This compiler won't grok '-c -o', but also, the minuso test has
34852       # not run yet.  These depmodes are late enough in the game, and
34853       # so weak that their functioning should not be impacted.
34854       am__obj=conftest.${OBJEXT-o}
34855       am__minus_obj=
34856       ;;
34857     none) break ;;
34858     esac
34859     if depmode=$depmode \
34860        source=sub/conftest.c object=$am__obj \
34861        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
34862        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
34863          >/dev/null 2>conftest.err &&
34864        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
34865        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
34866        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
34867        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
34868       # icc doesn't choke on unknown options, it will just issue warnings
34869       # or remarks (even with -Werror).  So we grep stderr for any message
34870       # that says an option was ignored or not supported.
34871       # When given -MP, icc 7.0 and 7.1 complain thusly:
34872       #   icc: Command line warning: ignoring option '-M'; no argument required
34873       # The diagnosis changed in icc 8.0:
34874       #   icc: Command line remark: option '-MP' not supported
34875       if (grep 'ignoring option' conftest.err ||
34876           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
34877         am_cv_CXX_dependencies_compiler_type=$depmode
34878         break
34879       fi
34880     fi
34881   done
34882
34883   cd ..
34884   rm -rf conftest.dir
34885 else
34886   am_cv_CXX_dependencies_compiler_type=none
34887 fi
34888
34889 fi
34890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
34891 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
34892 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
34893
34894  if
34895   test "x$enable_dependency_tracking" != xno \
34896   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
34897   am__fastdepCXX_TRUE=
34898   am__fastdepCXX_FALSE='#'
34899 else
34900   am__fastdepCXX_TRUE='#'
34901   am__fastdepCXX_FALSE=
34902 fi
34903
34904
34905   else
34906      if false; then
34907   am__fastdepCXX_TRUE=
34908   am__fastdepCXX_FALSE='#'
34909 else
34910   am__fastdepCXX_TRUE='#'
34911   am__fastdepCXX_FALSE=
34912 fi
34913
34914   fi
34915
34916
34917   for ac_func in atexit
34918 do :
34919   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
34920 if test "x$ac_cv_func_atexit" = xyes; then :
34921   cat >>confdefs.h <<_ACEOF
34922 #define HAVE_ATEXIT 1
34923 _ACEOF
34924
34925 fi
34926 done
34927
34928
34929   if test $ac_cv_func_atexit = no; then
34930
34931
34932
34933
34934
34935
34936
34937
34938   gl_LIBOBJS="$gl_LIBOBJS atexit.$ac_objext"
34939
34940
34941   :
34942
34943   fi
34944
34945     for ac_header in dirent.h string.h
34946 do :
34947   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34948 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
34949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34950   cat >>confdefs.h <<_ACEOF
34951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34952 _ACEOF
34953
34954 fi
34955
34956 done
34957
34958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
34959 $as_echo_n "checking for long file names... " >&6; }
34960 if ${ac_cv_sys_long_file_names+:} false; then :
34961   $as_echo_n "(cached) " >&6
34962 else
34963   ac_cv_sys_long_file_names=yes
34964 # Test for long file names in all the places we know might matter:
34965 #      .                the current directory, where building will happen
34966 #      $prefix/lib      where we will be installing things
34967 #      $exec_prefix/lib likewise
34968 #      $TMPDIR          if set, where it might want to write temporary files
34969 #      /tmp             where it might want to write temporary files
34970 #      /var/tmp         likewise
34971 #      /usr/tmp         likewise
34972 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
34973   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
34974   # in the usual case where exec_prefix is '${prefix}'.
34975   case $ac_dir in #(
34976     . | /* | ?:[\\/]*) ;; #(
34977     *) continue;;
34978   esac
34979   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
34980   ac_xdir=$ac_dir/cf$$
34981   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
34982   ac_tf1=$ac_xdir/conftest9012345
34983   ac_tf2=$ac_xdir/conftest9012346
34984   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
34985     ac_cv_sys_long_file_names=no
34986   rm -f -r "$ac_xdir" 2>/dev/null
34987   test $ac_cv_sys_long_file_names = no && break
34988 done
34989 fi
34990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
34991 $as_echo "$ac_cv_sys_long_file_names" >&6; }
34992 if test $ac_cv_sys_long_file_names = yes; then
34993
34994 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
34995
34996 fi
34997
34998   for ac_func in pathconf
34999 do :
35000   ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
35001 if test "x$ac_cv_func_pathconf" = xyes; then :
35002   cat >>confdefs.h <<_ACEOF
35003 #define HAVE_PATHCONF 1
35004 _ACEOF
35005
35006 fi
35007 done
35008
35009   for ac_header in string.h unistd.h
35010 do :
35011   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35012 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
35013 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35014   cat >>confdefs.h <<_ACEOF
35015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35016 _ACEOF
35017
35018 fi
35019
35020 done
35021
35022
35023
35024
35025 cat >>confdefs.h <<_ACEOF
35026 #define GNULIB_BINARY_IO 1
35027 _ACEOF
35028
35029
35030
35031   if test -z "$USE_NLS"; then
35032     echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
35033     exit 1
35034   fi
35035   BISON_LOCALEDIR=
35036   BISON_USE_NLS=no
35037   if test "$USE_NLS" = yes; then
35038                         if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
35039       BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
35040     fi
35041
35042     if test -n "$BISON_LOCALEDIR"; then
35043                               USER_LINGUAS="${LINGUAS-%UNSET%}"
35044       if test -n "$USER_LINGUAS"; then
35045         BISON_USE_NLS=yes
35046       fi
35047     fi
35048   fi
35049   if test $BISON_USE_NLS = yes; then
35050
35051 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
35052
35053   fi
35054
35055
35056     for ac_header in byteswap.h
35057 do :
35058   ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
35059 if test "x$ac_cv_header_byteswap_h" = xyes; then :
35060   cat >>confdefs.h <<_ACEOF
35061 #define HAVE_BYTESWAP_H 1
35062 _ACEOF
35063
35064     BYTESWAP_H=''
35065
35066 else
35067
35068     BYTESWAP_H='byteswap.h'
35069
35070 fi
35071
35072 done
35073
35074
35075    if test -n "$BYTESWAP_H"; then
35076   GL_GENERATE_BYTESWAP_H_TRUE=
35077   GL_GENERATE_BYTESWAP_H_FALSE='#'
35078 else
35079   GL_GENERATE_BYTESWAP_H_TRUE='#'
35080   GL_GENERATE_BYTESWAP_H_FALSE=
35081 fi
35082
35083
35084
35085
35086
35087   if test $ac_cv_func_canonicalize_file_name = no; then
35088     HAVE_CANONICALIZE_FILE_NAME=0
35089     if test $ac_cv_func_realpath = no; then
35090       HAVE_REALPATH=0
35091     else
35092       case "$gl_cv_func_realpath_works" in
35093         *yes) ;;
35094         *)    REPLACE_REALPATH=1 ;;
35095       esac
35096     fi
35097   else
35098     case "$gl_cv_func_realpath_works" in
35099       *yes)
35100         ;;
35101       *)
35102         REPLACE_CANONICALIZE_FILE_NAME=1
35103         REPLACE_REALPATH=1
35104         ;;
35105     esac
35106   fi
35107
35108   if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
35109
35110
35111
35112
35113
35114
35115
35116
35117   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
35118
35119   fi
35120
35121
35122 cat >>confdefs.h <<_ACEOF
35123 #define GNULIB_CANONICALIZE_LGPL 1
35124 _ACEOF
35125
35126
35127
35128
35129
35130
35131
35132           GNULIB_CANONICALIZE_FILE_NAME=1
35133
35134
35135
35136
35137
35138 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
35139
35140
35141
35142
35143
35144
35145
35146
35147           GNULIB_REALPATH=1
35148
35149
35150
35151
35152
35153 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
35154
35155
35156
35157
35158
35159 $as_echo "#define SIGNAL_SAFE_LIST 1" >>confdefs.h
35160
35161
35162
35163 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
35164
35165
35166
35167
35168
35169   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
35170     REPLACE_CLOSE=1
35171   fi
35172
35173
35174
35175
35176
35177   if test $ac_cv_header_sys_socket_h != yes; then
35178                     for ac_header in winsock2.h
35179 do :
35180   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
35181 if test "x$ac_cv_header_winsock2_h" = xyes; then :
35182   cat >>confdefs.h <<_ACEOF
35183 #define HAVE_WINSOCK2_H 1
35184 _ACEOF
35185
35186 fi
35187
35188 done
35189
35190   fi
35191   if test "$ac_cv_header_winsock2_h" = yes; then
35192     HAVE_WINSOCK2_H=1
35193     UNISTD_H_HAVE_WINSOCK2_H=1
35194     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
35195   else
35196     HAVE_WINSOCK2_H=0
35197   fi
35198
35199
35200     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
35201                         REPLACE_CLOSE=1
35202     fi
35203
35204
35205
35206   if test $REPLACE_CLOSE = 1; then
35207
35208
35209
35210
35211
35212
35213
35214
35215   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
35216
35217   fi
35218
35219
35220
35221
35222
35223           GNULIB_CLOSE=1
35224
35225
35226
35227
35228
35229 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
35230
35231
35232
35233
35234
35235
35236   for ac_func in closedir
35237 do :
35238   ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
35239 if test "x$ac_cv_func_closedir" = xyes; then :
35240   cat >>confdefs.h <<_ACEOF
35241 #define HAVE_CLOSEDIR 1
35242 _ACEOF
35243
35244 fi
35245 done
35246
35247   if test $ac_cv_func_closedir = no; then
35248     HAVE_CLOSEDIR=0
35249   fi
35250
35251
35252   if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
35253
35254
35255
35256
35257
35258
35259
35260
35261   gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
35262
35263   fi
35264
35265
35266
35267
35268
35269           GNULIB_CLOSEDIR=1
35270
35271
35272
35273
35274
35275 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
35276
35277
35278
35279
35280           if test "x$datarootdir" = x; then
35281     datarootdir='${datadir}'
35282
35283   fi
35284     if test "x$docdir" = x; then
35285     docdir='${datarootdir}/doc/${PACKAGE}'
35286
35287   fi
35288     if test "x$htmldir" = x; then
35289     htmldir='${docdir}'
35290
35291   fi
35292   if test "x$dvidir" = x; then
35293     dvidir='${docdir}'
35294
35295   fi
35296   if test "x$pdfdir" = x; then
35297     pdfdir='${docdir}'
35298
35299   fi
35300   if test "x$psdir" = x; then
35301     psdir='${docdir}'
35302
35303   fi
35304   if test "x$lispdir" = x; then
35305     lispdir='${datarootdir}/emacs/site-lisp'
35306
35307   fi
35308   if test "x$localedir" = x; then
35309     localedir='${datarootdir}/locale'
35310
35311   fi
35312
35313       pkglibexecdir='${libexecdir}/${PACKAGE}'
35314
35315
35316
35317
35318   for ac_func in chown utime utimes
35319 do :
35320   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35322 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35323   cat >>confdefs.h <<_ACEOF
35324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35325 _ACEOF
35326
35327 fi
35328 done
35329
35330
35331
35332   ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
35333
35334   # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments.
35335   ac_config_files="$ac_config_files csharpexec.sh:../build-aux/csharpexec.sh.in"
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349      if test $gl_cv_have_include_next = yes; then
35350        gl_cv_next_dirent_h='<'dirent.h'>'
35351      else
35352        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
35353 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
35354 if ${gl_cv_next_dirent_h+:} false; then :
35355   $as_echo_n "(cached) " >&6
35356 else
35357
35358              if test $ac_cv_header_dirent_h = yes; then
35359
35360
35361                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35362 /* end confdefs.h.  */
35363 #include <dirent.h>
35364
35365 _ACEOF
35366                                                                                                                         case "$host_os" in
35367                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
35368                  *)    gl_absname_cpp="$ac_cpp" ;;
35369                esac
35370
35371                case "$host_os" in
35372                  mingw*)
35373                                                                                                                                      gl_dirsep_regex='[/\\]'
35374                    ;;
35375                  *)
35376                    gl_dirsep_regex='\/'
35377                    ;;
35378                esac
35379                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35380
35381                gl_header_literal_regex=`echo 'dirent.h' \
35382                                         | sed -e "$gl_make_literal_regex_sed"`
35383                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35384                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35385                    s|^/[^/]|//&|
35386                    p
35387                    q
35388                  }'
35389                                                             gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35390                       sed -n "$gl_absolute_header_sed"`'"'
35391           else
35392                gl_cv_next_dirent_h='<'dirent.h'>'
35393              fi
35394
35395
35396 fi
35397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
35398 $as_echo "$gl_cv_next_dirent_h" >&6; }
35399      fi
35400      NEXT_DIRENT_H=$gl_cv_next_dirent_h
35401
35402      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35403        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35404        gl_next_as_first_directive='<'dirent.h'>'
35405      else
35406        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35407        gl_next_as_first_directive=$gl_cv_next_dirent_h
35408      fi
35409      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
35410
35411
35412
35413
35414   if test $ac_cv_header_dirent_h = yes; then
35415     HAVE_DIRENT_H=1
35416   else
35417     HAVE_DIRENT_H=0
35418   fi
35419
35420
35421
35422     for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
35423     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35425 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35426 if eval \${$as_gl_Symbol+:} false; then :
35427   $as_echo_n "(cached) " >&6
35428 else
35429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35430 /* end confdefs.h.  */
35431 #include <dirent.h>
35432
35433 int
35434 main ()
35435 {
35436 #undef $gl_func
35437   (void) $gl_func;
35438   ;
35439   return 0;
35440 }
35441 _ACEOF
35442 if ac_fn_c_try_compile "$LINENO"; then :
35443   eval "$as_gl_Symbol=yes"
35444 else
35445   eval "$as_gl_Symbol=no"
35446 fi
35447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35448 fi
35449 eval ac_res=\$$as_gl_Symbol
35450                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35451 $as_echo "$ac_res" >&6; }
35452     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
35453   cat >>confdefs.h <<_ACEOF
35454 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35455 _ACEOF
35456
35457                      eval ac_cv_have_decl_$gl_func=yes
35458 fi
35459       done
35460
35461
35462
35463
35464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
35465 $as_echo_n "checking whether // is distinct from /... " >&6; }
35466 if ${gl_cv_double_slash_root+:} false; then :
35467   $as_echo_n "(cached) " >&6
35468 else
35469    if test x"$cross_compiling" = xyes ; then
35470         # When cross-compiling, there is no way to tell whether // is special
35471         # short of a list of hosts.  However, the only known hosts to date
35472         # that have a distinct // are Apollo DomainOS (too old to port to),
35473         # Cygwin, and z/OS.  If anyone knows of another system for which // has
35474         # special semantics and is distinct from /, please report it to
35475         # <bug-gnulib@gnu.org>.
35476         case $host in
35477           *-cygwin | i370-ibm-openedition)
35478             gl_cv_double_slash_root=yes ;;
35479           *)
35480             # Be optimistic and assume that / and // are the same when we
35481             # don't know.
35482             gl_cv_double_slash_root='unknown, assuming no' ;;
35483         esac
35484       else
35485         set x `ls -di / // 2>/dev/null`
35486         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
35487           gl_cv_double_slash_root=no
35488         else
35489           gl_cv_double_slash_root=yes
35490         fi
35491       fi
35492 fi
35493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
35494 $as_echo "$gl_cv_double_slash_root" >&6; }
35495   if test "$gl_cv_double_slash_root" = yes; then
35496
35497 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
35498
35499   fi
35500
35501
35502
35503
35504
35505
35506 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
35507
35508
35509   if test $HAVE_DUP2 = 1; then
35510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
35511 $as_echo_n "checking whether dup2 works... " >&6; }
35512 if ${gl_cv_func_dup2_works+:} false; then :
35513   $as_echo_n "(cached) " >&6
35514 else
35515   if test "$cross_compiling" = yes; then :
35516   case "$host_os" in
35517            mingw*) # on this platform, dup2 always returns 0 for success
35518              gl_cv_func_dup2_works="guessing no" ;;
35519            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
35520              gl_cv_func_dup2_works="guessing no" ;;
35521            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
35522                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
35523              gl_cv_func_dup2_works="guessing no" ;;
35524            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
35525              gl_cv_func_dup2_works="guessing no" ;;
35526            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
35527              gl_cv_func_dup2_works="guessing no" ;;
35528            *) gl_cv_func_dup2_works="guessing yes" ;;
35529          esac
35530 else
35531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35532 /* end confdefs.h.  */
35533
35534          #include <unistd.h>
35535 #include <fcntl.h>
35536 #include <errno.h>
35537 int
35538 main ()
35539 {
35540 int result = 0;
35541 #ifdef FD_CLOEXEC
35542             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
35543               result |= 1;
35544 #endif
35545             if (dup2 (1, 1) == 0)
35546               result |= 2;
35547 #ifdef FD_CLOEXEC
35548             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
35549               result |= 4;
35550 #endif
35551             close (0);
35552             if (dup2 (0, 0) != -1)
35553               result |= 8;
35554             /* Many gnulib modules require POSIX conformance of EBADF.  */
35555             if (dup2 (2, 1000000) == -1 && errno != EBADF)
35556               result |= 16;
35557             /* Flush out a cygwin core dump.  */
35558             if (dup2 (2, -1) != -1 || errno != EBADF)
35559               result |= 32;
35560             return result;
35561
35562   ;
35563   return 0;
35564 }
35565
35566 _ACEOF
35567 if ac_fn_c_try_run "$LINENO"; then :
35568   gl_cv_func_dup2_works=yes
35569 else
35570   gl_cv_func_dup2_works=no
35571 fi
35572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35573   conftest.$ac_objext conftest.beam conftest.$ac_ext
35574 fi
35575
35576
35577 fi
35578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
35579 $as_echo "$gl_cv_func_dup2_works" >&6; }
35580     case "$gl_cv_func_dup2_works" in
35581       *yes) ;;
35582       *)
35583         REPLACE_DUP2=1
35584         ;;
35585     esac
35586   fi
35587
35588
35589   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
35590
35591
35592
35593
35594
35595
35596
35597
35598   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
35599
35600
35601   fi
35602
35603
35604
35605
35606
35607           GNULIB_DUP2=1
35608
35609
35610
35611
35612
35613 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623           GNULIB_ENVIRON=1
35624
35625
35626
35627
35628
35629 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
35630
35631
35632
35633
35634
35635       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
35636 $as_echo_n "checking for error_at_line... " >&6; }
35637 if ${ac_cv_lib_error_at_line+:} false; then :
35638   $as_echo_n "(cached) " >&6
35639 else
35640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35641 /* end confdefs.h.  */
35642 #include <error.h>
35643 int
35644 main ()
35645 {
35646 error_at_line (0, 0, "", 0, "an error occurred");
35647   ;
35648   return 0;
35649 }
35650 _ACEOF
35651 if ac_fn_c_try_link "$LINENO"; then :
35652   ac_cv_lib_error_at_line=yes
35653 else
35654   ac_cv_lib_error_at_line=no
35655 fi
35656 rm -f core conftest.err conftest.$ac_objext \
35657     conftest$ac_exeext conftest.$ac_ext
35658 fi
35659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
35660 $as_echo "$ac_cv_lib_error_at_line" >&6; }
35661
35662   if test $ac_cv_lib_error_at_line = no; then
35663
35664
35665
35666
35667
35668
35669
35670
35671   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
35672
35673
35674
35675   :
35676
35677   fi
35678
35679
35680   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
35681
35682
35683
35684   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
35685
35686
35687
35688
35689
35690
35691
35692
35693   :
35694
35695
35696
35697
35698
35699
35700   if test $ac_cv_func_fcntl = no; then
35701
35702
35703
35704   if test $ac_cv_func_fcntl = no; then
35705     HAVE_FCNTL=0
35706   else
35707     REPLACE_FCNTL=1
35708   fi
35709
35710   else
35711             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
35712 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
35713 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
35714   $as_echo_n "(cached) " >&6
35715 else
35716   if test "$cross_compiling" = yes; then :
35717   # Guess that it works on glibc systems
35718           case $host_os in #((
35719             *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
35720             *)      gl_cv_func_fcntl_f_dupfd_works="guessing no";;
35721           esac
35722 else
35723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35724 /* end confdefs.h.  */
35725
35726 #include <fcntl.h>
35727 #include <errno.h>
35728
35729 int
35730 main ()
35731 {
35732 int result = 0;
35733       if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
35734       if (errno != EINVAL) result |= 2;
35735       return result;
35736
35737   ;
35738   return 0;
35739 }
35740 _ACEOF
35741 if ac_fn_c_try_run "$LINENO"; then :
35742   gl_cv_func_fcntl_f_dupfd_works=yes
35743 else
35744   gl_cv_func_fcntl_f_dupfd_works=no
35745 fi
35746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35747   conftest.$ac_objext conftest.beam conftest.$ac_ext
35748 fi
35749
35750 fi
35751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
35752 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
35753     case $gl_cv_func_fcntl_f_dupfd_works in
35754       *yes) ;;
35755       *)
35756
35757
35758   if test $ac_cv_func_fcntl = no; then
35759     HAVE_FCNTL=0
35760   else
35761     REPLACE_FCNTL=1
35762   fi
35763
35764
35765 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
35766  ;;
35767     esac
35768
35769         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
35770 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
35771 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
35772   $as_echo_n "(cached) " >&6
35773 else
35774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35775 /* end confdefs.h.  */
35776
35777 #include <fcntl.h>
35778 #ifndef F_DUPFD_CLOEXEC
35779 choke me
35780 #endif
35781
35782 int
35783 main ()
35784 {
35785
35786   ;
35787   return 0;
35788 }
35789 _ACEOF
35790 if ac_fn_c_try_compile "$LINENO"; then :
35791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35792 /* end confdefs.h.  */
35793
35794 #ifdef __linux__
35795 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
35796    it to support the semantics on older kernels that failed with EINVAL.  */
35797 choke me
35798 #endif
35799
35800 int
35801 main ()
35802 {
35803
35804   ;
35805   return 0;
35806 }
35807 _ACEOF
35808 if ac_fn_c_try_compile "$LINENO"; then :
35809   gl_cv_func_fcntl_f_dupfd_cloexec=yes
35810 else
35811   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
35812 fi
35813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35814 else
35815   gl_cv_func_fcntl_f_dupfd_cloexec=no
35816 fi
35817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35818 fi
35819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
35820 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
35821     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
35822
35823
35824
35825   if test $ac_cv_func_fcntl = no; then
35826     HAVE_FCNTL=0
35827   else
35828     REPLACE_FCNTL=1
35829   fi
35830
35831           fi
35832   fi
35833
35834
35835   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
35836
35837
35838
35839
35840
35841
35842
35843
35844   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
35845
35846   fi
35847
35848
35849
35850
35851
35852           GNULIB_FCNTL=1
35853
35854
35855
35856
35857
35858 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
35859
35860
35861
35862
35863
35864
35865
35866
35867
35868
35869
35870
35871
35872
35873      if test $gl_cv_have_include_next = yes; then
35874        gl_cv_next_fcntl_h='<'fcntl.h'>'
35875      else
35876        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
35877 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
35878 if ${gl_cv_next_fcntl_h+:} false; then :
35879   $as_echo_n "(cached) " >&6
35880 else
35881
35882                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35883 /* end confdefs.h.  */
35884 #include <fcntl.h>
35885
35886 _ACEOF
35887                                                                                                                         case "$host_os" in
35888                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
35889                  *)    gl_absname_cpp="$ac_cpp" ;;
35890                esac
35891
35892                case "$host_os" in
35893                  mingw*)
35894                                                                                                                                      gl_dirsep_regex='[/\\]'
35895                    ;;
35896                  *)
35897                    gl_dirsep_regex='\/'
35898                    ;;
35899                esac
35900                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35901
35902                gl_header_literal_regex=`echo 'fcntl.h' \
35903                                         | sed -e "$gl_make_literal_regex_sed"`
35904                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35905                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35906                    s|^/[^/]|//&|
35907                    p
35908                    q
35909                  }'
35910                                                             gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35911                       sed -n "$gl_absolute_header_sed"`'"'
35912
35913
35914 fi
35915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
35916 $as_echo "$gl_cv_next_fcntl_h" >&6; }
35917      fi
35918      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
35919
35920      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35921        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35922        gl_next_as_first_directive='<'fcntl.h'>'
35923      else
35924        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35925        gl_next_as_first_directive=$gl_cv_next_fcntl_h
35926      fi
35927      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938     for gl_func in fcntl openat; do
35939     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35941 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35942 if eval \${$as_gl_Symbol+:} false; then :
35943   $as_echo_n "(cached) " >&6
35944 else
35945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35946 /* end confdefs.h.  */
35947 #include <fcntl.h>
35948
35949 int
35950 main ()
35951 {
35952 #undef $gl_func
35953   (void) $gl_func;
35954   ;
35955   return 0;
35956 }
35957 _ACEOF
35958 if ac_fn_c_try_compile "$LINENO"; then :
35959   eval "$as_gl_Symbol=yes"
35960 else
35961   eval "$as_gl_Symbol=no"
35962 fi
35963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35964 fi
35965 eval ac_res=\$$as_gl_Symbol
35966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35967 $as_echo "$ac_res" >&6; }
35968     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
35969   cat >>confdefs.h <<_ACEOF
35970 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35971 _ACEOF
35972
35973                      eval ac_cv_have_decl_$gl_func=yes
35974 fi
35975       done
35976
35977
35978
35979
35980 cat >>confdefs.h <<_ACEOF
35981 #define GNULIB_FD_SAFER_FLAG 1
35982 _ACEOF
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992   FLOAT_H=
35993   REPLACE_FLOAT_LDBL=0
35994   case "$host_os" in
35995     aix* | beos* | openbsd* | mirbsd* | irix*)
35996       FLOAT_H=float.h
35997       ;;
35998     freebsd*)
35999       case "$host_cpu" in
36000         i[34567]86 )
36001           FLOAT_H=float.h
36002           ;;
36003         x86_64 )
36004           # On x86_64 systems, the C compiler may still be generating
36005           # 32-bit code.
36006           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36007 /* end confdefs.h.  */
36008 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
36009              yes
36010              #endif
36011 _ACEOF
36012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36013   $EGREP "yes" >/dev/null 2>&1; then :
36014
36015 else
36016   FLOAT_H=float.h
36017 fi
36018 rm -f conftest*
36019
36020           ;;
36021       esac
36022       ;;
36023     linux*)
36024       case "$host_cpu" in
36025         powerpc*)
36026           FLOAT_H=float.h
36027           ;;
36028       esac
36029       ;;
36030   esac
36031   case "$host_os" in
36032     aix* | freebsd* | linux*)
36033       if test -n "$FLOAT_H"; then
36034         REPLACE_FLOAT_LDBL=1
36035       fi
36036       ;;
36037   esac
36038
36039     REPLACE_ITOLD=0
36040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
36041 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
36042 if ${gl_cv_func_itold_works+:} false; then :
36043   $as_echo_n "(cached) " >&6
36044 else
36045
36046       if test "$cross_compiling" = yes; then :
36047   case "$host" in
36048            sparc*-*-linux*)
36049              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36050 /* end confdefs.h.  */
36051 #if defined __LP64__ || defined __arch64__
36052                 yes
36053                 #endif
36054 _ACEOF
36055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36056   $EGREP "yes" >/dev/null 2>&1; then :
36057   gl_cv_func_itold_works="guessing no"
36058 else
36059   gl_cv_func_itold_works="guessing yes"
36060 fi
36061 rm -f conftest*
36062
36063              ;;
36064            *) gl_cv_func_itold_works="guessing yes" ;;
36065          esac
36066
36067 else
36068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36069 /* end confdefs.h.  */
36070
36071 int i = -1;
36072 volatile long double ld;
36073 int main ()
36074 {
36075   ld += i * 1.0L;
36076   if (ld > 0)
36077     return 1;
36078   return 0;
36079 }
36080 _ACEOF
36081 if ac_fn_c_try_run "$LINENO"; then :
36082   gl_cv_func_itold_works=yes
36083 else
36084   gl_cv_func_itold_works=no
36085 fi
36086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36087   conftest.$ac_objext conftest.beam conftest.$ac_ext
36088 fi
36089
36090
36091 fi
36092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
36093 $as_echo "$gl_cv_func_itold_works" >&6; }
36094   case "$gl_cv_func_itold_works" in
36095     *no)
36096       REPLACE_ITOLD=1
36097                   FLOAT_H=float.h
36098       ;;
36099   esac
36100
36101   if test -n "$FLOAT_H"; then
36102
36103
36104
36105
36106
36107
36108
36109
36110      if test $gl_cv_have_include_next = yes; then
36111        gl_cv_next_float_h='<'float.h'>'
36112      else
36113        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
36114 $as_echo_n "checking absolute name of <float.h>... " >&6; }
36115 if ${gl_cv_next_float_h+:} false; then :
36116   $as_echo_n "(cached) " >&6
36117 else
36118
36119                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36120 /* end confdefs.h.  */
36121 #include <float.h>
36122
36123 _ACEOF
36124                                                                                                                         case "$host_os" in
36125                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
36126                  *)    gl_absname_cpp="$ac_cpp" ;;
36127                esac
36128
36129                case "$host_os" in
36130                  mingw*)
36131                                                                                                                                      gl_dirsep_regex='[/\\]'
36132                    ;;
36133                  *)
36134                    gl_dirsep_regex='\/'
36135                    ;;
36136                esac
36137                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36138
36139                gl_header_literal_regex=`echo 'float.h' \
36140                                         | sed -e "$gl_make_literal_regex_sed"`
36141                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36142                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36143                    s|^/[^/]|//&|
36144                    p
36145                    q
36146                  }'
36147                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36148                       sed -n "$gl_absolute_header_sed"`'"'
36149
36150
36151 fi
36152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
36153 $as_echo "$gl_cv_next_float_h" >&6; }
36154      fi
36155      NEXT_FLOAT_H=$gl_cv_next_float_h
36156
36157      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36158        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36159        gl_next_as_first_directive='<'float.h'>'
36160      else
36161        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36162        gl_next_as_first_directive=$gl_cv_next_float_h
36163      fi
36164      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
36165
36166
36167
36168
36169   fi
36170
36171    if test -n "$FLOAT_H"; then
36172   GL_GENERATE_FLOAT_H_TRUE=
36173   GL_GENERATE_FLOAT_H_FALSE='#'
36174 else
36175   GL_GENERATE_FLOAT_H_TRUE='#'
36176   GL_GENERATE_FLOAT_H_FALSE=
36177 fi
36178
36179
36180
36181   if test $REPLACE_FLOAT_LDBL = 1; then
36182
36183
36184
36185
36186
36187
36188
36189
36190   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
36191
36192   fi
36193   if test $REPLACE_ITOLD = 1; then
36194
36195
36196
36197
36198
36199
36200
36201
36202   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
36203
36204   fi
36205
36206
36207
36208
36209
36210   FNMATCH_H=
36211   gl_fnmatch_required_lowercase=`
36212     echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
36213   `
36214   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
36215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
36216 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
36217 if eval \${$gl_fnmatch_cache_var+:} false; then :
36218   $as_echo_n "(cached) " >&6
36219 else
36220                            if test $gl_fnmatch_required = GNU; then
36221        gl_fnmatch_gnu_start=
36222        gl_fnmatch_gnu_end=
36223      else
36224        gl_fnmatch_gnu_start='#if 0'
36225        gl_fnmatch_gnu_end='#endif'
36226      fi
36227      if test "$cross_compiling" = yes; then :
36228   eval "$gl_fnmatch_cache_var=\"guessing no\""
36229 else
36230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36231 /* end confdefs.h.  */
36232 #include <fnmatch.h>
36233             static int
36234             y (char const *pattern, char const *string, int flags)
36235             {
36236               return fnmatch (pattern, string, flags) == 0;
36237             }
36238             static int
36239             n (char const *pattern, char const *string, int flags)
36240             {
36241               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
36242             }
36243
36244 int
36245 main ()
36246 {
36247 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
36248             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
36249             static char const A_1[] = { 'A' - 1, 0 };
36250             static char const A01[] = { 'A' + 1, 0 };
36251             static char const a_1[] = { 'a' - 1, 0 };
36252             static char const a01[] = { 'a' + 1, 0 };
36253             static char const bs_1[] = { '\\\\' - 1, 0 };
36254             static char const bs01[] = { '\\\\' + 1, 0 };
36255             int result = 0;
36256             if (!n ("a*", "", 0))
36257               return 1;
36258             if (!y ("a*", "abc", 0))
36259               return 1;
36260             if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
36261               return 1;
36262             if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
36263               return 2;
36264             if (!y ("a\\\\bc", "abc", 0))
36265               return 3;
36266             if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
36267               return 3;
36268             if (!y ("*x", ".x", 0))
36269               return 4;
36270             if (!n ("*x", ".x", FNM_PERIOD))
36271               return 4;
36272             if (!y (Apat, "\\\\", 0))
36273               return 5;
36274             if (!y (Apat, "A", 0))
36275               return 5;
36276             if (!y (apat, "\\\\", 0))
36277               return 5;
36278             if (!y (apat, "a", 0))
36279               return 5;
36280             if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
36281               return 5;
36282             if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
36283               return 5;
36284             if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
36285               return 5;
36286             if (!(y (apat, a01, 0) == ('a' < '\\\\')))
36287               return 5;
36288             if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
36289               return 5;
36290             if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
36291               return 5;
36292             if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
36293               return 5;
36294             if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
36295               return 5;
36296             $gl_fnmatch_gnu_start
36297             if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
36298               result |= 8;
36299             if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
36300               result |= 16;
36301             if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
36302               result |= 32;
36303             if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
36304               result |= 64;
36305             if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
36306               result |= 64;
36307             if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
36308               result |= 64;
36309             $gl_fnmatch_gnu_end
36310             return result;
36311
36312   ;
36313   return 0;
36314 }
36315 _ACEOF
36316 if ac_fn_c_try_run "$LINENO"; then :
36317   eval "$gl_fnmatch_cache_var=yes"
36318 else
36319   eval "$gl_fnmatch_cache_var=no"
36320 fi
36321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36322   conftest.$ac_objext conftest.beam conftest.$ac_ext
36323 fi
36324
36325
36326 fi
36327 eval ac_res=\$$gl_fnmatch_cache_var
36328                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36329 $as_echo "$ac_res" >&6; }
36330   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
36331   if test "$gl_fnmatch_result" = yes; then
36332             rm -f "$gl_source_base/fnmatch.h"
36333   else
36334     FNMATCH_H=fnmatch.h
36335   fi
36336
36337    if test -n "$FNMATCH_H"; then
36338   GL_GENERATE_FNMATCH_H_TRUE=
36339   GL_GENERATE_FNMATCH_H_FALSE='#'
36340 else
36341   GL_GENERATE_FNMATCH_H_TRUE='#'
36342   GL_GENERATE_FNMATCH_H_FALSE=
36343 fi
36344
36345
36346   if test -n "$FNMATCH_H"; then
36347
36348
36349
36350
36351
36352
36353
36354
36355   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
36356
36357
36358
36359 cat >>confdefs.h <<_ACEOF
36360 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
36361 _ACEOF
36362
36363
36364   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
36365 "
36366 if test "x$ac_cv_have_decl_isblank" = xyes; then :
36367   ac_have_decl=1
36368 else
36369   ac_have_decl=0
36370 fi
36371
36372 cat >>confdefs.h <<_ACEOF
36373 #define HAVE_DECL_ISBLANK $ac_have_decl
36374 _ACEOF
36375
36376
36377
36378
36379   fi
36380
36381
36382
36383   case "$host_os" in
36384     mingw* | pw*)
36385             REPLACE_FOPEN=1
36386             gl_cv_func_fopen_slash="guessing no"
36387       ;;
36388     *)
36389                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
36390 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
36391 if ${gl_cv_func_fopen_slash+:} false; then :
36392   $as_echo_n "(cached) " >&6
36393 else
36394
36395           if test "$cross_compiling" = yes; then :
36396
36397              case "$host_os" in
36398                aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
36399                  gl_cv_func_fopen_slash="guessing no" ;;
36400                *)
36401                  gl_cv_func_fopen_slash="guessing yes" ;;
36402              esac
36403
36404 else
36405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36406 /* end confdefs.h.  */
36407
36408 #include <stddef.h>
36409 #include <stdio.h>
36410 int main ()
36411 {
36412   return fopen ("conftest.sl/", "w") != NULL;
36413 }
36414 _ACEOF
36415 if ac_fn_c_try_run "$LINENO"; then :
36416   gl_cv_func_fopen_slash=yes
36417 else
36418   gl_cv_func_fopen_slash=no
36419 fi
36420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36421   conftest.$ac_objext conftest.beam conftest.$ac_ext
36422 fi
36423
36424           rm -f conftest.sl
36425
36426 fi
36427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
36428 $as_echo "$gl_cv_func_fopen_slash" >&6; }
36429       ;;
36430   esac
36431   case "$gl_cv_func_fopen_slash" in
36432     *no)
36433
36434 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
36435
36436       REPLACE_FOPEN=1
36437       ;;
36438   esac
36439
36440   if test $REPLACE_FOPEN = 1; then
36441
36442
36443
36444
36445
36446
36447
36448
36449   gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
36450
36451     :
36452   fi
36453
36454
36455
36456
36457
36458           GNULIB_FOPEN=1
36459
36460
36461
36462
36463
36464 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
36465
36466
36467
36468
36469
36470
36471
36472   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36473     REPLACE_FSTAT=1
36474   fi
36475
36476
36477   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
36478     REPLACE_FSTAT=1
36479   fi
36480
36481
36482
36483   if test $REPLACE_FSTAT = 1; then
36484
36485
36486
36487
36488
36489
36490
36491
36492   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
36493
36494     :
36495   fi
36496
36497
36498
36499
36500
36501           GNULIB_FSTAT=1
36502
36503
36504
36505
36506
36507 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
36508
36509
36510
36511
36512
36513 cat >>confdefs.h <<_ACEOF
36514 #define GNULIB_FWRITEERROR 1
36515 _ACEOF
36516
36517
36518
36519
36520
36521
36522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
36523 $as_echo_n "checking for Java to native code compiler... " >&6; }
36524   # Search for the gcj command or use the one provided by the user.
36525   if test -z "$GCJ"; then
36526                 if test -n "$ac_tool_prefix"; then
36527   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
36528 set dummy ${ac_tool_prefix}gcj; ac_word=$2
36529 :
36530 if ${ac_cv_prog_GCJ+:} false; then :
36531   $as_echo_n "(cached) " >&6
36532 else
36533   if test -n "$GCJ"; then
36534   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
36535 else
36536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36537 for as_dir in $PATH
36538 do
36539   IFS=$as_save_IFS
36540   test -z "$as_dir" && as_dir=.
36541     for ac_exec_ext in '' $ac_executable_extensions; do
36542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36543     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
36544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36545     break 2
36546   fi
36547 done
36548   done
36549 IFS=$as_save_IFS
36550
36551 fi
36552 fi
36553 GCJ=$ac_cv_prog_GCJ
36554 if test -n "$GCJ"; then
36555   :
36556 else
36557   :
36558 fi
36559
36560
36561 fi
36562 if test -z "$ac_cv_prog_GCJ"; then
36563   ac_ct_GCJ=$GCJ
36564   # Extract the first word of "gcj", so it can be a program name with args.
36565 set dummy gcj; ac_word=$2
36566 :
36567 if ${ac_cv_prog_ac_ct_GCJ+:} false; then :
36568   $as_echo_n "(cached) " >&6
36569 else
36570   if test -n "$ac_ct_GCJ"; then
36571   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
36572 else
36573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36574 for as_dir in $PATH
36575 do
36576   IFS=$as_save_IFS
36577   test -z "$as_dir" && as_dir=.
36578     for ac_exec_ext in '' $ac_executable_extensions; do
36579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36580     ac_cv_prog_ac_ct_GCJ="gcj"
36581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36582     break 2
36583   fi
36584 done
36585   done
36586 IFS=$as_save_IFS
36587
36588 fi
36589 fi
36590 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
36591 if test -n "$ac_ct_GCJ"; then
36592   :
36593 else
36594   :
36595 fi
36596
36597   if test "x$ac_ct_GCJ" = x; then
36598     GCJ="none"
36599   else
36600     case $cross_compiling:$ac_tool_warned in
36601 yes:)
36602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36604 ac_tool_warned=yes ;;
36605 esac
36606     GCJ=$ac_ct_GCJ
36607   fi
36608 else
36609   GCJ="$ac_cv_prog_GCJ"
36610 fi
36611
36612               fi
36613   # Choose GCJFLAGS or use the one provided by the user.
36614   if test "$GCJ" != none; then
36615     test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
36616   fi
36617   # Check whether the version is ok and it can create executables.
36618   ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
36619   if test "$GCJ" != none \
36620      && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
36621      && (
36622       # See if libgcj.so is well installed and if exception handling works.
36623       cat > conftest.java <<EOF
36624 public class conftest {
36625   public static void main (String[] args) {
36626     try {
36627       java.util.ResourceBundle.getBundle("foobar");
36628     } catch (Exception e) {
36629     }
36630     System.exit(0);
36631   }
36632 }
36633 EOF
36634       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
36635   (eval $ac_gcj_link) 2>&5
36636   ac_status=$?
36637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36638   test $ac_status = 0; }
36639       error=$?
36640       if test $error = 0 && test "$cross_compiling" != yes; then
36641         # Run conftest and catch its exit status, but silently.
36642         error=`./conftest >/dev/null 2>&1; echo $?`
36643         test $error = 0 || error=1
36644         rm -f core conftest.core
36645       fi
36646       rm -f conftest.java conftest$ac_exeext
36647       exit $error
36648      ); then
36649     :
36650   else
36651     GCJ=none
36652   fi
36653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
36654 $as_echo "$GCJ" >&6; }
36655   if test "$GCJ" != none; then
36656     HAVE_GCJ=1
36657   else
36658     HAVE_GCJ=
36659   fi
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670
36671
36672   if test $ac_cv_func_getdelim = yes; then
36673     HAVE_GETDELIM=1
36674         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
36675 $as_echo_n "checking for working getdelim function... " >&6; }
36676 if ${gl_cv_func_working_getdelim+:} false; then :
36677   $as_echo_n "(cached) " >&6
36678 else
36679   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
36680     if test "$cross_compiling" = yes; then :
36681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36682 /* end confdefs.h.  */
36683
36684 #include <features.h>
36685 #ifdef __GNU_LIBRARY__
36686  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
36687   Lucky GNU user
36688  #endif
36689 #endif
36690
36691 _ACEOF
36692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36693   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
36694   gl_cv_func_working_getdelim="guessing yes"
36695 else
36696   gl_cv_func_working_getdelim="guessing no"
36697 fi
36698 rm -f conftest*
36699
36700
36701 else
36702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36703 /* end confdefs.h.  */
36704
36705 #    include <stdio.h>
36706 #    include <stdlib.h>
36707 #    include <string.h>
36708     int main ()
36709     {
36710       FILE *in = fopen ("./conftest.data", "r");
36711       if (!in)
36712         return 1;
36713       {
36714         /* Test result for a NULL buffer and a zero size.
36715            Based on a test program from Karl Heuer.  */
36716         char *line = NULL;
36717         size_t siz = 0;
36718         int len = getdelim (&line, &siz, '\n', in);
36719         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
36720           return 2;
36721       }
36722       {
36723         /* Test result for a NULL buffer and a non-zero size.
36724            This crashes on FreeBSD 8.0.  */
36725         char *line = NULL;
36726         size_t siz = (size_t)(~0) / 4;
36727         if (getdelim (&line, &siz, '\n', in) == -1)
36728           return 3;
36729       }
36730       return 0;
36731     }
36732
36733 _ACEOF
36734 if ac_fn_c_try_run "$LINENO"; then :
36735   gl_cv_func_working_getdelim=yes
36736 else
36737   gl_cv_func_working_getdelim=no
36738 fi
36739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36740   conftest.$ac_objext conftest.beam conftest.$ac_ext
36741 fi
36742
36743 fi
36744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
36745 $as_echo "$gl_cv_func_working_getdelim" >&6; }
36746     case "$gl_cv_func_working_getdelim" in
36747       *no)
36748         REPLACE_GETDELIM=1
36749         ;;
36750     esac
36751   else
36752     HAVE_GETDELIM=0
36753   fi
36754
36755   if test $ac_cv_have_decl_getdelim = no; then
36756     HAVE_DECL_GETDELIM=0
36757   fi
36758
36759   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
36760
36761
36762
36763
36764
36765
36766
36767
36768   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
36769
36770
36771   for ac_func in flockfile funlockfile
36772 do :
36773   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36774 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
36775 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
36776   cat >>confdefs.h <<_ACEOF
36777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36778 _ACEOF
36779
36780 fi
36781 done
36782
36783   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
36784 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
36785   ac_have_decl=1
36786 else
36787   ac_have_decl=0
36788 fi
36789
36790 cat >>confdefs.h <<_ACEOF
36791 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
36792 _ACEOF
36793
36794
36795   fi
36796
36797
36798
36799
36800
36801           GNULIB_GETDELIM=1
36802
36803
36804
36805
36806
36807 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
36808
36809
36810
36811
36812
36813
36814   if test $ac_cv_func_getdtablesize != yes; then
36815     HAVE_GETDTABLESIZE=0
36816   fi
36817
36818   if test $HAVE_GETDTABLESIZE = 0; then
36819
36820
36821
36822
36823
36824
36825
36826
36827   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
36828
36829     :
36830   fi
36831
36832
36833
36834
36835
36836           GNULIB_GETDTABLESIZE=1
36837
36838
36839
36840
36841
36842 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
36843
36844
36845
36846
36847
36848
36849
36850
36851
36852
36853   gl_getline_needs_run_time_check=no
36854   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
36855 if test "x$ac_cv_func_getline" = xyes; then :
36856                    gl_getline_needs_run_time_check=yes
36857 else
36858   am_cv_func_working_getline=no
36859 fi
36860
36861   if test $gl_getline_needs_run_time_check = yes; then
36862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
36863 $as_echo_n "checking for working getline function... " >&6; }
36864 if ${am_cv_func_working_getline+:} false; then :
36865   $as_echo_n "(cached) " >&6
36866 else
36867   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
36868     if test "$cross_compiling" = yes; then :
36869         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36870 /* end confdefs.h.  */
36871
36872 #include <features.h>
36873 #ifdef __GNU_LIBRARY__
36874  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
36875   Lucky GNU user
36876  #endif
36877 #endif
36878
36879 _ACEOF
36880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36881   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
36882   am_cv_func_working_getline="guessing yes"
36883 else
36884   am_cv_func_working_getline="guessing no"
36885 fi
36886 rm -f conftest*
36887
36888
36889 else
36890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36891 /* end confdefs.h.  */
36892
36893 #    include <stdio.h>
36894 #    include <stdlib.h>
36895 #    include <string.h>
36896     int main ()
36897     {
36898       FILE *in = fopen ("./conftest.data", "r");
36899       if (!in)
36900         return 1;
36901       {
36902         /* Test result for a NULL buffer and a zero size.
36903            Based on a test program from Karl Heuer.  */
36904         char *line = NULL;
36905         size_t siz = 0;
36906         int len = getline (&line, &siz, in);
36907         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
36908           return 2;
36909       }
36910       {
36911         /* Test result for a NULL buffer and a non-zero size.
36912            This crashes on FreeBSD 8.0.  */
36913         char *line = NULL;
36914         size_t siz = (size_t)(~0) / 4;
36915         if (getline (&line, &siz, in) == -1)
36916           return 3;
36917       }
36918       return 0;
36919     }
36920
36921 _ACEOF
36922 if ac_fn_c_try_run "$LINENO"; then :
36923   am_cv_func_working_getline=yes
36924 else
36925   am_cv_func_working_getline=no
36926 fi
36927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36928   conftest.$ac_objext conftest.beam conftest.$ac_ext
36929 fi
36930
36931 fi
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
36933 $as_echo "$am_cv_func_working_getline" >&6; }
36934   fi
36935
36936   if test $ac_cv_have_decl_getline = no; then
36937     HAVE_DECL_GETLINE=0
36938   fi
36939
36940   case "$am_cv_func_working_getline" in
36941     *no)
36942                         REPLACE_GETLINE=1
36943       ;;
36944   esac
36945
36946   if test $REPLACE_GETLINE = 1; then
36947
36948
36949
36950
36951
36952
36953
36954
36955   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
36956
36957
36958   :
36959
36960   fi
36961
36962
36963
36964
36965
36966           GNULIB_GETLINE=1
36967
36968
36969
36970
36971
36972 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
36973
36974
36975
36976
36977
36978
36979
36980
36981   if test $REPLACE_GETOPT = 1; then
36982
36983
36984
36985
36986
36987
36988
36989
36990   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
37001
37002
37003
37004
37005         GNULIB_GL_UNISTD_H_GETOPT=1
37006   fi
37007
37008
37009
37010 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
37011
37012
37013
37014
37015
37016
37017
37018     REPLACE_GETOPT=0
37019     if test -n "$gl_replace_getopt"; then
37020       REPLACE_GETOPT=1
37021     fi
37022
37023   if test $REPLACE_GETOPT = 1; then
37024
37025   GETOPT_H=getopt.h
37026
37027 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
37028
37029
37030
37031   fi
37032
37033   if test $REPLACE_GETOPT = 1; then
37034
37035
37036
37037
37038
37039
37040
37041
37042   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
37053
37054
37055
37056
37057         GNULIB_GL_UNISTD_H_GETOPT=1
37058   fi
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069   gl_gettimeofday_timezone=void
37070   if test $ac_cv_func_gettimeofday != yes; then
37071     HAVE_GETTIMEOFDAY=0
37072   else
37073
37074
37075
37076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
37077 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
37078 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
37079   $as_echo_n "(cached) " >&6
37080 else
37081   if test "$cross_compiling" = yes; then :
37082   # When cross-compiling:
37083       case "$host_os" in
37084                 # Guess all is fine on glibc systems.
37085         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
37086                 # If we don't know, assume the worst.
37087         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
37088       esac
37089
37090 else
37091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37092 /* end confdefs.h.  */
37093 #include <string.h>
37094           #include <sys/time.h>
37095           #include <time.h>
37096           #include <stdlib.h>
37097
37098 int
37099 main ()
37100 {
37101
37102           time_t t = 0;
37103           struct tm *lt;
37104           struct tm saved_lt;
37105           struct timeval tv;
37106           lt = localtime (&t);
37107           saved_lt = *lt;
37108           gettimeofday (&tv, NULL);
37109           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
37110
37111   ;
37112   return 0;
37113 }
37114 _ACEOF
37115 if ac_fn_c_try_run "$LINENO"; then :
37116   gl_cv_func_gettimeofday_clobber=no
37117 else
37118   gl_cv_func_gettimeofday_clobber=yes
37119 fi
37120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37121   conftest.$ac_objext conftest.beam conftest.$ac_ext
37122 fi
37123
37124 fi
37125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
37126 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
37127
37128  case "$gl_cv_func_gettimeofday_clobber" in
37129    *yes)
37130      REPLACE_GETTIMEOFDAY=1
37131
37132
37133 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
37134
37135
37136 $as_echo "#define localtime rpl_localtime" >>confdefs.h
37137
37138
37139
37140 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
37141
37142      ;;
37143  esac
37144
37145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
37146 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
37147 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
37148   $as_echo_n "(cached) " >&6
37149 else
37150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37151 /* end confdefs.h.  */
37152 #include <sys/time.h>
37153               struct timeval c;
37154               int gettimeofday (struct timeval *restrict, void *restrict);
37155
37156 int
37157 main ()
37158 {
37159 /* glibc uses struct timezone * rather than the POSIX void *
37160                  if _GNU_SOURCE is defined.  However, since the only portable
37161                  use of gettimeofday uses NULL as the second parameter, and
37162                  since the glibc definition is actually more typesafe, it is
37163                  not worth wrapping this to get a compliant signature.  */
37164               int (*f) (struct timeval *restrict, void *restrict)
37165                 = gettimeofday;
37166               int x = f (&c, 0);
37167               return !(x | c.tv_sec | c.tv_usec);
37168
37169   ;
37170   return 0;
37171 }
37172 _ACEOF
37173 if ac_fn_c_try_compile "$LINENO"; then :
37174   gl_cv_func_gettimeofday_posix_signature=yes
37175 else
37176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37177 /* end confdefs.h.  */
37178 #include <sys/time.h>
37179 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
37180
37181 int
37182 main ()
37183 {
37184
37185   ;
37186   return 0;
37187 }
37188 _ACEOF
37189 if ac_fn_c_try_compile "$LINENO"; then :
37190   gl_cv_func_gettimeofday_posix_signature=almost
37191 else
37192   gl_cv_func_gettimeofday_posix_signature=no
37193 fi
37194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37195 fi
37196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37197 fi
37198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
37199 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
37200     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
37201       gl_gettimeofday_timezone='struct timezone'
37202     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
37203       REPLACE_GETTIMEOFDAY=1
37204     fi
37205         if test $REPLACE_STRUCT_TIMEVAL = 1; then
37206       REPLACE_GETTIMEOFDAY=1
37207     fi
37208
37209   fi
37210
37211 cat >>confdefs.h <<_ACEOF
37212 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
37213 _ACEOF
37214
37215
37216   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
37217
37218
37219
37220
37221
37222
37223
37224
37225   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
37226
37227
37228   for ac_header in sys/timeb.h
37229 do :
37230   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
37231 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
37232   cat >>confdefs.h <<_ACEOF
37233 #define HAVE_SYS_TIMEB_H 1
37234 _ACEOF
37235
37236 fi
37237
37238 done
37239
37240   for ac_func in _ftime
37241 do :
37242   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
37243 if test "x$ac_cv_func__ftime" = xyes; then :
37244   cat >>confdefs.h <<_ACEOF
37245 #define HAVE__FTIME 1
37246 _ACEOF
37247
37248 fi
37249 done
37250
37251
37252   fi
37253
37254
37255
37256
37257
37258           GNULIB_GETTIMEOFDAY=1
37259
37260
37261
37262
37263
37264 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
37265
37266
37267
37268
37269
37270
37271
37272
37273
37274           GNULIB_ICONV=1
37275
37276
37277
37278
37279
37280
37281
37282
37283
37284
37285
37286
37287
37288
37289
37290
37291      if test $gl_cv_have_include_next = yes; then
37292        gl_cv_next_iconv_h='<'iconv.h'>'
37293      else
37294        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
37295 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
37296 if ${gl_cv_next_iconv_h+:} false; then :
37297   $as_echo_n "(cached) " >&6
37298 else
37299
37300              if test $ac_cv_header_iconv_h = yes; then
37301
37302
37303                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37304 /* end confdefs.h.  */
37305 #include <iconv.h>
37306
37307 _ACEOF
37308                                                                                                                         case "$host_os" in
37309                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
37310                  *)    gl_absname_cpp="$ac_cpp" ;;
37311                esac
37312
37313                case "$host_os" in
37314                  mingw*)
37315                                                                                                                                      gl_dirsep_regex='[/\\]'
37316                    ;;
37317                  *)
37318                    gl_dirsep_regex='\/'
37319                    ;;
37320                esac
37321                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37322
37323                gl_header_literal_regex=`echo 'iconv.h' \
37324                                         | sed -e "$gl_make_literal_regex_sed"`
37325                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37326                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37327                    s|^/[^/]|//&|
37328                    p
37329                    q
37330                  }'
37331                                                             gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37332                       sed -n "$gl_absolute_header_sed"`'"'
37333           else
37334                gl_cv_next_iconv_h='<'iconv.h'>'
37335              fi
37336
37337
37338 fi
37339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
37340 $as_echo "$gl_cv_next_iconv_h" >&6; }
37341      fi
37342      NEXT_ICONV_H=$gl_cv_next_iconv_h
37343
37344      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37345        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37346        gl_next_as_first_directive='<'iconv.h'>'
37347      else
37348        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37349        gl_next_as_first_directive=$gl_cv_next_iconv_h
37350      fi
37351      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
37352
37353
37354
37355
37356
37357
37358
37359
37360
37361   if test "$am_cv_func_iconv" = yes; then
37362
37363
37364   ICONV_H='iconv.h'
37365    if test -n "$ICONV_H"; then
37366   GL_GENERATE_ICONV_H_TRUE=
37367   GL_GENERATE_ICONV_H_FALSE='#'
37368 else
37369   GL_GENERATE_ICONV_H_TRUE='#'
37370   GL_GENERATE_ICONV_H_FALSE=
37371 fi
37372
37373
37374             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37375 /* end confdefs.h.  */
37376
37377       #include <iconv.h>
37378       #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
37379        gnu_iconv
37380       #endif
37381
37382 _ACEOF
37383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37384   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
37385   gl_func_iconv_gnu=yes
37386 else
37387   gl_func_iconv_gnu=no
37388 fi
37389 rm -f conftest*
37390
37391     if test $gl_func_iconv_gnu = no; then
37392       iconv_flavor=
37393       case "$host_os" in
37394         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
37395         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
37396         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
37397         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
37398         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
37399       esac
37400       if test -n "$iconv_flavor"; then
37401
37402 cat >>confdefs.h <<_ACEOF
37403 #define ICONV_FLAVOR $iconv_flavor
37404 _ACEOF
37405
37406
37407
37408
37409   ICONV_H='iconv.h'
37410    if test -n "$ICONV_H"; then
37411   GL_GENERATE_ICONV_H_TRUE=
37412   GL_GENERATE_ICONV_H_FALSE='#'
37413 else
37414   GL_GENERATE_ICONV_H_TRUE='#'
37415   GL_GENERATE_ICONV_H_FALSE=
37416 fi
37417
37418
37419   REPLACE_ICONV_OPEN=1
37420
37421       fi
37422     fi
37423
37424   fi
37425
37426   if test $REPLACE_ICONV_OPEN = 1; then
37427
37428
37429
37430
37431
37432
37433
37434
37435   gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
37436
37437   fi
37438   if test $REPLACE_ICONV = 1; then
37439
37440
37441
37442
37443
37444
37445
37446
37447   gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext"
37448
37449
37450
37451
37452
37453
37454
37455
37456
37457   gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext"
37458
37459   fi
37460
37461
37462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
37463 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
37464 if ${gl_cv_c_inline_effective+:} false; then :
37465   $as_echo_n "(cached) " >&6
37466 else
37467   if test $ac_cv_c_inline = no; then
37468        gl_cv_c_inline_effective=no
37469      else
37470                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37471 /* end confdefs.h.  */
37472
37473 int
37474 main ()
37475 {
37476 #ifdef __NO_INLINE__
37477                #error "inline is not effective"
37478              #endif
37479   ;
37480   return 0;
37481 }
37482 _ACEOF
37483 if ac_fn_c_try_compile "$LINENO"; then :
37484   gl_cv_c_inline_effective=yes
37485 else
37486   gl_cv_c_inline_effective=no
37487 fi
37488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37489      fi
37490
37491 fi
37492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
37493 $as_echo "$gl_cv_c_inline_effective" >&6; }
37494   if test $gl_cv_c_inline_effective = yes; then
37495
37496 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
37497
37498   fi
37499
37500
37501
37502
37503
37504
37505   ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
37506 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
37507    <wchar.h>.
37508    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
37509    before <wchar.h>.  */
37510 #include <stddef.h>
37511 #include <stdio.h>
37512 #include <time.h>
37513 #include <wchar.h>
37514 #include <wctype.h>
37515
37516 "
37517 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
37518   ac_have_decl=1
37519 else
37520   ac_have_decl=0
37521 fi
37522
37523 cat >>confdefs.h <<_ACEOF
37524 #define HAVE_DECL_ISWBLANK $ac_have_decl
37525 _ACEOF
37526
37527   if test $ac_cv_func_iswblank = no; then
37528     HAVE_ISWBLANK=0
37529     if test $ac_cv_have_decl_iswblank = yes; then
37530       REPLACE_ISWBLANK=1
37531     fi
37532   fi
37533   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
37534         :
37535   else
37536     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
37537             :
37538     fi
37539   fi
37540
37541
37542   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
37543     :
37544   else
37545     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
37546
37547
37548
37549
37550
37551
37552
37553
37554   gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
37555
37556     fi
37557   fi
37558
37559
37560
37561
37562
37563           GNULIB_ISWBLANK=1
37564
37565
37566
37567
37568
37569 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
37570
37571
37572
37573
37574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
37575 $as_echo_n "checking whether to use Java... " >&6; }
37576   # Check whether --enable-java was given.
37577 if test "${enable_java+set}" = set; then :
37578   enableval=$enable_java; JAVA_CHOICE="$enableval"
37579 else
37580   JAVA_CHOICE=yes
37581 fi
37582
37583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
37584 $as_echo "$JAVA_CHOICE" >&6; }
37585   if test "$JAVA_CHOICE" = yes; then
37586     # Check whether --enable-native-java was given.
37587 if test "${enable_native_java+set}" = set; then :
37588   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
37589 fi
37590
37591   fi
37592
37593
37594   # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
37595   ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
37596
37597   # You need to invoke gt_JAVAEXEC yourself, possibly with arguments.
37598   ac_config_files="$ac_config_files javaexec.sh:../build-aux/javaexec.sh.in"
37599
37600
37601
37602
37603
37604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libcroco is requested" >&5
37605 $as_echo_n "checking whether included libcroco is requested... " >&6; }
37606
37607 # Check whether --with-included-libcroco was given.
37608 if test "${with_included_libcroco+set}" = set; then :
37609   withval=$with_included_libcroco; gl_cv_libcroco_force_included=$withval
37610 else
37611   gl_cv_libcroco_force_included=no
37612 fi
37613
37614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_force_included" >&5
37615 $as_echo "$gl_cv_libcroco_force_included" >&6; }
37616
37617   gl_cv_libcroco_use_included="$gl_cv_libcroco_force_included"
37618   LIBCROCO=
37619   LTLIBCROCO=
37620   INCCROCO=
37621   if test "$gl_cv_libcroco_use_included" != yes; then
37622             if ${gl_cv_libcroco+:} false; then :
37623   $as_echo_n "(cached) " >&6
37624 else
37625
37626       gl_cv_libcroco=no
37627       gl_cv_LIBCROCO=
37628       gl_cv_LTLIBCROCO=
37629       gl_cv_INCCROCO=
37630       gl_save_LIBS="$LIBS"
37631
37632
37633
37634
37635
37636
37637
37638     use_additional=yes
37639
37640   acl_save_prefix="$prefix"
37641   prefix="$acl_final_prefix"
37642   acl_save_exec_prefix="$exec_prefix"
37643   exec_prefix="$acl_final_exec_prefix"
37644
37645     eval additional_includedir=\"$includedir\"
37646     eval additional_libdir=\"$libdir\"
37647
37648   exec_prefix="$acl_save_exec_prefix"
37649   prefix="$acl_save_prefix"
37650
37651
37652 # Check whether --with-libcroco-0.6-prefix was given.
37653 if test "${with_libcroco_0_6_prefix+set}" = set; then :
37654   withval=$with_libcroco_0_6_prefix;
37655     if test "X$withval" = "Xno"; then
37656       use_additional=no
37657     else
37658       if test "X$withval" = "X"; then
37659
37660   acl_save_prefix="$prefix"
37661   prefix="$acl_final_prefix"
37662   acl_save_exec_prefix="$exec_prefix"
37663   exec_prefix="$acl_final_exec_prefix"
37664
37665           eval additional_includedir=\"$includedir\"
37666           eval additional_libdir=\"$libdir\"
37667
37668   exec_prefix="$acl_save_exec_prefix"
37669   prefix="$acl_save_prefix"
37670
37671       else
37672         additional_includedir="$withval/include"
37673         additional_libdir="$withval/$acl_libdirstem"
37674         if test "$acl_libdirstem2" != "$acl_libdirstem" \
37675            && ! test -d "$withval/$acl_libdirstem"; then
37676           additional_libdir="$withval/$acl_libdirstem2"
37677         fi
37678       fi
37679     fi
37680
37681 fi
37682
37683       LIBCROCO_0_6=
37684   LTLIBCROCO_0_6=
37685   INCCROCO_0_6=
37686   LIBCROCO_0_6_PREFIX=
37687       HAVE_LIBCROCO_0_6=
37688   rpathdirs=
37689   ltrpathdirs=
37690   names_already_handled=
37691   names_next_round='croco-0.6 glib-2.0'
37692   while test -n "$names_next_round"; do
37693     names_this_round="$names_next_round"
37694     names_next_round=
37695     for name in $names_this_round; do
37696       already_handled=
37697       for n in $names_already_handled; do
37698         if test "$n" = "$name"; then
37699           already_handled=yes
37700           break
37701         fi
37702       done
37703       if test -z "$already_handled"; then
37704         names_already_handled="$names_already_handled $name"
37705                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
37706         eval value=\"\$HAVE_LIB$uppername\"
37707         if test -n "$value"; then
37708           if test "$value" = yes; then
37709             eval value=\"\$LIB$uppername\"
37710             test -z "$value" || LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$value"
37711             eval value=\"\$LTLIB$uppername\"
37712             test -z "$value" || LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$value"
37713           else
37714                                     :
37715           fi
37716         else
37717                               found_dir=
37718           found_la=
37719           found_so=
37720           found_a=
37721           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
37722           if test -n "$acl_shlibext"; then
37723             shrext=".$acl_shlibext"             # typically: shrext=.so
37724           else
37725             shrext=
37726           fi
37727           if test $use_additional = yes; then
37728             dir="$additional_libdir"
37729                                     if test -n "$acl_shlibext"; then
37730               if test -f "$dir/$libname$shrext"; then
37731                 found_dir="$dir"
37732                 found_so="$dir/$libname$shrext"
37733               else
37734                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37735                   ver=`(cd "$dir" && \
37736                         for f in "$libname$shrext".*; do echo "$f"; done \
37737                         | sed -e "s,^$libname$shrext\\\\.,," \
37738                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37739                         | sed 1q ) 2>/dev/null`
37740                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37741                     found_dir="$dir"
37742                     found_so="$dir/$libname$shrext.$ver"
37743                   fi
37744                 else
37745                   eval library_names=\"$acl_library_names_spec\"
37746                   for f in $library_names; do
37747                     if test -f "$dir/$f"; then
37748                       found_dir="$dir"
37749                       found_so="$dir/$f"
37750                       break
37751                     fi
37752                   done
37753                 fi
37754               fi
37755             fi
37756                         if test "X$found_dir" = "X"; then
37757               if test -f "$dir/$libname.$acl_libext"; then
37758                 found_dir="$dir"
37759                 found_a="$dir/$libname.$acl_libext"
37760               fi
37761             fi
37762             if test "X$found_dir" != "X"; then
37763               if test -f "$dir/$libname.la"; then
37764                 found_la="$dir/$libname.la"
37765               fi
37766             fi
37767           fi
37768           if test "X$found_dir" = "X"; then
37769             for x in $LDFLAGS $LTLIBCROCO_0_6; do
37770
37771   acl_save_prefix="$prefix"
37772   prefix="$acl_final_prefix"
37773   acl_save_exec_prefix="$exec_prefix"
37774   exec_prefix="$acl_final_exec_prefix"
37775   eval x=\"$x\"
37776   exec_prefix="$acl_save_exec_prefix"
37777   prefix="$acl_save_prefix"
37778
37779               case "$x" in
37780                 -L*)
37781                   dir=`echo "X$x" | sed -e 's/^X-L//'`
37782                                     if test -n "$acl_shlibext"; then
37783                     if test -f "$dir/$libname$shrext"; then
37784                       found_dir="$dir"
37785                       found_so="$dir/$libname$shrext"
37786                     else
37787                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37788                         ver=`(cd "$dir" && \
37789                               for f in "$libname$shrext".*; do echo "$f"; done \
37790                               | sed -e "s,^$libname$shrext\\\\.,," \
37791                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37792                               | sed 1q ) 2>/dev/null`
37793                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37794                           found_dir="$dir"
37795                           found_so="$dir/$libname$shrext.$ver"
37796                         fi
37797                       else
37798                         eval library_names=\"$acl_library_names_spec\"
37799                         for f in $library_names; do
37800                           if test -f "$dir/$f"; then
37801                             found_dir="$dir"
37802                             found_so="$dir/$f"
37803                             break
37804                           fi
37805                         done
37806                       fi
37807                     fi
37808                   fi
37809                                     if test "X$found_dir" = "X"; then
37810                     if test -f "$dir/$libname.$acl_libext"; then
37811                       found_dir="$dir"
37812                       found_a="$dir/$libname.$acl_libext"
37813                     fi
37814                   fi
37815                   if test "X$found_dir" != "X"; then
37816                     if test -f "$dir/$libname.la"; then
37817                       found_la="$dir/$libname.la"
37818                     fi
37819                   fi
37820                   ;;
37821               esac
37822               if test "X$found_dir" != "X"; then
37823                 break
37824               fi
37825             done
37826           fi
37827           if test "X$found_dir" != "X"; then
37828                         LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$found_dir -l$name"
37829             if test "X$found_so" != "X"; then
37830                                                         if test "$enable_rpath" = no \
37831                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
37832                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
37833                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
37834               else
37835                                                                                 haveit=
37836                 for x in $ltrpathdirs; do
37837                   if test "X$x" = "X$found_dir"; then
37838                     haveit=yes
37839                     break
37840                   fi
37841                 done
37842                 if test -z "$haveit"; then
37843                   ltrpathdirs="$ltrpathdirs $found_dir"
37844                 fi
37845                                 if test "$acl_hardcode_direct" = yes; then
37846                                                       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
37847                 else
37848                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
37849                                                             LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
37850                                                             haveit=
37851                     for x in $rpathdirs; do
37852                       if test "X$x" = "X$found_dir"; then
37853                         haveit=yes
37854                         break
37855                       fi
37856                     done
37857                     if test -z "$haveit"; then
37858                       rpathdirs="$rpathdirs $found_dir"
37859                     fi
37860                   else
37861                                                                                 haveit=
37862                     for x in $LDFLAGS $LIBCROCO_0_6; do
37863
37864   acl_save_prefix="$prefix"
37865   prefix="$acl_final_prefix"
37866   acl_save_exec_prefix="$exec_prefix"
37867   exec_prefix="$acl_final_exec_prefix"
37868   eval x=\"$x\"
37869   exec_prefix="$acl_save_exec_prefix"
37870   prefix="$acl_save_prefix"
37871
37872                       if test "X$x" = "X-L$found_dir"; then
37873                         haveit=yes
37874                         break
37875                       fi
37876                     done
37877                     if test -z "$haveit"; then
37878                       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir"
37879                     fi
37880                     if test "$acl_hardcode_minus_L" != no; then
37881                                                                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
37882                     else
37883                                                                                                                                                                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
37884                     fi
37885                   fi
37886                 fi
37887               fi
37888             else
37889               if test "X$found_a" != "X"; then
37890                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_a"
37891               else
37892                                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir -l$name"
37893               fi
37894             fi
37895                         additional_includedir=
37896             case "$found_dir" in
37897               */$acl_libdirstem | */$acl_libdirstem/)
37898                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
37899                 if test "$name" = 'croco-0.6'; then
37900                   LIBCROCO_0_6_PREFIX="$basedir"
37901                 fi
37902                 additional_includedir="$basedir/include"
37903                 ;;
37904               */$acl_libdirstem2 | */$acl_libdirstem2/)
37905                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
37906                 if test "$name" = 'croco-0.6'; then
37907                   LIBCROCO_0_6_PREFIX="$basedir"
37908                 fi
37909                 additional_includedir="$basedir/include"
37910                 ;;
37911             esac
37912             if test "X$additional_includedir" != "X"; then
37913                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
37914                 haveit=
37915                 if test "X$additional_includedir" = "X/usr/local/include"; then
37916                   if test -n "$GCC"; then
37917                     case $host_os in
37918                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37919                     esac
37920                   fi
37921                 fi
37922                 if test -z "$haveit"; then
37923                   for x in $CPPFLAGS $INCCROCO_0_6; do
37924
37925   acl_save_prefix="$prefix"
37926   prefix="$acl_final_prefix"
37927   acl_save_exec_prefix="$exec_prefix"
37928   exec_prefix="$acl_final_exec_prefix"
37929   eval x=\"$x\"
37930   exec_prefix="$acl_save_exec_prefix"
37931   prefix="$acl_save_prefix"
37932
37933                     if test "X$x" = "X-I$additional_includedir"; then
37934                       haveit=yes
37935                       break
37936                     fi
37937                   done
37938                   if test -z "$haveit"; then
37939                     if test -d "$additional_includedir"; then
37940                                             INCCROCO_0_6="${INCCROCO_0_6}${INCCROCO_0_6:+ }-I$additional_includedir"
37941                     fi
37942                   fi
37943                 fi
37944               fi
37945             fi
37946                         if test -n "$found_la"; then
37947                                                         save_libdir="$libdir"
37948               case "$found_la" in
37949                 */* | *\\*) . "$found_la" ;;
37950                 *) . "./$found_la" ;;
37951               esac
37952               libdir="$save_libdir"
37953                             for dep in $dependency_libs; do
37954                 case "$dep" in
37955                   -L*)
37956                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
37957                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
37958                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
37959                       haveit=
37960                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
37961                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
37962                         if test -n "$GCC"; then
37963                           case $host_os in
37964                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37965                           esac
37966                         fi
37967                       fi
37968                       if test -z "$haveit"; then
37969                         haveit=
37970                         for x in $LDFLAGS $LIBCROCO_0_6; do
37971
37972   acl_save_prefix="$prefix"
37973   prefix="$acl_final_prefix"
37974   acl_save_exec_prefix="$exec_prefix"
37975   exec_prefix="$acl_final_exec_prefix"
37976   eval x=\"$x\"
37977   exec_prefix="$acl_save_exec_prefix"
37978   prefix="$acl_save_prefix"
37979
37980                           if test "X$x" = "X-L$additional_libdir"; then
37981                             haveit=yes
37982                             break
37983                           fi
37984                         done
37985                         if test -z "$haveit"; then
37986                           if test -d "$additional_libdir"; then
37987                                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$additional_libdir"
37988                           fi
37989                         fi
37990                         haveit=
37991                         for x in $LDFLAGS $LTLIBCROCO_0_6; do
37992
37993   acl_save_prefix="$prefix"
37994   prefix="$acl_final_prefix"
37995   acl_save_exec_prefix="$exec_prefix"
37996   exec_prefix="$acl_final_exec_prefix"
37997   eval x=\"$x\"
37998   exec_prefix="$acl_save_exec_prefix"
37999   prefix="$acl_save_prefix"
38000
38001                           if test "X$x" = "X-L$additional_libdir"; then
38002                             haveit=yes
38003                             break
38004                           fi
38005                         done
38006                         if test -z "$haveit"; then
38007                           if test -d "$additional_libdir"; then
38008                                                         LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$additional_libdir"
38009                           fi
38010                         fi
38011                       fi
38012                     fi
38013                     ;;
38014                   -R*)
38015                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
38016                     if test "$enable_rpath" != no; then
38017                                                                   haveit=
38018                       for x in $rpathdirs; do
38019                         if test "X$x" = "X$dir"; then
38020                           haveit=yes
38021                           break
38022                         fi
38023                       done
38024                       if test -z "$haveit"; then
38025                         rpathdirs="$rpathdirs $dir"
38026                       fi
38027                                                                   haveit=
38028                       for x in $ltrpathdirs; do
38029                         if test "X$x" = "X$dir"; then
38030                           haveit=yes
38031                           break
38032                         fi
38033                       done
38034                       if test -z "$haveit"; then
38035                         ltrpathdirs="$ltrpathdirs $dir"
38036                       fi
38037                     fi
38038                     ;;
38039                   -l*)
38040                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
38041                     ;;
38042                   *.la)
38043                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
38044                     ;;
38045                   *)
38046                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$dep"
38047                     LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$dep"
38048                     ;;
38049                 esac
38050               done
38051             fi
38052           else
38053                                                             LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
38054             LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-l$name"
38055           fi
38056         fi
38057       fi
38058     done
38059   done
38060   if test "X$rpathdirs" != "X"; then
38061     if test -n "$acl_hardcode_libdir_separator"; then
38062                         alldirs=
38063       for found_dir in $rpathdirs; do
38064         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
38065       done
38066             acl_save_libdir="$libdir"
38067       libdir="$alldirs"
38068       eval flag=\"$acl_hardcode_libdir_flag_spec\"
38069       libdir="$acl_save_libdir"
38070       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
38071     else
38072             for found_dir in $rpathdirs; do
38073         acl_save_libdir="$libdir"
38074         libdir="$found_dir"
38075         eval flag=\"$acl_hardcode_libdir_flag_spec\"
38076         libdir="$acl_save_libdir"
38077         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
38078       done
38079     fi
38080   fi
38081   if test "X$ltrpathdirs" != "X"; then
38082             for found_dir in $ltrpathdirs; do
38083       LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-R$found_dir"
38084     done
38085   fi
38086
38087
38088
38089
38090
38091
38092       LIBS="$gl_save_LIBS $LIBCROCO_0_6"
38093       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38094 /* end confdefs.h.  */
38095 #include <libcroco-config.h>
38096 int
38097 main ()
38098 {
38099 const char *version = LIBCROCO_VERSION; return !version;
38100   ;
38101   return 0;
38102 }
38103 _ACEOF
38104 if ac_fn_c_try_link "$LINENO"; then :
38105   gl_cv_libcroco=yes
38106          gl_cv_LIBCROCO="$LIBCROCO_0_6"
38107          gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
38108
38109 fi
38110 rm -f core conftest.err conftest.$ac_objext \
38111     conftest$ac_exeext conftest.$ac_ext
38112       if test "$gl_cv_libcroco" != yes; then
38113         gl_save_CPPFLAGS="$CPPFLAGS"
38114         CPPFLAGS="$CPPFLAGS $INCCROCO_0_6"
38115         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38116 /* end confdefs.h.  */
38117 #include <libcroco-config.h>
38118 int
38119 main ()
38120 {
38121 const char *version = LIBCROCO_VERSION; return !version;
38122   ;
38123   return 0;
38124 }
38125 _ACEOF
38126 if ac_fn_c_try_link "$LINENO"; then :
38127   gl_cv_libcroco=yes
38128            gl_cv_LIBCROCO="$LIBCROCO_0_6"
38129            gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
38130            gl_cv_INCCROCO="$INCCROCO_0_6"
38131
38132 fi
38133 rm -f core conftest.err conftest.$ac_objext \
38134     conftest$ac_exeext conftest.$ac_ext
38135         if test "$gl_cv_libcroco" != yes; then
38136                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38137 /* end confdefs.h.  */
38138 #include <libcroco-0.6/libcroco/libcroco-config.h>
38139 int
38140 main ()
38141 {
38142 const char *version = LIBCROCO_VERSION; return !version;
38143   ;
38144   return 0;
38145 }
38146 _ACEOF
38147 if ac_fn_c_try_link "$LINENO"; then :
38148
38149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>" >&5
38150 $as_echo_n "checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>... " >&6; }
38151 if ${gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h+:} false; then :
38152   $as_echo_n "(cached) " >&6
38153 else
38154           if test $ac_cv_header_libcroco_0_6_libcroco_libcroco_config_h = yes; then
38155
38156
38157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38158 /* end confdefs.h.  */
38159 #include <libcroco-0.6/libcroco/libcroco-config.h>
38160 _ACEOF
38161                 case "$host_os" in
38162     aix*) gl_absname_cpp="$ac_cpp -C" ;;
38163     *)    gl_absname_cpp="$ac_cpp" ;;
38164   esac
38165
38166   case "$host_os" in
38167     mingw*)
38168                                           gl_dirsep_regex='[/\\]'
38169       ;;
38170     *)
38171       gl_dirsep_regex='\/'
38172       ;;
38173   esac
38174       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
38175   gl_header_literal_regex=`echo 'libcroco-0.6/libcroco/libcroco-config.h' \
38176                            | sed -e "$gl_make_literal_regex_sed"`
38177   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
38178       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
38179       s|^/[^/]|//&|
38180       p
38181       q
38182     }'
38183
38184         gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38185   sed -n "$gl_absolute_header_sed"`
38186
38187     fi
38188
38189 fi
38190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&5
38191 $as_echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&6; }
38192 cat >>confdefs.h <<_ACEOF
38193 #define ABSOLUTE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h"
38194 _ACEOF
38195
38196
38197              libcroco_include_dir=`echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" | sed -e 's,.libcroco-config\.h$,,'`
38198              if test -d "$libcroco_include_dir"; then
38199                gl_cv_libcroco=yes
38200                gl_cv_LIBCROCO="$LIBCROCO_0_6"
38201                gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
38202                gl_cv_INCCROCO="-I$libcroco_include_dir"
38203              fi
38204
38205 fi
38206 rm -f core conftest.err conftest.$ac_objext \
38207     conftest$ac_exeext conftest.$ac_ext
38208         fi
38209         CPPFLAGS="$gl_save_CPPFLAGS"
38210       fi
38211       LIBS="$gl_save_LIBS"
38212
38213 fi
38214
38215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcroco" >&5
38216 $as_echo_n "checking for libcroco... " >&6; }
38217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco" >&5
38218 $as_echo "$gl_cv_libcroco" >&6; }
38219     if test $gl_cv_libcroco = yes; then
38220       LIBCROCO="$gl_cv_LIBCROCO"
38221       LTLIBCROCO="$gl_cv_LTLIBCROCO"
38222       INCCROCO="$gl_cv_INCCROCO"
38223     else
38224       gl_cv_libcroco_use_included=yes
38225     fi
38226   fi
38227
38228
38229
38230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libcroco" >&5
38231 $as_echo_n "checking whether to use the included libcroco... " >&6; }
38232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_use_included" >&5
38233 $as_echo "$gl_cv_libcroco_use_included" >&6; }
38234
38235    if test "$gl_cv_libcroco_use_included" = yes; then
38236   INCLUDED_LIBCROCO_TRUE=
38237   INCLUDED_LIBCROCO_FALSE='#'
38238 else
38239   INCLUDED_LIBCROCO_TRUE='#'
38240   INCLUDED_LIBCROCO_FALSE=
38241 fi
38242
38243
38244
38245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
38246 $as_echo_n "checking whether included glib is requested... " >&6; }
38247
38248 # Check whether --with-included-glib was given.
38249 if test "${with_included_glib+set}" = set; then :
38250   withval=$with_included_glib; gl_cv_libglib_force_included=$withval
38251 else
38252   gl_cv_libglib_force_included=no
38253 fi
38254
38255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
38256 $as_echo "$gl_cv_libglib_force_included" >&6; }
38257
38258   gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
38259   LIBGLIB=
38260   LTLIBGLIB=
38261   INCGLIB=
38262   if test "$gl_cv_libglib_use_included" != yes; then
38263             if ${gl_cv_libglib+:} false; then :
38264   $as_echo_n "(cached) " >&6
38265 else
38266
38267       gl_cv_libglib=no
38268       gl_cv_LIBGLIB=
38269       gl_cv_LTLIBGLIB=
38270       gl_cv_INCGLIB=
38271       gl_save_LIBS="$LIBS"
38272
38273
38274
38275
38276
38277
38278
38279     use_additional=yes
38280
38281   acl_save_prefix="$prefix"
38282   prefix="$acl_final_prefix"
38283   acl_save_exec_prefix="$exec_prefix"
38284   exec_prefix="$acl_final_exec_prefix"
38285
38286     eval additional_includedir=\"$includedir\"
38287     eval additional_libdir=\"$libdir\"
38288
38289   exec_prefix="$acl_save_exec_prefix"
38290   prefix="$acl_save_prefix"
38291
38292
38293 # Check whether --with-libglib-2.0-prefix was given.
38294 if test "${with_libglib_2_0_prefix+set}" = set; then :
38295   withval=$with_libglib_2_0_prefix;
38296     if test "X$withval" = "Xno"; then
38297       use_additional=no
38298     else
38299       if test "X$withval" = "X"; then
38300
38301   acl_save_prefix="$prefix"
38302   prefix="$acl_final_prefix"
38303   acl_save_exec_prefix="$exec_prefix"
38304   exec_prefix="$acl_final_exec_prefix"
38305
38306           eval additional_includedir=\"$includedir\"
38307           eval additional_libdir=\"$libdir\"
38308
38309   exec_prefix="$acl_save_exec_prefix"
38310   prefix="$acl_save_prefix"
38311
38312       else
38313         additional_includedir="$withval/include"
38314         additional_libdir="$withval/$acl_libdirstem"
38315         if test "$acl_libdirstem2" != "$acl_libdirstem" \
38316            && ! test -d "$withval/$acl_libdirstem"; then
38317           additional_libdir="$withval/$acl_libdirstem2"
38318         fi
38319       fi
38320     fi
38321
38322 fi
38323
38324       LIBGLIB_2_0=
38325   LTLIBGLIB_2_0=
38326   INCGLIB_2_0=
38327   LIBGLIB_2_0_PREFIX=
38328       HAVE_LIBGLIB_2_0=
38329   rpathdirs=
38330   ltrpathdirs=
38331   names_already_handled=
38332   names_next_round='glib-2.0 '
38333   while test -n "$names_next_round"; do
38334     names_this_round="$names_next_round"
38335     names_next_round=
38336     for name in $names_this_round; do
38337       already_handled=
38338       for n in $names_already_handled; do
38339         if test "$n" = "$name"; then
38340           already_handled=yes
38341           break
38342         fi
38343       done
38344       if test -z "$already_handled"; then
38345         names_already_handled="$names_already_handled $name"
38346                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
38347         eval value=\"\$HAVE_LIB$uppername\"
38348         if test -n "$value"; then
38349           if test "$value" = yes; then
38350             eval value=\"\$LIB$uppername\"
38351             test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
38352             eval value=\"\$LTLIB$uppername\"
38353             test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
38354           else
38355                                     :
38356           fi
38357         else
38358                               found_dir=
38359           found_la=
38360           found_so=
38361           found_a=
38362           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
38363           if test -n "$acl_shlibext"; then
38364             shrext=".$acl_shlibext"             # typically: shrext=.so
38365           else
38366             shrext=
38367           fi
38368           if test $use_additional = yes; then
38369             dir="$additional_libdir"
38370                                     if test -n "$acl_shlibext"; then
38371               if test -f "$dir/$libname$shrext"; then
38372                 found_dir="$dir"
38373                 found_so="$dir/$libname$shrext"
38374               else
38375                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
38376                   ver=`(cd "$dir" && \
38377                         for f in "$libname$shrext".*; do echo "$f"; done \
38378                         | sed -e "s,^$libname$shrext\\\\.,," \
38379                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
38380                         | sed 1q ) 2>/dev/null`
38381                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
38382                     found_dir="$dir"
38383                     found_so="$dir/$libname$shrext.$ver"
38384                   fi
38385                 else
38386                   eval library_names=\"$acl_library_names_spec\"
38387                   for f in $library_names; do
38388                     if test -f "$dir/$f"; then
38389                       found_dir="$dir"
38390                       found_so="$dir/$f"
38391                       break
38392                     fi
38393                   done
38394                 fi
38395               fi
38396             fi
38397                         if test "X$found_dir" = "X"; then
38398               if test -f "$dir/$libname.$acl_libext"; then
38399                 found_dir="$dir"
38400                 found_a="$dir/$libname.$acl_libext"
38401               fi
38402             fi
38403             if test "X$found_dir" != "X"; then
38404               if test -f "$dir/$libname.la"; then
38405                 found_la="$dir/$libname.la"
38406               fi
38407             fi
38408           fi
38409           if test "X$found_dir" = "X"; then
38410             for x in $LDFLAGS $LTLIBGLIB_2_0; do
38411
38412   acl_save_prefix="$prefix"
38413   prefix="$acl_final_prefix"
38414   acl_save_exec_prefix="$exec_prefix"
38415   exec_prefix="$acl_final_exec_prefix"
38416   eval x=\"$x\"
38417   exec_prefix="$acl_save_exec_prefix"
38418   prefix="$acl_save_prefix"
38419
38420               case "$x" in
38421                 -L*)
38422                   dir=`echo "X$x" | sed -e 's/^X-L//'`
38423                                     if test -n "$acl_shlibext"; then
38424                     if test -f "$dir/$libname$shrext"; then
38425                       found_dir="$dir"
38426                       found_so="$dir/$libname$shrext"
38427                     else
38428                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
38429                         ver=`(cd "$dir" && \
38430                               for f in "$libname$shrext".*; do echo "$f"; done \
38431                               | sed -e "s,^$libname$shrext\\\\.,," \
38432                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
38433                               | sed 1q ) 2>/dev/null`
38434                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
38435                           found_dir="$dir"
38436                           found_so="$dir/$libname$shrext.$ver"
38437                         fi
38438                       else
38439                         eval library_names=\"$acl_library_names_spec\"
38440                         for f in $library_names; do
38441                           if test -f "$dir/$f"; then
38442                             found_dir="$dir"
38443                             found_so="$dir/$f"
38444                             break
38445                           fi
38446                         done
38447                       fi
38448                     fi
38449                   fi
38450                                     if test "X$found_dir" = "X"; then
38451                     if test -f "$dir/$libname.$acl_libext"; then
38452                       found_dir="$dir"
38453                       found_a="$dir/$libname.$acl_libext"
38454                     fi
38455                   fi
38456                   if test "X$found_dir" != "X"; then
38457                     if test -f "$dir/$libname.la"; then
38458                       found_la="$dir/$libname.la"
38459                     fi
38460                   fi
38461                   ;;
38462               esac
38463               if test "X$found_dir" != "X"; then
38464                 break
38465               fi
38466             done
38467           fi
38468           if test "X$found_dir" != "X"; then
38469                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
38470             if test "X$found_so" != "X"; then
38471                                                         if test "$enable_rpath" = no \
38472                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
38473                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
38474                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
38475               else
38476                                                                                 haveit=
38477                 for x in $ltrpathdirs; do
38478                   if test "X$x" = "X$found_dir"; then
38479                     haveit=yes
38480                     break
38481                   fi
38482                 done
38483                 if test -z "$haveit"; then
38484                   ltrpathdirs="$ltrpathdirs $found_dir"
38485                 fi
38486                                 if test "$acl_hardcode_direct" = yes; then
38487                                                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
38488                 else
38489                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
38490                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
38491                                                             haveit=
38492                     for x in $rpathdirs; do
38493                       if test "X$x" = "X$found_dir"; then
38494                         haveit=yes
38495                         break
38496                       fi
38497                     done
38498                     if test -z "$haveit"; then
38499                       rpathdirs="$rpathdirs $found_dir"
38500                     fi
38501                   else
38502                                                                                 haveit=
38503                     for x in $LDFLAGS $LIBGLIB_2_0; do
38504
38505   acl_save_prefix="$prefix"
38506   prefix="$acl_final_prefix"
38507   acl_save_exec_prefix="$exec_prefix"
38508   exec_prefix="$acl_final_exec_prefix"
38509   eval x=\"$x\"
38510   exec_prefix="$acl_save_exec_prefix"
38511   prefix="$acl_save_prefix"
38512
38513                       if test "X$x" = "X-L$found_dir"; then
38514                         haveit=yes
38515                         break
38516                       fi
38517                     done
38518                     if test -z "$haveit"; then
38519                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
38520                     fi
38521                     if test "$acl_hardcode_minus_L" != no; then
38522                                                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
38523                     else
38524                                                                                                                                                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
38525                     fi
38526                   fi
38527                 fi
38528               fi
38529             else
38530               if test "X$found_a" != "X"; then
38531                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
38532               else
38533                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
38534               fi
38535             fi
38536                         additional_includedir=
38537             case "$found_dir" in
38538               */$acl_libdirstem | */$acl_libdirstem/)
38539                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
38540                 if test "$name" = 'glib-2.0'; then
38541                   LIBGLIB_2_0_PREFIX="$basedir"
38542                 fi
38543                 additional_includedir="$basedir/include"
38544                 ;;
38545               */$acl_libdirstem2 | */$acl_libdirstem2/)
38546                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
38547                 if test "$name" = 'glib-2.0'; then
38548                   LIBGLIB_2_0_PREFIX="$basedir"
38549                 fi
38550                 additional_includedir="$basedir/include"
38551                 ;;
38552             esac
38553             if test "X$additional_includedir" != "X"; then
38554                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
38555                 haveit=
38556                 if test "X$additional_includedir" = "X/usr/local/include"; then
38557                   if test -n "$GCC"; then
38558                     case $host_os in
38559                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38560                     esac
38561                   fi
38562                 fi
38563                 if test -z "$haveit"; then
38564                   for x in $CPPFLAGS $INCGLIB_2_0; do
38565
38566   acl_save_prefix="$prefix"
38567   prefix="$acl_final_prefix"
38568   acl_save_exec_prefix="$exec_prefix"
38569   exec_prefix="$acl_final_exec_prefix"
38570   eval x=\"$x\"
38571   exec_prefix="$acl_save_exec_prefix"
38572   prefix="$acl_save_prefix"
38573
38574                     if test "X$x" = "X-I$additional_includedir"; then
38575                       haveit=yes
38576                       break
38577                     fi
38578                   done
38579                   if test -z "$haveit"; then
38580                     if test -d "$additional_includedir"; then
38581                                             INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
38582                     fi
38583                   fi
38584                 fi
38585               fi
38586             fi
38587                         if test -n "$found_la"; then
38588                                                         save_libdir="$libdir"
38589               case "$found_la" in
38590                 */* | *\\*) . "$found_la" ;;
38591                 *) . "./$found_la" ;;
38592               esac
38593               libdir="$save_libdir"
38594                             for dep in $dependency_libs; do
38595                 case "$dep" in
38596                   -L*)
38597                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
38598                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
38599                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
38600                       haveit=
38601                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
38602                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
38603                         if test -n "$GCC"; then
38604                           case $host_os in
38605                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38606                           esac
38607                         fi
38608                       fi
38609                       if test -z "$haveit"; then
38610                         haveit=
38611                         for x in $LDFLAGS $LIBGLIB_2_0; do
38612
38613   acl_save_prefix="$prefix"
38614   prefix="$acl_final_prefix"
38615   acl_save_exec_prefix="$exec_prefix"
38616   exec_prefix="$acl_final_exec_prefix"
38617   eval x=\"$x\"
38618   exec_prefix="$acl_save_exec_prefix"
38619   prefix="$acl_save_prefix"
38620
38621                           if test "X$x" = "X-L$additional_libdir"; then
38622                             haveit=yes
38623                             break
38624                           fi
38625                         done
38626                         if test -z "$haveit"; then
38627                           if test -d "$additional_libdir"; then
38628                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
38629                           fi
38630                         fi
38631                         haveit=
38632                         for x in $LDFLAGS $LTLIBGLIB_2_0; do
38633
38634   acl_save_prefix="$prefix"
38635   prefix="$acl_final_prefix"
38636   acl_save_exec_prefix="$exec_prefix"
38637   exec_prefix="$acl_final_exec_prefix"
38638   eval x=\"$x\"
38639   exec_prefix="$acl_save_exec_prefix"
38640   prefix="$acl_save_prefix"
38641
38642                           if test "X$x" = "X-L$additional_libdir"; then
38643                             haveit=yes
38644                             break
38645                           fi
38646                         done
38647                         if test -z "$haveit"; then
38648                           if test -d "$additional_libdir"; then
38649                                                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
38650                           fi
38651                         fi
38652                       fi
38653                     fi
38654                     ;;
38655                   -R*)
38656                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
38657                     if test "$enable_rpath" != no; then
38658                                                                   haveit=
38659                       for x in $rpathdirs; do
38660                         if test "X$x" = "X$dir"; then
38661                           haveit=yes
38662                           break
38663                         fi
38664                       done
38665                       if test -z "$haveit"; then
38666                         rpathdirs="$rpathdirs $dir"
38667                       fi
38668                                                                   haveit=
38669                       for x in $ltrpathdirs; do
38670                         if test "X$x" = "X$dir"; then
38671                           haveit=yes
38672                           break
38673                         fi
38674                       done
38675                       if test -z "$haveit"; then
38676                         ltrpathdirs="$ltrpathdirs $dir"
38677                       fi
38678                     fi
38679                     ;;
38680                   -l*)
38681                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
38682                     ;;
38683                   *.la)
38684                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
38685                     ;;
38686                   *)
38687                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
38688                     LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
38689                     ;;
38690                 esac
38691               done
38692             fi
38693           else
38694                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
38695             LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
38696           fi
38697         fi
38698       fi
38699     done
38700   done
38701   if test "X$rpathdirs" != "X"; then
38702     if test -n "$acl_hardcode_libdir_separator"; then
38703                         alldirs=
38704       for found_dir in $rpathdirs; do
38705         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
38706       done
38707             acl_save_libdir="$libdir"
38708       libdir="$alldirs"
38709       eval flag=\"$acl_hardcode_libdir_flag_spec\"
38710       libdir="$acl_save_libdir"
38711       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
38712     else
38713             for found_dir in $rpathdirs; do
38714         acl_save_libdir="$libdir"
38715         libdir="$found_dir"
38716         eval flag=\"$acl_hardcode_libdir_flag_spec\"
38717         libdir="$acl_save_libdir"
38718         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
38719       done
38720     fi
38721   fi
38722   if test "X$ltrpathdirs" != "X"; then
38723             for found_dir in $ltrpathdirs; do
38724       LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
38725     done
38726   fi
38727
38728
38729
38730
38731
38732
38733       LIBS="$gl_save_LIBS $LIBGLIB_2_0"
38734       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38735 /* end confdefs.h.  */
38736 #include <glib.h>
38737 #ifndef G_BEGIN_DECLS
38738 error this glib.h includes a glibconfig.h from a glib version 1.x
38739 #endif
38740
38741 int
38742 main ()
38743 {
38744 g_string_new ("foo");
38745   ;
38746   return 0;
38747 }
38748 _ACEOF
38749 if ac_fn_c_try_link "$LINENO"; then :
38750   gl_cv_libglib=yes
38751          gl_cv_LIBGLIB="$LIBGLIB_2_0"
38752          gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
38753
38754 fi
38755 rm -f core conftest.err conftest.$ac_objext \
38756     conftest$ac_exeext conftest.$ac_ext
38757       if test "$gl_cv_libglib" != yes; then
38758         gl_save_CPPFLAGS="$CPPFLAGS"
38759         CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
38760         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38761 /* end confdefs.h.  */
38762 #include <glib.h>
38763 #ifndef G_BEGIN_DECLS
38764 error this glib.h includes a glibconfig.h from a glib version 1.x
38765 #endif
38766
38767 int
38768 main ()
38769 {
38770 g_string_new ("foo");
38771   ;
38772   return 0;
38773 }
38774 _ACEOF
38775 if ac_fn_c_try_link "$LINENO"; then :
38776   gl_cv_libglib=yes
38777            gl_cv_LIBGLIB="$LIBGLIB_2_0"
38778            gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
38779            gl_cv_INCGLIB="$INCGLIB_2_0"
38780
38781 fi
38782 rm -f core conftest.err conftest.$ac_objext \
38783     conftest$ac_exeext conftest.$ac_ext
38784         if test "$gl_cv_libglib" != yes; then
38785                               if test -n "$LIBGLIB_2_0_PREFIX"; then
38786             CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
38787             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38788 /* end confdefs.h.  */
38789 #include <glib.h>
38790 #ifndef G_BEGIN_DECLS
38791 error this glib.h includes a glibconfig.h from a glib version 1.x
38792 #endif
38793
38794 int
38795 main ()
38796 {
38797 g_string_new ("foo");
38798   ;
38799   return 0;
38800 }
38801 _ACEOF
38802 if ac_fn_c_try_link "$LINENO"; then :
38803   gl_cv_libglib=yes
38804                gl_cv_LIBGLIB="$LIBGLIB_2_0"
38805                gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
38806                gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
38807
38808 fi
38809 rm -f core conftest.err conftest.$ac_objext \
38810     conftest$ac_exeext conftest.$ac_ext
38811           fi
38812         fi
38813         CPPFLAGS="$gl_save_CPPFLAGS"
38814       fi
38815       LIBS="$gl_save_LIBS"
38816
38817 fi
38818
38819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
38820 $as_echo_n "checking for glib... " >&6; }
38821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
38822 $as_echo "$gl_cv_libglib" >&6; }
38823     if test $gl_cv_libglib = yes; then
38824       LIBGLIB="$gl_cv_LIBGLIB"
38825       LTLIBGLIB="$gl_cv_LTLIBGLIB"
38826       INCGLIB="$gl_cv_INCGLIB"
38827     else
38828       gl_cv_libglib_use_included=yes
38829     fi
38830   fi
38831
38832
38833
38834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
38835 $as_echo_n "checking whether to use the included glib... " >&6; }
38836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
38837 $as_echo "$gl_cv_libglib_use_included" >&6; }
38838
38839   if test "$gl_cv_libglib_use_included" = yes; then
38840     LIBGLIB_H=
38841     LIBGLIB_H="$LIBGLIB_H glib.h"
38842     LIBGLIB_H="$LIBGLIB_H glibconfig.h"
38843     LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
38844     LIBGLIB_H="$LIBGLIB_H glib/glist.h"
38845     LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
38846     LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
38847     LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
38848     LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
38849
38850     for ac_header in unistd.h
38851 do :
38852   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
38853 if test "x$ac_cv_header_unistd_h" = xyes; then :
38854   cat >>confdefs.h <<_ACEOF
38855 #define HAVE_UNISTD_H 1
38856 _ACEOF
38857
38858 fi
38859
38860 done
38861
38862       else
38863     LIBGLIB_H=
38864   fi
38865
38866
38867    if test "$gl_cv_libglib_use_included" = yes; then
38868   INCLUDED_LIBGLIB_TRUE=
38869   INCLUDED_LIBGLIB_FALSE='#'
38870 else
38871   INCLUDED_LIBGLIB_TRUE='#'
38872   INCLUDED_LIBGLIB_FALSE=
38873 fi
38874
38875
38876
38877
38878
38879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
38880 $as_echo_n "checking whether to use the included libunistring... " >&6; }
38881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
38882 $as_echo "$gl_libunistring_use_included" >&6; }
38883
38884
38885
38886
38887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libxml is requested" >&5
38888 $as_echo_n "checking whether included libxml is requested... " >&6; }
38889
38890 # Check whether --with-included-libxml was given.
38891 if test "${with_included_libxml+set}" = set; then :
38892   withval=$with_included_libxml; gl_cv_libxml_force_included=$withval
38893 else
38894   gl_cv_libxml_force_included=no
38895 fi
38896
38897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_force_included" >&5
38898 $as_echo "$gl_cv_libxml_force_included" >&6; }
38899
38900   gl_cv_libxml_use_included="$gl_cv_libxml_force_included"
38901   LIBXML=
38902   LTLIBXML=
38903   INCXML=
38904   if test "$gl_cv_libxml_use_included" != yes; then
38905             if ${gl_cv_libxml+:} false; then :
38906   $as_echo_n "(cached) " >&6
38907 else
38908
38909       gl_cv_libxml=no
38910       gl_cv_LIBXML=
38911       gl_cv_LTLIBXML=
38912       gl_cv_INCXML=
38913       gl_save_LIBS="$LIBS"
38914       LIBS="$LIBS $LIBICONV"
38915
38916
38917
38918
38919
38920
38921
38922     use_additional=yes
38923
38924   acl_save_prefix="$prefix"
38925   prefix="$acl_final_prefix"
38926   acl_save_exec_prefix="$exec_prefix"
38927   exec_prefix="$acl_final_exec_prefix"
38928
38929     eval additional_includedir=\"$includedir\"
38930     eval additional_libdir=\"$libdir\"
38931
38932   exec_prefix="$acl_save_exec_prefix"
38933   prefix="$acl_save_prefix"
38934
38935
38936 # Check whether --with-libxml2-prefix was given.
38937 if test "${with_libxml2_prefix+set}" = set; then :
38938   withval=$with_libxml2_prefix;
38939     if test "X$withval" = "Xno"; then
38940       use_additional=no
38941     else
38942       if test "X$withval" = "X"; then
38943
38944   acl_save_prefix="$prefix"
38945   prefix="$acl_final_prefix"
38946   acl_save_exec_prefix="$exec_prefix"
38947   exec_prefix="$acl_final_exec_prefix"
38948
38949           eval additional_includedir=\"$includedir\"
38950           eval additional_libdir=\"$libdir\"
38951
38952   exec_prefix="$acl_save_exec_prefix"
38953   prefix="$acl_save_prefix"
38954
38955       else
38956         additional_includedir="$withval/include"
38957         additional_libdir="$withval/$acl_libdirstem"
38958         if test "$acl_libdirstem2" != "$acl_libdirstem" \
38959            && ! test -d "$withval/$acl_libdirstem"; then
38960           additional_libdir="$withval/$acl_libdirstem2"
38961         fi
38962       fi
38963     fi
38964
38965 fi
38966
38967       LIBXML2=
38968   LTLIBXML2=
38969   INCXML2=
38970   LIBXML2_PREFIX=
38971       HAVE_LIBXML2=
38972   rpathdirs=
38973   ltrpathdirs=
38974   names_already_handled=
38975   names_next_round='xml2 '
38976   while test -n "$names_next_round"; do
38977     names_this_round="$names_next_round"
38978     names_next_round=
38979     for name in $names_this_round; do
38980       already_handled=
38981       for n in $names_already_handled; do
38982         if test "$n" = "$name"; then
38983           already_handled=yes
38984           break
38985         fi
38986       done
38987       if test -z "$already_handled"; then
38988         names_already_handled="$names_already_handled $name"
38989                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
38990         eval value=\"\$HAVE_LIB$uppername\"
38991         if test -n "$value"; then
38992           if test "$value" = yes; then
38993             eval value=\"\$LIB$uppername\"
38994             test -z "$value" || LIBXML2="${LIBXML2}${LIBXML2:+ }$value"
38995             eval value=\"\$LTLIB$uppername\"
38996             test -z "$value" || LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$value"
38997           else
38998                                     :
38999           fi
39000         else
39001                               found_dir=
39002           found_la=
39003           found_so=
39004           found_a=
39005           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
39006           if test -n "$acl_shlibext"; then
39007             shrext=".$acl_shlibext"             # typically: shrext=.so
39008           else
39009             shrext=
39010           fi
39011           if test $use_additional = yes; then
39012             dir="$additional_libdir"
39013                                     if test -n "$acl_shlibext"; then
39014               if test -f "$dir/$libname$shrext"; then
39015                 found_dir="$dir"
39016                 found_so="$dir/$libname$shrext"
39017               else
39018                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39019                   ver=`(cd "$dir" && \
39020                         for f in "$libname$shrext".*; do echo "$f"; done \
39021                         | sed -e "s,^$libname$shrext\\\\.,," \
39022                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39023                         | sed 1q ) 2>/dev/null`
39024                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39025                     found_dir="$dir"
39026                     found_so="$dir/$libname$shrext.$ver"
39027                   fi
39028                 else
39029                   eval library_names=\"$acl_library_names_spec\"
39030                   for f in $library_names; do
39031                     if test -f "$dir/$f"; then
39032                       found_dir="$dir"
39033                       found_so="$dir/$f"
39034                       break
39035                     fi
39036                   done
39037                 fi
39038               fi
39039             fi
39040                         if test "X$found_dir" = "X"; then
39041               if test -f "$dir/$libname.$acl_libext"; then
39042                 found_dir="$dir"
39043                 found_a="$dir/$libname.$acl_libext"
39044               fi
39045             fi
39046             if test "X$found_dir" != "X"; then
39047               if test -f "$dir/$libname.la"; then
39048                 found_la="$dir/$libname.la"
39049               fi
39050             fi
39051           fi
39052           if test "X$found_dir" = "X"; then
39053             for x in $LDFLAGS $LTLIBXML2; do
39054
39055   acl_save_prefix="$prefix"
39056   prefix="$acl_final_prefix"
39057   acl_save_exec_prefix="$exec_prefix"
39058   exec_prefix="$acl_final_exec_prefix"
39059   eval x=\"$x\"
39060   exec_prefix="$acl_save_exec_prefix"
39061   prefix="$acl_save_prefix"
39062
39063               case "$x" in
39064                 -L*)
39065                   dir=`echo "X$x" | sed -e 's/^X-L//'`
39066                                     if test -n "$acl_shlibext"; then
39067                     if test -f "$dir/$libname$shrext"; then
39068                       found_dir="$dir"
39069                       found_so="$dir/$libname$shrext"
39070                     else
39071                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
39072                         ver=`(cd "$dir" && \
39073                               for f in "$libname$shrext".*; do echo "$f"; done \
39074                               | sed -e "s,^$libname$shrext\\\\.,," \
39075                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
39076                               | sed 1q ) 2>/dev/null`
39077                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
39078                           found_dir="$dir"
39079                           found_so="$dir/$libname$shrext.$ver"
39080                         fi
39081                       else
39082                         eval library_names=\"$acl_library_names_spec\"
39083                         for f in $library_names; do
39084                           if test -f "$dir/$f"; then
39085                             found_dir="$dir"
39086                             found_so="$dir/$f"
39087                             break
39088                           fi
39089                         done
39090                       fi
39091                     fi
39092                   fi
39093                                     if test "X$found_dir" = "X"; then
39094                     if test -f "$dir/$libname.$acl_libext"; then
39095                       found_dir="$dir"
39096                       found_a="$dir/$libname.$acl_libext"
39097                     fi
39098                   fi
39099                   if test "X$found_dir" != "X"; then
39100                     if test -f "$dir/$libname.la"; then
39101                       found_la="$dir/$libname.la"
39102                     fi
39103                   fi
39104                   ;;
39105               esac
39106               if test "X$found_dir" != "X"; then
39107                 break
39108               fi
39109             done
39110           fi
39111           if test "X$found_dir" != "X"; then
39112                         LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$found_dir -l$name"
39113             if test "X$found_so" != "X"; then
39114                                                         if test "$enable_rpath" = no \
39115                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
39116                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
39117                                 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
39118               else
39119                                                                                 haveit=
39120                 for x in $ltrpathdirs; do
39121                   if test "X$x" = "X$found_dir"; then
39122                     haveit=yes
39123                     break
39124                   fi
39125                 done
39126                 if test -z "$haveit"; then
39127                   ltrpathdirs="$ltrpathdirs $found_dir"
39128                 fi
39129                                 if test "$acl_hardcode_direct" = yes; then
39130                                                       LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
39131                 else
39132                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
39133                                                             LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
39134                                                             haveit=
39135                     for x in $rpathdirs; do
39136                       if test "X$x" = "X$found_dir"; then
39137                         haveit=yes
39138                         break
39139                       fi
39140                     done
39141                     if test -z "$haveit"; then
39142                       rpathdirs="$rpathdirs $found_dir"
39143                     fi
39144                   else
39145                                                                                 haveit=
39146                     for x in $LDFLAGS $LIBXML2; do
39147
39148   acl_save_prefix="$prefix"
39149   prefix="$acl_final_prefix"
39150   acl_save_exec_prefix="$exec_prefix"
39151   exec_prefix="$acl_final_exec_prefix"
39152   eval x=\"$x\"
39153   exec_prefix="$acl_save_exec_prefix"
39154   prefix="$acl_save_prefix"
39155
39156                       if test "X$x" = "X-L$found_dir"; then
39157                         haveit=yes
39158                         break
39159                       fi
39160                     done
39161                     if test -z "$haveit"; then
39162                       LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir"
39163                     fi
39164                     if test "$acl_hardcode_minus_L" != no; then
39165                                                                                         LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
39166                     else
39167                                                                                                                                                                                 LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
39168                     fi
39169                   fi
39170                 fi
39171               fi
39172             else
39173               if test "X$found_a" != "X"; then
39174                                 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_a"
39175               else
39176                                                 LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir -l$name"
39177               fi
39178             fi
39179                         additional_includedir=
39180             case "$found_dir" in
39181               */$acl_libdirstem | */$acl_libdirstem/)
39182                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39183                 if test "$name" = 'xml2'; then
39184                   LIBXML2_PREFIX="$basedir"
39185                 fi
39186                 additional_includedir="$basedir/include"
39187                 ;;
39188               */$acl_libdirstem2 | */$acl_libdirstem2/)
39189                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
39190                 if test "$name" = 'xml2'; then
39191                   LIBXML2_PREFIX="$basedir"
39192                 fi
39193                 additional_includedir="$basedir/include"
39194                 ;;
39195             esac
39196             if test "X$additional_includedir" != "X"; then
39197                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
39198                 haveit=
39199                 if test "X$additional_includedir" = "X/usr/local/include"; then
39200                   if test -n "$GCC"; then
39201                     case $host_os in
39202                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39203                     esac
39204                   fi
39205                 fi
39206                 if test -z "$haveit"; then
39207                   for x in $CPPFLAGS $INCXML2; do
39208
39209   acl_save_prefix="$prefix"
39210   prefix="$acl_final_prefix"
39211   acl_save_exec_prefix="$exec_prefix"
39212   exec_prefix="$acl_final_exec_prefix"
39213   eval x=\"$x\"
39214   exec_prefix="$acl_save_exec_prefix"
39215   prefix="$acl_save_prefix"
39216
39217                     if test "X$x" = "X-I$additional_includedir"; then
39218                       haveit=yes
39219                       break
39220                     fi
39221                   done
39222                   if test -z "$haveit"; then
39223                     if test -d "$additional_includedir"; then
39224                                             INCXML2="${INCXML2}${INCXML2:+ }-I$additional_includedir"
39225                     fi
39226                   fi
39227                 fi
39228               fi
39229             fi
39230                         if test -n "$found_la"; then
39231                                                         save_libdir="$libdir"
39232               case "$found_la" in
39233                 */* | *\\*) . "$found_la" ;;
39234                 *) . "./$found_la" ;;
39235               esac
39236               libdir="$save_libdir"
39237                             for dep in $dependency_libs; do
39238                 case "$dep" in
39239                   -L*)
39240                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39241                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
39242                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
39243                       haveit=
39244                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
39245                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
39246                         if test -n "$GCC"; then
39247                           case $host_os in
39248                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39249                           esac
39250                         fi
39251                       fi
39252                       if test -z "$haveit"; then
39253                         haveit=
39254                         for x in $LDFLAGS $LIBXML2; do
39255
39256   acl_save_prefix="$prefix"
39257   prefix="$acl_final_prefix"
39258   acl_save_exec_prefix="$exec_prefix"
39259   exec_prefix="$acl_final_exec_prefix"
39260   eval x=\"$x\"
39261   exec_prefix="$acl_save_exec_prefix"
39262   prefix="$acl_save_prefix"
39263
39264                           if test "X$x" = "X-L$additional_libdir"; then
39265                             haveit=yes
39266                             break
39267                           fi
39268                         done
39269                         if test -z "$haveit"; then
39270                           if test -d "$additional_libdir"; then
39271                                                         LIBXML2="${LIBXML2}${LIBXML2:+ }-L$additional_libdir"
39272                           fi
39273                         fi
39274                         haveit=
39275                         for x in $LDFLAGS $LTLIBXML2; do
39276
39277   acl_save_prefix="$prefix"
39278   prefix="$acl_final_prefix"
39279   acl_save_exec_prefix="$exec_prefix"
39280   exec_prefix="$acl_final_exec_prefix"
39281   eval x=\"$x\"
39282   exec_prefix="$acl_save_exec_prefix"
39283   prefix="$acl_save_prefix"
39284
39285                           if test "X$x" = "X-L$additional_libdir"; then
39286                             haveit=yes
39287                             break
39288                           fi
39289                         done
39290                         if test -z "$haveit"; then
39291                           if test -d "$additional_libdir"; then
39292                                                         LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$additional_libdir"
39293                           fi
39294                         fi
39295                       fi
39296                     fi
39297                     ;;
39298                   -R*)
39299                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
39300                     if test "$enable_rpath" != no; then
39301                                                                   haveit=
39302                       for x in $rpathdirs; do
39303                         if test "X$x" = "X$dir"; then
39304                           haveit=yes
39305                           break
39306                         fi
39307                       done
39308                       if test -z "$haveit"; then
39309                         rpathdirs="$rpathdirs $dir"
39310                       fi
39311                                                                   haveit=
39312                       for x in $ltrpathdirs; do
39313                         if test "X$x" = "X$dir"; then
39314                           haveit=yes
39315                           break
39316                         fi
39317                       done
39318                       if test -z "$haveit"; then
39319                         ltrpathdirs="$ltrpathdirs $dir"
39320                       fi
39321                     fi
39322                     ;;
39323                   -l*)
39324                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39325                     ;;
39326                   *.la)
39327                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39328                     ;;
39329                   *)
39330                                         LIBXML2="${LIBXML2}${LIBXML2:+ }$dep"
39331                     LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$dep"
39332                     ;;
39333                 esac
39334               done
39335             fi
39336           else
39337                                                             LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
39338             LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-l$name"
39339           fi
39340         fi
39341       fi
39342     done
39343   done
39344   if test "X$rpathdirs" != "X"; then
39345     if test -n "$acl_hardcode_libdir_separator"; then
39346                         alldirs=
39347       for found_dir in $rpathdirs; do
39348         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
39349       done
39350             acl_save_libdir="$libdir"
39351       libdir="$alldirs"
39352       eval flag=\"$acl_hardcode_libdir_flag_spec\"
39353       libdir="$acl_save_libdir"
39354       LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
39355     else
39356             for found_dir in $rpathdirs; do
39357         acl_save_libdir="$libdir"
39358         libdir="$found_dir"
39359         eval flag=\"$acl_hardcode_libdir_flag_spec\"
39360         libdir="$acl_save_libdir"
39361         LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
39362       done
39363     fi
39364   fi
39365   if test "X$ltrpathdirs" != "X"; then
39366             for found_dir in $ltrpathdirs; do
39367       LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-R$found_dir"
39368     done
39369   fi
39370
39371
39372
39373
39374
39375
39376       LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV"
39377       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39378 /* end confdefs.h.  */
39379 #include <libxml/xmlversion.h>
39380                    #include <libxml/xmlmemory.h>
39381
39382 int
39383 main ()
39384 {
39385 xmlCheckVersion (0); xmlFree ((void *) 0);
39386   ;
39387   return 0;
39388 }
39389 _ACEOF
39390 if ac_fn_c_try_link "$LINENO"; then :
39391   gl_cv_libxml=yes
39392          gl_cv_LIBXML="$LIBXML2 $LIBICONV"
39393          gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
39394
39395 fi
39396 rm -f core conftest.err conftest.$ac_objext \
39397     conftest$ac_exeext conftest.$ac_ext
39398       if test "$gl_cv_libxml" != yes; then
39399         gl_save_CPPFLAGS="$CPPFLAGS"
39400         CPPFLAGS="$CPPFLAGS $INCXML2"
39401         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39402 /* end confdefs.h.  */
39403 #include <libxml/xmlversion.h>
39404                      #include <libxml/xmlmemory.h>
39405
39406 int
39407 main ()
39408 {
39409 xmlCheckVersion (0); xmlFree ((void *) 0);
39410   ;
39411   return 0;
39412 }
39413 _ACEOF
39414 if ac_fn_c_try_link "$LINENO"; then :
39415   gl_cv_libxml=yes
39416            gl_cv_LIBXML="$LIBXML2 $LIBICONV"
39417            gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
39418            gl_cv_INCXML="$INCXML2"
39419
39420 fi
39421 rm -f core conftest.err conftest.$ac_objext \
39422     conftest$ac_exeext conftest.$ac_ext
39423         if test "$gl_cv_libxml" != yes; then
39424                                                   libxml2_include_dir=
39425           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39426 /* end confdefs.h.  */
39427 #include <libxml2/libxml/xmlexports.h>
39428 _ACEOF
39429 if ac_fn_c_try_cpp "$LINENO"; then :
39430
39431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlexports.h>" >&5
39432 $as_echo_n "checking absolute name of <libxml2/libxml/xmlexports.h>... " >&6; }
39433 if ${gl_cv_absolute_libxml2_libxml_xmlexports_h+:} false; then :
39434   $as_echo_n "(cached) " >&6
39435 else
39436           if test $ac_cv_header_libxml2_libxml_xmlexports_h = yes; then
39437
39438
39439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39440 /* end confdefs.h.  */
39441 #include <libxml2/libxml/xmlexports.h>
39442 _ACEOF
39443                 case "$host_os" in
39444     aix*) gl_absname_cpp="$ac_cpp -C" ;;
39445     *)    gl_absname_cpp="$ac_cpp" ;;
39446   esac
39447
39448   case "$host_os" in
39449     mingw*)
39450                                           gl_dirsep_regex='[/\\]'
39451       ;;
39452     *)
39453       gl_dirsep_regex='\/'
39454       ;;
39455   esac
39456       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39457   gl_header_literal_regex=`echo 'libxml2/libxml/xmlexports.h' \
39458                            | sed -e "$gl_make_literal_regex_sed"`
39459   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39460       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39461       s|^/[^/]|//&|
39462       p
39463       q
39464     }'
39465
39466         gl_cv_absolute_libxml2_libxml_xmlexports_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39467   sed -n "$gl_absolute_header_sed"`
39468
39469     fi
39470
39471 fi
39472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlexports_h" >&5
39473 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" >&6; }
39474 cat >>confdefs.h <<_ACEOF
39475 #define ABSOLUTE_LIBXML2_LIBXML_XMLEXPORTS_H "$gl_cv_absolute_libxml2_libxml_xmlexports_h"
39476 _ACEOF
39477
39478
39479              libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" | sed -e 's,.libxml.xmlexports\.h$,,'`
39480
39481 fi
39482 rm -f conftest.err conftest.i conftest.$ac_ext
39483           if test -z "$libxml2_include_dir"; then
39484             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39485 /* end confdefs.h.  */
39486 #include <libxml2/libxml/xmlversion.h>
39487 _ACEOF
39488 if ac_fn_c_try_cpp "$LINENO"; then :
39489
39490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlversion.h>" >&5
39491 $as_echo_n "checking absolute name of <libxml2/libxml/xmlversion.h>... " >&6; }
39492 if ${gl_cv_absolute_libxml2_libxml_xmlversion_h+:} false; then :
39493   $as_echo_n "(cached) " >&6
39494 else
39495           if test $ac_cv_header_libxml2_libxml_xmlversion_h = yes; then
39496
39497
39498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39499 /* end confdefs.h.  */
39500 #include <libxml2/libxml/xmlversion.h>
39501 _ACEOF
39502                 case "$host_os" in
39503     aix*) gl_absname_cpp="$ac_cpp -C" ;;
39504     *)    gl_absname_cpp="$ac_cpp" ;;
39505   esac
39506
39507   case "$host_os" in
39508     mingw*)
39509                                           gl_dirsep_regex='[/\\]'
39510       ;;
39511     *)
39512       gl_dirsep_regex='\/'
39513       ;;
39514   esac
39515       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39516   gl_header_literal_regex=`echo 'libxml2/libxml/xmlversion.h' \
39517                            | sed -e "$gl_make_literal_regex_sed"`
39518   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39519       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39520       s|^/[^/]|//&|
39521       p
39522       q
39523     }'
39524
39525         gl_cv_absolute_libxml2_libxml_xmlversion_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39526   sed -n "$gl_absolute_header_sed"`
39527
39528     fi
39529
39530 fi
39531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlversion_h" >&5
39532 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" >&6; }
39533 cat >>confdefs.h <<_ACEOF
39534 #define ABSOLUTE_LIBXML2_LIBXML_XMLVERSION_H "$gl_cv_absolute_libxml2_libxml_xmlversion_h"
39535 _ACEOF
39536
39537
39538                libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'`
39539
39540 fi
39541 rm -f conftest.err conftest.i conftest.$ac_ext
39542           fi
39543           if test -n "$libxml2_include_dir" && test -d "$libxml2_include_dir"; then
39544             CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir"
39545             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39546 /* end confdefs.h.  */
39547 #include <libxml/xmlversion.h>
39548                          #include <libxml/xmlmemory.h>
39549
39550 int
39551 main ()
39552 {
39553 xmlCheckVersion (0); xmlFree ((void *) 0);
39554   ;
39555   return 0;
39556 }
39557 _ACEOF
39558 if ac_fn_c_try_link "$LINENO"; then :
39559   gl_cv_libxml=yes
39560                gl_cv_LIBXML="$LIBXML2 $LIBICONV"
39561                gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
39562                gl_cv_INCXML="-I$libxml2_include_dir"
39563
39564 fi
39565 rm -f core conftest.err conftest.$ac_objext \
39566     conftest$ac_exeext conftest.$ac_ext
39567           fi
39568         fi
39569         CPPFLAGS="$gl_save_CPPFLAGS"
39570       fi
39571       LIBS="$gl_save_LIBS"
39572
39573 fi
39574
39575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml" >&5
39576 $as_echo_n "checking for libxml... " >&6; }
39577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml" >&5
39578 $as_echo "$gl_cv_libxml" >&6; }
39579     if test $gl_cv_libxml = yes; then
39580       LIBXML="$gl_cv_LIBXML"
39581       LTLIBXML="$gl_cv_LTLIBXML"
39582       INCXML="$gl_cv_INCXML"
39583     else
39584       gl_cv_libxml_use_included=yes
39585     fi
39586   fi
39587
39588
39589
39590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libxml" >&5
39591 $as_echo_n "checking whether to use the included libxml... " >&6; }
39592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_use_included" >&5
39593 $as_echo "$gl_cv_libxml_use_included" >&6; }
39594
39595   if test "$gl_cv_libxml_use_included" = yes; then
39596     LIBXML_H=
39597     LIBXML_H="$LIBXML_H libxml/DOCBparser.h"
39598     LIBXML_H="$LIBXML_H libxml/HTMLparser.h"
39599     LIBXML_H="$LIBXML_H libxml/HTMLtree.h"
39600     LIBXML_H="$LIBXML_H libxml/SAX2.h"
39601     LIBXML_H="$LIBXML_H libxml/SAX.h"
39602     LIBXML_H="$LIBXML_H libxml/c14n.h"
39603     LIBXML_H="$LIBXML_H libxml/catalog.h"
39604     LIBXML_H="$LIBXML_H libxml/chvalid.h"
39605     LIBXML_H="$LIBXML_H libxml/debugXML.h"
39606     LIBXML_H="$LIBXML_H libxml/dict.h"
39607     LIBXML_H="$LIBXML_H libxml/encoding.h"
39608     LIBXML_H="$LIBXML_H libxml/entities.h"
39609     LIBXML_H="$LIBXML_H libxml/globals.h"
39610     LIBXML_H="$LIBXML_H libxml/hash.h"
39611     LIBXML_H="$LIBXML_H libxml/list.h"
39612     LIBXML_H="$LIBXML_H libxml/nanoftp.h"
39613     LIBXML_H="$LIBXML_H libxml/nanohttp.h"
39614     LIBXML_H="$LIBXML_H libxml/parser.h"
39615     LIBXML_H="$LIBXML_H libxml/parserInternals.h"
39616     LIBXML_H="$LIBXML_H libxml/pattern.h"
39617     LIBXML_H="$LIBXML_H libxml/relaxng.h"
39618     LIBXML_H="$LIBXML_H libxml/schemasInternals.h"
39619     LIBXML_H="$LIBXML_H libxml/schematron.h"
39620     LIBXML_H="$LIBXML_H libxml/threads.h"
39621     LIBXML_H="$LIBXML_H libxml/tree.h"
39622     LIBXML_H="$LIBXML_H libxml/uri.h"
39623     LIBXML_H="$LIBXML_H libxml/valid.h"
39624     LIBXML_H="$LIBXML_H libxml/xinclude.h"
39625     LIBXML_H="$LIBXML_H libxml/xlink.h"
39626     LIBXML_H="$LIBXML_H libxml/xmlIO.h"
39627     LIBXML_H="$LIBXML_H libxml/xmlautomata.h"
39628     LIBXML_H="$LIBXML_H libxml/xmlerror.h"
39629     LIBXML_H="$LIBXML_H libxml/xmlexports.h"
39630     LIBXML_H="$LIBXML_H libxml/xmlmemory.h"
39631     LIBXML_H="$LIBXML_H libxml/xmlmodule.h"
39632     LIBXML_H="$LIBXML_H libxml/xmlreader.h"
39633     LIBXML_H="$LIBXML_H libxml/xmlregexp.h"
39634     LIBXML_H="$LIBXML_H libxml/xmlsave.h"
39635     LIBXML_H="$LIBXML_H libxml/xmlschemas.h"
39636     LIBXML_H="$LIBXML_H libxml/xmlschemastypes.h"
39637     LIBXML_H="$LIBXML_H libxml/xmlstring.h"
39638     LIBXML_H="$LIBXML_H libxml/xmlunicode.h"
39639     LIBXML_H="$LIBXML_H libxml/xmlversion.h"
39640     LIBXML_H="$LIBXML_H libxml/xmlwriter.h"
39641     LIBXML_H="$LIBXML_H libxml/xpath.h"
39642     LIBXML_H="$LIBXML_H libxml/xpathInternals.h"
39643     LIBXML_H="$LIBXML_H libxml/xpointer.h"
39644     for ac_header in arpa/inet.h ctype.h dlfcn.h dl.h errno.h \
39645                       fcntl.h float.h limits.h malloc.h math.h netdb.h \
39646                       netinet/in.h signal.h stdlib.h string.h \
39647                       strings.h sys/select.h sys/socket.h sys/stat.h \
39648                       sys/time.h sys/types.h time.h unistd.h
39649 do :
39650   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39651 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39652 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39653   cat >>confdefs.h <<_ACEOF
39654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39655 _ACEOF
39656
39657 fi
39658
39659 done
39660
39661     for ac_header in arpa/nameser.h
39662 do :
39663   ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
39664       #if HAVE_SYS_TYPES_H
39665       # include <sys/types.h>
39666       #endif
39667
39668 "
39669 if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
39670   cat >>confdefs.h <<_ACEOF
39671 #define HAVE_ARPA_NAMESER_H 1
39672 _ACEOF
39673
39674 fi
39675
39676 done
39677
39678     for ac_header in resolv.h
39679 do :
39680   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
39681       #if HAVE_SYS_TYPES_H
39682       # include <sys/types.h>
39683       #endif
39684       #if HAVE_NETINET_IN_H
39685       # include <netinet/in.h>
39686       #endif
39687       #if HAVE_ARPA_NAMESER_H
39688       # include <arpa/nameser.h>
39689       #endif
39690
39691 "
39692 if test "x$ac_cv_header_resolv_h" = xyes; then :
39693   cat >>confdefs.h <<_ACEOF
39694 #define HAVE_RESOLV_H 1
39695 _ACEOF
39696
39697 fi
39698
39699 done
39700
39701     for ac_func in dlopen getaddrinfo localtime shlload stat _stat strftime
39702 do :
39703   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39704 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39705 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39706   cat >>confdefs.h <<_ACEOF
39707 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39708 _ACEOF
39709
39710 fi
39711 done
39712
39713
39714 $as_echo "#define VA_COPY va_copy" >>confdefs.h
39715
39716           else
39717     LIBXML_H=
39718   fi
39719
39720
39721    if test "$gl_cv_libxml_use_included" = yes; then
39722   INCLUDED_LIBXML_TRUE=
39723   INCLUDED_LIBXML_FALSE='#'
39724 else
39725   INCLUDED_LIBXML_TRUE='#'
39726   INCLUDED_LIBXML_FALSE=
39727 fi
39728
39729
39730
39731
39732
39733
39734
39735
39736
39737
39738   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
39739
39740
39741
39742
39743
39744
39745
39746
39747
39748   case "$host_os" in
39749     solaris*)
39750
39751 $as_echo "#define _LCONV_C99 1" >>confdefs.h
39752
39753       ;;
39754   esac
39755
39756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
39757 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
39758 if ${gl_cv_header_locale_h_posix2001+:} false; then :
39759   $as_echo_n "(cached) " >&6
39760 else
39761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39762 /* end confdefs.h.  */
39763 #include <locale.h>
39764             int x = LC_MESSAGES;
39765             int y = sizeof (((struct lconv *) 0)->decimal_point);
39766 int
39767 main ()
39768 {
39769
39770   ;
39771   return 0;
39772 }
39773 _ACEOF
39774 if ac_fn_c_try_compile "$LINENO"; then :
39775   gl_cv_header_locale_h_posix2001=yes
39776 else
39777   gl_cv_header_locale_h_posix2001=no
39778 fi
39779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39780 fi
39781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
39782 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
39783
39784
39785   if test $ac_cv_header_xlocale_h = yes; then
39786     HAVE_XLOCALE_H=1
39787                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
39788 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
39789 if ${gl_cv_header_locale_has_locale_t+:} false; then :
39790   $as_echo_n "(cached) " >&6
39791 else
39792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39793 /* end confdefs.h.  */
39794 #include <locale.h>
39795               locale_t x;
39796 int
39797 main ()
39798 {
39799
39800   ;
39801   return 0;
39802 }
39803 _ACEOF
39804 if ac_fn_c_try_compile "$LINENO"; then :
39805   gl_cv_header_locale_has_locale_t=yes
39806 else
39807   gl_cv_header_locale_has_locale_t=no
39808 fi
39809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39810
39811 fi
39812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
39813 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
39814     if test $gl_cv_header_locale_has_locale_t = yes; then
39815       gl_cv_header_locale_h_needs_xlocale_h=no
39816     else
39817       gl_cv_header_locale_h_needs_xlocale_h=yes
39818     fi
39819   else
39820     HAVE_XLOCALE_H=0
39821     gl_cv_header_locale_h_needs_xlocale_h=no
39822   fi
39823
39824
39825           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
39826 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
39827 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
39828   $as_echo_n "(cached) " >&6
39829 else
39830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39831 /* end confdefs.h.  */
39832 #include <locale.h>
39833             struct lconv l;
39834             int x = sizeof (l.decimal_point);
39835             int y = sizeof (l.int_p_cs_precedes);
39836 int
39837 main ()
39838 {
39839
39840   ;
39841   return 0;
39842 }
39843 _ACEOF
39844 if ac_fn_c_try_compile "$LINENO"; then :
39845   gl_cv_sys_struct_lconv_ok=yes
39846 else
39847   gl_cv_sys_struct_lconv_ok=no
39848 fi
39849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39850
39851 fi
39852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
39853 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
39854   if test $gl_cv_sys_struct_lconv_ok = no; then
39855     REPLACE_STRUCT_LCONV=1
39856   fi
39857
39858
39859
39860
39861
39862
39863
39864
39865
39866      if test $gl_cv_have_include_next = yes; then
39867        gl_cv_next_locale_h='<'locale.h'>'
39868      else
39869        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
39870 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
39871 if ${gl_cv_next_locale_h+:} false; then :
39872   $as_echo_n "(cached) " >&6
39873 else
39874
39875                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39876 /* end confdefs.h.  */
39877 #include <locale.h>
39878
39879 _ACEOF
39880                                                                                                                         case "$host_os" in
39881                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
39882                  *)    gl_absname_cpp="$ac_cpp" ;;
39883                esac
39884
39885                case "$host_os" in
39886                  mingw*)
39887                                                                                                                                      gl_dirsep_regex='[/\\]'
39888                    ;;
39889                  *)
39890                    gl_dirsep_regex='\/'
39891                    ;;
39892                esac
39893                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39894
39895                gl_header_literal_regex=`echo 'locale.h' \
39896                                         | sed -e "$gl_make_literal_regex_sed"`
39897                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39898                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39899                    s|^/[^/]|//&|
39900                    p
39901                    q
39902                  }'
39903                                                             gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39904                       sed -n "$gl_absolute_header_sed"`'"'
39905
39906
39907 fi
39908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
39909 $as_echo "$gl_cv_next_locale_h" >&6; }
39910      fi
39911      NEXT_LOCALE_H=$gl_cv_next_locale_h
39912
39913      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39914        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39915        gl_next_as_first_directive='<'locale.h'>'
39916      else
39917        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39918        gl_next_as_first_directive=$gl_cv_next_locale_h
39919      fi
39920      NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
39921
39922
39923
39924
39925
39926
39927     for gl_func in setlocale duplocale; do
39928     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
39929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
39930 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
39931 if eval \${$as_gl_Symbol+:} false; then :
39932   $as_echo_n "(cached) " >&6
39933 else
39934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39935 /* end confdefs.h.  */
39936 #include <locale.h>
39937 /* Some systems provide declarations in a non-standard header.  */
39938 #if HAVE_XLOCALE_H
39939 # include <xlocale.h>
39940 #endif
39941
39942 int
39943 main ()
39944 {
39945 #undef $gl_func
39946   (void) $gl_func;
39947   ;
39948   return 0;
39949 }
39950 _ACEOF
39951 if ac_fn_c_try_compile "$LINENO"; then :
39952   eval "$as_gl_Symbol=yes"
39953 else
39954   eval "$as_gl_Symbol=no"
39955 fi
39956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39957 fi
39958 eval ac_res=\$$as_gl_Symbol
39959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39960 $as_echo "$ac_res" >&6; }
39961     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
39962   cat >>confdefs.h <<_ACEOF
39963 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
39964 _ACEOF
39965
39966                      eval ac_cv_have_decl_$gl_func=yes
39967 fi
39968       done
39969
39970
39971
39972
39973
39974   for ac_func in setlocale uselocale
39975 do :
39976   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39979   cat >>confdefs.h <<_ACEOF
39980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39981 _ACEOF
39982
39983 fi
39984 done
39985
39986
39987
39988
39989   if test "$gl_threads_api" = posix; then
39990     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
39991     # pthread_rwlock_* functions.
39992     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
39993 "
39994 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
39995
39996 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
39997
39998 fi
39999
40000     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
40001     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40002 /* end confdefs.h.  */
40003
40004       #include <pthread.h>
40005 int
40006 main ()
40007 {
40008
40009 #if __FreeBSD__ == 4
40010 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
40011 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
40012        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
40013 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
40014 #else
40015 int x = (int)PTHREAD_MUTEX_RECURSIVE;
40016 return !x;
40017 #endif
40018
40019   ;
40020   return 0;
40021 }
40022 _ACEOF
40023 if ac_fn_c_try_compile "$LINENO"; then :
40024
40025 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
40026
40027 fi
40028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40029   fi
40030   :
40031
40032
40033
40034 cat >>confdefs.h <<_ACEOF
40035 #define GNULIB_LOCK 1
40036 _ACEOF
40037
40038
40039
40040
40041
40042   if test $ac_cv_func_lstat = yes; then
40043
40044     case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
40045       *no)
40046         REPLACE_LSTAT=1
40047         ;;
40048     esac
40049   else
40050     HAVE_LSTAT=0
40051   fi
40052
40053   if test $REPLACE_LSTAT = 1; then
40054
40055
40056
40057
40058
40059
40060
40061
40062   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
40063
40064     :
40065   fi
40066
40067
40068
40069
40070
40071           GNULIB_LSTAT=1
40072
40073
40074
40075
40076
40077 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
40078
40079
40080
40081
40082
40083
40084   if test $gl_cv_func_malloc_posix = yes; then
40085
40086 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
40087
40088   else
40089     REPLACE_MALLOC=1
40090   fi
40091
40092   if test $REPLACE_MALLOC = 1; then
40093
40094
40095
40096
40097
40098
40099
40100
40101   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
40102
40103   fi
40104
40105
40106
40107
40108
40109           GNULIB_MALLOC_POSIX=1
40110
40111
40112
40113
40114
40115 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
40116
40117
40118
40119
40120
40121
40122
40123
40124
40125
40126
40127
40128   :
40129
40130
40131
40132
40133
40134
40135
40136
40137
40138
40139
40140   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
40141
40142
40143
40144      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
40145 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
40146 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
40147   $as_echo_n "(cached) " >&6
40148 else
40149
40150                   case "$host_os" in
40151                      # Guess no on AIX and OSF/1.
40152         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
40153                      # Guess yes otherwise.
40154         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
40155       esac
40156       if test $LOCALE_JA != none; then
40157         if test "$cross_compiling" = yes; then :
40158   :
40159 else
40160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40161 /* end confdefs.h.  */
40162
40163 #include <locale.h>
40164 #include <string.h>
40165 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40166    <wchar.h>.
40167    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40168    included before <wchar.h>.  */
40169 #include <stddef.h>
40170 #include <stdio.h>
40171 #include <time.h>
40172 #include <wchar.h>
40173 int main ()
40174 {
40175   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
40176     {
40177       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
40178       mbstate_t state;
40179       wchar_t wc;
40180
40181       memset (&state, '\0', sizeof (mbstate_t));
40182       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
40183         if (mbsinit (&state))
40184           return 1;
40185     }
40186   return 0;
40187 }
40188 _ACEOF
40189 if ac_fn_c_try_run "$LINENO"; then :
40190   gl_cv_func_mbrtowc_incomplete_state=yes
40191 else
40192   gl_cv_func_mbrtowc_incomplete_state=no
40193 fi
40194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40195   conftest.$ac_objext conftest.beam conftest.$ac_ext
40196 fi
40197
40198       fi
40199
40200 fi
40201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
40202 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
40203
40204
40205
40206
40207      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
40208 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
40209 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
40210   $as_echo_n "(cached) " >&6
40211 else
40212
40213                   case "$host_os" in
40214                     # Guess no on Solaris 8.
40215         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
40216                     # Guess yes otherwise.
40217         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
40218       esac
40219       if test $LOCALE_ZH_CN != none; then
40220         if test "$cross_compiling" = yes; then :
40221   :
40222 else
40223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40224 /* end confdefs.h.  */
40225
40226 #include <locale.h>
40227 #include <stdlib.h>
40228 #include <string.h>
40229 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40230    <wchar.h>.
40231    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40232    included before <wchar.h>.  */
40233 #include <stddef.h>
40234 #include <stdio.h>
40235 #include <time.h>
40236 #include <wchar.h>
40237 int main ()
40238 {
40239   /* This fails on Solaris 8:
40240      mbrtowc returns 2, and sets wc to 0x00F0.
40241      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
40242   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
40243     {
40244       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
40245       mbstate_t state;
40246       wchar_t wc;
40247
40248       memset (&state, '\0', sizeof (mbstate_t));
40249       if (mbrtowc (&wc, input + 3, 6, &state) != 4
40250           && mbtowc (&wc, input + 3, 6) == 4)
40251         return 1;
40252     }
40253   return 0;
40254 }
40255 _ACEOF
40256 if ac_fn_c_try_run "$LINENO"; then :
40257   gl_cv_func_mbrtowc_sanitycheck=yes
40258 else
40259   gl_cv_func_mbrtowc_sanitycheck=no
40260 fi
40261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40262   conftest.$ac_objext conftest.beam conftest.$ac_ext
40263 fi
40264
40265       fi
40266
40267 fi
40268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
40269 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
40270
40271     REPLACE_MBSTATE_T=0
40272     case "$gl_cv_func_mbrtowc_incomplete_state" in
40273       *yes) ;;
40274       *) REPLACE_MBSTATE_T=1 ;;
40275     esac
40276     case "$gl_cv_func_mbrtowc_sanitycheck" in
40277       *yes) ;;
40278       *) REPLACE_MBSTATE_T=1 ;;
40279     esac
40280   else
40281     REPLACE_MBSTATE_T=1
40282   fi
40283
40284
40285
40286   if test $ac_cv_func_mbrtowc = no; then
40287     HAVE_MBRTOWC=0
40288     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
40289 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40290    <wchar.h>.
40291    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40292    included before <wchar.h>.  */
40293 #include <stddef.h>
40294 #include <stdio.h>
40295 #include <time.h>
40296 #include <wchar.h>
40297
40298 "
40299 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
40300   ac_have_decl=1
40301 else
40302   ac_have_decl=0
40303 fi
40304
40305 cat >>confdefs.h <<_ACEOF
40306 #define HAVE_DECL_MBRTOWC $ac_have_decl
40307 _ACEOF
40308
40309     if test $ac_cv_have_decl_mbrtowc = yes; then
40310                         REPLACE_MBRTOWC=1
40311     fi
40312   else
40313     if test $REPLACE_MBSTATE_T = 1; then
40314       REPLACE_MBRTOWC=1
40315     else
40316
40317
40318
40319      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
40320 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
40321 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
40322   $as_echo_n "(cached) " >&6
40323 else
40324
40325                   case "$host_os" in
40326                   # Guess no on Solaris.
40327         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
40328                   # Guess yes otherwise.
40329         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
40330       esac
40331       if test $LOCALE_FR_UTF8 != none; then
40332         if test "$cross_compiling" = yes; then :
40333   :
40334 else
40335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40336 /* end confdefs.h.  */
40337
40338 #include <locale.h>
40339 #include <stdlib.h>
40340 #include <string.h>
40341 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40342    <wchar.h>.
40343    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40344    included before <wchar.h>.  */
40345 #include <stddef.h>
40346 #include <stdio.h>
40347 #include <time.h>
40348 #include <wchar.h>
40349 int main ()
40350 {
40351   int result = 0;
40352
40353   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
40354     {
40355       char input[] = "\303\237er";
40356       mbstate_t state;
40357       wchar_t wc;
40358       size_t ret;
40359
40360       memset (&state, '\0', sizeof (mbstate_t));
40361       wc = (wchar_t) 0xBADFACE;
40362       ret = mbrtowc (&wc, input, 5, &state);
40363       if (ret != 2)
40364         result |= 1;
40365       if (!mbsinit (&state))
40366         result |= 2;
40367
40368       memset (&state, '\0', sizeof (mbstate_t));
40369       ret = mbrtowc (NULL, input, 5, &state);
40370       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
40371         result |= 4;
40372       if (!mbsinit (&state))
40373         result |= 8;
40374     }
40375   return result;
40376 }
40377 _ACEOF
40378 if ac_fn_c_try_run "$LINENO"; then :
40379   gl_cv_func_mbrtowc_null_arg1=yes
40380 else
40381   gl_cv_func_mbrtowc_null_arg1=no
40382 fi
40383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40384   conftest.$ac_objext conftest.beam conftest.$ac_ext
40385 fi
40386
40387       fi
40388
40389 fi
40390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
40391 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
40392
40393
40394
40395
40396      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
40397 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
40398 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
40399   $as_echo_n "(cached) " >&6
40400 else
40401
40402                   case "$host_os" in
40403               # Guess no on OSF/1.
40404         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
40405               # Guess yes otherwise.
40406         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
40407       esac
40408       if test $LOCALE_FR_UTF8 != none; then
40409         if test "$cross_compiling" = yes; then :
40410   :
40411 else
40412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40413 /* end confdefs.h.  */
40414
40415 #include <locale.h>
40416 #include <string.h>
40417 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40418    <wchar.h>.
40419    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40420    included before <wchar.h>.  */
40421 #include <stddef.h>
40422 #include <stdio.h>
40423 #include <time.h>
40424 #include <wchar.h>
40425 int main ()
40426 {
40427   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
40428     {
40429       mbstate_t state;
40430       wchar_t wc;
40431       int ret;
40432
40433       memset (&state, '\0', sizeof (mbstate_t));
40434       wc = (wchar_t) 0xBADFACE;
40435       mbrtowc (&wc, NULL, 5, &state);
40436       /* Check that wc was not modified.  */
40437       if (wc != (wchar_t) 0xBADFACE)
40438         return 1;
40439     }
40440   return 0;
40441 }
40442 _ACEOF
40443 if ac_fn_c_try_run "$LINENO"; then :
40444   gl_cv_func_mbrtowc_null_arg2=yes
40445 else
40446   gl_cv_func_mbrtowc_null_arg2=no
40447 fi
40448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40449   conftest.$ac_objext conftest.beam conftest.$ac_ext
40450 fi
40451
40452       fi
40453
40454 fi
40455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
40456 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
40457
40458
40459
40460
40461
40462
40463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
40464 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
40465 if ${gl_cv_func_mbrtowc_retval+:} false; then :
40466   $as_echo_n "(cached) " >&6
40467 else
40468
40469                   case "$host_os" in
40470                                    # Guess no on HP-UX, Solaris, native Windows.
40471         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
40472                                    # Guess yes otherwise.
40473         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
40474       esac
40475       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
40476          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
40477         if test "$cross_compiling" = yes; then :
40478   :
40479 else
40480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40481 /* end confdefs.h.  */
40482
40483 #include <locale.h>
40484 #include <string.h>
40485 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40486    <wchar.h>.
40487    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40488    included before <wchar.h>.  */
40489 #include <stddef.h>
40490 #include <stdio.h>
40491 #include <time.h>
40492 #include <wchar.h>
40493 int main ()
40494 {
40495   int result = 0;
40496   int found_some_locale = 0;
40497   /* This fails on Solaris.  */
40498   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
40499     {
40500       char input[] = "B\303\274\303\237er"; /* "Büßer" */
40501       mbstate_t state;
40502       wchar_t wc;
40503
40504       memset (&state, '\0', sizeof (mbstate_t));
40505       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
40506         {
40507           input[1] = '\0';
40508           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
40509             result |= 1;
40510         }
40511       found_some_locale = 1;
40512     }
40513   /* This fails on HP-UX 11.11.  */
40514   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
40515     {
40516       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
40517       mbstate_t state;
40518       wchar_t wc;
40519
40520       memset (&state, '\0', sizeof (mbstate_t));
40521       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
40522         {
40523           input[1] = '\0';
40524           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
40525             result |= 2;
40526         }
40527       found_some_locale = 1;
40528     }
40529   /* This fails on native Windows.  */
40530   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
40531     {
40532       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
40533       mbstate_t state;
40534       wchar_t wc;
40535
40536       memset (&state, '\0', sizeof (mbstate_t));
40537       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
40538         {
40539           input[3] = '\0';
40540           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
40541             result |= 4;
40542         }
40543       found_some_locale = 1;
40544     }
40545   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
40546     {
40547       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
40548       mbstate_t state;
40549       wchar_t wc;
40550
40551       memset (&state, '\0', sizeof (mbstate_t));
40552       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
40553         {
40554           input[3] = '\0';
40555           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
40556             result |= 8;
40557         }
40558       found_some_locale = 1;
40559     }
40560   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
40561     {
40562       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
40563       mbstate_t state;
40564       wchar_t wc;
40565
40566       memset (&state, '\0', sizeof (mbstate_t));
40567       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
40568         {
40569           input[3] = '\0';
40570           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
40571             result |= 16;
40572         }
40573       found_some_locale = 1;
40574     }
40575   return (found_some_locale ? result : 77);
40576 }
40577 _ACEOF
40578 if ac_fn_c_try_run "$LINENO"; then :
40579   gl_cv_func_mbrtowc_retval=yes
40580 else
40581   if test $? != 77; then
40582              gl_cv_func_mbrtowc_retval=no
40583            fi
40584
40585 fi
40586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40587   conftest.$ac_objext conftest.beam conftest.$ac_ext
40588 fi
40589
40590       fi
40591
40592 fi
40593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
40594 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
40595
40596
40597
40598
40599      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
40600 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
40601 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
40602   $as_echo_n "(cached) " >&6
40603 else
40604
40605                   case "$host_os" in
40606                        # Guess no on Solaris 8 and 9.
40607         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
40608                        # Guess yes otherwise.
40609         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
40610       esac
40611       if test $LOCALE_ZH_CN != none; then
40612         if test "$cross_compiling" = yes; then :
40613   :
40614 else
40615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40616 /* end confdefs.h.  */
40617
40618 #include <locale.h>
40619 #include <string.h>
40620 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40621    <wchar.h>.
40622    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40623    included before <wchar.h>.  */
40624 #include <stddef.h>
40625 #include <stdio.h>
40626 #include <time.h>
40627 #include <wchar.h>
40628 int main ()
40629 {
40630   /* This fails on Solaris 8 and 9.  */
40631   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
40632     {
40633       mbstate_t state;
40634       wchar_t wc;
40635
40636       memset (&state, '\0', sizeof (mbstate_t));
40637       if (mbrtowc (&wc, "", 1, &state) != 0)
40638         return 1;
40639     }
40640   return 0;
40641 }
40642 _ACEOF
40643 if ac_fn_c_try_run "$LINENO"; then :
40644   gl_cv_func_mbrtowc_nul_retval=yes
40645 else
40646   gl_cv_func_mbrtowc_nul_retval=no
40647 fi
40648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40649   conftest.$ac_objext conftest.beam conftest.$ac_ext
40650 fi
40651
40652       fi
40653
40654 fi
40655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
40656 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
40657
40658       case "$gl_cv_func_mbrtowc_null_arg1" in
40659         *yes) ;;
40660         *)
40661 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
40662
40663            REPLACE_MBRTOWC=1
40664            ;;
40665       esac
40666       case "$gl_cv_func_mbrtowc_null_arg2" in
40667         *yes) ;;
40668         *)
40669 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
40670
40671            REPLACE_MBRTOWC=1
40672            ;;
40673       esac
40674       case "$gl_cv_func_mbrtowc_retval" in
40675         *yes) ;;
40676         *)
40677 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
40678
40679            REPLACE_MBRTOWC=1
40680            ;;
40681       esac
40682       case "$gl_cv_func_mbrtowc_nul_retval" in
40683         *yes) ;;
40684         *)
40685 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
40686
40687            REPLACE_MBRTOWC=1
40688            ;;
40689       esac
40690     fi
40691   fi
40692
40693   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
40694
40695
40696
40697
40698
40699
40700
40701
40702   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
40703
40704
40705   :
40706
40707   fi
40708
40709
40710
40711
40712
40713           GNULIB_MBRTOWC=1
40714
40715
40716
40717
40718
40719 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
40720
40721
40722
40723
40724
40725
40726
40727
40728
40729
40730
40731
40732
40733
40734   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
40735
40736
40737
40738      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
40739 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
40740 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
40741   $as_echo_n "(cached) " >&6
40742 else
40743
40744                   case "$host_os" in
40745                      # Guess no on AIX and OSF/1.
40746         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
40747                      # Guess yes otherwise.
40748         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
40749       esac
40750       if test $LOCALE_JA != none; then
40751         if test "$cross_compiling" = yes; then :
40752   :
40753 else
40754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40755 /* end confdefs.h.  */
40756
40757 #include <locale.h>
40758 #include <string.h>
40759 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40760    <wchar.h>.
40761    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40762    included before <wchar.h>.  */
40763 #include <stddef.h>
40764 #include <stdio.h>
40765 #include <time.h>
40766 #include <wchar.h>
40767 int main ()
40768 {
40769   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
40770     {
40771       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
40772       mbstate_t state;
40773       wchar_t wc;
40774
40775       memset (&state, '\0', sizeof (mbstate_t));
40776       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
40777         if (mbsinit (&state))
40778           return 1;
40779     }
40780   return 0;
40781 }
40782 _ACEOF
40783 if ac_fn_c_try_run "$LINENO"; then :
40784   gl_cv_func_mbrtowc_incomplete_state=yes
40785 else
40786   gl_cv_func_mbrtowc_incomplete_state=no
40787 fi
40788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40789   conftest.$ac_objext conftest.beam conftest.$ac_ext
40790 fi
40791
40792       fi
40793
40794 fi
40795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
40796 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
40797
40798
40799
40800
40801      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
40802 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
40803 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
40804   $as_echo_n "(cached) " >&6
40805 else
40806
40807                   case "$host_os" in
40808                     # Guess no on Solaris 8.
40809         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
40810                     # Guess yes otherwise.
40811         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
40812       esac
40813       if test $LOCALE_ZH_CN != none; then
40814         if test "$cross_compiling" = yes; then :
40815   :
40816 else
40817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40818 /* end confdefs.h.  */
40819
40820 #include <locale.h>
40821 #include <stdlib.h>
40822 #include <string.h>
40823 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40824    <wchar.h>.
40825    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40826    included before <wchar.h>.  */
40827 #include <stddef.h>
40828 #include <stdio.h>
40829 #include <time.h>
40830 #include <wchar.h>
40831 int main ()
40832 {
40833   /* This fails on Solaris 8:
40834      mbrtowc returns 2, and sets wc to 0x00F0.
40835      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
40836   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
40837     {
40838       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
40839       mbstate_t state;
40840       wchar_t wc;
40841
40842       memset (&state, '\0', sizeof (mbstate_t));
40843       if (mbrtowc (&wc, input + 3, 6, &state) != 4
40844           && mbtowc (&wc, input + 3, 6) == 4)
40845         return 1;
40846     }
40847   return 0;
40848 }
40849 _ACEOF
40850 if ac_fn_c_try_run "$LINENO"; then :
40851   gl_cv_func_mbrtowc_sanitycheck=yes
40852 else
40853   gl_cv_func_mbrtowc_sanitycheck=no
40854 fi
40855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40856   conftest.$ac_objext conftest.beam conftest.$ac_ext
40857 fi
40858
40859       fi
40860
40861 fi
40862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
40863 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
40864
40865     REPLACE_MBSTATE_T=0
40866     case "$gl_cv_func_mbrtowc_incomplete_state" in
40867       *yes) ;;
40868       *) REPLACE_MBSTATE_T=1 ;;
40869     esac
40870     case "$gl_cv_func_mbrtowc_sanitycheck" in
40871       *yes) ;;
40872       *) REPLACE_MBSTATE_T=1 ;;
40873     esac
40874   else
40875     REPLACE_MBSTATE_T=1
40876   fi
40877
40878
40879
40880   if test $ac_cv_func_mbsinit = no; then
40881     HAVE_MBSINIT=0
40882     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
40883 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
40884    <wchar.h>.
40885    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40886    included before <wchar.h>.  */
40887 #include <stddef.h>
40888 #include <stdio.h>
40889 #include <time.h>
40890 #include <wchar.h>
40891
40892 "
40893 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
40894   ac_have_decl=1
40895 else
40896   ac_have_decl=0
40897 fi
40898
40899 cat >>confdefs.h <<_ACEOF
40900 #define HAVE_DECL_MBSINIT $ac_have_decl
40901 _ACEOF
40902
40903     if test $ac_cv_have_decl_mbsinit = yes; then
40904                         REPLACE_MBSINIT=1
40905     fi
40906   else
40907     if test $REPLACE_MBSTATE_T = 1; then
40908       REPLACE_MBSINIT=1
40909     else
40910                         case "$host_os" in
40911         mingw*) REPLACE_MBSINIT=1 ;;
40912       esac
40913     fi
40914   fi
40915
40916   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
40917
40918
40919
40920
40921
40922
40923
40924
40925   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
40926
40927
40928   :
40929
40930   fi
40931
40932
40933
40934
40935
40936           GNULIB_MBSINIT=1
40937
40938
40939
40940
40941
40942 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
40943
40944
40945
40946
40947
40948
40949   if test $ac_cv_func_mbslen = yes; then
40950     HAVE_MBSLEN=1
40951   else
40952     HAVE_MBSLEN=0
40953   fi
40954
40955
40956
40957
40958
40959
40960           GNULIB_MBSLEN=1
40961
40962
40963
40964
40965
40966 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
40981
40982
40983
40984      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
40985 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
40986 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
40987   $as_echo_n "(cached) " >&6
40988 else
40989
40990                   case "$host_os" in
40991                      # Guess no on AIX and OSF/1.
40992         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
40993                      # Guess yes otherwise.
40994         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
40995       esac
40996       if test $LOCALE_JA != none; then
40997         if test "$cross_compiling" = yes; then :
40998   :
40999 else
41000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41001 /* end confdefs.h.  */
41002
41003 #include <locale.h>
41004 #include <string.h>
41005 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
41006    <wchar.h>.
41007    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41008    included before <wchar.h>.  */
41009 #include <stddef.h>
41010 #include <stdio.h>
41011 #include <time.h>
41012 #include <wchar.h>
41013 int main ()
41014 {
41015   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
41016     {
41017       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
41018       mbstate_t state;
41019       wchar_t wc;
41020
41021       memset (&state, '\0', sizeof (mbstate_t));
41022       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
41023         if (mbsinit (&state))
41024           return 1;
41025     }
41026   return 0;
41027 }
41028 _ACEOF
41029 if ac_fn_c_try_run "$LINENO"; then :
41030   gl_cv_func_mbrtowc_incomplete_state=yes
41031 else
41032   gl_cv_func_mbrtowc_incomplete_state=no
41033 fi
41034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41035   conftest.$ac_objext conftest.beam conftest.$ac_ext
41036 fi
41037
41038       fi
41039
41040 fi
41041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
41042 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
41043
41044
41045
41046
41047      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
41048 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
41049 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
41050   $as_echo_n "(cached) " >&6
41051 else
41052
41053                   case "$host_os" in
41054                     # Guess no on Solaris 8.
41055         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
41056                     # Guess yes otherwise.
41057         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
41058       esac
41059       if test $LOCALE_ZH_CN != none; then
41060         if test "$cross_compiling" = yes; then :
41061   :
41062 else
41063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41064 /* end confdefs.h.  */
41065
41066 #include <locale.h>
41067 #include <stdlib.h>
41068 #include <string.h>
41069 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
41070    <wchar.h>.
41071    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41072    included before <wchar.h>.  */
41073 #include <stddef.h>
41074 #include <stdio.h>
41075 #include <time.h>
41076 #include <wchar.h>
41077 int main ()
41078 {
41079   /* This fails on Solaris 8:
41080      mbrtowc returns 2, and sets wc to 0x00F0.
41081      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
41082   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
41083     {
41084       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
41085       mbstate_t state;
41086       wchar_t wc;
41087
41088       memset (&state, '\0', sizeof (mbstate_t));
41089       if (mbrtowc (&wc, input + 3, 6, &state) != 4
41090           && mbtowc (&wc, input + 3, 6) == 4)
41091         return 1;
41092     }
41093   return 0;
41094 }
41095 _ACEOF
41096 if ac_fn_c_try_run "$LINENO"; then :
41097   gl_cv_func_mbrtowc_sanitycheck=yes
41098 else
41099   gl_cv_func_mbrtowc_sanitycheck=no
41100 fi
41101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41102   conftest.$ac_objext conftest.beam conftest.$ac_ext
41103 fi
41104
41105       fi
41106
41107 fi
41108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
41109 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
41110
41111     REPLACE_MBSTATE_T=0
41112     case "$gl_cv_func_mbrtowc_incomplete_state" in
41113       *yes) ;;
41114       *) REPLACE_MBSTATE_T=1 ;;
41115     esac
41116     case "$gl_cv_func_mbrtowc_sanitycheck" in
41117       *yes) ;;
41118       *) REPLACE_MBSTATE_T=1 ;;
41119     esac
41120   else
41121     REPLACE_MBSTATE_T=1
41122   fi
41123
41124
41125
41126   if test $ac_cv_func_mbsrtowcs = no; then
41127     HAVE_MBSRTOWCS=0
41128     ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
41129 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
41130    <wchar.h>.
41131    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41132    included before <wchar.h>.  */
41133 #include <stddef.h>
41134 #include <stdio.h>
41135 #include <time.h>
41136 #include <wchar.h>
41137
41138 "
41139 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
41140   ac_have_decl=1
41141 else
41142   ac_have_decl=0
41143 fi
41144
41145 cat >>confdefs.h <<_ACEOF
41146 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
41147 _ACEOF
41148
41149     if test $ac_cv_have_decl_mbsrtowcs = yes; then
41150                         REPLACE_MBSRTOWCS=1
41151     fi
41152   else
41153     if test $REPLACE_MBSTATE_T = 1; then
41154       REPLACE_MBSRTOWCS=1
41155     else
41156
41157
41158
41159
41160
41161
41162      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
41163 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
41164 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
41165   $as_echo_n "(cached) " >&6
41166 else
41167
41168                   case "$host_os" in
41169                                    # Guess no on HP-UX, Solaris, mingw.
41170         hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
41171                                    # Guess yes otherwise.
41172         *)                         gl_cv_func_mbsrtowcs_works="guessing yes" ;;
41173       esac
41174       if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
41175         if test "$cross_compiling" = yes; then :
41176   :
41177 else
41178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41179 /* end confdefs.h.  */
41180
41181 #include <locale.h>
41182 #include <string.h>
41183 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
41184    <wchar.h>.
41185    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41186    included before <wchar.h>.  */
41187 #include <stddef.h>
41188 #include <stdio.h>
41189 #include <time.h>
41190 #include <wchar.h>
41191 int main ()
41192 {
41193   int result = 0;
41194   /* Test whether the function supports a NULL destination argument.
41195      This fails on native Windows.  */
41196   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
41197     {
41198       const char input[] = "\337er";
41199       const char *src = input;
41200       mbstate_t state;
41201
41202       memset (&state, '\0', sizeof (mbstate_t));
41203       if (mbsrtowcs (NULL, &src, 1, &state) != 3
41204           || src != input)
41205         result |= 1;
41206     }
41207   /* Test whether the function works when started with a conversion state
41208      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
41209   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
41210     {
41211       const char input[] = "B\303\274\303\237er";
41212       mbstate_t state;
41213
41214       memset (&state, '\0', sizeof (mbstate_t));
41215       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
41216         if (!mbsinit (&state))
41217           {
41218             const char *src = input + 2;
41219             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
41220               result |= 2;
41221           }
41222     }
41223   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
41224     {
41225       const char input[] = "<\306\374\313\334\270\354>";
41226       mbstate_t state;
41227
41228       memset (&state, '\0', sizeof (mbstate_t));
41229       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
41230         if (!mbsinit (&state))
41231           {
41232             const char *src = input + 4;
41233             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
41234               result |= 4;
41235           }
41236     }
41237   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
41238     {
41239       const char input[] = "B\250\271\201\060\211\070er";
41240       mbstate_t state;
41241
41242       memset (&state, '\0', sizeof (mbstate_t));
41243       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
41244         if (!mbsinit (&state))
41245           {
41246             const char *src = input + 2;
41247             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
41248               result |= 8;
41249           }
41250     }
41251   return result;
41252 }
41253 _ACEOF
41254 if ac_fn_c_try_run "$LINENO"; then :
41255   gl_cv_func_mbsrtowcs_works=yes
41256 else
41257   gl_cv_func_mbsrtowcs_works=no
41258 fi
41259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41260   conftest.$ac_objext conftest.beam conftest.$ac_ext
41261 fi
41262
41263       fi
41264
41265 fi
41266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
41267 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
41268
41269       case "$gl_cv_func_mbsrtowcs_works" in
41270         *yes) ;;
41271         *) REPLACE_MBSRTOWCS=1 ;;
41272       esac
41273     fi
41274   fi
41275
41276   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
41277
41278
41279
41280
41281
41282
41283
41284
41285   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
41296
41297
41298   :
41299
41300   fi
41301
41302
41303
41304
41305
41306           GNULIB_MBSRTOWCS=1
41307
41308
41309
41310
41311
41312 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
41313
41314
41315
41316
41317
41318
41319
41320
41321           GNULIB_MBSSTR=1
41322
41323
41324
41325
41326
41327 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
41328
41329
41330
41331
41332
41333
41334
41335       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
41336 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
41337 if ${ac_cv_have_decl_mbswidth+:} false; then :
41338   $as_echo_n "(cached) " >&6
41339 else
41340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41341 /* end confdefs.h.  */
41342
41343 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
41344    <wchar.h>.
41345    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
41346    before <wchar.h>.  */
41347 #include <stddef.h>
41348 #include <stdio.h>
41349 #include <time.h>
41350 #include <wchar.h>
41351
41352 int
41353 main ()
41354 {
41355
41356   char *p = (char *) mbswidth;
41357   return !p;
41358
41359   ;
41360   return 0;
41361 }
41362 _ACEOF
41363 if ac_fn_c_try_compile "$LINENO"; then :
41364   ac_cv_have_decl_mbswidth=yes
41365 else
41366   ac_cv_have_decl_mbswidth=no
41367 fi
41368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41369 fi
41370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
41371 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
41372   if test $ac_cv_have_decl_mbswidth = yes; then
41373     ac_val=1
41374   else
41375     ac_val=0
41376   fi
41377
41378 cat >>confdefs.h <<_ACEOF
41379 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
41380 _ACEOF
41381
41382
41383
41384
41385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
41386 $as_echo_n "checking for mbstate_t... " >&6; }
41387 if ${ac_cv_type_mbstate_t+:} false; then :
41388   $as_echo_n "(cached) " >&6
41389 else
41390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41391 /* end confdefs.h.  */
41392 $ac_includes_default
41393 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
41394    <wchar.h>.
41395    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41396    included before <wchar.h>.  */
41397 #include <stddef.h>
41398 #include <stdio.h>
41399 #include <time.h>
41400 #include <wchar.h>
41401 int
41402 main ()
41403 {
41404 mbstate_t x; return sizeof x;
41405   ;
41406   return 0;
41407 }
41408 _ACEOF
41409 if ac_fn_c_try_compile "$LINENO"; then :
41410   ac_cv_type_mbstate_t=yes
41411 else
41412   ac_cv_type_mbstate_t=no
41413 fi
41414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41415 fi
41416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
41417 $as_echo "$ac_cv_type_mbstate_t" >&6; }
41418    if test $ac_cv_type_mbstate_t = yes; then
41419
41420 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
41421
41422    else
41423
41424 $as_echo "#define mbstate_t int" >>confdefs.h
41425
41426    fi
41427
41428
41429
41430
41431   :
41432
41433
41434   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
41435
41436
41437
41438
41439
41440
41441
41442
41443   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
41444
41445
41446   for ac_header in bp-sym.h
41447 do :
41448   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
41449 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
41450   cat >>confdefs.h <<_ACEOF
41451 #define HAVE_BP_SYM_H 1
41452 _ACEOF
41453
41454 fi
41455
41456 done
41457
41458
41459   fi
41460
41461
41462
41463
41464
41465           GNULIB_MEMCHR=1
41466
41467
41468
41469
41470
41471 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
41472
41473
41474
41475
41476   for ac_func in memmove
41477 do :
41478   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
41479 if test "x$ac_cv_func_memmove" = xyes; then :
41480   cat >>confdefs.h <<_ACEOF
41481 #define HAVE_MEMMOVE 1
41482 _ACEOF
41483
41484 fi
41485 done
41486
41487
41488   if test $ac_cv_func_memmove = no; then
41489
41490
41491
41492
41493
41494
41495
41496
41497   gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext"
41498
41499
41500   :
41501
41502   fi
41503
41504   for ac_func in memset
41505 do :
41506   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
41507 if test "x$ac_cv_func_memset" = xyes; then :
41508   cat >>confdefs.h <<_ACEOF
41509 #define HAVE_MEMSET 1
41510 _ACEOF
41511
41512 fi
41513 done
41514
41515
41516   if test $ac_cv_func_memset = no; then
41517
41518
41519
41520
41521
41522
41523
41524
41525   gl_LIBOBJS="$gl_LIBOBJS memset.$ac_objext"
41526
41527
41528   :
41529
41530   fi
41531
41532
41533
41534
41535
41536   for ac_func in mkdtemp
41537 do :
41538   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
41539 if test "x$ac_cv_func_mkdtemp" = xyes; then :
41540   cat >>confdefs.h <<_ACEOF
41541 #define HAVE_MKDTEMP 1
41542 _ACEOF
41543
41544 fi
41545 done
41546
41547   if test $ac_cv_func_mkdtemp = no; then
41548     HAVE_MKDTEMP=0
41549   fi
41550
41551   if test $HAVE_MKDTEMP = 0; then
41552
41553
41554
41555
41556
41557
41558
41559
41560   gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
41561
41562     :
41563
41564   fi
41565
41566
41567
41568
41569
41570           GNULIB_MKDTEMP=1
41571
41572
41573
41574
41575
41576 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
41577
41578
41579
41580
41581
41582           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
41583 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
41584 if ${gl_cv_c_cplusplus+:} false; then :
41585   $as_echo_n "(cached) " >&6
41586 else
41587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41588 /* end confdefs.h.  */
41589
41590 #ifdef __cplusplus
41591   Is c++
41592 #endif
41593
41594 _ACEOF
41595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41596   $EGREP "Is c++" >/dev/null 2>&1; then :
41597   gl_cv_c_cplusplus=yes
41598 else
41599   gl_cv_c_cplusplus=no
41600 fi
41601 rm -f conftest*
41602
41603 fi
41604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
41605 $as_echo "$gl_cv_c_cplusplus" >&6; }
41606   if test $gl_cv_c_cplusplus = yes; then
41607
41608 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
41609
41610   fi
41611
41612
41613
41614   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
41615     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
41616
41617 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
41618
41619   else
41620     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
41621   fi
41622
41623
41624   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
41625
41626
41627
41628
41629
41630
41631
41632
41633   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
41634
41635   fi
41636
41637
41638
41639   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
41640
41641
41642
41643
41644
41645
41646
41647
41648   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
41649
41650   fi
41651
41652
41653   NO_CXX=
41654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41655 /* end confdefs.h.  */
41656
41657 #if defined __GNUC__ && defined __cplusplus
41658   Is g++
41659 #endif
41660
41661 _ACEOF
41662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41663   $EGREP "Is g++" >/dev/null 2>&1; then :
41664   NO_CXX="-x c"
41665 fi
41666 rm -f conftest*
41667
41668
41669
41670
41671
41672
41673
41674
41675
41676
41677
41678
41679
41680
41681
41682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
41683 $as_echo_n "checking for obstacks... " >&6; }
41684 if ${ac_cv_func_obstack+:} false; then :
41685   $as_echo_n "(cached) " >&6
41686 else
41687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41688 /* end confdefs.h.  */
41689 $ac_includes_default
41690                       #include "obstack.h"
41691 int
41692 main ()
41693 {
41694 struct obstack mem;
41695                        #define obstack_chunk_alloc malloc
41696                        #define obstack_chunk_free free
41697                        obstack_init (&mem);
41698                        obstack_free (&mem, 0);
41699   ;
41700   return 0;
41701 }
41702 _ACEOF
41703 if ac_fn_c_try_link "$LINENO"; then :
41704   ac_cv_func_obstack=yes
41705 else
41706   ac_cv_func_obstack=no
41707 fi
41708 rm -f core conftest.err conftest.$ac_objext \
41709     conftest$ac_exeext conftest.$ac_ext
41710 fi
41711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
41712 $as_echo "$ac_cv_func_obstack" >&6; }
41713 if test $ac_cv_func_obstack = yes; then
41714
41715 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
41716
41717 else
41718
41719
41720
41721
41722
41723
41724
41725
41726   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
41727
41728 fi
41729
41730
41731
41732   case "$host_os" in
41733     mingw* | pw*)
41734       REPLACE_OPEN=1
41735       ;;
41736     *)
41737
41738       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
41739 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
41740 if ${gl_cv_func_open_slash+:} false; then :
41741   $as_echo_n "(cached) " >&6
41742 else
41743   # Assume that if we have lstat, we can also check symlinks.
41744           if test $ac_cv_func_lstat = yes; then
41745             touch conftest.tmp
41746             ln -s conftest.tmp conftest.lnk
41747           fi
41748           if test "$cross_compiling" = yes; then :
41749
41750              case "$host_os" in
41751                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
41752                  gl_cv_func_open_slash="guessing no" ;;
41753                *)
41754                  gl_cv_func_open_slash="guessing yes" ;;
41755              esac
41756
41757 else
41758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41759 /* end confdefs.h.  */
41760
41761 #include <fcntl.h>
41762 #if HAVE_UNISTD_H
41763 # include <unistd.h>
41764 #endif
41765 int main ()
41766 {
41767   int result = 0;
41768 #if HAVE_LSTAT
41769   if (open ("conftest.lnk/", O_RDONLY) != -1)
41770     result |= 1;
41771 #endif
41772   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
41773     result |= 2;
41774   return result;
41775 }
41776 _ACEOF
41777 if ac_fn_c_try_run "$LINENO"; then :
41778   gl_cv_func_open_slash=yes
41779 else
41780   gl_cv_func_open_slash=no
41781 fi
41782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41783   conftest.$ac_objext conftest.beam conftest.$ac_ext
41784 fi
41785
41786           rm -f conftest.sl conftest.tmp conftest.lnk
41787
41788 fi
41789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
41790 $as_echo "$gl_cv_func_open_slash" >&6; }
41791       case "$gl_cv_func_open_slash" in
41792         *no)
41793
41794 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
41795
41796           REPLACE_OPEN=1
41797           ;;
41798       esac
41799       ;;
41800   esac
41801
41802
41803
41804   if test $REPLACE_OPEN = 1; then
41805
41806
41807
41808
41809
41810
41811
41812
41813   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
41814
41815
41816
41817   :
41818
41819   fi
41820
41821
41822
41823
41824
41825           GNULIB_OPEN=1
41826
41827
41828
41829
41830
41831 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
41832
41833
41834
41835
41836
41837
41838   for ac_func in opendir
41839 do :
41840   ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
41841 if test "x$ac_cv_func_opendir" = xyes; then :
41842   cat >>confdefs.h <<_ACEOF
41843 #define HAVE_OPENDIR 1
41844 _ACEOF
41845
41846 fi
41847 done
41848
41849   if test $ac_cv_func_opendir = no; then
41850     HAVE_OPENDIR=0
41851   fi
41852
41853
41854   if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
41855
41856
41857
41858
41859
41860
41861
41862
41863   gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
41864
41865   fi
41866
41867
41868
41869
41870
41871           GNULIB_OPENDIR=1
41872
41873
41874
41875
41876
41877 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
41878
41879
41880
41881
41882   OPENMP_CFLAGS=
41883   # Check whether --enable-openmp was given.
41884 if test "${enable_openmp+set}" = set; then :
41885   enableval=$enable_openmp;
41886 fi
41887
41888   if test "$enable_openmp" != no; then
41889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
41890 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
41891 if ${ac_cv_prog_c_openmp+:} false; then :
41892   $as_echo_n "(cached) " >&6
41893 else
41894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41895 /* end confdefs.h.  */
41896
41897 #ifndef _OPENMP
41898  choke me
41899 #endif
41900 #include <omp.h>
41901 int main () { return omp_get_num_threads (); }
41902
41903 _ACEOF
41904 if ac_fn_c_try_link "$LINENO"; then :
41905   ac_cv_prog_c_openmp='none needed'
41906 else
41907   ac_cv_prog_c_openmp='unsupported'
41908                                                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
41909                            -Popenmp --openmp; do
41910             ac_save_CFLAGS=$CFLAGS
41911             CFLAGS="$CFLAGS $ac_option"
41912             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41913 /* end confdefs.h.  */
41914
41915 #ifndef _OPENMP
41916  choke me
41917 #endif
41918 #include <omp.h>
41919 int main () { return omp_get_num_threads (); }
41920
41921 _ACEOF
41922 if ac_fn_c_try_link "$LINENO"; then :
41923   ac_cv_prog_c_openmp=$ac_option
41924 fi
41925 rm -f core conftest.err conftest.$ac_objext \
41926     conftest$ac_exeext conftest.$ac_ext
41927             CFLAGS=$ac_save_CFLAGS
41928             if test "$ac_cv_prog_c_openmp" != unsupported; then
41929               break
41930             fi
41931           done
41932 fi
41933 rm -f core conftest.err conftest.$ac_objext \
41934     conftest$ac_exeext conftest.$ac_ext
41935 fi
41936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
41937 $as_echo "$ac_cv_prog_c_openmp" >&6; }
41938     case $ac_cv_prog_c_openmp in #(
41939       "none needed" | unsupported)
41940         ;; #(
41941       *)
41942         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
41943     esac
41944   fi
41945
41946
41947
41948
41949
41950
41951
41952
41953
41954
41955
41956
41957   if test $ac_cv_func_pipe2 != yes; then
41958     HAVE_PIPE2=0
41959   fi
41960
41961
41962
41963
41964
41965
41966           GNULIB_PIPE2=1
41967
41968
41969
41970
41971
41972 $as_echo "#define GNULIB_TEST_PIPE2 1" >>confdefs.h
41973
41974
41975
41976
41977
41978 cat >>confdefs.h <<_ACEOF
41979 #define GNULIB_PIPE2_SAFER 1
41980 _ACEOF
41981
41982
41983
41984
41985
41986
41987
41988
41989   if test $REPLACE_POSIX_SPAWN = 1; then
41990     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
41991   else
41992             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_addclose works" >&5
41993 $as_echo_n "checking whether posix_spawn_file_actions_addclose works... " >&6; }
41994 if ${gl_cv_func_posix_spawn_file_actions_addclose_works+:} false; then :
41995   $as_echo_n "(cached) " >&6
41996 else
41997   if test "$cross_compiling" = yes; then :
41998   # Guess no on Solaris, yes otherwise.
41999           case "$host_os" in
42000             solaris*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no";;
42001             *)        gl_cv_func_posix_spawn_file_actions_addclose_works="guessing yes";;
42002           esac
42003
42004 else
42005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42006 /* end confdefs.h.  */
42007
42008 #include <spawn.h>
42009 int main ()
42010 {
42011   posix_spawn_file_actions_t actions;
42012   if (posix_spawn_file_actions_init (&actions) != 0)
42013     return 1;
42014   if (posix_spawn_file_actions_addclose (&actions, 10000000) == 0)
42015     return 2;
42016   return 0;
42017 }
42018 _ACEOF
42019 if ac_fn_c_try_run "$LINENO"; then :
42020   gl_cv_func_posix_spawn_file_actions_addclose_works=yes
42021 else
42022   gl_cv_func_posix_spawn_file_actions_addclose_works=no
42023 fi
42024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42025   conftest.$ac_objext conftest.beam conftest.$ac_ext
42026 fi
42027
42028
42029 fi
42030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_addclose_works" >&5
42031 $as_echo "$gl_cv_func_posix_spawn_file_actions_addclose_works" >&6; }
42032     case "$gl_cv_func_posix_spawn_file_actions_addclose_works" in
42033       *yes) ;;
42034       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1 ;;
42035     esac
42036   fi
42037
42038   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
42039
42040
42041
42042
42043
42044
42045
42046
42047   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addclose.$ac_objext"
42048
42049   fi
42050
42051
42052
42053
42054
42055           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
42056
42057
42058
42059
42060
42061 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 1" >>confdefs.h
42062
42063
42064
42065
42066
42067
42068
42069
42070
42071   if test $REPLACE_POSIX_SPAWN = 1; then
42072     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
42073   else
42074             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_adddup2 works" >&5
42075 $as_echo_n "checking whether posix_spawn_file_actions_adddup2 works... " >&6; }
42076 if ${gl_cv_func_posix_spawn_file_actions_adddup2_works+:} false; then :
42077   $as_echo_n "(cached) " >&6
42078 else
42079   if test "$cross_compiling" = yes; then :
42080   # Guess no on Solaris, yes otherwise.
42081           case "$host_os" in
42082             solaris*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no";;
42083             *)        gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing yes";;
42084           esac
42085
42086 else
42087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42088 /* end confdefs.h.  */
42089
42090 #include <spawn.h>
42091 int main ()
42092 {
42093   posix_spawn_file_actions_t actions;
42094   if (posix_spawn_file_actions_init (&actions) != 0)
42095     return 1;
42096   if (posix_spawn_file_actions_adddup2 (&actions, 10000000, 2) == 0)
42097     return 2;
42098   return 0;
42099 }
42100 _ACEOF
42101 if ac_fn_c_try_run "$LINENO"; then :
42102   gl_cv_func_posix_spawn_file_actions_adddup2_works=yes
42103 else
42104   gl_cv_func_posix_spawn_file_actions_adddup2_works=no
42105 fi
42106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42107   conftest.$ac_objext conftest.beam conftest.$ac_ext
42108 fi
42109
42110
42111 fi
42112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_adddup2_works" >&5
42113 $as_echo "$gl_cv_func_posix_spawn_file_actions_adddup2_works" >&6; }
42114     case "$gl_cv_func_posix_spawn_file_actions_adddup2_works" in
42115       *yes) ;;
42116       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1 ;;
42117     esac
42118   fi
42119
42120   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
42121
42122
42123
42124
42125
42126
42127
42128
42129   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_adddup2.$ac_objext"
42130
42131   fi
42132
42133
42134
42135
42136
42137           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
42138
42139
42140
42141
42142
42143 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1" >>confdefs.h
42144
42145
42146
42147
42148
42149
42150
42151
42152
42153   if test $REPLACE_POSIX_SPAWN = 1; then
42154     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
42155   else
42156             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_addopen works" >&5
42157 $as_echo_n "checking whether posix_spawn_file_actions_addopen works... " >&6; }
42158 if ${gl_cv_func_posix_spawn_file_actions_addopen_works+:} false; then :
42159   $as_echo_n "(cached) " >&6
42160 else
42161   if test "$cross_compiling" = yes; then :
42162   # Guess no on Solaris, yes otherwise.
42163           case "$host_os" in
42164             solaris*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no";;
42165             *)        gl_cv_func_posix_spawn_file_actions_addopen_works="guessing yes";;
42166           esac
42167
42168 else
42169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42170 /* end confdefs.h.  */
42171
42172 #include <spawn.h>
42173 #include <fcntl.h>
42174 int main ()
42175 {
42176   posix_spawn_file_actions_t actions;
42177   if (posix_spawn_file_actions_init (&actions) != 0)
42178     return 1;
42179   if (posix_spawn_file_actions_addopen (&actions, 10000000, "foo", 0, O_RDONLY)
42180       == 0)
42181     return 2;
42182   return 0;
42183 }
42184 _ACEOF
42185 if ac_fn_c_try_run "$LINENO"; then :
42186   gl_cv_func_posix_spawn_file_actions_addopen_works=yes
42187 else
42188   gl_cv_func_posix_spawn_file_actions_addopen_works=no
42189 fi
42190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42191   conftest.$ac_objext conftest.beam conftest.$ac_ext
42192 fi
42193
42194
42195 fi
42196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_addopen_works" >&5
42197 $as_echo "$gl_cv_func_posix_spawn_file_actions_addopen_works" >&6; }
42198     case "$gl_cv_func_posix_spawn_file_actions_addopen_works" in
42199       *yes) ;;
42200       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1 ;;
42201     esac
42202   fi
42203
42204   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
42205
42206
42207
42208
42209
42210
42211
42212
42213   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addopen.$ac_objext"
42214
42215   fi
42216
42217
42218
42219
42220
42221           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
42222
42223
42224
42225
42226
42227 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 1" >>confdefs.h
42228
42229
42230
42231
42232
42233
42234   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
42235
42236
42237
42238
42239
42240
42241
42242
42243   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_destroy.$ac_objext"
42244
42245   fi
42246
42247
42248
42249
42250
42251           GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=1
42252
42253
42254
42255
42256
42257 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_DESTROY 1" >>confdefs.h
42258
42259
42260
42261
42262
42263
42264   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
42265
42266
42267
42268
42269
42270
42271
42272
42273   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_init.$ac_objext"
42274
42275   fi
42276
42277
42278
42279
42280
42281           GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=1
42282
42283
42284
42285
42286
42287 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_INIT 1" >>confdefs.h
42288
42289
42290
42291
42292
42293
42294   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
42295
42296
42297
42298
42299
42300
42301
42302
42303   gl_LIBOBJS="$gl_LIBOBJS spawnattr_destroy.$ac_objext"
42304
42305   fi
42306
42307
42308
42309
42310
42311           GNULIB_POSIX_SPAWNATTR_DESTROY=1
42312
42313
42314
42315
42316
42317 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_DESTROY 1" >>confdefs.h
42318
42319
42320
42321
42322
42323
42324   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
42325
42326
42327
42328
42329
42330
42331
42332
42333   gl_LIBOBJS="$gl_LIBOBJS spawnattr_init.$ac_objext"
42334
42335   fi
42336
42337
42338
42339
42340
42341           GNULIB_POSIX_SPAWNATTR_INIT=1
42342
42343
42344
42345
42346
42347 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_INIT 1" >>confdefs.h
42348
42349
42350
42351
42352
42353
42354   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
42355
42356
42357
42358
42359
42360
42361
42362
42363   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setflags.$ac_objext"
42364
42365   fi
42366
42367
42368
42369
42370
42371           GNULIB_POSIX_SPAWNATTR_SETFLAGS=1
42372
42373
42374
42375
42376
42377 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETFLAGS 1" >>confdefs.h
42378
42379
42380
42381
42382
42383
42384   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
42385
42386
42387
42388
42389
42390
42391
42392
42393   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setsigmask.$ac_objext"
42394
42395   fi
42396
42397
42398
42399
42400
42401           GNULIB_POSIX_SPAWNATTR_SETSIGMASK=1
42402
42403
42404
42405
42406
42407 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h
42408
42409
42410
42411
42412
42413
42414   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
42415
42416
42417
42418
42419
42420
42421
42422
42423   gl_LIBOBJS="$gl_LIBOBJS spawnp.$ac_objext"
42424
42425
42426
42427
42428
42429
42430
42431
42432
42433   gl_LIBOBJS="$gl_LIBOBJS spawni.$ac_objext"
42434
42435
42436   for ac_header in paths.h
42437 do :
42438   ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
42439 if test "x$ac_cv_header_paths_h" = xyes; then :
42440   cat >>confdefs.h <<_ACEOF
42441 #define HAVE_PATHS_H 1
42442 _ACEOF
42443
42444 fi
42445
42446 done
42447
42448   for ac_func in confstr sched_setparam sched_setscheduler setegid seteuid vfork
42449 do :
42450   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42453   cat >>confdefs.h <<_ACEOF
42454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42455 _ACEOF
42456
42457 fi
42458 done
42459
42460
42461   fi
42462
42463
42464
42465
42466
42467           GNULIB_POSIX_SPAWNP=1
42468
42469
42470
42471
42472
42473 $as_echo "#define GNULIB_TEST_POSIX_SPAWNP 1" >>confdefs.h
42474
42475
42476
42477   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
42478 "
42479 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
42480   ac_have_decl=1
42481 else
42482   ac_have_decl=0
42483 fi
42484
42485 cat >>confdefs.h <<_ACEOF
42486 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
42487 _ACEOF
42488
42489   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
42490 "
42491 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
42492   ac_have_decl=1
42493 else
42494   ac_have_decl=0
42495 fi
42496
42497 cat >>confdefs.h <<_ACEOF
42498 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
42499 _ACEOF
42500
42501
42502
42503   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
42504
42505
42506
42507   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
42508
42509
42510   # Check whether --enable-acl was given.
42511 if test "${enable_acl+set}" = set; then :
42512   enableval=$enable_acl;
42513 else
42514   enable_acl=auto
42515 fi
42516
42517
42518   LIB_ACL=
42519   use_acl=0
42520   if test "x$enable_acl" != "xno"; then
42521         for ac_header in sys/acl.h
42522 do :
42523   ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
42524 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
42525   cat >>confdefs.h <<_ACEOF
42526 #define HAVE_SYS_ACL_H 1
42527 _ACEOF
42528
42529 fi
42530
42531 done
42532
42533     if test $ac_cv_header_sys_acl_h = yes; then
42534       ac_save_LIBS=$LIBS
42535
42536                   if test $use_acl = 0; then
42537         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
42538 $as_echo_n "checking for library containing acl_get_file... " >&6; }
42539 if ${ac_cv_search_acl_get_file+:} false; then :
42540   $as_echo_n "(cached) " >&6
42541 else
42542   ac_func_search_save_LIBS=$LIBS
42543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42544 /* end confdefs.h.  */
42545
42546 /* Override any GCC internal prototype to avoid an error.
42547    Use char because int might match the return type of a GCC
42548    builtin and then its argument prototype would still apply.  */
42549 #ifdef __cplusplus
42550 extern "C"
42551 #endif
42552 char acl_get_file ();
42553 int
42554 main ()
42555 {
42556 return acl_get_file ();
42557   ;
42558   return 0;
42559 }
42560 _ACEOF
42561 for ac_lib in '' acl pacl; do
42562   if test -z "$ac_lib"; then
42563     ac_res="none required"
42564   else
42565     ac_res=-l$ac_lib
42566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
42567   fi
42568   if ac_fn_c_try_link "$LINENO"; then :
42569   ac_cv_search_acl_get_file=$ac_res
42570 fi
42571 rm -f core conftest.err conftest.$ac_objext \
42572     conftest$ac_exeext
42573   if ${ac_cv_search_acl_get_file+:} false; then :
42574   break
42575 fi
42576 done
42577 if ${ac_cv_search_acl_get_file+:} false; then :
42578
42579 else
42580   ac_cv_search_acl_get_file=no
42581 fi
42582 rm conftest.$ac_ext
42583 LIBS=$ac_func_search_save_LIBS
42584 fi
42585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
42586 $as_echo "$ac_cv_search_acl_get_file" >&6; }
42587 ac_res=$ac_cv_search_acl_get_file
42588 if test "$ac_res" != no; then :
42589   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42590   if test "$ac_cv_search_acl_get_file" != "none required"; then
42591              LIB_ACL=$ac_cv_search_acl_get_file
42592            fi
42593            for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
42594               acl_free acl_from_mode acl_from_text \
42595               acl_delete_def_file acl_extended_file \
42596               acl_delete_fd_np acl_delete_file_np \
42597               acl_copy_ext_native acl_create_entry_np \
42598               acl_to_short_text acl_free_text
42599 do :
42600   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42602 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42603   cat >>confdefs.h <<_ACEOF
42604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42605 _ACEOF
42606
42607 fi
42608 done
42609
42610            # If the acl_get_file bug is detected, don't enable the ACL support.
42611
42612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
42613 $as_echo_n "checking for working acl_get_file... " >&6; }
42614 if ${gl_cv_func_working_acl_get_file+:} false; then :
42615   $as_echo_n "(cached) " >&6
42616 else
42617   if test "$cross_compiling" = yes; then :
42618   gl_cv_func_working_acl_get_file=cross-compiling
42619 else
42620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42621 /* end confdefs.h.  */
42622 #include <sys/types.h>
42623            #include <sys/acl.h>
42624            #include <errno.h>
42625
42626 int
42627 main ()
42628 {
42629 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
42630               return 1;
42631             return 0;
42632
42633   ;
42634   return 0;
42635 }
42636 _ACEOF
42637 if ac_fn_c_try_run "$LINENO"; then :
42638   gl_cv_func_working_acl_get_file=yes
42639 else
42640   gl_cv_func_working_acl_get_file=no
42641 fi
42642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42643   conftest.$ac_objext conftest.beam conftest.$ac_ext
42644 fi
42645
42646 fi
42647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
42648 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
42649
42650   if test $gl_cv_func_working_acl_get_file = yes; then :
42651   use_acl=1
42652 fi
42653
42654            if test $use_acl = 1; then
42655                           for ac_header in acl/libacl.h
42656 do :
42657   ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
42658 if test "x$ac_cv_header_acl_libacl_h" = xyes; then :
42659   cat >>confdefs.h <<_ACEOF
42660 #define HAVE_ACL_LIBACL_H 1
42661 _ACEOF
42662
42663 fi
42664
42665 done
42666
42667
42668
42669
42670
42671
42672
42673
42674
42675   for ac_func in acl_entries
42676 do :
42677   ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
42678 if test "x$ac_cv_func_acl_entries" = xyes; then :
42679   cat >>confdefs.h <<_ACEOF
42680 #define HAVE_ACL_ENTRIES 1
42681 _ACEOF
42682
42683 else
42684
42685     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42686
42687 fi
42688 done
42689
42690
42691              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
42692 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
42693 if ${gl_cv_acl_ACL_FIRST_ENTRY+:} false; then :
42694   $as_echo_n "(cached) " >&6
42695 else
42696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42697 /* end confdefs.h.  */
42698 #include <sys/types.h>
42699 #include <sys/acl.h>
42700 int type = ACL_FIRST_ENTRY;
42701 int
42702 main ()
42703 {
42704
42705   ;
42706   return 0;
42707 }
42708 _ACEOF
42709 if ac_fn_c_try_compile "$LINENO"; then :
42710   gl_cv_acl_ACL_FIRST_ENTRY=yes
42711 else
42712   gl_cv_acl_ACL_FIRST_ENTRY=no
42713 fi
42714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42715 fi
42716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
42717 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
42718              if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
42719
42720 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
42721
42722              fi
42723                           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
42724 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
42725 if ${gl_cv_acl_ACL_TYPE_EXTENDED+:} false; then :
42726   $as_echo_n "(cached) " >&6
42727 else
42728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42729 /* end confdefs.h.  */
42730 #include <sys/types.h>
42731 #include <sys/acl.h>
42732 int type = ACL_TYPE_EXTENDED;
42733 int
42734 main ()
42735 {
42736
42737   ;
42738   return 0;
42739 }
42740 _ACEOF
42741 if ac_fn_c_try_compile "$LINENO"; then :
42742   gl_cv_acl_ACL_TYPE_EXTENDED=yes
42743 else
42744   gl_cv_acl_ACL_TYPE_EXTENDED=no
42745 fi
42746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42747 fi
42748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
42749 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
42750              if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
42751
42752 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
42753
42754              fi
42755            else
42756              LIB_ACL=
42757            fi
42758
42759 fi
42760
42761       fi
42762
42763             if test $use_acl = 0; then
42764         for ac_func in facl
42765 do :
42766   ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
42767 if test "x$ac_cv_func_facl" = xyes; then :
42768   cat >>confdefs.h <<_ACEOF
42769 #define HAVE_FACL 1
42770 _ACEOF
42771
42772 fi
42773 done
42774
42775         if test $ac_cv_func_facl = yes; then
42776           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
42777 $as_echo_n "checking for library containing acl_trivial... " >&6; }
42778 if ${ac_cv_search_acl_trivial+:} false; then :
42779   $as_echo_n "(cached) " >&6
42780 else
42781   ac_func_search_save_LIBS=$LIBS
42782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42783 /* end confdefs.h.  */
42784
42785 /* Override any GCC internal prototype to avoid an error.
42786    Use char because int might match the return type of a GCC
42787    builtin and then its argument prototype would still apply.  */
42788 #ifdef __cplusplus
42789 extern "C"
42790 #endif
42791 char acl_trivial ();
42792 int
42793 main ()
42794 {
42795 return acl_trivial ();
42796   ;
42797   return 0;
42798 }
42799 _ACEOF
42800 for ac_lib in '' sec; do
42801   if test -z "$ac_lib"; then
42802     ac_res="none required"
42803   else
42804     ac_res=-l$ac_lib
42805     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
42806   fi
42807   if ac_fn_c_try_link "$LINENO"; then :
42808   ac_cv_search_acl_trivial=$ac_res
42809 fi
42810 rm -f core conftest.err conftest.$ac_objext \
42811     conftest$ac_exeext
42812   if ${ac_cv_search_acl_trivial+:} false; then :
42813   break
42814 fi
42815 done
42816 if ${ac_cv_search_acl_trivial+:} false; then :
42817
42818 else
42819   ac_cv_search_acl_trivial=no
42820 fi
42821 rm conftest.$ac_ext
42822 LIBS=$ac_func_search_save_LIBS
42823 fi
42824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
42825 $as_echo "$ac_cv_search_acl_trivial" >&6; }
42826 ac_res=$ac_cv_search_acl_trivial
42827 if test "$ac_res" != no; then :
42828   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42829   if test "$ac_cv_search_acl_trivial" != "none required"; then
42830                LIB_ACL=$ac_cv_search_acl_trivial
42831              fi
42832
42833 fi
42834
42835           for ac_func in acl_trivial
42836 do :
42837   ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
42838 if test "x$ac_cv_func_acl_trivial" = xyes; then :
42839   cat >>confdefs.h <<_ACEOF
42840 #define HAVE_ACL_TRIVIAL 1
42841 _ACEOF
42842
42843 fi
42844 done
42845
42846           use_acl=1
42847         fi
42848       fi
42849
42850             if test $use_acl = 0; then
42851         for ac_func in getacl
42852 do :
42853   ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
42854 if test "x$ac_cv_func_getacl" = xyes; then :
42855   cat >>confdefs.h <<_ACEOF
42856 #define HAVE_GETACL 1
42857 _ACEOF
42858
42859 fi
42860 done
42861
42862         if test $ac_cv_func_getacl = yes; then
42863           use_acl=1
42864         fi
42865                 for ac_header in aclv.h
42866 do :
42867   ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
42868 "
42869 if test "x$ac_cv_header_aclv_h" = xyes; then :
42870   cat >>confdefs.h <<_ACEOF
42871 #define HAVE_ACLV_H 1
42872 _ACEOF
42873
42874 fi
42875
42876 done
42877
42878       fi
42879
42880             if test $use_acl = 0; then
42881         for ac_func in aclx_get
42882 do :
42883   ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
42884 if test "x$ac_cv_func_aclx_get" = xyes; then :
42885   cat >>confdefs.h <<_ACEOF
42886 #define HAVE_ACLX_GET 1
42887 _ACEOF
42888
42889 fi
42890 done
42891
42892         if test $ac_cv_func_aclx_get = yes; then
42893           use_acl=1
42894         fi
42895       fi
42896
42897             if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
42898         for ac_func in statacl
42899 do :
42900   ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
42901 if test "x$ac_cv_func_statacl" = xyes; then :
42902   cat >>confdefs.h <<_ACEOF
42903 #define HAVE_STATACL 1
42904 _ACEOF
42905
42906 fi
42907 done
42908
42909         if test $ac_cv_func_statacl = yes; then
42910           use_acl=1
42911         fi
42912       fi
42913
42914             if test $use_acl = 0; then
42915         for ac_func in aclsort
42916 do :
42917   ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
42918 if test "x$ac_cv_func_aclsort" = xyes; then :
42919   cat >>confdefs.h <<_ACEOF
42920 #define HAVE_ACLSORT 1
42921 _ACEOF
42922
42923 fi
42924 done
42925
42926         if test $ac_cv_func_aclsort = yes; then
42927           use_acl=1
42928         fi
42929       fi
42930
42931       LIBS=$ac_save_LIBS
42932     fi
42933     if test "x$enable_acl$use_acl" = "xyes0"; then
42934       as_fn_error $? "ACLs enabled but support not detected" "$LINENO" 5
42935     elif test "x$enable_acl$use_acl" = "xauto0"; then
42936       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
42937 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
42938       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gettext-tools will be built without ACL support." >&5
42939 $as_echo "$as_me: WARNING: gettext-tools will be built without ACL support." >&2;}
42940     fi
42941   fi
42942
42943
42944 cat >>confdefs.h <<_ACEOF
42945 #define USE_ACL $use_acl
42946 _ACEOF
42947
42948   USE_ACL=$use_acl
42949
42950
42951
42952       :
42953
42954
42955   :
42956
42957
42958
42959
42960
42961   for ac_func in raise
42962 do :
42963   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
42964 if test "x$ac_cv_func_raise" = xyes; then :
42965   cat >>confdefs.h <<_ACEOF
42966 #define HAVE_RAISE 1
42967 _ACEOF
42968
42969 fi
42970 done
42971
42972   if test $ac_cv_func_raise = no; then
42973     HAVE_RAISE=0
42974   else
42975     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
42976       REPLACE_RAISE=1
42977     fi
42978
42979
42980
42981
42982   if test $gl_cv_type_sigset_t = yes; then
42983     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
42984 if test "x$ac_cv_func_sigprocmask" = xyes; then :
42985   gl_cv_func_sigprocmask=1
42986 fi
42987
42988   fi
42989   if test -z "$gl_cv_func_sigprocmask"; then
42990     HAVE_POSIX_SIGNALBLOCKING=0
42991   fi
42992
42993       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
42994
42995
42996
42997
42998           if test $gl_cv_header_signal_h_SIGPIPE != yes; then
42999             REPLACE_RAISE=1
43000           fi
43001
43002       fi
43003
43004   fi
43005
43006   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
43007
43008
43009
43010
43011
43012
43013
43014
43015   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
43016
43017     :
43018   fi
43019
43020
43021
43022
43023
43024           GNULIB_RAISE=1
43025
43026
43027
43028
43029
43030 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
43031
43032
43033
43034
43035
43036
43037
43038   for ac_func in rawmemchr
43039 do :
43040   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
43041 if test "x$ac_cv_func_rawmemchr" = xyes; then :
43042   cat >>confdefs.h <<_ACEOF
43043 #define HAVE_RAWMEMCHR 1
43044 _ACEOF
43045
43046 fi
43047 done
43048
43049   if test $ac_cv_func_rawmemchr = no; then
43050     HAVE_RAWMEMCHR=0
43051   fi
43052
43053   if test $HAVE_RAWMEMCHR = 0; then
43054
43055
43056
43057
43058
43059
43060
43061
43062   gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
43063
43064     :
43065   fi
43066
43067
43068
43069
43070
43071           GNULIB_RAWMEMCHR=1
43072
43073
43074
43075
43076
43077 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
43078
43079
43080
43081
43082
43083
43084   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
43085     REPLACE_READ=1
43086   fi
43087
43088
43089   if test $REPLACE_READ = 1; then
43090
43091
43092
43093
43094
43095
43096
43097
43098   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
43099
43100     :
43101   fi
43102
43103
43104
43105
43106
43107           GNULIB_READ=1
43108
43109
43110
43111
43112
43113 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
43114
43115
43116
43117
43118
43119
43120   for ac_func in readdir
43121 do :
43122   ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
43123 if test "x$ac_cv_func_readdir" = xyes; then :
43124   cat >>confdefs.h <<_ACEOF
43125 #define HAVE_READDIR 1
43126 _ACEOF
43127
43128 fi
43129 done
43130
43131   if test $ac_cv_func_readdir = no; then
43132     HAVE_READDIR=0
43133   fi
43134
43135   if test $HAVE_READDIR = 0; then
43136
43137
43138
43139
43140
43141
43142
43143
43144   gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
43145
43146   fi
43147
43148
43149
43150
43151
43152           GNULIB_READDIR=1
43153
43154
43155
43156
43157
43158 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
43159
43160
43161
43162
43163
43164
43165   if test $ac_cv_func_readlink = no; then
43166     HAVE_READLINK=0
43167   else
43168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
43169 $as_echo_n "checking whether readlink signature is correct... " >&6; }
43170 if ${gl_cv_decl_readlink_works+:} false; then :
43171   $as_echo_n "(cached) " >&6
43172 else
43173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43174 /* end confdefs.h.  */
43175 #include <unistd.h>
43176       /* Cause compilation failure if original declaration has wrong type.  */
43177       ssize_t readlink (const char *, char *, size_t);
43178 int
43179 main ()
43180 {
43181
43182   ;
43183   return 0;
43184 }
43185 _ACEOF
43186 if ac_fn_c_try_compile "$LINENO"; then :
43187   gl_cv_decl_readlink_works=yes
43188 else
43189   gl_cv_decl_readlink_works=no
43190 fi
43191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43192 fi
43193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
43194 $as_echo "$gl_cv_decl_readlink_works" >&6; }
43195             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
43196 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
43197 if ${gl_cv_func_readlink_works+:} false; then :
43198   $as_echo_n "(cached) " >&6
43199 else
43200   # We have readlink, so assume ln -s works.
43201        ln -s conftest.no-such conftest.link
43202        ln -s conftest.link conftest.lnk2
43203        if test "$cross_compiling" = yes; then :
43204   case "$host_os" in
43205                     # Guess yes on glibc systems.
43206             *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
43207                     # If we don't know, assume the worst.
43208             *)      gl_cv_func_readlink_works="guessing no" ;;
43209           esac
43210
43211 else
43212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43213 /* end confdefs.h.  */
43214 #include <unistd.h>
43215
43216 int
43217 main ()
43218 {
43219 char buf[20];
43220       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
43221   ;
43222   return 0;
43223 }
43224 _ACEOF
43225 if ac_fn_c_try_run "$LINENO"; then :
43226   gl_cv_func_readlink_works=yes
43227 else
43228   gl_cv_func_readlink_works=no
43229 fi
43230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43231   conftest.$ac_objext conftest.beam conftest.$ac_ext
43232 fi
43233
43234       rm -f conftest.link conftest.lnk2
43235 fi
43236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
43237 $as_echo "$gl_cv_func_readlink_works" >&6; }
43238     case "$gl_cv_func_readlink_works" in
43239       *yes)
43240         if test "$gl_cv_decl_readlink_works" != yes; then
43241           REPLACE_READLINK=1
43242         fi
43243         ;;
43244       *)
43245
43246 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
43247
43248         REPLACE_READLINK=1
43249         ;;
43250     esac
43251   fi
43252
43253   if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
43254
43255
43256
43257
43258
43259
43260
43261
43262   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
43263
43264
43265   :
43266
43267   fi
43268
43269
43270
43271
43272
43273           GNULIB_READLINK=1
43274
43275
43276
43277
43278
43279 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
43280
43281
43282
43283
43284
43285
43286   if test $gl_cv_func_malloc_posix = yes; then
43287
43288 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
43289
43290   else
43291     REPLACE_REALLOC=1
43292   fi
43293
43294   if test $REPLACE_REALLOC = 1; then
43295
43296
43297
43298
43299
43300
43301
43302
43303   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
43304
43305   fi
43306
43307
43308
43309
43310
43311           GNULIB_REALLOC_POSIX=1
43312
43313
43314
43315
43316
43317 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
43318
43319
43320
43321
43322
43323
43324
43325
43326   : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
43327   RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
43328   RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
43329
43330   if test $RELOCATABLE = yes; then
43331
43332
43333
43334
43335
43336
43337
43338
43339   gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
43340
43341
43342
43343
43344
43345
43346
43347
43348
43349   gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
43350
43351   fi
43352
43353
43354
43355   :
43356
43357
43358
43359
43360
43361
43362
43363
43364
43365
43366
43367
43368
43369
43370
43371
43372
43373
43374
43375   if test $ac_cv_have_decl_setenv = no; then
43376     HAVE_DECL_SETENV=0
43377   fi
43378
43379
43380
43381
43382
43383   for ac_header in search.h
43384 do :
43385   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
43386 if test "x$ac_cv_header_search_h" = xyes; then :
43387   cat >>confdefs.h <<_ACEOF
43388 #define HAVE_SEARCH_H 1
43389 _ACEOF
43390
43391 fi
43392
43393 done
43394
43395   for ac_func in tsearch
43396 do :
43397   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
43398 if test "x$ac_cv_func_tsearch" = xyes; then :
43399   cat >>confdefs.h <<_ACEOF
43400 #define HAVE_TSEARCH 1
43401 _ACEOF
43402
43403 fi
43404 done
43405
43406
43407
43408
43409   relocatable_sh=$ac_aux_dir/relocatable.sh.in
43410
43411
43412
43413
43414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
43415 $as_echo_n "checking whether rmdir works... " >&6; }
43416 if ${gl_cv_func_rmdir_works+:} false; then :
43417   $as_echo_n "(cached) " >&6
43418 else
43419   mkdir conftest.dir
43420      touch conftest.file
43421      if test "$cross_compiling" = yes; then :
43422   case "$host_os" in
43423                   # Guess yes on glibc systems.
43424           *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
43425                   # If we don't know, assume the worst.
43426           *)      gl_cv_func_rmdir_works="guessing no" ;;
43427         esac
43428
43429 else
43430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43431 /* end confdefs.h.  */
43432 #include <stdio.h>
43433            #include <errno.h>
43434            #if HAVE_UNISTD_H
43435            # include <unistd.h>
43436            #else /* on Windows with MSVC */
43437            # include <direct.h>
43438            #endif
43439
43440 int
43441 main ()
43442 {
43443 int result = 0;
43444       if (!rmdir ("conftest.file/"))
43445         result |= 1;
43446       else if (errno != ENOTDIR)
43447         result |= 2;
43448       if (!rmdir ("conftest.dir/./"))
43449         result |= 4;
43450       return result;
43451
43452   ;
43453   return 0;
43454 }
43455 _ACEOF
43456 if ac_fn_c_try_run "$LINENO"; then :
43457   gl_cv_func_rmdir_works=yes
43458 else
43459   gl_cv_func_rmdir_works=no
43460 fi
43461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43462   conftest.$ac_objext conftest.beam conftest.$ac_ext
43463 fi
43464
43465      rm -rf conftest.dir conftest.file
43466 fi
43467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
43468 $as_echo "$gl_cv_func_rmdir_works" >&6; }
43469   case "$gl_cv_func_rmdir_works" in
43470     *yes) ;;
43471     *)
43472       REPLACE_RMDIR=1
43473       ;;
43474   esac
43475
43476   if test $REPLACE_RMDIR = 1; then
43477
43478
43479
43480
43481
43482
43483
43484
43485   gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
43486
43487   fi
43488
43489
43490
43491
43492
43493           GNULIB_RMDIR=1
43494
43495
43496
43497
43498
43499 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
43500
43501
43502
43503
43504
43505
43506
43507
43508
43509
43510
43511
43512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43513 /* end confdefs.h.  */
43514
43515        #include <sched.h>
43516        struct sched_param a;
43517        int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
43518        pid_t t1;
43519
43520 int
43521 main ()
43522 {
43523
43524   ;
43525   return 0;
43526 }
43527 _ACEOF
43528 if ac_fn_c_try_compile "$LINENO"; then :
43529   SCHED_H=''
43530 else
43531   SCHED_H='sched.h'
43532
43533
43534
43535
43536
43537
43538
43539
43540
43541
43542      if test $gl_cv_have_include_next = yes; then
43543        gl_cv_next_sched_h='<'sched.h'>'
43544      else
43545        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
43546 $as_echo_n "checking absolute name of <sched.h>... " >&6; }
43547 if ${gl_cv_next_sched_h+:} false; then :
43548   $as_echo_n "(cached) " >&6
43549 else
43550
43551              if test $ac_cv_header_sched_h = yes; then
43552
43553
43554                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43555 /* end confdefs.h.  */
43556 #include <sched.h>
43557
43558 _ACEOF
43559                                                                                                                         case "$host_os" in
43560                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
43561                  *)    gl_absname_cpp="$ac_cpp" ;;
43562                esac
43563
43564                case "$host_os" in
43565                  mingw*)
43566                                                                                                                                      gl_dirsep_regex='[/\\]'
43567                    ;;
43568                  *)
43569                    gl_dirsep_regex='\/'
43570                    ;;
43571                esac
43572                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43573
43574                gl_header_literal_regex=`echo 'sched.h' \
43575                                         | sed -e "$gl_make_literal_regex_sed"`
43576                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43577                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43578                    s|^/[^/]|//&|
43579                    p
43580                    q
43581                  }'
43582                                                             gl_cv_next_sched_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43583                       sed -n "$gl_absolute_header_sed"`'"'
43584           else
43585                gl_cv_next_sched_h='<'sched.h'>'
43586              fi
43587
43588
43589 fi
43590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
43591 $as_echo "$gl_cv_next_sched_h" >&6; }
43592      fi
43593      NEXT_SCHED_H=$gl_cv_next_sched_h
43594
43595      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43596        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43597        gl_next_as_first_directive='<'sched.h'>'
43598      else
43599        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43600        gl_next_as_first_directive=$gl_cv_next_sched_h
43601      fi
43602      NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
43603
43604
43605
43606
43607
43608      if test $ac_cv_header_sched_h = yes; then
43609        HAVE_SCHED_H=1
43610      else
43611        HAVE_SCHED_H=0
43612      fi
43613
43614
43615      ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <sched.h>
43616 "
43617 if test "x$ac_cv_type_struct_sched_param" = xyes; then :
43618   HAVE_STRUCT_SCHED_PARAM=1
43619 else
43620   HAVE_STRUCT_SCHED_PARAM=0
43621 fi
43622
43623
43624
43625
43626
43627 fi
43628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43629
43630    if test -n "$SCHED_H"; then
43631   GL_GENERATE_SCHED_H_TRUE=
43632   GL_GENERATE_SCHED_H_FALSE='#'
43633 else
43634   GL_GENERATE_SCHED_H_TRUE='#'
43635   GL_GENERATE_SCHED_H_FALSE=
43636 fi
43637
43638
43639
43640
43641
43642
43643
43644   if test $ac_cv_func_secure_getenv = no; then
43645     HAVE_SECURE_GETENV=0
43646   fi
43647
43648   if test $HAVE_SECURE_GETENV = 0; then
43649
43650
43651
43652
43653
43654
43655
43656
43657   gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
43658
43659
43660   for ac_func in __secure_getenv
43661 do :
43662   ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
43663 if test "x$ac_cv_func___secure_getenv" = xyes; then :
43664   cat >>confdefs.h <<_ACEOF
43665 #define HAVE___SECURE_GETENV 1
43666 _ACEOF
43667
43668 fi
43669 done
43670
43671   if test $ac_cv_func___secure_getenv = no; then
43672     for ac_func in issetugid
43673 do :
43674   ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
43675 if test "x$ac_cv_func_issetugid" = xyes; then :
43676   cat >>confdefs.h <<_ACEOF
43677 #define HAVE_ISSETUGID 1
43678 _ACEOF
43679
43680 fi
43681 done
43682
43683   fi
43684
43685   fi
43686
43687
43688
43689
43690
43691           GNULIB_SECURE_GETENV=1
43692
43693
43694
43695
43696
43697 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
43698
43699
43700
43701
43702
43703      if test $ac_cv_func_setenv = no; then
43704     HAVE_SETENV=0
43705   else
43706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
43707 $as_echo_n "checking whether setenv validates arguments... " >&6; }
43708 if ${gl_cv_func_setenv_works+:} false; then :
43709   $as_echo_n "(cached) " >&6
43710 else
43711   if test "$cross_compiling" = yes; then :
43712   case "$host_os" in
43713                  # Guess yes on glibc systems.
43714          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
43715                  # If we don't know, assume the worst.
43716          *)      gl_cv_func_setenv_works="guessing no" ;;
43717        esac
43718
43719 else
43720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43721 /* end confdefs.h.  */
43722
43723        #include <stdlib.h>
43724        #include <errno.h>
43725        #include <string.h>
43726
43727 int
43728 main ()
43729 {
43730
43731        int result = 0;
43732        {
43733          if (setenv ("", "", 0) != -1)
43734            result |= 1;
43735          else if (errno != EINVAL)
43736            result |= 2;
43737        }
43738        {
43739          if (setenv ("a", "=", 1) != 0)
43740            result |= 4;
43741          else if (strcmp (getenv ("a"), "=") != 0)
43742            result |= 8;
43743        }
43744        return result;
43745
43746   ;
43747   return 0;
43748 }
43749 _ACEOF
43750 if ac_fn_c_try_run "$LINENO"; then :
43751   gl_cv_func_setenv_works=yes
43752 else
43753   gl_cv_func_setenv_works=no
43754 fi
43755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43756   conftest.$ac_objext conftest.beam conftest.$ac_ext
43757 fi
43758
43759 fi
43760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
43761 $as_echo "$gl_cv_func_setenv_works" >&6; }
43762     case "$gl_cv_func_setenv_works" in
43763       *yes) ;;
43764       *)
43765         REPLACE_SETENV=1
43766         ;;
43767     esac
43768   fi
43769
43770   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
43771
43772
43773
43774
43775
43776
43777
43778
43779   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
43780
43781   fi
43782
43783
43784
43785
43786
43787           GNULIB_SETENV=1
43788
43789
43790
43791
43792
43793 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
43794
43795
43796
43797
43798
43799
43800   case "$host_os" in
43801             mingw*) REPLACE_SETLOCALE=1 ;;
43802             cygwin*)
43803       case `uname -r` in
43804         1.5.*) REPLACE_SETLOCALE=1 ;;
43805       esac
43806       ;;
43807   esac
43808
43809   if test $REPLACE_SETLOCALE = 1; then
43810
43811
43812
43813
43814
43815
43816
43817
43818   gl_LIBOBJS="$gl_LIBOBJS setlocale.$ac_objext"
43819
43820
43821   :
43822
43823   fi
43824
43825
43826
43827
43828
43829           GNULIB_SETLOCALE=1
43830
43831
43832
43833
43834
43835 $as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
43836
43837
43838
43839
43840
43841
43842   if test $ac_cv_func_sigaction = yes; then
43843     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
43844 "
43845 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
43846
43847 cat >>confdefs.h <<_ACEOF
43848 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
43849 _ACEOF
43850
43851
43852 fi
43853
43854     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
43855       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
43856     fi
43857   else
43858     HAVE_SIGACTION=0
43859   fi
43860
43861   if test $HAVE_SIGACTION = 0; then
43862
43863
43864
43865
43866
43867
43868
43869
43870   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
43871
43872
43873
43874
43875
43876
43877
43878   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
43879 #include <signal.h>
43880
43881 "
43882 if test "x$ac_cv_type_siginfo_t" = xyes; then :
43883
43884 cat >>confdefs.h <<_ACEOF
43885 #define HAVE_SIGINFO_T 1
43886 _ACEOF
43887
43888
43889 fi
43890
43891   if test $ac_cv_type_siginfo_t = no; then
43892     HAVE_SIGINFO_T=0
43893   fi
43894
43895   fi
43896
43897
43898
43899
43900
43901           GNULIB_SIGACTION=1
43902
43903
43904
43905
43906
43907 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
43908
43909
43910
43911
43912
43913
43914
43915
43916
43917
43918
43919
43920
43921
43922      if test $gl_cv_have_include_next = yes; then
43923        gl_cv_next_signal_h='<'signal.h'>'
43924      else
43925        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
43926 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
43927 if ${gl_cv_next_signal_h+:} false; then :
43928   $as_echo_n "(cached) " >&6
43929 else
43930
43931                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43932 /* end confdefs.h.  */
43933 #include <signal.h>
43934
43935 _ACEOF
43936                                                                                                                         case "$host_os" in
43937                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
43938                  *)    gl_absname_cpp="$ac_cpp" ;;
43939                esac
43940
43941                case "$host_os" in
43942                  mingw*)
43943                                                                                                                                      gl_dirsep_regex='[/\\]'
43944                    ;;
43945                  *)
43946                    gl_dirsep_regex='\/'
43947                    ;;
43948                esac
43949                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43950
43951                gl_header_literal_regex=`echo 'signal.h' \
43952                                         | sed -e "$gl_make_literal_regex_sed"`
43953                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43954                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43955                    s|^/[^/]|//&|
43956                    p
43957                    q
43958                  }'
43959                                                             gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43960                       sed -n "$gl_absolute_header_sed"`'"'
43961
43962
43963 fi
43964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
43965 $as_echo "$gl_cv_next_signal_h" >&6; }
43966      fi
43967      NEXT_SIGNAL_H=$gl_cv_next_signal_h
43968
43969      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43970        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43971        gl_next_as_first_directive='<'signal.h'>'
43972      else
43973        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43974        gl_next_as_first_directive=$gl_cv_next_signal_h
43975      fi
43976      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
43977
43978
43979
43980
43981
43982 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
43983 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
43984   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
43985 #include <signal.h>
43986
43987 "
43988 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
43989
43990 else
43991   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
43992 fi
43993
43994
43995
43996
43997
43998
43999
44000   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
44001 #include <signal.h>
44002
44003 "
44004 if test "x$ac_cv_type_sighandler_t" = xyes; then :
44005
44006 else
44007   HAVE_SIGHANDLER_T=0
44008 fi
44009
44010
44011
44012     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
44013     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
44014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
44015 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
44016 if eval \${$as_gl_Symbol+:} false; then :
44017   $as_echo_n "(cached) " >&6
44018 else
44019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44020 /* end confdefs.h.  */
44021 #include <signal.h>
44022
44023 int
44024 main ()
44025 {
44026 #undef $gl_func
44027   (void) $gl_func;
44028   ;
44029   return 0;
44030 }
44031 _ACEOF
44032 if ac_fn_c_try_compile "$LINENO"; then :
44033   eval "$as_gl_Symbol=yes"
44034 else
44035   eval "$as_gl_Symbol=no"
44036 fi
44037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44038 fi
44039 eval ac_res=\$$as_gl_Symbol
44040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
44041 $as_echo "$ac_res" >&6; }
44042     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
44043   cat >>confdefs.h <<_ACEOF
44044 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
44045 _ACEOF
44046
44047                      eval ac_cv_have_decl_$gl_func=yes
44048 fi
44049       done
44050
44051
44052
44053
44054
44055
44056
44057 cat >>confdefs.h <<_ACEOF
44058 #define GNULIB_SIGPIPE 1
44059 _ACEOF
44060
44061
44062
44063   GNULIB_SIGNAL_H_SIGPIPE=1
44064
44065
44066   GNULIB_STDIO_H_SIGPIPE=1
44067
44068   GNULIB_UNISTD_H_SIGPIPE=1
44069
44070
44071
44072   if test $gl_cv_type_sigset_t = yes; then
44073     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
44074 if test "x$ac_cv_func_sigprocmask" = xyes; then :
44075   gl_cv_func_sigprocmask=1
44076 fi
44077
44078   fi
44079   if test -z "$gl_cv_func_sigprocmask"; then
44080     HAVE_POSIX_SIGNALBLOCKING=0
44081   fi
44082
44083   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
44084
44085
44086
44087
44088
44089
44090
44091
44092   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
44093
44094     :
44095   fi
44096
44097
44098
44099
44100
44101           GNULIB_SIGPROCMASK=1
44102
44103
44104
44105
44106
44107 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
44108
44109
44110
44111
44112   for ac_header in stdint.h
44113 do :
44114   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
44115 if test "x$ac_cv_header_stdint_h" = xyes; then :
44116   cat >>confdefs.h <<_ACEOF
44117 #define HAVE_STDINT_H 1
44118 _ACEOF
44119
44120 fi
44121
44122 done
44123
44124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
44125 $as_echo_n "checking for SIZE_MAX... " >&6; }
44126 if ${gl_cv_size_max+:} false; then :
44127   $as_echo_n "(cached) " >&6
44128 else
44129
44130     gl_cv_size_max=
44131     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44132 /* end confdefs.h.  */
44133
44134 #include <limits.h>
44135 #if HAVE_STDINT_H
44136 #include <stdint.h>
44137 #endif
44138 #ifdef SIZE_MAX
44139 Found it
44140 #endif
44141
44142 _ACEOF
44143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44144   $EGREP "Found it" >/dev/null 2>&1; then :
44145   gl_cv_size_max=yes
44146 fi
44147 rm -f conftest*
44148
44149     if test -z "$gl_cv_size_max"; then
44150                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
44151 #include <limits.h>"; then :
44152
44153 else
44154   size_t_bits_minus_1=
44155 fi
44156
44157       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
44158
44159 else
44160   fits_in_uint=
44161 fi
44162
44163       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
44164         if test $fits_in_uint = 1; then
44165                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44166 /* end confdefs.h.  */
44167 #include <stddef.h>
44168                  extern size_t foo;
44169                  extern unsigned long foo;
44170
44171 int
44172 main ()
44173 {
44174
44175   ;
44176   return 0;
44177 }
44178 _ACEOF
44179 if ac_fn_c_try_compile "$LINENO"; then :
44180   fits_in_uint=0
44181 fi
44182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44183         fi
44184                                 if test $fits_in_uint = 1; then
44185           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
44186         else
44187           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
44188         fi
44189       else
44190                 gl_cv_size_max='((size_t)~(size_t)0)'
44191       fi
44192     fi
44193
44194 fi
44195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
44196 $as_echo "$gl_cv_size_max" >&6; }
44197   if test "$gl_cv_size_max" != yes; then
44198
44199 cat >>confdefs.h <<_ACEOF
44200 #define SIZE_MAX $gl_cv_size_max
44201 _ACEOF
44202
44203   fi
44204
44205
44206
44207
44208   gl_cv_func_snprintf_usable=no
44209   for ac_func in snprintf
44210 do :
44211   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
44212 if test "x$ac_cv_func_snprintf" = xyes; then :
44213   cat >>confdefs.h <<_ACEOF
44214 #define HAVE_SNPRINTF 1
44215 _ACEOF
44216
44217 fi
44218 done
44219
44220   if test $ac_cv_func_snprintf = yes; then
44221
44222
44223
44224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
44225 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
44226 if ${gl_cv_func_snprintf_size1+:} false; then :
44227   $as_echo_n "(cached) " >&6
44228 else
44229
44230       if test "$cross_compiling" = yes; then :
44231   gl_cv_func_snprintf_size1="guessing yes"
44232 else
44233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44234 /* end confdefs.h.  */
44235
44236 #include <stdio.h>
44237 #if HAVE_SNPRINTF
44238 # define my_snprintf snprintf
44239 #else
44240 # include <stdarg.h>
44241 static int my_snprintf (char *buf, int size, const char *format, ...)
44242 {
44243   va_list args;
44244   int ret;
44245   va_start (args, format);
44246   ret = vsnprintf (buf, size, format, args);
44247   va_end (args);
44248   return ret;
44249 }
44250 #endif
44251 int main()
44252 {
44253   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
44254   my_snprintf (buf, 1, "%d", 12345);
44255   return buf[1] != 'E';
44256 }
44257 _ACEOF
44258 if ac_fn_c_try_run "$LINENO"; then :
44259   gl_cv_func_snprintf_size1=yes
44260 else
44261   gl_cv_func_snprintf_size1=no
44262 fi
44263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44264   conftest.$ac_objext conftest.beam conftest.$ac_ext
44265 fi
44266
44267
44268 fi
44269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
44270 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
44271
44272     case "$gl_cv_func_snprintf_size1" in
44273       *yes)
44274
44275         case "$gl_cv_func_snprintf_retval_c99" in
44276           *yes)
44277
44278
44279      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
44280 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
44281 if ${gl_cv_func_printf_positions+:} false; then :
44282   $as_echo_n "(cached) " >&6
44283 else
44284
44285       if test "$cross_compiling" = yes; then :
44286
44287          case "$host_os" in
44288            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
44289                          gl_cv_func_printf_positions="guessing no";;
44290            beos*)        gl_cv_func_printf_positions="guessing no";;
44291            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
44292            *)            gl_cv_func_printf_positions="guessing yes";;
44293          esac
44294
44295 else
44296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44297 /* end confdefs.h.  */
44298
44299 #include <stdio.h>
44300 #include <string.h>
44301 /* The string "%2$d %1$d", with dollar characters protected from the shell's
44302    dollar expansion (possibly an autoconf bug).  */
44303 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
44304 static char buf[100];
44305 int main ()
44306 {
44307   sprintf (buf, format, 33, 55);
44308   return (strcmp (buf, "55 33") != 0);
44309 }
44310 _ACEOF
44311 if ac_fn_c_try_run "$LINENO"; then :
44312   gl_cv_func_printf_positions=yes
44313 else
44314   gl_cv_func_printf_positions=no
44315 fi
44316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44317   conftest.$ac_objext conftest.beam conftest.$ac_ext
44318 fi
44319
44320
44321 fi
44322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
44323 $as_echo "$gl_cv_func_printf_positions" >&6; }
44324
44325             case "$gl_cv_func_printf_positions" in
44326               *yes)
44327                 gl_cv_func_snprintf_usable=yes
44328                 ;;
44329             esac
44330             ;;
44331         esac
44332         ;;
44333     esac
44334   fi
44335   if test $gl_cv_func_snprintf_usable = no; then
44336
44337
44338
44339
44340
44341
44342
44343
44344
44345
44346   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
44347
44348   if test $ac_cv_func_snprintf = yes; then
44349     REPLACE_SNPRINTF=1
44350   fi
44351   :
44352
44353   fi
44354
44355   if test $ac_cv_have_decl_snprintf = no; then
44356     HAVE_DECL_SNPRINTF=0
44357   fi
44358
44359
44360
44361
44362
44363
44364           GNULIB_SNPRINTF=1
44365
44366
44367
44368
44369
44370 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
44371
44372
44373
44374
44375
44376 cat >>confdefs.h <<_ACEOF
44377 #define GNULIB_SNPRINTF 1
44378 _ACEOF
44379
44380
44381
44382
44383
44384
44385
44386
44387
44388
44389
44390
44391
44392
44393      if test $gl_cv_have_include_next = yes; then
44394        gl_cv_next_spawn_h='<'spawn.h'>'
44395      else
44396        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <spawn.h>" >&5
44397 $as_echo_n "checking absolute name of <spawn.h>... " >&6; }
44398 if ${gl_cv_next_spawn_h+:} false; then :
44399   $as_echo_n "(cached) " >&6
44400 else
44401
44402              if test $ac_cv_header_spawn_h = yes; then
44403
44404
44405                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44406 /* end confdefs.h.  */
44407 #include <spawn.h>
44408
44409 _ACEOF
44410                                                                                                                         case "$host_os" in
44411                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
44412                  *)    gl_absname_cpp="$ac_cpp" ;;
44413                esac
44414
44415                case "$host_os" in
44416                  mingw*)
44417                                                                                                                                      gl_dirsep_regex='[/\\]'
44418                    ;;
44419                  *)
44420                    gl_dirsep_regex='\/'
44421                    ;;
44422                esac
44423                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
44424
44425                gl_header_literal_regex=`echo 'spawn.h' \
44426                                         | sed -e "$gl_make_literal_regex_sed"`
44427                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
44428                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
44429                    s|^/[^/]|//&|
44430                    p
44431                    q
44432                  }'
44433                                                             gl_cv_next_spawn_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
44434                       sed -n "$gl_absolute_header_sed"`'"'
44435           else
44436                gl_cv_next_spawn_h='<'spawn.h'>'
44437              fi
44438
44439
44440 fi
44441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_spawn_h" >&5
44442 $as_echo "$gl_cv_next_spawn_h" >&6; }
44443      fi
44444      NEXT_SPAWN_H=$gl_cv_next_spawn_h
44445
44446      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
44447        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
44448        gl_next_as_first_directive='<'spawn.h'>'
44449      else
44450        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
44451        gl_next_as_first_directive=$gl_cv_next_spawn_h
44452      fi
44453      NEXT_AS_FIRST_DIRECTIVE_SPAWN_H=$gl_next_as_first_directive
44454
44455
44456
44457
44458
44459   if test $ac_cv_header_spawn_h = yes; then
44460     HAVE_SPAWN_H=1
44461     ac_fn_c_check_type "$LINENO" "posix_spawnattr_t" "ac_cv_type_posix_spawnattr_t" "
44462 #include <spawn.h>
44463
44464 "
44465 if test "x$ac_cv_type_posix_spawnattr_t" = xyes; then :
44466
44467 cat >>confdefs.h <<_ACEOF
44468 #define HAVE_POSIX_SPAWNATTR_T 1
44469 _ACEOF
44470
44471
44472 else
44473   HAVE_POSIX_SPAWNATTR_T=0
44474 fi
44475
44476     ac_fn_c_check_type "$LINENO" "posix_spawn_file_actions_t" "ac_cv_type_posix_spawn_file_actions_t" "
44477 #include <spawn.h>
44478
44479 "
44480 if test "x$ac_cv_type_posix_spawn_file_actions_t" = xyes; then :
44481
44482 cat >>confdefs.h <<_ACEOF
44483 #define HAVE_POSIX_SPAWN_FILE_ACTIONS_T 1
44484 _ACEOF
44485
44486
44487 else
44488   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
44489 fi
44490
44491   else
44492     HAVE_SPAWN_H=0
44493     HAVE_POSIX_SPAWNATTR_T=0
44494     HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
44495   fi
44496
44497
44498
44499
44500
44501
44502
44503
44504
44505
44506
44507     for gl_func in posix_spawn posix_spawnp posix_spawnattr_init posix_spawnattr_destroy     posix_spawnattr_getsigdefault posix_spawnattr_setsigdefault     posix_spawnattr_getsigmask posix_spawnattr_setsigmask     posix_spawnattr_getflags posix_spawnattr_setflags     posix_spawnattr_getpgroup posix_spawnattr_setpgroup     posix_spawnattr_getschedpolicy posix_spawnattr_setschedpolicy     posix_spawnattr_getschedparam posix_spawnattr_setschedparam     posix_spawn_file_actions_init posix_spawn_file_actions_destroy     posix_spawn_file_actions_addopen posix_spawn_file_actions_addclose     posix_spawn_file_actions_adddup2; do
44508     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
44509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
44510 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
44511 if eval \${$as_gl_Symbol+:} false; then :
44512   $as_echo_n "(cached) " >&6
44513 else
44514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44515 /* end confdefs.h.  */
44516 #include <spawn.h>
44517
44518 int
44519 main ()
44520 {
44521 #undef $gl_func
44522   (void) $gl_func;
44523   ;
44524   return 0;
44525 }
44526 _ACEOF
44527 if ac_fn_c_try_compile "$LINENO"; then :
44528   eval "$as_gl_Symbol=yes"
44529 else
44530   eval "$as_gl_Symbol=no"
44531 fi
44532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44533 fi
44534 eval ac_res=\$$as_gl_Symbol
44535                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
44536 $as_echo "$ac_res" >&6; }
44537     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
44538   cat >>confdefs.h <<_ACEOF
44539 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
44540 _ACEOF
44541
44542                      eval ac_cv_have_decl_$gl_func=yes
44543 fi
44544       done
44545
44546
44547
44548
44549
44550
44551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
44552 $as_echo_n "checking for ssize_t... " >&6; }
44553 if ${gt_cv_ssize_t+:} false; then :
44554   $as_echo_n "(cached) " >&6
44555 else
44556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44557 /* end confdefs.h.  */
44558 #include <sys/types.h>
44559 int
44560 main ()
44561 {
44562 int x = sizeof (ssize_t *) + sizeof (ssize_t);
44563             return !x;
44564   ;
44565   return 0;
44566 }
44567 _ACEOF
44568 if ac_fn_c_try_compile "$LINENO"; then :
44569   gt_cv_ssize_t=yes
44570 else
44571   gt_cv_ssize_t=no
44572 fi
44573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44574 fi
44575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
44576 $as_echo "$gt_cv_ssize_t" >&6; }
44577   if test $gt_cv_ssize_t = no; then
44578
44579 $as_echo "#define ssize_t int" >>confdefs.h
44580
44581   fi
44582
44583
44584
44585
44586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
44587 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
44588 if ${gl_cv_func_stat_dir_slash+:} false; then :
44589   $as_echo_n "(cached) " >&6
44590 else
44591   if test "$cross_compiling" = yes; then :
44592   case $host_os in
44593             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
44594             *) gl_cv_func_stat_dir_slash="guessing yes";;
44595           esac
44596 else
44597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44598 /* end confdefs.h.  */
44599 #include <sys/stat.h>
44600
44601 int
44602 main ()
44603 {
44604 struct stat st; return stat (".", &st) != stat ("./", &st);
44605   ;
44606   return 0;
44607 }
44608 _ACEOF
44609 if ac_fn_c_try_run "$LINENO"; then :
44610   gl_cv_func_stat_dir_slash=yes
44611 else
44612   gl_cv_func_stat_dir_slash=no
44613 fi
44614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44615   conftest.$ac_objext conftest.beam conftest.$ac_ext
44616 fi
44617
44618 fi
44619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
44620 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
44621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
44622 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
44623 if ${gl_cv_func_stat_file_slash+:} false; then :
44624   $as_echo_n "(cached) " >&6
44625 else
44626   touch conftest.tmp
44627        # Assume that if we have lstat, we can also check symlinks.
44628        if test $ac_cv_func_lstat = yes; then
44629          ln -s conftest.tmp conftest.lnk
44630        fi
44631        if test "$cross_compiling" = yes; then :
44632   case "$host_os" in
44633                     # Guess yes on glibc systems.
44634             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
44635                     # If we don't know, assume the worst.
44636             *)      gl_cv_func_stat_file_slash="guessing no" ;;
44637           esac
44638
44639 else
44640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44641 /* end confdefs.h.  */
44642 #include <sys/stat.h>
44643
44644 int
44645 main ()
44646 {
44647 int result = 0;
44648       struct stat st;
44649       if (!stat ("conftest.tmp/", &st))
44650         result |= 1;
44651 #if HAVE_LSTAT
44652       if (!stat ("conftest.lnk/", &st))
44653         result |= 2;
44654 #endif
44655       return result;
44656
44657   ;
44658   return 0;
44659 }
44660 _ACEOF
44661 if ac_fn_c_try_run "$LINENO"; then :
44662   gl_cv_func_stat_file_slash=yes
44663 else
44664   gl_cv_func_stat_file_slash=no
44665 fi
44666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44667   conftest.$ac_objext conftest.beam conftest.$ac_ext
44668 fi
44669
44670        rm -f conftest.tmp conftest.lnk
44671 fi
44672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
44673 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
44674   case $gl_cv_func_stat_dir_slash in
44675     *no) REPLACE_STAT=1
44676
44677 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
44678 ;;
44679   esac
44680   case $gl_cv_func_stat_file_slash in
44681     *no) REPLACE_STAT=1
44682
44683 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
44684 ;;
44685   esac
44686
44687   if test $REPLACE_STAT = 1; then
44688
44689
44690
44691
44692
44693
44694
44695
44696   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
44697
44698     :
44699   fi
44700
44701
44702
44703
44704
44705           GNULIB_STAT=1
44706
44707
44708
44709
44710
44711 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
44712
44713
44714
44715
44716   STDARG_H=''
44717   NEXT_STDARG_H='<stdarg.h>'
44718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
44719 $as_echo_n "checking for va_copy... " >&6; }
44720   if ${gl_cv_func_va_copy+:} false; then :
44721   $as_echo_n "(cached) " >&6
44722 else
44723
44724     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44725 /* end confdefs.h.  */
44726 #include <stdarg.h>
44727 int
44728 main ()
44729 {
44730
44731 #ifndef va_copy
44732 void (*func) (va_list, va_list) = va_copy;
44733 #endif
44734
44735   ;
44736   return 0;
44737 }
44738 _ACEOF
44739 if ac_fn_c_try_compile "$LINENO"; then :
44740   gl_cv_func_va_copy=yes
44741 else
44742   gl_cv_func_va_copy=no
44743 fi
44744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44745 fi
44746
44747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
44748 $as_echo "$gl_cv_func_va_copy" >&6; }
44749   if test $gl_cv_func_va_copy = no; then
44750                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44751 /* end confdefs.h.  */
44752 #if defined _AIX && !defined __GNUC__
44753         AIX vaccine
44754        #endif
44755
44756 _ACEOF
44757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44758   $EGREP "vaccine" >/dev/null 2>&1; then :
44759   gl_aixcc=yes
44760 else
44761   gl_aixcc=no
44762 fi
44763 rm -f conftest*
44764
44765     if test $gl_aixcc = yes; then
44766             STDARG_H=stdarg.h
44767
44768
44769
44770
44771
44772
44773
44774
44775      if test $gl_cv_have_include_next = yes; then
44776        gl_cv_next_stdarg_h='<'stdarg.h'>'
44777      else
44778        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
44779 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
44780 if ${gl_cv_next_stdarg_h+:} false; then :
44781   $as_echo_n "(cached) " >&6
44782 else
44783
44784                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44785 /* end confdefs.h.  */
44786 #include <stdarg.h>
44787
44788 _ACEOF
44789                                                                                                                         case "$host_os" in
44790                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
44791                  *)    gl_absname_cpp="$ac_cpp" ;;
44792                esac
44793
44794                case "$host_os" in
44795                  mingw*)
44796                                                                                                                                      gl_dirsep_regex='[/\\]'
44797                    ;;
44798                  *)
44799                    gl_dirsep_regex='\/'
44800                    ;;
44801                esac
44802                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
44803
44804                gl_header_literal_regex=`echo 'stdarg.h' \
44805                                         | sed -e "$gl_make_literal_regex_sed"`
44806                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
44807                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
44808                    s|^/[^/]|//&|
44809                    p
44810                    q
44811                  }'
44812                                                             gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
44813                       sed -n "$gl_absolute_header_sed"`'"'
44814
44815
44816 fi
44817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
44818 $as_echo "$gl_cv_next_stdarg_h" >&6; }
44819      fi
44820      NEXT_STDARG_H=$gl_cv_next_stdarg_h
44821
44822      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
44823        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
44824        gl_next_as_first_directive='<'stdarg.h'>'
44825      else
44826        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
44827        gl_next_as_first_directive=$gl_cv_next_stdarg_h
44828      fi
44829      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
44830
44831
44832
44833
44834             if test "$gl_cv_next_stdarg_h" = '""'; then
44835         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
44836         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
44837       fi
44838     else
44839
44840   saved_as_echo_n="$as_echo_n"
44841   as_echo_n=':'
44842   if ${gl_cv_func___va_copy+:} false; then :
44843   $as_echo_n "(cached) " >&6
44844 else
44845
44846         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44847 /* end confdefs.h.  */
44848 #include <stdarg.h>
44849 int
44850 main ()
44851 {
44852
44853 #ifndef __va_copy
44854 error, bail out
44855 #endif
44856
44857   ;
44858   return 0;
44859 }
44860 _ACEOF
44861 if ac_fn_c_try_compile "$LINENO"; then :
44862   gl_cv_func___va_copy=yes
44863 else
44864   gl_cv_func___va_copy=no
44865 fi
44866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44867 fi
44868
44869   as_echo_n="$saved_as_echo_n"
44870
44871       if test $gl_cv_func___va_copy = yes; then
44872
44873 $as_echo "#define va_copy __va_copy" >>confdefs.h
44874
44875       else
44876
44877
44878 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
44879
44880       fi
44881     fi
44882   fi
44883
44884    if test -n "$STDARG_H"; then
44885   GL_GENERATE_STDARG_H_TRUE=
44886   GL_GENERATE_STDARG_H_FALSE='#'
44887 else
44888   GL_GENERATE_STDARG_H_TRUE='#'
44889   GL_GENERATE_STDARG_H_FALSE=
44890 fi
44891
44892
44893
44894
44895
44896
44897   # Define two additional variables used in the Makefile substitution.
44898
44899   if test "$ac_cv_header_stdbool_h" = yes; then
44900     STDBOOL_H=''
44901   else
44902     STDBOOL_H='stdbool.h'
44903   fi
44904
44905    if test -n "$STDBOOL_H"; then
44906   GL_GENERATE_STDBOOL_H_TRUE=
44907   GL_GENERATE_STDBOOL_H_FALSE='#'
44908 else
44909   GL_GENERATE_STDBOOL_H_TRUE='#'
44910   GL_GENERATE_STDBOOL_H_FALSE=
44911 fi
44912
44913
44914   if test "$ac_cv_type__Bool" = yes; then
44915     HAVE__BOOL=1
44916   else
44917     HAVE__BOOL=0
44918   fi
44919
44920
44921
44922
44923
44924   STDDEF_H=
44925   if test $gt_cv_c_wchar_t = no; then
44926     HAVE_WCHAR_T=0
44927     STDDEF_H=stddef.h
44928   fi
44929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
44930 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
44931 if ${gl_cv_decl_null_works+:} false; then :
44932   $as_echo_n "(cached) " >&6
44933 else
44934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44935 /* end confdefs.h.  */
44936 #include <stddef.h>
44937       int test[2 * (sizeof NULL == sizeof (void *)) -1];
44938
44939 int
44940 main ()
44941 {
44942
44943   ;
44944   return 0;
44945 }
44946 _ACEOF
44947 if ac_fn_c_try_compile "$LINENO"; then :
44948   gl_cv_decl_null_works=yes
44949 else
44950   gl_cv_decl_null_works=no
44951 fi
44952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44953 fi
44954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
44955 $as_echo "$gl_cv_decl_null_works" >&6; }
44956   if test $gl_cv_decl_null_works = no; then
44957     REPLACE_NULL=1
44958     STDDEF_H=stddef.h
44959   fi
44960
44961    if test -n "$STDDEF_H"; then
44962   GL_GENERATE_STDDEF_H_TRUE=
44963   GL_GENERATE_STDDEF_H_FALSE='#'
44964 else
44965   GL_GENERATE_STDDEF_H_TRUE='#'
44966   GL_GENERATE_STDDEF_H_FALSE=
44967 fi
44968
44969   if test -n "$STDDEF_H"; then
44970
44971
44972
44973
44974
44975
44976
44977
44978      if test $gl_cv_have_include_next = yes; then
44979        gl_cv_next_stddef_h='<'stddef.h'>'
44980      else
44981        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
44982 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
44983 if ${gl_cv_next_stddef_h+:} false; then :
44984   $as_echo_n "(cached) " >&6
44985 else
44986
44987                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44988 /* end confdefs.h.  */
44989 #include <stddef.h>
44990
44991 _ACEOF
44992                                                                                                                         case "$host_os" in
44993                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
44994                  *)    gl_absname_cpp="$ac_cpp" ;;
44995                esac
44996
44997                case "$host_os" in
44998                  mingw*)
44999                                                                                                                                      gl_dirsep_regex='[/\\]'
45000                    ;;
45001                  *)
45002                    gl_dirsep_regex='\/'
45003                    ;;
45004                esac
45005                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
45006
45007                gl_header_literal_regex=`echo 'stddef.h' \
45008                                         | sed -e "$gl_make_literal_regex_sed"`
45009                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
45010                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
45011                    s|^/[^/]|//&|
45012                    p
45013                    q
45014                  }'
45015                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45016                       sed -n "$gl_absolute_header_sed"`'"'
45017
45018
45019 fi
45020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
45021 $as_echo "$gl_cv_next_stddef_h" >&6; }
45022      fi
45023      NEXT_STDDEF_H=$gl_cv_next_stddef_h
45024
45025      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45026        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45027        gl_next_as_first_directive='<'stddef.h'>'
45028      else
45029        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45030        gl_next_as_first_directive=$gl_cv_next_stddef_h
45031      fi
45032      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
45033
45034
45035
45036
45037   fi
45038
45039
45040
45041
45042
45043
45044
45045
45046
45047
45048
45049
45050      if test $gl_cv_have_include_next = yes; then
45051        gl_cv_next_stdio_h='<'stdio.h'>'
45052      else
45053        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
45054 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
45055 if ${gl_cv_next_stdio_h+:} false; then :
45056   $as_echo_n "(cached) " >&6
45057 else
45058
45059                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45060 /* end confdefs.h.  */
45061 #include <stdio.h>
45062
45063 _ACEOF
45064                                                                                                                         case "$host_os" in
45065                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
45066                  *)    gl_absname_cpp="$ac_cpp" ;;
45067                esac
45068
45069                case "$host_os" in
45070                  mingw*)
45071                                                                                                                                      gl_dirsep_regex='[/\\]'
45072                    ;;
45073                  *)
45074                    gl_dirsep_regex='\/'
45075                    ;;
45076                esac
45077                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
45078
45079                gl_header_literal_regex=`echo 'stdio.h' \
45080                                         | sed -e "$gl_make_literal_regex_sed"`
45081                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
45082                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
45083                    s|^/[^/]|//&|
45084                    p
45085                    q
45086                  }'
45087                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45088                       sed -n "$gl_absolute_header_sed"`'"'
45089
45090
45091 fi
45092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
45093 $as_echo "$gl_cv_next_stdio_h" >&6; }
45094      fi
45095      NEXT_STDIO_H=$gl_cv_next_stdio_h
45096
45097      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45098        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45099        gl_next_as_first_directive='<'stdio.h'>'
45100      else
45101        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45102        gl_next_as_first_directive=$gl_cv_next_stdio_h
45103      fi
45104      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
45105
45106
45107
45108
45109
45110       GNULIB_FSCANF=1
45111
45112
45113 cat >>confdefs.h <<_ACEOF
45114 #define GNULIB_FSCANF 1
45115 _ACEOF
45116
45117
45118   GNULIB_SCANF=1
45119
45120
45121 cat >>confdefs.h <<_ACEOF
45122 #define GNULIB_SCANF 1
45123 _ACEOF
45124
45125
45126   GNULIB_FGETC=1
45127   GNULIB_GETC=1
45128   GNULIB_GETCHAR=1
45129   GNULIB_FGETS=1
45130   GNULIB_FREAD=1
45131
45132
45133       GNULIB_FPRINTF=1
45134   GNULIB_PRINTF=1
45135   GNULIB_VFPRINTF=1
45136   GNULIB_VPRINTF=1
45137   GNULIB_FPUTC=1
45138   GNULIB_PUTC=1
45139   GNULIB_PUTCHAR=1
45140   GNULIB_FPUTS=1
45141   GNULIB_PUTS=1
45142   GNULIB_FWRITE=1
45143
45144
45145
45146
45147     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
45148       REPLACE_STDIO_WRITE_FUNCS=1
45149
45150
45151
45152
45153
45154
45155
45156
45157   gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
45158
45159     fi
45160
45161
45162
45163
45164     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
45165     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
45167 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45168 if eval \${$as_gl_Symbol+:} false; then :
45169   $as_echo_n "(cached) " >&6
45170 else
45171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45172 /* end confdefs.h.  */
45173 #include <stdio.h>
45174
45175 int
45176 main ()
45177 {
45178 #undef $gl_func
45179   (void) $gl_func;
45180   ;
45181   return 0;
45182 }
45183 _ACEOF
45184 if ac_fn_c_try_compile "$LINENO"; then :
45185   eval "$as_gl_Symbol=yes"
45186 else
45187   eval "$as_gl_Symbol=no"
45188 fi
45189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45190 fi
45191 eval ac_res=\$$as_gl_Symbol
45192                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45193 $as_echo "$ac_res" >&6; }
45194     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
45195   cat >>confdefs.h <<_ACEOF
45196 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45197 _ACEOF
45198
45199                      eval ac_cv_have_decl_$gl_func=yes
45200 fi
45201       done
45202
45203
45204
45205
45206
45207
45208
45209
45210
45211
45212
45213
45214      if test $gl_cv_have_include_next = yes; then
45215        gl_cv_next_stdlib_h='<'stdlib.h'>'
45216      else
45217        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
45218 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
45219 if ${gl_cv_next_stdlib_h+:} false; then :
45220   $as_echo_n "(cached) " >&6
45221 else
45222
45223                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45224 /* end confdefs.h.  */
45225 #include <stdlib.h>
45226
45227 _ACEOF
45228                                                                                                                         case "$host_os" in
45229                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
45230                  *)    gl_absname_cpp="$ac_cpp" ;;
45231                esac
45232
45233                case "$host_os" in
45234                  mingw*)
45235                                                                                                                                      gl_dirsep_regex='[/\\]'
45236                    ;;
45237                  *)
45238                    gl_dirsep_regex='\/'
45239                    ;;
45240                esac
45241                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
45242
45243                gl_header_literal_regex=`echo 'stdlib.h' \
45244                                         | sed -e "$gl_make_literal_regex_sed"`
45245                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
45246                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
45247                    s|^/[^/]|//&|
45248                    p
45249                    q
45250                  }'
45251                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45252                       sed -n "$gl_absolute_header_sed"`'"'
45253
45254
45255 fi
45256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
45257 $as_echo "$gl_cv_next_stdlib_h" >&6; }
45258      fi
45259      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
45260
45261      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45262        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45263        gl_next_as_first_directive='<'stdlib.h'>'
45264      else
45265        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45266        gl_next_as_first_directive=$gl_cv_next_stdlib_h
45267      fi
45268      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
45269
45270
45271
45272
45273
45274
45275     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
45276     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
45278 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45279 if eval \${$as_gl_Symbol+:} false; then :
45280   $as_echo_n "(cached) " >&6
45281 else
45282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45283 /* end confdefs.h.  */
45284 #include <stdlib.h>
45285 #if HAVE_SYS_LOADAVG_H
45286 # include <sys/loadavg.h>
45287 #endif
45288 #if HAVE_RANDOM_H
45289 # include <random.h>
45290 #endif
45291
45292 int
45293 main ()
45294 {
45295 #undef $gl_func
45296   (void) $gl_func;
45297   ;
45298   return 0;
45299 }
45300 _ACEOF
45301 if ac_fn_c_try_compile "$LINENO"; then :
45302   eval "$as_gl_Symbol=yes"
45303 else
45304   eval "$as_gl_Symbol=no"
45305 fi
45306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45307 fi
45308 eval ac_res=\$$as_gl_Symbol
45309                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45310 $as_echo "$ac_res" >&6; }
45311     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
45312   cat >>confdefs.h <<_ACEOF
45313 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45314 _ACEOF
45315
45316                      eval ac_cv_have_decl_$gl_func=yes
45317 fi
45318       done
45319
45320
45321
45322
45323
45324
45325
45326
45327   for ac_func in stpcpy
45328 do :
45329   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
45330 if test "x$ac_cv_func_stpcpy" = xyes; then :
45331   cat >>confdefs.h <<_ACEOF
45332 #define HAVE_STPCPY 1
45333 _ACEOF
45334
45335 fi
45336 done
45337
45338   if test $ac_cv_func_stpcpy = no; then
45339     HAVE_STPCPY=0
45340   fi
45341
45342   if test $HAVE_STPCPY = 0; then
45343
45344
45345
45346
45347
45348
45349
45350
45351   gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
45352
45353
45354   :
45355
45356   fi
45357
45358
45359
45360
45361
45362           GNULIB_STPCPY=1
45363
45364
45365
45366
45367
45368 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
45369
45370
45371
45372
45373
45374
45375
45376
45377
45378
45379
45380
45381
45382   if test $ac_cv_func_stpncpy = yes; then
45383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stpncpy" >&5
45384 $as_echo_n "checking for working stpncpy... " >&6; }
45385 if ${gl_cv_func_stpncpy+:} false; then :
45386   $as_echo_n "(cached) " >&6
45387 else
45388
45389       if test "$cross_compiling" = yes; then :
45390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45391 /* end confdefs.h.  */
45392
45393 #include <features.h>
45394 #ifdef __GNU_LIBRARY__
45395   Thanks for using GNU
45396 #endif
45397
45398 _ACEOF
45399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45400   $EGREP "Thanks for using GNU" >/dev/null 2>&1; then :
45401   gl_cv_func_stpncpy="guessing yes"
45402 else
45403   gl_cv_func_stpncpy="guessing no"
45404 fi
45405 rm -f conftest*
45406
45407
45408 else
45409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45410 /* end confdefs.h.  */
45411
45412 #include <stdlib.h>
45413 #include <string.h> /* for strcpy */
45414 /* The stpncpy prototype is missing in <string.h> on AIX 4.  */
45415 #if !HAVE_DECL_STPNCPY
45416 extern
45417 # ifdef __cplusplus
45418 "C"
45419 # endif
45420 char *stpncpy (char *dest, const char *src, size_t n);
45421 #endif
45422 int main ()
45423 {
45424   int result = 0;
45425   const char *src = "Hello";
45426   char dest[10];
45427   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here.  */
45428   {
45429     strcpy (dest, "\377\377\377\377\377\377");
45430     if (stpncpy (dest, src, 2) != dest + 2)
45431       result |= 1;
45432   }
45433   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here.  */
45434   {
45435     strcpy (dest, "\377\377\377\377\377\377");
45436     if (stpncpy (dest, src, 5) != dest + 5)
45437       result |= 2;
45438   }
45439   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here.  */
45440   {
45441     strcpy (dest, "\377\377\377\377\377\377");
45442     if (stpncpy (dest, src, 7) != dest + 5)
45443       result |= 4;
45444   }
45445   return result;
45446 }
45447
45448 _ACEOF
45449 if ac_fn_c_try_run "$LINENO"; then :
45450   gl_cv_func_stpncpy=yes
45451 else
45452   gl_cv_func_stpncpy=no
45453 fi
45454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45455   conftest.$ac_objext conftest.beam conftest.$ac_ext
45456 fi
45457
45458
45459 fi
45460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stpncpy" >&5
45461 $as_echo "$gl_cv_func_stpncpy" >&6; }
45462     case "$gl_cv_func_stpncpy" in
45463       *yes)
45464
45465 $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h
45466
45467         ;;
45468       *)
45469         REPLACE_STPNCPY=1
45470         ;;
45471     esac
45472   else
45473     HAVE_STPNCPY=0
45474   fi
45475
45476   if test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1; then
45477
45478
45479
45480
45481
45482
45483
45484
45485   gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext"
45486
45487
45488   :
45489
45490   fi
45491
45492
45493
45494
45495
45496           GNULIB_STPNCPY=1
45497
45498
45499
45500
45501
45502 $as_echo "#define GNULIB_TEST_STPNCPY 1" >>confdefs.h
45503
45504
45505
45506
45507
45508
45509
45510   for ac_func in strchrnul
45511 do :
45512   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
45513 if test "x$ac_cv_func_strchrnul" = xyes; then :
45514   cat >>confdefs.h <<_ACEOF
45515 #define HAVE_STRCHRNUL 1
45516 _ACEOF
45517
45518 fi
45519 done
45520
45521   if test $ac_cv_func_strchrnul = no; then
45522     HAVE_STRCHRNUL=0
45523   else
45524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
45525 $as_echo_n "checking whether strchrnul works... " >&6; }
45526 if ${gl_cv_func_strchrnul_works+:} false; then :
45527   $as_echo_n "(cached) " >&6
45528 else
45529   if test "$cross_compiling" = yes; then :
45530            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45531 /* end confdefs.h.  */
45532
45533 #if defined __CYGWIN__
45534  #include <cygwin/version.h>
45535  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
45536   Lucky user
45537  #endif
45538 #else
45539   Lucky user
45540 #endif
45541
45542 _ACEOF
45543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45544   $EGREP "Lucky user" >/dev/null 2>&1; then :
45545   gl_cv_func_strchrnul_works="guessing yes"
45546 else
45547   gl_cv_func_strchrnul_works="guessing no"
45548 fi
45549 rm -f conftest*
45550
45551
45552 else
45553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45554 /* end confdefs.h.  */
45555
45556 #include <string.h> /* for strchrnul */
45557
45558 int
45559 main ()
45560 {
45561 const char *buf = "a";
45562       return strchrnul (buf, 'b') != buf + 1;
45563
45564   ;
45565   return 0;
45566 }
45567 _ACEOF
45568 if ac_fn_c_try_run "$LINENO"; then :
45569   gl_cv_func_strchrnul_works=yes
45570 else
45571   gl_cv_func_strchrnul_works=no
45572 fi
45573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45574   conftest.$ac_objext conftest.beam conftest.$ac_ext
45575 fi
45576
45577
45578 fi
45579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
45580 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
45581     case "$gl_cv_func_strchrnul_works" in
45582       *yes) ;;
45583       *) REPLACE_STRCHRNUL=1 ;;
45584     esac
45585   fi
45586
45587   if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
45588
45589
45590
45591
45592
45593
45594
45595
45596   gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
45597
45598     :
45599   fi
45600
45601
45602
45603
45604
45605           GNULIB_STRCHRNUL=1
45606
45607
45608
45609
45610
45611 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
45612
45613
45614
45615
45616   for ac_func in strcspn
45617 do :
45618   ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
45619 if test "x$ac_cv_func_strcspn" = xyes; then :
45620   cat >>confdefs.h <<_ACEOF
45621 #define HAVE_STRCSPN 1
45622 _ACEOF
45623
45624 fi
45625 done
45626
45627
45628   if test $ac_cv_func_strcspn = no; then
45629
45630
45631
45632
45633
45634
45635
45636
45637   gl_LIBOBJS="$gl_LIBOBJS strcspn.$ac_objext"
45638
45639     :
45640   fi
45641
45642
45643
45644
45645
45646   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
45647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
45648 $as_echo_n "checking for working strerror function... " >&6; }
45649 if ${gl_cv_func_working_strerror+:} false; then :
45650   $as_echo_n "(cached) " >&6
45651 else
45652   if test "$cross_compiling" = yes; then :
45653   case "$host_os" in
45654                    # Guess yes on glibc systems.
45655            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
45656                    # If we don't know, assume the worst.
45657            *)      gl_cv_func_working_strerror="guessing no" ;;
45658          esac
45659
45660 else
45661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45662 /* end confdefs.h.  */
45663 #include <string.h>
45664
45665 int
45666 main ()
45667 {
45668 if (!*strerror (-2)) return 1;
45669   ;
45670   return 0;
45671 }
45672 _ACEOF
45673 if ac_fn_c_try_run "$LINENO"; then :
45674   gl_cv_func_working_strerror=yes
45675 else
45676   gl_cv_func_working_strerror=no
45677 fi
45678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45679   conftest.$ac_objext conftest.beam conftest.$ac_ext
45680 fi
45681
45682
45683 fi
45684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
45685 $as_echo "$gl_cv_func_working_strerror" >&6; }
45686     case "$gl_cv_func_working_strerror" in
45687       *yes) ;;
45688       *)
45689                         REPLACE_STRERROR=1
45690         ;;
45691     esac
45692
45693   else
45694             REPLACE_STRERROR=1
45695   fi
45696
45697   if test $REPLACE_STRERROR = 1; then
45698
45699
45700
45701
45702
45703
45704
45705
45706   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
45707
45708   fi
45709
45710
45711 cat >>confdefs.h <<_ACEOF
45712 #define GNULIB_STRERROR 1
45713 _ACEOF
45714
45715
45716
45717
45718
45719
45720
45721           GNULIB_STRERROR=1
45722
45723
45724
45725
45726
45727 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
45728
45729
45730
45731
45732
45733   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
45734
45735
45736
45737
45738
45739
45740
45741
45742   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
45743
45744
45745
45746
45747
45748   if test $ac_cv_header_sys_socket_h != yes; then
45749                     for ac_header in winsock2.h
45750 do :
45751   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
45752 if test "x$ac_cv_header_winsock2_h" = xyes; then :
45753   cat >>confdefs.h <<_ACEOF
45754 #define HAVE_WINSOCK2_H 1
45755 _ACEOF
45756
45757 fi
45758
45759 done
45760
45761   fi
45762   if test "$ac_cv_header_winsock2_h" = yes; then
45763     HAVE_WINSOCK2_H=1
45764     UNISTD_H_HAVE_WINSOCK2_H=1
45765     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
45766   else
45767     HAVE_WINSOCK2_H=0
45768   fi
45769
45770
45771   fi
45772   if test $gl_cond_libtool = false; then
45773     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
45774     gl_libdeps="$gl_libdeps $LIBICONV"
45775   fi
45776   if test $gl_cond_libtool = false; then
45777     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
45778     gl_libdeps="$gl_libdeps $LIBICONV"
45779   fi
45780
45781
45782
45783
45784
45785
45786
45787
45788
45789   if test $ac_cv_have_decl_strnlen = no; then
45790     HAVE_DECL_STRNLEN=0
45791   else
45792
45793          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
45794 $as_echo_n "checking for working strnlen... " >&6; }
45795 if ${ac_cv_func_strnlen_working+:} false; then :
45796   $as_echo_n "(cached) " >&6
45797 else
45798   if test "$cross_compiling" = yes; then :
45799   # Guess no on AIX systems, yes otherwise.
45800                 case "$host_os" in
45801                   aix*) ac_cv_func_strnlen_working=no;;
45802                   *)    ac_cv_func_strnlen_working=yes;;
45803                 esac
45804 else
45805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45806 /* end confdefs.h.  */
45807 $ac_includes_default
45808 int
45809 main ()
45810 {
45811
45812 #define S "foobar"
45813 #define S_LEN (sizeof S - 1)
45814
45815   /* At least one implementation is buggy: that of AIX 4.3 would
45816      give strnlen (S, 1) == 3.  */
45817
45818   int i;
45819   for (i = 0; i < S_LEN + 1; ++i)
45820     {
45821       int expected = i <= S_LEN ? i : S_LEN;
45822       if (strnlen (S, i) != expected)
45823         return 1;
45824     }
45825   return 0;
45826
45827   ;
45828   return 0;
45829 }
45830 _ACEOF
45831 if ac_fn_c_try_run "$LINENO"; then :
45832   ac_cv_func_strnlen_working=yes
45833 else
45834   ac_cv_func_strnlen_working=no
45835 fi
45836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45837   conftest.$ac_objext conftest.beam conftest.$ac_ext
45838 fi
45839
45840 fi
45841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
45842 $as_echo "$ac_cv_func_strnlen_working" >&6; }
45843 test $ac_cv_func_strnlen_working = no && :
45844
45845
45846     if test $ac_cv_func_strnlen_working = no; then
45847       REPLACE_STRNLEN=1
45848     fi
45849   fi
45850
45851   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
45852
45853
45854
45855
45856
45857
45858
45859
45860   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
45861
45862     :
45863   fi
45864
45865
45866
45867
45868
45869           GNULIB_STRNLEN=1
45870
45871
45872
45873
45874
45875 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
45876
45877
45878
45879
45880
45881   for ac_func in strpbrk
45882 do :
45883   ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
45884 if test "x$ac_cv_func_strpbrk" = xyes; then :
45885   cat >>confdefs.h <<_ACEOF
45886 #define HAVE_STRPBRK 1
45887 _ACEOF
45888
45889 fi
45890 done
45891
45892   if test $ac_cv_func_strpbrk = no; then
45893     HAVE_STRPBRK=0
45894   fi
45895
45896   if test $HAVE_STRPBRK = 0; then
45897
45898
45899
45900
45901
45902
45903
45904
45905   gl_LIBOBJS="$gl_LIBOBJS strpbrk.$ac_objext"
45906
45907     :
45908   fi
45909
45910
45911
45912
45913
45914           GNULIB_STRPBRK=1
45915
45916
45917
45918
45919
45920 $as_echo "#define GNULIB_TEST_STRPBRK 1" >>confdefs.h
45921
45922
45923
45924
45925
45926   if test $REPLACE_STRSTR = 0; then
45927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
45928 $as_echo_n "checking whether strstr works in linear time... " >&6; }
45929 if ${gl_cv_func_strstr_linear+:} false; then :
45930   $as_echo_n "(cached) " >&6
45931 else
45932   if test "$cross_compiling" = yes; then :
45933                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45934 /* end confdefs.h.  */
45935
45936 #include <features.h>
45937 #ifdef __GNU_LIBRARY__
45938  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
45939      && !(defined __i386__ || defined __x86_64__) \
45940      && !defined __UCLIBC__
45941   Lucky user
45942  #endif
45943 #endif
45944 #ifdef __CYGWIN__
45945  #include <cygwin/version.h>
45946  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
45947   Lucky user
45948  #endif
45949 #endif
45950
45951 _ACEOF
45952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45953   $EGREP "Lucky user" >/dev/null 2>&1; then :
45954   gl_cv_func_strstr_linear="guessing yes"
45955 else
45956   gl_cv_func_strstr_linear="guessing no"
45957 fi
45958 rm -f conftest*
45959
45960
45961 else
45962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45963 /* end confdefs.h.  */
45964
45965 #include <signal.h> /* for signal */
45966 #include <string.h> /* for strstr */
45967 #include <stdlib.h> /* for malloc */
45968 #include <unistd.h> /* for alarm */
45969 static void quit (int sig) { exit (sig + 128); }
45970
45971 int
45972 main ()
45973 {
45974
45975     int result = 0;
45976     size_t m = 1000000;
45977     char *haystack = (char *) malloc (2 * m + 2);
45978     char *needle = (char *) malloc (m + 2);
45979     /* Failure to compile this test due to missing alarm is okay,
45980        since all such platforms (mingw) also have quadratic strstr.  */
45981     signal (SIGALRM, quit);
45982     alarm (5);
45983     /* Check for quadratic performance.  */
45984     if (haystack && needle)
45985       {
45986         memset (haystack, 'A', 2 * m);
45987         haystack[2 * m] = 'B';
45988         haystack[2 * m + 1] = 0;
45989         memset (needle, 'A', m);
45990         needle[m] = 'B';
45991         needle[m + 1] = 0;
45992         if (!strstr (haystack, needle))
45993           result |= 1;
45994       }
45995     return result;
45996
45997   ;
45998   return 0;
45999 }
46000 _ACEOF
46001 if ac_fn_c_try_run "$LINENO"; then :
46002   gl_cv_func_strstr_linear=yes
46003 else
46004   gl_cv_func_strstr_linear=no
46005 fi
46006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46007   conftest.$ac_objext conftest.beam conftest.$ac_ext
46008 fi
46009
46010
46011 fi
46012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
46013 $as_echo "$gl_cv_func_strstr_linear" >&6; }
46014     case "$gl_cv_func_strstr_linear" in
46015       *yes) ;;
46016       *)
46017         REPLACE_STRSTR=1
46018         ;;
46019     esac
46020   fi
46021
46022   if test $REPLACE_STRSTR = 1; then
46023
46024
46025
46026
46027
46028
46029
46030
46031   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
46032
46033   fi
46034
46035
46036
46037   if test "$gl_cv_func_memchr_works" != yes; then
46038     REPLACE_STRSTR=1
46039   else
46040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
46041 $as_echo_n "checking whether strstr works... " >&6; }
46042 if ${gl_cv_func_strstr_works_always+:} false; then :
46043   $as_echo_n "(cached) " >&6
46044 else
46045   if test "$cross_compiling" = yes; then :
46046                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46047 /* end confdefs.h.  */
46048
46049 #ifdef __GNU_LIBRARY__
46050  #include <features.h>
46051  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
46052      || defined __UCLIBC__
46053   Lucky user
46054  #endif
46055 #elif defined __CYGWIN__
46056  #include <cygwin/version.h>
46057  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
46058   Lucky user
46059  #endif
46060 #else
46061   Lucky user
46062 #endif
46063
46064 _ACEOF
46065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46066   $EGREP "Lucky user" >/dev/null 2>&1; then :
46067   gl_cv_func_strstr_works_always="guessing yes"
46068 else
46069   gl_cv_func_strstr_works_always="guessing no"
46070 fi
46071 rm -f conftest*
46072
46073
46074 else
46075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46076 /* end confdefs.h.  */
46077
46078 #include <string.h> /* for strstr */
46079 #define P "_EF_BF_BD"
46080 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
46081 #define NEEDLE P P P P P
46082
46083 int
46084 main ()
46085 {
46086 return !!strstr (HAYSTACK, NEEDLE);
46087
46088   ;
46089   return 0;
46090 }
46091 _ACEOF
46092 if ac_fn_c_try_run "$LINENO"; then :
46093   gl_cv_func_strstr_works_always=yes
46094 else
46095   gl_cv_func_strstr_works_always=no
46096 fi
46097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46098   conftest.$ac_objext conftest.beam conftest.$ac_ext
46099 fi
46100
46101
46102 fi
46103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
46104 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
46105     case "$gl_cv_func_strstr_works_always" in
46106       *yes) ;;
46107       *)
46108         REPLACE_STRSTR=1
46109         ;;
46110     esac
46111   fi
46112
46113   if test $REPLACE_STRSTR = 1; then
46114
46115
46116
46117
46118
46119
46120
46121
46122   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
46123
46124   fi
46125
46126
46127
46128
46129
46130           GNULIB_STRSTR=1
46131
46132
46133
46134
46135
46136 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
46137
46138
46139
46140
46141   for ac_func in strtol
46142 do :
46143   ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
46144 if test "x$ac_cv_func_strtol" = xyes; then :
46145   cat >>confdefs.h <<_ACEOF
46146 #define HAVE_STRTOL 1
46147 _ACEOF
46148
46149 fi
46150 done
46151
46152
46153   if test $ac_cv_func_strtol = no; then
46154
46155
46156
46157
46158
46159
46160
46161
46162   gl_LIBOBJS="$gl_LIBOBJS strtol.$ac_objext"
46163
46164   fi
46165
46166   for ac_func in strtoul
46167 do :
46168   ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
46169 if test "x$ac_cv_func_strtoul" = xyes; then :
46170   cat >>confdefs.h <<_ACEOF
46171 #define HAVE_STRTOUL 1
46172 _ACEOF
46173
46174 fi
46175 done
46176
46177
46178   if test $ac_cv_func_strtoul = no; then
46179
46180
46181
46182
46183
46184
46185
46186
46187   gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
46188
46189   fi
46190
46191
46192
46193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
46194 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
46195 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
46196   $as_echo_n "(cached) " >&6
46197 else
46198
46199                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46200 /* end confdefs.h.  */
46201 #include <sys/select.h>
46202 int
46203 main ()
46204 {
46205 struct timeval b;
46206   ;
46207   return 0;
46208 }
46209 _ACEOF
46210 if ac_fn_c_try_compile "$LINENO"; then :
46211   gl_cv_header_sys_select_h_selfcontained=yes
46212 else
46213   gl_cv_header_sys_select_h_selfcontained=no
46214 fi
46215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46216                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
46217         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46218 /* end confdefs.h.  */
46219 #include <sys/select.h>
46220 int
46221 main ()
46222 {
46223 int memset; int bzero;
46224   ;
46225   return 0;
46226 }
46227
46228 _ACEOF
46229 if ac_fn_c_try_compile "$LINENO"; then :
46230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46231 /* end confdefs.h.  */
46232 #include <sys/select.h>
46233 int
46234 main ()
46235 {
46236
46237                   #undef memset
46238                   #define memset nonexistent_memset
46239                   extern
46240                   #ifdef __cplusplus
46241                   "C"
46242                   #endif
46243                   void *memset (void *, int, unsigned long);
46244                   #undef bzero
46245                   #define bzero nonexistent_bzero
46246                   extern
46247                   #ifdef __cplusplus
46248                   "C"
46249                   #endif
46250                   void bzero (void *, unsigned long);
46251                   fd_set fds;
46252                   FD_ZERO (&fds);
46253
46254   ;
46255   return 0;
46256 }
46257
46258 _ACEOF
46259 if ac_fn_c_try_link "$LINENO"; then :
46260
46261 else
46262   gl_cv_header_sys_select_h_selfcontained=no
46263 fi
46264 rm -f core conftest.err conftest.$ac_objext \
46265     conftest$ac_exeext conftest.$ac_ext
46266
46267 fi
46268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46269       fi
46270
46271 fi
46272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
46273 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
46274
46275
46276
46277
46278
46279
46280
46281
46282
46283      if test $gl_cv_have_include_next = yes; then
46284        gl_cv_next_sys_select_h='<'sys/select.h'>'
46285      else
46286        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
46287 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
46288 if ${gl_cv_next_sys_select_h+:} false; then :
46289   $as_echo_n "(cached) " >&6
46290 else
46291
46292              if test $ac_cv_header_sys_select_h = yes; then
46293
46294
46295                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46296 /* end confdefs.h.  */
46297 #include <sys/select.h>
46298
46299 _ACEOF
46300                                                                                                                         case "$host_os" in
46301                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
46302                  *)    gl_absname_cpp="$ac_cpp" ;;
46303                esac
46304
46305                case "$host_os" in
46306                  mingw*)
46307                                                                                                                                      gl_dirsep_regex='[/\\]'
46308                    ;;
46309                  *)
46310                    gl_dirsep_regex='\/'
46311                    ;;
46312                esac
46313                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
46314
46315                gl_header_literal_regex=`echo 'sys/select.h' \
46316                                         | sed -e "$gl_make_literal_regex_sed"`
46317                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
46318                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
46319                    s|^/[^/]|//&|
46320                    p
46321                    q
46322                  }'
46323                                                             gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46324                       sed -n "$gl_absolute_header_sed"`'"'
46325           else
46326                gl_cv_next_sys_select_h='<'sys/select.h'>'
46327              fi
46328
46329
46330 fi
46331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
46332 $as_echo "$gl_cv_next_sys_select_h" >&6; }
46333      fi
46334      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
46335
46336      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46337        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46338        gl_next_as_first_directive='<'sys/select.h'>'
46339      else
46340        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46341        gl_next_as_first_directive=$gl_cv_next_sys_select_h
46342      fi
46343      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
46344
46345
46346
46347
46348   if test $ac_cv_header_sys_select_h = yes; then
46349     HAVE_SYS_SELECT_H=1
46350   else
46351     HAVE_SYS_SELECT_H=0
46352   fi
46353
46354
46355
46356
46357
46358   if test $ac_cv_header_sys_socket_h != yes; then
46359                     for ac_header in winsock2.h
46360 do :
46361   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
46362 if test "x$ac_cv_header_winsock2_h" = xyes; then :
46363   cat >>confdefs.h <<_ACEOF
46364 #define HAVE_WINSOCK2_H 1
46365 _ACEOF
46366
46367 fi
46368
46369 done
46370
46371   fi
46372   if test "$ac_cv_header_winsock2_h" = yes; then
46373     HAVE_WINSOCK2_H=1
46374     UNISTD_H_HAVE_WINSOCK2_H=1
46375     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
46376   else
46377     HAVE_WINSOCK2_H=0
46378   fi
46379
46380
46381
46382
46383     for gl_func in pselect select; do
46384     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
46385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
46386 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
46387 if eval \${$as_gl_Symbol+:} false; then :
46388   $as_echo_n "(cached) " >&6
46389 else
46390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46391 /* end confdefs.h.  */
46392
46393 /* Some systems require prerequisite headers.  */
46394 #include <sys/types.h>
46395 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
46396 # include <sys/time.h>
46397 #endif
46398 #include <sys/select.h>
46399
46400 int
46401 main ()
46402 {
46403 #undef $gl_func
46404   (void) $gl_func;
46405   ;
46406   return 0;
46407 }
46408 _ACEOF
46409 if ac_fn_c_try_compile "$LINENO"; then :
46410   eval "$as_gl_Symbol=yes"
46411 else
46412   eval "$as_gl_Symbol=no"
46413 fi
46414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46415 fi
46416 eval ac_res=\$$as_gl_Symbol
46417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46418 $as_echo "$ac_res" >&6; }
46419     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
46420   cat >>confdefs.h <<_ACEOF
46421 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
46422 _ACEOF
46423
46424                      eval ac_cv_have_decl_$gl_func=yes
46425 fi
46426       done
46427
46428
46429
46430
46431
46432
46433
46434
46435
46436
46437
46438
46439
46440
46441
46442
46443
46444      if test $gl_cv_have_include_next = yes; then
46445        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
46446      else
46447        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
46448 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
46449 if ${gl_cv_next_sys_stat_h+:} false; then :
46450   $as_echo_n "(cached) " >&6
46451 else
46452
46453              if test $ac_cv_header_sys_stat_h = yes; then
46454
46455
46456                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46457 /* end confdefs.h.  */
46458 #include <sys/stat.h>
46459
46460 _ACEOF
46461                                                                                                                         case "$host_os" in
46462                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
46463                  *)    gl_absname_cpp="$ac_cpp" ;;
46464                esac
46465
46466                case "$host_os" in
46467                  mingw*)
46468                                                                                                                                      gl_dirsep_regex='[/\\]'
46469                    ;;
46470                  *)
46471                    gl_dirsep_regex='\/'
46472                    ;;
46473                esac
46474                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
46475
46476                gl_header_literal_regex=`echo 'sys/stat.h' \
46477                                         | sed -e "$gl_make_literal_regex_sed"`
46478                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
46479                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
46480                    s|^/[^/]|//&|
46481                    p
46482                    q
46483                  }'
46484                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46485                       sed -n "$gl_absolute_header_sed"`'"'
46486           else
46487                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
46488              fi
46489
46490
46491 fi
46492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
46493 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
46494      fi
46495      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
46496
46497      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46498        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46499        gl_next_as_first_directive='<'sys/stat.h'>'
46500      else
46501        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46502        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
46503      fi
46504      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
46505
46506
46507
46508
46509
46510
46511
46512
46513
46514
46515
46516   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
46517
46518 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
46519
46520   fi
46521
46522       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
46523      #include <sys/stat.h>
46524 "
46525 if test "x$ac_cv_type_nlink_t" = xyes; then :
46526
46527 else
46528
46529 $as_echo "#define nlink_t int" >>confdefs.h
46530
46531 fi
46532
46533
46534
46535     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
46536     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
46537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
46538 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
46539 if eval \${$as_gl_Symbol+:} false; then :
46540   $as_echo_n "(cached) " >&6
46541 else
46542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46543 /* end confdefs.h.  */
46544 #include <sys/stat.h>
46545
46546 int
46547 main ()
46548 {
46549 #undef $gl_func
46550   (void) $gl_func;
46551   ;
46552   return 0;
46553 }
46554 _ACEOF
46555 if ac_fn_c_try_compile "$LINENO"; then :
46556   eval "$as_gl_Symbol=yes"
46557 else
46558   eval "$as_gl_Symbol=no"
46559 fi
46560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46561 fi
46562 eval ac_res=\$$as_gl_Symbol
46563                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46564 $as_echo "$ac_res" >&6; }
46565     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
46566   cat >>confdefs.h <<_ACEOF
46567 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
46568 _ACEOF
46569
46570                      eval ac_cv_have_decl_$gl_func=yes
46571 fi
46572       done
46573
46574
46575
46576
46577
46578
46579
46580
46581
46582
46583
46584
46585
46586
46587
46588
46589
46590
46591
46592
46593
46594      if test $gl_cv_have_include_next = yes; then
46595        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
46596      else
46597        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
46598 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
46599 if ${gl_cv_next_sys_wait_h+:} false; then :
46600   $as_echo_n "(cached) " >&6
46601 else
46602
46603              if test $ac_cv_header_sys_wait_h = yes; then
46604
46605
46606                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46607 /* end confdefs.h.  */
46608 #include <sys/wait.h>
46609
46610 _ACEOF
46611                                                                                                                         case "$host_os" in
46612                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
46613                  *)    gl_absname_cpp="$ac_cpp" ;;
46614                esac
46615
46616                case "$host_os" in
46617                  mingw*)
46618                                                                                                                                      gl_dirsep_regex='[/\\]'
46619                    ;;
46620                  *)
46621                    gl_dirsep_regex='\/'
46622                    ;;
46623                esac
46624                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
46625
46626                gl_header_literal_regex=`echo 'sys/wait.h' \
46627                                         | sed -e "$gl_make_literal_regex_sed"`
46628                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
46629                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
46630                    s|^/[^/]|//&|
46631                    p
46632                    q
46633                  }'
46634                                                             gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46635                       sed -n "$gl_absolute_header_sed"`'"'
46636           else
46637                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
46638              fi
46639
46640
46641 fi
46642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
46643 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
46644      fi
46645      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
46646
46647      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46648        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46649        gl_next_as_first_directive='<'sys/wait.h'>'
46650      else
46651        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46652        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
46653      fi
46654      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
46655
46656
46657
46658
46659
46660
46661
46662
46663     for gl_func in waitpid; do
46664     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
46665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
46666 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
46667 if eval \${$as_gl_Symbol+:} false; then :
46668   $as_echo_n "(cached) " >&6
46669 else
46670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46671 /* end confdefs.h.  */
46672 #include <sys/wait.h>
46673 int
46674 main ()
46675 {
46676 #undef $gl_func
46677   (void) $gl_func;
46678   ;
46679   return 0;
46680 }
46681 _ACEOF
46682 if ac_fn_c_try_compile "$LINENO"; then :
46683   eval "$as_gl_Symbol=yes"
46684 else
46685   eval "$as_gl_Symbol=no"
46686 fi
46687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46688 fi
46689 eval ac_res=\$$as_gl_Symbol
46690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46691 $as_echo "$ac_res" >&6; }
46692     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
46693   cat >>confdefs.h <<_ACEOF
46694 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
46695 _ACEOF
46696
46697                      eval ac_cv_have_decl_$gl_func=yes
46698 fi
46699       done
46700
46701
46702
46703
46704
46705   :
46706
46707
46708
46709
46710
46711
46712
46713   if test $gl_cv_terminfo_tparam = no && test $gl_cv_terminfo_tparm = no; then
46714
46715
46716
46717
46718
46719
46720
46721
46722   gl_LIBOBJS="$gl_LIBOBJS tparm.$ac_objext"
46723
46724   fi
46725   case "$gl_cv_terminfo" in
46726     no*)
46727       case "$gl_cv_termcap" in
46728         no*)
46729
46730
46731
46732
46733
46734
46735
46736
46737   gl_LIBOBJS="$gl_LIBOBJS tputs.$ac_objext"
46738
46739           ;;
46740       esac
46741       ;;
46742   esac
46743
46744
46745
46746
46747
46748
46749
46750
46751
46752
46753
46754   :
46755
46756
46757       if  { test "$HAVE_LIBUNISTRING" != yes \
46758     || {
46759
46760
46761
46762             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46763             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46764                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46765                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46766                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46767                          }
46768                     }
46769                }
46770
46771
46772
46773
46774        }
46775   }; then
46776     LIBUNISTRING_UNICONV_H='uniconv.h'
46777   else
46778     LIBUNISTRING_UNICONV_H=
46779   fi
46780
46781
46782
46783
46784        if  { test "$HAVE_LIBUNISTRING" != yes \
46785     || {
46786
46787
46788
46789             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46790             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46791                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46792                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46793                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46794                          }
46795                     }
46796                }
46797
46798
46799
46800
46801        }
46802   }; then
46803   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
46804   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
46805 else
46806   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
46807   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
46808 fi
46809
46810
46811
46812
46813       if  { test "$HAVE_LIBUNISTRING" != yes \
46814     || {
46815
46816
46817
46818             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46819             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46820                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46821                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46822                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46823                          }
46824                     }
46825                }
46826
46827
46828
46829
46830        }
46831   }; then
46832     LIBUNISTRING_UNILBRK_H='unilbrk.h'
46833   else
46834     LIBUNISTRING_UNILBRK_H=
46835   fi
46836
46837
46838
46839
46840
46841        if  { test "$HAVE_LIBUNISTRING" != yes \
46842     || {
46843
46844
46845
46846             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46847             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46848                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46849                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46850                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
46851                          }
46852                     }
46853                }
46854
46855
46856
46857
46858        }
46859   }; then
46860   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
46861   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
46862 else
46863   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
46864   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
46865 fi
46866
46867
46868
46869
46870        if  { test "$HAVE_LIBUNISTRING" != yes \
46871     || {
46872
46873
46874
46875             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46876             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46877                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46878                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46879                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
46880                          }
46881                     }
46882                }
46883
46884
46885
46886
46887        }
46888   }; then
46889   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
46890   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
46891 else
46892   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
46893   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
46894 fi
46895
46896
46897
46898
46899        if  { test "$HAVE_LIBUNISTRING" != yes \
46900     || {
46901
46902
46903
46904             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46905             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46906                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46907                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46908                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
46909                          }
46910                     }
46911                }
46912
46913
46914
46915
46916        }
46917   }; then
46918   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
46919   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
46920 else
46921   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
46922   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
46923 fi
46924
46925
46926
46927
46928       if  { test "$HAVE_LIBUNISTRING" != yes \
46929     || {
46930
46931
46932
46933             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46934             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46935                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46936                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46937                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46938                          }
46939                     }
46940                }
46941
46942
46943
46944
46945        }
46946   }; then
46947     LIBUNISTRING_UNINAME_H='uniname.h'
46948   else
46949     LIBUNISTRING_UNINAME_H=
46950   fi
46951
46952
46953
46954
46955        if  { test "$HAVE_LIBUNISTRING" != yes \
46956     || {
46957
46958
46959
46960             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
46961             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
46962                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
46963                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
46964                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
46965                          }
46966                     }
46967                }
46968
46969
46970
46971
46972        }
46973   }; then
46974   LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE=
46975   LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE='#'
46976 else
46977   LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE='#'
46978   LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE=
46979 fi
46980
46981
46982
46983
46984
46985
46986
46987
46988
46989
46990
46991
46992
46993
46994      if test $gl_cv_have_include_next = yes; then
46995        gl_cv_next_unistd_h='<'unistd.h'>'
46996      else
46997        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
46998 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
46999 if ${gl_cv_next_unistd_h+:} false; then :
47000   $as_echo_n "(cached) " >&6
47001 else
47002
47003              if test $ac_cv_header_unistd_h = yes; then
47004
47005
47006                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47007 /* end confdefs.h.  */
47008 #include <unistd.h>
47009
47010 _ACEOF
47011                                                                                                                         case "$host_os" in
47012                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
47013                  *)    gl_absname_cpp="$ac_cpp" ;;
47014                esac
47015
47016                case "$host_os" in
47017                  mingw*)
47018                                                                                                                                      gl_dirsep_regex='[/\\]'
47019                    ;;
47020                  *)
47021                    gl_dirsep_regex='\/'
47022                    ;;
47023                esac
47024                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
47025
47026                gl_header_literal_regex=`echo 'unistd.h' \
47027                                         | sed -e "$gl_make_literal_regex_sed"`
47028                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
47029                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
47030                    s|^/[^/]|//&|
47031                    p
47032                    q
47033                  }'
47034                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47035                       sed -n "$gl_absolute_header_sed"`'"'
47036           else
47037                gl_cv_next_unistd_h='<'unistd.h'>'
47038              fi
47039
47040
47041 fi
47042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
47043 $as_echo "$gl_cv_next_unistd_h" >&6; }
47044      fi
47045      NEXT_UNISTD_H=$gl_cv_next_unistd_h
47046
47047      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47048        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47049        gl_next_as_first_directive='<'unistd.h'>'
47050      else
47051        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47052        gl_next_as_first_directive=$gl_cv_next_unistd_h
47053      fi
47054      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
47055
47056
47057
47058
47059   if test $ac_cv_header_unistd_h = yes; then
47060     HAVE_UNISTD_H=1
47061   else
47062     HAVE_UNISTD_H=0
47063   fi
47064
47065
47066
47067
47068
47069
47070
47071     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
47072     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
47073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
47074 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
47075 if eval \${$as_gl_Symbol+:} false; then :
47076   $as_echo_n "(cached) " >&6
47077 else
47078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47079 /* end confdefs.h.  */
47080
47081 #if HAVE_UNISTD_H
47082 # include <unistd.h>
47083 #endif
47084 /* Some systems declare various items in the wrong headers.  */
47085 #if !(defined __GLIBC__ && !defined __UCLIBC__)
47086 # include <fcntl.h>
47087 # include <stdio.h>
47088 # include <stdlib.h>
47089 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
47090 #  include <io.h>
47091 # endif
47092 #endif
47093
47094 int
47095 main ()
47096 {
47097 #undef $gl_func
47098   (void) $gl_func;
47099   ;
47100   return 0;
47101 }
47102 _ACEOF
47103 if ac_fn_c_try_compile "$LINENO"; then :
47104   eval "$as_gl_Symbol=yes"
47105 else
47106   eval "$as_gl_Symbol=no"
47107 fi
47108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47109 fi
47110 eval ac_res=\$$as_gl_Symbol
47111                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47112 $as_echo "$ac_res" >&6; }
47113     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
47114   cat >>confdefs.h <<_ACEOF
47115 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
47116 _ACEOF
47117
47118                      eval ac_cv_have_decl_$gl_func=yes
47119 fi
47120       done
47121
47122
47123
47124
47125
47126
47127
47128       if  { test "$HAVE_LIBUNISTRING" != yes \
47129     || {
47130
47131
47132
47133             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47134             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47135                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47136                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47137                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2
47138                          }
47139                     }
47140                }
47141
47142
47143
47144
47145        }
47146   }; then
47147     LIBUNISTRING_UNISTR_H='unistr.h'
47148   else
47149     LIBUNISTRING_UNISTR_H=
47150   fi
47151
47152
47153
47154
47155 cat >>confdefs.h <<_ACEOF
47156 #define GNULIB_UNISTR_U16_MBTOUC 1
47157 _ACEOF
47158
47159
47160
47161
47162        if  { test "$HAVE_LIBUNISTRING" != yes \
47163     || {
47164
47165
47166
47167             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47168             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47169                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47170                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47171                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
47172                          }
47173                     }
47174                }
47175
47176
47177
47178
47179        }
47180   }; then
47181   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
47182   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
47183 else
47184   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
47185   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
47186 fi
47187
47188
47189
47190
47191        if  { test "$HAVE_LIBUNISTRING" != yes \
47192     || {
47193
47194
47195
47196             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47197             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47198                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47199                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47200                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
47201                          }
47202                     }
47203                }
47204
47205
47206
47207
47208        }
47209   }; then
47210   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
47211   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
47212 else
47213   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
47214   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
47215 fi
47216
47217
47218
47219
47220        if  { test "$HAVE_LIBUNISTRING" != yes \
47221     || {
47222
47223
47224
47225             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47226             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47227                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47228                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47229                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
47230                          }
47231                     }
47232                }
47233
47234
47235
47236
47237        }
47238   }; then
47239   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
47240   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
47241 else
47242   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
47243   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
47244 fi
47245
47246
47247
47248
47249 cat >>confdefs.h <<_ACEOF
47250 #define GNULIB_UNISTR_U8_MBTOUC 1
47251 _ACEOF
47252
47253
47254
47255
47256        if  { test "$HAVE_LIBUNISTRING" != yes \
47257     || {
47258
47259
47260
47261             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47262             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47263                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47264                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47265                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
47266                          }
47267                     }
47268                }
47269
47270
47271
47272
47273        }
47274   }; then
47275   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
47276   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
47277 else
47278   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
47279   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
47280 fi
47281
47282
47283
47284
47285 cat >>confdefs.h <<_ACEOF
47286 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
47287 _ACEOF
47288
47289
47290
47291
47292        if  { test "$HAVE_LIBUNISTRING" != yes \
47293     || {
47294
47295
47296
47297             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47298             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47299                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47300                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47301                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
47302                          }
47303                     }
47304                }
47305
47306
47307
47308
47309        }
47310   }; then
47311   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
47312   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
47313 else
47314   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
47315   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
47316 fi
47317
47318
47319
47320
47321 cat >>confdefs.h <<_ACEOF
47322 #define GNULIB_UNISTR_U8_MBTOUCR 1
47323 _ACEOF
47324
47325
47326
47327
47328        if  { test "$HAVE_LIBUNISTRING" != yes \
47329     || {
47330
47331
47332
47333             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47334             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47335                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47336                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47337                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
47338                          }
47339                     }
47340                }
47341
47342
47343
47344
47345        }
47346   }; then
47347   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
47348   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
47349 else
47350   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
47351   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
47352 fi
47353
47354
47355
47356
47357        if  { test "$HAVE_LIBUNISTRING" != yes \
47358     || {
47359
47360
47361
47362             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47363             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47364                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47365                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47366                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
47367                          }
47368                     }
47369                }
47370
47371
47372
47373
47374        }
47375   }; then
47376   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
47377   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
47378 else
47379   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
47380   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
47381 fi
47382
47383
47384
47385
47386 cat >>confdefs.h <<_ACEOF
47387 #define GNULIB_UNISTR_U8_UCTOMB 1
47388 _ACEOF
47389
47390
47391
47392
47393        if  { test "$HAVE_LIBUNISTRING" != yes \
47394     || {
47395
47396
47397
47398             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47399             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47400                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47401                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47402                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
47403                          }
47404                     }
47405                }
47406
47407
47408
47409
47410        }
47411   }; then
47412   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
47413   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
47414 else
47415   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
47416   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
47417 fi
47418
47419
47420
47421
47422       if  { test "$HAVE_LIBUNISTRING" != yes \
47423     || {
47424
47425
47426
47427             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47428             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47429                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47430                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47431                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
47432                          }
47433                     }
47434                }
47435
47436
47437
47438
47439        }
47440   }; then
47441     LIBUNISTRING_UNITYPES_H='unitypes.h'
47442   else
47443     LIBUNISTRING_UNITYPES_H=
47444   fi
47445
47446
47447
47448
47449       if  { test "$HAVE_LIBUNISTRING" != yes \
47450     || {
47451
47452
47453
47454             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47455             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47456                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47457                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47458                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
47459                          }
47460                     }
47461                }
47462
47463
47464
47465
47466        }
47467   }; then
47468     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
47469   else
47470     LIBUNISTRING_UNIWIDTH_H=
47471   fi
47472
47473
47474
47475
47476        if  { test "$HAVE_LIBUNISTRING" != yes \
47477     || {
47478
47479
47480
47481             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
47482             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
47483                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
47484                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
47485                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
47486                          }
47487                     }
47488                }
47489
47490
47491
47492
47493        }
47494   }; then
47495   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
47496   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
47497 else
47498   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
47499   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
47500 fi
47501
47502
47503
47504
47505 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
47506
47507
47508
47509
47510
47511
47512
47513
47514
47515
47516
47517
47518
47519
47520
47521
47522
47523
47524
47525
47526
47527   if test $ac_cv_have_decl_unsetenv = no; then
47528     HAVE_DECL_UNSETENV=0
47529   fi
47530   for ac_func in unsetenv
47531 do :
47532   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
47533 if test "x$ac_cv_func_unsetenv" = xyes; then :
47534   cat >>confdefs.h <<_ACEOF
47535 #define HAVE_UNSETENV 1
47536 _ACEOF
47537
47538 fi
47539 done
47540
47541   if test $ac_cv_func_unsetenv = no; then
47542     HAVE_UNSETENV=0
47543   else
47544     HAVE_UNSETENV=1
47545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
47546 $as_echo_n "checking for unsetenv() return type... " >&6; }
47547 if ${gt_cv_func_unsetenv_ret+:} false; then :
47548   $as_echo_n "(cached) " >&6
47549 else
47550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47551 /* end confdefs.h.  */
47552
47553 #undef _BSD
47554 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
47555 #include <stdlib.h>
47556 extern
47557 #ifdef __cplusplus
47558 "C"
47559 #endif
47560 int unsetenv (const char *name);
47561
47562 int
47563 main ()
47564 {
47565
47566   ;
47567   return 0;
47568 }
47569 _ACEOF
47570 if ac_fn_c_try_compile "$LINENO"; then :
47571   gt_cv_func_unsetenv_ret='int'
47572 else
47573   gt_cv_func_unsetenv_ret='void'
47574 fi
47575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47576 fi
47577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
47578 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
47579     if test $gt_cv_func_unsetenv_ret = 'void'; then
47580
47581 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
47582
47583       REPLACE_UNSETENV=1
47584     fi
47585
47586                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
47587 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
47588 if ${gl_cv_func_unsetenv_works+:} false; then :
47589   $as_echo_n "(cached) " >&6
47590 else
47591   if test "$cross_compiling" = yes; then :
47592   case "$host_os" in
47593                  # Guess yes on glibc systems.
47594          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
47595                  # If we don't know, assume the worst.
47596          *)      gl_cv_func_unsetenv_works="guessing no" ;;
47597        esac
47598
47599 else
47600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47601 /* end confdefs.h.  */
47602
47603        #include <stdlib.h>
47604        #include <errno.h>
47605        extern char **environ;
47606
47607 int
47608 main ()
47609 {
47610
47611        char entry1[] = "a=1";
47612        char entry2[] = "b=2";
47613        char *env[] = { entry1, entry2, NULL };
47614        if (putenv ((char *) "a=1")) return 1;
47615        if (putenv (entry2)) return 2;
47616        entry2[0] = 'a';
47617        unsetenv ("a");
47618        if (getenv ("a")) return 3;
47619        if (!unsetenv ("") || errno != EINVAL) return 4;
47620        entry2[0] = 'b';
47621        environ = env;
47622        if (!getenv ("a")) return 5;
47623        entry2[0] = 'a';
47624        unsetenv ("a");
47625        if (getenv ("a")) return 6;
47626
47627   ;
47628   return 0;
47629 }
47630 _ACEOF
47631 if ac_fn_c_try_run "$LINENO"; then :
47632   gl_cv_func_unsetenv_works=yes
47633 else
47634   gl_cv_func_unsetenv_works=no
47635 fi
47636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47637   conftest.$ac_objext conftest.beam conftest.$ac_ext
47638 fi
47639
47640 fi
47641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
47642 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
47643     case "$gl_cv_func_unsetenv_works" in
47644       *yes) ;;
47645       *)
47646         REPLACE_UNSETENV=1
47647         ;;
47648     esac
47649   fi
47650
47651   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
47652
47653
47654
47655
47656
47657
47658
47659
47660   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
47661
47662
47663
47664
47665
47666   fi
47667
47668
47669
47670
47671
47672           GNULIB_UNSETENV=1
47673
47674
47675
47676
47677
47678 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
47679
47680
47681
47682
47683
47684   if test $ac_cv_func_vasnprintf = no; then
47685
47686
47687
47688
47689
47690
47691
47692
47693
47694
47695   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
47696
47697
47698
47699
47700
47701
47702
47703
47704
47705   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
47706
47707
47708
47709
47710
47711
47712
47713
47714
47715   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
47716
47717
47718
47719
47720
47721
47722
47723
47724
47725   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
47726
47727   if test $ac_cv_func_vasnprintf = yes; then
47728
47729 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
47730
47731   fi
47732
47733
47734
47735
47736
47737
47738
47739
47740
47741
47742
47743   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
47744 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
47745
47746 else
47747
47748 $as_echo "#define ptrdiff_t long" >>confdefs.h
47749
47750
47751 fi
47752
47753
47754
47755
47756
47757
47758
47759   fi
47760
47761
47762   for ac_func in vasprintf
47763 do :
47764   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
47765 if test "x$ac_cv_func_vasprintf" = xyes; then :
47766   cat >>confdefs.h <<_ACEOF
47767 #define HAVE_VASPRINTF 1
47768 _ACEOF
47769
47770 fi
47771 done
47772
47773   if test $ac_cv_func_vasprintf = no; then
47774
47775
47776
47777
47778
47779
47780
47781
47782
47783   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
47784
47785
47786
47787
47788
47789
47790
47791
47792
47793   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
47794
47795
47796   if test $ac_cv_func_vasprintf = yes; then
47797     REPLACE_VASPRINTF=1
47798   else
47799     HAVE_VASPRINTF=0
47800   fi
47801
47802
47803
47804
47805
47806
47807
47808
47809   fi
47810
47811
47812
47813
47814
47815
47816           GNULIB_VASPRINTF=1
47817
47818
47819
47820
47821
47822 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
47823
47824
47825
47826
47827
47828   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
47829
47830
47831
47832   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
47833
47834
47835
47836   gl_cv_func_vsnprintf_usable=no
47837   for ac_func in vsnprintf
47838 do :
47839   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
47840 if test "x$ac_cv_func_vsnprintf" = xyes; then :
47841   cat >>confdefs.h <<_ACEOF
47842 #define HAVE_VSNPRINTF 1
47843 _ACEOF
47844
47845 fi
47846 done
47847
47848   if test $ac_cv_func_vsnprintf = yes; then
47849
47850
47851
47852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
47853 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
47854 if ${gl_cv_func_snprintf_size1+:} false; then :
47855   $as_echo_n "(cached) " >&6
47856 else
47857
47858       if test "$cross_compiling" = yes; then :
47859   gl_cv_func_snprintf_size1="guessing yes"
47860 else
47861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47862 /* end confdefs.h.  */
47863
47864 #include <stdio.h>
47865 #if HAVE_SNPRINTF
47866 # define my_snprintf snprintf
47867 #else
47868 # include <stdarg.h>
47869 static int my_snprintf (char *buf, int size, const char *format, ...)
47870 {
47871   va_list args;
47872   int ret;
47873   va_start (args, format);
47874   ret = vsnprintf (buf, size, format, args);
47875   va_end (args);
47876   return ret;
47877 }
47878 #endif
47879 int main()
47880 {
47881   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
47882   my_snprintf (buf, 1, "%d", 12345);
47883   return buf[1] != 'E';
47884 }
47885 _ACEOF
47886 if ac_fn_c_try_run "$LINENO"; then :
47887   gl_cv_func_snprintf_size1=yes
47888 else
47889   gl_cv_func_snprintf_size1=no
47890 fi
47891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47892   conftest.$ac_objext conftest.beam conftest.$ac_ext
47893 fi
47894
47895
47896 fi
47897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
47898 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
47899
47900     case "$gl_cv_func_snprintf_size1" in
47901       *yes)
47902
47903         case "$gl_cv_func_snprintf_retval_c99" in
47904           *yes)
47905
47906
47907      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
47908 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
47909 if ${gl_cv_func_printf_positions+:} false; then :
47910   $as_echo_n "(cached) " >&6
47911 else
47912
47913       if test "$cross_compiling" = yes; then :
47914
47915          case "$host_os" in
47916            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
47917                          gl_cv_func_printf_positions="guessing no";;
47918            beos*)        gl_cv_func_printf_positions="guessing no";;
47919            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
47920            *)            gl_cv_func_printf_positions="guessing yes";;
47921          esac
47922
47923 else
47924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47925 /* end confdefs.h.  */
47926
47927 #include <stdio.h>
47928 #include <string.h>
47929 /* The string "%2$d %1$d", with dollar characters protected from the shell's
47930    dollar expansion (possibly an autoconf bug).  */
47931 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
47932 static char buf[100];
47933 int main ()
47934 {
47935   sprintf (buf, format, 33, 55);
47936   return (strcmp (buf, "55 33") != 0);
47937 }
47938 _ACEOF
47939 if ac_fn_c_try_run "$LINENO"; then :
47940   gl_cv_func_printf_positions=yes
47941 else
47942   gl_cv_func_printf_positions=no
47943 fi
47944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47945   conftest.$ac_objext conftest.beam conftest.$ac_ext
47946 fi
47947
47948
47949 fi
47950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
47951 $as_echo "$gl_cv_func_printf_positions" >&6; }
47952
47953             case "$gl_cv_func_printf_positions" in
47954               *yes)
47955                 gl_cv_func_vsnprintf_usable=yes
47956                 ;;
47957             esac
47958             ;;
47959         esac
47960         ;;
47961     esac
47962   fi
47963   if test $gl_cv_func_vsnprintf_usable = no; then
47964
47965
47966
47967
47968
47969
47970
47971
47972
47973
47974   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
47975
47976   if test $ac_cv_func_vsnprintf = yes; then
47977     REPLACE_VSNPRINTF=1
47978   fi
47979   :
47980
47981   fi
47982
47983   if test $ac_cv_have_decl_vsnprintf = no; then
47984     HAVE_DECL_VSNPRINTF=0
47985   fi
47986
47987
47988
47989
47990
47991
47992           GNULIB_VSNPRINTF=1
47993
47994
47995
47996
47997
47998 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
47999
48000
48001
48002
48003
48004   for ac_func in waitid
48005 do :
48006   ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
48007 if test "x$ac_cv_func_waitid" = xyes; then :
48008   cat >>confdefs.h <<_ACEOF
48009 #define HAVE_WAITID 1
48010 _ACEOF
48011
48012 fi
48013 done
48014
48015
48016
48017 for ac_func in waitpid
48018 do :
48019   ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
48020 if test "x$ac_cv_func_waitpid" = xyes; then :
48021   cat >>confdefs.h <<_ACEOF
48022 #define HAVE_WAITPID 1
48023 _ACEOF
48024
48025 fi
48026 done
48027
48028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
48029 $as_echo_n "checking for union wait... " >&6; }
48030 if ${gt_cv_union_wait+:} false; then :
48031   $as_echo_n "(cached) " >&6
48032 else
48033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48034 /* end confdefs.h.  */
48035 #include <sys/types.h>
48036 #include <sys/wait.h>
48037 int
48038 main ()
48039 {
48040 union wait status; int pid; pid = wait (&status);
48041 #ifdef WEXITSTATUS
48042 /* Some POSIXoid systems have both the new-style macros and the old
48043    union wait type, and they do not work together.  If union wait
48044    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
48045 if (WEXITSTATUS (status) != 0) pid = -1;
48046 #ifdef WTERMSIG
48047 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
48048 -- blow chunks here --
48049 #endif
48050 #endif
48051 #ifdef HAVE_WAITPID
48052 /* Make sure union wait works with waitpid.  */
48053 pid = waitpid (-1, &status, 0);
48054 #endif
48055
48056   ;
48057   return 0;
48058 }
48059 _ACEOF
48060 if ac_fn_c_try_link "$LINENO"; then :
48061   gt_cv_union_wait=yes
48062 else
48063   gt_cv_union_wait=no
48064 fi
48065 rm -f core conftest.err conftest.$ac_objext \
48066     conftest$ac_exeext conftest.$ac_ext
48067 fi
48068
48069 if test "$gt_cv_union_wait" = yes; then
48070
48071 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
48072
48073 fi
48074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_union_wait" >&5
48075 $as_echo "$gt_cv_union_wait" >&6; }
48076
48077
48078
48079   HAVE_WAITPID=1
48080   case $host_os in
48081     mingw*) HAVE_WAITPID=0 ;;
48082   esac
48083
48084   if test $HAVE_WAITPID = 0; then
48085
48086
48087
48088
48089
48090
48091
48092
48093   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
48094
48095   fi
48096
48097
48098
48099
48100
48101           GNULIB_WAITPID=1
48102
48103
48104
48105
48106
48107 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
48108
48109
48110
48111
48112
48113
48114
48115
48116
48117
48118
48119
48120
48121
48122
48123      if test $gl_cv_have_include_next = yes; then
48124        gl_cv_next_wchar_h='<'wchar.h'>'
48125      else
48126        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
48127 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
48128 if ${gl_cv_next_wchar_h+:} false; then :
48129   $as_echo_n "(cached) " >&6
48130 else
48131
48132              if test $ac_cv_header_wchar_h = yes; then
48133
48134
48135                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48136 /* end confdefs.h.  */
48137 #include <wchar.h>
48138
48139 _ACEOF
48140                                                                                                                         case "$host_os" in
48141                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
48142                  *)    gl_absname_cpp="$ac_cpp" ;;
48143                esac
48144
48145                case "$host_os" in
48146                  mingw*)
48147                                                                                                                                      gl_dirsep_regex='[/\\]'
48148                    ;;
48149                  *)
48150                    gl_dirsep_regex='\/'
48151                    ;;
48152                esac
48153                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
48154
48155                gl_header_literal_regex=`echo 'wchar.h' \
48156                                         | sed -e "$gl_make_literal_regex_sed"`
48157                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
48158                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
48159                    s|^/[^/]|//&|
48160                    p
48161                    q
48162                  }'
48163                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48164                       sed -n "$gl_absolute_header_sed"`'"'
48165           else
48166                gl_cv_next_wchar_h='<'wchar.h'>'
48167              fi
48168
48169
48170 fi
48171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
48172 $as_echo "$gl_cv_next_wchar_h" >&6; }
48173      fi
48174      NEXT_WCHAR_H=$gl_cv_next_wchar_h
48175
48176      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48177        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48178        gl_next_as_first_directive='<'wchar.h'>'
48179      else
48180        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48181        gl_next_as_first_directive=$gl_cv_next_wchar_h
48182      fi
48183      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
48184
48185
48186
48187
48188   if test $ac_cv_header_wchar_h = yes; then
48189     HAVE_WCHAR_H=1
48190   else
48191     HAVE_WCHAR_H=0
48192   fi
48193
48194
48195
48196
48197
48198   if test $gt_cv_c_wint_t = yes; then
48199     HAVE_WINT_T=1
48200   else
48201     HAVE_WINT_T=0
48202   fi
48203
48204
48205
48206     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
48207     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
48208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
48209 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
48210 if eval \${$as_gl_Symbol+:} false; then :
48211   $as_echo_n "(cached) " >&6
48212 else
48213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48214 /* end confdefs.h.  */
48215
48216 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
48217    <wchar.h>.
48218    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
48219    included before <wchar.h>.  */
48220 #if !(defined __GLIBC__ && !defined __UCLIBC__)
48221 # include <stddef.h>
48222 # include <stdio.h>
48223 # include <time.h>
48224 #endif
48225 #include <wchar.h>
48226
48227 int
48228 main ()
48229 {
48230 #undef $gl_func
48231   (void) $gl_func;
48232   ;
48233   return 0;
48234 }
48235 _ACEOF
48236 if ac_fn_c_try_compile "$LINENO"; then :
48237   eval "$as_gl_Symbol=yes"
48238 else
48239   eval "$as_gl_Symbol=no"
48240 fi
48241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48242 fi
48243 eval ac_res=\$$as_gl_Symbol
48244                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
48245 $as_echo "$ac_res" >&6; }
48246     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
48247   cat >>confdefs.h <<_ACEOF
48248 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
48249 _ACEOF
48250
48251                      eval ac_cv_have_decl_$gl_func=yes
48252 fi
48253       done
48254
48255
48256
48257
48258
48259
48260
48261   if test $ac_cv_func_iswcntrl = yes; then
48262     HAVE_ISWCNTRL=1
48263   else
48264     HAVE_ISWCNTRL=0
48265   fi
48266
48267
48268
48269   if test $gt_cv_c_wint_t = yes; then
48270     HAVE_WINT_T=1
48271   else
48272     HAVE_WINT_T=0
48273   fi
48274
48275
48276
48277
48278
48279
48280
48281
48282
48283
48284
48285      if test $gl_cv_have_include_next = yes; then
48286        gl_cv_next_wctype_h='<'wctype.h'>'
48287      else
48288        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
48289 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
48290 if ${gl_cv_next_wctype_h+:} false; then :
48291   $as_echo_n "(cached) " >&6
48292 else
48293
48294              if test $ac_cv_header_wctype_h = yes; then
48295
48296
48297                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48298 /* end confdefs.h.  */
48299 #include <wctype.h>
48300
48301 _ACEOF
48302                                                                                                                         case "$host_os" in
48303                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
48304                  *)    gl_absname_cpp="$ac_cpp" ;;
48305                esac
48306
48307                case "$host_os" in
48308                  mingw*)
48309                                                                                                                                      gl_dirsep_regex='[/\\]'
48310                    ;;
48311                  *)
48312                    gl_dirsep_regex='\/'
48313                    ;;
48314                esac
48315                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
48316
48317                gl_header_literal_regex=`echo 'wctype.h' \
48318                                         | sed -e "$gl_make_literal_regex_sed"`
48319                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
48320                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
48321                    s|^/[^/]|//&|
48322                    p
48323                    q
48324                  }'
48325                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48326                       sed -n "$gl_absolute_header_sed"`'"'
48327           else
48328                gl_cv_next_wctype_h='<'wctype.h'>'
48329              fi
48330
48331
48332 fi
48333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
48334 $as_echo "$gl_cv_next_wctype_h" >&6; }
48335      fi
48336      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
48337
48338      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48339        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48340        gl_next_as_first_directive='<'wctype.h'>'
48341      else
48342        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48343        gl_next_as_first_directive=$gl_cv_next_wctype_h
48344      fi
48345      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
48346
48347
48348
48349
48350   if test $ac_cv_header_wctype_h = yes; then
48351     if test $ac_cv_func_iswcntrl = yes; then
48352                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
48353 $as_echo_n "checking whether iswcntrl works... " >&6; }
48354 if ${gl_cv_func_iswcntrl_works+:} false; then :
48355   $as_echo_n "(cached) " >&6
48356 else
48357
48358           if test "$cross_compiling" = yes; then :
48359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48360 /* end confdefs.h.  */
48361 #include <stdlib.h>
48362                           #if __GNU_LIBRARY__ == 1
48363                           Linux libc5 i18n is broken.
48364                           #endif
48365 int
48366 main ()
48367 {
48368
48369   ;
48370   return 0;
48371 }
48372 _ACEOF
48373 if ac_fn_c_try_compile "$LINENO"; then :
48374   gl_cv_func_iswcntrl_works="guessing yes"
48375 else
48376   gl_cv_func_iswcntrl_works="guessing no"
48377 fi
48378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48379
48380 else
48381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48382 /* end confdefs.h.  */
48383
48384                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
48385                   included before <wchar.h>.
48386                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
48387                   must be included before <wchar.h>.  */
48388                #include <stddef.h>
48389                #include <stdio.h>
48390                #include <time.h>
48391                #include <wchar.h>
48392                #include <wctype.h>
48393                int main () { return iswprint ('x') == 0; }
48394
48395 _ACEOF
48396 if ac_fn_c_try_run "$LINENO"; then :
48397   gl_cv_func_iswcntrl_works=yes
48398 else
48399   gl_cv_func_iswcntrl_works=no
48400 fi
48401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48402   conftest.$ac_objext conftest.beam conftest.$ac_ext
48403 fi
48404
48405
48406 fi
48407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
48408 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
48409     fi
48410     HAVE_WCTYPE_H=1
48411   else
48412     HAVE_WCTYPE_H=0
48413   fi
48414
48415
48416   case "$gl_cv_func_iswcntrl_works" in
48417     *yes) REPLACE_ISWCNTRL=0 ;;
48418     *)    REPLACE_ISWCNTRL=1 ;;
48419   esac
48420
48421
48422   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
48423         :
48424   fi
48425
48426   if test $REPLACE_ISWCNTRL = 1; then
48427     REPLACE_TOWLOWER=1
48428   else
48429     for ac_func in towlower
48430 do :
48431   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
48432 if test "x$ac_cv_func_towlower" = xyes; then :
48433   cat >>confdefs.h <<_ACEOF
48434 #define HAVE_TOWLOWER 1
48435 _ACEOF
48436
48437 fi
48438 done
48439
48440     if test $ac_cv_func_towlower = yes; then
48441       REPLACE_TOWLOWER=0
48442     else
48443       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
48444              included before <wchar.h>.
48445              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
48446              must be included before <wchar.h>.  */
48447           #include <stddef.h>
48448           #include <stdio.h>
48449           #include <time.h>
48450           #include <wchar.h>
48451           #if HAVE_WCTYPE_H
48452           # include <wctype.h>
48453           #endif
48454
48455 "
48456 if test "x$ac_cv_have_decl_towlower" = xyes; then :
48457   ac_have_decl=1
48458 else
48459   ac_have_decl=0
48460 fi
48461
48462 cat >>confdefs.h <<_ACEOF
48463 #define HAVE_DECL_TOWLOWER $ac_have_decl
48464 _ACEOF
48465
48466       if test $ac_cv_have_decl_towlower = yes; then
48467                                 REPLACE_TOWLOWER=1
48468       else
48469         REPLACE_TOWLOWER=0
48470       fi
48471     fi
48472   fi
48473
48474
48475   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
48476         :
48477   fi
48478
48479           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
48480 $as_echo_n "checking for wctype_t... " >&6; }
48481 if ${gl_cv_type_wctype_t+:} false; then :
48482   $as_echo_n "(cached) " >&6
48483 else
48484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48485 /* end confdefs.h.  */
48486 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
48487                included before <wchar.h>.
48488                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
48489                must be included before <wchar.h>.  */
48490             #include <stddef.h>
48491             #include <stdio.h>
48492             #include <time.h>
48493             #include <wchar.h>
48494             #if HAVE_WCTYPE_H
48495             # include <wctype.h>
48496             #endif
48497             wctype_t a;
48498
48499 int
48500 main ()
48501 {
48502
48503   ;
48504   return 0;
48505 }
48506 _ACEOF
48507 if ac_fn_c_try_compile "$LINENO"; then :
48508   gl_cv_type_wctype_t=yes
48509 else
48510   gl_cv_type_wctype_t=no
48511 fi
48512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48513
48514 fi
48515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
48516 $as_echo "$gl_cv_type_wctype_t" >&6; }
48517   if test $gl_cv_type_wctype_t = no; then
48518     HAVE_WCTYPE_T=0
48519   fi
48520
48521       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
48522 $as_echo_n "checking for wctrans_t... " >&6; }
48523 if ${gl_cv_type_wctrans_t+:} false; then :
48524   $as_echo_n "(cached) " >&6
48525 else
48526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48527 /* end confdefs.h.  */
48528 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
48529                included before <wchar.h>.
48530                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
48531                must be included before <wchar.h>.  */
48532             #include <stddef.h>
48533             #include <stdio.h>
48534             #include <time.h>
48535             #include <wchar.h>
48536             #include <wctype.h>
48537             wctrans_t a;
48538
48539 int
48540 main ()
48541 {
48542
48543   ;
48544   return 0;
48545 }
48546 _ACEOF
48547 if ac_fn_c_try_compile "$LINENO"; then :
48548   gl_cv_type_wctrans_t=yes
48549 else
48550   gl_cv_type_wctrans_t=no
48551 fi
48552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48553
48554 fi
48555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
48556 $as_echo "$gl_cv_type_wctrans_t" >&6; }
48557   if test $gl_cv_type_wctrans_t = no; then
48558     HAVE_WCTRANS_T=0
48559   fi
48560
48561
48562     for gl_func in wctype iswctype wctrans towctrans     ; do
48563     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
48564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
48565 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
48566 if eval \${$as_gl_Symbol+:} false; then :
48567   $as_echo_n "(cached) " >&6
48568 else
48569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48570 /* end confdefs.h.  */
48571
48572 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
48573    <wchar.h>.
48574    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
48575    included before <wchar.h>.  */
48576 #if !(defined __GLIBC__ && !defined __UCLIBC__)
48577 # include <stddef.h>
48578 # include <stdio.h>
48579 # include <time.h>
48580 # include <wchar.h>
48581 #endif
48582 #include <wctype.h>
48583
48584 int
48585 main ()
48586 {
48587 #undef $gl_func
48588   (void) $gl_func;
48589   ;
48590   return 0;
48591 }
48592 _ACEOF
48593 if ac_fn_c_try_compile "$LINENO"; then :
48594   eval "$as_gl_Symbol=yes"
48595 else
48596   eval "$as_gl_Symbol=no"
48597 fi
48598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48599 fi
48600 eval ac_res=\$$as_gl_Symbol
48601                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
48602 $as_echo "$ac_res" >&6; }
48603     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
48604   cat >>confdefs.h <<_ACEOF
48605 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
48606 _ACEOF
48607
48608                      eval ac_cv_have_decl_$gl_func=yes
48609 fi
48610       done
48611
48612
48613
48614
48615
48616
48617
48618
48619
48620
48621
48622
48623
48624   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
48625 /* AIX 3.2.5 declares wcwidth in <string.h>. */
48626 #include <string.h>
48627 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
48628    <wchar.h>.
48629    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
48630    before <wchar.h>.  */
48631 #include <stddef.h>
48632 #include <stdio.h>
48633 #include <time.h>
48634 #include <wchar.h>
48635
48636 "
48637 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
48638   ac_have_decl=1
48639 else
48640   ac_have_decl=0
48641 fi
48642
48643 cat >>confdefs.h <<_ACEOF
48644 #define HAVE_DECL_WCWIDTH $ac_have_decl
48645 _ACEOF
48646
48647   if test $ac_cv_have_decl_wcwidth != yes; then
48648     HAVE_DECL_WCWIDTH=0
48649   fi
48650
48651   if test $ac_cv_func_wcwidth = yes; then
48652     HAVE_WCWIDTH=1
48653                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
48654 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
48655 if ${gl_cv_func_wcwidth_works+:} false; then :
48656   $as_echo_n "(cached) " >&6
48657 else
48658
48659         if test "$cross_compiling" = yes; then :
48660
48661            case "$host_os" in
48662                      # Guess yes on glibc and AIX 7 systems.
48663              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
48664              *)                  gl_cv_func_wcwidth_works="guessing no";;
48665            esac
48666
48667 else
48668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48669 /* end confdefs.h.  */
48670
48671 #include <locale.h>
48672 /* AIX 3.2.5 declares wcwidth in <string.h>. */
48673 #include <string.h>
48674 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
48675    <wchar.h>.
48676    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
48677    before <wchar.h>.  */
48678 #include <stddef.h>
48679 #include <stdio.h>
48680 #include <time.h>
48681 #include <wchar.h>
48682 #if !HAVE_DECL_WCWIDTH
48683 extern
48684 # ifdef __cplusplus
48685 "C"
48686 # endif
48687 int wcwidth (int);
48688 #endif
48689 int main ()
48690 {
48691   int result = 0;
48692   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
48693     {
48694       if (wcwidth (0x0301) > 0)
48695         result |= 1;
48696       if (wcwidth (0x05B0) > 0)
48697         result |= 2;
48698       if (wcwidth (0x200B) > 0)
48699         result |= 4;
48700     }
48701   return result;
48702 }
48703 _ACEOF
48704 if ac_fn_c_try_run "$LINENO"; then :
48705   gl_cv_func_wcwidth_works=yes
48706 else
48707   gl_cv_func_wcwidth_works=no
48708 fi
48709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48710   conftest.$ac_objext conftest.beam conftest.$ac_ext
48711 fi
48712
48713
48714 fi
48715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
48716 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
48717     case "$gl_cv_func_wcwidth_works" in
48718       *yes) ;;
48719       *no) REPLACE_WCWIDTH=1 ;;
48720     esac
48721   else
48722     HAVE_WCWIDTH=0
48723   fi
48724
48725   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
48726
48727
48728
48729
48730
48731
48732
48733
48734   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
48735
48736   fi
48737
48738
48739
48740
48741
48742           GNULIB_WCWIDTH=1
48743
48744
48745
48746
48747
48748 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
48749
48750
48751
48752
48753
48754
48755   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
48756     REPLACE_WRITE=1
48757   fi
48758
48759
48760
48761
48762     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
48763       REPLACE_WRITE=1
48764     fi
48765
48766
48767
48768   if test $REPLACE_WRITE = 1; then
48769
48770
48771
48772
48773
48774
48775
48776
48777   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
48778
48779     :
48780   fi
48781
48782
48783
48784
48785
48786           GNULIB_WRITE=1
48787
48788
48789
48790
48791
48792 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
48793
48794
48795
48796
48797
48798   for ac_header in stdint.h
48799 do :
48800   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
48801 if test "x$ac_cv_header_stdint_h" = xyes; then :
48802   cat >>confdefs.h <<_ACEOF
48803 #define HAVE_STDINT_H 1
48804 _ACEOF
48805
48806 fi
48807
48808 done
48809
48810
48811   :
48812
48813
48814   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
48815
48816   # End of code from modules
48817
48818
48819
48820
48821
48822
48823
48824
48825
48826   gltests_libdeps=
48827   gltests_ltlibdeps=
48828
48829
48830
48831
48832
48833
48834
48835
48836
48837   gl_source_base='gnulib-tests'
48838   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
48839
48840   gl_module_indicator_condition=$gltests_WITNESS
48841
48842
48843
48844
48845
48846
48847
48848
48849   if test $ac_cv_func_btowc = no; then
48850     HAVE_BTOWC=0
48851   else
48852
48853
48854
48855
48856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
48857 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
48858 if ${gl_cv_func_btowc_nul+:} false; then :
48859   $as_echo_n "(cached) " >&6
48860 else
48861
48862         if test "$cross_compiling" = yes; then :
48863
48864            case "$host_os" in
48865                       # Guess no on Cygwin.
48866              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
48867                       # Guess yes otherwise.
48868              *)       gl_cv_func_btowc_nul="guessing yes" ;;
48869            esac
48870
48871 else
48872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48873 /* end confdefs.h.  */
48874
48875 #include <string.h>
48876 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
48877    <wchar.h>.
48878    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
48879    included before <wchar.h>.  */
48880 #include <stddef.h>
48881 #include <stdio.h>
48882 #include <time.h>
48883 #include <wchar.h>
48884 int main ()
48885 {
48886   if (btowc ('\0') != 0)
48887     return 1;
48888   return 0;
48889 }
48890 _ACEOF
48891 if ac_fn_c_try_run "$LINENO"; then :
48892   gl_cv_func_btowc_nul=yes
48893 else
48894   gl_cv_func_btowc_nul=no
48895 fi
48896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48897   conftest.$ac_objext conftest.beam conftest.$ac_ext
48898 fi
48899
48900
48901 fi
48902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
48903 $as_echo "$gl_cv_func_btowc_nul" >&6; }
48904
48905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
48906 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
48907 if ${gl_cv_func_btowc_eof+:} false; then :
48908   $as_echo_n "(cached) " >&6
48909 else
48910
48911                         case "$host_os" in
48912                  # Guess no on IRIX.
48913           irix*) gl_cv_func_btowc_eof="guessing no" ;;
48914                  # Guess yes otherwise.
48915           *)     gl_cv_func_btowc_eof="guessing yes" ;;
48916         esac
48917         if test $LOCALE_FR != none; then
48918           if test "$cross_compiling" = yes; then :
48919   :
48920 else
48921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48922 /* end confdefs.h.  */
48923
48924 #include <locale.h>
48925 #include <string.h>
48926 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
48927    <wchar.h>.
48928    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
48929    included before <wchar.h>.  */
48930 #include <stddef.h>
48931 #include <stdio.h>
48932 #include <time.h>
48933 #include <wchar.h>
48934 int main ()
48935 {
48936   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
48937     {
48938       if (btowc (EOF) != WEOF)
48939         return 1;
48940     }
48941   return 0;
48942 }
48943 _ACEOF
48944 if ac_fn_c_try_run "$LINENO"; then :
48945   gl_cv_func_btowc_eof=yes
48946 else
48947   gl_cv_func_btowc_eof=no
48948 fi
48949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48950   conftest.$ac_objext conftest.beam conftest.$ac_ext
48951 fi
48952
48953         fi
48954
48955 fi
48956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
48957 $as_echo "$gl_cv_func_btowc_eof" >&6; }
48958
48959     case "$gl_cv_func_btowc_nul" in
48960       *yes) ;;
48961       *) REPLACE_BTOWC=1 ;;
48962     esac
48963     case "$gl_cv_func_btowc_eof" in
48964       *yes) ;;
48965       *) REPLACE_BTOWC=1 ;;
48966     esac
48967   fi
48968
48969   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
48970
48971
48972
48973
48974
48975
48976
48977
48978   gltests_LIBOBJS="$gltests_LIBOBJS btowc.$ac_objext"
48979
48980
48981   :
48982
48983   fi
48984
48985
48986
48987
48988
48989     if test "$GNULIB_BTOWC" != 1; then
48990         if test "$GNULIB_BTOWC" = 0; then
48991       GNULIB_BTOWC=$gl_module_indicator_condition
48992     else
48993       GNULIB_BTOWC="($GNULIB_BTOWC || $gl_module_indicator_condition)"
48994     fi
48995   fi
48996
48997
48998
48999
49000
49001 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
49002
49003
49004
49005
49006
49007
49008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
49009 $as_echo_n "checking for a traditional french locale... " >&6; }
49010 if ${gt_cv_locale_fr+:} false; then :
49011   $as_echo_n "(cached) " >&6
49012 else
49013
49014     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49015 /* end confdefs.h.  */
49016
49017 #include <locale.h>
49018 #include <time.h>
49019 #if HAVE_LANGINFO_CODESET
49020 # include <langinfo.h>
49021 #endif
49022 #include <stdlib.h>
49023 #include <string.h>
49024 struct tm t;
49025 char buf[16];
49026 int main () {
49027   /* Check whether the given locale name is recognized by the system.  */
49028 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
49029   /* On native Windows, setlocale(category, "") looks at the system settings,
49030      not at the environment variables.  Also, when an encoding suffix such
49031      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
49032      category of the locale to "C".  */
49033   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
49034       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
49035     return 1;
49036 #else
49037   if (setlocale (LC_ALL, "") == NULL) return 1;
49038 #endif
49039   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
49040      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
49041      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
49042      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
49043      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
49044      some unit tests fail.
49045      On MirBSD 10, when an unsupported locale is specified, setlocale()
49046      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
49047 #if HAVE_LANGINFO_CODESET
49048   {
49049     const char *cs = nl_langinfo (CODESET);
49050     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
49051         || strcmp (cs, "UTF-8") == 0)
49052       return 1;
49053   }
49054 #endif
49055 #ifdef __CYGWIN__
49056   /* On Cygwin, avoid locale names without encoding suffix, because the
49057      locale_charset() function relies on the encoding suffix.  Note that
49058      LC_ALL is set on the command line.  */
49059   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49060 #endif
49061   /* Check whether in the abbreviation of the second month, the second
49062      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
49063      one byte long. This excludes the UTF-8 encoding.  */
49064   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
49065   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
49066 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
49067   /* Check whether the decimal separator is a comma.
49068      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
49069      are nl_langinfo(RADIXCHAR) are both ".".  */
49070   if (localeconv () ->decimal_point[0] != ',') return 1;
49071 #endif
49072   return 0;
49073 }
49074
49075 _ACEOF
49076     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
49077   (eval $ac_link) 2>&5
49078   ac_status=$?
49079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49080   test $ac_status = 0; } && test -s conftest$ac_exeext; then
49081       case "$host_os" in
49082         # Handle native Windows specially, because there setlocale() interprets
49083         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
49084         # "fr" or "fra" as "French" or "French_France.1252",
49085         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
49086         # "ja" as "Japanese" or "Japanese_Japan.932",
49087         # and similar.
49088         mingw*)
49089           # Test for the native Windows locale name.
49090           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49091             gt_cv_locale_fr=French_France.1252
49092           else
49093             # None found.
49094             gt_cv_locale_fr=none
49095           fi
49096           ;;
49097         *)
49098           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49099           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
49100           # configure script would override the LC_ALL setting. Likewise for
49101           # LC_CTYPE, which is also set at the beginning of the configure script.
49102           # Test for the usual locale name.
49103           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49104             gt_cv_locale_fr=fr_FR
49105           else
49106             # Test for the locale name with explicit encoding suffix.
49107             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49108               gt_cv_locale_fr=fr_FR.ISO-8859-1
49109             else
49110               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
49111               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49112                 gt_cv_locale_fr=fr_FR.ISO8859-1
49113               else
49114                 # Test for the HP-UX locale name.
49115                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49116                   gt_cv_locale_fr=fr_FR.iso88591
49117                 else
49118                   # Test for the Solaris 7 locale name.
49119                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49120                     gt_cv_locale_fr=fr
49121                   else
49122                     # None found.
49123                     gt_cv_locale_fr=none
49124                   fi
49125                 fi
49126               fi
49127             fi
49128           fi
49129           ;;
49130       esac
49131     fi
49132     rm -fr conftest*
49133
49134 fi
49135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
49136 $as_echo "$gt_cv_locale_fr" >&6; }
49137   LOCALE_FR=$gt_cv_locale_fr
49138
49139
49140
49141
49142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
49143 $as_echo_n "checking for a french Unicode locale... " >&6; }
49144 if ${gt_cv_locale_fr_utf8+:} false; then :
49145   $as_echo_n "(cached) " >&6
49146 else
49147
49148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49149 /* end confdefs.h.  */
49150
49151 #include <locale.h>
49152 #include <time.h>
49153 #if HAVE_LANGINFO_CODESET
49154 # include <langinfo.h>
49155 #endif
49156 #include <stdlib.h>
49157 #include <string.h>
49158 struct tm t;
49159 char buf[16];
49160 int main () {
49161   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
49162      imitates locale dependent behaviour by looking at the environment
49163      variables, and all locales use the UTF-8 encoding.  */
49164 #if !(defined __BEOS__ || defined __HAIKU__)
49165   /* Check whether the given locale name is recognized by the system.  */
49166 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
49167   /* On native Windows, setlocale(category, "") looks at the system settings,
49168      not at the environment variables.  Also, when an encoding suffix such
49169      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
49170      category of the locale to "C".  */
49171   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
49172       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
49173     return 1;
49174 # else
49175   if (setlocale (LC_ALL, "") == NULL) return 1;
49176 # endif
49177   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
49178      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
49179      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
49180      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
49181      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
49182      some unit tests fail.  */
49183 # if HAVE_LANGINFO_CODESET
49184   {
49185     const char *cs = nl_langinfo (CODESET);
49186     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
49187       return 1;
49188   }
49189 # endif
49190 # ifdef __CYGWIN__
49191   /* On Cygwin, avoid locale names without encoding suffix, because the
49192      locale_charset() function relies on the encoding suffix.  Note that
49193      LC_ALL is set on the command line.  */
49194   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49195 # endif
49196   /* Check whether in the abbreviation of the second month, the second
49197      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
49198      two bytes long, with UTF-8 encoding.  */
49199   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
49200   if (strftime (buf, sizeof (buf), "%b", &t) < 4
49201       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
49202     return 1;
49203 #endif
49204 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
49205   /* Check whether the decimal separator is a comma.
49206      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
49207      are nl_langinfo(RADIXCHAR) are both ".".  */
49208   if (localeconv () ->decimal_point[0] != ',') return 1;
49209 #endif
49210   return 0;
49211 }
49212
49213 _ACEOF
49214     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
49215   (eval $ac_link) 2>&5
49216   ac_status=$?
49217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49218   test $ac_status = 0; } && test -s conftest$ac_exeext; then
49219       case "$host_os" in
49220         # Handle native Windows specially, because there setlocale() interprets
49221         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
49222         # "fr" or "fra" as "French" or "French_France.1252",
49223         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
49224         # "ja" as "Japanese" or "Japanese_Japan.932",
49225         # and similar.
49226         mingw*)
49227           # Test for the hypothetical native Windows locale name.
49228           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49229             gt_cv_locale_fr_utf8=French_France.65001
49230           else
49231             # None found.
49232             gt_cv_locale_fr_utf8=none
49233           fi
49234           ;;
49235         *)
49236           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49237           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
49238           # configure script would override the LC_ALL setting. Likewise for
49239           # LC_CTYPE, which is also set at the beginning of the configure script.
49240           # Test for the usual locale name.
49241           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49242             gt_cv_locale_fr_utf8=fr_FR
49243           else
49244             # Test for the locale name with explicit encoding suffix.
49245             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49246               gt_cv_locale_fr_utf8=fr_FR.UTF-8
49247             else
49248               # Test for the Solaris 7 locale name.
49249               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49250                 gt_cv_locale_fr_utf8=fr.UTF-8
49251               else
49252                 # None found.
49253                 gt_cv_locale_fr_utf8=none
49254               fi
49255             fi
49256           fi
49257           ;;
49258       esac
49259     fi
49260     rm -fr conftest*
49261
49262 fi
49263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
49264 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
49265   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
49266
49267
49268
49269
49270
49271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
49272 $as_echo_n "checking for a traditional french locale... " >&6; }
49273 if ${gt_cv_locale_fr+:} false; then :
49274   $as_echo_n "(cached) " >&6
49275 else
49276
49277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49278 /* end confdefs.h.  */
49279
49280 #include <locale.h>
49281 #include <time.h>
49282 #if HAVE_LANGINFO_CODESET
49283 # include <langinfo.h>
49284 #endif
49285 #include <stdlib.h>
49286 #include <string.h>
49287 struct tm t;
49288 char buf[16];
49289 int main () {
49290   /* Check whether the given locale name is recognized by the system.  */
49291 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
49292   /* On native Windows, setlocale(category, "") looks at the system settings,
49293      not at the environment variables.  Also, when an encoding suffix such
49294      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
49295      category of the locale to "C".  */
49296   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
49297       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
49298     return 1;
49299 #else
49300   if (setlocale (LC_ALL, "") == NULL) return 1;
49301 #endif
49302   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
49303      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
49304      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
49305      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
49306      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
49307      some unit tests fail.
49308      On MirBSD 10, when an unsupported locale is specified, setlocale()
49309      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
49310 #if HAVE_LANGINFO_CODESET
49311   {
49312     const char *cs = nl_langinfo (CODESET);
49313     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
49314         || strcmp (cs, "UTF-8") == 0)
49315       return 1;
49316   }
49317 #endif
49318 #ifdef __CYGWIN__
49319   /* On Cygwin, avoid locale names without encoding suffix, because the
49320      locale_charset() function relies on the encoding suffix.  Note that
49321      LC_ALL is set on the command line.  */
49322   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49323 #endif
49324   /* Check whether in the abbreviation of the second month, the second
49325      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
49326      one byte long. This excludes the UTF-8 encoding.  */
49327   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
49328   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
49329 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
49330   /* Check whether the decimal separator is a comma.
49331      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
49332      are nl_langinfo(RADIXCHAR) are both ".".  */
49333   if (localeconv () ->decimal_point[0] != ',') return 1;
49334 #endif
49335   return 0;
49336 }
49337
49338 _ACEOF
49339     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
49340   (eval $ac_link) 2>&5
49341   ac_status=$?
49342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49343   test $ac_status = 0; } && test -s conftest$ac_exeext; then
49344       case "$host_os" in
49345         # Handle native Windows specially, because there setlocale() interprets
49346         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
49347         # "fr" or "fra" as "French" or "French_France.1252",
49348         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
49349         # "ja" as "Japanese" or "Japanese_Japan.932",
49350         # and similar.
49351         mingw*)
49352           # Test for the native Windows locale name.
49353           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49354             gt_cv_locale_fr=French_France.1252
49355           else
49356             # None found.
49357             gt_cv_locale_fr=none
49358           fi
49359           ;;
49360         *)
49361           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49362           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
49363           # configure script would override the LC_ALL setting. Likewise for
49364           # LC_CTYPE, which is also set at the beginning of the configure script.
49365           # Test for the usual locale name.
49366           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49367             gt_cv_locale_fr=fr_FR
49368           else
49369             # Test for the locale name with explicit encoding suffix.
49370             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49371               gt_cv_locale_fr=fr_FR.ISO-8859-1
49372             else
49373               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
49374               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49375                 gt_cv_locale_fr=fr_FR.ISO8859-1
49376               else
49377                 # Test for the HP-UX locale name.
49378                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49379                   gt_cv_locale_fr=fr_FR.iso88591
49380                 else
49381                   # Test for the Solaris 7 locale name.
49382                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49383                     gt_cv_locale_fr=fr
49384                   else
49385                     # None found.
49386                     gt_cv_locale_fr=none
49387                   fi
49388                 fi
49389               fi
49390             fi
49391           fi
49392           ;;
49393       esac
49394     fi
49395     rm -fr conftest*
49396
49397 fi
49398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
49399 $as_echo "$gt_cv_locale_fr" >&6; }
49400   LOCALE_FR=$gt_cv_locale_fr
49401
49402
49403
49404
49405
49406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
49407 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
49408 if ${gt_cv_locale_tr_utf8+:} false; then :
49409   $as_echo_n "(cached) " >&6
49410 else
49411
49412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49413 /* end confdefs.h.  */
49414
49415 #include <locale.h>
49416 #include <time.h>
49417 #if HAVE_LANGINFO_CODESET
49418 # include <langinfo.h>
49419 #endif
49420 #include <stdlib.h>
49421 #include <string.h>
49422 struct tm t;
49423 char buf[16];
49424 int main () {
49425   /* On BeOS, locales are not implemented in libc.  Rather, libintl
49426      imitates locale dependent behaviour by looking at the environment
49427      variables, and all locales use the UTF-8 encoding.  But BeOS does not
49428      implement the Turkish upper-/lowercase mappings.  Therefore, let this
49429      program return 1 on BeOS.  */
49430   /* Check whether the given locale name is recognized by the system.  */
49431 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
49432   /* On native Windows, setlocale(category, "") looks at the system settings,
49433      not at the environment variables.  Also, when an encoding suffix such
49434      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
49435      category of the locale to "C".  */
49436   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
49437       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
49438     return 1;
49439 #else
49440   if (setlocale (LC_ALL, "") == NULL) return 1;
49441 #endif
49442   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
49443      On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
49444      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
49445      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
49446      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
49447      some unit tests fail.  */
49448 #if HAVE_LANGINFO_CODESET
49449   {
49450     const char *cs = nl_langinfo (CODESET);
49451     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
49452       return 1;
49453   }
49454 #endif
49455 #ifdef __CYGWIN__
49456   /* On Cygwin, avoid locale names without encoding suffix, because the
49457      locale_charset() function relies on the encoding suffix.  Note that
49458      LC_ALL is set on the command line.  */
49459   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49460 #endif
49461   /* Check whether in the abbreviation of the eighth month, the second
49462      character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
49463      two bytes long, with UTF-8 encoding.  */
49464   t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
49465   if (strftime (buf, sizeof (buf), "%b", &t) < 4
49466       || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
49467     return 1;
49468   /* Check whether the upper-/lowercase mappings are as expected for
49469      Turkish.  */
49470   if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
49471       || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
49472     return 1;
49473   return 0;
49474 }
49475
49476 _ACEOF
49477     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
49478   (eval $ac_link) 2>&5
49479   ac_status=$?
49480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49481   test $ac_status = 0; } && test -s conftest$ac_exeext; then
49482       case "$host_os" in
49483         # Handle native Windows specially, because there setlocale() interprets
49484         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
49485         # "fr" or "fra" as "French" or "French_France.1252",
49486         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
49487         # "ja" as "Japanese" or "Japanese_Japan.932",
49488         # and similar.
49489         mingw*)
49490           # Test for the hypothetical native Windows locale name.
49491           if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49492             gt_cv_locale_tr_utf8=Turkish_Turkey.65001
49493           else
49494             # None found.
49495             gt_cv_locale_tr_utf8=none
49496           fi
49497           ;;
49498         *)
49499           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49500           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
49501           # configure script would override the LC_ALL setting. Likewise for
49502           # LC_CTYPE, which is also set at the beginning of the configure script.
49503           # Test for the usual locale name.
49504           if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49505             gt_cv_locale_tr_utf8=tr_TR
49506           else
49507             # Test for the locale name with explicit encoding suffix.
49508             if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49509               gt_cv_locale_tr_utf8=tr_TR.UTF-8
49510             else
49511               # Test for the Solaris 7 locale name.
49512               if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49513                 gt_cv_locale_tr_utf8=tr.UTF-8
49514               else
49515                 # None found.
49516                 gt_cv_locale_tr_utf8=none
49517               fi
49518             fi
49519           fi
49520           ;;
49521       esac
49522     else
49523       gt_cv_locale_tr_utf8=none
49524     fi
49525     rm -fr conftest*
49526
49527 fi
49528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
49529 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
49530   LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
49531
49532
49533
49534
49535
49536   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
49537     REPLACE_DUP=1
49538   fi
49539
49540
49541   if test $REPLACE_DUP = 1; then
49542
49543
49544
49545
49546
49547
49548
49549
49550   gltests_LIBOBJS="$gltests_LIBOBJS dup.$ac_objext"
49551
49552     :
49553   fi
49554
49555
49556
49557
49558
49559     if test "$GNULIB_DUP" != 1; then
49560         if test "$GNULIB_DUP" = 0; then
49561       GNULIB_DUP=$gl_module_indicator_condition
49562     else
49563       GNULIB_DUP="($GNULIB_DUP || $gl_module_indicator_condition)"
49564     fi
49565   fi
49566
49567
49568
49569
49570
49571 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
49572
49573
49574
49575
49576
49577
49578   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
49579     REPLACE_FDOPEN=1
49580   else
49581         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
49582 $as_echo_n "checking whether fdopen sets errno... " >&6; }
49583 if ${gl_cv_func_fdopen_works+:} false; then :
49584   $as_echo_n "(cached) " >&6
49585 else
49586
49587         if test "$cross_compiling" = yes; then :
49588   case "$host_os" in
49589              mingw*) gl_cv_func_fdopen_works="guessing no" ;;
49590              *)      gl_cv_func_fdopen_works="guessing yes" ;;
49591            esac
49592
49593 else
49594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49595 /* end confdefs.h.  */
49596
49597 #include <stdio.h>
49598 #include <errno.h>
49599 int
49600 main (void)
49601 {
49602   FILE *fp;
49603   errno = 0;
49604   fp = fdopen (-1, "r");
49605   if (fp == NULL && errno == 0)
49606     return 1;
49607   return 0;
49608 }
49609 _ACEOF
49610 if ac_fn_c_try_run "$LINENO"; then :
49611   gl_cv_func_fdopen_works=yes
49612 else
49613   gl_cv_func_fdopen_works=no
49614 fi
49615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49616   conftest.$ac_objext conftest.beam conftest.$ac_ext
49617 fi
49618
49619
49620 fi
49621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
49622 $as_echo "$gl_cv_func_fdopen_works" >&6; }
49623     case "$gl_cv_func_fdopen_works" in
49624       *no) REPLACE_FDOPEN=1 ;;
49625     esac
49626   fi
49627
49628   if test $REPLACE_FDOPEN = 1; then
49629
49630
49631
49632
49633
49634
49635
49636
49637   gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
49638
49639
49640   fi
49641
49642
49643
49644
49645
49646     if test "$GNULIB_FDOPEN" != 1; then
49647         if test "$GNULIB_FDOPEN" = 0; then
49648       GNULIB_FDOPEN=$gl_module_indicator_condition
49649     else
49650       GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
49651     fi
49652   fi
49653
49654
49655
49656
49657
49658 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
49659
49660
49661
49662
49663
49664
49665     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
49666     REPLACE_FTELL=1
49667   fi
49668
49669   if test $REPLACE_FTELL = 1; then
49670
49671
49672
49673
49674
49675
49676
49677
49678   gltests_LIBOBJS="$gltests_LIBOBJS ftell.$ac_objext"
49679
49680   fi
49681
49682
49683
49684
49685
49686     if test "$GNULIB_FTELL" != 1; then
49687         if test "$GNULIB_FTELL" = 0; then
49688       GNULIB_FTELL=$gl_module_indicator_condition
49689     else
49690       GNULIB_FTELL="($GNULIB_FTELL || $gl_module_indicator_condition)"
49691     fi
49692   fi
49693
49694
49695
49696
49697
49698 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
49699
49700
49701
49702
49703
49704
49705
49706
49707
49708
49709
49710
49711
49712   if test $ac_cv_have_decl_ftello = no; then
49713     HAVE_DECL_FTELLO=0
49714   fi
49715
49716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
49717 $as_echo_n "checking for ftello... " >&6; }
49718 if ${gl_cv_func_ftello+:} false; then :
49719   $as_echo_n "(cached) " >&6
49720 else
49721
49722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49723 /* end confdefs.h.  */
49724 #include <stdio.h>
49725 int
49726 main ()
49727 {
49728 ftello (stdin);
49729   ;
49730   return 0;
49731 }
49732 _ACEOF
49733 if ac_fn_c_try_link "$LINENO"; then :
49734   gl_cv_func_ftello=yes
49735 else
49736   gl_cv_func_ftello=no
49737 fi
49738 rm -f core conftest.err conftest.$ac_objext \
49739     conftest$ac_exeext conftest.$ac_ext
49740
49741 fi
49742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
49743 $as_echo "$gl_cv_func_ftello" >&6; }
49744   if test $gl_cv_func_ftello = no; then
49745     HAVE_FTELLO=0
49746   else
49747     if test $WINDOWS_64_BIT_OFF_T = 1; then
49748       REPLACE_FTELLO=1
49749     fi
49750     if test $gl_cv_var_stdin_large_offset = no; then
49751       REPLACE_FTELLO=1
49752     fi
49753     if test $REPLACE_FTELLO = 0; then
49754
49755       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
49756 $as_echo_n "checking whether ftello works... " >&6; }
49757 if ${gl_cv_func_ftello_works+:} false; then :
49758   $as_echo_n "(cached) " >&6
49759 else
49760
49761                               case "$host_os" in
49762                       # Guess no on Solaris.
49763             solaris*) gl_cv_func_ftello_works="guessing no" ;;
49764                       # Guess yes otherwise.
49765             *)        gl_cv_func_ftello_works="guessing yes" ;;
49766           esac
49767           if test "$cross_compiling" = yes; then :
49768   :
49769 else
49770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49771 /* end confdefs.h.  */
49772
49773 #include <stdio.h>
49774 #include <stdlib.h>
49775 #include <string.h>
49776 #define TESTFILE "conftest.tmp"
49777 int
49778 main (void)
49779 {
49780   FILE *fp;
49781
49782   /* Create a file with some contents.  */
49783   fp = fopen (TESTFILE, "w");
49784   if (fp == NULL)
49785     return 70;
49786   if (fwrite ("foogarsh", 1, 8, fp) < 8)
49787     return 71;
49788   if (fclose (fp))
49789     return 72;
49790
49791   /* The file's contents is now "foogarsh".  */
49792
49793   /* Try writing after reading to EOF.  */
49794   fp = fopen (TESTFILE, "r+");
49795   if (fp == NULL)
49796     return 73;
49797   if (fseek (fp, -1, SEEK_END))
49798     return 74;
49799   if (!(getc (fp) == 'h'))
49800     return 1;
49801   if (!(getc (fp) == EOF))
49802     return 2;
49803   if (!(ftell (fp) == 8))
49804     return 3;
49805   if (!(ftell (fp) == 8))
49806     return 4;
49807   if (!(putc ('!', fp) == '!'))
49808     return 5;
49809   if (!(ftell (fp) == 9))
49810     return 6;
49811   if (!(fclose (fp) == 0))
49812     return 7;
49813   fp = fopen (TESTFILE, "r");
49814   if (fp == NULL)
49815     return 75;
49816   {
49817     char buf[10];
49818     if (!(fread (buf, 1, 10, fp) == 9))
49819       return 10;
49820     if (!(memcmp (buf, "foogarsh!", 9) == 0))
49821       return 11;
49822   }
49823   if (!(fclose (fp) == 0))
49824     return 12;
49825
49826   /* The file's contents is now "foogarsh!".  */
49827
49828   return 0;
49829 }
49830 _ACEOF
49831 if ac_fn_c_try_run "$LINENO"; then :
49832   gl_cv_func_ftello_works=yes
49833 else
49834   gl_cv_func_ftello_works=no
49835 fi
49836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49837   conftest.$ac_objext conftest.beam conftest.$ac_ext
49838 fi
49839
49840
49841 fi
49842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
49843 $as_echo "$gl_cv_func_ftello_works" >&6; }
49844       case "$gl_cv_func_ftello_works" in
49845         *yes) ;;
49846         *)
49847           REPLACE_FTELLO=1
49848
49849 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
49850
49851           ;;
49852       esac
49853     fi
49854   fi
49855
49856   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
49857
49858
49859
49860
49861
49862
49863
49864
49865   gltests_LIBOBJS="$gltests_LIBOBJS ftello.$ac_objext"
49866
49867
49868       for ac_func in _ftelli64
49869 do :
49870   ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
49871 if test "x$ac_cv_func__ftelli64" = xyes; then :
49872   cat >>confdefs.h <<_ACEOF
49873 #define HAVE__FTELLI64 1
49874 _ACEOF
49875
49876 fi
49877 done
49878
49879
49880   fi
49881
49882
49883
49884
49885
49886     if test "$GNULIB_FTELLO" != 1; then
49887         if test "$GNULIB_FTELLO" = 0; then
49888       GNULIB_FTELLO=$gl_module_indicator_condition
49889     else
49890       GNULIB_FTELLO="($GNULIB_FTELLO || $gl_module_indicator_condition)"
49891     fi
49892   fi
49893
49894
49895
49896
49897
49898 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
49899
49900
49901
49902
49903
49904
49905
49906
49907
49908   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
49909   *yes,yes) ;;
49910   *)
49911         REPLACE_GETCWD=1
49912     ;;
49913   esac
49914
49915   if test $REPLACE_GETCWD = 1; then
49916
49917
49918
49919
49920
49921
49922
49923
49924   gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext"
49925
49926   fi
49927
49928
49929
49930
49931
49932     if test "$GNULIB_GETCWD" != 1; then
49933         if test "$GNULIB_GETCWD" = 0; then
49934       GNULIB_GETCWD=$gl_module_indicator_condition
49935     else
49936       GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)"
49937     fi
49938   fi
49939
49940
49941
49942
49943
49944 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
49945
49946
49947
49948
49949
49950
49951   for ac_func in getpagesize
49952 do :
49953   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
49954 if test "x$ac_cv_func_getpagesize" = xyes; then :
49955   cat >>confdefs.h <<_ACEOF
49956 #define HAVE_GETPAGESIZE 1
49957 _ACEOF
49958
49959 fi
49960 done
49961
49962   if test $ac_cv_func_getpagesize = no; then
49963     HAVE_GETPAGESIZE=0
49964     for ac_header in OS.h
49965 do :
49966   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
49967 if test "x$ac_cv_header_OS_h" = xyes; then :
49968   cat >>confdefs.h <<_ACEOF
49969 #define HAVE_OS_H 1
49970 _ACEOF
49971
49972 fi
49973
49974 done
49975
49976     if test $ac_cv_header_OS_h = yes; then
49977       HAVE_OS_H=1
49978     fi
49979     for ac_header in sys/param.h
49980 do :
49981   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
49982 if test "x$ac_cv_header_sys_param_h" = xyes; then :
49983   cat >>confdefs.h <<_ACEOF
49984 #define HAVE_SYS_PARAM_H 1
49985 _ACEOF
49986
49987 fi
49988
49989 done
49990
49991     if test $ac_cv_header_sys_param_h = yes; then
49992       HAVE_SYS_PARAM_H=1
49993     fi
49994   fi
49995   case "$host_os" in
49996     mingw*)
49997       REPLACE_GETPAGESIZE=1
49998       ;;
49999   esac
50000       ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
50001 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
50002
50003 else
50004   HAVE_DECL_GETPAGESIZE=0
50005 fi
50006
50007
50008   if test $REPLACE_GETPAGESIZE = 1; then
50009
50010
50011
50012
50013
50014
50015
50016
50017   gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
50018
50019   fi
50020
50021
50022
50023
50024
50025     if test "$GNULIB_GETPAGESIZE" != 1; then
50026         if test "$GNULIB_GETPAGESIZE" = 0; then
50027       GNULIB_GETPAGESIZE=$gl_module_indicator_condition
50028     else
50029       GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
50030     fi
50031   fi
50032
50033
50034
50035
50036
50037 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
50038
50039
50040
50041
50042
50043
50044
50045
50046   PRIPTR_PREFIX=
50047   if test -n "$STDINT_H"; then
50048         PRIPTR_PREFIX='"l"'
50049   else
50050         for glpfx in '' l ll I64; do
50051       case $glpfx in
50052         '')  gltype1='int';;
50053         l)   gltype1='long int';;
50054         ll)  gltype1='long long int';;
50055         I64) gltype1='__int64';;
50056       esac
50057       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50058 /* end confdefs.h.  */
50059 #include <stdint.h>
50060            extern intptr_t foo;
50061            extern $gltype1 foo;
50062 int
50063 main ()
50064 {
50065
50066   ;
50067   return 0;
50068 }
50069 _ACEOF
50070 if ac_fn_c_try_compile "$LINENO"; then :
50071   PRIPTR_PREFIX='"'$glpfx'"'
50072 fi
50073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50074       test -n "$PRIPTR_PREFIX" && break
50075     done
50076   fi
50077
50078
50079
50080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
50081 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
50082 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
50083   $as_echo_n "(cached) " >&6
50084 else
50085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50086 /* end confdefs.h.  */
50087 /* Work also in C++ mode.  */
50088             #define __STDC_LIMIT_MACROS 1
50089
50090             /* Work if build is not clean.  */
50091             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
50092
50093             #include <limits.h>
50094             #if HAVE_STDINT_H
50095              #include <stdint.h>
50096             #endif
50097
50098             #if defined INT32_MAX && defined INTMAX_MAX
50099              #define CONDITION (INT32_MAX < INTMAX_MAX)
50100             #elif HAVE_LONG_LONG_INT
50101              #define CONDITION (sizeof (int) < sizeof (long long int))
50102             #else
50103              #define CONDITION 0
50104             #endif
50105             int test[CONDITION ? 1 : -1];
50106 int
50107 main ()
50108 {
50109
50110   ;
50111   return 0;
50112 }
50113 _ACEOF
50114 if ac_fn_c_try_compile "$LINENO"; then :
50115   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
50116 else
50117   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
50118 fi
50119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50120 fi
50121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
50122 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
50123   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
50124     INT32_MAX_LT_INTMAX_MAX=1;
50125   else
50126     INT32_MAX_LT_INTMAX_MAX=0;
50127   fi
50128
50129
50130   if test $APPLE_UNIVERSAL_BUILD = 0; then
50131
50132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
50133 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
50134 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
50135   $as_echo_n "(cached) " >&6
50136 else
50137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50138 /* end confdefs.h.  */
50139 /* Work also in C++ mode.  */
50140             #define __STDC_LIMIT_MACROS 1
50141
50142             /* Work if build is not clean.  */
50143             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
50144
50145             #include <limits.h>
50146             #if HAVE_STDINT_H
50147              #include <stdint.h>
50148             #endif
50149
50150             #if defined INT64_MAX
50151              #define CONDITION (INT64_MAX == LONG_MAX)
50152             #elif HAVE_LONG_LONG_INT
50153              #define CONDITION (sizeof (long long int) == sizeof (long int))
50154             #else
50155              #define CONDITION 0
50156             #endif
50157             int test[CONDITION ? 1 : -1];
50158 int
50159 main ()
50160 {
50161
50162   ;
50163   return 0;
50164 }
50165 _ACEOF
50166 if ac_fn_c_try_compile "$LINENO"; then :
50167   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
50168 else
50169   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
50170 fi
50171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50172 fi
50173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
50174 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
50175   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
50176     INT64_MAX_EQ_LONG_MAX=1;
50177   else
50178     INT64_MAX_EQ_LONG_MAX=0;
50179   fi
50180
50181
50182   else
50183     INT64_MAX_EQ_LONG_MAX=-1
50184   fi
50185
50186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
50187 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
50188 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
50189   $as_echo_n "(cached) " >&6
50190 else
50191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50192 /* end confdefs.h.  */
50193 /* Work also in C++ mode.  */
50194             #define __STDC_LIMIT_MACROS 1
50195
50196             /* Work if build is not clean.  */
50197             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
50198
50199             #include <limits.h>
50200             #if HAVE_STDINT_H
50201              #include <stdint.h>
50202             #endif
50203
50204             #if defined UINT32_MAX && defined UINTMAX_MAX
50205              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
50206             #elif HAVE_LONG_LONG_INT
50207              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
50208             #else
50209              #define CONDITION 0
50210             #endif
50211             int test[CONDITION ? 1 : -1];
50212 int
50213 main ()
50214 {
50215
50216   ;
50217   return 0;
50218 }
50219 _ACEOF
50220 if ac_fn_c_try_compile "$LINENO"; then :
50221   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
50222 else
50223   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
50224 fi
50225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50226 fi
50227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
50228 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
50229   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
50230     UINT32_MAX_LT_UINTMAX_MAX=1;
50231   else
50232     UINT32_MAX_LT_UINTMAX_MAX=0;
50233   fi
50234
50235
50236   if test $APPLE_UNIVERSAL_BUILD = 0; then
50237
50238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
50239 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
50240 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
50241   $as_echo_n "(cached) " >&6
50242 else
50243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50244 /* end confdefs.h.  */
50245 /* Work also in C++ mode.  */
50246             #define __STDC_LIMIT_MACROS 1
50247
50248             /* Work if build is not clean.  */
50249             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
50250
50251             #include <limits.h>
50252             #if HAVE_STDINT_H
50253              #include <stdint.h>
50254             #endif
50255
50256             #if defined UINT64_MAX
50257              #define CONDITION (UINT64_MAX == ULONG_MAX)
50258             #elif HAVE_LONG_LONG_INT
50259              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
50260             #else
50261              #define CONDITION 0
50262             #endif
50263             int test[CONDITION ? 1 : -1];
50264 int
50265 main ()
50266 {
50267
50268   ;
50269   return 0;
50270 }
50271 _ACEOF
50272 if ac_fn_c_try_compile "$LINENO"; then :
50273   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
50274 else
50275   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
50276 fi
50277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50278 fi
50279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
50280 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
50281   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
50282     UINT64_MAX_EQ_ULONG_MAX=1;
50283   else
50284     UINT64_MAX_EQ_ULONG_MAX=0;
50285   fi
50286
50287
50288   else
50289     UINT64_MAX_EQ_ULONG_MAX=-1
50290   fi
50291
50292
50293
50294
50295
50296
50297
50298
50299
50300
50301
50302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
50303 $as_echo_n "checking whether lseek detects pipes... " >&6; }
50304 if ${gl_cv_func_lseek_pipe+:} false; then :
50305   $as_echo_n "(cached) " >&6
50306 else
50307   case "$host_os" in
50308        mingw*)
50309                                                                gl_cv_func_lseek_pipe=no
50310          ;;
50311        *)
50312          if test $cross_compiling = no; then
50313            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50314 /* end confdefs.h.  */
50315
50316 #include <sys/types.h> /* for off_t */
50317 #include <stdio.h> /* for SEEK_CUR */
50318 #if HAVE_UNISTD_H
50319 # include <unistd.h>
50320 #else /* on Windows with MSVC */
50321 # include <io.h>
50322 #endif
50323
50324 int
50325 main ()
50326 {
50327
50328   /* Exit with success only if stdin is seekable.  */
50329   return lseek (0, (off_t)0, SEEK_CUR) < 0;
50330
50331   ;
50332   return 0;
50333 }
50334 _ACEOF
50335 if ac_fn_c_try_link "$LINENO"; then :
50336   if test -s conftest$ac_exeext \
50337                  && ./conftest$ac_exeext < conftest.$ac_ext \
50338                  && test 1 = "`echo hi \
50339                    | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
50340                 gl_cv_func_lseek_pipe=yes
50341               else
50342                 gl_cv_func_lseek_pipe=no
50343               fi
50344
50345 else
50346   gl_cv_func_lseek_pipe=no
50347 fi
50348 rm -f core conftest.err conftest.$ac_objext \
50349     conftest$ac_exeext conftest.$ac_ext
50350          else
50351            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50352 /* end confdefs.h.  */
50353
50354 #if defined __BEOS__
50355 /* BeOS mistakenly return 0 when trying to seek on pipes.  */
50356   Choke me.
50357 #endif
50358 _ACEOF
50359 if ac_fn_c_try_compile "$LINENO"; then :
50360   gl_cv_func_lseek_pipe=yes
50361 else
50362   gl_cv_func_lseek_pipe=no
50363 fi
50364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50365          fi
50366          ;;
50367      esac
50368
50369 fi
50370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
50371 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
50372   if test $gl_cv_func_lseek_pipe = no; then
50373     REPLACE_LSEEK=1
50374
50375 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
50376
50377   fi
50378
50379
50380   if test $WINDOWS_64_BIT_OFF_T = 1; then
50381     REPLACE_LSEEK=1
50382   fi
50383
50384   if test $REPLACE_LSEEK = 1; then
50385
50386
50387
50388
50389
50390
50391
50392
50393   gltests_LIBOBJS="$gltests_LIBOBJS lseek.$ac_objext"
50394
50395   fi
50396
50397
50398
50399
50400
50401     if test "$GNULIB_LSEEK" != 1; then
50402         if test "$GNULIB_LSEEK" = 0; then
50403       GNULIB_LSEEK=$gl_module_indicator_condition
50404     else
50405       GNULIB_LSEEK="($GNULIB_LSEEK || $gl_module_indicator_condition)"
50406     fi
50407   fi
50408
50409
50410
50411
50412
50413 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
50414
50415
50416
50417
50418
50419
50420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
50421 $as_echo_n "checking for a traditional french locale... " >&6; }
50422 if ${gt_cv_locale_fr+:} false; then :
50423   $as_echo_n "(cached) " >&6
50424 else
50425
50426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50427 /* end confdefs.h.  */
50428
50429 #include <locale.h>
50430 #include <time.h>
50431 #if HAVE_LANGINFO_CODESET
50432 # include <langinfo.h>
50433 #endif
50434 #include <stdlib.h>
50435 #include <string.h>
50436 struct tm t;
50437 char buf[16];
50438 int main () {
50439   /* Check whether the given locale name is recognized by the system.  */
50440 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
50441   /* On native Windows, setlocale(category, "") looks at the system settings,
50442      not at the environment variables.  Also, when an encoding suffix such
50443      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
50444      category of the locale to "C".  */
50445   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
50446       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
50447     return 1;
50448 #else
50449   if (setlocale (LC_ALL, "") == NULL) return 1;
50450 #endif
50451   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
50452      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
50453      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
50454      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
50455      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
50456      some unit tests fail.
50457      On MirBSD 10, when an unsupported locale is specified, setlocale()
50458      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
50459 #if HAVE_LANGINFO_CODESET
50460   {
50461     const char *cs = nl_langinfo (CODESET);
50462     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
50463         || strcmp (cs, "UTF-8") == 0)
50464       return 1;
50465   }
50466 #endif
50467 #ifdef __CYGWIN__
50468   /* On Cygwin, avoid locale names without encoding suffix, because the
50469      locale_charset() function relies on the encoding suffix.  Note that
50470      LC_ALL is set on the command line.  */
50471   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
50472 #endif
50473   /* Check whether in the abbreviation of the second month, the second
50474      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
50475      one byte long. This excludes the UTF-8 encoding.  */
50476   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
50477   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
50478 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
50479   /* Check whether the decimal separator is a comma.
50480      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
50481      are nl_langinfo(RADIXCHAR) are both ".".  */
50482   if (localeconv () ->decimal_point[0] != ',') return 1;
50483 #endif
50484   return 0;
50485 }
50486
50487 _ACEOF
50488     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
50489   (eval $ac_link) 2>&5
50490   ac_status=$?
50491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50492   test $ac_status = 0; } && test -s conftest$ac_exeext; then
50493       case "$host_os" in
50494         # Handle native Windows specially, because there setlocale() interprets
50495         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
50496         # "fr" or "fra" as "French" or "French_France.1252",
50497         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
50498         # "ja" as "Japanese" or "Japanese_Japan.932",
50499         # and similar.
50500         mingw*)
50501           # Test for the native Windows locale name.
50502           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50503             gt_cv_locale_fr=French_France.1252
50504           else
50505             # None found.
50506             gt_cv_locale_fr=none
50507           fi
50508           ;;
50509         *)
50510           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
50511           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
50512           # configure script would override the LC_ALL setting. Likewise for
50513           # LC_CTYPE, which is also set at the beginning of the configure script.
50514           # Test for the usual locale name.
50515           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50516             gt_cv_locale_fr=fr_FR
50517           else
50518             # Test for the locale name with explicit encoding suffix.
50519             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50520               gt_cv_locale_fr=fr_FR.ISO-8859-1
50521             else
50522               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
50523               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50524                 gt_cv_locale_fr=fr_FR.ISO8859-1
50525               else
50526                 # Test for the HP-UX locale name.
50527                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50528                   gt_cv_locale_fr=fr_FR.iso88591
50529                 else
50530                   # Test for the Solaris 7 locale name.
50531                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50532                     gt_cv_locale_fr=fr
50533                   else
50534                     # None found.
50535                     gt_cv_locale_fr=none
50536                   fi
50537                 fi
50538               fi
50539             fi
50540           fi
50541           ;;
50542       esac
50543     fi
50544     rm -fr conftest*
50545
50546 fi
50547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
50548 $as_echo "$gt_cv_locale_fr" >&6; }
50549   LOCALE_FR=$gt_cv_locale_fr
50550
50551
50552
50553
50554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
50555 $as_echo_n "checking for a french Unicode locale... " >&6; }
50556 if ${gt_cv_locale_fr_utf8+:} false; then :
50557   $as_echo_n "(cached) " >&6
50558 else
50559
50560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50561 /* end confdefs.h.  */
50562
50563 #include <locale.h>
50564 #include <time.h>
50565 #if HAVE_LANGINFO_CODESET
50566 # include <langinfo.h>
50567 #endif
50568 #include <stdlib.h>
50569 #include <string.h>
50570 struct tm t;
50571 char buf[16];
50572 int main () {
50573   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
50574      imitates locale dependent behaviour by looking at the environment
50575      variables, and all locales use the UTF-8 encoding.  */
50576 #if !(defined __BEOS__ || defined __HAIKU__)
50577   /* Check whether the given locale name is recognized by the system.  */
50578 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
50579   /* On native Windows, setlocale(category, "") looks at the system settings,
50580      not at the environment variables.  Also, when an encoding suffix such
50581      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
50582      category of the locale to "C".  */
50583   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
50584       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
50585     return 1;
50586 # else
50587   if (setlocale (LC_ALL, "") == NULL) return 1;
50588 # endif
50589   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
50590      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
50591      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
50592      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
50593      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
50594      some unit tests fail.  */
50595 # if HAVE_LANGINFO_CODESET
50596   {
50597     const char *cs = nl_langinfo (CODESET);
50598     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
50599       return 1;
50600   }
50601 # endif
50602 # ifdef __CYGWIN__
50603   /* On Cygwin, avoid locale names without encoding suffix, because the
50604      locale_charset() function relies on the encoding suffix.  Note that
50605      LC_ALL is set on the command line.  */
50606   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
50607 # endif
50608   /* Check whether in the abbreviation of the second month, the second
50609      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
50610      two bytes long, with UTF-8 encoding.  */
50611   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
50612   if (strftime (buf, sizeof (buf), "%b", &t) < 4
50613       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
50614     return 1;
50615 #endif
50616 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
50617   /* Check whether the decimal separator is a comma.
50618      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
50619      are nl_langinfo(RADIXCHAR) are both ".".  */
50620   if (localeconv () ->decimal_point[0] != ',') return 1;
50621 #endif
50622   return 0;
50623 }
50624
50625 _ACEOF
50626     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
50627   (eval $ac_link) 2>&5
50628   ac_status=$?
50629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50630   test $ac_status = 0; } && test -s conftest$ac_exeext; then
50631       case "$host_os" in
50632         # Handle native Windows specially, because there setlocale() interprets
50633         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
50634         # "fr" or "fra" as "French" or "French_France.1252",
50635         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
50636         # "ja" as "Japanese" or "Japanese_Japan.932",
50637         # and similar.
50638         mingw*)
50639           # Test for the hypothetical native Windows locale name.
50640           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50641             gt_cv_locale_fr_utf8=French_France.65001
50642           else
50643             # None found.
50644             gt_cv_locale_fr_utf8=none
50645           fi
50646           ;;
50647         *)
50648           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
50649           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
50650           # configure script would override the LC_ALL setting. Likewise for
50651           # LC_CTYPE, which is also set at the beginning of the configure script.
50652           # Test for the usual locale name.
50653           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50654             gt_cv_locale_fr_utf8=fr_FR
50655           else
50656             # Test for the locale name with explicit encoding suffix.
50657             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50658               gt_cv_locale_fr_utf8=fr_FR.UTF-8
50659             else
50660               # Test for the Solaris 7 locale name.
50661               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50662                 gt_cv_locale_fr_utf8=fr.UTF-8
50663               else
50664                 # None found.
50665                 gt_cv_locale_fr_utf8=none
50666               fi
50667             fi
50668           fi
50669           ;;
50670       esac
50671     fi
50672     rm -fr conftest*
50673
50674 fi
50675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
50676 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
50677   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
50678
50679
50680
50681
50682
50683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
50684 $as_echo_n "checking for a traditional japanese locale... " >&6; }
50685 if ${gt_cv_locale_ja+:} false; then :
50686   $as_echo_n "(cached) " >&6
50687 else
50688
50689     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50690 /* end confdefs.h.  */
50691
50692 #include <locale.h>
50693 #include <time.h>
50694 #if HAVE_LANGINFO_CODESET
50695 # include <langinfo.h>
50696 #endif
50697 #include <stdlib.h>
50698 #include <string.h>
50699 struct tm t;
50700 char buf[16];
50701 int main ()
50702 {
50703   const char *p;
50704   /* Check whether the given locale name is recognized by the system.  */
50705 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
50706   /* On native Windows, setlocale(category, "") looks at the system settings,
50707      not at the environment variables.  Also, when an encoding suffix such
50708      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
50709      category of the locale to "C".  */
50710   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
50711       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
50712     return 1;
50713 #else
50714   if (setlocale (LC_ALL, "") == NULL) return 1;
50715 #endif
50716   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
50717      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
50718      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
50719      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
50720      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
50721      some unit tests fail.
50722      On MirBSD 10, when an unsupported locale is specified, setlocale()
50723      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
50724 #if HAVE_LANGINFO_CODESET
50725   {
50726     const char *cs = nl_langinfo (CODESET);
50727     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
50728         || strcmp (cs, "UTF-8") == 0)
50729       return 1;
50730   }
50731 #endif
50732 #ifdef __CYGWIN__
50733   /* On Cygwin, avoid locale names without encoding suffix, because the
50734      locale_charset() function relies on the encoding suffix.  Note that
50735      LC_ALL is set on the command line.  */
50736   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
50737 #endif
50738   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
50739      on Cygwin 1.5.x.  */
50740   if (MB_CUR_MAX == 1)
50741     return 1;
50742   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
50743      This excludes the UTF-8 encoding (except on MirBSD).  */
50744   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
50745   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
50746   for (p = buf; *p != '\0'; p++)
50747     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
50748       return 1;
50749   return 0;
50750 }
50751
50752 _ACEOF
50753     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
50754   (eval $ac_link) 2>&5
50755   ac_status=$?
50756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50757   test $ac_status = 0; } && test -s conftest$ac_exeext; then
50758       case "$host_os" in
50759         # Handle native Windows specially, because there setlocale() interprets
50760         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
50761         # "fr" or "fra" as "French" or "French_France.1252",
50762         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
50763         # "ja" as "Japanese" or "Japanese_Japan.932",
50764         # and similar.
50765         mingw*)
50766           # Note that on native Windows, the Japanese locale is
50767           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
50768           # cannot use it here.
50769           gt_cv_locale_ja=none
50770           ;;
50771         *)
50772           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
50773           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
50774           # configure script would override the LC_ALL setting. Likewise for
50775           # LC_CTYPE, which is also set at the beginning of the configure script.
50776           # Test for the AIX locale name.
50777           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50778             gt_cv_locale_ja=ja_JP
50779           else
50780             # Test for the locale name with explicit encoding suffix.
50781             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50782               gt_cv_locale_ja=ja_JP.EUC-JP
50783             else
50784               # Test for the HP-UX, OSF/1, NetBSD locale name.
50785               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50786                 gt_cv_locale_ja=ja_JP.eucJP
50787               else
50788                 # Test for the IRIX, FreeBSD locale name.
50789                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50790                   gt_cv_locale_ja=ja_JP.EUC
50791                 else
50792                   # Test for the Solaris 7 locale name.
50793                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50794                     gt_cv_locale_ja=ja
50795                   else
50796                     # Special test for NetBSD 1.6.
50797                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
50798                       gt_cv_locale_ja=ja_JP.eucJP
50799                     else
50800                       # None found.
50801                       gt_cv_locale_ja=none
50802                     fi
50803                   fi
50804                 fi
50805               fi
50806             fi
50807           fi
50808           ;;
50809       esac
50810     fi
50811     rm -fr conftest*
50812
50813 fi
50814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
50815 $as_echo "$gt_cv_locale_ja" >&6; }
50816   LOCALE_JA=$gt_cv_locale_ja
50817
50818
50819
50820
50821
50822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
50823 $as_echo_n "checking for a transitional chinese locale... " >&6; }
50824 if ${gt_cv_locale_zh_CN+:} false; then :
50825   $as_echo_n "(cached) " >&6
50826 else
50827
50828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50829 /* end confdefs.h.  */
50830
50831 #include <locale.h>
50832 #include <stdlib.h>
50833 #include <time.h>
50834 #if HAVE_LANGINFO_CODESET
50835 # include <langinfo.h>
50836 #endif
50837 #include <stdlib.h>
50838 #include <string.h>
50839 struct tm t;
50840 char buf[16];
50841 int main ()
50842 {
50843   const char *p;
50844   /* Check whether the given locale name is recognized by the system.  */
50845 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
50846   /* On native Windows, setlocale(category, "") looks at the system settings,
50847      not at the environment variables.  Also, when an encoding suffix such
50848      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
50849      category of the locale to "C".  */
50850   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
50851       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
50852     return 1;
50853 #else
50854   if (setlocale (LC_ALL, "") == NULL) return 1;
50855 #endif
50856   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
50857      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
50858      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
50859      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
50860      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
50861      some unit tests fail.
50862      On MirBSD 10, when an unsupported locale is specified, setlocale()
50863      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
50864 #if HAVE_LANGINFO_CODESET
50865   {
50866     const char *cs = nl_langinfo (CODESET);
50867     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
50868         || strcmp (cs, "UTF-8") == 0)
50869       return 1;
50870   }
50871 #endif
50872 #ifdef __CYGWIN__
50873   /* On Cygwin, avoid locale names without encoding suffix, because the
50874      locale_charset() function relies on the encoding suffix.  Note that
50875      LC_ALL is set on the command line.  */
50876   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
50877 #endif
50878   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
50879      This excludes the UTF-8 encoding (except on MirBSD).  */
50880   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
50881   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
50882   for (p = buf; *p != '\0'; p++)
50883     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
50884       return 1;
50885   /* Check whether a typical GB18030 multibyte sequence is recognized as a
50886      single wide character.  This excludes the GB2312 and GBK encodings.  */
50887   if (mblen ("\203\062\332\066", 5) != 4)
50888     return 1;
50889   return 0;
50890 }
50891
50892 _ACEOF
50893     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
50894   (eval $ac_link) 2>&5
50895   ac_status=$?
50896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50897   test $ac_status = 0; } && test -s conftest$ac_exeext; then
50898       case "$host_os" in
50899         # Handle native Windows specially, because there setlocale() interprets
50900         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
50901         # "fr" or "fra" as "French" or "French_France.1252",
50902         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
50903         # "ja" as "Japanese" or "Japanese_Japan.932",
50904         # and similar.
50905         mingw*)
50906           # Test for the hypothetical native Windows locale name.
50907           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50908             gt_cv_locale_zh_CN=Chinese_China.54936
50909           else
50910             # None found.
50911             gt_cv_locale_zh_CN=none
50912           fi
50913           ;;
50914         solaris2.8)
50915           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
50916           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
50917           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
50918           gt_cv_locale_zh_CN=none
50919           ;;
50920         *)
50921           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
50922           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
50923           # configure script would override the LC_ALL setting. Likewise for
50924           # LC_CTYPE, which is also set at the beginning of the configure script.
50925           # Test for the locale name without encoding suffix.
50926           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50927             gt_cv_locale_zh_CN=zh_CN
50928           else
50929             # Test for the locale name with explicit encoding suffix.
50930             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
50931               gt_cv_locale_zh_CN=zh_CN.GB18030
50932             else
50933               # None found.
50934               gt_cv_locale_zh_CN=none
50935             fi
50936           fi
50937           ;;
50938       esac
50939     else
50940       # If there was a link error, due to mblen(), the system is so old that
50941       # it certainly doesn't have a chinese locale.
50942       gt_cv_locale_zh_CN=none
50943     fi
50944     rm -fr conftest*
50945
50946 fi
50947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
50948 $as_echo "$gt_cv_locale_zh_CN" >&6; }
50949   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
50950
50951
50952
50953
50954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
50955 $as_echo_n "checking for a french Unicode locale... " >&6; }
50956 if ${gt_cv_locale_fr_utf8+:} false; then :
50957   $as_echo_n "(cached) " >&6
50958 else
50959
50960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50961 /* end confdefs.h.  */
50962
50963 #include <locale.h>
50964 #include <time.h>
50965 #if HAVE_LANGINFO_CODESET
50966 # include <langinfo.h>
50967 #endif
50968 #include <stdlib.h>
50969 #include <string.h>
50970 struct tm t;
50971 char buf[16];
50972 int main () {
50973   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
50974      imitates locale dependent behaviour by looking at the environment
50975      variables, and all locales use the UTF-8 encoding.  */
50976 #if !(defined __BEOS__ || defined __HAIKU__)
50977   /* Check whether the given locale name is recognized by the system.  */
50978 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
50979   /* On native Windows, setlocale(category, "") looks at the system settings,
50980      not at the environment variables.  Also, when an encoding suffix such
50981      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
50982      category of the locale to "C".  */
50983   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
50984       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
50985     return 1;
50986 # else
50987   if (setlocale (LC_ALL, "") == NULL) return 1;
50988 # endif
50989   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
50990      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
50991      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
50992      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
50993      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
50994      some unit tests fail.  */
50995 # if HAVE_LANGINFO_CODESET
50996   {
50997     const char *cs = nl_langinfo (CODESET);
50998     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
50999       return 1;
51000   }
51001 # endif
51002 # ifdef __CYGWIN__
51003   /* On Cygwin, avoid locale names without encoding suffix, because the
51004      locale_charset() function relies on the encoding suffix.  Note that
51005      LC_ALL is set on the command line.  */
51006   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51007 # endif
51008   /* Check whether in the abbreviation of the second month, the second
51009      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
51010      two bytes long, with UTF-8 encoding.  */
51011   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51012   if (strftime (buf, sizeof (buf), "%b", &t) < 4
51013       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
51014     return 1;
51015 #endif
51016 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
51017   /* Check whether the decimal separator is a comma.
51018      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
51019      are nl_langinfo(RADIXCHAR) are both ".".  */
51020   if (localeconv () ->decimal_point[0] != ',') return 1;
51021 #endif
51022   return 0;
51023 }
51024
51025 _ACEOF
51026     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51027   (eval $ac_link) 2>&5
51028   ac_status=$?
51029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51030   test $ac_status = 0; } && test -s conftest$ac_exeext; then
51031       case "$host_os" in
51032         # Handle native Windows specially, because there setlocale() interprets
51033         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51034         # "fr" or "fra" as "French" or "French_France.1252",
51035         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51036         # "ja" as "Japanese" or "Japanese_Japan.932",
51037         # and similar.
51038         mingw*)
51039           # Test for the hypothetical native Windows locale name.
51040           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51041             gt_cv_locale_fr_utf8=French_France.65001
51042           else
51043             # None found.
51044             gt_cv_locale_fr_utf8=none
51045           fi
51046           ;;
51047         *)
51048           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51049           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51050           # configure script would override the LC_ALL setting. Likewise for
51051           # LC_CTYPE, which is also set at the beginning of the configure script.
51052           # Test for the usual locale name.
51053           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51054             gt_cv_locale_fr_utf8=fr_FR
51055           else
51056             # Test for the locale name with explicit encoding suffix.
51057             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51058               gt_cv_locale_fr_utf8=fr_FR.UTF-8
51059             else
51060               # Test for the Solaris 7 locale name.
51061               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51062                 gt_cv_locale_fr_utf8=fr.UTF-8
51063               else
51064                 # None found.
51065                 gt_cv_locale_fr_utf8=none
51066               fi
51067             fi
51068           fi
51069           ;;
51070       esac
51071     fi
51072     rm -fr conftest*
51073
51074 fi
51075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
51076 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
51077   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
51078
51079
51080
51081
51082
51083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
51084 $as_echo_n "checking for a traditional french locale... " >&6; }
51085 if ${gt_cv_locale_fr+:} false; then :
51086   $as_echo_n "(cached) " >&6
51087 else
51088
51089     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51090 /* end confdefs.h.  */
51091
51092 #include <locale.h>
51093 #include <time.h>
51094 #if HAVE_LANGINFO_CODESET
51095 # include <langinfo.h>
51096 #endif
51097 #include <stdlib.h>
51098 #include <string.h>
51099 struct tm t;
51100 char buf[16];
51101 int main () {
51102   /* Check whether the given locale name is recognized by the system.  */
51103 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
51104   /* On native Windows, setlocale(category, "") looks at the system settings,
51105      not at the environment variables.  Also, when an encoding suffix such
51106      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
51107      category of the locale to "C".  */
51108   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
51109       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
51110     return 1;
51111 #else
51112   if (setlocale (LC_ALL, "") == NULL) return 1;
51113 #endif
51114   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
51115      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
51116      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
51117      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
51118      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
51119      some unit tests fail.
51120      On MirBSD 10, when an unsupported locale is specified, setlocale()
51121      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
51122 #if HAVE_LANGINFO_CODESET
51123   {
51124     const char *cs = nl_langinfo (CODESET);
51125     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
51126         || strcmp (cs, "UTF-8") == 0)
51127       return 1;
51128   }
51129 #endif
51130 #ifdef __CYGWIN__
51131   /* On Cygwin, avoid locale names without encoding suffix, because the
51132      locale_charset() function relies on the encoding suffix.  Note that
51133      LC_ALL is set on the command line.  */
51134   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51135 #endif
51136   /* Check whether in the abbreviation of the second month, the second
51137      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
51138      one byte long. This excludes the UTF-8 encoding.  */
51139   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51140   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
51141 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
51142   /* Check whether the decimal separator is a comma.
51143      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
51144      are nl_langinfo(RADIXCHAR) are both ".".  */
51145   if (localeconv () ->decimal_point[0] != ',') return 1;
51146 #endif
51147   return 0;
51148 }
51149
51150 _ACEOF
51151     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51152   (eval $ac_link) 2>&5
51153   ac_status=$?
51154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51155   test $ac_status = 0; } && test -s conftest$ac_exeext; then
51156       case "$host_os" in
51157         # Handle native Windows specially, because there setlocale() interprets
51158         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51159         # "fr" or "fra" as "French" or "French_France.1252",
51160         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51161         # "ja" as "Japanese" or "Japanese_Japan.932",
51162         # and similar.
51163         mingw*)
51164           # Test for the native Windows locale name.
51165           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51166             gt_cv_locale_fr=French_France.1252
51167           else
51168             # None found.
51169             gt_cv_locale_fr=none
51170           fi
51171           ;;
51172         *)
51173           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51174           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51175           # configure script would override the LC_ALL setting. Likewise for
51176           # LC_CTYPE, which is also set at the beginning of the configure script.
51177           # Test for the usual locale name.
51178           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51179             gt_cv_locale_fr=fr_FR
51180           else
51181             # Test for the locale name with explicit encoding suffix.
51182             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51183               gt_cv_locale_fr=fr_FR.ISO-8859-1
51184             else
51185               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
51186               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51187                 gt_cv_locale_fr=fr_FR.ISO8859-1
51188               else
51189                 # Test for the HP-UX locale name.
51190                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51191                   gt_cv_locale_fr=fr_FR.iso88591
51192                 else
51193                   # Test for the Solaris 7 locale name.
51194                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51195                     gt_cv_locale_fr=fr
51196                   else
51197                     # None found.
51198                     gt_cv_locale_fr=none
51199                   fi
51200                 fi
51201               fi
51202             fi
51203           fi
51204           ;;
51205       esac
51206     fi
51207     rm -fr conftest*
51208
51209 fi
51210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
51211 $as_echo "$gt_cv_locale_fr" >&6; }
51212   LOCALE_FR=$gt_cv_locale_fr
51213
51214
51215
51216
51217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
51218 $as_echo_n "checking for a french Unicode locale... " >&6; }
51219 if ${gt_cv_locale_fr_utf8+:} false; then :
51220   $as_echo_n "(cached) " >&6
51221 else
51222
51223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51224 /* end confdefs.h.  */
51225
51226 #include <locale.h>
51227 #include <time.h>
51228 #if HAVE_LANGINFO_CODESET
51229 # include <langinfo.h>
51230 #endif
51231 #include <stdlib.h>
51232 #include <string.h>
51233 struct tm t;
51234 char buf[16];
51235 int main () {
51236   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
51237      imitates locale dependent behaviour by looking at the environment
51238      variables, and all locales use the UTF-8 encoding.  */
51239 #if !(defined __BEOS__ || defined __HAIKU__)
51240   /* Check whether the given locale name is recognized by the system.  */
51241 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
51242   /* On native Windows, setlocale(category, "") looks at the system settings,
51243      not at the environment variables.  Also, when an encoding suffix such
51244      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
51245      category of the locale to "C".  */
51246   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
51247       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
51248     return 1;
51249 # else
51250   if (setlocale (LC_ALL, "") == NULL) return 1;
51251 # endif
51252   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
51253      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
51254      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
51255      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
51256      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
51257      some unit tests fail.  */
51258 # if HAVE_LANGINFO_CODESET
51259   {
51260     const char *cs = nl_langinfo (CODESET);
51261     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
51262       return 1;
51263   }
51264 # endif
51265 # ifdef __CYGWIN__
51266   /* On Cygwin, avoid locale names without encoding suffix, because the
51267      locale_charset() function relies on the encoding suffix.  Note that
51268      LC_ALL is set on the command line.  */
51269   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51270 # endif
51271   /* Check whether in the abbreviation of the second month, the second
51272      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
51273      two bytes long, with UTF-8 encoding.  */
51274   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51275   if (strftime (buf, sizeof (buf), "%b", &t) < 4
51276       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
51277     return 1;
51278 #endif
51279 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
51280   /* Check whether the decimal separator is a comma.
51281      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
51282      are nl_langinfo(RADIXCHAR) are both ".".  */
51283   if (localeconv () ->decimal_point[0] != ',') return 1;
51284 #endif
51285   return 0;
51286 }
51287
51288 _ACEOF
51289     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51290   (eval $ac_link) 2>&5
51291   ac_status=$?
51292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51293   test $ac_status = 0; } && test -s conftest$ac_exeext; then
51294       case "$host_os" in
51295         # Handle native Windows specially, because there setlocale() interprets
51296         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51297         # "fr" or "fra" as "French" or "French_France.1252",
51298         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51299         # "ja" as "Japanese" or "Japanese_Japan.932",
51300         # and similar.
51301         mingw*)
51302           # Test for the hypothetical native Windows locale name.
51303           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51304             gt_cv_locale_fr_utf8=French_France.65001
51305           else
51306             # None found.
51307             gt_cv_locale_fr_utf8=none
51308           fi
51309           ;;
51310         *)
51311           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51312           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51313           # configure script would override the LC_ALL setting. Likewise for
51314           # LC_CTYPE, which is also set at the beginning of the configure script.
51315           # Test for the usual locale name.
51316           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51317             gt_cv_locale_fr_utf8=fr_FR
51318           else
51319             # Test for the locale name with explicit encoding suffix.
51320             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51321               gt_cv_locale_fr_utf8=fr_FR.UTF-8
51322             else
51323               # Test for the Solaris 7 locale name.
51324               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51325                 gt_cv_locale_fr_utf8=fr.UTF-8
51326               else
51327                 # None found.
51328                 gt_cv_locale_fr_utf8=none
51329               fi
51330             fi
51331           fi
51332           ;;
51333       esac
51334     fi
51335     rm -fr conftest*
51336
51337 fi
51338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
51339 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
51340   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
51341
51342
51343
51344
51345
51346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
51347 $as_echo_n "checking for a traditional japanese locale... " >&6; }
51348 if ${gt_cv_locale_ja+:} false; then :
51349   $as_echo_n "(cached) " >&6
51350 else
51351
51352     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51353 /* end confdefs.h.  */
51354
51355 #include <locale.h>
51356 #include <time.h>
51357 #if HAVE_LANGINFO_CODESET
51358 # include <langinfo.h>
51359 #endif
51360 #include <stdlib.h>
51361 #include <string.h>
51362 struct tm t;
51363 char buf[16];
51364 int main ()
51365 {
51366   const char *p;
51367   /* Check whether the given locale name is recognized by the system.  */
51368 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
51369   /* On native Windows, setlocale(category, "") looks at the system settings,
51370      not at the environment variables.  Also, when an encoding suffix such
51371      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
51372      category of the locale to "C".  */
51373   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
51374       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
51375     return 1;
51376 #else
51377   if (setlocale (LC_ALL, "") == NULL) return 1;
51378 #endif
51379   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
51380      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
51381      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
51382      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
51383      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
51384      some unit tests fail.
51385      On MirBSD 10, when an unsupported locale is specified, setlocale()
51386      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
51387 #if HAVE_LANGINFO_CODESET
51388   {
51389     const char *cs = nl_langinfo (CODESET);
51390     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
51391         || strcmp (cs, "UTF-8") == 0)
51392       return 1;
51393   }
51394 #endif
51395 #ifdef __CYGWIN__
51396   /* On Cygwin, avoid locale names without encoding suffix, because the
51397      locale_charset() function relies on the encoding suffix.  Note that
51398      LC_ALL is set on the command line.  */
51399   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51400 #endif
51401   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
51402      on Cygwin 1.5.x.  */
51403   if (MB_CUR_MAX == 1)
51404     return 1;
51405   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
51406      This excludes the UTF-8 encoding (except on MirBSD).  */
51407   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51408   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
51409   for (p = buf; *p != '\0'; p++)
51410     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
51411       return 1;
51412   return 0;
51413 }
51414
51415 _ACEOF
51416     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51417   (eval $ac_link) 2>&5
51418   ac_status=$?
51419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51420   test $ac_status = 0; } && test -s conftest$ac_exeext; then
51421       case "$host_os" in
51422         # Handle native Windows specially, because there setlocale() interprets
51423         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51424         # "fr" or "fra" as "French" or "French_France.1252",
51425         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51426         # "ja" as "Japanese" or "Japanese_Japan.932",
51427         # and similar.
51428         mingw*)
51429           # Note that on native Windows, the Japanese locale is
51430           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
51431           # cannot use it here.
51432           gt_cv_locale_ja=none
51433           ;;
51434         *)
51435           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51436           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51437           # configure script would override the LC_ALL setting. Likewise for
51438           # LC_CTYPE, which is also set at the beginning of the configure script.
51439           # Test for the AIX locale name.
51440           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51441             gt_cv_locale_ja=ja_JP
51442           else
51443             # Test for the locale name with explicit encoding suffix.
51444             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51445               gt_cv_locale_ja=ja_JP.EUC-JP
51446             else
51447               # Test for the HP-UX, OSF/1, NetBSD locale name.
51448               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51449                 gt_cv_locale_ja=ja_JP.eucJP
51450               else
51451                 # Test for the IRIX, FreeBSD locale name.
51452                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51453                   gt_cv_locale_ja=ja_JP.EUC
51454                 else
51455                   # Test for the Solaris 7 locale name.
51456                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51457                     gt_cv_locale_ja=ja
51458                   else
51459                     # Special test for NetBSD 1.6.
51460                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
51461                       gt_cv_locale_ja=ja_JP.eucJP
51462                     else
51463                       # None found.
51464                       gt_cv_locale_ja=none
51465                     fi
51466                   fi
51467                 fi
51468               fi
51469             fi
51470           fi
51471           ;;
51472       esac
51473     fi
51474     rm -fr conftest*
51475
51476 fi
51477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
51478 $as_echo "$gt_cv_locale_ja" >&6; }
51479   LOCALE_JA=$gt_cv_locale_ja
51480
51481
51482
51483
51484
51485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
51486 $as_echo_n "checking for a transitional chinese locale... " >&6; }
51487 if ${gt_cv_locale_zh_CN+:} false; then :
51488   $as_echo_n "(cached) " >&6
51489 else
51490
51491     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51492 /* end confdefs.h.  */
51493
51494 #include <locale.h>
51495 #include <stdlib.h>
51496 #include <time.h>
51497 #if HAVE_LANGINFO_CODESET
51498 # include <langinfo.h>
51499 #endif
51500 #include <stdlib.h>
51501 #include <string.h>
51502 struct tm t;
51503 char buf[16];
51504 int main ()
51505 {
51506   const char *p;
51507   /* Check whether the given locale name is recognized by the system.  */
51508 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
51509   /* On native Windows, setlocale(category, "") looks at the system settings,
51510      not at the environment variables.  Also, when an encoding suffix such
51511      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
51512      category of the locale to "C".  */
51513   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
51514       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
51515     return 1;
51516 #else
51517   if (setlocale (LC_ALL, "") == NULL) return 1;
51518 #endif
51519   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
51520      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
51521      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
51522      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
51523      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
51524      some unit tests fail.
51525      On MirBSD 10, when an unsupported locale is specified, setlocale()
51526      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
51527 #if HAVE_LANGINFO_CODESET
51528   {
51529     const char *cs = nl_langinfo (CODESET);
51530     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
51531         || strcmp (cs, "UTF-8") == 0)
51532       return 1;
51533   }
51534 #endif
51535 #ifdef __CYGWIN__
51536   /* On Cygwin, avoid locale names without encoding suffix, because the
51537      locale_charset() function relies on the encoding suffix.  Note that
51538      LC_ALL is set on the command line.  */
51539   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51540 #endif
51541   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
51542      This excludes the UTF-8 encoding (except on MirBSD).  */
51543   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51544   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
51545   for (p = buf; *p != '\0'; p++)
51546     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
51547       return 1;
51548   /* Check whether a typical GB18030 multibyte sequence is recognized as a
51549      single wide character.  This excludes the GB2312 and GBK encodings.  */
51550   if (mblen ("\203\062\332\066", 5) != 4)
51551     return 1;
51552   return 0;
51553 }
51554
51555 _ACEOF
51556     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51557   (eval $ac_link) 2>&5
51558   ac_status=$?
51559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51560   test $ac_status = 0; } && test -s conftest$ac_exeext; then
51561       case "$host_os" in
51562         # Handle native Windows specially, because there setlocale() interprets
51563         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51564         # "fr" or "fra" as "French" or "French_France.1252",
51565         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51566         # "ja" as "Japanese" or "Japanese_Japan.932",
51567         # and similar.
51568         mingw*)
51569           # Test for the hypothetical native Windows locale name.
51570           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51571             gt_cv_locale_zh_CN=Chinese_China.54936
51572           else
51573             # None found.
51574             gt_cv_locale_zh_CN=none
51575           fi
51576           ;;
51577         solaris2.8)
51578           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
51579           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
51580           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
51581           gt_cv_locale_zh_CN=none
51582           ;;
51583         *)
51584           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51585           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51586           # configure script would override the LC_ALL setting. Likewise for
51587           # LC_CTYPE, which is also set at the beginning of the configure script.
51588           # Test for the locale name without encoding suffix.
51589           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51590             gt_cv_locale_zh_CN=zh_CN
51591           else
51592             # Test for the locale name with explicit encoding suffix.
51593             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51594               gt_cv_locale_zh_CN=zh_CN.GB18030
51595             else
51596               # None found.
51597               gt_cv_locale_zh_CN=none
51598             fi
51599           fi
51600           ;;
51601       esac
51602     else
51603       # If there was a link error, due to mblen(), the system is so old that
51604       # it certainly doesn't have a chinese locale.
51605       gt_cv_locale_zh_CN=none
51606     fi
51607     rm -fr conftest*
51608
51609 fi
51610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
51611 $as_echo "$gt_cv_locale_zh_CN" >&6; }
51612   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
51613
51614
51615
51616
51617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
51618 $as_echo_n "checking for a french Unicode locale... " >&6; }
51619 if ${gt_cv_locale_fr_utf8+:} false; then :
51620   $as_echo_n "(cached) " >&6
51621 else
51622
51623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51624 /* end confdefs.h.  */
51625
51626 #include <locale.h>
51627 #include <time.h>
51628 #if HAVE_LANGINFO_CODESET
51629 # include <langinfo.h>
51630 #endif
51631 #include <stdlib.h>
51632 #include <string.h>
51633 struct tm t;
51634 char buf[16];
51635 int main () {
51636   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
51637      imitates locale dependent behaviour by looking at the environment
51638      variables, and all locales use the UTF-8 encoding.  */
51639 #if !(defined __BEOS__ || defined __HAIKU__)
51640   /* Check whether the given locale name is recognized by the system.  */
51641 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
51642   /* On native Windows, setlocale(category, "") looks at the system settings,
51643      not at the environment variables.  Also, when an encoding suffix such
51644      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
51645      category of the locale to "C".  */
51646   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
51647       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
51648     return 1;
51649 # else
51650   if (setlocale (LC_ALL, "") == NULL) return 1;
51651 # endif
51652   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
51653      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
51654      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
51655      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
51656      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
51657      some unit tests fail.  */
51658 # if HAVE_LANGINFO_CODESET
51659   {
51660     const char *cs = nl_langinfo (CODESET);
51661     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
51662       return 1;
51663   }
51664 # endif
51665 # ifdef __CYGWIN__
51666   /* On Cygwin, avoid locale names without encoding suffix, because the
51667      locale_charset() function relies on the encoding suffix.  Note that
51668      LC_ALL is set on the command line.  */
51669   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51670 # endif
51671   /* Check whether in the abbreviation of the second month, the second
51672      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
51673      two bytes long, with UTF-8 encoding.  */
51674   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51675   if (strftime (buf, sizeof (buf), "%b", &t) < 4
51676       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
51677     return 1;
51678 #endif
51679 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
51680   /* Check whether the decimal separator is a comma.
51681      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
51682      are nl_langinfo(RADIXCHAR) are both ".".  */
51683   if (localeconv () ->decimal_point[0] != ',') return 1;
51684 #endif
51685   return 0;
51686 }
51687
51688 _ACEOF
51689     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51690   (eval $ac_link) 2>&5
51691   ac_status=$?
51692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51693   test $ac_status = 0; } && test -s conftest$ac_exeext; then
51694       case "$host_os" in
51695         # Handle native Windows specially, because there setlocale() interprets
51696         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51697         # "fr" or "fra" as "French" or "French_France.1252",
51698         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51699         # "ja" as "Japanese" or "Japanese_Japan.932",
51700         # and similar.
51701         mingw*)
51702           # Test for the hypothetical native Windows locale name.
51703           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51704             gt_cv_locale_fr_utf8=French_France.65001
51705           else
51706             # None found.
51707             gt_cv_locale_fr_utf8=none
51708           fi
51709           ;;
51710         *)
51711           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51712           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51713           # configure script would override the LC_ALL setting. Likewise for
51714           # LC_CTYPE, which is also set at the beginning of the configure script.
51715           # Test for the usual locale name.
51716           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51717             gt_cv_locale_fr_utf8=fr_FR
51718           else
51719             # Test for the locale name with explicit encoding suffix.
51720             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51721               gt_cv_locale_fr_utf8=fr_FR.UTF-8
51722             else
51723               # Test for the Solaris 7 locale name.
51724               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51725                 gt_cv_locale_fr_utf8=fr.UTF-8
51726               else
51727                 # None found.
51728                 gt_cv_locale_fr_utf8=none
51729               fi
51730             fi
51731           fi
51732           ;;
51733       esac
51734     fi
51735     rm -fr conftest*
51736
51737 fi
51738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
51739 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
51740   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
51741
51742
51743
51744
51745
51746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
51747 $as_echo_n "checking for a transitional chinese locale... " >&6; }
51748 if ${gt_cv_locale_zh_CN+:} false; then :
51749   $as_echo_n "(cached) " >&6
51750 else
51751
51752     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51753 /* end confdefs.h.  */
51754
51755 #include <locale.h>
51756 #include <stdlib.h>
51757 #include <time.h>
51758 #if HAVE_LANGINFO_CODESET
51759 # include <langinfo.h>
51760 #endif
51761 #include <stdlib.h>
51762 #include <string.h>
51763 struct tm t;
51764 char buf[16];
51765 int main ()
51766 {
51767   const char *p;
51768   /* Check whether the given locale name is recognized by the system.  */
51769 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
51770   /* On native Windows, setlocale(category, "") looks at the system settings,
51771      not at the environment variables.  Also, when an encoding suffix such
51772      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
51773      category of the locale to "C".  */
51774   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
51775       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
51776     return 1;
51777 #else
51778   if (setlocale (LC_ALL, "") == NULL) return 1;
51779 #endif
51780   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
51781      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
51782      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
51783      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
51784      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
51785      some unit tests fail.
51786      On MirBSD 10, when an unsupported locale is specified, setlocale()
51787      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
51788 #if HAVE_LANGINFO_CODESET
51789   {
51790     const char *cs = nl_langinfo (CODESET);
51791     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
51792         || strcmp (cs, "UTF-8") == 0)
51793       return 1;
51794   }
51795 #endif
51796 #ifdef __CYGWIN__
51797   /* On Cygwin, avoid locale names without encoding suffix, because the
51798      locale_charset() function relies on the encoding suffix.  Note that
51799      LC_ALL is set on the command line.  */
51800   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
51801 #endif
51802   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
51803      This excludes the UTF-8 encoding (except on MirBSD).  */
51804   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
51805   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
51806   for (p = buf; *p != '\0'; p++)
51807     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
51808       return 1;
51809   /* Check whether a typical GB18030 multibyte sequence is recognized as a
51810      single wide character.  This excludes the GB2312 and GBK encodings.  */
51811   if (mblen ("\203\062\332\066", 5) != 4)
51812     return 1;
51813   return 0;
51814 }
51815
51816 _ACEOF
51817     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
51818   (eval $ac_link) 2>&5
51819   ac_status=$?
51820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51821   test $ac_status = 0; } && test -s conftest$ac_exeext; then
51822       case "$host_os" in
51823         # Handle native Windows specially, because there setlocale() interprets
51824         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
51825         # "fr" or "fra" as "French" or "French_France.1252",
51826         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
51827         # "ja" as "Japanese" or "Japanese_Japan.932",
51828         # and similar.
51829         mingw*)
51830           # Test for the hypothetical native Windows locale name.
51831           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51832             gt_cv_locale_zh_CN=Chinese_China.54936
51833           else
51834             # None found.
51835             gt_cv_locale_zh_CN=none
51836           fi
51837           ;;
51838         solaris2.8)
51839           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
51840           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
51841           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
51842           gt_cv_locale_zh_CN=none
51843           ;;
51844         *)
51845           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
51846           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
51847           # configure script would override the LC_ALL setting. Likewise for
51848           # LC_CTYPE, which is also set at the beginning of the configure script.
51849           # Test for the locale name without encoding suffix.
51850           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51851             gt_cv_locale_zh_CN=zh_CN
51852           else
51853             # Test for the locale name with explicit encoding suffix.
51854             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
51855               gt_cv_locale_zh_CN=zh_CN.GB18030
51856             else
51857               # None found.
51858               gt_cv_locale_zh_CN=none
51859             fi
51860           fi
51861           ;;
51862       esac
51863     else
51864       # If there was a link error, due to mblen(), the system is so old that
51865       # it certainly doesn't have a chinese locale.
51866       gt_cv_locale_zh_CN=none
51867     fi
51868     rm -fr conftest*
51869
51870 fi
51871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
51872 $as_echo "$gt_cv_locale_zh_CN" >&6; }
51873   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
51874
51875
51876
51877
51878
51879   if false; then
51880     REPLACE_MBTOWC=1
51881   fi
51882
51883   if test $REPLACE_MBTOWC = 1; then
51884
51885
51886
51887
51888
51889
51890
51891
51892   gltests_LIBOBJS="$gltests_LIBOBJS mbtowc.$ac_objext"
51893
51894
51895   :
51896
51897   fi
51898
51899
51900
51901
51902
51903     if test "$GNULIB_MBTOWC" != 1; then
51904         if test "$GNULIB_MBTOWC" = 0; then
51905       GNULIB_MBTOWC=$gl_module_indicator_condition
51906     else
51907       GNULIB_MBTOWC="($GNULIB_MBTOWC || $gl_module_indicator_condition)"
51908     fi
51909   fi
51910
51911
51912
51913
51914
51915 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
51916
51917
51918
51919
51920
51921
51922   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
51923   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
51924   # irrelevant for anonymous mappings.
51925   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
51926 if test "x$ac_cv_func_mmap" = xyes; then :
51927   gl_have_mmap=yes
51928 else
51929   gl_have_mmap=no
51930 fi
51931
51932
51933   # Try to allow MAP_ANONYMOUS.
51934   gl_have_mmap_anonymous=no
51935   if test $gl_have_mmap = yes; then
51936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
51937 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
51938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51939 /* end confdefs.h.  */
51940
51941 #include <sys/mman.h>
51942 #ifdef MAP_ANONYMOUS
51943     I cannot identify this map
51944 #endif
51945
51946 _ACEOF
51947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51948   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
51949   gl_have_mmap_anonymous=yes
51950 fi
51951 rm -f conftest*
51952
51953     if test $gl_have_mmap_anonymous != yes; then
51954       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51955 /* end confdefs.h.  */
51956
51957 #include <sys/mman.h>
51958 #ifdef MAP_ANON
51959     I cannot identify this map
51960 #endif
51961
51962 _ACEOF
51963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51964   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
51965
51966 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
51967
51968          gl_have_mmap_anonymous=yes
51969 fi
51970 rm -f conftest*
51971
51972     fi
51973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
51974 $as_echo "$gl_have_mmap_anonymous" >&6; }
51975     if test $gl_have_mmap_anonymous = yes; then
51976
51977 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
51978
51979     fi
51980   fi
51981
51982
51983
51984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51985 /* end confdefs.h.  */
51986 [
51987   #if defined _MSC_VER || defined __MINGW32__
51988     notposix
51989   #endif
51990     ]
51991 _ACEOF
51992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51993   $EGREP "notposix" >/dev/null 2>&1; then :
51994   posix_spawn_ported=no
51995 else
51996   posix_spawn_ported=yes
51997 fi
51998 rm -f conftest*
51999
52000    if test $posix_spawn_ported = yes; then
52001   POSIX_SPAWN_PORTED_TRUE=
52002   POSIX_SPAWN_PORTED_FALSE='#'
52003 else
52004   POSIX_SPAWN_PORTED_TRUE='#'
52005   POSIX_SPAWN_PORTED_FALSE=
52006 fi
52007
52008
52009
52010      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
52011 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
52012 if ${gl_cv_func_svid_putenv+:} false; then :
52013   $as_echo_n "(cached) " >&6
52014 else
52015   if test "$cross_compiling" = yes; then :
52016                case "$host_os" in
52017                         # Guess yes on glibc systems.
52018                 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
52019                         # If we don't know, assume the worst.
52020                 *)      gl_cv_func_svid_putenv="guessing no" ;;
52021               esac
52022
52023 else
52024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52025 /* end confdefs.h.  */
52026 $ac_includes_default
52027 int
52028 main ()
52029 {
52030
52031     /* Put it in env.  */
52032     if (putenv ("CONFTEST_putenv=val"))
52033       return 1;
52034
52035     /* Try to remove it.  */
52036     if (putenv ("CONFTEST_putenv"))
52037       return 2;
52038
52039     /* Make sure it was deleted.  */
52040     if (getenv ("CONFTEST_putenv") != 0)
52041       return 3;
52042
52043     return 0;
52044
52045   ;
52046   return 0;
52047 }
52048 _ACEOF
52049 if ac_fn_c_try_run "$LINENO"; then :
52050   gl_cv_func_svid_putenv=yes
52051 else
52052   gl_cv_func_svid_putenv=no
52053 fi
52054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52055   conftest.$ac_objext conftest.beam conftest.$ac_ext
52056 fi
52057
52058
52059 fi
52060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
52061 $as_echo "$gl_cv_func_svid_putenv" >&6; }
52062   case "$gl_cv_func_svid_putenv" in
52063     *yes) ;;
52064     *)
52065       REPLACE_PUTENV=1
52066       ;;
52067   esac
52068
52069   if test $REPLACE_PUTENV = 1; then
52070
52071
52072
52073
52074
52075
52076
52077
52078   gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext"
52079
52080
52081   ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
52082 if test "x$ac_cv_have_decl__putenv" = xyes; then :
52083   ac_have_decl=1
52084 else
52085   ac_have_decl=0
52086 fi
52087
52088 cat >>confdefs.h <<_ACEOF
52089 #define HAVE_DECL__PUTENV $ac_have_decl
52090 _ACEOF
52091
52092
52093   fi
52094
52095
52096
52097
52098
52099     if test "$GNULIB_PUTENV" != 1; then
52100         if test "$GNULIB_PUTENV" = 0; then
52101       GNULIB_PUTENV=$gl_module_indicator_condition
52102     else
52103       GNULIB_PUTENV="($GNULIB_PUTENV || $gl_module_indicator_condition)"
52104     fi
52105   fi
52106
52107
52108
52109
52110
52111 $as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
52112
52113
52114
52115
52116
52117
52118   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
52119   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
52120   # irrelevant for anonymous mappings.
52121   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
52122 if test "x$ac_cv_func_mmap" = xyes; then :
52123   gl_have_mmap=yes
52124 else
52125   gl_have_mmap=no
52126 fi
52127
52128
52129   # Try to allow MAP_ANONYMOUS.
52130   gl_have_mmap_anonymous=no
52131   if test $gl_have_mmap = yes; then
52132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
52133 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
52134     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52135 /* end confdefs.h.  */
52136
52137 #include <sys/mman.h>
52138 #ifdef MAP_ANONYMOUS
52139     I cannot identify this map
52140 #endif
52141
52142 _ACEOF
52143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52144   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
52145   gl_have_mmap_anonymous=yes
52146 fi
52147 rm -f conftest*
52148
52149     if test $gl_have_mmap_anonymous != yes; then
52150       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52151 /* end confdefs.h.  */
52152
52153 #include <sys/mman.h>
52154 #ifdef MAP_ANON
52155     I cannot identify this map
52156 #endif
52157
52158 _ACEOF
52159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52160   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
52161
52162 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
52163
52164          gl_have_mmap_anonymous=yes
52165 fi
52166 rm -f conftest*
52167
52168     fi
52169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
52170 $as_echo "$gl_have_mmap_anonymous" >&6; }
52171     if test $gl_have_mmap_anonymous = yes; then
52172
52173 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
52174
52175     fi
52176   fi
52177
52178
52179
52180
52181
52182
52183   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
52184   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
52185   # irrelevant for anonymous mappings.
52186   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
52187 if test "x$ac_cv_func_mmap" = xyes; then :
52188   gl_have_mmap=yes
52189 else
52190   gl_have_mmap=no
52191 fi
52192
52193
52194   # Try to allow MAP_ANONYMOUS.
52195   gl_have_mmap_anonymous=no
52196   if test $gl_have_mmap = yes; then
52197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
52198 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
52199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52200 /* end confdefs.h.  */
52201
52202 #include <sys/mman.h>
52203 #ifdef MAP_ANONYMOUS
52204     I cannot identify this map
52205 #endif
52206
52207 _ACEOF
52208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52209   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
52210   gl_have_mmap_anonymous=yes
52211 fi
52212 rm -f conftest*
52213
52214     if test $gl_have_mmap_anonymous != yes; then
52215       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52216 /* end confdefs.h.  */
52217
52218 #include <sys/mman.h>
52219 #ifdef MAP_ANON
52220     I cannot identify this map
52221 #endif
52222
52223 _ACEOF
52224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52225   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
52226
52227 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
52228
52229          gl_have_mmap_anonymous=yes
52230 fi
52231 rm -f conftest*
52232
52233     fi
52234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
52235 $as_echo "$gl_have_mmap_anonymous" >&6; }
52236     if test $gl_have_mmap_anonymous = yes; then
52237
52238 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
52239
52240     fi
52241   fi
52242
52243
52244
52245   :
52246
52247
52248
52249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
52250 $as_echo_n "checking for a traditional french locale... " >&6; }
52251 if ${gt_cv_locale_fr+:} false; then :
52252   $as_echo_n "(cached) " >&6
52253 else
52254
52255     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52256 /* end confdefs.h.  */
52257
52258 #include <locale.h>
52259 #include <time.h>
52260 #if HAVE_LANGINFO_CODESET
52261 # include <langinfo.h>
52262 #endif
52263 #include <stdlib.h>
52264 #include <string.h>
52265 struct tm t;
52266 char buf[16];
52267 int main () {
52268   /* Check whether the given locale name is recognized by the system.  */
52269 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
52270   /* On native Windows, setlocale(category, "") looks at the system settings,
52271      not at the environment variables.  Also, when an encoding suffix such
52272      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
52273      category of the locale to "C".  */
52274   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
52275       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
52276     return 1;
52277 #else
52278   if (setlocale (LC_ALL, "") == NULL) return 1;
52279 #endif
52280   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
52281      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
52282      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
52283      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
52284      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
52285      some unit tests fail.
52286      On MirBSD 10, when an unsupported locale is specified, setlocale()
52287      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
52288 #if HAVE_LANGINFO_CODESET
52289   {
52290     const char *cs = nl_langinfo (CODESET);
52291     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
52292         || strcmp (cs, "UTF-8") == 0)
52293       return 1;
52294   }
52295 #endif
52296 #ifdef __CYGWIN__
52297   /* On Cygwin, avoid locale names without encoding suffix, because the
52298      locale_charset() function relies on the encoding suffix.  Note that
52299      LC_ALL is set on the command line.  */
52300   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
52301 #endif
52302   /* Check whether in the abbreviation of the second month, the second
52303      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
52304      one byte long. This excludes the UTF-8 encoding.  */
52305   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
52306   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
52307 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
52308   /* Check whether the decimal separator is a comma.
52309      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
52310      are nl_langinfo(RADIXCHAR) are both ".".  */
52311   if (localeconv () ->decimal_point[0] != ',') return 1;
52312 #endif
52313   return 0;
52314 }
52315
52316 _ACEOF
52317     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
52318   (eval $ac_link) 2>&5
52319   ac_status=$?
52320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52321   test $ac_status = 0; } && test -s conftest$ac_exeext; then
52322       case "$host_os" in
52323         # Handle native Windows specially, because there setlocale() interprets
52324         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
52325         # "fr" or "fra" as "French" or "French_France.1252",
52326         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
52327         # "ja" as "Japanese" or "Japanese_Japan.932",
52328         # and similar.
52329         mingw*)
52330           # Test for the native Windows locale name.
52331           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52332             gt_cv_locale_fr=French_France.1252
52333           else
52334             # None found.
52335             gt_cv_locale_fr=none
52336           fi
52337           ;;
52338         *)
52339           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
52340           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
52341           # configure script would override the LC_ALL setting. Likewise for
52342           # LC_CTYPE, which is also set at the beginning of the configure script.
52343           # Test for the usual locale name.
52344           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52345             gt_cv_locale_fr=fr_FR
52346           else
52347             # Test for the locale name with explicit encoding suffix.
52348             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52349               gt_cv_locale_fr=fr_FR.ISO-8859-1
52350             else
52351               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
52352               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52353                 gt_cv_locale_fr=fr_FR.ISO8859-1
52354               else
52355                 # Test for the HP-UX locale name.
52356                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52357                   gt_cv_locale_fr=fr_FR.iso88591
52358                 else
52359                   # Test for the Solaris 7 locale name.
52360                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52361                     gt_cv_locale_fr=fr
52362                   else
52363                     # None found.
52364                     gt_cv_locale_fr=none
52365                   fi
52366                 fi
52367               fi
52368             fi
52369           fi
52370           ;;
52371       esac
52372     fi
52373     rm -fr conftest*
52374
52375 fi
52376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
52377 $as_echo "$gt_cv_locale_fr" >&6; }
52378   LOCALE_FR=$gt_cv_locale_fr
52379
52380
52381
52382
52383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
52384 $as_echo_n "checking for a french Unicode locale... " >&6; }
52385 if ${gt_cv_locale_fr_utf8+:} false; then :
52386   $as_echo_n "(cached) " >&6
52387 else
52388
52389     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52390 /* end confdefs.h.  */
52391
52392 #include <locale.h>
52393 #include <time.h>
52394 #if HAVE_LANGINFO_CODESET
52395 # include <langinfo.h>
52396 #endif
52397 #include <stdlib.h>
52398 #include <string.h>
52399 struct tm t;
52400 char buf[16];
52401 int main () {
52402   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
52403      imitates locale dependent behaviour by looking at the environment
52404      variables, and all locales use the UTF-8 encoding.  */
52405 #if !(defined __BEOS__ || defined __HAIKU__)
52406   /* Check whether the given locale name is recognized by the system.  */
52407 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
52408   /* On native Windows, setlocale(category, "") looks at the system settings,
52409      not at the environment variables.  Also, when an encoding suffix such
52410      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
52411      category of the locale to "C".  */
52412   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
52413       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
52414     return 1;
52415 # else
52416   if (setlocale (LC_ALL, "") == NULL) return 1;
52417 # endif
52418   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
52419      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
52420      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
52421      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
52422      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
52423      some unit tests fail.  */
52424 # if HAVE_LANGINFO_CODESET
52425   {
52426     const char *cs = nl_langinfo (CODESET);
52427     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
52428       return 1;
52429   }
52430 # endif
52431 # ifdef __CYGWIN__
52432   /* On Cygwin, avoid locale names without encoding suffix, because the
52433      locale_charset() function relies on the encoding suffix.  Note that
52434      LC_ALL is set on the command line.  */
52435   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
52436 # endif
52437   /* Check whether in the abbreviation of the second month, the second
52438      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
52439      two bytes long, with UTF-8 encoding.  */
52440   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
52441   if (strftime (buf, sizeof (buf), "%b", &t) < 4
52442       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
52443     return 1;
52444 #endif
52445 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
52446   /* Check whether the decimal separator is a comma.
52447      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
52448      are nl_langinfo(RADIXCHAR) are both ".".  */
52449   if (localeconv () ->decimal_point[0] != ',') return 1;
52450 #endif
52451   return 0;
52452 }
52453
52454 _ACEOF
52455     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
52456   (eval $ac_link) 2>&5
52457   ac_status=$?
52458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52459   test $ac_status = 0; } && test -s conftest$ac_exeext; then
52460       case "$host_os" in
52461         # Handle native Windows specially, because there setlocale() interprets
52462         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
52463         # "fr" or "fra" as "French" or "French_France.1252",
52464         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
52465         # "ja" as "Japanese" or "Japanese_Japan.932",
52466         # and similar.
52467         mingw*)
52468           # Test for the hypothetical native Windows locale name.
52469           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52470             gt_cv_locale_fr_utf8=French_France.65001
52471           else
52472             # None found.
52473             gt_cv_locale_fr_utf8=none
52474           fi
52475           ;;
52476         *)
52477           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
52478           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
52479           # configure script would override the LC_ALL setting. Likewise for
52480           # LC_CTYPE, which is also set at the beginning of the configure script.
52481           # Test for the usual locale name.
52482           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52483             gt_cv_locale_fr_utf8=fr_FR
52484           else
52485             # Test for the locale name with explicit encoding suffix.
52486             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52487               gt_cv_locale_fr_utf8=fr_FR.UTF-8
52488             else
52489               # Test for the Solaris 7 locale name.
52490               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52491                 gt_cv_locale_fr_utf8=fr.UTF-8
52492               else
52493                 # None found.
52494                 gt_cv_locale_fr_utf8=none
52495               fi
52496             fi
52497           fi
52498           ;;
52499       esac
52500     fi
52501     rm -fr conftest*
52502
52503 fi
52504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
52505 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
52506   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
52507
52508
52509
52510
52511
52512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
52513 $as_echo_n "checking for a traditional japanese locale... " >&6; }
52514 if ${gt_cv_locale_ja+:} false; then :
52515   $as_echo_n "(cached) " >&6
52516 else
52517
52518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52519 /* end confdefs.h.  */
52520
52521 #include <locale.h>
52522 #include <time.h>
52523 #if HAVE_LANGINFO_CODESET
52524 # include <langinfo.h>
52525 #endif
52526 #include <stdlib.h>
52527 #include <string.h>
52528 struct tm t;
52529 char buf[16];
52530 int main ()
52531 {
52532   const char *p;
52533   /* Check whether the given locale name is recognized by the system.  */
52534 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
52535   /* On native Windows, setlocale(category, "") looks at the system settings,
52536      not at the environment variables.  Also, when an encoding suffix such
52537      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
52538      category of the locale to "C".  */
52539   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
52540       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
52541     return 1;
52542 #else
52543   if (setlocale (LC_ALL, "") == NULL) return 1;
52544 #endif
52545   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
52546      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
52547      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
52548      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
52549      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
52550      some unit tests fail.
52551      On MirBSD 10, when an unsupported locale is specified, setlocale()
52552      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
52553 #if HAVE_LANGINFO_CODESET
52554   {
52555     const char *cs = nl_langinfo (CODESET);
52556     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
52557         || strcmp (cs, "UTF-8") == 0)
52558       return 1;
52559   }
52560 #endif
52561 #ifdef __CYGWIN__
52562   /* On Cygwin, avoid locale names without encoding suffix, because the
52563      locale_charset() function relies on the encoding suffix.  Note that
52564      LC_ALL is set on the command line.  */
52565   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
52566 #endif
52567   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
52568      on Cygwin 1.5.x.  */
52569   if (MB_CUR_MAX == 1)
52570     return 1;
52571   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
52572      This excludes the UTF-8 encoding (except on MirBSD).  */
52573   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
52574   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
52575   for (p = buf; *p != '\0'; p++)
52576     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
52577       return 1;
52578   return 0;
52579 }
52580
52581 _ACEOF
52582     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
52583   (eval $ac_link) 2>&5
52584   ac_status=$?
52585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52586   test $ac_status = 0; } && test -s conftest$ac_exeext; then
52587       case "$host_os" in
52588         # Handle native Windows specially, because there setlocale() interprets
52589         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
52590         # "fr" or "fra" as "French" or "French_France.1252",
52591         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
52592         # "ja" as "Japanese" or "Japanese_Japan.932",
52593         # and similar.
52594         mingw*)
52595           # Note that on native Windows, the Japanese locale is
52596           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
52597           # cannot use it here.
52598           gt_cv_locale_ja=none
52599           ;;
52600         *)
52601           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
52602           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
52603           # configure script would override the LC_ALL setting. Likewise for
52604           # LC_CTYPE, which is also set at the beginning of the configure script.
52605           # Test for the AIX locale name.
52606           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52607             gt_cv_locale_ja=ja_JP
52608           else
52609             # Test for the locale name with explicit encoding suffix.
52610             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52611               gt_cv_locale_ja=ja_JP.EUC-JP
52612             else
52613               # Test for the HP-UX, OSF/1, NetBSD locale name.
52614               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52615                 gt_cv_locale_ja=ja_JP.eucJP
52616               else
52617                 # Test for the IRIX, FreeBSD locale name.
52618                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52619                   gt_cv_locale_ja=ja_JP.EUC
52620                 else
52621                   # Test for the Solaris 7 locale name.
52622                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52623                     gt_cv_locale_ja=ja
52624                   else
52625                     # Special test for NetBSD 1.6.
52626                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
52627                       gt_cv_locale_ja=ja_JP.eucJP
52628                     else
52629                       # None found.
52630                       gt_cv_locale_ja=none
52631                     fi
52632                   fi
52633                 fi
52634               fi
52635             fi
52636           fi
52637           ;;
52638       esac
52639     fi
52640     rm -fr conftest*
52641
52642 fi
52643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
52644 $as_echo "$gt_cv_locale_ja" >&6; }
52645   LOCALE_JA=$gt_cv_locale_ja
52646
52647
52648
52649
52650
52651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
52652 $as_echo_n "checking for a transitional chinese locale... " >&6; }
52653 if ${gt_cv_locale_zh_CN+:} false; then :
52654   $as_echo_n "(cached) " >&6
52655 else
52656
52657     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52658 /* end confdefs.h.  */
52659
52660 #include <locale.h>
52661 #include <stdlib.h>
52662 #include <time.h>
52663 #if HAVE_LANGINFO_CODESET
52664 # include <langinfo.h>
52665 #endif
52666 #include <stdlib.h>
52667 #include <string.h>
52668 struct tm t;
52669 char buf[16];
52670 int main ()
52671 {
52672   const char *p;
52673   /* Check whether the given locale name is recognized by the system.  */
52674 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
52675   /* On native Windows, setlocale(category, "") looks at the system settings,
52676      not at the environment variables.  Also, when an encoding suffix such
52677      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
52678      category of the locale to "C".  */
52679   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
52680       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
52681     return 1;
52682 #else
52683   if (setlocale (LC_ALL, "") == NULL) return 1;
52684 #endif
52685   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
52686      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
52687      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
52688      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
52689      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
52690      some unit tests fail.
52691      On MirBSD 10, when an unsupported locale is specified, setlocale()
52692      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
52693 #if HAVE_LANGINFO_CODESET
52694   {
52695     const char *cs = nl_langinfo (CODESET);
52696     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
52697         || strcmp (cs, "UTF-8") == 0)
52698       return 1;
52699   }
52700 #endif
52701 #ifdef __CYGWIN__
52702   /* On Cygwin, avoid locale names without encoding suffix, because the
52703      locale_charset() function relies on the encoding suffix.  Note that
52704      LC_ALL is set on the command line.  */
52705   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
52706 #endif
52707   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
52708      This excludes the UTF-8 encoding (except on MirBSD).  */
52709   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
52710   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
52711   for (p = buf; *p != '\0'; p++)
52712     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
52713       return 1;
52714   /* Check whether a typical GB18030 multibyte sequence is recognized as a
52715      single wide character.  This excludes the GB2312 and GBK encodings.  */
52716   if (mblen ("\203\062\332\066", 5) != 4)
52717     return 1;
52718   return 0;
52719 }
52720
52721 _ACEOF
52722     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
52723   (eval $ac_link) 2>&5
52724   ac_status=$?
52725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52726   test $ac_status = 0; } && test -s conftest$ac_exeext; then
52727       case "$host_os" in
52728         # Handle native Windows specially, because there setlocale() interprets
52729         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
52730         # "fr" or "fra" as "French" or "French_France.1252",
52731         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
52732         # "ja" as "Japanese" or "Japanese_Japan.932",
52733         # and similar.
52734         mingw*)
52735           # Test for the hypothetical native Windows locale name.
52736           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52737             gt_cv_locale_zh_CN=Chinese_China.54936
52738           else
52739             # None found.
52740             gt_cv_locale_zh_CN=none
52741           fi
52742           ;;
52743         solaris2.8)
52744           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
52745           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
52746           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
52747           gt_cv_locale_zh_CN=none
52748           ;;
52749         *)
52750           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
52751           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
52752           # configure script would override the LC_ALL setting. Likewise for
52753           # LC_CTYPE, which is also set at the beginning of the configure script.
52754           # Test for the locale name without encoding suffix.
52755           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52756             gt_cv_locale_zh_CN=zh_CN
52757           else
52758             # Test for the locale name with explicit encoding suffix.
52759             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
52760               gt_cv_locale_zh_CN=zh_CN.GB18030
52761             else
52762               # None found.
52763               gt_cv_locale_zh_CN=none
52764             fi
52765           fi
52766           ;;
52767       esac
52768     else
52769       # If there was a link error, due to mblen(), the system is so old that
52770       # it certainly doesn't have a chinese locale.
52771       gt_cv_locale_zh_CN=none
52772     fi
52773     rm -fr conftest*
52774
52775 fi
52776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
52777 $as_echo "$gt_cv_locale_zh_CN" >&6; }
52778   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
52779
52780
52781
52782
52783                ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
52784 "
52785 if test "x$ac_cv_have_decl_sleep" = xyes; then :
52786   ac_have_decl=1
52787 else
52788   ac_have_decl=0
52789 fi
52790
52791 cat >>confdefs.h <<_ACEOF
52792 #define HAVE_DECL_SLEEP $ac_have_decl
52793 _ACEOF
52794
52795
52796   if test $ac_cv_have_decl_sleep != yes; then
52797     HAVE_SLEEP=0
52798   else
52799         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
52800 $as_echo_n "checking for working sleep... " >&6; }
52801 if ${gl_cv_func_sleep_works+:} false; then :
52802   $as_echo_n "(cached) " >&6
52803 else
52804   if test "$cross_compiling" = yes; then :
52805   case "$host_os" in
52806                  # Guess yes on glibc systems.
52807          *-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
52808                  # If we don't know, assume the worst.
52809          *)      gl_cv_func_sleep_works="guessing no" ;;
52810        esac
52811
52812 else
52813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52814 /* end confdefs.h.  */
52815
52816 #include <errno.h>
52817 #include <unistd.h>
52818 #include <signal.h>
52819 static void
52820 handle_alarm (int sig)
52821 {
52822   if (sig != SIGALRM)
52823     _exit (2);
52824 }
52825
52826 int
52827 main ()
52828 {
52829
52830     /* Failure to compile this test due to missing alarm is okay,
52831        since all such platforms (mingw) also lack sleep.  */
52832     unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
52833     unsigned int remaining;
52834     signal (SIGALRM, handle_alarm);
52835     alarm (1);
52836     remaining = sleep (pentecost);
52837     if (remaining > pentecost)
52838       return 3;
52839     if (remaining <= pentecost - 10)
52840       return 4;
52841     return 0;
52842
52843   ;
52844   return 0;
52845 }
52846 _ACEOF
52847 if ac_fn_c_try_run "$LINENO"; then :
52848   gl_cv_func_sleep_works=yes
52849 else
52850   gl_cv_func_sleep_works=no
52851 fi
52852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52853   conftest.$ac_objext conftest.beam conftest.$ac_ext
52854 fi
52855
52856 fi
52857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
52858 $as_echo "$gl_cv_func_sleep_works" >&6; }
52859     case "$gl_cv_func_sleep_works" in
52860       *yes) ;;
52861       *)
52862         REPLACE_SLEEP=1
52863         ;;
52864     esac
52865   fi
52866
52867   if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
52868
52869
52870
52871
52872
52873
52874
52875
52876   gltests_LIBOBJS="$gltests_LIBOBJS sleep.$ac_objext"
52877
52878   fi
52879
52880
52881
52882
52883
52884     if test "$GNULIB_SLEEP" != 1; then
52885         if test "$GNULIB_SLEEP" = 0; then
52886       GNULIB_SLEEP=$gl_module_indicator_condition
52887     else
52888       GNULIB_SLEEP="($GNULIB_SLEEP || $gl_module_indicator_condition)"
52889     fi
52890   fi
52891
52892
52893
52894
52895
52896 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
52897
52898
52899
52900
52901
52902
52903
52904
52905
52906   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
52907   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
52908   # irrelevant for anonymous mappings.
52909   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
52910 if test "x$ac_cv_func_mmap" = xyes; then :
52911   gl_have_mmap=yes
52912 else
52913   gl_have_mmap=no
52914 fi
52915
52916
52917   # Try to allow MAP_ANONYMOUS.
52918   gl_have_mmap_anonymous=no
52919   if test $gl_have_mmap = yes; then
52920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
52921 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
52922     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52923 /* end confdefs.h.  */
52924
52925 #include <sys/mman.h>
52926 #ifdef MAP_ANONYMOUS
52927     I cannot identify this map
52928 #endif
52929
52930 _ACEOF
52931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52932   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
52933   gl_have_mmap_anonymous=yes
52934 fi
52935 rm -f conftest*
52936
52937     if test $gl_have_mmap_anonymous != yes; then
52938       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52939 /* end confdefs.h.  */
52940
52941 #include <sys/mman.h>
52942 #ifdef MAP_ANON
52943     I cannot identify this map
52944 #endif
52945
52946 _ACEOF
52947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52948   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
52949
52950 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
52951
52952          gl_have_mmap_anonymous=yes
52953 fi
52954 rm -f conftest*
52955
52956     fi
52957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
52958 $as_echo "$gl_have_mmap_anonymous" >&6; }
52959     if test $gl_have_mmap_anonymous = yes; then
52960
52961 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
52962
52963     fi
52964   fi
52965
52966
52967
52968
52969
52970
52971
52972   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
52973   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
52974   # irrelevant for anonymous mappings.
52975   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
52976 if test "x$ac_cv_func_mmap" = xyes; then :
52977   gl_have_mmap=yes
52978 else
52979   gl_have_mmap=no
52980 fi
52981
52982
52983   # Try to allow MAP_ANONYMOUS.
52984   gl_have_mmap_anonymous=no
52985   if test $gl_have_mmap = yes; then
52986     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
52987 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
52988     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52989 /* end confdefs.h.  */
52990
52991 #include <sys/mman.h>
52992 #ifdef MAP_ANONYMOUS
52993     I cannot identify this map
52994 #endif
52995
52996 _ACEOF
52997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52998   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
52999   gl_have_mmap_anonymous=yes
53000 fi
53001 rm -f conftest*
53002
53003     if test $gl_have_mmap_anonymous != yes; then
53004       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53005 /* end confdefs.h.  */
53006
53007 #include <sys/mman.h>
53008 #ifdef MAP_ANON
53009     I cannot identify this map
53010 #endif
53011
53012 _ACEOF
53013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53014   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
53015
53016 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
53017
53018          gl_have_mmap_anonymous=yes
53019 fi
53020 rm -f conftest*
53021
53022     fi
53023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
53024 $as_echo "$gl_have_mmap_anonymous" >&6; }
53025     if test $gl_have_mmap_anonymous = yes; then
53026
53027 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
53028
53029     fi
53030   fi
53031
53032
53033
53034
53035
53036
53037         if test $ac_cv_func_symlink = no; then
53038     HAVE_SYMLINK=0
53039   else
53040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
53041 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
53042 if ${gl_cv_func_symlink_works+:} false; then :
53043   $as_echo_n "(cached) " >&6
53044 else
53045   if test "$cross_compiling" = yes; then :
53046   case "$host_os" in
53047                     # Guess yes on glibc systems.
53048             *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
53049                     # If we don't know, assume the worst.
53050             *)      gl_cv_func_symlink_works="guessing no" ;;
53051           esac
53052
53053 else
53054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53055 /* end confdefs.h.  */
53056 #include <unistd.h>
53057
53058 int
53059 main ()
53060 {
53061 int result = 0;
53062              if (!symlink ("a", "conftest.link/"))
53063                result |= 1;
53064              if (symlink ("conftest.f", "conftest.lnk2"))
53065                result |= 2;
53066              else if (!symlink ("a", "conftest.lnk2/"))
53067                result |= 4;
53068              return result;
53069
53070   ;
53071   return 0;
53072 }
53073 _ACEOF
53074 if ac_fn_c_try_run "$LINENO"; then :
53075   gl_cv_func_symlink_works=yes
53076 else
53077   gl_cv_func_symlink_works=no
53078 fi
53079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53080   conftest.$ac_objext conftest.beam conftest.$ac_ext
53081 fi
53082
53083       rm -f conftest.f conftest.link conftest.lnk2
53084 fi
53085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
53086 $as_echo "$gl_cv_func_symlink_works" >&6; }
53087     case "$gl_cv_func_symlink_works" in
53088       *yes) ;;
53089       *)
53090         REPLACE_SYMLINK=1
53091         ;;
53092     esac
53093   fi
53094
53095   if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
53096
53097
53098
53099
53100
53101
53102
53103
53104   gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
53105
53106   fi
53107
53108
53109
53110
53111
53112     if test "$GNULIB_SYMLINK" != 1; then
53113         if test "$GNULIB_SYMLINK" = 0; then
53114       GNULIB_SYMLINK=$gl_module_indicator_condition
53115     else
53116       GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)"
53117     fi
53118   fi
53119
53120
53121
53122
53123
53124 $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
53125
53126
53127
53128
53129
53130
53131   if test $gl_threads_api = posix; then
53132     gl_save_LIBS="$LIBS"
53133     LIBS="$LIBS $LIBMULTITHREAD"
53134     for ac_func in pthread_atfork
53135 do :
53136   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
53137 if test "x$ac_cv_func_pthread_atfork" = xyes; then :
53138   cat >>confdefs.h <<_ACEOF
53139 #define HAVE_PTHREAD_ATFORK 1
53140 _ACEOF
53141
53142 fi
53143 done
53144
53145     LIBS="$gl_save_LIBS"
53146   fi
53147
53148
53149
53150        if  { test "$HAVE_LIBUNISTRING" != yes \
53151     || {
53152
53153
53154
53155             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53156             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53157                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53158                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53159                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53160                          }
53161                     }
53162                }
53163
53164
53165
53166
53167        }
53168   }; then
53169   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE=
53170   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE='#'
53171 else
53172   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE='#'
53173   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE=
53174 fi
53175
53176
53177
53178
53179
53180   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
53181   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
53182   # irrelevant for anonymous mappings.
53183   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
53184 if test "x$ac_cv_func_mmap" = xyes; then :
53185   gl_have_mmap=yes
53186 else
53187   gl_have_mmap=no
53188 fi
53189
53190
53191   # Try to allow MAP_ANONYMOUS.
53192   gl_have_mmap_anonymous=no
53193   if test $gl_have_mmap = yes; then
53194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
53195 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
53196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53197 /* end confdefs.h.  */
53198
53199 #include <sys/mman.h>
53200 #ifdef MAP_ANONYMOUS
53201     I cannot identify this map
53202 #endif
53203
53204 _ACEOF
53205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53206   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
53207   gl_have_mmap_anonymous=yes
53208 fi
53209 rm -f conftest*
53210
53211     if test $gl_have_mmap_anonymous != yes; then
53212       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53213 /* end confdefs.h.  */
53214
53215 #include <sys/mman.h>
53216 #ifdef MAP_ANON
53217     I cannot identify this map
53218 #endif
53219
53220 _ACEOF
53221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53222   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
53223
53224 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
53225
53226          gl_have_mmap_anonymous=yes
53227 fi
53228 rm -f conftest*
53229
53230     fi
53231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
53232 $as_echo "$gl_have_mmap_anonymous" >&6; }
53233     if test $gl_have_mmap_anonymous = yes; then
53234
53235 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
53236
53237     fi
53238   fi
53239
53240
53241
53242
53243
53244        if  { test "$HAVE_LIBUNISTRING" != yes \
53245     || {
53246
53247
53248
53249             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53250             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53251                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53252                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53253                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53254                          }
53255                     }
53256                }
53257
53258
53259
53260
53261        }
53262   }; then
53263   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE=
53264   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE='#'
53265 else
53266   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE='#'
53267   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE=
53268 fi
53269
53270
53271
53272
53273
53274
53275
53276
53277
53278
53279
53280
53281   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
53282
53283
53284
53285      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
53286 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
53287 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
53288   $as_echo_n "(cached) " >&6
53289 else
53290
53291                   case "$host_os" in
53292                      # Guess no on AIX and OSF/1.
53293         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
53294                      # Guess yes otherwise.
53295         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
53296       esac
53297       if test $LOCALE_JA != none; then
53298         if test "$cross_compiling" = yes; then :
53299   :
53300 else
53301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53302 /* end confdefs.h.  */
53303
53304 #include <locale.h>
53305 #include <string.h>
53306 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
53307    <wchar.h>.
53308    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
53309    included before <wchar.h>.  */
53310 #include <stddef.h>
53311 #include <stdio.h>
53312 #include <time.h>
53313 #include <wchar.h>
53314 int main ()
53315 {
53316   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
53317     {
53318       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
53319       mbstate_t state;
53320       wchar_t wc;
53321
53322       memset (&state, '\0', sizeof (mbstate_t));
53323       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
53324         if (mbsinit (&state))
53325           return 1;
53326     }
53327   return 0;
53328 }
53329 _ACEOF
53330 if ac_fn_c_try_run "$LINENO"; then :
53331   gl_cv_func_mbrtowc_incomplete_state=yes
53332 else
53333   gl_cv_func_mbrtowc_incomplete_state=no
53334 fi
53335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53336   conftest.$ac_objext conftest.beam conftest.$ac_ext
53337 fi
53338
53339       fi
53340
53341 fi
53342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
53343 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
53344
53345
53346
53347
53348      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
53349 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
53350 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
53351   $as_echo_n "(cached) " >&6
53352 else
53353
53354                   case "$host_os" in
53355                     # Guess no on Solaris 8.
53356         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
53357                     # Guess yes otherwise.
53358         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
53359       esac
53360       if test $LOCALE_ZH_CN != none; then
53361         if test "$cross_compiling" = yes; then :
53362   :
53363 else
53364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53365 /* end confdefs.h.  */
53366
53367 #include <locale.h>
53368 #include <stdlib.h>
53369 #include <string.h>
53370 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
53371    <wchar.h>.
53372    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
53373    included before <wchar.h>.  */
53374 #include <stddef.h>
53375 #include <stdio.h>
53376 #include <time.h>
53377 #include <wchar.h>
53378 int main ()
53379 {
53380   /* This fails on Solaris 8:
53381      mbrtowc returns 2, and sets wc to 0x00F0.
53382      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
53383   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
53384     {
53385       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
53386       mbstate_t state;
53387       wchar_t wc;
53388
53389       memset (&state, '\0', sizeof (mbstate_t));
53390       if (mbrtowc (&wc, input + 3, 6, &state) != 4
53391           && mbtowc (&wc, input + 3, 6) == 4)
53392         return 1;
53393     }
53394   return 0;
53395 }
53396 _ACEOF
53397 if ac_fn_c_try_run "$LINENO"; then :
53398   gl_cv_func_mbrtowc_sanitycheck=yes
53399 else
53400   gl_cv_func_mbrtowc_sanitycheck=no
53401 fi
53402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53403   conftest.$ac_objext conftest.beam conftest.$ac_ext
53404 fi
53405
53406       fi
53407
53408 fi
53409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
53410 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
53411
53412     REPLACE_MBSTATE_T=0
53413     case "$gl_cv_func_mbrtowc_incomplete_state" in
53414       *yes) ;;
53415       *) REPLACE_MBSTATE_T=1 ;;
53416     esac
53417     case "$gl_cv_func_mbrtowc_sanitycheck" in
53418       *yes) ;;
53419       *) REPLACE_MBSTATE_T=1 ;;
53420     esac
53421   else
53422     REPLACE_MBSTATE_T=1
53423   fi
53424
53425
53426
53427   if test $ac_cv_func_wcrtomb = no; then
53428     HAVE_WCRTOMB=0
53429     ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
53430 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
53431    <wchar.h>.
53432    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
53433    included before <wchar.h>.  */
53434 #include <stddef.h>
53435 #include <stdio.h>
53436 #include <time.h>
53437 #include <wchar.h>
53438
53439 "
53440 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
53441   ac_have_decl=1
53442 else
53443   ac_have_decl=0
53444 fi
53445
53446 cat >>confdefs.h <<_ACEOF
53447 #define HAVE_DECL_WCRTOMB $ac_have_decl
53448 _ACEOF
53449
53450     if test $ac_cv_have_decl_wcrtomb = yes; then
53451                         REPLACE_WCRTOMB=1
53452     fi
53453   else
53454     if test $REPLACE_MBSTATE_T = 1; then
53455       REPLACE_WCRTOMB=1
53456     else
53457
53458
53459
53460
53461
53462              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
53463 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
53464 if ${gl_cv_func_wcrtomb_retval+:} false; then :
53465   $as_echo_n "(cached) " >&6
53466 else
53467
53468                               case "$host_os" in
53469                                      # Guess no on AIX 4, OSF/1 and Solaris.
53470             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
53471                                      # Guess yes otherwise.
53472             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
53473           esac
53474           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
53475             if test "$cross_compiling" = yes; then :
53476   :
53477 else
53478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53479 /* end confdefs.h.  */
53480
53481 #include <locale.h>
53482 #include <string.h>
53483 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
53484    <wchar.h>.
53485    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
53486    included before <wchar.h>.  */
53487 #include <stddef.h>
53488 #include <stdio.h>
53489 #include <time.h>
53490 #include <wchar.h>
53491 int main ()
53492 {
53493   int result = 0;
53494   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
53495     {
53496       if (wcrtomb (NULL, 0, NULL) != 1)
53497         result |= 1;
53498     }
53499   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
53500     {
53501       if (wcrtomb (NULL, 0, NULL) != 1)
53502         result |= 2;
53503     }
53504   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
53505     {
53506       if (wcrtomb (NULL, 0, NULL) != 1)
53507         result |= 4;
53508     }
53509   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
53510     {
53511       if (wcrtomb (NULL, 0, NULL) != 1)
53512         result |= 8;
53513     }
53514   return result;
53515 }
53516 _ACEOF
53517 if ac_fn_c_try_run "$LINENO"; then :
53518   gl_cv_func_wcrtomb_retval=yes
53519 else
53520   gl_cv_func_wcrtomb_retval=no
53521 fi
53522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53523   conftest.$ac_objext conftest.beam conftest.$ac_ext
53524 fi
53525
53526           fi
53527
53528 fi
53529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
53530 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
53531       case "$gl_cv_func_wcrtomb_retval" in
53532         *yes) ;;
53533         *) REPLACE_WCRTOMB=1 ;;
53534       esac
53535     fi
53536   fi
53537
53538   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
53539
53540
53541
53542
53543
53544
53545
53546
53547   gltests_LIBOBJS="$gltests_LIBOBJS wcrtomb.$ac_objext"
53548
53549
53550   :
53551
53552   fi
53553
53554
53555
53556
53557
53558     if test "$GNULIB_WCRTOMB" != 1; then
53559         if test "$GNULIB_WCRTOMB" = 0; then
53560       GNULIB_WCRTOMB=$gl_module_indicator_condition
53561     else
53562       GNULIB_WCRTOMB="($GNULIB_WCRTOMB || $gl_module_indicator_condition)"
53563     fi
53564   fi
53565
53566
53567
53568
53569
53570 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
53571
53572
53573
53574
53575
53576
53577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
53578 $as_echo_n "checking for a traditional french locale... " >&6; }
53579 if ${gt_cv_locale_fr+:} false; then :
53580   $as_echo_n "(cached) " >&6
53581 else
53582
53583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53584 /* end confdefs.h.  */
53585
53586 #include <locale.h>
53587 #include <time.h>
53588 #if HAVE_LANGINFO_CODESET
53589 # include <langinfo.h>
53590 #endif
53591 #include <stdlib.h>
53592 #include <string.h>
53593 struct tm t;
53594 char buf[16];
53595 int main () {
53596   /* Check whether the given locale name is recognized by the system.  */
53597 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
53598   /* On native Windows, setlocale(category, "") looks at the system settings,
53599      not at the environment variables.  Also, when an encoding suffix such
53600      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
53601      category of the locale to "C".  */
53602   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
53603       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
53604     return 1;
53605 #else
53606   if (setlocale (LC_ALL, "") == NULL) return 1;
53607 #endif
53608   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
53609      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
53610      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
53611      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
53612      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
53613      some unit tests fail.
53614      On MirBSD 10, when an unsupported locale is specified, setlocale()
53615      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
53616 #if HAVE_LANGINFO_CODESET
53617   {
53618     const char *cs = nl_langinfo (CODESET);
53619     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
53620         || strcmp (cs, "UTF-8") == 0)
53621       return 1;
53622   }
53623 #endif
53624 #ifdef __CYGWIN__
53625   /* On Cygwin, avoid locale names without encoding suffix, because the
53626      locale_charset() function relies on the encoding suffix.  Note that
53627      LC_ALL is set on the command line.  */
53628   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
53629 #endif
53630   /* Check whether in the abbreviation of the second month, the second
53631      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
53632      one byte long. This excludes the UTF-8 encoding.  */
53633   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
53634   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
53635 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
53636   /* Check whether the decimal separator is a comma.
53637      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
53638      are nl_langinfo(RADIXCHAR) are both ".".  */
53639   if (localeconv () ->decimal_point[0] != ',') return 1;
53640 #endif
53641   return 0;
53642 }
53643
53644 _ACEOF
53645     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
53646   (eval $ac_link) 2>&5
53647   ac_status=$?
53648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53649   test $ac_status = 0; } && test -s conftest$ac_exeext; then
53650       case "$host_os" in
53651         # Handle native Windows specially, because there setlocale() interprets
53652         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
53653         # "fr" or "fra" as "French" or "French_France.1252",
53654         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
53655         # "ja" as "Japanese" or "Japanese_Japan.932",
53656         # and similar.
53657         mingw*)
53658           # Test for the native Windows locale name.
53659           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53660             gt_cv_locale_fr=French_France.1252
53661           else
53662             # None found.
53663             gt_cv_locale_fr=none
53664           fi
53665           ;;
53666         *)
53667           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
53668           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
53669           # configure script would override the LC_ALL setting. Likewise for
53670           # LC_CTYPE, which is also set at the beginning of the configure script.
53671           # Test for the usual locale name.
53672           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53673             gt_cv_locale_fr=fr_FR
53674           else
53675             # Test for the locale name with explicit encoding suffix.
53676             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53677               gt_cv_locale_fr=fr_FR.ISO-8859-1
53678             else
53679               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
53680               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53681                 gt_cv_locale_fr=fr_FR.ISO8859-1
53682               else
53683                 # Test for the HP-UX locale name.
53684                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53685                   gt_cv_locale_fr=fr_FR.iso88591
53686                 else
53687                   # Test for the Solaris 7 locale name.
53688                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53689                     gt_cv_locale_fr=fr
53690                   else
53691                     # None found.
53692                     gt_cv_locale_fr=none
53693                   fi
53694                 fi
53695               fi
53696             fi
53697           fi
53698           ;;
53699       esac
53700     fi
53701     rm -fr conftest*
53702
53703 fi
53704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
53705 $as_echo "$gt_cv_locale_fr" >&6; }
53706   LOCALE_FR=$gt_cv_locale_fr
53707
53708
53709
53710
53711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
53712 $as_echo_n "checking for a french Unicode locale... " >&6; }
53713 if ${gt_cv_locale_fr_utf8+:} false; then :
53714   $as_echo_n "(cached) " >&6
53715 else
53716
53717     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53718 /* end confdefs.h.  */
53719
53720 #include <locale.h>
53721 #include <time.h>
53722 #if HAVE_LANGINFO_CODESET
53723 # include <langinfo.h>
53724 #endif
53725 #include <stdlib.h>
53726 #include <string.h>
53727 struct tm t;
53728 char buf[16];
53729 int main () {
53730   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
53731      imitates locale dependent behaviour by looking at the environment
53732      variables, and all locales use the UTF-8 encoding.  */
53733 #if !(defined __BEOS__ || defined __HAIKU__)
53734   /* Check whether the given locale name is recognized by the system.  */
53735 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
53736   /* On native Windows, setlocale(category, "") looks at the system settings,
53737      not at the environment variables.  Also, when an encoding suffix such
53738      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
53739      category of the locale to "C".  */
53740   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
53741       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
53742     return 1;
53743 # else
53744   if (setlocale (LC_ALL, "") == NULL) return 1;
53745 # endif
53746   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
53747      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
53748      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
53749      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
53750      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
53751      some unit tests fail.  */
53752 # if HAVE_LANGINFO_CODESET
53753   {
53754     const char *cs = nl_langinfo (CODESET);
53755     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
53756       return 1;
53757   }
53758 # endif
53759 # ifdef __CYGWIN__
53760   /* On Cygwin, avoid locale names without encoding suffix, because the
53761      locale_charset() function relies on the encoding suffix.  Note that
53762      LC_ALL is set on the command line.  */
53763   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
53764 # endif
53765   /* Check whether in the abbreviation of the second month, the second
53766      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
53767      two bytes long, with UTF-8 encoding.  */
53768   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
53769   if (strftime (buf, sizeof (buf), "%b", &t) < 4
53770       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
53771     return 1;
53772 #endif
53773 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
53774   /* Check whether the decimal separator is a comma.
53775      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
53776      are nl_langinfo(RADIXCHAR) are both ".".  */
53777   if (localeconv () ->decimal_point[0] != ',') return 1;
53778 #endif
53779   return 0;
53780 }
53781
53782 _ACEOF
53783     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
53784   (eval $ac_link) 2>&5
53785   ac_status=$?
53786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53787   test $ac_status = 0; } && test -s conftest$ac_exeext; then
53788       case "$host_os" in
53789         # Handle native Windows specially, because there setlocale() interprets
53790         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
53791         # "fr" or "fra" as "French" or "French_France.1252",
53792         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
53793         # "ja" as "Japanese" or "Japanese_Japan.932",
53794         # and similar.
53795         mingw*)
53796           # Test for the hypothetical native Windows locale name.
53797           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53798             gt_cv_locale_fr_utf8=French_France.65001
53799           else
53800             # None found.
53801             gt_cv_locale_fr_utf8=none
53802           fi
53803           ;;
53804         *)
53805           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
53806           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
53807           # configure script would override the LC_ALL setting. Likewise for
53808           # LC_CTYPE, which is also set at the beginning of the configure script.
53809           # Test for the usual locale name.
53810           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53811             gt_cv_locale_fr_utf8=fr_FR
53812           else
53813             # Test for the locale name with explicit encoding suffix.
53814             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53815               gt_cv_locale_fr_utf8=fr_FR.UTF-8
53816             else
53817               # Test for the Solaris 7 locale name.
53818               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53819                 gt_cv_locale_fr_utf8=fr.UTF-8
53820               else
53821                 # None found.
53822                 gt_cv_locale_fr_utf8=none
53823               fi
53824             fi
53825           fi
53826           ;;
53827       esac
53828     fi
53829     rm -fr conftest*
53830
53831 fi
53832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
53833 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
53834   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
53835
53836
53837
53838
53839
53840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
53841 $as_echo_n "checking for a traditional japanese locale... " >&6; }
53842 if ${gt_cv_locale_ja+:} false; then :
53843   $as_echo_n "(cached) " >&6
53844 else
53845
53846     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53847 /* end confdefs.h.  */
53848
53849 #include <locale.h>
53850 #include <time.h>
53851 #if HAVE_LANGINFO_CODESET
53852 # include <langinfo.h>
53853 #endif
53854 #include <stdlib.h>
53855 #include <string.h>
53856 struct tm t;
53857 char buf[16];
53858 int main ()
53859 {
53860   const char *p;
53861   /* Check whether the given locale name is recognized by the system.  */
53862 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
53863   /* On native Windows, setlocale(category, "") looks at the system settings,
53864      not at the environment variables.  Also, when an encoding suffix such
53865      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
53866      category of the locale to "C".  */
53867   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
53868       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
53869     return 1;
53870 #else
53871   if (setlocale (LC_ALL, "") == NULL) return 1;
53872 #endif
53873   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
53874      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
53875      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
53876      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
53877      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
53878      some unit tests fail.
53879      On MirBSD 10, when an unsupported locale is specified, setlocale()
53880      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
53881 #if HAVE_LANGINFO_CODESET
53882   {
53883     const char *cs = nl_langinfo (CODESET);
53884     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
53885         || strcmp (cs, "UTF-8") == 0)
53886       return 1;
53887   }
53888 #endif
53889 #ifdef __CYGWIN__
53890   /* On Cygwin, avoid locale names without encoding suffix, because the
53891      locale_charset() function relies on the encoding suffix.  Note that
53892      LC_ALL is set on the command line.  */
53893   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
53894 #endif
53895   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
53896      on Cygwin 1.5.x.  */
53897   if (MB_CUR_MAX == 1)
53898     return 1;
53899   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
53900      This excludes the UTF-8 encoding (except on MirBSD).  */
53901   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
53902   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
53903   for (p = buf; *p != '\0'; p++)
53904     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
53905       return 1;
53906   return 0;
53907 }
53908
53909 _ACEOF
53910     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
53911   (eval $ac_link) 2>&5
53912   ac_status=$?
53913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53914   test $ac_status = 0; } && test -s conftest$ac_exeext; then
53915       case "$host_os" in
53916         # Handle native Windows specially, because there setlocale() interprets
53917         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
53918         # "fr" or "fra" as "French" or "French_France.1252",
53919         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
53920         # "ja" as "Japanese" or "Japanese_Japan.932",
53921         # and similar.
53922         mingw*)
53923           # Note that on native Windows, the Japanese locale is
53924           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
53925           # cannot use it here.
53926           gt_cv_locale_ja=none
53927           ;;
53928         *)
53929           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
53930           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
53931           # configure script would override the LC_ALL setting. Likewise for
53932           # LC_CTYPE, which is also set at the beginning of the configure script.
53933           # Test for the AIX locale name.
53934           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53935             gt_cv_locale_ja=ja_JP
53936           else
53937             # Test for the locale name with explicit encoding suffix.
53938             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53939               gt_cv_locale_ja=ja_JP.EUC-JP
53940             else
53941               # Test for the HP-UX, OSF/1, NetBSD locale name.
53942               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53943                 gt_cv_locale_ja=ja_JP.eucJP
53944               else
53945                 # Test for the IRIX, FreeBSD locale name.
53946                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53947                   gt_cv_locale_ja=ja_JP.EUC
53948                 else
53949                   # Test for the Solaris 7 locale name.
53950                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
53951                     gt_cv_locale_ja=ja
53952                   else
53953                     # Special test for NetBSD 1.6.
53954                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
53955                       gt_cv_locale_ja=ja_JP.eucJP
53956                     else
53957                       # None found.
53958                       gt_cv_locale_ja=none
53959                     fi
53960                   fi
53961                 fi
53962               fi
53963             fi
53964           fi
53965           ;;
53966       esac
53967     fi
53968     rm -fr conftest*
53969
53970 fi
53971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
53972 $as_echo "$gt_cv_locale_ja" >&6; }
53973   LOCALE_JA=$gt_cv_locale_ja
53974
53975
53976
53977
53978
53979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
53980 $as_echo_n "checking for a transitional chinese locale... " >&6; }
53981 if ${gt_cv_locale_zh_CN+:} false; then :
53982   $as_echo_n "(cached) " >&6
53983 else
53984
53985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53986 /* end confdefs.h.  */
53987
53988 #include <locale.h>
53989 #include <stdlib.h>
53990 #include <time.h>
53991 #if HAVE_LANGINFO_CODESET
53992 # include <langinfo.h>
53993 #endif
53994 #include <stdlib.h>
53995 #include <string.h>
53996 struct tm t;
53997 char buf[16];
53998 int main ()
53999 {
54000   const char *p;
54001   /* Check whether the given locale name is recognized by the system.  */
54002 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
54003   /* On native Windows, setlocale(category, "") looks at the system settings,
54004      not at the environment variables.  Also, when an encoding suffix such
54005      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
54006      category of the locale to "C".  */
54007   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
54008       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
54009     return 1;
54010 #else
54011   if (setlocale (LC_ALL, "") == NULL) return 1;
54012 #endif
54013   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
54014      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
54015      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
54016      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
54017      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
54018      some unit tests fail.
54019      On MirBSD 10, when an unsupported locale is specified, setlocale()
54020      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
54021 #if HAVE_LANGINFO_CODESET
54022   {
54023     const char *cs = nl_langinfo (CODESET);
54024     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
54025         || strcmp (cs, "UTF-8") == 0)
54026       return 1;
54027   }
54028 #endif
54029 #ifdef __CYGWIN__
54030   /* On Cygwin, avoid locale names without encoding suffix, because the
54031      locale_charset() function relies on the encoding suffix.  Note that
54032      LC_ALL is set on the command line.  */
54033   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
54034 #endif
54035   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
54036      This excludes the UTF-8 encoding (except on MirBSD).  */
54037   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
54038   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
54039   for (p = buf; *p != '\0'; p++)
54040     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
54041       return 1;
54042   /* Check whether a typical GB18030 multibyte sequence is recognized as a
54043      single wide character.  This excludes the GB2312 and GBK encodings.  */
54044   if (mblen ("\203\062\332\066", 5) != 4)
54045     return 1;
54046   return 0;
54047 }
54048
54049 _ACEOF
54050     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
54051   (eval $ac_link) 2>&5
54052   ac_status=$?
54053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54054   test $ac_status = 0; } && test -s conftest$ac_exeext; then
54055       case "$host_os" in
54056         # Handle native Windows specially, because there setlocale() interprets
54057         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
54058         # "fr" or "fra" as "French" or "French_France.1252",
54059         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
54060         # "ja" as "Japanese" or "Japanese_Japan.932",
54061         # and similar.
54062         mingw*)
54063           # Test for the hypothetical native Windows locale name.
54064           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
54065             gt_cv_locale_zh_CN=Chinese_China.54936
54066           else
54067             # None found.
54068             gt_cv_locale_zh_CN=none
54069           fi
54070           ;;
54071         solaris2.8)
54072           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
54073           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
54074           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
54075           gt_cv_locale_zh_CN=none
54076           ;;
54077         *)
54078           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
54079           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
54080           # configure script would override the LC_ALL setting. Likewise for
54081           # LC_CTYPE, which is also set at the beginning of the configure script.
54082           # Test for the locale name without encoding suffix.
54083           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
54084             gt_cv_locale_zh_CN=zh_CN
54085           else
54086             # Test for the locale name with explicit encoding suffix.
54087             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
54088               gt_cv_locale_zh_CN=zh_CN.GB18030
54089             else
54090               # None found.
54091               gt_cv_locale_zh_CN=none
54092             fi
54093           fi
54094           ;;
54095       esac
54096     else
54097       # If there was a link error, due to mblen(), the system is so old that
54098       # it certainly doesn't have a chinese locale.
54099       gt_cv_locale_zh_CN=none
54100     fi
54101     rm -fr conftest*
54102
54103 fi
54104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
54105 $as_echo "$gt_cv_locale_zh_CN" >&6; }
54106   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
54107
54108
54109
54110
54111
54112
54113   if test $ac_cv_func_wctob = no; then
54114     HAVE_WCTOB=0
54115     HAVE_DECL_WCTOB=0
54116   else
54117     HAVE_WCTOB=1
54118
54119
54120
54121          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5
54122 $as_echo_n "checking whether wctob works... " >&6; }
54123 if ${gl_cv_func_wctob_works+:} false; then :
54124   $as_echo_n "(cached) " >&6
54125 else
54126
54127                         case "$host_os" in
54128             # Guess no on Solaris <= 9 and Cygwin.
54129           solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
54130             gl_cv_func_wctob_works="guessing no" ;;
54131             # Guess yes otherwise.
54132           *) gl_cv_func_wctob_works="guessing yes" ;;
54133         esac
54134         case "$host_os" in
54135           cygwin*)
54136             if test "$cross_compiling" = yes; then :
54137   :
54138 else
54139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54140 /* end confdefs.h.  */
54141
54142 #include <locale.h>
54143 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54144    <wchar.h>.
54145    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54146    included before <wchar.h>.  */
54147 #include <stddef.h>
54148 #include <stdio.h>
54149 #include <time.h>
54150 #include <wchar.h>
54151
54152 register long global __asm__ ("%ebx");
54153
54154 int main ()
54155 {
54156   setlocale (LC_ALL, "en_US.UTF-8");
54157
54158   global = 0x12345678;
54159   if (wctob (0x00FC) != -1)
54160     return 1;
54161   if (global != 0x12345678)
54162     return 2;
54163   return 0;
54164 }
54165 _ACEOF
54166 if ac_fn_c_try_run "$LINENO"; then :
54167   :
54168 else
54169   gl_cv_func_wctob_works=no
54170 fi
54171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54172   conftest.$ac_objext conftest.beam conftest.$ac_ext
54173 fi
54174
54175             ;;
54176         esac
54177         if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then
54178           if test "$cross_compiling" = yes; then :
54179   :
54180 else
54181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54182 /* end confdefs.h.  */
54183
54184 #include <locale.h>
54185 #include <string.h>
54186 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54187    <wchar.h>.
54188    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54189    included before <wchar.h>.  */
54190 #include <stddef.h>
54191 #include <stdio.h>
54192 #include <time.h>
54193 #include <wchar.h>
54194 int main ()
54195 {
54196   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
54197     {
54198       wchar_t wc;
54199
54200       if (mbtowc (&wc, "\374", 1) == 1)
54201         if (wctob (wc) != (unsigned char) '\374')
54202           return 1;
54203     }
54204   return 0;
54205 }
54206 _ACEOF
54207 if ac_fn_c_try_run "$LINENO"; then :
54208   gl_cv_func_wctob_works=yes
54209 else
54210   gl_cv_func_wctob_works=no
54211 fi
54212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54213   conftest.$ac_objext conftest.beam conftest.$ac_ext
54214 fi
54215
54216         fi
54217
54218 fi
54219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5
54220 $as_echo "$gl_cv_func_wctob_works" >&6; }
54221     case "$gl_cv_func_wctob_works" in
54222       *yes) ;;
54223       *) REPLACE_WCTOB=1 ;;
54224     esac
54225     if test $REPLACE_WCTOB = 0; then
54226
54227             ac_fn_c_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" "
54228 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54229    <wchar.h>.
54230    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
54231    before <wchar.h>.  */
54232 #include <stddef.h>
54233 #include <stdio.h>
54234 #include <time.h>
54235 #include <wchar.h>
54236
54237 "
54238 if test "x$ac_cv_have_decl_wctob" = xyes; then :
54239   ac_have_decl=1
54240 else
54241   ac_have_decl=0
54242 fi
54243
54244 cat >>confdefs.h <<_ACEOF
54245 #define HAVE_DECL_WCTOB $ac_have_decl
54246 _ACEOF
54247
54248       if test $ac_cv_have_decl_wctob != yes; then
54249         HAVE_DECL_WCTOB=0
54250       fi
54251     fi
54252   fi
54253
54254   if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
54255
54256
54257
54258
54259
54260
54261
54262
54263   gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
54264
54265
54266   :
54267
54268   fi
54269
54270
54271
54272
54273
54274     if test "$GNULIB_WCTOB" != 1; then
54275         if test "$GNULIB_WCTOB" = 0; then
54276       GNULIB_WCTOB=$gl_module_indicator_condition
54277     else
54278       GNULIB_WCTOB="($GNULIB_WCTOB || $gl_module_indicator_condition)"
54279     fi
54280   fi
54281
54282
54283
54284
54285
54286 $as_echo "#define GNULIB_TEST_WCTOB 1" >>confdefs.h
54287
54288
54289
54290
54291
54292
54293   if false; then
54294     REPLACE_WCTOMB=1
54295   fi
54296
54297   if test $REPLACE_WCTOMB = 1; then
54298
54299
54300
54301
54302
54303
54304
54305
54306   gltests_LIBOBJS="$gltests_LIBOBJS wctomb.$ac_objext"
54307
54308
54309   :
54310
54311   fi
54312
54313
54314
54315
54316
54317     if test "$GNULIB_WCTOMB" != 1; then
54318         if test "$GNULIB_WCTOMB" = 0; then
54319       GNULIB_WCTOMB=$gl_module_indicator_condition
54320     else
54321       GNULIB_WCTOMB="($GNULIB_WCTOMB || $gl_module_indicator_condition)"
54322     fi
54323   fi
54324
54325
54326
54327
54328
54329 $as_echo "#define GNULIB_TEST_WCTOMB 1" >>confdefs.h
54330
54331
54332
54333
54334
54335     YIELD_LIB=
54336   if test $gl_threads_api = posix; then
54337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
54338 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
54339 if ${ac_cv_lib_rt_sched_yield+:} false; then :
54340   $as_echo_n "(cached) " >&6
54341 else
54342   ac_check_lib_save_LIBS=$LIBS
54343 LIBS="-lrt  $LIBS"
54344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54345 /* end confdefs.h.  */
54346
54347 /* Override any GCC internal prototype to avoid an error.
54348    Use char because int might match the return type of a GCC
54349    builtin and then its argument prototype would still apply.  */
54350 #ifdef __cplusplus
54351 extern "C"
54352 #endif
54353 char sched_yield ();
54354 int
54355 main ()
54356 {
54357 return sched_yield ();
54358   ;
54359   return 0;
54360 }
54361 _ACEOF
54362 if ac_fn_c_try_link "$LINENO"; then :
54363   ac_cv_lib_rt_sched_yield=yes
54364 else
54365   ac_cv_lib_rt_sched_yield=no
54366 fi
54367 rm -f core conftest.err conftest.$ac_objext \
54368     conftest$ac_exeext conftest.$ac_ext
54369 LIBS=$ac_check_lib_save_LIBS
54370 fi
54371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
54372 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
54373 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
54374   YIELD_LIB=-lrt
54375 else
54376          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
54377 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
54378 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
54379   $as_echo_n "(cached) " >&6
54380 else
54381   ac_check_lib_save_LIBS=$LIBS
54382 LIBS="-lposix4  $LIBS"
54383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54384 /* end confdefs.h.  */
54385
54386 /* Override any GCC internal prototype to avoid an error.
54387    Use char because int might match the return type of a GCC
54388    builtin and then its argument prototype would still apply.  */
54389 #ifdef __cplusplus
54390 extern "C"
54391 #endif
54392 char sched_yield ();
54393 int
54394 main ()
54395 {
54396 return sched_yield ();
54397   ;
54398   return 0;
54399 }
54400 _ACEOF
54401 if ac_fn_c_try_link "$LINENO"; then :
54402   ac_cv_lib_posix4_sched_yield=yes
54403 else
54404   ac_cv_lib_posix4_sched_yield=no
54405 fi
54406 rm -f core conftest.err conftest.$ac_objext \
54407     conftest$ac_exeext conftest.$ac_ext
54408 LIBS=$ac_check_lib_save_LIBS
54409 fi
54410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
54411 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
54412 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
54413   YIELD_LIB=-lposix4
54414 fi
54415
54416 fi
54417
54418   fi
54419
54420
54421
54422
54423
54424
54425
54426
54427
54428
54429
54430
54431   LIBTESTS_LIBDEPS="$gltests_libdeps"
54432
54433
54434
54435   GNULIB_NL_LANGINFO=0;
54436     HAVE_NL_LANGINFO=1;
54437   REPLACE_NL_LANGINFO=0;
54438
54439
54440
54441
54442
54443
54444
54445
54446
54447
54448    if false; then
54449   GL_COND_LIBTOOL_TRUE=
54450   GL_COND_LIBTOOL_FALSE='#'
54451 else
54452   GL_COND_LIBTOOL_TRUE='#'
54453   GL_COND_LIBTOOL_FALSE=
54454 fi
54455
54456   gl_cond_libtool=false
54457   gl_libdeps=
54458   gl_ltlibdeps=
54459   gl_m4_base='libgrep/gnulib-m4'
54460
54461
54462
54463
54464
54465
54466
54467
54468
54469   gl_source_base='libgrep'
54470
54471
54472
54473
54474
54475
54476
54477   if test $ac_cv_func_btowc = no; then
54478     HAVE_BTOWC=0
54479   else
54480
54481
54482
54483
54484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
54485 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
54486 if ${gl_cv_func_btowc_nul+:} false; then :
54487   $as_echo_n "(cached) " >&6
54488 else
54489
54490         if test "$cross_compiling" = yes; then :
54491
54492            case "$host_os" in
54493                       # Guess no on Cygwin.
54494              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
54495                       # Guess yes otherwise.
54496              *)       gl_cv_func_btowc_nul="guessing yes" ;;
54497            esac
54498
54499 else
54500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54501 /* end confdefs.h.  */
54502
54503 #include <string.h>
54504 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54505    <wchar.h>.
54506    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54507    included before <wchar.h>.  */
54508 #include <stddef.h>
54509 #include <stdio.h>
54510 #include <time.h>
54511 #include <wchar.h>
54512 int main ()
54513 {
54514   if (btowc ('\0') != 0)
54515     return 1;
54516   return 0;
54517 }
54518 _ACEOF
54519 if ac_fn_c_try_run "$LINENO"; then :
54520   gl_cv_func_btowc_nul=yes
54521 else
54522   gl_cv_func_btowc_nul=no
54523 fi
54524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54525   conftest.$ac_objext conftest.beam conftest.$ac_ext
54526 fi
54527
54528
54529 fi
54530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
54531 $as_echo "$gl_cv_func_btowc_nul" >&6; }
54532
54533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
54534 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
54535 if ${gl_cv_func_btowc_eof+:} false; then :
54536   $as_echo_n "(cached) " >&6
54537 else
54538
54539                         case "$host_os" in
54540                  # Guess no on IRIX.
54541           irix*) gl_cv_func_btowc_eof="guessing no" ;;
54542                  # Guess yes otherwise.
54543           *)     gl_cv_func_btowc_eof="guessing yes" ;;
54544         esac
54545         if test $LOCALE_FR != none; then
54546           if test "$cross_compiling" = yes; then :
54547   :
54548 else
54549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54550 /* end confdefs.h.  */
54551
54552 #include <locale.h>
54553 #include <string.h>
54554 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54555    <wchar.h>.
54556    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54557    included before <wchar.h>.  */
54558 #include <stddef.h>
54559 #include <stdio.h>
54560 #include <time.h>
54561 #include <wchar.h>
54562 int main ()
54563 {
54564   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
54565     {
54566       if (btowc (EOF) != WEOF)
54567         return 1;
54568     }
54569   return 0;
54570 }
54571 _ACEOF
54572 if ac_fn_c_try_run "$LINENO"; then :
54573   gl_cv_func_btowc_eof=yes
54574 else
54575   gl_cv_func_btowc_eof=no
54576 fi
54577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54578   conftest.$ac_objext conftest.beam conftest.$ac_ext
54579 fi
54580
54581         fi
54582
54583 fi
54584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
54585 $as_echo "$gl_cv_func_btowc_eof" >&6; }
54586
54587     case "$gl_cv_func_btowc_nul" in
54588       *yes) ;;
54589       *) REPLACE_BTOWC=1 ;;
54590     esac
54591     case "$gl_cv_func_btowc_eof" in
54592       *yes) ;;
54593       *) REPLACE_BTOWC=1 ;;
54594     esac
54595   fi
54596
54597   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
54598
54599
54600
54601
54602
54603
54604
54605
54606   grgl_LIBOBJS="$grgl_LIBOBJS btowc.$ac_objext"
54607
54608
54609   :
54610
54611   fi
54612
54613
54614
54615
54616
54617     if test "$GNULIB_BTOWC" != 1; then
54618         if test "$GNULIB_BTOWC" = 0; then
54619       GNULIB_BTOWC=IN_GETTEXT_TOOLS_LIBGREP
54620     else
54621       GNULIB_BTOWC="($GNULIB_BTOWC || IN_GETTEXT_TOOLS_LIBGREP)"
54622     fi
54623   fi
54624
54625
54626
54627
54628
54629 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
54630
54631
54632
54633
54634
54635
54636
54637
54638
54639
54640
54641
54642
54643
54644
54645
54646
54647      if test $gl_cv_have_include_next = yes; then
54648        gl_cv_next_langinfo_h='<'langinfo.h'>'
54649      else
54650        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
54651 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
54652 if ${gl_cv_next_langinfo_h+:} false; then :
54653   $as_echo_n "(cached) " >&6
54654 else
54655
54656              if test $ac_cv_header_langinfo_h = yes; then
54657
54658
54659                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54660 /* end confdefs.h.  */
54661 #include <langinfo.h>
54662
54663 _ACEOF
54664                                                                                                                         case "$host_os" in
54665                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
54666                  *)    gl_absname_cpp="$ac_cpp" ;;
54667                esac
54668
54669                case "$host_os" in
54670                  mingw*)
54671                                                                                                                                      gl_dirsep_regex='[/\\]'
54672                    ;;
54673                  *)
54674                    gl_dirsep_regex='\/'
54675                    ;;
54676                esac
54677                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
54678
54679                gl_header_literal_regex=`echo 'langinfo.h' \
54680                                         | sed -e "$gl_make_literal_regex_sed"`
54681                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
54682                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
54683                    s|^/[^/]|//&|
54684                    p
54685                    q
54686                  }'
54687                                                             gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
54688                       sed -n "$gl_absolute_header_sed"`'"'
54689           else
54690                gl_cv_next_langinfo_h='<'langinfo.h'>'
54691              fi
54692
54693
54694 fi
54695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
54696 $as_echo "$gl_cv_next_langinfo_h" >&6; }
54697      fi
54698      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
54699
54700      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
54701        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
54702        gl_next_as_first_directive='<'langinfo.h'>'
54703      else
54704        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
54705        gl_next_as_first_directive=$gl_cv_next_langinfo_h
54706      fi
54707      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
54708
54709
54710
54711
54712
54713     HAVE_LANGINFO_CODESET=0
54714   HAVE_LANGINFO_T_FMT_AMPM=0
54715   HAVE_LANGINFO_ERA=0
54716   HAVE_LANGINFO_YESEXPR=0
54717
54718   if test $ac_cv_header_langinfo_h = yes; then
54719     HAVE_LANGINFO_H=1
54720             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
54721 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
54722 if ${gl_cv_header_langinfo_codeset+:} false; then :
54723   $as_echo_n "(cached) " >&6
54724 else
54725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54726 /* end confdefs.h.  */
54727 #include <langinfo.h>
54728 int a = CODESET;
54729
54730 int
54731 main ()
54732 {
54733
54734   ;
54735   return 0;
54736 }
54737 _ACEOF
54738 if ac_fn_c_try_compile "$LINENO"; then :
54739   gl_cv_header_langinfo_codeset=yes
54740 else
54741   gl_cv_header_langinfo_codeset=no
54742 fi
54743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54744
54745 fi
54746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
54747 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
54748     if test $gl_cv_header_langinfo_codeset = yes; then
54749       HAVE_LANGINFO_CODESET=1
54750     fi
54751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
54752 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
54753 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
54754   $as_echo_n "(cached) " >&6
54755 else
54756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54757 /* end confdefs.h.  */
54758 #include <langinfo.h>
54759 int a = T_FMT_AMPM;
54760
54761 int
54762 main ()
54763 {
54764
54765   ;
54766   return 0;
54767 }
54768 _ACEOF
54769 if ac_fn_c_try_compile "$LINENO"; then :
54770   gl_cv_header_langinfo_t_fmt_ampm=yes
54771 else
54772   gl_cv_header_langinfo_t_fmt_ampm=no
54773 fi
54774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54775
54776 fi
54777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
54778 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
54779     if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
54780       HAVE_LANGINFO_T_FMT_AMPM=1
54781     fi
54782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
54783 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
54784 if ${gl_cv_header_langinfo_era+:} false; then :
54785   $as_echo_n "(cached) " >&6
54786 else
54787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54788 /* end confdefs.h.  */
54789 #include <langinfo.h>
54790 int a = ERA;
54791
54792 int
54793 main ()
54794 {
54795
54796   ;
54797   return 0;
54798 }
54799 _ACEOF
54800 if ac_fn_c_try_compile "$LINENO"; then :
54801   gl_cv_header_langinfo_era=yes
54802 else
54803   gl_cv_header_langinfo_era=no
54804 fi
54805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54806
54807 fi
54808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
54809 $as_echo "$gl_cv_header_langinfo_era" >&6; }
54810     if test $gl_cv_header_langinfo_era = yes; then
54811       HAVE_LANGINFO_ERA=1
54812     fi
54813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
54814 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
54815 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
54816   $as_echo_n "(cached) " >&6
54817 else
54818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54819 /* end confdefs.h.  */
54820 #include <langinfo.h>
54821 int a = YESEXPR;
54822
54823 int
54824 main ()
54825 {
54826
54827   ;
54828   return 0;
54829 }
54830 _ACEOF
54831 if ac_fn_c_try_compile "$LINENO"; then :
54832   gl_cv_header_langinfo_yesexpr=yes
54833 else
54834   gl_cv_header_langinfo_yesexpr=no
54835 fi
54836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54837
54838 fi
54839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
54840 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
54841     if test $gl_cv_header_langinfo_yesexpr = yes; then
54842       HAVE_LANGINFO_YESEXPR=1
54843     fi
54844   else
54845     HAVE_LANGINFO_H=0
54846   fi
54847
54848
54849
54850
54851
54852
54853
54854     for gl_func in nl_langinfo; do
54855     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
54856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
54857 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
54858 if eval \${$as_gl_Symbol+:} false; then :
54859   $as_echo_n "(cached) " >&6
54860 else
54861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54862 /* end confdefs.h.  */
54863 #include <langinfo.h>
54864
54865 int
54866 main ()
54867 {
54868 #undef $gl_func
54869   (void) $gl_func;
54870   ;
54871   return 0;
54872 }
54873 _ACEOF
54874 if ac_fn_c_try_compile "$LINENO"; then :
54875   eval "$as_gl_Symbol=yes"
54876 else
54877   eval "$as_gl_Symbol=no"
54878 fi
54879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54880 fi
54881 eval ac_res=\$$as_gl_Symbol
54882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
54883 $as_echo "$ac_res" >&6; }
54884     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
54885   cat >>confdefs.h <<_ACEOF
54886 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
54887 _ACEOF
54888
54889                      eval ac_cv_have_decl_$gl_func=yes
54890 fi
54891       done
54892
54893
54894
54895
54896
54897
54898   if test $REPLACE_STRUCT_LCONV = 1; then
54899     REPLACE_LOCALECONV=1
54900   fi
54901
54902   if test $REPLACE_LOCALECONV = 1; then
54903
54904
54905
54906
54907
54908
54909
54910
54911   grgl_LIBOBJS="$grgl_LIBOBJS localeconv.$ac_objext"
54912
54913
54914   ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
54915 "
54916 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
54917
54918 cat >>confdefs.h <<_ACEOF
54919 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
54920 _ACEOF
54921
54922
54923 fi
54924
54925
54926   fi
54927
54928
54929
54930
54931
54932     if test "$GNULIB_LOCALECONV" != 1; then
54933         if test "$GNULIB_LOCALECONV" = 0; then
54934       GNULIB_LOCALECONV=IN_GETTEXT_TOOLS_LIBGREP
54935     else
54936       GNULIB_LOCALECONV="($GNULIB_LOCALECONV || IN_GETTEXT_TOOLS_LIBGREP)"
54937     fi
54938   fi
54939
54940
54941
54942
54943
54944 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
54945
54946
54947
54948
54949
54950
54951
54952
54953
54954   if test $ac_cv_func_mbrlen = no; then
54955     HAVE_MBRLEN=0
54956     ac_fn_c_check_decl "$LINENO" "mbrlen" "ac_cv_have_decl_mbrlen" "
54957 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54958    <wchar.h>.
54959    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54960    included before <wchar.h>.  */
54961 #include <stddef.h>
54962 #include <stdio.h>
54963 #include <time.h>
54964 #include <wchar.h>
54965
54966 "
54967 if test "x$ac_cv_have_decl_mbrlen" = xyes; then :
54968   ac_have_decl=1
54969 else
54970   ac_have_decl=0
54971 fi
54972
54973 cat >>confdefs.h <<_ACEOF
54974 #define HAVE_DECL_MBRLEN $ac_have_decl
54975 _ACEOF
54976
54977     if test $ac_cv_have_decl_mbrlen = yes; then
54978                         REPLACE_MBRLEN=1
54979     fi
54980   else
54981                     if test $REPLACE_MBRTOWC = 1; then
54982       REPLACE_MBRLEN=1
54983     fi
54984   fi
54985
54986   if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then
54987
54988
54989
54990
54991
54992
54993
54994
54995   grgl_LIBOBJS="$grgl_LIBOBJS mbrlen.$ac_objext"
54996
54997
54998   :
54999
55000   fi
55001
55002
55003
55004
55005
55006     if test "$GNULIB_MBRLEN" != 1; then
55007         if test "$GNULIB_MBRLEN" = 0; then
55008       GNULIB_MBRLEN=IN_GETTEXT_TOOLS_LIBGREP
55009     else
55010       GNULIB_MBRLEN="($GNULIB_MBRLEN || IN_GETTEXT_TOOLS_LIBGREP)"
55011     fi
55012   fi
55013
55014
55015
55016
55017
55018 $as_echo "#define GNULIB_TEST_MBRLEN 1" >>confdefs.h
55019
55020
55021
55022
55023
55024
55025   if false; then
55026     REPLACE_MBTOWC=1
55027   fi
55028
55029   if test $REPLACE_MBTOWC = 1; then
55030
55031
55032
55033
55034
55035
55036
55037
55038   grgl_LIBOBJS="$grgl_LIBOBJS mbtowc.$ac_objext"
55039
55040
55041   :
55042
55043   fi
55044
55045
55046
55047
55048
55049     if test "$GNULIB_MBTOWC" != 1; then
55050         if test "$GNULIB_MBTOWC" = 0; then
55051       GNULIB_MBTOWC=IN_GETTEXT_TOOLS_LIBGREP
55052     else
55053       GNULIB_MBTOWC="($GNULIB_MBTOWC || IN_GETTEXT_TOOLS_LIBGREP)"
55054     fi
55055   fi
55056
55057
55058
55059
55060
55061 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
55062
55063
55064
55065
55066
55067
55068
55069      if test $ac_cv_func_nl_langinfo = yes; then
55070     # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
55071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
55072 $as_echo_n "checking whether YESEXPR works... " >&6; }
55073 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
55074   $as_echo_n "(cached) " >&6
55075 else
55076   if test "$cross_compiling" = yes; then :
55077
55078          case "$host_os" in
55079                    # Guess no on irix systems.
55080            irix*)  gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
55081                    # Guess yes elsewhere.
55082            *)      gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
55083          esac
55084
55085 else
55086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55087 /* end confdefs.h.  */
55088 #include <langinfo.h>
55089
55090 int
55091 main ()
55092 {
55093 return !*nl_langinfo(YESEXPR);
55094
55095   ;
55096   return 0;
55097 }
55098 _ACEOF
55099 if ac_fn_c_try_run "$LINENO"; then :
55100   gl_cv_func_nl_langinfo_yesexpr_works=yes
55101 else
55102   gl_cv_func_nl_langinfo_yesexpr_works=no
55103 fi
55104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55105   conftest.$ac_objext conftest.beam conftest.$ac_ext
55106 fi
55107
55108
55109 fi
55110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
55111 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
55112     case $gl_cv_func_nl_langinfo_yesexpr_works in
55113       *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
55114       *)    FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
55115     esac
55116
55117 cat >>confdefs.h <<_ACEOF
55118 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
55119 _ACEOF
55120
55121     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
55122         && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
55123       :
55124     else
55125       REPLACE_NL_LANGINFO=1
55126
55127 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
55128
55129     fi
55130   else
55131     HAVE_NL_LANGINFO=0
55132   fi
55133
55134   if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
55135
55136
55137
55138
55139
55140
55141
55142
55143   grgl_LIBOBJS="$grgl_LIBOBJS nl_langinfo.$ac_objext"
55144
55145   fi
55146
55147
55148
55149
55150
55151     if test "$GNULIB_NL_LANGINFO" != 1; then
55152         if test "$GNULIB_NL_LANGINFO" = 0; then
55153       GNULIB_NL_LANGINFO=IN_GETTEXT_TOOLS_LIBGREP
55154     else
55155       GNULIB_NL_LANGINFO="($GNULIB_NL_LANGINFO || IN_GETTEXT_TOOLS_LIBGREP)"
55156     fi
55157   fi
55158
55159
55160
55161
55162
55163 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
55164
55165
55166
55167
55168
55169 # Check whether --with-included-regex was given.
55170 if test "${with_included_regex+set}" = set; then :
55171   withval=$with_included_regex;
55172 fi
55173
55174
55175   case $with_included_regex in #(
55176   yes|no) ac_use_included_regex=$with_included_regex
55177         ;;
55178   '')
55179     # If the system regex support is good enough that it passes the
55180     # following run test, then default to *not* using the included regex.c.
55181     # If cross compiling, assume the test would fail and use the included
55182     # regex.c.
55183
55184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
55185 $as_echo_n "checking for working re_compile_pattern... " >&6; }
55186 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
55187   $as_echo_n "(cached) " >&6
55188 else
55189   if test "$cross_compiling" = yes; then :
55190          gl_cv_func_re_compile_pattern_working=no
55191 else
55192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55193 /* end confdefs.h.  */
55194 #include <regex.h>
55195
55196             #include <locale.h>
55197             #include <limits.h>
55198             #include <string.h>
55199             #if HAVE_DECL_ALARM
55200             # include <unistd.h>
55201             # include <signal.h>
55202             #endif
55203
55204 int
55205 main ()
55206 {
55207 int result = 0;
55208             static struct re_pattern_buffer regex;
55209             unsigned char folded_chars[UCHAR_MAX + 1];
55210             int i;
55211             const char *s;
55212             struct re_registers regs;
55213
55214 #if HAVE_DECL_ALARM
55215             /* Some builds of glibc go into an infinite loop on this test.  */
55216             signal (SIGALRM, SIG_DFL);
55217             alarm (2);
55218 #endif
55219             if (setlocale (LC_ALL, "en_US.UTF-8"))
55220               {
55221                 {
55222                   /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
55223                      This test needs valgrind to catch the bug on Debian
55224                      GNU/Linux 3.1 x86, but it might catch the bug better
55225                      on other platforms and it shouldn't hurt to try the
55226                      test here.  */
55227                   static char const pat[] = "insert into";
55228                   static char const data[] =
55229                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
55230                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
55231                                  | RE_ICASE);
55232                   memset (&regex, 0, sizeof regex);
55233                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
55234                   if (s)
55235                     result |= 1;
55236                   else if (re_search (&regex, data, sizeof data - 1,
55237                                       0, sizeof data - 1, &regs)
55238                            != -1)
55239                     result |= 1;
55240                 }
55241
55242                 {
55243                   /* This test is from glibc bug 15078.
55244                      The test case is from Andreas Schwab in
55245                      <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
55246                      */
55247                   static char const pat[] = "[^x]x";
55248                   static char const data[] =
55249                     /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
55250                     "\xe1\x80\x80"
55251                     "\xe1\x80\xbb"
55252                     "\xe1\x80\xbd"
55253                     "\xe1\x80\x94"
55254                     "\xe1\x80\xba"
55255                     "\xe1\x80\xaf"
55256                     "\xe1\x80\x95"
55257                     "\xe1\x80\xba"
55258                     "x";
55259                   re_set_syntax (0);
55260                   memset (&regex, 0, sizeof regex);
55261                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
55262                   if (s)
55263                     result |= 1;
55264                   else
55265                     {
55266                       i = re_search (&regex, data, sizeof data - 1,
55267                                      0, sizeof data - 1, 0);
55268                       if (i != 0 && i != 21)
55269                         result |= 1;
55270                     }
55271                 }
55272
55273                 if (! setlocale (LC_ALL, "C"))
55274                   return 1;
55275               }
55276
55277             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
55278             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
55279             memset (&regex, 0, sizeof regex);
55280             s = re_compile_pattern ("a[^x]b", 6, &regex);
55281             if (s)
55282               result |= 2;
55283             /* This should fail, but succeeds for glibc-2.5.  */
55284             else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
55285               result |= 2;
55286
55287             /* This regular expression is from Spencer ere test number 75
55288                in grep-2.3.  */
55289             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
55290             memset (&regex, 0, sizeof regex);
55291             for (i = 0; i <= UCHAR_MAX; i++)
55292               folded_chars[i] = i;
55293             regex.translate = folded_chars;
55294             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
55295             /* This should fail with _Invalid character class name_ error.  */
55296             if (!s)
55297               result |= 4;
55298
55299             /* Ensure that [b-a] is diagnosed as invalid, when
55300                using RE_NO_EMPTY_RANGES. */
55301             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
55302             memset (&regex, 0, sizeof regex);
55303             s = re_compile_pattern ("a[b-a]", 6, &regex);
55304             if (s == 0)
55305               result |= 8;
55306
55307             /* This should succeed, but does not for glibc-2.1.3.  */
55308             memset (&regex, 0, sizeof regex);
55309             s = re_compile_pattern ("{1", 2, &regex);
55310             if (s)
55311               result |= 8;
55312
55313             /* The following example is derived from a problem report
55314                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
55315             memset (&regex, 0, sizeof regex);
55316             s = re_compile_pattern ("[an\371]*n", 7, &regex);
55317             if (s)
55318               result |= 8;
55319             /* This should match, but does not for glibc-2.2.1.  */
55320             else if (re_match (&regex, "an", 2, 0, &regs) != 2)
55321               result |= 8;
55322
55323             memset (&regex, 0, sizeof regex);
55324             s = re_compile_pattern ("x", 1, &regex);
55325             if (s)
55326               result |= 8;
55327             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
55328             else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
55329               result |= 8;
55330
55331             /* The version of regex.c in older versions of gnulib
55332                ignored RE_ICASE.  Detect that problem too.  */
55333             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
55334             memset (&regex, 0, sizeof regex);
55335             s = re_compile_pattern ("x", 1, &regex);
55336             if (s)
55337               result |= 16;
55338             else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
55339               result |= 16;
55340
55341             /* Catch a bug reported by Vin Shelton in
55342                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
55343                */
55344             re_set_syntax (RE_SYNTAX_POSIX_BASIC
55345                            & ~RE_CONTEXT_INVALID_DUP
55346                            & ~RE_NO_EMPTY_RANGES);
55347             memset (&regex, 0, sizeof regex);
55348             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
55349             if (s)
55350               result |= 32;
55351
55352             /* REG_STARTEND was added to glibc on 2004-01-15.
55353                Reject older versions.  */
55354             if (! REG_STARTEND)
55355               result |= 64;
55356
55357 #if 0
55358             /* It would be nice to reject hosts whose regoff_t values are too
55359                narrow (including glibc on hosts with 64-bit ptrdiff_t and
55360                32-bit int), but we should wait until glibc implements this
55361                feature.  Otherwise, support for equivalence classes and
55362                multibyte collation symbols would always be broken except
55363                when compiling --without-included-regex.   */
55364             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
55365                 || sizeof (regoff_t) < sizeof (ssize_t))
55366               result |= 64;
55367 #endif
55368
55369             return result;
55370
55371   ;
55372   return 0;
55373 }
55374 _ACEOF
55375 if ac_fn_c_try_run "$LINENO"; then :
55376   gl_cv_func_re_compile_pattern_working=yes
55377 else
55378   gl_cv_func_re_compile_pattern_working=no
55379 fi
55380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55381   conftest.$ac_objext conftest.beam conftest.$ac_ext
55382 fi
55383
55384 fi
55385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
55386 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
55387     case $gl_cv_func_re_compile_pattern_working in #(
55388     yes) ac_use_included_regex=no;; #(
55389     no) ac_use_included_regex=yes;;
55390     esac
55391     ;;
55392   *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
55393     ;;
55394   esac
55395
55396   if test $ac_use_included_regex = yes; then
55397
55398 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
55399
55400
55401 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
55402
55403
55404 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
55405
55406
55407 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
55408
55409
55410 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
55411
55412
55413 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
55414
55415
55416 $as_echo "#define re_search rpl_re_search" >>confdefs.h
55417
55418
55419 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
55420
55421
55422 $as_echo "#define re_match rpl_re_match" >>confdefs.h
55423
55424
55425 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
55426
55427
55428 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
55429
55430
55431 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
55432
55433
55434 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
55435
55436
55437 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
55438
55439
55440 $as_echo "#define regexec rpl_regexec" >>confdefs.h
55441
55442
55443 $as_echo "#define regerror rpl_regerror" >>confdefs.h
55444
55445
55446 $as_echo "#define regfree rpl_regfree" >>confdefs.h
55447
55448   fi
55449
55450   if test $ac_use_included_regex = yes; then
55451
55452
55453
55454
55455
55456
55457
55458
55459   grgl_LIBOBJS="$grgl_LIBOBJS regex.$ac_objext"
55460
55461
55462
55463
55464
55465
55466
55467   for ac_header in libintl.h
55468 do :
55469   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
55470 if test "x$ac_cv_header_libintl_h" = xyes; then :
55471   cat >>confdefs.h <<_ACEOF
55472 #define HAVE_LIBINTL_H 1
55473 _ACEOF
55474
55475 fi
55476
55477 done
55478
55479
55480   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
55481 "
55482 if test "x$ac_cv_have_decl_isblank" = xyes; then :
55483   ac_have_decl=1
55484 else
55485   ac_have_decl=0
55486 fi
55487
55488 cat >>confdefs.h <<_ACEOF
55489 #define HAVE_DECL_ISBLANK $ac_have_decl
55490 _ACEOF
55491
55492
55493   fi
55494
55495
55496
55497
55498
55499
55500
55501
55502
55503
55504   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
55505
55506
55507
55508      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
55509 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
55510 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
55511   $as_echo_n "(cached) " >&6
55512 else
55513
55514                   case "$host_os" in
55515                      # Guess no on AIX and OSF/1.
55516         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
55517                      # Guess yes otherwise.
55518         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
55519       esac
55520       if test $LOCALE_JA != none; then
55521         if test "$cross_compiling" = yes; then :
55522   :
55523 else
55524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55525 /* end confdefs.h.  */
55526
55527 #include <locale.h>
55528 #include <string.h>
55529 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
55530    <wchar.h>.
55531    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
55532    included before <wchar.h>.  */
55533 #include <stddef.h>
55534 #include <stdio.h>
55535 #include <time.h>
55536 #include <wchar.h>
55537 int main ()
55538 {
55539   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
55540     {
55541       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
55542       mbstate_t state;
55543       wchar_t wc;
55544
55545       memset (&state, '\0', sizeof (mbstate_t));
55546       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
55547         if (mbsinit (&state))
55548           return 1;
55549     }
55550   return 0;
55551 }
55552 _ACEOF
55553 if ac_fn_c_try_run "$LINENO"; then :
55554   gl_cv_func_mbrtowc_incomplete_state=yes
55555 else
55556   gl_cv_func_mbrtowc_incomplete_state=no
55557 fi
55558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55559   conftest.$ac_objext conftest.beam conftest.$ac_ext
55560 fi
55561
55562       fi
55563
55564 fi
55565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
55566 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
55567
55568
55569
55570
55571      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
55572 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
55573 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
55574   $as_echo_n "(cached) " >&6
55575 else
55576
55577                   case "$host_os" in
55578                     # Guess no on Solaris 8.
55579         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
55580                     # Guess yes otherwise.
55581         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
55582       esac
55583       if test $LOCALE_ZH_CN != none; then
55584         if test "$cross_compiling" = yes; then :
55585   :
55586 else
55587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55588 /* end confdefs.h.  */
55589
55590 #include <locale.h>
55591 #include <stdlib.h>
55592 #include <string.h>
55593 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
55594    <wchar.h>.
55595    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
55596    included before <wchar.h>.  */
55597 #include <stddef.h>
55598 #include <stdio.h>
55599 #include <time.h>
55600 #include <wchar.h>
55601 int main ()
55602 {
55603   /* This fails on Solaris 8:
55604      mbrtowc returns 2, and sets wc to 0x00F0.
55605      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
55606   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
55607     {
55608       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
55609       mbstate_t state;
55610       wchar_t wc;
55611
55612       memset (&state, '\0', sizeof (mbstate_t));
55613       if (mbrtowc (&wc, input + 3, 6, &state) != 4
55614           && mbtowc (&wc, input + 3, 6) == 4)
55615         return 1;
55616     }
55617   return 0;
55618 }
55619 _ACEOF
55620 if ac_fn_c_try_run "$LINENO"; then :
55621   gl_cv_func_mbrtowc_sanitycheck=yes
55622 else
55623   gl_cv_func_mbrtowc_sanitycheck=no
55624 fi
55625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55626   conftest.$ac_objext conftest.beam conftest.$ac_ext
55627 fi
55628
55629       fi
55630
55631 fi
55632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
55633 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
55634
55635     REPLACE_MBSTATE_T=0
55636     case "$gl_cv_func_mbrtowc_incomplete_state" in
55637       *yes) ;;
55638       *) REPLACE_MBSTATE_T=1 ;;
55639     esac
55640     case "$gl_cv_func_mbrtowc_sanitycheck" in
55641       *yes) ;;
55642       *) REPLACE_MBSTATE_T=1 ;;
55643     esac
55644   else
55645     REPLACE_MBSTATE_T=1
55646   fi
55647
55648
55649
55650   if test $ac_cv_func_wcrtomb = no; then
55651     HAVE_WCRTOMB=0
55652     ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
55653 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
55654    <wchar.h>.
55655    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
55656    included before <wchar.h>.  */
55657 #include <stddef.h>
55658 #include <stdio.h>
55659 #include <time.h>
55660 #include <wchar.h>
55661
55662 "
55663 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
55664   ac_have_decl=1
55665 else
55666   ac_have_decl=0
55667 fi
55668
55669 cat >>confdefs.h <<_ACEOF
55670 #define HAVE_DECL_WCRTOMB $ac_have_decl
55671 _ACEOF
55672
55673     if test $ac_cv_have_decl_wcrtomb = yes; then
55674                         REPLACE_WCRTOMB=1
55675     fi
55676   else
55677     if test $REPLACE_MBSTATE_T = 1; then
55678       REPLACE_WCRTOMB=1
55679     else
55680
55681
55682
55683
55684
55685              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
55686 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
55687 if ${gl_cv_func_wcrtomb_retval+:} false; then :
55688   $as_echo_n "(cached) " >&6
55689 else
55690
55691                               case "$host_os" in
55692                                      # Guess no on AIX 4, OSF/1 and Solaris.
55693             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
55694                                      # Guess yes otherwise.
55695             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
55696           esac
55697           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
55698             if test "$cross_compiling" = yes; then :
55699   :
55700 else
55701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55702 /* end confdefs.h.  */
55703
55704 #include <locale.h>
55705 #include <string.h>
55706 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
55707    <wchar.h>.
55708    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
55709    included before <wchar.h>.  */
55710 #include <stddef.h>
55711 #include <stdio.h>
55712 #include <time.h>
55713 #include <wchar.h>
55714 int main ()
55715 {
55716   int result = 0;
55717   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
55718     {
55719       if (wcrtomb (NULL, 0, NULL) != 1)
55720         result |= 1;
55721     }
55722   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
55723     {
55724       if (wcrtomb (NULL, 0, NULL) != 1)
55725         result |= 2;
55726     }
55727   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
55728     {
55729       if (wcrtomb (NULL, 0, NULL) != 1)
55730         result |= 4;
55731     }
55732   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
55733     {
55734       if (wcrtomb (NULL, 0, NULL) != 1)
55735         result |= 8;
55736     }
55737   return result;
55738 }
55739 _ACEOF
55740 if ac_fn_c_try_run "$LINENO"; then :
55741   gl_cv_func_wcrtomb_retval=yes
55742 else
55743   gl_cv_func_wcrtomb_retval=no
55744 fi
55745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55746   conftest.$ac_objext conftest.beam conftest.$ac_ext
55747 fi
55748
55749           fi
55750
55751 fi
55752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
55753 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
55754       case "$gl_cv_func_wcrtomb_retval" in
55755         *yes) ;;
55756         *) REPLACE_WCRTOMB=1 ;;
55757       esac
55758     fi
55759   fi
55760
55761   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
55762
55763
55764
55765
55766
55767
55768
55769
55770   grgl_LIBOBJS="$grgl_LIBOBJS wcrtomb.$ac_objext"
55771
55772
55773   :
55774
55775   fi
55776
55777
55778
55779
55780
55781     if test "$GNULIB_WCRTOMB" != 1; then
55782         if test "$GNULIB_WCRTOMB" = 0; then
55783       GNULIB_WCRTOMB=IN_GETTEXT_TOOLS_LIBGREP
55784     else
55785       GNULIB_WCRTOMB="($GNULIB_WCRTOMB || IN_GETTEXT_TOOLS_LIBGREP)"
55786     fi
55787   fi
55788
55789
55790
55791
55792
55793 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
55794
55795
55796
55797
55798   # End of code from modules
55799
55800
55801
55802
55803
55804
55805
55806
55807
55808   gltests_libdeps=
55809   gltests_ltlibdeps=
55810
55811
55812
55813
55814
55815
55816
55817
55818
55819   gl_source_base='tests'
55820   grgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
55821
55822   gl_module_indicator_condition=$grgltests_WITNESS
55823
55824
55825
55826
55827
55828
55829
55830
55831
55832   LIBGREP_LIBDEPS="$gl_libdeps"
55833
55834   LIBGREP_LTLIBDEPS="$gl_ltlibdeps"
55835
55836
55837
55838    if true; then
55839   GL_COND_LIBTOOL_TRUE=
55840   GL_COND_LIBTOOL_FALSE='#'
55841 else
55842   GL_COND_LIBTOOL_TRUE='#'
55843   GL_COND_LIBTOOL_FALSE=
55844 fi
55845
55846   gl_cond_libtool=true
55847   gl_m4_base='libgettextpo/gnulib-m4'
55848
55849
55850
55851
55852
55853
55854
55855
55856
55857   gl_source_base='libgettextpo'
55858
55859
55860
55861
55862
55863   if test $ac_cv_func_alloca_works = no; then
55864
55865
55866   :
55867
55868   fi
55869
55870   # Define an additional variable used in the Makefile substitution.
55871
55872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55873 /* end confdefs.h.  */
55874
55875 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
55876   Need own alloca
55877 #endif
55878
55879 _ACEOF
55880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55881   $EGREP "Need own alloca" >/dev/null 2>&1; then :
55882   ALLOCA_H=alloca.h
55883 else
55884   ALLOCA_H=
55885 fi
55886 rm -f conftest*
55887
55888
55889    if test -n "$ALLOCA_H"; then
55890   GL_GENERATE_ALLOCA_H_TRUE=
55891   GL_GENERATE_ALLOCA_H_FALSE='#'
55892 else
55893   GL_GENERATE_ALLOCA_H_TRUE='#'
55894   GL_GENERATE_ALLOCA_H_FALSE=
55895 fi
55896
55897
55898
55899
55900
55901   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
55902     REPLACE_CLOSE=1
55903   fi
55904
55905
55906
55907
55908
55909   if test $ac_cv_header_sys_socket_h != yes; then
55910                     for ac_header in winsock2.h
55911 do :
55912   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
55913 if test "x$ac_cv_header_winsock2_h" = xyes; then :
55914   cat >>confdefs.h <<_ACEOF
55915 #define HAVE_WINSOCK2_H 1
55916 _ACEOF
55917
55918 fi
55919
55920 done
55921
55922   fi
55923   if test "$ac_cv_header_winsock2_h" = yes; then
55924     HAVE_WINSOCK2_H=1
55925     UNISTD_H_HAVE_WINSOCK2_H=1
55926     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
55927   else
55928     HAVE_WINSOCK2_H=0
55929   fi
55930
55931
55932     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
55933                         REPLACE_CLOSE=1
55934     fi
55935
55936
55937
55938   if test $REPLACE_CLOSE = 1; then
55939
55940
55941
55942
55943
55944
55945
55946
55947   gtpo_LIBOBJS="$gtpo_LIBOBJS close.$ac_objext"
55948
55949   fi
55950
55951
55952
55953
55954
55955           GNULIB_CLOSE=1
55956
55957
55958
55959
55960
55961 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
55962
55963
55964
55965
55966           if test "x$datarootdir" = x; then
55967     datarootdir='${datadir}'
55968
55969   fi
55970     if test "x$docdir" = x; then
55971     docdir='${datarootdir}/doc/${PACKAGE}'
55972
55973   fi
55974     if test "x$htmldir" = x; then
55975     htmldir='${docdir}'
55976
55977   fi
55978   if test "x$dvidir" = x; then
55979     dvidir='${docdir}'
55980
55981   fi
55982   if test "x$pdfdir" = x; then
55983     pdfdir='${docdir}'
55984
55985   fi
55986   if test "x$psdir" = x; then
55987     psdir='${docdir}'
55988
55989   fi
55990   if test "x$lispdir" = x; then
55991     lispdir='${datarootdir}/emacs/site-lisp'
55992
55993   fi
55994   if test "x$localedir" = x; then
55995     localedir='${datarootdir}/locale'
55996
55997   fi
55998
55999       pkglibexecdir='${libexecdir}/${PACKAGE}'
56000
56001
56002
56003
56004       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
56005 $as_echo_n "checking for error_at_line... " >&6; }
56006 if ${ac_cv_lib_error_at_line+:} false; then :
56007   $as_echo_n "(cached) " >&6
56008 else
56009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56010 /* end confdefs.h.  */
56011 #include <error.h>
56012 int
56013 main ()
56014 {
56015 error_at_line (0, 0, "", 0, "an error occurred");
56016   ;
56017   return 0;
56018 }
56019 _ACEOF
56020 if ac_fn_c_try_link "$LINENO"; then :
56021   ac_cv_lib_error_at_line=yes
56022 else
56023   ac_cv_lib_error_at_line=no
56024 fi
56025 rm -f core conftest.err conftest.$ac_objext \
56026     conftest$ac_exeext conftest.$ac_ext
56027 fi
56028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
56029 $as_echo "$ac_cv_lib_error_at_line" >&6; }
56030
56031   if test $ac_cv_lib_error_at_line = no; then
56032
56033
56034
56035
56036
56037
56038
56039
56040   gtpo_LIBOBJS="$gtpo_LIBOBJS error.$ac_objext"
56041
56042
56043
56044   :
56045
56046   fi
56047
56048
56049   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
56050
56051
56052
56053   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
56054
56055
56056
56057
56058
56059
56060
56061
56062
56063
56064
56065
56066
56067      if test $gl_cv_have_include_next = yes; then
56068        gl_cv_next_fcntl_h='<'fcntl.h'>'
56069      else
56070        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
56071 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
56072 if ${gl_cv_next_fcntl_h+:} false; then :
56073   $as_echo_n "(cached) " >&6
56074 else
56075
56076                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56077 /* end confdefs.h.  */
56078 #include <fcntl.h>
56079
56080 _ACEOF
56081                                                                                                                         case "$host_os" in
56082                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
56083                  *)    gl_absname_cpp="$ac_cpp" ;;
56084                esac
56085
56086                case "$host_os" in
56087                  mingw*)
56088                                                                                                                                      gl_dirsep_regex='[/\\]'
56089                    ;;
56090                  *)
56091                    gl_dirsep_regex='\/'
56092                    ;;
56093                esac
56094                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
56095
56096                gl_header_literal_regex=`echo 'fcntl.h' \
56097                                         | sed -e "$gl_make_literal_regex_sed"`
56098                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
56099                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
56100                    s|^/[^/]|//&|
56101                    p
56102                    q
56103                  }'
56104                                                             gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
56105                       sed -n "$gl_absolute_header_sed"`'"'
56106
56107
56108 fi
56109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
56110 $as_echo "$gl_cv_next_fcntl_h" >&6; }
56111      fi
56112      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
56113
56114      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
56115        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
56116        gl_next_as_first_directive='<'fcntl.h'>'
56117      else
56118        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
56119        gl_next_as_first_directive=$gl_cv_next_fcntl_h
56120      fi
56121      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
56122
56123
56124
56125
56126
56127
56128
56129
56130
56131
56132     for gl_func in fcntl openat; do
56133     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
56134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
56135 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
56136 if eval \${$as_gl_Symbol+:} false; then :
56137   $as_echo_n "(cached) " >&6
56138 else
56139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56140 /* end confdefs.h.  */
56141 #include <fcntl.h>
56142
56143 int
56144 main ()
56145 {
56146 #undef $gl_func
56147   (void) $gl_func;
56148   ;
56149   return 0;
56150 }
56151 _ACEOF
56152 if ac_fn_c_try_compile "$LINENO"; then :
56153   eval "$as_gl_Symbol=yes"
56154 else
56155   eval "$as_gl_Symbol=no"
56156 fi
56157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56158 fi
56159 eval ac_res=\$$as_gl_Symbol
56160                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
56161 $as_echo "$ac_res" >&6; }
56162     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
56163   cat >>confdefs.h <<_ACEOF
56164 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
56165 _ACEOF
56166
56167                      eval ac_cv_have_decl_$gl_func=yes
56168 fi
56169       done
56170
56171
56172
56173
56174
56175   FLOAT_H=
56176   REPLACE_FLOAT_LDBL=0
56177   case "$host_os" in
56178     aix* | beos* | openbsd* | mirbsd* | irix*)
56179       FLOAT_H=float.h
56180       ;;
56181     freebsd*)
56182       case "$host_cpu" in
56183         i[34567]86 )
56184           FLOAT_H=float.h
56185           ;;
56186         x86_64 )
56187           # On x86_64 systems, the C compiler may still be generating
56188           # 32-bit code.
56189           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56190 /* end confdefs.h.  */
56191 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
56192              yes
56193              #endif
56194 _ACEOF
56195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56196   $EGREP "yes" >/dev/null 2>&1; then :
56197
56198 else
56199   FLOAT_H=float.h
56200 fi
56201 rm -f conftest*
56202
56203           ;;
56204       esac
56205       ;;
56206     linux*)
56207       case "$host_cpu" in
56208         powerpc*)
56209           FLOAT_H=float.h
56210           ;;
56211       esac
56212       ;;
56213   esac
56214   case "$host_os" in
56215     aix* | freebsd* | linux*)
56216       if test -n "$FLOAT_H"; then
56217         REPLACE_FLOAT_LDBL=1
56218       fi
56219       ;;
56220   esac
56221
56222     REPLACE_ITOLD=0
56223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
56224 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
56225 if ${gl_cv_func_itold_works+:} false; then :
56226   $as_echo_n "(cached) " >&6
56227 else
56228
56229       if test "$cross_compiling" = yes; then :
56230   case "$host" in
56231            sparc*-*-linux*)
56232              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56233 /* end confdefs.h.  */
56234 #if defined __LP64__ || defined __arch64__
56235                 yes
56236                 #endif
56237 _ACEOF
56238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56239   $EGREP "yes" >/dev/null 2>&1; then :
56240   gl_cv_func_itold_works="guessing no"
56241 else
56242   gl_cv_func_itold_works="guessing yes"
56243 fi
56244 rm -f conftest*
56245
56246              ;;
56247            *) gl_cv_func_itold_works="guessing yes" ;;
56248          esac
56249
56250 else
56251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56252 /* end confdefs.h.  */
56253
56254 int i = -1;
56255 volatile long double ld;
56256 int main ()
56257 {
56258   ld += i * 1.0L;
56259   if (ld > 0)
56260     return 1;
56261   return 0;
56262 }
56263 _ACEOF
56264 if ac_fn_c_try_run "$LINENO"; then :
56265   gl_cv_func_itold_works=yes
56266 else
56267   gl_cv_func_itold_works=no
56268 fi
56269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56270   conftest.$ac_objext conftest.beam conftest.$ac_ext
56271 fi
56272
56273
56274 fi
56275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
56276 $as_echo "$gl_cv_func_itold_works" >&6; }
56277   case "$gl_cv_func_itold_works" in
56278     *no)
56279       REPLACE_ITOLD=1
56280                   FLOAT_H=float.h
56281       ;;
56282   esac
56283
56284   if test -n "$FLOAT_H"; then
56285
56286
56287
56288
56289
56290
56291
56292
56293      if test $gl_cv_have_include_next = yes; then
56294        gl_cv_next_float_h='<'float.h'>'
56295      else
56296        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
56297 $as_echo_n "checking absolute name of <float.h>... " >&6; }
56298 if ${gl_cv_next_float_h+:} false; then :
56299   $as_echo_n "(cached) " >&6
56300 else
56301
56302                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56303 /* end confdefs.h.  */
56304 #include <float.h>
56305
56306 _ACEOF
56307                                                                                                                         case "$host_os" in
56308                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
56309                  *)    gl_absname_cpp="$ac_cpp" ;;
56310                esac
56311
56312                case "$host_os" in
56313                  mingw*)
56314                                                                                                                                      gl_dirsep_regex='[/\\]'
56315                    ;;
56316                  *)
56317                    gl_dirsep_regex='\/'
56318                    ;;
56319                esac
56320                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
56321
56322                gl_header_literal_regex=`echo 'float.h' \
56323                                         | sed -e "$gl_make_literal_regex_sed"`
56324                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
56325                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
56326                    s|^/[^/]|//&|
56327                    p
56328                    q
56329                  }'
56330                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
56331                       sed -n "$gl_absolute_header_sed"`'"'
56332
56333
56334 fi
56335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
56336 $as_echo "$gl_cv_next_float_h" >&6; }
56337      fi
56338      NEXT_FLOAT_H=$gl_cv_next_float_h
56339
56340      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
56341        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
56342        gl_next_as_first_directive='<'float.h'>'
56343      else
56344        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
56345        gl_next_as_first_directive=$gl_cv_next_float_h
56346      fi
56347      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
56348
56349
56350
56351
56352   fi
56353
56354    if test -n "$FLOAT_H"; then
56355   GL_GENERATE_FLOAT_H_TRUE=
56356   GL_GENERATE_FLOAT_H_FALSE='#'
56357 else
56358   GL_GENERATE_FLOAT_H_TRUE='#'
56359   GL_GENERATE_FLOAT_H_FALSE=
56360 fi
56361
56362
56363
56364   if test $REPLACE_FLOAT_LDBL = 1; then
56365
56366
56367
56368
56369
56370
56371
56372
56373   gtpo_LIBOBJS="$gtpo_LIBOBJS float.$ac_objext"
56374
56375   fi
56376   if test $REPLACE_ITOLD = 1; then
56377
56378
56379
56380
56381
56382
56383
56384
56385   gtpo_LIBOBJS="$gtpo_LIBOBJS itold.$ac_objext"
56386
56387   fi
56388
56389
56390
56391   case "$host_os" in
56392     mingw* | pw*)
56393             REPLACE_FOPEN=1
56394             gl_cv_func_fopen_slash="guessing no"
56395       ;;
56396     *)
56397                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
56398 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
56399 if ${gl_cv_func_fopen_slash+:} false; then :
56400   $as_echo_n "(cached) " >&6
56401 else
56402
56403           if test "$cross_compiling" = yes; then :
56404
56405              case "$host_os" in
56406                aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
56407                  gl_cv_func_fopen_slash="guessing no" ;;
56408                *)
56409                  gl_cv_func_fopen_slash="guessing yes" ;;
56410              esac
56411
56412 else
56413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56414 /* end confdefs.h.  */
56415
56416 #include <stddef.h>
56417 #include <stdio.h>
56418 int main ()
56419 {
56420   return fopen ("conftest.sl/", "w") != NULL;
56421 }
56422 _ACEOF
56423 if ac_fn_c_try_run "$LINENO"; then :
56424   gl_cv_func_fopen_slash=yes
56425 else
56426   gl_cv_func_fopen_slash=no
56427 fi
56428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56429   conftest.$ac_objext conftest.beam conftest.$ac_ext
56430 fi
56431
56432           rm -f conftest.sl
56433
56434 fi
56435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
56436 $as_echo "$gl_cv_func_fopen_slash" >&6; }
56437       ;;
56438   esac
56439   case "$gl_cv_func_fopen_slash" in
56440     *no)
56441
56442 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
56443
56444       REPLACE_FOPEN=1
56445       ;;
56446   esac
56447
56448   if test $REPLACE_FOPEN = 1; then
56449
56450
56451
56452
56453
56454
56455
56456
56457   gtpo_LIBOBJS="$gtpo_LIBOBJS fopen.$ac_objext"
56458
56459     :
56460   fi
56461
56462
56463
56464
56465
56466           GNULIB_FOPEN=1
56467
56468
56469
56470
56471
56472 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
56473
56474
56475
56476
56477
56478
56479
56480   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
56481     REPLACE_FSTAT=1
56482   fi
56483
56484
56485   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
56486     REPLACE_FSTAT=1
56487   fi
56488
56489
56490
56491   if test $REPLACE_FSTAT = 1; then
56492
56493
56494
56495
56496
56497
56498
56499
56500   gtpo_LIBOBJS="$gtpo_LIBOBJS fstat.$ac_objext"
56501
56502     :
56503   fi
56504
56505
56506
56507
56508
56509           GNULIB_FSTAT=1
56510
56511
56512
56513
56514
56515 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
56516
56517
56518
56519
56520
56521 cat >>confdefs.h <<_ACEOF
56522 #define GNULIB_FWRITEERROR 1
56523 _ACEOF
56524
56525
56526
56527
56528
56529
56530
56531
56532
56533
56534   if test $ac_cv_func_getdelim = yes; then
56535     HAVE_GETDELIM=1
56536         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
56537 $as_echo_n "checking for working getdelim function... " >&6; }
56538 if ${gl_cv_func_working_getdelim+:} false; then :
56539   $as_echo_n "(cached) " >&6
56540 else
56541   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
56542     if test "$cross_compiling" = yes; then :
56543         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56544 /* end confdefs.h.  */
56545
56546 #include <features.h>
56547 #ifdef __GNU_LIBRARY__
56548  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
56549   Lucky GNU user
56550  #endif
56551 #endif
56552
56553 _ACEOF
56554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56555   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
56556   gl_cv_func_working_getdelim="guessing yes"
56557 else
56558   gl_cv_func_working_getdelim="guessing no"
56559 fi
56560 rm -f conftest*
56561
56562
56563 else
56564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56565 /* end confdefs.h.  */
56566
56567 #    include <stdio.h>
56568 #    include <stdlib.h>
56569 #    include <string.h>
56570     int main ()
56571     {
56572       FILE *in = fopen ("./conftest.data", "r");
56573       if (!in)
56574         return 1;
56575       {
56576         /* Test result for a NULL buffer and a zero size.
56577            Based on a test program from Karl Heuer.  */
56578         char *line = NULL;
56579         size_t siz = 0;
56580         int len = getdelim (&line, &siz, '\n', in);
56581         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
56582           return 2;
56583       }
56584       {
56585         /* Test result for a NULL buffer and a non-zero size.
56586            This crashes on FreeBSD 8.0.  */
56587         char *line = NULL;
56588         size_t siz = (size_t)(~0) / 4;
56589         if (getdelim (&line, &siz, '\n', in) == -1)
56590           return 3;
56591       }
56592       return 0;
56593     }
56594
56595 _ACEOF
56596 if ac_fn_c_try_run "$LINENO"; then :
56597   gl_cv_func_working_getdelim=yes
56598 else
56599   gl_cv_func_working_getdelim=no
56600 fi
56601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56602   conftest.$ac_objext conftest.beam conftest.$ac_ext
56603 fi
56604
56605 fi
56606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
56607 $as_echo "$gl_cv_func_working_getdelim" >&6; }
56608     case "$gl_cv_func_working_getdelim" in
56609       *no)
56610         REPLACE_GETDELIM=1
56611         ;;
56612     esac
56613   else
56614     HAVE_GETDELIM=0
56615   fi
56616
56617   if test $ac_cv_have_decl_getdelim = no; then
56618     HAVE_DECL_GETDELIM=0
56619   fi
56620
56621   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
56622
56623
56624
56625
56626
56627
56628
56629
56630   gtpo_LIBOBJS="$gtpo_LIBOBJS getdelim.$ac_objext"
56631
56632
56633   for ac_func in flockfile funlockfile
56634 do :
56635   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
56637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
56638   cat >>confdefs.h <<_ACEOF
56639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
56640 _ACEOF
56641
56642 fi
56643 done
56644
56645   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
56646 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
56647   ac_have_decl=1
56648 else
56649   ac_have_decl=0
56650 fi
56651
56652 cat >>confdefs.h <<_ACEOF
56653 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
56654 _ACEOF
56655
56656
56657   fi
56658
56659
56660
56661
56662
56663           GNULIB_GETDELIM=1
56664
56665
56666
56667
56668
56669 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
56670
56671
56672
56673
56674
56675
56676
56677
56678
56679
56680   gl_getline_needs_run_time_check=no
56681   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
56682 if test "x$ac_cv_func_getline" = xyes; then :
56683                    gl_getline_needs_run_time_check=yes
56684 else
56685   am_cv_func_working_getline=no
56686 fi
56687
56688   if test $gl_getline_needs_run_time_check = yes; then
56689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
56690 $as_echo_n "checking for working getline function... " >&6; }
56691 if ${am_cv_func_working_getline+:} false; then :
56692   $as_echo_n "(cached) " >&6
56693 else
56694   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
56695     if test "$cross_compiling" = yes; then :
56696         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56697 /* end confdefs.h.  */
56698
56699 #include <features.h>
56700 #ifdef __GNU_LIBRARY__
56701  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
56702   Lucky GNU user
56703  #endif
56704 #endif
56705
56706 _ACEOF
56707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56708   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
56709   am_cv_func_working_getline="guessing yes"
56710 else
56711   am_cv_func_working_getline="guessing no"
56712 fi
56713 rm -f conftest*
56714
56715
56716 else
56717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56718 /* end confdefs.h.  */
56719
56720 #    include <stdio.h>
56721 #    include <stdlib.h>
56722 #    include <string.h>
56723     int main ()
56724     {
56725       FILE *in = fopen ("./conftest.data", "r");
56726       if (!in)
56727         return 1;
56728       {
56729         /* Test result for a NULL buffer and a zero size.
56730            Based on a test program from Karl Heuer.  */
56731         char *line = NULL;
56732         size_t siz = 0;
56733         int len = getline (&line, &siz, in);
56734         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
56735           return 2;
56736       }
56737       {
56738         /* Test result for a NULL buffer and a non-zero size.
56739            This crashes on FreeBSD 8.0.  */
56740         char *line = NULL;
56741         size_t siz = (size_t)(~0) / 4;
56742         if (getline (&line, &siz, in) == -1)
56743           return 3;
56744       }
56745       return 0;
56746     }
56747
56748 _ACEOF
56749 if ac_fn_c_try_run "$LINENO"; then :
56750   am_cv_func_working_getline=yes
56751 else
56752   am_cv_func_working_getline=no
56753 fi
56754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56755   conftest.$ac_objext conftest.beam conftest.$ac_ext
56756 fi
56757
56758 fi
56759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
56760 $as_echo "$am_cv_func_working_getline" >&6; }
56761   fi
56762
56763   if test $ac_cv_have_decl_getline = no; then
56764     HAVE_DECL_GETLINE=0
56765   fi
56766
56767   case "$am_cv_func_working_getline" in
56768     *no)
56769                         REPLACE_GETLINE=1
56770       ;;
56771   esac
56772
56773   if test $REPLACE_GETLINE = 1; then
56774
56775
56776
56777
56778
56779
56780
56781
56782   gtpo_LIBOBJS="$gtpo_LIBOBJS getline.$ac_objext"
56783
56784
56785   :
56786
56787   fi
56788
56789
56790
56791
56792
56793           GNULIB_GETLINE=1
56794
56795
56796
56797
56798
56799 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
56800
56801
56802
56803
56804
56805
56806
56807
56808
56809
56810
56811           GNULIB_ICONV=1
56812
56813
56814
56815
56816
56817
56818
56819
56820
56821
56822
56823
56824
56825
56826
56827
56828      if test $gl_cv_have_include_next = yes; then
56829        gl_cv_next_iconv_h='<'iconv.h'>'
56830      else
56831        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
56832 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
56833 if ${gl_cv_next_iconv_h+:} false; then :
56834   $as_echo_n "(cached) " >&6
56835 else
56836
56837              if test $ac_cv_header_iconv_h = yes; then
56838
56839
56840                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56841 /* end confdefs.h.  */
56842 #include <iconv.h>
56843
56844 _ACEOF
56845                                                                                                                         case "$host_os" in
56846                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
56847                  *)    gl_absname_cpp="$ac_cpp" ;;
56848                esac
56849
56850                case "$host_os" in
56851                  mingw*)
56852                                                                                                                                      gl_dirsep_regex='[/\\]'
56853                    ;;
56854                  *)
56855                    gl_dirsep_regex='\/'
56856                    ;;
56857                esac
56858                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
56859
56860                gl_header_literal_regex=`echo 'iconv.h' \
56861                                         | sed -e "$gl_make_literal_regex_sed"`
56862                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
56863                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
56864                    s|^/[^/]|//&|
56865                    p
56866                    q
56867                  }'
56868                                                             gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
56869                       sed -n "$gl_absolute_header_sed"`'"'
56870           else
56871                gl_cv_next_iconv_h='<'iconv.h'>'
56872              fi
56873
56874
56875 fi
56876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
56877 $as_echo "$gl_cv_next_iconv_h" >&6; }
56878      fi
56879      NEXT_ICONV_H=$gl_cv_next_iconv_h
56880
56881      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
56882        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
56883        gl_next_as_first_directive='<'iconv.h'>'
56884      else
56885        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
56886        gl_next_as_first_directive=$gl_cv_next_iconv_h
56887      fi
56888      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
56889
56890
56891
56892
56893
56894
56895
56896
56897
56898   if test "$am_cv_func_iconv" = yes; then
56899
56900
56901   ICONV_H='iconv.h'
56902    if test -n "$ICONV_H"; then
56903   GL_GENERATE_ICONV_H_TRUE=
56904   GL_GENERATE_ICONV_H_FALSE='#'
56905 else
56906   GL_GENERATE_ICONV_H_TRUE='#'
56907   GL_GENERATE_ICONV_H_FALSE=
56908 fi
56909
56910
56911             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56912 /* end confdefs.h.  */
56913
56914       #include <iconv.h>
56915       #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
56916        gnu_iconv
56917       #endif
56918
56919 _ACEOF
56920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56921   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
56922   gl_func_iconv_gnu=yes
56923 else
56924   gl_func_iconv_gnu=no
56925 fi
56926 rm -f conftest*
56927
56928     if test $gl_func_iconv_gnu = no; then
56929       iconv_flavor=
56930       case "$host_os" in
56931         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
56932         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
56933         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
56934         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
56935         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
56936       esac
56937       if test -n "$iconv_flavor"; then
56938
56939 cat >>confdefs.h <<_ACEOF
56940 #define ICONV_FLAVOR $iconv_flavor
56941 _ACEOF
56942
56943
56944
56945
56946   ICONV_H='iconv.h'
56947    if test -n "$ICONV_H"; then
56948   GL_GENERATE_ICONV_H_TRUE=
56949   GL_GENERATE_ICONV_H_FALSE='#'
56950 else
56951   GL_GENERATE_ICONV_H_TRUE='#'
56952   GL_GENERATE_ICONV_H_FALSE=
56953 fi
56954
56955
56956   REPLACE_ICONV_OPEN=1
56957
56958       fi
56959     fi
56960
56961   fi
56962
56963   if test $REPLACE_ICONV_OPEN = 1; then
56964
56965
56966
56967
56968
56969
56970
56971
56972   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_open.$ac_objext"
56973
56974   fi
56975   if test $REPLACE_ICONV = 1; then
56976
56977
56978
56979
56980
56981
56982
56983
56984   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv.$ac_objext"
56985
56986
56987
56988
56989
56990
56991
56992
56993
56994   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_close.$ac_objext"
56995
56996   fi
56997
56998
56999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
57000 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
57001 if ${gl_cv_c_inline_effective+:} false; then :
57002   $as_echo_n "(cached) " >&6
57003 else
57004   if test $ac_cv_c_inline = no; then
57005        gl_cv_c_inline_effective=no
57006      else
57007                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57008 /* end confdefs.h.  */
57009
57010 int
57011 main ()
57012 {
57013 #ifdef __NO_INLINE__
57014                #error "inline is not effective"
57015              #endif
57016   ;
57017   return 0;
57018 }
57019 _ACEOF
57020 if ac_fn_c_try_compile "$LINENO"; then :
57021   gl_cv_c_inline_effective=yes
57022 else
57023   gl_cv_c_inline_effective=no
57024 fi
57025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57026      fi
57027
57028 fi
57029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
57030 $as_echo "$gl_cv_c_inline_effective" >&6; }
57031   if test $gl_cv_c_inline_effective = yes; then
57032
57033 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
57034
57035   fi
57036
57037
57038
57039
57040
57041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
57042 $as_echo_n "checking whether to use the included libunistring... " >&6; }
57043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
57044 $as_echo "$gl_libunistring_use_included" >&6; }
57045
57046
57047
57048
57049
57050
57051
57052
57053
57054   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
57055
57056
57057
57058   if test "$gl_threads_api" = posix; then
57059     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
57060     # pthread_rwlock_* functions.
57061     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
57062 "
57063 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
57064
57065 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
57066
57067 fi
57068
57069     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
57070     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57071 /* end confdefs.h.  */
57072
57073       #include <pthread.h>
57074 int
57075 main ()
57076 {
57077
57078 #if __FreeBSD__ == 4
57079 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
57080 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
57081        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
57082 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
57083 #else
57084 int x = (int)PTHREAD_MUTEX_RECURSIVE;
57085 return !x;
57086 #endif
57087
57088   ;
57089   return 0;
57090 }
57091 _ACEOF
57092 if ac_fn_c_try_compile "$LINENO"; then :
57093
57094 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
57095
57096 fi
57097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57098   fi
57099   :
57100
57101
57102
57103 cat >>confdefs.h <<_ACEOF
57104 #define GNULIB_LOCK 1
57105 _ACEOF
57106
57107
57108
57109
57110
57111   if test $gl_cv_func_malloc_posix = yes; then
57112
57113 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
57114
57115   else
57116     REPLACE_MALLOC=1
57117   fi
57118
57119   if test $REPLACE_MALLOC = 1; then
57120
57121
57122
57123
57124
57125
57126
57127
57128   gtpo_LIBOBJS="$gtpo_LIBOBJS malloc.$ac_objext"
57129
57130   fi
57131
57132
57133
57134
57135
57136           GNULIB_MALLOC_POSIX=1
57137
57138
57139
57140
57141
57142 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
57143
57144
57145
57146
57147
57148
57149
57150
57151
57152
57153
57154
57155
57156
57157
57158
57159
57160   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
57161
57162
57163
57164      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
57165 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
57166 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
57167   $as_echo_n "(cached) " >&6
57168 else
57169
57170                   case "$host_os" in
57171                      # Guess no on AIX and OSF/1.
57172         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
57173                      # Guess yes otherwise.
57174         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
57175       esac
57176       if test $LOCALE_JA != none; then
57177         if test "$cross_compiling" = yes; then :
57178   :
57179 else
57180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57181 /* end confdefs.h.  */
57182
57183 #include <locale.h>
57184 #include <string.h>
57185 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57186    <wchar.h>.
57187    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57188    included before <wchar.h>.  */
57189 #include <stddef.h>
57190 #include <stdio.h>
57191 #include <time.h>
57192 #include <wchar.h>
57193 int main ()
57194 {
57195   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
57196     {
57197       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
57198       mbstate_t state;
57199       wchar_t wc;
57200
57201       memset (&state, '\0', sizeof (mbstate_t));
57202       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
57203         if (mbsinit (&state))
57204           return 1;
57205     }
57206   return 0;
57207 }
57208 _ACEOF
57209 if ac_fn_c_try_run "$LINENO"; then :
57210   gl_cv_func_mbrtowc_incomplete_state=yes
57211 else
57212   gl_cv_func_mbrtowc_incomplete_state=no
57213 fi
57214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57215   conftest.$ac_objext conftest.beam conftest.$ac_ext
57216 fi
57217
57218       fi
57219
57220 fi
57221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
57222 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
57223
57224
57225
57226
57227      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
57228 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
57229 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
57230   $as_echo_n "(cached) " >&6
57231 else
57232
57233                   case "$host_os" in
57234                     # Guess no on Solaris 8.
57235         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
57236                     # Guess yes otherwise.
57237         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
57238       esac
57239       if test $LOCALE_ZH_CN != none; then
57240         if test "$cross_compiling" = yes; then :
57241   :
57242 else
57243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57244 /* end confdefs.h.  */
57245
57246 #include <locale.h>
57247 #include <stdlib.h>
57248 #include <string.h>
57249 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57250    <wchar.h>.
57251    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57252    included before <wchar.h>.  */
57253 #include <stddef.h>
57254 #include <stdio.h>
57255 #include <time.h>
57256 #include <wchar.h>
57257 int main ()
57258 {
57259   /* This fails on Solaris 8:
57260      mbrtowc returns 2, and sets wc to 0x00F0.
57261      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
57262   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
57263     {
57264       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
57265       mbstate_t state;
57266       wchar_t wc;
57267
57268       memset (&state, '\0', sizeof (mbstate_t));
57269       if (mbrtowc (&wc, input + 3, 6, &state) != 4
57270           && mbtowc (&wc, input + 3, 6) == 4)
57271         return 1;
57272     }
57273   return 0;
57274 }
57275 _ACEOF
57276 if ac_fn_c_try_run "$LINENO"; then :
57277   gl_cv_func_mbrtowc_sanitycheck=yes
57278 else
57279   gl_cv_func_mbrtowc_sanitycheck=no
57280 fi
57281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57282   conftest.$ac_objext conftest.beam conftest.$ac_ext
57283 fi
57284
57285       fi
57286
57287 fi
57288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
57289 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
57290
57291     REPLACE_MBSTATE_T=0
57292     case "$gl_cv_func_mbrtowc_incomplete_state" in
57293       *yes) ;;
57294       *) REPLACE_MBSTATE_T=1 ;;
57295     esac
57296     case "$gl_cv_func_mbrtowc_sanitycheck" in
57297       *yes) ;;
57298       *) REPLACE_MBSTATE_T=1 ;;
57299     esac
57300   else
57301     REPLACE_MBSTATE_T=1
57302   fi
57303
57304
57305
57306   if test $ac_cv_func_mbrtowc = no; then
57307     HAVE_MBRTOWC=0
57308     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
57309 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57310    <wchar.h>.
57311    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57312    included before <wchar.h>.  */
57313 #include <stddef.h>
57314 #include <stdio.h>
57315 #include <time.h>
57316 #include <wchar.h>
57317
57318 "
57319 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
57320   ac_have_decl=1
57321 else
57322   ac_have_decl=0
57323 fi
57324
57325 cat >>confdefs.h <<_ACEOF
57326 #define HAVE_DECL_MBRTOWC $ac_have_decl
57327 _ACEOF
57328
57329     if test $ac_cv_have_decl_mbrtowc = yes; then
57330                         REPLACE_MBRTOWC=1
57331     fi
57332   else
57333     if test $REPLACE_MBSTATE_T = 1; then
57334       REPLACE_MBRTOWC=1
57335     else
57336
57337
57338
57339      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
57340 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
57341 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
57342   $as_echo_n "(cached) " >&6
57343 else
57344
57345                   case "$host_os" in
57346                   # Guess no on Solaris.
57347         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
57348                   # Guess yes otherwise.
57349         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
57350       esac
57351       if test $LOCALE_FR_UTF8 != none; then
57352         if test "$cross_compiling" = yes; then :
57353   :
57354 else
57355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57356 /* end confdefs.h.  */
57357
57358 #include <locale.h>
57359 #include <stdlib.h>
57360 #include <string.h>
57361 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57362    <wchar.h>.
57363    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57364    included before <wchar.h>.  */
57365 #include <stddef.h>
57366 #include <stdio.h>
57367 #include <time.h>
57368 #include <wchar.h>
57369 int main ()
57370 {
57371   int result = 0;
57372
57373   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
57374     {
57375       char input[] = "\303\237er";
57376       mbstate_t state;
57377       wchar_t wc;
57378       size_t ret;
57379
57380       memset (&state, '\0', sizeof (mbstate_t));
57381       wc = (wchar_t) 0xBADFACE;
57382       ret = mbrtowc (&wc, input, 5, &state);
57383       if (ret != 2)
57384         result |= 1;
57385       if (!mbsinit (&state))
57386         result |= 2;
57387
57388       memset (&state, '\0', sizeof (mbstate_t));
57389       ret = mbrtowc (NULL, input, 5, &state);
57390       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
57391         result |= 4;
57392       if (!mbsinit (&state))
57393         result |= 8;
57394     }
57395   return result;
57396 }
57397 _ACEOF
57398 if ac_fn_c_try_run "$LINENO"; then :
57399   gl_cv_func_mbrtowc_null_arg1=yes
57400 else
57401   gl_cv_func_mbrtowc_null_arg1=no
57402 fi
57403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57404   conftest.$ac_objext conftest.beam conftest.$ac_ext
57405 fi
57406
57407       fi
57408
57409 fi
57410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
57411 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
57412
57413
57414
57415
57416      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
57417 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
57418 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
57419   $as_echo_n "(cached) " >&6
57420 else
57421
57422                   case "$host_os" in
57423               # Guess no on OSF/1.
57424         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
57425               # Guess yes otherwise.
57426         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
57427       esac
57428       if test $LOCALE_FR_UTF8 != none; then
57429         if test "$cross_compiling" = yes; then :
57430   :
57431 else
57432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57433 /* end confdefs.h.  */
57434
57435 #include <locale.h>
57436 #include <string.h>
57437 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57438    <wchar.h>.
57439    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57440    included before <wchar.h>.  */
57441 #include <stddef.h>
57442 #include <stdio.h>
57443 #include <time.h>
57444 #include <wchar.h>
57445 int main ()
57446 {
57447   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
57448     {
57449       mbstate_t state;
57450       wchar_t wc;
57451       int ret;
57452
57453       memset (&state, '\0', sizeof (mbstate_t));
57454       wc = (wchar_t) 0xBADFACE;
57455       mbrtowc (&wc, NULL, 5, &state);
57456       /* Check that wc was not modified.  */
57457       if (wc != (wchar_t) 0xBADFACE)
57458         return 1;
57459     }
57460   return 0;
57461 }
57462 _ACEOF
57463 if ac_fn_c_try_run "$LINENO"; then :
57464   gl_cv_func_mbrtowc_null_arg2=yes
57465 else
57466   gl_cv_func_mbrtowc_null_arg2=no
57467 fi
57468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57469   conftest.$ac_objext conftest.beam conftest.$ac_ext
57470 fi
57471
57472       fi
57473
57474 fi
57475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
57476 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
57477
57478
57479
57480
57481
57482
57483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
57484 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
57485 if ${gl_cv_func_mbrtowc_retval+:} false; then :
57486   $as_echo_n "(cached) " >&6
57487 else
57488
57489                   case "$host_os" in
57490                                    # Guess no on HP-UX, Solaris, native Windows.
57491         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
57492                                    # Guess yes otherwise.
57493         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
57494       esac
57495       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
57496          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
57497         if test "$cross_compiling" = yes; then :
57498   :
57499 else
57500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57501 /* end confdefs.h.  */
57502
57503 #include <locale.h>
57504 #include <string.h>
57505 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57506    <wchar.h>.
57507    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57508    included before <wchar.h>.  */
57509 #include <stddef.h>
57510 #include <stdio.h>
57511 #include <time.h>
57512 #include <wchar.h>
57513 int main ()
57514 {
57515   int result = 0;
57516   int found_some_locale = 0;
57517   /* This fails on Solaris.  */
57518   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
57519     {
57520       char input[] = "B\303\274\303\237er"; /* "Büßer" */
57521       mbstate_t state;
57522       wchar_t wc;
57523
57524       memset (&state, '\0', sizeof (mbstate_t));
57525       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
57526         {
57527           input[1] = '\0';
57528           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
57529             result |= 1;
57530         }
57531       found_some_locale = 1;
57532     }
57533   /* This fails on HP-UX 11.11.  */
57534   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
57535     {
57536       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
57537       mbstate_t state;
57538       wchar_t wc;
57539
57540       memset (&state, '\0', sizeof (mbstate_t));
57541       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
57542         {
57543           input[1] = '\0';
57544           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
57545             result |= 2;
57546         }
57547       found_some_locale = 1;
57548     }
57549   /* This fails on native Windows.  */
57550   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
57551     {
57552       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
57553       mbstate_t state;
57554       wchar_t wc;
57555
57556       memset (&state, '\0', sizeof (mbstate_t));
57557       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
57558         {
57559           input[3] = '\0';
57560           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
57561             result |= 4;
57562         }
57563       found_some_locale = 1;
57564     }
57565   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
57566     {
57567       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
57568       mbstate_t state;
57569       wchar_t wc;
57570
57571       memset (&state, '\0', sizeof (mbstate_t));
57572       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
57573         {
57574           input[3] = '\0';
57575           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
57576             result |= 8;
57577         }
57578       found_some_locale = 1;
57579     }
57580   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
57581     {
57582       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
57583       mbstate_t state;
57584       wchar_t wc;
57585
57586       memset (&state, '\0', sizeof (mbstate_t));
57587       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
57588         {
57589           input[3] = '\0';
57590           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
57591             result |= 16;
57592         }
57593       found_some_locale = 1;
57594     }
57595   return (found_some_locale ? result : 77);
57596 }
57597 _ACEOF
57598 if ac_fn_c_try_run "$LINENO"; then :
57599   gl_cv_func_mbrtowc_retval=yes
57600 else
57601   if test $? != 77; then
57602              gl_cv_func_mbrtowc_retval=no
57603            fi
57604
57605 fi
57606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57607   conftest.$ac_objext conftest.beam conftest.$ac_ext
57608 fi
57609
57610       fi
57611
57612 fi
57613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
57614 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
57615
57616
57617
57618
57619      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
57620 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
57621 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
57622   $as_echo_n "(cached) " >&6
57623 else
57624
57625                   case "$host_os" in
57626                        # Guess no on Solaris 8 and 9.
57627         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
57628                        # Guess yes otherwise.
57629         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
57630       esac
57631       if test $LOCALE_ZH_CN != none; then
57632         if test "$cross_compiling" = yes; then :
57633   :
57634 else
57635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57636 /* end confdefs.h.  */
57637
57638 #include <locale.h>
57639 #include <string.h>
57640 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57641    <wchar.h>.
57642    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57643    included before <wchar.h>.  */
57644 #include <stddef.h>
57645 #include <stdio.h>
57646 #include <time.h>
57647 #include <wchar.h>
57648 int main ()
57649 {
57650   /* This fails on Solaris 8 and 9.  */
57651   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
57652     {
57653       mbstate_t state;
57654       wchar_t wc;
57655
57656       memset (&state, '\0', sizeof (mbstate_t));
57657       if (mbrtowc (&wc, "", 1, &state) != 0)
57658         return 1;
57659     }
57660   return 0;
57661 }
57662 _ACEOF
57663 if ac_fn_c_try_run "$LINENO"; then :
57664   gl_cv_func_mbrtowc_nul_retval=yes
57665 else
57666   gl_cv_func_mbrtowc_nul_retval=no
57667 fi
57668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57669   conftest.$ac_objext conftest.beam conftest.$ac_ext
57670 fi
57671
57672       fi
57673
57674 fi
57675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
57676 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
57677
57678       case "$gl_cv_func_mbrtowc_null_arg1" in
57679         *yes) ;;
57680         *)
57681 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
57682
57683            REPLACE_MBRTOWC=1
57684            ;;
57685       esac
57686       case "$gl_cv_func_mbrtowc_null_arg2" in
57687         *yes) ;;
57688         *)
57689 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
57690
57691            REPLACE_MBRTOWC=1
57692            ;;
57693       esac
57694       case "$gl_cv_func_mbrtowc_retval" in
57695         *yes) ;;
57696         *)
57697 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
57698
57699            REPLACE_MBRTOWC=1
57700            ;;
57701       esac
57702       case "$gl_cv_func_mbrtowc_nul_retval" in
57703         *yes) ;;
57704         *)
57705 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
57706
57707            REPLACE_MBRTOWC=1
57708            ;;
57709       esac
57710     fi
57711   fi
57712
57713   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
57714
57715
57716
57717
57718
57719
57720
57721
57722   gtpo_LIBOBJS="$gtpo_LIBOBJS mbrtowc.$ac_objext"
57723
57724
57725   :
57726
57727   fi
57728
57729
57730
57731
57732
57733           GNULIB_MBRTOWC=1
57734
57735
57736
57737
57738
57739 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
57740
57741
57742
57743
57744
57745
57746
57747
57748
57749
57750
57751
57752
57753
57754   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
57755
57756
57757
57758      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
57759 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
57760 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
57761   $as_echo_n "(cached) " >&6
57762 else
57763
57764                   case "$host_os" in
57765                      # Guess no on AIX and OSF/1.
57766         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
57767                      # Guess yes otherwise.
57768         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
57769       esac
57770       if test $LOCALE_JA != none; then
57771         if test "$cross_compiling" = yes; then :
57772   :
57773 else
57774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57775 /* end confdefs.h.  */
57776
57777 #include <locale.h>
57778 #include <string.h>
57779 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57780    <wchar.h>.
57781    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57782    included before <wchar.h>.  */
57783 #include <stddef.h>
57784 #include <stdio.h>
57785 #include <time.h>
57786 #include <wchar.h>
57787 int main ()
57788 {
57789   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
57790     {
57791       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
57792       mbstate_t state;
57793       wchar_t wc;
57794
57795       memset (&state, '\0', sizeof (mbstate_t));
57796       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
57797         if (mbsinit (&state))
57798           return 1;
57799     }
57800   return 0;
57801 }
57802 _ACEOF
57803 if ac_fn_c_try_run "$LINENO"; then :
57804   gl_cv_func_mbrtowc_incomplete_state=yes
57805 else
57806   gl_cv_func_mbrtowc_incomplete_state=no
57807 fi
57808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57809   conftest.$ac_objext conftest.beam conftest.$ac_ext
57810 fi
57811
57812       fi
57813
57814 fi
57815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
57816 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
57817
57818
57819
57820
57821      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
57822 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
57823 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
57824   $as_echo_n "(cached) " >&6
57825 else
57826
57827                   case "$host_os" in
57828                     # Guess no on Solaris 8.
57829         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
57830                     # Guess yes otherwise.
57831         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
57832       esac
57833       if test $LOCALE_ZH_CN != none; then
57834         if test "$cross_compiling" = yes; then :
57835   :
57836 else
57837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57838 /* end confdefs.h.  */
57839
57840 #include <locale.h>
57841 #include <stdlib.h>
57842 #include <string.h>
57843 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57844    <wchar.h>.
57845    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57846    included before <wchar.h>.  */
57847 #include <stddef.h>
57848 #include <stdio.h>
57849 #include <time.h>
57850 #include <wchar.h>
57851 int main ()
57852 {
57853   /* This fails on Solaris 8:
57854      mbrtowc returns 2, and sets wc to 0x00F0.
57855      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
57856   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
57857     {
57858       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
57859       mbstate_t state;
57860       wchar_t wc;
57861
57862       memset (&state, '\0', sizeof (mbstate_t));
57863       if (mbrtowc (&wc, input + 3, 6, &state) != 4
57864           && mbtowc (&wc, input + 3, 6) == 4)
57865         return 1;
57866     }
57867   return 0;
57868 }
57869 _ACEOF
57870 if ac_fn_c_try_run "$LINENO"; then :
57871   gl_cv_func_mbrtowc_sanitycheck=yes
57872 else
57873   gl_cv_func_mbrtowc_sanitycheck=no
57874 fi
57875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57876   conftest.$ac_objext conftest.beam conftest.$ac_ext
57877 fi
57878
57879       fi
57880
57881 fi
57882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
57883 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
57884
57885     REPLACE_MBSTATE_T=0
57886     case "$gl_cv_func_mbrtowc_incomplete_state" in
57887       *yes) ;;
57888       *) REPLACE_MBSTATE_T=1 ;;
57889     esac
57890     case "$gl_cv_func_mbrtowc_sanitycheck" in
57891       *yes) ;;
57892       *) REPLACE_MBSTATE_T=1 ;;
57893     esac
57894   else
57895     REPLACE_MBSTATE_T=1
57896   fi
57897
57898
57899
57900   if test $ac_cv_func_mbsinit = no; then
57901     HAVE_MBSINIT=0
57902     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
57903 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57904    <wchar.h>.
57905    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
57906    included before <wchar.h>.  */
57907 #include <stddef.h>
57908 #include <stdio.h>
57909 #include <time.h>
57910 #include <wchar.h>
57911
57912 "
57913 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
57914   ac_have_decl=1
57915 else
57916   ac_have_decl=0
57917 fi
57918
57919 cat >>confdefs.h <<_ACEOF
57920 #define HAVE_DECL_MBSINIT $ac_have_decl
57921 _ACEOF
57922
57923     if test $ac_cv_have_decl_mbsinit = yes; then
57924                         REPLACE_MBSINIT=1
57925     fi
57926   else
57927     if test $REPLACE_MBSTATE_T = 1; then
57928       REPLACE_MBSINIT=1
57929     else
57930                         case "$host_os" in
57931         mingw*) REPLACE_MBSINIT=1 ;;
57932       esac
57933     fi
57934   fi
57935
57936   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
57937
57938
57939
57940
57941
57942
57943
57944
57945   gtpo_LIBOBJS="$gtpo_LIBOBJS mbsinit.$ac_objext"
57946
57947
57948   :
57949
57950   fi
57951
57952
57953
57954
57955
57956           GNULIB_MBSINIT=1
57957
57958
57959
57960
57961
57962 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
57963
57964
57965
57966
57967
57968
57969
57970       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
57971 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
57972 if ${ac_cv_have_decl_mbswidth+:} false; then :
57973   $as_echo_n "(cached) " >&6
57974 else
57975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57976 /* end confdefs.h.  */
57977
57978 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
57979    <wchar.h>.
57980    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
57981    before <wchar.h>.  */
57982 #include <stddef.h>
57983 #include <stdio.h>
57984 #include <time.h>
57985 #include <wchar.h>
57986
57987 int
57988 main ()
57989 {
57990
57991   char *p = (char *) mbswidth;
57992   return !p;
57993
57994   ;
57995   return 0;
57996 }
57997 _ACEOF
57998 if ac_fn_c_try_compile "$LINENO"; then :
57999   ac_cv_have_decl_mbswidth=yes
58000 else
58001   ac_cv_have_decl_mbswidth=no
58002 fi
58003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58004 fi
58005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
58006 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
58007   if test $ac_cv_have_decl_mbswidth = yes; then
58008     ac_val=1
58009   else
58010     ac_val=0
58011   fi
58012
58013 cat >>confdefs.h <<_ACEOF
58014 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
58015 _ACEOF
58016
58017
58018
58019
58020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
58021 $as_echo_n "checking for mbstate_t... " >&6; }
58022 if ${ac_cv_type_mbstate_t+:} false; then :
58023   $as_echo_n "(cached) " >&6
58024 else
58025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58026 /* end confdefs.h.  */
58027 $ac_includes_default
58028 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
58029    <wchar.h>.
58030    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
58031    included before <wchar.h>.  */
58032 #include <stddef.h>
58033 #include <stdio.h>
58034 #include <time.h>
58035 #include <wchar.h>
58036 int
58037 main ()
58038 {
58039 mbstate_t x; return sizeof x;
58040   ;
58041   return 0;
58042 }
58043 _ACEOF
58044 if ac_fn_c_try_compile "$LINENO"; then :
58045   ac_cv_type_mbstate_t=yes
58046 else
58047   ac_cv_type_mbstate_t=no
58048 fi
58049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58050 fi
58051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
58052 $as_echo "$ac_cv_type_mbstate_t" >&6; }
58053    if test $ac_cv_type_mbstate_t = yes; then
58054
58055 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
58056
58057    else
58058
58059 $as_echo "#define mbstate_t int" >>confdefs.h
58060
58061    fi
58062
58063
58064
58065   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
58066
58067
58068
58069
58070
58071
58072
58073
58074   gtpo_LIBOBJS="$gtpo_LIBOBJS memchr.$ac_objext"
58075
58076
58077   for ac_header in bp-sym.h
58078 do :
58079   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
58080 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
58081   cat >>confdefs.h <<_ACEOF
58082 #define HAVE_BP_SYM_H 1
58083 _ACEOF
58084
58085 fi
58086
58087 done
58088
58089
58090   fi
58091
58092
58093
58094
58095
58096           GNULIB_MEMCHR=1
58097
58098
58099
58100
58101
58102 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
58103
58104
58105
58106
58107
58108
58109
58110
58111           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
58112 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
58113 if ${gl_cv_c_cplusplus+:} false; then :
58114   $as_echo_n "(cached) " >&6
58115 else
58116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58117 /* end confdefs.h.  */
58118
58119 #ifdef __cplusplus
58120   Is c++
58121 #endif
58122
58123 _ACEOF
58124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58125   $EGREP "Is c++" >/dev/null 2>&1; then :
58126   gl_cv_c_cplusplus=yes
58127 else
58128   gl_cv_c_cplusplus=no
58129 fi
58130 rm -f conftest*
58131
58132 fi
58133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
58134 $as_echo "$gl_cv_c_cplusplus" >&6; }
58135   if test $gl_cv_c_cplusplus = yes; then
58136
58137 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
58138
58139   fi
58140
58141
58142
58143   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
58144     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
58145
58146 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
58147
58148   else
58149     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
58150   fi
58151
58152
58153   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
58154
58155
58156
58157
58158
58159
58160
58161
58162   gtpo_LIBOBJS="$gtpo_LIBOBJS msvc-inval.$ac_objext"
58163
58164   fi
58165
58166
58167
58168   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
58169
58170
58171
58172
58173
58174
58175
58176
58177   gtpo_LIBOBJS="$gtpo_LIBOBJS msvc-nothrow.$ac_objext"
58178
58179   fi
58180
58181
58182
58183
58184
58185
58186
58187
58188
58189
58190
58191
58192
58193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
58194 $as_echo_n "checking for obstacks... " >&6; }
58195 if ${ac_cv_func_obstack+:} false; then :
58196   $as_echo_n "(cached) " >&6
58197 else
58198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58199 /* end confdefs.h.  */
58200 $ac_includes_default
58201                       #include "obstack.h"
58202 int
58203 main ()
58204 {
58205 struct obstack mem;
58206                        #define obstack_chunk_alloc malloc
58207                        #define obstack_chunk_free free
58208                        obstack_init (&mem);
58209                        obstack_free (&mem, 0);
58210   ;
58211   return 0;
58212 }
58213 _ACEOF
58214 if ac_fn_c_try_link "$LINENO"; then :
58215   ac_cv_func_obstack=yes
58216 else
58217   ac_cv_func_obstack=no
58218 fi
58219 rm -f core conftest.err conftest.$ac_objext \
58220     conftest$ac_exeext conftest.$ac_ext
58221 fi
58222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
58223 $as_echo "$ac_cv_func_obstack" >&6; }
58224 if test $ac_cv_func_obstack = yes; then
58225
58226 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
58227
58228 else
58229
58230
58231
58232
58233
58234
58235
58236
58237   gtpo_LIBOBJS="$gtpo_LIBOBJS obstack.$ac_objext"
58238
58239 fi
58240
58241
58242
58243   case "$host_os" in
58244     mingw* | pw*)
58245       REPLACE_OPEN=1
58246       ;;
58247     *)
58248
58249       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
58250 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
58251 if ${gl_cv_func_open_slash+:} false; then :
58252   $as_echo_n "(cached) " >&6
58253 else
58254   # Assume that if we have lstat, we can also check symlinks.
58255           if test $ac_cv_func_lstat = yes; then
58256             touch conftest.tmp
58257             ln -s conftest.tmp conftest.lnk
58258           fi
58259           if test "$cross_compiling" = yes; then :
58260
58261              case "$host_os" in
58262                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
58263                  gl_cv_func_open_slash="guessing no" ;;
58264                *)
58265                  gl_cv_func_open_slash="guessing yes" ;;
58266              esac
58267
58268 else
58269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58270 /* end confdefs.h.  */
58271
58272 #include <fcntl.h>
58273 #if HAVE_UNISTD_H
58274 # include <unistd.h>
58275 #endif
58276 int main ()
58277 {
58278   int result = 0;
58279 #if HAVE_LSTAT
58280   if (open ("conftest.lnk/", O_RDONLY) != -1)
58281     result |= 1;
58282 #endif
58283   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
58284     result |= 2;
58285   return result;
58286 }
58287 _ACEOF
58288 if ac_fn_c_try_run "$LINENO"; then :
58289   gl_cv_func_open_slash=yes
58290 else
58291   gl_cv_func_open_slash=no
58292 fi
58293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58294   conftest.$ac_objext conftest.beam conftest.$ac_ext
58295 fi
58296
58297           rm -f conftest.sl conftest.tmp conftest.lnk
58298
58299 fi
58300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
58301 $as_echo "$gl_cv_func_open_slash" >&6; }
58302       case "$gl_cv_func_open_slash" in
58303         *no)
58304
58305 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
58306
58307           REPLACE_OPEN=1
58308           ;;
58309       esac
58310       ;;
58311   esac
58312
58313
58314
58315   if test $REPLACE_OPEN = 1; then
58316
58317
58318
58319
58320
58321
58322
58323
58324   gtpo_LIBOBJS="$gtpo_LIBOBJS open.$ac_objext"
58325
58326
58327
58328   :
58329
58330   fi
58331
58332
58333
58334
58335
58336           GNULIB_OPEN=1
58337
58338
58339
58340
58341
58342 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
58343
58344
58345
58346
58347
58348
58349   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
58350 "
58351 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
58352   ac_have_decl=1
58353 else
58354   ac_have_decl=0
58355 fi
58356
58357 cat >>confdefs.h <<_ACEOF
58358 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
58359 _ACEOF
58360
58361   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
58362 "
58363 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
58364   ac_have_decl=1
58365 else
58366   ac_have_decl=0
58367 fi
58368
58369 cat >>confdefs.h <<_ACEOF
58370 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
58371 _ACEOF
58372
58373
58374
58375
58376
58377   for ac_func in raise
58378 do :
58379   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
58380 if test "x$ac_cv_func_raise" = xyes; then :
58381   cat >>confdefs.h <<_ACEOF
58382 #define HAVE_RAISE 1
58383 _ACEOF
58384
58385 fi
58386 done
58387
58388   if test $ac_cv_func_raise = no; then
58389     HAVE_RAISE=0
58390   else
58391     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
58392       REPLACE_RAISE=1
58393     fi
58394
58395
58396
58397
58398   if test $gl_cv_type_sigset_t = yes; then
58399     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
58400 if test "x$ac_cv_func_sigprocmask" = xyes; then :
58401   gl_cv_func_sigprocmask=1
58402 fi
58403
58404   fi
58405   if test -z "$gl_cv_func_sigprocmask"; then
58406     HAVE_POSIX_SIGNALBLOCKING=0
58407   fi
58408
58409       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
58410
58411
58412
58413
58414           if test $gl_cv_header_signal_h_SIGPIPE != yes; then
58415             REPLACE_RAISE=1
58416           fi
58417
58418       fi
58419
58420   fi
58421
58422   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
58423
58424
58425
58426
58427
58428
58429
58430
58431   gtpo_LIBOBJS="$gtpo_LIBOBJS raise.$ac_objext"
58432
58433     :
58434   fi
58435
58436
58437
58438
58439
58440           GNULIB_RAISE=1
58441
58442
58443
58444
58445
58446 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
58447
58448
58449
58450
58451
58452
58453
58454   for ac_func in rawmemchr
58455 do :
58456   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
58457 if test "x$ac_cv_func_rawmemchr" = xyes; then :
58458   cat >>confdefs.h <<_ACEOF
58459 #define HAVE_RAWMEMCHR 1
58460 _ACEOF
58461
58462 fi
58463 done
58464
58465   if test $ac_cv_func_rawmemchr = no; then
58466     HAVE_RAWMEMCHR=0
58467   fi
58468
58469   if test $HAVE_RAWMEMCHR = 0; then
58470
58471
58472
58473
58474
58475
58476
58477
58478   gtpo_LIBOBJS="$gtpo_LIBOBJS rawmemchr.$ac_objext"
58479
58480     :
58481   fi
58482
58483
58484
58485
58486
58487           GNULIB_RAWMEMCHR=1
58488
58489
58490
58491
58492
58493 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
58494
58495
58496
58497
58498
58499
58500   if test $gl_cv_func_malloc_posix = yes; then
58501
58502 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
58503
58504   else
58505     REPLACE_REALLOC=1
58506   fi
58507
58508   if test $REPLACE_REALLOC = 1; then
58509
58510
58511
58512
58513
58514
58515
58516
58517   gtpo_LIBOBJS="$gtpo_LIBOBJS realloc.$ac_objext"
58518
58519   fi
58520
58521
58522
58523
58524
58525           GNULIB_REALLOC_POSIX=1
58526
58527
58528
58529
58530
58531 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
58532
58533
58534
58535
58536
58537
58538   if test $RELOCATABLE = yes; then
58539
58540
58541
58542
58543
58544
58545
58546
58547   gtpo_LIBOBJS="$gtpo_LIBOBJS relocatable.$ac_objext"
58548
58549   fi
58550
58551
58552
58553
58554
58555
58556
58557
58558
58559
58560
58561      if test $gl_cv_have_include_next = yes; then
58562        gl_cv_next_signal_h='<'signal.h'>'
58563      else
58564        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
58565 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
58566 if ${gl_cv_next_signal_h+:} false; then :
58567   $as_echo_n "(cached) " >&6
58568 else
58569
58570                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58571 /* end confdefs.h.  */
58572 #include <signal.h>
58573
58574 _ACEOF
58575                                                                                                                         case "$host_os" in
58576                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
58577                  *)    gl_absname_cpp="$ac_cpp" ;;
58578                esac
58579
58580                case "$host_os" in
58581                  mingw*)
58582                                                                                                                                      gl_dirsep_regex='[/\\]'
58583                    ;;
58584                  *)
58585                    gl_dirsep_regex='\/'
58586                    ;;
58587                esac
58588                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
58589
58590                gl_header_literal_regex=`echo 'signal.h' \
58591                                         | sed -e "$gl_make_literal_regex_sed"`
58592                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
58593                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
58594                    s|^/[^/]|//&|
58595                    p
58596                    q
58597                  }'
58598                                                             gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
58599                       sed -n "$gl_absolute_header_sed"`'"'
58600
58601
58602 fi
58603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
58604 $as_echo "$gl_cv_next_signal_h" >&6; }
58605      fi
58606      NEXT_SIGNAL_H=$gl_cv_next_signal_h
58607
58608      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
58609        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
58610        gl_next_as_first_directive='<'signal.h'>'
58611      else
58612        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
58613        gl_next_as_first_directive=$gl_cv_next_signal_h
58614      fi
58615      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
58616
58617
58618
58619
58620
58621 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
58622 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
58623   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
58624 #include <signal.h>
58625
58626 "
58627 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
58628
58629 else
58630   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
58631 fi
58632
58633
58634
58635
58636
58637
58638
58639   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
58640 #include <signal.h>
58641
58642 "
58643 if test "x$ac_cv_type_sighandler_t" = xyes; then :
58644
58645 else
58646   HAVE_SIGHANDLER_T=0
58647 fi
58648
58649
58650
58651     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
58652     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
58653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
58654 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
58655 if eval \${$as_gl_Symbol+:} false; then :
58656   $as_echo_n "(cached) " >&6
58657 else
58658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58659 /* end confdefs.h.  */
58660 #include <signal.h>
58661
58662 int
58663 main ()
58664 {
58665 #undef $gl_func
58666   (void) $gl_func;
58667   ;
58668   return 0;
58669 }
58670 _ACEOF
58671 if ac_fn_c_try_compile "$LINENO"; then :
58672   eval "$as_gl_Symbol=yes"
58673 else
58674   eval "$as_gl_Symbol=no"
58675 fi
58676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58677 fi
58678 eval ac_res=\$$as_gl_Symbol
58679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
58680 $as_echo "$ac_res" >&6; }
58681     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
58682   cat >>confdefs.h <<_ACEOF
58683 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
58684 _ACEOF
58685
58686                      eval ac_cv_have_decl_$gl_func=yes
58687 fi
58688       done
58689
58690
58691
58692
58693
58694
58695
58696 cat >>confdefs.h <<_ACEOF
58697 #define GNULIB_SIGPIPE 1
58698 _ACEOF
58699
58700
58701
58702   GNULIB_SIGNAL_H_SIGPIPE=1
58703
58704
58705   GNULIB_STDIO_H_SIGPIPE=1
58706
58707   GNULIB_UNISTD_H_SIGPIPE=1
58708
58709
58710
58711   if test $gl_cv_type_sigset_t = yes; then
58712     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
58713 if test "x$ac_cv_func_sigprocmask" = xyes; then :
58714   gl_cv_func_sigprocmask=1
58715 fi
58716
58717   fi
58718   if test -z "$gl_cv_func_sigprocmask"; then
58719     HAVE_POSIX_SIGNALBLOCKING=0
58720   fi
58721
58722   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
58723
58724
58725
58726
58727
58728
58729
58730
58731   gtpo_LIBOBJS="$gtpo_LIBOBJS sigprocmask.$ac_objext"
58732
58733     :
58734   fi
58735
58736
58737
58738
58739
58740           GNULIB_SIGPROCMASK=1
58741
58742
58743
58744
58745
58746 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
58747
58748
58749
58750
58751   for ac_header in stdint.h
58752 do :
58753   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
58754 if test "x$ac_cv_header_stdint_h" = xyes; then :
58755   cat >>confdefs.h <<_ACEOF
58756 #define HAVE_STDINT_H 1
58757 _ACEOF
58758
58759 fi
58760
58761 done
58762
58763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
58764 $as_echo_n "checking for SIZE_MAX... " >&6; }
58765 if ${gl_cv_size_max+:} false; then :
58766   $as_echo_n "(cached) " >&6
58767 else
58768
58769     gl_cv_size_max=
58770     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58771 /* end confdefs.h.  */
58772
58773 #include <limits.h>
58774 #if HAVE_STDINT_H
58775 #include <stdint.h>
58776 #endif
58777 #ifdef SIZE_MAX
58778 Found it
58779 #endif
58780
58781 _ACEOF
58782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58783   $EGREP "Found it" >/dev/null 2>&1; then :
58784   gl_cv_size_max=yes
58785 fi
58786 rm -f conftest*
58787
58788     if test -z "$gl_cv_size_max"; then
58789                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
58790 #include <limits.h>"; then :
58791
58792 else
58793   size_t_bits_minus_1=
58794 fi
58795
58796       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
58797
58798 else
58799   fits_in_uint=
58800 fi
58801
58802       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
58803         if test $fits_in_uint = 1; then
58804                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58805 /* end confdefs.h.  */
58806 #include <stddef.h>
58807                  extern size_t foo;
58808                  extern unsigned long foo;
58809
58810 int
58811 main ()
58812 {
58813
58814   ;
58815   return 0;
58816 }
58817 _ACEOF
58818 if ac_fn_c_try_compile "$LINENO"; then :
58819   fits_in_uint=0
58820 fi
58821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58822         fi
58823                                 if test $fits_in_uint = 1; then
58824           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
58825         else
58826           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
58827         fi
58828       else
58829                 gl_cv_size_max='((size_t)~(size_t)0)'
58830       fi
58831     fi
58832
58833 fi
58834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
58835 $as_echo "$gl_cv_size_max" >&6; }
58836   if test "$gl_cv_size_max" != yes; then
58837
58838 cat >>confdefs.h <<_ACEOF
58839 #define SIZE_MAX $gl_cv_size_max
58840 _ACEOF
58841
58842   fi
58843
58844
58845
58846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
58847 $as_echo_n "checking for ssize_t... " >&6; }
58848 if ${gt_cv_ssize_t+:} false; then :
58849   $as_echo_n "(cached) " >&6
58850 else
58851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58852 /* end confdefs.h.  */
58853 #include <sys/types.h>
58854 int
58855 main ()
58856 {
58857 int x = sizeof (ssize_t *) + sizeof (ssize_t);
58858             return !x;
58859   ;
58860   return 0;
58861 }
58862 _ACEOF
58863 if ac_fn_c_try_compile "$LINENO"; then :
58864   gt_cv_ssize_t=yes
58865 else
58866   gt_cv_ssize_t=no
58867 fi
58868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58869 fi
58870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
58871 $as_echo "$gt_cv_ssize_t" >&6; }
58872   if test $gt_cv_ssize_t = no; then
58873
58874 $as_echo "#define ssize_t int" >>confdefs.h
58875
58876   fi
58877
58878
58879
58880
58881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
58882 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
58883 if ${gl_cv_func_stat_dir_slash+:} false; then :
58884   $as_echo_n "(cached) " >&6
58885 else
58886   if test "$cross_compiling" = yes; then :
58887   case $host_os in
58888             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
58889             *) gl_cv_func_stat_dir_slash="guessing yes";;
58890           esac
58891 else
58892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58893 /* end confdefs.h.  */
58894 #include <sys/stat.h>
58895
58896 int
58897 main ()
58898 {
58899 struct stat st; return stat (".", &st) != stat ("./", &st);
58900   ;
58901   return 0;
58902 }
58903 _ACEOF
58904 if ac_fn_c_try_run "$LINENO"; then :
58905   gl_cv_func_stat_dir_slash=yes
58906 else
58907   gl_cv_func_stat_dir_slash=no
58908 fi
58909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58910   conftest.$ac_objext conftest.beam conftest.$ac_ext
58911 fi
58912
58913 fi
58914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
58915 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
58916         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
58917 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
58918 if ${gl_cv_func_stat_file_slash+:} false; then :
58919   $as_echo_n "(cached) " >&6
58920 else
58921   touch conftest.tmp
58922        # Assume that if we have lstat, we can also check symlinks.
58923        if test $ac_cv_func_lstat = yes; then
58924          ln -s conftest.tmp conftest.lnk
58925        fi
58926        if test "$cross_compiling" = yes; then :
58927   case "$host_os" in
58928                     # Guess yes on glibc systems.
58929             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
58930                     # If we don't know, assume the worst.
58931             *)      gl_cv_func_stat_file_slash="guessing no" ;;
58932           esac
58933
58934 else
58935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58936 /* end confdefs.h.  */
58937 #include <sys/stat.h>
58938
58939 int
58940 main ()
58941 {
58942 int result = 0;
58943       struct stat st;
58944       if (!stat ("conftest.tmp/", &st))
58945         result |= 1;
58946 #if HAVE_LSTAT
58947       if (!stat ("conftest.lnk/", &st))
58948         result |= 2;
58949 #endif
58950       return result;
58951
58952   ;
58953   return 0;
58954 }
58955 _ACEOF
58956 if ac_fn_c_try_run "$LINENO"; then :
58957   gl_cv_func_stat_file_slash=yes
58958 else
58959   gl_cv_func_stat_file_slash=no
58960 fi
58961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58962   conftest.$ac_objext conftest.beam conftest.$ac_ext
58963 fi
58964
58965        rm -f conftest.tmp conftest.lnk
58966 fi
58967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
58968 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
58969   case $gl_cv_func_stat_dir_slash in
58970     *no) REPLACE_STAT=1
58971
58972 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
58973 ;;
58974   esac
58975   case $gl_cv_func_stat_file_slash in
58976     *no) REPLACE_STAT=1
58977
58978 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
58979 ;;
58980   esac
58981
58982   if test $REPLACE_STAT = 1; then
58983
58984
58985
58986
58987
58988
58989
58990
58991   gtpo_LIBOBJS="$gtpo_LIBOBJS stat.$ac_objext"
58992
58993     :
58994   fi
58995
58996
58997
58998
58999
59000           GNULIB_STAT=1
59001
59002
59003
59004
59005
59006 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
59007
59008
59009
59010
59011   STDARG_H=''
59012   NEXT_STDARG_H='<stdarg.h>'
59013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
59014 $as_echo_n "checking for va_copy... " >&6; }
59015   if ${gl_cv_func_va_copy+:} false; then :
59016   $as_echo_n "(cached) " >&6
59017 else
59018
59019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59020 /* end confdefs.h.  */
59021 #include <stdarg.h>
59022 int
59023 main ()
59024 {
59025
59026 #ifndef va_copy
59027 void (*func) (va_list, va_list) = va_copy;
59028 #endif
59029
59030   ;
59031   return 0;
59032 }
59033 _ACEOF
59034 if ac_fn_c_try_compile "$LINENO"; then :
59035   gl_cv_func_va_copy=yes
59036 else
59037   gl_cv_func_va_copy=no
59038 fi
59039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59040 fi
59041
59042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
59043 $as_echo "$gl_cv_func_va_copy" >&6; }
59044   if test $gl_cv_func_va_copy = no; then
59045                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59046 /* end confdefs.h.  */
59047 #if defined _AIX && !defined __GNUC__
59048         AIX vaccine
59049        #endif
59050
59051 _ACEOF
59052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59053   $EGREP "vaccine" >/dev/null 2>&1; then :
59054   gl_aixcc=yes
59055 else
59056   gl_aixcc=no
59057 fi
59058 rm -f conftest*
59059
59060     if test $gl_aixcc = yes; then
59061             STDARG_H=stdarg.h
59062
59063
59064
59065
59066
59067
59068
59069
59070      if test $gl_cv_have_include_next = yes; then
59071        gl_cv_next_stdarg_h='<'stdarg.h'>'
59072      else
59073        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
59074 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
59075 if ${gl_cv_next_stdarg_h+:} false; then :
59076   $as_echo_n "(cached) " >&6
59077 else
59078
59079                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59080 /* end confdefs.h.  */
59081 #include <stdarg.h>
59082
59083 _ACEOF
59084                                                                                                                         case "$host_os" in
59085                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
59086                  *)    gl_absname_cpp="$ac_cpp" ;;
59087                esac
59088
59089                case "$host_os" in
59090                  mingw*)
59091                                                                                                                                      gl_dirsep_regex='[/\\]'
59092                    ;;
59093                  *)
59094                    gl_dirsep_regex='\/'
59095                    ;;
59096                esac
59097                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
59098
59099                gl_header_literal_regex=`echo 'stdarg.h' \
59100                                         | sed -e "$gl_make_literal_regex_sed"`
59101                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
59102                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
59103                    s|^/[^/]|//&|
59104                    p
59105                    q
59106                  }'
59107                                                             gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
59108                       sed -n "$gl_absolute_header_sed"`'"'
59109
59110
59111 fi
59112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
59113 $as_echo "$gl_cv_next_stdarg_h" >&6; }
59114      fi
59115      NEXT_STDARG_H=$gl_cv_next_stdarg_h
59116
59117      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
59118        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
59119        gl_next_as_first_directive='<'stdarg.h'>'
59120      else
59121        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
59122        gl_next_as_first_directive=$gl_cv_next_stdarg_h
59123      fi
59124      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
59125
59126
59127
59128
59129             if test "$gl_cv_next_stdarg_h" = '""'; then
59130         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
59131         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
59132       fi
59133     else
59134
59135   saved_as_echo_n="$as_echo_n"
59136   as_echo_n=':'
59137   if ${gl_cv_func___va_copy+:} false; then :
59138   $as_echo_n "(cached) " >&6
59139 else
59140
59141         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59142 /* end confdefs.h.  */
59143 #include <stdarg.h>
59144 int
59145 main ()
59146 {
59147
59148 #ifndef __va_copy
59149 error, bail out
59150 #endif
59151
59152   ;
59153   return 0;
59154 }
59155 _ACEOF
59156 if ac_fn_c_try_compile "$LINENO"; then :
59157   gl_cv_func___va_copy=yes
59158 else
59159   gl_cv_func___va_copy=no
59160 fi
59161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59162 fi
59163
59164   as_echo_n="$saved_as_echo_n"
59165
59166       if test $gl_cv_func___va_copy = yes; then
59167
59168 $as_echo "#define va_copy __va_copy" >>confdefs.h
59169
59170       else
59171
59172
59173 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
59174
59175       fi
59176     fi
59177   fi
59178
59179    if test -n "$STDARG_H"; then
59180   GL_GENERATE_STDARG_H_TRUE=
59181   GL_GENERATE_STDARG_H_FALSE='#'
59182 else
59183   GL_GENERATE_STDARG_H_TRUE='#'
59184   GL_GENERATE_STDARG_H_FALSE=
59185 fi
59186
59187
59188
59189
59190
59191
59192   # Define two additional variables used in the Makefile substitution.
59193
59194   if test "$ac_cv_header_stdbool_h" = yes; then
59195     STDBOOL_H=''
59196   else
59197     STDBOOL_H='stdbool.h'
59198   fi
59199
59200    if test -n "$STDBOOL_H"; then
59201   GL_GENERATE_STDBOOL_H_TRUE=
59202   GL_GENERATE_STDBOOL_H_FALSE='#'
59203 else
59204   GL_GENERATE_STDBOOL_H_TRUE='#'
59205   GL_GENERATE_STDBOOL_H_FALSE=
59206 fi
59207
59208
59209   if test "$ac_cv_type__Bool" = yes; then
59210     HAVE__BOOL=1
59211   else
59212     HAVE__BOOL=0
59213   fi
59214
59215
59216
59217
59218
59219   STDDEF_H=
59220   if test $gt_cv_c_wchar_t = no; then
59221     HAVE_WCHAR_T=0
59222     STDDEF_H=stddef.h
59223   fi
59224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
59225 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
59226 if ${gl_cv_decl_null_works+:} false; then :
59227   $as_echo_n "(cached) " >&6
59228 else
59229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59230 /* end confdefs.h.  */
59231 #include <stddef.h>
59232       int test[2 * (sizeof NULL == sizeof (void *)) -1];
59233
59234 int
59235 main ()
59236 {
59237
59238   ;
59239   return 0;
59240 }
59241 _ACEOF
59242 if ac_fn_c_try_compile "$LINENO"; then :
59243   gl_cv_decl_null_works=yes
59244 else
59245   gl_cv_decl_null_works=no
59246 fi
59247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59248 fi
59249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
59250 $as_echo "$gl_cv_decl_null_works" >&6; }
59251   if test $gl_cv_decl_null_works = no; then
59252     REPLACE_NULL=1
59253     STDDEF_H=stddef.h
59254   fi
59255
59256    if test -n "$STDDEF_H"; then
59257   GL_GENERATE_STDDEF_H_TRUE=
59258   GL_GENERATE_STDDEF_H_FALSE='#'
59259 else
59260   GL_GENERATE_STDDEF_H_TRUE='#'
59261   GL_GENERATE_STDDEF_H_FALSE=
59262 fi
59263
59264   if test -n "$STDDEF_H"; then
59265
59266
59267
59268
59269
59270
59271
59272
59273      if test $gl_cv_have_include_next = yes; then
59274        gl_cv_next_stddef_h='<'stddef.h'>'
59275      else
59276        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
59277 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
59278 if ${gl_cv_next_stddef_h+:} false; then :
59279   $as_echo_n "(cached) " >&6
59280 else
59281
59282                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59283 /* end confdefs.h.  */
59284 #include <stddef.h>
59285
59286 _ACEOF
59287                                                                                                                         case "$host_os" in
59288                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
59289                  *)    gl_absname_cpp="$ac_cpp" ;;
59290                esac
59291
59292                case "$host_os" in
59293                  mingw*)
59294                                                                                                                                      gl_dirsep_regex='[/\\]'
59295                    ;;
59296                  *)
59297                    gl_dirsep_regex='\/'
59298                    ;;
59299                esac
59300                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
59301
59302                gl_header_literal_regex=`echo 'stddef.h' \
59303                                         | sed -e "$gl_make_literal_regex_sed"`
59304                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
59305                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
59306                    s|^/[^/]|//&|
59307                    p
59308                    q
59309                  }'
59310                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
59311                       sed -n "$gl_absolute_header_sed"`'"'
59312
59313
59314 fi
59315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
59316 $as_echo "$gl_cv_next_stddef_h" >&6; }
59317      fi
59318      NEXT_STDDEF_H=$gl_cv_next_stddef_h
59319
59320      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
59321        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
59322        gl_next_as_first_directive='<'stddef.h'>'
59323      else
59324        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
59325        gl_next_as_first_directive=$gl_cv_next_stddef_h
59326      fi
59327      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
59328
59329
59330
59331
59332   fi
59333
59334
59335
59336
59337
59338
59339
59340
59341
59342
59343
59344
59345      if test $gl_cv_have_include_next = yes; then
59346        gl_cv_next_stdio_h='<'stdio.h'>'
59347      else
59348        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
59349 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
59350 if ${gl_cv_next_stdio_h+:} false; then :
59351   $as_echo_n "(cached) " >&6
59352 else
59353
59354                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59355 /* end confdefs.h.  */
59356 #include <stdio.h>
59357
59358 _ACEOF
59359                                                                                                                         case "$host_os" in
59360                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
59361                  *)    gl_absname_cpp="$ac_cpp" ;;
59362                esac
59363
59364                case "$host_os" in
59365                  mingw*)
59366                                                                                                                                      gl_dirsep_regex='[/\\]'
59367                    ;;
59368                  *)
59369                    gl_dirsep_regex='\/'
59370                    ;;
59371                esac
59372                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
59373
59374                gl_header_literal_regex=`echo 'stdio.h' \
59375                                         | sed -e "$gl_make_literal_regex_sed"`
59376                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
59377                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
59378                    s|^/[^/]|//&|
59379                    p
59380                    q
59381                  }'
59382                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
59383                       sed -n "$gl_absolute_header_sed"`'"'
59384
59385
59386 fi
59387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
59388 $as_echo "$gl_cv_next_stdio_h" >&6; }
59389      fi
59390      NEXT_STDIO_H=$gl_cv_next_stdio_h
59391
59392      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
59393        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
59394        gl_next_as_first_directive='<'stdio.h'>'
59395      else
59396        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
59397        gl_next_as_first_directive=$gl_cv_next_stdio_h
59398      fi
59399      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
59400
59401
59402
59403
59404
59405       GNULIB_FSCANF=1
59406
59407
59408 cat >>confdefs.h <<_ACEOF
59409 #define GNULIB_FSCANF 1
59410 _ACEOF
59411
59412
59413   GNULIB_SCANF=1
59414
59415
59416 cat >>confdefs.h <<_ACEOF
59417 #define GNULIB_SCANF 1
59418 _ACEOF
59419
59420
59421   GNULIB_FGETC=1
59422   GNULIB_GETC=1
59423   GNULIB_GETCHAR=1
59424   GNULIB_FGETS=1
59425   GNULIB_FREAD=1
59426
59427
59428       GNULIB_FPRINTF=1
59429   GNULIB_PRINTF=1
59430   GNULIB_VFPRINTF=1
59431   GNULIB_VPRINTF=1
59432   GNULIB_FPUTC=1
59433   GNULIB_PUTC=1
59434   GNULIB_PUTCHAR=1
59435   GNULIB_FPUTS=1
59436   GNULIB_PUTS=1
59437   GNULIB_FWRITE=1
59438
59439
59440
59441
59442     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
59443       REPLACE_STDIO_WRITE_FUNCS=1
59444
59445
59446
59447
59448
59449
59450
59451
59452   gtpo_LIBOBJS="$gtpo_LIBOBJS stdio-write.$ac_objext"
59453
59454     fi
59455
59456
59457
59458
59459     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
59460     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
59461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
59462 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
59463 if eval \${$as_gl_Symbol+:} false; then :
59464   $as_echo_n "(cached) " >&6
59465 else
59466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59467 /* end confdefs.h.  */
59468 #include <stdio.h>
59469
59470 int
59471 main ()
59472 {
59473 #undef $gl_func
59474   (void) $gl_func;
59475   ;
59476   return 0;
59477 }
59478 _ACEOF
59479 if ac_fn_c_try_compile "$LINENO"; then :
59480   eval "$as_gl_Symbol=yes"
59481 else
59482   eval "$as_gl_Symbol=no"
59483 fi
59484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59485 fi
59486 eval ac_res=\$$as_gl_Symbol
59487                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
59488 $as_echo "$ac_res" >&6; }
59489     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
59490   cat >>confdefs.h <<_ACEOF
59491 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
59492 _ACEOF
59493
59494                      eval ac_cv_have_decl_$gl_func=yes
59495 fi
59496       done
59497
59498
59499
59500
59501
59502
59503
59504
59505
59506
59507
59508
59509      if test $gl_cv_have_include_next = yes; then
59510        gl_cv_next_stdlib_h='<'stdlib.h'>'
59511      else
59512        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
59513 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
59514 if ${gl_cv_next_stdlib_h+:} false; then :
59515   $as_echo_n "(cached) " >&6
59516 else
59517
59518                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59519 /* end confdefs.h.  */
59520 #include <stdlib.h>
59521
59522 _ACEOF
59523                                                                                                                         case "$host_os" in
59524                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
59525                  *)    gl_absname_cpp="$ac_cpp" ;;
59526                esac
59527
59528                case "$host_os" in
59529                  mingw*)
59530                                                                                                                                      gl_dirsep_regex='[/\\]'
59531                    ;;
59532                  *)
59533                    gl_dirsep_regex='\/'
59534                    ;;
59535                esac
59536                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
59537
59538                gl_header_literal_regex=`echo 'stdlib.h' \
59539                                         | sed -e "$gl_make_literal_regex_sed"`
59540                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
59541                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
59542                    s|^/[^/]|//&|
59543                    p
59544                    q
59545                  }'
59546                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
59547                       sed -n "$gl_absolute_header_sed"`'"'
59548
59549
59550 fi
59551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
59552 $as_echo "$gl_cv_next_stdlib_h" >&6; }
59553      fi
59554      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
59555
59556      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
59557        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
59558        gl_next_as_first_directive='<'stdlib.h'>'
59559      else
59560        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
59561        gl_next_as_first_directive=$gl_cv_next_stdlib_h
59562      fi
59563      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
59564
59565
59566
59567
59568
59569
59570     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
59571     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
59572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
59573 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
59574 if eval \${$as_gl_Symbol+:} false; then :
59575   $as_echo_n "(cached) " >&6
59576 else
59577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59578 /* end confdefs.h.  */
59579 #include <stdlib.h>
59580 #if HAVE_SYS_LOADAVG_H
59581 # include <sys/loadavg.h>
59582 #endif
59583 #if HAVE_RANDOM_H
59584 # include <random.h>
59585 #endif
59586
59587 int
59588 main ()
59589 {
59590 #undef $gl_func
59591   (void) $gl_func;
59592   ;
59593   return 0;
59594 }
59595 _ACEOF
59596 if ac_fn_c_try_compile "$LINENO"; then :
59597   eval "$as_gl_Symbol=yes"
59598 else
59599   eval "$as_gl_Symbol=no"
59600 fi
59601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59602 fi
59603 eval ac_res=\$$as_gl_Symbol
59604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
59605 $as_echo "$ac_res" >&6; }
59606     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
59607   cat >>confdefs.h <<_ACEOF
59608 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
59609 _ACEOF
59610
59611                      eval ac_cv_have_decl_$gl_func=yes
59612 fi
59613       done
59614
59615
59616
59617
59618
59619
59620
59621
59622   for ac_func in stpcpy
59623 do :
59624   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
59625 if test "x$ac_cv_func_stpcpy" = xyes; then :
59626   cat >>confdefs.h <<_ACEOF
59627 #define HAVE_STPCPY 1
59628 _ACEOF
59629
59630 fi
59631 done
59632
59633   if test $ac_cv_func_stpcpy = no; then
59634     HAVE_STPCPY=0
59635   fi
59636
59637   if test $HAVE_STPCPY = 0; then
59638
59639
59640
59641
59642
59643
59644
59645
59646   gtpo_LIBOBJS="$gtpo_LIBOBJS stpcpy.$ac_objext"
59647
59648
59649   :
59650
59651   fi
59652
59653
59654
59655
59656
59657           GNULIB_STPCPY=1
59658
59659
59660
59661
59662
59663 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
59664
59665
59666
59667
59668
59669
59670
59671   for ac_func in strchrnul
59672 do :
59673   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
59674 if test "x$ac_cv_func_strchrnul" = xyes; then :
59675   cat >>confdefs.h <<_ACEOF
59676 #define HAVE_STRCHRNUL 1
59677 _ACEOF
59678
59679 fi
59680 done
59681
59682   if test $ac_cv_func_strchrnul = no; then
59683     HAVE_STRCHRNUL=0
59684   else
59685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
59686 $as_echo_n "checking whether strchrnul works... " >&6; }
59687 if ${gl_cv_func_strchrnul_works+:} false; then :
59688   $as_echo_n "(cached) " >&6
59689 else
59690   if test "$cross_compiling" = yes; then :
59691            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59692 /* end confdefs.h.  */
59693
59694 #if defined __CYGWIN__
59695  #include <cygwin/version.h>
59696  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
59697   Lucky user
59698  #endif
59699 #else
59700   Lucky user
59701 #endif
59702
59703 _ACEOF
59704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59705   $EGREP "Lucky user" >/dev/null 2>&1; then :
59706   gl_cv_func_strchrnul_works="guessing yes"
59707 else
59708   gl_cv_func_strchrnul_works="guessing no"
59709 fi
59710 rm -f conftest*
59711
59712
59713 else
59714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59715 /* end confdefs.h.  */
59716
59717 #include <string.h> /* for strchrnul */
59718
59719 int
59720 main ()
59721 {
59722 const char *buf = "a";
59723       return strchrnul (buf, 'b') != buf + 1;
59724
59725   ;
59726   return 0;
59727 }
59728 _ACEOF
59729 if ac_fn_c_try_run "$LINENO"; then :
59730   gl_cv_func_strchrnul_works=yes
59731 else
59732   gl_cv_func_strchrnul_works=no
59733 fi
59734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59735   conftest.$ac_objext conftest.beam conftest.$ac_ext
59736 fi
59737
59738
59739 fi
59740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
59741 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
59742     case "$gl_cv_func_strchrnul_works" in
59743       *yes) ;;
59744       *) REPLACE_STRCHRNUL=1 ;;
59745     esac
59746   fi
59747
59748   if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
59749
59750
59751
59752
59753
59754
59755
59756
59757   gtpo_LIBOBJS="$gtpo_LIBOBJS strchrnul.$ac_objext"
59758
59759     :
59760   fi
59761
59762
59763
59764
59765
59766           GNULIB_STRCHRNUL=1
59767
59768
59769
59770
59771
59772 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
59773
59774
59775
59776
59777
59778
59779
59780
59781   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
59782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
59783 $as_echo_n "checking for working strerror function... " >&6; }
59784 if ${gl_cv_func_working_strerror+:} false; then :
59785   $as_echo_n "(cached) " >&6
59786 else
59787   if test "$cross_compiling" = yes; then :
59788   case "$host_os" in
59789                    # Guess yes on glibc systems.
59790            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
59791                    # If we don't know, assume the worst.
59792            *)      gl_cv_func_working_strerror="guessing no" ;;
59793          esac
59794
59795 else
59796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59797 /* end confdefs.h.  */
59798 #include <string.h>
59799
59800 int
59801 main ()
59802 {
59803 if (!*strerror (-2)) return 1;
59804   ;
59805   return 0;
59806 }
59807 _ACEOF
59808 if ac_fn_c_try_run "$LINENO"; then :
59809   gl_cv_func_working_strerror=yes
59810 else
59811   gl_cv_func_working_strerror=no
59812 fi
59813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59814   conftest.$ac_objext conftest.beam conftest.$ac_ext
59815 fi
59816
59817
59818 fi
59819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
59820 $as_echo "$gl_cv_func_working_strerror" >&6; }
59821     case "$gl_cv_func_working_strerror" in
59822       *yes) ;;
59823       *)
59824                         REPLACE_STRERROR=1
59825         ;;
59826     esac
59827
59828   else
59829             REPLACE_STRERROR=1
59830   fi
59831
59832   if test $REPLACE_STRERROR = 1; then
59833
59834
59835
59836
59837
59838
59839
59840
59841   gtpo_LIBOBJS="$gtpo_LIBOBJS strerror.$ac_objext"
59842
59843   fi
59844
59845
59846 cat >>confdefs.h <<_ACEOF
59847 #define GNULIB_STRERROR 1
59848 _ACEOF
59849
59850
59851
59852
59853
59854
59855
59856           GNULIB_STRERROR=1
59857
59858
59859
59860
59861
59862 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
59863
59864
59865
59866
59867
59868   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
59869
59870
59871
59872
59873
59874
59875
59876
59877   gtpo_LIBOBJS="$gtpo_LIBOBJS strerror-override.$ac_objext"
59878
59879
59880
59881
59882
59883   if test $ac_cv_header_sys_socket_h != yes; then
59884                     for ac_header in winsock2.h
59885 do :
59886   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
59887 if test "x$ac_cv_header_winsock2_h" = xyes; then :
59888   cat >>confdefs.h <<_ACEOF
59889 #define HAVE_WINSOCK2_H 1
59890 _ACEOF
59891
59892 fi
59893
59894 done
59895
59896   fi
59897   if test "$ac_cv_header_winsock2_h" = yes; then
59898     HAVE_WINSOCK2_H=1
59899     UNISTD_H_HAVE_WINSOCK2_H=1
59900     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
59901   else
59902     HAVE_WINSOCK2_H=0
59903   fi
59904
59905
59906   fi
59907   if test $gl_cond_libtool = false; then
59908     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
59909     gl_libdeps="$gl_libdeps $LIBICONV"
59910   fi
59911   if test $gl_cond_libtool = false; then
59912     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
59913     gl_libdeps="$gl_libdeps $LIBICONV"
59914   fi
59915
59916
59917
59918
59919
59920   if test $REPLACE_STRSTR = 0; then
59921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
59922 $as_echo_n "checking whether strstr works in linear time... " >&6; }
59923 if ${gl_cv_func_strstr_linear+:} false; then :
59924   $as_echo_n "(cached) " >&6
59925 else
59926   if test "$cross_compiling" = yes; then :
59927                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59928 /* end confdefs.h.  */
59929
59930 #include <features.h>
59931 #ifdef __GNU_LIBRARY__
59932  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
59933      && !(defined __i386__ || defined __x86_64__) \
59934      && !defined __UCLIBC__
59935   Lucky user
59936  #endif
59937 #endif
59938 #ifdef __CYGWIN__
59939  #include <cygwin/version.h>
59940  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
59941   Lucky user
59942  #endif
59943 #endif
59944
59945 _ACEOF
59946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59947   $EGREP "Lucky user" >/dev/null 2>&1; then :
59948   gl_cv_func_strstr_linear="guessing yes"
59949 else
59950   gl_cv_func_strstr_linear="guessing no"
59951 fi
59952 rm -f conftest*
59953
59954
59955 else
59956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59957 /* end confdefs.h.  */
59958
59959 #include <signal.h> /* for signal */
59960 #include <string.h> /* for strstr */
59961 #include <stdlib.h> /* for malloc */
59962 #include <unistd.h> /* for alarm */
59963 static void quit (int sig) { exit (sig + 128); }
59964
59965 int
59966 main ()
59967 {
59968
59969     int result = 0;
59970     size_t m = 1000000;
59971     char *haystack = (char *) malloc (2 * m + 2);
59972     char *needle = (char *) malloc (m + 2);
59973     /* Failure to compile this test due to missing alarm is okay,
59974        since all such platforms (mingw) also have quadratic strstr.  */
59975     signal (SIGALRM, quit);
59976     alarm (5);
59977     /* Check for quadratic performance.  */
59978     if (haystack && needle)
59979       {
59980         memset (haystack, 'A', 2 * m);
59981         haystack[2 * m] = 'B';
59982         haystack[2 * m + 1] = 0;
59983         memset (needle, 'A', m);
59984         needle[m] = 'B';
59985         needle[m + 1] = 0;
59986         if (!strstr (haystack, needle))
59987           result |= 1;
59988       }
59989     return result;
59990
59991   ;
59992   return 0;
59993 }
59994 _ACEOF
59995 if ac_fn_c_try_run "$LINENO"; then :
59996   gl_cv_func_strstr_linear=yes
59997 else
59998   gl_cv_func_strstr_linear=no
59999 fi
60000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
60001   conftest.$ac_objext conftest.beam conftest.$ac_ext
60002 fi
60003
60004
60005 fi
60006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
60007 $as_echo "$gl_cv_func_strstr_linear" >&6; }
60008     case "$gl_cv_func_strstr_linear" in
60009       *yes) ;;
60010       *)
60011         REPLACE_STRSTR=1
60012         ;;
60013     esac
60014   fi
60015
60016   if test $REPLACE_STRSTR = 1; then
60017
60018
60019
60020
60021
60022
60023
60024
60025   gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
60026
60027   fi
60028
60029
60030
60031   if test "$gl_cv_func_memchr_works" != yes; then
60032     REPLACE_STRSTR=1
60033   else
60034         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
60035 $as_echo_n "checking whether strstr works... " >&6; }
60036 if ${gl_cv_func_strstr_works_always+:} false; then :
60037   $as_echo_n "(cached) " >&6
60038 else
60039   if test "$cross_compiling" = yes; then :
60040                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60041 /* end confdefs.h.  */
60042
60043 #ifdef __GNU_LIBRARY__
60044  #include <features.h>
60045  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
60046      || defined __UCLIBC__
60047   Lucky user
60048  #endif
60049 #elif defined __CYGWIN__
60050  #include <cygwin/version.h>
60051  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
60052   Lucky user
60053  #endif
60054 #else
60055   Lucky user
60056 #endif
60057
60058 _ACEOF
60059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60060   $EGREP "Lucky user" >/dev/null 2>&1; then :
60061   gl_cv_func_strstr_works_always="guessing yes"
60062 else
60063   gl_cv_func_strstr_works_always="guessing no"
60064 fi
60065 rm -f conftest*
60066
60067
60068 else
60069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60070 /* end confdefs.h.  */
60071
60072 #include <string.h> /* for strstr */
60073 #define P "_EF_BF_BD"
60074 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
60075 #define NEEDLE P P P P P
60076
60077 int
60078 main ()
60079 {
60080 return !!strstr (HAYSTACK, NEEDLE);
60081
60082   ;
60083   return 0;
60084 }
60085 _ACEOF
60086 if ac_fn_c_try_run "$LINENO"; then :
60087   gl_cv_func_strstr_works_always=yes
60088 else
60089   gl_cv_func_strstr_works_always=no
60090 fi
60091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
60092   conftest.$ac_objext conftest.beam conftest.$ac_ext
60093 fi
60094
60095
60096 fi
60097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
60098 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
60099     case "$gl_cv_func_strstr_works_always" in
60100       *yes) ;;
60101       *)
60102         REPLACE_STRSTR=1
60103         ;;
60104     esac
60105   fi
60106
60107   if test $REPLACE_STRSTR = 1; then
60108
60109
60110
60111
60112
60113
60114
60115
60116   gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
60117
60118   fi
60119
60120
60121
60122
60123
60124           GNULIB_STRSTR=1
60125
60126
60127
60128
60129
60130 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
60131
60132
60133
60134
60135
60136
60137
60138
60139
60140
60141
60142
60143
60144
60145
60146
60147
60148      if test $gl_cv_have_include_next = yes; then
60149        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
60150      else
60151        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
60152 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
60153 if ${gl_cv_next_sys_stat_h+:} false; then :
60154   $as_echo_n "(cached) " >&6
60155 else
60156
60157              if test $ac_cv_header_sys_stat_h = yes; then
60158
60159
60160                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60161 /* end confdefs.h.  */
60162 #include <sys/stat.h>
60163
60164 _ACEOF
60165                                                                                                                         case "$host_os" in
60166                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
60167                  *)    gl_absname_cpp="$ac_cpp" ;;
60168                esac
60169
60170                case "$host_os" in
60171                  mingw*)
60172                                                                                                                                      gl_dirsep_regex='[/\\]'
60173                    ;;
60174                  *)
60175                    gl_dirsep_regex='\/'
60176                    ;;
60177                esac
60178                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
60179
60180                gl_header_literal_regex=`echo 'sys/stat.h' \
60181                                         | sed -e "$gl_make_literal_regex_sed"`
60182                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
60183                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
60184                    s|^/[^/]|//&|
60185                    p
60186                    q
60187                  }'
60188                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
60189                       sed -n "$gl_absolute_header_sed"`'"'
60190           else
60191                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
60192              fi
60193
60194
60195 fi
60196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
60197 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
60198      fi
60199      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
60200
60201      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
60202        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
60203        gl_next_as_first_directive='<'sys/stat.h'>'
60204      else
60205        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
60206        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
60207      fi
60208      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
60209
60210
60211
60212
60213
60214
60215
60216
60217
60218
60219
60220   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
60221
60222 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
60223
60224   fi
60225
60226       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
60227      #include <sys/stat.h>
60228 "
60229 if test "x$ac_cv_type_nlink_t" = xyes; then :
60230
60231 else
60232
60233 $as_echo "#define nlink_t int" >>confdefs.h
60234
60235 fi
60236
60237
60238
60239     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
60240     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
60241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
60242 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
60243 if eval \${$as_gl_Symbol+:} false; then :
60244   $as_echo_n "(cached) " >&6
60245 else
60246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60247 /* end confdefs.h.  */
60248 #include <sys/stat.h>
60249
60250 int
60251 main ()
60252 {
60253 #undef $gl_func
60254   (void) $gl_func;
60255   ;
60256   return 0;
60257 }
60258 _ACEOF
60259 if ac_fn_c_try_compile "$LINENO"; then :
60260   eval "$as_gl_Symbol=yes"
60261 else
60262   eval "$as_gl_Symbol=no"
60263 fi
60264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60265 fi
60266 eval ac_res=\$$as_gl_Symbol
60267                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
60268 $as_echo "$ac_res" >&6; }
60269     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
60270   cat >>confdefs.h <<_ACEOF
60271 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
60272 _ACEOF
60273
60274                      eval ac_cv_have_decl_$gl_func=yes
60275 fi
60276       done
60277
60278
60279
60280
60281
60282
60283
60284
60285
60286
60287
60288
60289
60290
60291
60292
60293
60294       if  { test "$HAVE_LIBUNISTRING" != yes \
60295     || {
60296
60297
60298
60299             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60300             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60301                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60302                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60303                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60304                          }
60305                     }
60306                }
60307
60308
60309
60310
60311        }
60312   }; then
60313     LIBUNISTRING_UNICONV_H='uniconv.h'
60314   else
60315     LIBUNISTRING_UNICONV_H=
60316   fi
60317
60318
60319
60320
60321        if  { test "$HAVE_LIBUNISTRING" != yes \
60322     || {
60323
60324
60325
60326             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60327             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60328                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60329                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60330                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60331                          }
60332                     }
60333                }
60334
60335
60336
60337
60338        }
60339   }; then
60340   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
60341   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
60342 else
60343   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
60344   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
60345 fi
60346
60347
60348
60349
60350       if  { test "$HAVE_LIBUNISTRING" != yes \
60351     || {
60352
60353
60354
60355             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60356             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60357                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60358                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60359                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60360                          }
60361                     }
60362                }
60363
60364
60365
60366
60367        }
60368   }; then
60369     LIBUNISTRING_UNILBRK_H='unilbrk.h'
60370   else
60371     LIBUNISTRING_UNILBRK_H=
60372   fi
60373
60374
60375
60376
60377
60378        if  { test "$HAVE_LIBUNISTRING" != yes \
60379     || {
60380
60381
60382
60383             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60384             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60385                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60386                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60387                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
60388                          }
60389                     }
60390                }
60391
60392
60393
60394
60395        }
60396   }; then
60397   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
60398   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
60399 else
60400   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
60401   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
60402 fi
60403
60404
60405
60406
60407        if  { test "$HAVE_LIBUNISTRING" != yes \
60408     || {
60409
60410
60411
60412             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60413             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60414                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60415                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60416                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
60417                          }
60418                     }
60419                }
60420
60421
60422
60423
60424        }
60425   }; then
60426   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
60427   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
60428 else
60429   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
60430   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
60431 fi
60432
60433
60434
60435
60436        if  { test "$HAVE_LIBUNISTRING" != yes \
60437     || {
60438
60439
60440
60441             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60442             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60443                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60444                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60445                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
60446                          }
60447                     }
60448                }
60449
60450
60451
60452
60453        }
60454   }; then
60455   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
60456   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
60457 else
60458   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
60459   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
60460 fi
60461
60462
60463
60464
60465
60466
60467
60468
60469
60470
60471
60472
60473
60474
60475      if test $gl_cv_have_include_next = yes; then
60476        gl_cv_next_unistd_h='<'unistd.h'>'
60477      else
60478        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
60479 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
60480 if ${gl_cv_next_unistd_h+:} false; then :
60481   $as_echo_n "(cached) " >&6
60482 else
60483
60484              if test $ac_cv_header_unistd_h = yes; then
60485
60486
60487                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60488 /* end confdefs.h.  */
60489 #include <unistd.h>
60490
60491 _ACEOF
60492                                                                                                                         case "$host_os" in
60493                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
60494                  *)    gl_absname_cpp="$ac_cpp" ;;
60495                esac
60496
60497                case "$host_os" in
60498                  mingw*)
60499                                                                                                                                      gl_dirsep_regex='[/\\]'
60500                    ;;
60501                  *)
60502                    gl_dirsep_regex='\/'
60503                    ;;
60504                esac
60505                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
60506
60507                gl_header_literal_regex=`echo 'unistd.h' \
60508                                         | sed -e "$gl_make_literal_regex_sed"`
60509                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
60510                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
60511                    s|^/[^/]|//&|
60512                    p
60513                    q
60514                  }'
60515                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
60516                       sed -n "$gl_absolute_header_sed"`'"'
60517           else
60518                gl_cv_next_unistd_h='<'unistd.h'>'
60519              fi
60520
60521
60522 fi
60523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
60524 $as_echo "$gl_cv_next_unistd_h" >&6; }
60525      fi
60526      NEXT_UNISTD_H=$gl_cv_next_unistd_h
60527
60528      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
60529        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
60530        gl_next_as_first_directive='<'unistd.h'>'
60531      else
60532        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
60533        gl_next_as_first_directive=$gl_cv_next_unistd_h
60534      fi
60535      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
60536
60537
60538
60539
60540   if test $ac_cv_header_unistd_h = yes; then
60541     HAVE_UNISTD_H=1
60542   else
60543     HAVE_UNISTD_H=0
60544   fi
60545
60546
60547
60548
60549
60550
60551
60552     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
60553     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
60554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
60555 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
60556 if eval \${$as_gl_Symbol+:} false; then :
60557   $as_echo_n "(cached) " >&6
60558 else
60559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60560 /* end confdefs.h.  */
60561
60562 #if HAVE_UNISTD_H
60563 # include <unistd.h>
60564 #endif
60565 /* Some systems declare various items in the wrong headers.  */
60566 #if !(defined __GLIBC__ && !defined __UCLIBC__)
60567 # include <fcntl.h>
60568 # include <stdio.h>
60569 # include <stdlib.h>
60570 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
60571 #  include <io.h>
60572 # endif
60573 #endif
60574
60575 int
60576 main ()
60577 {
60578 #undef $gl_func
60579   (void) $gl_func;
60580   ;
60581   return 0;
60582 }
60583 _ACEOF
60584 if ac_fn_c_try_compile "$LINENO"; then :
60585   eval "$as_gl_Symbol=yes"
60586 else
60587   eval "$as_gl_Symbol=no"
60588 fi
60589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60590 fi
60591 eval ac_res=\$$as_gl_Symbol
60592                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
60593 $as_echo "$ac_res" >&6; }
60594     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
60595   cat >>confdefs.h <<_ACEOF
60596 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
60597 _ACEOF
60598
60599                      eval ac_cv_have_decl_$gl_func=yes
60600 fi
60601       done
60602
60603
60604
60605
60606       if  { test "$HAVE_LIBUNISTRING" != yes \
60607     || {
60608
60609
60610
60611             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60612             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60613                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60614                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60615                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2
60616                          }
60617                     }
60618                }
60619
60620
60621
60622
60623        }
60624   }; then
60625     LIBUNISTRING_UNISTR_H='unistr.h'
60626   else
60627     LIBUNISTRING_UNISTR_H=
60628   fi
60629
60630
60631
60632
60633 cat >>confdefs.h <<_ACEOF
60634 #define GNULIB_UNISTR_U16_MBTOUC 1
60635 _ACEOF
60636
60637
60638
60639
60640        if  { test "$HAVE_LIBUNISTRING" != yes \
60641     || {
60642
60643
60644
60645             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60646             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60647                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60648                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60649                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60650                          }
60651                     }
60652                }
60653
60654
60655
60656
60657        }
60658   }; then
60659   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
60660   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
60661 else
60662   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
60663   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
60664 fi
60665
60666
60667
60668
60669        if  { test "$HAVE_LIBUNISTRING" != yes \
60670     || {
60671
60672
60673
60674             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60675             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60676                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60677                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60678                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60679                          }
60680                     }
60681                }
60682
60683
60684
60685
60686        }
60687   }; then
60688   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
60689   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
60690 else
60691   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
60692   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
60693 fi
60694
60695
60696
60697
60698        if  { test "$HAVE_LIBUNISTRING" != yes \
60699     || {
60700
60701
60702
60703             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60704             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60705                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60706                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60707                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60708                          }
60709                     }
60710                }
60711
60712
60713
60714
60715        }
60716   }; then
60717   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
60718   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
60719 else
60720   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
60721   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
60722 fi
60723
60724
60725
60726
60727 cat >>confdefs.h <<_ACEOF
60728 #define GNULIB_UNISTR_U8_MBTOUC 1
60729 _ACEOF
60730
60731
60732
60733
60734        if  { test "$HAVE_LIBUNISTRING" != yes \
60735     || {
60736
60737
60738
60739             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60740             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60741                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60742                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60743                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
60744                          }
60745                     }
60746                }
60747
60748
60749
60750
60751        }
60752   }; then
60753   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
60754   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
60755 else
60756   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
60757   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
60758 fi
60759
60760
60761
60762
60763 cat >>confdefs.h <<_ACEOF
60764 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
60765 _ACEOF
60766
60767
60768
60769
60770        if  { test "$HAVE_LIBUNISTRING" != yes \
60771     || {
60772
60773
60774
60775             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60776             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60777                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60778                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60779                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
60780                          }
60781                     }
60782                }
60783
60784
60785
60786
60787        }
60788   }; then
60789   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
60790   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
60791 else
60792   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
60793   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
60794 fi
60795
60796
60797
60798
60799 cat >>confdefs.h <<_ACEOF
60800 #define GNULIB_UNISTR_U8_MBTOUCR 1
60801 _ACEOF
60802
60803
60804
60805
60806        if  { test "$HAVE_LIBUNISTRING" != yes \
60807     || {
60808
60809
60810
60811             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60812             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60813                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60814                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60815                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60816                          }
60817                     }
60818                }
60819
60820
60821
60822
60823        }
60824   }; then
60825   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
60826   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
60827 else
60828   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
60829   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
60830 fi
60831
60832
60833
60834
60835        if  { test "$HAVE_LIBUNISTRING" != yes \
60836     || {
60837
60838
60839
60840             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60841             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60842                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60843                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60844                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60845                          }
60846                     }
60847                }
60848
60849
60850
60851
60852        }
60853   }; then
60854   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
60855   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
60856 else
60857   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
60858   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
60859 fi
60860
60861
60862
60863
60864 cat >>confdefs.h <<_ACEOF
60865 #define GNULIB_UNISTR_U8_UCTOMB 1
60866 _ACEOF
60867
60868
60869
60870
60871        if  { test "$HAVE_LIBUNISTRING" != yes \
60872     || {
60873
60874
60875
60876             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60877             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60878                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60879                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60880                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60881                          }
60882                     }
60883                }
60884
60885
60886
60887
60888        }
60889   }; then
60890   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
60891   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
60892 else
60893   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
60894   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
60895 fi
60896
60897
60898
60899
60900       if  { test "$HAVE_LIBUNISTRING" != yes \
60901     || {
60902
60903
60904
60905             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60906             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60907                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60908                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60909                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60910                          }
60911                     }
60912                }
60913
60914
60915
60916
60917        }
60918   }; then
60919     LIBUNISTRING_UNITYPES_H='unitypes.h'
60920   else
60921     LIBUNISTRING_UNITYPES_H=
60922   fi
60923
60924
60925
60926
60927       if  { test "$HAVE_LIBUNISTRING" != yes \
60928     || {
60929
60930
60931
60932             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60933             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60934                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60935                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60936                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
60937                          }
60938                     }
60939                }
60940
60941
60942
60943
60944        }
60945   }; then
60946     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
60947   else
60948     LIBUNISTRING_UNIWIDTH_H=
60949   fi
60950
60951
60952
60953
60954        if  { test "$HAVE_LIBUNISTRING" != yes \
60955     || {
60956
60957
60958
60959             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
60960             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
60961                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
60962                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
60963                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
60964                          }
60965                     }
60966                }
60967
60968
60969
60970
60971        }
60972   }; then
60973   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
60974   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
60975 else
60976   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
60977   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
60978 fi
60979
60980
60981
60982
60983 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
60984
60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
60998
60999
61000
61001
61002
61003
61004   if test $ac_cv_func_vasnprintf = no; then
61005
61006
61007
61008
61009
61010
61011
61012
61013
61014
61015   gtpo_LIBOBJS="$gtpo_LIBOBJS vasnprintf.$ac_objext"
61016
61017
61018
61019
61020
61021
61022
61023
61024
61025   gtpo_LIBOBJS="$gtpo_LIBOBJS printf-args.$ac_objext"
61026
61027
61028
61029
61030
61031
61032
61033
61034
61035   gtpo_LIBOBJS="$gtpo_LIBOBJS printf-parse.$ac_objext"
61036
61037
61038
61039
61040
61041
61042
61043
61044
61045   gtpo_LIBOBJS="$gtpo_LIBOBJS asnprintf.$ac_objext"
61046
61047   if test $ac_cv_func_vasnprintf = yes; then
61048
61049 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
61050
61051   fi
61052
61053
61054
61055
61056
61057
61058
61059
61060
61061
61062
61063   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
61064 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
61065
61066 else
61067
61068 $as_echo "#define ptrdiff_t long" >>confdefs.h
61069
61070
61071 fi
61072
61073
61074
61075
61076
61077
61078
61079   fi
61080
61081
61082   for ac_func in vasprintf
61083 do :
61084   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
61085 if test "x$ac_cv_func_vasprintf" = xyes; then :
61086   cat >>confdefs.h <<_ACEOF
61087 #define HAVE_VASPRINTF 1
61088 _ACEOF
61089
61090 fi
61091 done
61092
61093   if test $ac_cv_func_vasprintf = no; then
61094
61095
61096
61097
61098
61099
61100
61101
61102
61103   gtpo_LIBOBJS="$gtpo_LIBOBJS vasprintf.$ac_objext"
61104
61105
61106
61107
61108
61109
61110
61111
61112
61113   gtpo_LIBOBJS="$gtpo_LIBOBJS asprintf.$ac_objext"
61114
61115
61116   if test $ac_cv_func_vasprintf = yes; then
61117     REPLACE_VASPRINTF=1
61118   else
61119     HAVE_VASPRINTF=0
61120   fi
61121
61122
61123
61124
61125
61126
61127
61128
61129   fi
61130
61131
61132
61133
61134
61135
61136           GNULIB_VASPRINTF=1
61137
61138
61139
61140
61141
61142 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
61143
61144
61145
61146
61147
61148   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
61149
61150
61151
61152   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
61153
61154
61155
61156
61157
61158
61159
61160
61161
61162
61163
61164
61165
61166      if test $gl_cv_have_include_next = yes; then
61167        gl_cv_next_wchar_h='<'wchar.h'>'
61168      else
61169        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
61170 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
61171 if ${gl_cv_next_wchar_h+:} false; then :
61172   $as_echo_n "(cached) " >&6
61173 else
61174
61175              if test $ac_cv_header_wchar_h = yes; then
61176
61177
61178                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61179 /* end confdefs.h.  */
61180 #include <wchar.h>
61181
61182 _ACEOF
61183                                                                                                                         case "$host_os" in
61184                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
61185                  *)    gl_absname_cpp="$ac_cpp" ;;
61186                esac
61187
61188                case "$host_os" in
61189                  mingw*)
61190                                                                                                                                      gl_dirsep_regex='[/\\]'
61191                    ;;
61192                  *)
61193                    gl_dirsep_regex='\/'
61194                    ;;
61195                esac
61196                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
61197
61198                gl_header_literal_regex=`echo 'wchar.h' \
61199                                         | sed -e "$gl_make_literal_regex_sed"`
61200                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
61201                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
61202                    s|^/[^/]|//&|
61203                    p
61204                    q
61205                  }'
61206                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
61207                       sed -n "$gl_absolute_header_sed"`'"'
61208           else
61209                gl_cv_next_wchar_h='<'wchar.h'>'
61210              fi
61211
61212
61213 fi
61214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
61215 $as_echo "$gl_cv_next_wchar_h" >&6; }
61216      fi
61217      NEXT_WCHAR_H=$gl_cv_next_wchar_h
61218
61219      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
61220        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
61221        gl_next_as_first_directive='<'wchar.h'>'
61222      else
61223        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
61224        gl_next_as_first_directive=$gl_cv_next_wchar_h
61225      fi
61226      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
61227
61228
61229
61230
61231   if test $ac_cv_header_wchar_h = yes; then
61232     HAVE_WCHAR_H=1
61233   else
61234     HAVE_WCHAR_H=0
61235   fi
61236
61237
61238
61239
61240
61241   if test $gt_cv_c_wint_t = yes; then
61242     HAVE_WINT_T=1
61243   else
61244     HAVE_WINT_T=0
61245   fi
61246
61247
61248
61249     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
61250     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
61251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
61252 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
61253 if eval \${$as_gl_Symbol+:} false; then :
61254   $as_echo_n "(cached) " >&6
61255 else
61256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61257 /* end confdefs.h.  */
61258
61259 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
61260    <wchar.h>.
61261    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
61262    included before <wchar.h>.  */
61263 #if !(defined __GLIBC__ && !defined __UCLIBC__)
61264 # include <stddef.h>
61265 # include <stdio.h>
61266 # include <time.h>
61267 #endif
61268 #include <wchar.h>
61269
61270 int
61271 main ()
61272 {
61273 #undef $gl_func
61274   (void) $gl_func;
61275   ;
61276   return 0;
61277 }
61278 _ACEOF
61279 if ac_fn_c_try_compile "$LINENO"; then :
61280   eval "$as_gl_Symbol=yes"
61281 else
61282   eval "$as_gl_Symbol=no"
61283 fi
61284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61285 fi
61286 eval ac_res=\$$as_gl_Symbol
61287                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
61288 $as_echo "$ac_res" >&6; }
61289     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
61290   cat >>confdefs.h <<_ACEOF
61291 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
61292 _ACEOF
61293
61294                      eval ac_cv_have_decl_$gl_func=yes
61295 fi
61296       done
61297
61298
61299
61300
61301
61302
61303
61304   if test $ac_cv_func_iswcntrl = yes; then
61305     HAVE_ISWCNTRL=1
61306   else
61307     HAVE_ISWCNTRL=0
61308   fi
61309
61310
61311
61312   if test $gt_cv_c_wint_t = yes; then
61313     HAVE_WINT_T=1
61314   else
61315     HAVE_WINT_T=0
61316   fi
61317
61318
61319
61320
61321
61322
61323
61324
61325
61326
61327
61328      if test $gl_cv_have_include_next = yes; then
61329        gl_cv_next_wctype_h='<'wctype.h'>'
61330      else
61331        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
61332 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
61333 if ${gl_cv_next_wctype_h+:} false; then :
61334   $as_echo_n "(cached) " >&6
61335 else
61336
61337              if test $ac_cv_header_wctype_h = yes; then
61338
61339
61340                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61341 /* end confdefs.h.  */
61342 #include <wctype.h>
61343
61344 _ACEOF
61345                                                                                                                         case "$host_os" in
61346                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
61347                  *)    gl_absname_cpp="$ac_cpp" ;;
61348                esac
61349
61350                case "$host_os" in
61351                  mingw*)
61352                                                                                                                                      gl_dirsep_regex='[/\\]'
61353                    ;;
61354                  *)
61355                    gl_dirsep_regex='\/'
61356                    ;;
61357                esac
61358                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
61359
61360                gl_header_literal_regex=`echo 'wctype.h' \
61361                                         | sed -e "$gl_make_literal_regex_sed"`
61362                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
61363                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
61364                    s|^/[^/]|//&|
61365                    p
61366                    q
61367                  }'
61368                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
61369                       sed -n "$gl_absolute_header_sed"`'"'
61370           else
61371                gl_cv_next_wctype_h='<'wctype.h'>'
61372              fi
61373
61374
61375 fi
61376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
61377 $as_echo "$gl_cv_next_wctype_h" >&6; }
61378      fi
61379      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
61380
61381      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
61382        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
61383        gl_next_as_first_directive='<'wctype.h'>'
61384      else
61385        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
61386        gl_next_as_first_directive=$gl_cv_next_wctype_h
61387      fi
61388      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
61389
61390
61391
61392
61393   if test $ac_cv_header_wctype_h = yes; then
61394     if test $ac_cv_func_iswcntrl = yes; then
61395                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
61396 $as_echo_n "checking whether iswcntrl works... " >&6; }
61397 if ${gl_cv_func_iswcntrl_works+:} false; then :
61398   $as_echo_n "(cached) " >&6
61399 else
61400
61401           if test "$cross_compiling" = yes; then :
61402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61403 /* end confdefs.h.  */
61404 #include <stdlib.h>
61405                           #if __GNU_LIBRARY__ == 1
61406                           Linux libc5 i18n is broken.
61407                           #endif
61408 int
61409 main ()
61410 {
61411
61412   ;
61413   return 0;
61414 }
61415 _ACEOF
61416 if ac_fn_c_try_compile "$LINENO"; then :
61417   gl_cv_func_iswcntrl_works="guessing yes"
61418 else
61419   gl_cv_func_iswcntrl_works="guessing no"
61420 fi
61421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61422
61423 else
61424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61425 /* end confdefs.h.  */
61426
61427                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
61428                   included before <wchar.h>.
61429                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
61430                   must be included before <wchar.h>.  */
61431                #include <stddef.h>
61432                #include <stdio.h>
61433                #include <time.h>
61434                #include <wchar.h>
61435                #include <wctype.h>
61436                int main () { return iswprint ('x') == 0; }
61437
61438 _ACEOF
61439 if ac_fn_c_try_run "$LINENO"; then :
61440   gl_cv_func_iswcntrl_works=yes
61441 else
61442   gl_cv_func_iswcntrl_works=no
61443 fi
61444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
61445   conftest.$ac_objext conftest.beam conftest.$ac_ext
61446 fi
61447
61448
61449 fi
61450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
61451 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
61452     fi
61453     HAVE_WCTYPE_H=1
61454   else
61455     HAVE_WCTYPE_H=0
61456   fi
61457
61458
61459   case "$gl_cv_func_iswcntrl_works" in
61460     *yes) REPLACE_ISWCNTRL=0 ;;
61461     *)    REPLACE_ISWCNTRL=1 ;;
61462   esac
61463
61464
61465   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
61466         :
61467   fi
61468
61469   if test $REPLACE_ISWCNTRL = 1; then
61470     REPLACE_TOWLOWER=1
61471   else
61472     for ac_func in towlower
61473 do :
61474   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
61475 if test "x$ac_cv_func_towlower" = xyes; then :
61476   cat >>confdefs.h <<_ACEOF
61477 #define HAVE_TOWLOWER 1
61478 _ACEOF
61479
61480 fi
61481 done
61482
61483     if test $ac_cv_func_towlower = yes; then
61484       REPLACE_TOWLOWER=0
61485     else
61486       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
61487              included before <wchar.h>.
61488              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
61489              must be included before <wchar.h>.  */
61490           #include <stddef.h>
61491           #include <stdio.h>
61492           #include <time.h>
61493           #include <wchar.h>
61494           #if HAVE_WCTYPE_H
61495           # include <wctype.h>
61496           #endif
61497
61498 "
61499 if test "x$ac_cv_have_decl_towlower" = xyes; then :
61500   ac_have_decl=1
61501 else
61502   ac_have_decl=0
61503 fi
61504
61505 cat >>confdefs.h <<_ACEOF
61506 #define HAVE_DECL_TOWLOWER $ac_have_decl
61507 _ACEOF
61508
61509       if test $ac_cv_have_decl_towlower = yes; then
61510                                 REPLACE_TOWLOWER=1
61511       else
61512         REPLACE_TOWLOWER=0
61513       fi
61514     fi
61515   fi
61516
61517
61518   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
61519         :
61520   fi
61521
61522           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
61523 $as_echo_n "checking for wctype_t... " >&6; }
61524 if ${gl_cv_type_wctype_t+:} false; then :
61525   $as_echo_n "(cached) " >&6
61526 else
61527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61528 /* end confdefs.h.  */
61529 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
61530                included before <wchar.h>.
61531                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
61532                must be included before <wchar.h>.  */
61533             #include <stddef.h>
61534             #include <stdio.h>
61535             #include <time.h>
61536             #include <wchar.h>
61537             #if HAVE_WCTYPE_H
61538             # include <wctype.h>
61539             #endif
61540             wctype_t a;
61541
61542 int
61543 main ()
61544 {
61545
61546   ;
61547   return 0;
61548 }
61549 _ACEOF
61550 if ac_fn_c_try_compile "$LINENO"; then :
61551   gl_cv_type_wctype_t=yes
61552 else
61553   gl_cv_type_wctype_t=no
61554 fi
61555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61556
61557 fi
61558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
61559 $as_echo "$gl_cv_type_wctype_t" >&6; }
61560   if test $gl_cv_type_wctype_t = no; then
61561     HAVE_WCTYPE_T=0
61562   fi
61563
61564       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
61565 $as_echo_n "checking for wctrans_t... " >&6; }
61566 if ${gl_cv_type_wctrans_t+:} false; then :
61567   $as_echo_n "(cached) " >&6
61568 else
61569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61570 /* end confdefs.h.  */
61571 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
61572                included before <wchar.h>.
61573                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
61574                must be included before <wchar.h>.  */
61575             #include <stddef.h>
61576             #include <stdio.h>
61577             #include <time.h>
61578             #include <wchar.h>
61579             #include <wctype.h>
61580             wctrans_t a;
61581
61582 int
61583 main ()
61584 {
61585
61586   ;
61587   return 0;
61588 }
61589 _ACEOF
61590 if ac_fn_c_try_compile "$LINENO"; then :
61591   gl_cv_type_wctrans_t=yes
61592 else
61593   gl_cv_type_wctrans_t=no
61594 fi
61595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61596
61597 fi
61598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
61599 $as_echo "$gl_cv_type_wctrans_t" >&6; }
61600   if test $gl_cv_type_wctrans_t = no; then
61601     HAVE_WCTRANS_T=0
61602   fi
61603
61604
61605     for gl_func in wctype iswctype wctrans towctrans     ; do
61606     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
61607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
61608 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
61609 if eval \${$as_gl_Symbol+:} false; then :
61610   $as_echo_n "(cached) " >&6
61611 else
61612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61613 /* end confdefs.h.  */
61614
61615 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
61616    <wchar.h>.
61617    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
61618    included before <wchar.h>.  */
61619 #if !(defined __GLIBC__ && !defined __UCLIBC__)
61620 # include <stddef.h>
61621 # include <stdio.h>
61622 # include <time.h>
61623 # include <wchar.h>
61624 #endif
61625 #include <wctype.h>
61626
61627 int
61628 main ()
61629 {
61630 #undef $gl_func
61631   (void) $gl_func;
61632   ;
61633   return 0;
61634 }
61635 _ACEOF
61636 if ac_fn_c_try_compile "$LINENO"; then :
61637   eval "$as_gl_Symbol=yes"
61638 else
61639   eval "$as_gl_Symbol=no"
61640 fi
61641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61642 fi
61643 eval ac_res=\$$as_gl_Symbol
61644                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
61645 $as_echo "$ac_res" >&6; }
61646     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
61647   cat >>confdefs.h <<_ACEOF
61648 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
61649 _ACEOF
61650
61651                      eval ac_cv_have_decl_$gl_func=yes
61652 fi
61653       done
61654
61655
61656
61657
61658
61659
61660
61661
61662
61663
61664
61665
61666
61667   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
61668 /* AIX 3.2.5 declares wcwidth in <string.h>. */
61669 #include <string.h>
61670 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
61671    <wchar.h>.
61672    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
61673    before <wchar.h>.  */
61674 #include <stddef.h>
61675 #include <stdio.h>
61676 #include <time.h>
61677 #include <wchar.h>
61678
61679 "
61680 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
61681   ac_have_decl=1
61682 else
61683   ac_have_decl=0
61684 fi
61685
61686 cat >>confdefs.h <<_ACEOF
61687 #define HAVE_DECL_WCWIDTH $ac_have_decl
61688 _ACEOF
61689
61690   if test $ac_cv_have_decl_wcwidth != yes; then
61691     HAVE_DECL_WCWIDTH=0
61692   fi
61693
61694   if test $ac_cv_func_wcwidth = yes; then
61695     HAVE_WCWIDTH=1
61696                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
61697 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
61698 if ${gl_cv_func_wcwidth_works+:} false; then :
61699   $as_echo_n "(cached) " >&6
61700 else
61701
61702         if test "$cross_compiling" = yes; then :
61703
61704            case "$host_os" in
61705                      # Guess yes on glibc and AIX 7 systems.
61706              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
61707              *)                  gl_cv_func_wcwidth_works="guessing no";;
61708            esac
61709
61710 else
61711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61712 /* end confdefs.h.  */
61713
61714 #include <locale.h>
61715 /* AIX 3.2.5 declares wcwidth in <string.h>. */
61716 #include <string.h>
61717 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
61718    <wchar.h>.
61719    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
61720    before <wchar.h>.  */
61721 #include <stddef.h>
61722 #include <stdio.h>
61723 #include <time.h>
61724 #include <wchar.h>
61725 #if !HAVE_DECL_WCWIDTH
61726 extern
61727 # ifdef __cplusplus
61728 "C"
61729 # endif
61730 int wcwidth (int);
61731 #endif
61732 int main ()
61733 {
61734   int result = 0;
61735   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
61736     {
61737       if (wcwidth (0x0301) > 0)
61738         result |= 1;
61739       if (wcwidth (0x05B0) > 0)
61740         result |= 2;
61741       if (wcwidth (0x200B) > 0)
61742         result |= 4;
61743     }
61744   return result;
61745 }
61746 _ACEOF
61747 if ac_fn_c_try_run "$LINENO"; then :
61748   gl_cv_func_wcwidth_works=yes
61749 else
61750   gl_cv_func_wcwidth_works=no
61751 fi
61752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
61753   conftest.$ac_objext conftest.beam conftest.$ac_ext
61754 fi
61755
61756
61757 fi
61758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
61759 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
61760     case "$gl_cv_func_wcwidth_works" in
61761       *yes) ;;
61762       *no) REPLACE_WCWIDTH=1 ;;
61763     esac
61764   else
61765     HAVE_WCWIDTH=0
61766   fi
61767
61768   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
61769
61770
61771
61772
61773
61774
61775
61776
61777   gtpo_LIBOBJS="$gtpo_LIBOBJS wcwidth.$ac_objext"
61778
61779   fi
61780
61781
61782
61783
61784
61785           GNULIB_WCWIDTH=1
61786
61787
61788
61789
61790
61791 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
61792
61793
61794
61795
61796
61797   for ac_header in stdint.h
61798 do :
61799   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
61800 if test "x$ac_cv_header_stdint_h" = xyes; then :
61801   cat >>confdefs.h <<_ACEOF
61802 #define HAVE_STDINT_H 1
61803 _ACEOF
61804
61805 fi
61806
61807 done
61808
61809
61810   :
61811
61812
61813   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
61814
61815   # End of code from modules
61816
61817
61818
61819
61820
61821
61822
61823
61824
61825   gltests_libdeps=
61826   gltests_ltlibdeps=
61827
61828
61829
61830
61831
61832
61833
61834
61835
61836   gl_source_base='tests'
61837   gtpotests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
61838
61839   gl_module_indicator_condition=$gtpotests_WITNESS
61840
61841
61842
61843
61844
61845
61846
61847
61848
61849
61850
61851 for ac_header in pwd.h
61852 do :
61853   ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
61854 if test "x$ac_cv_header_pwd_h" = xyes; then :
61855   cat >>confdefs.h <<_ACEOF
61856 #define HAVE_PWD_H 1
61857 _ACEOF
61858
61859 fi
61860
61861 done
61862
61863
61864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
61865 $as_echo_n "checking for inline... " >&6; }
61866 if ${ac_cv_c_inline+:} false; then :
61867   $as_echo_n "(cached) " >&6
61868 else
61869   ac_cv_c_inline=no
61870 for ac_kw in inline __inline__ __inline; do
61871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61872 /* end confdefs.h.  */
61873 #ifndef __cplusplus
61874 typedef int foo_t;
61875 static $ac_kw foo_t static_foo () {return 0; }
61876 $ac_kw foo_t foo () {return 0; }
61877 #endif
61878
61879 _ACEOF
61880 if ac_fn_c_try_compile "$LINENO"; then :
61881   ac_cv_c_inline=$ac_kw
61882 fi
61883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61884   test "$ac_cv_c_inline" != no && break
61885 done
61886
61887 fi
61888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
61889 $as_echo "$ac_cv_c_inline" >&6; }
61890
61891 case $ac_cv_c_inline in
61892   inline | yes) ;;
61893   *)
61894     case $ac_cv_c_inline in
61895       no) ac_val=;;
61896       *) ac_val=$ac_cv_c_inline;;
61897     esac
61898     cat >>confdefs.h <<_ACEOF
61899 #ifndef __cplusplus
61900 #define inline $ac_val
61901 #endif
61902 _ACEOF
61903     ;;
61904 esac
61905
61906
61907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
61908 $as_echo_n "checking for unsigned long long int... " >&6; }
61909 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
61910   $as_echo_n "(cached) " >&6
61911 else
61912   ac_cv_type_unsigned_long_long_int=yes
61913      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
61914        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61915 /* end confdefs.h.  */
61916
61917   /* For now, do not test the preprocessor; as of 2007 there are too many
61918          implementations with broken preprocessors.  Perhaps this can
61919          be revisited in 2012.  In the meantime, code should not expect
61920          #if to work with literals wider than 32 bits.  */
61921       /* Test literals.  */
61922       long long int ll = 9223372036854775807ll;
61923       long long int nll = -9223372036854775807LL;
61924       unsigned long long int ull = 18446744073709551615ULL;
61925       /* Test constant expressions.   */
61926       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
61927                      ? 1 : -1)];
61928       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
61929                      ? 1 : -1)];
61930       int i = 63;
61931 int
61932 main ()
61933 {
61934 /* Test availability of runtime routines for shift and division.  */
61935       long long int llmax = 9223372036854775807ll;
61936       unsigned long long int ullmax = 18446744073709551615ull;
61937       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
61938               | (llmax / ll) | (llmax % ll)
61939               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
61940               | (ullmax / ull) | (ullmax % ull));
61941   ;
61942   return 0;
61943 }
61944
61945 _ACEOF
61946 if ac_fn_c_try_link "$LINENO"; then :
61947
61948 else
61949   ac_cv_type_unsigned_long_long_int=no
61950 fi
61951 rm -f core conftest.err conftest.$ac_objext \
61952     conftest$ac_exeext conftest.$ac_ext
61953      fi
61954 fi
61955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
61956 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
61957   if test $ac_cv_type_unsigned_long_long_int = yes; then
61958
61959 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
61960
61961   fi
61962
61963 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
61964 if test "x$ac_cv_type_size_t" = xyes; then :
61965
61966 else
61967
61968 cat >>confdefs.h <<_ACEOF
61969 #define size_t unsigned int
61970 _ACEOF
61971
61972 fi
61973
61974 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
61975 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
61976
61977 cat >>confdefs.h <<_ACEOF
61978 #define HAVE_PTRDIFF_T 1
61979 _ACEOF
61980
61981
61982 fi
61983
61984
61985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
61986 $as_echo_n "checking for ssize_t... " >&6; }
61987 if ${gt_cv_ssize_t+:} false; then :
61988   $as_echo_n "(cached) " >&6
61989 else
61990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61991 /* end confdefs.h.  */
61992 #include <sys/types.h>
61993 int
61994 main ()
61995 {
61996 int x = sizeof (ssize_t *) + sizeof (ssize_t);
61997             return !x;
61998   ;
61999   return 0;
62000 }
62001 _ACEOF
62002 if ac_fn_c_try_compile "$LINENO"; then :
62003   gt_cv_ssize_t=yes
62004 else
62005   gt_cv_ssize_t=no
62006 fi
62007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62008 fi
62009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
62010 $as_echo "$gt_cv_ssize_t" >&6; }
62011   if test $gt_cv_ssize_t = no; then
62012
62013 $as_echo "#define ssize_t int" >>confdefs.h
62014
62015   fi
62016
62017 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
62018 if test "x$ac_cv_type_pid_t" = xyes; then :
62019
62020 else
62021
62022 cat >>confdefs.h <<_ACEOF
62023 #define pid_t int
62024 _ACEOF
62025
62026 fi
62027
62028
62029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
62030 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
62031 if ${ac_cv_gnu_library_2_1+:} false; then :
62032   $as_echo_n "(cached) " >&6
62033 else
62034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62035 /* end confdefs.h.  */
62036
62037 #include <features.h>
62038 #ifdef __GNU_LIBRARY__
62039  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
62040   Lucky GNU user
62041  #endif
62042 #endif
62043 #ifdef __UCLIBC__
62044  Lucky user
62045 #endif
62046
62047 _ACEOF
62048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62049   $EGREP "Lucky" >/dev/null 2>&1; then :
62050   ac_cv_gnu_library_2_1=yes
62051 else
62052   ac_cv_gnu_library_2_1=no
62053 fi
62054 rm -f conftest*
62055
62056
62057
62058 fi
62059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
62060 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
62061
62062     GLIBC21="$ac_cv_gnu_library_2_1"
62063
62064
62065 if test $GLIBC21 = yes; then
62066   ac_fn_c_check_member "$LINENO" "struct __locale_struct" "__names" "ac_cv_member_struct___locale_struct___names" "#include <xlocale.h>
62067 "
62068 if test "x$ac_cv_member_struct___locale_struct___names" = xyes; then :
62069
62070 cat >>confdefs.h <<_ACEOF
62071 #define HAVE_STRUCT___LOCALE_STRUCT___NAMES 1
62072 _ACEOF
62073
62074
62075 fi
62076
62077 fi
62078
62079 for ac_func in select
62080 do :
62081   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
62082 if test "x$ac_cv_func_select" = xyes; then :
62083   cat >>confdefs.h <<_ACEOF
62084 #define HAVE_SELECT 1
62085 _ACEOF
62086
62087 fi
62088 done
62089
62090 for ac_header in vfork.h
62091 do :
62092   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
62093 if test "x$ac_cv_header_vfork_h" = xyes; then :
62094   cat >>confdefs.h <<_ACEOF
62095 #define HAVE_VFORK_H 1
62096 _ACEOF
62097
62098 fi
62099
62100 done
62101
62102 for ac_func in fork vfork
62103 do :
62104   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62105 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
62106 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
62107   cat >>confdefs.h <<_ACEOF
62108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62109 _ACEOF
62110
62111 fi
62112 done
62113
62114 if test "x$ac_cv_func_fork" = xyes; then
62115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
62116 $as_echo_n "checking for working fork... " >&6; }
62117 if ${ac_cv_func_fork_works+:} false; then :
62118   $as_echo_n "(cached) " >&6
62119 else
62120   if test "$cross_compiling" = yes; then :
62121   ac_cv_func_fork_works=cross
62122 else
62123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62124 /* end confdefs.h.  */
62125 $ac_includes_default
62126 int
62127 main ()
62128 {
62129
62130           /* By Ruediger Kuhlmann. */
62131           return fork () < 0;
62132
62133   ;
62134   return 0;
62135 }
62136 _ACEOF
62137 if ac_fn_c_try_run "$LINENO"; then :
62138   ac_cv_func_fork_works=yes
62139 else
62140   ac_cv_func_fork_works=no
62141 fi
62142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62143   conftest.$ac_objext conftest.beam conftest.$ac_ext
62144 fi
62145
62146 fi
62147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
62148 $as_echo "$ac_cv_func_fork_works" >&6; }
62149
62150 else
62151   ac_cv_func_fork_works=$ac_cv_func_fork
62152 fi
62153 if test "x$ac_cv_func_fork_works" = xcross; then
62154   case $host in
62155     *-*-amigaos* | *-*-msdosdjgpp*)
62156       # Override, as these systems have only a dummy fork() stub
62157       ac_cv_func_fork_works=no
62158       ;;
62159     *)
62160       ac_cv_func_fork_works=yes
62161       ;;
62162   esac
62163   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
62164 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
62165 fi
62166 ac_cv_func_vfork_works=$ac_cv_func_vfork
62167 if test "x$ac_cv_func_vfork" = xyes; then
62168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
62169 $as_echo_n "checking for working vfork... " >&6; }
62170 if ${ac_cv_func_vfork_works+:} false; then :
62171   $as_echo_n "(cached) " >&6
62172 else
62173   if test "$cross_compiling" = yes; then :
62174   ac_cv_func_vfork_works=cross
62175 else
62176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62177 /* end confdefs.h.  */
62178 /* Thanks to Paul Eggert for this test.  */
62179 $ac_includes_default
62180 #include <sys/wait.h>
62181 #ifdef HAVE_VFORK_H
62182 # include <vfork.h>
62183 #endif
62184 /* On some sparc systems, changes by the child to local and incoming
62185    argument registers are propagated back to the parent.  The compiler
62186    is told about this with #include <vfork.h>, but some compilers
62187    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
62188    static variable whose address is put into a register that is
62189    clobbered by the vfork.  */
62190 static void
62191 #ifdef __cplusplus
62192 sparc_address_test (int arg)
62193 # else
62194 sparc_address_test (arg) int arg;
62195 #endif
62196 {
62197   static pid_t child;
62198   if (!child) {
62199     child = vfork ();
62200     if (child < 0) {
62201       perror ("vfork");
62202       _exit(2);
62203     }
62204     if (!child) {
62205       arg = getpid();
62206       write(-1, "", 0);
62207       _exit (arg);
62208     }
62209   }
62210 }
62211
62212 int
62213 main ()
62214 {
62215   pid_t parent = getpid ();
62216   pid_t child;
62217
62218   sparc_address_test (0);
62219
62220   child = vfork ();
62221
62222   if (child == 0) {
62223     /* Here is another test for sparc vfork register problems.  This
62224        test uses lots of local variables, at least as many local
62225        variables as main has allocated so far including compiler
62226        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
62227        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
62228        reuse the register of parent for one of the local variables,
62229        since it will think that parent can't possibly be used any more
62230        in this routine.  Assigning to the local variable will thus
62231        munge parent in the parent process.  */
62232     pid_t
62233       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
62234       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
62235     /* Convince the compiler that p..p7 are live; otherwise, it might
62236        use the same hardware register for all 8 local variables.  */
62237     if (p != p1 || p != p2 || p != p3 || p != p4
62238         || p != p5 || p != p6 || p != p7)
62239       _exit(1);
62240
62241     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
62242        from child file descriptors.  If the child closes a descriptor
62243        before it execs or exits, this munges the parent's descriptor
62244        as well.  Test for this by closing stdout in the child.  */
62245     _exit(close(fileno(stdout)) != 0);
62246   } else {
62247     int status;
62248     struct stat st;
62249
62250     while (wait(&status) != child)
62251       ;
62252     return (
62253          /* Was there some problem with vforking?  */
62254          child < 0
62255
62256          /* Did the child fail?  (This shouldn't happen.)  */
62257          || status
62258
62259          /* Did the vfork/compiler bug occur?  */
62260          || parent != getpid()
62261
62262          /* Did the file descriptor bug occur?  */
62263          || fstat(fileno(stdout), &st) != 0
62264          );
62265   }
62266 }
62267 _ACEOF
62268 if ac_fn_c_try_run "$LINENO"; then :
62269   ac_cv_func_vfork_works=yes
62270 else
62271   ac_cv_func_vfork_works=no
62272 fi
62273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62274   conftest.$ac_objext conftest.beam conftest.$ac_ext
62275 fi
62276
62277 fi
62278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
62279 $as_echo "$ac_cv_func_vfork_works" >&6; }
62280
62281 fi;
62282 if test "x$ac_cv_func_fork_works" = xcross; then
62283   ac_cv_func_vfork_works=$ac_cv_func_vfork
62284   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
62285 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
62286 fi
62287
62288 if test "x$ac_cv_func_vfork_works" = xyes; then
62289
62290 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
62291
62292 else
62293
62294 $as_echo "#define vfork fork" >>confdefs.h
62295
62296 fi
62297 if test "x$ac_cv_func_fork_works" = xyes; then
62298
62299 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
62300
62301 fi
62302
62303
62304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signal handlers with siginfo_t" >&5
62305 $as_echo_n "checking for signal handlers with siginfo_t... " >&6; }
62306 if ${gt_cv_siginfo_t+:} false; then :
62307   $as_echo_n "(cached) " >&6
62308 else
62309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62310 /* end confdefs.h.  */
62311
62312 #include <signal.h>
62313 int
62314 main ()
62315 {
62316
62317 struct sigaction action;
62318 siginfo_t info;
62319 action.sa_flags = SA_SIGINFO;
62320 action.sa_sigaction = (void *) 0;
62321
62322   ;
62323   return 0;
62324 }
62325 _ACEOF
62326 if ac_fn_c_try_compile "$LINENO"; then :
62327   gt_cv_siginfo_t=yes
62328 else
62329   gt_cv_siginfo_t=no
62330 fi
62331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62332 fi
62333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_siginfo_t" >&5
62334 $as_echo "$gt_cv_siginfo_t" >&6; }
62335   if test $gt_cv_siginfo_t = yes; then
62336
62337 $as_echo "#define HAVE_SIGINFO 1" >>confdefs.h
62338
62339   fi
62340
62341
62342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale declaration" >&5
62343 $as_echo_n "checking for setlocale declaration... " >&6; }
62344 if ${gt_cv_proto_setlocale+:} false; then :
62345   $as_echo_n "(cached) " >&6
62346 else
62347
62348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62349 /* end confdefs.h.  */
62350
62351 #include <stdlib.h>
62352 #include <locale.h>
62353 extern
62354 #ifdef __cplusplus
62355 "C"
62356 #endif
62357 #if defined(__STDC__) || defined(__cplusplus)
62358 char *setlocale (int category, char *locale);
62359 #else
62360 char *setlocale();
62361 #endif
62362
62363 int
62364 main ()
62365 {
62366
62367   ;
62368   return 0;
62369 }
62370 _ACEOF
62371 if ac_fn_c_try_compile "$LINENO"; then :
62372   gt_cv_proto_setlocale_arg1=""
62373 else
62374   gt_cv_proto_setlocale_arg1="const"
62375 fi
62376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62377 gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"
62378 fi
62379
62380 gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
62381 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
62382          $gt_cv_proto_setlocale" >&5
62383 $as_echo "
62384          $gt_cv_proto_setlocale" >&6; }
62385
62386 cat >>confdefs.h <<_ACEOF
62387 #define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1
62388 _ACEOF
62389
62390
62391
62392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
62393 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
62394 if ${ac_cv_c_bigendian+:} false; then :
62395   $as_echo_n "(cached) " >&6
62396 else
62397   ac_cv_c_bigendian=unknown
62398     # See if we're dealing with a universal compiler.
62399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62400 /* end confdefs.h.  */
62401 #ifndef __APPLE_CC__
62402                not a universal capable compiler
62403              #endif
62404              typedef int dummy;
62405
62406 _ACEOF
62407 if ac_fn_c_try_compile "$LINENO"; then :
62408
62409         # Check for potential -arch flags.  It is not universal unless
62410         # there are at least two -arch flags with different values.
62411         ac_arch=
62412         ac_prev=
62413         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
62414          if test -n "$ac_prev"; then
62415            case $ac_word in
62416              i?86 | x86_64 | ppc | ppc64)
62417                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
62418                  ac_arch=$ac_word
62419                else
62420                  ac_cv_c_bigendian=universal
62421                  break
62422                fi
62423                ;;
62424            esac
62425            ac_prev=
62426          elif test "x$ac_word" = "x-arch"; then
62427            ac_prev=arch
62428          fi
62429        done
62430 fi
62431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62432     if test $ac_cv_c_bigendian = unknown; then
62433       # See if sys/param.h defines the BYTE_ORDER macro.
62434       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62435 /* end confdefs.h.  */
62436 #include <sys/types.h>
62437              #include <sys/param.h>
62438
62439 int
62440 main ()
62441 {
62442 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
62443                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
62444                      && LITTLE_ENDIAN)
62445               bogus endian macros
62446              #endif
62447
62448   ;
62449   return 0;
62450 }
62451 _ACEOF
62452 if ac_fn_c_try_compile "$LINENO"; then :
62453   # It does; now see whether it defined to BIG_ENDIAN or not.
62454          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62455 /* end confdefs.h.  */
62456 #include <sys/types.h>
62457                 #include <sys/param.h>
62458
62459 int
62460 main ()
62461 {
62462 #if BYTE_ORDER != BIG_ENDIAN
62463                  not big endian
62464                 #endif
62465
62466   ;
62467   return 0;
62468 }
62469 _ACEOF
62470 if ac_fn_c_try_compile "$LINENO"; then :
62471   ac_cv_c_bigendian=yes
62472 else
62473   ac_cv_c_bigendian=no
62474 fi
62475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62476 fi
62477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62478     fi
62479     if test $ac_cv_c_bigendian = unknown; then
62480       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
62481       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62482 /* end confdefs.h.  */
62483 #include <limits.h>
62484
62485 int
62486 main ()
62487 {
62488 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
62489               bogus endian macros
62490              #endif
62491
62492   ;
62493   return 0;
62494 }
62495 _ACEOF
62496 if ac_fn_c_try_compile "$LINENO"; then :
62497   # It does; now see whether it defined to _BIG_ENDIAN or not.
62498          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62499 /* end confdefs.h.  */
62500 #include <limits.h>
62501
62502 int
62503 main ()
62504 {
62505 #ifndef _BIG_ENDIAN
62506                  not big endian
62507                 #endif
62508
62509   ;
62510   return 0;
62511 }
62512 _ACEOF
62513 if ac_fn_c_try_compile "$LINENO"; then :
62514   ac_cv_c_bigendian=yes
62515 else
62516   ac_cv_c_bigendian=no
62517 fi
62518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62519 fi
62520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62521     fi
62522     if test $ac_cv_c_bigendian = unknown; then
62523       # Compile a test program.
62524       if test "$cross_compiling" = yes; then :
62525   # Try to guess by grepping values from an object file.
62526          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62527 /* end confdefs.h.  */
62528 short int ascii_mm[] =
62529                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
62530                 short int ascii_ii[] =
62531                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
62532                 int use_ascii (int i) {
62533                   return ascii_mm[i] + ascii_ii[i];
62534                 }
62535                 short int ebcdic_ii[] =
62536                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
62537                 short int ebcdic_mm[] =
62538                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
62539                 int use_ebcdic (int i) {
62540                   return ebcdic_mm[i] + ebcdic_ii[i];
62541                 }
62542                 extern int foo;
62543
62544 int
62545 main ()
62546 {
62547 return use_ascii (foo) == use_ebcdic (foo);
62548   ;
62549   return 0;
62550 }
62551 _ACEOF
62552 if ac_fn_c_try_compile "$LINENO"; then :
62553   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
62554               ac_cv_c_bigendian=yes
62555             fi
62556             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
62557               if test "$ac_cv_c_bigendian" = unknown; then
62558                 ac_cv_c_bigendian=no
62559               else
62560                 # finding both strings is unlikely to happen, but who knows?
62561                 ac_cv_c_bigendian=unknown
62562               fi
62563             fi
62564 fi
62565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62566 else
62567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62568 /* end confdefs.h.  */
62569 $ac_includes_default
62570 int
62571 main ()
62572 {
62573
62574              /* Are we little or big endian?  From Harbison&Steele.  */
62575              union
62576              {
62577                long int l;
62578                char c[sizeof (long int)];
62579              } u;
62580              u.l = 1;
62581              return u.c[sizeof (long int) - 1] == 1;
62582
62583   ;
62584   return 0;
62585 }
62586 _ACEOF
62587 if ac_fn_c_try_run "$LINENO"; then :
62588   ac_cv_c_bigendian=no
62589 else
62590   ac_cv_c_bigendian=yes
62591 fi
62592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62593   conftest.$ac_objext conftest.beam conftest.$ac_ext
62594 fi
62595
62596     fi
62597 fi
62598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
62599 $as_echo "$ac_cv_c_bigendian" >&6; }
62600  case $ac_cv_c_bigendian in #(
62601    yes)
62602      endianness=1;; #(
62603    no)
62604      endianness=0 ;; #(
62605    universal)
62606      endianness=universal
62607      ;; #(
62608    *)
62609      echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2
62610    echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2
62611    exit 1 ;;
62612  esac
62613
62614 if test $endianness != universal; then
62615
62616 cat >>confdefs.h <<_ACEOF
62617 #define ENDIANNESS $endianness
62618 _ACEOF
62619
62620 fi
62621
62622
62623
62624   for ac_header in arpa/inet.h
62625 do :
62626   ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
62627 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
62628   cat >>confdefs.h <<_ACEOF
62629 #define HAVE_ARPA_INET_H 1
62630 _ACEOF
62631
62632 fi
62633
62634 done
62635
62636   for ac_func in gethostname gethostbyname inet_ntop
62637 do :
62638   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
62640 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
62641   cat >>confdefs.h <<_ACEOF
62642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62643 _ACEOF
62644
62645 fi
62646 done
62647
62648
62649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
62650 $as_echo_n "checking for IPv6 sockets... " >&6; }
62651   if ${gt_cv_socket_ipv6+:} false; then :
62652   $as_echo_n "(cached) " >&6
62653 else
62654
62655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62656 /* end confdefs.h.  */
62657
62658 #include <sys/types.h>
62659 #include <sys/socket.h>
62660 #include <netinet/in.h>
62661 int
62662 main ()
62663 {
62664 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
62665   ;
62666   return 0;
62667 }
62668 _ACEOF
62669 if ac_fn_c_try_compile "$LINENO"; then :
62670   gt_cv_socket_ipv6=yes
62671 else
62672   gt_cv_socket_ipv6=no
62673 fi
62674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62675
62676 fi
62677
62678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_socket_ipv6" >&5
62679 $as_echo "$gt_cv_socket_ipv6" >&6; }
62680   if test $gt_cv_socket_ipv6 = yes; then
62681
62682 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
62683
62684   fi
62685
62686
62687 if test "$enable_shared" = yes; then
62688   case "$host_os" in
62689     mingw* | cygwin*) is_woe32dll=yes ;;
62690     *) is_woe32dll=no ;;
62691   esac
62692 else
62693   is_woe32dll=no
62694 fi
62695  if test $is_woe32dll = yes; then
62696   WOE32DLL_TRUE=
62697   WOE32DLL_FALSE='#'
62698 else
62699   WOE32DLL_TRUE='#'
62700   WOE32DLL_FALSE=
62701 fi
62702
62703 if test $is_woe32dll = yes; then
62704
62705 $as_echo "#define WOE32DLL 1" >>confdefs.h
62706
62707 fi
62708
62709 GETTEXTLIB_EXPORTS_FLAGS=
62710 if test -n "$GETOPT_H"; then
62711   GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT $GETTEXTLIB_EXPORTS_FLAGS"
62712 fi
62713 if test "$ac_cv_lib_error_at_line" = no; then
62714   GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_ERROR $GETTEXTLIB_EXPORTS_FLAGS"
62715 fi
62716
62717 if test "$USER_LABEL_PREFIX" = _; then
62718   GETTEXTLIB_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $GETTEXTLIB_EXPORTS_FLAGS"
62719 fi
62720
62721
62722 if test "$ac_cv_lib_error_at_line" = no; then
62723
62724 $as_echo "#define GNULIB_REPLACE_ERROR 1" >>confdefs.h
62725
62726 fi
62727
62728
62729
62730
62731 case "$host_os" in
62732   linux*)
62733
62734 $as_echo "#define DYNLOAD_LIBEXPAT 1" >>confdefs.h
62735
62736     LIBEXPAT="-ldl"
62737     LTLIBEXPAT="-ldl"
62738
62739
62740     ;;
62741   *)
62742
62743
62744
62745
62746
62747
62748
62749
62750
62751
62752
62753
62754
62755     use_additional=yes
62756
62757   acl_save_prefix="$prefix"
62758   prefix="$acl_final_prefix"
62759   acl_save_exec_prefix="$exec_prefix"
62760   exec_prefix="$acl_final_exec_prefix"
62761
62762     eval additional_includedir=\"$includedir\"
62763     eval additional_libdir=\"$libdir\"
62764
62765   exec_prefix="$acl_save_exec_prefix"
62766   prefix="$acl_save_prefix"
62767
62768
62769 # Check whether --with-libexpat-prefix was given.
62770 if test "${with_libexpat_prefix+set}" = set; then :
62771   withval=$with_libexpat_prefix;
62772     if test "X$withval" = "Xno"; then
62773       use_additional=no
62774     else
62775       if test "X$withval" = "X"; then
62776
62777   acl_save_prefix="$prefix"
62778   prefix="$acl_final_prefix"
62779   acl_save_exec_prefix="$exec_prefix"
62780   exec_prefix="$acl_final_exec_prefix"
62781
62782           eval additional_includedir=\"$includedir\"
62783           eval additional_libdir=\"$libdir\"
62784
62785   exec_prefix="$acl_save_exec_prefix"
62786   prefix="$acl_save_prefix"
62787
62788       else
62789         additional_includedir="$withval/include"
62790         additional_libdir="$withval/$acl_libdirstem"
62791         if test "$acl_libdirstem2" != "$acl_libdirstem" \
62792            && ! test -d "$withval/$acl_libdirstem"; then
62793           additional_libdir="$withval/$acl_libdirstem2"
62794         fi
62795       fi
62796     fi
62797
62798 fi
62799
62800       LIBEXPAT=
62801   LTLIBEXPAT=
62802   INCEXPAT=
62803   LIBEXPAT_PREFIX=
62804       HAVE_LIBEXPAT=
62805   rpathdirs=
62806   ltrpathdirs=
62807   names_already_handled=
62808   names_next_round='expat '
62809   while test -n "$names_next_round"; do
62810     names_this_round="$names_next_round"
62811     names_next_round=
62812     for name in $names_this_round; do
62813       already_handled=
62814       for n in $names_already_handled; do
62815         if test "$n" = "$name"; then
62816           already_handled=yes
62817           break
62818         fi
62819       done
62820       if test -z "$already_handled"; then
62821         names_already_handled="$names_already_handled $name"
62822                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
62823         eval value=\"\$HAVE_LIB$uppername\"
62824         if test -n "$value"; then
62825           if test "$value" = yes; then
62826             eval value=\"\$LIB$uppername\"
62827             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
62828             eval value=\"\$LTLIB$uppername\"
62829             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
62830           else
62831                                     :
62832           fi
62833         else
62834                               found_dir=
62835           found_la=
62836           found_so=
62837           found_a=
62838           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
62839           if test -n "$acl_shlibext"; then
62840             shrext=".$acl_shlibext"             # typically: shrext=.so
62841           else
62842             shrext=
62843           fi
62844           if test $use_additional = yes; then
62845             dir="$additional_libdir"
62846                                     if test -n "$acl_shlibext"; then
62847               if test -f "$dir/$libname$shrext"; then
62848                 found_dir="$dir"
62849                 found_so="$dir/$libname$shrext"
62850               else
62851                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
62852                   ver=`(cd "$dir" && \
62853                         for f in "$libname$shrext".*; do echo "$f"; done \
62854                         | sed -e "s,^$libname$shrext\\\\.,," \
62855                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
62856                         | sed 1q ) 2>/dev/null`
62857                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
62858                     found_dir="$dir"
62859                     found_so="$dir/$libname$shrext.$ver"
62860                   fi
62861                 else
62862                   eval library_names=\"$acl_library_names_spec\"
62863                   for f in $library_names; do
62864                     if test -f "$dir/$f"; then
62865                       found_dir="$dir"
62866                       found_so="$dir/$f"
62867                       break
62868                     fi
62869                   done
62870                 fi
62871               fi
62872             fi
62873                         if test "X$found_dir" = "X"; then
62874               if test -f "$dir/$libname.$acl_libext"; then
62875                 found_dir="$dir"
62876                 found_a="$dir/$libname.$acl_libext"
62877               fi
62878             fi
62879             if test "X$found_dir" != "X"; then
62880               if test -f "$dir/$libname.la"; then
62881                 found_la="$dir/$libname.la"
62882               fi
62883             fi
62884           fi
62885           if test "X$found_dir" = "X"; then
62886             for x in $LDFLAGS $LTLIBEXPAT; do
62887
62888   acl_save_prefix="$prefix"
62889   prefix="$acl_final_prefix"
62890   acl_save_exec_prefix="$exec_prefix"
62891   exec_prefix="$acl_final_exec_prefix"
62892   eval x=\"$x\"
62893   exec_prefix="$acl_save_exec_prefix"
62894   prefix="$acl_save_prefix"
62895
62896               case "$x" in
62897                 -L*)
62898                   dir=`echo "X$x" | sed -e 's/^X-L//'`
62899                                     if test -n "$acl_shlibext"; then
62900                     if test -f "$dir/$libname$shrext"; then
62901                       found_dir="$dir"
62902                       found_so="$dir/$libname$shrext"
62903                     else
62904                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
62905                         ver=`(cd "$dir" && \
62906                               for f in "$libname$shrext".*; do echo "$f"; done \
62907                               | sed -e "s,^$libname$shrext\\\\.,," \
62908                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
62909                               | sed 1q ) 2>/dev/null`
62910                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
62911                           found_dir="$dir"
62912                           found_so="$dir/$libname$shrext.$ver"
62913                         fi
62914                       else
62915                         eval library_names=\"$acl_library_names_spec\"
62916                         for f in $library_names; do
62917                           if test -f "$dir/$f"; then
62918                             found_dir="$dir"
62919                             found_so="$dir/$f"
62920                             break
62921                           fi
62922                         done
62923                       fi
62924                     fi
62925                   fi
62926                                     if test "X$found_dir" = "X"; then
62927                     if test -f "$dir/$libname.$acl_libext"; then
62928                       found_dir="$dir"
62929                       found_a="$dir/$libname.$acl_libext"
62930                     fi
62931                   fi
62932                   if test "X$found_dir" != "X"; then
62933                     if test -f "$dir/$libname.la"; then
62934                       found_la="$dir/$libname.la"
62935                     fi
62936                   fi
62937                   ;;
62938               esac
62939               if test "X$found_dir" != "X"; then
62940                 break
62941               fi
62942             done
62943           fi
62944           if test "X$found_dir" != "X"; then
62945                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
62946             if test "X$found_so" != "X"; then
62947                                                         if test "$enable_rpath" = no \
62948                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
62949                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
62950                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
62951               else
62952                                                                                 haveit=
62953                 for x in $ltrpathdirs; do
62954                   if test "X$x" = "X$found_dir"; then
62955                     haveit=yes
62956                     break
62957                   fi
62958                 done
62959                 if test -z "$haveit"; then
62960                   ltrpathdirs="$ltrpathdirs $found_dir"
62961                 fi
62962                                 if test "$acl_hardcode_direct" = yes; then
62963                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
62964                 else
62965                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
62966                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
62967                                                             haveit=
62968                     for x in $rpathdirs; do
62969                       if test "X$x" = "X$found_dir"; then
62970                         haveit=yes
62971                         break
62972                       fi
62973                     done
62974                     if test -z "$haveit"; then
62975                       rpathdirs="$rpathdirs $found_dir"
62976                     fi
62977                   else
62978                                                                                 haveit=
62979                     for x in $LDFLAGS $LIBEXPAT; do
62980
62981   acl_save_prefix="$prefix"
62982   prefix="$acl_final_prefix"
62983   acl_save_exec_prefix="$exec_prefix"
62984   exec_prefix="$acl_final_exec_prefix"
62985   eval x=\"$x\"
62986   exec_prefix="$acl_save_exec_prefix"
62987   prefix="$acl_save_prefix"
62988
62989                       if test "X$x" = "X-L$found_dir"; then
62990                         haveit=yes
62991                         break
62992                       fi
62993                     done
62994                     if test -z "$haveit"; then
62995                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
62996                     fi
62997                     if test "$acl_hardcode_minus_L" != no; then
62998                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
62999                     else
63000                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
63001                     fi
63002                   fi
63003                 fi
63004               fi
63005             else
63006               if test "X$found_a" != "X"; then
63007                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
63008               else
63009                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
63010               fi
63011             fi
63012                         additional_includedir=
63013             case "$found_dir" in
63014               */$acl_libdirstem | */$acl_libdirstem/)
63015                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
63016                 if test "$name" = 'expat'; then
63017                   LIBEXPAT_PREFIX="$basedir"
63018                 fi
63019                 additional_includedir="$basedir/include"
63020                 ;;
63021               */$acl_libdirstem2 | */$acl_libdirstem2/)
63022                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
63023                 if test "$name" = 'expat'; then
63024                   LIBEXPAT_PREFIX="$basedir"
63025                 fi
63026                 additional_includedir="$basedir/include"
63027                 ;;
63028             esac
63029             if test "X$additional_includedir" != "X"; then
63030                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
63031                 haveit=
63032                 if test "X$additional_includedir" = "X/usr/local/include"; then
63033                   if test -n "$GCC"; then
63034                     case $host_os in
63035                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
63036                     esac
63037                   fi
63038                 fi
63039                 if test -z "$haveit"; then
63040                   for x in $CPPFLAGS $INCEXPAT; do
63041
63042   acl_save_prefix="$prefix"
63043   prefix="$acl_final_prefix"
63044   acl_save_exec_prefix="$exec_prefix"
63045   exec_prefix="$acl_final_exec_prefix"
63046   eval x=\"$x\"
63047   exec_prefix="$acl_save_exec_prefix"
63048   prefix="$acl_save_prefix"
63049
63050                     if test "X$x" = "X-I$additional_includedir"; then
63051                       haveit=yes
63052                       break
63053                     fi
63054                   done
63055                   if test -z "$haveit"; then
63056                     if test -d "$additional_includedir"; then
63057                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
63058                     fi
63059                   fi
63060                 fi
63061               fi
63062             fi
63063                         if test -n "$found_la"; then
63064                                                         save_libdir="$libdir"
63065               case "$found_la" in
63066                 */* | *\\*) . "$found_la" ;;
63067                 *) . "./$found_la" ;;
63068               esac
63069               libdir="$save_libdir"
63070                             for dep in $dependency_libs; do
63071                 case "$dep" in
63072                   -L*)
63073                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
63074                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
63075                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
63076                       haveit=
63077                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
63078                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
63079                         if test -n "$GCC"; then
63080                           case $host_os in
63081                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
63082                           esac
63083                         fi
63084                       fi
63085                       if test -z "$haveit"; then
63086                         haveit=
63087                         for x in $LDFLAGS $LIBEXPAT; do
63088
63089   acl_save_prefix="$prefix"
63090   prefix="$acl_final_prefix"
63091   acl_save_exec_prefix="$exec_prefix"
63092   exec_prefix="$acl_final_exec_prefix"
63093   eval x=\"$x\"
63094   exec_prefix="$acl_save_exec_prefix"
63095   prefix="$acl_save_prefix"
63096
63097                           if test "X$x" = "X-L$additional_libdir"; then
63098                             haveit=yes
63099                             break
63100                           fi
63101                         done
63102                         if test -z "$haveit"; then
63103                           if test -d "$additional_libdir"; then
63104                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
63105                           fi
63106                         fi
63107                         haveit=
63108                         for x in $LDFLAGS $LTLIBEXPAT; do
63109
63110   acl_save_prefix="$prefix"
63111   prefix="$acl_final_prefix"
63112   acl_save_exec_prefix="$exec_prefix"
63113   exec_prefix="$acl_final_exec_prefix"
63114   eval x=\"$x\"
63115   exec_prefix="$acl_save_exec_prefix"
63116   prefix="$acl_save_prefix"
63117
63118                           if test "X$x" = "X-L$additional_libdir"; then
63119                             haveit=yes
63120                             break
63121                           fi
63122                         done
63123                         if test -z "$haveit"; then
63124                           if test -d "$additional_libdir"; then
63125                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
63126                           fi
63127                         fi
63128                       fi
63129                     fi
63130                     ;;
63131                   -R*)
63132                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
63133                     if test "$enable_rpath" != no; then
63134                                                                   haveit=
63135                       for x in $rpathdirs; do
63136                         if test "X$x" = "X$dir"; then
63137                           haveit=yes
63138                           break
63139                         fi
63140                       done
63141                       if test -z "$haveit"; then
63142                         rpathdirs="$rpathdirs $dir"
63143                       fi
63144                                                                   haveit=
63145                       for x in $ltrpathdirs; do
63146                         if test "X$x" = "X$dir"; then
63147                           haveit=yes
63148                           break
63149                         fi
63150                       done
63151                       if test -z "$haveit"; then
63152                         ltrpathdirs="$ltrpathdirs $dir"
63153                       fi
63154                     fi
63155                     ;;
63156                   -l*)
63157                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
63158                     ;;
63159                   *.la)
63160                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
63161                     ;;
63162                   *)
63163                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
63164                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
63165                     ;;
63166                 esac
63167               done
63168             fi
63169           else
63170                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
63171             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
63172           fi
63173         fi
63174       fi
63175     done
63176   done
63177   if test "X$rpathdirs" != "X"; then
63178     if test -n "$acl_hardcode_libdir_separator"; then
63179                         alldirs=
63180       for found_dir in $rpathdirs; do
63181         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
63182       done
63183             acl_save_libdir="$libdir"
63184       libdir="$alldirs"
63185       eval flag=\"$acl_hardcode_libdir_flag_spec\"
63186       libdir="$acl_save_libdir"
63187       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
63188     else
63189             for found_dir in $rpathdirs; do
63190         acl_save_libdir="$libdir"
63191         libdir="$found_dir"
63192         eval flag=\"$acl_hardcode_libdir_flag_spec\"
63193         libdir="$acl_save_libdir"
63194         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
63195       done
63196     fi
63197   fi
63198   if test "X$ltrpathdirs" != "X"; then
63199             for found_dir in $ltrpathdirs; do
63200       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
63201     done
63202   fi
63203
63204
63205
63206
63207
63208
63209
63210         ac_save_CPPFLAGS="$CPPFLAGS"
63211
63212   for element in $INCEXPAT; do
63213     haveit=
63214     for x in $CPPFLAGS; do
63215
63216   acl_save_prefix="$prefix"
63217   prefix="$acl_final_prefix"
63218   acl_save_exec_prefix="$exec_prefix"
63219   exec_prefix="$acl_final_exec_prefix"
63220   eval x=\"$x\"
63221   exec_prefix="$acl_save_exec_prefix"
63222   prefix="$acl_save_prefix"
63223
63224       if test "X$x" = "X$element"; then
63225         haveit=yes
63226         break
63227       fi
63228     done
63229     if test -z "$haveit"; then
63230       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
63231     fi
63232   done
63233
63234
63235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
63236 $as_echo_n "checking for libexpat... " >&6; }
63237 if ${ac_cv_libexpat+:} false; then :
63238   $as_echo_n "(cached) " >&6
63239 else
63240
63241     ac_save_LIBS="$LIBS"
63242                                 case " $LIBEXPAT" in
63243       *" -l"*) LIBS="$LIBS $LIBEXPAT" ;;
63244       *)       LIBS="$LIBEXPAT $LIBS" ;;
63245     esac
63246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63247 /* end confdefs.h.  */
63248 #include <expat.h>
63249 int
63250 main ()
63251 {
63252 XML_ExpatVersion();
63253   ;
63254   return 0;
63255 }
63256 _ACEOF
63257 if ac_fn_c_try_link "$LINENO"; then :
63258   ac_cv_libexpat=yes
63259 else
63260   ac_cv_libexpat='no'
63261 fi
63262 rm -f core conftest.err conftest.$ac_objext \
63263     conftest$ac_exeext conftest.$ac_ext
63264     LIBS="$ac_save_LIBS"
63265
63266 fi
63267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
63268 $as_echo "$ac_cv_libexpat" >&6; }
63269   if test "$ac_cv_libexpat" = yes; then
63270     HAVE_LIBEXPAT=yes
63271
63272 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
63273
63274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
63275 $as_echo_n "checking how to link with libexpat... " >&6; }
63276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
63277 $as_echo "$LIBEXPAT" >&6; }
63278   else
63279     HAVE_LIBEXPAT=no
63280             CPPFLAGS="$ac_save_CPPFLAGS"
63281     LIBEXPAT=
63282     LTLIBEXPAT=
63283     LIBEXPAT_PREFIX=
63284   fi
63285
63286
63287
63288
63289
63290
63291
63292     ;;
63293 esac
63294
63295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
63296 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
63297 if ${lt_cv_path_NM+:} false; then :
63298   $as_echo_n "(cached) " >&6
63299 else
63300   if test -n "$NM"; then
63301   # Let the user override the test.
63302   lt_cv_path_NM="$NM"
63303 else
63304   lt_nm_to_check="${ac_tool_prefix}nm"
63305   if test -n "$ac_tool_prefix" \
63306      && { test "$build" = "$host" \
63307           || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
63308         }; then
63309     lt_nm_to_check="$lt_nm_to_check nm"
63310   fi
63311   for lt_tmp_nm in $lt_nm_to_check; do
63312     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
63313     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
63314       IFS="$lt_save_ifs"
63315       test -z "$ac_dir" && ac_dir=.
63316       tmp_nm="$ac_dir/$lt_tmp_nm"
63317       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
63318         # Check to see if the nm accepts a BSD-compat flag.
63319         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
63320         #   nm: unknown option "B" ignored
63321         # Tru64's nm complains that /dev/null is an invalid object file
63322         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
63323         */dev/null* | *'Invalid file or object type'*)
63324           lt_cv_path_NM="$tmp_nm -B"
63325           break
63326           ;;
63327         *)
63328           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
63329           */dev/null*)
63330             lt_cv_path_NM="$tmp_nm -p"
63331             break
63332             ;;
63333           *)
63334             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
63335             continue # so that we can try to find one that supports BSD flags
63336             ;;
63337           esac
63338           ;;
63339         esac
63340       fi
63341     done
63342     IFS="$lt_save_ifs"
63343   done
63344   : ${lt_cv_path_NM=no}
63345 fi
63346 fi
63347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
63348 $as_echo "$lt_cv_path_NM" >&6; }
63349 if test "$lt_cv_path_NM" != "no"; then
63350   NM="$lt_cv_path_NM"
63351 else
63352   # Didn't find any BSD compatible name lister, look for dumpbin.
63353   if test -n "$DUMPBIN"; then :
63354     # Let the user override the test.
63355   else
63356     if test -n "$ac_tool_prefix"; then
63357   for ac_prog in dumpbin "link -dump"
63358   do
63359     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
63360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
63361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63362 $as_echo_n "checking for $ac_word... " >&6; }
63363 if ${ac_cv_prog_DUMPBIN+:} false; then :
63364   $as_echo_n "(cached) " >&6
63365 else
63366   if test -n "$DUMPBIN"; then
63367   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
63368 else
63369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63370 for as_dir in $PATH
63371 do
63372   IFS=$as_save_IFS
63373   test -z "$as_dir" && as_dir=.
63374     for ac_exec_ext in '' $ac_executable_extensions; do
63375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63376     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
63377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63378     break 2
63379   fi
63380 done
63381   done
63382 IFS=$as_save_IFS
63383
63384 fi
63385 fi
63386 DUMPBIN=$ac_cv_prog_DUMPBIN
63387 if test -n "$DUMPBIN"; then
63388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
63389 $as_echo "$DUMPBIN" >&6; }
63390 else
63391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63392 $as_echo "no" >&6; }
63393 fi
63394
63395
63396     test -n "$DUMPBIN" && break
63397   done
63398 fi
63399 if test -z "$DUMPBIN"; then
63400   ac_ct_DUMPBIN=$DUMPBIN
63401   for ac_prog in dumpbin "link -dump"
63402 do
63403   # Extract the first word of "$ac_prog", so it can be a program name with args.
63404 set dummy $ac_prog; ac_word=$2
63405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63406 $as_echo_n "checking for $ac_word... " >&6; }
63407 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
63408   $as_echo_n "(cached) " >&6
63409 else
63410   if test -n "$ac_ct_DUMPBIN"; then
63411   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
63412 else
63413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63414 for as_dir in $PATH
63415 do
63416   IFS=$as_save_IFS
63417   test -z "$as_dir" && as_dir=.
63418     for ac_exec_ext in '' $ac_executable_extensions; do
63419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63420     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
63421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63422     break 2
63423   fi
63424 done
63425   done
63426 IFS=$as_save_IFS
63427
63428 fi
63429 fi
63430 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
63431 if test -n "$ac_ct_DUMPBIN"; then
63432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
63433 $as_echo "$ac_ct_DUMPBIN" >&6; }
63434 else
63435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63436 $as_echo "no" >&6; }
63437 fi
63438
63439
63440   test -n "$ac_ct_DUMPBIN" && break
63441 done
63442
63443   if test "x$ac_ct_DUMPBIN" = x; then
63444     DUMPBIN=":"
63445   else
63446     case $cross_compiling:$ac_tool_warned in
63447 yes:)
63448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
63449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
63450 ac_tool_warned=yes ;;
63451 esac
63452     DUMPBIN=$ac_ct_DUMPBIN
63453   fi
63454 fi
63455
63456     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
63457     *COFF*)
63458       DUMPBIN="$DUMPBIN -symbols"
63459       ;;
63460     *)
63461       DUMPBIN=:
63462       ;;
63463     esac
63464   fi
63465
63466   if test "$DUMPBIN" != ":"; then
63467     NM="$DUMPBIN"
63468   fi
63469 fi
63470 test -z "$NM" && NM=nm
63471
63472
63473
63474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
63475 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
63476 if ${lt_cv_nm_interface+:} false; then :
63477   $as_echo_n "(cached) " >&6
63478 else
63479   lt_cv_nm_interface="BSD nm"
63480   echo "int some_variable = 0;" > conftest.$ac_ext
63481   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
63482   (eval "$ac_compile" 2>conftest.err)
63483   cat conftest.err >&5
63484   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
63485   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
63486   cat conftest.err >&5
63487   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
63488   cat conftest.out >&5
63489   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
63490     lt_cv_nm_interface="MS dumpbin"
63491   fi
63492   rm -f conftest*
63493 fi
63494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
63495 $as_echo "$lt_cv_nm_interface" >&6; }
63496
63497
63498
63499
63500      GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
63501
63502   if test -n "$GLOBAL_SYMBOL_PIPE"; then
63503     HAVE_GLOBAL_SYMBOL_PIPE=1
63504   else
63505     HAVE_GLOBAL_SYMBOL_PIPE=
63506   fi
63507
63508
63509
63510
63511 # Check whether --with-emacs was given.
63512 if test "${with_emacs+set}" = set; then :
63513   withval=$with_emacs; gt_use_emacs=$withval
63514 else
63515   gt_use_emacs=yes
63516 fi
63517
63518 if test "$EMACS" != no; then
63519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Emacs support is requested" >&5
63520 $as_echo_n "checking whether Emacs support is requested... " >&6; }
63521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_use_emacs" >&5
63522 $as_echo "$gt_use_emacs" >&6; }
63523   if test "$gt_use_emacs" = no; then
63524     EMACS=no
63525   fi
63526 fi
63527 if test "$EMACS" != no; then
63528    # If set to t, that means we are running in a shell under Emacs.
63529  # If you have an Emacs named "t", then use the full path.
63530  test x"$EMACS" = xt && EMACS=
63531  for ac_prog in emacs xemacs
63532 do
63533   # Extract the first word of "$ac_prog", so it can be a program name with args.
63534 set dummy $ac_prog; ac_word=$2
63535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63536 $as_echo_n "checking for $ac_word... " >&6; }
63537 if ${ac_cv_prog_EMACS+:} false; then :
63538   $as_echo_n "(cached) " >&6
63539 else
63540   if test -n "$EMACS"; then
63541   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
63542 else
63543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63544 for as_dir in $PATH
63545 do
63546   IFS=$as_save_IFS
63547   test -z "$as_dir" && as_dir=.
63548     for ac_exec_ext in '' $ac_executable_extensions; do
63549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63550     ac_cv_prog_EMACS="$ac_prog"
63551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63552     break 2
63553   fi
63554 done
63555   done
63556 IFS=$as_save_IFS
63557
63558 fi
63559 fi
63560 EMACS=$ac_cv_prog_EMACS
63561 if test -n "$EMACS"; then
63562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
63563 $as_echo "$EMACS" >&6; }
63564 else
63565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63566 $as_echo "no" >&6; }
63567 fi
63568
63569
63570   test -n "$EMACS" && break
63571 done
63572 test -n "$EMACS" || EMACS="no"
63573
63574
63575
63576
63577 # Check whether --with-lispdir was given.
63578 if test "${with_lispdir+set}" = set; then :
63579   withval=$with_lispdir;  lispdir="$withval"
63580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
63581 $as_echo_n "checking where .elc files should go... " >&6; }
63582    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
63583 $as_echo "$lispdir" >&6; }
63584 else
63585
63586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
63587 $as_echo_n "checking where .elc files should go... " >&6; }
63588 if ${am_cv_lispdir+:} false; then :
63589   $as_echo_n "(cached) " >&6
63590 else
63591
63592    if test $EMACS != "no"; then
63593      if test x${lispdir+set} != xset; then
63594   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
63595   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
63596   #  which is non-obvious for non-emacs users.
63597   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
63598   #  emacsen earlier and avoid running this altogether.
63599   { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
63600   ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
63601   ac_status=$?
63602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63603   test $ac_status = 0; }
63604         am_cv_lispdir=`sed -n \
63605        -e 's,/$,,' \
63606        -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
63607        -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
63608        conftest.out`
63609        rm conftest.out
63610      fi
63611    fi
63612    test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
63613
63614 fi
63615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
63616 $as_echo "$am_cv_lispdir" >&6; }
63617   lispdir="$am_cv_lispdir"
63618
63619 fi
63620
63621
63622
63623 fi
63624
63625 aclocaldir='${datadir}/aclocal'
63626
63627
63628
63629 # Check whether --with-git was given.
63630 if test "${with_git+set}" = set; then :
63631   withval=$with_git; gt_use_git=$withval
63632 else
63633   gt_use_git=maybe
63634 fi
63635
63636
63637 # Check whether --with-cvs was given.
63638 if test "${with_cvs+set}" = set; then :
63639   withval=$with_cvs; gt_use_cvs=$withval
63640 else
63641   gt_use_cvs=no
63642 fi
63643
63644
63645 # Check whether --with-bzip2 was given.
63646 if test "${with_bzip2+set}" = set; then :
63647   withval=$with_bzip2; gt_use_bzip2=$withval
63648 else
63649   gt_use_bzip2=maybe
63650 fi
63651
63652
63653 # Check whether --with-xz was given.
63654 if test "${with_xz+set}" = set; then :
63655   withval=$with_xz; gt_use_xz=$withval
63656 else
63657   gt_use_xz=maybe
63658 fi
63659
63660 # The CVS format is deprecated, because "cvs init" does not work in all
63661 # circumstances
63662 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-05/msg00003.html>)
63663 # and we are not allowed to distribute the cvs infrastructure files ourselves
63664 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-06/msg00011.html>).
63665 #
63666 # With the archive from version 0.18.1, we can observe the following
63667 # compression rates:
63668 #    Size           File
63669 #  16916480   archive.dir.tar
63670 #   3528757   archive.dir.tar.gz
63671 #   2621440   archive.cvs.tar
63672 #   2082492   archive.dir.tar.bz2
63673 #    696320   archive.git.tar
63674 #    599046   archive.git.tar.bz2
63675 #    592989   archive.git.tar.gz
63676 #    588124   archive.git.tar.xz
63677 #    457190   archive.cvs.tar.gz
63678 #    335808   archive.cvs.tar.bz2
63679 #    308880   archive.dir.tar.xz
63680 #    299124   archive.cvs.tar.xz
63681 # Among these:
63682 #   - We don't offer the uncompressed ones, because at least gzip can be
63683 #     assumed to be present everywhere.
63684 #   - Among archive.git.tar.*, all have approximately the same size, because
63685 #     git already compresses most of its repository data. Offer only .gz here.
63686 #   - Among archive.cvs.tar.*, offer only .gz, for simplicity, since --with-cvs
63687 #     is deprecated.
63688 # The remaining ones are:
63689 #    Size           File            ARCHIVE_FORMAT
63690 #   3528757   archive.dir.tar.gz      dirgz
63691 #   2082492   archive.dir.tar.bz2     dirbz2
63692 #    592989   archive.git.tar.gz      git
63693 #    457190   archive.cvs.tar.gz      cvs
63694 #    308880   archive.dir.tar.xz      dirxz
63695 if test "$gt_use_xz" != no && test "$gt_use_xz" != maybe; then
63696   # --with-xz is specified. Even if --with-git or --with-cvs or --with-bzip2 is
63697   # also specified, we use the dirxz format.
63698   ARCHIVE_FORMAT=dirxz
63699 else
63700   if test "$gt_use_git" != no && test "$gt_use_git" != maybe; then
63701     # --with-git is specified. Even if --with-cvs or --with-bzip2 is also
63702     # specified, we use the git format.
63703     ARCHIVE_FORMAT=git
63704   else
63705     if test "$gt_use_cvs" != no; then
63706       # --with-cvs is specified. Even if --with-bzip2 is also specified, we use
63707       # the cvs format.
63708       ARCHIVE_FORMAT=cvs
63709     else
63710       if test "$gt_use_bzip2" != no && test "$gt_use_bzip2" != maybe; then
63711         # --with-bzip2 is specified. We use the dirbz2 format.
63712         ARCHIVE_FORMAT=dirbz2
63713       else
63714         # Neither --with-git nor --with-cvs nor --with-bzip2 nor --with-xz is
63715         # specified. Determine which programs are present.
63716         if test "$gt_use_xz" != no \
63717            && (xz --version) >/dev/null 2>&1 \
63718            && xz --version | grep lzma >/dev/null; then
63719           # --without-xz is not specified, and the xz program exists.
63720           ARCHIVE_FORMAT=dirxz
63721         else
63722           # --without-xz is specified, or the xz program is missing.
63723           if test "$gt_use_git" != no \
63724              && (git --version) >/dev/null 2>&1 \
63725              && { case `git --version | sed -e 's/^[^0-9]*//'` in
63726                     0.* | 1.[0-5].*) false ;;
63727                     *) true ;;
63728                   esac
63729                 }; then
63730             # --without-git is not specified, and the git program exists
63731             # in version 1.6 or newer. Use git format.
63732             ARCHIVE_FORMAT=git
63733           else
63734             # --without-git is specified, or the git program is missing.
63735             if test "$gt_use_bzip2" != no \
63736                && (: | bzip2 --version) >/dev/null 2>&1 \
63737                && { sed_bzip2_version1='s/ \([0-9][0-9.]*\).*/ \1/'
63738                     sed_bzip2_version2='s/^.* //'
63739                     case `(: | bzip2 --version) 2>&1 \
63740                           | sed -e 1q \
63741                           | sed -e "$sed_bzip2_version1" -e "$sed_bzip2_version2"` in
63742                       0.*) false ;;
63743                       *) true ;;
63744                     esac
63745                   }; then
63746               # --without-bzip2 is not specified, and the bzip2 program exists
63747               # in version 1.0 or newer. Use dirbz2 format.
63748               ARCHIVE_FORMAT=dirbz2
63749             else
63750               # --without-bzip2 is specified, or the bzip2 program is missing.
63751               ARCHIVE_FORMAT=dirgz
63752             fi
63753           fi
63754         fi
63755       fi
63756     fi
63757   fi
63758 fi
63759
63760
63761 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
63762 # Extract the first word of "dvips", so it can be a program name with args.
63763 set dummy dvips; ac_word=$2
63764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63765 $as_echo_n "checking for $ac_word... " >&6; }
63766 if ${ac_cv_path_DVIPS+:} false; then :
63767   $as_echo_n "(cached) " >&6
63768 else
63769   case $DVIPS in
63770   [\\/]* | ?:[\\/]*)
63771   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
63772   ;;
63773   *)
63774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63775 for as_dir in $PATH
63776 do
63777   IFS=$as_save_IFS
63778   test -z "$as_dir" && as_dir=.
63779     for ac_exec_ext in '' $ac_executable_extensions; do
63780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63781     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
63782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63783     break 2
63784   fi
63785 done
63786   done
63787 IFS=$as_save_IFS
63788
63789   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
63790   ;;
63791 esac
63792 fi
63793 DVIPS=$ac_cv_path_DVIPS
63794 if test -n "$DVIPS"; then
63795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
63796 $as_echo "$DVIPS" >&6; }
63797 else
63798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63799 $as_echo "no" >&6; }
63800 fi
63801
63802
63803 # Extract the first word of "texi2pdf", so it can be a program name with args.
63804 set dummy texi2pdf; ac_word=$2
63805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63806 $as_echo_n "checking for $ac_word... " >&6; }
63807 if ${ac_cv_path_TEXI2PDF+:} false; then :
63808   $as_echo_n "(cached) " >&6
63809 else
63810   case $TEXI2PDF in
63811   [\\/]* | ?:[\\/]*)
63812   ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
63813   ;;
63814   *)
63815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63816 for as_dir in $PATH
63817 do
63818   IFS=$as_save_IFS
63819   test -z "$as_dir" && as_dir=.
63820     for ac_exec_ext in '' $ac_executable_extensions; do
63821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63822     ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
63823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63824     break 2
63825   fi
63826 done
63827   done
63828 IFS=$as_save_IFS
63829
63830   test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
63831   ;;
63832 esac
63833 fi
63834 TEXI2PDF=$ac_cv_path_TEXI2PDF
63835 if test -n "$TEXI2PDF"; then
63836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
63837 $as_echo "$TEXI2PDF" >&6; }
63838 else
63839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63840 $as_echo "no" >&6; }
63841 fi
63842
63843
63844 # Extract the first word of "perl", so it can be a program name with args.
63845 set dummy perl; ac_word=$2
63846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63847 $as_echo_n "checking for $ac_word... " >&6; }
63848 if ${ac_cv_path_PERL+:} false; then :
63849   $as_echo_n "(cached) " >&6
63850 else
63851   case $PERL in
63852   [\\/]* | ?:[\\/]*)
63853   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
63854   ;;
63855   *)
63856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63857 for as_dir in $PATH
63858 do
63859   IFS=$as_save_IFS
63860   test -z "$as_dir" && as_dir=.
63861     for ac_exec_ext in '' $ac_executable_extensions; do
63862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63863     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
63864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63865     break 2
63866   fi
63867 done
63868   done
63869 IFS=$as_save_IFS
63870
63871   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
63872   ;;
63873 esac
63874 fi
63875 PERL=$ac_cv_path_PERL
63876 if test -n "$PERL"; then
63877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
63878 $as_echo "$PERL" >&6; }
63879 else
63880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63881 $as_echo "no" >&6; }
63882 fi
63883
63884
63885
63886 CROSS_COMPILING=$cross_compiling
63887
63888
63889
63890
63891
63892   if test "$CXX_CHOICE" = no; then
63893     CXX=no
63894   fi
63895   if test -z "$CXX"; then
63896     if test -n "$CCC"; then
63897       CXX="$CCC"
63898     else
63899       if test -n "$ac_tool_prefix"; then
63900   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
63901   do
63902     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
63903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
63904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63905 $as_echo_n "checking for $ac_word... " >&6; }
63906 if ${ac_cv_prog_CXX+:} false; then :
63907   $as_echo_n "(cached) " >&6
63908 else
63909   if test -n "$CXX"; then
63910   ac_cv_prog_CXX="$CXX" # Let the user override the test.
63911 else
63912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63913 for as_dir in $PATH
63914 do
63915   IFS=$as_save_IFS
63916   test -z "$as_dir" && as_dir=.
63917     for ac_exec_ext in '' $ac_executable_extensions; do
63918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63919     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
63920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63921     break 2
63922   fi
63923 done
63924   done
63925 IFS=$as_save_IFS
63926
63927 fi
63928 fi
63929 CXX=$ac_cv_prog_CXX
63930 if test -n "$CXX"; then
63931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
63932 $as_echo "$CXX" >&6; }
63933 else
63934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63935 $as_echo "no" >&6; }
63936 fi
63937
63938
63939     test -n "$CXX" && break
63940   done
63941 fi
63942 if test -z "$CXX"; then
63943   ac_ct_CXX=$CXX
63944   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
63945 do
63946   # Extract the first word of "$ac_prog", so it can be a program name with args.
63947 set dummy $ac_prog; ac_word=$2
63948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63949 $as_echo_n "checking for $ac_word... " >&6; }
63950 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
63951   $as_echo_n "(cached) " >&6
63952 else
63953   if test -n "$ac_ct_CXX"; then
63954   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
63955 else
63956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63957 for as_dir in $PATH
63958 do
63959   IFS=$as_save_IFS
63960   test -z "$as_dir" && as_dir=.
63961     for ac_exec_ext in '' $ac_executable_extensions; do
63962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63963     ac_cv_prog_ac_ct_CXX="$ac_prog"
63964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63965     break 2
63966   fi
63967 done
63968   done
63969 IFS=$as_save_IFS
63970
63971 fi
63972 fi
63973 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
63974 if test -n "$ac_ct_CXX"; then
63975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
63976 $as_echo "$ac_ct_CXX" >&6; }
63977 else
63978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63979 $as_echo "no" >&6; }
63980 fi
63981
63982
63983   test -n "$ac_ct_CXX" && break
63984 done
63985
63986   if test "x$ac_ct_CXX" = x; then
63987     CXX=":"
63988   else
63989     case $cross_compiling:$ac_tool_warned in
63990 yes:)
63991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
63992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
63993 ac_tool_warned=yes ;;
63994 esac
63995     CXX=$ac_ct_CXX
63996   fi
63997 fi
63998
63999     fi
64000   fi
64001   if test "$CXX" != no; then
64002             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
64003 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
64004     ac_ext=cpp
64005 ac_cpp='$CXXCPP $CPPFLAGS'
64006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64009
64010
64011
64012     echo 'int main () { return 0; }' > conftest.$ac_ext
64013     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
64014   (eval $ac_link) 2>&5
64015   ac_status=$?
64016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64017   test $ac_status = 0; } && test -s conftest$ac_exeext; then
64018       gl_cv_prog_ansicxx_works=yes
64019       if (./conftest; exit) 2>/dev/null; then
64020         gl_cv_prog_ansicxx_cross=no
64021       else
64022         gl_cv_prog_ansicxx_cross=yes
64023       fi
64024     else
64025       gl_cv_prog_ansicxx_works=no
64026     fi
64027     rm -fr conftest*
64028     ac_ext=c
64029 ac_cpp='$CPP $CPPFLAGS'
64030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
64033
64034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
64035 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
64036     if test $gl_cv_prog_ansicxx_works = no; then
64037       CXX=no
64038     else
64039                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
64040 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
64041       ac_ext=cpp
64042 ac_cpp='$CXXCPP $CPPFLAGS'
64043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64046
64047       cat <<EOF > conftest.$ac_ext
64048 #include <iostream>
64049 namespace test { using namespace std; }
64050 std::ostream* ptr;
64051 int main () { return 0; }
64052 EOF
64053       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
64054   (eval $ac_link) 2>&5
64055   ac_status=$?
64056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64057   test $ac_status = 0; } && test -s conftest$ac_exeext; then
64058         gl_cv_prog_ansicxx_namespaces=yes
64059       else
64060         gl_cv_prog_ansicxx_namespaces=no
64061       fi
64062       rm -fr conftest*
64063       ac_ext=c
64064 ac_cpp='$CPP $CPPFLAGS'
64065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
64068
64069       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
64070 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
64071       if test $gl_cv_prog_ansicxx_namespaces = no; then
64072         CXX=no
64073       fi
64074     fi
64075   fi
64076
64077
64078
64079    if test "$CXX" != no; then
64080   ANSICXX_TRUE=
64081   ANSICXX_FALSE='#'
64082 else
64083   ANSICXX_TRUE='#'
64084   ANSICXX_FALSE=
64085 fi
64086
64087
64088   if test "$CXX" != no; then
64089
64090 depcc="$CXX"  am_compiler_list=
64091
64092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
64093 $as_echo_n "checking dependency style of $depcc... " >&6; }
64094 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
64095   $as_echo_n "(cached) " >&6
64096 else
64097   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
64098   # We make a subdir and do the tests there.  Otherwise we can end up
64099   # making bogus files that we don't know about and never remove.  For
64100   # instance it was reported that on HP-UX the gcc test will end up
64101   # making a dummy file named 'D' -- because '-MD' means "put the output
64102   # in D".
64103   rm -rf conftest.dir
64104   mkdir conftest.dir
64105   # Copy depcomp to subdir because otherwise we won't find it if we're
64106   # using a relative directory.
64107   cp "$am_depcomp" conftest.dir
64108   cd conftest.dir
64109   # We will build objects and dependencies in a subdirectory because
64110   # it helps to detect inapplicable dependency modes.  For instance
64111   # both Tru64's cc and ICC support -MD to output dependencies as a
64112   # side effect of compilation, but ICC will put the dependencies in
64113   # the current directory while Tru64 will put them in the object
64114   # directory.
64115   mkdir sub
64116
64117   am_cv_CXX_dependencies_compiler_type=none
64118   if test "$am_compiler_list" = ""; then
64119      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
64120   fi
64121   am__universal=false
64122   case " $depcc " in #(
64123      *\ -arch\ *\ -arch\ *) am__universal=true ;;
64124      esac
64125
64126   for depmode in $am_compiler_list; do
64127     # Setup a source with many dependencies, because some compilers
64128     # like to wrap large dependency lists on column 80 (with \), and
64129     # we should not choose a depcomp mode which is confused by this.
64130     #
64131     # We need to recreate these files for each test, as the compiler may
64132     # overwrite some of them when testing with obscure command lines.
64133     # This happens at least with the AIX C compiler.
64134     : > sub/conftest.c
64135     for i in 1 2 3 4 5 6; do
64136       echo '#include "conftst'$i'.h"' >> sub/conftest.c
64137       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
64138       # Solaris 10 /bin/sh.
64139       echo '/* dummy */' > sub/conftst$i.h
64140     done
64141     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
64142
64143     # We check with '-c' and '-o' for the sake of the "dashmstdout"
64144     # mode.  It turns out that the SunPro C++ compiler does not properly
64145     # handle '-M -o', and we need to detect this.  Also, some Intel
64146     # versions had trouble with output in subdirs.
64147     am__obj=sub/conftest.${OBJEXT-o}
64148     am__minus_obj="-o $am__obj"
64149     case $depmode in
64150     gcc)
64151       # This depmode causes a compiler race in universal mode.
64152       test "$am__universal" = false || continue
64153       ;;
64154     nosideeffect)
64155       # After this tag, mechanisms are not by side-effect, so they'll
64156       # only be used when explicitly requested.
64157       if test "x$enable_dependency_tracking" = xyes; then
64158         continue
64159       else
64160         break
64161       fi
64162       ;;
64163     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
64164       # This compiler won't grok '-c -o', but also, the minuso test has
64165       # not run yet.  These depmodes are late enough in the game, and
64166       # so weak that their functioning should not be impacted.
64167       am__obj=conftest.${OBJEXT-o}
64168       am__minus_obj=
64169       ;;
64170     none) break ;;
64171     esac
64172     if depmode=$depmode \
64173        source=sub/conftest.c object=$am__obj \
64174        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
64175        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
64176          >/dev/null 2>conftest.err &&
64177        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
64178        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
64179        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
64180        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
64181       # icc doesn't choke on unknown options, it will just issue warnings
64182       # or remarks (even with -Werror).  So we grep stderr for any message
64183       # that says an option was ignored or not supported.
64184       # When given -MP, icc 7.0 and 7.1 complain thusly:
64185       #   icc: Command line warning: ignoring option '-M'; no argument required
64186       # The diagnosis changed in icc 8.0:
64187       #   icc: Command line remark: option '-MP' not supported
64188       if (grep 'ignoring option' conftest.err ||
64189           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
64190         am_cv_CXX_dependencies_compiler_type=$depmode
64191         break
64192       fi
64193     fi
64194   done
64195
64196   cd ..
64197   rm -rf conftest.dir
64198 else
64199   am_cv_CXX_dependencies_compiler_type=none
64200 fi
64201
64202 fi
64203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
64204 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
64205 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
64206
64207  if
64208   test "x$enable_dependency_tracking" != xno \
64209   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
64210   am__fastdepCXX_TRUE=
64211   am__fastdepCXX_FALSE='#'
64212 else
64213   am__fastdepCXX_TRUE='#'
64214   am__fastdepCXX_FALSE=
64215 fi
64216
64217
64218   else
64219      if false; then
64220   am__fastdepCXX_TRUE=
64221   am__fastdepCXX_FALSE='#'
64222 else
64223   am__fastdepCXX_TRUE='#'
64224   am__fastdepCXX_FALSE=
64225 fi
64226
64227   fi
64228
64229
64230
64231
64232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
64233 $as_echo_n "checking for a traditional french locale... " >&6; }
64234 if ${gt_cv_locale_fr+:} false; then :
64235   $as_echo_n "(cached) " >&6
64236 else
64237
64238     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64239 /* end confdefs.h.  */
64240
64241 #include <locale.h>
64242 #include <time.h>
64243 #if HAVE_LANGINFO_CODESET
64244 # include <langinfo.h>
64245 #endif
64246 #include <stdlib.h>
64247 #include <string.h>
64248 struct tm t;
64249 char buf[16];
64250 int main () {
64251   /* Check whether the given locale name is recognized by the system.  */
64252 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
64253   /* On native Windows, setlocale(category, "") looks at the system settings,
64254      not at the environment variables.  Also, when an encoding suffix such
64255      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
64256      category of the locale to "C".  */
64257   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
64258       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
64259     return 1;
64260 #else
64261   if (setlocale (LC_ALL, "") == NULL) return 1;
64262 #endif
64263   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
64264      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
64265      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
64266      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
64267      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
64268      some unit tests fail.
64269      On MirBSD 10, when an unsupported locale is specified, setlocale()
64270      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
64271 #if HAVE_LANGINFO_CODESET
64272   {
64273     const char *cs = nl_langinfo (CODESET);
64274     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
64275         || strcmp (cs, "UTF-8") == 0)
64276       return 1;
64277   }
64278 #endif
64279 #ifdef __CYGWIN__
64280   /* On Cygwin, avoid locale names without encoding suffix, because the
64281      locale_charset() function relies on the encoding suffix.  Note that
64282      LC_ALL is set on the command line.  */
64283   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
64284 #endif
64285   /* Check whether in the abbreviation of the second month, the second
64286      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
64287      one byte long. This excludes the UTF-8 encoding.  */
64288   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
64289   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
64290 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
64291   /* Check whether the decimal separator is a comma.
64292      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
64293      are nl_langinfo(RADIXCHAR) are both ".".  */
64294   if (localeconv () ->decimal_point[0] != ',') return 1;
64295 #endif
64296   return 0;
64297 }
64298
64299 _ACEOF
64300     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
64301   (eval $ac_link) 2>&5
64302   ac_status=$?
64303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64304   test $ac_status = 0; } && test -s conftest$ac_exeext; then
64305       case "$host_os" in
64306         # Handle native Windows specially, because there setlocale() interprets
64307         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
64308         # "fr" or "fra" as "French" or "French_France.1252",
64309         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
64310         # "ja" as "Japanese" or "Japanese_Japan.932",
64311         # and similar.
64312         mingw*)
64313           # Test for the native Windows locale name.
64314           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64315             gt_cv_locale_fr=French_France.1252
64316           else
64317             # None found.
64318             gt_cv_locale_fr=none
64319           fi
64320           ;;
64321         *)
64322           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
64323           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
64324           # configure script would override the LC_ALL setting. Likewise for
64325           # LC_CTYPE, which is also set at the beginning of the configure script.
64326           # Test for the usual locale name.
64327           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64328             gt_cv_locale_fr=fr_FR
64329           else
64330             # Test for the locale name with explicit encoding suffix.
64331             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64332               gt_cv_locale_fr=fr_FR.ISO-8859-1
64333             else
64334               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
64335               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64336                 gt_cv_locale_fr=fr_FR.ISO8859-1
64337               else
64338                 # Test for the HP-UX locale name.
64339                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64340                   gt_cv_locale_fr=fr_FR.iso88591
64341                 else
64342                   # Test for the Solaris 7 locale name.
64343                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64344                     gt_cv_locale_fr=fr
64345                   else
64346                     # None found.
64347                     gt_cv_locale_fr=none
64348                   fi
64349                 fi
64350               fi
64351             fi
64352           fi
64353           ;;
64354       esac
64355     fi
64356     rm -fr conftest*
64357
64358 fi
64359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
64360 $as_echo "$gt_cv_locale_fr" >&6; }
64361   LOCALE_FR=$gt_cv_locale_fr
64362
64363
64364
64365
64366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
64367 $as_echo_n "checking for a french Unicode locale... " >&6; }
64368 if ${gt_cv_locale_fr_utf8+:} false; then :
64369   $as_echo_n "(cached) " >&6
64370 else
64371
64372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64373 /* end confdefs.h.  */
64374
64375 #include <locale.h>
64376 #include <time.h>
64377 #if HAVE_LANGINFO_CODESET
64378 # include <langinfo.h>
64379 #endif
64380 #include <stdlib.h>
64381 #include <string.h>
64382 struct tm t;
64383 char buf[16];
64384 int main () {
64385   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
64386      imitates locale dependent behaviour by looking at the environment
64387      variables, and all locales use the UTF-8 encoding.  */
64388 #if !(defined __BEOS__ || defined __HAIKU__)
64389   /* Check whether the given locale name is recognized by the system.  */
64390 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
64391   /* On native Windows, setlocale(category, "") looks at the system settings,
64392      not at the environment variables.  Also, when an encoding suffix such
64393      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
64394      category of the locale to "C".  */
64395   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
64396       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
64397     return 1;
64398 # else
64399   if (setlocale (LC_ALL, "") == NULL) return 1;
64400 # endif
64401   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
64402      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
64403      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
64404      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
64405      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
64406      some unit tests fail.  */
64407 # if HAVE_LANGINFO_CODESET
64408   {
64409     const char *cs = nl_langinfo (CODESET);
64410     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
64411       return 1;
64412   }
64413 # endif
64414 # ifdef __CYGWIN__
64415   /* On Cygwin, avoid locale names without encoding suffix, because the
64416      locale_charset() function relies on the encoding suffix.  Note that
64417      LC_ALL is set on the command line.  */
64418   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
64419 # endif
64420   /* Check whether in the abbreviation of the second month, the second
64421      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
64422      two bytes long, with UTF-8 encoding.  */
64423   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
64424   if (strftime (buf, sizeof (buf), "%b", &t) < 4
64425       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
64426     return 1;
64427 #endif
64428 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
64429   /* Check whether the decimal separator is a comma.
64430      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
64431      are nl_langinfo(RADIXCHAR) are both ".".  */
64432   if (localeconv () ->decimal_point[0] != ',') return 1;
64433 #endif
64434   return 0;
64435 }
64436
64437 _ACEOF
64438     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
64439   (eval $ac_link) 2>&5
64440   ac_status=$?
64441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64442   test $ac_status = 0; } && test -s conftest$ac_exeext; then
64443       case "$host_os" in
64444         # Handle native Windows specially, because there setlocale() interprets
64445         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
64446         # "fr" or "fra" as "French" or "French_France.1252",
64447         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
64448         # "ja" as "Japanese" or "Japanese_Japan.932",
64449         # and similar.
64450         mingw*)
64451           # Test for the hypothetical native Windows locale name.
64452           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64453             gt_cv_locale_fr_utf8=French_France.65001
64454           else
64455             # None found.
64456             gt_cv_locale_fr_utf8=none
64457           fi
64458           ;;
64459         *)
64460           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
64461           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
64462           # configure script would override the LC_ALL setting. Likewise for
64463           # LC_CTYPE, which is also set at the beginning of the configure script.
64464           # Test for the usual locale name.
64465           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64466             gt_cv_locale_fr_utf8=fr_FR
64467           else
64468             # Test for the locale name with explicit encoding suffix.
64469             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64470               gt_cv_locale_fr_utf8=fr_FR.UTF-8
64471             else
64472               # Test for the Solaris 7 locale name.
64473               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64474                 gt_cv_locale_fr_utf8=fr.UTF-8
64475               else
64476                 # None found.
64477                 gt_cv_locale_fr_utf8=none
64478               fi
64479             fi
64480           fi
64481           ;;
64482       esac
64483     fi
64484     rm -fr conftest*
64485
64486 fi
64487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
64488 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
64489   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
64490
64491
64492
64493
64494
64495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
64496 $as_echo_n "checking for a traditional japanese locale... " >&6; }
64497 if ${gt_cv_locale_ja+:} false; then :
64498   $as_echo_n "(cached) " >&6
64499 else
64500
64501     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64502 /* end confdefs.h.  */
64503
64504 #include <locale.h>
64505 #include <time.h>
64506 #if HAVE_LANGINFO_CODESET
64507 # include <langinfo.h>
64508 #endif
64509 #include <stdlib.h>
64510 #include <string.h>
64511 struct tm t;
64512 char buf[16];
64513 int main ()
64514 {
64515   const char *p;
64516   /* Check whether the given locale name is recognized by the system.  */
64517 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
64518   /* On native Windows, setlocale(category, "") looks at the system settings,
64519      not at the environment variables.  Also, when an encoding suffix such
64520      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
64521      category of the locale to "C".  */
64522   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
64523       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
64524     return 1;
64525 #else
64526   if (setlocale (LC_ALL, "") == NULL) return 1;
64527 #endif
64528   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
64529      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
64530      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
64531      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
64532      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
64533      some unit tests fail.
64534      On MirBSD 10, when an unsupported locale is specified, setlocale()
64535      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
64536 #if HAVE_LANGINFO_CODESET
64537   {
64538     const char *cs = nl_langinfo (CODESET);
64539     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
64540         || strcmp (cs, "UTF-8") == 0)
64541       return 1;
64542   }
64543 #endif
64544 #ifdef __CYGWIN__
64545   /* On Cygwin, avoid locale names without encoding suffix, because the
64546      locale_charset() function relies on the encoding suffix.  Note that
64547      LC_ALL is set on the command line.  */
64548   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
64549 #endif
64550   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
64551      on Cygwin 1.5.x.  */
64552   if (MB_CUR_MAX == 1)
64553     return 1;
64554   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
64555      This excludes the UTF-8 encoding (except on MirBSD).  */
64556   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
64557   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
64558   for (p = buf; *p != '\0'; p++)
64559     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
64560       return 1;
64561   return 0;
64562 }
64563
64564 _ACEOF
64565     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
64566   (eval $ac_link) 2>&5
64567   ac_status=$?
64568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64569   test $ac_status = 0; } && test -s conftest$ac_exeext; then
64570       case "$host_os" in
64571         # Handle native Windows specially, because there setlocale() interprets
64572         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
64573         # "fr" or "fra" as "French" or "French_France.1252",
64574         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
64575         # "ja" as "Japanese" or "Japanese_Japan.932",
64576         # and similar.
64577         mingw*)
64578           # Note that on native Windows, the Japanese locale is
64579           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
64580           # cannot use it here.
64581           gt_cv_locale_ja=none
64582           ;;
64583         *)
64584           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
64585           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
64586           # configure script would override the LC_ALL setting. Likewise for
64587           # LC_CTYPE, which is also set at the beginning of the configure script.
64588           # Test for the AIX locale name.
64589           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64590             gt_cv_locale_ja=ja_JP
64591           else
64592             # Test for the locale name with explicit encoding suffix.
64593             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64594               gt_cv_locale_ja=ja_JP.EUC-JP
64595             else
64596               # Test for the HP-UX, OSF/1, NetBSD locale name.
64597               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64598                 gt_cv_locale_ja=ja_JP.eucJP
64599               else
64600                 # Test for the IRIX, FreeBSD locale name.
64601                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64602                   gt_cv_locale_ja=ja_JP.EUC
64603                 else
64604                   # Test for the Solaris 7 locale name.
64605                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
64606                     gt_cv_locale_ja=ja
64607                   else
64608                     # Special test for NetBSD 1.6.
64609                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
64610                       gt_cv_locale_ja=ja_JP.eucJP
64611                     else
64612                       # None found.
64613                       gt_cv_locale_ja=none
64614                     fi
64615                   fi
64616                 fi
64617               fi
64618             fi
64619           fi
64620           ;;
64621       esac
64622     fi
64623     rm -fr conftest*
64624
64625 fi
64626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
64627 $as_echo "$gt_cv_locale_ja" >&6; }
64628   LOCALE_JA=$gt_cv_locale_ja
64629
64630
64631
64632
64633
64634
64635
64636
64637
64638
64639
64640 ac_ext=cpp
64641 ac_cpp='$CXXCPP $CPPFLAGS'
64642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64645 if test -z "$CXX"; then
64646   if test -n "$CCC"; then
64647     CXX=$CCC
64648   else
64649     if test -n "$ac_tool_prefix"; then
64650   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
64651   do
64652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
64653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64655 $as_echo_n "checking for $ac_word... " >&6; }
64656 if ${ac_cv_prog_CXX+:} false; then :
64657   $as_echo_n "(cached) " >&6
64658 else
64659   if test -n "$CXX"; then
64660   ac_cv_prog_CXX="$CXX" # Let the user override the test.
64661 else
64662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64663 for as_dir in $PATH
64664 do
64665   IFS=$as_save_IFS
64666   test -z "$as_dir" && as_dir=.
64667     for ac_exec_ext in '' $ac_executable_extensions; do
64668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64669     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
64670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
64671     break 2
64672   fi
64673 done
64674   done
64675 IFS=$as_save_IFS
64676
64677 fi
64678 fi
64679 CXX=$ac_cv_prog_CXX
64680 if test -n "$CXX"; then
64681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
64682 $as_echo "$CXX" >&6; }
64683 else
64684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64685 $as_echo "no" >&6; }
64686 fi
64687
64688
64689     test -n "$CXX" && break
64690   done
64691 fi
64692 if test -z "$CXX"; then
64693   ac_ct_CXX=$CXX
64694   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
64695 do
64696   # Extract the first word of "$ac_prog", so it can be a program name with args.
64697 set dummy $ac_prog; ac_word=$2
64698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64699 $as_echo_n "checking for $ac_word... " >&6; }
64700 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
64701   $as_echo_n "(cached) " >&6
64702 else
64703   if test -n "$ac_ct_CXX"; then
64704   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
64705 else
64706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64707 for as_dir in $PATH
64708 do
64709   IFS=$as_save_IFS
64710   test -z "$as_dir" && as_dir=.
64711     for ac_exec_ext in '' $ac_executable_extensions; do
64712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64713     ac_cv_prog_ac_ct_CXX="$ac_prog"
64714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
64715     break 2
64716   fi
64717 done
64718   done
64719 IFS=$as_save_IFS
64720
64721 fi
64722 fi
64723 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
64724 if test -n "$ac_ct_CXX"; then
64725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
64726 $as_echo "$ac_ct_CXX" >&6; }
64727 else
64728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64729 $as_echo "no" >&6; }
64730 fi
64731
64732
64733   test -n "$ac_ct_CXX" && break
64734 done
64735
64736   if test "x$ac_ct_CXX" = x; then
64737     CXX="g++"
64738   else
64739     case $cross_compiling:$ac_tool_warned in
64740 yes:)
64741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
64742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
64743 ac_tool_warned=yes ;;
64744 esac
64745     CXX=$ac_ct_CXX
64746   fi
64747 fi
64748
64749   fi
64750 fi
64751 # Provide some information about the compiler.
64752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
64753 set X $ac_compile
64754 ac_compiler=$2
64755 for ac_option in --version -v -V -qversion; do
64756   { { ac_try="$ac_compiler $ac_option >&5"
64757 case "(($ac_try" in
64758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64759   *) ac_try_echo=$ac_try;;
64760 esac
64761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
64762 $as_echo "$ac_try_echo"; } >&5
64763   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
64764   ac_status=$?
64765   if test -s conftest.err; then
64766     sed '10a\
64767 ... rest of stderr output deleted ...
64768          10q' conftest.err >conftest.er1
64769     cat conftest.er1 >&5
64770   fi
64771   rm -f conftest.er1 conftest.err
64772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64773   test $ac_status = 0; }
64774 done
64775
64776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
64777 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
64778 if ${ac_cv_cxx_compiler_gnu+:} false; then :
64779   $as_echo_n "(cached) " >&6
64780 else
64781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64782 /* end confdefs.h.  */
64783
64784 int
64785 main ()
64786 {
64787 #ifndef __GNUC__
64788        choke me
64789 #endif
64790
64791   ;
64792   return 0;
64793 }
64794 _ACEOF
64795 if ac_fn_cxx_try_compile "$LINENO"; then :
64796   ac_compiler_gnu=yes
64797 else
64798   ac_compiler_gnu=no
64799 fi
64800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64801 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
64802
64803 fi
64804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
64805 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
64806 if test $ac_compiler_gnu = yes; then
64807   GXX=yes
64808 else
64809   GXX=
64810 fi
64811 ac_test_CXXFLAGS=${CXXFLAGS+set}
64812 ac_save_CXXFLAGS=$CXXFLAGS
64813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
64814 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
64815 if ${ac_cv_prog_cxx_g+:} false; then :
64816   $as_echo_n "(cached) " >&6
64817 else
64818   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
64819    ac_cxx_werror_flag=yes
64820    ac_cv_prog_cxx_g=no
64821    CXXFLAGS="-g"
64822    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64823 /* end confdefs.h.  */
64824
64825 int
64826 main ()
64827 {
64828
64829   ;
64830   return 0;
64831 }
64832 _ACEOF
64833 if ac_fn_cxx_try_compile "$LINENO"; then :
64834   ac_cv_prog_cxx_g=yes
64835 else
64836   CXXFLAGS=""
64837       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64838 /* end confdefs.h.  */
64839
64840 int
64841 main ()
64842 {
64843
64844   ;
64845   return 0;
64846 }
64847 _ACEOF
64848 if ac_fn_cxx_try_compile "$LINENO"; then :
64849
64850 else
64851   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
64852          CXXFLAGS="-g"
64853          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64854 /* end confdefs.h.  */
64855
64856 int
64857 main ()
64858 {
64859
64860   ;
64861   return 0;
64862 }
64863 _ACEOF
64864 if ac_fn_cxx_try_compile "$LINENO"; then :
64865   ac_cv_prog_cxx_g=yes
64866 fi
64867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64868 fi
64869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64870 fi
64871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64872    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
64873 fi
64874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
64875 $as_echo "$ac_cv_prog_cxx_g" >&6; }
64876 if test "$ac_test_CXXFLAGS" = set; then
64877   CXXFLAGS=$ac_save_CXXFLAGS
64878 elif test $ac_cv_prog_cxx_g = yes; then
64879   if test "$GXX" = yes; then
64880     CXXFLAGS="-g -O2"
64881   else
64882     CXXFLAGS="-g"
64883   fi
64884 else
64885   if test "$GXX" = yes; then
64886     CXXFLAGS="-O2"
64887   else
64888     CXXFLAGS=
64889   fi
64890 fi
64891 ac_ext=c
64892 ac_cpp='$CPP $CPPFLAGS'
64893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
64896
64897 depcc="$CXX"  am_compiler_list=
64898
64899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
64900 $as_echo_n "checking dependency style of $depcc... " >&6; }
64901 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
64902   $as_echo_n "(cached) " >&6
64903 else
64904   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
64905   # We make a subdir and do the tests there.  Otherwise we can end up
64906   # making bogus files that we don't know about and never remove.  For
64907   # instance it was reported that on HP-UX the gcc test will end up
64908   # making a dummy file named 'D' -- because '-MD' means "put the output
64909   # in D".
64910   rm -rf conftest.dir
64911   mkdir conftest.dir
64912   # Copy depcomp to subdir because otherwise we won't find it if we're
64913   # using a relative directory.
64914   cp "$am_depcomp" conftest.dir
64915   cd conftest.dir
64916   # We will build objects and dependencies in a subdirectory because
64917   # it helps to detect inapplicable dependency modes.  For instance
64918   # both Tru64's cc and ICC support -MD to output dependencies as a
64919   # side effect of compilation, but ICC will put the dependencies in
64920   # the current directory while Tru64 will put them in the object
64921   # directory.
64922   mkdir sub
64923
64924   am_cv_CXX_dependencies_compiler_type=none
64925   if test "$am_compiler_list" = ""; then
64926      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
64927   fi
64928   am__universal=false
64929   case " $depcc " in #(
64930      *\ -arch\ *\ -arch\ *) am__universal=true ;;
64931      esac
64932
64933   for depmode in $am_compiler_list; do
64934     # Setup a source with many dependencies, because some compilers
64935     # like to wrap large dependency lists on column 80 (with \), and
64936     # we should not choose a depcomp mode which is confused by this.
64937     #
64938     # We need to recreate these files for each test, as the compiler may
64939     # overwrite some of them when testing with obscure command lines.
64940     # This happens at least with the AIX C compiler.
64941     : > sub/conftest.c
64942     for i in 1 2 3 4 5 6; do
64943       echo '#include "conftst'$i'.h"' >> sub/conftest.c
64944       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
64945       # Solaris 10 /bin/sh.
64946       echo '/* dummy */' > sub/conftst$i.h
64947     done
64948     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
64949
64950     # We check with '-c' and '-o' for the sake of the "dashmstdout"
64951     # mode.  It turns out that the SunPro C++ compiler does not properly
64952     # handle '-M -o', and we need to detect this.  Also, some Intel
64953     # versions had trouble with output in subdirs.
64954     am__obj=sub/conftest.${OBJEXT-o}
64955     am__minus_obj="-o $am__obj"
64956     case $depmode in
64957     gcc)
64958       # This depmode causes a compiler race in universal mode.
64959       test "$am__universal" = false || continue
64960       ;;
64961     nosideeffect)
64962       # After this tag, mechanisms are not by side-effect, so they'll
64963       # only be used when explicitly requested.
64964       if test "x$enable_dependency_tracking" = xyes; then
64965         continue
64966       else
64967         break
64968       fi
64969       ;;
64970     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
64971       # This compiler won't grok '-c -o', but also, the minuso test has
64972       # not run yet.  These depmodes are late enough in the game, and
64973       # so weak that their functioning should not be impacted.
64974       am__obj=conftest.${OBJEXT-o}
64975       am__minus_obj=
64976       ;;
64977     none) break ;;
64978     esac
64979     if depmode=$depmode \
64980        source=sub/conftest.c object=$am__obj \
64981        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
64982        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
64983          >/dev/null 2>conftest.err &&
64984        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
64985        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
64986        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
64987        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
64988       # icc doesn't choke on unknown options, it will just issue warnings
64989       # or remarks (even with -Werror).  So we grep stderr for any message
64990       # that says an option was ignored or not supported.
64991       # When given -MP, icc 7.0 and 7.1 complain thusly:
64992       #   icc: Command line warning: ignoring option '-M'; no argument required
64993       # The diagnosis changed in icc 8.0:
64994       #   icc: Command line remark: option '-MP' not supported
64995       if (grep 'ignoring option' conftest.err ||
64996           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
64997         am_cv_CXX_dependencies_compiler_type=$depmode
64998         break
64999       fi
65000     fi
65001   done
65002
65003   cd ..
65004   rm -rf conftest.dir
65005 else
65006   am_cv_CXX_dependencies_compiler_type=none
65007 fi
65008
65009 fi
65010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
65011 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
65012 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
65013
65014  if
65015   test "x$enable_dependency_tracking" != xno \
65016   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
65017   am__fastdepCXX_TRUE=
65018   am__fastdepCXX_FALSE='#'
65019 else
65020   am__fastdepCXX_TRUE='#'
65021   am__fastdepCXX_FALSE=
65022 fi
65023
65024
65025
65026
65027
65028 func_stripname_cnf ()
65029 {
65030   case ${2} in
65031   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
65032   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
65033   esac
65034 } # func_stripname_cnf
65035
65036       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
65037     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
65038     (test "X$CXX" != "Xg++"))) ; then
65039   ac_ext=cpp
65040 ac_cpp='$CXXCPP $CPPFLAGS'
65041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
65044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
65045 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
65046 if test -z "$CXXCPP"; then
65047   if ${ac_cv_prog_CXXCPP+:} false; then :
65048   $as_echo_n "(cached) " >&6
65049 else
65050       # Double quotes because CXXCPP needs to be expanded
65051     for CXXCPP in "$CXX -E" "/lib/cpp"
65052     do
65053       ac_preproc_ok=false
65054 for ac_cxx_preproc_warn_flag in '' yes
65055 do
65056   # Use a header file that comes with gcc, so configuring glibc
65057   # with a fresh cross-compiler works.
65058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65059   # <limits.h> exists even on freestanding compilers.
65060   # On the NeXT, cc -E runs the code through the compiler's parser,
65061   # not just through cpp. "Syntax error" is here to catch this case.
65062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65063 /* end confdefs.h.  */
65064 #ifdef __STDC__
65065 # include <limits.h>
65066 #else
65067 # include <assert.h>
65068 #endif
65069                      Syntax error
65070 _ACEOF
65071 if ac_fn_cxx_try_cpp "$LINENO"; then :
65072
65073 else
65074   # Broken: fails on valid input.
65075 continue
65076 fi
65077 rm -f conftest.err conftest.i conftest.$ac_ext
65078
65079   # OK, works on sane cases.  Now check whether nonexistent headers
65080   # can be detected and how.
65081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65082 /* end confdefs.h.  */
65083 #include <ac_nonexistent.h>
65084 _ACEOF
65085 if ac_fn_cxx_try_cpp "$LINENO"; then :
65086   # Broken: success on invalid input.
65087 continue
65088 else
65089   # Passes both tests.
65090 ac_preproc_ok=:
65091 break
65092 fi
65093 rm -f conftest.err conftest.i conftest.$ac_ext
65094
65095 done
65096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
65097 rm -f conftest.i conftest.err conftest.$ac_ext
65098 if $ac_preproc_ok; then :
65099   break
65100 fi
65101
65102     done
65103     ac_cv_prog_CXXCPP=$CXXCPP
65104
65105 fi
65106   CXXCPP=$ac_cv_prog_CXXCPP
65107 else
65108   ac_cv_prog_CXXCPP=$CXXCPP
65109 fi
65110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
65111 $as_echo "$CXXCPP" >&6; }
65112 ac_preproc_ok=false
65113 for ac_cxx_preproc_warn_flag in '' yes
65114 do
65115   # Use a header file that comes with gcc, so configuring glibc
65116   # with a fresh cross-compiler works.
65117   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65118   # <limits.h> exists even on freestanding compilers.
65119   # On the NeXT, cc -E runs the code through the compiler's parser,
65120   # not just through cpp. "Syntax error" is here to catch this case.
65121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65122 /* end confdefs.h.  */
65123 #ifdef __STDC__
65124 # include <limits.h>
65125 #else
65126 # include <assert.h>
65127 #endif
65128                      Syntax error
65129 _ACEOF
65130 if ac_fn_cxx_try_cpp "$LINENO"; then :
65131
65132 else
65133   # Broken: fails on valid input.
65134 continue
65135 fi
65136 rm -f conftest.err conftest.i conftest.$ac_ext
65137
65138   # OK, works on sane cases.  Now check whether nonexistent headers
65139   # can be detected and how.
65140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65141 /* end confdefs.h.  */
65142 #include <ac_nonexistent.h>
65143 _ACEOF
65144 if ac_fn_cxx_try_cpp "$LINENO"; then :
65145   # Broken: success on invalid input.
65146 continue
65147 else
65148   # Passes both tests.
65149 ac_preproc_ok=:
65150 break
65151 fi
65152 rm -f conftest.err conftest.i conftest.$ac_ext
65153
65154 done
65155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
65156 rm -f conftest.i conftest.err conftest.$ac_ext
65157 if $ac_preproc_ok; then :
65158
65159 else
65160   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
65161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
65162 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
65163 See \`config.log' for more details" "$LINENO" 5; }
65164 fi
65165
65166 ac_ext=c
65167 ac_cpp='$CPP $CPPFLAGS'
65168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
65171
65172 else
65173   _lt_caught_CXX_error=yes
65174 fi
65175
65176 ac_ext=cpp
65177 ac_cpp='$CXXCPP $CPPFLAGS'
65178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
65181
65182 archive_cmds_need_lc_CXX=no
65183 allow_undefined_flag_CXX=
65184 always_export_symbols_CXX=no
65185 archive_expsym_cmds_CXX=
65186 compiler_needs_object_CXX=no
65187 export_dynamic_flag_spec_CXX=
65188 hardcode_direct_CXX=no
65189 hardcode_direct_absolute_CXX=no
65190 hardcode_libdir_flag_spec_CXX=
65191 hardcode_libdir_separator_CXX=
65192 hardcode_minus_L_CXX=no
65193 hardcode_shlibpath_var_CXX=unsupported
65194 hardcode_automatic_CXX=no
65195 inherit_rpath_CXX=no
65196 module_cmds_CXX=
65197 module_expsym_cmds_CXX=
65198 link_all_deplibs_CXX=unknown
65199 old_archive_cmds_CXX=$old_archive_cmds
65200 reload_flag_CXX=$reload_flag
65201 reload_cmds_CXX=$reload_cmds
65202 no_undefined_flag_CXX=
65203 whole_archive_flag_spec_CXX=
65204 enable_shared_with_static_runtimes_CXX=no
65205
65206 # Source file extension for C++ test sources.
65207 ac_ext=cpp
65208
65209 # Object file extension for compiled C++ test sources.
65210 objext=o
65211 objext_CXX=$objext
65212
65213 # No sense in running all these tests if we already determined that
65214 # the CXX compiler isn't working.  Some variables (like enable_shared)
65215 # are currently assumed to apply to all compilers on this platform,
65216 # and will be corrupted by setting them based on a non-working compiler.
65217 if test "$_lt_caught_CXX_error" != yes; then
65218   # Code to be used in simple compile tests
65219   lt_simple_compile_test_code="int some_variable = 0;"
65220
65221   # Code to be used in simple link tests
65222   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
65223
65224   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
65225
65226
65227
65228
65229
65230
65231 # If no C compiler was specified, use CC.
65232 LTCC=${LTCC-"$CC"}
65233
65234 # If no C compiler flags were specified, use CFLAGS.
65235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
65236
65237 # Allow CC to be a program name with arguments.
65238 compiler=$CC
65239
65240
65241   # save warnings/boilerplate of simple test code
65242   ac_outfile=conftest.$ac_objext
65243 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
65244 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
65245 _lt_compiler_boilerplate=`cat conftest.err`
65246 $RM conftest*
65247
65248   ac_outfile=conftest.$ac_objext
65249 echo "$lt_simple_link_test_code" >conftest.$ac_ext
65250 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
65251 _lt_linker_boilerplate=`cat conftest.err`
65252 $RM -r conftest*
65253
65254
65255   # Allow CC to be a program name with arguments.
65256   lt_save_CC=$CC
65257   lt_save_CFLAGS=$CFLAGS
65258   lt_save_LD=$LD
65259   lt_save_GCC=$GCC
65260   GCC=$GXX
65261   lt_save_with_gnu_ld=$with_gnu_ld
65262   lt_save_path_LD=$lt_cv_path_LD
65263   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
65264     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
65265   else
65266     $as_unset lt_cv_prog_gnu_ld
65267   fi
65268   if test -n "${lt_cv_path_LDCXX+set}"; then
65269     lt_cv_path_LD=$lt_cv_path_LDCXX
65270   else
65271     $as_unset lt_cv_path_LD
65272   fi
65273   test -z "${LDCXX+set}" || LD=$LDCXX
65274   CC=${CXX-"c++"}
65275   CFLAGS=$CXXFLAGS
65276   compiler=$CC
65277   compiler_CXX=$CC
65278   for cc_temp in $compiler""; do
65279   case $cc_temp in
65280     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
65281     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
65282     \-*) ;;
65283     *) break;;
65284   esac
65285 done
65286 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
65287
65288
65289   if test -n "$compiler"; then
65290     # We don't want -fno-exception when compiling C++ code, so set the
65291     # no_builtin_flag separately
65292     if test "$GXX" = yes; then
65293       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
65294     else
65295       lt_prog_compiler_no_builtin_flag_CXX=
65296     fi
65297
65298     if test "$GXX" = yes; then
65299       # Set up default GNU C++ configuration
65300
65301
65302
65303 # Check whether --with-gnu-ld was given.
65304 if test "${with_gnu_ld+set}" = set; then :
65305   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
65306 else
65307   with_gnu_ld=no
65308 fi
65309
65310 ac_prog=ld
65311 if test "$GCC" = yes; then
65312   # Check if gcc -print-prog-name=ld gives a path.
65313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
65314 $as_echo_n "checking for ld used by $CC... " >&6; }
65315   case $host in
65316   *-*-mingw*)
65317     # gcc leaves a trailing carriage return which upsets mingw
65318     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
65319   *)
65320     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
65321   esac
65322   case $ac_prog in
65323     # Accept absolute paths.
65324     [\\/]* | ?:[\\/]*)
65325       re_direlt='/[^/][^/]*/\.\./'
65326       # Canonicalize the pathname of ld
65327       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
65328       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
65329         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
65330       done
65331       test -z "$LD" && LD="$ac_prog"
65332       ;;
65333   "")
65334     # If it fails, then pretend we aren't using GCC.
65335     ac_prog=ld
65336     ;;
65337   *)
65338     # If it is relative, then search for the first ld in PATH.
65339     with_gnu_ld=unknown
65340     ;;
65341   esac
65342 elif test "$with_gnu_ld" = yes; then
65343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
65344 $as_echo_n "checking for GNU ld... " >&6; }
65345 else
65346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
65347 $as_echo_n "checking for non-GNU ld... " >&6; }
65348 fi
65349 if ${lt_cv_path_LD+:} false; then :
65350   $as_echo_n "(cached) " >&6
65351 else
65352   if test -z "$LD"; then
65353   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
65354   for ac_dir in $PATH; do
65355     IFS="$lt_save_ifs"
65356     test -z "$ac_dir" && ac_dir=.
65357     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
65358       lt_cv_path_LD="$ac_dir/$ac_prog"
65359       # Check to see if the program is GNU ld.  I'd rather use --version,
65360       # but apparently some variants of GNU ld only accept -v.
65361       # Break only if it was the GNU/non-GNU ld that we prefer.
65362       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
65363       *GNU* | *'with BFD'*)
65364         test "$with_gnu_ld" != no && break
65365         ;;
65366       *)
65367         test "$with_gnu_ld" != yes && break
65368         ;;
65369       esac
65370     fi
65371   done
65372   IFS="$lt_save_ifs"
65373 else
65374   lt_cv_path_LD="$LD" # Let the user override the test with a path.
65375 fi
65376 fi
65377
65378 LD="$lt_cv_path_LD"
65379 if test -n "$LD"; then
65380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
65381 $as_echo "$LD" >&6; }
65382 else
65383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65384 $as_echo "no" >&6; }
65385 fi
65386 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
65387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
65388 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
65389 if ${lt_cv_prog_gnu_ld+:} false; then :
65390   $as_echo_n "(cached) " >&6
65391 else
65392   # I'd rather use --version here, but apparently some GNU lds only accept -v.
65393 case `$LD -v 2>&1 </dev/null` in
65394 *GNU* | *'with BFD'*)
65395   lt_cv_prog_gnu_ld=yes
65396   ;;
65397 *)
65398   lt_cv_prog_gnu_ld=no
65399   ;;
65400 esac
65401 fi
65402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
65403 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
65404 with_gnu_ld=$lt_cv_prog_gnu_ld
65405
65406
65407
65408
65409
65410
65411
65412       # Check if GNU C++ uses GNU ld as the underlying linker, since the
65413       # archiving commands below assume that GNU ld is being used.
65414       if test "$with_gnu_ld" = yes; then
65415         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
65416         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
65417
65418         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
65419         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
65420
65421         # If archive_cmds runs LD, not CC, wlarc should be empty
65422         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
65423         #     investigate it a little bit more. (MM)
65424         wlarc='${wl}'
65425
65426         # ancient GNU ld didn't support --whole-archive et. al.
65427         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
65428           $GREP 'no-whole-archive' > /dev/null; then
65429           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
65430         else
65431           whole_archive_flag_spec_CXX=
65432         fi
65433       else
65434         with_gnu_ld=no
65435         wlarc=
65436
65437         # A generic and very simple default shared library creation
65438         # command for GNU C++ for the case where it uses the native
65439         # linker, instead of GNU ld.  If possible, this setting should
65440         # overridden to take advantage of the native linker features on
65441         # the platform it is being used on.
65442         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
65443       fi
65444
65445       # Commands to make compiler produce verbose output that lists
65446       # what "hidden" libraries, object files and flags are used when
65447       # linking a shared library.
65448       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
65449
65450     else
65451       GXX=no
65452       with_gnu_ld=no
65453       wlarc=
65454     fi
65455
65456     # PORTME: fill in a description of your system's C++ link characteristics
65457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
65458 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
65459     ld_shlibs_CXX=yes
65460     case $host_os in
65461       aix3*)
65462         # FIXME: insert proper C++ library support
65463         ld_shlibs_CXX=no
65464         ;;
65465       aix[4-9]*)
65466         if test "$host_cpu" = ia64; then
65467           # On IA64, the linker does run time linking by default, so we don't
65468           # have to do anything special.
65469           aix_use_runtimelinking=no
65470           exp_sym_flag='-Bexport'
65471           no_entry_flag=""
65472         else
65473           aix_use_runtimelinking=no
65474
65475           # Test if we are trying to use run time linking or normal
65476           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
65477           # need to do runtime linking.
65478           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
65479             for ld_flag in $LDFLAGS; do
65480               case $ld_flag in
65481               *-brtl*)
65482                 aix_use_runtimelinking=yes
65483                 break
65484                 ;;
65485               esac
65486             done
65487             ;;
65488           esac
65489
65490           exp_sym_flag='-bexport'
65491           no_entry_flag='-bnoentry'
65492         fi
65493
65494         # When large executables or shared objects are built, AIX ld can
65495         # have problems creating the table of contents.  If linking a library
65496         # or program results in "error TOC overflow" add -mminimal-toc to
65497         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
65498         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
65499
65500         archive_cmds_CXX=''
65501         hardcode_direct_CXX=yes
65502         hardcode_direct_absolute_CXX=yes
65503         hardcode_libdir_separator_CXX=':'
65504         link_all_deplibs_CXX=yes
65505         file_list_spec_CXX='${wl}-f,'
65506
65507         if test "$GXX" = yes; then
65508           case $host_os in aix4.[012]|aix4.[012].*)
65509           # We only want to do this on AIX 4.2 and lower, the check
65510           # below for broken collect2 doesn't work under 4.3+
65511           collect2name=`${CC} -print-prog-name=collect2`
65512           if test -f "$collect2name" &&
65513              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
65514           then
65515             # We have reworked collect2
65516             :
65517           else
65518             # We have old collect2
65519             hardcode_direct_CXX=unsupported
65520             # It fails to find uninstalled libraries when the uninstalled
65521             # path is not listed in the libpath.  Setting hardcode_minus_L
65522             # to unsupported forces relinking
65523             hardcode_minus_L_CXX=yes
65524             hardcode_libdir_flag_spec_CXX='-L$libdir'
65525             hardcode_libdir_separator_CXX=
65526           fi
65527           esac
65528           shared_flag='-shared'
65529           if test "$aix_use_runtimelinking" = yes; then
65530             shared_flag="$shared_flag "'${wl}-G'
65531           fi
65532         else
65533           # not using gcc
65534           if test "$host_cpu" = ia64; then
65535           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
65536           # chokes on -Wl,-G. The following line is correct:
65537           shared_flag='-G'
65538           else
65539             if test "$aix_use_runtimelinking" = yes; then
65540               shared_flag='${wl}-G'
65541             else
65542               shared_flag='${wl}-bM:SRE'
65543             fi
65544           fi
65545         fi
65546
65547         export_dynamic_flag_spec_CXX='${wl}-bexpall'
65548         # It seems that -bexpall does not export symbols beginning with
65549         # underscore (_), so it is better to generate a list of symbols to
65550         # export.
65551         always_export_symbols_CXX=yes
65552         if test "$aix_use_runtimelinking" = yes; then
65553           # Warning - without using the other runtime loading flags (-brtl),
65554           # -berok will link without error, but may produce a broken library.
65555           allow_undefined_flag_CXX='-berok'
65556           # Determine the default libpath from the value encoded in an empty
65557           # executable.
65558           if test "${lt_cv_aix_libpath+set}" = set; then
65559   aix_libpath=$lt_cv_aix_libpath
65560 else
65561   if ${lt_cv_aix_libpath__CXX+:} false; then :
65562   $as_echo_n "(cached) " >&6
65563 else
65564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65565 /* end confdefs.h.  */
65566
65567 int
65568 main ()
65569 {
65570
65571   ;
65572   return 0;
65573 }
65574 _ACEOF
65575 if ac_fn_cxx_try_link "$LINENO"; then :
65576
65577   lt_aix_libpath_sed='
65578       /Import File Strings/,/^$/ {
65579           /^0/ {
65580               s/^0  *\([^ ]*\) *$/\1/
65581               p
65582           }
65583       }'
65584   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
65585   # Check for a 64-bit object if we didn't find anything.
65586   if test -z "$lt_cv_aix_libpath__CXX"; then
65587     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
65588   fi
65589 fi
65590 rm -f core conftest.err conftest.$ac_objext \
65591     conftest$ac_exeext conftest.$ac_ext
65592   if test -z "$lt_cv_aix_libpath__CXX"; then
65593     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
65594   fi
65595
65596 fi
65597
65598   aix_libpath=$lt_cv_aix_libpath__CXX
65599 fi
65600
65601           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
65602
65603           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
65604         else
65605           if test "$host_cpu" = ia64; then
65606             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
65607             allow_undefined_flag_CXX="-z nodefs"
65608             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
65609           else
65610             # Determine the default libpath from the value encoded in an
65611             # empty executable.
65612             if test "${lt_cv_aix_libpath+set}" = set; then
65613   aix_libpath=$lt_cv_aix_libpath
65614 else
65615   if ${lt_cv_aix_libpath__CXX+:} false; then :
65616   $as_echo_n "(cached) " >&6
65617 else
65618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65619 /* end confdefs.h.  */
65620
65621 int
65622 main ()
65623 {
65624
65625   ;
65626   return 0;
65627 }
65628 _ACEOF
65629 if ac_fn_cxx_try_link "$LINENO"; then :
65630
65631   lt_aix_libpath_sed='
65632       /Import File Strings/,/^$/ {
65633           /^0/ {
65634               s/^0  *\([^ ]*\) *$/\1/
65635               p
65636           }
65637       }'
65638   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
65639   # Check for a 64-bit object if we didn't find anything.
65640   if test -z "$lt_cv_aix_libpath__CXX"; then
65641     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
65642   fi
65643 fi
65644 rm -f core conftest.err conftest.$ac_objext \
65645     conftest$ac_exeext conftest.$ac_ext
65646   if test -z "$lt_cv_aix_libpath__CXX"; then
65647     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
65648   fi
65649
65650 fi
65651
65652   aix_libpath=$lt_cv_aix_libpath__CXX
65653 fi
65654
65655             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
65656             # Warning - without using the other run time loading flags,
65657             # -berok will link without error, but may produce a broken library.
65658             no_undefined_flag_CXX=' ${wl}-bernotok'
65659             allow_undefined_flag_CXX=' ${wl}-berok'
65660             if test "$with_gnu_ld" = yes; then
65661               # We only use this code for GNU lds that support --whole-archive.
65662               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
65663             else
65664               # Exported symbols can be pulled into shared objects from archives
65665               whole_archive_flag_spec_CXX='$convenience'
65666             fi
65667             archive_cmds_need_lc_CXX=yes
65668             # This is similar to how AIX traditionally builds its shared
65669             # libraries.
65670             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
65671           fi
65672         fi
65673         ;;
65674
65675       beos*)
65676         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
65677           allow_undefined_flag_CXX=unsupported
65678           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
65679           # support --undefined.  This deserves some investigation.  FIXME
65680           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
65681         else
65682           ld_shlibs_CXX=no
65683         fi
65684         ;;
65685
65686       chorus*)
65687         case $cc_basename in
65688           *)
65689           # FIXME: insert proper C++ library support
65690           ld_shlibs_CXX=no
65691           ;;
65692         esac
65693         ;;
65694
65695       cygwin* | mingw* | pw32* | cegcc*)
65696         case $GXX,$cc_basename in
65697         ,cl* | no,cl*)
65698           # Native MSVC
65699           # hardcode_libdir_flag_spec is actually meaningless, as there is
65700           # no search path for DLLs.
65701           hardcode_libdir_flag_spec_CXX=' '
65702           allow_undefined_flag_CXX=unsupported
65703           always_export_symbols_CXX=yes
65704           file_list_spec_CXX='@'
65705           # Tell ltmain to make .lib files, not .a files.
65706           libext=lib
65707           # Tell ltmain to make .dll files, not .so files.
65708           shrext_cmds=".dll"
65709           # FIXME: Setting linknames here is a bad hack.
65710           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
65711           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
65712               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
65713             else
65714               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
65715             fi~
65716             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
65717             linknames='
65718           # The linker will not automatically build a static lib if we build a DLL.
65719           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
65720           enable_shared_with_static_runtimes_CXX=yes
65721           # Don't use ranlib
65722           old_postinstall_cmds_CXX='chmod 644 $oldlib'
65723           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
65724             lt_tool_outputfile="@TOOL_OUTPUT@"~
65725             case $lt_outputfile in
65726               *.exe|*.EXE) ;;
65727               *)
65728                 lt_outputfile="$lt_outputfile.exe"
65729                 lt_tool_outputfile="$lt_tool_outputfile.exe"
65730                 ;;
65731             esac~
65732             func_to_tool_file "$lt_outputfile"~
65733             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
65734               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
65735               $RM "$lt_outputfile.manifest";
65736             fi'
65737           ;;
65738         *)
65739           # g++
65740           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
65741           # as there is no search path for DLLs.
65742           hardcode_libdir_flag_spec_CXX='-L$libdir'
65743           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
65744           allow_undefined_flag_CXX=unsupported
65745           always_export_symbols_CXX=no
65746           enable_shared_with_static_runtimes_CXX=yes
65747
65748           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
65749             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
65750             # If the export-symbols file already is a .def file (1st line
65751             # is EXPORTS), use it as is; otherwise, prepend...
65752             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
65753               cp $export_symbols $output_objdir/$soname.def;
65754             else
65755               echo EXPORTS > $output_objdir/$soname.def;
65756               cat $export_symbols >> $output_objdir/$soname.def;
65757             fi~
65758             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
65759           else
65760             ld_shlibs_CXX=no
65761           fi
65762           ;;
65763         esac
65764         ;;
65765       darwin* | rhapsody*)
65766
65767
65768   archive_cmds_need_lc_CXX=no
65769   hardcode_direct_CXX=no
65770   hardcode_automatic_CXX=yes
65771   hardcode_shlibpath_var_CXX=unsupported
65772   if test "$lt_cv_ld_force_load" = "yes"; then
65773     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
65774
65775   else
65776     whole_archive_flag_spec_CXX=''
65777   fi
65778   link_all_deplibs_CXX=yes
65779   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
65780   case $cc_basename in
65781      ifort*) _lt_dar_can_shared=yes ;;
65782      *) _lt_dar_can_shared=$GCC ;;
65783   esac
65784   if test "$_lt_dar_can_shared" = "yes"; then
65785     output_verbose_link_cmd=func_echo_all
65786     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
65787     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
65788     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
65789     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
65790        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
65791       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
65792       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
65793     fi
65794
65795   else
65796   ld_shlibs_CXX=no
65797   fi
65798
65799         ;;
65800
65801       dgux*)
65802         case $cc_basename in
65803           ec++*)
65804             # FIXME: insert proper C++ library support
65805             ld_shlibs_CXX=no
65806             ;;
65807           ghcx*)
65808             # Green Hills C++ Compiler
65809             # FIXME: insert proper C++ library support
65810             ld_shlibs_CXX=no
65811             ;;
65812           *)
65813             # FIXME: insert proper C++ library support
65814             ld_shlibs_CXX=no
65815             ;;
65816         esac
65817         ;;
65818
65819       freebsd2.*)
65820         # C++ shared libraries reported to be fairly broken before
65821         # switch to ELF
65822         ld_shlibs_CXX=no
65823         ;;
65824
65825       freebsd-elf*)
65826         archive_cmds_need_lc_CXX=no
65827         ;;
65828
65829       freebsd* | dragonfly*)
65830         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
65831         # conventions
65832         ld_shlibs_CXX=yes
65833         ;;
65834
65835       gnu*)
65836         ;;
65837
65838       haiku*)
65839         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
65840         link_all_deplibs_CXX=yes
65841         ;;
65842
65843       hpux9*)
65844         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
65845         hardcode_libdir_separator_CXX=:
65846         export_dynamic_flag_spec_CXX='${wl}-E'
65847         hardcode_direct_CXX=yes
65848         hardcode_minus_L_CXX=yes # Not in the search PATH,
65849                                              # but as the default
65850                                              # location of the library.
65851
65852         case $cc_basename in
65853           CC*)
65854             # FIXME: insert proper C++ library support
65855             ld_shlibs_CXX=no
65856             ;;
65857           aCC*)
65858             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
65859             # Commands to make compiler produce verbose output that lists
65860             # what "hidden" libraries, object files and flags are used when
65861             # linking a shared library.
65862             #
65863             # There doesn't appear to be a way to prevent this compiler from
65864             # explicitly linking system object files so we need to strip them
65865             # from the output so that they don't get included in the library
65866             # dependencies.
65867             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
65868             ;;
65869           *)
65870             if test "$GXX" = yes; then
65871               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
65872             else
65873               # FIXME: insert proper C++ library support
65874               ld_shlibs_CXX=no
65875             fi
65876             ;;
65877         esac
65878         ;;
65879
65880       hpux10*|hpux11*)
65881         if test $with_gnu_ld = no; then
65882           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
65883           hardcode_libdir_separator_CXX=:
65884
65885           case $host_cpu in
65886             hppa*64*|ia64*)
65887               ;;
65888             *)
65889               export_dynamic_flag_spec_CXX='${wl}-E'
65890               ;;
65891           esac
65892         fi
65893         case $host_cpu in
65894           hppa*64*|ia64*)
65895             hardcode_direct_CXX=no
65896             hardcode_shlibpath_var_CXX=no
65897             ;;
65898           *)
65899             hardcode_direct_CXX=yes
65900             hardcode_direct_absolute_CXX=yes
65901             hardcode_minus_L_CXX=yes # Not in the search PATH,
65902                                                  # but as the default
65903                                                  # location of the library.
65904             ;;
65905         esac
65906
65907         case $cc_basename in
65908           CC*)
65909             # FIXME: insert proper C++ library support
65910             ld_shlibs_CXX=no
65911             ;;
65912           aCC*)
65913             case $host_cpu in
65914               hppa*64*)
65915                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
65916                 ;;
65917               ia64*)
65918                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
65919                 ;;
65920               *)
65921                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
65922                 ;;
65923             esac
65924             # Commands to make compiler produce verbose output that lists
65925             # what "hidden" libraries, object files and flags are used when
65926             # linking a shared library.
65927             #
65928             # There doesn't appear to be a way to prevent this compiler from
65929             # explicitly linking system object files so we need to strip them
65930             # from the output so that they don't get included in the library
65931             # dependencies.
65932             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
65933             ;;
65934           *)
65935             if test "$GXX" = yes; then
65936               if test $with_gnu_ld = no; then
65937                 case $host_cpu in
65938                   hppa*64*)
65939                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
65940                     ;;
65941                   ia64*)
65942                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
65943                     ;;
65944                   *)
65945                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
65946                     ;;
65947                 esac
65948               fi
65949             else
65950               # FIXME: insert proper C++ library support
65951               ld_shlibs_CXX=no
65952             fi
65953             ;;
65954         esac
65955         ;;
65956
65957       interix[3-9]*)
65958         hardcode_direct_CXX=no
65959         hardcode_shlibpath_var_CXX=no
65960         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
65961         export_dynamic_flag_spec_CXX='${wl}-E'
65962         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
65963         # Instead, shared libraries are loaded at an image base (0x10000000 by
65964         # default) and relocated if they conflict, which is a slow very memory
65965         # consuming and fragmenting process.  To avoid this, we pick a random,
65966         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
65967         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
65968         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
65969         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
65970         ;;
65971       irix5* | irix6*)
65972         case $cc_basename in
65973           CC*)
65974             # SGI C++
65975             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
65976
65977             # Archives containing C++ object files must be created using
65978             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
65979             # necessary to make sure instantiated templates are included
65980             # in the archive.
65981             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
65982             ;;
65983           *)
65984             if test "$GXX" = yes; then
65985               if test "$with_gnu_ld" = no; then
65986                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
65987               else
65988                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
65989               fi
65990             fi
65991             link_all_deplibs_CXX=yes
65992             ;;
65993         esac
65994         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
65995         hardcode_libdir_separator_CXX=:
65996         inherit_rpath_CXX=yes
65997         ;;
65998
65999       linux* | k*bsd*-gnu | kopensolaris*-gnu)
66000         case $cc_basename in
66001           KCC*)
66002             # Kuck and Associates, Inc. (KAI) C++ Compiler
66003
66004             # KCC will only create a shared library if the output file
66005             # ends with ".so" (or ".sl" for HP-UX), so rename the library
66006             # to its proper name (with version) after linking.
66007             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
66008             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
66009             # Commands to make compiler produce verbose output that lists
66010             # what "hidden" libraries, object files and flags are used when
66011             # linking a shared library.
66012             #
66013             # There doesn't appear to be a way to prevent this compiler from
66014             # explicitly linking system object files so we need to strip them
66015             # from the output so that they don't get included in the library
66016             # dependencies.
66017             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
66018
66019             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
66020             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
66021
66022             # Archives containing C++ object files must be created using
66023             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
66024             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
66025             ;;
66026           icpc* | ecpc* )
66027             # Intel C++
66028             with_gnu_ld=yes
66029             # version 8.0 and above of icpc choke on multiply defined symbols
66030             # if we add $predep_objects and $postdep_objects, however 7.1 and
66031             # earlier do not add the objects themselves.
66032             case `$CC -V 2>&1` in
66033               *"Version 7."*)
66034                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
66035                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
66036                 ;;
66037               *)  # Version 8.0 or newer
66038                 tmp_idyn=
66039                 case $host_cpu in
66040                   ia64*) tmp_idyn=' -i_dynamic';;
66041                 esac
66042                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
66043                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
66044                 ;;
66045             esac
66046             archive_cmds_need_lc_CXX=no
66047             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
66048             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
66049             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
66050             ;;
66051           pgCC* | pgcpp*)
66052             # Portland Group C++ compiler
66053             case `$CC -V` in
66054             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
66055               prelink_cmds_CXX='tpldir=Template.dir~
66056                 rm -rf $tpldir~
66057                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
66058                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
66059               old_archive_cmds_CXX='tpldir=Template.dir~
66060                 rm -rf $tpldir~
66061                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
66062                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
66063                 $RANLIB $oldlib'
66064               archive_cmds_CXX='tpldir=Template.dir~
66065                 rm -rf $tpldir~
66066                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
66067                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
66068               archive_expsym_cmds_CXX='tpldir=Template.dir~
66069                 rm -rf $tpldir~
66070                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
66071                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
66072               ;;
66073             *) # Version 6 and above use weak symbols
66074               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
66075               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
66076               ;;
66077             esac
66078
66079             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
66080             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
66081             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
66082             ;;
66083           cxx*)
66084             # Compaq C++
66085             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
66086             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
66087
66088             runpath_var=LD_RUN_PATH
66089             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
66090             hardcode_libdir_separator_CXX=:
66091
66092             # Commands to make compiler produce verbose output that lists
66093             # what "hidden" libraries, object files and flags are used when
66094             # linking a shared library.
66095             #
66096             # There doesn't appear to be a way to prevent this compiler from
66097             # explicitly linking system object files so we need to strip them
66098             # from the output so that they don't get included in the library
66099             # dependencies.
66100             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
66101             ;;
66102           xl* | mpixl* | bgxl*)
66103             # IBM XL 8.0 on PPC, with GNU ld
66104             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
66105             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
66106             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
66107             if test "x$supports_anon_versioning" = xyes; then
66108               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
66109                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
66110                 echo "local: *; };" >> $output_objdir/$libname.ver~
66111                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
66112             fi
66113             ;;
66114           *)
66115             case `$CC -V 2>&1 | sed 5q` in
66116             *Sun\ C*)
66117               # Sun C++ 5.9
66118               no_undefined_flag_CXX=' -zdefs'
66119               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
66120               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
66121               hardcode_libdir_flag_spec_CXX='-R$libdir'
66122               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
66123               compiler_needs_object_CXX=yes
66124
66125               # Not sure whether something based on
66126               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
66127               # would be better.
66128               output_verbose_link_cmd='func_echo_all'
66129
66130               # Archives containing C++ object files must be created using
66131               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
66132               # necessary to make sure instantiated templates are included
66133               # in the archive.
66134               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
66135               ;;
66136             esac
66137             ;;
66138         esac
66139         ;;
66140
66141       lynxos*)
66142         # FIXME: insert proper C++ library support
66143         ld_shlibs_CXX=no
66144         ;;
66145
66146       m88k*)
66147         # FIXME: insert proper C++ library support
66148         ld_shlibs_CXX=no
66149         ;;
66150
66151       mvs*)
66152         case $cc_basename in
66153           cxx*)
66154             # FIXME: insert proper C++ library support
66155             ld_shlibs_CXX=no
66156             ;;
66157           *)
66158             # FIXME: insert proper C++ library support
66159             ld_shlibs_CXX=no
66160             ;;
66161         esac
66162         ;;
66163
66164       netbsd*)
66165         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
66166           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
66167           wlarc=
66168           hardcode_libdir_flag_spec_CXX='-R$libdir'
66169           hardcode_direct_CXX=yes
66170           hardcode_shlibpath_var_CXX=no
66171         fi
66172         # Workaround some broken pre-1.5 toolchains
66173         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
66174         ;;
66175
66176       *nto* | *qnx*)
66177         ld_shlibs_CXX=yes
66178         ;;
66179
66180       openbsd2*)
66181         # C++ shared libraries are fairly broken
66182         ld_shlibs_CXX=no
66183         ;;
66184
66185       openbsd*)
66186         if test -f /usr/libexec/ld.so; then
66187           hardcode_direct_CXX=yes
66188           hardcode_shlibpath_var_CXX=no
66189           hardcode_direct_absolute_CXX=yes
66190           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
66191           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
66192           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
66193             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
66194             export_dynamic_flag_spec_CXX='${wl}-E'
66195             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
66196           fi
66197           output_verbose_link_cmd=func_echo_all
66198         else
66199           ld_shlibs_CXX=no
66200         fi
66201         ;;
66202
66203       osf3* | osf4* | osf5*)
66204         case $cc_basename in
66205           KCC*)
66206             # Kuck and Associates, Inc. (KAI) C++ Compiler
66207
66208             # KCC will only create a shared library if the output file
66209             # ends with ".so" (or ".sl" for HP-UX), so rename the library
66210             # to its proper name (with version) after linking.
66211             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
66212
66213             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
66214             hardcode_libdir_separator_CXX=:
66215
66216             # Archives containing C++ object files must be created using
66217             # the KAI C++ compiler.
66218             case $host in
66219               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
66220               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
66221             esac
66222             ;;
66223           RCC*)
66224             # Rational C++ 2.4.1
66225             # FIXME: insert proper C++ library support
66226             ld_shlibs_CXX=no
66227             ;;
66228           cxx*)
66229             case $host in
66230               osf3*)
66231                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
66232                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
66233                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
66234                 ;;
66235               *)
66236                 allow_undefined_flag_CXX=' -expect_unresolved \*'
66237                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
66238                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
66239                   echo "-hidden">> $lib.exp~
66240                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
66241                   $RM $lib.exp'
66242                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
66243                 ;;
66244             esac
66245
66246             hardcode_libdir_separator_CXX=:
66247
66248             # Commands to make compiler produce verbose output that lists
66249             # what "hidden" libraries, object files and flags are used when
66250             # linking a shared library.
66251             #
66252             # There doesn't appear to be a way to prevent this compiler from
66253             # explicitly linking system object files so we need to strip them
66254             # from the output so that they don't get included in the library
66255             # dependencies.
66256             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
66257             ;;
66258           *)
66259             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
66260               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
66261               case $host in
66262                 osf3*)
66263                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
66264                   ;;
66265                 *)
66266                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
66267                   ;;
66268               esac
66269
66270               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
66271               hardcode_libdir_separator_CXX=:
66272
66273               # Commands to make compiler produce verbose output that lists
66274               # what "hidden" libraries, object files and flags are used when
66275               # linking a shared library.
66276               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
66277
66278             else
66279               # FIXME: insert proper C++ library support
66280               ld_shlibs_CXX=no
66281             fi
66282             ;;
66283         esac
66284         ;;
66285
66286       psos*)
66287         # FIXME: insert proper C++ library support
66288         ld_shlibs_CXX=no
66289         ;;
66290
66291       sunos4*)
66292         case $cc_basename in
66293           CC*)
66294             # Sun C++ 4.x
66295             # FIXME: insert proper C++ library support
66296             ld_shlibs_CXX=no
66297             ;;
66298           lcc*)
66299             # Lucid
66300             # FIXME: insert proper C++ library support
66301             ld_shlibs_CXX=no
66302             ;;
66303           *)
66304             # FIXME: insert proper C++ library support
66305             ld_shlibs_CXX=no
66306             ;;
66307         esac
66308         ;;
66309
66310       solaris*)
66311         case $cc_basename in
66312           CC* | sunCC*)
66313             # Sun C++ 4.2, 5.x and Centerline C++
66314             archive_cmds_need_lc_CXX=yes
66315             no_undefined_flag_CXX=' -zdefs'
66316             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
66317             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
66318               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
66319
66320             hardcode_libdir_flag_spec_CXX='-R$libdir'
66321             hardcode_shlibpath_var_CXX=no
66322             case $host_os in
66323               solaris2.[0-5] | solaris2.[0-5].*) ;;
66324               *)
66325                 # The compiler driver will combine and reorder linker options,
66326                 # but understands `-z linker_flag'.
66327                 # Supported since Solaris 2.6 (maybe 2.5.1?)
66328                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
66329                 ;;
66330             esac
66331             link_all_deplibs_CXX=yes
66332
66333             output_verbose_link_cmd='func_echo_all'
66334
66335             # Archives containing C++ object files must be created using
66336             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
66337             # necessary to make sure instantiated templates are included
66338             # in the archive.
66339             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
66340             ;;
66341           gcx*)
66342             # Green Hills C++ Compiler
66343             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
66344
66345             # The C++ compiler must be used to create the archive.
66346             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
66347             ;;
66348           *)
66349             # GNU C++ compiler with Solaris linker
66350             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
66351               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
66352               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
66353                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
66354                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
66355                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
66356
66357                 # Commands to make compiler produce verbose output that lists
66358                 # what "hidden" libraries, object files and flags are used when
66359                 # linking a shared library.
66360                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
66361               else
66362                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
66363                 # platform.
66364                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
66365                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
66366                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
66367
66368                 # Commands to make compiler produce verbose output that lists
66369                 # what "hidden" libraries, object files and flags are used when
66370                 # linking a shared library.
66371                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
66372               fi
66373
66374               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
66375               case $host_os in
66376                 solaris2.[0-5] | solaris2.[0-5].*) ;;
66377                 *)
66378                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
66379                   ;;
66380               esac
66381             fi
66382             ;;
66383         esac
66384         ;;
66385
66386     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
66387       no_undefined_flag_CXX='${wl}-z,text'
66388       archive_cmds_need_lc_CXX=no
66389       hardcode_shlibpath_var_CXX=no
66390       runpath_var='LD_RUN_PATH'
66391
66392       case $cc_basename in
66393         CC*)
66394           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
66395           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
66396           ;;
66397         *)
66398           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
66399           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
66400           ;;
66401       esac
66402       ;;
66403
66404       sysv5* | sco3.2v5* | sco5v6*)
66405         # Note: We can NOT use -z defs as we might desire, because we do not
66406         # link with -lc, and that would cause any symbols used from libc to
66407         # always be unresolved, which means just about no library would
66408         # ever link correctly.  If we're not using GNU ld we use -z text
66409         # though, which does catch some bad symbols but isn't as heavy-handed
66410         # as -z defs.
66411         no_undefined_flag_CXX='${wl}-z,text'
66412         allow_undefined_flag_CXX='${wl}-z,nodefs'
66413         archive_cmds_need_lc_CXX=no
66414         hardcode_shlibpath_var_CXX=no
66415         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
66416         hardcode_libdir_separator_CXX=':'
66417         link_all_deplibs_CXX=yes
66418         export_dynamic_flag_spec_CXX='${wl}-Bexport'
66419         runpath_var='LD_RUN_PATH'
66420
66421         case $cc_basename in
66422           CC*)
66423             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
66424             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
66425             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
66426               '"$old_archive_cmds_CXX"
66427             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
66428               '"$reload_cmds_CXX"
66429             ;;
66430           *)
66431             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
66432             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
66433             ;;
66434         esac
66435       ;;
66436
66437       tandem*)
66438         case $cc_basename in
66439           NCC*)
66440             # NonStop-UX NCC 3.20
66441             # FIXME: insert proper C++ library support
66442             ld_shlibs_CXX=no
66443             ;;
66444           *)
66445             # FIXME: insert proper C++ library support
66446             ld_shlibs_CXX=no
66447             ;;
66448         esac
66449         ;;
66450
66451       vxworks*)
66452         # FIXME: insert proper C++ library support
66453         ld_shlibs_CXX=no
66454         ;;
66455
66456       *)
66457         # FIXME: insert proper C++ library support
66458         ld_shlibs_CXX=no
66459         ;;
66460     esac
66461
66462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
66463 $as_echo "$ld_shlibs_CXX" >&6; }
66464     test "$ld_shlibs_CXX" = no && can_build_shared=no
66465
66466     GCC_CXX="$GXX"
66467     LD_CXX="$LD"
66468
66469     ## CAVEAT EMPTOR:
66470     ## There is no encapsulation within the following macros, do not change
66471     ## the running order or otherwise move them around unless you know exactly
66472     ## what you are doing...
66473     # Dependencies to place before and after the object being linked:
66474 predep_objects_CXX=
66475 postdep_objects_CXX=
66476 predeps_CXX=
66477 postdeps_CXX=
66478 compiler_lib_search_path_CXX=
66479
66480 cat > conftest.$ac_ext <<_LT_EOF
66481 class Foo
66482 {
66483 public:
66484   Foo (void) { a = 0; }
66485 private:
66486   int a;
66487 };
66488 _LT_EOF
66489
66490
66491 _lt_libdeps_save_CFLAGS=$CFLAGS
66492 case "$CC $CFLAGS " in #(
66493 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
66494 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
66495 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
66496 esac
66497
66498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
66499   (eval $ac_compile) 2>&5
66500   ac_status=$?
66501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66502   test $ac_status = 0; }; then
66503   # Parse the compiler output and extract the necessary
66504   # objects, libraries and library flags.
66505
66506   # Sentinel used to keep track of whether or not we are before
66507   # the conftest object file.
66508   pre_test_object_deps_done=no
66509
66510   for p in `eval "$output_verbose_link_cmd"`; do
66511     case ${prev}${p} in
66512
66513     -L* | -R* | -l*)
66514        # Some compilers place space between "-{L,R}" and the path.
66515        # Remove the space.
66516        if test $p = "-L" ||
66517           test $p = "-R"; then
66518          prev=$p
66519          continue
66520        fi
66521
66522        # Expand the sysroot to ease extracting the directories later.
66523        if test -z "$prev"; then
66524          case $p in
66525          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
66526          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
66527          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
66528          esac
66529        fi
66530        case $p in
66531        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
66532        esac
66533        if test "$pre_test_object_deps_done" = no; then
66534          case ${prev} in
66535          -L | -R)
66536            # Internal compiler library paths should come after those
66537            # provided the user.  The postdeps already come after the
66538            # user supplied libs so there is no need to process them.
66539            if test -z "$compiler_lib_search_path_CXX"; then
66540              compiler_lib_search_path_CXX="${prev}${p}"
66541            else
66542              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
66543            fi
66544            ;;
66545          # The "-l" case would never come before the object being
66546          # linked, so don't bother handling this case.
66547          esac
66548        else
66549          if test -z "$postdeps_CXX"; then
66550            postdeps_CXX="${prev}${p}"
66551          else
66552            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
66553          fi
66554        fi
66555        prev=
66556        ;;
66557
66558     *.lto.$objext) ;; # Ignore GCC LTO objects
66559     *.$objext)
66560        # This assumes that the test object file only shows up
66561        # once in the compiler output.
66562        if test "$p" = "conftest.$objext"; then
66563          pre_test_object_deps_done=yes
66564          continue
66565        fi
66566
66567        if test "$pre_test_object_deps_done" = no; then
66568          if test -z "$predep_objects_CXX"; then
66569            predep_objects_CXX="$p"
66570          else
66571            predep_objects_CXX="$predep_objects_CXX $p"
66572          fi
66573        else
66574          if test -z "$postdep_objects_CXX"; then
66575            postdep_objects_CXX="$p"
66576          else
66577            postdep_objects_CXX="$postdep_objects_CXX $p"
66578          fi
66579        fi
66580        ;;
66581
66582     *) ;; # Ignore the rest.
66583
66584     esac
66585   done
66586
66587   # Clean up.
66588   rm -f a.out a.exe
66589 else
66590   echo "libtool.m4: error: problem compiling CXX test program"
66591 fi
66592
66593 $RM -f confest.$objext
66594 CFLAGS=$_lt_libdeps_save_CFLAGS
66595
66596 # PORTME: override above test on systems where it is broken
66597 case $host_os in
66598 interix[3-9]*)
66599   # Interix 3.5 installs completely hosed .la files for C++, so rather than
66600   # hack all around it, let's just trust "g++" to DTRT.
66601   predep_objects_CXX=
66602   postdep_objects_CXX=
66603   postdeps_CXX=
66604   ;;
66605
66606 linux*)
66607   case `$CC -V 2>&1 | sed 5q` in
66608   *Sun\ C*)
66609     # Sun C++ 5.9
66610
66611     # The more standards-conforming stlport4 library is
66612     # incompatible with the Cstd library. Avoid specifying
66613     # it if it's in CXXFLAGS. Ignore libCrun as
66614     # -library=stlport4 depends on it.
66615     case " $CXX $CXXFLAGS " in
66616     *" -library=stlport4 "*)
66617       solaris_use_stlport4=yes
66618       ;;
66619     esac
66620
66621     if test "$solaris_use_stlport4" != yes; then
66622       postdeps_CXX='-library=Cstd -library=Crun'
66623     fi
66624     ;;
66625   esac
66626   ;;
66627
66628 solaris*)
66629   case $cc_basename in
66630   CC* | sunCC*)
66631     # The more standards-conforming stlport4 library is
66632     # incompatible with the Cstd library. Avoid specifying
66633     # it if it's in CXXFLAGS. Ignore libCrun as
66634     # -library=stlport4 depends on it.
66635     case " $CXX $CXXFLAGS " in
66636     *" -library=stlport4 "*)
66637       solaris_use_stlport4=yes
66638       ;;
66639     esac
66640
66641     # Adding this requires a known-good setup of shared libraries for
66642     # Sun compiler versions before 5.6, else PIC objects from an old
66643     # archive will be linked into the output, leading to subtle bugs.
66644     if test "$solaris_use_stlport4" != yes; then
66645       postdeps_CXX='-library=Cstd -library=Crun'
66646     fi
66647     ;;
66648   esac
66649   ;;
66650 esac
66651
66652
66653 case " $postdeps_CXX " in
66654 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
66655 esac
66656  compiler_lib_search_dirs_CXX=
66657 if test -n "${compiler_lib_search_path_CXX}"; then
66658  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
66659 fi
66660
66661
66662
66663
66664
66665
66666
66667
66668
66669
66670
66671
66672
66673
66674
66675
66676
66677
66678
66679
66680
66681
66682
66683
66684
66685
66686
66687
66688
66689
66690
66691     lt_prog_compiler_wl_CXX=
66692 lt_prog_compiler_pic_CXX=
66693 lt_prog_compiler_static_CXX=
66694
66695
66696   # C++ specific cases for pic, static, wl, etc.
66697   if test "$GXX" = yes; then
66698     lt_prog_compiler_wl_CXX='-Wl,'
66699     lt_prog_compiler_static_CXX='-static'
66700
66701     case $host_os in
66702     aix*)
66703       # All AIX code is PIC.
66704       if test "$host_cpu" = ia64; then
66705         # AIX 5 now supports IA64 processor
66706         lt_prog_compiler_static_CXX='-Bstatic'
66707       fi
66708       ;;
66709
66710     amigaos*)
66711       case $host_cpu in
66712       powerpc)
66713             # see comment about AmigaOS4 .so support
66714             lt_prog_compiler_pic_CXX='-fPIC'
66715         ;;
66716       m68k)
66717             # FIXME: we need at least 68020 code to build shared libraries, but
66718             # adding the `-m68020' flag to GCC prevents building anything better,
66719             # like `-m68040'.
66720             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
66721         ;;
66722       esac
66723       ;;
66724
66725     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
66726       # PIC is the default for these OSes.
66727       ;;
66728     mingw* | cygwin* | os2* | pw32* | cegcc*)
66729       # This hack is so that the source file can tell whether it is being
66730       # built for inclusion in a dll (and should export symbols for example).
66731       # Although the cygwin gcc ignores -fPIC, still need this for old-style
66732       # (--disable-auto-import) libraries
66733       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
66734       ;;
66735     darwin* | rhapsody*)
66736       # PIC is the default on this platform
66737       # Common symbols not allowed in MH_DYLIB files
66738       lt_prog_compiler_pic_CXX='-fno-common'
66739       ;;
66740     *djgpp*)
66741       # DJGPP does not support shared libraries at all
66742       lt_prog_compiler_pic_CXX=
66743       ;;
66744     haiku*)
66745       # PIC is the default for Haiku.
66746       # The "-static" flag exists, but is broken.
66747       lt_prog_compiler_static_CXX=
66748       ;;
66749     interix[3-9]*)
66750       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
66751       # Instead, we relocate shared libraries at runtime.
66752       ;;
66753     sysv4*MP*)
66754       if test -d /usr/nec; then
66755         lt_prog_compiler_pic_CXX=-Kconform_pic
66756       fi
66757       ;;
66758     hpux*)
66759       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
66760       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
66761       # sets the default TLS model and affects inlining.
66762       case $host_cpu in
66763       hppa*64*)
66764         ;;
66765       *)
66766         lt_prog_compiler_pic_CXX='-fPIC'
66767         ;;
66768       esac
66769       ;;
66770     *qnx* | *nto*)
66771       # QNX uses GNU C++, but need to define -shared option too, otherwise
66772       # it will coredump.
66773       lt_prog_compiler_pic_CXX='-fPIC -shared'
66774       ;;
66775     *)
66776       lt_prog_compiler_pic_CXX='-fPIC'
66777       ;;
66778     esac
66779   else
66780     case $host_os in
66781       aix[4-9]*)
66782         # All AIX code is PIC.
66783         if test "$host_cpu" = ia64; then
66784           # AIX 5 now supports IA64 processor
66785           lt_prog_compiler_static_CXX='-Bstatic'
66786         else
66787           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
66788         fi
66789         ;;
66790       chorus*)
66791         case $cc_basename in
66792         cxch68*)
66793           # Green Hills C++ Compiler
66794           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
66795           ;;
66796         esac
66797         ;;
66798       mingw* | cygwin* | os2* | pw32* | cegcc*)
66799         # This hack is so that the source file can tell whether it is being
66800         # built for inclusion in a dll (and should export symbols for example).
66801         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
66802         ;;
66803       dgux*)
66804         case $cc_basename in
66805           ec++*)
66806             lt_prog_compiler_pic_CXX='-KPIC'
66807             ;;
66808           ghcx*)
66809             # Green Hills C++ Compiler
66810             lt_prog_compiler_pic_CXX='-pic'
66811             ;;
66812           *)
66813             ;;
66814         esac
66815         ;;
66816       freebsd* | dragonfly*)
66817         # FreeBSD uses GNU C++
66818         ;;
66819       hpux9* | hpux10* | hpux11*)
66820         case $cc_basename in
66821           CC*)
66822             lt_prog_compiler_wl_CXX='-Wl,'
66823             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
66824             if test "$host_cpu" != ia64; then
66825               lt_prog_compiler_pic_CXX='+Z'
66826             fi
66827             ;;
66828           aCC*)
66829             lt_prog_compiler_wl_CXX='-Wl,'
66830             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
66831             case $host_cpu in
66832             hppa*64*|ia64*)
66833               # +Z the default
66834               ;;
66835             *)
66836               lt_prog_compiler_pic_CXX='+Z'
66837               ;;
66838             esac
66839             ;;
66840           *)
66841             ;;
66842         esac
66843         ;;
66844       interix*)
66845         # This is c89, which is MS Visual C++ (no shared libs)
66846         # Anyone wants to do a port?
66847         ;;
66848       irix5* | irix6* | nonstopux*)
66849         case $cc_basename in
66850           CC*)
66851             lt_prog_compiler_wl_CXX='-Wl,'
66852             lt_prog_compiler_static_CXX='-non_shared'
66853             # CC pic flag -KPIC is the default.
66854             ;;
66855           *)
66856             ;;
66857         esac
66858         ;;
66859       linux* | k*bsd*-gnu | kopensolaris*-gnu)
66860         case $cc_basename in
66861           KCC*)
66862             # KAI C++ Compiler
66863             lt_prog_compiler_wl_CXX='--backend -Wl,'
66864             lt_prog_compiler_pic_CXX='-fPIC'
66865             ;;
66866           ecpc* )
66867             # old Intel C++ for x86_64 which still supported -KPIC.
66868             lt_prog_compiler_wl_CXX='-Wl,'
66869             lt_prog_compiler_pic_CXX='-KPIC'
66870             lt_prog_compiler_static_CXX='-static'
66871             ;;
66872           icpc* )
66873             # Intel C++, used to be incompatible with GCC.
66874             # ICC 10 doesn't accept -KPIC any more.
66875             lt_prog_compiler_wl_CXX='-Wl,'
66876             lt_prog_compiler_pic_CXX='-fPIC'
66877             lt_prog_compiler_static_CXX='-static'
66878             ;;
66879           pgCC* | pgcpp*)
66880             # Portland Group C++ compiler
66881             lt_prog_compiler_wl_CXX='-Wl,'
66882             lt_prog_compiler_pic_CXX='-fpic'
66883             lt_prog_compiler_static_CXX='-Bstatic'
66884             ;;
66885           cxx*)
66886             # Compaq C++
66887             # Make sure the PIC flag is empty.  It appears that all Alpha
66888             # Linux and Compaq Tru64 Unix objects are PIC.
66889             lt_prog_compiler_pic_CXX=
66890             lt_prog_compiler_static_CXX='-non_shared'
66891             ;;
66892           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
66893             # IBM XL 8.0, 9.0 on PPC and BlueGene
66894             lt_prog_compiler_wl_CXX='-Wl,'
66895             lt_prog_compiler_pic_CXX='-qpic'
66896             lt_prog_compiler_static_CXX='-qstaticlink'
66897             ;;
66898           *)
66899             case `$CC -V 2>&1 | sed 5q` in
66900             *Sun\ C*)
66901               # Sun C++ 5.9
66902               lt_prog_compiler_pic_CXX='-KPIC'
66903               lt_prog_compiler_static_CXX='-Bstatic'
66904               lt_prog_compiler_wl_CXX='-Qoption ld '
66905               ;;
66906             esac
66907             ;;
66908         esac
66909         ;;
66910       lynxos*)
66911         ;;
66912       m88k*)
66913         ;;
66914       mvs*)
66915         case $cc_basename in
66916           cxx*)
66917             lt_prog_compiler_pic_CXX='-W c,exportall'
66918             ;;
66919           *)
66920             ;;
66921         esac
66922         ;;
66923       netbsd*)
66924         ;;
66925       *qnx* | *nto*)
66926         # QNX uses GNU C++, but need to define -shared option too, otherwise
66927         # it will coredump.
66928         lt_prog_compiler_pic_CXX='-fPIC -shared'
66929         ;;
66930       osf3* | osf4* | osf5*)
66931         case $cc_basename in
66932           KCC*)
66933             lt_prog_compiler_wl_CXX='--backend -Wl,'
66934             ;;
66935           RCC*)
66936             # Rational C++ 2.4.1
66937             lt_prog_compiler_pic_CXX='-pic'
66938             ;;
66939           cxx*)
66940             # Digital/Compaq C++
66941             lt_prog_compiler_wl_CXX='-Wl,'
66942             # Make sure the PIC flag is empty.  It appears that all Alpha
66943             # Linux and Compaq Tru64 Unix objects are PIC.
66944             lt_prog_compiler_pic_CXX=
66945             lt_prog_compiler_static_CXX='-non_shared'
66946             ;;
66947           *)
66948             ;;
66949         esac
66950         ;;
66951       psos*)
66952         ;;
66953       solaris*)
66954         case $cc_basename in
66955           CC* | sunCC*)
66956             # Sun C++ 4.2, 5.x and Centerline C++
66957             lt_prog_compiler_pic_CXX='-KPIC'
66958             lt_prog_compiler_static_CXX='-Bstatic'
66959             lt_prog_compiler_wl_CXX='-Qoption ld '
66960             ;;
66961           gcx*)
66962             # Green Hills C++ Compiler
66963             lt_prog_compiler_pic_CXX='-PIC'
66964             ;;
66965           *)
66966             ;;
66967         esac
66968         ;;
66969       sunos4*)
66970         case $cc_basename in
66971           CC*)
66972             # Sun C++ 4.x
66973             lt_prog_compiler_pic_CXX='-pic'
66974             lt_prog_compiler_static_CXX='-Bstatic'
66975             ;;
66976           lcc*)
66977             # Lucid
66978             lt_prog_compiler_pic_CXX='-pic'
66979             ;;
66980           *)
66981             ;;
66982         esac
66983         ;;
66984       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
66985         case $cc_basename in
66986           CC*)
66987             lt_prog_compiler_wl_CXX='-Wl,'
66988             lt_prog_compiler_pic_CXX='-KPIC'
66989             lt_prog_compiler_static_CXX='-Bstatic'
66990             ;;
66991         esac
66992         ;;
66993       tandem*)
66994         case $cc_basename in
66995           NCC*)
66996             # NonStop-UX NCC 3.20
66997             lt_prog_compiler_pic_CXX='-KPIC'
66998             ;;
66999           *)
67000             ;;
67001         esac
67002         ;;
67003       vxworks*)
67004         ;;
67005       *)
67006         lt_prog_compiler_can_build_shared_CXX=no
67007         ;;
67008     esac
67009   fi
67010
67011 case $host_os in
67012   # For platforms which do not support PIC, -DPIC is meaningless:
67013   *djgpp*)
67014     lt_prog_compiler_pic_CXX=
67015     ;;
67016   *)
67017     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
67018     ;;
67019 esac
67020
67021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
67022 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
67023 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
67024   $as_echo_n "(cached) " >&6
67025 else
67026   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
67027 fi
67028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
67029 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
67030 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
67031
67032 #
67033 # Check to make sure the PIC flag actually works.
67034 #
67035 if test -n "$lt_prog_compiler_pic_CXX"; then
67036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
67037 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
67038 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
67039   $as_echo_n "(cached) " >&6
67040 else
67041   lt_cv_prog_compiler_pic_works_CXX=no
67042    ac_outfile=conftest.$ac_objext
67043    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
67044    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
67045    # Insert the option either (1) after the last *FLAGS variable, or
67046    # (2) before a word containing "conftest.", or (3) at the end.
67047    # Note that $ac_compile itself does not contain backslashes and begins
67048    # with a dollar sign (not a hyphen), so the echo should work correctly.
67049    # The option is referenced via a variable to avoid confusing sed.
67050    lt_compile=`echo "$ac_compile" | $SED \
67051    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
67052    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
67053    -e 's:$: $lt_compiler_flag:'`
67054    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
67055    (eval "$lt_compile" 2>conftest.err)
67056    ac_status=$?
67057    cat conftest.err >&5
67058    echo "$as_me:$LINENO: \$? = $ac_status" >&5
67059    if (exit $ac_status) && test -s "$ac_outfile"; then
67060      # The compiler can only warn and ignore the option if not recognized
67061      # So say no if there are warnings other than the usual output.
67062      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
67063      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
67064      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
67065        lt_cv_prog_compiler_pic_works_CXX=yes
67066      fi
67067    fi
67068    $RM conftest*
67069
67070 fi
67071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
67072 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
67073
67074 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
67075     case $lt_prog_compiler_pic_CXX in
67076      "" | " "*) ;;
67077      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
67078      esac
67079 else
67080     lt_prog_compiler_pic_CXX=
67081      lt_prog_compiler_can_build_shared_CXX=no
67082 fi
67083
67084 fi
67085
67086
67087
67088
67089
67090 #
67091 # Check to make sure the static flag actually works.
67092 #
67093 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
67094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
67095 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
67096 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
67097   $as_echo_n "(cached) " >&6
67098 else
67099   lt_cv_prog_compiler_static_works_CXX=no
67100    save_LDFLAGS="$LDFLAGS"
67101    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
67102    echo "$lt_simple_link_test_code" > conftest.$ac_ext
67103    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
67104      # The linker can only warn and ignore the option if not recognized
67105      # So say no if there are warnings
67106      if test -s conftest.err; then
67107        # Append any errors to the config.log.
67108        cat conftest.err 1>&5
67109        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
67110        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
67111        if diff conftest.exp conftest.er2 >/dev/null; then
67112          lt_cv_prog_compiler_static_works_CXX=yes
67113        fi
67114      else
67115        lt_cv_prog_compiler_static_works_CXX=yes
67116      fi
67117    fi
67118    $RM -r conftest*
67119    LDFLAGS="$save_LDFLAGS"
67120
67121 fi
67122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
67123 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
67124
67125 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
67126     :
67127 else
67128     lt_prog_compiler_static_CXX=
67129 fi
67130
67131
67132
67133
67134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
67135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
67136 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
67137   $as_echo_n "(cached) " >&6
67138 else
67139   lt_cv_prog_compiler_c_o_CXX=no
67140    $RM -r conftest 2>/dev/null
67141    mkdir conftest
67142    cd conftest
67143    mkdir out
67144    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
67145
67146    lt_compiler_flag="-o out/conftest2.$ac_objext"
67147    # Insert the option either (1) after the last *FLAGS variable, or
67148    # (2) before a word containing "conftest.", or (3) at the end.
67149    # Note that $ac_compile itself does not contain backslashes and begins
67150    # with a dollar sign (not a hyphen), so the echo should work correctly.
67151    lt_compile=`echo "$ac_compile" | $SED \
67152    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
67153    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
67154    -e 's:$: $lt_compiler_flag:'`
67155    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
67156    (eval "$lt_compile" 2>out/conftest.err)
67157    ac_status=$?
67158    cat out/conftest.err >&5
67159    echo "$as_me:$LINENO: \$? = $ac_status" >&5
67160    if (exit $ac_status) && test -s out/conftest2.$ac_objext
67161    then
67162      # The compiler can only warn and ignore the option if not recognized
67163      # So say no if there are warnings
67164      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
67165      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
67166      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
67167        lt_cv_prog_compiler_c_o_CXX=yes
67168      fi
67169    fi
67170    chmod u+w . 2>&5
67171    $RM conftest*
67172    # SGI C++ compiler will create directory out/ii_files/ for
67173    # template instantiation
67174    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
67175    $RM out/* && rmdir out
67176    cd ..
67177    $RM -r conftest
67178    $RM conftest*
67179
67180 fi
67181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
67182 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
67183
67184
67185
67186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
67187 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
67188 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
67189   $as_echo_n "(cached) " >&6
67190 else
67191   lt_cv_prog_compiler_c_o_CXX=no
67192    $RM -r conftest 2>/dev/null
67193    mkdir conftest
67194    cd conftest
67195    mkdir out
67196    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
67197
67198    lt_compiler_flag="-o out/conftest2.$ac_objext"
67199    # Insert the option either (1) after the last *FLAGS variable, or
67200    # (2) before a word containing "conftest.", or (3) at the end.
67201    # Note that $ac_compile itself does not contain backslashes and begins
67202    # with a dollar sign (not a hyphen), so the echo should work correctly.
67203    lt_compile=`echo "$ac_compile" | $SED \
67204    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
67205    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
67206    -e 's:$: $lt_compiler_flag:'`
67207    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
67208    (eval "$lt_compile" 2>out/conftest.err)
67209    ac_status=$?
67210    cat out/conftest.err >&5
67211    echo "$as_me:$LINENO: \$? = $ac_status" >&5
67212    if (exit $ac_status) && test -s out/conftest2.$ac_objext
67213    then
67214      # The compiler can only warn and ignore the option if not recognized
67215      # So say no if there are warnings
67216      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
67217      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
67218      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
67219        lt_cv_prog_compiler_c_o_CXX=yes
67220      fi
67221    fi
67222    chmod u+w . 2>&5
67223    $RM conftest*
67224    # SGI C++ compiler will create directory out/ii_files/ for
67225    # template instantiation
67226    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
67227    $RM out/* && rmdir out
67228    cd ..
67229    $RM -r conftest
67230    $RM conftest*
67231
67232 fi
67233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
67234 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
67235
67236
67237
67238
67239 hard_links="nottested"
67240 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
67241   # do not overwrite the value of need_locks provided by the user
67242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
67243 $as_echo_n "checking if we can lock with hard links... " >&6; }
67244   hard_links=yes
67245   $RM conftest*
67246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
67247   touch conftest.a
67248   ln conftest.a conftest.b 2>&5 || hard_links=no
67249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
67250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
67251 $as_echo "$hard_links" >&6; }
67252   if test "$hard_links" = no; then
67253     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
67254 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
67255     need_locks=warn
67256   fi
67257 else
67258   need_locks=no
67259 fi
67260
67261
67262
67263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
67264 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
67265
67266   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
67267   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
67268   case $host_os in
67269   aix[4-9]*)
67270     # If we're using GNU nm, then we don't want the "-C" option.
67271     # -C means demangle to AIX nm, but means don't demangle with GNU nm
67272     # Also, AIX nm treats weak defined symbols like other global defined
67273     # symbols, whereas GNU nm marks them as "W".
67274     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
67275       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
67276     else
67277       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
67278     fi
67279     ;;
67280   pw32*)
67281     export_symbols_cmds_CXX="$ltdll_cmds"
67282     ;;
67283   cygwin* | mingw* | cegcc*)
67284     case $cc_basename in
67285     cl*)
67286       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
67287       ;;
67288     *)
67289       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
67290       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
67291       ;;
67292     esac
67293     ;;
67294   *)
67295     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
67296     ;;
67297   esac
67298
67299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
67300 $as_echo "$ld_shlibs_CXX" >&6; }
67301 test "$ld_shlibs_CXX" = no && can_build_shared=no
67302
67303 with_gnu_ld_CXX=$with_gnu_ld
67304
67305
67306
67307
67308
67309
67310 #
67311 # Do we need to explicitly link libc?
67312 #
67313 case "x$archive_cmds_need_lc_CXX" in
67314 x|xyes)
67315   # Assume -lc should be added
67316   archive_cmds_need_lc_CXX=yes
67317
67318   if test "$enable_shared" = yes && test "$GCC" = yes; then
67319     case $archive_cmds_CXX in
67320     *'~'*)
67321       # FIXME: we may have to deal with multi-command sequences.
67322       ;;
67323     '$CC '*)
67324       # Test whether the compiler implicitly links with -lc since on some
67325       # systems, -lgcc has to come before -lc. If gcc already passes -lc
67326       # to ld, don't add -lc before -lgcc.
67327       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
67328 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
67329 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
67330   $as_echo_n "(cached) " >&6
67331 else
67332   $RM conftest*
67333         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
67334
67335         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
67336   (eval $ac_compile) 2>&5
67337   ac_status=$?
67338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67339   test $ac_status = 0; } 2>conftest.err; then
67340           soname=conftest
67341           lib=conftest
67342           libobjs=conftest.$ac_objext
67343           deplibs=
67344           wl=$lt_prog_compiler_wl_CXX
67345           pic_flag=$lt_prog_compiler_pic_CXX
67346           compiler_flags=-v
67347           linker_flags=-v
67348           verstring=
67349           output_objdir=.
67350           libname=conftest
67351           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
67352           allow_undefined_flag_CXX=
67353           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
67354   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
67355   ac_status=$?
67356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67357   test $ac_status = 0; }
67358           then
67359             lt_cv_archive_cmds_need_lc_CXX=no
67360           else
67361             lt_cv_archive_cmds_need_lc_CXX=yes
67362           fi
67363           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
67364         else
67365           cat conftest.err 1>&5
67366         fi
67367         $RM conftest*
67368
67369 fi
67370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
67371 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
67372       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
67373       ;;
67374     esac
67375   fi
67376   ;;
67377 esac
67378
67379
67380
67381
67382
67383
67384
67385
67386
67387
67388
67389
67390
67391
67392
67393
67394
67395
67396
67397
67398
67399
67400
67401
67402
67403
67404
67405
67406
67407
67408
67409
67410
67411
67412
67413
67414
67415
67416
67417
67418
67419
67420
67421
67422
67423
67424
67425
67426
67427
67428
67429
67430
67431
67432
67433
67434
67435
67436
67437
67438
67439
67440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
67441 $as_echo_n "checking dynamic linker characteristics... " >&6; }
67442
67443 library_names_spec=
67444 libname_spec='lib$name'
67445 soname_spec=
67446 shrext_cmds=".so"
67447 postinstall_cmds=
67448 postuninstall_cmds=
67449 finish_cmds=
67450 finish_eval=
67451 shlibpath_var=
67452 shlibpath_overrides_runpath=unknown
67453 version_type=none
67454 dynamic_linker="$host_os ld.so"
67455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
67456 need_lib_prefix=unknown
67457 hardcode_into_libs=no
67458
67459 # when you set need_version to no, make sure it does not cause -set_version
67460 # flags to be left without arguments
67461 need_version=unknown
67462
67463 case $host_os in
67464 aix3*)
67465   version_type=linux # correct to gnu/linux during the next big refactor
67466   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
67467   shlibpath_var=LIBPATH
67468
67469   # AIX 3 has no versioning support, so we append a major version to the name.
67470   soname_spec='${libname}${release}${shared_ext}$major'
67471   ;;
67472
67473 aix[4-9]*)
67474   version_type=linux # correct to gnu/linux during the next big refactor
67475   need_lib_prefix=no
67476   need_version=no
67477   hardcode_into_libs=yes
67478   if test "$host_cpu" = ia64; then
67479     # AIX 5 supports IA64
67480     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
67481     shlibpath_var=LD_LIBRARY_PATH
67482   else
67483     # With GCC up to 2.95.x, collect2 would create an import file
67484     # for dependence libraries.  The import file would start with
67485     # the line `#! .'.  This would cause the generated library to
67486     # depend on `.', always an invalid library.  This was fixed in
67487     # development snapshots of GCC prior to 3.0.
67488     case $host_os in
67489       aix4 | aix4.[01] | aix4.[01].*)
67490       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
67491            echo ' yes '
67492            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
67493         :
67494       else
67495         can_build_shared=no
67496       fi
67497       ;;
67498     esac
67499     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
67500     # soname into executable. Probably we can add versioning support to
67501     # collect2, so additional links can be useful in future.
67502     if test "$aix_use_runtimelinking" = yes; then
67503       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
67504       # instead of lib<name>.a to let people know that these are not
67505       # typical AIX shared libraries.
67506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67507     else
67508       # We preserve .a as extension for shared libraries through AIX4.2
67509       # and later when we are not doing run time linking.
67510       library_names_spec='${libname}${release}.a $libname.a'
67511       soname_spec='${libname}${release}${shared_ext}$major'
67512     fi
67513     shlibpath_var=LIBPATH
67514   fi
67515   ;;
67516
67517 amigaos*)
67518   case $host_cpu in
67519   powerpc)
67520     # Since July 2007 AmigaOS4 officially supports .so libraries.
67521     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
67522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67523     ;;
67524   m68k)
67525     library_names_spec='$libname.ixlibrary $libname.a'
67526     # Create ${libname}_ixlibrary.a entries in /sys/libs.
67527     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
67528     ;;
67529   esac
67530   ;;
67531
67532 beos*)
67533   library_names_spec='${libname}${shared_ext}'
67534   dynamic_linker="$host_os ld.so"
67535   shlibpath_var=LIBRARY_PATH
67536   ;;
67537
67538 bsdi[45]*)
67539   version_type=linux # correct to gnu/linux during the next big refactor
67540   need_version=no
67541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67542   soname_spec='${libname}${release}${shared_ext}$major'
67543   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
67544   shlibpath_var=LD_LIBRARY_PATH
67545   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
67546   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
67547   # the default ld.so.conf also contains /usr/contrib/lib and
67548   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
67549   # libtool to hard-code these into programs
67550   ;;
67551
67552 cygwin* | mingw* | pw32* | cegcc*)
67553   version_type=windows
67554   shrext_cmds=".dll"
67555   need_version=no
67556   need_lib_prefix=no
67557
67558   case $GCC,$cc_basename in
67559   yes,*)
67560     # gcc
67561     library_names_spec='$libname.dll.a'
67562     # DLL is installed to $(libdir)/../bin by postinstall_cmds
67563     postinstall_cmds='base_file=`basename \${file}`~
67564       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
67565       dldir=$destdir/`dirname \$dlpath`~
67566       test -d \$dldir || mkdir -p \$dldir~
67567       $install_prog $dir/$dlname \$dldir/$dlname~
67568       chmod a+x \$dldir/$dlname~
67569       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
67570         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
67571       fi'
67572     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
67573       dlpath=$dir/\$dldll~
67574        $RM \$dlpath'
67575     shlibpath_overrides_runpath=yes
67576
67577     case $host_os in
67578     cygwin*)
67579       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
67580       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
67581
67582       ;;
67583     mingw* | cegcc*)
67584       # MinGW DLLs use traditional 'lib' prefix
67585       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
67586       ;;
67587     pw32*)
67588       # pw32 DLLs use 'pw' prefix rather than 'lib'
67589       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
67590       ;;
67591     esac
67592     dynamic_linker='Win32 ld.exe'
67593     ;;
67594
67595   *,cl*)
67596     # Native MSVC
67597     libname_spec='$name'
67598     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
67599     library_names_spec='${libname}.dll.lib'
67600
67601     case $build_os in
67602     mingw*)
67603       sys_lib_search_path_spec=
67604       lt_save_ifs=$IFS
67605       IFS=';'
67606       for lt_path in $LIB
67607       do
67608         IFS=$lt_save_ifs
67609         # Let DOS variable expansion print the short 8.3 style file name.
67610         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
67611         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
67612       done
67613       IFS=$lt_save_ifs
67614       # Convert to MSYS style.
67615       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
67616       ;;
67617     cygwin*)
67618       # Convert to unix form, then to dos form, then back to unix form
67619       # but this time dos style (no spaces!) so that the unix form looks
67620       # like /cygdrive/c/PROGRA~1:/cygdr...
67621       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
67622       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
67623       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
67624       ;;
67625     *)
67626       sys_lib_search_path_spec="$LIB"
67627       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
67628         # It is most probably a Windows format PATH.
67629         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
67630       else
67631         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
67632       fi
67633       # FIXME: find the short name or the path components, as spaces are
67634       # common. (e.g. "Program Files" -> "PROGRA~1")
67635       ;;
67636     esac
67637
67638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
67639     postinstall_cmds='base_file=`basename \${file}`~
67640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
67641       dldir=$destdir/`dirname \$dlpath`~
67642       test -d \$dldir || mkdir -p \$dldir~
67643       $install_prog $dir/$dlname \$dldir/$dlname'
67644     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
67645       dlpath=$dir/\$dldll~
67646        $RM \$dlpath'
67647     shlibpath_overrides_runpath=yes
67648     dynamic_linker='Win32 link.exe'
67649     ;;
67650
67651   *)
67652     # Assume MSVC wrapper
67653     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
67654     dynamic_linker='Win32 ld.exe'
67655     ;;
67656   esac
67657   # FIXME: first we should search . and the directory the executable is in
67658   shlibpath_var=PATH
67659   ;;
67660
67661 darwin* | rhapsody*)
67662   dynamic_linker="$host_os dyld"
67663   version_type=darwin
67664   need_lib_prefix=no
67665   need_version=no
67666   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
67667   soname_spec='${libname}${release}${major}$shared_ext'
67668   shlibpath_overrides_runpath=yes
67669   shlibpath_var=DYLD_LIBRARY_PATH
67670   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
67671
67672   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
67673   ;;
67674
67675 dgux*)
67676   version_type=linux # correct to gnu/linux during the next big refactor
67677   need_lib_prefix=no
67678   need_version=no
67679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
67680   soname_spec='${libname}${release}${shared_ext}$major'
67681   shlibpath_var=LD_LIBRARY_PATH
67682   ;;
67683
67684 freebsd* | dragonfly*)
67685   # DragonFly does not have aout.  When/if they implement a new
67686   # versioning mechanism, adjust this.
67687   if test -x /usr/bin/objformat; then
67688     objformat=`/usr/bin/objformat`
67689   else
67690     case $host_os in
67691     freebsd[23].*) objformat=aout ;;
67692     *) objformat=elf ;;
67693     esac
67694   fi
67695   version_type=freebsd-$objformat
67696   case $version_type in
67697     freebsd-elf*)
67698       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
67699       need_version=no
67700       need_lib_prefix=no
67701       ;;
67702     freebsd-*)
67703       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
67704       need_version=yes
67705       ;;
67706   esac
67707   shlibpath_var=LD_LIBRARY_PATH
67708   case $host_os in
67709   freebsd2.*)
67710     shlibpath_overrides_runpath=yes
67711     ;;
67712   freebsd3.[01]* | freebsdelf3.[01]*)
67713     shlibpath_overrides_runpath=yes
67714     hardcode_into_libs=yes
67715     ;;
67716   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
67717   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
67718     shlibpath_overrides_runpath=no
67719     hardcode_into_libs=yes
67720     ;;
67721   *) # from 4.6 on, and DragonFly
67722     shlibpath_overrides_runpath=yes
67723     hardcode_into_libs=yes
67724     ;;
67725   esac
67726   ;;
67727
67728 gnu*)
67729   version_type=linux # correct to gnu/linux during the next big refactor
67730   need_lib_prefix=no
67731   need_version=no
67732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
67733   soname_spec='${libname}${release}${shared_ext}$major'
67734   shlibpath_var=LD_LIBRARY_PATH
67735   shlibpath_overrides_runpath=no
67736   hardcode_into_libs=yes
67737   ;;
67738
67739 haiku*)
67740   version_type=linux # correct to gnu/linux during the next big refactor
67741   need_lib_prefix=no
67742   need_version=no
67743   dynamic_linker="$host_os runtime_loader"
67744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
67745   soname_spec='${libname}${release}${shared_ext}$major'
67746   shlibpath_var=LIBRARY_PATH
67747   shlibpath_overrides_runpath=yes
67748   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
67749   hardcode_into_libs=yes
67750   ;;
67751
67752 hpux9* | hpux10* | hpux11*)
67753   # Give a soname corresponding to the major version so that dld.sl refuses to
67754   # link against other versions.
67755   version_type=sunos
67756   need_lib_prefix=no
67757   need_version=no
67758   case $host_cpu in
67759   ia64*)
67760     shrext_cmds='.so'
67761     hardcode_into_libs=yes
67762     dynamic_linker="$host_os dld.so"
67763     shlibpath_var=LD_LIBRARY_PATH
67764     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
67765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67766     soname_spec='${libname}${release}${shared_ext}$major'
67767     if test "X$HPUX_IA64_MODE" = X32; then
67768       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
67769     else
67770       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
67771     fi
67772     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
67773     ;;
67774   hppa*64*)
67775     shrext_cmds='.sl'
67776     hardcode_into_libs=yes
67777     dynamic_linker="$host_os dld.sl"
67778     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
67779     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
67780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67781     soname_spec='${libname}${release}${shared_ext}$major'
67782     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
67783     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
67784     ;;
67785   *)
67786     shrext_cmds='.sl'
67787     dynamic_linker="$host_os dld.sl"
67788     shlibpath_var=SHLIB_PATH
67789     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
67790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67791     soname_spec='${libname}${release}${shared_ext}$major'
67792     ;;
67793   esac
67794   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
67795   postinstall_cmds='chmod 555 $lib'
67796   # or fails outright, so override atomically:
67797   install_override_mode=555
67798   ;;
67799
67800 interix[3-9]*)
67801   version_type=linux # correct to gnu/linux during the next big refactor
67802   need_lib_prefix=no
67803   need_version=no
67804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
67805   soname_spec='${libname}${release}${shared_ext}$major'
67806   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
67807   shlibpath_var=LD_LIBRARY_PATH
67808   shlibpath_overrides_runpath=no
67809   hardcode_into_libs=yes
67810   ;;
67811
67812 irix5* | irix6* | nonstopux*)
67813   case $host_os in
67814     nonstopux*) version_type=nonstopux ;;
67815     *)
67816         if test "$lt_cv_prog_gnu_ld" = yes; then
67817                 version_type=linux # correct to gnu/linux during the next big refactor
67818         else
67819                 version_type=irix
67820         fi ;;
67821   esac
67822   need_lib_prefix=no
67823   need_version=no
67824   soname_spec='${libname}${release}${shared_ext}$major'
67825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
67826   case $host_os in
67827   irix5* | nonstopux*)
67828     libsuff= shlibsuff=
67829     ;;
67830   *)
67831     case $LD in # libtool.m4 will add one of these switches to LD
67832     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
67833       libsuff= shlibsuff= libmagic=32-bit;;
67834     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
67835       libsuff=32 shlibsuff=N32 libmagic=N32;;
67836     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
67837       libsuff=64 shlibsuff=64 libmagic=64-bit;;
67838     *) libsuff= shlibsuff= libmagic=never-match;;
67839     esac
67840     ;;
67841   esac
67842   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
67843   shlibpath_overrides_runpath=no
67844   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
67845   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
67846   hardcode_into_libs=yes
67847   ;;
67848
67849 # No shared lib support for Linux oldld, aout, or coff.
67850 linux*oldld* | linux*aout* | linux*coff*)
67851   dynamic_linker=no
67852   ;;
67853
67854 # This must be glibc/ELF.
67855 linux* | k*bsd*-gnu | kopensolaris*-gnu)
67856   version_type=linux # correct to gnu/linux during the next big refactor
67857   need_lib_prefix=no
67858   need_version=no
67859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67860   soname_spec='${libname}${release}${shared_ext}$major'
67861   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
67862   shlibpath_var=LD_LIBRARY_PATH
67863   shlibpath_overrides_runpath=no
67864
67865   # Some binutils ld are patched to set DT_RUNPATH
67866   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
67867   $as_echo_n "(cached) " >&6
67868 else
67869   lt_cv_shlibpath_overrides_runpath=no
67870     save_LDFLAGS=$LDFLAGS
67871     save_libdir=$libdir
67872     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
67873          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
67874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67875 /* end confdefs.h.  */
67876
67877 int
67878 main ()
67879 {
67880
67881   ;
67882   return 0;
67883 }
67884 _ACEOF
67885 if ac_fn_cxx_try_link "$LINENO"; then :
67886   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
67887   lt_cv_shlibpath_overrides_runpath=yes
67888 fi
67889 fi
67890 rm -f core conftest.err conftest.$ac_objext \
67891     conftest$ac_exeext conftest.$ac_ext
67892     LDFLAGS=$save_LDFLAGS
67893     libdir=$save_libdir
67894
67895 fi
67896
67897   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
67898
67899   # This implies no fast_install, which is unacceptable.
67900   # Some rework will be needed to allow for fast_install
67901   # before this can be enabled.
67902   hardcode_into_libs=yes
67903
67904   # Append ld.so.conf contents to the search path
67905   if test -f /etc/ld.so.conf; then
67906     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
67907     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
67908   fi
67909
67910   # We used to test for /lib/ld.so.1 and disable shared libraries on
67911   # powerpc, because MkLinux only supported shared libraries with the
67912   # GNU dynamic linker.  Since this was broken with cross compilers,
67913   # most powerpc-linux boxes support dynamic linking these days and
67914   # people can always --disable-shared, the test was removed, and we
67915   # assume the GNU/Linux dynamic linker is in use.
67916   dynamic_linker='GNU/Linux ld.so'
67917   ;;
67918
67919 netbsd*)
67920   version_type=sunos
67921   need_lib_prefix=no
67922   need_version=no
67923   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
67924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
67925     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
67926     dynamic_linker='NetBSD (a.out) ld.so'
67927   else
67928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
67929     soname_spec='${libname}${release}${shared_ext}$major'
67930     dynamic_linker='NetBSD ld.elf_so'
67931   fi
67932   shlibpath_var=LD_LIBRARY_PATH
67933   shlibpath_overrides_runpath=yes
67934   hardcode_into_libs=yes
67935   ;;
67936
67937 newsos6)
67938   version_type=linux # correct to gnu/linux during the next big refactor
67939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67940   shlibpath_var=LD_LIBRARY_PATH
67941   shlibpath_overrides_runpath=yes
67942   ;;
67943
67944 *nto* | *qnx*)
67945   version_type=qnx
67946   need_lib_prefix=no
67947   need_version=no
67948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67949   soname_spec='${libname}${release}${shared_ext}$major'
67950   shlibpath_var=LD_LIBRARY_PATH
67951   shlibpath_overrides_runpath=no
67952   hardcode_into_libs=yes
67953   dynamic_linker='ldqnx.so'
67954   ;;
67955
67956 openbsd*)
67957   version_type=sunos
67958   sys_lib_dlsearch_path_spec="/usr/lib"
67959   need_lib_prefix=no
67960   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
67961   case $host_os in
67962     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
67963     *)                          need_version=no  ;;
67964   esac
67965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
67966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
67967   shlibpath_var=LD_LIBRARY_PATH
67968   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
67969     case $host_os in
67970       openbsd2.[89] | openbsd2.[89].*)
67971         shlibpath_overrides_runpath=no
67972         ;;
67973       *)
67974         shlibpath_overrides_runpath=yes
67975         ;;
67976       esac
67977   else
67978     shlibpath_overrides_runpath=yes
67979   fi
67980   ;;
67981
67982 os2*)
67983   libname_spec='$name'
67984   shrext_cmds=".dll"
67985   need_lib_prefix=no
67986   library_names_spec='$libname${shared_ext} $libname.a'
67987   dynamic_linker='OS/2 ld.exe'
67988   shlibpath_var=LIBPATH
67989   ;;
67990
67991 osf3* | osf4* | osf5*)
67992   version_type=osf
67993   need_lib_prefix=no
67994   need_version=no
67995   soname_spec='${libname}${release}${shared_ext}$major'
67996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
67997   shlibpath_var=LD_LIBRARY_PATH
67998   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
67999   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
68000   ;;
68001
68002 rdos*)
68003   dynamic_linker=no
68004   ;;
68005
68006 solaris*)
68007   version_type=linux # correct to gnu/linux during the next big refactor
68008   need_lib_prefix=no
68009   need_version=no
68010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
68011   soname_spec='${libname}${release}${shared_ext}$major'
68012   shlibpath_var=LD_LIBRARY_PATH
68013   shlibpath_overrides_runpath=yes
68014   hardcode_into_libs=yes
68015   # ldd complains unless libraries are executable
68016   postinstall_cmds='chmod +x $lib'
68017   ;;
68018
68019 sunos4*)
68020   version_type=sunos
68021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
68022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
68023   shlibpath_var=LD_LIBRARY_PATH
68024   shlibpath_overrides_runpath=yes
68025   if test "$with_gnu_ld" = yes; then
68026     need_lib_prefix=no
68027   fi
68028   need_version=yes
68029   ;;
68030
68031 sysv4 | sysv4.3*)
68032   version_type=linux # correct to gnu/linux during the next big refactor
68033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
68034   soname_spec='${libname}${release}${shared_ext}$major'
68035   shlibpath_var=LD_LIBRARY_PATH
68036   case $host_vendor in
68037     sni)
68038       shlibpath_overrides_runpath=no
68039       need_lib_prefix=no
68040       runpath_var=LD_RUN_PATH
68041       ;;
68042     siemens)
68043       need_lib_prefix=no
68044       ;;
68045     motorola)
68046       need_lib_prefix=no
68047       need_version=no
68048       shlibpath_overrides_runpath=no
68049       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
68050       ;;
68051   esac
68052   ;;
68053
68054 sysv4*MP*)
68055   if test -d /usr/nec ;then
68056     version_type=linux # correct to gnu/linux during the next big refactor
68057     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
68058     soname_spec='$libname${shared_ext}.$major'
68059     shlibpath_var=LD_LIBRARY_PATH
68060   fi
68061   ;;
68062
68063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
68064   version_type=freebsd-elf
68065   need_lib_prefix=no
68066   need_version=no
68067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
68068   soname_spec='${libname}${release}${shared_ext}$major'
68069   shlibpath_var=LD_LIBRARY_PATH
68070   shlibpath_overrides_runpath=yes
68071   hardcode_into_libs=yes
68072   if test "$with_gnu_ld" = yes; then
68073     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
68074   else
68075     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
68076     case $host_os in
68077       sco3.2v5*)
68078         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
68079         ;;
68080     esac
68081   fi
68082   sys_lib_dlsearch_path_spec='/usr/lib'
68083   ;;
68084
68085 tpf*)
68086   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
68087   version_type=linux # correct to gnu/linux during the next big refactor
68088   need_lib_prefix=no
68089   need_version=no
68090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
68091   shlibpath_var=LD_LIBRARY_PATH
68092   shlibpath_overrides_runpath=no
68093   hardcode_into_libs=yes
68094   ;;
68095
68096 uts4*)
68097   version_type=linux # correct to gnu/linux during the next big refactor
68098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
68099   soname_spec='${libname}${release}${shared_ext}$major'
68100   shlibpath_var=LD_LIBRARY_PATH
68101   ;;
68102
68103 *)
68104   dynamic_linker=no
68105   ;;
68106 esac
68107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
68108 $as_echo "$dynamic_linker" >&6; }
68109 test "$dynamic_linker" = no && can_build_shared=no
68110
68111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
68112 if test "$GCC" = yes; then
68113   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
68114 fi
68115
68116 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
68117   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
68118 fi
68119 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
68120   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
68121 fi
68122
68123
68124
68125
68126
68127
68128
68129
68130
68131
68132
68133
68134
68135
68136
68137
68138
68139
68140
68141
68142
68143
68144
68145
68146
68147
68148
68149
68150
68151
68152
68153
68154
68155
68156
68157
68158
68159
68160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
68161 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
68162 hardcode_action_CXX=
68163 if test -n "$hardcode_libdir_flag_spec_CXX" ||
68164    test -n "$runpath_var_CXX" ||
68165    test "X$hardcode_automatic_CXX" = "Xyes" ; then
68166
68167   # We can hardcode non-existent directories.
68168   if test "$hardcode_direct_CXX" != no &&
68169      # If the only mechanism to avoid hardcoding is shlibpath_var, we
68170      # have to relink, otherwise we might link with an installed library
68171      # when we should be linking with a yet-to-be-installed one
68172      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
68173      test "$hardcode_minus_L_CXX" != no; then
68174     # Linking always hardcodes the temporary library directory.
68175     hardcode_action_CXX=relink
68176   else
68177     # We can link without hardcoding, and we can hardcode nonexisting dirs.
68178     hardcode_action_CXX=immediate
68179   fi
68180 else
68181   # We cannot hardcode anything, or else we can only hardcode existing
68182   # directories.
68183   hardcode_action_CXX=unsupported
68184 fi
68185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
68186 $as_echo "$hardcode_action_CXX" >&6; }
68187
68188 if test "$hardcode_action_CXX" = relink ||
68189    test "$inherit_rpath_CXX" = yes; then
68190   # Fast installation is not supported
68191   enable_fast_install=no
68192 elif test "$shlibpath_overrides_runpath" = yes ||
68193      test "$enable_shared" = no; then
68194   # Fast installation is not necessary
68195   enable_fast_install=needless
68196 fi
68197
68198
68199
68200
68201
68202
68203
68204   fi # test -n "$compiler"
68205
68206   CC=$lt_save_CC
68207   CFLAGS=$lt_save_CFLAGS
68208   LDCXX=$LD
68209   LD=$lt_save_LD
68210   GCC=$lt_save_GCC
68211   with_gnu_ld=$lt_save_with_gnu_ld
68212   lt_cv_path_LDCXX=$lt_cv_path_LD
68213   lt_cv_path_LD=$lt_save_path_LD
68214   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
68215   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
68216 fi # test "$_lt_caught_CXX_error" != yes
68217
68218 ac_ext=c
68219 ac_cpp='$CPP $CPPFLAGS'
68220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
68221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
68222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
68223
68224
68225
68226 if test "${enable_libasprintf+set}" = set; then
68227   if test "$enable_libasprintf" != no; then
68228     TESTLIBASPRINTF=yes
68229   else
68230     TESTLIBASPRINTF=no
68231   fi
68232 else
68233   TESTLIBASPRINTF=yes
68234 fi
68235 if test "$CXX" = no; then
68236   TESTLIBASPRINTF=no
68237 fi
68238
68239
68240 test -d intl || mkdir intl
68241 echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
68242 cat > intl/ChangeLog.inst <<EOF
68243 $RELEASE_DATE  GNU  <bug-gnu-gettext@gnu.org>
68244
68245         * Version $VERSION released.
68246
68247 EOF
68248
68249
68250
68251 subdirs="$subdirs examples"
68252
68253
68254 ac_config_files="$ac_config_files Makefile"
68255
68256
68257 ac_config_files="$ac_config_files doc/Makefile"
68258
68259
68260 ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in"
68261
68262
68263 ac_config_files="$ac_config_files gnulib-lib/Makefile"
68264
68265
68266 ac_config_files="$ac_config_files libgrep/Makefile"
68267
68268
68269 ac_config_files="$ac_config_files src/Makefile"
68270
68271 ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in"
68272
68273
68274 ac_config_files="$ac_config_files libgettextpo/Makefile"
68275
68276 ac_config_files="$ac_config_files libgettextpo/exported.sh"
68277
68278
68279 ac_config_files="$ac_config_files po/Makefile.in"
68280
68281
68282 ac_config_files="$ac_config_files projects/Makefile"
68283
68284
68285 ac_config_files="$ac_config_files styles/Makefile"
68286
68287
68288 ac_config_files="$ac_config_files misc/Makefile"
68289
68290 ac_config_files="$ac_config_files misc/gettextize"
68291
68292 ac_config_files="$ac_config_files misc/autopoint"
68293
68294 ac_config_files="$ac_config_files misc/convert-archive"
68295
68296
68297 ac_config_files="$ac_config_files man/Makefile"
68298
68299 ac_config_files="$ac_config_files man/x-to-1"
68300
68301
68302 ac_config_files="$ac_config_files m4/Makefile"
68303
68304
68305 ac_config_files="$ac_config_files tests/Makefile"
68306
68307
68308 ac_config_files="$ac_config_files gnulib-tests/Makefile"
68309
68310
68311 cat >confcache <<\_ACEOF
68312 # This file is a shell script that caches the results of configure
68313 # tests run on this system so they can be shared between configure
68314 # scripts and configure runs, see configure's option --config-cache.
68315 # It is not useful on other systems.  If it contains results you don't
68316 # want to keep, you may remove or edit it.
68317 #
68318 # config.status only pays attention to the cache file if you give it
68319 # the --recheck option to rerun configure.
68320 #
68321 # `ac_cv_env_foo' variables (set or unset) will be overridden when
68322 # loading this file, other *unset* `ac_cv_foo' will be assigned the
68323 # following values.
68324
68325 _ACEOF
68326
68327 # The following way of writing the cache mishandles newlines in values,
68328 # but we know of no workaround that is simple, portable, and efficient.
68329 # So, we kill variables containing newlines.
68330 # Ultrix sh set writes to stderr and can't be redirected directly,
68331 # and sets the high bit in the cache file unless we assign to the vars.
68332 (
68333   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
68334     eval ac_val=\$$ac_var
68335     case $ac_val in #(
68336     *${as_nl}*)
68337       case $ac_var in #(
68338       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
68339 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
68340       esac
68341       case $ac_var in #(
68342       _ | IFS | as_nl) ;; #(
68343       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
68344       *) { eval $ac_var=; unset $ac_var;} ;;
68345       esac ;;
68346     esac
68347   done
68348
68349   (set) 2>&1 |
68350     case $as_nl`(ac_space=' '; set) 2>&1` in #(
68351     *${as_nl}ac_space=\ *)
68352       # `set' does not quote correctly, so add quotes: double-quote
68353       # substitution turns \\\\ into \\, and sed turns \\ into \.
68354       sed -n \
68355         "s/'/'\\\\''/g;
68356           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
68357       ;; #(
68358     *)
68359       # `set' quotes correctly as required by POSIX, so do not add quotes.
68360       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
68361       ;;
68362     esac |
68363     sort
68364 ) |
68365   sed '
68366      /^ac_cv_env_/b end
68367      t clear
68368      :clear
68369      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
68370      t end
68371      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
68372      :end' >>confcache
68373 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
68374   if test -w "$cache_file"; then
68375     if test "x$cache_file" != "x/dev/null"; then
68376       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
68377 $as_echo "$as_me: updating cache $cache_file" >&6;}
68378       if test ! -f "$cache_file" || test -h "$cache_file"; then
68379         cat confcache >"$cache_file"
68380       else
68381         case $cache_file in #(
68382         */* | ?:*)
68383           mv -f confcache "$cache_file"$$ &&
68384           mv -f "$cache_file"$$ "$cache_file" ;; #(
68385         *)
68386           mv -f confcache "$cache_file" ;;
68387         esac
68388       fi
68389     fi
68390   else
68391     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
68392 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
68393   fi
68394 fi
68395 rm -f confcache
68396
68397 test "x$prefix" = xNONE && prefix=$ac_default_prefix
68398 # Let make expand exec_prefix.
68399 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
68400
68401 DEFS=-DHAVE_CONFIG_H
68402
68403 ac_libobjs=
68404 ac_ltlibobjs=
68405 U=
68406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
68407   # 1. Remove the extension, and $U if already installed.
68408   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68409   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
68410   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
68411   #    will be set to the directory where LIBOBJS objects are built.
68412   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
68413   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
68414 done
68415 LIBOBJS=$ac_libobjs
68416
68417 LTLIBOBJS=$ac_ltlibobjs
68418
68419
68420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
68421 $as_echo_n "checking that generated files are newer than configure... " >&6; }
68422    if test -n "$am_sleep_pid"; then
68423      # Hide warnings about reused PIDs.
68424      wait $am_sleep_pid 2>/dev/null
68425    fi
68426    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
68427 $as_echo "done" >&6; }
68428  if test -n "$EXEEXT"; then
68429   am__EXEEXT_TRUE=
68430   am__EXEEXT_FALSE='#'
68431 else
68432   am__EXEEXT_TRUE='#'
68433   am__EXEEXT_FALSE=
68434 fi
68435
68436 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
68437   as_fn_error $? "conditional \"AMDEP\" was never defined.
68438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68439 fi
68440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
68441   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
68442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68443 fi
68444 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
68445   as_fn_error $? "conditional \"WOE32\" was never defined.
68446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68447 fi
68448 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
68449   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
68450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68451 fi
68452 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
68453   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
68454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68455 fi
68456 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
68457   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
68458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68459 fi
68460 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
68461   as_fn_error $? "conditional \"ANSICXX\" was never defined.
68462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68463 fi
68464 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
68465   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
68466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68467 fi
68468 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
68469   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
68470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68471 fi
68472 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
68473   as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
68474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68475 fi
68476 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
68477   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
68478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68479 fi
68480 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
68481   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
68482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68483 fi
68484 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
68485   as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
68486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68487 fi
68488 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
68489   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
68490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68491 fi
68492 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
68493   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
68494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68495 fi
68496 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
68497   as_fn_error $? "conditional \"INCLUDED_LIBGLIB\" was never defined.
68498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68499 fi
68500 if test -z "${INCLUDED_LIBCROCO_TRUE}" && test -z "${INCLUDED_LIBCROCO_FALSE}"; then
68501   as_fn_error $? "conditional \"INCLUDED_LIBCROCO\" was never defined.
68502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68503 fi
68504 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
68505   as_fn_error $? "conditional \"INCLUDED_LIBGLIB\" was never defined.
68506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68507 fi
68508 if test -z "${INCLUDED_LIBXML_TRUE}" && test -z "${INCLUDED_LIBXML_FALSE}"; then
68509   as_fn_error $? "conditional \"INCLUDED_LIBXML\" was never defined.
68510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68511 fi
68512 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
68513   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
68514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68515 fi
68516 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
68517   as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
68518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68519 fi
68520 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
68521   as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
68522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68523 fi
68524 if test -z "${GL_GENERATE_SCHED_H_TRUE}" && test -z "${GL_GENERATE_SCHED_H_FALSE}"; then
68525   as_fn_error $? "conditional \"GL_GENERATE_SCHED_H\" was never defined.
68526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68527 fi
68528 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
68529   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
68530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68531 fi
68532 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
68533   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
68534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68535 fi
68536 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
68537   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
68538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68539 fi
68540 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
68541   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
68542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68543 fi
68544 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
68545   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
68546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68547 fi
68548 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
68549   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
68550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68551 fi
68552 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
68553   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
68554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68555 fi
68556 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
68557   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
68558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68559 fi
68560 if test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE}"; then
68561   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINAME_UNINAME\" was never defined.
68562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68563 fi
68564 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
68565   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
68566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68567 fi
68568 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
68569   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
68570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68571 fi
68572 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
68573   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
68574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68575 fi
68576 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
68577   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
68578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68579 fi
68580 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
68581   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
68582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68583 fi
68584 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
68585   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
68586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68587 fi
68588 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
68589   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
68590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68591 fi
68592 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
68593   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
68594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68595 fi
68596 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
68597   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
68598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68599 fi
68600
68601
68602     gl_libobjs=
68603     gl_ltlibobjs=
68604     if test -n "$gl_LIBOBJS"; then
68605       # Remove the extension.
68606       sed_drop_objext='s/\.o$//;s/\.obj$//'
68607       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
68608         gl_libobjs="$gl_libobjs $i.$ac_objext"
68609         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
68610       done
68611     fi
68612     gl_LIBOBJS=$gl_libobjs
68613
68614     gl_LTLIBOBJS=$gl_ltlibobjs
68615
68616
68617 if test -z "${POSIX_SPAWN_PORTED_TRUE}" && test -z "${POSIX_SPAWN_PORTED_FALSE}"; then
68618   as_fn_error $? "conditional \"POSIX_SPAWN_PORTED\" was never defined.
68619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68620 fi
68621 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE}"; then
68622   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CMP\" was never defined.
68623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68624 fi
68625 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE}"; then
68626   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN\" was never defined.
68627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68628 fi
68629
68630     gltests_libobjs=
68631     gltests_ltlibobjs=
68632     if test -n "$gltests_LIBOBJS"; then
68633       # Remove the extension.
68634       sed_drop_objext='s/\.o$//;s/\.obj$//'
68635       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
68636         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
68637         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
68638       done
68639     fi
68640     gltests_LIBOBJS=$gltests_libobjs
68641
68642     gltests_LTLIBOBJS=$gltests_ltlibobjs
68643
68644
68645 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
68646   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
68647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68648 fi
68649
68650     grgl_libobjs=
68651     grgl_ltlibobjs=
68652     if test -n "$grgl_LIBOBJS"; then
68653       # Remove the extension.
68654       sed_drop_objext='s/\.o$//;s/\.obj$//'
68655       for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
68656         grgl_libobjs="$grgl_libobjs $i.$ac_objext"
68657         grgl_ltlibobjs="$grgl_ltlibobjs $i.lo"
68658       done
68659     fi
68660     grgl_LIBOBJS=$grgl_libobjs
68661
68662     grgl_LTLIBOBJS=$grgl_ltlibobjs
68663
68664
68665
68666     grgltests_libobjs=
68667     grgltests_ltlibobjs=
68668     if test -n "$grgltests_LIBOBJS"; then
68669       # Remove the extension.
68670       sed_drop_objext='s/\.o$//;s/\.obj$//'
68671       for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
68672         grgltests_libobjs="$grgltests_libobjs $i.$ac_objext"
68673         grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo"
68674       done
68675     fi
68676     grgltests_LIBOBJS=$grgltests_libobjs
68677
68678     grgltests_LTLIBOBJS=$grgltests_ltlibobjs
68679
68680
68681 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
68682   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
68683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68684 fi
68685 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
68686   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
68687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68688 fi
68689 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
68690   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
68691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68692 fi
68693 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
68694   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
68695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68696 fi
68697 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
68698   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
68699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68700 fi
68701 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
68702   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
68703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68704 fi
68705 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
68706   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
68707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68708 fi
68709 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
68710   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
68711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68712 fi
68713 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
68714   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
68715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68716 fi
68717 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
68718   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
68719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68720 fi
68721 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
68722   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
68723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68724 fi
68725 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
68726   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
68727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68728 fi
68729 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
68730   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
68731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68732 fi
68733 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
68734   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
68735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68736 fi
68737 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
68738   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
68739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68740 fi
68741 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
68742   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
68743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68744 fi
68745 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
68746   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
68747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68748 fi
68749 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
68750   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
68751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68752 fi
68753 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
68754   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
68755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68756 fi
68757 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
68758   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
68759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68760 fi
68761 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
68762   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
68763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68764 fi
68765
68766     gtpo_libobjs=
68767     gtpo_ltlibobjs=
68768     if test -n "$gtpo_LIBOBJS"; then
68769       # Remove the extension.
68770       sed_drop_objext='s/\.o$//;s/\.obj$//'
68771       for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
68772         gtpo_libobjs="$gtpo_libobjs $i.$ac_objext"
68773         gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo"
68774       done
68775     fi
68776     gtpo_LIBOBJS=$gtpo_libobjs
68777
68778     gtpo_LTLIBOBJS=$gtpo_ltlibobjs
68779
68780
68781
68782     gtpotests_libobjs=
68783     gtpotests_ltlibobjs=
68784     if test -n "$gtpotests_LIBOBJS"; then
68785       # Remove the extension.
68786       sed_drop_objext='s/\.o$//;s/\.obj$//'
68787       for i in `for i in $gtpotests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
68788         gtpotests_libobjs="$gtpotests_libobjs $i.$ac_objext"
68789         gtpotests_ltlibobjs="$gtpotests_ltlibobjs $i.lo"
68790       done
68791     fi
68792     gtpotests_LIBOBJS=$gtpotests_libobjs
68793
68794     gtpotests_LTLIBOBJS=$gtpotests_ltlibobjs
68795
68796
68797 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
68798   as_fn_error $? "conditional \"WOE32DLL\" was never defined.
68799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68800 fi
68801 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
68802   as_fn_error $? "conditional \"ANSICXX\" was never defined.
68803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68804 fi
68805 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
68806   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
68807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68808 fi
68809 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
68810   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
68811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68812 fi
68813 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
68814   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
68815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
68816 fi
68817
68818 : "${CONFIG_STATUS=./config.status}"
68819 ac_write_fail=0
68820 ac_clean_files_save=$ac_clean_files
68821 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
68822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
68823 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
68824 as_write_fail=0
68825 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
68826 #! $SHELL
68827 # Generated by $as_me.
68828 # Run this file to recreate the current configuration.
68829 # Compiler output produced by configure, useful for debugging
68830 # configure, is in config.log if it exists.
68831
68832 debug=false
68833 ac_cs_recheck=false
68834 ac_cs_silent=false
68835
68836 SHELL=\${CONFIG_SHELL-$SHELL}
68837 export SHELL
68838 _ASEOF
68839 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
68840 ## -------------------- ##
68841 ## M4sh Initialization. ##
68842 ## -------------------- ##
68843
68844 # Be more Bourne compatible
68845 DUALCASE=1; export DUALCASE # for MKS sh
68846 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
68847   emulate sh
68848   NULLCMD=:
68849   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
68850   # is contrary to our usage.  Disable this feature.
68851   alias -g '${1+"$@"}'='"$@"'
68852   setopt NO_GLOB_SUBST
68853 else
68854   case `(set -o) 2>/dev/null` in #(
68855   *posix*) :
68856     set -o posix ;; #(
68857   *) :
68858      ;;
68859 esac
68860 fi
68861
68862
68863 as_nl='
68864 '
68865 export as_nl
68866 # Printing a long string crashes Solaris 7 /usr/bin/printf.
68867 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
68868 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
68869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
68870 # Prefer a ksh shell builtin over an external printf program on Solaris,
68871 # but without wasting forks for bash or zsh.
68872 if test -z "$BASH_VERSION$ZSH_VERSION" \
68873     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
68874   as_echo='print -r --'
68875   as_echo_n='print -rn --'
68876 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
68877   as_echo='printf %s\n'
68878   as_echo_n='printf %s'
68879 else
68880   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
68881     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
68882     as_echo_n='/usr/ucb/echo -n'
68883   else
68884     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
68885     as_echo_n_body='eval
68886       arg=$1;
68887       case $arg in #(
68888       *"$as_nl"*)
68889         expr "X$arg" : "X\\(.*\\)$as_nl";
68890         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68891       esac;
68892       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68893     '
68894     export as_echo_n_body
68895     as_echo_n='sh -c $as_echo_n_body as_echo'
68896   fi
68897   export as_echo_body
68898   as_echo='sh -c $as_echo_body as_echo'
68899 fi
68900
68901 # The user is always right.
68902 if test "${PATH_SEPARATOR+set}" != set; then
68903   PATH_SEPARATOR=:
68904   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
68905     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
68906       PATH_SEPARATOR=';'
68907   }
68908 fi
68909
68910
68911 # IFS
68912 # We need space, tab and new line, in precisely that order.  Quoting is
68913 # there to prevent editors from complaining about space-tab.
68914 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68915 # splitting by setting IFS to empty value.)
68916 IFS=" ""        $as_nl"
68917
68918 # Find who we are.  Look in the path if we contain no directory separator.
68919 as_myself=
68920 case $0 in #((
68921   *[\\/]* ) as_myself=$0 ;;
68922   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68923 for as_dir in $PATH
68924 do
68925   IFS=$as_save_IFS
68926   test -z "$as_dir" && as_dir=.
68927     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
68928   done
68929 IFS=$as_save_IFS
68930
68931      ;;
68932 esac
68933 # We did not find ourselves, most probably we were run as `sh COMMAND'
68934 # in which case we are not to be found in the path.
68935 if test "x$as_myself" = x; then
68936   as_myself=$0
68937 fi
68938 if test ! -f "$as_myself"; then
68939   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
68940   exit 1
68941 fi
68942
68943 # Unset variables that we do not need and which cause bugs (e.g. in
68944 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
68945 # suppresses any "Segmentation fault" message there.  '((' could
68946 # trigger a bug in pdksh 5.2.14.
68947 for as_var in BASH_ENV ENV MAIL MAILPATH
68948 do eval test x\${$as_var+set} = xset \
68949   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68950 done
68951 PS1='$ '
68952 PS2='> '
68953 PS4='+ '
68954
68955 # NLS nuisances.
68956 LC_ALL=C
68957 export LC_ALL
68958 LANGUAGE=C
68959 export LANGUAGE
68960
68961 # CDPATH.
68962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
68963
68964
68965 # as_fn_error STATUS ERROR [LINENO LOG_FD]
68966 # ----------------------------------------
68967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
68968 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
68969 # script with STATUS, using 1 if that was 0.
68970 as_fn_error ()
68971 {
68972   as_status=$1; test $as_status -eq 0 && as_status=1
68973   if test "$4"; then
68974     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
68975     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
68976   fi
68977   $as_echo "$as_me: error: $2" >&2
68978   as_fn_exit $as_status
68979 } # as_fn_error
68980
68981
68982 # as_fn_set_status STATUS
68983 # -----------------------
68984 # Set $? to STATUS, without forking.
68985 as_fn_set_status ()
68986 {
68987   return $1
68988 } # as_fn_set_status
68989
68990 # as_fn_exit STATUS
68991 # -----------------
68992 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
68993 as_fn_exit ()
68994 {
68995   set +e
68996   as_fn_set_status $1
68997   exit $1
68998 } # as_fn_exit
68999
69000 # as_fn_unset VAR
69001 # ---------------
69002 # Portably unset VAR.
69003 as_fn_unset ()
69004 {
69005   { eval $1=; unset $1;}
69006 }
69007 as_unset=as_fn_unset
69008 # as_fn_append VAR VALUE
69009 # ----------------------
69010 # Append the text in VALUE to the end of the definition contained in VAR. Take
69011 # advantage of any shell optimizations that allow amortized linear growth over
69012 # repeated appends, instead of the typical quadratic growth present in naive
69013 # implementations.
69014 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
69015   eval 'as_fn_append ()
69016   {
69017     eval $1+=\$2
69018   }'
69019 else
69020   as_fn_append ()
69021   {
69022     eval $1=\$$1\$2
69023   }
69024 fi # as_fn_append
69025
69026 # as_fn_arith ARG...
69027 # ------------------
69028 # Perform arithmetic evaluation on the ARGs, and store the result in the
69029 # global $as_val. Take advantage of shells that can avoid forks. The arguments
69030 # must be portable across $(()) and expr.
69031 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
69032   eval 'as_fn_arith ()
69033   {
69034     as_val=$(( $* ))
69035   }'
69036 else
69037   as_fn_arith ()
69038   {
69039     as_val=`expr "$@" || test $? -eq 1`
69040   }
69041 fi # as_fn_arith
69042
69043
69044 if expr a : '\(a\)' >/dev/null 2>&1 &&
69045    test "X`expr 00001 : '.*\(...\)'`" = X001; then
69046   as_expr=expr
69047 else
69048   as_expr=false
69049 fi
69050
69051 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
69052   as_basename=basename
69053 else
69054   as_basename=false
69055 fi
69056
69057 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
69058   as_dirname=dirname
69059 else
69060   as_dirname=false
69061 fi
69062
69063 as_me=`$as_basename -- "$0" ||
69064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69065          X"$0" : 'X\(//\)$' \| \
69066          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
69067 $as_echo X/"$0" |
69068     sed '/^.*\/\([^/][^/]*\)\/*$/{
69069             s//\1/
69070             q
69071           }
69072           /^X\/\(\/\/\)$/{
69073             s//\1/
69074             q
69075           }
69076           /^X\/\(\/\).*/{
69077             s//\1/
69078             q
69079           }
69080           s/.*/./; q'`
69081
69082 # Avoid depending upon Character Ranges.
69083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
69084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
69085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
69086 as_cr_digits='0123456789'
69087 as_cr_alnum=$as_cr_Letters$as_cr_digits
69088
69089 ECHO_C= ECHO_N= ECHO_T=
69090 case `echo -n x` in #(((((
69091 -n*)
69092   case `echo 'xy\c'` in
69093   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
69094   xy)  ECHO_C='\c';;
69095   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
69096        ECHO_T=' ';;
69097   esac;;
69098 *)
69099   ECHO_N='-n';;
69100 esac
69101
69102 rm -f conf$$ conf$$.exe conf$$.file
69103 if test -d conf$$.dir; then
69104   rm -f conf$$.dir/conf$$.file
69105 else
69106   rm -f conf$$.dir
69107   mkdir conf$$.dir 2>/dev/null
69108 fi
69109 if (echo >conf$$.file) 2>/dev/null; then
69110   if ln -s conf$$.file conf$$ 2>/dev/null; then
69111     as_ln_s='ln -s'
69112     # ... but there are two gotchas:
69113     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
69114     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
69115     # In both cases, we have to default to `cp -pR'.
69116     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
69117       as_ln_s='cp -pR'
69118   elif ln conf$$.file conf$$ 2>/dev/null; then
69119     as_ln_s=ln
69120   else
69121     as_ln_s='cp -pR'
69122   fi
69123 else
69124   as_ln_s='cp -pR'
69125 fi
69126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
69127 rmdir conf$$.dir 2>/dev/null
69128
69129
69130 # as_fn_mkdir_p
69131 # -------------
69132 # Create "$as_dir" as a directory, including parents if necessary.
69133 as_fn_mkdir_p ()
69134 {
69135
69136   case $as_dir in #(
69137   -*) as_dir=./$as_dir;;
69138   esac
69139   test -d "$as_dir" || eval $as_mkdir_p || {
69140     as_dirs=
69141     while :; do
69142       case $as_dir in #(
69143       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
69144       *) as_qdir=$as_dir;;
69145       esac
69146       as_dirs="'$as_qdir' $as_dirs"
69147       as_dir=`$as_dirname -- "$as_dir" ||
69148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69149          X"$as_dir" : 'X\(//\)[^/]' \| \
69150          X"$as_dir" : 'X\(//\)$' \| \
69151          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
69152 $as_echo X"$as_dir" |
69153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69154             s//\1/
69155             q
69156           }
69157           /^X\(\/\/\)[^/].*/{
69158             s//\1/
69159             q
69160           }
69161           /^X\(\/\/\)$/{
69162             s//\1/
69163             q
69164           }
69165           /^X\(\/\).*/{
69166             s//\1/
69167             q
69168           }
69169           s/.*/./; q'`
69170       test -d "$as_dir" && break
69171     done
69172     test -z "$as_dirs" || eval "mkdir $as_dirs"
69173   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
69174
69175
69176 } # as_fn_mkdir_p
69177 if mkdir -p . 2>/dev/null; then
69178   as_mkdir_p='mkdir -p "$as_dir"'
69179 else
69180   test -d ./-p && rmdir ./-p
69181   as_mkdir_p=false
69182 fi
69183
69184
69185 # as_fn_executable_p FILE
69186 # -----------------------
69187 # Test if FILE is an executable regular file.
69188 as_fn_executable_p ()
69189 {
69190   test -f "$1" && test -x "$1"
69191 } # as_fn_executable_p
69192 as_test_x='test -x'
69193 as_executable_p=as_fn_executable_p
69194
69195 # Sed expression to map a string onto a valid CPP name.
69196 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
69197
69198 # Sed expression to map a string onto a valid variable name.
69199 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
69200
69201
69202 exec 6>&1
69203 ## ----------------------------------- ##
69204 ## Main body of $CONFIG_STATUS script. ##
69205 ## ----------------------------------- ##
69206 _ASEOF
69207 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
69208
69209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69210 # Save the log message, to keep $0 and so on meaningful, and to
69211 # report actual input values of CONFIG_FILES etc. instead of their
69212 # values after options handling.
69213 ac_log="
69214 This file was extended by gettext-tools $as_me, which was
69215 generated by GNU Autoconf 2.69.  Invocation command line was
69216
69217   CONFIG_FILES    = $CONFIG_FILES
69218   CONFIG_HEADERS  = $CONFIG_HEADERS
69219   CONFIG_LINKS    = $CONFIG_LINKS
69220   CONFIG_COMMANDS = $CONFIG_COMMANDS
69221   $ $0 $@
69222
69223 on `(hostname || uname -n) 2>/dev/null | sed 1q`
69224 "
69225
69226 _ACEOF
69227
69228 case $ac_config_files in *"
69229 "*) set x $ac_config_files; shift; ac_config_files=$*;;
69230 esac
69231
69232 case $ac_config_headers in *"
69233 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
69234 esac
69235
69236
69237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69238 # Files that config.status was made for.
69239 config_files="$ac_config_files"
69240 config_headers="$ac_config_headers"
69241 config_commands="$ac_config_commands"
69242
69243 _ACEOF
69244
69245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69246 ac_cs_usage="\
69247 \`$as_me' instantiates files and other configuration actions
69248 from templates according to the current configuration.  Unless the files
69249 and actions are specified as TAGs, all are instantiated by default.
69250
69251 Usage: $0 [OPTION]... [TAG]...
69252
69253   -h, --help       print this help, then exit
69254   -V, --version    print version number and configuration settings, then exit
69255       --config     print configuration, then exit
69256   -q, --quiet, --silent
69257                    do not print progress messages
69258   -d, --debug      don't remove temporary files
69259       --recheck    update $as_me by reconfiguring in the same conditions
69260       --file=FILE[:TEMPLATE]
69261                    instantiate the configuration file FILE
69262       --header=FILE[:TEMPLATE]
69263                    instantiate the configuration header FILE
69264
69265 Configuration files:
69266 $config_files
69267
69268 Configuration headers:
69269 $config_headers
69270
69271 Configuration commands:
69272 $config_commands
69273
69274 Report bugs to the package provider."
69275
69276 _ACEOF
69277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69278 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
69279 ac_cs_version="\\
69280 gettext-tools config.status
69281 configured by $0, generated by GNU Autoconf 2.69,
69282   with options \\"\$ac_cs_config\\"
69283
69284 Copyright (C) 2012 Free Software Foundation, Inc.
69285 This config.status script is free software; the Free Software Foundation
69286 gives unlimited permission to copy, distribute and modify it."
69287
69288 ac_pwd='$ac_pwd'
69289 srcdir='$srcdir'
69290 INSTALL='$INSTALL'
69291 MKDIR_P='$MKDIR_P'
69292 AWK='$AWK'
69293 test -n "\$AWK" || AWK=awk
69294 _ACEOF
69295
69296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69297 # The default lists apply if the user does not specify any file.
69298 ac_need_defaults=:
69299 while test $# != 0
69300 do
69301   case $1 in
69302   --*=?*)
69303     ac_option=`expr "X$1" : 'X\([^=]*\)='`
69304     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
69305     ac_shift=:
69306     ;;
69307   --*=)
69308     ac_option=`expr "X$1" : 'X\([^=]*\)='`
69309     ac_optarg=
69310     ac_shift=:
69311     ;;
69312   *)
69313     ac_option=$1
69314     ac_optarg=$2
69315     ac_shift=shift
69316     ;;
69317   esac
69318
69319   case $ac_option in
69320   # Handling of the options.
69321   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
69322     ac_cs_recheck=: ;;
69323   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
69324     $as_echo "$ac_cs_version"; exit ;;
69325   --config | --confi | --conf | --con | --co | --c )
69326     $as_echo "$ac_cs_config"; exit ;;
69327   --debug | --debu | --deb | --de | --d | -d )
69328     debug=: ;;
69329   --file | --fil | --fi | --f )
69330     $ac_shift
69331     case $ac_optarg in
69332     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
69333     '') as_fn_error $? "missing file argument" ;;
69334     esac
69335     as_fn_append CONFIG_FILES " '$ac_optarg'"
69336     ac_need_defaults=false;;
69337   --header | --heade | --head | --hea )
69338     $ac_shift
69339     case $ac_optarg in
69340     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
69341     esac
69342     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
69343     ac_need_defaults=false;;
69344   --he | --h)
69345     # Conflict between --help and --header
69346     as_fn_error $? "ambiguous option: \`$1'
69347 Try \`$0 --help' for more information.";;
69348   --help | --hel | -h )
69349     $as_echo "$ac_cs_usage"; exit ;;
69350   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
69351   | -silent | --silent | --silen | --sile | --sil | --si | --s)
69352     ac_cs_silent=: ;;
69353
69354   # This is an error.
69355   -*) as_fn_error $? "unrecognized option: \`$1'
69356 Try \`$0 --help' for more information." ;;
69357
69358   *) as_fn_append ac_config_targets " $1"
69359      ac_need_defaults=false ;;
69360
69361   esac
69362   shift
69363 done
69364
69365 ac_configure_extra_args=
69366
69367 if $ac_cs_silent; then
69368   exec 6>/dev/null
69369   ac_configure_extra_args="$ac_configure_extra_args --silent"
69370 fi
69371
69372 _ACEOF
69373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69374 if \$ac_cs_recheck; then
69375   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
69376   shift
69377   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
69378   CONFIG_SHELL='$SHELL'
69379   export CONFIG_SHELL
69380   exec "\$@"
69381 fi
69382
69383 _ACEOF
69384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69385 exec 5>>config.log
69386 {
69387   echo
69388   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
69389 ## Running $as_me. ##
69390 _ASBOX
69391   $as_echo "$ac_log"
69392 } >&5
69393
69394 _ACEOF
69395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69396 #
69397 # INIT-COMMANDS
69398 #
69399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
69400
69401
69402 # The HP-UX ksh and POSIX shell print the target directory to stdout
69403 # if CDPATH is set.
69404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
69405
69406 sed_quote_subst='$sed_quote_subst'
69407 double_quote_subst='$double_quote_subst'
69408 delay_variable_subst='$delay_variable_subst'
69409 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
69410 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
69411 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
69412 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
69413 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
69414 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
69415 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
69416 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
69417 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
69418 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
69419 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
69420 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
69421 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
69422 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
69423 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
69424 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
69425 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
69426 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
69427 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
69428 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
69429 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
69430 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
69431 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
69432 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
69433 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
69434 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
69435 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
69436 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
69437 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
69438 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
69439 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
69440 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
69441 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
69442 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
69443 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
69444 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
69445 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
69446 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
69447 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
69448 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
69449 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
69450 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
69451 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
69452 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
69453 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
69454 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
69455 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
69456 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
69457 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
69458 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
69459 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
69460 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
69461 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
69462 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
69463 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
69464 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
69465 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
69466 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
69467 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
69468 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
69469 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
69470 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
69471 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
69472 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
69473 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
69474 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
69475 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
69476 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
69477 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
69478 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
69479 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
69480 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
69481 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
69482 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
69483 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
69484 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
69485 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
69486 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
69487 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
69488 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
69489 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
69490 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
69491 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
69492 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
69493 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
69494 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
69495 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
69496 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
69497 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
69498 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
69499 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
69500 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
69501 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
69502 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
69503 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
69504 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
69505 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
69506 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
69507 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
69508 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
69509 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
69510 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
69511 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
69512 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
69513 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
69514 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
69515 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
69516 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
69517 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
69518 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
69519 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
69520 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
69521 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
69522 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
69523 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
69524 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
69525 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
69526 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
69527 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
69528 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
69529 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
69530 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
69531 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
69532 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
69533 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
69534 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
69535 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
69536 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
69537 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
69538 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
69539 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
69540 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
69541 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
69542 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
69543 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
69544 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
69545 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
69546 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
69547 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
69548 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
69549 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
69550 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
69551 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69552 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
69553 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69554 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
69555 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
69556 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
69557 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
69558 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
69559 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
69560 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
69561 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
69562 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
69563 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
69564 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
69565 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
69566 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
69567 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
69568 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
69569 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
69570 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
69571 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
69572 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
69573 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
69574 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
69575 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
69576 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
69577 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
69578 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
69579 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69580 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
69581 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69582 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
69583 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69584 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
69585 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69586 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
69587 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69588 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
69589 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69590 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
69591 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
69592 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
69593 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
69594 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
69595 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
69596 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
69597 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
69598 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
69599 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
69600 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
69601 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
69602 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
69603 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
69604 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
69605 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
69606 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
69607 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
69608 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
69609 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
69610 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
69611 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
69612 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
69613 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
69614 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
69615 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
69616 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
69617 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69618 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
69619 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
69620 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
69621 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
69622 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
69623 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69624 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
69625 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69626 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
69627 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
69628 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
69629 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
69630 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
69631 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
69632 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
69633 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
69634 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
69635 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
69636 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
69637 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
69638 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
69639 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
69640 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
69641 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
69642
69643 LTCC='$LTCC'
69644 LTCFLAGS='$LTCFLAGS'
69645 compiler='$compiler_DEFAULT'
69646
69647 # A function that is used when there is no print builtin or printf.
69648 func_fallback_echo ()
69649 {
69650   eval 'cat <<_LTECHO_EOF
69651 \$1
69652 _LTECHO_EOF'
69653 }
69654
69655 # Quote evaled strings.
69656 for var in AS \
69657 DLLTOOL \
69658 OBJDUMP \
69659 SHELL \
69660 ECHO \
69661 PATH_SEPARATOR \
69662 SED \
69663 GREP \
69664 EGREP \
69665 FGREP \
69666 LD \
69667 NM \
69668 LN_S \
69669 lt_SP2NL \
69670 lt_NL2SP \
69671 reload_flag \
69672 deplibs_check_method \
69673 file_magic_cmd \
69674 file_magic_glob \
69675 want_nocaseglob \
69676 sharedlib_from_linklib_cmd \
69677 AR \
69678 AR_FLAGS \
69679 archiver_list_spec \
69680 STRIP \
69681 RANLIB \
69682 CC \
69683 CFLAGS \
69684 compiler \
69685 lt_cv_sys_global_symbol_pipe \
69686 lt_cv_sys_global_symbol_to_cdecl \
69687 lt_cv_sys_global_symbol_to_c_name_address \
69688 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
69689 nm_file_list_spec \
69690 lt_prog_compiler_no_builtin_flag \
69691 lt_prog_compiler_pic \
69692 lt_prog_compiler_wl \
69693 lt_prog_compiler_static \
69694 lt_cv_prog_compiler_c_o \
69695 need_locks \
69696 MANIFEST_TOOL \
69697 DSYMUTIL \
69698 NMEDIT \
69699 LIPO \
69700 OTOOL \
69701 OTOOL64 \
69702 shrext_cmds \
69703 export_dynamic_flag_spec \
69704 whole_archive_flag_spec \
69705 compiler_needs_object \
69706 with_gnu_ld \
69707 allow_undefined_flag \
69708 no_undefined_flag \
69709 hardcode_libdir_flag_spec \
69710 hardcode_libdir_separator \
69711 exclude_expsyms \
69712 include_expsyms \
69713 file_list_spec \
69714 variables_saved_for_relink \
69715 libname_spec \
69716 library_names_spec \
69717 soname_spec \
69718 install_override_mode \
69719 finish_eval \
69720 old_striplib \
69721 striplib \
69722 compiler_lib_search_dirs \
69723 predep_objects \
69724 postdep_objects \
69725 predeps \
69726 postdeps \
69727 compiler_lib_search_path \
69728 LD_RC \
69729 LD_CXX \
69730 reload_flag_RC \
69731 reload_flag_CXX \
69732 compiler_RC \
69733 compiler_CXX \
69734 lt_prog_compiler_no_builtin_flag_RC \
69735 lt_prog_compiler_no_builtin_flag_CXX \
69736 lt_prog_compiler_pic_RC \
69737 lt_prog_compiler_pic_CXX \
69738 lt_prog_compiler_wl_RC \
69739 lt_prog_compiler_wl_CXX \
69740 lt_prog_compiler_static_RC \
69741 lt_prog_compiler_static_CXX \
69742 lt_cv_prog_compiler_c_o_RC \
69743 lt_cv_prog_compiler_c_o_CXX \
69744 export_dynamic_flag_spec_RC \
69745 export_dynamic_flag_spec_CXX \
69746 whole_archive_flag_spec_RC \
69747 whole_archive_flag_spec_CXX \
69748 compiler_needs_object_RC \
69749 compiler_needs_object_CXX \
69750 with_gnu_ld_RC \
69751 with_gnu_ld_CXX \
69752 allow_undefined_flag_RC \
69753 allow_undefined_flag_CXX \
69754 no_undefined_flag_RC \
69755 no_undefined_flag_CXX \
69756 hardcode_libdir_flag_spec_RC \
69757 hardcode_libdir_flag_spec_CXX \
69758 hardcode_libdir_separator_RC \
69759 hardcode_libdir_separator_CXX \
69760 exclude_expsyms_RC \
69761 exclude_expsyms_CXX \
69762 include_expsyms_RC \
69763 include_expsyms_CXX \
69764 file_list_spec_RC \
69765 file_list_spec_CXX \
69766 compiler_lib_search_dirs_RC \
69767 compiler_lib_search_dirs_CXX \
69768 predep_objects_RC \
69769 predep_objects_CXX \
69770 postdep_objects_RC \
69771 postdep_objects_CXX \
69772 predeps_RC \
69773 predeps_CXX \
69774 postdeps_RC \
69775 postdeps_CXX \
69776 compiler_lib_search_path_RC \
69777 compiler_lib_search_path_CXX; do
69778     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
69779     *[\\\\\\\`\\"\\\$]*)
69780       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
69781       ;;
69782     *)
69783       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
69784       ;;
69785     esac
69786 done
69787
69788 # Double-quote double-evaled strings.
69789 for var in reload_cmds \
69790 old_postinstall_cmds \
69791 old_postuninstall_cmds \
69792 old_archive_cmds \
69793 extract_expsyms_cmds \
69794 old_archive_from_new_cmds \
69795 old_archive_from_expsyms_cmds \
69796 archive_cmds \
69797 archive_expsym_cmds \
69798 module_cmds \
69799 module_expsym_cmds \
69800 export_symbols_cmds \
69801 prelink_cmds \
69802 postlink_cmds \
69803 postinstall_cmds \
69804 postuninstall_cmds \
69805 finish_cmds \
69806 sys_lib_search_path_spec \
69807 sys_lib_dlsearch_path_spec \
69808 reload_cmds_RC \
69809 reload_cmds_CXX \
69810 old_archive_cmds_RC \
69811 old_archive_cmds_CXX \
69812 old_archive_from_new_cmds_RC \
69813 old_archive_from_new_cmds_CXX \
69814 old_archive_from_expsyms_cmds_RC \
69815 old_archive_from_expsyms_cmds_CXX \
69816 archive_cmds_RC \
69817 archive_cmds_CXX \
69818 archive_expsym_cmds_RC \
69819 archive_expsym_cmds_CXX \
69820 module_cmds_RC \
69821 module_cmds_CXX \
69822 module_expsym_cmds_RC \
69823 module_expsym_cmds_CXX \
69824 export_symbols_cmds_RC \
69825 export_symbols_cmds_CXX \
69826 prelink_cmds_RC \
69827 prelink_cmds_CXX \
69828 postlink_cmds_RC \
69829 postlink_cmds_CXX; do
69830     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
69831     *[\\\\\\\`\\"\\\$]*)
69832       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
69833       ;;
69834     *)
69835       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
69836       ;;
69837     esac
69838 done
69839
69840 ac_aux_dir='$ac_aux_dir'
69841 xsi_shell='$xsi_shell'
69842 lt_shell_append='$lt_shell_append'
69843
69844 # See if we are running on zsh, and set the options which allow our
69845 # commands through without removal of \ escapes INIT.
69846 if test -n "\${ZSH_VERSION+set}" ; then
69847    setopt NO_GLOB_SUBST
69848 fi
69849
69850
69851     PACKAGE='$PACKAGE'
69852     VERSION='$VERSION'
69853     TIMESTAMP='$TIMESTAMP'
69854     RM='$RM'
69855     ofile='$ofile'
69856
69857
69858
69859
69860
69861
69862
69863 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
69864     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
69865     # from automake < 1.5.
69866     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
69867     # Capture the value of LINGUAS because we need it to compute CATALOGS.
69868     LINGUAS="${LINGUAS-%UNSET%}"
69869
69870
69871 _ACEOF
69872
69873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69874
69875 # Handling of arguments.
69876 for ac_config_target in $ac_config_targets
69877 do
69878   case $ac_config_target in
69879     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
69880     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
69881     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
69882     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
69883     "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
69884     "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:../build-aux/csharpexec.sh.in" ;;
69885     "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
69886     "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:../build-aux/javaexec.sh.in" ;;
69887     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
69888     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
69889     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;;
69890     "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
69891     "libgrep/Makefile") CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;;
69892     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
69893     "src/user-email") CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;;
69894     "libgettextpo/Makefile") CONFIG_FILES="$CONFIG_FILES libgettextpo/Makefile" ;;
69895     "libgettextpo/exported.sh") CONFIG_FILES="$CONFIG_FILES libgettextpo/exported.sh" ;;
69896     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
69897     "projects/Makefile") CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;;
69898     "styles/Makefile") CONFIG_FILES="$CONFIG_FILES styles/Makefile" ;;
69899     "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
69900     "misc/gettextize") CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;;
69901     "misc/autopoint") CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;;
69902     "misc/convert-archive") CONFIG_FILES="$CONFIG_FILES misc/convert-archive" ;;
69903     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
69904     "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
69905     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
69906     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
69907     "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;;
69908
69909   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
69910   esac
69911 done
69912
69913
69914 # If the user did not use the arguments to specify the items to instantiate,
69915 # then the envvar interface is used.  Set only those that are not.
69916 # We use the long form for the default assignment because of an extremely
69917 # bizarre bug on SunOS 4.1.3.
69918 if $ac_need_defaults; then
69919   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
69920   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
69921   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
69922 fi
69923
69924 # Have a temporary directory for convenience.  Make it in the build tree
69925 # simply because there is no reason against having it here, and in addition,
69926 # creating and moving files from /tmp can sometimes cause problems.
69927 # Hook for its removal unless debugging.
69928 # Note that there is a small window in which the directory will not be cleaned:
69929 # after its creation but before its name has been assigned to `$tmp'.
69930 $debug ||
69931 {
69932   tmp= ac_tmp=
69933   trap 'exit_status=$?
69934   : "${ac_tmp:=$tmp}"
69935   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
69936 ' 0
69937   trap 'as_fn_exit 1' 1 2 13 15
69938 }
69939 # Create a (secure) tmp directory for tmp files.
69940
69941 {
69942   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
69943   test -d "$tmp"
69944 }  ||
69945 {
69946   tmp=./conf$$-$RANDOM
69947   (umask 077 && mkdir "$tmp")
69948 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
69949 ac_tmp=$tmp
69950
69951 # Set up the scripts for CONFIG_FILES section.
69952 # No need to generate them if there are no CONFIG_FILES.
69953 # This happens for instance with `./config.status config.h'.
69954 if test -n "$CONFIG_FILES"; then
69955
69956 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
69957   ac_cs_awk_getline=:
69958   ac_cs_awk_pipe_init=
69959   ac_cs_awk_read_file='
69960       while ((getline aline < (F[key])) > 0)
69961         print(aline)
69962       close(F[key])'
69963   ac_cs_awk_pipe_fini=
69964 else
69965   ac_cs_awk_getline=false
69966   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
69967   ac_cs_awk_read_file='
69968       print "|#_!!_#|"
69969       print "cat " F[key] " &&"
69970       '$ac_cs_awk_pipe_init
69971   # The final `:' finishes the AND list.
69972   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
69973 fi
69974 ac_cr=`echo X | tr X '\015'`
69975 # On cygwin, bash can eat \r inside `` if the user requested igncr.
69976 # But we know of no other shell where ac_cr would be empty at this
69977 # point, so we can use a bashism as a fallback.
69978 if test "x$ac_cr" = x; then
69979   eval ac_cr=\$\'\\r\'
69980 fi
69981 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
69982 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
69983   ac_cs_awk_cr='\\r'
69984 else
69985   ac_cs_awk_cr=$ac_cr
69986 fi
69987
69988 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
69989 _ACEOF
69990
69991 # Create commands to substitute file output variables.
69992 {
69993   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
69994   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
69995   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
69996   echo "_ACAWK" &&
69997   echo "_ACEOF"
69998 } >conf$$files.sh &&
69999 . ./conf$$files.sh ||
70000   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70001 rm -f conf$$files.sh
70002
70003 {
70004   echo "cat >conf$$subs.awk <<_ACEOF" &&
70005   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
70006   echo "_ACEOF"
70007 } >conf$$subs.sh ||
70008   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
70010 ac_delim='%!_!# '
70011 for ac_last_try in false false false false false :; do
70012   . ./conf$$subs.sh ||
70013     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70014
70015   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
70016   if test $ac_delim_n = $ac_delim_num; then
70017     break
70018   elif $ac_last_try; then
70019     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70020   else
70021     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
70022   fi
70023 done
70024 rm -f conf$$subs.sh
70025
70026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70027 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
70028 _ACEOF
70029 sed -n '
70030 h
70031 s/^/S["/; s/!.*/"]=/
70032 p
70033 g
70034 s/^[^!]*!//
70035 :repl
70036 t repl
70037 s/'"$ac_delim"'$//
70038 t delim
70039 :nl
70040 h
70041 s/\(.\{148\}\)..*/\1/
70042 t more1
70043 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
70044 p
70045 n
70046 b repl
70047 :more1
70048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
70049 p
70050 g
70051 s/.\{148\}//
70052 t nl
70053 :delim
70054 h
70055 s/\(.\{148\}\)..*/\1/
70056 t more2
70057 s/["\\]/\\&/g; s/^/"/; s/$/"/
70058 p
70059 b
70060 :more2
70061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
70062 p
70063 g
70064 s/.\{148\}//
70065 t delim
70066 ' <conf$$subs.awk | sed '
70067 /^[^""]/{
70068   N
70069   s/\n//
70070 }
70071 ' >>$CONFIG_STATUS || ac_write_fail=1
70072 rm -f conf$$subs.awk
70073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70074 _ACAWK
70075 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
70076   for (key in S) S_is_set[key] = 1
70077   FS = "\a"
70078   \$ac_cs_awk_pipe_init
70079 }
70080 {
70081   line = $ 0
70082   nfields = split(line, field, "@")
70083   substed = 0
70084   len = length(field[1])
70085   for (i = 2; i < nfields; i++) {
70086     key = field[i]
70087     keylen = length(key)
70088     if (S_is_set[key]) {
70089       value = S[key]
70090       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
70091       len += length(value) + length(field[++i])
70092       substed = 1
70093     } else
70094       len += 1 + keylen
70095   }
70096   if (nfields == 3 && !substed) {
70097     key = field[2]
70098     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
70099       \$ac_cs_awk_read_file
70100       next
70101     }
70102   }
70103   print line
70104 }
70105 \$ac_cs_awk_pipe_fini
70106 _ACAWK
70107 _ACEOF
70108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70109 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
70110   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
70111 else
70112   cat
70113 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
70114   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
70115 _ACEOF
70116
70117 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
70118 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
70119 # trailing colons and then remove the whole line if VPATH becomes empty
70120 # (actually we leave an empty line to preserve line numbers).
70121 if test "x$srcdir" = x.; then
70122   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
70123 h
70124 s///
70125 s/^/:/
70126 s/[      ]*$/:/
70127 s/:\$(srcdir):/:/g
70128 s/:\${srcdir}:/:/g
70129 s/:@srcdir@:/:/g
70130 s/^:*//
70131 s/:*$//
70132 x
70133 s/\(=[   ]*\).*/\1/
70134 G
70135 s/\n//
70136 s/^[^=]*=[       ]*$//
70137 }'
70138 fi
70139
70140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70141 fi # test -n "$CONFIG_FILES"
70142
70143 # Set up the scripts for CONFIG_HEADERS section.
70144 # No need to generate them if there are no CONFIG_HEADERS.
70145 # This happens for instance with `./config.status Makefile'.
70146 if test -n "$CONFIG_HEADERS"; then
70147 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
70148 BEGIN {
70149 _ACEOF
70150
70151 # Transform confdefs.h into an awk script `defines.awk', embedded as
70152 # here-document in config.status, that substitutes the proper values into
70153 # config.h.in to produce config.h.
70154
70155 # Create a delimiter string that does not exist in confdefs.h, to ease
70156 # handling of long lines.
70157 ac_delim='%!_!# '
70158 for ac_last_try in false false :; do
70159   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
70160   if test -z "$ac_tt"; then
70161     break
70162   elif $ac_last_try; then
70163     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
70164   else
70165     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
70166   fi
70167 done
70168
70169 # For the awk script, D is an array of macro values keyed by name,
70170 # likewise P contains macro parameters if any.  Preserve backslash
70171 # newline sequences.
70172
70173 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
70174 sed -n '
70175 s/.\{148\}/&'"$ac_delim"'/g
70176 t rset
70177 :rset
70178 s/^[     ]*#[    ]*define[       ][      ]*/ /
70179 t def
70180 d
70181 :def
70182 s/\\$//
70183 t bsnl
70184 s/["\\]/\\&/g
70185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
70186 D["\1"]=" \3"/p
70187 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
70188 d
70189 :bsnl
70190 s/["\\]/\\&/g
70191 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
70192 D["\1"]=" \3\\\\\\n"\\/p
70193 t cont
70194 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
70195 t cont
70196 d
70197 :cont
70198 n
70199 s/.\{148\}/&'"$ac_delim"'/g
70200 t clear
70201 :clear
70202 s/\\$//
70203 t bsnlc
70204 s/["\\]/\\&/g; s/^/"/; s/$/"/p
70205 d
70206 :bsnlc
70207 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
70208 b cont
70209 ' <confdefs.h | sed '
70210 s/'"$ac_delim"'/"\\\
70211 "/g' >>$CONFIG_STATUS || ac_write_fail=1
70212
70213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70214   for (key in D) D_is_set[key] = 1
70215   FS = "\a"
70216 }
70217 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
70218   line = \$ 0
70219   split(line, arg, " ")
70220   if (arg[1] == "#") {
70221     defundef = arg[2]
70222     mac1 = arg[3]
70223   } else {
70224     defundef = substr(arg[1], 2)
70225     mac1 = arg[2]
70226   }
70227   split(mac1, mac2, "(") #)
70228   macro = mac2[1]
70229   prefix = substr(line, 1, index(line, defundef) - 1)
70230   if (D_is_set[macro]) {
70231     # Preserve the white space surrounding the "#".
70232     print prefix "define", macro P[macro] D[macro]
70233     next
70234   } else {
70235     # Replace #undef with comments.  This is necessary, for example,
70236     # in the case of _POSIX_SOURCE, which is predefined and required
70237     # on some systems where configure will not decide to define it.
70238     if (defundef == "undef") {
70239       print "/*", prefix defundef, macro, "*/"
70240       next
70241     }
70242   }
70243 }
70244 { print }
70245 _ACAWK
70246 _ACEOF
70247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70248   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
70249 fi # test -n "$CONFIG_HEADERS"
70250
70251
70252 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
70253 shift
70254 for ac_tag
70255 do
70256   case $ac_tag in
70257   :[FHLC]) ac_mode=$ac_tag; continue;;
70258   esac
70259   case $ac_mode$ac_tag in
70260   :[FHL]*:*);;
70261   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
70262   :[FH]-) ac_tag=-:-;;
70263   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
70264   esac
70265   ac_save_IFS=$IFS
70266   IFS=:
70267   set x $ac_tag
70268   IFS=$ac_save_IFS
70269   shift
70270   ac_file=$1
70271   shift
70272
70273   case $ac_mode in
70274   :L) ac_source=$1;;
70275   :[FH])
70276     ac_file_inputs=
70277     for ac_f
70278     do
70279       case $ac_f in
70280       -) ac_f="$ac_tmp/stdin";;
70281       *) # Look for the file first in the build tree, then in the source tree
70282          # (if the path is not absolute).  The absolute path cannot be DOS-style,
70283          # because $ac_f cannot contain `:'.
70284          test -f "$ac_f" ||
70285            case $ac_f in
70286            [\\/$]*) false;;
70287            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
70288            esac ||
70289            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
70290       esac
70291       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
70292       as_fn_append ac_file_inputs " '$ac_f'"
70293     done
70294
70295     # Let's still pretend it is `configure' which instantiates (i.e., don't
70296     # use $as_me), people would be surprised to read:
70297     #    /* config.h.  Generated by config.status.  */
70298     configure_input='Generated from '`
70299           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
70300         `' by configure.'
70301     if test x"$ac_file" != x-; then
70302       configure_input="$ac_file.  $configure_input"
70303       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
70304 $as_echo "$as_me: creating $ac_file" >&6;}
70305     fi
70306     # Neutralize special characters interpreted by sed in replacement strings.
70307     case $configure_input in #(
70308     *\&* | *\|* | *\\* )
70309        ac_sed_conf_input=`$as_echo "$configure_input" |
70310        sed 's/[\\\\&|]/\\\\&/g'`;; #(
70311     *) ac_sed_conf_input=$configure_input;;
70312     esac
70313
70314     case $ac_tag in
70315     *:-:* | *:-) cat >"$ac_tmp/stdin" \
70316       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
70317     esac
70318     ;;
70319   esac
70320
70321   ac_dir=`$as_dirname -- "$ac_file" ||
70322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70323          X"$ac_file" : 'X\(//\)[^/]' \| \
70324          X"$ac_file" : 'X\(//\)$' \| \
70325          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
70326 $as_echo X"$ac_file" |
70327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70328             s//\1/
70329             q
70330           }
70331           /^X\(\/\/\)[^/].*/{
70332             s//\1/
70333             q
70334           }
70335           /^X\(\/\/\)$/{
70336             s//\1/
70337             q
70338           }
70339           /^X\(\/\).*/{
70340             s//\1/
70341             q
70342           }
70343           s/.*/./; q'`
70344   as_dir="$ac_dir"; as_fn_mkdir_p
70345   ac_builddir=.
70346
70347 case "$ac_dir" in
70348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
70349 *)
70350   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
70351   # A ".." for each directory in $ac_dir_suffix.
70352   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
70353   case $ac_top_builddir_sub in
70354   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
70355   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
70356   esac ;;
70357 esac
70358 ac_abs_top_builddir=$ac_pwd
70359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
70360 # for backward compatibility:
70361 ac_top_builddir=$ac_top_build_prefix
70362
70363 case $srcdir in
70364   .)  # We are building in place.
70365     ac_srcdir=.
70366     ac_top_srcdir=$ac_top_builddir_sub
70367     ac_abs_top_srcdir=$ac_pwd ;;
70368   [\\/]* | ?:[\\/]* )  # Absolute name.
70369     ac_srcdir=$srcdir$ac_dir_suffix;
70370     ac_top_srcdir=$srcdir
70371     ac_abs_top_srcdir=$srcdir ;;
70372   *) # Relative name.
70373     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
70374     ac_top_srcdir=$ac_top_build_prefix$srcdir
70375     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
70376 esac
70377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
70378
70379
70380   case $ac_mode in
70381   :F)
70382   #
70383   # CONFIG_FILE
70384   #
70385
70386   case $INSTALL in
70387   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
70388   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
70389   esac
70390   ac_MKDIR_P=$MKDIR_P
70391   case $MKDIR_P in
70392   [\\/$]* | ?:[\\/]* ) ;;
70393   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
70394   esac
70395 _ACEOF
70396
70397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70398 # If the template does not know about datarootdir, expand it.
70399 # FIXME: This hack should be removed a few years after 2.60.
70400 ac_datarootdir_hack=; ac_datarootdir_seen=
70401 ac_sed_dataroot='
70402 /datarootdir/ {
70403   p
70404   q
70405 }
70406 /@datadir@/p
70407 /@docdir@/p
70408 /@infodir@/p
70409 /@localedir@/p
70410 /@mandir@/p'
70411 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
70412 *datarootdir*) ac_datarootdir_seen=yes;;
70413 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
70414   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
70415 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
70416 _ACEOF
70417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70418   ac_datarootdir_hack='
70419   s&@datadir@&$datadir&g
70420   s&@docdir@&$docdir&g
70421   s&@infodir@&$infodir&g
70422   s&@localedir@&$localedir&g
70423   s&@mandir@&$mandir&g
70424   s&\\\${datarootdir}&$datarootdir&g' ;;
70425 esac
70426 _ACEOF
70427
70428 # Neutralize VPATH when `$srcdir' = `.'.
70429 # Shell code in configure.ac might set extrasub.
70430 # FIXME: do we really want to maintain this feature?
70431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70432 ac_sed_extra="$ac_vpsub
70433 $extrasub
70434 _ACEOF
70435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70436 :t
70437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
70438 s|@configure_input@|$ac_sed_conf_input|;t t
70439 s&@top_builddir@&$ac_top_builddir_sub&;t t
70440 s&@top_build_prefix@&$ac_top_build_prefix&;t t
70441 s&@srcdir@&$ac_srcdir&;t t
70442 s&@abs_srcdir@&$ac_abs_srcdir&;t t
70443 s&@top_srcdir@&$ac_top_srcdir&;t t
70444 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
70445 s&@builddir@&$ac_builddir&;t t
70446 s&@abs_builddir@&$ac_abs_builddir&;t t
70447 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
70448 s&@INSTALL@&$ac_INSTALL&;t t
70449 s&@MKDIR_P@&$ac_MKDIR_P&;t t
70450 $ac_datarootdir_hack
70451 "
70452 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
70453 if $ac_cs_awk_getline; then
70454   $AWK -f "$ac_tmp/subs.awk"
70455 else
70456   $AWK -f "$ac_tmp/subs.awk" | $SHELL
70457 fi \
70458   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
70459
70460 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
70461   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
70462   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
70463       "$ac_tmp/out"`; test -z "$ac_out"; } &&
70464   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
70465 which seems to be undefined.  Please make sure it is defined" >&5
70466 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
70467 which seems to be undefined.  Please make sure it is defined" >&2;}
70468
70469   rm -f "$ac_tmp/stdin"
70470   case $ac_file in
70471   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
70472   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
70473   esac \
70474   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
70475  ;;
70476   :H)
70477   #
70478   # CONFIG_HEADER
70479   #
70480   if test x"$ac_file" != x-; then
70481     {
70482       $as_echo "/* $configure_input  */" \
70483       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
70484     } >"$ac_tmp/config.h" \
70485       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
70486     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
70487       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
70488 $as_echo "$as_me: $ac_file is unchanged" >&6;}
70489     else
70490       rm -f "$ac_file"
70491       mv "$ac_tmp/config.h" "$ac_file" \
70492         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
70493     fi
70494   else
70495     $as_echo "/* $configure_input  */" \
70496       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
70497       || as_fn_error $? "could not create -" "$LINENO" 5
70498   fi
70499 # Compute "$ac_file"'s index in $config_headers.
70500 _am_arg="$ac_file"
70501 _am_stamp_count=1
70502 for _am_header in $config_headers :; do
70503   case $_am_header in
70504     $_am_arg | $_am_arg:* )
70505       break ;;
70506     * )
70507       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
70508   esac
70509 done
70510 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
70511 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70512          X"$_am_arg" : 'X\(//\)[^/]' \| \
70513          X"$_am_arg" : 'X\(//\)$' \| \
70514          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
70515 $as_echo X"$_am_arg" |
70516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70517             s//\1/
70518             q
70519           }
70520           /^X\(\/\/\)[^/].*/{
70521             s//\1/
70522             q
70523           }
70524           /^X\(\/\/\)$/{
70525             s//\1/
70526             q
70527           }
70528           /^X\(\/\).*/{
70529             s//\1/
70530             q
70531           }
70532           s/.*/./; q'`/stamp-h$_am_stamp_count
70533  ;;
70534
70535   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
70536 $as_echo "$as_me: executing $ac_file commands" >&6;}
70537  ;;
70538   esac
70539
70540
70541   case $ac_file$ac_mode in
70542     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
70543   # Older Autoconf quotes --file arguments for eval, but not when files
70544   # are listed without --file.  Let's play safe and only enable the eval
70545   # if we detect the quoting.
70546   case $CONFIG_FILES in
70547   *\'*) eval set x "$CONFIG_FILES" ;;
70548   *)   set x $CONFIG_FILES ;;
70549   esac
70550   shift
70551   for mf
70552   do
70553     # Strip MF so we end up with the name of the file.
70554     mf=`echo "$mf" | sed -e 's/:.*$//'`
70555     # Check whether this is an Automake generated Makefile or not.
70556     # We used to match only the files named 'Makefile.in', but
70557     # some people rename them; so instead we look at the file content.
70558     # Grep'ing the first line is not enough: some people post-process
70559     # each Makefile.in and add a new line on top of each file to say so.
70560     # Grep'ing the whole file is not good either: AIX grep has a line
70561     # limit of 2048, but all sed's we know have understand at least 4000.
70562     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
70563       dirpart=`$as_dirname -- "$mf" ||
70564 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70565          X"$mf" : 'X\(//\)[^/]' \| \
70566          X"$mf" : 'X\(//\)$' \| \
70567          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
70568 $as_echo X"$mf" |
70569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70570             s//\1/
70571             q
70572           }
70573           /^X\(\/\/\)[^/].*/{
70574             s//\1/
70575             q
70576           }
70577           /^X\(\/\/\)$/{
70578             s//\1/
70579             q
70580           }
70581           /^X\(\/\).*/{
70582             s//\1/
70583             q
70584           }
70585           s/.*/./; q'`
70586     else
70587       continue
70588     fi
70589     # Extract the definition of DEPDIR, am__include, and am__quote
70590     # from the Makefile without running 'make'.
70591     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
70592     test -z "$DEPDIR" && continue
70593     am__include=`sed -n 's/^am__include = //p' < "$mf"`
70594     test -z "$am__include" && continue
70595     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
70596     # Find all dependency output files, they are included files with
70597     # $(DEPDIR) in their names.  We invoke sed twice because it is the
70598     # simplest approach to changing $(DEPDIR) to its actual value in the
70599     # expansion.
70600     for file in `sed -n "
70601       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
70602          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
70603       # Make sure the directory exists.
70604       test -f "$dirpart/$file" && continue
70605       fdir=`$as_dirname -- "$file" ||
70606 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70607          X"$file" : 'X\(//\)[^/]' \| \
70608          X"$file" : 'X\(//\)$' \| \
70609          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
70610 $as_echo X"$file" |
70611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70612             s//\1/
70613             q
70614           }
70615           /^X\(\/\/\)[^/].*/{
70616             s//\1/
70617             q
70618           }
70619           /^X\(\/\/\)$/{
70620             s//\1/
70621             q
70622           }
70623           /^X\(\/\).*/{
70624             s//\1/
70625             q
70626           }
70627           s/.*/./; q'`
70628       as_dir=$dirpart/$fdir; as_fn_mkdir_p
70629       # echo "creating $dirpart/$file"
70630       echo '# dummy' > "$dirpart/$file"
70631     done
70632   done
70633 }
70634  ;;
70635     "libtool":C)
70636
70637     # See if we are running on zsh, and set the options which allow our
70638     # commands through without removal of \ escapes.
70639     if test -n "${ZSH_VERSION+set}" ; then
70640       setopt NO_GLOB_SUBST
70641     fi
70642
70643     cfgfile="${ofile}T"
70644     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
70645     $RM "$cfgfile"
70646
70647     cat <<_LT_EOF >> "$cfgfile"
70648 #! $SHELL
70649
70650 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
70651 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
70652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
70653 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
70654 #
70655 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
70656 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
70657 #                 Foundation, Inc.
70658 #   Written by Gordon Matzigkeit, 1996
70659 #
70660 #   This file is part of GNU Libtool.
70661 #
70662 # GNU Libtool is free software; you can redistribute it and/or
70663 # modify it under the terms of the GNU General Public License as
70664 # published by the Free Software Foundation; either version 2 of
70665 # the License, or (at your option) any later version.
70666 #
70667 # As a special exception to the GNU General Public License,
70668 # if you distribute this file as part of a program or library that
70669 # is built using GNU Libtool, you may include this file under the
70670 # same distribution terms that you use for the rest of that program.
70671 #
70672 # GNU Libtool is distributed in the hope that it will be useful,
70673 # but WITHOUT ANY WARRANTY; without even the implied warranty of
70674 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
70675 # GNU General Public License for more details.
70676 #
70677 # You should have received a copy of the GNU General Public License
70678 # along with GNU Libtool; see the file COPYING.  If not, a copy
70679 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
70680 # obtained by writing to the Free Software Foundation, Inc.,
70681 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
70682
70683
70684 # The names of the tagged configurations supported by this script.
70685 available_tags="RC CXX "
70686
70687 # ### BEGIN LIBTOOL CONFIG
70688
70689 # Which release of libtool.m4 was used?
70690 macro_version=$macro_version
70691 macro_revision=$macro_revision
70692
70693 # Assembler program.
70694 AS=$lt_AS
70695
70696 # DLL creation program.
70697 DLLTOOL=$lt_DLLTOOL
70698
70699 # Object dumper program.
70700 OBJDUMP=$lt_OBJDUMP
70701
70702 # Whether or not to build shared libraries.
70703 build_libtool_libs=$enable_shared
70704
70705 # Whether or not to build static libraries.
70706 build_old_libs=$enable_static
70707
70708 # What type of objects to build.
70709 pic_mode=$pic_mode
70710
70711 # Whether or not to optimize for fast installation.
70712 fast_install=$enable_fast_install
70713
70714 # Shell to use when invoking shell scripts.
70715 SHELL=$lt_SHELL
70716
70717 # An echo program that protects backslashes.
70718 ECHO=$lt_ECHO
70719
70720 # The PATH separator for the build system.
70721 PATH_SEPARATOR=$lt_PATH_SEPARATOR
70722
70723 # The host system.
70724 host_alias=$host_alias
70725 host=$host
70726 host_os=$host_os
70727
70728 # The build system.
70729 build_alias=$build_alias
70730 build=$build
70731 build_os=$build_os
70732
70733 # A sed program that does not truncate output.
70734 SED=$lt_SED
70735
70736 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
70737 Xsed="\$SED -e 1s/^X//"
70738
70739 # A grep program that handles long lines.
70740 GREP=$lt_GREP
70741
70742 # An ERE matcher.
70743 EGREP=$lt_EGREP
70744
70745 # A literal string matcher.
70746 FGREP=$lt_FGREP
70747
70748 # A BSD- or MS-compatible name lister.
70749 NM=$lt_NM
70750
70751 # Whether we need soft or hard links.
70752 LN_S=$lt_LN_S
70753
70754 # What is the maximum length of a command?
70755 max_cmd_len=$max_cmd_len
70756
70757 # Object file suffix (normally "o").
70758 objext=$ac_objext
70759
70760 # Executable file suffix (normally "").
70761 exeext=$exeext
70762
70763 # whether the shell understands "unset".
70764 lt_unset=$lt_unset
70765
70766 # turn spaces into newlines.
70767 SP2NL=$lt_lt_SP2NL
70768
70769 # turn newlines into spaces.
70770 NL2SP=$lt_lt_NL2SP
70771
70772 # convert \$build file names to \$host format.
70773 to_host_file_cmd=$lt_cv_to_host_file_cmd
70774
70775 # convert \$build files to toolchain format.
70776 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
70777
70778 # Method to check whether dependent libraries are shared objects.
70779 deplibs_check_method=$lt_deplibs_check_method
70780
70781 # Command to use when deplibs_check_method = "file_magic".
70782 file_magic_cmd=$lt_file_magic_cmd
70783
70784 # How to find potential files when deplibs_check_method = "file_magic".
70785 file_magic_glob=$lt_file_magic_glob
70786
70787 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
70788 want_nocaseglob=$lt_want_nocaseglob
70789
70790 # Command to associate shared and link libraries.
70791 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
70792
70793 # The archiver.
70794 AR=$lt_AR
70795
70796 # Flags to create an archive.
70797 AR_FLAGS=$lt_AR_FLAGS
70798
70799 # How to feed a file listing to the archiver.
70800 archiver_list_spec=$lt_archiver_list_spec
70801
70802 # A symbol stripping program.
70803 STRIP=$lt_STRIP
70804
70805 # Commands used to install an old-style archive.
70806 RANLIB=$lt_RANLIB
70807 old_postinstall_cmds=$lt_old_postinstall_cmds
70808 old_postuninstall_cmds=$lt_old_postuninstall_cmds
70809
70810 # Whether to use a lock for old archive extraction.
70811 lock_old_archive_extraction=$lock_old_archive_extraction
70812
70813 # A C compiler.
70814 LTCC=$lt_CC
70815
70816 # LTCC compiler flags.
70817 LTCFLAGS=$lt_CFLAGS
70818
70819 # Take the output of nm and produce a listing of raw symbols and C names.
70820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
70821
70822 # Transform the output of nm in a proper C declaration.
70823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
70824
70825 # Transform the output of nm in a C name address pair.
70826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
70827
70828 # Transform the output of nm in a C name address pair when lib prefix is needed.
70829 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
70830
70831 # Specify filename containing input files for \$NM.
70832 nm_file_list_spec=$lt_nm_file_list_spec
70833
70834 # The root where to search for dependent libraries,and in which our libraries should be installed.
70835 lt_sysroot=$lt_sysroot
70836
70837 # The name of the directory that contains temporary libtool files.
70838 objdir=$objdir
70839
70840 # Used to examine libraries when file_magic_cmd begins with "file".
70841 MAGIC_CMD=$MAGIC_CMD
70842
70843 # Must we lock files when doing compilation?
70844 need_locks=$lt_need_locks
70845
70846 # Manifest tool.
70847 MANIFEST_TOOL=$lt_MANIFEST_TOOL
70848
70849 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
70850 DSYMUTIL=$lt_DSYMUTIL
70851
70852 # Tool to change global to local symbols on Mac OS X.
70853 NMEDIT=$lt_NMEDIT
70854
70855 # Tool to manipulate fat objects and archives on Mac OS X.
70856 LIPO=$lt_LIPO
70857
70858 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
70859 OTOOL=$lt_OTOOL
70860
70861 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
70862 OTOOL64=$lt_OTOOL64
70863
70864 # Old archive suffix (normally "a").
70865 libext=$libext
70866
70867 # Shared library suffix (normally ".so").
70868 shrext_cmds=$lt_shrext_cmds
70869
70870 # The commands to extract the exported symbol list from a shared archive.
70871 extract_expsyms_cmds=$lt_extract_expsyms_cmds
70872
70873 # Variables whose values should be saved in libtool wrapper scripts and
70874 # restored at link time.
70875 variables_saved_for_relink=$lt_variables_saved_for_relink
70876
70877 # Do we need the "lib" prefix for modules?
70878 need_lib_prefix=$need_lib_prefix
70879
70880 # Do we need a version for libraries?
70881 need_version=$need_version
70882
70883 # Library versioning type.
70884 version_type=$version_type
70885
70886 # Shared library runtime path variable.
70887 runpath_var=$runpath_var
70888
70889 # Shared library path variable.
70890 shlibpath_var=$shlibpath_var
70891
70892 # Is shlibpath searched before the hard-coded library search path?
70893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
70894
70895 # Format of library name prefix.
70896 libname_spec=$lt_libname_spec
70897
70898 # List of archive names.  First name is the real one, the rest are links.
70899 # The last name is the one that the linker finds with -lNAME
70900 library_names_spec=$lt_library_names_spec
70901
70902 # The coded name of the library, if different from the real name.
70903 soname_spec=$lt_soname_spec
70904
70905 # Permission mode override for installation of shared libraries.
70906 install_override_mode=$lt_install_override_mode
70907
70908 # Command to use after installation of a shared archive.
70909 postinstall_cmds=$lt_postinstall_cmds
70910
70911 # Command to use after uninstallation of a shared archive.
70912 postuninstall_cmds=$lt_postuninstall_cmds
70913
70914 # Commands used to finish a libtool library installation in a directory.
70915 finish_cmds=$lt_finish_cmds
70916
70917 # As "finish_cmds", except a single script fragment to be evaled but
70918 # not shown.
70919 finish_eval=$lt_finish_eval
70920
70921 # Whether we should hardcode library paths into libraries.
70922 hardcode_into_libs=$hardcode_into_libs
70923
70924 # Compile-time system search path for libraries.
70925 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
70926
70927 # Run-time system search path for libraries.
70928 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
70929
70930 # Whether dlopen is supported.
70931 dlopen_support=$enable_dlopen
70932
70933 # Whether dlopen of programs is supported.
70934 dlopen_self=$enable_dlopen_self
70935
70936 # Whether dlopen of statically linked programs is supported.
70937 dlopen_self_static=$enable_dlopen_self_static
70938
70939 # Commands to strip libraries.
70940 old_striplib=$lt_old_striplib
70941 striplib=$lt_striplib
70942
70943
70944 # The linker used to build libraries.
70945 LD=$lt_LD
70946
70947 # How to create reloadable object files.
70948 reload_flag=$lt_reload_flag
70949 reload_cmds=$lt_reload_cmds
70950
70951 # Commands used to build an old-style archive.
70952 old_archive_cmds=$lt_old_archive_cmds
70953
70954 # A language specific compiler.
70955 CC=$lt_compiler
70956
70957 # Is the compiler the GNU compiler?
70958 with_gcc=$GCC
70959
70960 # Compiler flag to turn off builtin functions.
70961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
70962
70963 # Additional compiler flags for building library objects.
70964 pic_flag=$lt_lt_prog_compiler_pic
70965
70966 # How to pass a linker flag through the compiler.
70967 wl=$lt_lt_prog_compiler_wl
70968
70969 # Compiler flag to prevent dynamic linking.
70970 link_static_flag=$lt_lt_prog_compiler_static
70971
70972 # Does compiler simultaneously support -c and -o options?
70973 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
70974
70975 # Whether or not to add -lc for building shared libraries.
70976 build_libtool_need_lc=$archive_cmds_need_lc
70977
70978 # Whether or not to disallow shared libs when runtime libs are static.
70979 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
70980
70981 # Compiler flag to allow reflexive dlopens.
70982 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
70983
70984 # Compiler flag to generate shared objects directly from archives.
70985 whole_archive_flag_spec=$lt_whole_archive_flag_spec
70986
70987 # Whether the compiler copes with passing no objects directly.
70988 compiler_needs_object=$lt_compiler_needs_object
70989
70990 # Create an old-style archive from a shared archive.
70991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
70992
70993 # Create a temporary old-style archive to link instead of a shared archive.
70994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
70995
70996 # Commands used to build a shared archive.
70997 archive_cmds=$lt_archive_cmds
70998 archive_expsym_cmds=$lt_archive_expsym_cmds
70999
71000 # Commands used to build a loadable module if different from building
71001 # a shared archive.
71002 module_cmds=$lt_module_cmds
71003 module_expsym_cmds=$lt_module_expsym_cmds
71004
71005 # Whether we are building with GNU ld or not.
71006 with_gnu_ld=$lt_with_gnu_ld
71007
71008 # Flag that allows shared libraries with undefined symbols to be built.
71009 allow_undefined_flag=$lt_allow_undefined_flag
71010
71011 # Flag that enforces no undefined symbols.
71012 no_undefined_flag=$lt_no_undefined_flag
71013
71014 # Flag to hardcode \$libdir into a binary during linking.
71015 # This must work even if \$libdir does not exist
71016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
71017
71018 # Whether we need a single "-rpath" flag with a separated argument.
71019 hardcode_libdir_separator=$lt_hardcode_libdir_separator
71020
71021 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
71022 # DIR into the resulting binary.
71023 hardcode_direct=$hardcode_direct
71024
71025 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
71026 # DIR into the resulting binary and the resulting library dependency is
71027 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
71028 # library is relocated.
71029 hardcode_direct_absolute=$hardcode_direct_absolute
71030
71031 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
71032 # into the resulting binary.
71033 hardcode_minus_L=$hardcode_minus_L
71034
71035 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
71036 # into the resulting binary.
71037 hardcode_shlibpath_var=$hardcode_shlibpath_var
71038
71039 # Set to "yes" if building a shared library automatically hardcodes DIR
71040 # into the library and all subsequent libraries and executables linked
71041 # against it.
71042 hardcode_automatic=$hardcode_automatic
71043
71044 # Set to yes if linker adds runtime paths of dependent libraries
71045 # to runtime path list.
71046 inherit_rpath=$inherit_rpath
71047
71048 # Whether libtool must link a program against all its dependency libraries.
71049 link_all_deplibs=$link_all_deplibs
71050
71051 # Set to "yes" if exported symbols are required.
71052 always_export_symbols=$always_export_symbols
71053
71054 # The commands to list exported symbols.
71055 export_symbols_cmds=$lt_export_symbols_cmds
71056
71057 # Symbols that should not be listed in the preloaded symbols.
71058 exclude_expsyms=$lt_exclude_expsyms
71059
71060 # Symbols that must always be exported.
71061 include_expsyms=$lt_include_expsyms
71062
71063 # Commands necessary for linking programs (against libraries) with templates.
71064 prelink_cmds=$lt_prelink_cmds
71065
71066 # Commands necessary for finishing linking programs.
71067 postlink_cmds=$lt_postlink_cmds
71068
71069 # Specify filename containing input files.
71070 file_list_spec=$lt_file_list_spec
71071
71072 # How to hardcode a shared library path into an executable.
71073 hardcode_action=$hardcode_action
71074
71075 # The directories searched by this compiler when creating a shared library.
71076 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
71077
71078 # Dependencies to place before and after the objects being linked to
71079 # create a shared library.
71080 predep_objects=$lt_predep_objects
71081 postdep_objects=$lt_postdep_objects
71082 predeps=$lt_predeps
71083 postdeps=$lt_postdeps
71084
71085 # The library search path used internally by the compiler when linking
71086 # a shared library.
71087 compiler_lib_search_path=$lt_compiler_lib_search_path
71088
71089 # ### END LIBTOOL CONFIG
71090
71091 _LT_EOF
71092
71093   case $host_os in
71094   aix3*)
71095     cat <<\_LT_EOF >> "$cfgfile"
71096 # AIX sometimes has problems with the GCC collect2 program.  For some
71097 # reason, if we set the COLLECT_NAMES environment variable, the problems
71098 # vanish in a puff of smoke.
71099 if test "X${COLLECT_NAMES+set}" != Xset; then
71100   COLLECT_NAMES=
71101   export COLLECT_NAMES
71102 fi
71103 _LT_EOF
71104     ;;
71105   esac
71106
71107
71108 ltmain="$ac_aux_dir/ltmain.sh"
71109
71110
71111   # We use sed instead of cat because bash on DJGPP gets confused if
71112   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
71113   # text mode, it properly converts lines to CR/LF.  This bash problem
71114   # is reportedly fixed, but why not run on old versions too?
71115   sed '$q' "$ltmain" >> "$cfgfile" \
71116      || (rm -f "$cfgfile"; exit 1)
71117
71118   if test x"$xsi_shell" = xyes; then
71119   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
71120 func_dirname ()\
71121 {\
71122 \    case ${1} in\
71123 \      */*) func_dirname_result="${1%/*}${2}" ;;\
71124 \      *  ) func_dirname_result="${3}" ;;\
71125 \    esac\
71126 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
71127   && mv -f "$cfgfile.tmp" "$cfgfile" \
71128     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71129 test 0 -eq $? || _lt_function_replace_fail=:
71130
71131
71132   sed -e '/^func_basename ()$/,/^} # func_basename /c\
71133 func_basename ()\
71134 {\
71135 \    func_basename_result="${1##*/}"\
71136 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
71137   && mv -f "$cfgfile.tmp" "$cfgfile" \
71138     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71139 test 0 -eq $? || _lt_function_replace_fail=:
71140
71141
71142   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
71143 func_dirname_and_basename ()\
71144 {\
71145 \    case ${1} in\
71146 \      */*) func_dirname_result="${1%/*}${2}" ;;\
71147 \      *  ) func_dirname_result="${3}" ;;\
71148 \    esac\
71149 \    func_basename_result="${1##*/}"\
71150 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
71151   && mv -f "$cfgfile.tmp" "$cfgfile" \
71152     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71153 test 0 -eq $? || _lt_function_replace_fail=:
71154
71155
71156   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
71157 func_stripname ()\
71158 {\
71159 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
71160 \    # positional parameters, so assign one to ordinary parameter first.\
71161 \    func_stripname_result=${3}\
71162 \    func_stripname_result=${func_stripname_result#"${1}"}\
71163 \    func_stripname_result=${func_stripname_result%"${2}"}\
71164 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
71165   && mv -f "$cfgfile.tmp" "$cfgfile" \
71166     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71167 test 0 -eq $? || _lt_function_replace_fail=:
71168
71169
71170   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
71171 func_split_long_opt ()\
71172 {\
71173 \    func_split_long_opt_name=${1%%=*}\
71174 \    func_split_long_opt_arg=${1#*=}\
71175 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
71176   && mv -f "$cfgfile.tmp" "$cfgfile" \
71177     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71178 test 0 -eq $? || _lt_function_replace_fail=:
71179
71180
71181   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
71182 func_split_short_opt ()\
71183 {\
71184 \    func_split_short_opt_arg=${1#??}\
71185 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
71186 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
71187   && mv -f "$cfgfile.tmp" "$cfgfile" \
71188     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71189 test 0 -eq $? || _lt_function_replace_fail=:
71190
71191
71192   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
71193 func_lo2o ()\
71194 {\
71195 \    case ${1} in\
71196 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
71197 \      *)    func_lo2o_result=${1} ;;\
71198 \    esac\
71199 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
71200   && mv -f "$cfgfile.tmp" "$cfgfile" \
71201     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71202 test 0 -eq $? || _lt_function_replace_fail=:
71203
71204
71205   sed -e '/^func_xform ()$/,/^} # func_xform /c\
71206 func_xform ()\
71207 {\
71208     func_xform_result=${1%.*}.lo\
71209 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
71210   && mv -f "$cfgfile.tmp" "$cfgfile" \
71211     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71212 test 0 -eq $? || _lt_function_replace_fail=:
71213
71214
71215   sed -e '/^func_arith ()$/,/^} # func_arith /c\
71216 func_arith ()\
71217 {\
71218     func_arith_result=$(( $* ))\
71219 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
71220   && mv -f "$cfgfile.tmp" "$cfgfile" \
71221     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71222 test 0 -eq $? || _lt_function_replace_fail=:
71223
71224
71225   sed -e '/^func_len ()$/,/^} # func_len /c\
71226 func_len ()\
71227 {\
71228     func_len_result=${#1}\
71229 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
71230   && mv -f "$cfgfile.tmp" "$cfgfile" \
71231     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71232 test 0 -eq $? || _lt_function_replace_fail=:
71233
71234 fi
71235
71236 if test x"$lt_shell_append" = xyes; then
71237   sed -e '/^func_append ()$/,/^} # func_append /c\
71238 func_append ()\
71239 {\
71240     eval "${1}+=\\${2}"\
71241 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
71242   && mv -f "$cfgfile.tmp" "$cfgfile" \
71243     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71244 test 0 -eq $? || _lt_function_replace_fail=:
71245
71246
71247   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
71248 func_append_quoted ()\
71249 {\
71250 \    func_quote_for_eval "${2}"\
71251 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
71252 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
71253   && mv -f "$cfgfile.tmp" "$cfgfile" \
71254     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71255 test 0 -eq $? || _lt_function_replace_fail=:
71256
71257
71258   # Save a `func_append' function call where possible by direct use of '+='
71259   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
71260     && mv -f "$cfgfile.tmp" "$cfgfile" \
71261       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71262   test 0 -eq $? || _lt_function_replace_fail=:
71263 else
71264   # Save a `func_append' function call even when '+=' is not available
71265   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
71266     && mv -f "$cfgfile.tmp" "$cfgfile" \
71267       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
71268   test 0 -eq $? || _lt_function_replace_fail=:
71269 fi
71270
71271 if test x"$_lt_function_replace_fail" = x":"; then
71272   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
71273 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
71274 fi
71275
71276
71277    mv -f "$cfgfile" "$ofile" ||
71278     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
71279   chmod +x "$ofile"
71280
71281
71282     cat <<_LT_EOF >> "$ofile"
71283
71284 # ### BEGIN LIBTOOL TAG CONFIG: RC
71285
71286 # The linker used to build libraries.
71287 LD=$lt_LD_RC
71288
71289 # How to create reloadable object files.
71290 reload_flag=$lt_reload_flag_RC
71291 reload_cmds=$lt_reload_cmds_RC
71292
71293 # Commands used to build an old-style archive.
71294 old_archive_cmds=$lt_old_archive_cmds_RC
71295
71296 # A language specific compiler.
71297 CC=$lt_compiler_RC
71298
71299 # Is the compiler the GNU compiler?
71300 with_gcc=$GCC_RC
71301
71302 # Compiler flag to turn off builtin functions.
71303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
71304
71305 # Additional compiler flags for building library objects.
71306 pic_flag=$lt_lt_prog_compiler_pic_RC
71307
71308 # How to pass a linker flag through the compiler.
71309 wl=$lt_lt_prog_compiler_wl_RC
71310
71311 # Compiler flag to prevent dynamic linking.
71312 link_static_flag=$lt_lt_prog_compiler_static_RC
71313
71314 # Does compiler simultaneously support -c and -o options?
71315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
71316
71317 # Whether or not to add -lc for building shared libraries.
71318 build_libtool_need_lc=$archive_cmds_need_lc_RC
71319
71320 # Whether or not to disallow shared libs when runtime libs are static.
71321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
71322
71323 # Compiler flag to allow reflexive dlopens.
71324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
71325
71326 # Compiler flag to generate shared objects directly from archives.
71327 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
71328
71329 # Whether the compiler copes with passing no objects directly.
71330 compiler_needs_object=$lt_compiler_needs_object_RC
71331
71332 # Create an old-style archive from a shared archive.
71333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
71334
71335 # Create a temporary old-style archive to link instead of a shared archive.
71336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
71337
71338 # Commands used to build a shared archive.
71339 archive_cmds=$lt_archive_cmds_RC
71340 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
71341
71342 # Commands used to build a loadable module if different from building
71343 # a shared archive.
71344 module_cmds=$lt_module_cmds_RC
71345 module_expsym_cmds=$lt_module_expsym_cmds_RC
71346
71347 # Whether we are building with GNU ld or not.
71348 with_gnu_ld=$lt_with_gnu_ld_RC
71349
71350 # Flag that allows shared libraries with undefined symbols to be built.
71351 allow_undefined_flag=$lt_allow_undefined_flag_RC
71352
71353 # Flag that enforces no undefined symbols.
71354 no_undefined_flag=$lt_no_undefined_flag_RC
71355
71356 # Flag to hardcode \$libdir into a binary during linking.
71357 # This must work even if \$libdir does not exist
71358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
71359
71360 # Whether we need a single "-rpath" flag with a separated argument.
71361 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
71362
71363 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
71364 # DIR into the resulting binary.
71365 hardcode_direct=$hardcode_direct_RC
71366
71367 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
71368 # DIR into the resulting binary and the resulting library dependency is
71369 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
71370 # library is relocated.
71371 hardcode_direct_absolute=$hardcode_direct_absolute_RC
71372
71373 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
71374 # into the resulting binary.
71375 hardcode_minus_L=$hardcode_minus_L_RC
71376
71377 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
71378 # into the resulting binary.
71379 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
71380
71381 # Set to "yes" if building a shared library automatically hardcodes DIR
71382 # into the library and all subsequent libraries and executables linked
71383 # against it.
71384 hardcode_automatic=$hardcode_automatic_RC
71385
71386 # Set to yes if linker adds runtime paths of dependent libraries
71387 # to runtime path list.
71388 inherit_rpath=$inherit_rpath_RC
71389
71390 # Whether libtool must link a program against all its dependency libraries.
71391 link_all_deplibs=$link_all_deplibs_RC
71392
71393 # Set to "yes" if exported symbols are required.
71394 always_export_symbols=$always_export_symbols_RC
71395
71396 # The commands to list exported symbols.
71397 export_symbols_cmds=$lt_export_symbols_cmds_RC
71398
71399 # Symbols that should not be listed in the preloaded symbols.
71400 exclude_expsyms=$lt_exclude_expsyms_RC
71401
71402 # Symbols that must always be exported.
71403 include_expsyms=$lt_include_expsyms_RC
71404
71405 # Commands necessary for linking programs (against libraries) with templates.
71406 prelink_cmds=$lt_prelink_cmds_RC
71407
71408 # Commands necessary for finishing linking programs.
71409 postlink_cmds=$lt_postlink_cmds_RC
71410
71411 # Specify filename containing input files.
71412 file_list_spec=$lt_file_list_spec_RC
71413
71414 # How to hardcode a shared library path into an executable.
71415 hardcode_action=$hardcode_action_RC
71416
71417 # The directories searched by this compiler when creating a shared library.
71418 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
71419
71420 # Dependencies to place before and after the objects being linked to
71421 # create a shared library.
71422 predep_objects=$lt_predep_objects_RC
71423 postdep_objects=$lt_postdep_objects_RC
71424 predeps=$lt_predeps_RC
71425 postdeps=$lt_postdeps_RC
71426
71427 # The library search path used internally by the compiler when linking
71428 # a shared library.
71429 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
71430
71431 # ### END LIBTOOL TAG CONFIG: RC
71432 _LT_EOF
71433
71434
71435     cat <<_LT_EOF >> "$ofile"
71436
71437 # ### BEGIN LIBTOOL TAG CONFIG: CXX
71438
71439 # The linker used to build libraries.
71440 LD=$lt_LD_CXX
71441
71442 # How to create reloadable object files.
71443 reload_flag=$lt_reload_flag_CXX
71444 reload_cmds=$lt_reload_cmds_CXX
71445
71446 # Commands used to build an old-style archive.
71447 old_archive_cmds=$lt_old_archive_cmds_CXX
71448
71449 # A language specific compiler.
71450 CC=$lt_compiler_CXX
71451
71452 # Is the compiler the GNU compiler?
71453 with_gcc=$GCC_CXX
71454
71455 # Compiler flag to turn off builtin functions.
71456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
71457
71458 # Additional compiler flags for building library objects.
71459 pic_flag=$lt_lt_prog_compiler_pic_CXX
71460
71461 # How to pass a linker flag through the compiler.
71462 wl=$lt_lt_prog_compiler_wl_CXX
71463
71464 # Compiler flag to prevent dynamic linking.
71465 link_static_flag=$lt_lt_prog_compiler_static_CXX
71466
71467 # Does compiler simultaneously support -c and -o options?
71468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
71469
71470 # Whether or not to add -lc for building shared libraries.
71471 build_libtool_need_lc=$archive_cmds_need_lc_CXX
71472
71473 # Whether or not to disallow shared libs when runtime libs are static.
71474 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
71475
71476 # Compiler flag to allow reflexive dlopens.
71477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
71478
71479 # Compiler flag to generate shared objects directly from archives.
71480 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
71481
71482 # Whether the compiler copes with passing no objects directly.
71483 compiler_needs_object=$lt_compiler_needs_object_CXX
71484
71485 # Create an old-style archive from a shared archive.
71486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
71487
71488 # Create a temporary old-style archive to link instead of a shared archive.
71489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
71490
71491 # Commands used to build a shared archive.
71492 archive_cmds=$lt_archive_cmds_CXX
71493 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
71494
71495 # Commands used to build a loadable module if different from building
71496 # a shared archive.
71497 module_cmds=$lt_module_cmds_CXX
71498 module_expsym_cmds=$lt_module_expsym_cmds_CXX
71499
71500 # Whether we are building with GNU ld or not.
71501 with_gnu_ld=$lt_with_gnu_ld_CXX
71502
71503 # Flag that allows shared libraries with undefined symbols to be built.
71504 allow_undefined_flag=$lt_allow_undefined_flag_CXX
71505
71506 # Flag that enforces no undefined symbols.
71507 no_undefined_flag=$lt_no_undefined_flag_CXX
71508
71509 # Flag to hardcode \$libdir into a binary during linking.
71510 # This must work even if \$libdir does not exist
71511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
71512
71513 # Whether we need a single "-rpath" flag with a separated argument.
71514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
71515
71516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
71517 # DIR into the resulting binary.
71518 hardcode_direct=$hardcode_direct_CXX
71519
71520 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
71521 # DIR into the resulting binary and the resulting library dependency is
71522 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
71523 # library is relocated.
71524 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
71525
71526 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
71527 # into the resulting binary.
71528 hardcode_minus_L=$hardcode_minus_L_CXX
71529
71530 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
71531 # into the resulting binary.
71532 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
71533
71534 # Set to "yes" if building a shared library automatically hardcodes DIR
71535 # into the library and all subsequent libraries and executables linked
71536 # against it.
71537 hardcode_automatic=$hardcode_automatic_CXX
71538
71539 # Set to yes if linker adds runtime paths of dependent libraries
71540 # to runtime path list.
71541 inherit_rpath=$inherit_rpath_CXX
71542
71543 # Whether libtool must link a program against all its dependency libraries.
71544 link_all_deplibs=$link_all_deplibs_CXX
71545
71546 # Set to "yes" if exported symbols are required.
71547 always_export_symbols=$always_export_symbols_CXX
71548
71549 # The commands to list exported symbols.
71550 export_symbols_cmds=$lt_export_symbols_cmds_CXX
71551
71552 # Symbols that should not be listed in the preloaded symbols.
71553 exclude_expsyms=$lt_exclude_expsyms_CXX
71554
71555 # Symbols that must always be exported.
71556 include_expsyms=$lt_include_expsyms_CXX
71557
71558 # Commands necessary for linking programs (against libraries) with templates.
71559 prelink_cmds=$lt_prelink_cmds_CXX
71560
71561 # Commands necessary for finishing linking programs.
71562 postlink_cmds=$lt_postlink_cmds_CXX
71563
71564 # Specify filename containing input files.
71565 file_list_spec=$lt_file_list_spec_CXX
71566
71567 # How to hardcode a shared library path into an executable.
71568 hardcode_action=$hardcode_action_CXX
71569
71570 # The directories searched by this compiler when creating a shared library.
71571 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
71572
71573 # Dependencies to place before and after the objects being linked to
71574 # create a shared library.
71575 predep_objects=$lt_predep_objects_CXX
71576 postdep_objects=$lt_postdep_objects_CXX
71577 predeps=$lt_predeps_CXX
71578 postdeps=$lt_postdeps_CXX
71579
71580 # The library search path used internally by the compiler when linking
71581 # a shared library.
71582 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
71583
71584 # ### END LIBTOOL TAG CONFIG: CXX
71585 _LT_EOF
71586
71587  ;;
71588     "po-directories":C)
71589     for ac_file in $CONFIG_FILES; do
71590       # Support "outfile[:infile[:infile...]]"
71591       case "$ac_file" in
71592         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
71593       esac
71594       # PO directories have a Makefile.in generated from Makefile.in.in.
71595       case "$ac_file" in */Makefile.in)
71596         # Adjust a relative srcdir.
71597         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
71598         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
71599         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
71600         # In autoconf-2.13 it is called $ac_given_srcdir.
71601         # In autoconf-2.50 it is called $srcdir.
71602         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
71603         case "$ac_given_srcdir" in
71604           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
71605           /*) top_srcdir="$ac_given_srcdir" ;;
71606           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
71607         esac
71608         # Treat a directory as a PO directory if and only if it has a
71609         # POTFILES.in file. This allows packages to have multiple PO
71610         # directories under different names or in different locations.
71611         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
71612           rm -f "$ac_dir/POTFILES"
71613           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
71614           gt_tab=`printf '\t'`
71615           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
71616           POMAKEFILEDEPS="POTFILES.in"
71617           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
71618           # on $ac_dir but don't depend on user-specified configuration
71619           # parameters.
71620           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
71621             # The LINGUAS file contains the set of available languages.
71622             if test -n "$OBSOLETE_ALL_LINGUAS"; then
71623               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
71624             fi
71625             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
71626             # Hide the ALL_LINGUAS assignment from automake < 1.5.
71627             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
71628             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
71629           else
71630             # The set of available languages was given in configure.in.
71631             # Hide the ALL_LINGUAS assignment from automake < 1.5.
71632             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
71633           fi
71634           # Compute POFILES
71635           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
71636           # Compute UPDATEPOFILES
71637           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
71638           # Compute DUMMYPOFILES
71639           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
71640           # Compute GMOFILES
71641           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
71642           case "$ac_given_srcdir" in
71643             .) srcdirpre= ;;
71644             *) srcdirpre='$(srcdir)/' ;;
71645           esac
71646           POFILES=
71647           UPDATEPOFILES=
71648           DUMMYPOFILES=
71649           GMOFILES=
71650           for lang in $ALL_LINGUAS; do
71651             POFILES="$POFILES $srcdirpre$lang.po"
71652             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
71653             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
71654             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
71655           done
71656           # CATALOGS depends on both $ac_dir and the user's LINGUAS
71657           # environment variable.
71658           INST_LINGUAS=
71659           if test -n "$ALL_LINGUAS"; then
71660             for presentlang in $ALL_LINGUAS; do
71661               useit=no
71662               if test "%UNSET%" != "$LINGUAS"; then
71663                 desiredlanguages="$LINGUAS"
71664               else
71665                 desiredlanguages="$ALL_LINGUAS"
71666               fi
71667               for desiredlang in $desiredlanguages; do
71668                 # Use the presentlang catalog if desiredlang is
71669                 #   a. equal to presentlang, or
71670                 #   b. a variant of presentlang (because in this case,
71671                 #      presentlang can be used as a fallback for messages
71672                 #      which are not translated in the desiredlang catalog).
71673                 case "$desiredlang" in
71674                   "$presentlang"*) useit=yes;;
71675                 esac
71676               done
71677               if test $useit = yes; then
71678                 INST_LINGUAS="$INST_LINGUAS $presentlang"
71679               fi
71680             done
71681           fi
71682           CATALOGS=
71683           if test -n "$INST_LINGUAS"; then
71684             for lang in $INST_LINGUAS; do
71685               CATALOGS="$CATALOGS $lang.gmo"
71686             done
71687           fi
71688           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
71689           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
71690           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
71691             if test -f "$f"; then
71692               case "$f" in
71693                 *.orig | *.bak | *~) ;;
71694                 *) cat "$f" >> "$ac_dir/Makefile" ;;
71695               esac
71696             fi
71697           done
71698         fi
71699         ;;
71700       esac
71701     done ;;
71702     "intl/Makefile":F)
71703   # Change srcdir variable so that it points to ../gettext-runtime/intl.
71704   sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
71705       -e 's|^VPATH =.*$||' \
71706     < intl/Makefile > intl/Makefile.tmp
71707   mv intl/Makefile.tmp intl/Makefile
71708    ;;
71709     "misc/gettextize":F) chmod a+x misc/gettextize ;;
71710     "misc/autopoint":F) chmod a+x misc/autopoint ;;
71711     "misc/convert-archive":F) chmod a+x misc/convert-archive ;;
71712     "man/Makefile":F)
71713   sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
71714   mv $ac_file.tmp $ac_file
71715  ;;
71716
71717   esac
71718 done # for ac_tag
71719
71720
71721 as_fn_exit 0
71722 _ACEOF
71723 ac_clean_files=$ac_clean_files_save
71724
71725 test $ac_write_fail = 0 ||
71726   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
71727
71728
71729 # configure is writing to config.log, and then calls config.status.
71730 # config.status does its own redirection, appending to config.log.
71731 # Unfortunately, on DOS this fails, as config.log is still kept open
71732 # by configure, so config.status won't be able to write to it; its
71733 # output is simply discarded.  So we exec the FD to /dev/null,
71734 # effectively closing config.log, so it can be properly (re)opened and
71735 # appended to by config.status.  When coming back to configure, we
71736 # need to make the FD available again.
71737 if test "$no_create" != yes; then
71738   ac_cs_success=:
71739   ac_config_status_args=
71740   test "$silent" = yes &&
71741     ac_config_status_args="$ac_config_status_args --quiet"
71742   exec 5>/dev/null
71743   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
71744   exec 5>>config.log
71745   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
71746   # would make configure fail if this is the last instruction.
71747   $ac_cs_success || as_fn_exit 1
71748 fi
71749
71750 #
71751 # CONFIG_SUBDIRS section.
71752 #
71753 if test "$no_recursion" != yes; then
71754
71755   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
71756   # so they do not pile up.
71757   ac_sub_configure_args=
71758   ac_prev=
71759   eval "set x $ac_configure_args"
71760   shift
71761   for ac_arg
71762   do
71763     if test -n "$ac_prev"; then
71764       ac_prev=
71765       continue
71766     fi
71767     case $ac_arg in
71768     -cache-file | --cache-file | --cache-fil | --cache-fi \
71769     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
71770       ac_prev=cache_file ;;
71771     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
71772     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
71773     | --c=*)
71774       ;;
71775     --config-cache | -C)
71776       ;;
71777     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
71778       ac_prev=srcdir ;;
71779     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
71780       ;;
71781     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
71782       ac_prev=prefix ;;
71783     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
71784       ;;
71785     --disable-option-checking)
71786       ;;
71787     *)
71788       case $ac_arg in
71789       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
71790       esac
71791       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
71792     esac
71793   done
71794
71795   # Always prepend --prefix to ensure using the same prefix
71796   # in subdir configurations.
71797   ac_arg="--prefix=$prefix"
71798   case $ac_arg in
71799   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
71800   esac
71801   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
71802
71803   # Pass --silent
71804   if test "$silent" = yes; then
71805     ac_sub_configure_args="--silent $ac_sub_configure_args"
71806   fi
71807
71808   # Always prepend --disable-option-checking to silence warnings, since
71809   # different subdirs can have different --enable and --with options.
71810   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
71811
71812   ac_popdir=`pwd`
71813   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
71814
71815     # Do not complain, so a configure script can configure whichever
71816     # parts of a large source tree are present.
71817     test -d "$srcdir/$ac_dir" || continue
71818
71819     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
71820     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
71821     $as_echo "$ac_msg" >&6
71822     as_dir="$ac_dir"; as_fn_mkdir_p
71823     ac_builddir=.
71824
71825 case "$ac_dir" in
71826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
71827 *)
71828   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
71829   # A ".." for each directory in $ac_dir_suffix.
71830   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
71831   case $ac_top_builddir_sub in
71832   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
71833   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
71834   esac ;;
71835 esac
71836 ac_abs_top_builddir=$ac_pwd
71837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
71838 # for backward compatibility:
71839 ac_top_builddir=$ac_top_build_prefix
71840
71841 case $srcdir in
71842   .)  # We are building in place.
71843     ac_srcdir=.
71844     ac_top_srcdir=$ac_top_builddir_sub
71845     ac_abs_top_srcdir=$ac_pwd ;;
71846   [\\/]* | ?:[\\/]* )  # Absolute name.
71847     ac_srcdir=$srcdir$ac_dir_suffix;
71848     ac_top_srcdir=$srcdir
71849     ac_abs_top_srcdir=$srcdir ;;
71850   *) # Relative name.
71851     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
71852     ac_top_srcdir=$ac_top_build_prefix$srcdir
71853     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
71854 esac
71855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
71856
71857
71858     cd "$ac_dir"
71859
71860     # Check for guested configure; otherwise get Cygnus style configure.
71861     if test -f "$ac_srcdir/configure.gnu"; then
71862       ac_sub_configure=$ac_srcdir/configure.gnu
71863     elif test -f "$ac_srcdir/configure"; then
71864       ac_sub_configure=$ac_srcdir/configure
71865     elif test -f "$ac_srcdir/configure.in"; then
71866       # This should be Cygnus configure.
71867       ac_sub_configure=$ac_aux_dir/configure
71868     else
71869       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
71870 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
71871       ac_sub_configure=
71872     fi
71873
71874     # The recursion is here.
71875     if test -n "$ac_sub_configure"; then
71876       # Make the cache file name correct relative to the subdirectory.
71877       case $cache_file in
71878       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
71879       *) # Relative name.
71880         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
71881       esac
71882
71883       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
71884 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
71885       # The eval makes quoting arguments work.
71886       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
71887            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
71888         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
71889     fi
71890
71891     cd "$ac_popdir"
71892   done
71893 fi
71894 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
71895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
71896 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
71897 fi
71898