5a286a4b611812cc9f1e868927ed8ece151a9888
[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 for gettext-tools 0.19.8.
4 #
5 # Report bugs to <bug-gnu-gettext@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bug-gnu-gettext@gnu.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='gettext-tools'
592 PACKAGE_TARNAME='gettext-tools'
593 PACKAGE_VERSION='0.19.8'
594 PACKAGE_STRING='gettext-tools 0.19.8'
595 PACKAGE_BUGREPORT='bug-gnu-gettext@gnu.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/msgfmt.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gl_use_threads_default=
636 gt_needs=
637 ac_header_list=
638 ac_func_list=
639 gl_fnmatch_required=POSIX
640 gl_getopt_required=POSIX
641 gl_getopt_required=POSIX
642 gl_log10_required=plain
643 enable_option_checking=no
644 ac_subst_vars='gtpotests_LTLIBOBJS
645 gtpotests_LIBOBJS
646 gtpo_LTLIBOBJS
647 gtpo_LIBOBJS
648 grgltests_LTLIBOBJS
649 grgltests_LIBOBJS
650 grgl_LTLIBOBJS
651 grgl_LIBOBJS
652 gltests_LTLIBOBJS
653 gltests_LIBOBJS
654 gl_LTLIBOBJS
655 gl_LIBOBJS
656 am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 subdirs
661 TESTLIBASPRINTF
662 CXXCPP
663 CROSS_COMPILING
664 PERL
665 TEXI2PDF
666 DVIPS
667 PACKAGE_SUFFIX
668 ARCHIVE_VERSION
669 ARCHIVE_FORMAT
670 aclocaldir
671 EMACSLOADPATH
672 EMACS
673 HAVE_GLOBAL_SYMBOL_PIPE
674 GLOBAL_SYMBOL_PIPE
675 GETTEXTLIB_EXPORTS_FLAGS
676 WOE32DLL_FALSE
677 WOE32DLL_TRUE
678 gtpotests_WITNESS
679 LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE
680 LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE
681 LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_FALSE
682 LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_TRUE
683 LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_FALSE
684 LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_TRUE
685 LIBGREP_LTLIBDEPS
686 LIBGREP_LIBDEPS
687 grgltests_WITNESS
688 LIBTESTS_LIBDEPS
689 YIELD_LIB
690 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE
691 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE
692 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE
693 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE
694 GL_GENERATE_STDALIGN_H_FALSE
695 GL_GENERATE_STDALIGN_H_TRUE
696 STDALIGN_H
697 POSIX_SPAWN_PORTED_FALSE
698 POSIX_SPAWN_PORTED_TRUE
699 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
700 NEXT_INTTYPES_H
701 UINT64_MAX_EQ_ULONG_MAX
702 UINT32_MAX_LT_UINTMAX_MAX
703 PRIPTR_PREFIX
704 INT64_MAX_EQ_LONG_MAX
705 INT32_MAX_LT_INTMAX_MAX
706 REPLACE_STRTOUMAX
707 REPLACE_STRTOIMAX
708 HAVE_DECL_STRTOUMAX
709 HAVE_DECL_STRTOIMAX
710 HAVE_DECL_IMAXDIV
711 HAVE_DECL_IMAXABS
712 GNULIB_STRTOUMAX
713 GNULIB_STRTOIMAX
714 GNULIB_IMAXDIV
715 GNULIB_IMAXABS
716 LIB_HAS_ACL
717 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
718 NEXT_CTYPE_H
719 HAVE_ISBLANK
720 GNULIB_ISBLANK
721 LOCALE_TR_UTF8
722 gltests_WITNESS
723 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
724 NEXT_WCHAR_H
725 HAVE_FEATURES_H
726 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
727 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
728 LIBUNISTRING_UNIWIDTH_H
729 LIBUNISTRING_UNITYPES_H
730 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
731 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
732 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE
733 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE
734 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
735 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
736 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE
737 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE
738 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE
739 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE
740 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE
741 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE
742 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE
743 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE
744 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE
745 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE
746 LIBUNISTRING_UNISTR_H
747 HAVE_UNISTD_H
748 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
749 NEXT_UNISTD_H
750 LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE
751 LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE
752 LIBUNISTRING_UNINAME_H
753 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE
754 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE
755 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE
756 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE
757 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE
758 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE
759 LIBUNISTRING_UNILBRK_H
760 LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE
761 LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE
762 LIBUNISTRING_UNICTYPE_H
763 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE
764 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE
765 LIBUNISTRING_UNICONV_H
766 UNISTD_H_DEFINES_STRUCT_TIMESPEC
767 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
768 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
769 TIME_H_DEFINES_STRUCT_TIMESPEC
770 NEXT_AS_FIRST_DIRECTIVE_TIME_H
771 NEXT_TIME_H
772 REPLACE_LOCALTIME
773 REPLACE_GMTIME
774 REPLACE_TIMEGM
775 REPLACE_NANOSLEEP
776 REPLACE_MKTIME
777 REPLACE_LOCALTIME_R
778 HAVE_TIMEGM
779 HAVE_STRPTIME
780 HAVE_NANOSLEEP
781 HAVE_DECL_LOCALTIME_R
782 GNULIB_TIME_RZ
783 GNULIB_TIME_R
784 GNULIB_TIMEGM
785 GNULIB_STRPTIME
786 GNULIB_NANOSLEEP
787 GNULIB_MKTIME
788 INCTERMINFO
789 LTLIBTERMINFO
790 LIBTERMINFO
791 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
792 NEXT_SYS_WAIT_H
793 GNULIB_WAITPID
794 WINDOWS_64_BIT_OFF_T
795 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
796 NEXT_SYS_TYPES_H
797 HAVE_SYS_SELECT_H
798 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
799 NEXT_SYS_SELECT_H
800 REPLACE_SELECT
801 REPLACE_PSELECT
802 HAVE_PSELECT
803 GNULIB_SELECT
804 GNULIB_PSELECT
805 NEXT_AS_FIRST_DIRECTIVE_STRING_H
806 NEXT_STRING_H
807 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
808 NEXT_STDLIB_H
809 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
810 NEXT_STDIO_H
811 GL_GENERATE_STDINT_H_FALSE
812 GL_GENERATE_STDINT_H_TRUE
813 STDINT_H
814 WINT_T_SUFFIX
815 WCHAR_T_SUFFIX
816 SIG_ATOMIC_T_SUFFIX
817 SIZE_T_SUFFIX
818 PTRDIFF_T_SUFFIX
819 HAVE_SIGNED_WINT_T
820 HAVE_SIGNED_WCHAR_T
821 HAVE_SIGNED_SIG_ATOMIC_T
822 BITSIZEOF_WINT_T
823 BITSIZEOF_WCHAR_T
824 BITSIZEOF_SIG_ATOMIC_T
825 BITSIZEOF_SIZE_T
826 BITSIZEOF_PTRDIFF_T
827 HAVE_SYS_BITYPES_H
828 HAVE_SYS_INTTYPES_H
829 HAVE_STDINT_H
830 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
831 NEXT_STDINT_H
832 HAVE_SYS_TYPES_H
833 HAVE_INTTYPES_H
834 HAVE_WCHAR_H
835 HAVE_UNSIGNED_LONG_LONG_INT
836 HAVE_LONG_LONG_INT
837 HAVE__BOOL
838 GL_GENERATE_STDBOOL_H_FALSE
839 GL_GENERATE_STDBOOL_H_TRUE
840 STDBOOL_H
841 GL_GENERATE_STDARG_H_FALSE
842 GL_GENERATE_STDARG_H_TRUE
843 STDARG_H
844 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
845 NEXT_STDARG_H
846 HAVE_SPAWN_H
847 NEXT_AS_FIRST_DIRECTIVE_SPAWN_H
848 NEXT_SPAWN_H
849 ASM_SYMBOL_PREFIX
850 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
851 NEXT_SIGNAL_H
852 GL_GENERATE_SCHED_H_FALSE
853 GL_GENERATE_SCHED_H_TRUE
854 SCHED_H
855 HAVE_STRUCT_SCHED_PARAM
856 HAVE_SCHED_H
857 NEXT_AS_FIRST_DIRECTIVE_SCHED_H
858 NEXT_SCHED_H
859 RELOCATABLE_STRIP
860 RELOCATABLE_BUILD_DIR
861 RELOCATABLE_SRC_DIR
862 RELOCATABLE_CONFIG_H_DIR
863 RELOCATABLE_LIBRARY_PATH
864 RELOCATABLE_VIA_WRAPPER_FALSE
865 RELOCATABLE_VIA_WRAPPER_TRUE
866 RELOCATABLE_VIA_LD_FALSE
867 RELOCATABLE_VIA_LD_TRUE
868 INSTALL_PROGRAM_ENV
869 RELOCATABLE_LDFLAGS
870 RELOCATABLE
871 REPLACE_RAISE
872 REPLACE_PTHREAD_SIGMASK
873 HAVE_SIGHANDLER_T
874 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
875 HAVE_STRUCT_SIGACTION_SA_SIGACTION
876 HAVE_SIGACTION
877 HAVE_SIGINFO_T
878 HAVE_SIGSET_T
879 HAVE_RAISE
880 HAVE_PTHREAD_SIGMASK
881 HAVE_POSIX_SIGNALBLOCKING
882 GNULIB_SIGACTION
883 GNULIB_SIGPROCMASK
884 GNULIB_SIGNAL_H_SIGPIPE
885 GNULIB_RAISE
886 GNULIB_PTHREAD_SIGMASK
887 LIB_POSIX_SPAWN
888 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
889 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
890 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
891 REPLACE_POSIX_SPAWN
892 HAVE_POSIX_SPAWN_FILE_ACTIONS_T
893 HAVE_POSIX_SPAWNATTR_T
894 HAVE_POSIX_SPAWN
895 GNULIB_POSIX_SPAWNATTR_DESTROY
896 GNULIB_POSIX_SPAWNATTR_SETSIGMASK
897 GNULIB_POSIX_SPAWNATTR_GETSIGMASK
898 GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT
899 GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT
900 GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY
901 GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY
902 GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM
903 GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM
904 GNULIB_POSIX_SPAWNATTR_SETPGROUP
905 GNULIB_POSIX_SPAWNATTR_GETPGROUP
906 GNULIB_POSIX_SPAWNATTR_SETFLAGS
907 GNULIB_POSIX_SPAWNATTR_GETFLAGS
908 GNULIB_POSIX_SPAWNATTR_INIT
909 GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY
910 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
911 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
912 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
913 GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT
914 GNULIB_POSIX_SPAWNP
915 GNULIB_POSIX_SPAWN
916 OPENMP_CFLAGS
917 NO_CXX
918 APPLE_UNIVERSAL_BUILD
919 LOCALE_FR
920 UNDEFINE_STRTOK_R
921 REPLACE_STRTOK_R
922 REPLACE_STRSIGNAL
923 REPLACE_STRNLEN
924 REPLACE_STRNDUP
925 REPLACE_STRNCAT
926 REPLACE_STRERROR_R
927 REPLACE_STRERROR
928 REPLACE_STRCHRNUL
929 REPLACE_STRCASESTR
930 REPLACE_STRSTR
931 REPLACE_STRDUP
932 REPLACE_STPNCPY
933 REPLACE_MEMMEM
934 REPLACE_MEMCHR
935 HAVE_STRVERSCMP
936 HAVE_DECL_STRSIGNAL
937 HAVE_DECL_STRERROR_R
938 HAVE_DECL_STRTOK_R
939 HAVE_STRCASESTR
940 HAVE_STRSEP
941 HAVE_STRPBRK
942 HAVE_DECL_STRNLEN
943 HAVE_DECL_STRNDUP
944 HAVE_DECL_STRDUP
945 HAVE_STRCHRNUL
946 HAVE_STPNCPY
947 HAVE_STPCPY
948 HAVE_RAWMEMCHR
949 HAVE_DECL_MEMRCHR
950 HAVE_MEMPCPY
951 HAVE_DECL_MEMMEM
952 HAVE_MEMCHR
953 HAVE_FFSLL
954 HAVE_FFSL
955 HAVE_MBSLEN
956 GNULIB_STRVERSCMP
957 GNULIB_STRSIGNAL
958 GNULIB_STRERROR_R
959 GNULIB_STRERROR
960 GNULIB_MBSTOK_R
961 GNULIB_MBSSEP
962 GNULIB_MBSSPN
963 GNULIB_MBSPBRK
964 GNULIB_MBSCSPN
965 GNULIB_MBSCASESTR
966 GNULIB_MBSPCASECMP
967 GNULIB_MBSNCASECMP
968 GNULIB_MBSCASECMP
969 GNULIB_MBSSTR
970 GNULIB_MBSRCHR
971 GNULIB_MBSCHR
972 GNULIB_MBSNLEN
973 GNULIB_MBSLEN
974 GNULIB_STRTOK_R
975 GNULIB_STRCASESTR
976 GNULIB_STRSTR
977 GNULIB_STRSEP
978 GNULIB_STRPBRK
979 GNULIB_STRNLEN
980 GNULIB_STRNDUP
981 GNULIB_STRNCAT
982 GNULIB_STRDUP
983 GNULIB_STRCHRNUL
984 GNULIB_STPNCPY
985 GNULIB_STPCPY
986 GNULIB_RAWMEMCHR
987 GNULIB_MEMRCHR
988 GNULIB_MEMPCPY
989 GNULIB_MEMMEM
990 GNULIB_MEMCHR
991 GNULIB_FFSLL
992 GNULIB_FFSL
993 LOCALE_FR_UTF8
994 LOCALE_ZH_CN
995 LOCALE_JA
996 REPLACE_WCSWIDTH
997 REPLACE_WCWIDTH
998 REPLACE_WCSNRTOMBS
999 REPLACE_WCSRTOMBS
1000 REPLACE_WCRTOMB
1001 REPLACE_MBSNRTOWCS
1002 REPLACE_MBSRTOWCS
1003 REPLACE_MBRLEN
1004 REPLACE_MBRTOWC
1005 REPLACE_MBSINIT
1006 REPLACE_WCTOB
1007 REPLACE_BTOWC
1008 REPLACE_MBSTATE_T
1009 HAVE_DECL_WCWIDTH
1010 HAVE_DECL_WCTOB
1011 HAVE_WCSWIDTH
1012 HAVE_WCSTOK
1013 HAVE_WCSSTR
1014 HAVE_WCSPBRK
1015 HAVE_WCSSPN
1016 HAVE_WCSCSPN
1017 HAVE_WCSRCHR
1018 HAVE_WCSCHR
1019 HAVE_WCSDUP
1020 HAVE_WCSXFRM
1021 HAVE_WCSCOLL
1022 HAVE_WCSNCASECMP
1023 HAVE_WCSCASECMP
1024 HAVE_WCSNCMP
1025 HAVE_WCSCMP
1026 HAVE_WCSNCAT
1027 HAVE_WCSCAT
1028 HAVE_WCPNCPY
1029 HAVE_WCSNCPY
1030 HAVE_WCPCPY
1031 HAVE_WCSCPY
1032 HAVE_WCSNLEN
1033 HAVE_WCSLEN
1034 HAVE_WMEMSET
1035 HAVE_WMEMMOVE
1036 HAVE_WMEMCPY
1037 HAVE_WMEMCMP
1038 HAVE_WMEMCHR
1039 HAVE_WCSNRTOMBS
1040 HAVE_WCSRTOMBS
1041 HAVE_WCRTOMB
1042 HAVE_MBSNRTOWCS
1043 HAVE_MBSRTOWCS
1044 HAVE_MBRLEN
1045 HAVE_MBRTOWC
1046 HAVE_MBSINIT
1047 HAVE_BTOWC
1048 GNULIB_WCSWIDTH
1049 GNULIB_WCSTOK
1050 GNULIB_WCSSTR
1051 GNULIB_WCSPBRK
1052 GNULIB_WCSSPN
1053 GNULIB_WCSCSPN
1054 GNULIB_WCSRCHR
1055 GNULIB_WCSCHR
1056 GNULIB_WCSDUP
1057 GNULIB_WCSXFRM
1058 GNULIB_WCSCOLL
1059 GNULIB_WCSNCASECMP
1060 GNULIB_WCSCASECMP
1061 GNULIB_WCSNCMP
1062 GNULIB_WCSCMP
1063 GNULIB_WCSNCAT
1064 GNULIB_WCSCAT
1065 GNULIB_WCPNCPY
1066 GNULIB_WCSNCPY
1067 GNULIB_WCPCPY
1068 GNULIB_WCSCPY
1069 GNULIB_WCSNLEN
1070 GNULIB_WCSLEN
1071 GNULIB_WMEMSET
1072 GNULIB_WMEMMOVE
1073 GNULIB_WMEMCPY
1074 GNULIB_WMEMCMP
1075 GNULIB_WMEMCHR
1076 GNULIB_WCWIDTH
1077 GNULIB_WCSNRTOMBS
1078 GNULIB_WCSRTOMBS
1079 GNULIB_WCRTOMB
1080 GNULIB_MBSNRTOWCS
1081 GNULIB_MBSRTOWCS
1082 GNULIB_MBRLEN
1083 GNULIB_MBRTOWC
1084 GNULIB_MBSINIT
1085 GNULIB_WCTOB
1086 GNULIB_BTOWC
1087 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1088 NEXT_MATH_H
1089 LOG10_LIBM
1090 POW_LIBM
1091 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1092 NEXT_LOCALE_H
1093 HAVE_XLOCALE_H
1094 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1095 NEXT_STDDEF_H
1096 GL_GENERATE_STDDEF_H_FALSE
1097 GL_GENERATE_STDDEF_H_TRUE
1098 STDDEF_H
1099 HAVE_WCHAR_T
1100 HAVE_MAX_ALIGN_T
1101 REPLACE_NULL
1102 REPLACE_STRUCT_LCONV
1103 REPLACE_DUPLOCALE
1104 REPLACE_SETLOCALE
1105 REPLACE_LOCALECONV
1106 HAVE_DUPLOCALE
1107 GNULIB_DUPLOCALE
1108 GNULIB_SETLOCALE
1109 GNULIB_LOCALECONV
1110 LOCALCHARSET_TESTS_ENVIRONMENT
1111 INCLUDED_LIBXML_FALSE
1112 INCLUDED_LIBXML_TRUE
1113 LIBXML_H
1114 INCXML
1115 LTLIBXML
1116 LIBXML
1117 LIBUNISTRING_PREFIX
1118 LTLIBUNISTRING
1119 LIBUNISTRING
1120 HAVE_LIBUNISTRING
1121 INCLUDED_LIBCROCO_FALSE
1122 INCLUDED_LIBCROCO_TRUE
1123 INCCROCO
1124 LTLIBCROCO
1125 LIBCROCO
1126 INCLUDED_LIBGLIB_FALSE
1127 INCLUDED_LIBGLIB_TRUE
1128 LIBGLIB_H
1129 INCGLIB
1130 LTLIBGLIB
1131 LIBGLIB
1132 HAVE_LANGINFO_YESEXPR
1133 HAVE_LANGINFO_ERA
1134 HAVE_LANGINFO_T_FMT_AMPM
1135 HAVE_LANGINFO_CODESET
1136 HAVE_LANGINFO_H
1137 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1138 NEXT_LANGINFO_H
1139 REPLACE_NL_LANGINFO
1140 HAVE_NL_LANGINFO
1141 GNULIB_NL_LANGINFO
1142 REPLACE_TOWLOWER
1143 REPLACE_ISWCNTRL
1144 HAVE_WCTYPE_H
1145 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1146 NEXT_WCTYPE_H
1147 HAVE_WINT_T
1148 HAVE_ISWCNTRL
1149 REPLACE_ISWBLANK
1150 HAVE_WCTRANS_T
1151 HAVE_WCTYPE_T
1152 HAVE_ISWBLANK
1153 GNULIB_TOWCTRANS
1154 GNULIB_WCTRANS
1155 GNULIB_ISWCTYPE
1156 GNULIB_WCTYPE
1157 GNULIB_ISWBLANK
1158 ISNAN_LIBM
1159 ISNANL_LIBM
1160 ISNAND_LIBM
1161 ISNANF_LIBM
1162 ISINF_LIBM
1163 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1164 REPLACE_TRUNCL
1165 REPLACE_TRUNCF
1166 REPLACE_TRUNC
1167 REPLACE_SQRTL
1168 REPLACE_SIGNBIT_USING_GCC
1169 REPLACE_SIGNBIT
1170 REPLACE_ROUNDL
1171 REPLACE_ROUNDF
1172 REPLACE_ROUND
1173 REPLACE_REMAINDERL
1174 REPLACE_REMAINDERF
1175 REPLACE_REMAINDER
1176 REPLACE_NAN
1177 REPLACE_MODFL
1178 REPLACE_MODFF
1179 REPLACE_MODF
1180 REPLACE_LOGBL
1181 REPLACE_LOGBF
1182 REPLACE_LOGB
1183 REPLACE_LOG2L
1184 REPLACE_LOG2F
1185 REPLACE_LOG2
1186 REPLACE_LOG1PL
1187 REPLACE_LOG1PF
1188 REPLACE_LOG1P
1189 REPLACE_LOG10L
1190 REPLACE_LOG10F
1191 REPLACE_LOG10
1192 REPLACE_LOGL
1193 REPLACE_LOGF
1194 REPLACE_LOG
1195 REPLACE_LDEXPL
1196 REPLACE_ISNAN
1197 REPLACE_ISINF
1198 REPLACE_ISFINITE
1199 REPLACE_ILOGBF
1200 REPLACE_ILOGB
1201 REPLACE_HYPOTL
1202 REPLACE_HYPOTF
1203 REPLACE_HYPOT
1204 REPLACE_HUGE_VAL
1205 REPLACE_FREXPL
1206 REPLACE_FREXP
1207 REPLACE_FREXPF
1208 REPLACE_FMODL
1209 REPLACE_FMODF
1210 REPLACE_FMOD
1211 REPLACE_FMAL
1212 REPLACE_FMAF
1213 REPLACE_FMA
1214 REPLACE_FLOORL
1215 REPLACE_FLOORF
1216 REPLACE_FLOOR
1217 REPLACE_FABSL
1218 REPLACE_EXP2L
1219 REPLACE_EXP2
1220 REPLACE_EXPM1F
1221 REPLACE_EXPM1
1222 REPLACE_CEILL
1223 REPLACE_CEILF
1224 REPLACE_CEIL
1225 REPLACE_CBRTL
1226 REPLACE_CBRTF
1227 HAVE_DECL_TRUNCL
1228 HAVE_DECL_TRUNCF
1229 HAVE_DECL_TRUNC
1230 HAVE_DECL_TANL
1231 HAVE_DECL_SQRTL
1232 HAVE_DECL_SINL
1233 HAVE_DECL_ROUNDL
1234 HAVE_DECL_ROUNDF
1235 HAVE_DECL_ROUND
1236 HAVE_DECL_RINTF
1237 HAVE_DECL_REMAINDERL
1238 HAVE_DECL_REMAINDER
1239 HAVE_DECL_LOGB
1240 HAVE_DECL_LOG2L
1241 HAVE_DECL_LOG2F
1242 HAVE_DECL_LOG2
1243 HAVE_DECL_LOG10L
1244 HAVE_DECL_LOGL
1245 HAVE_DECL_LDEXPL
1246 HAVE_DECL_FREXPL
1247 HAVE_DECL_FLOORL
1248 HAVE_DECL_FLOORF
1249 HAVE_DECL_EXPM1L
1250 HAVE_DECL_EXP2L
1251 HAVE_DECL_EXP2F
1252 HAVE_DECL_EXP2
1253 HAVE_DECL_EXPL
1254 HAVE_DECL_COSL
1255 HAVE_DECL_COPYSIGNF
1256 HAVE_DECL_CEILL
1257 HAVE_DECL_CEILF
1258 HAVE_DECL_CBRTL
1259 HAVE_DECL_CBRTF
1260 HAVE_DECL_ATANL
1261 HAVE_DECL_ASINL
1262 HAVE_DECL_ACOSL
1263 HAVE_TANHF
1264 HAVE_TANL
1265 HAVE_TANF
1266 HAVE_SQRTL
1267 HAVE_SQRTF
1268 HAVE_SINHF
1269 HAVE_SINL
1270 HAVE_SINF
1271 HAVE_RINTL
1272 HAVE_RINT
1273 HAVE_REMAINDERF
1274 HAVE_REMAINDER
1275 HAVE_POWF
1276 HAVE_MODFL
1277 HAVE_MODFF
1278 HAVE_LOGBL
1279 HAVE_LOGBF
1280 HAVE_LOG1PL
1281 HAVE_LOG1PF
1282 HAVE_LOG1P
1283 HAVE_LOG10L
1284 HAVE_LOG10F
1285 HAVE_LOGL
1286 HAVE_LOGF
1287 HAVE_LDEXPF
1288 HAVE_ISNANL
1289 HAVE_ISNAND
1290 HAVE_ISNANF
1291 HAVE_ILOGBL
1292 HAVE_ILOGBF
1293 HAVE_ILOGB
1294 HAVE_HYPOTL
1295 HAVE_HYPOTF
1296 HAVE_FREXPF
1297 HAVE_FMODL
1298 HAVE_FMODF
1299 HAVE_FMAL
1300 HAVE_FMAF
1301 HAVE_FMA
1302 HAVE_FABSL
1303 HAVE_FABSF
1304 HAVE_EXPM1F
1305 HAVE_EXPM1
1306 HAVE_EXPL
1307 HAVE_EXPF
1308 HAVE_COSHF
1309 HAVE_COSL
1310 HAVE_COSF
1311 HAVE_COPYSIGNL
1312 HAVE_COPYSIGN
1313 HAVE_CBRTL
1314 HAVE_CBRTF
1315 HAVE_CBRT
1316 HAVE_ATAN2F
1317 HAVE_ATANL
1318 HAVE_ATANF
1319 HAVE_ASINL
1320 HAVE_ASINF
1321 HAVE_ACOSL
1322 HAVE_ACOSF
1323 GNULIB_TRUNCL
1324 GNULIB_TRUNCF
1325 GNULIB_TRUNC
1326 GNULIB_TANHF
1327 GNULIB_TANL
1328 GNULIB_TANF
1329 GNULIB_SQRTL
1330 GNULIB_SQRTF
1331 GNULIB_SINHF
1332 GNULIB_SINL
1333 GNULIB_SINF
1334 GNULIB_SIGNBIT
1335 GNULIB_ROUNDL
1336 GNULIB_ROUNDF
1337 GNULIB_ROUND
1338 GNULIB_RINTL
1339 GNULIB_RINTF
1340 GNULIB_RINT
1341 GNULIB_REMAINDERL
1342 GNULIB_REMAINDERF
1343 GNULIB_REMAINDER
1344 GNULIB_POWF
1345 GNULIB_MODFL
1346 GNULIB_MODFF
1347 GNULIB_MODF
1348 GNULIB_LOGBL
1349 GNULIB_LOGBF
1350 GNULIB_LOGB
1351 GNULIB_LOG2L
1352 GNULIB_LOG2F
1353 GNULIB_LOG2
1354 GNULIB_LOG1PL
1355 GNULIB_LOG1PF
1356 GNULIB_LOG1P
1357 GNULIB_LOG10L
1358 GNULIB_LOG10F
1359 GNULIB_LOG10
1360 GNULIB_LOGL
1361 GNULIB_LOGF
1362 GNULIB_LOG
1363 GNULIB_LDEXPL
1364 GNULIB_LDEXPF
1365 GNULIB_ISNANL
1366 GNULIB_ISNAND
1367 GNULIB_ISNANF
1368 GNULIB_ISNAN
1369 GNULIB_ISINF
1370 GNULIB_ISFINITE
1371 GNULIB_ILOGBL
1372 GNULIB_ILOGBF
1373 GNULIB_ILOGB
1374 GNULIB_HYPOTL
1375 GNULIB_HYPOTF
1376 GNULIB_HYPOT
1377 GNULIB_FREXPL
1378 GNULIB_FREXP
1379 GNULIB_FREXPF
1380 GNULIB_FMODL
1381 GNULIB_FMODF
1382 GNULIB_FMOD
1383 GNULIB_FMAL
1384 GNULIB_FMAF
1385 GNULIB_FMA
1386 GNULIB_FLOORL
1387 GNULIB_FLOORF
1388 GNULIB_FLOOR
1389 GNULIB_FABSL
1390 GNULIB_FABSF
1391 GNULIB_EXPM1L
1392 GNULIB_EXPM1F
1393 GNULIB_EXPM1
1394 GNULIB_EXP2L
1395 GNULIB_EXP2F
1396 GNULIB_EXP2
1397 GNULIB_EXPL
1398 GNULIB_EXPF
1399 GNULIB_COSHF
1400 GNULIB_COSL
1401 GNULIB_COSF
1402 GNULIB_COPYSIGNL
1403 GNULIB_COPYSIGNF
1404 GNULIB_COPYSIGN
1405 GNULIB_CEILL
1406 GNULIB_CEILF
1407 GNULIB_CEIL
1408 GNULIB_CBRTL
1409 GNULIB_CBRTF
1410 GNULIB_CBRT
1411 GNULIB_ATAN2F
1412 GNULIB_ATANL
1413 GNULIB_ATANF
1414 GNULIB_ASINL
1415 GNULIB_ASINF
1416 GNULIB_ACOSL
1417 GNULIB_ACOSF
1418 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1419 NEXT_ICONV_H
1420 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1421 NEXT_SYS_TIME_H
1422 REPLACE_STRUCT_TIMEVAL
1423 REPLACE_GETTIMEOFDAY
1424 HAVE_TIMEZONE_T
1425 HAVE_SYS_TIME_H
1426 HAVE_STRUCT_TIMEVAL
1427 HAVE_GETTIMEOFDAY
1428 GNULIB_GETTIMEOFDAY
1429 GNULIB_GL_UNISTD_H_GETOPT
1430 GETOPT_H
1431 HAVE_GETOPT_H
1432 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1433 NEXT_GETOPT_H
1434 WINDOWS_64_BIT_ST_SIZE
1435 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1436 NEXT_SYS_STAT_H
1437 REPLACE_UTIMENSAT
1438 REPLACE_STAT
1439 REPLACE_MKNOD
1440 REPLACE_MKFIFO
1441 REPLACE_MKDIR
1442 REPLACE_LSTAT
1443 REPLACE_FUTIMENS
1444 REPLACE_FSTATAT
1445 REPLACE_FSTAT
1446 HAVE_UTIMENSAT
1447 HAVE_MKNODAT
1448 HAVE_MKNOD
1449 HAVE_MKFIFOAT
1450 HAVE_MKFIFO
1451 HAVE_MKDIRAT
1452 HAVE_LSTAT
1453 HAVE_LCHMOD
1454 HAVE_FUTIMENS
1455 HAVE_FSTATAT
1456 HAVE_FCHMODAT
1457 GNULIB_UTIMENSAT
1458 GNULIB_STAT
1459 GNULIB_MKNODAT
1460 GNULIB_MKNOD
1461 GNULIB_MKFIFOAT
1462 GNULIB_MKFIFO
1463 GNULIB_MKDIRAT
1464 GNULIB_LSTAT
1465 GNULIB_LCHMOD
1466 GNULIB_FUTIMENS
1467 GNULIB_FSTATAT
1468 GNULIB_FSTAT
1469 GNULIB_FCHMODAT
1470 REPLACE_VSPRINTF
1471 REPLACE_VSNPRINTF
1472 REPLACE_VPRINTF
1473 REPLACE_VFPRINTF
1474 REPLACE_VDPRINTF
1475 REPLACE_VASPRINTF
1476 REPLACE_TMPFILE
1477 REPLACE_STDIO_WRITE_FUNCS
1478 REPLACE_STDIO_READ_FUNCS
1479 REPLACE_SPRINTF
1480 REPLACE_SNPRINTF
1481 REPLACE_RENAMEAT
1482 REPLACE_RENAME
1483 REPLACE_REMOVE
1484 REPLACE_PRINTF
1485 REPLACE_POPEN
1486 REPLACE_PERROR
1487 REPLACE_OBSTACK_PRINTF
1488 REPLACE_GETLINE
1489 REPLACE_GETDELIM
1490 REPLACE_FTELLO
1491 REPLACE_FTELL
1492 REPLACE_FSEEKO
1493 REPLACE_FSEEK
1494 REPLACE_FREOPEN
1495 REPLACE_FPURGE
1496 REPLACE_FPRINTF
1497 REPLACE_FOPEN
1498 REPLACE_FFLUSH
1499 REPLACE_FDOPEN
1500 REPLACE_FCLOSE
1501 REPLACE_DPRINTF
1502 HAVE_VDPRINTF
1503 HAVE_VASPRINTF
1504 HAVE_RENAMEAT
1505 HAVE_POPEN
1506 HAVE_PCLOSE
1507 HAVE_FTELLO
1508 HAVE_FSEEKO
1509 HAVE_DPRINTF
1510 HAVE_DECL_VSNPRINTF
1511 HAVE_DECL_SNPRINTF
1512 HAVE_DECL_OBSTACK_PRINTF
1513 HAVE_DECL_GETLINE
1514 HAVE_DECL_GETDELIM
1515 HAVE_DECL_FTELLO
1516 HAVE_DECL_FSEEKO
1517 HAVE_DECL_FPURGE
1518 GNULIB_VSPRINTF_POSIX
1519 GNULIB_VSNPRINTF
1520 GNULIB_VPRINTF_POSIX
1521 GNULIB_VPRINTF
1522 GNULIB_VFPRINTF_POSIX
1523 GNULIB_VFPRINTF
1524 GNULIB_VDPRINTF
1525 GNULIB_VSCANF
1526 GNULIB_VFSCANF
1527 GNULIB_VASPRINTF
1528 GNULIB_TMPFILE
1529 GNULIB_STDIO_H_SIGPIPE
1530 GNULIB_STDIO_H_NONBLOCKING
1531 GNULIB_SPRINTF_POSIX
1532 GNULIB_SNPRINTF
1533 GNULIB_SCANF
1534 GNULIB_RENAMEAT
1535 GNULIB_RENAME
1536 GNULIB_REMOVE
1537 GNULIB_PUTS
1538 GNULIB_PUTCHAR
1539 GNULIB_PUTC
1540 GNULIB_PRINTF_POSIX
1541 GNULIB_PRINTF
1542 GNULIB_POPEN
1543 GNULIB_PERROR
1544 GNULIB_PCLOSE
1545 GNULIB_OBSTACK_PRINTF_POSIX
1546 GNULIB_OBSTACK_PRINTF
1547 GNULIB_GETLINE
1548 GNULIB_GETDELIM
1549 GNULIB_GETCHAR
1550 GNULIB_GETC
1551 GNULIB_FWRITE
1552 GNULIB_FTELLO
1553 GNULIB_FTELL
1554 GNULIB_FSEEKO
1555 GNULIB_FSEEK
1556 GNULIB_FSCANF
1557 GNULIB_FREOPEN
1558 GNULIB_FREAD
1559 GNULIB_FPUTS
1560 GNULIB_FPUTC
1561 GNULIB_FPURGE
1562 GNULIB_FPRINTF_POSIX
1563 GNULIB_FPRINTF
1564 GNULIB_FOPEN
1565 GNULIB_FGETS
1566 GNULIB_FGETC
1567 GNULIB_FFLUSH
1568 GNULIB_FDOPEN
1569 GNULIB_FCLOSE
1570 GNULIB_DPRINTF
1571 GL_GENERATE_FNMATCH_H_FALSE
1572 GL_GENERATE_FNMATCH_H_TRUE
1573 FNMATCH_H
1574 REPLACE_ITOLD
1575 GL_GENERATE_FLOAT_H_FALSE
1576 GL_GENERATE_FLOAT_H_TRUE
1577 FLOAT_H
1578 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1579 NEXT_FLOAT_H
1580 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1581 NEXT_FCNTL_H
1582 REPLACE_OPENAT
1583 REPLACE_OPEN
1584 REPLACE_FCNTL
1585 HAVE_OPENAT
1586 HAVE_FCNTL
1587 GNULIB_OPENAT
1588 GNULIB_OPEN
1589 GNULIB_NONBLOCKING
1590 GNULIB_FCNTL
1591 FABS_LIBM
1592 EOVERFLOW_VALUE
1593 EOVERFLOW_HIDDEN
1594 ENOLINK_VALUE
1595 ENOLINK_HIDDEN
1596 EMULTIHOP_VALUE
1597 EMULTIHOP_HIDDEN
1598 GL_GENERATE_ERRNO_H_FALSE
1599 GL_GENERATE_ERRNO_H_TRUE
1600 ERRNO_H
1601 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1602 NEXT_ERRNO_H
1603 HAVE_DIRENT_H
1604 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1605 NEXT_DIRENT_H
1606 PRAGMA_COLUMNS
1607 PRAGMA_SYSTEM_HEADER
1608 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1609 INCLUDE_NEXT
1610 pkglibexecdir
1611 runstatedir
1612 lispdir
1613 REPLACE_FDOPENDIR
1614 REPLACE_DIRFD
1615 REPLACE_CLOSEDIR
1616 REPLACE_OPENDIR
1617 HAVE_ALPHASORT
1618 HAVE_SCANDIR
1619 HAVE_FDOPENDIR
1620 HAVE_DECL_FDOPENDIR
1621 HAVE_DECL_DIRFD
1622 HAVE_CLOSEDIR
1623 HAVE_REWINDDIR
1624 HAVE_READDIR
1625 HAVE_OPENDIR
1626 GNULIB_ALPHASORT
1627 GNULIB_SCANDIR
1628 GNULIB_FDOPENDIR
1629 GNULIB_DIRFD
1630 GNULIB_CLOSEDIR
1631 GNULIB_REWINDDIR
1632 GNULIB_READDIR
1633 GNULIB_OPENDIR
1634 HAVE_WINSOCK2_H
1635 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1636 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1637 UNISTD_H_HAVE_WINSOCK2_H
1638 REPLACE_WRITE
1639 REPLACE_USLEEP
1640 REPLACE_UNLINKAT
1641 REPLACE_UNLINK
1642 REPLACE_TTYNAME_R
1643 REPLACE_SYMLINKAT
1644 REPLACE_SYMLINK
1645 REPLACE_SLEEP
1646 REPLACE_RMDIR
1647 REPLACE_READLINKAT
1648 REPLACE_READLINK
1649 REPLACE_READ
1650 REPLACE_PWRITE
1651 REPLACE_PREAD
1652 REPLACE_LSEEK
1653 REPLACE_LINKAT
1654 REPLACE_LINK
1655 REPLACE_LCHOWN
1656 REPLACE_ISATTY
1657 REPLACE_GETPAGESIZE
1658 REPLACE_GETGROUPS
1659 REPLACE_GETLOGIN_R
1660 REPLACE_GETDTABLESIZE
1661 REPLACE_GETDOMAINNAME
1662 REPLACE_GETCWD
1663 REPLACE_FTRUNCATE
1664 REPLACE_FCHOWNAT
1665 REPLACE_DUP2
1666 REPLACE_DUP
1667 REPLACE_CLOSE
1668 REPLACE_CHOWN
1669 HAVE_SYS_PARAM_H
1670 HAVE_OS_H
1671 HAVE_DECL_TTYNAME_R
1672 HAVE_DECL_SETHOSTNAME
1673 HAVE_DECL_GETUSERSHELL
1674 HAVE_DECL_GETPAGESIZE
1675 HAVE_DECL_GETLOGIN_R
1676 HAVE_DECL_GETDOMAINNAME
1677 HAVE_DECL_FDATASYNC
1678 HAVE_DECL_FCHDIR
1679 HAVE_DECL_ENVIRON
1680 HAVE_USLEEP
1681 HAVE_UNLINKAT
1682 HAVE_SYMLINKAT
1683 HAVE_SYMLINK
1684 HAVE_SLEEP
1685 HAVE_SETHOSTNAME
1686 HAVE_READLINKAT
1687 HAVE_READLINK
1688 HAVE_PWRITE
1689 HAVE_PREAD
1690 HAVE_PIPE2
1691 HAVE_PIPE
1692 HAVE_LINKAT
1693 HAVE_LINK
1694 HAVE_LCHOWN
1695 HAVE_GROUP_MEMBER
1696 HAVE_GETPAGESIZE
1697 HAVE_GETLOGIN
1698 HAVE_GETHOSTNAME
1699 HAVE_GETGROUPS
1700 HAVE_GETDTABLESIZE
1701 HAVE_FTRUNCATE
1702 HAVE_FSYNC
1703 HAVE_FDATASYNC
1704 HAVE_FCHOWNAT
1705 HAVE_FCHDIR
1706 HAVE_FACCESSAT
1707 HAVE_EUIDACCESS
1708 HAVE_DUP3
1709 HAVE_DUP2
1710 HAVE_CHOWN
1711 GNULIB_WRITE
1712 GNULIB_USLEEP
1713 GNULIB_UNLINKAT
1714 GNULIB_UNLINK
1715 GNULIB_UNISTD_H_SIGPIPE
1716 GNULIB_UNISTD_H_NONBLOCKING
1717 GNULIB_TTYNAME_R
1718 GNULIB_SYMLINKAT
1719 GNULIB_SYMLINK
1720 GNULIB_SLEEP
1721 GNULIB_SETHOSTNAME
1722 GNULIB_RMDIR
1723 GNULIB_READLINKAT
1724 GNULIB_READLINK
1725 GNULIB_READ
1726 GNULIB_PWRITE
1727 GNULIB_PREAD
1728 GNULIB_PIPE2
1729 GNULIB_PIPE
1730 GNULIB_LSEEK
1731 GNULIB_LINKAT
1732 GNULIB_LINK
1733 GNULIB_LCHOWN
1734 GNULIB_ISATTY
1735 GNULIB_GROUP_MEMBER
1736 GNULIB_GETUSERSHELL
1737 GNULIB_GETPAGESIZE
1738 GNULIB_GETLOGIN_R
1739 GNULIB_GETLOGIN
1740 GNULIB_GETHOSTNAME
1741 GNULIB_GETGROUPS
1742 GNULIB_GETDTABLESIZE
1743 GNULIB_GETDOMAINNAME
1744 GNULIB_GETCWD
1745 GNULIB_FTRUNCATE
1746 GNULIB_FSYNC
1747 GNULIB_FDATASYNC
1748 GNULIB_FCHOWNAT
1749 GNULIB_FCHDIR
1750 GNULIB_FACCESSAT
1751 GNULIB_EUIDACCESS
1752 GNULIB_ENVIRON
1753 GNULIB_DUP3
1754 GNULIB_DUP2
1755 GNULIB_DUP
1756 GNULIB_CLOSE
1757 GNULIB_CHOWN
1758 GNULIB_CHDIR
1759 REPLACE_WCTOMB
1760 REPLACE_UNSETENV
1761 REPLACE_STRTOD
1762 REPLACE_SETENV
1763 REPLACE_REALPATH
1764 REPLACE_REALLOC
1765 REPLACE_RANDOM_R
1766 REPLACE_QSORT_R
1767 REPLACE_PUTENV
1768 REPLACE_PTSNAME_R
1769 REPLACE_PTSNAME
1770 REPLACE_MKSTEMP
1771 REPLACE_MBTOWC
1772 REPLACE_MALLOC
1773 REPLACE_CANONICALIZE_FILE_NAME
1774 REPLACE_CALLOC
1775 HAVE_DECL_UNSETENV
1776 HAVE_UNLOCKPT
1777 HAVE_SYS_LOADAVG_H
1778 HAVE_STRUCT_RANDOM_DATA
1779 HAVE_STRTOULL
1780 HAVE_STRTOLL
1781 HAVE_STRTOD
1782 HAVE_DECL_SETENV
1783 HAVE_SETENV
1784 HAVE_SECURE_GETENV
1785 HAVE_RPMATCH
1786 HAVE_REALPATH
1787 HAVE_RANDOM_R
1788 HAVE_RANDOM_H
1789 HAVE_RANDOM
1790 HAVE_PTSNAME_R
1791 HAVE_PTSNAME
1792 HAVE_POSIX_OPENPT
1793 HAVE_MKSTEMPS
1794 HAVE_MKSTEMP
1795 HAVE_MKOSTEMPS
1796 HAVE_MKOSTEMP
1797 HAVE_MKDTEMP
1798 HAVE_GRANTPT
1799 HAVE_GETSUBOPT
1800 HAVE_DECL_GETLOADAVG
1801 HAVE_CANONICALIZE_FILE_NAME
1802 HAVE_ATOLL
1803 HAVE__EXIT
1804 GNULIB_WCTOMB
1805 GNULIB_UNSETENV
1806 GNULIB_UNLOCKPT
1807 GNULIB_SYSTEM_POSIX
1808 GNULIB_STRTOULL
1809 GNULIB_STRTOLL
1810 GNULIB_STRTOD
1811 GNULIB_SETENV
1812 GNULIB_SECURE_GETENV
1813 GNULIB_RPMATCH
1814 GNULIB_REALPATH
1815 GNULIB_REALLOC_POSIX
1816 GNULIB_RANDOM_R
1817 GNULIB_RANDOM
1818 GNULIB_QSORT_R
1819 GNULIB_PUTENV
1820 GNULIB_PTSNAME_R
1821 GNULIB_PTSNAME
1822 GNULIB_POSIX_OPENPT
1823 GNULIB_MKSTEMPS
1824 GNULIB_MKSTEMP
1825 GNULIB_MKOSTEMPS
1826 GNULIB_MKOSTEMP
1827 GNULIB_MKDTEMP
1828 GNULIB_MBTOWC
1829 GNULIB_MALLOC_POSIX
1830 GNULIB_GRANTPT
1831 GNULIB_GETSUBOPT
1832 GNULIB_GETLOADAVG
1833 GNULIB_CANONICALIZE_FILE_NAME
1834 GNULIB_CALLOC_POSIX
1835 GNULIB_ATOLL
1836 GNULIB__EXIT
1837 GL_GENERATE_BYTESWAP_H_FALSE
1838 GL_GENERATE_BYTESWAP_H_TRUE
1839 BYTESWAP_H
1840 am__fastdepCXX_FALSE
1841 am__fastdepCXX_TRUE
1842 CXXDEPMODE
1843 ANSICXX_FALSE
1844 ANSICXX_TRUE
1845 CXXFLAGS
1846 ac_ct_CXX
1847 CXX
1848 CXX_CHOICE
1849 GL_GENERATE_ALLOCA_H_FALSE
1850 GL_GENERATE_ALLOCA_H_TRUE
1851 ALLOCA_H
1852 USE_ACL
1853 LIB_ACL
1854 GL_COND_LIBTOOL_FALSE
1855 GL_COND_LIBTOOL_TRUE
1856 MSGMERGE_LIBM
1857 BISON_LOCALEDIR
1858 POSUB
1859 LTLIBINTL
1860 LIBINTL
1861 INTLLIBS
1862 INTL_LIBTOOL_SUFFIX_PREFIX
1863 INTLOBJS
1864 GENCAT
1865 INSTOBJEXT
1866 DATADIRNAME
1867 CATOBJEXT
1868 USE_INCLUDED_LIBINTL
1869 BUILD_INCLUDED_LIBINTL
1870 LTLIBC
1871 WINDRES
1872 WOE32
1873 WOE32DLL
1874 HAVE_WPRINTF
1875 HAVE_NEWLOCALE
1876 HAVE_SNPRINTF
1877 HAVE_ASPRINTF
1878 HAVE_POSIX_PRINTF
1879 INTL_DEFAULT_VERBOSITY
1880 INTL_MACOSX_LIBS
1881 GLIBC21
1882 INTLBISON
1883 GL_GENERATE_ICONV_H_FALSE
1884 GL_GENERATE_ICONV_H_TRUE
1885 ICONV_H
1886 REPLACE_ICONV_UTF
1887 REPLACE_ICONV_OPEN
1888 REPLACE_ICONV
1889 ICONV_CONST
1890 GNULIB_ICONV
1891 LTLIBICONV
1892 LIBICONV
1893 LTLIBMULTITHREAD
1894 LIBMULTITHREAD
1895 LTLIBTHREAD
1896 LIBTHREAD
1897 LIBPTH_PREFIX
1898 LTLIBPTH
1899 LIBPTH
1900 PRI_MACROS_BROKEN
1901 ALLOCA
1902 HAVE_VISIBILITY
1903 CFLAG_VISIBILITY
1904 GLIBC2
1905 XGETTEXT_EXTRA_OPTIONS
1906 MSGMERGE
1907 XGETTEXT_015
1908 XGETTEXT
1909 GMSGFMT_015
1910 MSGFMT_015
1911 GMSGFMT
1912 MSGFMT
1913 GETTEXT_MACRO_VERSION
1914 USE_NLS
1915 OS2_FALSE
1916 OS2_TRUE
1917 WOE32_FALSE
1918 WOE32_TRUE
1919 RC
1920 LT_SYS_LIBRARY_PATH
1921 OTOOL64
1922 OTOOL
1923 LIPO
1924 NMEDIT
1925 DSYMUTIL
1926 MANIFEST_TOOL
1927 LN_S
1928 NM
1929 ac_ct_DUMPBIN
1930 DUMPBIN
1931 LD
1932 FGREP
1933 SED
1934 LIBTOOL
1935 OBJDUMP
1936 DLLTOOL
1937 AS
1938 RANLIB
1939 ARFLAGS
1940 ac_ct_AR
1941 AR
1942 host_os
1943 host_vendor
1944 host_cpu
1945 host
1946 build_os
1947 build_vendor
1948 build_cpu
1949 build
1950 TESTCSHARP
1951 HAVE_CLIX
1952 HAVE_MONO
1953 HAVE_ILRUN
1954 CLIX_PATH
1955 CLIX_PATH_VAR
1956 MONO_PATH_SEPARATOR
1957 MONO_PATH
1958 HAVE_CLIX_IN_PATH
1959 HAVE_MONO_IN_PATH
1960 HAVE_ILRUN_IN_PATH
1961 BUILDCSHARP
1962 CSHARPCOMPFLAGS
1963 HAVE_CSC
1964 HAVE_MCS
1965 HAVE_CSCC
1966 HAVE_CSC_IN_PATH
1967 HAVE_MCS_IN_PATH
1968 HAVE_CSCC_IN_PATH
1969 CSHARP_CHOICE
1970 TESTJAVA
1971 BUILDJAVA
1972 JAR
1973 HAVE_JIKES
1974 HAVE_JAVAC
1975 HAVE_GCJ_C
1976 HAVE_JAVAC_ENVVAR
1977 CONF_JAVAC
1978 HAVE_JIKES_IN_PATH
1979 HAVE_JAVAC_IN_PATH
1980 HAVE_GCJ_IN_PATH
1981 HAVE_JVIEW
1982 HAVE_JRE
1983 HAVE_JAVA
1984 HAVE_GIJ
1985 HAVE_JAVA_ENVVAR
1986 CLASSPATH_SEPARATOR
1987 CLASSPATH
1988 CONF_JAVA
1989 HAVE_JVIEW_IN_PATH
1990 HAVE_JRE_IN_PATH
1991 HAVE_JAVA_IN_PATH
1992 HAVE_GIJ_IN_PATH
1993 EGREP
1994 GREP
1995 CPP
1996 BUILDJAVAEXE
1997 HAVE_GCJ
1998 GCJFLAGS
1999 GCJ
2000 JAVA_CHOICE
2001 YFLAGS
2002 YACC
2003 am__fastdepCC_FALSE
2004 am__fastdepCC_TRUE
2005 CCDEPMODE
2006 am__nodep
2007 AMDEPBACKSLASH
2008 AMDEP_FALSE
2009 AMDEP_TRUE
2010 am__quote
2011 am__include
2012 DEPDIR
2013 OBJEXT
2014 EXEEXT
2015 ac_ct_CC
2016 CPPFLAGS
2017 LDFLAGS
2018 CFLAGS
2019 CC
2020 AM_BACKSLASH
2021 AM_DEFAULT_VERBOSITY
2022 AM_DEFAULT_V
2023 AM_V
2024 am__untar
2025 am__tar
2026 AMTAR
2027 am__leading_dot
2028 SET_MAKE
2029 AWK
2030 mkdir_p
2031 MKDIR_P
2032 INSTALL_STRIP_PROGRAM
2033 STRIP
2034 install_sh
2035 MAKEINFO
2036 AUTOHEADER
2037 AUTOMAKE
2038 AUTOCONF
2039 ACLOCAL
2040 VERSION
2041 PACKAGE
2042 CYGPATH_W
2043 am__isrc
2044 INSTALL_DATA
2045 INSTALL_SCRIPT
2046 INSTALL_PROGRAM
2047 target_alias
2048 host_alias
2049 build_alias
2050 LIBS
2051 ECHO_T
2052 ECHO_N
2053 ECHO_C
2054 DEFS
2055 mandir
2056 localedir
2057 libdir
2058 psdir
2059 pdfdir
2060 dvidir
2061 htmldir
2062 infodir
2063 docdir
2064 oldincludedir
2065 includedir
2066 localstatedir
2067 sharedstatedir
2068 sysconfdir
2069 datadir
2070 datarootdir
2071 libexecdir
2072 sbindir
2073 bindir
2074 program_transform_name
2075 prefix
2076 exec_prefix
2077 PACKAGE_URL
2078 PACKAGE_BUGREPORT
2079 PACKAGE_STRING
2080 PACKAGE_VERSION
2081 PACKAGE_TARNAME
2082 PACKAGE_NAME
2083 PATH_SEPARATOR
2084 SHELL'
2085 ac_subst_files='relocatable_sh'
2086 ac_user_opts='
2087 enable_option_checking
2088 enable_silent_rules
2089 enable_dependency_tracking
2090 enable_java
2091 enable_native_java
2092 enable_csharp
2093 enable_largefile
2094 enable_threads
2095 enable_shared
2096 enable_static
2097 with_pic
2098 enable_fast_install
2099 with_aix_soname
2100 with_gnu_ld
2101 with_sysroot
2102 enable_libtool_lock
2103 enable_nls
2104 enable_rpath
2105 with_libpth_prefix
2106 with_libiconv_prefix
2107 with_included_gettext
2108 with_libintl_prefix
2109 enable_acl
2110 enable_c__
2111 with_included_glib
2112 with_libglib_2_0_prefix
2113 with_included_libcroco
2114 with_libcroco_0_6_prefix
2115 with_included_libunistring
2116 with_libunistring_prefix
2117 with_included_libxml
2118 with_libxml2_prefix
2119 enable_openmp
2120 enable_relocatable
2121 enable_curses
2122 with_libncurses_prefix
2123 with_libtermcap_prefix
2124 with_libxcurses_prefix
2125 with_libcurses_prefix
2126 with_included_regex
2127 with_emacs
2128 with_lispdir
2129 with_git
2130 with_cvs
2131 with_bzip2
2132 with_xz
2133 '
2134       ac_precious_vars='build_alias
2135 host_alias
2136 target_alias
2137 CC
2138 CFLAGS
2139 LDFLAGS
2140 LIBS
2141 CPPFLAGS
2142 YACC
2143 YFLAGS
2144 GCJ
2145 GCJFLAGS
2146 CPP
2147 LT_SYS_LIBRARY_PATH
2148 CXX
2149 CXXFLAGS
2150 EMACS
2151 EMACSLOADPATH
2152 CCC
2153 CXXCPP'
2154 ac_subdirs_all='examples'
2155
2156 # Initialize some variables set by options.
2157 ac_init_help=
2158 ac_init_version=false
2159 ac_unrecognized_opts=
2160 ac_unrecognized_sep=
2161 # The variables have the same names as the options, with
2162 # dashes changed to underlines.
2163 cache_file=/dev/null
2164 exec_prefix=NONE
2165 no_create=
2166 no_recursion=
2167 prefix=NONE
2168 program_prefix=NONE
2169 program_suffix=NONE
2170 program_transform_name=s,x,x,
2171 silent=
2172 site=
2173 srcdir=
2174 verbose=
2175 x_includes=NONE
2176 x_libraries=NONE
2177
2178 # Installation directory options.
2179 # These are left unexpanded so users can "make install exec_prefix=/foo"
2180 # and all the variables that are supposed to be based on exec_prefix
2181 # by default will actually change.
2182 # Use braces instead of parens because sh, perl, etc. also accept them.
2183 # (The list follows the same order as the GNU Coding Standards.)
2184 bindir='${exec_prefix}/bin'
2185 sbindir='${exec_prefix}/sbin'
2186 libexecdir='${exec_prefix}/libexec'
2187 datarootdir='${prefix}/share'
2188 datadir='${datarootdir}'
2189 sysconfdir='${prefix}/etc'
2190 sharedstatedir='${prefix}/com'
2191 localstatedir='${prefix}/var'
2192 includedir='${prefix}/include'
2193 oldincludedir='/usr/include'
2194 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2195 infodir='${datarootdir}/info'
2196 htmldir='${docdir}'
2197 dvidir='${docdir}'
2198 pdfdir='${docdir}'
2199 psdir='${docdir}'
2200 libdir='${exec_prefix}/lib'
2201 localedir='${datarootdir}/locale'
2202 mandir='${datarootdir}/man'
2203
2204 ac_prev=
2205 ac_dashdash=
2206 for ac_option
2207 do
2208   # If the previous option needs an argument, assign it.
2209   if test -n "$ac_prev"; then
2210     eval $ac_prev=\$ac_option
2211     ac_prev=
2212     continue
2213   fi
2214
2215   case $ac_option in
2216   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2217   *=)   ac_optarg= ;;
2218   *)    ac_optarg=yes ;;
2219   esac
2220
2221   # Accept the important Cygnus configure options, so we can diagnose typos.
2222
2223   case $ac_dashdash$ac_option in
2224   --)
2225     ac_dashdash=yes ;;
2226
2227   -bindir | --bindir | --bindi | --bind | --bin | --bi)
2228     ac_prev=bindir ;;
2229   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2230     bindir=$ac_optarg ;;
2231
2232   -build | --build | --buil | --bui | --bu)
2233     ac_prev=build_alias ;;
2234   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2235     build_alias=$ac_optarg ;;
2236
2237   -cache-file | --cache-file | --cache-fil | --cache-fi \
2238   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2239     ac_prev=cache_file ;;
2240   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2241   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2242     cache_file=$ac_optarg ;;
2243
2244   --config-cache | -C)
2245     cache_file=config.cache ;;
2246
2247   -datadir | --datadir | --datadi | --datad)
2248     ac_prev=datadir ;;
2249   -datadir=* | --datadir=* | --datadi=* | --datad=*)
2250     datadir=$ac_optarg ;;
2251
2252   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2253   | --dataroo | --dataro | --datar)
2254     ac_prev=datarootdir ;;
2255   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2256   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2257     datarootdir=$ac_optarg ;;
2258
2259   -disable-* | --disable-*)
2260     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2261     # Reject names that are not valid shell variable names.
2262     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2263       as_fn_error $? "invalid feature name: $ac_useropt"
2264     ac_useropt_orig=$ac_useropt
2265     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2266     case $ac_user_opts in
2267       *"
2268 "enable_$ac_useropt"
2269 "*) ;;
2270       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2271          ac_unrecognized_sep=', ';;
2272     esac
2273     eval enable_$ac_useropt=no ;;
2274
2275   -docdir | --docdir | --docdi | --doc | --do)
2276     ac_prev=docdir ;;
2277   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2278     docdir=$ac_optarg ;;
2279
2280   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2281     ac_prev=dvidir ;;
2282   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2283     dvidir=$ac_optarg ;;
2284
2285   -enable-* | --enable-*)
2286     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2287     # Reject names that are not valid shell variable names.
2288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2289       as_fn_error $? "invalid feature name: $ac_useropt"
2290     ac_useropt_orig=$ac_useropt
2291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2292     case $ac_user_opts in
2293       *"
2294 "enable_$ac_useropt"
2295 "*) ;;
2296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2297          ac_unrecognized_sep=', ';;
2298     esac
2299     eval enable_$ac_useropt=\$ac_optarg ;;
2300
2301   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2302   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2303   | --exec | --exe | --ex)
2304     ac_prev=exec_prefix ;;
2305   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2306   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2307   | --exec=* | --exe=* | --ex=*)
2308     exec_prefix=$ac_optarg ;;
2309
2310   -gas | --gas | --ga | --g)
2311     # Obsolete; use --with-gas.
2312     with_gas=yes ;;
2313
2314   -help | --help | --hel | --he | -h)
2315     ac_init_help=long ;;
2316   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2317     ac_init_help=recursive ;;
2318   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2319     ac_init_help=short ;;
2320
2321   -host | --host | --hos | --ho)
2322     ac_prev=host_alias ;;
2323   -host=* | --host=* | --hos=* | --ho=*)
2324     host_alias=$ac_optarg ;;
2325
2326   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2327     ac_prev=htmldir ;;
2328   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2329   | --ht=*)
2330     htmldir=$ac_optarg ;;
2331
2332   -includedir | --includedir | --includedi | --included | --include \
2333   | --includ | --inclu | --incl | --inc)
2334     ac_prev=includedir ;;
2335   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2336   | --includ=* | --inclu=* | --incl=* | --inc=*)
2337     includedir=$ac_optarg ;;
2338
2339   -infodir | --infodir | --infodi | --infod | --info | --inf)
2340     ac_prev=infodir ;;
2341   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2342     infodir=$ac_optarg ;;
2343
2344   -libdir | --libdir | --libdi | --libd)
2345     ac_prev=libdir ;;
2346   -libdir=* | --libdir=* | --libdi=* | --libd=*)
2347     libdir=$ac_optarg ;;
2348
2349   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2350   | --libexe | --libex | --libe)
2351     ac_prev=libexecdir ;;
2352   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2353   | --libexe=* | --libex=* | --libe=*)
2354     libexecdir=$ac_optarg ;;
2355
2356   -localedir | --localedir | --localedi | --localed | --locale)
2357     ac_prev=localedir ;;
2358   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2359     localedir=$ac_optarg ;;
2360
2361   -localstatedir | --localstatedir | --localstatedi | --localstated \
2362   | --localstate | --localstat | --localsta | --localst | --locals)
2363     ac_prev=localstatedir ;;
2364   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2365   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2366     localstatedir=$ac_optarg ;;
2367
2368   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2369     ac_prev=mandir ;;
2370   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2371     mandir=$ac_optarg ;;
2372
2373   -nfp | --nfp | --nf)
2374     # Obsolete; use --without-fp.
2375     with_fp=no ;;
2376
2377   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2378   | --no-cr | --no-c | -n)
2379     no_create=yes ;;
2380
2381   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2382   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2383     no_recursion=yes ;;
2384
2385   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2386   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2387   | --oldin | --oldi | --old | --ol | --o)
2388     ac_prev=oldincludedir ;;
2389   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2390   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2391   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2392     oldincludedir=$ac_optarg ;;
2393
2394   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2395     ac_prev=prefix ;;
2396   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2397     prefix=$ac_optarg ;;
2398
2399   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2400   | --program-pre | --program-pr | --program-p)
2401     ac_prev=program_prefix ;;
2402   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2403   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2404     program_prefix=$ac_optarg ;;
2405
2406   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2407   | --program-suf | --program-su | --program-s)
2408     ac_prev=program_suffix ;;
2409   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2410   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2411     program_suffix=$ac_optarg ;;
2412
2413   -program-transform-name | --program-transform-name \
2414   | --program-transform-nam | --program-transform-na \
2415   | --program-transform-n | --program-transform- \
2416   | --program-transform | --program-transfor \
2417   | --program-transfo | --program-transf \
2418   | --program-trans | --program-tran \
2419   | --progr-tra | --program-tr | --program-t)
2420     ac_prev=program_transform_name ;;
2421   -program-transform-name=* | --program-transform-name=* \
2422   | --program-transform-nam=* | --program-transform-na=* \
2423   | --program-transform-n=* | --program-transform-=* \
2424   | --program-transform=* | --program-transfor=* \
2425   | --program-transfo=* | --program-transf=* \
2426   | --program-trans=* | --program-tran=* \
2427   | --progr-tra=* | --program-tr=* | --program-t=*)
2428     program_transform_name=$ac_optarg ;;
2429
2430   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2431     ac_prev=pdfdir ;;
2432   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2433     pdfdir=$ac_optarg ;;
2434
2435   -psdir | --psdir | --psdi | --psd | --ps)
2436     ac_prev=psdir ;;
2437   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2438     psdir=$ac_optarg ;;
2439
2440   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2441   | -silent | --silent | --silen | --sile | --sil)
2442     silent=yes ;;
2443
2444   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2445     ac_prev=sbindir ;;
2446   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2447   | --sbi=* | --sb=*)
2448     sbindir=$ac_optarg ;;
2449
2450   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2451   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2452   | --sharedst | --shareds | --shared | --share | --shar \
2453   | --sha | --sh)
2454     ac_prev=sharedstatedir ;;
2455   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2456   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2457   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2458   | --sha=* | --sh=*)
2459     sharedstatedir=$ac_optarg ;;
2460
2461   -site | --site | --sit)
2462     ac_prev=site ;;
2463   -site=* | --site=* | --sit=*)
2464     site=$ac_optarg ;;
2465
2466   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2467     ac_prev=srcdir ;;
2468   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2469     srcdir=$ac_optarg ;;
2470
2471   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2472   | --syscon | --sysco | --sysc | --sys | --sy)
2473     ac_prev=sysconfdir ;;
2474   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2475   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2476     sysconfdir=$ac_optarg ;;
2477
2478   -target | --target | --targe | --targ | --tar | --ta | --t)
2479     ac_prev=target_alias ;;
2480   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2481     target_alias=$ac_optarg ;;
2482
2483   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2484     verbose=yes ;;
2485
2486   -version | --version | --versio | --versi | --vers | -V)
2487     ac_init_version=: ;;
2488
2489   -with-* | --with-*)
2490     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2491     # Reject names that are not valid shell variable names.
2492     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2493       as_fn_error $? "invalid package name: $ac_useropt"
2494     ac_useropt_orig=$ac_useropt
2495     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2496     case $ac_user_opts in
2497       *"
2498 "with_$ac_useropt"
2499 "*) ;;
2500       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2501          ac_unrecognized_sep=', ';;
2502     esac
2503     eval with_$ac_useropt=\$ac_optarg ;;
2504
2505   -without-* | --without-*)
2506     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2507     # Reject names that are not valid shell variable names.
2508     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2509       as_fn_error $? "invalid package name: $ac_useropt"
2510     ac_useropt_orig=$ac_useropt
2511     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2512     case $ac_user_opts in
2513       *"
2514 "with_$ac_useropt"
2515 "*) ;;
2516       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2517          ac_unrecognized_sep=', ';;
2518     esac
2519     eval with_$ac_useropt=no ;;
2520
2521   --x)
2522     # Obsolete; use --with-x.
2523     with_x=yes ;;
2524
2525   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2526   | --x-incl | --x-inc | --x-in | --x-i)
2527     ac_prev=x_includes ;;
2528   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2529   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2530     x_includes=$ac_optarg ;;
2531
2532   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2533   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2534     ac_prev=x_libraries ;;
2535   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2536   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2537     x_libraries=$ac_optarg ;;
2538
2539   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2540 Try \`$0 --help' for more information"
2541     ;;
2542
2543   *=*)
2544     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2545     # Reject names that are not valid shell variable names.
2546     case $ac_envvar in #(
2547       '' | [0-9]* | *[!_$as_cr_alnum]* )
2548       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2549     esac
2550     eval $ac_envvar=\$ac_optarg
2551     export $ac_envvar ;;
2552
2553   *)
2554     # FIXME: should be removed in autoconf 3.0.
2555     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2556     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2557       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2558     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2559     ;;
2560
2561   esac
2562 done
2563
2564 if test -n "$ac_prev"; then
2565   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2566   as_fn_error $? "missing argument to $ac_option"
2567 fi
2568
2569 if test -n "$ac_unrecognized_opts"; then
2570   case $enable_option_checking in
2571     no) ;;
2572     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2573     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2574   esac
2575 fi
2576
2577 # Check all directory arguments for consistency.
2578 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2579                 datadir sysconfdir sharedstatedir localstatedir includedir \
2580                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2581                 libdir localedir mandir
2582 do
2583   eval ac_val=\$$ac_var
2584   # Remove trailing slashes.
2585   case $ac_val in
2586     */ )
2587       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2588       eval $ac_var=\$ac_val;;
2589   esac
2590   # Be sure to have absolute directory names.
2591   case $ac_val in
2592     [\\/$]* | ?:[\\/]* )  continue;;
2593     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2594   esac
2595   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2596 done
2597
2598 # There might be people who depend on the old broken behavior: `$host'
2599 # used to hold the argument of --host etc.
2600 # FIXME: To remove some day.
2601 build=$build_alias
2602 host=$host_alias
2603 target=$target_alias
2604
2605 # FIXME: To remove some day.
2606 if test "x$host_alias" != x; then
2607   if test "x$build_alias" = x; then
2608     cross_compiling=maybe
2609   elif test "x$build_alias" != "x$host_alias"; then
2610     cross_compiling=yes
2611   fi
2612 fi
2613
2614 ac_tool_prefix=
2615 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2616
2617 test "$silent" = yes && exec 6>/dev/null
2618
2619
2620 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2621 ac_ls_di=`ls -di .` &&
2622 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2623   as_fn_error $? "working directory cannot be determined"
2624 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2625   as_fn_error $? "pwd does not report name of working directory"
2626
2627
2628 # Find the source files, if location was not specified.
2629 if test -z "$srcdir"; then
2630   ac_srcdir_defaulted=yes
2631   # Try the directory containing this script, then the parent directory.
2632   ac_confdir=`$as_dirname -- "$as_myself" ||
2633 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2634          X"$as_myself" : 'X\(//\)[^/]' \| \
2635          X"$as_myself" : 'X\(//\)$' \| \
2636          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2637 $as_echo X"$as_myself" |
2638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2639             s//\1/
2640             q
2641           }
2642           /^X\(\/\/\)[^/].*/{
2643             s//\1/
2644             q
2645           }
2646           /^X\(\/\/\)$/{
2647             s//\1/
2648             q
2649           }
2650           /^X\(\/\).*/{
2651             s//\1/
2652             q
2653           }
2654           s/.*/./; q'`
2655   srcdir=$ac_confdir
2656   if test ! -r "$srcdir/$ac_unique_file"; then
2657     srcdir=..
2658   fi
2659 else
2660   ac_srcdir_defaulted=no
2661 fi
2662 if test ! -r "$srcdir/$ac_unique_file"; then
2663   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2664   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2665 fi
2666 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2667 ac_abs_confdir=`(
2668         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2669         pwd)`
2670 # When building in place, set srcdir=.
2671 if test "$ac_abs_confdir" = "$ac_pwd"; then
2672   srcdir=.
2673 fi
2674 # Remove unnecessary trailing slashes from srcdir.
2675 # Double slashes in file names in object file debugging info
2676 # mess up M-x gdb in Emacs.
2677 case $srcdir in
2678 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2679 esac
2680 for ac_var in $ac_precious_vars; do
2681   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2682   eval ac_env_${ac_var}_value=\$${ac_var}
2683   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2684   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2685 done
2686
2687 #
2688 # Report the --help message.
2689 #
2690 if test "$ac_init_help" = "long"; then
2691   # Omit some internal or obsolete options to make the list less imposing.
2692   # This message is too long to be a string in the A/UX 3.1 sh.
2693   cat <<_ACEOF
2694 \`configure' configures gettext-tools 0.19.8 to adapt to many kinds of systems.
2695
2696 Usage: $0 [OPTION]... [VAR=VALUE]...
2697
2698 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2699 VAR=VALUE.  See below for descriptions of some of the useful variables.
2700
2701 Defaults for the options are specified in brackets.
2702
2703 Configuration:
2704   -h, --help              display this help and exit
2705       --help=short        display options specific to this package
2706       --help=recursive    display the short help of all the included packages
2707   -V, --version           display version information and exit
2708   -q, --quiet, --silent   do not print \`checking ...' messages
2709       --cache-file=FILE   cache test results in FILE [disabled]
2710   -C, --config-cache      alias for \`--cache-file=config.cache'
2711   -n, --no-create         do not create output files
2712       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2713
2714 Installation directories:
2715   --prefix=PREFIX         install architecture-independent files in PREFIX
2716                           [$ac_default_prefix]
2717   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2718                           [PREFIX]
2719
2720 By default, \`make install' will install all the files in
2721 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2722 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2723 for instance \`--prefix=\$HOME'.
2724
2725 For better control, use the options below.
2726
2727 Fine tuning of the installation directories:
2728   --bindir=DIR            user executables [EPREFIX/bin]
2729   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2730   --libexecdir=DIR        program executables [EPREFIX/libexec]
2731   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2732   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2733   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2734   --libdir=DIR            object code libraries [EPREFIX/lib]
2735   --includedir=DIR        C header files [PREFIX/include]
2736   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2737   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2738   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2739   --infodir=DIR           info documentation [DATAROOTDIR/info]
2740   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2741   --mandir=DIR            man documentation [DATAROOTDIR/man]
2742   --docdir=DIR            documentation root [DATAROOTDIR/doc/gettext-tools]
2743   --htmldir=DIR           html documentation [DOCDIR]
2744   --dvidir=DIR            dvi documentation [DOCDIR]
2745   --pdfdir=DIR            pdf documentation [DOCDIR]
2746   --psdir=DIR             ps documentation [DOCDIR]
2747 _ACEOF
2748
2749   cat <<\_ACEOF
2750
2751 Program names:
2752   --program-prefix=PREFIX            prepend PREFIX to installed program names
2753   --program-suffix=SUFFIX            append SUFFIX to installed program names
2754   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2755
2756 System types:
2757   --build=BUILD     configure for building on BUILD [guessed]
2758   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2759 _ACEOF
2760 fi
2761
2762 if test -n "$ac_init_help"; then
2763   case $ac_init_help in
2764      short | recursive ) echo "Configuration of gettext-tools 0.19.8:";;
2765    esac
2766   cat <<\_ACEOF
2767
2768 Optional Features:
2769   --disable-option-checking  ignore unrecognized --enable/--with options
2770   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2771   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2772   --enable-silent-rules   less verbose build output (undo: "make V=1")
2773   --disable-silent-rules  verbose build output (undo: "make V=0")
2774   --enable-dependency-tracking
2775                           do not reject slow dependency extractors
2776   --disable-dependency-tracking
2777                           speeds up one-time build
2778   --disable-java          do not build Java sources
2779   --disable-native-java   do not compile Java to native executables
2780   --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
2781   --disable-largefile     omit support for large files
2782   --enable-threads={posix|solaris|pth|windows}
2783                           specify multithreading API
2784   --disable-threads       build without multithread safety
2785   --enable-shared[=PKGS]  build shared libraries [default=yes]
2786   --enable-static[=PKGS]  build static libraries [default=yes]
2787   --enable-fast-install[=PKGS]
2788                           optimize for fast installation [default=yes]
2789   --disable-libtool-lock  avoid locking (might break parallel builds)
2790   --disable-nls           do not use Native Language Support
2791   --disable-rpath         do not hardcode runtime library paths
2792   --disable-acl           do not support ACLs
2793   --disable-c++           do not build C++ sources
2794   --disable-openmp        do not use OpenMP
2795   --enable-relocatable    install a package that can be moved in the file
2796                           system
2797   --disable-curses        do not use libncurses, libtermcap even if they exist
2798
2799 Optional Packages:
2800   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2801   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2802   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2803                           both]
2804   --with-aix-soname=aix|svr4|both
2805                           shared library versioning (aka "SONAME") variant to
2806                           provide on AIX, [default=aix].
2807   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2808   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2809                           compiler's sysroot if not specified).
2810   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2811   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2812   --without-libpth-prefix     don't search for libpth in includedir and libdir
2813   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2814   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2815   --with-included-gettext use the GNU gettext library included here
2816   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2817   --without-libintl-prefix     don't search for libintl in includedir and libdir
2818   --with-included-glib    use the glib2 included here
2819   --with-libglib-2.0-prefix[=DIR]  search for libglib-2.0 in DIR/include and DIR/lib
2820   --without-libglib-2.0-prefix     don't search for libglib-2.0 in includedir and libdir
2821   --with-included-libcroco  use the libcroco included here
2822   --with-libcroco-0.6-prefix[=DIR]  search for libcroco-0.6 in DIR/include and DIR/lib
2823   --without-libcroco-0.6-prefix     don't search for libcroco-0.6 in includedir and libdir
2824   --with-included-libunistring  use the libunistring parts included here
2825   --with-libunistring-prefix[=DIR]  search for libunistring in DIR/include and DIR/lib
2826   --without-libunistring-prefix     don't search for libunistring in includedir and libdir
2827   --with-included-libxml  use the libxml2 included here
2828   --with-libxml2-prefix[=DIR]  search for libxml2 in DIR/include and DIR/lib
2829   --without-libxml2-prefix     don't search for libxml2 in includedir and libdir
2830   --with-libncurses-prefix[=DIR]  search for libncurses in DIR/include and DIR/lib
2831   --without-libncurses-prefix     don't search for libncurses in includedir and libdir
2832   --with-libtermcap-prefix[=DIR]  search for libtermcap in DIR/include and DIR/lib
2833   --without-libtermcap-prefix     don't search for libtermcap in includedir and libdir
2834   --with-libxcurses-prefix[=DIR]  search for libxcurses in DIR/include and DIR/lib
2835   --without-libxcurses-prefix     don't search for libxcurses in includedir and libdir
2836   --with-libcurses-prefix[=DIR]  search for libcurses in DIR/include and DIR/lib
2837   --without-libcurses-prefix     don't search for libcurses in includedir and libdir
2838   --without-included-regex
2839                           don't compile regex; this is the default on systems
2840                           with recent-enough versions of the GNU C Library
2841                           (use with caution on other systems).
2842   --without-emacs         do not use Emacs, don't install po-mode
2843   --with-lispdir          override the default lisp directory
2844   --without-git           don't use git to compress the infrastructure archive
2845   --with-cvs              use cvs to compress the infrastructure archive
2846                           (deprecated)
2847   --without-bzip2         don't use bzip2 to compress the infrastructure archive
2848   --without-xz            don't use xz to compress the infrastructure archive
2849
2850 Some influential environment variables:
2851   CC          C compiler command
2852   CFLAGS      C compiler flags
2853   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2854               nonstandard directory <lib dir>
2855   LIBS        libraries to pass to the linker, e.g. -l<library>
2856   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2857               you have headers in a nonstandard directory <include dir>
2858   YACC        The `Yet Another Compiler Compiler' implementation to use.
2859               Defaults to the first program found out of: `bison -y', `byacc',
2860               `yacc'.
2861   YFLAGS      The list of arguments that will be passed by default to $YACC.
2862               This script will default YFLAGS to the empty string to avoid a
2863               default value of `-d' given by some make applications.
2864   GCJ         Java native code compiler command
2865   GCJFLAGS    Java native code compiler flags
2866   CPP         C preprocessor
2867   LT_SYS_LIBRARY_PATH
2868               User-defined run-time library search path.
2869   CXX         C++ compiler command
2870   CXXFLAGS    C++ compiler flags
2871   EMACS       the Emacs editor command
2872   EMACSLOADPATH
2873               the Emacs library search path
2874   CXXCPP      C++ preprocessor
2875
2876 Use these variables to override the choices made by `configure' or to help
2877 it to find libraries and programs with nonstandard names/locations.
2878
2879 Report bugs to <bug-gnu-gettext@gnu.org>.
2880 _ACEOF
2881 ac_status=$?
2882 fi
2883
2884 if test "$ac_init_help" = "recursive"; then
2885   # If there are subdirs, report their specific --help.
2886   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2887     test -d "$ac_dir" ||
2888       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2889       continue
2890     ac_builddir=.
2891
2892 case "$ac_dir" in
2893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2894 *)
2895   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2896   # A ".." for each directory in $ac_dir_suffix.
2897   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2898   case $ac_top_builddir_sub in
2899   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2900   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2901   esac ;;
2902 esac
2903 ac_abs_top_builddir=$ac_pwd
2904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2905 # for backward compatibility:
2906 ac_top_builddir=$ac_top_build_prefix
2907
2908 case $srcdir in
2909   .)  # We are building in place.
2910     ac_srcdir=.
2911     ac_top_srcdir=$ac_top_builddir_sub
2912     ac_abs_top_srcdir=$ac_pwd ;;
2913   [\\/]* | ?:[\\/]* )  # Absolute name.
2914     ac_srcdir=$srcdir$ac_dir_suffix;
2915     ac_top_srcdir=$srcdir
2916     ac_abs_top_srcdir=$srcdir ;;
2917   *) # Relative name.
2918     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2919     ac_top_srcdir=$ac_top_build_prefix$srcdir
2920     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2921 esac
2922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2923
2924     cd "$ac_dir" || { ac_status=$?; continue; }
2925     # Check for guested configure.
2926     if test -f "$ac_srcdir/configure.gnu"; then
2927       echo &&
2928       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2929     elif test -f "$ac_srcdir/configure"; then
2930       echo &&
2931       $SHELL "$ac_srcdir/configure" --help=recursive
2932     else
2933       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2934     fi || ac_status=$?
2935     cd "$ac_pwd" || { ac_status=$?; break; }
2936   done
2937 fi
2938
2939 test -n "$ac_init_help" && exit $ac_status
2940 if $ac_init_version; then
2941   cat <<\_ACEOF
2942 gettext-tools configure 0.19.8
2943 generated by GNU Autoconf 2.69
2944
2945 Copyright (C) 2012 Free Software Foundation, Inc.
2946 This configure script is free software; the Free Software Foundation
2947 gives unlimited permission to copy, distribute and modify it.
2948 _ACEOF
2949   exit
2950 fi
2951
2952 ## ------------------------ ##
2953 ## Autoconf initialization. ##
2954 ## ------------------------ ##
2955
2956 # ac_fn_c_try_compile LINENO
2957 # --------------------------
2958 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2959 ac_fn_c_try_compile ()
2960 {
2961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2962   rm -f conftest.$ac_objext
2963   if { { ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970   (eval "$ac_compile") 2>conftest.err
2971   ac_status=$?
2972   if test -s conftest.err; then
2973     grep -v '^ *+' conftest.err >conftest.er1
2974     cat conftest.er1 >&5
2975     mv -f conftest.er1 conftest.err
2976   fi
2977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2978   test $ac_status = 0; } && {
2979          test -z "$ac_c_werror_flag" ||
2980          test ! -s conftest.err
2981        } && test -s conftest.$ac_objext; then :
2982   ac_retval=0
2983 else
2984   $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987         ac_retval=1
2988 fi
2989   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2990   as_fn_set_status $ac_retval
2991
2992 } # ac_fn_c_try_compile
2993
2994 # ac_fn_c_try_cpp LINENO
2995 # ----------------------
2996 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2997 ac_fn_c_try_cpp ()
2998 {
2999   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3000   if { { ac_try="$ac_cpp conftest.$ac_ext"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3008   ac_status=$?
3009   if test -s conftest.err; then
3010     grep -v '^ *+' conftest.err >conftest.er1
3011     cat conftest.er1 >&5
3012     mv -f conftest.er1 conftest.err
3013   fi
3014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015   test $ac_status = 0; } > conftest.i && {
3016          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3017          test ! -s conftest.err
3018        }; then :
3019   ac_retval=0
3020 else
3021   $as_echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024     ac_retval=1
3025 fi
3026   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3027   as_fn_set_status $ac_retval
3028
3029 } # ac_fn_c_try_cpp
3030
3031 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3032 # -------------------------------------------------------
3033 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
3034 # the include files in INCLUDES and setting the cache variable VAR
3035 # accordingly.
3036 ac_fn_c_check_header_mongrel ()
3037 {
3038   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3039   if eval \${$3+:} false; then :
3040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3041 $as_echo_n "checking for $2... " >&6; }
3042 if eval \${$3+:} false; then :
3043   $as_echo_n "(cached) " >&6
3044 fi
3045 eval ac_res=\$$3
3046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3047 $as_echo "$ac_res" >&6; }
3048 else
3049   # Is the header compilable?
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3051 $as_echo_n "checking $2 usability... " >&6; }
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h.  */
3054 $4
3055 #include <$2>
3056 _ACEOF
3057 if ac_fn_c_try_compile "$LINENO"; then :
3058   ac_header_compiler=yes
3059 else
3060   ac_header_compiler=no
3061 fi
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3064 $as_echo "$ac_header_compiler" >&6; }
3065
3066 # Is the header present?
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3068 $as_echo_n "checking $2 presence... " >&6; }
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h.  */
3071 #include <$2>
3072 _ACEOF
3073 if ac_fn_c_try_cpp "$LINENO"; then :
3074   ac_header_preproc=yes
3075 else
3076   ac_header_preproc=no
3077 fi
3078 rm -f conftest.err conftest.i conftest.$ac_ext
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3080 $as_echo "$ac_header_preproc" >&6; }
3081
3082 # So?  What about this header?
3083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3084   yes:no: )
3085     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3086 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3088 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3089     ;;
3090   no:yes:* )
3091     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3092 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3093     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3094 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3095     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3096 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3097     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3098 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3099     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3100 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3101 ( $as_echo "## -------------------------------------- ##
3102 ## Report this to bug-gnu-gettext@gnu.org ##
3103 ## -------------------------------------- ##"
3104      ) | sed "s/^/$as_me: WARNING:     /" >&2
3105     ;;
3106 esac
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3108 $as_echo_n "checking for $2... " >&6; }
3109 if eval \${$3+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   eval "$3=\$ac_header_compiler"
3113 fi
3114 eval ac_res=\$$3
3115                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3116 $as_echo "$ac_res" >&6; }
3117 fi
3118   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3119
3120 } # ac_fn_c_check_header_mongrel
3121
3122 # ac_fn_c_try_run LINENO
3123 # ----------------------
3124 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3125 # that executables *can* be run.
3126 ac_fn_c_try_run ()
3127 {
3128   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3129   if { { ac_try="$ac_link"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135 $as_echo "$ac_try_echo"; } >&5
3136   (eval "$ac_link") 2>&5
3137   ac_status=$?
3138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3140   { { case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146   (eval "$ac_try") 2>&5
3147   ac_status=$?
3148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149   test $ac_status = 0; }; }; then :
3150   ac_retval=0
3151 else
3152   $as_echo "$as_me: program exited with status $ac_status" >&5
3153        $as_echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156        ac_retval=$ac_status
3157 fi
3158   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3159   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3160   as_fn_set_status $ac_retval
3161
3162 } # ac_fn_c_try_run
3163
3164 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3165 # -------------------------------------------------------
3166 # Tests whether HEADER exists and can be compiled using the include files in
3167 # INCLUDES, setting the cache variable VAR accordingly.
3168 ac_fn_c_check_header_compile ()
3169 {
3170   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3172 $as_echo_n "checking for $2... " >&6; }
3173 if eval \${$3+:} false; then :
3174   $as_echo_n "(cached) " >&6
3175 else
3176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h.  */
3178 $4
3179 #include <$2>
3180 _ACEOF
3181 if ac_fn_c_try_compile "$LINENO"; then :
3182   eval "$3=yes"
3183 else
3184   eval "$3=no"
3185 fi
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 fi
3188 eval ac_res=\$$3
3189                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3190 $as_echo "$ac_res" >&6; }
3191   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3192
3193 } # ac_fn_c_check_header_compile
3194
3195 # ac_fn_c_try_link LINENO
3196 # -----------------------
3197 # Try to link conftest.$ac_ext, and return whether this succeeded.
3198 ac_fn_c_try_link ()
3199 {
3200   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3201   rm -f conftest.$ac_objext conftest$ac_exeext
3202   if { { ac_try="$ac_link"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209   (eval "$ac_link") 2>conftest.err
3210   ac_status=$?
3211   if test -s conftest.err; then
3212     grep -v '^ *+' conftest.err >conftest.er1
3213     cat conftest.er1 >&5
3214     mv -f conftest.er1 conftest.err
3215   fi
3216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217   test $ac_status = 0; } && {
3218          test -z "$ac_c_werror_flag" ||
3219          test ! -s conftest.err
3220        } && test -s conftest$ac_exeext && {
3221          test "$cross_compiling" = yes ||
3222          test -x conftest$ac_exeext
3223        }; then :
3224   ac_retval=0
3225 else
3226   $as_echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229         ac_retval=1
3230 fi
3231   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3232   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3233   # interfere with the next link command; also delete a directory that is
3234   # left behind by Apple's compiler.  We do this before executing the actions.
3235   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3236   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3237   as_fn_set_status $ac_retval
3238
3239 } # ac_fn_c_try_link
3240
3241 # ac_fn_c_check_func LINENO FUNC VAR
3242 # ----------------------------------
3243 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3244 ac_fn_c_check_func ()
3245 {
3246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3248 $as_echo_n "checking for $2... " >&6; }
3249 if eval \${$3+:} false; then :
3250   $as_echo_n "(cached) " >&6
3251 else
3252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h.  */
3254 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3256 #define $2 innocuous_$2
3257
3258 /* System header to define __stub macros and hopefully few prototypes,
3259     which can conflict with char $2 (); below.
3260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3261     <limits.h> exists even on freestanding compilers.  */
3262
3263 #ifdef __STDC__
3264 # include <limits.h>
3265 #else
3266 # include <assert.h>
3267 #endif
3268
3269 #undef $2
3270
3271 /* Override any GCC internal prototype to avoid an error.
3272    Use char because int might match the return type of a GCC
3273    builtin and then its argument prototype would still apply.  */
3274 #ifdef __cplusplus
3275 extern "C"
3276 #endif
3277 char $2 ();
3278 /* The GNU C library defines this for functions which it implements
3279     to always fail with ENOSYS.  Some functions are actually named
3280     something starting with __ and the normal name is an alias.  */
3281 #if defined __stub_$2 || defined __stub___$2
3282 choke me
3283 #endif
3284
3285 int
3286 main ()
3287 {
3288 return $2 ();
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 if ac_fn_c_try_link "$LINENO"; then :
3294   eval "$3=yes"
3295 else
3296   eval "$3=no"
3297 fi
3298 rm -f core conftest.err conftest.$ac_objext \
3299     conftest$ac_exeext conftest.$ac_ext
3300 fi
3301 eval ac_res=\$$3
3302                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3303 $as_echo "$ac_res" >&6; }
3304   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3305
3306 } # ac_fn_c_check_func
3307
3308 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3309 # -------------------------------------------
3310 # Tests whether TYPE exists after having included INCLUDES, setting cache
3311 # variable VAR accordingly.
3312 ac_fn_c_check_type ()
3313 {
3314   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3316 $as_echo_n "checking for $2... " >&6; }
3317 if eval \${$3+:} false; then :
3318   $as_echo_n "(cached) " >&6
3319 else
3320   eval "$3=no"
3321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h.  */
3323 $4
3324 int
3325 main ()
3326 {
3327 if (sizeof ($2))
3328          return 0;
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h.  */
3336 $4
3337 int
3338 main ()
3339 {
3340 if (sizeof (($2)))
3341             return 0;
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 if ac_fn_c_try_compile "$LINENO"; then :
3347
3348 else
3349   eval "$3=yes"
3350 fi
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 fi
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 fi
3355 eval ac_res=\$$3
3356                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3357 $as_echo "$ac_res" >&6; }
3358   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3359
3360 } # ac_fn_c_check_type
3361
3362 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3363 # ---------------------------------------------
3364 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3365 # accordingly.
3366 ac_fn_c_check_decl ()
3367 {
3368   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3369   as_decl_name=`echo $2|sed 's/ *(.*//'`
3370   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3372 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3373 if eval \${$3+:} false; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h.  */
3378 $4
3379 int
3380 main ()
3381 {
3382 #ifndef $as_decl_name
3383 #ifdef __cplusplus
3384   (void) $as_decl_use;
3385 #else
3386   (void) $as_decl_name;
3387 #endif
3388 #endif
3389
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395   eval "$3=yes"
3396 else
3397   eval "$3=no"
3398 fi
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 fi
3401 eval ac_res=\$$3
3402                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3403 $as_echo "$ac_res" >&6; }
3404   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3405
3406 } # ac_fn_c_check_decl
3407
3408 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3409 # --------------------------------------------
3410 # Tries to find the compile-time value of EXPR in a program that includes
3411 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3412 # computed
3413 ac_fn_c_compute_int ()
3414 {
3415   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3416   if test "$cross_compiling" = yes; then
3417     # Depending upon the size, compute the lo and hi bounds.
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h.  */
3420 $4
3421 int
3422 main ()
3423 {
3424 static int test_array [1 - 2 * !(($2) >= 0)];
3425 test_array [0] = 0;
3426 return test_array [0];
3427
3428   ;
3429   return 0;
3430 }
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3433   ac_lo=0 ac_mid=0
3434   while :; do
3435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h.  */
3437 $4
3438 int
3439 main ()
3440 {
3441 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3442 test_array [0] = 0;
3443 return test_array [0];
3444
3445   ;
3446   return 0;
3447 }
3448 _ACEOF
3449 if ac_fn_c_try_compile "$LINENO"; then :
3450   ac_hi=$ac_mid; break
3451 else
3452   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3453                         if test $ac_lo -le $ac_mid; then
3454                           ac_lo= ac_hi=
3455                           break
3456                         fi
3457                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460   done
3461 else
3462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h.  */
3464 $4
3465 int
3466 main ()
3467 {
3468 static int test_array [1 - 2 * !(($2) < 0)];
3469 test_array [0] = 0;
3470 return test_array [0];
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477   ac_hi=-1 ac_mid=-1
3478   while :; do
3479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h.  */
3481 $4
3482 int
3483 main ()
3484 {
3485 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3486 test_array [0] = 0;
3487 return test_array [0];
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494   ac_lo=$ac_mid; break
3495 else
3496   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3497                         if test $ac_mid -le $ac_hi; then
3498                           ac_lo= ac_hi=
3499                           break
3500                         fi
3501                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3502 fi
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504   done
3505 else
3506   ac_lo= ac_hi=
3507 fi
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 # Binary search between lo and hi bounds.
3512 while test "x$ac_lo" != "x$ac_hi"; do
3513   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3516 $4
3517 int
3518 main ()
3519 {
3520 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3521 test_array [0] = 0;
3522 return test_array [0];
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529   ac_hi=$ac_mid
3530 else
3531   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 done
3535 case $ac_lo in #((
3536 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3537 '') ac_retval=1 ;;
3538 esac
3539   else
3540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h.  */
3542 $4
3543 static long int longval () { return $2; }
3544 static unsigned long int ulongval () { return $2; }
3545 #include <stdio.h>
3546 #include <stdlib.h>
3547 int
3548 main ()
3549 {
3550
3551   FILE *f = fopen ("conftest.val", "w");
3552   if (! f)
3553     return 1;
3554   if (($2) < 0)
3555     {
3556       long int i = longval ();
3557       if (i != ($2))
3558         return 1;
3559       fprintf (f, "%ld", i);
3560     }
3561   else
3562     {
3563       unsigned long int i = ulongval ();
3564       if (i != ($2))
3565         return 1;
3566       fprintf (f, "%lu", i);
3567     }
3568   /* Do not output a trailing newline, as this causes \r\n confusion
3569      on some platforms.  */
3570   return ferror (f) || fclose (f) != 0;
3571
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_run "$LINENO"; then :
3577   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3578 else
3579   ac_retval=1
3580 fi
3581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3582   conftest.$ac_objext conftest.beam conftest.$ac_ext
3583 rm -f conftest.val
3584
3585   fi
3586   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3587   as_fn_set_status $ac_retval
3588
3589 } # ac_fn_c_compute_int
3590
3591 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3592 # ----------------------------------------------------
3593 # Tries to find if the field MEMBER exists in type AGGR, after including
3594 # INCLUDES, setting cache variable VAR accordingly.
3595 ac_fn_c_check_member ()
3596 {
3597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3599 $as_echo_n "checking for $2.$3... " >&6; }
3600 if eval \${$4+:} false; then :
3601   $as_echo_n "(cached) " >&6
3602 else
3603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h.  */
3605 $5
3606 int
3607 main ()
3608 {
3609 static $2 ac_aggr;
3610 if (ac_aggr.$3)
3611 return 0;
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617   eval "$4=yes"
3618 else
3619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621 $5
3622 int
3623 main ()
3624 {
3625 static $2 ac_aggr;
3626 if (sizeof ac_aggr.$3)
3627 return 0;
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633   eval "$4=yes"
3634 else
3635   eval "$4=no"
3636 fi
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 fi
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 fi
3641 eval ac_res=\$$4
3642                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3643 $as_echo "$ac_res" >&6; }
3644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3645
3646 } # ac_fn_c_check_member
3647
3648 # ac_fn_cxx_try_compile LINENO
3649 # ----------------------------
3650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
3651 ac_fn_cxx_try_compile ()
3652 {
3653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3654   rm -f conftest.$ac_objext
3655   if { { ac_try="$ac_compile"
3656 case "(($ac_try" in
3657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658   *) ac_try_echo=$ac_try;;
3659 esac
3660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661 $as_echo "$ac_try_echo"; } >&5
3662   (eval "$ac_compile") 2>conftest.err
3663   ac_status=$?
3664   if test -s conftest.err; then
3665     grep -v '^ *+' conftest.err >conftest.er1
3666     cat conftest.er1 >&5
3667     mv -f conftest.er1 conftest.err
3668   fi
3669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670   test $ac_status = 0; } && {
3671          test -z "$ac_cxx_werror_flag" ||
3672          test ! -s conftest.err
3673        } && test -s conftest.$ac_objext; then :
3674   ac_retval=0
3675 else
3676   $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679         ac_retval=1
3680 fi
3681   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3682   as_fn_set_status $ac_retval
3683
3684 } # ac_fn_cxx_try_compile
3685
3686 # ac_fn_cxx_try_cpp LINENO
3687 # ------------------------
3688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3689 ac_fn_cxx_try_cpp ()
3690 {
3691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3692   if { { ac_try="$ac_cpp conftest.$ac_ext"
3693 case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3700   ac_status=$?
3701   if test -s conftest.err; then
3702     grep -v '^ *+' conftest.err >conftest.er1
3703     cat conftest.er1 >&5
3704     mv -f conftest.er1 conftest.err
3705   fi
3706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707   test $ac_status = 0; } > conftest.i && {
3708          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3709          test ! -s conftest.err
3710        }; then :
3711   ac_retval=0
3712 else
3713   $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716     ac_retval=1
3717 fi
3718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3719   as_fn_set_status $ac_retval
3720
3721 } # ac_fn_cxx_try_cpp
3722
3723 # ac_fn_cxx_try_link LINENO
3724 # -------------------------
3725 # Try to link conftest.$ac_ext, and return whether this succeeded.
3726 ac_fn_cxx_try_link ()
3727 {
3728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3729   rm -f conftest.$ac_objext conftest$ac_exeext
3730   if { { ac_try="$ac_link"
3731 case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737   (eval "$ac_link") 2>conftest.err
3738   ac_status=$?
3739   if test -s conftest.err; then
3740     grep -v '^ *+' conftest.err >conftest.er1
3741     cat conftest.er1 >&5
3742     mv -f conftest.er1 conftest.err
3743   fi
3744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745   test $ac_status = 0; } && {
3746          test -z "$ac_cxx_werror_flag" ||
3747          test ! -s conftest.err
3748        } && test -s conftest$ac_exeext && {
3749          test "$cross_compiling" = yes ||
3750          test -x conftest$ac_exeext
3751        }; then :
3752   ac_retval=0
3753 else
3754   $as_echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757         ac_retval=1
3758 fi
3759   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3760   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3761   # interfere with the next link command; also delete a directory that is
3762   # left behind by Apple's compiler.  We do this before executing the actions.
3763   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3765   as_fn_set_status $ac_retval
3766
3767 } # ac_fn_cxx_try_link
3768 cat >config.log <<_ACEOF
3769 This file contains any messages produced by compilers while
3770 running configure, to aid debugging if configure makes a mistake.
3771
3772 It was created by gettext-tools $as_me 0.19.8, which was
3773 generated by GNU Autoconf 2.69.  Invocation command line was
3774
3775   $ $0 $@
3776
3777 _ACEOF
3778 exec 5>>config.log
3779 {
3780 cat <<_ASUNAME
3781 ## --------- ##
3782 ## Platform. ##
3783 ## --------- ##
3784
3785 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3786 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3787 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3788 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3789 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3790
3791 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3792 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3793
3794 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3795 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3796 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3797 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3798 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3799 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3800 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3801
3802 _ASUNAME
3803
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809     $as_echo "PATH: $as_dir"
3810   done
3811 IFS=$as_save_IFS
3812
3813 } >&5
3814
3815 cat >&5 <<_ACEOF
3816
3817
3818 ## ----------- ##
3819 ## Core tests. ##
3820 ## ----------- ##
3821
3822 _ACEOF
3823
3824
3825 # Keep a trace of the command line.
3826 # Strip out --no-create and --no-recursion so they do not pile up.
3827 # Strip out --silent because we don't want to record it for future runs.
3828 # Also quote any args containing shell meta-characters.
3829 # Make two passes to allow for proper duplicate-argument suppression.
3830 ac_configure_args=
3831 ac_configure_args0=
3832 ac_configure_args1=
3833 ac_must_keep_next=false
3834 for ac_pass in 1 2
3835 do
3836   for ac_arg
3837   do
3838     case $ac_arg in
3839     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3840     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3841     | -silent | --silent | --silen | --sile | --sil)
3842       continue ;;
3843     *\'*)
3844       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3845     esac
3846     case $ac_pass in
3847     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3848     2)
3849       as_fn_append ac_configure_args1 " '$ac_arg'"
3850       if test $ac_must_keep_next = true; then
3851         ac_must_keep_next=false # Got value, back to normal.
3852       else
3853         case $ac_arg in
3854           *=* | --config-cache | -C | -disable-* | --disable-* \
3855           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3856           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3857           | -with-* | --with-* | -without-* | --without-* | --x)
3858             case "$ac_configure_args0 " in
3859               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3860             esac
3861             ;;
3862           -* ) ac_must_keep_next=true ;;
3863         esac
3864       fi
3865       as_fn_append ac_configure_args " '$ac_arg'"
3866       ;;
3867     esac
3868   done
3869 done
3870 { ac_configure_args0=; unset ac_configure_args0;}
3871 { ac_configure_args1=; unset ac_configure_args1;}
3872
3873 # When interrupted or exit'd, cleanup temporary files, and complete
3874 # config.log.  We remove comments because anyway the quotes in there
3875 # would cause problems or look ugly.
3876 # WARNING: Use '\'' to represent an apostrophe within the trap.
3877 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3878 trap 'exit_status=$?
3879   # Save into config.log some information that might help in debugging.
3880   {
3881     echo
3882
3883     $as_echo "## ---------------- ##
3884 ## Cache variables. ##
3885 ## ---------------- ##"
3886     echo
3887     # The following way of writing the cache mishandles newlines in values,
3888 (
3889   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3890     eval ac_val=\$$ac_var
3891     case $ac_val in #(
3892     *${as_nl}*)
3893       case $ac_var in #(
3894       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3895 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3896       esac
3897       case $ac_var in #(
3898       _ | IFS | as_nl) ;; #(
3899       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3900       *) { eval $ac_var=; unset $ac_var;} ;;
3901       esac ;;
3902     esac
3903   done
3904   (set) 2>&1 |
3905     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3906     *${as_nl}ac_space=\ *)
3907       sed -n \
3908         "s/'\''/'\''\\\\'\'''\''/g;
3909           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3910       ;; #(
3911     *)
3912       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3913       ;;
3914     esac |
3915     sort
3916 )
3917     echo
3918
3919     $as_echo "## ----------------- ##
3920 ## Output variables. ##
3921 ## ----------------- ##"
3922     echo
3923     for ac_var in $ac_subst_vars
3924     do
3925       eval ac_val=\$$ac_var
3926       case $ac_val in
3927       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3928       esac
3929       $as_echo "$ac_var='\''$ac_val'\''"
3930     done | sort
3931     echo
3932
3933     if test -n "$ac_subst_files"; then
3934       $as_echo "## ------------------- ##
3935 ## File substitutions. ##
3936 ## ------------------- ##"
3937       echo
3938       for ac_var in $ac_subst_files
3939       do
3940         eval ac_val=\$$ac_var
3941         case $ac_val in
3942         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3943         esac
3944         $as_echo "$ac_var='\''$ac_val'\''"
3945       done | sort
3946       echo
3947     fi
3948
3949     if test -s confdefs.h; then
3950       $as_echo "## ----------- ##
3951 ## confdefs.h. ##
3952 ## ----------- ##"
3953       echo
3954       cat confdefs.h
3955       echo
3956     fi
3957     test "$ac_signal" != 0 &&
3958       $as_echo "$as_me: caught signal $ac_signal"
3959     $as_echo "$as_me: exit $exit_status"
3960   } >&5
3961   rm -f core *.core core.conftest.* &&
3962     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3963     exit $exit_status
3964 ' 0
3965 for ac_signal in 1 2 13 15; do
3966   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3967 done
3968 ac_signal=0
3969
3970 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3971 rm -f -r conftest* confdefs.h
3972
3973 $as_echo "/* confdefs.h */" > confdefs.h
3974
3975 # Predefined preprocessor variables.
3976
3977 cat >>confdefs.h <<_ACEOF
3978 #define PACKAGE_NAME "$PACKAGE_NAME"
3979 _ACEOF
3980
3981 cat >>confdefs.h <<_ACEOF
3982 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3983 _ACEOF
3984
3985 cat >>confdefs.h <<_ACEOF
3986 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3987 _ACEOF
3988
3989 cat >>confdefs.h <<_ACEOF
3990 #define PACKAGE_STRING "$PACKAGE_STRING"
3991 _ACEOF
3992
3993 cat >>confdefs.h <<_ACEOF
3994 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3995 _ACEOF
3996
3997 cat >>confdefs.h <<_ACEOF
3998 #define PACKAGE_URL "$PACKAGE_URL"
3999 _ACEOF
4000
4001
4002 # Let the site file select an alternate cache file if it wants to.
4003 # Prefer an explicitly selected file to automatically selected ones.
4004 ac_site_file1=NONE
4005 ac_site_file2=NONE
4006 if test -n "$CONFIG_SITE"; then
4007   # We do not want a PATH search for config.site.
4008   case $CONFIG_SITE in #((
4009     -*)  ac_site_file1=./$CONFIG_SITE;;
4010     */*) ac_site_file1=$CONFIG_SITE;;
4011     *)   ac_site_file1=./$CONFIG_SITE;;
4012   esac
4013 elif test "x$prefix" != xNONE; then
4014   ac_site_file1=$prefix/share/config.site
4015   ac_site_file2=$prefix/etc/config.site
4016 else
4017   ac_site_file1=$ac_default_prefix/share/config.site
4018   ac_site_file2=$ac_default_prefix/etc/config.site
4019 fi
4020 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
4021 do
4022   test "x$ac_site_file" = xNONE && continue
4023   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
4024     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
4025 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
4026     sed 's/^/| /' "$ac_site_file" >&5
4027     . "$ac_site_file" \
4028       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error $? "failed to load site script $ac_site_file
4031 See \`config.log' for more details" "$LINENO" 5; }
4032   fi
4033 done
4034
4035 if test -r "$cache_file"; then
4036   # Some versions of bash will fail to source /dev/null (special files
4037   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
4038   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4039     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4040 $as_echo "$as_me: loading cache $cache_file" >&6;}
4041     case $cache_file in
4042       [\\/]* | ?:[\\/]* ) . "$cache_file";;
4043       *)                      . "./$cache_file";;
4044     esac
4045   fi
4046 else
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4048 $as_echo "$as_me: creating cache $cache_file" >&6;}
4049   >$cache_file
4050 fi
4051
4052 gt_needs="$gt_needs need-ngettext"
4053 as_fn_append ac_header_list " stdlib.h"
4054 as_fn_append ac_header_list " unistd.h"
4055 as_fn_append ac_header_list " sys/param.h"
4056 as_fn_append ac_func_list " symlink"
4057 as_fn_append ac_func_list " fchmod"
4058 as_fn_append ac_header_list " string.h"
4059 as_fn_append ac_func_list " canonicalize_file_name"
4060 as_fn_append ac_func_list " getcwd"
4061 as_fn_append ac_func_list " readlink"
4062 as_fn_append ac_func_list " realpath"
4063 as_fn_append ac_func_list " readlinkat"
4064 as_fn_append ac_func_list " _set_invalid_parameter_handler"
4065 as_fn_append ac_header_list " sys/socket.h"
4066 as_fn_append ac_header_list " utime.h"
4067 as_fn_append ac_header_list " dirent.h"
4068 as_fn_append ac_func_list " fcntl"
4069 as_fn_append ac_func_list " btowc"
4070 as_fn_append ac_func_list " isblank"
4071 as_fn_append ac_func_list " iswctype"
4072 as_fn_append ac_func_list " mbsrtowcs"
4073 as_fn_append ac_func_list " mempcpy"
4074 as_fn_append ac_func_list " wmemchr"
4075 as_fn_append ac_func_list " wmemcpy"
4076 as_fn_append ac_func_list " wmempcpy"
4077 as_fn_append ac_header_list " wctype.h"
4078 as_fn_append ac_header_list " sys/stat.h"
4079 as_fn_append ac_func_list " getdelim"
4080 as_fn_append ac_func_list " getdtablesize"
4081 gl_getopt_required=GNU
4082 as_fn_append ac_header_list " getopt.h"
4083 as_fn_append ac_header_list " sys/time.h"
4084 as_fn_append ac_func_list " gettimeofday"
4085 as_fn_append ac_header_list " iconv.h"
4086 as_fn_append ac_func_list " iswcntrl"
4087 as_fn_append ac_func_list " iswblank"
4088 as_fn_append ac_header_list " langinfo.h"
4089 as_fn_append ac_header_list " libcroco-0.6/libcroco/libcroco-config.h"
4090 as_fn_append ac_header_list " libxml2/libxml/xmlexports.h"
4091 as_fn_append ac_header_list " libxml2/libxml/xmlversion.h"
4092 as_fn_append ac_header_list " xlocale.h"
4093 as_fn_append ac_func_list " lstat"
4094 as_fn_append ac_header_list " math.h"
4095 as_fn_append ac_func_list " mbsinit"
4096 as_fn_append ac_func_list " mbrtowc"
4097 as_fn_append ac_func_list " mbslen"
4098 as_fn_append ac_header_list " wchar.h"
4099 as_fn_append ac_func_list " isascii"
4100 as_fn_append ac_header_list " sys/mman.h"
4101 as_fn_append ac_func_list " mprotect"
4102 as_fn_append ac_func_list " select"
4103 as_fn_append ac_func_list " pipe2"
4104 as_fn_append ac_func_list " setenv"
4105 as_fn_append ac_header_list " sched.h"
4106 as_fn_append ac_func_list " secure_getenv"
4107 as_fn_append ac_func_list " sigaction"
4108 as_fn_append ac_func_list " sigaltstack"
4109 as_fn_append ac_func_list " siginterrupt"
4110 as_fn_append ac_func_list " snprintf"
4111 as_fn_append ac_header_list " spawn.h"
4112 as_fn_append ac_header_list " stdint.h"
4113 as_fn_append ac_func_list " stpncpy"
4114 as_fn_append ac_header_list " sys/select.h"
4115 as_fn_append ac_header_list " sys/wait.h"
4116 as_fn_append ac_func_list " pipe"
4117 as_fn_append ac_func_list " vasnprintf"
4118 as_fn_append ac_header_list " features.h"
4119 as_fn_append ac_func_list " wcwidth"
4120 as_fn_append ac_header_list " inttypes.h"
4121 as_fn_append ac_func_list " newlocale"
4122 as_fn_append ac_func_list " sleep"
4123 as_fn_append ac_func_list " wcrtomb"
4124 as_fn_append ac_func_list " wctob"
4125 as_fn_append ac_func_list " mbrlen"
4126 as_fn_append ac_func_list " nl_langinfo"
4127 as_fn_append ac_header_list " malloc.h"
4128 as_fn_append ac_func_list " getrlimit"
4129 as_fn_append ac_func_list " setrlimit"
4130 as_fn_append ac_func_list " uselocale"
4131 # Check that the precious variables saved in the cache have kept the same
4132 # value.
4133 ac_cache_corrupted=false
4134 for ac_var in $ac_precious_vars; do
4135   eval ac_old_set=\$ac_cv_env_${ac_var}_set
4136   eval ac_new_set=\$ac_env_${ac_var}_set
4137   eval ac_old_val=\$ac_cv_env_${ac_var}_value
4138   eval ac_new_val=\$ac_env_${ac_var}_value
4139   case $ac_old_set,$ac_new_set in
4140     set,)
4141       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4142 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4143       ac_cache_corrupted=: ;;
4144     ,set)
4145       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4146 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4147       ac_cache_corrupted=: ;;
4148     ,);;
4149     *)
4150       if test "x$ac_old_val" != "x$ac_new_val"; then
4151         # differences in whitespace do not lead to failure.
4152         ac_old_val_w=`echo x $ac_old_val`
4153         ac_new_val_w=`echo x $ac_new_val`
4154         if test "$ac_old_val_w" != "$ac_new_val_w"; then
4155           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4156 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4157           ac_cache_corrupted=:
4158         else
4159           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4160 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4161           eval $ac_var=\$ac_old_val
4162         fi
4163         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
4164 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
4165         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
4166 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
4167       fi;;
4168   esac
4169   # Pass precious variables to config.status.
4170   if test "$ac_new_set" = set; then
4171     case $ac_new_val in
4172     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4173     *) ac_arg=$ac_var=$ac_new_val ;;
4174     esac
4175     case " $ac_configure_args " in
4176       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
4177       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4178     esac
4179   fi
4180 done
4181 if $ac_cache_corrupted; then
4182   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4184   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4185 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
4186   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
4187 fi
4188 ## -------------------- ##
4189 ## Main body of script. ##
4190 ## -------------------- ##
4191
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198
4199
4200 ac_aux_dir=
4201 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
4202   if test -f "$ac_dir/install-sh"; then
4203     ac_aux_dir=$ac_dir
4204     ac_install_sh="$ac_aux_dir/install-sh -c"
4205     break
4206   elif test -f "$ac_dir/install.sh"; then
4207     ac_aux_dir=$ac_dir
4208     ac_install_sh="$ac_aux_dir/install.sh -c"
4209     break
4210   elif test -f "$ac_dir/shtool"; then
4211     ac_aux_dir=$ac_dir
4212     ac_install_sh="$ac_aux_dir/shtool install -c"
4213     break
4214   fi
4215 done
4216 if test -z "$ac_aux_dir"; then
4217   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
4218 fi
4219
4220 # These three variables are undocumented and unsupported,
4221 # and are intended to be withdrawn in a future Autoconf release.
4222 # They can cause serious problems if a builder's source tree is in a directory
4223 # whose full name contains unusual characters.
4224 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4225 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4226 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4227
4228
4229 am__api_version='1.15'
4230
4231 # Find a good install program.  We prefer a C program (faster),
4232 # so one script is as good as another.  But avoid the broken or
4233 # incompatible versions:
4234 # SysV /etc/install, /usr/sbin/install
4235 # SunOS /usr/etc/install
4236 # IRIX /sbin/install
4237 # AIX /bin/install
4238 # AmigaOS /C/install, which installs bootblocks on floppy discs
4239 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4240 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4241 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4242 # OS/2's system install, which has a completely different semantic
4243 # ./install, which can be erroneously created by make from ./install.sh.
4244 # Reject install programs that cannot install multiple files.
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4246 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4247 if test -z "$INSTALL"; then
4248 if ${ac_cv_path_install+:} false; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256     # Account for people who put trailing slashes in PATH elements.
4257 case $as_dir/ in #((
4258   ./ | .// | /[cC]/* | \
4259   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4260   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4261   /usr/ucb/* ) ;;
4262   *)
4263     # OSF1 and SCO ODT 3.0 have their own names for install.
4264     # Don't use installbsd from OSF since it installs stuff as root
4265     # by default.
4266     for ac_prog in ginstall scoinst install; do
4267       for ac_exec_ext in '' $ac_executable_extensions; do
4268         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4269           if test $ac_prog = install &&
4270             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4271             # AIX install.  It has an incompatible calling convention.
4272             :
4273           elif test $ac_prog = install &&
4274             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4275             # program-specific install script used by HP pwplus--don't use.
4276             :
4277           else
4278             rm -rf conftest.one conftest.two conftest.dir
4279             echo one > conftest.one
4280             echo two > conftest.two
4281             mkdir conftest.dir
4282             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4283               test -s conftest.one && test -s conftest.two &&
4284               test -s conftest.dir/conftest.one &&
4285               test -s conftest.dir/conftest.two
4286             then
4287               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4288               break 3
4289             fi
4290           fi
4291         fi
4292       done
4293     done
4294     ;;
4295 esac
4296
4297   done
4298 IFS=$as_save_IFS
4299
4300 rm -rf conftest.one conftest.two conftest.dir
4301
4302 fi
4303   if test "${ac_cv_path_install+set}" = set; then
4304     INSTALL=$ac_cv_path_install
4305   else
4306     # As a last resort, use the slow shell script.  Don't cache a
4307     # value for INSTALL within a source directory, because that will
4308     # break other packages using the cache if that directory is
4309     # removed, or if the value is a relative name.
4310     INSTALL=$ac_install_sh
4311   fi
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4314 $as_echo "$INSTALL" >&6; }
4315
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4319
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4321
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4323
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4325 $as_echo_n "checking whether build environment is sane... " >&6; }
4326 # Reject unsafe characters in $srcdir or the absolute working directory
4327 # name.  Accept space and tab only in the latter.
4328 am_lf='
4329 '
4330 case `pwd` in
4331   *[\\\"\#\$\&\'\`$am_lf]*)
4332     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4333 esac
4334 case $srcdir in
4335   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4336     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4337 esac
4338
4339 # Do 'set' in a subshell so we don't clobber the current shell's
4340 # arguments.  Must try -L first in case configure is actually a
4341 # symlink; some systems play weird games with the mod time of symlinks
4342 # (eg FreeBSD returns the mod time of the symlink's containing
4343 # directory).
4344 if (
4345    am_has_slept=no
4346    for am_try in 1 2; do
4347      echo "timestamp, slept: $am_has_slept" > conftest.file
4348      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4349      if test "$*" = "X"; then
4350         # -L didn't work.
4351         set X `ls -t "$srcdir/configure" conftest.file`
4352      fi
4353      if test "$*" != "X $srcdir/configure conftest.file" \
4354         && test "$*" != "X conftest.file $srcdir/configure"; then
4355
4356         # If neither matched, then we have a broken ls.  This can happen
4357         # if, for instance, CONFIG_SHELL is bash and it inherits a
4358         # broken ls alias from the environment.  This has actually
4359         # happened.  Such a system could not be considered "sane".
4360         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4361   alias in your environment" "$LINENO" 5
4362      fi
4363      if test "$2" = conftest.file || test $am_try -eq 2; then
4364        break
4365      fi
4366      # Just in case.
4367      sleep 1
4368      am_has_slept=yes
4369    done
4370    test "$2" = conftest.file
4371    )
4372 then
4373    # Ok.
4374    :
4375 else
4376    as_fn_error $? "newly created file is older than distributed files!
4377 Check your system clock" "$LINENO" 5
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4380 $as_echo "yes" >&6; }
4381 # If we didn't sleep, we still need to ensure time stamps of config.status and
4382 # generated files are strictly newer.
4383 am_sleep_pid=
4384 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4385   ( sleep 1 ) &
4386   am_sleep_pid=$!
4387 fi
4388
4389 rm -f conftest.file
4390
4391 test "$program_prefix" != NONE &&
4392   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4393 # Use a double $ so make ignores it.
4394 test "$program_suffix" != NONE &&
4395   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4396 # Double any \ or $.
4397 # By default was `s,x,x', remove it if useless.
4398 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4399 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4400
4401 # Expand $ac_aux_dir to an absolute path.
4402 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4403
4404 if test x"${MISSING+set}" != xset; then
4405   case $am_aux_dir in
4406   *\ * | *\     *)
4407     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4408   *)
4409     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4410   esac
4411 fi
4412 # Use eval to expand $SHELL
4413 if eval "$MISSING --is-lightweight"; then
4414   am_missing_run="$MISSING "
4415 else
4416   am_missing_run=
4417   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4418 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4419 fi
4420
4421 if test x"${install_sh+set}" != xset; then
4422   case $am_aux_dir in
4423   *\ * | *\     *)
4424     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4425   *)
4426     install_sh="\${SHELL} $am_aux_dir/install-sh"
4427   esac
4428 fi
4429
4430 # Installed binaries are usually stripped using 'strip' when the user
4431 # run "make install-strip".  However 'strip' might not be the right
4432 # tool to use in cross-compilation environments, therefore Automake
4433 # will honor the 'STRIP' environment variable to overrule this program.
4434 if test "$cross_compiling" != no; then
4435   if test -n "$ac_tool_prefix"; then
4436   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}strip; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_prog_STRIP+:} false; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   if test -n "$STRIP"; then
4444   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451     for ac_exec_ext in '' $ac_executable_extensions; do
4452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458   done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 STRIP=$ac_cv_prog_STRIP
4464 if test -n "$STRIP"; then
4465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4466 $as_echo "$STRIP" >&6; }
4467 else
4468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4470 fi
4471
4472
4473 fi
4474 if test -z "$ac_cv_prog_STRIP"; then
4475   ac_ct_STRIP=$STRIP
4476   # Extract the first word of "strip", so it can be a program name with args.
4477 set dummy strip; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   if test -n "$ac_ct_STRIP"; then
4484   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491     for ac_exec_ext in '' $ac_executable_extensions; do
4492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_prog_ac_ct_STRIP="strip"
4494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498   done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4504 if test -n "$ac_ct_STRIP"; then
4505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4506 $as_echo "$ac_ct_STRIP" >&6; }
4507 else
4508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4511
4512   if test "x$ac_ct_STRIP" = x; then
4513     STRIP=":"
4514   else
4515     case $cross_compiling:$ac_tool_warned in
4516 yes:)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4519 ac_tool_warned=yes ;;
4520 esac
4521     STRIP=$ac_ct_STRIP
4522   fi
4523 else
4524   STRIP="$ac_cv_prog_STRIP"
4525 fi
4526
4527 fi
4528 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4531 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4532 if test -z "$MKDIR_P"; then
4533   if ${ac_cv_path_mkdir+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541     for ac_prog in mkdir gmkdir; do
4542          for ac_exec_ext in '' $ac_executable_extensions; do
4543            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4544            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4545              'mkdir (GNU coreutils) '* | \
4546              'mkdir (coreutils) '* | \
4547              'mkdir (fileutils) '4.1*)
4548                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4549                break 3;;
4550            esac
4551          done
4552        done
4553   done
4554 IFS=$as_save_IFS
4555
4556 fi
4557
4558   test -d ./--version && rmdir ./--version
4559   if test "${ac_cv_path_mkdir+set}" = set; then
4560     MKDIR_P="$ac_cv_path_mkdir -p"
4561   else
4562     # As a last resort, use the slow shell script.  Don't cache a
4563     # value for MKDIR_P within a source directory, because that will
4564     # break other packages using the cache if that directory is
4565     # removed, or if the value is a relative name.
4566     MKDIR_P="$ac_install_sh -d"
4567   fi
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4570 $as_echo "$MKDIR_P" >&6; }
4571
4572 for ac_prog in gawk mawk nawk awk
4573 do
4574   # Extract the first word of "$ac_prog", so it can be a program name with args.
4575 set dummy $ac_prog; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_AWK+:} false; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   if test -n "$AWK"; then
4582   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589     for ac_exec_ext in '' $ac_executable_extensions; do
4590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591     ac_cv_prog_AWK="$ac_prog"
4592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596   done
4597 IFS=$as_save_IFS
4598
4599 fi
4600 fi
4601 AWK=$ac_cv_prog_AWK
4602 if test -n "$AWK"; then
4603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4604 $as_echo "$AWK" >&6; }
4605 else
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609
4610
4611   test -n "$AWK" && break
4612 done
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4615 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4616 set x ${MAKE-make}
4617 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4618 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4619   $as_echo_n "(cached) " >&6
4620 else
4621   cat >conftest.make <<\_ACEOF
4622 SHELL = /bin/sh
4623 all:
4624         @echo '@@@%%%=$(MAKE)=@@@%%%'
4625 _ACEOF
4626 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4627 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4628   *@@@%%%=?*=@@@%%%*)
4629     eval ac_cv_prog_make_${ac_make}_set=yes;;
4630   *)
4631     eval ac_cv_prog_make_${ac_make}_set=no;;
4632 esac
4633 rm -f conftest.make
4634 fi
4635 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4637 $as_echo "yes" >&6; }
4638   SET_MAKE=
4639 else
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4642   SET_MAKE="MAKE=${MAKE-make}"
4643 fi
4644
4645 rm -rf .tst 2>/dev/null
4646 mkdir .tst 2>/dev/null
4647 if test -d .tst; then
4648   am__leading_dot=.
4649 else
4650   am__leading_dot=_
4651 fi
4652 rmdir .tst 2>/dev/null
4653
4654 # Check whether --enable-silent-rules was given.
4655 if test "${enable_silent_rules+set}" = set; then :
4656   enableval=$enable_silent_rules;
4657 fi
4658
4659 case $enable_silent_rules in # (((
4660   yes) AM_DEFAULT_VERBOSITY=0;;
4661    no) AM_DEFAULT_VERBOSITY=1;;
4662     *) AM_DEFAULT_VERBOSITY=1;;
4663 esac
4664 am_make=${MAKE-make}
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4666 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4667 if ${am_cv_make_support_nested_variables+:} false; then :
4668   $as_echo_n "(cached) " >&6
4669 else
4670   if $as_echo 'TRUE=$(BAR$(V))
4671 BAR0=false
4672 BAR1=true
4673 V=1
4674 am__doit:
4675         @$(TRUE)
4676 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4677   am_cv_make_support_nested_variables=yes
4678 else
4679   am_cv_make_support_nested_variables=no
4680 fi
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4683 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4684 if test $am_cv_make_support_nested_variables = yes; then
4685     AM_V='$(V)'
4686   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4687 else
4688   AM_V=$AM_DEFAULT_VERBOSITY
4689   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4690 fi
4691 AM_BACKSLASH='\'
4692
4693 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4694   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4695   # is not polluted with repeated "-I."
4696   am__isrc=' -I$(srcdir)'
4697   # test to see if srcdir already configured
4698   if test -f $srcdir/config.status; then
4699     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4700   fi
4701 fi
4702
4703 # test whether we have cygpath
4704 if test -z "$CYGPATH_W"; then
4705   if (cygpath --version) >/dev/null 2>/dev/null; then
4706     CYGPATH_W='cygpath -w'
4707   else
4708     CYGPATH_W=echo
4709   fi
4710 fi
4711
4712
4713 # Define the identity of the package.
4714  PACKAGE='gettext-tools'
4715  VERSION='0.19.8'
4716
4717
4718 cat >>confdefs.h <<_ACEOF
4719 #define PACKAGE "$PACKAGE"
4720 _ACEOF
4721
4722
4723 cat >>confdefs.h <<_ACEOF
4724 #define VERSION "$VERSION"
4725 _ACEOF
4726
4727 # Some tools Automake needs.
4728
4729 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4730
4731
4732 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4733
4734
4735 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4736
4737
4738 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4739
4740
4741 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4742
4743 # For better backward compatibility.  To be removed once Automake 1.9.x
4744 # dies out for good.  For more background, see:
4745 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4746 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4747 mkdir_p='$(MKDIR_P)'
4748
4749 # We need awk for the "check" target (and possibly the TAP driver).  The
4750 # system "awk" is bad on some platforms.
4751 # Always define AMTAR for backward compatibility.  Yes, it's still used
4752 # in the wild :-(  We should find a proper way to deprecate it ...
4753 AMTAR='$${TAR-tar}'
4754
4755
4756 # We'll loop over all known methods to create a tar archive until one works.
4757 _am_tools='gnutar  pax cpio none'
4758
4759 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4760
4761
4762
4763
4764
4765
4766 # POSIX will say in a future version that running "rm -f" with no argument
4767 # is OK; and we want to be able to make that assumption in our Makefile
4768 # recipes.  So use an aggressive probe to check that the usage we want is
4769 # actually supported "in the wild" to an acceptable degree.
4770 # See automake bug#10828.
4771 # To make any issue more visible, cause the running configure to be aborted
4772 # by default if the 'rm' program in use doesn't match our expectations; the
4773 # user can still override this though.
4774 if rm -f && rm -fr && rm -rf; then : OK; else
4775   cat >&2 <<'END'
4776 Oops!
4777
4778 Your 'rm' program seems unable to run without file operands specified
4779 on the command line, even when the '-f' option is present.  This is contrary
4780 to the behaviour of most rm programs out there, and not conforming with
4781 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4782
4783 Please tell bug-automake@gnu.org about your system, including the value
4784 of your $PATH and any error possibly output before this message.  This
4785 can help us improve future automake versions.
4786
4787 END
4788   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4789     echo 'Configuration will proceed anyway, since you have set the' >&2
4790     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4791     echo >&2
4792   else
4793     cat >&2 <<'END'
4794 Aborting the configuration process, to ensure you take notice of the issue.
4795
4796 You can download and install GNU coreutils to get an 'rm' implementation
4797 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4798
4799 If you want to complete the configuration process using your problematic
4800 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4801 to "yes", and re-run configure.
4802
4803 END
4804     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4805   fi
4806 fi
4807
4808 ac_config_headers="$ac_config_headers config.h"
4809
4810
4811 test "$docdir" != '${datarootdir}/doc/${PACKAGE_TARNAME}' || docdir='${datarootdir}/doc/gettext'
4812
4813 ac_ext=c
4814 ac_cpp='$CPP $CPPFLAGS'
4815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4818 if test -n "$ac_tool_prefix"; then
4819   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if ${ac_cv_prog_CC+:} false; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   if test -n "$CC"; then
4827   ac_cv_prog_CC="$CC" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834     for ac_exec_ext in '' $ac_executable_extensions; do
4835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838     break 2
4839   fi
4840 done
4841   done
4842 IFS=$as_save_IFS
4843
4844 fi
4845 fi
4846 CC=$ac_cv_prog_CC
4847 if test -n "$CC"; then
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4849 $as_echo "$CC" >&6; }
4850 else
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 fi
4854
4855
4856 fi
4857 if test -z "$ac_cv_prog_CC"; then
4858   ac_ct_CC=$CC
4859   # Extract the first word of "gcc", so it can be a program name with args.
4860 set dummy gcc; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4864   $as_echo_n "(cached) " >&6
4865 else
4866   if test -n "$ac_ct_CC"; then
4867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874     for ac_exec_ext in '' $ac_executable_extensions; do
4875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876     ac_cv_prog_ac_ct_CC="gcc"
4877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881   done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4887 if test -n "$ac_ct_CC"; then
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4889 $as_echo "$ac_ct_CC" >&6; }
4890 else
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895   if test "x$ac_ct_CC" = x; then
4896     CC=""
4897   else
4898     case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904     CC=$ac_ct_CC
4905   fi
4906 else
4907   CC="$ac_cv_prog_CC"
4908 fi
4909
4910 if test -z "$CC"; then
4911           if test -n "$ac_tool_prefix"; then
4912     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}cc; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_CC+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   if test -n "$CC"; then
4920   ac_cv_prog_CC="$CC" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927     for ac_exec_ext in '' $ac_executable_extensions; do
4928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929     ac_cv_prog_CC="${ac_tool_prefix}cc"
4930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934   done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 CC=$ac_cv_prog_CC
4940 if test -n "$CC"; then
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4942 $as_echo "$CC" >&6; }
4943 else
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949   fi
4950 fi
4951 if test -z "$CC"; then
4952   # Extract the first word of "cc", so it can be a program name with args.
4953 set dummy cc; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if ${ac_cv_prog_CC+:} false; then :
4957   $as_echo_n "(cached) " >&6
4958 else
4959   if test -n "$CC"; then
4960   ac_cv_prog_CC="$CC" # Let the user override the test.
4961 else
4962   ac_prog_rejected=no
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4971        ac_prog_rejected=yes
4972        continue
4973      fi
4974     ac_cv_prog_CC="cc"
4975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976     break 2
4977   fi
4978 done
4979   done
4980 IFS=$as_save_IFS
4981
4982 if test $ac_prog_rejected = yes; then
4983   # We found a bogon in the path, so make sure we never use it.
4984   set dummy $ac_cv_prog_CC
4985   shift
4986   if test $# != 0; then
4987     # We chose a different compiler from the bogus one.
4988     # However, it has the same basename, so the bogon will be chosen
4989     # first if we set CC to just the basename; use the full file name.
4990     shift
4991     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4992   fi
4993 fi
4994 fi
4995 fi
4996 CC=$ac_cv_prog_CC
4997 if test -n "$CC"; then
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4999 $as_echo "$CC" >&6; }
5000 else
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 fi
5004
5005
5006 fi
5007 if test -z "$CC"; then
5008   if test -n "$ac_tool_prefix"; then
5009   for ac_prog in cl.exe
5010   do
5011     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_CC+:} false; then :
5016   $as_echo_n "(cached) " >&6
5017 else
5018   if test -n "$CC"; then
5019   ac_cv_prog_CC="$CC" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026     for ac_exec_ext in '' $ac_executable_extensions; do
5027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033   done
5034 IFS=$as_save_IFS
5035
5036 fi
5037 fi
5038 CC=$ac_cv_prog_CC
5039 if test -n "$CC"; then
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5041 $as_echo "$CC" >&6; }
5042 else
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5045 fi
5046
5047
5048     test -n "$CC" && break
5049   done
5050 fi
5051 if test -z "$CC"; then
5052   ac_ct_CC=$CC
5053   for ac_prog in cl.exe
5054 do
5055   # Extract the first word of "$ac_prog", so it can be a program name with args.
5056 set dummy $ac_prog; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5060   $as_echo_n "(cached) " >&6
5061 else
5062   if test -n "$ac_ct_CC"; then
5063   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070     for ac_exec_ext in '' $ac_executable_extensions; do
5071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072     ac_cv_prog_ac_ct_CC="$ac_prog"
5073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074     break 2
5075   fi
5076 done
5077   done
5078 IFS=$as_save_IFS
5079
5080 fi
5081 fi
5082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5083 if test -n "$ac_ct_CC"; then
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5085 $as_echo "$ac_ct_CC" >&6; }
5086 else
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089 fi
5090
5091
5092   test -n "$ac_ct_CC" && break
5093 done
5094
5095   if test "x$ac_ct_CC" = x; then
5096     CC=""
5097   else
5098     case $cross_compiling:$ac_tool_warned in
5099 yes:)
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5102 ac_tool_warned=yes ;;
5103 esac
5104     CC=$ac_ct_CC
5105   fi
5106 fi
5107
5108 fi
5109
5110
5111 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5113 as_fn_error $? "no acceptable C compiler found in \$PATH
5114 See \`config.log' for more details" "$LINENO" 5; }
5115
5116 # Provide some information about the compiler.
5117 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5118 set X $ac_compile
5119 ac_compiler=$2
5120 for ac_option in --version -v -V -qversion; do
5121   { { ac_try="$ac_compiler $ac_option >&5"
5122 case "(($ac_try" in
5123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124   *) ac_try_echo=$ac_try;;
5125 esac
5126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5127 $as_echo "$ac_try_echo"; } >&5
5128   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5129   ac_status=$?
5130   if test -s conftest.err; then
5131     sed '10a\
5132 ... rest of stderr output deleted ...
5133          10q' conftest.err >conftest.er1
5134     cat conftest.er1 >&5
5135   fi
5136   rm -f conftest.er1 conftest.err
5137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138   test $ac_status = 0; }
5139 done
5140
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 ac_clean_files_save=$ac_clean_files
5153 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5154 # Try to create an executable without -o first, disregard a.out.
5155 # It will help us diagnose broken compilers, and finding out an intuition
5156 # of exeext.
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5158 $as_echo_n "checking whether the C compiler works... " >&6; }
5159 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5160
5161 # The possible output files:
5162 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5163
5164 ac_rmfiles=
5165 for ac_file in $ac_files
5166 do
5167   case $ac_file in
5168     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5169     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5170   esac
5171 done
5172 rm -f $ac_rmfiles
5173
5174 if { { ac_try="$ac_link_default"
5175 case "(($ac_try" in
5176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177   *) ac_try_echo=$ac_try;;
5178 esac
5179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180 $as_echo "$ac_try_echo"; } >&5
5181   (eval "$ac_link_default") 2>&5
5182   ac_status=$?
5183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184   test $ac_status = 0; }; then :
5185   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5186 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5187 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5188 # so that the user can short-circuit this test for compilers unknown to
5189 # Autoconf.
5190 for ac_file in $ac_files ''
5191 do
5192   test -f "$ac_file" || continue
5193   case $ac_file in
5194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5195         ;;
5196     [ab].out )
5197         # We found the default executable, but exeext='' is most
5198         # certainly right.
5199         break;;
5200     *.* )
5201         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5202         then :; else
5203            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5204         fi
5205         # We set ac_cv_exeext here because the later test for it is not
5206         # safe: cross compilers may not add the suffix if given an `-o'
5207         # argument, so we may need to know it at that point already.
5208         # Even if this section looks crufty: it has the advantage of
5209         # actually working.
5210         break;;
5211     * )
5212         break;;
5213   esac
5214 done
5215 test "$ac_cv_exeext" = no && ac_cv_exeext=
5216
5217 else
5218   ac_file=''
5219 fi
5220 if test -z "$ac_file"; then :
5221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5223 $as_echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5228 as_fn_error 77 "C compiler cannot create executables
5229 See \`config.log' for more details" "$LINENO" 5; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5232 $as_echo "yes" >&6; }
5233 fi
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5235 $as_echo_n "checking for C compiler default output file name... " >&6; }
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5237 $as_echo "$ac_file" >&6; }
5238 ac_exeext=$ac_cv_exeext
5239
5240 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5241 ac_clean_files=$ac_clean_files_save
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5243 $as_echo_n "checking for suffix of executables... " >&6; }
5244 if { { ac_try="$ac_link"
5245 case "(($ac_try" in
5246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247   *) ac_try_echo=$ac_try;;
5248 esac
5249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5250 $as_echo "$ac_try_echo"; } >&5
5251   (eval "$ac_link") 2>&5
5252   ac_status=$?
5253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5254   test $ac_status = 0; }; then :
5255   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5256 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5257 # work properly (i.e., refer to `conftest.exe'), while it won't with
5258 # `rm'.
5259 for ac_file in conftest.exe conftest conftest.*; do
5260   test -f "$ac_file" || continue
5261   case $ac_file in
5262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5263     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5264           break;;
5265     * ) break;;
5266   esac
5267 done
5268 else
5269   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5271 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5272 See \`config.log' for more details" "$LINENO" 5; }
5273 fi
5274 rm -f conftest conftest$ac_cv_exeext
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5276 $as_echo "$ac_cv_exeext" >&6; }
5277
5278 rm -f conftest.$ac_ext
5279 EXEEXT=$ac_cv_exeext
5280 ac_exeext=$EXEEXT
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h.  */
5283 #include <stdio.h>
5284 int
5285 main ()
5286 {
5287 FILE *f = fopen ("conftest.out", "w");
5288  return ferror (f) || fclose (f) != 0;
5289
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 ac_clean_files="$ac_clean_files conftest.out"
5295 # Check that the compiler produces executables we can run.  If not, either
5296 # the compiler is broken, or we cross compile.
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5298 $as_echo_n "checking whether we are cross compiling... " >&6; }
5299 if test "$cross_compiling" != yes; then
5300   { { ac_try="$ac_link"
5301 case "(($ac_try" in
5302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303   *) ac_try_echo=$ac_try;;
5304 esac
5305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5306 $as_echo "$ac_try_echo"; } >&5
5307   (eval "$ac_link") 2>&5
5308   ac_status=$?
5309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5310   test $ac_status = 0; }
5311   if { ac_try='./conftest$ac_cv_exeext'
5312   { { case "(($ac_try" in
5313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314   *) ac_try_echo=$ac_try;;
5315 esac
5316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5317 $as_echo "$ac_try_echo"; } >&5
5318   (eval "$ac_try") 2>&5
5319   ac_status=$?
5320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5321   test $ac_status = 0; }; }; then
5322     cross_compiling=no
5323   else
5324     if test "$cross_compiling" = maybe; then
5325         cross_compiling=yes
5326     else
5327         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5329 as_fn_error $? "cannot run C compiled programs.
5330 If you meant to cross compile, use \`--host'.
5331 See \`config.log' for more details" "$LINENO" 5; }
5332     fi
5333   fi
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5336 $as_echo "$cross_compiling" >&6; }
5337
5338 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5339 ac_clean_files=$ac_clean_files_save
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5341 $as_echo_n "checking for suffix of object files... " >&6; }
5342 if ${ac_cv_objext+:} false; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h.  */
5347
5348 int
5349 main ()
5350 {
5351
5352   ;
5353   return 0;
5354 }
5355 _ACEOF
5356 rm -f conftest.o conftest.obj
5357 if { { ac_try="$ac_compile"
5358 case "(($ac_try" in
5359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360   *) ac_try_echo=$ac_try;;
5361 esac
5362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5363 $as_echo "$ac_try_echo"; } >&5
5364   (eval "$ac_compile") 2>&5
5365   ac_status=$?
5366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5367   test $ac_status = 0; }; then :
5368   for ac_file in conftest.o conftest.obj conftest.*; do
5369   test -f "$ac_file" || continue;
5370   case $ac_file in
5371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5372     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5373        break;;
5374   esac
5375 done
5376 else
5377   $as_echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5382 as_fn_error $? "cannot compute suffix of object files: cannot compile
5383 See \`config.log' for more details" "$LINENO" 5; }
5384 fi
5385 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5388 $as_echo "$ac_cv_objext" >&6; }
5389 OBJEXT=$ac_cv_objext
5390 ac_objext=$OBJEXT
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5392 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5393 if ${ac_cv_c_compiler_gnu+:} false; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h.  */
5398
5399 int
5400 main ()
5401 {
5402 #ifndef __GNUC__
5403        choke me
5404 #endif
5405
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411   ac_compiler_gnu=yes
5412 else
5413   ac_compiler_gnu=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5417
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5420 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5421 if test $ac_compiler_gnu = yes; then
5422   GCC=yes
5423 else
5424   GCC=
5425 fi
5426 ac_test_CFLAGS=${CFLAGS+set}
5427 ac_save_CFLAGS=$CFLAGS
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5429 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5430 if ${ac_cv_prog_cc_g+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   ac_save_c_werror_flag=$ac_c_werror_flag
5434    ac_c_werror_flag=yes
5435    ac_cv_prog_cc_g=no
5436    CFLAGS="-g"
5437    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h.  */
5439
5440 int
5441 main ()
5442 {
5443
5444   ;
5445   return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449   ac_cv_prog_cc_g=yes
5450 else
5451   CFLAGS=""
5452       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h.  */
5454
5455 int
5456 main ()
5457 {
5458
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464
5465 else
5466   ac_c_werror_flag=$ac_save_c_werror_flag
5467          CFLAGS="-g"
5468          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h.  */
5470
5471 int
5472 main ()
5473 {
5474
5475   ;
5476   return 0;
5477 }
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"; then :
5480   ac_cv_prog_cc_g=yes
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487    ac_c_werror_flag=$ac_save_c_werror_flag
5488 fi
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5490 $as_echo "$ac_cv_prog_cc_g" >&6; }
5491 if test "$ac_test_CFLAGS" = set; then
5492   CFLAGS=$ac_save_CFLAGS
5493 elif test $ac_cv_prog_cc_g = yes; then
5494   if test "$GCC" = yes; then
5495     CFLAGS="-g -O2"
5496   else
5497     CFLAGS="-g"
5498   fi
5499 else
5500   if test "$GCC" = yes; then
5501     CFLAGS="-O2"
5502   else
5503     CFLAGS=
5504   fi
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5507 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5508 if ${ac_cv_prog_cc_c89+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   ac_cv_prog_cc_c89=no
5512 ac_save_CC=$CC
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h.  */
5515 #include <stdarg.h>
5516 #include <stdio.h>
5517 struct stat;
5518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5519 struct buf { int x; };
5520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5521 static char *e (p, i)
5522      char **p;
5523      int i;
5524 {
5525   return p[i];
5526 }
5527 static char *f (char * (*g) (char **, int), char **p, ...)
5528 {
5529   char *s;
5530   va_list v;
5531   va_start (v,p);
5532   s = g (p, va_arg (v,int));
5533   va_end (v);
5534   return s;
5535 }
5536
5537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5538    function prototypes and stuff, but not '\xHH' hex character constants.
5539    These don't provoke an error unfortunately, instead are silently treated
5540    as 'x'.  The following induces an error, until -std is added to get
5541    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5542    array size at least.  It's necessary to write '\x00'==0 to get something
5543    that's true only with -std.  */
5544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5545
5546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5547    inside strings and character constants.  */
5548 #define FOO(x) 'x'
5549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5550
5551 int test (int i, double x);
5552 struct s1 {int (*f) (int a);};
5553 struct s2 {int (*f) (double a);};
5554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5555 int argc;
5556 char **argv;
5557 int
5558 main ()
5559 {
5560 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5561   ;
5562   return 0;
5563 }
5564 _ACEOF
5565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5566         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5567 do
5568   CC="$ac_save_CC $ac_arg"
5569   if ac_fn_c_try_compile "$LINENO"; then :
5570   ac_cv_prog_cc_c89=$ac_arg
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext
5573   test "x$ac_cv_prog_cc_c89" != "xno" && break
5574 done
5575 rm -f conftest.$ac_ext
5576 CC=$ac_save_CC
5577
5578 fi
5579 # AC_CACHE_VAL
5580 case "x$ac_cv_prog_cc_c89" in
5581   x)
5582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5583 $as_echo "none needed" >&6; } ;;
5584   xno)
5585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5586 $as_echo "unsupported" >&6; } ;;
5587   *)
5588     CC="$CC $ac_cv_prog_cc_c89"
5589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5590 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5591 esac
5592 if test "x$ac_cv_prog_cc_c89" != xno; then :
5593
5594 fi
5595
5596 ac_ext=c
5597 ac_cpp='$CPP $CPPFLAGS'
5598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601
5602 ac_ext=c
5603 ac_cpp='$CPP $CPPFLAGS'
5604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5608 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5609 if ${am_cv_prog_cc_c_o+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h.  */
5614
5615 int
5616 main ()
5617 {
5618
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623   # Make sure it works both with $CC and with simple cc.
5624   # Following AC_PROG_CC_C_O, we do the test twice because some
5625   # compilers refuse to overwrite an existing .o file with -o,
5626   # though they will create one.
5627   am_cv_prog_cc_c_o=yes
5628   for am_i in 1 2; do
5629     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5630    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5631    ac_status=$?
5632    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633    (exit $ac_status); } \
5634          && test -f conftest2.$ac_objext; then
5635       : OK
5636     else
5637       am_cv_prog_cc_c_o=no
5638       break
5639     fi
5640   done
5641   rm -f core conftest*
5642   unset am_i
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5645 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5646 if test "$am_cv_prog_cc_c_o" != yes; then
5647    # Losing compiler, so override with the script.
5648    # FIXME: It is wrong to rewrite CC.
5649    # But if we don't then we get into trouble of one sort or another.
5650    # A longer-term fix would be to have automake use am__CC in this case,
5651    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5652    CC="$am_aux_dir/compile $CC"
5653 fi
5654 ac_ext=c
5655 ac_cpp='$CPP $CPPFLAGS'
5656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659
5660 DEPDIR="${am__leading_dot}deps"
5661
5662 ac_config_commands="$ac_config_commands depfiles"
5663
5664
5665 am_make=${MAKE-make}
5666 cat > confinc << 'END'
5667 am__doit:
5668         @echo this is the am__doit target
5669 .PHONY: am__doit
5670 END
5671 # If we don't find an include directive, just comment out the code.
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5673 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5674 am__include="#"
5675 am__quote=
5676 _am_result=none
5677 # First try GNU make style include.
5678 echo "include confinc" > confmf
5679 # Ignore all kinds of additional output from 'make'.
5680 case `$am_make -s -f confmf 2> /dev/null` in #(
5681 *the\ am__doit\ target*)
5682   am__include=include
5683   am__quote=
5684   _am_result=GNU
5685   ;;
5686 esac
5687 # Now try BSD make style include.
5688 if test "$am__include" = "#"; then
5689    echo '.include "confinc"' > confmf
5690    case `$am_make -s -f confmf 2> /dev/null` in #(
5691    *the\ am__doit\ target*)
5692      am__include=.include
5693      am__quote="\""
5694      _am_result=BSD
5695      ;;
5696    esac
5697 fi
5698
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5701 $as_echo "$_am_result" >&6; }
5702 rm -f confinc confmf
5703
5704 # Check whether --enable-dependency-tracking was given.
5705 if test "${enable_dependency_tracking+set}" = set; then :
5706   enableval=$enable_dependency_tracking;
5707 fi
5708
5709 if test "x$enable_dependency_tracking" != xno; then
5710   am_depcomp="$ac_aux_dir/depcomp"
5711   AMDEPBACKSLASH='\'
5712   am__nodep='_no'
5713 fi
5714  if test "x$enable_dependency_tracking" != xno; then
5715   AMDEP_TRUE=
5716   AMDEP_FALSE='#'
5717 else
5718   AMDEP_TRUE='#'
5719   AMDEP_FALSE=
5720 fi
5721
5722
5723
5724 depcc="$CC"   am_compiler_list=
5725
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5727 $as_echo_n "checking dependency style of $depcc... " >&6; }
5728 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5732   # We make a subdir and do the tests there.  Otherwise we can end up
5733   # making bogus files that we don't know about and never remove.  For
5734   # instance it was reported that on HP-UX the gcc test will end up
5735   # making a dummy file named 'D' -- because '-MD' means "put the output
5736   # in D".
5737   rm -rf conftest.dir
5738   mkdir conftest.dir
5739   # Copy depcomp to subdir because otherwise we won't find it if we're
5740   # using a relative directory.
5741   cp "$am_depcomp" conftest.dir
5742   cd conftest.dir
5743   # We will build objects and dependencies in a subdirectory because
5744   # it helps to detect inapplicable dependency modes.  For instance
5745   # both Tru64's cc and ICC support -MD to output dependencies as a
5746   # side effect of compilation, but ICC will put the dependencies in
5747   # the current directory while Tru64 will put them in the object
5748   # directory.
5749   mkdir sub
5750
5751   am_cv_CC_dependencies_compiler_type=none
5752   if test "$am_compiler_list" = ""; then
5753      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5754   fi
5755   am__universal=false
5756   case " $depcc " in #(
5757      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5758      esac
5759
5760   for depmode in $am_compiler_list; do
5761     # Setup a source with many dependencies, because some compilers
5762     # like to wrap large dependency lists on column 80 (with \), and
5763     # we should not choose a depcomp mode which is confused by this.
5764     #
5765     # We need to recreate these files for each test, as the compiler may
5766     # overwrite some of them when testing with obscure command lines.
5767     # This happens at least with the AIX C compiler.
5768     : > sub/conftest.c
5769     for i in 1 2 3 4 5 6; do
5770       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5771       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5772       # Solaris 10 /bin/sh.
5773       echo '/* dummy */' > sub/conftst$i.h
5774     done
5775     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5776
5777     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5778     # mode.  It turns out that the SunPro C++ compiler does not properly
5779     # handle '-M -o', and we need to detect this.  Also, some Intel
5780     # versions had trouble with output in subdirs.
5781     am__obj=sub/conftest.${OBJEXT-o}
5782     am__minus_obj="-o $am__obj"
5783     case $depmode in
5784     gcc)
5785       # This depmode causes a compiler race in universal mode.
5786       test "$am__universal" = false || continue
5787       ;;
5788     nosideeffect)
5789       # After this tag, mechanisms are not by side-effect, so they'll
5790       # only be used when explicitly requested.
5791       if test "x$enable_dependency_tracking" = xyes; then
5792         continue
5793       else
5794         break
5795       fi
5796       ;;
5797     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5798       # This compiler won't grok '-c -o', but also, the minuso test has
5799       # not run yet.  These depmodes are late enough in the game, and
5800       # so weak that their functioning should not be impacted.
5801       am__obj=conftest.${OBJEXT-o}
5802       am__minus_obj=
5803       ;;
5804     none) break ;;
5805     esac
5806     if depmode=$depmode \
5807        source=sub/conftest.c object=$am__obj \
5808        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5809        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5810          >/dev/null 2>conftest.err &&
5811        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5812        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5813        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5814        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5815       # icc doesn't choke on unknown options, it will just issue warnings
5816       # or remarks (even with -Werror).  So we grep stderr for any message
5817       # that says an option was ignored or not supported.
5818       # When given -MP, icc 7.0 and 7.1 complain thusly:
5819       #   icc: Command line warning: ignoring option '-M'; no argument required
5820       # The diagnosis changed in icc 8.0:
5821       #   icc: Command line remark: option '-MP' not supported
5822       if (grep 'ignoring option' conftest.err ||
5823           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5824         am_cv_CC_dependencies_compiler_type=$depmode
5825         break
5826       fi
5827     fi
5828   done
5829
5830   cd ..
5831   rm -rf conftest.dir
5832 else
5833   am_cv_CC_dependencies_compiler_type=none
5834 fi
5835
5836 fi
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5838 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5839 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5840
5841  if
5842   test "x$enable_dependency_tracking" != xno \
5843   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5844   am__fastdepCC_TRUE=
5845   am__fastdepCC_FALSE='#'
5846 else
5847   am__fastdepCC_TRUE='#'
5848   am__fastdepCC_FALSE=
5849 fi
5850
5851
5852
5853 for ac_prog in 'bison -y' byacc
5854 do
5855   # Extract the first word of "$ac_prog", so it can be a program name with args.
5856 set dummy $ac_prog; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_YACC+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   if test -n "$YACC"; then
5863   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870     for ac_exec_ext in '' $ac_executable_extensions; do
5871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872     ac_cv_prog_YACC="$ac_prog"
5873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877   done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 YACC=$ac_cv_prog_YACC
5883 if test -n "$YACC"; then
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5885 $as_echo "$YACC" >&6; }
5886 else
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891
5892   test -n "$YACC" && break
5893 done
5894 test -n "$YACC" || YACC="yacc"
5895
5896
5897
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
5899 $as_echo_n "checking whether to use Java... " >&6; }
5900   # Check whether --enable-java was given.
5901 if test "${enable_java+set}" = set; then :
5902   enableval=$enable_java; JAVA_CHOICE="$enableval"
5903 else
5904   JAVA_CHOICE=yes
5905 fi
5906
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
5908 $as_echo "$JAVA_CHOICE" >&6; }
5909   if test "$JAVA_CHOICE" = yes; then
5910     # Check whether --enable-native-java was given.
5911 if test "${enable_native_java+set}" = set; then :
5912   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
5913 fi
5914
5915   fi
5916
5917
5918
5919
5920
5921
5922
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
5924 $as_echo_n "checking for Java to native code compiler... " >&6; }
5925   # Search for the gcj command or use the one provided by the user.
5926   if test -z "$GCJ"; then
5927                 if test -n "$ac_tool_prefix"; then
5928   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5930 :
5931 if ${ac_cv_prog_GCJ+:} false; then :
5932   $as_echo_n "(cached) " >&6
5933 else
5934   if test -n "$GCJ"; then
5935   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942     for ac_exec_ext in '' $ac_executable_extensions; do
5943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949   done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 GCJ=$ac_cv_prog_GCJ
5955 if test -n "$GCJ"; then
5956   :
5957 else
5958   :
5959 fi
5960
5961
5962 fi
5963 if test -z "$ac_cv_prog_GCJ"; then
5964   ac_ct_GCJ=$GCJ
5965   # Extract the first word of "gcj", so it can be a program name with args.
5966 set dummy gcj; ac_word=$2
5967 :
5968 if ${ac_cv_prog_ac_ct_GCJ+:} false; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   if test -n "$ac_ct_GCJ"; then
5972   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977   IFS=$as_save_IFS
5978   test -z "$as_dir" && as_dir=.
5979     for ac_exec_ext in '' $ac_executable_extensions; do
5980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981     ac_cv_prog_ac_ct_GCJ="gcj"
5982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983     break 2
5984   fi
5985 done
5986   done
5987 IFS=$as_save_IFS
5988
5989 fi
5990 fi
5991 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
5992 if test -n "$ac_ct_GCJ"; then
5993   :
5994 else
5995   :
5996 fi
5997
5998   if test "x$ac_ct_GCJ" = x; then
5999     GCJ="none"
6000   else
6001     case $cross_compiling:$ac_tool_warned in
6002 yes:)
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005 ac_tool_warned=yes ;;
6006 esac
6007     GCJ=$ac_ct_GCJ
6008   fi
6009 else
6010   GCJ="$ac_cv_prog_GCJ"
6011 fi
6012
6013               fi
6014   # Choose GCJFLAGS or use the one provided by the user.
6015   if test "$GCJ" != none; then
6016     test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
6017   fi
6018   # Check whether the version is ok and it can create executables.
6019   ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
6020   if test "$GCJ" != none \
6021      && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
6022      && (
6023       # See if libgcj.so is well installed and if exception handling works.
6024       cat > conftest.java <<EOF
6025 public class conftest {
6026   public static void main (String[] args) {
6027     try {
6028       java.util.ResourceBundle.getBundle("foobar");
6029     } catch (Exception e) {
6030     }
6031     System.exit(0);
6032   }
6033 }
6034 EOF
6035       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
6036   (eval $ac_gcj_link) 2>&5
6037   ac_status=$?
6038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039   test $ac_status = 0; }
6040       error=$?
6041       if test $error = 0 && test "$cross_compiling" != yes; then
6042         # Run conftest and catch its exit status, but silently.
6043         error=`./conftest >/dev/null 2>&1; echo $?`
6044         test $error = 0 || error=1
6045         rm -f core conftest.core
6046       fi
6047       rm -f conftest.java conftest$ac_exeext
6048       exit $error
6049      ); then
6050     :
6051   else
6052     GCJ=none
6053   fi
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
6055 $as_echo "$GCJ" >&6; }
6056   if test "$GCJ" != none; then
6057     HAVE_GCJ=1
6058   else
6059     HAVE_GCJ=
6060   fi
6061
6062
6063
6064
6065 if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then
6066   BUILDJAVAEXE=yes
6067 else
6068   BUILDJAVAEXE=no
6069 fi
6070
6071
6072
6073 ac_ext=c
6074 ac_cpp='$CPP $CPPFLAGS'
6075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6079 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6080 # On Suns, sometimes $CPP names a directory.
6081 if test -n "$CPP" && test -d "$CPP"; then
6082   CPP=
6083 fi
6084 if test -z "$CPP"; then
6085   if ${ac_cv_prog_CPP+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088       # Double quotes because CPP needs to be expanded
6089     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6090     do
6091       ac_preproc_ok=false
6092 for ac_c_preproc_warn_flag in '' yes
6093 do
6094   # Use a header file that comes with gcc, so configuring glibc
6095   # with a fresh cross-compiler works.
6096   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6097   # <limits.h> exists even on freestanding compilers.
6098   # On the NeXT, cc -E runs the code through the compiler's parser,
6099   # not just through cpp. "Syntax error" is here to catch this case.
6100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h.  */
6102 #ifdef __STDC__
6103 # include <limits.h>
6104 #else
6105 # include <assert.h>
6106 #endif
6107                      Syntax error
6108 _ACEOF
6109 if ac_fn_c_try_cpp "$LINENO"; then :
6110
6111 else
6112   # Broken: fails on valid input.
6113 continue
6114 fi
6115 rm -f conftest.err conftest.i conftest.$ac_ext
6116
6117   # OK, works on sane cases.  Now check whether nonexistent headers
6118   # can be detected and how.
6119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h.  */
6121 #include <ac_nonexistent.h>
6122 _ACEOF
6123 if ac_fn_c_try_cpp "$LINENO"; then :
6124   # Broken: success on invalid input.
6125 continue
6126 else
6127   # Passes both tests.
6128 ac_preproc_ok=:
6129 break
6130 fi
6131 rm -f conftest.err conftest.i conftest.$ac_ext
6132
6133 done
6134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6135 rm -f conftest.i conftest.err conftest.$ac_ext
6136 if $ac_preproc_ok; then :
6137   break
6138 fi
6139
6140     done
6141     ac_cv_prog_CPP=$CPP
6142
6143 fi
6144   CPP=$ac_cv_prog_CPP
6145 else
6146   ac_cv_prog_CPP=$CPP
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6149 $as_echo "$CPP" >&6; }
6150 ac_preproc_ok=false
6151 for ac_c_preproc_warn_flag in '' yes
6152 do
6153   # Use a header file that comes with gcc, so configuring glibc
6154   # with a fresh cross-compiler works.
6155   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6156   # <limits.h> exists even on freestanding compilers.
6157   # On the NeXT, cc -E runs the code through the compiler's parser,
6158   # not just through cpp. "Syntax error" is here to catch this case.
6159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h.  */
6161 #ifdef __STDC__
6162 # include <limits.h>
6163 #else
6164 # include <assert.h>
6165 #endif
6166                      Syntax error
6167 _ACEOF
6168 if ac_fn_c_try_cpp "$LINENO"; then :
6169
6170 else
6171   # Broken: fails on valid input.
6172 continue
6173 fi
6174 rm -f conftest.err conftest.i conftest.$ac_ext
6175
6176   # OK, works on sane cases.  Now check whether nonexistent headers
6177   # can be detected and how.
6178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h.  */
6180 #include <ac_nonexistent.h>
6181 _ACEOF
6182 if ac_fn_c_try_cpp "$LINENO"; then :
6183   # Broken: success on invalid input.
6184 continue
6185 else
6186   # Passes both tests.
6187 ac_preproc_ok=:
6188 break
6189 fi
6190 rm -f conftest.err conftest.i conftest.$ac_ext
6191
6192 done
6193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6194 rm -f conftest.i conftest.err conftest.$ac_ext
6195 if $ac_preproc_ok; then :
6196
6197 else
6198   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6200 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6201 See \`config.log' for more details" "$LINENO" 5; }
6202 fi
6203
6204 ac_ext=c
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6212 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6213 if ${ac_cv_path_GREP+:} false; then :
6214   $as_echo_n "(cached) " >&6
6215 else
6216   if test -z "$GREP"; then
6217   ac_path_GREP_found=false
6218   # Loop through the user's path and test for each of PROGNAME-LIST
6219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224     for ac_prog in grep ggrep; do
6225     for ac_exec_ext in '' $ac_executable_extensions; do
6226       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6227       as_fn_executable_p "$ac_path_GREP" || continue
6228 # Check for GNU ac_path_GREP and select it if it is found.
6229   # Check for GNU $ac_path_GREP
6230 case `"$ac_path_GREP" --version 2>&1` in
6231 *GNU*)
6232   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6233 *)
6234   ac_count=0
6235   $as_echo_n 0123456789 >"conftest.in"
6236   while :
6237   do
6238     cat "conftest.in" "conftest.in" >"conftest.tmp"
6239     mv "conftest.tmp" "conftest.in"
6240     cp "conftest.in" "conftest.nl"
6241     $as_echo 'GREP' >> "conftest.nl"
6242     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6243     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6244     as_fn_arith $ac_count + 1 && ac_count=$as_val
6245     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6246       # Best one so far, save it but keep looking for a better one
6247       ac_cv_path_GREP="$ac_path_GREP"
6248       ac_path_GREP_max=$ac_count
6249     fi
6250     # 10*(2^10) chars as input seems more than enough
6251     test $ac_count -gt 10 && break
6252   done
6253   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6254 esac
6255
6256       $ac_path_GREP_found && break 3
6257     done
6258   done
6259   done
6260 IFS=$as_save_IFS
6261   if test -z "$ac_cv_path_GREP"; then
6262     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6263   fi
6264 else
6265   ac_cv_path_GREP=$GREP
6266 fi
6267
6268 fi
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6270 $as_echo "$ac_cv_path_GREP" >&6; }
6271  GREP="$ac_cv_path_GREP"
6272
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6275 $as_echo_n "checking for egrep... " >&6; }
6276 if ${ac_cv_path_EGREP+:} false; then :
6277   $as_echo_n "(cached) " >&6
6278 else
6279   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6280    then ac_cv_path_EGREP="$GREP -E"
6281    else
6282      if test -z "$EGREP"; then
6283   ac_path_EGREP_found=false
6284   # Loop through the user's path and test for each of PROGNAME-LIST
6285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6287 do
6288   IFS=$as_save_IFS
6289   test -z "$as_dir" && as_dir=.
6290     for ac_prog in egrep; do
6291     for ac_exec_ext in '' $ac_executable_extensions; do
6292       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6293       as_fn_executable_p "$ac_path_EGREP" || continue
6294 # Check for GNU ac_path_EGREP and select it if it is found.
6295   # Check for GNU $ac_path_EGREP
6296 case `"$ac_path_EGREP" --version 2>&1` in
6297 *GNU*)
6298   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6299 *)
6300   ac_count=0
6301   $as_echo_n 0123456789 >"conftest.in"
6302   while :
6303   do
6304     cat "conftest.in" "conftest.in" >"conftest.tmp"
6305     mv "conftest.tmp" "conftest.in"
6306     cp "conftest.in" "conftest.nl"
6307     $as_echo 'EGREP' >> "conftest.nl"
6308     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6309     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6310     as_fn_arith $ac_count + 1 && ac_count=$as_val
6311     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6312       # Best one so far, save it but keep looking for a better one
6313       ac_cv_path_EGREP="$ac_path_EGREP"
6314       ac_path_EGREP_max=$ac_count
6315     fi
6316     # 10*(2^10) chars as input seems more than enough
6317     test $ac_count -gt 10 && break
6318   done
6319   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6320 esac
6321
6322       $ac_path_EGREP_found && break 3
6323     done
6324   done
6325   done
6326 IFS=$as_save_IFS
6327   if test -z "$ac_cv_path_EGREP"; then
6328     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6329   fi
6330 else
6331   ac_cv_path_EGREP=$EGREP
6332 fi
6333
6334    fi
6335 fi
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6337 $as_echo "$ac_cv_path_EGREP" >&6; }
6338  EGREP="$ac_cv_path_EGREP"
6339
6340
6341
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java virtual machine" >&5
6343 $as_echo_n "checking for Java virtual machine... " >&6; }
6344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h.  */
6346
6347 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
6348   yes
6349 #endif
6350
6351 _ACEOF
6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353   $EGREP "yes" >/dev/null 2>&1; then :
6354   CLASSPATH_SEPARATOR=';'
6355 else
6356   CLASSPATH_SEPARATOR=':'
6357 fi
6358 rm -f conftest*
6359
6360   CONF_JAVA=
6361   HAVE_JAVA_ENVVAR=
6362   HAVE_GIJ=
6363   HAVE_JAVA=
6364   HAVE_JRE=
6365   HAVE_JVIEW=
6366   HAVE_JAVAEXEC=1
6367   if test -n "$JAVA"; then
6368     HAVE_JAVA_ENVVAR=1
6369     CONF_JAVA="$JAVA"
6370   else
6371                 # Extract the first word of "gij", so it can be a program name with args.
6372 set dummy gij; ac_word=$2
6373 :
6374 if ${ac_cv_prog_HAVE_GIJ_IN_PATH+:} false; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   if test -n "$HAVE_GIJ_IN_PATH"; then
6378   ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383   IFS=$as_save_IFS
6384   test -z "$as_dir" && as_dir=.
6385     for ac_exec_ext in '' $ac_executable_extensions; do
6386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387     ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
6388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389     break 2
6390   fi
6391 done
6392   done
6393 IFS=$as_save_IFS
6394
6395 fi
6396 fi
6397 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
6398 if test -n "$HAVE_GIJ_IN_PATH"; then
6399   :
6400 else
6401   :
6402 fi
6403
6404
6405     # Extract the first word of "java", so it can be a program name with args.
6406 set dummy java; ac_word=$2
6407 :
6408 if ${ac_cv_prog_HAVE_JAVA_IN_PATH+:} false; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   if test -n "$HAVE_JAVA_IN_PATH"; then
6412   ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417   IFS=$as_save_IFS
6418   test -z "$as_dir" && as_dir=.
6419     for ac_exec_ext in '' $ac_executable_extensions; do
6420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421     ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
6422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423     break 2
6424   fi
6425 done
6426   done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
6432 if test -n "$HAVE_JAVA_IN_PATH"; then
6433   :
6434 else
6435   :
6436 fi
6437
6438
6439     # Extract the first word of "jre", so it can be a program name with args.
6440 set dummy jre; ac_word=$2
6441 :
6442 if ${ac_cv_prog_HAVE_JRE_IN_PATH+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$HAVE_JRE_IN_PATH"; then
6446   ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453     for ac_exec_ext in '' $ac_executable_extensions; do
6454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455     ac_cv_prog_HAVE_JRE_IN_PATH="yes"
6456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460   done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
6466 if test -n "$HAVE_JRE_IN_PATH"; then
6467   :
6468 else
6469   :
6470 fi
6471
6472
6473     # Extract the first word of "jview", so it can be a program name with args.
6474 set dummy jview; ac_word=$2
6475 :
6476 if ${ac_cv_prog_HAVE_JVIEW_IN_PATH+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   if test -n "$HAVE_JVIEW_IN_PATH"; then
6480   ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487     for ac_exec_ext in '' $ac_executable_extensions; do
6488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489     ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
6490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494   done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
6500 if test -n "$HAVE_JVIEW_IN_PATH"; then
6501   :
6502 else
6503   :
6504 fi
6505
6506
6507
6508     export CLASSPATH
6509     if test -n "$HAVE_GIJ_IN_PATH" \
6510        && gij --version >/dev/null 2>/dev/null \
6511        ; then
6512       HAVE_GIJ=1
6513       CONF_JAVA="gij"
6514     else
6515       if test -n "$HAVE_JAVA_IN_PATH" \
6516          && java -version >/dev/null 2>/dev/null \
6517          ; then
6518         HAVE_JAVA=1
6519         CONF_JAVA="java"
6520       else
6521         if test -n "$HAVE_JRE_IN_PATH" \
6522            && (jre >/dev/null 2>/dev/null || test $? = 1) \
6523            ; then
6524           HAVE_JRE=1
6525           CONF_JAVA="jre"
6526         else
6527           if test -n "$HAVE_JVIEW_IN_PATH" \
6528              && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
6529              ; then
6530             HAVE_JVIEW=1
6531             CONF_JAVA="jview"
6532           else
6533             HAVE_JAVAEXEC=
6534           fi
6535         fi
6536       fi
6537     fi
6538
6539   fi
6540   if test -n "$HAVE_JAVAEXEC"; then
6541     ac_result="$CONF_JAVA"
6542   else
6543     ac_result="no"
6544   fi
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6546 $as_echo "$ac_result" >&6; }
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h.  */
6560
6561 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
6562   yes
6563 #endif
6564
6565 _ACEOF
6566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6567   $EGREP "yes" >/dev/null 2>&1; then :
6568   CLASSPATH_SEPARATOR=';'
6569 else
6570   CLASSPATH_SEPARATOR=':'
6571 fi
6572 rm -f conftest*
6573
6574   source_version=1.3
6575   test -n "$source_version" || {
6576     as_fn_error $? "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
6577   }
6578   if test -n "$HAVE_JAVAEXEC"; then
6579               cat > conftestver.java <<EOF
6580 public class conftestver {
6581   public static void main (String[] args) {
6582     System.out.println(System.getProperty("java.specification.version"));
6583   }
6584 }
6585 EOF
6586                                                                       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' \
6587          | tr -d '\012\015' \
6588          | 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' \
6589          > conftestver.class
6590        target_version=`{
6591          unset JAVA_HOME
6592          echo "$as_me:6592: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver" >&5
6593          CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver 2>&5
6594        }`
6595        case "$target_version" in
6596          1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;;
6597          null)
6598                       target_version=1.1 ;;
6599          *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&5
6600 $as_echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;}
6601             target_version=1.1 ;;
6602        esac
6603      else
6604        target_version="1.1"
6605      fi
6606
6607   case "$source_version" in
6608     1.3) goodcode='class conftest {}'
6609          failcode='class conftestfail { static { assert(true); } }' ;;
6610     1.4) goodcode='class conftest     { static { assert(true); } }'
6611          failcode='class conftestfail<T> { T foo() { return null; } }' ;;
6612     1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
6613          failcode='class conftestfail syntax error' ;;
6614     *) as_fn_error $? "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
6615   esac
6616   case "$target_version" in
6617     1.1) cfversion=45 ;;
6618     1.2) cfversion=46 ;;
6619     1.3) cfversion=47 ;;
6620     1.4) cfversion=48 ;;
6621     1.5) cfversion=49 ;;
6622     1.6) cfversion=50 ;;
6623     *) as_fn_error $? "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
6624   esac
6625   # Function to output the classfile version of a file (8th byte) in decimal.
6626   if od -A x < /dev/null >/dev/null 2>/dev/null; then
6627     # Use POSIX od.
6628     func_classfile_version ()
6629     {
6630       od -A n -t d1 -j 7 -N 1 "$1"
6631     }
6632   else
6633     # Use BSD hexdump.
6634     func_classfile_version ()
6635     {
6636       dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
6637       echo
6638     }
6639   fi
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
6641 $as_echo_n "checking for Java compiler... " >&6; }
6642                                                                                         CONF_JAVAC=
6643   HAVE_JAVAC_ENVVAR=
6644   HAVE_GCJ_C=
6645   HAVE_JAVAC=
6646   HAVE_JIKES=
6647   HAVE_JAVACOMP=
6648   cat > conftestlib.java <<EOF
6649 public class conftestlib {
6650   public static void main (String[] args) {
6651   }
6652 }
6653 EOF
6654   echo "$goodcode" > conftest.java
6655   echo "$failcode" > conftestfail.java
6656         if test -n "$JAVAC"; then
6657         if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
6658             if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6659                         rm -f conftest.class
6660         if { echo "$as_me:6660: $JAVAC -d . conftest.java" >&5
6661              $JAVAC -d . conftest.java >&5 2>&1
6662            } \
6663            && test -f conftest.class \
6664            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6665                     rm -f conftest.class
6666           rm -f conftestfail.class
6667           if { echo "$as_me:6667: $JAVAC -fsource=$source_version -d . conftest.java" >&5
6668                $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
6669              } \
6670              && test -f conftest.class \
6671              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6672              && { echo "$as_me:6672: $JAVAC -d . conftestfail.java" >&5
6673                   $JAVAC -d . conftestfail.java >&5 2>&1
6674                 } \
6675              && test -f conftestfail.class \
6676              && ! { echo "$as_me:6676: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
6677                     $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6678                   }; then
6679             CONF_JAVAC="$JAVAC -fsource=$source_version"
6680             HAVE_JAVAC_ENVVAR=1
6681             HAVE_JAVACOMP=1
6682           else
6683             CONF_JAVAC="$JAVAC"
6684             HAVE_JAVAC_ENVVAR=1
6685             HAVE_JAVACOMP=1
6686           fi
6687         else
6688                     rm -f conftest.class
6689           rm -f conftestfail.class
6690           if { echo "$as_me:6690: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6691                $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6692              } \
6693              && test -f conftest.class \
6694              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6695             CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
6696             HAVE_JAVAC_ENVVAR=1
6697             HAVE_JAVACOMP=1
6698           fi
6699         fi
6700       else
6701                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6702                     rm -f conftest.class
6703           if { echo "$as_me:6703: $JAVAC -d . conftest.java" >&5
6704                $JAVAC -d . conftest.java >&5 2>&1
6705              } \
6706              && test -f conftest.class; then
6707             CONF_JAVAC="$JAVAC"
6708             HAVE_JAVAC_ENVVAR=1
6709             HAVE_JAVACOMP=1
6710           fi
6711         else
6712           if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
6713                                     javac_works=
6714             rm -f conftest.class
6715             if { echo "$as_me:6715: $JAVAC -d . conftest.java" >&5
6716                  $JAVAC -d . conftest.java >&5 2>&1
6717                } \
6718                && test -f conftest.class; then
6719               javac_works=1
6720             fi
6721             javac_noassert_works=
6722             rm -f conftest.class
6723             if { echo "$as_me:6723: $JAVAC -fno-assert -d . conftest.java" >&5
6724                  $JAVAC -fno-assert -d . conftest.java >&5 2>&1
6725                } \
6726                && test -f conftest.class; then
6727               javac_noassert_works=1
6728             fi
6729             if test -n "$javac_works" && test -n "$javac_noassert_works"; then
6730               rm -f conftestfail.class
6731               if { echo "$as_me:6731: $JAVAC -d . conftestfail.java" >&5
6732                    $JAVAC -d . conftestfail.java >&5 2>&1
6733                  } \
6734                  && test -f conftestfail.class \
6735                  && ! { echo "$as_me:6735: $JAVAC -fno-assert -d . conftestfail.java" >&5
6736                         $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
6737                       }; then
6738                                 javac_works=
6739               fi
6740             fi
6741             if test -n "$javac_works"; then
6742               CONF_JAVAC="$JAVAC"
6743               HAVE_JAVAC_ENVVAR=1
6744               HAVE_JAVACOMP=1
6745             else
6746               if test -n "$javac_noassert_works"; then
6747                 CONF_JAVAC="$JAVAC -fno-assert"
6748                 HAVE_JAVAC_ENVVAR=1
6749                 HAVE_JAVACOMP=1
6750               fi
6751             fi
6752           fi
6753         fi
6754       fi
6755     else
6756                   rm -f conftest.class
6757       if { echo "$as_me:6757: $JAVAC -d . conftest.java" >&5
6758            $JAVAC -d . conftest.java >&5 2>&1
6759          } \
6760          && test -f conftest.class \
6761          && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6762                 rm -f conftest.class
6763         rm -f conftestfail.class
6764         if { echo "$as_me:6764: $JAVAC -source $source_version -d . conftest.java" >&5
6765              $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
6766            } \
6767            && test -f conftest.class \
6768            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6769            && { echo "$as_me:6769: $JAVAC -d . conftestfail.java" >&5
6770                 $JAVAC -d . conftestfail.java >&5 2>&1
6771               } \
6772            && test -f conftestfail.class \
6773            && ! { echo "$as_me:6773: $JAVAC -source $source_version -d . conftestfail.java" >&5
6774                   $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
6775                 }; then
6776           CONF_JAVAC="$JAVAC -source $source_version"
6777           HAVE_JAVAC_ENVVAR=1
6778           HAVE_JAVACOMP=1
6779         else
6780           CONF_JAVAC="$JAVAC"
6781           HAVE_JAVAC_ENVVAR=1
6782           HAVE_JAVACOMP=1
6783         fi
6784       else
6785                         rm -f conftest.class
6786         if { echo "$as_me:6786: $JAVAC -target $target_version -d . conftest.java" >&5
6787              $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
6788            } \
6789            && test -f conftest.class \
6790            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6791                     rm -f conftest.class
6792           rm -f conftestfail.class
6793           if { echo "$as_me:6793: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6794                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6795              } \
6796              && test -f conftest.class \
6797              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6798              && { echo "$as_me:6798: $JAVAC -target $target_version -d . conftestfail.java" >&5
6799                   $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
6800                 } \
6801              && test -f conftestfail.class \
6802              && ! { echo "$as_me:6802: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
6803                     $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
6804                   }; then
6805             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6806             HAVE_JAVAC_ENVVAR=1
6807             HAVE_JAVACOMP=1
6808           else
6809             CONF_JAVAC="$JAVAC -target $target_version"
6810             HAVE_JAVAC_ENVVAR=1
6811             HAVE_JAVACOMP=1
6812           fi
6813         else
6814                                         rm -f conftest.class
6815           if { echo "$as_me:6815: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6816                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6817              } \
6818              && test -f conftest.class \
6819              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6820             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6821             HAVE_JAVAC_ENVVAR=1
6822             HAVE_JAVACOMP=1
6823           fi
6824         fi
6825       fi
6826     fi
6827   fi
6828   if test -z "$HAVE_JAVACOMP"; then
6829                 # Extract the first word of "gcj", so it can be a program name with args.
6830 set dummy gcj; ac_word=$2
6831 :
6832 if ${ac_cv_prog_HAVE_GCJ_IN_PATH+:} false; then :
6833   $as_echo_n "(cached) " >&6
6834 else
6835   if test -n "$HAVE_GCJ_IN_PATH"; then
6836   ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841   IFS=$as_save_IFS
6842   test -z "$as_dir" && as_dir=.
6843     for ac_exec_ext in '' $ac_executable_extensions; do
6844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845     ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
6846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847     break 2
6848   fi
6849 done
6850   done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
6856 if test -n "$HAVE_GCJ_IN_PATH"; then
6857   :
6858 else
6859   :
6860 fi
6861
6862
6863     # Extract the first word of "javac", so it can be a program name with args.
6864 set dummy javac; ac_word=$2
6865 :
6866 if ${ac_cv_prog_HAVE_JAVAC_IN_PATH+:} false; then :
6867   $as_echo_n "(cached) " >&6
6868 else
6869   if test -n "$HAVE_JAVAC_IN_PATH"; then
6870   ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877     for ac_exec_ext in '' $ac_executable_extensions; do
6878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879     ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
6880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884   done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
6890 if test -n "$HAVE_JAVAC_IN_PATH"; then
6891   :
6892 else
6893   :
6894 fi
6895
6896
6897     # Extract the first word of "jikes", so it can be a program name with args.
6898 set dummy jikes; ac_word=$2
6899 :
6900 if ${ac_cv_prog_HAVE_JIKES_IN_PATH+:} false; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   if test -n "$HAVE_JIKES_IN_PATH"; then
6904   ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913     ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
6924 if test -n "$HAVE_JIKES_IN_PATH"; then
6925   :
6926 else
6927   :
6928 fi
6929
6930
6931                 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
6932             if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
6933                 if { echo "$as_me:6933: gcj -C -d . conftestlib.java" >&5
6934              gcj -C -d . conftestlib.java >&5 2>&1
6935            }; then
6936                     if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6937                                     rm -f conftest.class
6938             if { echo "$as_me:6938: gcj -C -d . conftest.java" >&5
6939                  gcj -C -d . conftest.java >&5 2>&1
6940                } \
6941                && test -f conftest.class \
6942                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6943                             rm -f conftest.class
6944               rm -f conftestfail.class
6945               if { echo "$as_me:6945: gcj -C -fsource=$source_version -d . conftest.java" >&5
6946                    gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
6947                  } \
6948                  && test -f conftest.class \
6949                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6950                  && { echo "$as_me:6950: gcj -C -d . conftestfail.java" >&5
6951                       gcj -C -d . conftestfail.java >&5 2>&1
6952                     } \
6953                  && test -f conftestfail.class \
6954                  && ! { echo "$as_me:6954: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
6955                         gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6956                       }; then
6957                 CONF_JAVAC="gcj -C -fsource=$source_version"
6958                 HAVE_JAVAC_ENVVAR=1
6959                 HAVE_JAVACOMP=1
6960               else
6961                 CONF_JAVAC="gcj -C"
6962                 HAVE_JAVAC_ENVVAR=1
6963                 HAVE_JAVACOMP=1
6964               fi
6965             else
6966                             rm -f conftest.class
6967               rm -f conftestfail.class
6968               if { echo "$as_me:6968: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6969                    gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6970                  } \
6971                  && test -f conftest.class \
6972                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6973                 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
6974                 HAVE_JAVAC_ENVVAR=1
6975                 HAVE_JAVACOMP=1
6976               fi
6977             fi
6978           else
6979                                                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6980               rm -f conftest.class
6981               if { echo "$as_me:6981: gcj -C -d . conftest.java" >&5
6982                    gcj -C -d . conftest.java >&5 2>&1
6983                  } \
6984                  && test -f conftest.class; then
6985                 CONF_JAVAC="gcj -C"
6986                 HAVE_GCJ_C=1
6987                 HAVE_JAVACOMP=1
6988               fi
6989             else
6990               if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
6991                                                 rm -f conftest.class
6992                 if { echo "$as_me:6992: gcj -C -fno-assert -d . conftest.java" >&5
6993                      gcj -C -fno-assert -d . conftest.java >&5 2>&1
6994                    } \
6995                    && test -f conftest.class; then
6996                   CONF_JAVAC="gcj -C -fno-assert"
6997                   HAVE_GCJ_C=1
6998                   HAVE_JAVACOMP=1
6999                 else
7000                   rm -f conftest.class
7001                   if { echo "$as_me:7001: gcj -C -d . conftest.java" >&5
7002                        gcj -C -d . conftest.java >&5 2>&1
7003                      } \
7004                      && test -f conftest.class; then
7005                     CONF_JAVAC="gcj -C"
7006                     HAVE_GCJ_C=1
7007                     HAVE_JAVACOMP=1
7008                   fi
7009                 fi
7010               fi
7011             fi
7012           fi
7013         fi
7014       fi
7015     fi
7016     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
7017             if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
7018          && ( 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
7019                                 rm -f conftest.class
7020         if { echo "$as_me:7020: javac -d . conftest.java" >&5
7021              javac -d . conftest.java >&5 2>&1
7022            } \
7023            && test -f conftest.class \
7024            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
7025                     rm -f conftest.class
7026           rm -f conftestfail.class
7027           if { echo "$as_me:7027: javac -source $source_version -d . conftest.java" >&5
7028                javac -source "$source_version" -d . conftest.java >&5 2>&1
7029              } \
7030              && test -f conftest.class \
7031              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
7032              && { echo "$as_me:7032: javac -d . conftestfail.java" >&5
7033                   javac -d . conftestfail.java >&5 2>&1
7034                 } \
7035              && test -f conftestfail.class \
7036              && ! { echo "$as_me:7036: javac -source $source_version -d . conftestfail.java" >&5
7037                     javac -source "$source_version" -d . conftestfail.java >&5 2>&1
7038                   }; then
7039             CONF_JAVAC="javac -source $source_version"
7040             HAVE_JAVAC=1
7041             HAVE_JAVACOMP=1
7042           else
7043             CONF_JAVAC="javac"
7044             HAVE_JAVAC=1
7045             HAVE_JAVACOMP=1
7046           fi
7047         else
7048                               rm -f conftest.class
7049           if { echo "$as_me:7049: javac -target $target_version -d . conftest.java" >&5
7050                javac -target "$target_version" -d . conftest.java >&5 2>&1
7051              } \
7052              && test -f conftest.class \
7053              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
7054                         rm -f conftest.class
7055             rm -f conftestfail.class
7056             if { echo "$as_me:7056: javac -target $target_version -source $source_version -d . conftest.java" >&5
7057                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
7058                } \
7059                && test -f conftest.class \
7060                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
7061                && { echo "$as_me:7061: javac -target $target_version -d . conftestfail.java" >&5
7062                     javac -target "$target_version" -d . conftestfail.java >&5 2>&1
7063                   } \
7064                && test -f conftestfail.class \
7065                && ! { echo "$as_me:7065: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
7066                       javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
7067                     }; then
7068               CONF_JAVAC="javac -target $target_version -source $source_version"
7069               HAVE_JAVAC=1
7070               HAVE_JAVACOMP=1
7071             else
7072               CONF_JAVAC="javac -target $target_version"
7073               HAVE_JAVAC=1
7074               HAVE_JAVACOMP=1
7075             fi
7076           else
7077                                                 rm -f conftest.class
7078             if { echo "$as_me:7078: javac -target $target_version -source $source_version -d . conftest.java" >&5
7079                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
7080                } \
7081                && test -f conftest.class \
7082                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
7083               CONF_JAVAC="javac -target $target_version -source $source_version"
7084               HAVE_JAVAC=1
7085               HAVE_JAVACOMP=1
7086             fi
7087           fi
7088         fi
7089       fi
7090     fi
7091     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
7092             if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
7093          && (
7094               # See if the existing CLASSPATH is sufficient to make jikes work.
7095               unset JAVA_HOME
7096               jikes conftestlib.java >&5 2>&1
7097               error=$?
7098               rm -f conftestlib.class
7099               exit $error
7100             ); then
7101                                 if test "$source_version" = 1.3; then
7102           CONF_JAVAC="jikes"
7103           HAVE_JIKES=1
7104           HAVE_JAVACOMP=1
7105         fi
7106       fi
7107     fi
7108   fi
7109   rm -f conftest*.java conftest*.class
7110   if test -n "$HAVE_JAVACOMP"; then
7111     ac_result="$CONF_JAVAC"
7112   else
7113     ac_result="no"
7114   fi
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
7116 $as_echo "$ac_result" >&6; }
7117
7118
7119
7120
7121
7122
7123
7124
7125 # Extract the first word of "jar", so it can be a program name with args.
7126 set dummy jar; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_JAR+:} false; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -n "$JAR"; then
7133   ac_cv_prog_JAR="$JAR" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140     for ac_exec_ext in '' $ac_executable_extensions; do
7141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142     ac_cv_prog_JAR="jar"
7143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147   done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 JAR=$ac_cv_prog_JAR
7153 if test -n "$JAR"; then
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
7155 $as_echo "$JAR" >&6; }
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161
7162 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
7163   BUILDJAVA=yes
7164 else
7165   BUILDJAVA=no
7166 fi
7167
7168 if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
7169   TESTJAVA=yes
7170 else
7171   TESTJAVA=no
7172 fi
7173
7174
7175
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
7177 $as_echo_n "checking for preferred C# implementation... " >&6; }
7178   # Check whether --enable-csharp was given.
7179 if test "${enable_csharp+set}" = set; then :
7180   enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
7181 else
7182   CSHARP_CHOICE=any
7183 fi
7184
7185
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
7187 $as_echo "$CSHARP_CHOICE" >&6; }
7188   case "$CSHARP_CHOICE" in
7189     pnet)
7190
7191 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
7192
7193       ;;
7194     mono)
7195
7196 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
7197
7198       ;;
7199   esac
7200
7201
7202
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
7204 $as_echo_n "checking for C# compiler... " >&6; }
7205   HAVE_CSHARPCOMP=1
7206         # Extract the first word of "cscc", so it can be a program name with args.
7207 set dummy cscc; ac_word=$2
7208 :
7209 if ${ac_cv_prog_HAVE_CSCC_IN_PATH+:} false; then :
7210   $as_echo_n "(cached) " >&6
7211 else
7212   if test -n "$HAVE_CSCC_IN_PATH"; then
7213   ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220     for ac_exec_ext in '' $ac_executable_extensions; do
7221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222     ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
7223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227   done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
7233 if test -n "$HAVE_CSCC_IN_PATH"; then
7234   :
7235 else
7236   :
7237 fi
7238
7239
7240   # Extract the first word of "mcs", so it can be a program name with args.
7241 set dummy mcs; ac_word=$2
7242 :
7243 if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then :
7244   $as_echo_n "(cached) " >&6
7245 else
7246   if test -n "$HAVE_MCS_IN_PATH"; then
7247   ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254     for ac_exec_ext in '' $ac_executable_extensions; do
7255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256     ac_cv_prog_HAVE_MCS_IN_PATH="yes"
7257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261   done
7262 IFS=$as_save_IFS
7263
7264 fi
7265 fi
7266 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
7267 if test -n "$HAVE_MCS_IN_PATH"; then
7268   :
7269 else
7270   :
7271 fi
7272
7273
7274   # Extract the first word of "csc", so it can be a program name with args.
7275 set dummy csc; ac_word=$2
7276 :
7277 if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   if test -n "$HAVE_CSC_IN_PATH"; then
7281   ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288     for ac_exec_ext in '' $ac_executable_extensions; do
7289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290     ac_cv_prog_HAVE_CSC_IN_PATH="yes"
7291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295   done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
7301 if test -n "$HAVE_CSC_IN_PATH"; then
7302   :
7303 else
7304   :
7305 fi
7306
7307
7308         for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
7309     case "$impl" in
7310       pnet)
7311         if test -n "$HAVE_CSCC_IN_PATH" \
7312            && cscc --version >/dev/null 2>/dev/null \
7313            && (
7314              # See if pnetlib is well installed.
7315              echo 'class ConfTest { static void Main() { } }' > conftest.cs
7316              cscc -o conftest.exe conftest.cs 2>/dev/null
7317              error=$?
7318              rm -f conftest.cs conftest.exe
7319              exit $error
7320             ); then
7321           HAVE_CSCC=1
7322           ac_result="cscc"
7323           break
7324         fi
7325         ;;
7326       mono)
7327         if test -n "$HAVE_MCS_IN_PATH" \
7328            && mcs --version >/dev/null 2>/dev/null \
7329            && mcs --version 2>/dev/null | grep Mono >/dev/null; then
7330           HAVE_MCS=1
7331           ac_result="mcs"
7332           break
7333         fi
7334         ;;
7335       sscli)
7336         if test -n "$HAVE_CSC_IN_PATH" \
7337            && csc -help >/dev/null 2>/dev/null \
7338            && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
7339           HAVE_CSC=1
7340           ac_result="csc"
7341           break
7342         fi
7343         ;;
7344       no)
7345         HAVE_CSHARPCOMP=
7346         ac_result="no"
7347         break
7348         ;;
7349     esac
7350   done
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
7352 $as_echo "$ac_result" >&6; }
7353
7354
7355
7356     if test -z "${CSHARPCOMPFLAGS+set}"; then
7357     CSHARPCOMPFLAGS="-O -g"
7358   fi
7359
7360
7361 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
7362   BUILDCSHARP=yes
7363 else
7364   BUILDCSHARP=no
7365 fi
7366
7367
7368
7369
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# program execution engine" >&5
7371 $as_echo_n "checking for C# program execution engine... " >&6; }
7372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h.  */
7374
7375 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
7376   yes
7377 #endif
7378
7379 _ACEOF
7380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7381   $EGREP "yes" >/dev/null 2>&1; then :
7382   MONO_PATH_SEPARATOR=';'
7383 else
7384   MONO_PATH_SEPARATOR=':'
7385 fi
7386 rm -f conftest*
7387
7388   HAVE_CSHARPEXEC=1
7389         # Extract the first word of "ilrun", so it can be a program name with args.
7390 set dummy ilrun; ac_word=$2
7391 :
7392 if ${ac_cv_prog_HAVE_ILRUN_IN_PATH+:} false; then :
7393   $as_echo_n "(cached) " >&6
7394 else
7395   if test -n "$HAVE_ILRUN_IN_PATH"; then
7396   ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403     for ac_exec_ext in '' $ac_executable_extensions; do
7404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405     ac_cv_prog_HAVE_ILRUN_IN_PATH="yes"
7406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410   done
7411 IFS=$as_save_IFS
7412
7413 fi
7414 fi
7415 HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH
7416 if test -n "$HAVE_ILRUN_IN_PATH"; then
7417   :
7418 else
7419   :
7420 fi
7421
7422
7423   # Extract the first word of "mono", so it can be a program name with args.
7424 set dummy mono; ac_word=$2
7425 :
7426 if ${ac_cv_prog_HAVE_MONO_IN_PATH+:} false; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   if test -n "$HAVE_MONO_IN_PATH"; then
7430   ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435   IFS=$as_save_IFS
7436   test -z "$as_dir" && as_dir=.
7437     for ac_exec_ext in '' $ac_executable_extensions; do
7438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439     ac_cv_prog_HAVE_MONO_IN_PATH="yes"
7440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441     break 2
7442   fi
7443 done
7444   done
7445 IFS=$as_save_IFS
7446
7447 fi
7448 fi
7449 HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH
7450 if test -n "$HAVE_MONO_IN_PATH"; then
7451   :
7452 else
7453   :
7454 fi
7455
7456
7457   # Extract the first word of "clix", so it can be a program name with args.
7458 set dummy clix; ac_word=$2
7459 :
7460 if ${ac_cv_prog_HAVE_CLIX_IN_PATH+:} false; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   if test -n "$HAVE_CLIX_IN_PATH"; then
7464   ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471     for ac_exec_ext in '' $ac_executable_extensions; do
7472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473     ac_cv_prog_HAVE_CLIX_IN_PATH="yes"
7474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478   done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH
7484 if test -n "$HAVE_CLIX_IN_PATH"; then
7485   :
7486 else
7487   :
7488 fi
7489
7490
7491         for impl in "$CSHARP_CHOICE" pnet mono no; do
7492     case "$impl" in
7493       pnet)
7494         if test -n "$HAVE_ILRUN_IN_PATH" \
7495            && ilrun --version >/dev/null 2>/dev/null \
7496            && ilrun $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
7497           HAVE_ILRUN=1
7498           ac_result="ilrun"
7499           break
7500         fi
7501         ;;
7502       mono)
7503         if test -n "$HAVE_MONO_IN_PATH" \
7504            && mono --version >/dev/null 2>/dev/null \
7505            && mono $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
7506           HAVE_MONO=1
7507           ac_result="mono"
7508           break
7509         fi
7510         ;;
7511       sscli)
7512         if test -n "$HAVE_CLIX_IN_PATH" \
7513            && clix $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
7514           HAVE_CLIX=1
7515           case $host_os in
7516             cygwin* | mingw* | pw32*)
7517               CLIX_PATH_VAR=PATH
7518               ;;
7519             darwin* | rhapsody*)
7520               CLIX_PATH_VAR=DYLD_LIBRARY_PATH
7521               ;;
7522             *)
7523               CLIX_PATH_VAR=LD_LIBRARY_PATH
7524               ;;
7525           esac
7526           eval CLIX_PATH=\"\$CLIX_PATH_VAR\"
7527           ac_result="clix"
7528           break
7529         fi
7530         ;;
7531       no)
7532         HAVE_CSHARPEXEC=
7533         ac_result="no"
7534         break
7535         ;;
7536     esac
7537   done
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
7539 $as_echo "$ac_result" >&6; }
7540
7541
7542
7543
7544
7545
7546
7547
7548 if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
7549   TESTCSHARP=yes
7550 else
7551   TESTCSHARP=no
7552 fi
7553
7554
7555 # Make sure we can run config.sub.
7556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7557   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7558
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7560 $as_echo_n "checking build system type... " >&6; }
7561 if ${ac_cv_build+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   ac_build_alias=$build_alias
7565 test "x$ac_build_alias" = x &&
7566   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7567 test "x$ac_build_alias" = x &&
7568   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7570   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7574 $as_echo "$ac_cv_build" >&6; }
7575 case $ac_cv_build in
7576 *-*-*) ;;
7577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7578 esac
7579 build=$ac_cv_build
7580 ac_save_IFS=$IFS; IFS='-'
7581 set x $ac_cv_build
7582 shift
7583 build_cpu=$1
7584 build_vendor=$2
7585 shift; shift
7586 # Remember, the first character of IFS is used to create $*,
7587 # except with old shells:
7588 build_os=$*
7589 IFS=$ac_save_IFS
7590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7591
7592
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7594 $as_echo_n "checking host system type... " >&6; }
7595 if ${ac_cv_host+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   if test "x$host_alias" = x; then
7599   ac_cv_host=$ac_cv_build
7600 else
7601   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7602     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7603 fi
7604
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7607 $as_echo "$ac_cv_host" >&6; }
7608 case $ac_cv_host in
7609 *-*-*) ;;
7610 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7611 esac
7612 host=$ac_cv_host
7613 ac_save_IFS=$IFS; IFS='-'
7614 set x $ac_cv_host
7615 shift
7616 host_cpu=$1
7617 host_vendor=$2
7618 shift; shift
7619 # Remember, the first character of IFS is used to create $*,
7620 # except with old shells:
7621 host_os=$*
7622 IFS=$ac_save_IFS
7623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7624
7625
7626
7627
7628
7629
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7631 $as_echo_n "checking for ANSI C header files... " >&6; }
7632 if ${ac_cv_header_stdc+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h.  */
7637 #include <stdlib.h>
7638 #include <stdarg.h>
7639 #include <string.h>
7640 #include <float.h>
7641
7642 int
7643 main ()
7644 {
7645
7646   ;
7647   return 0;
7648 }
7649 _ACEOF
7650 if ac_fn_c_try_compile "$LINENO"; then :
7651   ac_cv_header_stdc=yes
7652 else
7653   ac_cv_header_stdc=no
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656
7657 if test $ac_cv_header_stdc = yes; then
7658   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h.  */
7661 #include <string.h>
7662
7663 _ACEOF
7664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7665   $EGREP "memchr" >/dev/null 2>&1; then :
7666
7667 else
7668   ac_cv_header_stdc=no
7669 fi
7670 rm -f conftest*
7671
7672 fi
7673
7674 if test $ac_cv_header_stdc = yes; then
7675   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h.  */
7678 #include <stdlib.h>
7679
7680 _ACEOF
7681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7682   $EGREP "free" >/dev/null 2>&1; then :
7683
7684 else
7685   ac_cv_header_stdc=no
7686 fi
7687 rm -f conftest*
7688
7689 fi
7690
7691 if test $ac_cv_header_stdc = yes; then
7692   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7693   if test "$cross_compiling" = yes; then :
7694   :
7695 else
7696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h.  */
7698 #include <ctype.h>
7699 #include <stdlib.h>
7700 #if ((' ' & 0x0FF) == 0x020)
7701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7703 #else
7704 # define ISLOWER(c) \
7705                    (('a' <= (c) && (c) <= 'i') \
7706                      || ('j' <= (c) && (c) <= 'r') \
7707                      || ('s' <= (c) && (c) <= 'z'))
7708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7709 #endif
7710
7711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7712 int
7713 main ()
7714 {
7715   int i;
7716   for (i = 0; i < 256; i++)
7717     if (XOR (islower (i), ISLOWER (i))
7718         || toupper (i) != TOUPPER (i))
7719       return 2;
7720   return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_run "$LINENO"; then :
7724
7725 else
7726   ac_cv_header_stdc=no
7727 fi
7728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7729   conftest.$ac_objext conftest.beam conftest.$ac_ext
7730 fi
7731
7732 fi
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7735 $as_echo "$ac_cv_header_stdc" >&6; }
7736 if test $ac_cv_header_stdc = yes; then
7737
7738 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7739
7740 fi
7741
7742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7743 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7744                   inttypes.h stdint.h unistd.h
7745 do :
7746   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7748 "
7749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7750   cat >>confdefs.h <<_ACEOF
7751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7752 _ACEOF
7753
7754 fi
7755
7756 done
7757
7758
7759
7760   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7761 if test "x$ac_cv_header_minix_config_h" = xyes; then :
7762   MINIX=yes
7763 else
7764   MINIX=
7765 fi
7766
7767
7768   if test "$MINIX" = yes; then
7769
7770 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7771
7772
7773 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7774
7775
7776 $as_echo "#define _MINIX 1" >>confdefs.h
7777
7778
7779 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7780
7781   fi
7782
7783
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7785 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7786 if ${ac_cv_safe_to_define___extensions__+:} false; then :
7787   $as_echo_n "(cached) " >&6
7788 else
7789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h.  */
7791
7792 #         define __EXTENSIONS__ 1
7793           $ac_includes_default
7794 int
7795 main ()
7796 {
7797
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 if ac_fn_c_try_compile "$LINENO"; then :
7803   ac_cv_safe_to_define___extensions__=yes
7804 else
7805   ac_cv_safe_to_define___extensions__=no
7806 fi
7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7810 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7811   test $ac_cv_safe_to_define___extensions__ = yes &&
7812     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7813
7814   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7815
7816   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7817
7818   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7819
7820   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
7821
7822   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7823
7824   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7825
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7827 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7828 if ${ac_cv_should_define__xopen_source+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   ac_cv_should_define__xopen_source=no
7832      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h.  */
7834
7835           #include <wchar.h>
7836           mbstate_t x;
7837 int
7838 main ()
7839 {
7840
7841   ;
7842   return 0;
7843 }
7844 _ACEOF
7845 if ac_fn_c_try_compile "$LINENO"; then :
7846
7847 else
7848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h.  */
7850
7851              #define _XOPEN_SOURCE 500
7852              #include <wchar.h>
7853              mbstate_t x;
7854 int
7855 main ()
7856 {
7857
7858   ;
7859   return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863   ac_cv_should_define__xopen_source=yes
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 fi
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7870 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
7871   test $ac_cv_should_define__xopen_source = yes &&
7872     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7885 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
7886 if ${gl_cv_c_amsterdam_compiler+:} false; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889
7890       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h.  */
7892
7893 #ifdef __ACK__
7894 Amsterdam
7895 #endif
7896
7897 _ACEOF
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899   $EGREP "Amsterdam" >/dev/null 2>&1; then :
7900   gl_cv_c_amsterdam_compiler=yes
7901 else
7902   gl_cv_c_amsterdam_compiler=no
7903 fi
7904 rm -f conftest*
7905
7906
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7909 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
7910
7911       if test $gl_cv_c_amsterdam_compiler = yes; then
7912     if test -z "$AR"; then
7913       AR='cc -c.a'
7914     fi
7915     if test -z "$ARFLAGS"; then
7916       ARFLAGS='-o'
7917     fi
7918   else
7919                                         if test -n "$ac_tool_prefix"; then
7920   for ac_prog in ar lib "link -lib"
7921   do
7922     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_prog_AR+:} false; then :
7927   $as_echo_n "(cached) " >&6
7928 else
7929   if test -n "$AR"; then
7930   ac_cv_prog_AR="$AR" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935   IFS=$as_save_IFS
7936   test -z "$as_dir" && as_dir=.
7937     for ac_exec_ext in '' $ac_executable_extensions; do
7938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941     break 2
7942   fi
7943 done
7944   done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 AR=$ac_cv_prog_AR
7950 if test -n "$AR"; then
7951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7952 $as_echo "$AR" >&6; }
7953 else
7954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7956 fi
7957
7958
7959     test -n "$AR" && break
7960   done
7961 fi
7962 if test -z "$AR"; then
7963   ac_ct_AR=$AR
7964   for ac_prog in ar lib "link -lib"
7965 do
7966   # Extract the first word of "$ac_prog", so it can be a program name with args.
7967 set dummy $ac_prog; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973   if test -n "$ac_ct_AR"; then
7974   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979   IFS=$as_save_IFS
7980   test -z "$as_dir" && as_dir=.
7981     for ac_exec_ext in '' $ac_executable_extensions; do
7982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983     ac_cv_prog_ac_ct_AR="$ac_prog"
7984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985     break 2
7986   fi
7987 done
7988   done
7989 IFS=$as_save_IFS
7990
7991 fi
7992 fi
7993 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7994 if test -n "$ac_ct_AR"; then
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7996 $as_echo "$ac_ct_AR" >&6; }
7997 else
7998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8000 fi
8001
8002
8003   test -n "$ac_ct_AR" && break
8004 done
8005
8006   if test "x$ac_ct_AR" = x; then
8007     AR="false"
8008   else
8009     case $cross_compiling:$ac_tool_warned in
8010 yes:)
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013 ac_tool_warned=yes ;;
8014 esac
8015     AR=$ac_ct_AR
8016   fi
8017 fi
8018
8019 : ${AR=ar}
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8022 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8023 if ${am_cv_ar_interface+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   ac_ext=c
8027 ac_cpp='$CPP $CPPFLAGS'
8028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031
8032    am_cv_ar_interface=ar
8033    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h.  */
8035 int some_variable = 0;
8036 _ACEOF
8037 if ac_fn_c_try_compile "$LINENO"; then :
8038   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8039       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8040   (eval $am_ar_try) 2>&5
8041   ac_status=$?
8042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8043   test $ac_status = 0; }
8044       if test "$ac_status" -eq 0; then
8045         am_cv_ar_interface=ar
8046       else
8047         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8048         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8049   (eval $am_ar_try) 2>&5
8050   ac_status=$?
8051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8052   test $ac_status = 0; }
8053         if test "$ac_status" -eq 0; then
8054           am_cv_ar_interface=lib
8055         else
8056           am_cv_ar_interface=unknown
8057         fi
8058       fi
8059       rm -f conftest.lib libconftest.a
8060
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063    ac_ext=c
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068
8069 fi
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8071 $as_echo "$am_cv_ar_interface" >&6; }
8072
8073 case $am_cv_ar_interface in
8074 ar)
8075   ;;
8076 lib)
8077   # Microsoft lib, so override with the ar-lib wrapper script.
8078   # FIXME: It is wrong to rewrite AR.
8079   # But if we don't then we get into trouble of one sort or another.
8080   # A longer-term fix would be to have automake use am__AR in this case,
8081   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8082   # similar.
8083   AR="$am_aux_dir/ar-lib $AR"
8084   ;;
8085 unknown)
8086   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8087   ;;
8088 esac
8089
8090   fi
8091
8092         if test -n "$ac_tool_prefix"; then
8093   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8094 set dummy ${ac_tool_prefix}ar; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if ${ac_cv_prog_AR+:} false; then :
8098   $as_echo_n "(cached) " >&6
8099 else
8100   if test -n "$AR"; then
8101   ac_cv_prog_AR="$AR" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106   IFS=$as_save_IFS
8107   test -z "$as_dir" && as_dir=.
8108     for ac_exec_ext in '' $ac_executable_extensions; do
8109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110     ac_cv_prog_AR="${ac_tool_prefix}ar"
8111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112     break 2
8113   fi
8114 done
8115   done
8116 IFS=$as_save_IFS
8117
8118 fi
8119 fi
8120 AR=$ac_cv_prog_AR
8121 if test -n "$AR"; then
8122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8123 $as_echo "$AR" >&6; }
8124 else
8125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8127 fi
8128
8129
8130 fi
8131 if test -z "$ac_cv_prog_AR"; then
8132   ac_ct_AR=$AR
8133   # Extract the first word of "ar", so it can be a program name with args.
8134 set dummy ar; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8138   $as_echo_n "(cached) " >&6
8139 else
8140   if test -n "$ac_ct_AR"; then
8141   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8142 else
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146   IFS=$as_save_IFS
8147   test -z "$as_dir" && as_dir=.
8148     for ac_exec_ext in '' $ac_executable_extensions; do
8149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150     ac_cv_prog_ac_ct_AR="ar"
8151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152     break 2
8153   fi
8154 done
8155   done
8156 IFS=$as_save_IFS
8157
8158 fi
8159 fi
8160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8161 if test -n "$ac_ct_AR"; then
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8163 $as_echo "$ac_ct_AR" >&6; }
8164 else
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8167 fi
8168
8169   if test "x$ac_ct_AR" = x; then
8170     AR="ar"
8171   else
8172     case $cross_compiling:$ac_tool_warned in
8173 yes:)
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8176 ac_tool_warned=yes ;;
8177 esac
8178     AR=$ac_ct_AR
8179   fi
8180 else
8181   AR="$ac_cv_prog_AR"
8182 fi
8183
8184   if test -z "$ARFLAGS"; then
8185     ARFLAGS='cr'
8186   fi
8187
8188
8189
8190   if test -z "$RANLIB"; then
8191     if test $gl_cv_c_amsterdam_compiler = yes; then
8192       RANLIB=':'
8193     else
8194             if test -n "$ac_tool_prefix"; then
8195   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8196 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_prog_RANLIB+:} false; then :
8200   $as_echo_n "(cached) " >&6
8201 else
8202   if test -n "$RANLIB"; then
8203   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208   IFS=$as_save_IFS
8209   test -z "$as_dir" && as_dir=.
8210     for ac_exec_ext in '' $ac_executable_extensions; do
8211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214     break 2
8215   fi
8216 done
8217   done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 RANLIB=$ac_cv_prog_RANLIB
8223 if test -n "$RANLIB"; then
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8225 $as_echo "$RANLIB" >&6; }
8226 else
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231
8232 fi
8233 if test -z "$ac_cv_prog_RANLIB"; then
8234   ac_ct_RANLIB=$RANLIB
8235   # Extract the first word of "ranlib", so it can be a program name with args.
8236 set dummy ranlib; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242   if test -n "$ac_ct_RANLIB"; then
8243   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8244 else
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 for as_dir in $PATH
8247 do
8248   IFS=$as_save_IFS
8249   test -z "$as_dir" && as_dir=.
8250     for ac_exec_ext in '' $ac_executable_extensions; do
8251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252     ac_cv_prog_ac_ct_RANLIB="ranlib"
8253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254     break 2
8255   fi
8256 done
8257   done
8258 IFS=$as_save_IFS
8259
8260 fi
8261 fi
8262 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8263 if test -n "$ac_ct_RANLIB"; then
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8265 $as_echo "$ac_ct_RANLIB" >&6; }
8266 else
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270
8271   if test "x$ac_ct_RANLIB" = x; then
8272     RANLIB=":"
8273   else
8274     case $cross_compiling:$ac_tool_warned in
8275 yes:)
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8278 ac_tool_warned=yes ;;
8279 esac
8280     RANLIB=$ac_ct_RANLIB
8281   fi
8282 else
8283   RANLIB="$ac_cv_prog_RANLIB"
8284 fi
8285
8286     fi
8287   fi
8288
8289
8290
8291
8292
8293
8294   # IEEE behaviour is the default on all CPUs except Alpha and SH
8295   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
8296   # and the GCC 4.1.2 manual).
8297   case "$host_cpu" in
8298     alpha*)
8299       # On Alpha systems, a compiler option provides the behaviour.
8300       # See the ieee(3) manual page, also available at
8301       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
8302       if test -n "$GCC"; then
8303         # GCC has the option -mieee.
8304         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
8305         CPPFLAGS="$CPPFLAGS -mieee"
8306       else
8307         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
8308         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
8309         CPPFLAGS="$CPPFLAGS -ieee"
8310       fi
8311       ;;
8312     sh*)
8313       if test -n "$GCC"; then
8314         # GCC has the option -mieee.
8315         CPPFLAGS="$CPPFLAGS -mieee"
8316       fi
8317       ;;
8318   esac
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8321 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8322 if ${ac_cv_sys_largefile_source+:} false; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   while :; do
8326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h.  */
8328 #include <sys/types.h> /* for off_t */
8329      #include <stdio.h>
8330 int
8331 main ()
8332 {
8333 int (*fp) (FILE *, off_t, int) = fseeko;
8334      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 if ac_fn_c_try_link "$LINENO"; then :
8340   ac_cv_sys_largefile_source=no; break
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext \
8343     conftest$ac_exeext conftest.$ac_ext
8344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h.  */
8346 #define _LARGEFILE_SOURCE 1
8347 #include <sys/types.h> /* for off_t */
8348      #include <stdio.h>
8349 int
8350 main ()
8351 {
8352 int (*fp) (FILE *, off_t, int) = fseeko;
8353      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 if ac_fn_c_try_link "$LINENO"; then :
8359   ac_cv_sys_largefile_source=1; break
8360 fi
8361 rm -f core conftest.err conftest.$ac_objext \
8362     conftest$ac_exeext conftest.$ac_ext
8363   ac_cv_sys_largefile_source=unknown
8364   break
8365 done
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8368 $as_echo "$ac_cv_sys_largefile_source" >&6; }
8369 case $ac_cv_sys_largefile_source in #(
8370   no | unknown) ;;
8371   *)
8372 cat >>confdefs.h <<_ACEOF
8373 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8374 _ACEOF
8375 ;;
8376 esac
8377 rm -rf conftest*
8378
8379 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8380 # in glibc 2.1.3, but that breaks too many other things.
8381 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8382 if test $ac_cv_sys_largefile_source != unknown; then
8383
8384 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
8385
8386 fi
8387
8388 # Check whether --enable-largefile was given.
8389 if test "${enable_largefile+set}" = set; then :
8390   enableval=$enable_largefile;
8391 fi
8392
8393 if test "$enable_largefile" != no; then
8394
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8396 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8397 if ${ac_cv_sys_largefile_CC+:} false; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   ac_cv_sys_largefile_CC=no
8401      if test "$GCC" != yes; then
8402        ac_save_CC=$CC
8403        while :; do
8404          # IRIX 6.2 and later do not support large files by default,
8405          # so use the C compiler's -n32 option if that helps.
8406          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407 /* end confdefs.h.  */
8408 #include <sys/types.h>
8409  /* Check that off_t can represent 2**63 - 1 correctly.
8410     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8411     since some C++ compilers masquerading as C compilers
8412     incorrectly reject 9223372036854775807.  */
8413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8414   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8415                        && LARGE_OFF_T % 2147483647 == 1)
8416                       ? 1 : -1];
8417 int
8418 main ()
8419 {
8420
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425          if ac_fn_c_try_compile "$LINENO"; then :
8426   break
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext
8429          CC="$CC -n32"
8430          if ac_fn_c_try_compile "$LINENO"; then :
8431   ac_cv_sys_largefile_CC=' -n32'; break
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext
8434          break
8435        done
8436        CC=$ac_save_CC
8437        rm -f conftest.$ac_ext
8438     fi
8439 fi
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8441 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8442   if test "$ac_cv_sys_largefile_CC" != no; then
8443     CC=$CC$ac_cv_sys_largefile_CC
8444   fi
8445
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8447 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8448 if ${ac_cv_sys_file_offset_bits+:} false; then :
8449   $as_echo_n "(cached) " >&6
8450 else
8451   while :; do
8452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h.  */
8454 #include <sys/types.h>
8455  /* Check that off_t can represent 2**63 - 1 correctly.
8456     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8457     since some C++ compilers masquerading as C compilers
8458     incorrectly reject 9223372036854775807.  */
8459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8460   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8461                        && LARGE_OFF_T % 2147483647 == 1)
8462                       ? 1 : -1];
8463 int
8464 main ()
8465 {
8466
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_compile "$LINENO"; then :
8472   ac_cv_sys_file_offset_bits=no; break
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h.  */
8477 #define _FILE_OFFSET_BITS 64
8478 #include <sys/types.h>
8479  /* Check that off_t can represent 2**63 - 1 correctly.
8480     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8481     since some C++ compilers masquerading as C compilers
8482     incorrectly reject 9223372036854775807.  */
8483 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8484   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8485                        && LARGE_OFF_T % 2147483647 == 1)
8486                       ? 1 : -1];
8487 int
8488 main ()
8489 {
8490
8491   ;
8492   return 0;
8493 }
8494 _ACEOF
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496   ac_cv_sys_file_offset_bits=64; break
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499   ac_cv_sys_file_offset_bits=unknown
8500   break
8501 done
8502 fi
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8504 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8505 case $ac_cv_sys_file_offset_bits in #(
8506   no | unknown) ;;
8507   *)
8508 cat >>confdefs.h <<_ACEOF
8509 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8510 _ACEOF
8511 ;;
8512 esac
8513 rm -rf conftest*
8514   if test $ac_cv_sys_file_offset_bits = unknown; then
8515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8516 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8517 if ${ac_cv_sys_large_files+:} false; then :
8518   $as_echo_n "(cached) " >&6
8519 else
8520   while :; do
8521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h.  */
8523 #include <sys/types.h>
8524  /* Check that off_t can represent 2**63 - 1 correctly.
8525     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8526     since some C++ compilers masquerading as C compilers
8527     incorrectly reject 9223372036854775807.  */
8528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8529   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8530                        && LARGE_OFF_T % 2147483647 == 1)
8531                       ? 1 : -1];
8532 int
8533 main ()
8534 {
8535
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 if ac_fn_c_try_compile "$LINENO"; then :
8541   ac_cv_sys_large_files=no; break
8542 fi
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h.  */
8546 #define _LARGE_FILES 1
8547 #include <sys/types.h>
8548  /* Check that off_t can represent 2**63 - 1 correctly.
8549     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8550     since some C++ compilers masquerading as C compilers
8551     incorrectly reject 9223372036854775807.  */
8552 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8553   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8554                        && LARGE_OFF_T % 2147483647 == 1)
8555                       ? 1 : -1];
8556 int
8557 main ()
8558 {
8559
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565   ac_cv_sys_large_files=1; break
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568   ac_cv_sys_large_files=unknown
8569   break
8570 done
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8573 $as_echo "$ac_cv_sys_large_files" >&6; }
8574 case $ac_cv_sys_large_files in #(
8575   no | unknown) ;;
8576   *)
8577 cat >>confdefs.h <<_ACEOF
8578 #define _LARGE_FILES $ac_cv_sys_large_files
8579 _ACEOF
8580 ;;
8581 esac
8582 rm -rf conftest*
8583   fi
8584
8585
8586 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
8587
8588 fi
8589
8590    case $ac_cv_prog_cc_stdc in #(
8591   no) :
8592     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
8593   *) :
8594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8595 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
8596 if ${ac_cv_prog_cc_c99+:} false; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   ac_cv_prog_cc_c99=no
8600 ac_save_CC=$CC
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h.  */
8603 #include <stdarg.h>
8604 #include <stdbool.h>
8605 #include <stdlib.h>
8606 #include <wchar.h>
8607 #include <stdio.h>
8608
8609 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
8610 #define debug(...) fprintf (stderr, __VA_ARGS__)
8611 #define showlist(...) puts (#__VA_ARGS__)
8612 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8613 static void
8614 test_varargs_macros (void)
8615 {
8616   int x = 1234;
8617   int y = 5678;
8618   debug ("Flag");
8619   debug ("X = %d\n", x);
8620   showlist (The first, second, and third items.);
8621   report (x>y, "x is %d but y is %d", x, y);
8622 }
8623
8624 // Check long long types.
8625 #define BIG64 18446744073709551615ull
8626 #define BIG32 4294967295ul
8627 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8628 #if !BIG_OK
8629   your preprocessor is broken;
8630 #endif
8631 #if BIG_OK
8632 #else
8633   your preprocessor is broken;
8634 #endif
8635 static long long int bignum = -9223372036854775807LL;
8636 static unsigned long long int ubignum = BIG64;
8637
8638 struct incomplete_array
8639 {
8640   int datasize;
8641   double data[];
8642 };
8643
8644 struct named_init {
8645   int number;
8646   const wchar_t *name;
8647   double average;
8648 };
8649
8650 typedef const char *ccp;
8651
8652 static inline int
8653 test_restrict (ccp restrict text)
8654 {
8655   // See if C++-style comments work.
8656   // Iterate through items via the restricted pointer.
8657   // Also check for declarations in for loops.
8658   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8659     continue;
8660   return 0;
8661 }
8662
8663 // Check varargs and va_copy.
8664 static void
8665 test_varargs (const char *format, ...)
8666 {
8667   va_list args;
8668   va_start (args, format);
8669   va_list args_copy;
8670   va_copy (args_copy, args);
8671
8672   const char *str;
8673   int number;
8674   float fnumber;
8675
8676   while (*format)
8677     {
8678       switch (*format++)
8679         {
8680         case 's': // string
8681           str = va_arg (args_copy, const char *);
8682           break;
8683         case 'd': // int
8684           number = va_arg (args_copy, int);
8685           break;
8686         case 'f': // float
8687           fnumber = va_arg (args_copy, double);
8688           break;
8689         default:
8690           break;
8691         }
8692     }
8693   va_end (args_copy);
8694   va_end (args);
8695 }
8696
8697 int
8698 main ()
8699 {
8700
8701   // Check bool.
8702   _Bool success = false;
8703
8704   // Check restrict.
8705   if (test_restrict ("String literal") == 0)
8706     success = true;
8707   char *restrict newvar = "Another string";
8708
8709   // Check varargs.
8710   test_varargs ("s, d' f .", "string", 65, 34.234);
8711   test_varargs_macros ();
8712
8713   // Check flexible array members.
8714   struct incomplete_array *ia =
8715     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8716   ia->datasize = 10;
8717   for (int i = 0; i < ia->datasize; ++i)
8718     ia->data[i] = i * 1.234;
8719
8720   // Check named initializers.
8721   struct named_init ni = {
8722     .number = 34,
8723     .name = L"Test wide string",
8724     .average = 543.34343,
8725   };
8726
8727   ni.number = 58;
8728
8729   int dynamic_array[ni.number];
8730   dynamic_array[ni.number - 1] = 543;
8731
8732   // work around unused variable warnings
8733   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8734           || dynamic_array[ni.number - 1] != 543);
8735
8736   ;
8737   return 0;
8738 }
8739 _ACEOF
8740 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
8741 do
8742   CC="$ac_save_CC $ac_arg"
8743   if ac_fn_c_try_compile "$LINENO"; then :
8744   ac_cv_prog_cc_c99=$ac_arg
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext
8747   test "x$ac_cv_prog_cc_c99" != "xno" && break
8748 done
8749 rm -f conftest.$ac_ext
8750 CC=$ac_save_CC
8751
8752 fi
8753 # AC_CACHE_VAL
8754 case "x$ac_cv_prog_cc_c99" in
8755   x)
8756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8757 $as_echo "none needed" >&6; } ;;
8758   xno)
8759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8760 $as_echo "unsupported" >&6; } ;;
8761   *)
8762     CC="$CC $ac_cv_prog_cc_c99"
8763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8764 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8765 esac
8766 if test "x$ac_cv_prog_cc_c99" != xno; then :
8767   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
8768 else
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8771 if ${ac_cv_prog_cc_c89+:} false; then :
8772   $as_echo_n "(cached) " >&6
8773 else
8774   ac_cv_prog_cc_c89=no
8775 ac_save_CC=$CC
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h.  */
8778 #include <stdarg.h>
8779 #include <stdio.h>
8780 struct stat;
8781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8782 struct buf { int x; };
8783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8784 static char *e (p, i)
8785      char **p;
8786      int i;
8787 {
8788   return p[i];
8789 }
8790 static char *f (char * (*g) (char **, int), char **p, ...)
8791 {
8792   char *s;
8793   va_list v;
8794   va_start (v,p);
8795   s = g (p, va_arg (v,int));
8796   va_end (v);
8797   return s;
8798 }
8799
8800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
8801    function prototypes and stuff, but not '\xHH' hex character constants.
8802    These don't provoke an error unfortunately, instead are silently treated
8803    as 'x'.  The following induces an error, until -std is added to get
8804    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
8805    array size at least.  It's necessary to write '\x00'==0 to get something
8806    that's true only with -std.  */
8807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8808
8809 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8810    inside strings and character constants.  */
8811 #define FOO(x) 'x'
8812 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8813
8814 int test (int i, double x);
8815 struct s1 {int (*f) (int a);};
8816 struct s2 {int (*f) (double a);};
8817 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8818 int argc;
8819 char **argv;
8820 int
8821 main ()
8822 {
8823 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8829         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8830 do
8831   CC="$ac_save_CC $ac_arg"
8832   if ac_fn_c_try_compile "$LINENO"; then :
8833   ac_cv_prog_cc_c89=$ac_arg
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext
8836   test "x$ac_cv_prog_cc_c89" != "xno" && break
8837 done
8838 rm -f conftest.$ac_ext
8839 CC=$ac_save_CC
8840
8841 fi
8842 # AC_CACHE_VAL
8843 case "x$ac_cv_prog_cc_c89" in
8844   x)
8845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8846 $as_echo "none needed" >&6; } ;;
8847   xno)
8848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8849 $as_echo "unsupported" >&6; } ;;
8850   *)
8851     CC="$CC $ac_cv_prog_cc_c89"
8852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8854 esac
8855 if test "x$ac_cv_prog_cc_c89" != xno; then :
8856   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
8857 else
8858   ac_cv_prog_cc_stdc=no
8859 fi
8860
8861 fi
8862  ;;
8863 esac
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
8865 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
8866   if ${ac_cv_prog_cc_stdc+:} false; then :
8867   $as_echo_n "(cached) " >&6
8868 fi
8869
8870   case $ac_cv_prog_cc_stdc in #(
8871   no) :
8872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8873 $as_echo "unsupported" >&6; } ;; #(
8874   '') :
8875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8876 $as_echo "none needed" >&6; } ;; #(
8877   *) :
8878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
8879 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
8880 esac
8881
8882
8883
8884
8885
8886
8887   # Check whether --enable-threads was given.
8888 if test "${enable_threads+set}" = set; then :
8889   enableval=$enable_threads; gl_use_threads=$enableval
8890 else
8891   if test -n "$gl_use_threads_default"; then
8892        gl_use_threads="$gl_use_threads_default"
8893      else
8894        case "$host_os" in
8895                                                                osf*) gl_use_threads=no ;;
8896          cygwin*)
8897                case `uname -r` in
8898                  1.[0-5].*) gl_use_threads=no ;;
8899                  *)         gl_use_threads=yes ;;
8900                esac
8901                ;;
8902          *)    gl_use_threads=yes ;;
8903        esac
8904      fi
8905
8906 fi
8907
8908   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8909     # For using <pthread.h>:
8910     case "$host_os" in
8911       osf*)
8912         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8913         # groks <pthread.h>. cc also understands the flag -pthread, but
8914         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8915         # 2. putting a flag into CPPFLAGS that has an effect on the linker
8916         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8917         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8918         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8919         ;;
8920     esac
8921     # Some systems optimize for single-threaded programs by default, and
8922     # need special flags to disable these optimizations. For example, the
8923     # definition of 'errno' in <errno.h>.
8924     case "$host_os" in
8925       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8926       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8927     esac
8928   fi
8929
8930
8931
8932   # Pre-early section.
8933
8934
8935
8936
8937   # Code from module absolute-header:
8938   # Code from module acl:
8939   # Code from module acl-permissions:
8940   # Code from module acl-tests:
8941   # Code from module alignof:
8942   # Code from module alignof-tests:
8943   # Code from module alloca-opt:
8944   # Code from module alloca-opt-tests:
8945   # Code from module allocator:
8946   # Code from module ansi-c++-opt:
8947   # Code from module areadlink:
8948   # Code from module areadlink-tests:
8949   # Code from module argmatch:
8950   # Code from module argmatch-tests:
8951   # Code from module array-list:
8952   # Code from module array-list-tests:
8953   # Code from module atexit:
8954   # Code from module atexit-tests:
8955   # Code from module backupfile:
8956   # Code from module basename:
8957   # Code from module binary-io:
8958   # Code from module binary-io-tests:
8959   # Code from module bison-i18n:
8960   # Code from module btowc:
8961   # Code from module btowc-tests:
8962   # Code from module byteswap:
8963   # Code from module byteswap-tests:
8964   # Code from module c-ctype:
8965   # Code from module c-ctype-tests:
8966   # Code from module c-strcase:
8967   # Code from module c-strcase-tests:
8968   # Code from module c-strcaseeq:
8969   # Code from module c-strcasestr:
8970   # Code from module c-strcasestr-tests:
8971   # Code from module c-strstr:
8972   # Code from module c-strstr-tests:
8973   # Code from module canonicalize-lgpl:
8974   # Code from module canonicalize-lgpl-tests:
8975   # Code from module careadlinkat:
8976   # Code from module classpath:
8977   # Code from module clean-temp:
8978   # Code from module cloexec:
8979   # Code from module cloexec-tests:
8980   # Code from module close:
8981   # Code from module close-tests:
8982   # Code from module closedir:
8983   # Code from module closeout:
8984   # Code from module concat-filename:
8985   # Code from module configmake:
8986   # Code from module copy-file:
8987   # Code from module copy-file-tests:
8988   # Code from module csharpcomp:
8989   # Code from module csharpcomp-script:
8990   # Code from module csharpexec:
8991   # Code from module csharpexec-script:
8992   # Code from module ctype:
8993   # Code from module ctype-tests:
8994   # Code from module diffseq:
8995   # Code from module dirent:
8996   # Code from module dirent-tests:
8997   # Code from module dirfd:
8998   # Code from module dosname:
8999   # Code from module double-slash-root:
9000   # Code from module dup:
9001   # Code from module dup-tests:
9002   # Code from module dup2:
9003   # Code from module dup2-tests:
9004   # Code from module environ:
9005   # Code from module environ-tests:
9006   # Code from module errno:
9007   # Code from module errno-tests:
9008   # Code from module error:
9009   # Code from module error-progname:
9010   # Code from module execute:
9011   # Code from module exitfail:
9012   # Code from module extensions:
9013   # Code from module extern-inline:
9014   # Code from module fabs:
9015   # Code from module fabs-tests:
9016   # Code from module fatal-signal:
9017   # Code from module fcntl:
9018   # Code from module fcntl-h:
9019   # Code from module fcntl-h-tests:
9020   # Code from module fcntl-tests:
9021   # Code from module fd-hook:
9022   # Code from module fd-ostream:
9023   # Code from module fd-safer-flag:
9024   # Code from module fdopen:
9025   # Code from module fdopen-tests:
9026   # Code from module fgetc-tests:
9027   # Code from module file-has-acl:
9028   # Code from module file-has-acl-tests:
9029   # Code from module file-ostream:
9030   # Code from module filename:
9031   # Code from module findprog:
9032   # Code from module float:
9033   # Code from module float-tests:
9034   # Code from module fnmatch:
9035   # Code from module fnmatch-tests:
9036   # Code from module fopen:
9037   # Code from module fopen-tests:
9038   # Code from module fpieee:
9039
9040   # Code from module fpucw:
9041   # Code from module fputc-tests:
9042   # Code from module fread-tests:
9043   # Code from module fstat:
9044   # Code from module fstat-tests:
9045   # Code from module fstrcmp:
9046   # Code from module fstrcmp-tests:
9047   # Code from module ftell:
9048   # Code from module ftell-tests:
9049   # Code from module ftello:
9050
9051   # Code from module ftello-tests:
9052   # Code from module full-write:
9053   # Code from module fwrite-tests:
9054   # Code from module fwriteerror:
9055   # Code from module gcd:
9056   # Code from module gcj:
9057   # Code from module getcwd-lgpl:
9058   # Code from module getcwd-lgpl-tests:
9059   # Code from module getdelim:
9060   # Code from module getdelim-tests:
9061   # Code from module getdtablesize:
9062   # Code from module getdtablesize-tests:
9063   # Code from module getline:
9064   # Code from module getline-tests:
9065   # Code from module getopt-gnu:
9066   # Code from module getopt-posix:
9067   # Code from module getopt-posix-tests:
9068   # Code from module getpagesize:
9069   # Code from module gettext:
9070   # Code from module gettext-h:
9071   # Code from module gettext-tools-misc:
9072   # Code from module gettimeofday:
9073   # Code from module gettimeofday-tests:
9074   # Code from module gperf:
9075   # Code from module hard-locale:
9076   # Code from module hash:
9077   # Code from module havelib:
9078   # Code from module html-ostream:
9079   # Code from module html-styled-ostream:
9080   # Code from module iconv:
9081   # Code from module iconv-h:
9082   # Code from module iconv-h-tests:
9083   # Code from module iconv-tests:
9084   # Code from module iconv_open:
9085   # Code from module ignore-value:
9086   # Code from module ignore-value-tests:
9087   # Code from module include_next:
9088   # Code from module inline:
9089   # Code from module intprops:
9090   # Code from module intprops-tests:
9091   # Code from module inttypes:
9092   # Code from module inttypes-incomplete:
9093   # Code from module inttypes-tests:
9094   # Code from module isinf:
9095   # Code from module isinf-tests:
9096   # Code from module isnan:
9097   # Code from module isnan-tests:
9098   # Code from module isnand:
9099   # Code from module isnand-nolibm:
9100   # Code from module isnand-nolibm-tests:
9101   # Code from module isnand-tests:
9102   # Code from module isnanf:
9103   # Code from module isnanf-nolibm:
9104   # Code from module isnanf-nolibm-tests:
9105   # Code from module isnanf-tests:
9106   # Code from module isnanl:
9107   # Code from module isnanl-nolibm:
9108   # Code from module isnanl-nolibm-tests:
9109   # Code from module isnanl-tests:
9110   # Code from module iswblank:
9111   # Code from module iswblank-tests:
9112   # Code from module java:
9113   # Code from module javacomp:
9114   # Code from module javacomp-script:
9115   # Code from module javaexec:
9116   # Code from module javaexec-script:
9117   # Code from module javaversion:
9118   # Code from module langinfo:
9119   # Code from module langinfo-tests:
9120   # Code from module largefile:
9121
9122   # Code from module libcroco:
9123   # Code from module libglib:
9124   # Code from module libunistring-optional:
9125   # Code from module libxml:
9126   # Code from module linkedhash-list:
9127   # Code from module linkedhash-list-tests:
9128   # Code from module list:
9129   # Code from module localcharset:
9130   # Code from module locale:
9131   # Code from module locale-tests:
9132   # Code from module localename:
9133   # Code from module localename-tests:
9134   # Code from module lock:
9135   # Code from module lock-tests:
9136   # Code from module log10:
9137   # Code from module log10-tests:
9138   # Code from module lseek:
9139   # Code from module lseek-tests:
9140   # Code from module lstat:
9141   # Code from module lstat-tests:
9142   # Code from module malloc-posix:
9143   # Code from module malloca:
9144   # Code from module malloca-tests:
9145   # Code from module math:
9146   # Code from module math-tests:
9147   # Code from module mbchar:
9148   # Code from module mbiter:
9149   # Code from module mbrtowc:
9150   # Code from module mbrtowc-tests:
9151   # Code from module mbsinit:
9152   # Code from module mbsinit-tests:
9153   # Code from module mbslen:
9154   # Code from module mbsrtowcs:
9155   # Code from module mbsrtowcs-tests:
9156   # Code from module mbsstr:
9157   # Code from module mbsstr-tests:
9158   # Code from module mbswidth:
9159   # Code from module mbtowc:
9160   # Code from module mbuiter:
9161   # Code from module memchr:
9162   # Code from module memchr-tests:
9163   # Code from module memmove:
9164   # Code from module memset:
9165   # Code from module minmax:
9166   # Code from module mkdtemp:
9167   # Code from module moo:
9168   # Code from module moo-tests:
9169   # Code from module msvc-inval:
9170   # Code from module msvc-nothrow:
9171   # Code from module multiarch:
9172   # Code from module no-c++:
9173   # Code from module nocrash:
9174   # Code from module obstack:
9175   # Code from module open:
9176   # Code from module open-tests:
9177   # Code from module opendir:
9178   # Code from module openmp:
9179   # Code from module ostream:
9180   # Code from module pathmax:
9181   # Code from module pathmax-tests:
9182   # Code from module pipe-filter-ii:
9183   # Code from module pipe-filter-ii-tests:
9184   # Code from module pipe2:
9185   # Code from module pipe2-safer:
9186   # Code from module pipe2-tests:
9187   # Code from module posix_spawn-internal:
9188   # Code from module posix_spawn_file_actions_addclose:
9189   # Code from module posix_spawn_file_actions_addclose-tests:
9190   # Code from module posix_spawn_file_actions_adddup2:
9191   # Code from module posix_spawn_file_actions_adddup2-tests:
9192   # Code from module posix_spawn_file_actions_addopen:
9193   # Code from module posix_spawn_file_actions_addopen-tests:
9194   # Code from module posix_spawn_file_actions_destroy:
9195   # Code from module posix_spawn_file_actions_init:
9196   # Code from module posix_spawnattr_destroy:
9197   # Code from module posix_spawnattr_init:
9198   # Code from module posix_spawnattr_setflags:
9199   # Code from module posix_spawnattr_setsigmask:
9200   # Code from module posix_spawnp:
9201   # Code from module posix_spawnp-tests:
9202   # Code from module pow:
9203   # Code from module pow-tests:
9204   # Code from module progname:
9205   # Code from module propername:
9206   # Code from module putenv:
9207   # Code from module qcopy-acl:
9208   # Code from module qset-acl:
9209   # Code from module quote:
9210   # Code from module quotearg:
9211   # Code from module quotearg-simple:
9212   # Code from module quotearg-simple-tests:
9213   # Code from module raise:
9214   # Code from module raise-tests:
9215   # Code from module rawmemchr:
9216   # Code from module rawmemchr-tests:
9217   # Code from module read:
9218   # Code from module read-file:
9219   # Code from module read-file-tests:
9220   # Code from module read-tests:
9221   # Code from module readdir:
9222   # Code from module readlink:
9223   # Code from module readlink-tests:
9224   # Code from module realloc-posix:
9225   # Code from module relocatable-prog:
9226   # Code from module relocatable-prog-wrapper:
9227   # Code from module relocatable-script:
9228   # Code from module rmdir:
9229   # Code from module rmdir-tests:
9230   # Code from module safe-read:
9231   # Code from module safe-write:
9232   # Code from module same-inode:
9233   # Code from module sched:
9234   # Code from module sched-tests:
9235   # Code from module secure_getenv:
9236   # Code from module setenv:
9237   # Code from module setenv-tests:
9238   # Code from module setlocale:
9239   # Code from module setlocale-tests:
9240   # Code from module sh-quote:
9241   # Code from module sh-quote-tests:
9242   # Code from module sigaction:
9243   # Code from module sigaction-tests:
9244   # Code from module signal-h:
9245   # Code from module signal-h-tests:
9246   # Code from module signbit:
9247   # Code from module signbit-tests:
9248   # Code from module sigpipe:
9249   # Code from module sigpipe-tests:
9250   # Code from module sigprocmask:
9251   # Code from module sigprocmask-tests:
9252   # Code from module size_max:
9253   # Code from module sleep:
9254   # Code from module sleep-tests:
9255   # Code from module snippet/_Noreturn:
9256   # Code from module snippet/arg-nonnull:
9257   # Code from module snippet/c++defs:
9258   # Code from module snippet/unused-parameter:
9259   # Code from module snippet/warn-on-use:
9260   # Code from module snprintf:
9261   # Code from module snprintf-tests:
9262   # Code from module spawn:
9263   # Code from module spawn-pipe:
9264   # Code from module spawn-pipe-tests:
9265   # Code from module spawn-tests:
9266   # Code from module ssize_t:
9267   # Code from module stat:
9268   # Code from module stat-tests:
9269   # Code from module stdalign:
9270   # Code from module stdalign-tests:
9271   # Code from module stdarg:
9272
9273
9274
9275   # Code from module stdbool:
9276   # Code from module stdbool-tests:
9277   # Code from module stddef:
9278   # Code from module stddef-tests:
9279   # Code from module stdint:
9280   # Code from module stdint-tests:
9281   # Code from module stdio:
9282   # Code from module stdio-tests:
9283   # Code from module stdlib:
9284   # Code from module stdlib-tests:
9285   # Code from module stpcpy:
9286   # Code from module stpncpy:
9287   # Code from module strchrnul:
9288   # Code from module strchrnul-tests:
9289   # Code from module strcspn:
9290   # Code from module streq:
9291   # Code from module strerror:
9292   # Code from module strerror-override:
9293   # Code from module strerror-tests:
9294   # Code from module striconv:
9295   # Code from module striconv-tests:
9296   # Code from module striconveh:
9297   # Code from module striconveh-tests:
9298   # Code from module striconveha:
9299   # Code from module striconveha-tests:
9300   # Code from module string:
9301   # Code from module string-tests:
9302   # Code from module strnlen:
9303   # Code from module strnlen-tests:
9304   # Code from module strnlen1:
9305   # Code from module strpbrk:
9306   # Code from module strstr:
9307   # Code from module strstr-simple:
9308   # Code from module strstr-tests:
9309   # Code from module strtol:
9310   # Code from module strtol-tests:
9311   # Code from module strtoul:
9312   # Code from module strtoul-tests:
9313   # Code from module styled-ostream:
9314   # Code from module symlink:
9315   # Code from module symlink-tests:
9316   # Code from module sys_select:
9317   # Code from module sys_select-tests:
9318   # Code from module sys_stat:
9319   # Code from module sys_stat-tests:
9320   # Code from module sys_time:
9321   # Code from module sys_time-tests:
9322   # Code from module sys_types:
9323   # Code from module sys_types-tests:
9324   # Code from module sys_wait:
9325   # Code from module sys_wait-tests:
9326   # Code from module tempname:
9327   # Code from module term-ostream:
9328   # Code from module term-ostream-tests:
9329   # Code from module term-styled-ostream:
9330   # Code from module terminfo:
9331   # Code from module terminfo-h:
9332   # Code from module test-framework-sh:
9333   # Code from module test-framework-sh-tests:
9334   # Code from module thread:
9335   # Code from module thread-tests:
9336   # Code from module threadlib:
9337
9338
9339
9340   # Code from module time:
9341   # Code from module time-tests:
9342   # Code from module tls:
9343   # Code from module tls-tests:
9344   # Code from module tmpdir:
9345   # Code from module trim:
9346   # Code from module uniconv/base:
9347   # Code from module uniconv/u8-conv-from-enc:
9348   # Code from module uniconv/u8-conv-from-enc-tests:
9349   # Code from module unictype/base:
9350   # Code from module unictype/ctype-space:
9351   # Code from module unictype/ctype-space-tests:
9352   # Code from module unilbrk/base:
9353   # Code from module unilbrk/tables:
9354   # Code from module unilbrk/u8-possible-linebreaks:
9355   # Code from module unilbrk/u8-width-linebreaks:
9356   # Code from module unilbrk/u8-width-linebreaks-tests:
9357   # Code from module unilbrk/ulc-common:
9358   # Code from module unilbrk/ulc-width-linebreaks:
9359   # Code from module uniname/base:
9360   # Code from module uniname/uniname:
9361   # Code from module uniname/uniname-tests:
9362   # Code from module unistd:
9363   # Code from module unistd-safer:
9364   # Code from module unistd-safer-tests:
9365   # Code from module unistd-tests:
9366   # Code from module unistr/base:
9367   # Code from module unistr/u16-mbtouc:
9368   # Code from module unistr/u16-mbtouc-tests:
9369   # Code from module unistr/u8-check:
9370   # Code from module unistr/u8-check-tests:
9371   # Code from module unistr/u8-cmp:
9372   # Code from module unistr/u8-cmp-tests:
9373   # Code from module unistr/u8-mblen:
9374   # Code from module unistr/u8-mblen-tests:
9375   # Code from module unistr/u8-mbtouc:
9376   # Code from module unistr/u8-mbtouc-unsafe:
9377   # Code from module unistr/u8-mbtoucr:
9378   # Code from module unistr/u8-mbtoucr-tests:
9379   # Code from module unistr/u8-prev:
9380   # Code from module unistr/u8-prev-tests:
9381   # Code from module unistr/u8-strlen:
9382   # Code from module unistr/u8-strlen-tests:
9383   # Code from module unistr/u8-uctomb:
9384   # Code from module unistr/u8-uctomb-tests:
9385   # Code from module unitypes:
9386   # Code from module uniwidth/base:
9387   # Code from module uniwidth/width:
9388   # Code from module unlocked-io:
9389   # Code from module unsetenv:
9390   # Code from module unsetenv-tests:
9391   # Code from module vasnprintf:
9392   # Code from module vasnprintf-tests:
9393   # Code from module vasprintf:
9394   # Code from module vasprintf-tests:
9395   # Code from module verify:
9396   # Code from module verify-tests:
9397   # Code from module vsnprintf:
9398   # Code from module vsnprintf-tests:
9399   # Code from module wait-process:
9400   # Code from module waitpid:
9401   # Code from module wchar:
9402   # Code from module wchar-tests:
9403   # Code from module wcrtomb:
9404   # Code from module wcrtomb-tests:
9405   # Code from module wctob:
9406   # Code from module wctomb:
9407   # Code from module wctype-h:
9408   # Code from module wctype-h-tests:
9409   # Code from module wcwidth:
9410   # Code from module wcwidth-tests:
9411   # Code from module write:
9412   # Code from module write-tests:
9413   # Code from module xalloc:
9414   # Code from module xalloc-die:
9415   # Code from module xalloc-die-tests:
9416   # Code from module xconcat-filename:
9417   # Code from module xerror:
9418   # Code from module xlist:
9419   # Code from module xmalloca:
9420   # Code from module xmemdup0:
9421   # Code from module xmemdup0-tests:
9422   # Code from module xreadlink:
9423   # Code from module xsetenv:
9424   # Code from module xsize:
9425   # Code from module xstriconv:
9426   # Code from module xstriconveh:
9427   # Code from module xvasprintf:
9428   # Code from module xvasprintf-tests:
9429   # Code from module yield:
9430
9431
9432
9433   # Pre-early section.
9434
9435
9436
9437   # Code from module btowc:
9438   # Code from module havelib:
9439   # Code from module langinfo:
9440   # Code from module localeconv:
9441   # Code from module lock:
9442   # Code from module mbrlen:
9443   # Code from module mbtowc:
9444   # Code from module nl_langinfo:
9445   # Code from module regex:
9446   # Code from module snippet/c++defs:
9447   # Code from module snippet/warn-on-use:
9448   # Code from module threadlib:
9449
9450
9451
9452   # Code from module wcrtomb:
9453
9454
9455
9456   # Pre-early section.
9457
9458
9459
9460
9461   # Code from module absolute-header:
9462   # Code from module alignof:
9463   # Code from module alloca-opt:
9464   # Code from module basename:
9465   # Code from module c-ctype:
9466   # Code from module c-strcase:
9467   # Code from module c-strcaseeq:
9468   # Code from module c-strstr:
9469   # Code from module close:
9470   # Code from module concat-filename:
9471   # Code from module configmake:
9472   # Code from module diffseq:
9473   # Code from module dosname:
9474   # Code from module errno:
9475   # Code from module error:
9476   # Code from module error-progname:
9477   # Code from module exitfail:
9478   # Code from module extensions:
9479   # Code from module extern-inline:
9480   # Code from module fcntl-h:
9481   # Code from module fd-hook:
9482   # Code from module file-ostream:
9483   # Code from module filename:
9484   # Code from module float:
9485   # Code from module fopen:
9486   # Code from module fstat:
9487   # Code from module fstrcmp:
9488   # Code from module fwriteerror:
9489   # Code from module gcd:
9490   # Code from module getdelim:
9491   # Code from module getline:
9492   # Code from module gettext-h:
9493   # Code from module gettimeofday:
9494   # Code from module gperf:
9495   # Code from module hard-locale:
9496   # Code from module hash:
9497   # Code from module havelib:
9498   # Code from module iconv:
9499   # Code from module iconv-h:
9500   # Code from module iconv_open:
9501   # Code from module include_next:
9502   # Code from module inline:
9503   # Code from module intprops:
9504   # Code from module largefile:
9505
9506   # Code from module libunistring-optional:
9507   # Code from module linked-list:
9508   # Code from module list:
9509   # Code from module localcharset:
9510   # Code from module lock:
9511   # Code from module malloc-posix:
9512   # Code from module malloca:
9513   # Code from module markup:
9514   # Code from module mbrtowc:
9515   # Code from module mbsinit:
9516   # Code from module mbswidth:
9517   # Code from module memchr:
9518   # Code from module minmax:
9519   # Code from module moo:
9520   # Code from module msvc-inval:
9521   # Code from module msvc-nothrow:
9522   # Code from module multiarch:
9523   # Code from module obstack:
9524   # Code from module open:
9525   # Code from module ostream:
9526   # Code from module pathmax:
9527   # Code from module progname:
9528   # Code from module raise:
9529   # Code from module rawmemchr:
9530   # Code from module realloc-posix:
9531   # Code from module relocatable-lib:
9532   # Code from module signal-h:
9533   # Code from module sigpipe:
9534   # Code from module sigprocmask:
9535   # Code from module size_max:
9536   # Code from module snippet/_Noreturn:
9537   # Code from module snippet/arg-nonnull:
9538   # Code from module snippet/c++defs:
9539   # Code from module snippet/unused-parameter:
9540   # Code from module snippet/warn-on-use:
9541   # Code from module ssize_t:
9542   # Code from module stat:
9543   # Code from module stdarg:
9544
9545
9546
9547   # Code from module stdbool:
9548   # Code from module stddef:
9549   # Code from module stdint:
9550   # Code from module stdio:
9551   # Code from module stdlib:
9552   # Code from module stpcpy:
9553   # Code from module stpncpy:
9554   # Code from module strchrnul:
9555   # Code from module streq:
9556   # Code from module strerror:
9557   # Code from module strerror-override:
9558   # Code from module striconv:
9559   # Code from module striconveh:
9560   # Code from module striconveha:
9561   # Code from module string:
9562   # Code from module strstr:
9563   # Code from module strstr-simple:
9564   # Code from module sys_stat:
9565   # Code from module sys_time:
9566   # Code from module sys_types:
9567   # Code from module threadlib:
9568
9569
9570
9571   # Code from module time:
9572   # Code from module tls:
9573   # Code from module uniconv/base:
9574   # Code from module uniconv/u8-conv-from-enc:
9575   # Code from module unictype/base:
9576   # Code from module unictype/ctype-alpha:
9577   # Code from module unictype/ctype-space:
9578   # Code from module unilbrk/base:
9579   # Code from module unilbrk/tables:
9580   # Code from module unilbrk/u8-possible-linebreaks:
9581   # Code from module unilbrk/u8-width-linebreaks:
9582   # Code from module unilbrk/ulc-common:
9583   # Code from module unilbrk/ulc-width-linebreaks:
9584   # Code from module unistd:
9585   # Code from module unistr/base:
9586   # Code from module unistr/u16-mbtouc:
9587   # Code from module unistr/u8-check:
9588   # Code from module unistr/u8-mblen:
9589   # Code from module unistr/u8-mbtouc:
9590   # Code from module unistr/u8-mbtouc-unsafe:
9591   # Code from module unistr/u8-mbtoucr:
9592   # Code from module unistr/u8-next:
9593   # Code from module unistr/u8-prev:
9594   # Code from module unistr/u8-strmbtouc:
9595   # Code from module unistr/u8-uctomb:
9596   # Code from module unitypes:
9597   # Code from module uniwidth/base:
9598   # Code from module uniwidth/width:
9599   # Code from module unlocked-io:
9600   # Code from module vasnprintf:
9601   # Code from module vasprintf:
9602   # Code from module verify:
9603   # Code from module wchar:
9604   # Code from module wctype-h:
9605   # Code from module wcwidth:
9606   # Code from module xalloc:
9607   # Code from module xalloc-die:
9608   # Code from module xconcat-filename:
9609   # Code from module xerror:
9610   # Code from module xlist:
9611   # Code from module xmalloca:
9612   # Code from module xsize:
9613   # Code from module xstriconv:
9614   # Code from module xvasprintf:
9615
9616
9617
9618
9619
9620   case "$host_os" in
9621     mingw* | cygwin*)
9622       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
9623 $as_echo_n "checking for auto-import of symbols... " >&6; }
9624       if ${gl_cv_ld_autoimport+:} false; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627
9628         gl_save_LDFLAGS="$LDFLAGS"
9629         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
9630         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h.  */
9632
9633 int
9634 main ()
9635 {
9636
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 if ac_fn_c_try_link "$LINENO"; then :
9642   gl_cv_ld_autoimport=yes
9643 else
9644   gl_cv_ld_autoimport=no
9645 fi
9646 rm -f core conftest.err conftest.$ac_objext \
9647     conftest$ac_exeext conftest.$ac_ext
9648         LDFLAGS="$gl_save_LDFLAGS"
9649 fi
9650
9651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
9652 $as_echo "$gl_cv_ld_autoimport" >&6; }
9653       if test $gl_cv_ld_autoimport = yes; then
9654         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
9655       fi
9656       ;;
9657   esac
9658
9659
9660 case `pwd` in
9661   *\ * | *\     *)
9662     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9663 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9664 esac
9665
9666
9667
9668 macro_version='2.4.6'
9669 macro_revision='2.4.6'
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683 ltmain=$ac_aux_dir/ltmain.sh
9684
9685 # Backslashify metacharacters that are still active within
9686 # double-quoted strings.
9687 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9688
9689 # Same as above, but do not quote variable references.
9690 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9691
9692 # Sed substitution to delay expansion of an escaped shell variable in a
9693 # double_quote_subst'ed string.
9694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9695
9696 # Sed substitution to delay expansion of an escaped single quote.
9697 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9698
9699 # Sed substitution to avoid accidental globbing in evaled expressions
9700 no_glob_subst='s/\*/\\\*/g'
9701
9702 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9703 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9705
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9707 $as_echo_n "checking how to print strings... " >&6; }
9708 # Test print first, because it will be a builtin if present.
9709 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9710    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9711   ECHO='print -r --'
9712 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9713   ECHO='printf %s\n'
9714 else
9715   # Use this function as a fallback that always works.
9716   func_fallback_echo ()
9717   {
9718     eval 'cat <<_LTECHO_EOF
9719 $1
9720 _LTECHO_EOF'
9721   }
9722   ECHO='func_fallback_echo'
9723 fi
9724
9725 # func_echo_all arg...
9726 # Invoke $ECHO with all args, space-separated.
9727 func_echo_all ()
9728 {
9729     $ECHO ""
9730 }
9731
9732 case $ECHO in
9733   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9734 $as_echo "printf" >&6; } ;;
9735   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9736 $as_echo "print -r" >&6; } ;;
9737   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9738 $as_echo "cat" >&6; } ;;
9739 esac
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9755 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9756 if ${ac_cv_path_SED+:} false; then :
9757   $as_echo_n "(cached) " >&6
9758 else
9759             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9760      for ac_i in 1 2 3 4 5 6 7; do
9761        ac_script="$ac_script$as_nl$ac_script"
9762      done
9763      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9764      { ac_script=; unset ac_script;}
9765      if test -z "$SED"; then
9766   ac_path_SED_found=false
9767   # Loop through the user's path and test for each of PROGNAME-LIST
9768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9770 do
9771   IFS=$as_save_IFS
9772   test -z "$as_dir" && as_dir=.
9773     for ac_prog in sed gsed; do
9774     for ac_exec_ext in '' $ac_executable_extensions; do
9775       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9776       as_fn_executable_p "$ac_path_SED" || continue
9777 # Check for GNU ac_path_SED and select it if it is found.
9778   # Check for GNU $ac_path_SED
9779 case `"$ac_path_SED" --version 2>&1` in
9780 *GNU*)
9781   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9782 *)
9783   ac_count=0
9784   $as_echo_n 0123456789 >"conftest.in"
9785   while :
9786   do
9787     cat "conftest.in" "conftest.in" >"conftest.tmp"
9788     mv "conftest.tmp" "conftest.in"
9789     cp "conftest.in" "conftest.nl"
9790     $as_echo '' >> "conftest.nl"
9791     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9792     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9793     as_fn_arith $ac_count + 1 && ac_count=$as_val
9794     if test $ac_count -gt ${ac_path_SED_max-0}; then
9795       # Best one so far, save it but keep looking for a better one
9796       ac_cv_path_SED="$ac_path_SED"
9797       ac_path_SED_max=$ac_count
9798     fi
9799     # 10*(2^10) chars as input seems more than enough
9800     test $ac_count -gt 10 && break
9801   done
9802   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9803 esac
9804
9805       $ac_path_SED_found && break 3
9806     done
9807   done
9808   done
9809 IFS=$as_save_IFS
9810   if test -z "$ac_cv_path_SED"; then
9811     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9812   fi
9813 else
9814   ac_cv_path_SED=$SED
9815 fi
9816
9817 fi
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9819 $as_echo "$ac_cv_path_SED" >&6; }
9820  SED="$ac_cv_path_SED"
9821   rm -f conftest.sed
9822
9823 test -z "$SED" && SED=sed
9824 Xsed="$SED -e 1s/^X//"
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9837 $as_echo_n "checking for fgrep... " >&6; }
9838 if ${ac_cv_path_FGREP+:} false; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9842    then ac_cv_path_FGREP="$GREP -F"
9843    else
9844      if test -z "$FGREP"; then
9845   ac_path_FGREP_found=false
9846   # Loop through the user's path and test for each of PROGNAME-LIST
9847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9849 do
9850   IFS=$as_save_IFS
9851   test -z "$as_dir" && as_dir=.
9852     for ac_prog in fgrep; do
9853     for ac_exec_ext in '' $ac_executable_extensions; do
9854       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9855       as_fn_executable_p "$ac_path_FGREP" || continue
9856 # Check for GNU ac_path_FGREP and select it if it is found.
9857   # Check for GNU $ac_path_FGREP
9858 case `"$ac_path_FGREP" --version 2>&1` in
9859 *GNU*)
9860   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9861 *)
9862   ac_count=0
9863   $as_echo_n 0123456789 >"conftest.in"
9864   while :
9865   do
9866     cat "conftest.in" "conftest.in" >"conftest.tmp"
9867     mv "conftest.tmp" "conftest.in"
9868     cp "conftest.in" "conftest.nl"
9869     $as_echo 'FGREP' >> "conftest.nl"
9870     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9871     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9872     as_fn_arith $ac_count + 1 && ac_count=$as_val
9873     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9874       # Best one so far, save it but keep looking for a better one
9875       ac_cv_path_FGREP="$ac_path_FGREP"
9876       ac_path_FGREP_max=$ac_count
9877     fi
9878     # 10*(2^10) chars as input seems more than enough
9879     test $ac_count -gt 10 && break
9880   done
9881   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9882 esac
9883
9884       $ac_path_FGREP_found && break 3
9885     done
9886   done
9887   done
9888 IFS=$as_save_IFS
9889   if test -z "$ac_cv_path_FGREP"; then
9890     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9891   fi
9892 else
9893   ac_cv_path_FGREP=$FGREP
9894 fi
9895
9896    fi
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9899 $as_echo "$ac_cv_path_FGREP" >&6; }
9900  FGREP="$ac_cv_path_FGREP"
9901
9902
9903 test -z "$GREP" && GREP=grep
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923 # Check whether --with-gnu-ld was given.
9924 if test "${with_gnu_ld+set}" = set; then :
9925   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9926 else
9927   with_gnu_ld=no
9928 fi
9929
9930 ac_prog=ld
9931 if test yes = "$GCC"; then
9932   # Check if gcc -print-prog-name=ld gives a path.
9933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9934 $as_echo_n "checking for ld used by $CC... " >&6; }
9935   case $host in
9936   *-*-mingw*)
9937     # gcc leaves a trailing carriage return, which upsets mingw
9938     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9939   *)
9940     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9941   esac
9942   case $ac_prog in
9943     # Accept absolute paths.
9944     [\\/]* | ?:[\\/]*)
9945       re_direlt='/[^/][^/]*/\.\./'
9946       # Canonicalize the pathname of ld
9947       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9948       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9949         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9950       done
9951       test -z "$LD" && LD=$ac_prog
9952       ;;
9953   "")
9954     # If it fails, then pretend we aren't using GCC.
9955     ac_prog=ld
9956     ;;
9957   *)
9958     # If it is relative, then search for the first ld in PATH.
9959     with_gnu_ld=unknown
9960     ;;
9961   esac
9962 elif test yes = "$with_gnu_ld"; then
9963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9964 $as_echo_n "checking for GNU ld... " >&6; }
9965 else
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9967 $as_echo_n "checking for non-GNU ld... " >&6; }
9968 fi
9969 if ${lt_cv_path_LD+:} false; then :
9970   $as_echo_n "(cached) " >&6
9971 else
9972   if test -z "$LD"; then
9973   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9974   for ac_dir in $PATH; do
9975     IFS=$lt_save_ifs
9976     test -z "$ac_dir" && ac_dir=.
9977     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9978       lt_cv_path_LD=$ac_dir/$ac_prog
9979       # Check to see if the program is GNU ld.  I'd rather use --version,
9980       # but apparently some variants of GNU ld only accept -v.
9981       # Break only if it was the GNU/non-GNU ld that we prefer.
9982       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9983       *GNU* | *'with BFD'*)
9984         test no != "$with_gnu_ld" && break
9985         ;;
9986       *)
9987         test yes != "$with_gnu_ld" && break
9988         ;;
9989       esac
9990     fi
9991   done
9992   IFS=$lt_save_ifs
9993 else
9994   lt_cv_path_LD=$LD # Let the user override the test with a path.
9995 fi
9996 fi
9997
9998 LD=$lt_cv_path_LD
9999 if test -n "$LD"; then
10000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10001 $as_echo "$LD" >&6; }
10002 else
10003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10005 fi
10006 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10008 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10009 if ${lt_cv_prog_gnu_ld+:} false; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10013 case `$LD -v 2>&1 </dev/null` in
10014 *GNU* | *'with BFD'*)
10015   lt_cv_prog_gnu_ld=yes
10016   ;;
10017 *)
10018   lt_cv_prog_gnu_ld=no
10019   ;;
10020 esac
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10023 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10024 with_gnu_ld=$lt_cv_prog_gnu_ld
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10035 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10036 if ${lt_cv_path_NM+:} false; then :
10037   $as_echo_n "(cached) " >&6
10038 else
10039   if test -n "$NM"; then
10040   # Let the user override the test.
10041   lt_cv_path_NM=$NM
10042 else
10043   lt_nm_to_check=${ac_tool_prefix}nm
10044   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10045     lt_nm_to_check="$lt_nm_to_check nm"
10046   fi
10047   for lt_tmp_nm in $lt_nm_to_check; do
10048     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10049     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10050       IFS=$lt_save_ifs
10051       test -z "$ac_dir" && ac_dir=.
10052       tmp_nm=$ac_dir/$lt_tmp_nm
10053       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
10054         # Check to see if the nm accepts a BSD-compat flag.
10055         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
10056         #   nm: unknown option "B" ignored
10057         # Tru64's nm complains that /dev/null is an invalid object file
10058         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
10059         case $build_os in
10060         mingw*) lt_bad_file=conftest.nm/nofile ;;
10061         *) lt_bad_file=/dev/null ;;
10062         esac
10063         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
10064         *$lt_bad_file* | *'Invalid file or object type'*)
10065           lt_cv_path_NM="$tmp_nm -B"
10066           break 2
10067           ;;
10068         *)
10069           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10070           */dev/null*)
10071             lt_cv_path_NM="$tmp_nm -p"
10072             break 2
10073             ;;
10074           *)
10075             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10076             continue # so that we can try to find one that supports BSD flags
10077             ;;
10078           esac
10079           ;;
10080         esac
10081       fi
10082     done
10083     IFS=$lt_save_ifs
10084   done
10085   : ${lt_cv_path_NM=no}
10086 fi
10087 fi
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10089 $as_echo "$lt_cv_path_NM" >&6; }
10090 if test no != "$lt_cv_path_NM"; then
10091   NM=$lt_cv_path_NM
10092 else
10093   # Didn't find any BSD compatible name lister, look for dumpbin.
10094   if test -n "$DUMPBIN"; then :
10095     # Let the user override the test.
10096   else
10097     if test -n "$ac_tool_prefix"; then
10098   for ac_prog in dumpbin "link -dump"
10099   do
10100     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if ${ac_cv_prog_DUMPBIN+:} false; then :
10105   $as_echo_n "(cached) " >&6
10106 else
10107   if test -n "$DUMPBIN"; then
10108   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10109 else
10110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111 for as_dir in $PATH
10112 do
10113   IFS=$as_save_IFS
10114   test -z "$as_dir" && as_dir=.
10115     for ac_exec_ext in '' $ac_executable_extensions; do
10116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10117     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10119     break 2
10120   fi
10121 done
10122   done
10123 IFS=$as_save_IFS
10124
10125 fi
10126 fi
10127 DUMPBIN=$ac_cv_prog_DUMPBIN
10128 if test -n "$DUMPBIN"; then
10129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10130 $as_echo "$DUMPBIN" >&6; }
10131 else
10132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10134 fi
10135
10136
10137     test -n "$DUMPBIN" && break
10138   done
10139 fi
10140 if test -z "$DUMPBIN"; then
10141   ac_ct_DUMPBIN=$DUMPBIN
10142   for ac_prog in dumpbin "link -dump"
10143 do
10144   # Extract the first word of "$ac_prog", so it can be a program name with args.
10145 set dummy $ac_prog; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   if test -n "$ac_ct_DUMPBIN"; then
10152   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10153 else
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10156 do
10157   IFS=$as_save_IFS
10158   test -z "$as_dir" && as_dir=.
10159     for ac_exec_ext in '' $ac_executable_extensions; do
10160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163     break 2
10164   fi
10165 done
10166   done
10167 IFS=$as_save_IFS
10168
10169 fi
10170 fi
10171 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10172 if test -n "$ac_ct_DUMPBIN"; then
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10174 $as_echo "$ac_ct_DUMPBIN" >&6; }
10175 else
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10178 fi
10179
10180
10181   test -n "$ac_ct_DUMPBIN" && break
10182 done
10183
10184   if test "x$ac_ct_DUMPBIN" = x; then
10185     DUMPBIN=":"
10186   else
10187     case $cross_compiling:$ac_tool_warned in
10188 yes:)
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10191 ac_tool_warned=yes ;;
10192 esac
10193     DUMPBIN=$ac_ct_DUMPBIN
10194   fi
10195 fi
10196
10197     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
10198     *COFF*)
10199       DUMPBIN="$DUMPBIN -symbols -headers"
10200       ;;
10201     *)
10202       DUMPBIN=:
10203       ;;
10204     esac
10205   fi
10206
10207   if test : != "$DUMPBIN"; then
10208     NM=$DUMPBIN
10209   fi
10210 fi
10211 test -z "$NM" && NM=nm
10212
10213
10214
10215
10216
10217
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10219 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
10220 if ${lt_cv_nm_interface+:} false; then :
10221   $as_echo_n "(cached) " >&6
10222 else
10223   lt_cv_nm_interface="BSD nm"
10224   echo "int some_variable = 0;" > conftest.$ac_ext
10225   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10226   (eval "$ac_compile" 2>conftest.err)
10227   cat conftest.err >&5
10228   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10229   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10230   cat conftest.err >&5
10231   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10232   cat conftest.out >&5
10233   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10234     lt_cv_nm_interface="MS dumpbin"
10235   fi
10236   rm -f conftest*
10237 fi
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10239 $as_echo "$lt_cv_nm_interface" >&6; }
10240
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10242 $as_echo_n "checking whether ln -s works... " >&6; }
10243 LN_S=$as_ln_s
10244 if test "$LN_S" = "ln -s"; then
10245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10246 $as_echo "yes" >&6; }
10247 else
10248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10249 $as_echo "no, using $LN_S" >&6; }
10250 fi
10251
10252 # find the maximum length of command line arguments
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10254 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
10255 if ${lt_cv_sys_max_cmd_len+:} false; then :
10256   $as_echo_n "(cached) " >&6
10257 else
10258     i=0
10259   teststring=ABCD
10260
10261   case $build_os in
10262   msdosdjgpp*)
10263     # On DJGPP, this test can blow up pretty badly due to problems in libc
10264     # (any single argument exceeding 2000 bytes causes a buffer overrun
10265     # during glob expansion).  Even if it were fixed, the result of this
10266     # check would be larger than it should be.
10267     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10268     ;;
10269
10270   gnu*)
10271     # Under GNU Hurd, this test is not required because there is
10272     # no limit to the length of command line arguments.
10273     # Libtool will interpret -1 as no limit whatsoever
10274     lt_cv_sys_max_cmd_len=-1;
10275     ;;
10276
10277   cygwin* | mingw* | cegcc*)
10278     # On Win9x/ME, this test blows up -- it succeeds, but takes
10279     # about 5 minutes as the teststring grows exponentially.
10280     # Worse, since 9x/ME are not pre-emptively multitasking,
10281     # you end up with a "frozen" computer, even though with patience
10282     # the test eventually succeeds (with a max line length of 256k).
10283     # Instead, let's just punt: use the minimum linelength reported by
10284     # all of the supported platforms: 8192 (on NT/2K/XP).
10285     lt_cv_sys_max_cmd_len=8192;
10286     ;;
10287
10288   mint*)
10289     # On MiNT this can take a long time and run out of memory.
10290     lt_cv_sys_max_cmd_len=8192;
10291     ;;
10292
10293   amigaos*)
10294     # On AmigaOS with pdksh, this test takes hours, literally.
10295     # So we just punt and use a minimum line length of 8192.
10296     lt_cv_sys_max_cmd_len=8192;
10297     ;;
10298
10299   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
10300     # This has been around since 386BSD, at least.  Likely further.
10301     if test -x /sbin/sysctl; then
10302       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10303     elif test -x /usr/sbin/sysctl; then
10304       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10305     else
10306       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
10307     fi
10308     # And add a safety zone
10309     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10310     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10311     ;;
10312
10313   interix*)
10314     # We know the value 262144 and hardcode it with a safety zone (like BSD)
10315     lt_cv_sys_max_cmd_len=196608
10316     ;;
10317
10318   os2*)
10319     # The test takes a long time on OS/2.
10320     lt_cv_sys_max_cmd_len=8192
10321     ;;
10322
10323   osf*)
10324     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10325     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10326     # nice to cause kernel panics so lets avoid the loop below.
10327     # First set a reasonable default.
10328     lt_cv_sys_max_cmd_len=16384
10329     #
10330     if test -x /sbin/sysconfig; then
10331       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10332         *1*) lt_cv_sys_max_cmd_len=-1 ;;
10333       esac
10334     fi
10335     ;;
10336   sco3.2v5*)
10337     lt_cv_sys_max_cmd_len=102400
10338     ;;
10339   sysv5* | sco5v6* | sysv4.2uw2*)
10340     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10341     if test -n "$kargmax"; then
10342       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
10343     else
10344       lt_cv_sys_max_cmd_len=32768
10345     fi
10346     ;;
10347   *)
10348     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10349     if test -n "$lt_cv_sys_max_cmd_len" && \
10350        test undefined != "$lt_cv_sys_max_cmd_len"; then
10351       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10352       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10353     else
10354       # Make teststring a little bigger before we do anything with it.
10355       # a 1K string should be a reasonable start.
10356       for i in 1 2 3 4 5 6 7 8; do
10357         teststring=$teststring$teststring
10358       done
10359       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10360       # If test is not a shell built-in, we'll probably end up computing a
10361       # maximum length that is only half of the actual maximum length, but
10362       # we can't tell.
10363       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
10364                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10365               test 17 != "$i" # 1/2 MB should be enough
10366       do
10367         i=`expr $i + 1`
10368         teststring=$teststring$teststring
10369       done
10370       # Only check the string length outside the loop.
10371       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10372       teststring=
10373       # Add a significant safety factor because C++ compilers can tack on
10374       # massive amounts of additional arguments before passing them to the
10375       # linker.  It appears as though 1/2 is a usable value.
10376       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10377     fi
10378     ;;
10379   esac
10380
10381 fi
10382
10383 if test -n "$lt_cv_sys_max_cmd_len"; then
10384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10385 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10386 else
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10388 $as_echo "none" >&6; }
10389 fi
10390 max_cmd_len=$lt_cv_sys_max_cmd_len
10391
10392
10393
10394
10395
10396
10397 : ${CP="cp -f"}
10398 : ${MV="mv -f"}
10399 : ${RM="rm -f"}
10400
10401 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10402   lt_unset=unset
10403 else
10404   lt_unset=false
10405 fi
10406
10407
10408
10409
10410
10411 # test EBCDIC or ASCII
10412 case `echo X|tr X '\101'` in
10413  A) # ASCII based system
10414     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10415   lt_SP2NL='tr \040 \012'
10416   lt_NL2SP='tr \015\012 \040\040'
10417   ;;
10418  *) # EBCDIC based system
10419   lt_SP2NL='tr \100 \n'
10420   lt_NL2SP='tr \r\n \100\100'
10421   ;;
10422 esac
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10433 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10434 if ${lt_cv_to_host_file_cmd+:} false; then :
10435   $as_echo_n "(cached) " >&6
10436 else
10437   case $host in
10438   *-*-mingw* )
10439     case $build in
10440       *-*-mingw* ) # actually msys
10441         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10442         ;;
10443       *-*-cygwin* )
10444         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10445         ;;
10446       * ) # otherwise, assume *nix
10447         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10448         ;;
10449     esac
10450     ;;
10451   *-*-cygwin* )
10452     case $build in
10453       *-*-mingw* ) # actually msys
10454         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10455         ;;
10456       *-*-cygwin* )
10457         lt_cv_to_host_file_cmd=func_convert_file_noop
10458         ;;
10459       * ) # otherwise, assume *nix
10460         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10461         ;;
10462     esac
10463     ;;
10464   * ) # unhandled hosts (and "normal" native builds)
10465     lt_cv_to_host_file_cmd=func_convert_file_noop
10466     ;;
10467 esac
10468
10469 fi
10470
10471 to_host_file_cmd=$lt_cv_to_host_file_cmd
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10473 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10474
10475
10476
10477
10478
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10480 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10481 if ${lt_cv_to_tool_file_cmd+:} false; then :
10482   $as_echo_n "(cached) " >&6
10483 else
10484   #assume ordinary cross tools, or native build.
10485 lt_cv_to_tool_file_cmd=func_convert_file_noop
10486 case $host in
10487   *-*-mingw* )
10488     case $build in
10489       *-*-mingw* ) # actually msys
10490         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10491         ;;
10492     esac
10493     ;;
10494 esac
10495
10496 fi
10497
10498 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10500 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10501
10502
10503
10504
10505
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10507 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10508 if ${lt_cv_ld_reload_flag+:} false; then :
10509   $as_echo_n "(cached) " >&6
10510 else
10511   lt_cv_ld_reload_flag='-r'
10512 fi
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10514 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10515 reload_flag=$lt_cv_ld_reload_flag
10516 case $reload_flag in
10517 "" | " "*) ;;
10518 *) reload_flag=" $reload_flag" ;;
10519 esac
10520 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10521 case $host_os in
10522   cygwin* | mingw* | pw32* | cegcc*)
10523     if test yes != "$GCC"; then
10524       reload_cmds=false
10525     fi
10526     ;;
10527   darwin*)
10528     if test yes = "$GCC"; then
10529       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
10530     else
10531       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10532     fi
10533     ;;
10534 esac
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544 if test -n "$ac_tool_prefix"; then
10545   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10546 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548 $as_echo_n "checking for $ac_word... " >&6; }
10549 if ${ac_cv_prog_OBJDUMP+:} false; then :
10550   $as_echo_n "(cached) " >&6
10551 else
10552   if test -n "$OBJDUMP"; then
10553   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10554 else
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10557 do
10558   IFS=$as_save_IFS
10559   test -z "$as_dir" && as_dir=.
10560     for ac_exec_ext in '' $ac_executable_extensions; do
10561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10564     break 2
10565   fi
10566 done
10567   done
10568 IFS=$as_save_IFS
10569
10570 fi
10571 fi
10572 OBJDUMP=$ac_cv_prog_OBJDUMP
10573 if test -n "$OBJDUMP"; then
10574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10575 $as_echo "$OBJDUMP" >&6; }
10576 else
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10579 fi
10580
10581
10582 fi
10583 if test -z "$ac_cv_prog_OBJDUMP"; then
10584   ac_ct_OBJDUMP=$OBJDUMP
10585   # Extract the first word of "objdump", so it can be a program name with args.
10586 set dummy objdump; ac_word=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10590   $as_echo_n "(cached) " >&6
10591 else
10592   if test -n "$ac_ct_OBJDUMP"; then
10593   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10594 else
10595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596 for as_dir in $PATH
10597 do
10598   IFS=$as_save_IFS
10599   test -z "$as_dir" && as_dir=.
10600     for ac_exec_ext in '' $ac_executable_extensions; do
10601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10602     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10604     break 2
10605   fi
10606 done
10607   done
10608 IFS=$as_save_IFS
10609
10610 fi
10611 fi
10612 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10613 if test -n "$ac_ct_OBJDUMP"; then
10614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10615 $as_echo "$ac_ct_OBJDUMP" >&6; }
10616 else
10617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10619 fi
10620
10621   if test "x$ac_ct_OBJDUMP" = x; then
10622     OBJDUMP="false"
10623   else
10624     case $cross_compiling:$ac_tool_warned in
10625 yes:)
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10628 ac_tool_warned=yes ;;
10629 esac
10630     OBJDUMP=$ac_ct_OBJDUMP
10631   fi
10632 else
10633   OBJDUMP="$ac_cv_prog_OBJDUMP"
10634 fi
10635
10636 test -z "$OBJDUMP" && OBJDUMP=objdump
10637
10638
10639
10640
10641
10642
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10644 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10645 if ${lt_cv_deplibs_check_method+:} false; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   lt_cv_file_magic_cmd='$MAGIC_CMD'
10649 lt_cv_file_magic_test_file=
10650 lt_cv_deplibs_check_method='unknown'
10651 # Need to set the preceding variable on all platforms that support
10652 # interlibrary dependencies.
10653 # 'none' -- dependencies not supported.
10654 # 'unknown' -- same as none, but documents that we really don't know.
10655 # 'pass_all' -- all dependencies passed with no checks.
10656 # 'test_compile' -- check by making test program.
10657 # 'file_magic [[regex]]' -- check by looking for files in library path
10658 # that responds to the $file_magic_cmd with a given extended regex.
10659 # If you have 'file' or equivalent on your system and you're not sure
10660 # whether 'pass_all' will *always* work, you probably want this one.
10661
10662 case $host_os in
10663 aix[4-9]*)
10664   lt_cv_deplibs_check_method=pass_all
10665   ;;
10666
10667 beos*)
10668   lt_cv_deplibs_check_method=pass_all
10669   ;;
10670
10671 bsdi[45]*)
10672   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10673   lt_cv_file_magic_cmd='/usr/bin/file -L'
10674   lt_cv_file_magic_test_file=/shlib/libc.so
10675   ;;
10676
10677 cygwin*)
10678   # func_win32_libid is a shell function defined in ltmain.sh
10679   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10680   lt_cv_file_magic_cmd='func_win32_libid'
10681   ;;
10682
10683 mingw* | pw32*)
10684   # Base MSYS/MinGW do not provide the 'file' command needed by
10685   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10686   # unless we find 'file', for example because we are cross-compiling.
10687   if ( file / ) >/dev/null 2>&1; then
10688     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10689     lt_cv_file_magic_cmd='func_win32_libid'
10690   else
10691     # Keep this pattern in sync with the one in func_win32_libid.
10692     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10693     lt_cv_file_magic_cmd='$OBJDUMP -f'
10694   fi
10695   ;;
10696
10697 cegcc*)
10698   # use the weaker test based on 'objdump'. See mingw*.
10699   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10700   lt_cv_file_magic_cmd='$OBJDUMP -f'
10701   ;;
10702
10703 darwin* | rhapsody*)
10704   lt_cv_deplibs_check_method=pass_all
10705   ;;
10706
10707 freebsd* | dragonfly*)
10708   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10709     case $host_cpu in
10710     i*86 )
10711       # Not sure whether the presence of OpenBSD here was a mistake.
10712       # Let's accept both of them until this is cleared up.
10713       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10714       lt_cv_file_magic_cmd=/usr/bin/file
10715       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10716       ;;
10717     esac
10718   else
10719     lt_cv_deplibs_check_method=pass_all
10720   fi
10721   ;;
10722
10723 haiku*)
10724   lt_cv_deplibs_check_method=pass_all
10725   ;;
10726
10727 hpux10.20* | hpux11*)
10728   lt_cv_file_magic_cmd=/usr/bin/file
10729   case $host_cpu in
10730   ia64*)
10731     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10732     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10733     ;;
10734   hppa*64*)
10735     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]'
10736     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10737     ;;
10738   *)
10739     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10740     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10741     ;;
10742   esac
10743   ;;
10744
10745 interix[3-9]*)
10746   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10747   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10748   ;;
10749
10750 irix5* | irix6* | nonstopux*)
10751   case $LD in
10752   *-32|*"-32 ") libmagic=32-bit;;
10753   *-n32|*"-n32 ") libmagic=N32;;
10754   *-64|*"-64 ") libmagic=64-bit;;
10755   *) libmagic=never-match;;
10756   esac
10757   lt_cv_deplibs_check_method=pass_all
10758   ;;
10759
10760 # This must be glibc/ELF.
10761 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10762   lt_cv_deplibs_check_method=pass_all
10763   ;;
10764
10765 netbsd*)
10766   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10767     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10768   else
10769     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10770   fi
10771   ;;
10772
10773 newos6*)
10774   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10775   lt_cv_file_magic_cmd=/usr/bin/file
10776   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10777   ;;
10778
10779 *nto* | *qnx*)
10780   lt_cv_deplibs_check_method=pass_all
10781   ;;
10782
10783 openbsd* | bitrig*)
10784   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10785     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10786   else
10787     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10788   fi
10789   ;;
10790
10791 osf3* | osf4* | osf5*)
10792   lt_cv_deplibs_check_method=pass_all
10793   ;;
10794
10795 rdos*)
10796   lt_cv_deplibs_check_method=pass_all
10797   ;;
10798
10799 solaris*)
10800   lt_cv_deplibs_check_method=pass_all
10801   ;;
10802
10803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10804   lt_cv_deplibs_check_method=pass_all
10805   ;;
10806
10807 sysv4 | sysv4.3*)
10808   case $host_vendor in
10809   motorola)
10810     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]'
10811     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10812     ;;
10813   ncr)
10814     lt_cv_deplibs_check_method=pass_all
10815     ;;
10816   sequent)
10817     lt_cv_file_magic_cmd='/bin/file'
10818     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10819     ;;
10820   sni)
10821     lt_cv_file_magic_cmd='/bin/file'
10822     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10823     lt_cv_file_magic_test_file=/lib/libc.so
10824     ;;
10825   siemens)
10826     lt_cv_deplibs_check_method=pass_all
10827     ;;
10828   pc)
10829     lt_cv_deplibs_check_method=pass_all
10830     ;;
10831   esac
10832   ;;
10833
10834 tpf*)
10835   lt_cv_deplibs_check_method=pass_all
10836   ;;
10837 os2*)
10838   lt_cv_deplibs_check_method=pass_all
10839   ;;
10840 esac
10841
10842 fi
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10844 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10845
10846 file_magic_glob=
10847 want_nocaseglob=no
10848 if test "$build" = "$host"; then
10849   case $host_os in
10850   mingw* | pw32*)
10851     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10852       want_nocaseglob=yes
10853     else
10854       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10855     fi
10856     ;;
10857   esac
10858 fi
10859
10860 file_magic_cmd=$lt_cv_file_magic_cmd
10861 deplibs_check_method=$lt_cv_deplibs_check_method
10862 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885 if test -n "$ac_tool_prefix"; then
10886   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10887 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if ${ac_cv_prog_DLLTOOL+:} false; then :
10891   $as_echo_n "(cached) " >&6
10892 else
10893   if test -n "$DLLTOOL"; then
10894   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10895 else
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10898 do
10899   IFS=$as_save_IFS
10900   test -z "$as_dir" && as_dir=.
10901     for ac_exec_ext in '' $ac_executable_extensions; do
10902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10903     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905     break 2
10906   fi
10907 done
10908   done
10909 IFS=$as_save_IFS
10910
10911 fi
10912 fi
10913 DLLTOOL=$ac_cv_prog_DLLTOOL
10914 if test -n "$DLLTOOL"; then
10915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10916 $as_echo "$DLLTOOL" >&6; }
10917 else
10918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10920 fi
10921
10922
10923 fi
10924 if test -z "$ac_cv_prog_DLLTOOL"; then
10925   ac_ct_DLLTOOL=$DLLTOOL
10926   # Extract the first word of "dlltool", so it can be a program name with args.
10927 set dummy dlltool; ac_word=$2
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929 $as_echo_n "checking for $ac_word... " >&6; }
10930 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10931   $as_echo_n "(cached) " >&6
10932 else
10933   if test -n "$ac_ct_DLLTOOL"; then
10934   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10935 else
10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in $PATH
10938 do
10939   IFS=$as_save_IFS
10940   test -z "$as_dir" && as_dir=.
10941     for ac_exec_ext in '' $ac_executable_extensions; do
10942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10943     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945     break 2
10946   fi
10947 done
10948   done
10949 IFS=$as_save_IFS
10950
10951 fi
10952 fi
10953 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10954 if test -n "$ac_ct_DLLTOOL"; then
10955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10956 $as_echo "$ac_ct_DLLTOOL" >&6; }
10957 else
10958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10960 fi
10961
10962   if test "x$ac_ct_DLLTOOL" = x; then
10963     DLLTOOL="false"
10964   else
10965     case $cross_compiling:$ac_tool_warned in
10966 yes:)
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10969 ac_tool_warned=yes ;;
10970 esac
10971     DLLTOOL=$ac_ct_DLLTOOL
10972   fi
10973 else
10974   DLLTOOL="$ac_cv_prog_DLLTOOL"
10975 fi
10976
10977 test -z "$DLLTOOL" && DLLTOOL=dlltool
10978
10979
10980
10981
10982
10983
10984
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10986 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10987 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10988   $as_echo_n "(cached) " >&6
10989 else
10990   lt_cv_sharedlib_from_linklib_cmd='unknown'
10991
10992 case $host_os in
10993 cygwin* | mingw* | pw32* | cegcc*)
10994   # two different shell functions defined in ltmain.sh;
10995   # decide which one to use based on capabilities of $DLLTOOL
10996   case `$DLLTOOL --help 2>&1` in
10997   *--identify-strict*)
10998     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10999     ;;
11000   *)
11001     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11002     ;;
11003   esac
11004   ;;
11005 *)
11006   # fallback: assume linklib IS sharedlib
11007   lt_cv_sharedlib_from_linklib_cmd=$ECHO
11008   ;;
11009 esac
11010
11011 fi
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11013 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11014 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11015 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11016
11017
11018
11019
11020
11021
11022
11023 if test -n "$ac_tool_prefix"; then
11024   for ac_prog in ar
11025   do
11026     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if ${ac_cv_prog_AR+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   if test -n "$AR"; then
11034   ac_cv_prog_AR="$AR" # Let the user override the test.
11035 else
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11038 do
11039   IFS=$as_save_IFS
11040   test -z "$as_dir" && as_dir=.
11041     for ac_exec_ext in '' $ac_executable_extensions; do
11042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045     break 2
11046   fi
11047 done
11048   done
11049 IFS=$as_save_IFS
11050
11051 fi
11052 fi
11053 AR=$ac_cv_prog_AR
11054 if test -n "$AR"; then
11055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11056 $as_echo "$AR" >&6; }
11057 else
11058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11060 fi
11061
11062
11063     test -n "$AR" && break
11064   done
11065 fi
11066 if test -z "$AR"; then
11067   ac_ct_AR=$AR
11068   for ac_prog in ar
11069 do
11070   # Extract the first word of "$ac_prog", so it can be a program name with args.
11071 set dummy $ac_prog; ac_word=$2
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 $as_echo_n "checking for $ac_word... " >&6; }
11074 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11075   $as_echo_n "(cached) " >&6
11076 else
11077   if test -n "$ac_ct_AR"; then
11078   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11079 else
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $PATH
11082 do
11083   IFS=$as_save_IFS
11084   test -z "$as_dir" && as_dir=.
11085     for ac_exec_ext in '' $ac_executable_extensions; do
11086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11087     ac_cv_prog_ac_ct_AR="$ac_prog"
11088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11089     break 2
11090   fi
11091 done
11092   done
11093 IFS=$as_save_IFS
11094
11095 fi
11096 fi
11097 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11098 if test -n "$ac_ct_AR"; then
11099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11100 $as_echo "$ac_ct_AR" >&6; }
11101 else
11102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 fi
11105
11106
11107   test -n "$ac_ct_AR" && break
11108 done
11109
11110   if test "x$ac_ct_AR" = x; then
11111     AR="false"
11112   else
11113     case $cross_compiling:$ac_tool_warned in
11114 yes:)
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11117 ac_tool_warned=yes ;;
11118 esac
11119     AR=$ac_ct_AR
11120   fi
11121 fi
11122
11123 : ${AR=ar}
11124 : ${AR_FLAGS=cru}
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11137 $as_echo_n "checking for archiver @FILE support... " >&6; }
11138 if ${lt_cv_ar_at_file+:} false; then :
11139   $as_echo_n "(cached) " >&6
11140 else
11141   lt_cv_ar_at_file=no
11142    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h.  */
11144
11145 int
11146 main ()
11147 {
11148
11149   ;
11150   return 0;
11151 }
11152 _ACEOF
11153 if ac_fn_c_try_compile "$LINENO"; then :
11154   echo conftest.$ac_objext > conftest.lst
11155       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11156       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11157   (eval $lt_ar_try) 2>&5
11158   ac_status=$?
11159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11160   test $ac_status = 0; }
11161       if test 0 -eq "$ac_status"; then
11162         # Ensure the archiver fails upon bogus file names.
11163         rm -f conftest.$ac_objext libconftest.a
11164         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11165   (eval $lt_ar_try) 2>&5
11166   ac_status=$?
11167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11168   test $ac_status = 0; }
11169         if test 0 -ne "$ac_status"; then
11170           lt_cv_ar_at_file=@
11171         fi
11172       fi
11173       rm -f conftest.* libconftest.a
11174
11175 fi
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177
11178 fi
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11180 $as_echo "$lt_cv_ar_at_file" >&6; }
11181
11182 if test no = "$lt_cv_ar_at_file"; then
11183   archiver_list_spec=
11184 else
11185   archiver_list_spec=$lt_cv_ar_at_file
11186 fi
11187
11188
11189
11190
11191
11192
11193
11194 if test -n "$ac_tool_prefix"; then
11195   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11196 set dummy ${ac_tool_prefix}strip; ac_word=$2
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11198 $as_echo_n "checking for $ac_word... " >&6; }
11199 if ${ac_cv_prog_STRIP+:} false; then :
11200   $as_echo_n "(cached) " >&6
11201 else
11202   if test -n "$STRIP"; then
11203   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11204 else
11205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in $PATH
11207 do
11208   IFS=$as_save_IFS
11209   test -z "$as_dir" && as_dir=.
11210     for ac_exec_ext in '' $ac_executable_extensions; do
11211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11212     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11214     break 2
11215   fi
11216 done
11217   done
11218 IFS=$as_save_IFS
11219
11220 fi
11221 fi
11222 STRIP=$ac_cv_prog_STRIP
11223 if test -n "$STRIP"; then
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11225 $as_echo "$STRIP" >&6; }
11226 else
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229 fi
11230
11231
11232 fi
11233 if test -z "$ac_cv_prog_STRIP"; then
11234   ac_ct_STRIP=$STRIP
11235   # Extract the first word of "strip", so it can be a program name with args.
11236 set dummy strip; ac_word=$2
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11238 $as_echo_n "checking for $ac_word... " >&6; }
11239 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11240   $as_echo_n "(cached) " >&6
11241 else
11242   if test -n "$ac_ct_STRIP"; then
11243   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11244 else
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11247 do
11248   IFS=$as_save_IFS
11249   test -z "$as_dir" && as_dir=.
11250     for ac_exec_ext in '' $ac_executable_extensions; do
11251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252     ac_cv_prog_ac_ct_STRIP="strip"
11253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254     break 2
11255   fi
11256 done
11257   done
11258 IFS=$as_save_IFS
11259
11260 fi
11261 fi
11262 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11263 if test -n "$ac_ct_STRIP"; then
11264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11265 $as_echo "$ac_ct_STRIP" >&6; }
11266 else
11267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11269 fi
11270
11271   if test "x$ac_ct_STRIP" = x; then
11272     STRIP=":"
11273   else
11274     case $cross_compiling:$ac_tool_warned in
11275 yes:)
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11278 ac_tool_warned=yes ;;
11279 esac
11280     STRIP=$ac_ct_STRIP
11281   fi
11282 else
11283   STRIP="$ac_cv_prog_STRIP"
11284 fi
11285
11286 test -z "$STRIP" && STRIP=:
11287
11288
11289
11290
11291
11292
11293 if test -n "$ac_tool_prefix"; then
11294   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297 $as_echo_n "checking for $ac_word... " >&6; }
11298 if ${ac_cv_prog_RANLIB+:} false; then :
11299   $as_echo_n "(cached) " >&6
11300 else
11301   if test -n "$RANLIB"; then
11302   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11303 else
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11306 do
11307   IFS=$as_save_IFS
11308   test -z "$as_dir" && as_dir=.
11309     for ac_exec_ext in '' $ac_executable_extensions; do
11310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313     break 2
11314   fi
11315 done
11316   done
11317 IFS=$as_save_IFS
11318
11319 fi
11320 fi
11321 RANLIB=$ac_cv_prog_RANLIB
11322 if test -n "$RANLIB"; then
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11324 $as_echo "$RANLIB" >&6; }
11325 else
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11328 fi
11329
11330
11331 fi
11332 if test -z "$ac_cv_prog_RANLIB"; then
11333   ac_ct_RANLIB=$RANLIB
11334   # Extract the first word of "ranlib", so it can be a program name with args.
11335 set dummy ranlib; ac_word=$2
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11337 $as_echo_n "checking for $ac_word... " >&6; }
11338 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11339   $as_echo_n "(cached) " >&6
11340 else
11341   if test -n "$ac_ct_RANLIB"; then
11342   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11343 else
11344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345 for as_dir in $PATH
11346 do
11347   IFS=$as_save_IFS
11348   test -z "$as_dir" && as_dir=.
11349     for ac_exec_ext in '' $ac_executable_extensions; do
11350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11351     ac_cv_prog_ac_ct_RANLIB="ranlib"
11352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11353     break 2
11354   fi
11355 done
11356   done
11357 IFS=$as_save_IFS
11358
11359 fi
11360 fi
11361 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11362 if test -n "$ac_ct_RANLIB"; then
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11364 $as_echo "$ac_ct_RANLIB" >&6; }
11365 else
11366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11368 fi
11369
11370   if test "x$ac_ct_RANLIB" = x; then
11371     RANLIB=":"
11372   else
11373     case $cross_compiling:$ac_tool_warned in
11374 yes:)
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11377 ac_tool_warned=yes ;;
11378 esac
11379     RANLIB=$ac_ct_RANLIB
11380   fi
11381 else
11382   RANLIB="$ac_cv_prog_RANLIB"
11383 fi
11384
11385 test -z "$RANLIB" && RANLIB=:
11386
11387
11388
11389
11390
11391
11392 # Determine commands to create old-style static archives.
11393 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11394 old_postinstall_cmds='chmod 644 $oldlib'
11395 old_postuninstall_cmds=
11396
11397 if test -n "$RANLIB"; then
11398   case $host_os in
11399   bitrig* | openbsd*)
11400     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11401     ;;
11402   *)
11403     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11404     ;;
11405   esac
11406   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11407 fi
11408
11409 case $host_os in
11410   darwin*)
11411     lock_old_archive_extraction=yes ;;
11412   *)
11413     lock_old_archive_extraction=no ;;
11414 esac
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454 # If no C compiler was specified, use CC.
11455 LTCC=${LTCC-"$CC"}
11456
11457 # If no C compiler flags were specified, use CFLAGS.
11458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11459
11460 # Allow CC to be a program name with arguments.
11461 compiler=$CC
11462
11463
11464 # Check for command to grab the raw symbol name followed by C symbol from nm.
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11466 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11467 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470
11471 # These are sane defaults that work on at least a few old systems.
11472 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11473
11474 # Character class describing NM global symbol codes.
11475 symcode='[BCDEGRST]'
11476
11477 # Regexp to match symbols that can be accessed directly from C.
11478 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11479
11480 # Define system-specific variables.
11481 case $host_os in
11482 aix*)
11483   symcode='[BCDT]'
11484   ;;
11485 cygwin* | mingw* | pw32* | cegcc*)
11486   symcode='[ABCDGISTW]'
11487   ;;
11488 hpux*)
11489   if test ia64 = "$host_cpu"; then
11490     symcode='[ABCDEGRST]'
11491   fi
11492   ;;
11493 irix* | nonstopux*)
11494   symcode='[BCDEGRST]'
11495   ;;
11496 osf*)
11497   symcode='[BCDEGQRST]'
11498   ;;
11499 solaris*)
11500   symcode='[BDRT]'
11501   ;;
11502 sco3.2v5*)
11503   symcode='[DT]'
11504   ;;
11505 sysv4.2uw2*)
11506   symcode='[DT]'
11507   ;;
11508 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11509   symcode='[ABDT]'
11510   ;;
11511 sysv4)
11512   symcode='[DFNSTU]'
11513   ;;
11514 esac
11515
11516 # If we're using GNU nm, then use its standard symbol codes.
11517 case `$NM -V 2>&1` in
11518 *GNU* | *'with BFD'*)
11519   symcode='[ABCDGIRSTW]' ;;
11520 esac
11521
11522 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11523   # Gets list of data symbols to import.
11524   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
11525   # Adjust the below global symbol transforms to fixup imported variables.
11526   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
11527   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
11528   lt_c_name_lib_hook="\
11529   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
11530   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
11531 else
11532   # Disable hooks by default.
11533   lt_cv_sys_global_symbol_to_import=
11534   lt_cdecl_hook=
11535   lt_c_name_hook=
11536   lt_c_name_lib_hook=
11537 fi
11538
11539 # Transform an extracted symbol line into a proper C declaration.
11540 # Some systems (esp. on ia64) link data and code symbols differently,
11541 # so use this general approach.
11542 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
11543 $lt_cdecl_hook\
11544 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11545 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11546
11547 # Transform an extracted symbol line into symbol name and symbol address
11548 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
11549 $lt_c_name_hook\
11550 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
11551 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
11552
11553 # Transform an extracted symbol line into symbol name with lib prefix and
11554 # symbol address.
11555 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
11556 $lt_c_name_lib_hook\
11557 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
11558 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
11559 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
11560
11561 # Handle CRLF in mingw tool chain
11562 opt_cr=
11563 case $build_os in
11564 mingw*)
11565   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11566   ;;
11567 esac
11568
11569 # Try without a prefix underscore, then with it.
11570 for ac_symprfx in "" "_"; do
11571
11572   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11573   symxfrm="\\1 $ac_symprfx\\2 \\2"
11574
11575   # Write the raw and C identifiers.
11576   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11577     # Fake it for dumpbin and say T for any non-static function,
11578     # D for any global variable and I for any imported variable.
11579     # Also find C++ and __fastcall symbols from MSVC++,
11580     # which start with @ or ?.
11581     lt_cv_sys_global_symbol_pipe="$AWK '"\
11582 "     {last_section=section; section=\$ 3};"\
11583 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11584 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11585 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11586 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11587 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11588 "     \$ 0!~/External *\|/{next};"\
11589 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11590 "     {if(hide[section]) next};"\
11591 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11592 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11593 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11594 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11595 "     ' prfx=^$ac_symprfx"
11596   else
11597     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11598   fi
11599   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11600
11601   # Check to see that the pipe works correctly.
11602   pipe_works=no
11603
11604   rm -f conftest*
11605   cat > conftest.$ac_ext <<_LT_EOF
11606 #ifdef __cplusplus
11607 extern "C" {
11608 #endif
11609 char nm_test_var;
11610 void nm_test_func(void);
11611 void nm_test_func(void){}
11612 #ifdef __cplusplus
11613 }
11614 #endif
11615 int main(){nm_test_var='a';nm_test_func();return(0);}
11616 _LT_EOF
11617
11618   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11619   (eval $ac_compile) 2>&5
11620   ac_status=$?
11621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11622   test $ac_status = 0; }; then
11623     # Now try to grab the symbols.
11624     nlist=conftest.nm
11625     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11626   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11627   ac_status=$?
11628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11629   test $ac_status = 0; } && test -s "$nlist"; then
11630       # Try sorting and uniquifying the output.
11631       if sort "$nlist" | uniq > "$nlist"T; then
11632         mv -f "$nlist"T "$nlist"
11633       else
11634         rm -f "$nlist"T
11635       fi
11636
11637       # Make sure that we snagged all the symbols we need.
11638       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11639         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11640           cat <<_LT_EOF > conftest.$ac_ext
11641 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11642 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11643 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11644    relocations are performed -- see ld's documentation on pseudo-relocs.  */
11645 # define LT_DLSYM_CONST
11646 #elif defined __osf__
11647 /* This system does not cope well with relocations in const data.  */
11648 # define LT_DLSYM_CONST
11649 #else
11650 # define LT_DLSYM_CONST const
11651 #endif
11652
11653 #ifdef __cplusplus
11654 extern "C" {
11655 #endif
11656
11657 _LT_EOF
11658           # Now generate the symbol file.
11659           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11660
11661           cat <<_LT_EOF >> conftest.$ac_ext
11662
11663 /* The mapping between symbol names and symbols.  */
11664 LT_DLSYM_CONST struct {
11665   const char *name;
11666   void       *address;
11667 }
11668 lt__PROGRAM__LTX_preloaded_symbols[] =
11669 {
11670   { "@PROGRAM@", (void *) 0 },
11671 _LT_EOF
11672           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11673           cat <<\_LT_EOF >> conftest.$ac_ext
11674   {0, (void *) 0}
11675 };
11676
11677 /* This works around a problem in FreeBSD linker */
11678 #ifdef FREEBSD_WORKAROUND
11679 static const void *lt_preloaded_setup() {
11680   return lt__PROGRAM__LTX_preloaded_symbols;
11681 }
11682 #endif
11683
11684 #ifdef __cplusplus
11685 }
11686 #endif
11687 _LT_EOF
11688           # Now try linking the two files.
11689           mv conftest.$ac_objext conftstm.$ac_objext
11690           lt_globsym_save_LIBS=$LIBS
11691           lt_globsym_save_CFLAGS=$CFLAGS
11692           LIBS=conftstm.$ac_objext
11693           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11694           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11695   (eval $ac_link) 2>&5
11696   ac_status=$?
11697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698   test $ac_status = 0; } && test -s conftest$ac_exeext; then
11699             pipe_works=yes
11700           fi
11701           LIBS=$lt_globsym_save_LIBS
11702           CFLAGS=$lt_globsym_save_CFLAGS
11703         else
11704           echo "cannot find nm_test_func in $nlist" >&5
11705         fi
11706       else
11707         echo "cannot find nm_test_var in $nlist" >&5
11708       fi
11709     else
11710       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11711     fi
11712   else
11713     echo "$progname: failed program was:" >&5
11714     cat conftest.$ac_ext >&5
11715   fi
11716   rm -rf conftest* conftst*
11717
11718   # Do not use the global_symbol_pipe unless it works.
11719   if test yes = "$pipe_works"; then
11720     break
11721   else
11722     lt_cv_sys_global_symbol_pipe=
11723   fi
11724 done
11725
11726 fi
11727
11728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11729   lt_cv_sys_global_symbol_to_cdecl=
11730 fi
11731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11733 $as_echo "failed" >&6; }
11734 else
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11736 $as_echo "ok" >&6; }
11737 fi
11738
11739 # Response file support.
11740 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11741   nm_file_list_spec='@'
11742 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11743   nm_file_list_spec='@'
11744 fi
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11783 $as_echo_n "checking for sysroot... " >&6; }
11784
11785 # Check whether --with-sysroot was given.
11786 if test "${with_sysroot+set}" = set; then :
11787   withval=$with_sysroot;
11788 else
11789   with_sysroot=no
11790 fi
11791
11792
11793 lt_sysroot=
11794 case $with_sysroot in #(
11795  yes)
11796    if test yes = "$GCC"; then
11797      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11798    fi
11799    ;; #(
11800  /*)
11801    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11802    ;; #(
11803  no|'')
11804    ;; #(
11805  *)
11806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11807 $as_echo "$with_sysroot" >&6; }
11808    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11809    ;;
11810 esac
11811
11812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11813 $as_echo "${lt_sysroot:-no}" >&6; }
11814
11815
11816
11817
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11820 $as_echo_n "checking for a working dd... " >&6; }
11821 if ${ac_cv_path_lt_DD+:} false; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   printf 0123456789abcdef0123456789abcdef >conftest.i
11825 cat conftest.i conftest.i >conftest2.i
11826 : ${lt_DD:=$DD}
11827 if test -z "$lt_DD"; then
11828   ac_path_lt_DD_found=false
11829   # Loop through the user's path and test for each of PROGNAME-LIST
11830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833   IFS=$as_save_IFS
11834   test -z "$as_dir" && as_dir=.
11835     for ac_prog in dd; do
11836     for ac_exec_ext in '' $ac_executable_extensions; do
11837       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
11838       as_fn_executable_p "$ac_path_lt_DD" || continue
11839 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11840   cmp -s conftest.i conftest.out \
11841   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11842 fi
11843       $ac_path_lt_DD_found && break 3
11844     done
11845   done
11846   done
11847 IFS=$as_save_IFS
11848   if test -z "$ac_cv_path_lt_DD"; then
11849     :
11850   fi
11851 else
11852   ac_cv_path_lt_DD=$lt_DD
11853 fi
11854
11855 rm -f conftest.i conftest2.i conftest.out
11856 fi
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11858 $as_echo "$ac_cv_path_lt_DD" >&6; }
11859
11860
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11862 $as_echo_n "checking how to truncate binary pipes... " >&6; }
11863 if ${lt_cv_truncate_bin+:} false; then :
11864   $as_echo_n "(cached) " >&6
11865 else
11866   printf 0123456789abcdef0123456789abcdef >conftest.i
11867 cat conftest.i conftest.i >conftest2.i
11868 lt_cv_truncate_bin=
11869 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11870   cmp -s conftest.i conftest.out \
11871   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11872 fi
11873 rm -f conftest.i conftest2.i conftest.out
11874 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11877 $as_echo "$lt_cv_truncate_bin" >&6; }
11878
11879
11880
11881
11882
11883
11884
11885 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
11886 func_cc_basename ()
11887 {
11888     for cc_temp in $*""; do
11889       case $cc_temp in
11890         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11891         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11892         \-*) ;;
11893         *) break;;
11894       esac
11895     done
11896     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11897 }
11898
11899 # Check whether --enable-libtool-lock was given.
11900 if test "${enable_libtool_lock+set}" = set; then :
11901   enableval=$enable_libtool_lock;
11902 fi
11903
11904 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11905
11906 # Some flags need to be propagated to the compiler or linker for good
11907 # libtool support.
11908 case $host in
11909 ia64-*-hpux*)
11910   # Find out what ABI is being produced by ac_compile, and set mode
11911   # options accordingly.
11912   echo 'int i;' > conftest.$ac_ext
11913   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11914   (eval $ac_compile) 2>&5
11915   ac_status=$?
11916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11917   test $ac_status = 0; }; then
11918     case `/usr/bin/file conftest.$ac_objext` in
11919       *ELF-32*)
11920         HPUX_IA64_MODE=32
11921         ;;
11922       *ELF-64*)
11923         HPUX_IA64_MODE=64
11924         ;;
11925     esac
11926   fi
11927   rm -rf conftest*
11928   ;;
11929 *-*-irix6*)
11930   # Find out what ABI is being produced by ac_compile, and set linker
11931   # options accordingly.
11932   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11933   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11934   (eval $ac_compile) 2>&5
11935   ac_status=$?
11936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11937   test $ac_status = 0; }; then
11938     if test yes = "$lt_cv_prog_gnu_ld"; then
11939       case `/usr/bin/file conftest.$ac_objext` in
11940         *32-bit*)
11941           LD="${LD-ld} -melf32bsmip"
11942           ;;
11943         *N32*)
11944           LD="${LD-ld} -melf32bmipn32"
11945           ;;
11946         *64-bit*)
11947           LD="${LD-ld} -melf64bmip"
11948         ;;
11949       esac
11950     else
11951       case `/usr/bin/file conftest.$ac_objext` in
11952         *32-bit*)
11953           LD="${LD-ld} -32"
11954           ;;
11955         *N32*)
11956           LD="${LD-ld} -n32"
11957           ;;
11958         *64-bit*)
11959           LD="${LD-ld} -64"
11960           ;;
11961       esac
11962     fi
11963   fi
11964   rm -rf conftest*
11965   ;;
11966
11967 mips64*-*linux*)
11968   # Find out what ABI is being produced by ac_compile, and set linker
11969   # options accordingly.
11970   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11971   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11972   (eval $ac_compile) 2>&5
11973   ac_status=$?
11974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11975   test $ac_status = 0; }; then
11976     emul=elf
11977     case `/usr/bin/file conftest.$ac_objext` in
11978       *32-bit*)
11979         emul="${emul}32"
11980         ;;
11981       *64-bit*)
11982         emul="${emul}64"
11983         ;;
11984     esac
11985     case `/usr/bin/file conftest.$ac_objext` in
11986       *MSB*)
11987         emul="${emul}btsmip"
11988         ;;
11989       *LSB*)
11990         emul="${emul}ltsmip"
11991         ;;
11992     esac
11993     case `/usr/bin/file conftest.$ac_objext` in
11994       *N32*)
11995         emul="${emul}n32"
11996         ;;
11997     esac
11998     LD="${LD-ld} -m $emul"
11999   fi
12000   rm -rf conftest*
12001   ;;
12002
12003 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12004 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12005   # Find out what ABI is being produced by ac_compile, and set linker
12006   # options accordingly.  Note that the listed cases only cover the
12007   # situations where additional linker options are needed (such as when
12008   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
12009   # vice versa); the common cases where no linker options are needed do
12010   # not appear in the list.
12011   echo 'int i;' > conftest.$ac_ext
12012   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12013   (eval $ac_compile) 2>&5
12014   ac_status=$?
12015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12016   test $ac_status = 0; }; then
12017     case `/usr/bin/file conftest.o` in
12018       *32-bit*)
12019         case $host in
12020           x86_64-*kfreebsd*-gnu)
12021             LD="${LD-ld} -m elf_i386_fbsd"
12022             ;;
12023           x86_64-*linux*)
12024             case `/usr/bin/file conftest.o` in
12025               *x86-64*)
12026                 LD="${LD-ld} -m elf32_x86_64"
12027                 ;;
12028               *)
12029                 LD="${LD-ld} -m elf_i386"
12030                 ;;
12031             esac
12032             ;;
12033           powerpc64le-*linux*)
12034             LD="${LD-ld} -m elf32lppclinux"
12035             ;;
12036           powerpc64-*linux*)
12037             LD="${LD-ld} -m elf32ppclinux"
12038             ;;
12039           s390x-*linux*)
12040             LD="${LD-ld} -m elf_s390"
12041             ;;
12042           sparc64-*linux*)
12043             LD="${LD-ld} -m elf32_sparc"
12044             ;;
12045         esac
12046         ;;
12047       *64-bit*)
12048         case $host in
12049           x86_64-*kfreebsd*-gnu)
12050             LD="${LD-ld} -m elf_x86_64_fbsd"
12051             ;;
12052           x86_64-*linux*)
12053             LD="${LD-ld} -m elf_x86_64"
12054             ;;
12055           powerpcle-*linux*)
12056             LD="${LD-ld} -m elf64lppc"
12057             ;;
12058           powerpc-*linux*)
12059             LD="${LD-ld} -m elf64ppc"
12060             ;;
12061           s390*-*linux*|s390*-*tpf*)
12062             LD="${LD-ld} -m elf64_s390"
12063             ;;
12064           sparc*-*linux*)
12065             LD="${LD-ld} -m elf64_sparc"
12066             ;;
12067         esac
12068         ;;
12069     esac
12070   fi
12071   rm -rf conftest*
12072   ;;
12073
12074 *-*-sco3.2v5*)
12075   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12076   SAVE_CFLAGS=$CFLAGS
12077   CFLAGS="$CFLAGS -belf"
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12079 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12080 if ${lt_cv_cc_needs_belf+:} false; then :
12081   $as_echo_n "(cached) " >&6
12082 else
12083   ac_ext=c
12084 ac_cpp='$CPP $CPPFLAGS'
12085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12088
12089      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h.  */
12091
12092 int
12093 main ()
12094 {
12095
12096   ;
12097   return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_c_try_link "$LINENO"; then :
12101   lt_cv_cc_needs_belf=yes
12102 else
12103   lt_cv_cc_needs_belf=no
12104 fi
12105 rm -f core conftest.err conftest.$ac_objext \
12106     conftest$ac_exeext conftest.$ac_ext
12107      ac_ext=c
12108 ac_cpp='$CPP $CPPFLAGS'
12109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12112
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12115 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12116   if test yes != "$lt_cv_cc_needs_belf"; then
12117     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12118     CFLAGS=$SAVE_CFLAGS
12119   fi
12120   ;;
12121 *-*solaris*)
12122   # Find out what ABI is being produced by ac_compile, and set linker
12123   # options accordingly.
12124   echo 'int i;' > conftest.$ac_ext
12125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12126   (eval $ac_compile) 2>&5
12127   ac_status=$?
12128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12129   test $ac_status = 0; }; then
12130     case `/usr/bin/file conftest.o` in
12131     *64-bit*)
12132       case $lt_cv_prog_gnu_ld in
12133       yes*)
12134         case $host in
12135         i?86-*-solaris*|x86_64-*-solaris*)
12136           LD="${LD-ld} -m elf_x86_64"
12137           ;;
12138         sparc*-*-solaris*)
12139           LD="${LD-ld} -m elf64_sparc"
12140           ;;
12141         esac
12142         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12143         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12144           LD=${LD-ld}_sol2
12145         fi
12146         ;;
12147       *)
12148         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12149           LD="${LD-ld} -64"
12150         fi
12151         ;;
12152       esac
12153       ;;
12154     esac
12155   fi
12156   rm -rf conftest*
12157   ;;
12158 esac
12159
12160 need_locks=$enable_libtool_lock
12161
12162 if test -n "$ac_tool_prefix"; then
12163   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12164 set dummy ${ac_tool_prefix}mt; ac_word=$2
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166 $as_echo_n "checking for $ac_word... " >&6; }
12167 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12168   $as_echo_n "(cached) " >&6
12169 else
12170   if test -n "$MANIFEST_TOOL"; then
12171   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12172 else
12173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174 for as_dir in $PATH
12175 do
12176   IFS=$as_save_IFS
12177   test -z "$as_dir" && as_dir=.
12178     for ac_exec_ext in '' $ac_executable_extensions; do
12179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12180     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12182     break 2
12183   fi
12184 done
12185   done
12186 IFS=$as_save_IFS
12187
12188 fi
12189 fi
12190 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12191 if test -n "$MANIFEST_TOOL"; then
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12193 $as_echo "$MANIFEST_TOOL" >&6; }
12194 else
12195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196 $as_echo "no" >&6; }
12197 fi
12198
12199
12200 fi
12201 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12202   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12203   # Extract the first word of "mt", so it can be a program name with args.
12204 set dummy mt; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12208   $as_echo_n "(cached) " >&6
12209 else
12210   if test -n "$ac_ct_MANIFEST_TOOL"; then
12211   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12212 else
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12215 do
12216   IFS=$as_save_IFS
12217   test -z "$as_dir" && as_dir=.
12218     for ac_exec_ext in '' $ac_executable_extensions; do
12219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222     break 2
12223   fi
12224 done
12225   done
12226 IFS=$as_save_IFS
12227
12228 fi
12229 fi
12230 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12231 if test -n "$ac_ct_MANIFEST_TOOL"; then
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12233 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12234 else
12235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12237 fi
12238
12239   if test "x$ac_ct_MANIFEST_TOOL" = x; then
12240     MANIFEST_TOOL=":"
12241   else
12242     case $cross_compiling:$ac_tool_warned in
12243 yes:)
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12246 ac_tool_warned=yes ;;
12247 esac
12248     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12249   fi
12250 else
12251   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12252 fi
12253
12254 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12256 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12257 if ${lt_cv_path_mainfest_tool+:} false; then :
12258   $as_echo_n "(cached) " >&6
12259 else
12260   lt_cv_path_mainfest_tool=no
12261   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12262   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12263   cat conftest.err >&5
12264   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12265     lt_cv_path_mainfest_tool=yes
12266   fi
12267   rm -f conftest*
12268 fi
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12270 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
12271 if test yes != "$lt_cv_path_mainfest_tool"; then
12272   MANIFEST_TOOL=:
12273 fi
12274
12275
12276
12277
12278
12279
12280   case $host_os in
12281     rhapsody* | darwin*)
12282     if test -n "$ac_tool_prefix"; then
12283   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12284 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286 $as_echo_n "checking for $ac_word... " >&6; }
12287 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12288   $as_echo_n "(cached) " >&6
12289 else
12290   if test -n "$DSYMUTIL"; then
12291   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12292 else
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12295 do
12296   IFS=$as_save_IFS
12297   test -z "$as_dir" && as_dir=.
12298     for ac_exec_ext in '' $ac_executable_extensions; do
12299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12300     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302     break 2
12303   fi
12304 done
12305   done
12306 IFS=$as_save_IFS
12307
12308 fi
12309 fi
12310 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12311 if test -n "$DSYMUTIL"; then
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12313 $as_echo "$DSYMUTIL" >&6; }
12314 else
12315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12317 fi
12318
12319
12320 fi
12321 if test -z "$ac_cv_prog_DSYMUTIL"; then
12322   ac_ct_DSYMUTIL=$DSYMUTIL
12323   # Extract the first word of "dsymutil", so it can be a program name with args.
12324 set dummy dsymutil; ac_word=$2
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12326 $as_echo_n "checking for $ac_word... " >&6; }
12327 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330   if test -n "$ac_ct_DSYMUTIL"; then
12331   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12332 else
12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12335 do
12336   IFS=$as_save_IFS
12337   test -z "$as_dir" && as_dir=.
12338     for ac_exec_ext in '' $ac_executable_extensions; do
12339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12340     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342     break 2
12343   fi
12344 done
12345   done
12346 IFS=$as_save_IFS
12347
12348 fi
12349 fi
12350 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12351 if test -n "$ac_ct_DSYMUTIL"; then
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12353 $as_echo "$ac_ct_DSYMUTIL" >&6; }
12354 else
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12357 fi
12358
12359   if test "x$ac_ct_DSYMUTIL" = x; then
12360     DSYMUTIL=":"
12361   else
12362     case $cross_compiling:$ac_tool_warned in
12363 yes:)
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12366 ac_tool_warned=yes ;;
12367 esac
12368     DSYMUTIL=$ac_ct_DSYMUTIL
12369   fi
12370 else
12371   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12372 fi
12373
12374     if test -n "$ac_tool_prefix"; then
12375   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12376 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378 $as_echo_n "checking for $ac_word... " >&6; }
12379 if ${ac_cv_prog_NMEDIT+:} false; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   if test -n "$NMEDIT"; then
12383   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12384 else
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12387 do
12388   IFS=$as_save_IFS
12389   test -z "$as_dir" && as_dir=.
12390     for ac_exec_ext in '' $ac_executable_extensions; do
12391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394     break 2
12395   fi
12396 done
12397   done
12398 IFS=$as_save_IFS
12399
12400 fi
12401 fi
12402 NMEDIT=$ac_cv_prog_NMEDIT
12403 if test -n "$NMEDIT"; then
12404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12405 $as_echo "$NMEDIT" >&6; }
12406 else
12407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12409 fi
12410
12411
12412 fi
12413 if test -z "$ac_cv_prog_NMEDIT"; then
12414   ac_ct_NMEDIT=$NMEDIT
12415   # Extract the first word of "nmedit", so it can be a program name with args.
12416 set dummy nmedit; ac_word=$2
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418 $as_echo_n "checking for $ac_word... " >&6; }
12419 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
12420   $as_echo_n "(cached) " >&6
12421 else
12422   if test -n "$ac_ct_NMEDIT"; then
12423   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12424 else
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12427 do
12428   IFS=$as_save_IFS
12429   test -z "$as_dir" && as_dir=.
12430     for ac_exec_ext in '' $ac_executable_extensions; do
12431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12432     ac_cv_prog_ac_ct_NMEDIT="nmedit"
12433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434     break 2
12435   fi
12436 done
12437   done
12438 IFS=$as_save_IFS
12439
12440 fi
12441 fi
12442 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12443 if test -n "$ac_ct_NMEDIT"; then
12444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12445 $as_echo "$ac_ct_NMEDIT" >&6; }
12446 else
12447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12449 fi
12450
12451   if test "x$ac_ct_NMEDIT" = x; then
12452     NMEDIT=":"
12453   else
12454     case $cross_compiling:$ac_tool_warned in
12455 yes:)
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12458 ac_tool_warned=yes ;;
12459 esac
12460     NMEDIT=$ac_ct_NMEDIT
12461   fi
12462 else
12463   NMEDIT="$ac_cv_prog_NMEDIT"
12464 fi
12465
12466     if test -n "$ac_tool_prefix"; then
12467   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12468 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if ${ac_cv_prog_LIPO+:} false; then :
12472   $as_echo_n "(cached) " >&6
12473 else
12474   if test -n "$LIPO"; then
12475   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12476 else
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12479 do
12480   IFS=$as_save_IFS
12481   test -z "$as_dir" && as_dir=.
12482     for ac_exec_ext in '' $ac_executable_extensions; do
12483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12484     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486     break 2
12487   fi
12488 done
12489   done
12490 IFS=$as_save_IFS
12491
12492 fi
12493 fi
12494 LIPO=$ac_cv_prog_LIPO
12495 if test -n "$LIPO"; then
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12497 $as_echo "$LIPO" >&6; }
12498 else
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12501 fi
12502
12503
12504 fi
12505 if test -z "$ac_cv_prog_LIPO"; then
12506   ac_ct_LIPO=$LIPO
12507   # Extract the first word of "lipo", so it can be a program name with args.
12508 set dummy lipo; ac_word=$2
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514   if test -n "$ac_ct_LIPO"; then
12515   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12516 else
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12519 do
12520   IFS=$as_save_IFS
12521   test -z "$as_dir" && as_dir=.
12522     for ac_exec_ext in '' $ac_executable_extensions; do
12523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12524     ac_cv_prog_ac_ct_LIPO="lipo"
12525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526     break 2
12527   fi
12528 done
12529   done
12530 IFS=$as_save_IFS
12531
12532 fi
12533 fi
12534 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12535 if test -n "$ac_ct_LIPO"; then
12536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12537 $as_echo "$ac_ct_LIPO" >&6; }
12538 else
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12541 fi
12542
12543   if test "x$ac_ct_LIPO" = x; then
12544     LIPO=":"
12545   else
12546     case $cross_compiling:$ac_tool_warned in
12547 yes:)
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12550 ac_tool_warned=yes ;;
12551 esac
12552     LIPO=$ac_ct_LIPO
12553   fi
12554 else
12555   LIPO="$ac_cv_prog_LIPO"
12556 fi
12557
12558     if test -n "$ac_tool_prefix"; then
12559   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12560 set dummy ${ac_tool_prefix}otool; ac_word=$2
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562 $as_echo_n "checking for $ac_word... " >&6; }
12563 if ${ac_cv_prog_OTOOL+:} false; then :
12564   $as_echo_n "(cached) " >&6
12565 else
12566   if test -n "$OTOOL"; then
12567   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12568 else
12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in $PATH
12571 do
12572   IFS=$as_save_IFS
12573   test -z "$as_dir" && as_dir=.
12574     for ac_exec_ext in '' $ac_executable_extensions; do
12575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12576     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578     break 2
12579   fi
12580 done
12581   done
12582 IFS=$as_save_IFS
12583
12584 fi
12585 fi
12586 OTOOL=$ac_cv_prog_OTOOL
12587 if test -n "$OTOOL"; then
12588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12589 $as_echo "$OTOOL" >&6; }
12590 else
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12593 fi
12594
12595
12596 fi
12597 if test -z "$ac_cv_prog_OTOOL"; then
12598   ac_ct_OTOOL=$OTOOL
12599   # Extract the first word of "otool", so it can be a program name with args.
12600 set dummy otool; ac_word=$2
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602 $as_echo_n "checking for $ac_word... " >&6; }
12603 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12604   $as_echo_n "(cached) " >&6
12605 else
12606   if test -n "$ac_ct_OTOOL"; then
12607   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12608 else
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12611 do
12612   IFS=$as_save_IFS
12613   test -z "$as_dir" && as_dir=.
12614     for ac_exec_ext in '' $ac_executable_extensions; do
12615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12616     ac_cv_prog_ac_ct_OTOOL="otool"
12617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618     break 2
12619   fi
12620 done
12621   done
12622 IFS=$as_save_IFS
12623
12624 fi
12625 fi
12626 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12627 if test -n "$ac_ct_OTOOL"; then
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12629 $as_echo "$ac_ct_OTOOL" >&6; }
12630 else
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12633 fi
12634
12635   if test "x$ac_ct_OTOOL" = x; then
12636     OTOOL=":"
12637   else
12638     case $cross_compiling:$ac_tool_warned in
12639 yes:)
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12642 ac_tool_warned=yes ;;
12643 esac
12644     OTOOL=$ac_ct_OTOOL
12645   fi
12646 else
12647   OTOOL="$ac_cv_prog_OTOOL"
12648 fi
12649
12650     if test -n "$ac_tool_prefix"; then
12651   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12652 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12654 $as_echo_n "checking for $ac_word... " >&6; }
12655 if ${ac_cv_prog_OTOOL64+:} false; then :
12656   $as_echo_n "(cached) " >&6
12657 else
12658   if test -n "$OTOOL64"; then
12659   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12660 else
12661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12662 for as_dir in $PATH
12663 do
12664   IFS=$as_save_IFS
12665   test -z "$as_dir" && as_dir=.
12666     for ac_exec_ext in '' $ac_executable_extensions; do
12667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12668     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12670     break 2
12671   fi
12672 done
12673   done
12674 IFS=$as_save_IFS
12675
12676 fi
12677 fi
12678 OTOOL64=$ac_cv_prog_OTOOL64
12679 if test -n "$OTOOL64"; then
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12681 $as_echo "$OTOOL64" >&6; }
12682 else
12683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; }
12685 fi
12686
12687
12688 fi
12689 if test -z "$ac_cv_prog_OTOOL64"; then
12690   ac_ct_OTOOL64=$OTOOL64
12691   # Extract the first word of "otool64", so it can be a program name with args.
12692 set dummy otool64; ac_word=$2
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694 $as_echo_n "checking for $ac_word... " >&6; }
12695 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698   if test -n "$ac_ct_OTOOL64"; then
12699   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12700 else
12701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12703 do
12704   IFS=$as_save_IFS
12705   test -z "$as_dir" && as_dir=.
12706     for ac_exec_ext in '' $ac_executable_extensions; do
12707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12708     ac_cv_prog_ac_ct_OTOOL64="otool64"
12709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710     break 2
12711   fi
12712 done
12713   done
12714 IFS=$as_save_IFS
12715
12716 fi
12717 fi
12718 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12719 if test -n "$ac_ct_OTOOL64"; then
12720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12721 $as_echo "$ac_ct_OTOOL64" >&6; }
12722 else
12723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12725 fi
12726
12727   if test "x$ac_ct_OTOOL64" = x; then
12728     OTOOL64=":"
12729   else
12730     case $cross_compiling:$ac_tool_warned in
12731 yes:)
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12734 ac_tool_warned=yes ;;
12735 esac
12736     OTOOL64=$ac_ct_OTOOL64
12737   fi
12738 else
12739   OTOOL64="$ac_cv_prog_OTOOL64"
12740 fi
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12769 $as_echo_n "checking for -single_module linker flag... " >&6; }
12770 if ${lt_cv_apple_cc_single_mod+:} false; then :
12771   $as_echo_n "(cached) " >&6
12772 else
12773   lt_cv_apple_cc_single_mod=no
12774       if test -z "$LT_MULTI_MODULE"; then
12775         # By default we will add the -single_module flag. You can override
12776         # by either setting the environment variable LT_MULTI_MODULE
12777         # non-empty at configure time, or by adding -multi_module to the
12778         # link flags.
12779         rm -rf libconftest.dylib*
12780         echo "int foo(void){return 1;}" > conftest.c
12781         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12782 -dynamiclib -Wl,-single_module conftest.c" >&5
12783         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12784           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12785         _lt_result=$?
12786         # If there is a non-empty error log, and "single_module"
12787         # appears in it, assume the flag caused a linker warning
12788         if test -s conftest.err && $GREP single_module conftest.err; then
12789           cat conftest.err >&5
12790         # Otherwise, if the output was created with a 0 exit code from
12791         # the compiler, it worked.
12792         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12793           lt_cv_apple_cc_single_mod=yes
12794         else
12795           cat conftest.err >&5
12796         fi
12797         rm -rf libconftest.dylib*
12798         rm -f conftest.*
12799       fi
12800 fi
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12802 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12803
12804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12805 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12806 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12807   $as_echo_n "(cached) " >&6
12808 else
12809   lt_cv_ld_exported_symbols_list=no
12810       save_LDFLAGS=$LDFLAGS
12811       echo "_main" > conftest.sym
12812       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12813       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h.  */
12815
12816 int
12817 main ()
12818 {
12819
12820   ;
12821   return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_link "$LINENO"; then :
12825   lt_cv_ld_exported_symbols_list=yes
12826 else
12827   lt_cv_ld_exported_symbols_list=no
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext \
12830     conftest$ac_exeext conftest.$ac_ext
12831         LDFLAGS=$save_LDFLAGS
12832
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12835 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12836
12837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12838 $as_echo_n "checking for -force_load linker flag... " >&6; }
12839 if ${lt_cv_ld_force_load+:} false; then :
12840   $as_echo_n "(cached) " >&6
12841 else
12842   lt_cv_ld_force_load=no
12843       cat > conftest.c << _LT_EOF
12844 int forced_loaded() { return 2;}
12845 _LT_EOF
12846       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12847       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12848       echo "$AR cru libconftest.a conftest.o" >&5
12849       $AR cru libconftest.a conftest.o 2>&5
12850       echo "$RANLIB libconftest.a" >&5
12851       $RANLIB libconftest.a 2>&5
12852       cat > conftest.c << _LT_EOF
12853 int main() { return 0;}
12854 _LT_EOF
12855       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12856       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12857       _lt_result=$?
12858       if test -s conftest.err && $GREP force_load conftest.err; then
12859         cat conftest.err >&5
12860       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12861         lt_cv_ld_force_load=yes
12862       else
12863         cat conftest.err >&5
12864       fi
12865         rm -f conftest.err libconftest.a conftest conftest.c
12866         rm -rf conftest.dSYM
12867
12868 fi
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12870 $as_echo "$lt_cv_ld_force_load" >&6; }
12871     case $host_os in
12872     rhapsody* | darwin1.[012])
12873       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12874     darwin1.*)
12875       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12876     darwin*) # darwin 5.x on
12877       # if running on 10.5 or later, the deployment target defaults
12878       # to the OS version, if on x86, and 10.4, the deployment
12879       # target defaults to 10.4. Don't you love it?
12880       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12881         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12882           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12883         10.[012][,.]*)
12884           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12885         10.*)
12886           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12887       esac
12888     ;;
12889   esac
12890     if test yes = "$lt_cv_apple_cc_single_mod"; then
12891       _lt_dar_single_mod='$single_module'
12892     fi
12893     if test yes = "$lt_cv_ld_exported_symbols_list"; then
12894       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12895     else
12896       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12897     fi
12898     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12899       _lt_dsymutil='~$DSYMUTIL $lib || :'
12900     else
12901       _lt_dsymutil=
12902     fi
12903     ;;
12904   esac
12905
12906 # func_munge_path_list VARIABLE PATH
12907 # -----------------------------------
12908 # VARIABLE is name of variable containing _space_ separated list of
12909 # directories to be munged by the contents of PATH, which is string
12910 # having a format:
12911 # "DIR[:DIR]:"
12912 #       string "DIR[ DIR]" will be prepended to VARIABLE
12913 # ":DIR[:DIR]"
12914 #       string "DIR[ DIR]" will be appended to VARIABLE
12915 # "DIRP[:DIRP]::[DIRA:]DIRA"
12916 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12917 #       "DIRA[ DIRA]" will be appended to VARIABLE
12918 # "DIR[:DIR]"
12919 #       VARIABLE will be replaced by "DIR[ DIR]"
12920 func_munge_path_list ()
12921 {
12922     case x$2 in
12923     x)
12924         ;;
12925     *:)
12926         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12927         ;;
12928     x:*)
12929         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12930         ;;
12931     *::*)
12932         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12933         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12934         ;;
12935     *)
12936         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12937         ;;
12938     esac
12939 }
12940
12941 for ac_header in dlfcn.h
12942 do :
12943   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12944 "
12945 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12946   cat >>confdefs.h <<_ACEOF
12947 #define HAVE_DLFCN_H 1
12948 _ACEOF
12949
12950 fi
12951
12952 done
12953
12954
12955
12956
12957
12958 # Set options
12959 enable_win32_dll=yes
12960
12961 case $host in
12962 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12963   if test -n "$ac_tool_prefix"; then
12964   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12965 set dummy ${ac_tool_prefix}as; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if ${ac_cv_prog_AS+:} false; then :
12969   $as_echo_n "(cached) " >&6
12970 else
12971   if test -n "$AS"; then
12972   ac_cv_prog_AS="$AS" # Let the user override the test.
12973 else
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12976 do
12977   IFS=$as_save_IFS
12978   test -z "$as_dir" && as_dir=.
12979     for ac_exec_ext in '' $ac_executable_extensions; do
12980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12981     ac_cv_prog_AS="${ac_tool_prefix}as"
12982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983     break 2
12984   fi
12985 done
12986   done
12987 IFS=$as_save_IFS
12988
12989 fi
12990 fi
12991 AS=$ac_cv_prog_AS
12992 if test -n "$AS"; then
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12994 $as_echo "$AS" >&6; }
12995 else
12996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
12998 fi
12999
13000
13001 fi
13002 if test -z "$ac_cv_prog_AS"; then
13003   ac_ct_AS=$AS
13004   # Extract the first word of "as", so it can be a program name with args.
13005 set dummy as; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if ${ac_cv_prog_ac_ct_AS+:} false; then :
13009   $as_echo_n "(cached) " >&6
13010 else
13011   if test -n "$ac_ct_AS"; then
13012   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13016 do
13017   IFS=$as_save_IFS
13018   test -z "$as_dir" && as_dir=.
13019     for ac_exec_ext in '' $ac_executable_extensions; do
13020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13021     ac_cv_prog_ac_ct_AS="as"
13022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023     break 2
13024   fi
13025 done
13026   done
13027 IFS=$as_save_IFS
13028
13029 fi
13030 fi
13031 ac_ct_AS=$ac_cv_prog_ac_ct_AS
13032 if test -n "$ac_ct_AS"; then
13033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13034 $as_echo "$ac_ct_AS" >&6; }
13035 else
13036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13038 fi
13039
13040   if test "x$ac_ct_AS" = x; then
13041     AS="false"
13042   else
13043     case $cross_compiling:$ac_tool_warned in
13044 yes:)
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13047 ac_tool_warned=yes ;;
13048 esac
13049     AS=$ac_ct_AS
13050   fi
13051 else
13052   AS="$ac_cv_prog_AS"
13053 fi
13054
13055   if test -n "$ac_tool_prefix"; then
13056   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13057 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059 $as_echo_n "checking for $ac_word... " >&6; }
13060 if ${ac_cv_prog_DLLTOOL+:} false; then :
13061   $as_echo_n "(cached) " >&6
13062 else
13063   if test -n "$DLLTOOL"; then
13064   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13065 else
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13068 do
13069   IFS=$as_save_IFS
13070   test -z "$as_dir" && as_dir=.
13071     for ac_exec_ext in '' $ac_executable_extensions; do
13072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075     break 2
13076   fi
13077 done
13078   done
13079 IFS=$as_save_IFS
13080
13081 fi
13082 fi
13083 DLLTOOL=$ac_cv_prog_DLLTOOL
13084 if test -n "$DLLTOOL"; then
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13086 $as_echo "$DLLTOOL" >&6; }
13087 else
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091
13092
13093 fi
13094 if test -z "$ac_cv_prog_DLLTOOL"; then
13095   ac_ct_DLLTOOL=$DLLTOOL
13096   # Extract the first word of "dlltool", so it can be a program name with args.
13097 set dummy dlltool; ac_word=$2
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13099 $as_echo_n "checking for $ac_word... " >&6; }
13100 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13101   $as_echo_n "(cached) " >&6
13102 else
13103   if test -n "$ac_ct_DLLTOOL"; then
13104   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13105 else
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $PATH
13108 do
13109   IFS=$as_save_IFS
13110   test -z "$as_dir" && as_dir=.
13111     for ac_exec_ext in '' $ac_executable_extensions; do
13112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13113     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13115     break 2
13116   fi
13117 done
13118   done
13119 IFS=$as_save_IFS
13120
13121 fi
13122 fi
13123 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13124 if test -n "$ac_ct_DLLTOOL"; then
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13126 $as_echo "$ac_ct_DLLTOOL" >&6; }
13127 else
13128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13130 fi
13131
13132   if test "x$ac_ct_DLLTOOL" = x; then
13133     DLLTOOL="false"
13134   else
13135     case $cross_compiling:$ac_tool_warned in
13136 yes:)
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13139 ac_tool_warned=yes ;;
13140 esac
13141     DLLTOOL=$ac_ct_DLLTOOL
13142   fi
13143 else
13144   DLLTOOL="$ac_cv_prog_DLLTOOL"
13145 fi
13146
13147   if test -n "$ac_tool_prefix"; then
13148   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13149 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13151 $as_echo_n "checking for $ac_word... " >&6; }
13152 if ${ac_cv_prog_OBJDUMP+:} false; then :
13153   $as_echo_n "(cached) " >&6
13154 else
13155   if test -n "$OBJDUMP"; then
13156   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13157 else
13158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159 for as_dir in $PATH
13160 do
13161   IFS=$as_save_IFS
13162   test -z "$as_dir" && as_dir=.
13163     for ac_exec_ext in '' $ac_executable_extensions; do
13164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13165     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13167     break 2
13168   fi
13169 done
13170   done
13171 IFS=$as_save_IFS
13172
13173 fi
13174 fi
13175 OBJDUMP=$ac_cv_prog_OBJDUMP
13176 if test -n "$OBJDUMP"; then
13177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13178 $as_echo "$OBJDUMP" >&6; }
13179 else
13180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182 fi
13183
13184
13185 fi
13186 if test -z "$ac_cv_prog_OBJDUMP"; then
13187   ac_ct_OBJDUMP=$OBJDUMP
13188   # Extract the first word of "objdump", so it can be a program name with args.
13189 set dummy objdump; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13193   $as_echo_n "(cached) " >&6
13194 else
13195   if test -n "$ac_ct_OBJDUMP"; then
13196   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13197 else
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13200 do
13201   IFS=$as_save_IFS
13202   test -z "$as_dir" && as_dir=.
13203     for ac_exec_ext in '' $ac_executable_extensions; do
13204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13205     ac_cv_prog_ac_ct_OBJDUMP="objdump"
13206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207     break 2
13208   fi
13209 done
13210   done
13211 IFS=$as_save_IFS
13212
13213 fi
13214 fi
13215 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13216 if test -n "$ac_ct_OBJDUMP"; then
13217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13218 $as_echo "$ac_ct_OBJDUMP" >&6; }
13219 else
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13222 fi
13223
13224   if test "x$ac_ct_OBJDUMP" = x; then
13225     OBJDUMP="false"
13226   else
13227     case $cross_compiling:$ac_tool_warned in
13228 yes:)
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13231 ac_tool_warned=yes ;;
13232 esac
13233     OBJDUMP=$ac_ct_OBJDUMP
13234   fi
13235 else
13236   OBJDUMP="$ac_cv_prog_OBJDUMP"
13237 fi
13238
13239   ;;
13240 esac
13241
13242 test -z "$AS" && AS=as
13243
13244
13245
13246
13247
13248 test -z "$DLLTOOL" && DLLTOOL=dlltool
13249
13250
13251
13252
13253
13254 test -z "$OBJDUMP" && OBJDUMP=objdump
13255
13256
13257
13258
13259
13260
13261
13262         enable_dlopen=no
13263
13264
13265
13266             # Check whether --enable-shared was given.
13267 if test "${enable_shared+set}" = set; then :
13268   enableval=$enable_shared; p=${PACKAGE-default}
13269     case $enableval in
13270     yes) enable_shared=yes ;;
13271     no) enable_shared=no ;;
13272     *)
13273       enable_shared=no
13274       # Look at the argument we got.  We use all the common list separators.
13275       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13276       for pkg in $enableval; do
13277         IFS=$lt_save_ifs
13278         if test "X$pkg" = "X$p"; then
13279           enable_shared=yes
13280         fi
13281       done
13282       IFS=$lt_save_ifs
13283       ;;
13284     esac
13285 else
13286   enable_shared=yes
13287 fi
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297   # Check whether --enable-static was given.
13298 if test "${enable_static+set}" = set; then :
13299   enableval=$enable_static; p=${PACKAGE-default}
13300     case $enableval in
13301     yes) enable_static=yes ;;
13302     no) enable_static=no ;;
13303     *)
13304      enable_static=no
13305       # Look at the argument we got.  We use all the common list separators.
13306       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13307       for pkg in $enableval; do
13308         IFS=$lt_save_ifs
13309         if test "X$pkg" = "X$p"; then
13310           enable_static=yes
13311         fi
13312       done
13313       IFS=$lt_save_ifs
13314       ;;
13315     esac
13316 else
13317   enable_static=yes
13318 fi
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329 # Check whether --with-pic was given.
13330 if test "${with_pic+set}" = set; then :
13331   withval=$with_pic; lt_p=${PACKAGE-default}
13332     case $withval in
13333     yes|no) pic_mode=$withval ;;
13334     *)
13335       pic_mode=default
13336       # Look at the argument we got.  We use all the common list separators.
13337       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13338       for lt_pkg in $withval; do
13339         IFS=$lt_save_ifs
13340         if test "X$lt_pkg" = "X$lt_p"; then
13341           pic_mode=yes
13342         fi
13343       done
13344       IFS=$lt_save_ifs
13345       ;;
13346     esac
13347 else
13348   pic_mode=default
13349 fi
13350
13351
13352
13353
13354
13355
13356
13357
13358   # Check whether --enable-fast-install was given.
13359 if test "${enable_fast_install+set}" = set; then :
13360   enableval=$enable_fast_install; p=${PACKAGE-default}
13361     case $enableval in
13362     yes) enable_fast_install=yes ;;
13363     no) enable_fast_install=no ;;
13364     *)
13365       enable_fast_install=no
13366       # Look at the argument we got.  We use all the common list separators.
13367       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13368       for pkg in $enableval; do
13369         IFS=$lt_save_ifs
13370         if test "X$pkg" = "X$p"; then
13371           enable_fast_install=yes
13372         fi
13373       done
13374       IFS=$lt_save_ifs
13375       ;;
13376     esac
13377 else
13378   enable_fast_install=yes
13379 fi
13380
13381
13382
13383
13384
13385
13386
13387
13388   shared_archive_member_spec=
13389 case $host,$enable_shared in
13390 power*-*-aix[5-9]*,yes)
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
13392 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
13393
13394 # Check whether --with-aix-soname was given.
13395 if test "${with_aix_soname+set}" = set; then :
13396   withval=$with_aix_soname; case $withval in
13397     aix|svr4|both)
13398       ;;
13399     *)
13400       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
13401       ;;
13402     esac
13403     lt_cv_with_aix_soname=$with_aix_soname
13404 else
13405   if ${lt_cv_with_aix_soname+:} false; then :
13406   $as_echo_n "(cached) " >&6
13407 else
13408   lt_cv_with_aix_soname=aix
13409 fi
13410
13411     with_aix_soname=$lt_cv_with_aix_soname
13412 fi
13413
13414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
13415 $as_echo "$with_aix_soname" >&6; }
13416   if test aix != "$with_aix_soname"; then
13417     # For the AIX way of multilib, we name the shared archive member
13418     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
13419     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
13420     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
13421     # the AIX toolchain works better with OBJECT_MODE set (default 32).
13422     if test 64 = "${OBJECT_MODE-32}"; then
13423       shared_archive_member_spec=shr_64
13424     else
13425       shared_archive_member_spec=shr
13426     fi
13427   fi
13428   ;;
13429 *)
13430   with_aix_soname=aix
13431   ;;
13432 esac
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443 # This can be used to rebuild libtool when needed
13444 LIBTOOL_DEPS=$ltmain
13445
13446 # Always use our own libtool.
13447 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478 test -z "$LN_S" && LN_S="ln -s"
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493 if test -n "${ZSH_VERSION+set}"; then
13494    setopt NO_GLOB_SUBST
13495 fi
13496
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13498 $as_echo_n "checking for objdir... " >&6; }
13499 if ${lt_cv_objdir+:} false; then :
13500   $as_echo_n "(cached) " >&6
13501 else
13502   rm -f .libs 2>/dev/null
13503 mkdir .libs 2>/dev/null
13504 if test -d .libs; then
13505   lt_cv_objdir=.libs
13506 else
13507   # MS-DOS does not allow filenames that begin with a dot.
13508   lt_cv_objdir=_libs
13509 fi
13510 rmdir .libs 2>/dev/null
13511 fi
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13513 $as_echo "$lt_cv_objdir" >&6; }
13514 objdir=$lt_cv_objdir
13515
13516
13517
13518
13519
13520 cat >>confdefs.h <<_ACEOF
13521 #define LT_OBJDIR "$lt_cv_objdir/"
13522 _ACEOF
13523
13524
13525
13526
13527 case $host_os in
13528 aix3*)
13529   # AIX sometimes has problems with the GCC collect2 program.  For some
13530   # reason, if we set the COLLECT_NAMES environment variable, the problems
13531   # vanish in a puff of smoke.
13532   if test set != "${COLLECT_NAMES+set}"; then
13533     COLLECT_NAMES=
13534     export COLLECT_NAMES
13535   fi
13536   ;;
13537 esac
13538
13539 # Global variables:
13540 ofile=libtool
13541 can_build_shared=yes
13542
13543 # All known linkers require a '.a' archive for static linking (except MSVC,
13544 # which needs '.lib').
13545 libext=a
13546
13547 with_gnu_ld=$lt_cv_prog_gnu_ld
13548
13549 old_CC=$CC
13550 old_CFLAGS=$CFLAGS
13551
13552 # Set sane defaults for various variables
13553 test -z "$CC" && CC=cc
13554 test -z "$LTCC" && LTCC=$CC
13555 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13556 test -z "$LD" && LD=ld
13557 test -z "$ac_objext" && ac_objext=o
13558
13559 func_cc_basename $compiler
13560 cc_basename=$func_cc_basename_result
13561
13562
13563 # Only perform the check for file, if the check method requires it
13564 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13565 case $deplibs_check_method in
13566 file_magic*)
13567   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13569 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13570 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573   case $MAGIC_CMD in
13574 [\\/*] |  ?:[\\/]*)
13575   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13576   ;;
13577 *)
13578   lt_save_MAGIC_CMD=$MAGIC_CMD
13579   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13580   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13581   for ac_dir in $ac_dummy; do
13582     IFS=$lt_save_ifs
13583     test -z "$ac_dir" && ac_dir=.
13584     if test -f "$ac_dir/${ac_tool_prefix}file"; then
13585       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13586       if test -n "$file_magic_test_file"; then
13587         case $deplibs_check_method in
13588         "file_magic "*)
13589           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13590           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13591           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13592             $EGREP "$file_magic_regex" > /dev/null; then
13593             :
13594           else
13595             cat <<_LT_EOF 1>&2
13596
13597 *** Warning: the command libtool uses to detect shared libraries,
13598 *** $file_magic_cmd, produces output that libtool cannot recognize.
13599 *** The result is that libtool may fail to recognize shared libraries
13600 *** as such.  This will affect the creation of libtool libraries that
13601 *** depend on shared libraries, but programs linked with such libtool
13602 *** libraries will work regardless of this problem.  Nevertheless, you
13603 *** may want to report the problem to your system manager and/or to
13604 *** bug-libtool@gnu.org
13605
13606 _LT_EOF
13607           fi ;;
13608         esac
13609       fi
13610       break
13611     fi
13612   done
13613   IFS=$lt_save_ifs
13614   MAGIC_CMD=$lt_save_MAGIC_CMD
13615   ;;
13616 esac
13617 fi
13618
13619 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13620 if test -n "$MAGIC_CMD"; then
13621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13622 $as_echo "$MAGIC_CMD" >&6; }
13623 else
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13626 fi
13627
13628
13629
13630
13631
13632 if test -z "$lt_cv_path_MAGIC_CMD"; then
13633   if test -n "$ac_tool_prefix"; then
13634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13635 $as_echo_n "checking for file... " >&6; }
13636 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13637   $as_echo_n "(cached) " >&6
13638 else
13639   case $MAGIC_CMD in
13640 [\\/*] |  ?:[\\/]*)
13641   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13642   ;;
13643 *)
13644   lt_save_MAGIC_CMD=$MAGIC_CMD
13645   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13646   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13647   for ac_dir in $ac_dummy; do
13648     IFS=$lt_save_ifs
13649     test -z "$ac_dir" && ac_dir=.
13650     if test -f "$ac_dir/file"; then
13651       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13652       if test -n "$file_magic_test_file"; then
13653         case $deplibs_check_method in
13654         "file_magic "*)
13655           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13656           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13657           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13658             $EGREP "$file_magic_regex" > /dev/null; then
13659             :
13660           else
13661             cat <<_LT_EOF 1>&2
13662
13663 *** Warning: the command libtool uses to detect shared libraries,
13664 *** $file_magic_cmd, produces output that libtool cannot recognize.
13665 *** The result is that libtool may fail to recognize shared libraries
13666 *** as such.  This will affect the creation of libtool libraries that
13667 *** depend on shared libraries, but programs linked with such libtool
13668 *** libraries will work regardless of this problem.  Nevertheless, you
13669 *** may want to report the problem to your system manager and/or to
13670 *** bug-libtool@gnu.org
13671
13672 _LT_EOF
13673           fi ;;
13674         esac
13675       fi
13676       break
13677     fi
13678   done
13679   IFS=$lt_save_ifs
13680   MAGIC_CMD=$lt_save_MAGIC_CMD
13681   ;;
13682 esac
13683 fi
13684
13685 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13686 if test -n "$MAGIC_CMD"; then
13687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13688 $as_echo "$MAGIC_CMD" >&6; }
13689 else
13690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13692 fi
13693
13694
13695   else
13696     MAGIC_CMD=:
13697   fi
13698 fi
13699
13700   fi
13701   ;;
13702 esac
13703
13704 # Use C for the default configuration in the libtool script
13705
13706 lt_save_CC=$CC
13707 ac_ext=c
13708 ac_cpp='$CPP $CPPFLAGS'
13709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13712
13713
13714 # Source file extension for C test sources.
13715 ac_ext=c
13716
13717 # Object file extension for compiled C test sources.
13718 objext=o
13719 objext=$objext
13720
13721 # Code to be used in simple compile tests
13722 lt_simple_compile_test_code="int some_variable = 0;"
13723
13724 # Code to be used in simple link tests
13725 lt_simple_link_test_code='int main(){return(0);}'
13726
13727
13728
13729
13730
13731
13732
13733 # If no C compiler was specified, use CC.
13734 LTCC=${LTCC-"$CC"}
13735
13736 # If no C compiler flags were specified, use CFLAGS.
13737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13738
13739 # Allow CC to be a program name with arguments.
13740 compiler=$CC
13741
13742 # Save the default compiler, since it gets overwritten when the other
13743 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13744 compiler_DEFAULT=$CC
13745
13746 # save warnings/boilerplate of simple test code
13747 ac_outfile=conftest.$ac_objext
13748 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13750 _lt_compiler_boilerplate=`cat conftest.err`
13751 $RM conftest*
13752
13753 ac_outfile=conftest.$ac_objext
13754 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13756 _lt_linker_boilerplate=`cat conftest.err`
13757 $RM -r conftest*
13758
13759
13760 ## CAVEAT EMPTOR:
13761 ## There is no encapsulation within the following macros, do not change
13762 ## the running order or otherwise move them around unless you know exactly
13763 ## what you are doing...
13764 if test -n "$compiler"; then
13765
13766 lt_prog_compiler_no_builtin_flag=
13767
13768 if test yes = "$GCC"; then
13769   case $cc_basename in
13770   nvcc*)
13771     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13772   *)
13773     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13774   esac
13775
13776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13777 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13778 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13779   $as_echo_n "(cached) " >&6
13780 else
13781   lt_cv_prog_compiler_rtti_exceptions=no
13782    ac_outfile=conftest.$ac_objext
13783    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13784    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
13785    # Insert the option either (1) after the last *FLAGS variable, or
13786    # (2) before a word containing "conftest.", or (3) at the end.
13787    # Note that $ac_compile itself does not contain backslashes and begins
13788    # with a dollar sign (not a hyphen), so the echo should work correctly.
13789    # The option is referenced via a variable to avoid confusing sed.
13790    lt_compile=`echo "$ac_compile" | $SED \
13791    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13792    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13793    -e 's:$: $lt_compiler_flag:'`
13794    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13795    (eval "$lt_compile" 2>conftest.err)
13796    ac_status=$?
13797    cat conftest.err >&5
13798    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799    if (exit $ac_status) && test -s "$ac_outfile"; then
13800      # The compiler can only warn and ignore the option if not recognized
13801      # So say no if there are warnings other than the usual output.
13802      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13803      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13804      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13805        lt_cv_prog_compiler_rtti_exceptions=yes
13806      fi
13807    fi
13808    $RM conftest*
13809
13810 fi
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13812 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13813
13814 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13815     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13816 else
13817     :
13818 fi
13819
13820 fi
13821
13822
13823
13824
13825
13826
13827   lt_prog_compiler_wl=
13828 lt_prog_compiler_pic=
13829 lt_prog_compiler_static=
13830
13831
13832   if test yes = "$GCC"; then
13833     lt_prog_compiler_wl='-Wl,'
13834     lt_prog_compiler_static='-static'
13835
13836     case $host_os in
13837       aix*)
13838       # All AIX code is PIC.
13839       if test ia64 = "$host_cpu"; then
13840         # AIX 5 now supports IA64 processor
13841         lt_prog_compiler_static='-Bstatic'
13842       fi
13843       lt_prog_compiler_pic='-fPIC'
13844       ;;
13845
13846     amigaos*)
13847       case $host_cpu in
13848       powerpc)
13849             # see comment about AmigaOS4 .so support
13850             lt_prog_compiler_pic='-fPIC'
13851         ;;
13852       m68k)
13853             # FIXME: we need at least 68020 code to build shared libraries, but
13854             # adding the '-m68020' flag to GCC prevents building anything better,
13855             # like '-m68040'.
13856             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13857         ;;
13858       esac
13859       ;;
13860
13861     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13862       # PIC is the default for these OSes.
13863       ;;
13864
13865     mingw* | cygwin* | pw32* | os2* | cegcc*)
13866       # This hack is so that the source file can tell whether it is being
13867       # built for inclusion in a dll (and should export symbols for example).
13868       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13869       # (--disable-auto-import) libraries
13870       lt_prog_compiler_pic='-DDLL_EXPORT'
13871       case $host_os in
13872       os2*)
13873         lt_prog_compiler_static='$wl-static'
13874         ;;
13875       esac
13876       ;;
13877
13878     darwin* | rhapsody*)
13879       # PIC is the default on this platform
13880       # Common symbols not allowed in MH_DYLIB files
13881       lt_prog_compiler_pic='-fno-common'
13882       ;;
13883
13884     haiku*)
13885       # PIC is the default for Haiku.
13886       # The "-static" flag exists, but is broken.
13887       lt_prog_compiler_static=
13888       ;;
13889
13890     hpux*)
13891       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13892       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13893       # sets the default TLS model and affects inlining.
13894       case $host_cpu in
13895       hppa*64*)
13896         # +Z the default
13897         ;;
13898       *)
13899         lt_prog_compiler_pic='-fPIC'
13900         ;;
13901       esac
13902       ;;
13903
13904     interix[3-9]*)
13905       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13906       # Instead, we relocate shared libraries at runtime.
13907       ;;
13908
13909     msdosdjgpp*)
13910       # Just because we use GCC doesn't mean we suddenly get shared libraries
13911       # on systems that don't support them.
13912       lt_prog_compiler_can_build_shared=no
13913       enable_shared=no
13914       ;;
13915
13916     *nto* | *qnx*)
13917       # QNX uses GNU C++, but need to define -shared option too, otherwise
13918       # it will coredump.
13919       lt_prog_compiler_pic='-fPIC -shared'
13920       ;;
13921
13922     sysv4*MP*)
13923       if test -d /usr/nec; then
13924         lt_prog_compiler_pic=-Kconform_pic
13925       fi
13926       ;;
13927
13928     *)
13929       lt_prog_compiler_pic='-fPIC'
13930       ;;
13931     esac
13932
13933     case $cc_basename in
13934     nvcc*) # Cuda Compiler Driver 2.2
13935       lt_prog_compiler_wl='-Xlinker '
13936       if test -n "$lt_prog_compiler_pic"; then
13937         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13938       fi
13939       ;;
13940     esac
13941   else
13942     # PORTME Check for flag to pass linker flags through the system compiler.
13943     case $host_os in
13944     aix*)
13945       lt_prog_compiler_wl='-Wl,'
13946       if test ia64 = "$host_cpu"; then
13947         # AIX 5 now supports IA64 processor
13948         lt_prog_compiler_static='-Bstatic'
13949       else
13950         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13951       fi
13952       ;;
13953
13954     darwin* | rhapsody*)
13955       # PIC is the default on this platform
13956       # Common symbols not allowed in MH_DYLIB files
13957       lt_prog_compiler_pic='-fno-common'
13958       case $cc_basename in
13959       nagfor*)
13960         # NAG Fortran compiler
13961         lt_prog_compiler_wl='-Wl,-Wl,,'
13962         lt_prog_compiler_pic='-PIC'
13963         lt_prog_compiler_static='-Bstatic'
13964         ;;
13965       esac
13966       ;;
13967
13968     mingw* | cygwin* | pw32* | os2* | cegcc*)
13969       # This hack is so that the source file can tell whether it is being
13970       # built for inclusion in a dll (and should export symbols for example).
13971       lt_prog_compiler_pic='-DDLL_EXPORT'
13972       case $host_os in
13973       os2*)
13974         lt_prog_compiler_static='$wl-static'
13975         ;;
13976       esac
13977       ;;
13978
13979     hpux9* | hpux10* | hpux11*)
13980       lt_prog_compiler_wl='-Wl,'
13981       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13982       # not for PA HP-UX.
13983       case $host_cpu in
13984       hppa*64*|ia64*)
13985         # +Z the default
13986         ;;
13987       *)
13988         lt_prog_compiler_pic='+Z'
13989         ;;
13990       esac
13991       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13992       lt_prog_compiler_static='$wl-a ${wl}archive'
13993       ;;
13994
13995     irix5* | irix6* | nonstopux*)
13996       lt_prog_compiler_wl='-Wl,'
13997       # PIC (with -KPIC) is the default.
13998       lt_prog_compiler_static='-non_shared'
13999       ;;
14000
14001     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14002       case $cc_basename in
14003       # old Intel for x86_64, which still supported -KPIC.
14004       ecc*)
14005         lt_prog_compiler_wl='-Wl,'
14006         lt_prog_compiler_pic='-KPIC'
14007         lt_prog_compiler_static='-static'
14008         ;;
14009       # icc used to be incompatible with GCC.
14010       # ICC 10 doesn't accept -KPIC any more.
14011       icc* | ifort*)
14012         lt_prog_compiler_wl='-Wl,'
14013         lt_prog_compiler_pic='-fPIC'
14014         lt_prog_compiler_static='-static'
14015         ;;
14016       # Lahey Fortran 8.1.
14017       lf95*)
14018         lt_prog_compiler_wl='-Wl,'
14019         lt_prog_compiler_pic='--shared'
14020         lt_prog_compiler_static='--static'
14021         ;;
14022       nagfor*)
14023         # NAG Fortran compiler
14024         lt_prog_compiler_wl='-Wl,-Wl,,'
14025         lt_prog_compiler_pic='-PIC'
14026         lt_prog_compiler_static='-Bstatic'
14027         ;;
14028       tcc*)
14029         # Fabrice Bellard et al's Tiny C Compiler
14030         lt_prog_compiler_wl='-Wl,'
14031         lt_prog_compiler_pic='-fPIC'
14032         lt_prog_compiler_static='-static'
14033         ;;
14034       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14035         # Portland Group compilers (*not* the Pentium gcc compiler,
14036         # which looks to be a dead project)
14037         lt_prog_compiler_wl='-Wl,'
14038         lt_prog_compiler_pic='-fpic'
14039         lt_prog_compiler_static='-Bstatic'
14040         ;;
14041       ccc*)
14042         lt_prog_compiler_wl='-Wl,'
14043         # All Alpha code is PIC.
14044         lt_prog_compiler_static='-non_shared'
14045         ;;
14046       xl* | bgxl* | bgf* | mpixl*)
14047         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14048         lt_prog_compiler_wl='-Wl,'
14049         lt_prog_compiler_pic='-qpic'
14050         lt_prog_compiler_static='-qstaticlink'
14051         ;;
14052       *)
14053         case `$CC -V 2>&1 | sed 5q` in
14054         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14055           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14056           lt_prog_compiler_pic='-KPIC'
14057           lt_prog_compiler_static='-Bstatic'
14058           lt_prog_compiler_wl=''
14059           ;;
14060         *Sun\ F* | *Sun*Fortran*)
14061           lt_prog_compiler_pic='-KPIC'
14062           lt_prog_compiler_static='-Bstatic'
14063           lt_prog_compiler_wl='-Qoption ld '
14064           ;;
14065         *Sun\ C*)
14066           # Sun C 5.9
14067           lt_prog_compiler_pic='-KPIC'
14068           lt_prog_compiler_static='-Bstatic'
14069           lt_prog_compiler_wl='-Wl,'
14070           ;;
14071         *Intel*\ [CF]*Compiler*)
14072           lt_prog_compiler_wl='-Wl,'
14073           lt_prog_compiler_pic='-fPIC'
14074           lt_prog_compiler_static='-static'
14075           ;;
14076         *Portland\ Group*)
14077           lt_prog_compiler_wl='-Wl,'
14078           lt_prog_compiler_pic='-fpic'
14079           lt_prog_compiler_static='-Bstatic'
14080           ;;
14081         esac
14082         ;;
14083       esac
14084       ;;
14085
14086     newsos6)
14087       lt_prog_compiler_pic='-KPIC'
14088       lt_prog_compiler_static='-Bstatic'
14089       ;;
14090
14091     *nto* | *qnx*)
14092       # QNX uses GNU C++, but need to define -shared option too, otherwise
14093       # it will coredump.
14094       lt_prog_compiler_pic='-fPIC -shared'
14095       ;;
14096
14097     osf3* | osf4* | osf5*)
14098       lt_prog_compiler_wl='-Wl,'
14099       # All OSF/1 code is PIC.
14100       lt_prog_compiler_static='-non_shared'
14101       ;;
14102
14103     rdos*)
14104       lt_prog_compiler_static='-non_shared'
14105       ;;
14106
14107     solaris*)
14108       lt_prog_compiler_pic='-KPIC'
14109       lt_prog_compiler_static='-Bstatic'
14110       case $cc_basename in
14111       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14112         lt_prog_compiler_wl='-Qoption ld ';;
14113       *)
14114         lt_prog_compiler_wl='-Wl,';;
14115       esac
14116       ;;
14117
14118     sunos4*)
14119       lt_prog_compiler_wl='-Qoption ld '
14120       lt_prog_compiler_pic='-PIC'
14121       lt_prog_compiler_static='-Bstatic'
14122       ;;
14123
14124     sysv4 | sysv4.2uw2* | sysv4.3*)
14125       lt_prog_compiler_wl='-Wl,'
14126       lt_prog_compiler_pic='-KPIC'
14127       lt_prog_compiler_static='-Bstatic'
14128       ;;
14129
14130     sysv4*MP*)
14131       if test -d /usr/nec; then
14132         lt_prog_compiler_pic='-Kconform_pic'
14133         lt_prog_compiler_static='-Bstatic'
14134       fi
14135       ;;
14136
14137     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14138       lt_prog_compiler_wl='-Wl,'
14139       lt_prog_compiler_pic='-KPIC'
14140       lt_prog_compiler_static='-Bstatic'
14141       ;;
14142
14143     unicos*)
14144       lt_prog_compiler_wl='-Wl,'
14145       lt_prog_compiler_can_build_shared=no
14146       ;;
14147
14148     uts4*)
14149       lt_prog_compiler_pic='-pic'
14150       lt_prog_compiler_static='-Bstatic'
14151       ;;
14152
14153     *)
14154       lt_prog_compiler_can_build_shared=no
14155       ;;
14156     esac
14157   fi
14158
14159 case $host_os in
14160   # For platforms that do not support PIC, -DPIC is meaningless:
14161   *djgpp*)
14162     lt_prog_compiler_pic=
14163     ;;
14164   *)
14165     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14166     ;;
14167 esac
14168
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14170 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14171 if ${lt_cv_prog_compiler_pic+:} false; then :
14172   $as_echo_n "(cached) " >&6
14173 else
14174   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14175 fi
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14177 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14178 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14179
14180 #
14181 # Check to make sure the PIC flag actually works.
14182 #
14183 if test -n "$lt_prog_compiler_pic"; then
14184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14185 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14186 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14187   $as_echo_n "(cached) " >&6
14188 else
14189   lt_cv_prog_compiler_pic_works=no
14190    ac_outfile=conftest.$ac_objext
14191    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14192    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14193    # Insert the option either (1) after the last *FLAGS variable, or
14194    # (2) before a word containing "conftest.", or (3) at the end.
14195    # Note that $ac_compile itself does not contain backslashes and begins
14196    # with a dollar sign (not a hyphen), so the echo should work correctly.
14197    # The option is referenced via a variable to avoid confusing sed.
14198    lt_compile=`echo "$ac_compile" | $SED \
14199    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14200    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14201    -e 's:$: $lt_compiler_flag:'`
14202    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14203    (eval "$lt_compile" 2>conftest.err)
14204    ac_status=$?
14205    cat conftest.err >&5
14206    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207    if (exit $ac_status) && test -s "$ac_outfile"; then
14208      # The compiler can only warn and ignore the option if not recognized
14209      # So say no if there are warnings other than the usual output.
14210      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14211      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14212      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14213        lt_cv_prog_compiler_pic_works=yes
14214      fi
14215    fi
14216    $RM conftest*
14217
14218 fi
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14220 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14221
14222 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14223     case $lt_prog_compiler_pic in
14224      "" | " "*) ;;
14225      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14226      esac
14227 else
14228     lt_prog_compiler_pic=
14229      lt_prog_compiler_can_build_shared=no
14230 fi
14231
14232 fi
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244 #
14245 # Check to make sure the static flag actually works.
14246 #
14247 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14250 if ${lt_cv_prog_compiler_static_works+:} false; then :
14251   $as_echo_n "(cached) " >&6
14252 else
14253   lt_cv_prog_compiler_static_works=no
14254    save_LDFLAGS=$LDFLAGS
14255    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14256    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14257    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14258      # The linker can only warn and ignore the option if not recognized
14259      # So say no if there are warnings
14260      if test -s conftest.err; then
14261        # Append any errors to the config.log.
14262        cat conftest.err 1>&5
14263        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14264        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14265        if diff conftest.exp conftest.er2 >/dev/null; then
14266          lt_cv_prog_compiler_static_works=yes
14267        fi
14268      else
14269        lt_cv_prog_compiler_static_works=yes
14270      fi
14271    fi
14272    $RM -r conftest*
14273    LDFLAGS=$save_LDFLAGS
14274
14275 fi
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14277 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14278
14279 if test yes = "$lt_cv_prog_compiler_static_works"; then
14280     :
14281 else
14282     lt_prog_compiler_static=
14283 fi
14284
14285
14286
14287
14288
14289
14290
14291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14293 if ${lt_cv_prog_compiler_c_o+:} false; then :
14294   $as_echo_n "(cached) " >&6
14295 else
14296   lt_cv_prog_compiler_c_o=no
14297    $RM -r conftest 2>/dev/null
14298    mkdir conftest
14299    cd conftest
14300    mkdir out
14301    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14302
14303    lt_compiler_flag="-o out/conftest2.$ac_objext"
14304    # Insert the option either (1) after the last *FLAGS variable, or
14305    # (2) before a word containing "conftest.", or (3) at the end.
14306    # Note that $ac_compile itself does not contain backslashes and begins
14307    # with a dollar sign (not a hyphen), so the echo should work correctly.
14308    lt_compile=`echo "$ac_compile" | $SED \
14309    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14311    -e 's:$: $lt_compiler_flag:'`
14312    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14313    (eval "$lt_compile" 2>out/conftest.err)
14314    ac_status=$?
14315    cat out/conftest.err >&5
14316    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14318    then
14319      # The compiler can only warn and ignore the option if not recognized
14320      # So say no if there are warnings
14321      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14322      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14323      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14324        lt_cv_prog_compiler_c_o=yes
14325      fi
14326    fi
14327    chmod u+w . 2>&5
14328    $RM conftest*
14329    # SGI C++ compiler will create directory out/ii_files/ for
14330    # template instantiation
14331    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14332    $RM out/* && rmdir out
14333    cd ..
14334    $RM -r conftest
14335    $RM conftest*
14336
14337 fi
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14339 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14340
14341
14342
14343
14344
14345
14346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14347 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14348 if ${lt_cv_prog_compiler_c_o+:} false; then :
14349   $as_echo_n "(cached) " >&6
14350 else
14351   lt_cv_prog_compiler_c_o=no
14352    $RM -r conftest 2>/dev/null
14353    mkdir conftest
14354    cd conftest
14355    mkdir out
14356    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14357
14358    lt_compiler_flag="-o out/conftest2.$ac_objext"
14359    # Insert the option either (1) after the last *FLAGS variable, or
14360    # (2) before a word containing "conftest.", or (3) at the end.
14361    # Note that $ac_compile itself does not contain backslashes and begins
14362    # with a dollar sign (not a hyphen), so the echo should work correctly.
14363    lt_compile=`echo "$ac_compile" | $SED \
14364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14366    -e 's:$: $lt_compiler_flag:'`
14367    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14368    (eval "$lt_compile" 2>out/conftest.err)
14369    ac_status=$?
14370    cat out/conftest.err >&5
14371    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14373    then
14374      # The compiler can only warn and ignore the option if not recognized
14375      # So say no if there are warnings
14376      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14377      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14378      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14379        lt_cv_prog_compiler_c_o=yes
14380      fi
14381    fi
14382    chmod u+w . 2>&5
14383    $RM conftest*
14384    # SGI C++ compiler will create directory out/ii_files/ for
14385    # template instantiation
14386    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14387    $RM out/* && rmdir out
14388    cd ..
14389    $RM -r conftest
14390    $RM conftest*
14391
14392 fi
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14394 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14395
14396
14397
14398
14399 hard_links=nottested
14400 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
14401   # do not overwrite the value of need_locks provided by the user
14402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14403 $as_echo_n "checking if we can lock with hard links... " >&6; }
14404   hard_links=yes
14405   $RM conftest*
14406   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14407   touch conftest.a
14408   ln conftest.a conftest.b 2>&5 || hard_links=no
14409   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14411 $as_echo "$hard_links" >&6; }
14412   if test no = "$hard_links"; then
14413     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14414 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14415     need_locks=warn
14416   fi
14417 else
14418   need_locks=no
14419 fi
14420
14421
14422
14423
14424
14425
14426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14427 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14428
14429   runpath_var=
14430   allow_undefined_flag=
14431   always_export_symbols=no
14432   archive_cmds=
14433   archive_expsym_cmds=
14434   compiler_needs_object=no
14435   enable_shared_with_static_runtimes=no
14436   export_dynamic_flag_spec=
14437   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14438   hardcode_automatic=no
14439   hardcode_direct=no
14440   hardcode_direct_absolute=no
14441   hardcode_libdir_flag_spec=
14442   hardcode_libdir_separator=
14443   hardcode_minus_L=no
14444   hardcode_shlibpath_var=unsupported
14445   inherit_rpath=no
14446   link_all_deplibs=unknown
14447   module_cmds=
14448   module_expsym_cmds=
14449   old_archive_from_new_cmds=
14450   old_archive_from_expsyms_cmds=
14451   thread_safe_flag_spec=
14452   whole_archive_flag_spec=
14453   # include_expsyms should be a list of space-separated symbols to be *always*
14454   # included in the symbol list
14455   include_expsyms=
14456   # exclude_expsyms can be an extended regexp of symbols to exclude
14457   # it will be wrapped by ' (' and ')$', so one must not match beginning or
14458   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14459   # as well as any symbol that contains 'd'.
14460   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14461   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14462   # platforms (ab)use it in PIC code, but their linkers get confused if
14463   # the symbol is explicitly referenced.  Since portable code cannot
14464   # rely on this symbol name, it's probably fine to never include it in
14465   # preloaded symbol tables.
14466   # Exclude shared library initialization/finalization symbols.
14467   extract_expsyms_cmds=
14468
14469   case $host_os in
14470   cygwin* | mingw* | pw32* | cegcc*)
14471     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14472     # When not using gcc, we currently assume that we are using
14473     # Microsoft Visual C++.
14474     if test yes != "$GCC"; then
14475       with_gnu_ld=no
14476     fi
14477     ;;
14478   interix*)
14479     # we just hope/assume this is gcc and not c89 (= MSVC++)
14480     with_gnu_ld=yes
14481     ;;
14482   openbsd* | bitrig*)
14483     with_gnu_ld=no
14484     ;;
14485   esac
14486
14487   ld_shlibs=yes
14488
14489   # On some targets, GNU ld is compatible enough with the native linker
14490   # that we're better off using the native interface for both.
14491   lt_use_gnu_ld_interface=no
14492   if test yes = "$with_gnu_ld"; then
14493     case $host_os in
14494       aix*)
14495         # The AIX port of GNU ld has always aspired to compatibility
14496         # with the native linker.  However, as the warning in the GNU ld
14497         # block says, versions before 2.19.5* couldn't really create working
14498         # shared libraries, regardless of the interface used.
14499         case `$LD -v 2>&1` in
14500           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14501           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14502           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14503           *)
14504             lt_use_gnu_ld_interface=yes
14505             ;;
14506         esac
14507         ;;
14508       *)
14509         lt_use_gnu_ld_interface=yes
14510         ;;
14511     esac
14512   fi
14513
14514   if test yes = "$lt_use_gnu_ld_interface"; then
14515     # If archive_cmds runs LD, not CC, wlarc should be empty
14516     wlarc='$wl'
14517
14518     # Set some defaults for GNU ld with shared library support. These
14519     # are reset later if shared libraries are not supported. Putting them
14520     # here allows them to be overridden if necessary.
14521     runpath_var=LD_RUN_PATH
14522     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14523     export_dynamic_flag_spec='$wl--export-dynamic'
14524     # ancient GNU ld didn't support --whole-archive et. al.
14525     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14526       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14527     else
14528       whole_archive_flag_spec=
14529     fi
14530     supports_anon_versioning=no
14531     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
14532       *GNU\ gold*) supports_anon_versioning=yes ;;
14533       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14534       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14535       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14536       *\ 2.11.*) ;; # other 2.11 versions
14537       *) supports_anon_versioning=yes ;;
14538     esac
14539
14540     # See if GNU ld supports shared libraries.
14541     case $host_os in
14542     aix[3-9]*)
14543       # On AIX/PPC, the GNU linker is very broken
14544       if test ia64 != "$host_cpu"; then
14545         ld_shlibs=no
14546         cat <<_LT_EOF 1>&2
14547
14548 *** Warning: the GNU linker, at least up to release 2.19, is reported
14549 *** to be unable to reliably create shared libraries on AIX.
14550 *** Therefore, libtool is disabling shared libraries support.  If you
14551 *** really care for shared libraries, you may want to install binutils
14552 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14553 *** You will then need to restart the configuration process.
14554
14555 _LT_EOF
14556       fi
14557       ;;
14558
14559     amigaos*)
14560       case $host_cpu in
14561       powerpc)
14562             # see comment about AmigaOS4 .so support
14563             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14564             archive_expsym_cmds=''
14565         ;;
14566       m68k)
14567             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)'
14568             hardcode_libdir_flag_spec='-L$libdir'
14569             hardcode_minus_L=yes
14570         ;;
14571       esac
14572       ;;
14573
14574     beos*)
14575       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14576         allow_undefined_flag=unsupported
14577         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14578         # support --undefined.  This deserves some investigation.  FIXME
14579         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14580       else
14581         ld_shlibs=no
14582       fi
14583       ;;
14584
14585     cygwin* | mingw* | pw32* | cegcc*)
14586       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14587       # as there is no search path for DLLs.
14588       hardcode_libdir_flag_spec='-L$libdir'
14589       export_dynamic_flag_spec='$wl--export-all-symbols'
14590       allow_undefined_flag=unsupported
14591       always_export_symbols=no
14592       enable_shared_with_static_runtimes=yes
14593       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'
14594       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14595
14596       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14597         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14598         # If the export-symbols file already is a .def file, use it as
14599         # is; otherwise, prepend EXPORTS...
14600         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14601           cp $export_symbols $output_objdir/$soname.def;
14602         else
14603           echo EXPORTS > $output_objdir/$soname.def;
14604           cat $export_symbols >> $output_objdir/$soname.def;
14605         fi~
14606         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14607       else
14608         ld_shlibs=no
14609       fi
14610       ;;
14611
14612     haiku*)
14613       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14614       link_all_deplibs=yes
14615       ;;
14616
14617     os2*)
14618       hardcode_libdir_flag_spec='-L$libdir'
14619       hardcode_minus_L=yes
14620       allow_undefined_flag=unsupported
14621       shrext_cmds=.dll
14622       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14623         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14624         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14625         $ECHO EXPORTS >> $output_objdir/$libname.def~
14626         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14627         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14628         emximp -o $lib $output_objdir/$libname.def'
14629       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14630         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14631         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14632         $ECHO EXPORTS >> $output_objdir/$libname.def~
14633         prefix_cmds="$SED"~
14634         if test EXPORTS = "`$SED 1q $export_symbols`"; then
14635           prefix_cmds="$prefix_cmds -e 1d";
14636         fi~
14637         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14638         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14639         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14640         emximp -o $lib $output_objdir/$libname.def'
14641       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14642       enable_shared_with_static_runtimes=yes
14643       ;;
14644
14645     interix[3-9]*)
14646       hardcode_direct=no
14647       hardcode_shlibpath_var=no
14648       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14649       export_dynamic_flag_spec='$wl-E'
14650       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14651       # Instead, shared libraries are loaded at an image base (0x10000000 by
14652       # default) and relocated if they conflict, which is a slow very memory
14653       # consuming and fragmenting process.  To avoid this, we pick a random,
14654       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14655       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14656       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14657       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'
14658       ;;
14659
14660     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14661       tmp_diet=no
14662       if test linux-dietlibc = "$host_os"; then
14663         case $cc_basename in
14664           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14665         esac
14666       fi
14667       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14668          && test no = "$tmp_diet"
14669       then
14670         tmp_addflag=' $pic_flag'
14671         tmp_sharedflag='-shared'
14672         case $cc_basename,$host_cpu in
14673         pgcc*)                          # Portland Group C compiler
14674           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'
14675           tmp_addflag=' $pic_flag'
14676           ;;
14677         pgf77* | pgf90* | pgf95* | pgfortran*)
14678                                         # Portland Group f77 and f90 compilers
14679           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'
14680           tmp_addflag=' $pic_flag -Mnomain' ;;
14681         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14682           tmp_addflag=' -i_dynamic' ;;
14683         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14684           tmp_addflag=' -i_dynamic -nofor_main' ;;
14685         ifc* | ifort*)                  # Intel Fortran compiler
14686           tmp_addflag=' -nofor_main' ;;
14687         lf95*)                          # Lahey Fortran 8.1
14688           whole_archive_flag_spec=
14689           tmp_sharedflag='--shared' ;;
14690         nagfor*)                        # NAGFOR 5.3
14691           tmp_sharedflag='-Wl,-shared' ;;
14692         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14693           tmp_sharedflag='-qmkshrobj'
14694           tmp_addflag= ;;
14695         nvcc*)  # Cuda Compiler Driver 2.2
14696           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'
14697           compiler_needs_object=yes
14698           ;;
14699         esac
14700         case `$CC -V 2>&1 | sed 5q` in
14701         *Sun\ C*)                       # Sun C 5.9
14702           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'
14703           compiler_needs_object=yes
14704           tmp_sharedflag='-G' ;;
14705         *Sun\ F*)                       # Sun Fortran 8.3
14706           tmp_sharedflag='-G' ;;
14707         esac
14708         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14709
14710         if test yes = "$supports_anon_versioning"; then
14711           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14712             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14713             echo "local: *; };" >> $output_objdir/$libname.ver~
14714             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14715         fi
14716
14717         case $cc_basename in
14718         tcc*)
14719           export_dynamic_flag_spec='-rdynamic'
14720           ;;
14721         xlf* | bgf* | bgxlf* | mpixlf*)
14722           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14723           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14724           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14725           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14726           if test yes = "$supports_anon_versioning"; then
14727             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14728               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14729               echo "local: *; };" >> $output_objdir/$libname.ver~
14730               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14731           fi
14732           ;;
14733         esac
14734       else
14735         ld_shlibs=no
14736       fi
14737       ;;
14738
14739     netbsd*)
14740       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14741         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14742         wlarc=
14743       else
14744         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14745         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14746       fi
14747       ;;
14748
14749     solaris*)
14750       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14751         ld_shlibs=no
14752         cat <<_LT_EOF 1>&2
14753
14754 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14755 *** create shared libraries on Solaris systems.  Therefore, libtool
14756 *** is disabling shared libraries support.  We urge you to upgrade GNU
14757 *** binutils to release 2.9.1 or newer.  Another option is to modify
14758 *** your PATH or compiler configuration so that the native linker is
14759 *** used, and then restart.
14760
14761 _LT_EOF
14762       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14763         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14764         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14765       else
14766         ld_shlibs=no
14767       fi
14768       ;;
14769
14770     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14771       case `$LD -v 2>&1` in
14772         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14773         ld_shlibs=no
14774         cat <<_LT_EOF 1>&2
14775
14776 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14777 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14778 *** is disabling shared libraries support.  We urge you to upgrade GNU
14779 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14780 *** your PATH or compiler configuration so that the native linker is
14781 *** used, and then restart.
14782
14783 _LT_EOF
14784         ;;
14785         *)
14786           # For security reasons, it is highly recommended that you always
14787           # use absolute paths for naming shared libraries, and exclude the
14788           # DT_RUNPATH tag from executables and libraries.  But doing so
14789           # requires that you compile everything twice, which is a pain.
14790           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14791             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14792             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14793             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14794           else
14795             ld_shlibs=no
14796           fi
14797         ;;
14798       esac
14799       ;;
14800
14801     sunos4*)
14802       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14803       wlarc=
14804       hardcode_direct=yes
14805       hardcode_shlibpath_var=no
14806       ;;
14807
14808     *)
14809       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14810         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14811         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14812       else
14813         ld_shlibs=no
14814       fi
14815       ;;
14816     esac
14817
14818     if test no = "$ld_shlibs"; then
14819       runpath_var=
14820       hardcode_libdir_flag_spec=
14821       export_dynamic_flag_spec=
14822       whole_archive_flag_spec=
14823     fi
14824   else
14825     # PORTME fill in a description of your system's linker (not GNU ld)
14826     case $host_os in
14827     aix3*)
14828       allow_undefined_flag=unsupported
14829       always_export_symbols=yes
14830       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'
14831       # Note: this linker hardcodes the directories in LIBPATH if there
14832       # are no directories specified by -L.
14833       hardcode_minus_L=yes
14834       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14835         # Neither direct hardcoding nor static linking is supported with a
14836         # broken collect2.
14837         hardcode_direct=unsupported
14838       fi
14839       ;;
14840
14841     aix[4-9]*)
14842       if test ia64 = "$host_cpu"; then
14843         # On IA64, the linker does run time linking by default, so we don't
14844         # have to do anything special.
14845         aix_use_runtimelinking=no
14846         exp_sym_flag='-Bexport'
14847         no_entry_flag=
14848       else
14849         # If we're using GNU nm, then we don't want the "-C" option.
14850         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14851         # Without the "-l" option, or with the "-B" option, AIX nm treats
14852         # weak defined symbols like other global defined symbols, whereas
14853         # GNU nm marks them as "W".
14854         # While the 'weak' keyword is ignored in the Export File, we need
14855         # it in the Import File for the 'aix-soname' feature, so we have
14856         # to replace the "-B" option with "-P" for AIX nm.
14857         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14858           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14859         else
14860           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14861         fi
14862         aix_use_runtimelinking=no
14863
14864         # Test if we are trying to use run time linking or normal
14865         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14866         # have runtime linking enabled, and use it for executables.
14867         # For shared libraries, we enable/disable runtime linking
14868         # depending on the kind of the shared library created -
14869         # when "with_aix_soname,aix_use_runtimelinking" is:
14870         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14871         # "aix,yes"  lib.so          shared, rtl:yes, for executables
14872         #            lib.a           static archive
14873         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14874         #            lib.a(lib.so.V) shared, rtl:no,  for executables
14875         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14876         #            lib.a(lib.so.V) shared, rtl:no
14877         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14878         #            lib.a           static archive
14879         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14880           for ld_flag in $LDFLAGS; do
14881           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14882             aix_use_runtimelinking=yes
14883             break
14884           fi
14885           done
14886           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14887             # With aix-soname=svr4, we create the lib.so.V shared archives only,
14888             # so we don't have lib.a shared libs to link our executables.
14889             # We have to force runtime linking in this case.
14890             aix_use_runtimelinking=yes
14891             LDFLAGS="$LDFLAGS -Wl,-brtl"
14892           fi
14893           ;;
14894         esac
14895
14896         exp_sym_flag='-bexport'
14897         no_entry_flag='-bnoentry'
14898       fi
14899
14900       # When large executables or shared objects are built, AIX ld can
14901       # have problems creating the table of contents.  If linking a library
14902       # or program results in "error TOC overflow" add -mminimal-toc to
14903       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14904       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14905
14906       archive_cmds=''
14907       hardcode_direct=yes
14908       hardcode_direct_absolute=yes
14909       hardcode_libdir_separator=':'
14910       link_all_deplibs=yes
14911       file_list_spec='$wl-f,'
14912       case $with_aix_soname,$aix_use_runtimelinking in
14913       aix,*) ;; # traditional, no import file
14914       svr4,* | *,yes) # use import file
14915         # The Import File defines what to hardcode.
14916         hardcode_direct=no
14917         hardcode_direct_absolute=no
14918         ;;
14919       esac
14920
14921       if test yes = "$GCC"; then
14922         case $host_os in aix4.[012]|aix4.[012].*)
14923         # We only want to do this on AIX 4.2 and lower, the check
14924         # below for broken collect2 doesn't work under 4.3+
14925           collect2name=`$CC -print-prog-name=collect2`
14926           if test -f "$collect2name" &&
14927            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14928           then
14929           # We have reworked collect2
14930           :
14931           else
14932           # We have old collect2
14933           hardcode_direct=unsupported
14934           # It fails to find uninstalled libraries when the uninstalled
14935           # path is not listed in the libpath.  Setting hardcode_minus_L
14936           # to unsupported forces relinking
14937           hardcode_minus_L=yes
14938           hardcode_libdir_flag_spec='-L$libdir'
14939           hardcode_libdir_separator=
14940           fi
14941           ;;
14942         esac
14943         shared_flag='-shared'
14944         if test yes = "$aix_use_runtimelinking"; then
14945           shared_flag="$shared_flag "'$wl-G'
14946         fi
14947         # Need to ensure runtime linking is disabled for the traditional
14948         # shared library, or the linker may eventually find shared libraries
14949         # /with/ Import File - we do not want to mix them.
14950         shared_flag_aix='-shared'
14951         shared_flag_svr4='-shared $wl-G'
14952       else
14953         # not using gcc
14954         if test ia64 = "$host_cpu"; then
14955         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14956         # chokes on -Wl,-G. The following line is correct:
14957           shared_flag='-G'
14958         else
14959           if test yes = "$aix_use_runtimelinking"; then
14960             shared_flag='$wl-G'
14961           else
14962             shared_flag='$wl-bM:SRE'
14963           fi
14964           shared_flag_aix='$wl-bM:SRE'
14965           shared_flag_svr4='$wl-G'
14966         fi
14967       fi
14968
14969       export_dynamic_flag_spec='$wl-bexpall'
14970       # It seems that -bexpall does not export symbols beginning with
14971       # underscore (_), so it is better to generate a list of symbols to export.
14972       always_export_symbols=yes
14973       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14974         # Warning - without using the other runtime loading flags (-brtl),
14975         # -berok will link without error, but may produce a broken library.
14976         allow_undefined_flag='-berok'
14977         # Determine the default libpath from the value encoded in an
14978         # empty executable.
14979         if test set = "${lt_cv_aix_libpath+set}"; then
14980   aix_libpath=$lt_cv_aix_libpath
14981 else
14982   if ${lt_cv_aix_libpath_+:} false; then :
14983   $as_echo_n "(cached) " >&6
14984 else
14985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h.  */
14987
14988 int
14989 main ()
14990 {
14991
14992   ;
14993   return 0;
14994 }
14995 _ACEOF
14996 if ac_fn_c_try_link "$LINENO"; then :
14997
14998   lt_aix_libpath_sed='
14999       /Import File Strings/,/^$/ {
15000           /^0/ {
15001               s/^0  *\([^ ]*\) *$/\1/
15002               p
15003           }
15004       }'
15005   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15006   # Check for a 64-bit object if we didn't find anything.
15007   if test -z "$lt_cv_aix_libpath_"; then
15008     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15009   fi
15010 fi
15011 rm -f core conftest.err conftest.$ac_objext \
15012     conftest$ac_exeext conftest.$ac_ext
15013   if test -z "$lt_cv_aix_libpath_"; then
15014     lt_cv_aix_libpath_=/usr/lib:/lib
15015   fi
15016
15017 fi
15018
15019   aix_libpath=$lt_cv_aix_libpath_
15020 fi
15021
15022         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15023         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15024       else
15025         if test ia64 = "$host_cpu"; then
15026           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15027           allow_undefined_flag="-z nodefs"
15028           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"
15029         else
15030          # Determine the default libpath from the value encoded in an
15031          # empty executable.
15032          if test set = "${lt_cv_aix_libpath+set}"; then
15033   aix_libpath=$lt_cv_aix_libpath
15034 else
15035   if ${lt_cv_aix_libpath_+:} false; then :
15036   $as_echo_n "(cached) " >&6
15037 else
15038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h.  */
15040
15041 int
15042 main ()
15043 {
15044
15045   ;
15046   return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"; then :
15050
15051   lt_aix_libpath_sed='
15052       /Import File Strings/,/^$/ {
15053           /^0/ {
15054               s/^0  *\([^ ]*\) *$/\1/
15055               p
15056           }
15057       }'
15058   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15059   # Check for a 64-bit object if we didn't find anything.
15060   if test -z "$lt_cv_aix_libpath_"; then
15061     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15062   fi
15063 fi
15064 rm -f core conftest.err conftest.$ac_objext \
15065     conftest$ac_exeext conftest.$ac_ext
15066   if test -z "$lt_cv_aix_libpath_"; then
15067     lt_cv_aix_libpath_=/usr/lib:/lib
15068   fi
15069
15070 fi
15071
15072   aix_libpath=$lt_cv_aix_libpath_
15073 fi
15074
15075          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15076           # Warning - without using the other run time loading flags,
15077           # -berok will link without error, but may produce a broken library.
15078           no_undefined_flag=' $wl-bernotok'
15079           allow_undefined_flag=' $wl-berok'
15080           if test yes = "$with_gnu_ld"; then
15081             # We only use this code for GNU lds that support --whole-archive.
15082             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15083           else
15084             # Exported symbols can be pulled into shared objects from archives
15085             whole_archive_flag_spec='$convenience'
15086           fi
15087           archive_cmds_need_lc=yes
15088           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15089           # -brtl affects multiple linker settings, -berok does not and is overridden later
15090           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15091           if test svr4 != "$with_aix_soname"; then
15092             # This is similar to how AIX traditionally builds its shared libraries.
15093             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15094           fi
15095           if test aix != "$with_aix_soname"; then
15096             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15097           else
15098             # used by -dlpreopen to get the symbols
15099             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15100           fi
15101           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15102         fi
15103       fi
15104       ;;
15105
15106     amigaos*)
15107       case $host_cpu in
15108       powerpc)
15109             # see comment about AmigaOS4 .so support
15110             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15111             archive_expsym_cmds=''
15112         ;;
15113       m68k)
15114             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)'
15115             hardcode_libdir_flag_spec='-L$libdir'
15116             hardcode_minus_L=yes
15117         ;;
15118       esac
15119       ;;
15120
15121     bsdi[45]*)
15122       export_dynamic_flag_spec=-rdynamic
15123       ;;
15124
15125     cygwin* | mingw* | pw32* | cegcc*)
15126       # When not using gcc, we currently assume that we are using
15127       # Microsoft Visual C++.
15128       # hardcode_libdir_flag_spec is actually meaningless, as there is
15129       # no search path for DLLs.
15130       case $cc_basename in
15131       cl*)
15132         # Native MSVC
15133         hardcode_libdir_flag_spec=' '
15134         allow_undefined_flag=unsupported
15135         always_export_symbols=yes
15136         file_list_spec='@'
15137         # Tell ltmain to make .lib files, not .a files.
15138         libext=lib
15139         # Tell ltmain to make .dll files, not .so files.
15140         shrext_cmds=.dll
15141         # FIXME: Setting linknames here is a bad hack.
15142         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15143         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15144             cp "$export_symbols" "$output_objdir/$soname.def";
15145             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15146           else
15147             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15148           fi~
15149           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15150           linknames='
15151         # The linker will not automatically build a static lib if we build a DLL.
15152         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15153         enable_shared_with_static_runtimes=yes
15154         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15155         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15156         # Don't use ranlib
15157         old_postinstall_cmds='chmod 644 $oldlib'
15158         postlink_cmds='lt_outputfile="@OUTPUT@"~
15159           lt_tool_outputfile="@TOOL_OUTPUT@"~
15160           case $lt_outputfile in
15161             *.exe|*.EXE) ;;
15162             *)
15163               lt_outputfile=$lt_outputfile.exe
15164               lt_tool_outputfile=$lt_tool_outputfile.exe
15165               ;;
15166           esac~
15167           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15168             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15169             $RM "$lt_outputfile.manifest";
15170           fi'
15171         ;;
15172       *)
15173         # Assume MSVC wrapper
15174         hardcode_libdir_flag_spec=' '
15175         allow_undefined_flag=unsupported
15176         # Tell ltmain to make .lib files, not .a files.
15177         libext=lib
15178         # Tell ltmain to make .dll files, not .so files.
15179         shrext_cmds=.dll
15180         # FIXME: Setting linknames here is a bad hack.
15181         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15182         # The linker will automatically build a .lib file if we build a DLL.
15183         old_archive_from_new_cmds='true'
15184         # FIXME: Should let the user specify the lib program.
15185         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15186         enable_shared_with_static_runtimes=yes
15187         ;;
15188       esac
15189       ;;
15190
15191     darwin* | rhapsody*)
15192
15193
15194   archive_cmds_need_lc=no
15195   hardcode_direct=no
15196   hardcode_automatic=yes
15197   hardcode_shlibpath_var=unsupported
15198   if test yes = "$lt_cv_ld_force_load"; then
15199     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\"`'
15200
15201   else
15202     whole_archive_flag_spec=''
15203   fi
15204   link_all_deplibs=yes
15205   allow_undefined_flag=$_lt_dar_allow_undefined
15206   case $cc_basename in
15207      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15208      *) _lt_dar_can_shared=$GCC ;;
15209   esac
15210   if test yes = "$_lt_dar_can_shared"; then
15211     output_verbose_link_cmd=func_echo_all
15212     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15213     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15214     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"
15215     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"
15216
15217   else
15218   ld_shlibs=no
15219   fi
15220
15221       ;;
15222
15223     dgux*)
15224       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15225       hardcode_libdir_flag_spec='-L$libdir'
15226       hardcode_shlibpath_var=no
15227       ;;
15228
15229     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15230     # support.  Future versions do this automatically, but an explicit c++rt0.o
15231     # does not break anything, and helps significantly (at the cost of a little
15232     # extra space).
15233     freebsd2.2*)
15234       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15235       hardcode_libdir_flag_spec='-R$libdir'
15236       hardcode_direct=yes
15237       hardcode_shlibpath_var=no
15238       ;;
15239
15240     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15241     freebsd2.*)
15242       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15243       hardcode_direct=yes
15244       hardcode_minus_L=yes
15245       hardcode_shlibpath_var=no
15246       ;;
15247
15248     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15249     freebsd* | dragonfly*)
15250       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15251       hardcode_libdir_flag_spec='-R$libdir'
15252       hardcode_direct=yes
15253       hardcode_shlibpath_var=no
15254       ;;
15255
15256     hpux9*)
15257       if test yes = "$GCC"; then
15258         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15259       else
15260         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15261       fi
15262       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15263       hardcode_libdir_separator=:
15264       hardcode_direct=yes
15265
15266       # hardcode_minus_L: Not really in the search PATH,
15267       # but as the default location of the library.
15268       hardcode_minus_L=yes
15269       export_dynamic_flag_spec='$wl-E'
15270       ;;
15271
15272     hpux10*)
15273       if test yes,no = "$GCC,$with_gnu_ld"; then
15274         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15275       else
15276         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15277       fi
15278       if test no = "$with_gnu_ld"; then
15279         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15280         hardcode_libdir_separator=:
15281         hardcode_direct=yes
15282         hardcode_direct_absolute=yes
15283         export_dynamic_flag_spec='$wl-E'
15284         # hardcode_minus_L: Not really in the search PATH,
15285         # but as the default location of the library.
15286         hardcode_minus_L=yes
15287       fi
15288       ;;
15289
15290     hpux11*)
15291       if test yes,no = "$GCC,$with_gnu_ld"; then
15292         case $host_cpu in
15293         hppa*64*)
15294           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15295           ;;
15296         ia64*)
15297           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15298           ;;
15299         *)
15300           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15301           ;;
15302         esac
15303       else
15304         case $host_cpu in
15305         hppa*64*)
15306           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15307           ;;
15308         ia64*)
15309           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15310           ;;
15311         *)
15312
15313           # Older versions of the 11.00 compiler do not understand -b yet
15314           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15315           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15316 $as_echo_n "checking if $CC understands -b... " >&6; }
15317 if ${lt_cv_prog_compiler__b+:} false; then :
15318   $as_echo_n "(cached) " >&6
15319 else
15320   lt_cv_prog_compiler__b=no
15321    save_LDFLAGS=$LDFLAGS
15322    LDFLAGS="$LDFLAGS -b"
15323    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15324    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15325      # The linker can only warn and ignore the option if not recognized
15326      # So say no if there are warnings
15327      if test -s conftest.err; then
15328        # Append any errors to the config.log.
15329        cat conftest.err 1>&5
15330        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15331        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15332        if diff conftest.exp conftest.er2 >/dev/null; then
15333          lt_cv_prog_compiler__b=yes
15334        fi
15335      else
15336        lt_cv_prog_compiler__b=yes
15337      fi
15338    fi
15339    $RM -r conftest*
15340    LDFLAGS=$save_LDFLAGS
15341
15342 fi
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15344 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15345
15346 if test yes = "$lt_cv_prog_compiler__b"; then
15347     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15348 else
15349     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15350 fi
15351
15352           ;;
15353         esac
15354       fi
15355       if test no = "$with_gnu_ld"; then
15356         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15357         hardcode_libdir_separator=:
15358
15359         case $host_cpu in
15360         hppa*64*|ia64*)
15361           hardcode_direct=no
15362           hardcode_shlibpath_var=no
15363           ;;
15364         *)
15365           hardcode_direct=yes
15366           hardcode_direct_absolute=yes
15367           export_dynamic_flag_spec='$wl-E'
15368
15369           # hardcode_minus_L: Not really in the search PATH,
15370           # but as the default location of the library.
15371           hardcode_minus_L=yes
15372           ;;
15373         esac
15374       fi
15375       ;;
15376
15377     irix5* | irix6* | nonstopux*)
15378       if test yes = "$GCC"; then
15379         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'
15380         # Try to use the -exported_symbol ld option, if it does not
15381         # work, assume that -exports_file does not work either and
15382         # implicitly export all symbols.
15383         # This should be the same for all languages, so no per-tag cache variable.
15384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15385 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15386 if ${lt_cv_irix_exported_symbol+:} false; then :
15387   $as_echo_n "(cached) " >&6
15388 else
15389   save_LDFLAGS=$LDFLAGS
15390            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
15391            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h.  */
15393 int foo (void) { return 0; }
15394 _ACEOF
15395 if ac_fn_c_try_link "$LINENO"; then :
15396   lt_cv_irix_exported_symbol=yes
15397 else
15398   lt_cv_irix_exported_symbol=no
15399 fi
15400 rm -f core conftest.err conftest.$ac_objext \
15401     conftest$ac_exeext conftest.$ac_ext
15402            LDFLAGS=$save_LDFLAGS
15403 fi
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15405 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15406         if test yes = "$lt_cv_irix_exported_symbol"; then
15407           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'
15408         fi
15409       else
15410         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'
15411         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'
15412       fi
15413       archive_cmds_need_lc='no'
15414       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15415       hardcode_libdir_separator=:
15416       inherit_rpath=yes
15417       link_all_deplibs=yes
15418       ;;
15419
15420     linux*)
15421       case $cc_basename in
15422       tcc*)
15423         # Fabrice Bellard et al's Tiny C Compiler
15424         ld_shlibs=yes
15425         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15426         ;;
15427       esac
15428       ;;
15429
15430     netbsd*)
15431       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15432         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15433       else
15434         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15435       fi
15436       hardcode_libdir_flag_spec='-R$libdir'
15437       hardcode_direct=yes
15438       hardcode_shlibpath_var=no
15439       ;;
15440
15441     newsos6)
15442       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15443       hardcode_direct=yes
15444       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15445       hardcode_libdir_separator=:
15446       hardcode_shlibpath_var=no
15447       ;;
15448
15449     *nto* | *qnx*)
15450       ;;
15451
15452     openbsd* | bitrig*)
15453       if test -f /usr/libexec/ld.so; then
15454         hardcode_direct=yes
15455         hardcode_shlibpath_var=no
15456         hardcode_direct_absolute=yes
15457         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15458           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15459           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15460           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15461           export_dynamic_flag_spec='$wl-E'
15462         else
15463           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15464           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15465         fi
15466       else
15467         ld_shlibs=no
15468       fi
15469       ;;
15470
15471     os2*)
15472       hardcode_libdir_flag_spec='-L$libdir'
15473       hardcode_minus_L=yes
15474       allow_undefined_flag=unsupported
15475       shrext_cmds=.dll
15476       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15477         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15478         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15479         $ECHO EXPORTS >> $output_objdir/$libname.def~
15480         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15481         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15482         emximp -o $lib $output_objdir/$libname.def'
15483       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15484         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15485         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15486         $ECHO EXPORTS >> $output_objdir/$libname.def~
15487         prefix_cmds="$SED"~
15488         if test EXPORTS = "`$SED 1q $export_symbols`"; then
15489           prefix_cmds="$prefix_cmds -e 1d";
15490         fi~
15491         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15492         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15493         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15494         emximp -o $lib $output_objdir/$libname.def'
15495       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15496       enable_shared_with_static_runtimes=yes
15497       ;;
15498
15499     osf3*)
15500       if test yes = "$GCC"; then
15501         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15502         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'
15503       else
15504         allow_undefined_flag=' -expect_unresolved \*'
15505         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'
15506       fi
15507       archive_cmds_need_lc='no'
15508       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15509       hardcode_libdir_separator=:
15510       ;;
15511
15512     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15513       if test yes = "$GCC"; then
15514         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15515         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'
15516         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15517       else
15518         allow_undefined_flag=' -expect_unresolved \*'
15519         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'
15520         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~
15521           $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'
15522
15523         # Both c and cxx compiler support -rpath directly
15524         hardcode_libdir_flag_spec='-rpath $libdir'
15525       fi
15526       archive_cmds_need_lc='no'
15527       hardcode_libdir_separator=:
15528       ;;
15529
15530     solaris*)
15531       no_undefined_flag=' -z defs'
15532       if test yes = "$GCC"; then
15533         wlarc='$wl'
15534         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15535         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15536           $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'
15537       else
15538         case `$CC -V 2>&1` in
15539         *"Compilers 5.0"*)
15540           wlarc=''
15541           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15543             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15544           ;;
15545         *)
15546           wlarc='$wl'
15547           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15548           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15549             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15550           ;;
15551         esac
15552       fi
15553       hardcode_libdir_flag_spec='-R$libdir'
15554       hardcode_shlibpath_var=no
15555       case $host_os in
15556       solaris2.[0-5] | solaris2.[0-5].*) ;;
15557       *)
15558         # The compiler driver will combine and reorder linker options,
15559         # but understands '-z linker_flag'.  GCC discards it without '$wl',
15560         # but is careful enough not to reorder.
15561         # Supported since Solaris 2.6 (maybe 2.5.1?)
15562         if test yes = "$GCC"; then
15563           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15564         else
15565           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15566         fi
15567         ;;
15568       esac
15569       link_all_deplibs=yes
15570       ;;
15571
15572     sunos4*)
15573       if test sequent = "$host_vendor"; then
15574         # Use $CC to link under sequent, because it throws in some extra .o
15575         # files that make .init and .fini sections work.
15576         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15577       else
15578         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15579       fi
15580       hardcode_libdir_flag_spec='-L$libdir'
15581       hardcode_direct=yes
15582       hardcode_minus_L=yes
15583       hardcode_shlibpath_var=no
15584       ;;
15585
15586     sysv4)
15587       case $host_vendor in
15588         sni)
15589           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15590           hardcode_direct=yes # is this really true???
15591         ;;
15592         siemens)
15593           ## LD is ld it makes a PLAMLIB
15594           ## CC just makes a GrossModule.
15595           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15596           reload_cmds='$CC -r -o $output$reload_objs'
15597           hardcode_direct=no
15598         ;;
15599         motorola)
15600           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15601           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15602         ;;
15603       esac
15604       runpath_var='LD_RUN_PATH'
15605       hardcode_shlibpath_var=no
15606       ;;
15607
15608     sysv4.3*)
15609       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15610       hardcode_shlibpath_var=no
15611       export_dynamic_flag_spec='-Bexport'
15612       ;;
15613
15614     sysv4*MP*)
15615       if test -d /usr/nec; then
15616         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15617         hardcode_shlibpath_var=no
15618         runpath_var=LD_RUN_PATH
15619         hardcode_runpath_var=yes
15620         ld_shlibs=yes
15621       fi
15622       ;;
15623
15624     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15625       no_undefined_flag='$wl-z,text'
15626       archive_cmds_need_lc=no
15627       hardcode_shlibpath_var=no
15628       runpath_var='LD_RUN_PATH'
15629
15630       if test yes = "$GCC"; then
15631         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633       else
15634         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15635         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15636       fi
15637       ;;
15638
15639     sysv5* | sco3.2v5* | sco5v6*)
15640       # Note: We CANNOT use -z defs as we might desire, because we do not
15641       # link with -lc, and that would cause any symbols used from libc to
15642       # always be unresolved, which means just about no library would
15643       # ever link correctly.  If we're not using GNU ld we use -z text
15644       # though, which does catch some bad symbols but isn't as heavy-handed
15645       # as -z defs.
15646       no_undefined_flag='$wl-z,text'
15647       allow_undefined_flag='$wl-z,nodefs'
15648       archive_cmds_need_lc=no
15649       hardcode_shlibpath_var=no
15650       hardcode_libdir_flag_spec='$wl-R,$libdir'
15651       hardcode_libdir_separator=':'
15652       link_all_deplibs=yes
15653       export_dynamic_flag_spec='$wl-Bexport'
15654       runpath_var='LD_RUN_PATH'
15655
15656       if test yes = "$GCC"; then
15657         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15658         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15659       else
15660         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15661         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15662       fi
15663       ;;
15664
15665     uts4*)
15666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15667       hardcode_libdir_flag_spec='-L$libdir'
15668       hardcode_shlibpath_var=no
15669       ;;
15670
15671     *)
15672       ld_shlibs=no
15673       ;;
15674     esac
15675
15676     if test sni = "$host_vendor"; then
15677       case $host in
15678       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15679         export_dynamic_flag_spec='$wl-Blargedynsym'
15680         ;;
15681       esac
15682     fi
15683   fi
15684
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15686 $as_echo "$ld_shlibs" >&6; }
15687 test no = "$ld_shlibs" && can_build_shared=no
15688
15689 with_gnu_ld=$with_gnu_ld
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705 #
15706 # Do we need to explicitly link libc?
15707 #
15708 case "x$archive_cmds_need_lc" in
15709 x|xyes)
15710   # Assume -lc should be added
15711   archive_cmds_need_lc=yes
15712
15713   if test yes,yes = "$GCC,$enable_shared"; then
15714     case $archive_cmds in
15715     *'~'*)
15716       # FIXME: we may have to deal with multi-command sequences.
15717       ;;
15718     '$CC '*)
15719       # Test whether the compiler implicitly links with -lc since on some
15720       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15721       # to ld, don't add -lc before -lgcc.
15722       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15723 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15724 if ${lt_cv_archive_cmds_need_lc+:} false; then :
15725   $as_echo_n "(cached) " >&6
15726 else
15727   $RM conftest*
15728         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15729
15730         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15731   (eval $ac_compile) 2>&5
15732   ac_status=$?
15733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15734   test $ac_status = 0; } 2>conftest.err; then
15735           soname=conftest
15736           lib=conftest
15737           libobjs=conftest.$ac_objext
15738           deplibs=
15739           wl=$lt_prog_compiler_wl
15740           pic_flag=$lt_prog_compiler_pic
15741           compiler_flags=-v
15742           linker_flags=-v
15743           verstring=
15744           output_objdir=.
15745           libname=conftest
15746           lt_save_allow_undefined_flag=$allow_undefined_flag
15747           allow_undefined_flag=
15748           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15749   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15750   ac_status=$?
15751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15752   test $ac_status = 0; }
15753           then
15754             lt_cv_archive_cmds_need_lc=no
15755           else
15756             lt_cv_archive_cmds_need_lc=yes
15757           fi
15758           allow_undefined_flag=$lt_save_allow_undefined_flag
15759         else
15760           cat conftest.err 1>&5
15761         fi
15762         $RM conftest*
15763
15764 fi
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15766 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15767       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15768       ;;
15769     esac
15770   fi
15771   ;;
15772 esac
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
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15926 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15927
15928 if test yes = "$GCC"; then
15929   case $host_os in
15930     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15931     *) lt_awk_arg='/^libraries:/' ;;
15932   esac
15933   case $host_os in
15934     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15935     *) lt_sed_strip_eq='s|=/|/|g' ;;
15936   esac
15937   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15938   case $lt_search_path_spec in
15939   *\;*)
15940     # if the path contains ";" then we assume it to be the separator
15941     # otherwise default to the standard path separator (i.e. ":") - it is
15942     # assumed that no part of a normal pathname contains ";" but that should
15943     # okay in the real world where ";" in dirpaths is itself problematic.
15944     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15945     ;;
15946   *)
15947     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15948     ;;
15949   esac
15950   # Ok, now we have the path, separated by spaces, we can step through it
15951   # and add multilib dir if necessary...
15952   lt_tmp_lt_search_path_spec=
15953   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15954   # ...but if some path component already ends with the multilib dir we assume
15955   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15956   case "$lt_multi_os_dir; $lt_search_path_spec " in
15957   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15958     lt_multi_os_dir=
15959     ;;
15960   esac
15961   for lt_sys_path in $lt_search_path_spec; do
15962     if test -d "$lt_sys_path$lt_multi_os_dir"; then
15963       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15964     elif test -n "$lt_multi_os_dir"; then
15965       test -d "$lt_sys_path" && \
15966         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15967     fi
15968   done
15969   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15970 BEGIN {RS = " "; FS = "/|\n";} {
15971   lt_foo = "";
15972   lt_count = 0;
15973   for (lt_i = NF; lt_i > 0; lt_i--) {
15974     if ($lt_i != "" && $lt_i != ".") {
15975       if ($lt_i == "..") {
15976         lt_count++;
15977       } else {
15978         if (lt_count == 0) {
15979           lt_foo = "/" $lt_i lt_foo;
15980         } else {
15981           lt_count--;
15982         }
15983       }
15984     }
15985   }
15986   if (lt_foo != "") { lt_freq[lt_foo]++; }
15987   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15988 }'`
15989   # AWK program above erroneously prepends '/' to C:/dos/paths
15990   # for these hosts.
15991   case $host_os in
15992     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15993       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15994   esac
15995   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15996 else
15997   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15998 fi
15999 library_names_spec=
16000 libname_spec='lib$name'
16001 soname_spec=
16002 shrext_cmds=.so
16003 postinstall_cmds=
16004 postuninstall_cmds=
16005 finish_cmds=
16006 finish_eval=
16007 shlibpath_var=
16008 shlibpath_overrides_runpath=unknown
16009 version_type=none
16010 dynamic_linker="$host_os ld.so"
16011 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16012 need_lib_prefix=unknown
16013 hardcode_into_libs=no
16014
16015 # when you set need_version to no, make sure it does not cause -set_version
16016 # flags to be left without arguments
16017 need_version=unknown
16018
16019
16020
16021 case $host_os in
16022 aix3*)
16023   version_type=linux # correct to gnu/linux during the next big refactor
16024   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16025   shlibpath_var=LIBPATH
16026
16027   # AIX 3 has no versioning support, so we append a major version to the name.
16028   soname_spec='$libname$release$shared_ext$major'
16029   ;;
16030
16031 aix[4-9]*)
16032   version_type=linux # correct to gnu/linux during the next big refactor
16033   need_lib_prefix=no
16034   need_version=no
16035   hardcode_into_libs=yes
16036   if test ia64 = "$host_cpu"; then
16037     # AIX 5 supports IA64
16038     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16039     shlibpath_var=LD_LIBRARY_PATH
16040   else
16041     # With GCC up to 2.95.x, collect2 would create an import file
16042     # for dependence libraries.  The import file would start with
16043     # the line '#! .'.  This would cause the generated library to
16044     # depend on '.', always an invalid library.  This was fixed in
16045     # development snapshots of GCC prior to 3.0.
16046     case $host_os in
16047       aix4 | aix4.[01] | aix4.[01].*)
16048       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16049            echo ' yes '
16050            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16051         :
16052       else
16053         can_build_shared=no
16054       fi
16055       ;;
16056     esac
16057     # Using Import Files as archive members, it is possible to support
16058     # filename-based versioning of shared library archives on AIX. While
16059     # this would work for both with and without runtime linking, it will
16060     # prevent static linking of such archives. So we do filename-based
16061     # shared library versioning with .so extension only, which is used
16062     # when both runtime linking and shared linking is enabled.
16063     # Unfortunately, runtime linking may impact performance, so we do
16064     # not want this to be the default eventually. Also, we use the
16065     # versioned .so libs for executables only if there is the -brtl
16066     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16067     # To allow for filename-based versioning support, we need to create
16068     # libNAME.so.V as an archive file, containing:
16069     # *) an Import File, referring to the versioned filename of the
16070     #    archive as well as the shared archive member, telling the
16071     #    bitwidth (32 or 64) of that shared object, and providing the
16072     #    list of exported symbols of that shared object, eventually
16073     #    decorated with the 'weak' keyword
16074     # *) the shared object with the F_LOADONLY flag set, to really avoid
16075     #    it being seen by the linker.
16076     # At run time we better use the real file rather than another symlink,
16077     # but for link time we create the symlink libNAME.so -> libNAME.so.V
16078
16079     case $with_aix_soname,$aix_use_runtimelinking in
16080     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16081     # soname into executable. Probably we can add versioning support to
16082     # collect2, so additional links can be useful in future.
16083     aix,yes) # traditional libtool
16084       dynamic_linker='AIX unversionable lib.so'
16085       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16086       # instead of lib<name>.a to let people know that these are not
16087       # typical AIX shared libraries.
16088       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16089       ;;
16090     aix,no) # traditional AIX only
16091       dynamic_linker='AIX lib.a(lib.so.V)'
16092       # We preserve .a as extension for shared libraries through AIX4.2
16093       # and later when we are not doing run time linking.
16094       library_names_spec='$libname$release.a $libname.a'
16095       soname_spec='$libname$release$shared_ext$major'
16096       ;;
16097     svr4,*) # full svr4 only
16098       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16099       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16100       # We do not specify a path in Import Files, so LIBPATH fires.
16101       shlibpath_overrides_runpath=yes
16102       ;;
16103     *,yes) # both, prefer svr4
16104       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16105       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16106       # unpreferred sharedlib libNAME.a needs extra handling
16107       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16108       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16109       # We do not specify a path in Import Files, so LIBPATH fires.
16110       shlibpath_overrides_runpath=yes
16111       ;;
16112     *,no) # both, prefer aix
16113       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16114       library_names_spec='$libname$release.a $libname.a'
16115       soname_spec='$libname$release$shared_ext$major'
16116       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16117       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16118       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16119       ;;
16120     esac
16121     shlibpath_var=LIBPATH
16122   fi
16123   ;;
16124
16125 amigaos*)
16126   case $host_cpu in
16127   powerpc)
16128     # Since July 2007 AmigaOS4 officially supports .so libraries.
16129     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16130     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16131     ;;
16132   m68k)
16133     library_names_spec='$libname.ixlibrary $libname.a'
16134     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16135     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16136     ;;
16137   esac
16138   ;;
16139
16140 beos*)
16141   library_names_spec='$libname$shared_ext'
16142   dynamic_linker="$host_os ld.so"
16143   shlibpath_var=LIBRARY_PATH
16144   ;;
16145
16146 bsdi[45]*)
16147   version_type=linux # correct to gnu/linux during the next big refactor
16148   need_version=no
16149   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16150   soname_spec='$libname$release$shared_ext$major'
16151   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16152   shlibpath_var=LD_LIBRARY_PATH
16153   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16154   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16155   # the default ld.so.conf also contains /usr/contrib/lib and
16156   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16157   # libtool to hard-code these into programs
16158   ;;
16159
16160 cygwin* | mingw* | pw32* | cegcc*)
16161   version_type=windows
16162   shrext_cmds=.dll
16163   need_version=no
16164   need_lib_prefix=no
16165
16166   case $GCC,$cc_basename in
16167   yes,*)
16168     # gcc
16169     library_names_spec='$libname.dll.a'
16170     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16171     postinstall_cmds='base_file=`basename \$file`~
16172       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16173       dldir=$destdir/`dirname \$dlpath`~
16174       test -d \$dldir || mkdir -p \$dldir~
16175       $install_prog $dir/$dlname \$dldir/$dlname~
16176       chmod a+x \$dldir/$dlname~
16177       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16178         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16179       fi'
16180     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16181       dlpath=$dir/\$dldll~
16182        $RM \$dlpath'
16183     shlibpath_overrides_runpath=yes
16184
16185     case $host_os in
16186     cygwin*)
16187       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16188       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16189
16190       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16191       ;;
16192     mingw* | cegcc*)
16193       # MinGW DLLs use traditional 'lib' prefix
16194       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16195       ;;
16196     pw32*)
16197       # pw32 DLLs use 'pw' prefix rather than 'lib'
16198       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16199       ;;
16200     esac
16201     dynamic_linker='Win32 ld.exe'
16202     ;;
16203
16204   *,cl*)
16205     # Native MSVC
16206     libname_spec='$name'
16207     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16208     library_names_spec='$libname.dll.lib'
16209
16210     case $build_os in
16211     mingw*)
16212       sys_lib_search_path_spec=
16213       lt_save_ifs=$IFS
16214       IFS=';'
16215       for lt_path in $LIB
16216       do
16217         IFS=$lt_save_ifs
16218         # Let DOS variable expansion print the short 8.3 style file name.
16219         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16220         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16221       done
16222       IFS=$lt_save_ifs
16223       # Convert to MSYS style.
16224       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16225       ;;
16226     cygwin*)
16227       # Convert to unix form, then to dos form, then back to unix form
16228       # but this time dos style (no spaces!) so that the unix form looks
16229       # like /cygdrive/c/PROGRA~1:/cygdr...
16230       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16231       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16232       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16233       ;;
16234     *)
16235       sys_lib_search_path_spec=$LIB
16236       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16237         # It is most probably a Windows format PATH.
16238         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16239       else
16240         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16241       fi
16242       # FIXME: find the short name or the path components, as spaces are
16243       # common. (e.g. "Program Files" -> "PROGRA~1")
16244       ;;
16245     esac
16246
16247     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16248     postinstall_cmds='base_file=`basename \$file`~
16249       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16250       dldir=$destdir/`dirname \$dlpath`~
16251       test -d \$dldir || mkdir -p \$dldir~
16252       $install_prog $dir/$dlname \$dldir/$dlname'
16253     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16254       dlpath=$dir/\$dldll~
16255        $RM \$dlpath'
16256     shlibpath_overrides_runpath=yes
16257     dynamic_linker='Win32 link.exe'
16258     ;;
16259
16260   *)
16261     # Assume MSVC wrapper
16262     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16263     dynamic_linker='Win32 ld.exe'
16264     ;;
16265   esac
16266   # FIXME: first we should search . and the directory the executable is in
16267   shlibpath_var=PATH
16268   ;;
16269
16270 darwin* | rhapsody*)
16271   dynamic_linker="$host_os dyld"
16272   version_type=darwin
16273   need_lib_prefix=no
16274   need_version=no
16275   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16276   soname_spec='$libname$release$major$shared_ext'
16277   shlibpath_overrides_runpath=yes
16278   shlibpath_var=DYLD_LIBRARY_PATH
16279   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16280
16281   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16282   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16283   ;;
16284
16285 dgux*)
16286   version_type=linux # correct to gnu/linux during the next big refactor
16287   need_lib_prefix=no
16288   need_version=no
16289   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16290   soname_spec='$libname$release$shared_ext$major'
16291   shlibpath_var=LD_LIBRARY_PATH
16292   ;;
16293
16294 freebsd* | dragonfly*)
16295   # DragonFly does not have aout.  When/if they implement a new
16296   # versioning mechanism, adjust this.
16297   if test -x /usr/bin/objformat; then
16298     objformat=`/usr/bin/objformat`
16299   else
16300     case $host_os in
16301     freebsd[23].*) objformat=aout ;;
16302     *) objformat=elf ;;
16303     esac
16304   fi
16305   version_type=freebsd-$objformat
16306   case $version_type in
16307     freebsd-elf*)
16308       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16309       soname_spec='$libname$release$shared_ext$major'
16310       need_version=no
16311       need_lib_prefix=no
16312       ;;
16313     freebsd-*)
16314       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16315       need_version=yes
16316       ;;
16317   esac
16318   shlibpath_var=LD_LIBRARY_PATH
16319   case $host_os in
16320   freebsd2.*)
16321     shlibpath_overrides_runpath=yes
16322     ;;
16323   freebsd3.[01]* | freebsdelf3.[01]*)
16324     shlibpath_overrides_runpath=yes
16325     hardcode_into_libs=yes
16326     ;;
16327   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16328   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16329     shlibpath_overrides_runpath=no
16330     hardcode_into_libs=yes
16331     ;;
16332   *) # from 4.6 on, and DragonFly
16333     shlibpath_overrides_runpath=yes
16334     hardcode_into_libs=yes
16335     ;;
16336   esac
16337   ;;
16338
16339 haiku*)
16340   version_type=linux # correct to gnu/linux during the next big refactor
16341   need_lib_prefix=no
16342   need_version=no
16343   dynamic_linker="$host_os runtime_loader"
16344   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16345   soname_spec='$libname$release$shared_ext$major'
16346   shlibpath_var=LIBRARY_PATH
16347   shlibpath_overrides_runpath=no
16348   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16349   hardcode_into_libs=yes
16350   ;;
16351
16352 hpux9* | hpux10* | hpux11*)
16353   # Give a soname corresponding to the major version so that dld.sl refuses to
16354   # link against other versions.
16355   version_type=sunos
16356   need_lib_prefix=no
16357   need_version=no
16358   case $host_cpu in
16359   ia64*)
16360     shrext_cmds='.so'
16361     hardcode_into_libs=yes
16362     dynamic_linker="$host_os dld.so"
16363     shlibpath_var=LD_LIBRARY_PATH
16364     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16365     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16366     soname_spec='$libname$release$shared_ext$major'
16367     if test 32 = "$HPUX_IA64_MODE"; then
16368       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16369       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16370     else
16371       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16372       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16373     fi
16374     ;;
16375   hppa*64*)
16376     shrext_cmds='.sl'
16377     hardcode_into_libs=yes
16378     dynamic_linker="$host_os dld.sl"
16379     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16381     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16382     soname_spec='$libname$release$shared_ext$major'
16383     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16385     ;;
16386   *)
16387     shrext_cmds='.sl'
16388     dynamic_linker="$host_os dld.sl"
16389     shlibpath_var=SHLIB_PATH
16390     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16391     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16392     soname_spec='$libname$release$shared_ext$major'
16393     ;;
16394   esac
16395   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16396   postinstall_cmds='chmod 555 $lib'
16397   # or fails outright, so override atomically:
16398   install_override_mode=555
16399   ;;
16400
16401 interix[3-9]*)
16402   version_type=linux # correct to gnu/linux during the next big refactor
16403   need_lib_prefix=no
16404   need_version=no
16405   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16406   soname_spec='$libname$release$shared_ext$major'
16407   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   shlibpath_overrides_runpath=no
16410   hardcode_into_libs=yes
16411   ;;
16412
16413 irix5* | irix6* | nonstopux*)
16414   case $host_os in
16415     nonstopux*) version_type=nonstopux ;;
16416     *)
16417         if test yes = "$lt_cv_prog_gnu_ld"; then
16418                 version_type=linux # correct to gnu/linux during the next big refactor
16419         else
16420                 version_type=irix
16421         fi ;;
16422   esac
16423   need_lib_prefix=no
16424   need_version=no
16425   soname_spec='$libname$release$shared_ext$major'
16426   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16427   case $host_os in
16428   irix5* | nonstopux*)
16429     libsuff= shlibsuff=
16430     ;;
16431   *)
16432     case $LD in # libtool.m4 will add one of these switches to LD
16433     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16434       libsuff= shlibsuff= libmagic=32-bit;;
16435     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16436       libsuff=32 shlibsuff=N32 libmagic=N32;;
16437     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16438       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16439     *) libsuff= shlibsuff= libmagic=never-match;;
16440     esac
16441     ;;
16442   esac
16443   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16444   shlibpath_overrides_runpath=no
16445   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16446   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16447   hardcode_into_libs=yes
16448   ;;
16449
16450 # No shared lib support for Linux oldld, aout, or coff.
16451 linux*oldld* | linux*aout* | linux*coff*)
16452   dynamic_linker=no
16453   ;;
16454
16455 linux*android*)
16456   version_type=none # Android doesn't support versioned libraries.
16457   need_lib_prefix=no
16458   need_version=no
16459   library_names_spec='$libname$release$shared_ext'
16460   soname_spec='$libname$release$shared_ext'
16461   finish_cmds=
16462   shlibpath_var=LD_LIBRARY_PATH
16463   shlibpath_overrides_runpath=yes
16464
16465   # This implies no fast_install, which is unacceptable.
16466   # Some rework will be needed to allow for fast_install
16467   # before this can be enabled.
16468   hardcode_into_libs=yes
16469
16470   dynamic_linker='Android linker'
16471   # Don't embed -rpath directories since the linker doesn't support them.
16472   hardcode_libdir_flag_spec='-L$libdir'
16473   ;;
16474
16475 # This must be glibc/ELF.
16476 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16477   version_type=linux # correct to gnu/linux during the next big refactor
16478   need_lib_prefix=no
16479   need_version=no
16480   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16481   soname_spec='$libname$release$shared_ext$major'
16482   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16483   shlibpath_var=LD_LIBRARY_PATH
16484   shlibpath_overrides_runpath=no
16485
16486   # Some binutils ld are patched to set DT_RUNPATH
16487   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16488   $as_echo_n "(cached) " >&6
16489 else
16490   lt_cv_shlibpath_overrides_runpath=no
16491     save_LDFLAGS=$LDFLAGS
16492     save_libdir=$libdir
16493     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16494          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16495     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h.  */
16497
16498 int
16499 main ()
16500 {
16501
16502   ;
16503   return 0;
16504 }
16505 _ACEOF
16506 if ac_fn_c_try_link "$LINENO"; then :
16507   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16508   lt_cv_shlibpath_overrides_runpath=yes
16509 fi
16510 fi
16511 rm -f core conftest.err conftest.$ac_objext \
16512     conftest$ac_exeext conftest.$ac_ext
16513     LDFLAGS=$save_LDFLAGS
16514     libdir=$save_libdir
16515
16516 fi
16517
16518   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16519
16520   # This implies no fast_install, which is unacceptable.
16521   # Some rework will be needed to allow for fast_install
16522   # before this can be enabled.
16523   hardcode_into_libs=yes
16524
16525   # Ideally, we could use ldconfig to report *all* directores which are
16526   # searched for libraries, however this is still not possible.  Aside from not
16527   # being certain /sbin/ldconfig is available, command
16528   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16529   # even though it is searched at run-time.  Try to do the best guess by
16530   # appending ld.so.conf contents (and includes) to the search path.
16531   if test -f /etc/ld.so.conf; then
16532     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' ' '`
16533     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16534   fi
16535
16536   # We used to test for /lib/ld.so.1 and disable shared libraries on
16537   # powerpc, because MkLinux only supported shared libraries with the
16538   # GNU dynamic linker.  Since this was broken with cross compilers,
16539   # most powerpc-linux boxes support dynamic linking these days and
16540   # people can always --disable-shared, the test was removed, and we
16541   # assume the GNU/Linux dynamic linker is in use.
16542   dynamic_linker='GNU/Linux ld.so'
16543   ;;
16544
16545 netbsd*)
16546   version_type=sunos
16547   need_lib_prefix=no
16548   need_version=no
16549   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16550     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16551     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16552     dynamic_linker='NetBSD (a.out) ld.so'
16553   else
16554     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16555     soname_spec='$libname$release$shared_ext$major'
16556     dynamic_linker='NetBSD ld.elf_so'
16557   fi
16558   shlibpath_var=LD_LIBRARY_PATH
16559   shlibpath_overrides_runpath=yes
16560   hardcode_into_libs=yes
16561   ;;
16562
16563 newsos6)
16564   version_type=linux # correct to gnu/linux during the next big refactor
16565   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16566   shlibpath_var=LD_LIBRARY_PATH
16567   shlibpath_overrides_runpath=yes
16568   ;;
16569
16570 *nto* | *qnx*)
16571   version_type=qnx
16572   need_lib_prefix=no
16573   need_version=no
16574   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16575   soname_spec='$libname$release$shared_ext$major'
16576   shlibpath_var=LD_LIBRARY_PATH
16577   shlibpath_overrides_runpath=no
16578   hardcode_into_libs=yes
16579   dynamic_linker='ldqnx.so'
16580   ;;
16581
16582 openbsd* | bitrig*)
16583   version_type=sunos
16584   sys_lib_dlsearch_path_spec=/usr/lib
16585   need_lib_prefix=no
16586   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16587     need_version=no
16588   else
16589     need_version=yes
16590   fi
16591   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16592   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16593   shlibpath_var=LD_LIBRARY_PATH
16594   shlibpath_overrides_runpath=yes
16595   ;;
16596
16597 os2*)
16598   libname_spec='$name'
16599   version_type=windows
16600   shrext_cmds=.dll
16601   need_version=no
16602   need_lib_prefix=no
16603   # OS/2 can only load a DLL with a base name of 8 characters or less.
16604   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16605     v=$($ECHO $release$versuffix | tr -d .-);
16606     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16607     $ECHO $n$v`$shared_ext'
16608   library_names_spec='${libname}_dll.$libext'
16609   dynamic_linker='OS/2 ld.exe'
16610   shlibpath_var=BEGINLIBPATH
16611   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16612   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16613   postinstall_cmds='base_file=`basename \$file`~
16614     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16615     dldir=$destdir/`dirname \$dlpath`~
16616     test -d \$dldir || mkdir -p \$dldir~
16617     $install_prog $dir/$dlname \$dldir/$dlname~
16618     chmod a+x \$dldir/$dlname~
16619     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16620       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16621     fi'
16622   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16623     dlpath=$dir/\$dldll~
16624     $RM \$dlpath'
16625   ;;
16626
16627 osf3* | osf4* | osf5*)
16628   version_type=osf
16629   need_lib_prefix=no
16630   need_version=no
16631   soname_spec='$libname$release$shared_ext$major'
16632   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16633   shlibpath_var=LD_LIBRARY_PATH
16634   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16635   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16636   ;;
16637
16638 rdos*)
16639   dynamic_linker=no
16640   ;;
16641
16642 solaris*)
16643   version_type=linux # correct to gnu/linux during the next big refactor
16644   need_lib_prefix=no
16645   need_version=no
16646   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16647   soname_spec='$libname$release$shared_ext$major'
16648   shlibpath_var=LD_LIBRARY_PATH
16649   shlibpath_overrides_runpath=yes
16650   hardcode_into_libs=yes
16651   # ldd complains unless libraries are executable
16652   postinstall_cmds='chmod +x $lib'
16653   ;;
16654
16655 sunos4*)
16656   version_type=sunos
16657   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16658   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16659   shlibpath_var=LD_LIBRARY_PATH
16660   shlibpath_overrides_runpath=yes
16661   if test yes = "$with_gnu_ld"; then
16662     need_lib_prefix=no
16663   fi
16664   need_version=yes
16665   ;;
16666
16667 sysv4 | sysv4.3*)
16668   version_type=linux # correct to gnu/linux during the next big refactor
16669   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16670   soname_spec='$libname$release$shared_ext$major'
16671   shlibpath_var=LD_LIBRARY_PATH
16672   case $host_vendor in
16673     sni)
16674       shlibpath_overrides_runpath=no
16675       need_lib_prefix=no
16676       runpath_var=LD_RUN_PATH
16677       ;;
16678     siemens)
16679       need_lib_prefix=no
16680       ;;
16681     motorola)
16682       need_lib_prefix=no
16683       need_version=no
16684       shlibpath_overrides_runpath=no
16685       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16686       ;;
16687   esac
16688   ;;
16689
16690 sysv4*MP*)
16691   if test -d /usr/nec; then
16692     version_type=linux # correct to gnu/linux during the next big refactor
16693     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16694     soname_spec='$libname$shared_ext.$major'
16695     shlibpath_var=LD_LIBRARY_PATH
16696   fi
16697   ;;
16698
16699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16700   version_type=sco
16701   need_lib_prefix=no
16702   need_version=no
16703   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16704   soname_spec='$libname$release$shared_ext$major'
16705   shlibpath_var=LD_LIBRARY_PATH
16706   shlibpath_overrides_runpath=yes
16707   hardcode_into_libs=yes
16708   if test yes = "$with_gnu_ld"; then
16709     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16710   else
16711     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16712     case $host_os in
16713       sco3.2v5*)
16714         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16715         ;;
16716     esac
16717   fi
16718   sys_lib_dlsearch_path_spec='/usr/lib'
16719   ;;
16720
16721 tpf*)
16722   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16723   version_type=linux # correct to gnu/linux during the next big refactor
16724   need_lib_prefix=no
16725   need_version=no
16726   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16727   shlibpath_var=LD_LIBRARY_PATH
16728   shlibpath_overrides_runpath=no
16729   hardcode_into_libs=yes
16730   ;;
16731
16732 uts4*)
16733   version_type=linux # correct to gnu/linux during the next big refactor
16734   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16735   soname_spec='$libname$release$shared_ext$major'
16736   shlibpath_var=LD_LIBRARY_PATH
16737   ;;
16738
16739 *)
16740   dynamic_linker=no
16741   ;;
16742 esac
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16744 $as_echo "$dynamic_linker" >&6; }
16745 test no = "$dynamic_linker" && can_build_shared=no
16746
16747 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16748 if test yes = "$GCC"; then
16749   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16750 fi
16751
16752 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16753   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16754 fi
16755
16756 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16757   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16758 fi
16759
16760 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16761 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16762
16763 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16764 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16765
16766 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16767 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16866 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16867 hardcode_action=
16868 if test -n "$hardcode_libdir_flag_spec" ||
16869    test -n "$runpath_var" ||
16870    test yes = "$hardcode_automatic"; then
16871
16872   # We can hardcode non-existent directories.
16873   if test no != "$hardcode_direct" &&
16874      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16875      # have to relink, otherwise we might link with an installed library
16876      # when we should be linking with a yet-to-be-installed one
16877      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16878      test no != "$hardcode_minus_L"; then
16879     # Linking always hardcodes the temporary library directory.
16880     hardcode_action=relink
16881   else
16882     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16883     hardcode_action=immediate
16884   fi
16885 else
16886   # We cannot hardcode anything, or else we can only hardcode existing
16887   # directories.
16888   hardcode_action=unsupported
16889 fi
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16891 $as_echo "$hardcode_action" >&6; }
16892
16893 if test relink = "$hardcode_action" ||
16894    test yes = "$inherit_rpath"; then
16895   # Fast installation is not supported
16896   enable_fast_install=no
16897 elif test yes = "$shlibpath_overrides_runpath" ||
16898      test no = "$enable_shared"; then
16899   # Fast installation is not necessary
16900   enable_fast_install=needless
16901 fi
16902
16903
16904
16905
16906
16907
16908   if test yes != "$enable_dlopen"; then
16909   enable_dlopen=unknown
16910   enable_dlopen_self=unknown
16911   enable_dlopen_self_static=unknown
16912 else
16913   lt_cv_dlopen=no
16914   lt_cv_dlopen_libs=
16915
16916   case $host_os in
16917   beos*)
16918     lt_cv_dlopen=load_add_on
16919     lt_cv_dlopen_libs=
16920     lt_cv_dlopen_self=yes
16921     ;;
16922
16923   mingw* | pw32* | cegcc*)
16924     lt_cv_dlopen=LoadLibrary
16925     lt_cv_dlopen_libs=
16926     ;;
16927
16928   cygwin*)
16929     lt_cv_dlopen=dlopen
16930     lt_cv_dlopen_libs=
16931     ;;
16932
16933   darwin*)
16934     # if libdl is installed we need to link against it
16935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16937 if ${ac_cv_lib_dl_dlopen+:} false; then :
16938   $as_echo_n "(cached) " >&6
16939 else
16940   ac_check_lib_save_LIBS=$LIBS
16941 LIBS="-ldl  $LIBS"
16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h.  */
16944
16945 /* Override any GCC internal prototype to avoid an error.
16946    Use char because int might match the return type of a GCC
16947    builtin and then its argument prototype would still apply.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 char dlopen ();
16952 int
16953 main ()
16954 {
16955 return dlopen ();
16956   ;
16957   return 0;
16958 }
16959 _ACEOF
16960 if ac_fn_c_try_link "$LINENO"; then :
16961   ac_cv_lib_dl_dlopen=yes
16962 else
16963   ac_cv_lib_dl_dlopen=no
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext \
16966     conftest$ac_exeext conftest.$ac_ext
16967 LIBS=$ac_check_lib_save_LIBS
16968 fi
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16971 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16972   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16973 else
16974
16975     lt_cv_dlopen=dyld
16976     lt_cv_dlopen_libs=
16977     lt_cv_dlopen_self=yes
16978
16979 fi
16980
16981     ;;
16982
16983   tpf*)
16984     # Don't try to run any link tests for TPF.  We know it's impossible
16985     # because TPF is a cross-compiler, and we know how we open DSOs.
16986     lt_cv_dlopen=dlopen
16987     lt_cv_dlopen_libs=
16988     lt_cv_dlopen_self=no
16989     ;;
16990
16991   *)
16992     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16993 if test "x$ac_cv_func_shl_load" = xyes; then :
16994   lt_cv_dlopen=shl_load
16995 else
16996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16997 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16998 if ${ac_cv_lib_dld_shl_load+:} false; then :
16999   $as_echo_n "(cached) " >&6
17000 else
17001   ac_check_lib_save_LIBS=$LIBS
17002 LIBS="-ldld  $LIBS"
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h.  */
17005
17006 /* Override any GCC internal prototype to avoid an error.
17007    Use char because int might match the return type of a GCC
17008    builtin and then its argument prototype would still apply.  */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 char shl_load ();
17013 int
17014 main ()
17015 {
17016 return shl_load ();
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 if ac_fn_c_try_link "$LINENO"; then :
17022   ac_cv_lib_dld_shl_load=yes
17023 else
17024   ac_cv_lib_dld_shl_load=no
17025 fi
17026 rm -f core conftest.err conftest.$ac_objext \
17027     conftest$ac_exeext conftest.$ac_ext
17028 LIBS=$ac_check_lib_save_LIBS
17029 fi
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17031 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17032 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17033   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17034 else
17035   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17036 if test "x$ac_cv_func_dlopen" = xyes; then :
17037   lt_cv_dlopen=dlopen
17038 else
17039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17040 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17041 if ${ac_cv_lib_dl_dlopen+:} false; then :
17042   $as_echo_n "(cached) " >&6
17043 else
17044   ac_check_lib_save_LIBS=$LIBS
17045 LIBS="-ldl  $LIBS"
17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h.  */
17048
17049 /* Override any GCC internal prototype to avoid an error.
17050    Use char because int might match the return type of a GCC
17051    builtin and then its argument prototype would still apply.  */
17052 #ifdef __cplusplus
17053 extern "C"
17054 #endif
17055 char dlopen ();
17056 int
17057 main ()
17058 {
17059 return dlopen ();
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 if ac_fn_c_try_link "$LINENO"; then :
17065   ac_cv_lib_dl_dlopen=yes
17066 else
17067   ac_cv_lib_dl_dlopen=no
17068 fi
17069 rm -f core conftest.err conftest.$ac_objext \
17070     conftest$ac_exeext conftest.$ac_ext
17071 LIBS=$ac_check_lib_save_LIBS
17072 fi
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17074 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17075 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17076   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17077 else
17078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17079 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17080 if ${ac_cv_lib_svld_dlopen+:} false; then :
17081   $as_echo_n "(cached) " >&6
17082 else
17083   ac_check_lib_save_LIBS=$LIBS
17084 LIBS="-lsvld  $LIBS"
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h.  */
17087
17088 /* Override any GCC internal prototype to avoid an error.
17089    Use char because int might match the return type of a GCC
17090    builtin and then its argument prototype would still apply.  */
17091 #ifdef __cplusplus
17092 extern "C"
17093 #endif
17094 char dlopen ();
17095 int
17096 main ()
17097 {
17098 return dlopen ();
17099   ;
17100   return 0;
17101 }
17102 _ACEOF
17103 if ac_fn_c_try_link "$LINENO"; then :
17104   ac_cv_lib_svld_dlopen=yes
17105 else
17106   ac_cv_lib_svld_dlopen=no
17107 fi
17108 rm -f core conftest.err conftest.$ac_objext \
17109     conftest$ac_exeext conftest.$ac_ext
17110 LIBS=$ac_check_lib_save_LIBS
17111 fi
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17113 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17114 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17115   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17116 else
17117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17118 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17119 if ${ac_cv_lib_dld_dld_link+:} false; then :
17120   $as_echo_n "(cached) " >&6
17121 else
17122   ac_check_lib_save_LIBS=$LIBS
17123 LIBS="-ldld  $LIBS"
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h.  */
17126
17127 /* Override any GCC internal prototype to avoid an error.
17128    Use char because int might match the return type of a GCC
17129    builtin and then its argument prototype would still apply.  */
17130 #ifdef __cplusplus
17131 extern "C"
17132 #endif
17133 char dld_link ();
17134 int
17135 main ()
17136 {
17137 return dld_link ();
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 if ac_fn_c_try_link "$LINENO"; then :
17143   ac_cv_lib_dld_dld_link=yes
17144 else
17145   ac_cv_lib_dld_dld_link=no
17146 fi
17147 rm -f core conftest.err conftest.$ac_objext \
17148     conftest$ac_exeext conftest.$ac_ext
17149 LIBS=$ac_check_lib_save_LIBS
17150 fi
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17152 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17153 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17154   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17155 fi
17156
17157
17158 fi
17159
17160
17161 fi
17162
17163
17164 fi
17165
17166
17167 fi
17168
17169
17170 fi
17171
17172     ;;
17173   esac
17174
17175   if test no = "$lt_cv_dlopen"; then
17176     enable_dlopen=no
17177   else
17178     enable_dlopen=yes
17179   fi
17180
17181   case $lt_cv_dlopen in
17182   dlopen)
17183     save_CPPFLAGS=$CPPFLAGS
17184     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17185
17186     save_LDFLAGS=$LDFLAGS
17187     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17188
17189     save_LIBS=$LIBS
17190     LIBS="$lt_cv_dlopen_libs $LIBS"
17191
17192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17193 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17194 if ${lt_cv_dlopen_self+:} false; then :
17195   $as_echo_n "(cached) " >&6
17196 else
17197           if test yes = "$cross_compiling"; then :
17198   lt_cv_dlopen_self=cross
17199 else
17200   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17201   lt_status=$lt_dlunknown
17202   cat > conftest.$ac_ext <<_LT_EOF
17203 #line $LINENO "configure"
17204 #include "confdefs.h"
17205
17206 #if HAVE_DLFCN_H
17207 #include <dlfcn.h>
17208 #endif
17209
17210 #include <stdio.h>
17211
17212 #ifdef RTLD_GLOBAL
17213 #  define LT_DLGLOBAL           RTLD_GLOBAL
17214 #else
17215 #  ifdef DL_GLOBAL
17216 #    define LT_DLGLOBAL         DL_GLOBAL
17217 #  else
17218 #    define LT_DLGLOBAL         0
17219 #  endif
17220 #endif
17221
17222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17223    find out it does not work in some platform. */
17224 #ifndef LT_DLLAZY_OR_NOW
17225 #  ifdef RTLD_LAZY
17226 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17227 #  else
17228 #    ifdef DL_LAZY
17229 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17230 #    else
17231 #      ifdef RTLD_NOW
17232 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17233 #      else
17234 #        ifdef DL_NOW
17235 #          define LT_DLLAZY_OR_NOW      DL_NOW
17236 #        else
17237 #          define LT_DLLAZY_OR_NOW      0
17238 #        endif
17239 #      endif
17240 #    endif
17241 #  endif
17242 #endif
17243
17244 /* When -fvisibility=hidden is used, assume the code has been annotated
17245    correspondingly for the symbols needed.  */
17246 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17247 int fnord () __attribute__((visibility("default")));
17248 #endif
17249
17250 int fnord () { return 42; }
17251 int main ()
17252 {
17253   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17254   int status = $lt_dlunknown;
17255
17256   if (self)
17257     {
17258       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17259       else
17260         {
17261           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17262           else puts (dlerror ());
17263         }
17264       /* dlclose (self); */
17265     }
17266   else
17267     puts (dlerror ());
17268
17269   return status;
17270 }
17271 _LT_EOF
17272   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17273   (eval $ac_link) 2>&5
17274   ac_status=$?
17275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17276   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17277     (./conftest; exit; ) >&5 2>/dev/null
17278     lt_status=$?
17279     case x$lt_status in
17280       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17281       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17282       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17283     esac
17284   else :
17285     # compilation failed
17286     lt_cv_dlopen_self=no
17287   fi
17288 fi
17289 rm -fr conftest*
17290
17291
17292 fi
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17294 $as_echo "$lt_cv_dlopen_self" >&6; }
17295
17296     if test yes = "$lt_cv_dlopen_self"; then
17297       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17298       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17299 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17300 if ${lt_cv_dlopen_self_static+:} false; then :
17301   $as_echo_n "(cached) " >&6
17302 else
17303           if test yes = "$cross_compiling"; then :
17304   lt_cv_dlopen_self_static=cross
17305 else
17306   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17307   lt_status=$lt_dlunknown
17308   cat > conftest.$ac_ext <<_LT_EOF
17309 #line $LINENO "configure"
17310 #include "confdefs.h"
17311
17312 #if HAVE_DLFCN_H
17313 #include <dlfcn.h>
17314 #endif
17315
17316 #include <stdio.h>
17317
17318 #ifdef RTLD_GLOBAL
17319 #  define LT_DLGLOBAL           RTLD_GLOBAL
17320 #else
17321 #  ifdef DL_GLOBAL
17322 #    define LT_DLGLOBAL         DL_GLOBAL
17323 #  else
17324 #    define LT_DLGLOBAL         0
17325 #  endif
17326 #endif
17327
17328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17329    find out it does not work in some platform. */
17330 #ifndef LT_DLLAZY_OR_NOW
17331 #  ifdef RTLD_LAZY
17332 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17333 #  else
17334 #    ifdef DL_LAZY
17335 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17336 #    else
17337 #      ifdef RTLD_NOW
17338 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17339 #      else
17340 #        ifdef DL_NOW
17341 #          define LT_DLLAZY_OR_NOW      DL_NOW
17342 #        else
17343 #          define LT_DLLAZY_OR_NOW      0
17344 #        endif
17345 #      endif
17346 #    endif
17347 #  endif
17348 #endif
17349
17350 /* When -fvisibility=hidden is used, assume the code has been annotated
17351    correspondingly for the symbols needed.  */
17352 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17353 int fnord () __attribute__((visibility("default")));
17354 #endif
17355
17356 int fnord () { return 42; }
17357 int main ()
17358 {
17359   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17360   int status = $lt_dlunknown;
17361
17362   if (self)
17363     {
17364       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17365       else
17366         {
17367           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17368           else puts (dlerror ());
17369         }
17370       /* dlclose (self); */
17371     }
17372   else
17373     puts (dlerror ());
17374
17375   return status;
17376 }
17377 _LT_EOF
17378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17379   (eval $ac_link) 2>&5
17380   ac_status=$?
17381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17382   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17383     (./conftest; exit; ) >&5 2>/dev/null
17384     lt_status=$?
17385     case x$lt_status in
17386       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17387       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17388       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17389     esac
17390   else :
17391     # compilation failed
17392     lt_cv_dlopen_self_static=no
17393   fi
17394 fi
17395 rm -fr conftest*
17396
17397
17398 fi
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17400 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17401     fi
17402
17403     CPPFLAGS=$save_CPPFLAGS
17404     LDFLAGS=$save_LDFLAGS
17405     LIBS=$save_LIBS
17406     ;;
17407   esac
17408
17409   case $lt_cv_dlopen_self in
17410   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17411   *) enable_dlopen_self=unknown ;;
17412   esac
17413
17414   case $lt_cv_dlopen_self_static in
17415   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17416   *) enable_dlopen_self_static=unknown ;;
17417   esac
17418 fi
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436 striplib=
17437 old_striplib=
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17439 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17440 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17441   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17442   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17444 $as_echo "yes" >&6; }
17445 else
17446 # FIXME - insert some real tests, host_os isn't really good enough
17447   case $host_os in
17448   darwin*)
17449     if test -n "$STRIP"; then
17450       striplib="$STRIP -x"
17451       old_striplib="$STRIP -S"
17452       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17453 $as_echo "yes" >&6; }
17454     else
17455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17456 $as_echo "no" >&6; }
17457     fi
17458     ;;
17459   *)
17460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17461 $as_echo "no" >&6; }
17462     ;;
17463   esac
17464 fi
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477   # Report what library types will actually be built
17478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17479 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17481 $as_echo "$can_build_shared" >&6; }
17482
17483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17484 $as_echo_n "checking whether to build shared libraries... " >&6; }
17485   test no = "$can_build_shared" && enable_shared=no
17486
17487   # On AIX, shared libraries and static libraries use the same namespace, and
17488   # are all built from PIC.
17489   case $host_os in
17490   aix3*)
17491     test yes = "$enable_shared" && enable_static=no
17492     if test -n "$RANLIB"; then
17493       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17494       postinstall_cmds='$RANLIB $lib'
17495     fi
17496     ;;
17497
17498   aix[4-9]*)
17499     if test ia64 != "$host_cpu"; then
17500       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17501       yes,aix,yes) ;;                   # shared object as lib.so file only
17502       yes,svr4,*) ;;                    # shared object as lib.so archive member only
17503       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
17504       esac
17505     fi
17506     ;;
17507   esac
17508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17509 $as_echo "$enable_shared" >&6; }
17510
17511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17512 $as_echo_n "checking whether to build static libraries... " >&6; }
17513   # Make sure either enable_shared or enable_static is yes.
17514   test yes = "$enable_shared" || enable_static=yes
17515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17516 $as_echo "$enable_static" >&6; }
17517
17518
17519
17520
17521 fi
17522 ac_ext=c
17523 ac_cpp='$CPP $CPPFLAGS'
17524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17527
17528 CC=$lt_save_CC
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544         ac_config_commands="$ac_config_commands libtool"
17545
17546
17547
17548
17549 # Only expand once:
17550
17551
17552
17553 if test -n "$ac_tool_prefix"; then
17554   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17555 set dummy ${ac_tool_prefix}windres; ac_word=$2
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17557 $as_echo_n "checking for $ac_word... " >&6; }
17558 if ${ac_cv_prog_RC+:} false; then :
17559   $as_echo_n "(cached) " >&6
17560 else
17561   if test -n "$RC"; then
17562   ac_cv_prog_RC="$RC" # Let the user override the test.
17563 else
17564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17565 for as_dir in $PATH
17566 do
17567   IFS=$as_save_IFS
17568   test -z "$as_dir" && as_dir=.
17569     for ac_exec_ext in '' $ac_executable_extensions; do
17570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17571     ac_cv_prog_RC="${ac_tool_prefix}windres"
17572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17573     break 2
17574   fi
17575 done
17576   done
17577 IFS=$as_save_IFS
17578
17579 fi
17580 fi
17581 RC=$ac_cv_prog_RC
17582 if test -n "$RC"; then
17583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17584 $as_echo "$RC" >&6; }
17585 else
17586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17587 $as_echo "no" >&6; }
17588 fi
17589
17590
17591 fi
17592 if test -z "$ac_cv_prog_RC"; then
17593   ac_ct_RC=$RC
17594   # Extract the first word of "windres", so it can be a program name with args.
17595 set dummy windres; ac_word=$2
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17597 $as_echo_n "checking for $ac_word... " >&6; }
17598 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17599   $as_echo_n "(cached) " >&6
17600 else
17601   if test -n "$ac_ct_RC"; then
17602   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17603 else
17604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17605 for as_dir in $PATH
17606 do
17607   IFS=$as_save_IFS
17608   test -z "$as_dir" && as_dir=.
17609     for ac_exec_ext in '' $ac_executable_extensions; do
17610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17611     ac_cv_prog_ac_ct_RC="windres"
17612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17613     break 2
17614   fi
17615 done
17616   done
17617 IFS=$as_save_IFS
17618
17619 fi
17620 fi
17621 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17622 if test -n "$ac_ct_RC"; then
17623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17624 $as_echo "$ac_ct_RC" >&6; }
17625 else
17626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17627 $as_echo "no" >&6; }
17628 fi
17629
17630   if test "x$ac_ct_RC" = x; then
17631     RC=""
17632   else
17633     case $cross_compiling:$ac_tool_warned in
17634 yes:)
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17637 ac_tool_warned=yes ;;
17638 esac
17639     RC=$ac_ct_RC
17640   fi
17641 else
17642   RC="$ac_cv_prog_RC"
17643 fi
17644
17645
17646
17647
17648 # Source file extension for RC test sources.
17649 ac_ext=rc
17650
17651 # Object file extension for compiled RC test sources.
17652 objext=o
17653 objext_RC=$objext
17654
17655 # Code to be used in simple compile tests
17656 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17657
17658 # Code to be used in simple link tests
17659 lt_simple_link_test_code=$lt_simple_compile_test_code
17660
17661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17662
17663
17664
17665
17666
17667
17668 # If no C compiler was specified, use CC.
17669 LTCC=${LTCC-"$CC"}
17670
17671 # If no C compiler flags were specified, use CFLAGS.
17672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17673
17674 # Allow CC to be a program name with arguments.
17675 compiler=$CC
17676
17677
17678 # save warnings/boilerplate of simple test code
17679 ac_outfile=conftest.$ac_objext
17680 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17681 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17682 _lt_compiler_boilerplate=`cat conftest.err`
17683 $RM conftest*
17684
17685 ac_outfile=conftest.$ac_objext
17686 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17687 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17688 _lt_linker_boilerplate=`cat conftest.err`
17689 $RM -r conftest*
17690
17691
17692 # Allow CC to be a program name with arguments.
17693 lt_save_CC=$CC
17694 lt_save_CFLAGS=$CFLAGS
17695 lt_save_GCC=$GCC
17696 GCC=
17697 CC=${RC-"windres"}
17698 CFLAGS=
17699 compiler=$CC
17700 compiler_RC=$CC
17701 func_cc_basename $compiler
17702 cc_basename=$func_cc_basename_result
17703
17704 lt_cv_prog_compiler_c_o_RC=yes
17705
17706 if test -n "$compiler"; then
17707   :
17708
17709
17710
17711 fi
17712
17713 GCC=$lt_save_GCC
17714 ac_ext=c
17715 ac_cpp='$CPP $CPPFLAGS'
17716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17719
17720 CC=$lt_save_CC
17721 CFLAGS=$lt_save_CFLAGS
17722
17723
17724 case "$host_os" in
17725   mingw* | cygwin*) special_makefile_rules=woe32 ;;
17726   os2*) special_makefile_rules=os2 ;;
17727   *) special_makefile_rules=none ;;
17728 esac
17729  if test $special_makefile_rules = woe32; then
17730   WOE32_TRUE=
17731   WOE32_FALSE='#'
17732 else
17733   WOE32_TRUE='#'
17734   WOE32_FALSE=
17735 fi
17736
17737  if test $special_makefile_rules = os2; then
17738   OS2_TRUE=
17739   OS2_FALSE='#'
17740 else
17741   OS2_TRUE='#'
17742   OS2_FALSE=
17743 fi
17744
17745
17746 case "$host_os" in
17747   cygwin*) ac_cv_lib_error_at_line=no ;;
17748 esac
17749
17750
17751
17752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17753 $as_echo_n "checking whether NLS is requested... " >&6; }
17754     # Check whether --enable-nls was given.
17755 if test "${enable_nls+set}" = set; then :
17756   enableval=$enable_nls; USE_NLS=$enableval
17757 else
17758   USE_NLS=yes
17759 fi
17760
17761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17762 $as_echo "$USE_NLS" >&6; }
17763
17764
17765
17766
17767       GETTEXT_MACRO_VERSION=0.19
17768
17769
17770
17771
17772 # Prepare PATH_SEPARATOR.
17773 # The user is always right.
17774 if test "${PATH_SEPARATOR+set}" != set; then
17775   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17776   # contains only /bin. Note that ksh looks also at the FPATH variable,
17777   # so we have to set that as well for the test.
17778   PATH_SEPARATOR=:
17779   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17780     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17781            || PATH_SEPARATOR=';'
17782        }
17783 fi
17784
17785 # Find out how to test for executable files. Don't use a zero-byte file,
17786 # as systems may use methods other than mode bits to determine executability.
17787 cat >conf$$.file <<_ASEOF
17788 #! /bin/sh
17789 exit 0
17790 _ASEOF
17791 chmod +x conf$$.file
17792 if test -x conf$$.file >/dev/null 2>&1; then
17793   ac_executable_p="test -x"
17794 else
17795   ac_executable_p="test -f"
17796 fi
17797 rm -f conf$$.file
17798
17799 # Extract the first word of "msgfmt", so it can be a program name with args.
17800 set dummy msgfmt; ac_word=$2
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17802 $as_echo_n "checking for $ac_word... " >&6; }
17803 if ${ac_cv_path_MSGFMT+:} false; then :
17804   $as_echo_n "(cached) " >&6
17805 else
17806   case "$MSGFMT" in
17807   [\\/]* | ?:[\\/]*)
17808     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17809     ;;
17810   *)
17811     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17812     for ac_dir in $PATH; do
17813       IFS="$ac_save_IFS"
17814       test -z "$ac_dir" && ac_dir=.
17815       for ac_exec_ext in '' $ac_executable_extensions; do
17816         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17817           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17818           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17819      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17820             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17821             break 2
17822           fi
17823         fi
17824       done
17825     done
17826     IFS="$ac_save_IFS"
17827   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17828     ;;
17829 esac
17830 fi
17831 MSGFMT="$ac_cv_path_MSGFMT"
17832 if test "$MSGFMT" != ":"; then
17833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17834 $as_echo "$MSGFMT" >&6; }
17835 else
17836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17837 $as_echo "no" >&6; }
17838 fi
17839
17840   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17841 set dummy gmsgfmt; ac_word=$2
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17843 $as_echo_n "checking for $ac_word... " >&6; }
17844 if ${ac_cv_path_GMSGFMT+:} false; then :
17845   $as_echo_n "(cached) " >&6
17846 else
17847   case $GMSGFMT in
17848   [\\/]* | ?:[\\/]*)
17849   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17850   ;;
17851   *)
17852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17853 for as_dir in $PATH
17854 do
17855   IFS=$as_save_IFS
17856   test -z "$as_dir" && as_dir=.
17857     for ac_exec_ext in '' $ac_executable_extensions; do
17858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17859     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17861     break 2
17862   fi
17863 done
17864   done
17865 IFS=$as_save_IFS
17866
17867   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17868   ;;
17869 esac
17870 fi
17871 GMSGFMT=$ac_cv_path_GMSGFMT
17872 if test -n "$GMSGFMT"; then
17873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17874 $as_echo "$GMSGFMT" >&6; }
17875 else
17876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17877 $as_echo "no" >&6; }
17878 fi
17879
17880
17881
17882     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17883     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
17884     *) MSGFMT_015=$MSGFMT ;;
17885   esac
17886
17887   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17888     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
17889     *) GMSGFMT_015=$GMSGFMT ;;
17890   esac
17891
17892
17893
17894 # Prepare PATH_SEPARATOR.
17895 # The user is always right.
17896 if test "${PATH_SEPARATOR+set}" != set; then
17897   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17898   # contains only /bin. Note that ksh looks also at the FPATH variable,
17899   # so we have to set that as well for the test.
17900   PATH_SEPARATOR=:
17901   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17902     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17903            || PATH_SEPARATOR=';'
17904        }
17905 fi
17906
17907 # Find out how to test for executable files. Don't use a zero-byte file,
17908 # as systems may use methods other than mode bits to determine executability.
17909 cat >conf$$.file <<_ASEOF
17910 #! /bin/sh
17911 exit 0
17912 _ASEOF
17913 chmod +x conf$$.file
17914 if test -x conf$$.file >/dev/null 2>&1; then
17915   ac_executable_p="test -x"
17916 else
17917   ac_executable_p="test -f"
17918 fi
17919 rm -f conf$$.file
17920
17921 # Extract the first word of "xgettext", so it can be a program name with args.
17922 set dummy xgettext; ac_word=$2
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17924 $as_echo_n "checking for $ac_word... " >&6; }
17925 if ${ac_cv_path_XGETTEXT+:} false; then :
17926   $as_echo_n "(cached) " >&6
17927 else
17928   case "$XGETTEXT" in
17929   [\\/]* | ?:[\\/]*)
17930     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17931     ;;
17932   *)
17933     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17934     for ac_dir in $PATH; do
17935       IFS="$ac_save_IFS"
17936       test -z "$ac_dir" && ac_dir=.
17937       for ac_exec_ext in '' $ac_executable_extensions; do
17938         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17939           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17940           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17941      (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
17942             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17943             break 2
17944           fi
17945         fi
17946       done
17947     done
17948     IFS="$ac_save_IFS"
17949   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17950     ;;
17951 esac
17952 fi
17953 XGETTEXT="$ac_cv_path_XGETTEXT"
17954 if test "$XGETTEXT" != ":"; then
17955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17956 $as_echo "$XGETTEXT" >&6; }
17957 else
17958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17959 $as_echo "no" >&6; }
17960 fi
17961
17962     rm -f messages.po
17963
17964     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17965     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
17966     *) XGETTEXT_015=$XGETTEXT ;;
17967   esac
17968
17969
17970
17971 # Prepare PATH_SEPARATOR.
17972 # The user is always right.
17973 if test "${PATH_SEPARATOR+set}" != set; then
17974   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17975   # contains only /bin. Note that ksh looks also at the FPATH variable,
17976   # so we have to set that as well for the test.
17977   PATH_SEPARATOR=:
17978   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17979     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17980            || PATH_SEPARATOR=';'
17981        }
17982 fi
17983
17984 # Find out how to test for executable files. Don't use a zero-byte file,
17985 # as systems may use methods other than mode bits to determine executability.
17986 cat >conf$$.file <<_ASEOF
17987 #! /bin/sh
17988 exit 0
17989 _ASEOF
17990 chmod +x conf$$.file
17991 if test -x conf$$.file >/dev/null 2>&1; then
17992   ac_executable_p="test -x"
17993 else
17994   ac_executable_p="test -f"
17995 fi
17996 rm -f conf$$.file
17997
17998 # Extract the first word of "msgmerge", so it can be a program name with args.
17999 set dummy msgmerge; ac_word=$2
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18001 $as_echo_n "checking for $ac_word... " >&6; }
18002 if ${ac_cv_path_MSGMERGE+:} false; then :
18003   $as_echo_n "(cached) " >&6
18004 else
18005   case "$MSGMERGE" in
18006   [\\/]* | ?:[\\/]*)
18007     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18008     ;;
18009   *)
18010     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18011     for ac_dir in $PATH; do
18012       IFS="$ac_save_IFS"
18013       test -z "$ac_dir" && ac_dir=.
18014       for ac_exec_ext in '' $ac_executable_extensions; do
18015         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18016           echo "$as_me: trying $ac_dir/$ac_word..." >&5
18017           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
18018             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18019             break 2
18020           fi
18021         fi
18022       done
18023     done
18024     IFS="$ac_save_IFS"
18025   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18026     ;;
18027 esac
18028 fi
18029 MSGMERGE="$ac_cv_path_MSGMERGE"
18030 if test "$MSGMERGE" != ":"; then
18031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18032 $as_echo "$MSGMERGE" >&6; }
18033 else
18034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18035 $as_echo "no" >&6; }
18036 fi
18037
18038
18039         test -n "$localedir" || localedir='${datadir}/locale'
18040
18041
18042     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
18043
18044
18045   ac_config_commands="$ac_config_commands po-directories"
18046
18047
18048
18049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18050 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18051 if ${ac_cv_gnu_library_2+:} false; then :
18052   $as_echo_n "(cached) " >&6
18053 else
18054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h.  */
18056
18057 #include <features.h>
18058 #ifdef __GNU_LIBRARY__
18059  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
18060   Lucky GNU user
18061  #endif
18062 #endif
18063
18064 _ACEOF
18065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18066   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18067   ac_cv_gnu_library_2=yes
18068 else
18069   ac_cv_gnu_library_2=no
18070 fi
18071 rm -f conftest*
18072
18073
18074
18075 fi
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18077 $as_echo "$ac_cv_gnu_library_2" >&6; }
18078
18079     GLIBC2="$ac_cv_gnu_library_2"
18080
18081
18082
18083
18084   CFLAG_VISIBILITY=
18085   HAVE_VISIBILITY=0
18086   if test -n "$GCC"; then
18087                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
18088 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
18089     if ${gl_cv_cc_vis_werror+:} false; then :
18090   $as_echo_n "(cached) " >&6
18091 else
18092
18093       gl_save_CFLAGS="$CFLAGS"
18094       CFLAGS="$CFLAGS -Werror"
18095       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h.  */
18097
18098 int
18099 main ()
18100 {
18101
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 if ac_fn_c_try_compile "$LINENO"; then :
18107   gl_cv_cc_vis_werror=yes
18108 else
18109   gl_cv_cc_vis_werror=no
18110 fi
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112       CFLAGS="$gl_save_CFLAGS"
18113 fi
18114
18115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
18116 $as_echo "$gl_cv_cc_vis_werror" >&6; }
18117         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
18118 $as_echo_n "checking for simple visibility declarations... " >&6; }
18119     if ${gl_cv_cc_visibility+:} false; then :
18120   $as_echo_n "(cached) " >&6
18121 else
18122
18123       gl_save_CFLAGS="$CFLAGS"
18124       CFLAGS="$CFLAGS -fvisibility=hidden"
18125                                     if test $gl_cv_cc_vis_werror = yes; then
18126         CFLAGS="$CFLAGS -Werror"
18127       fi
18128       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h.  */
18130 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
18131              extern __attribute__((__visibility__("default"))) int exportedvar;
18132              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
18133              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
18134              void dummyfunc (void) {}
18135
18136 int
18137 main ()
18138 {
18139
18140   ;
18141   return 0;
18142 }
18143 _ACEOF
18144 if ac_fn_c_try_compile "$LINENO"; then :
18145   gl_cv_cc_visibility=yes
18146 else
18147   gl_cv_cc_visibility=no
18148 fi
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150       CFLAGS="$gl_save_CFLAGS"
18151 fi
18152
18153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
18154 $as_echo "$gl_cv_cc_visibility" >&6; }
18155     if test $gl_cv_cc_visibility = yes; then
18156       CFLAG_VISIBILITY="-fvisibility=hidden"
18157       HAVE_VISIBILITY=1
18158     fi
18159   fi
18160
18161
18162
18163 cat >>confdefs.h <<_ACEOF
18164 #define HAVE_VISIBILITY $HAVE_VISIBILITY
18165 _ACEOF
18166
18167
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18169 $as_echo_n "checking for inline... " >&6; }
18170 if ${ac_cv_c_inline+:} false; then :
18171   $as_echo_n "(cached) " >&6
18172 else
18173   ac_cv_c_inline=no
18174 for ac_kw in inline __inline__ __inline; do
18175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h.  */
18177 #ifndef __cplusplus
18178 typedef int foo_t;
18179 static $ac_kw foo_t static_foo () {return 0; }
18180 $ac_kw foo_t foo () {return 0; }
18181 #endif
18182
18183 _ACEOF
18184 if ac_fn_c_try_compile "$LINENO"; then :
18185   ac_cv_c_inline=$ac_kw
18186 fi
18187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188   test "$ac_cv_c_inline" != no && break
18189 done
18190
18191 fi
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18193 $as_echo "$ac_cv_c_inline" >&6; }
18194
18195 case $ac_cv_c_inline in
18196   inline | yes) ;;
18197   *)
18198     case $ac_cv_c_inline in
18199       no) ac_val=;;
18200       *) ac_val=$ac_cv_c_inline;;
18201     esac
18202     cat >>confdefs.h <<_ACEOF
18203 #ifndef __cplusplus
18204 #define inline $ac_val
18205 #endif
18206 _ACEOF
18207     ;;
18208 esac
18209
18210 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18211 if test "x$ac_cv_type_size_t" = xyes; then :
18212
18213 else
18214
18215 cat >>confdefs.h <<_ACEOF
18216 #define size_t unsigned int
18217 _ACEOF
18218
18219 fi
18220
18221
18222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18223 $as_echo_n "checking for stdint.h... " >&6; }
18224 if ${gl_cv_header_stdint_h+:} false; then :
18225   $as_echo_n "(cached) " >&6
18226 else
18227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228 /* end confdefs.h.  */
18229 #include <sys/types.h>
18230             #include <stdint.h>
18231 int
18232 main ()
18233 {
18234 uintmax_t i = (uintmax_t) -1; return !i;
18235   ;
18236   return 0;
18237 }
18238 _ACEOF
18239 if ac_fn_c_try_compile "$LINENO"; then :
18240   gl_cv_header_stdint_h=yes
18241 else
18242   gl_cv_header_stdint_h=no
18243 fi
18244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18245 fi
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18247 $as_echo "$gl_cv_header_stdint_h" >&6; }
18248   if test $gl_cv_header_stdint_h = yes; then
18249
18250 cat >>confdefs.h <<_ACEOF
18251 #define HAVE_STDINT_H_WITH_UINTMAX 1
18252 _ACEOF
18253
18254   fi
18255
18256 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18257 # for constant arguments.  Useless!
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18259 $as_echo_n "checking for working alloca.h... " >&6; }
18260 if ${ac_cv_working_alloca_h+:} false; then :
18261   $as_echo_n "(cached) " >&6
18262 else
18263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h.  */
18265 #include <alloca.h>
18266 int
18267 main ()
18268 {
18269 char *p = (char *) alloca (2 * sizeof (int));
18270                           if (p) return 0;
18271   ;
18272   return 0;
18273 }
18274 _ACEOF
18275 if ac_fn_c_try_link "$LINENO"; then :
18276   ac_cv_working_alloca_h=yes
18277 else
18278   ac_cv_working_alloca_h=no
18279 fi
18280 rm -f core conftest.err conftest.$ac_objext \
18281     conftest$ac_exeext conftest.$ac_ext
18282 fi
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18284 $as_echo "$ac_cv_working_alloca_h" >&6; }
18285 if test $ac_cv_working_alloca_h = yes; then
18286
18287 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18288
18289 fi
18290
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18292 $as_echo_n "checking for alloca... " >&6; }
18293 if ${ac_cv_func_alloca_works+:} false; then :
18294   $as_echo_n "(cached) " >&6
18295 else
18296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h.  */
18298 #ifdef __GNUC__
18299 # define alloca __builtin_alloca
18300 #else
18301 # ifdef _MSC_VER
18302 #  include <malloc.h>
18303 #  define alloca _alloca
18304 # else
18305 #  ifdef HAVE_ALLOCA_H
18306 #   include <alloca.h>
18307 #  else
18308 #   ifdef _AIX
18309  #pragma alloca
18310 #   else
18311 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18312 void *alloca (size_t);
18313 #    endif
18314 #   endif
18315 #  endif
18316 # endif
18317 #endif
18318
18319 int
18320 main ()
18321 {
18322 char *p = (char *) alloca (1);
18323                                     if (p) return 0;
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 if ac_fn_c_try_link "$LINENO"; then :
18329   ac_cv_func_alloca_works=yes
18330 else
18331   ac_cv_func_alloca_works=no
18332 fi
18333 rm -f core conftest.err conftest.$ac_objext \
18334     conftest$ac_exeext conftest.$ac_ext
18335 fi
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18337 $as_echo "$ac_cv_func_alloca_works" >&6; }
18338
18339 if test $ac_cv_func_alloca_works = yes; then
18340
18341 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18342
18343 else
18344   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18345 # that cause trouble.  Some versions do not even contain alloca or
18346 # contain a buggy version.  If you still want to use their alloca,
18347 # use ar to extract alloca.o from them instead of compiling alloca.c.
18348
18349 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18350
18351 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18352
18353
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18355 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18356 if ${ac_cv_os_cray+:} false; then :
18357   $as_echo_n "(cached) " >&6
18358 else
18359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h.  */
18361 #if defined CRAY && ! defined CRAY2
18362 webecray
18363 #else
18364 wenotbecray
18365 #endif
18366
18367 _ACEOF
18368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18369   $EGREP "webecray" >/dev/null 2>&1; then :
18370   ac_cv_os_cray=yes
18371 else
18372   ac_cv_os_cray=no
18373 fi
18374 rm -f conftest*
18375
18376 fi
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18378 $as_echo "$ac_cv_os_cray" >&6; }
18379 if test $ac_cv_os_cray = yes; then
18380   for ac_func in _getb67 GETB67 getb67; do
18381     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18383 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18384
18385 cat >>confdefs.h <<_ACEOF
18386 #define CRAY_STACKSEG_END $ac_func
18387 _ACEOF
18388
18389     break
18390 fi
18391
18392   done
18393 fi
18394
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18396 $as_echo_n "checking stack direction for C alloca... " >&6; }
18397 if ${ac_cv_c_stack_direction+:} false; then :
18398   $as_echo_n "(cached) " >&6
18399 else
18400   if test "$cross_compiling" = yes; then :
18401   ac_cv_c_stack_direction=0
18402 else
18403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h.  */
18405 $ac_includes_default
18406 int
18407 find_stack_direction (int *addr, int depth)
18408 {
18409   int dir, dummy = 0;
18410   if (! addr)
18411     addr = &dummy;
18412   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18413   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18414   return dir + dummy;
18415 }
18416
18417 int
18418 main (int argc, char **argv)
18419 {
18420   return find_stack_direction (0, argc + !argv + 20) < 0;
18421 }
18422 _ACEOF
18423 if ac_fn_c_try_run "$LINENO"; then :
18424   ac_cv_c_stack_direction=1
18425 else
18426   ac_cv_c_stack_direction=-1
18427 fi
18428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18429   conftest.$ac_objext conftest.beam conftest.$ac_ext
18430 fi
18431
18432 fi
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18434 $as_echo "$ac_cv_c_stack_direction" >&6; }
18435 cat >>confdefs.h <<_ACEOF
18436 #define STACK_DIRECTION $ac_cv_c_stack_direction
18437 _ACEOF
18438
18439
18440 fi
18441
18442
18443
18444
18445   for ac_header in $ac_header_list
18446 do :
18447   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18448 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18449 "
18450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18451   cat >>confdefs.h <<_ACEOF
18452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18453 _ACEOF
18454
18455 fi
18456
18457 done
18458
18459
18460
18461
18462
18463
18464
18465
18466 for ac_func in getpagesize
18467 do :
18468   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18469 if test "x$ac_cv_func_getpagesize" = xyes; then :
18470   cat >>confdefs.h <<_ACEOF
18471 #define HAVE_GETPAGESIZE 1
18472 _ACEOF
18473
18474 fi
18475 done
18476
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18478 $as_echo_n "checking for working mmap... " >&6; }
18479 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18480   $as_echo_n "(cached) " >&6
18481 else
18482   if test "$cross_compiling" = yes; then :
18483   ac_cv_func_mmap_fixed_mapped=no
18484 else
18485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h.  */
18487 $ac_includes_default
18488 /* malloc might have been renamed as rpl_malloc. */
18489 #undef malloc
18490
18491 /* Thanks to Mike Haertel and Jim Avera for this test.
18492    Here is a matrix of mmap possibilities:
18493         mmap private not fixed
18494         mmap private fixed at somewhere currently unmapped
18495         mmap private fixed at somewhere already mapped
18496         mmap shared not fixed
18497         mmap shared fixed at somewhere currently unmapped
18498         mmap shared fixed at somewhere already mapped
18499    For private mappings, we should verify that changes cannot be read()
18500    back from the file, nor mmap's back from the file at a different
18501    address.  (There have been systems where private was not correctly
18502    implemented like the infamous i386 svr4.0, and systems where the
18503    VM page cache was not coherent with the file system buffer cache
18504    like early versions of FreeBSD and possibly contemporary NetBSD.)
18505    For shared mappings, we should conversely verify that changes get
18506    propagated back to all the places they're supposed to be.
18507
18508    Grep wants private fixed already mapped.
18509    The main things grep needs to know about mmap are:
18510    * does it exist and is it safe to write into the mmap'd area
18511    * how to use it (BSD variants)  */
18512
18513 #include <fcntl.h>
18514 #include <sys/mman.h>
18515
18516 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18517 char *malloc ();
18518 #endif
18519
18520 /* This mess was copied from the GNU getpagesize.h.  */
18521 #ifndef HAVE_GETPAGESIZE
18522 # ifdef _SC_PAGESIZE
18523 #  define getpagesize() sysconf(_SC_PAGESIZE)
18524 # else /* no _SC_PAGESIZE */
18525 #  ifdef HAVE_SYS_PARAM_H
18526 #   include <sys/param.h>
18527 #   ifdef EXEC_PAGESIZE
18528 #    define getpagesize() EXEC_PAGESIZE
18529 #   else /* no EXEC_PAGESIZE */
18530 #    ifdef NBPG
18531 #     define getpagesize() NBPG * CLSIZE
18532 #     ifndef CLSIZE
18533 #      define CLSIZE 1
18534 #     endif /* no CLSIZE */
18535 #    else /* no NBPG */
18536 #     ifdef NBPC
18537 #      define getpagesize() NBPC
18538 #     else /* no NBPC */
18539 #      ifdef PAGESIZE
18540 #       define getpagesize() PAGESIZE
18541 #      endif /* PAGESIZE */
18542 #     endif /* no NBPC */
18543 #    endif /* no NBPG */
18544 #   endif /* no EXEC_PAGESIZE */
18545 #  else /* no HAVE_SYS_PARAM_H */
18546 #   define getpagesize() 8192   /* punt totally */
18547 #  endif /* no HAVE_SYS_PARAM_H */
18548 # endif /* no _SC_PAGESIZE */
18549
18550 #endif /* no HAVE_GETPAGESIZE */
18551
18552 int
18553 main ()
18554 {
18555   char *data, *data2, *data3;
18556   const char *cdata2;
18557   int i, pagesize;
18558   int fd, fd2;
18559
18560   pagesize = getpagesize ();
18561
18562   /* First, make a file with some known garbage in it. */
18563   data = (char *) malloc (pagesize);
18564   if (!data)
18565     return 1;
18566   for (i = 0; i < pagesize; ++i)
18567     *(data + i) = rand ();
18568   umask (0);
18569   fd = creat ("conftest.mmap", 0600);
18570   if (fd < 0)
18571     return 2;
18572   if (write (fd, data, pagesize) != pagesize)
18573     return 3;
18574   close (fd);
18575
18576   /* Next, check that the tail of a page is zero-filled.  File must have
18577      non-zero length, otherwise we risk SIGBUS for entire page.  */
18578   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18579   if (fd2 < 0)
18580     return 4;
18581   cdata2 = "";
18582   if (write (fd2, cdata2, 1) != 1)
18583     return 5;
18584   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18585   if (data2 == MAP_FAILED)
18586     return 6;
18587   for (i = 0; i < pagesize; ++i)
18588     if (*(data2 + i))
18589       return 7;
18590   close (fd2);
18591   if (munmap (data2, pagesize))
18592     return 8;
18593
18594   /* Next, try to mmap the file at a fixed address which already has
18595      something else allocated at it.  If we can, also make sure that
18596      we see the same garbage.  */
18597   fd = open ("conftest.mmap", O_RDWR);
18598   if (fd < 0)
18599     return 9;
18600   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18601                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18602     return 10;
18603   for (i = 0; i < pagesize; ++i)
18604     if (*(data + i) != *(data2 + i))
18605       return 11;
18606
18607   /* Finally, make sure that changes to the mapped area do not
18608      percolate back to the file as seen by read().  (This is a bug on
18609      some variants of i386 svr4.0.)  */
18610   for (i = 0; i < pagesize; ++i)
18611     *(data2 + i) = *(data2 + i) + 1;
18612   data3 = (char *) malloc (pagesize);
18613   if (!data3)
18614     return 12;
18615   if (read (fd, data3, pagesize) != pagesize)
18616     return 13;
18617   for (i = 0; i < pagesize; ++i)
18618     if (*(data + i) != *(data3 + i))
18619       return 14;
18620   close (fd);
18621   return 0;
18622 }
18623 _ACEOF
18624 if ac_fn_c_try_run "$LINENO"; then :
18625   ac_cv_func_mmap_fixed_mapped=yes
18626 else
18627   ac_cv_func_mmap_fixed_mapped=no
18628 fi
18629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18630   conftest.$ac_objext conftest.beam conftest.$ac_ext
18631 fi
18632
18633 fi
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18635 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18636 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18637
18638 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18639
18640 fi
18641 rm -f conftest.mmap conftest.txt
18642
18643
18644
18645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18646 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18647 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
18648   $as_echo_n "(cached) " >&6
18649 else
18650
18651       gt_cv_int_divbyzero_sigfpe=
18652       case "$host_os" in
18653         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
18654           # On Mac OS X 10.2 or newer, just assume the same as when cross-
18655           # compiling. If we were to perform the real test, 1 Crash Report
18656           # dialog window would pop up.
18657           case "$host_cpu" in
18658             i[34567]86 | x86_64)
18659               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
18660           esac
18661           ;;
18662       esac
18663       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
18664         if test "$cross_compiling" = yes; then :
18665
18666             # Guess based on the CPU.
18667             case "$host_cpu" in
18668               alpha* | i[34567]86 | x86_64 | m68k | s390*)
18669                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18670               *)
18671                 gt_cv_int_divbyzero_sigfpe="guessing no";;
18672             esac
18673
18674 else
18675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h.  */
18677
18678 #include <stdlib.h>
18679 #include <signal.h>
18680
18681 static void
18682 sigfpe_handler (int sig)
18683 {
18684   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18685   _exit (sig != SIGFPE);
18686 }
18687
18688 int x = 1;
18689 int y = 0;
18690 int z;
18691 int nan;
18692
18693 int main ()
18694 {
18695   signal (SIGFPE, sigfpe_handler);
18696 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18697 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18698   signal (SIGTRAP, sigfpe_handler);
18699 #endif
18700 /* Linux/SPARC yields signal SIGILL.  */
18701 #if defined (__sparc__) && defined (__linux__)
18702   signal (SIGILL, sigfpe_handler);
18703 #endif
18704
18705   z = x / y;
18706   nan = y / y;
18707   exit (2);
18708 }
18709
18710 _ACEOF
18711 if ac_fn_c_try_run "$LINENO"; then :
18712   gt_cv_int_divbyzero_sigfpe=yes
18713 else
18714   gt_cv_int_divbyzero_sigfpe=no
18715 fi
18716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18717   conftest.$ac_objext conftest.beam conftest.$ac_ext
18718 fi
18719
18720       fi
18721
18722 fi
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18724 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18725   case "$gt_cv_int_divbyzero_sigfpe" in
18726     *yes) value=1;;
18727     *) value=0;;
18728   esac
18729
18730 cat >>confdefs.h <<_ACEOF
18731 #define INTDIV0_RAISES_SIGFPE $value
18732 _ACEOF
18733
18734
18735
18736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18737 $as_echo_n "checking for inttypes.h... " >&6; }
18738 if ${gl_cv_header_inttypes_h+:} false; then :
18739   $as_echo_n "(cached) " >&6
18740 else
18741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h.  */
18743
18744 #include <sys/types.h>
18745 #include <inttypes.h>
18746
18747 int
18748 main ()
18749 {
18750 uintmax_t i = (uintmax_t) -1; return !i;
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 if ac_fn_c_try_compile "$LINENO"; then :
18756   gl_cv_header_inttypes_h=yes
18757 else
18758   gl_cv_header_inttypes_h=no
18759 fi
18760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18761 fi
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18763 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18764   if test $gl_cv_header_inttypes_h = yes; then
18765
18766 cat >>confdefs.h <<_ACEOF
18767 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18768 _ACEOF
18769
18770   fi
18771
18772
18773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18774 $as_echo_n "checking for unsigned long long int... " >&6; }
18775 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18776   $as_echo_n "(cached) " >&6
18777 else
18778   ac_cv_type_unsigned_long_long_int=yes
18779      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18780        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h.  */
18782
18783   /* For now, do not test the preprocessor; as of 2007 there are too many
18784          implementations with broken preprocessors.  Perhaps this can
18785          be revisited in 2012.  In the meantime, code should not expect
18786          #if to work with literals wider than 32 bits.  */
18787       /* Test literals.  */
18788       long long int ll = 9223372036854775807ll;
18789       long long int nll = -9223372036854775807LL;
18790       unsigned long long int ull = 18446744073709551615ULL;
18791       /* Test constant expressions.   */
18792       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18793                      ? 1 : -1)];
18794       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18795                      ? 1 : -1)];
18796       int i = 63;
18797 int
18798 main ()
18799 {
18800 /* Test availability of runtime routines for shift and division.  */
18801       long long int llmax = 9223372036854775807ll;
18802       unsigned long long int ullmax = 18446744073709551615ull;
18803       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18804               | (llmax / ll) | (llmax % ll)
18805               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18806               | (ullmax / ull) | (ullmax % ull));
18807   ;
18808   return 0;
18809 }
18810
18811 _ACEOF
18812 if ac_fn_c_try_link "$LINENO"; then :
18813
18814 else
18815   ac_cv_type_unsigned_long_long_int=no
18816 fi
18817 rm -f core conftest.err conftest.$ac_objext \
18818     conftest$ac_exeext conftest.$ac_ext
18819      fi
18820 fi
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18822 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18823   if test $ac_cv_type_unsigned_long_long_int = yes; then
18824
18825 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18826
18827   fi
18828
18829
18830
18831
18832   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
18833
18834     test $ac_cv_type_unsigned_long_long_int = yes \
18835       && ac_type='unsigned long long' \
18836       || ac_type='unsigned long'
18837
18838 cat >>confdefs.h <<_ACEOF
18839 #define uintmax_t $ac_type
18840 _ACEOF
18841
18842   else
18843
18844 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
18845
18846   fi
18847
18848
18849   for ac_header in inttypes.h
18850 do :
18851   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18852 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18853   cat >>confdefs.h <<_ACEOF
18854 #define HAVE_INTTYPES_H 1
18855 _ACEOF
18856
18857 fi
18858
18859 done
18860
18861   if test $ac_cv_header_inttypes_h = yes; then
18862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
18863 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18864 if ${gt_cv_inttypes_pri_broken+:} false; then :
18865   $as_echo_n "(cached) " >&6
18866 else
18867
18868         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869 /* end confdefs.h.  */
18870
18871 #include <inttypes.h>
18872 #ifdef PRId32
18873 char *p = PRId32;
18874 #endif
18875
18876 int
18877 main ()
18878 {
18879
18880   ;
18881   return 0;
18882 }
18883 _ACEOF
18884 if ac_fn_c_try_compile "$LINENO"; then :
18885   gt_cv_inttypes_pri_broken=no
18886 else
18887   gt_cv_inttypes_pri_broken=yes
18888 fi
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890
18891 fi
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
18893 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18894   fi
18895   if test "$gt_cv_inttypes_pri_broken" = yes; then
18896
18897 cat >>confdefs.h <<_ACEOF
18898 #define PRI_MACROS_BROKEN 1
18899 _ACEOF
18900
18901     PRI_MACROS_BROKEN=1
18902   else
18903     PRI_MACROS_BROKEN=0
18904   fi
18905
18906
18907
18908       if test "X$prefix" = "XNONE"; then
18909     acl_final_prefix="$ac_default_prefix"
18910   else
18911     acl_final_prefix="$prefix"
18912   fi
18913   if test "X$exec_prefix" = "XNONE"; then
18914     acl_final_exec_prefix='${prefix}'
18915   else
18916     acl_final_exec_prefix="$exec_prefix"
18917   fi
18918   acl_save_prefix="$prefix"
18919   prefix="$acl_final_prefix"
18920   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18921   prefix="$acl_save_prefix"
18922
18923
18924
18925 # Check whether --with-gnu-ld was given.
18926 if test "${with_gnu_ld+set}" = set; then :
18927   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18928 else
18929   with_gnu_ld=no
18930 fi
18931
18932 # Prepare PATH_SEPARATOR.
18933 # The user is always right.
18934 if test "${PATH_SEPARATOR+set}" != set; then
18935   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18936   # contains only /bin. Note that ksh looks also at the FPATH variable,
18937   # so we have to set that as well for the test.
18938   PATH_SEPARATOR=:
18939   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18940     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18941            || PATH_SEPARATOR=';'
18942        }
18943 fi
18944
18945 ac_prog=ld
18946 if test "$GCC" = yes; then
18947   # Check if gcc -print-prog-name=ld gives a path.
18948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18949 $as_echo_n "checking for ld used by $CC... " >&6; }
18950   case $host in
18951   *-*-mingw*)
18952     # gcc leaves a trailing carriage return which upsets mingw
18953     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18954   *)
18955     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18956   esac
18957   case $ac_prog in
18958     # Accept absolute paths.
18959     [\\/]* | ?:[\\/]*)
18960       re_direlt='/[^/][^/]*/\.\./'
18961       # Canonicalize the pathname of ld
18962       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
18963       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
18964         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18965       done
18966       test -z "$LD" && LD="$ac_prog"
18967       ;;
18968   "")
18969     # If it fails, then pretend we aren't using GCC.
18970     ac_prog=ld
18971     ;;
18972   *)
18973     # If it is relative, then search for the first ld in PATH.
18974     with_gnu_ld=unknown
18975     ;;
18976   esac
18977 elif test "$with_gnu_ld" = yes; then
18978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18979 $as_echo_n "checking for GNU ld... " >&6; }
18980 else
18981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18982 $as_echo_n "checking for non-GNU ld... " >&6; }
18983 fi
18984 if ${acl_cv_path_LD+:} false; then :
18985   $as_echo_n "(cached) " >&6
18986 else
18987   if test -z "$LD"; then
18988   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18989   for ac_dir in $PATH; do
18990     IFS="$acl_save_ifs"
18991     test -z "$ac_dir" && ac_dir=.
18992     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18993       acl_cv_path_LD="$ac_dir/$ac_prog"
18994       # Check to see if the program is GNU ld.  I'd rather use --version,
18995       # but apparently some variants of GNU ld only accept -v.
18996       # Break only if it was the GNU/non-GNU ld that we prefer.
18997       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18998       *GNU* | *'with BFD'*)
18999         test "$with_gnu_ld" != no && break
19000         ;;
19001       *)
19002         test "$with_gnu_ld" != yes && break
19003         ;;
19004       esac
19005     fi
19006   done
19007   IFS="$acl_save_ifs"
19008 else
19009   acl_cv_path_LD="$LD" # Let the user override the test with a path.
19010 fi
19011 fi
19012
19013 LD="$acl_cv_path_LD"
19014 if test -n "$LD"; then
19015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19016 $as_echo "$LD" >&6; }
19017 else
19018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19019 $as_echo "no" >&6; }
19020 fi
19021 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19023 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19024 if ${acl_cv_prog_gnu_ld+:} false; then :
19025   $as_echo_n "(cached) " >&6
19026 else
19027   # I'd rather use --version here, but apparently some GNU lds only accept -v.
19028 case `$LD -v 2>&1 </dev/null` in
19029 *GNU* | *'with BFD'*)
19030   acl_cv_prog_gnu_ld=yes
19031   ;;
19032 *)
19033   acl_cv_prog_gnu_ld=no
19034   ;;
19035 esac
19036 fi
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19038 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19039 with_gnu_ld=$acl_cv_prog_gnu_ld
19040
19041
19042
19043
19044                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19045 $as_echo_n "checking for shared library run path origin... " >&6; }
19046 if ${acl_cv_rpath+:} false; then :
19047   $as_echo_n "(cached) " >&6
19048 else
19049
19050     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19051     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19052     . ./conftest.sh
19053     rm -f ./conftest.sh
19054     acl_cv_rpath=done
19055
19056 fi
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19058 $as_echo "$acl_cv_rpath" >&6; }
19059   wl="$acl_cv_wl"
19060   acl_libext="$acl_cv_libext"
19061   acl_shlibext="$acl_cv_shlibext"
19062   acl_libname_spec="$acl_cv_libname_spec"
19063   acl_library_names_spec="$acl_cv_library_names_spec"
19064   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19065   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19066   acl_hardcode_direct="$acl_cv_hardcode_direct"
19067   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
19068     # Check whether --enable-rpath was given.
19069 if test "${enable_rpath+set}" = set; then :
19070   enableval=$enable_rpath; :
19071 else
19072   enable_rpath=yes
19073 fi
19074
19075
19076
19077
19078   acl_libdirstem=lib
19079   acl_libdirstem2=
19080   case "$host_os" in
19081     solaris*)
19082                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
19083 $as_echo_n "checking for 64-bit host... " >&6; }
19084 if ${gl_cv_solaris_64bit+:} false; then :
19085   $as_echo_n "(cached) " >&6
19086 else
19087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h.  */
19089
19090 #ifdef _LP64
19091 sixtyfour bits
19092 #endif
19093
19094 _ACEOF
19095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19096   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
19097   gl_cv_solaris_64bit=yes
19098 else
19099   gl_cv_solaris_64bit=no
19100 fi
19101 rm -f conftest*
19102
19103
19104 fi
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
19106 $as_echo "$gl_cv_solaris_64bit" >&6; }
19107       if test $gl_cv_solaris_64bit = yes; then
19108         acl_libdirstem=lib/64
19109         case "$host_cpu" in
19110           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
19111           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
19112         esac
19113       fi
19114       ;;
19115     *)
19116       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19117       if test -n "$searchpath"; then
19118         acl_save_IFS="${IFS=    }"; IFS=":"
19119         for searchdir in $searchpath; do
19120           if test -d "$searchdir"; then
19121             case "$searchdir" in
19122               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
19123               */../ | */.. )
19124                 # Better ignore directories of this form. They are misleading.
19125                 ;;
19126               *) searchdir=`cd "$searchdir" && pwd`
19127                  case "$searchdir" in
19128                    */lib64 ) acl_libdirstem=lib64 ;;
19129                  esac ;;
19130             esac
19131           fi
19132         done
19133         IFS="$acl_save_IFS"
19134       fi
19135       ;;
19136   esac
19137   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
19138
19139
19140
19141   gl_threads_api=none
19142   LIBTHREAD=
19143   LTLIBTHREAD=
19144   LIBMULTITHREAD=
19145   LTLIBMULTITHREAD=
19146   if test "$gl_use_threads" != no; then
19147         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
19148 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
19149 if ${gl_cv_have_weak+:} false; then :
19150   $as_echo_n "(cached) " >&6
19151 else
19152   gl_cv_have_weak=no
19153               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h.  */
19155 extern void xyzzy ();
19156 #pragma weak xyzzy
19157 int
19158 main ()
19159 {
19160 xyzzy();
19161   ;
19162   return 0;
19163 }
19164 _ACEOF
19165 if ac_fn_c_try_link "$LINENO"; then :
19166   gl_cv_have_weak=maybe
19167 fi
19168 rm -f core conftest.err conftest.$ac_objext \
19169     conftest$ac_exeext conftest.$ac_ext
19170        if test $gl_cv_have_weak = maybe; then
19171                            if test "$cross_compiling" = yes; then :
19172                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19173 /* end confdefs.h.  */
19174 #ifdef __ELF__
19175                Extensible Linking Format
19176                #endif
19177
19178 _ACEOF
19179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19180   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
19181   gl_cv_have_weak="guessing yes"
19182 else
19183   gl_cv_have_weak="guessing no"
19184 fi
19185 rm -f conftest*
19186
19187
19188 else
19189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h.  */
19191
19192 #include <stdio.h>
19193 #pragma weak fputs
19194 int main ()
19195 {
19196   return (fputs == NULL);
19197 }
19198 _ACEOF
19199 if ac_fn_c_try_run "$LINENO"; then :
19200   gl_cv_have_weak=yes
19201 else
19202   gl_cv_have_weak=no
19203 fi
19204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19205   conftest.$ac_objext conftest.beam conftest.$ac_ext
19206 fi
19207
19208        fi
19209
19210 fi
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
19212 $as_echo "$gl_cv_have_weak" >&6; }
19213     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
19214       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
19215       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
19216       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19217 if test "x$ac_cv_header_pthread_h" = xyes; then :
19218   gl_have_pthread_h=yes
19219 else
19220   gl_have_pthread_h=no
19221 fi
19222
19223
19224       if test "$gl_have_pthread_h" = yes; then
19225         # Other possible tests:
19226         #   -lpthreads (FSU threads, PCthreads)
19227         #   -lgthreads
19228         gl_have_pthread=
19229         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
19230         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
19231         # the second one only in libpthread, and lock.c needs it.
19232         #
19233         # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
19234         # needs -pthread for some reason.  See:
19235         # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
19236         save_LIBS=$LIBS
19237         for gl_pthread in '' '-pthread'; do
19238           LIBS="$LIBS $gl_pthread"
19239           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19240 /* end confdefs.h.  */
19241 #include <pthread.h>
19242                  pthread_mutex_t m;
19243                  pthread_mutexattr_t ma;
19244
19245 int
19246 main ()
19247 {
19248 pthread_mutex_lock (&m);
19249                  pthread_mutexattr_init (&ma);
19250   ;
19251   return 0;
19252 }
19253 _ACEOF
19254 if ac_fn_c_try_link "$LINENO"; then :
19255   gl_have_pthread=yes
19256              LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
19257              LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
19258 fi
19259 rm -f core conftest.err conftest.$ac_objext \
19260     conftest$ac_exeext conftest.$ac_ext
19261           LIBS=$save_LIBS
19262           test -n "$gl_have_pthread" && break
19263         done
19264
19265         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
19266         # since it is defined as a macro on OSF/1.)
19267         if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
19268           # The program links fine without libpthread. But it may actually
19269           # need to link with libpthread in order to create multiple threads.
19270           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19271 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
19272 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
19273   $as_echo_n "(cached) " >&6
19274 else
19275   ac_check_lib_save_LIBS=$LIBS
19276 LIBS="-lpthread  $LIBS"
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h.  */
19279
19280 /* Override any GCC internal prototype to avoid an error.
19281    Use char because int might match the return type of a GCC
19282    builtin and then its argument prototype would still apply.  */
19283 #ifdef __cplusplus
19284 extern "C"
19285 #endif
19286 char pthread_kill ();
19287 int
19288 main ()
19289 {
19290 return pthread_kill ();
19291   ;
19292   return 0;
19293 }
19294 _ACEOF
19295 if ac_fn_c_try_link "$LINENO"; then :
19296   ac_cv_lib_pthread_pthread_kill=yes
19297 else
19298   ac_cv_lib_pthread_pthread_kill=no
19299 fi
19300 rm -f core conftest.err conftest.$ac_objext \
19301     conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_check_lib_save_LIBS
19303 fi
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19305 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
19306 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
19307   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
19308              # On Solaris and HP-UX, most pthread functions exist also in libc.
19309              # Therefore pthread_in_use() needs to actually try to create a
19310              # thread: pthread_create from libc will fail, whereas
19311              # pthread_create will actually create a thread.
19312              case "$host_os" in
19313                solaris* | hpux*)
19314
19315 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
19316
19317              esac
19318
19319 fi
19320
19321         elif test -z "$gl_have_pthread"; then
19322           # Some library is needed. Try libpthread and libc_r.
19323           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19324 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
19325 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
19326   $as_echo_n "(cached) " >&6
19327 else
19328   ac_check_lib_save_LIBS=$LIBS
19329 LIBS="-lpthread  $LIBS"
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h.  */
19332
19333 /* Override any GCC internal prototype to avoid an error.
19334    Use char because int might match the return type of a GCC
19335    builtin and then its argument prototype would still apply.  */
19336 #ifdef __cplusplus
19337 extern "C"
19338 #endif
19339 char pthread_kill ();
19340 int
19341 main ()
19342 {
19343 return pthread_kill ();
19344   ;
19345   return 0;
19346 }
19347 _ACEOF
19348 if ac_fn_c_try_link "$LINENO"; then :
19349   ac_cv_lib_pthread_pthread_kill=yes
19350 else
19351   ac_cv_lib_pthread_pthread_kill=no
19352 fi
19353 rm -f core conftest.err conftest.$ac_objext \
19354     conftest$ac_exeext conftest.$ac_ext
19355 LIBS=$ac_check_lib_save_LIBS
19356 fi
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19358 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
19359 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
19360   gl_have_pthread=yes
19361              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
19362              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
19363 fi
19364
19365           if test -z "$gl_have_pthread"; then
19366             # For FreeBSD 4.
19367             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
19368 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
19369 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
19370   $as_echo_n "(cached) " >&6
19371 else
19372   ac_check_lib_save_LIBS=$LIBS
19373 LIBS="-lc_r  $LIBS"
19374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375 /* end confdefs.h.  */
19376
19377 /* Override any GCC internal prototype to avoid an error.
19378    Use char because int might match the return type of a GCC
19379    builtin and then its argument prototype would still apply.  */
19380 #ifdef __cplusplus
19381 extern "C"
19382 #endif
19383 char pthread_kill ();
19384 int
19385 main ()
19386 {
19387 return pthread_kill ();
19388   ;
19389   return 0;
19390 }
19391 _ACEOF
19392 if ac_fn_c_try_link "$LINENO"; then :
19393   ac_cv_lib_c_r_pthread_kill=yes
19394 else
19395   ac_cv_lib_c_r_pthread_kill=no
19396 fi
19397 rm -f core conftest.err conftest.$ac_objext \
19398     conftest$ac_exeext conftest.$ac_ext
19399 LIBS=$ac_check_lib_save_LIBS
19400 fi
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
19402 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
19403 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
19404   gl_have_pthread=yes
19405                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
19406                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
19407 fi
19408
19409           fi
19410         fi
19411         if test -n "$gl_have_pthread"; then
19412           gl_threads_api=posix
19413
19414 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
19415
19416           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19417             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19418
19419 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
19420
19421               LIBTHREAD=
19422               LTLIBTHREAD=
19423             fi
19424           fi
19425         fi
19426       fi
19427     fi
19428     if test -z "$gl_have_pthread"; then
19429       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
19430         gl_have_solaristhread=
19431         gl_save_LIBS="$LIBS"
19432         LIBS="$LIBS -lthread"
19433         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19434 /* end confdefs.h.  */
19435
19436 #include <thread.h>
19437 #include <synch.h>
19438
19439 int
19440 main ()
19441 {
19442 thr_self();
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 if ac_fn_c_try_link "$LINENO"; then :
19448   gl_have_solaristhread=yes
19449 fi
19450 rm -f core conftest.err conftest.$ac_objext \
19451     conftest$ac_exeext conftest.$ac_ext
19452         LIBS="$gl_save_LIBS"
19453         if test -n "$gl_have_solaristhread"; then
19454           gl_threads_api=solaris
19455           LIBTHREAD=-lthread
19456           LTLIBTHREAD=-lthread
19457           LIBMULTITHREAD="$LIBTHREAD"
19458           LTLIBMULTITHREAD="$LTLIBTHREAD"
19459
19460 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
19461
19462           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19463
19464 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
19465
19466             LIBTHREAD=
19467             LTLIBTHREAD=
19468           fi
19469         fi
19470       fi
19471     fi
19472     if test "$gl_use_threads" = pth; then
19473       gl_save_CPPFLAGS="$CPPFLAGS"
19474
19475
19476
19477
19478
19479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
19480 $as_echo_n "checking how to link with libpth... " >&6; }
19481 if ${ac_cv_libpth_libs+:} false; then :
19482   $as_echo_n "(cached) " >&6
19483 else
19484
19485
19486
19487
19488
19489
19490
19491
19492     use_additional=yes
19493
19494   acl_save_prefix="$prefix"
19495   prefix="$acl_final_prefix"
19496   acl_save_exec_prefix="$exec_prefix"
19497   exec_prefix="$acl_final_exec_prefix"
19498
19499     eval additional_includedir=\"$includedir\"
19500     eval additional_libdir=\"$libdir\"
19501
19502   exec_prefix="$acl_save_exec_prefix"
19503   prefix="$acl_save_prefix"
19504
19505
19506 # Check whether --with-libpth-prefix was given.
19507 if test "${with_libpth_prefix+set}" = set; then :
19508   withval=$with_libpth_prefix;
19509     if test "X$withval" = "Xno"; then
19510       use_additional=no
19511     else
19512       if test "X$withval" = "X"; then
19513
19514   acl_save_prefix="$prefix"
19515   prefix="$acl_final_prefix"
19516   acl_save_exec_prefix="$exec_prefix"
19517   exec_prefix="$acl_final_exec_prefix"
19518
19519           eval additional_includedir=\"$includedir\"
19520           eval additional_libdir=\"$libdir\"
19521
19522   exec_prefix="$acl_save_exec_prefix"
19523   prefix="$acl_save_prefix"
19524
19525       else
19526         additional_includedir="$withval/include"
19527         additional_libdir="$withval/$acl_libdirstem"
19528         if test "$acl_libdirstem2" != "$acl_libdirstem" \
19529            && ! test -d "$withval/$acl_libdirstem"; then
19530           additional_libdir="$withval/$acl_libdirstem2"
19531         fi
19532       fi
19533     fi
19534
19535 fi
19536
19537       LIBPTH=
19538   LTLIBPTH=
19539   INCPTH=
19540   LIBPTH_PREFIX=
19541       HAVE_LIBPTH=
19542   rpathdirs=
19543   ltrpathdirs=
19544   names_already_handled=
19545   names_next_round='pth '
19546   while test -n "$names_next_round"; do
19547     names_this_round="$names_next_round"
19548     names_next_round=
19549     for name in $names_this_round; do
19550       already_handled=
19551       for n in $names_already_handled; do
19552         if test "$n" = "$name"; then
19553           already_handled=yes
19554           break
19555         fi
19556       done
19557       if test -z "$already_handled"; then
19558         names_already_handled="$names_already_handled $name"
19559                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19560         eval value=\"\$HAVE_LIB$uppername\"
19561         if test -n "$value"; then
19562           if test "$value" = yes; then
19563             eval value=\"\$LIB$uppername\"
19564             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
19565             eval value=\"\$LTLIB$uppername\"
19566             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
19567           else
19568                                     :
19569           fi
19570         else
19571                               found_dir=
19572           found_la=
19573           found_so=
19574           found_a=
19575           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19576           if test -n "$acl_shlibext"; then
19577             shrext=".$acl_shlibext"             # typically: shrext=.so
19578           else
19579             shrext=
19580           fi
19581           if test $use_additional = yes; then
19582             dir="$additional_libdir"
19583                                     if test -n "$acl_shlibext"; then
19584               if test -f "$dir/$libname$shrext"; then
19585                 found_dir="$dir"
19586                 found_so="$dir/$libname$shrext"
19587               else
19588                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19589                   ver=`(cd "$dir" && \
19590                         for f in "$libname$shrext".*; do echo "$f"; done \
19591                         | sed -e "s,^$libname$shrext\\\\.,," \
19592                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19593                         | sed 1q ) 2>/dev/null`
19594                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19595                     found_dir="$dir"
19596                     found_so="$dir/$libname$shrext.$ver"
19597                   fi
19598                 else
19599                   eval library_names=\"$acl_library_names_spec\"
19600                   for f in $library_names; do
19601                     if test -f "$dir/$f"; then
19602                       found_dir="$dir"
19603                       found_so="$dir/$f"
19604                       break
19605                     fi
19606                   done
19607                 fi
19608               fi
19609             fi
19610                         if test "X$found_dir" = "X"; then
19611               if test -f "$dir/$libname.$acl_libext"; then
19612                 found_dir="$dir"
19613                 found_a="$dir/$libname.$acl_libext"
19614               fi
19615             fi
19616             if test "X$found_dir" != "X"; then
19617               if test -f "$dir/$libname.la"; then
19618                 found_la="$dir/$libname.la"
19619               fi
19620             fi
19621           fi
19622           if test "X$found_dir" = "X"; then
19623             for x in $LDFLAGS $LTLIBPTH; do
19624
19625   acl_save_prefix="$prefix"
19626   prefix="$acl_final_prefix"
19627   acl_save_exec_prefix="$exec_prefix"
19628   exec_prefix="$acl_final_exec_prefix"
19629   eval x=\"$x\"
19630   exec_prefix="$acl_save_exec_prefix"
19631   prefix="$acl_save_prefix"
19632
19633               case "$x" in
19634                 -L*)
19635                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19636                                     if test -n "$acl_shlibext"; then
19637                     if test -f "$dir/$libname$shrext"; then
19638                       found_dir="$dir"
19639                       found_so="$dir/$libname$shrext"
19640                     else
19641                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19642                         ver=`(cd "$dir" && \
19643                               for f in "$libname$shrext".*; do echo "$f"; done \
19644                               | sed -e "s,^$libname$shrext\\\\.,," \
19645                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19646                               | sed 1q ) 2>/dev/null`
19647                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19648                           found_dir="$dir"
19649                           found_so="$dir/$libname$shrext.$ver"
19650                         fi
19651                       else
19652                         eval library_names=\"$acl_library_names_spec\"
19653                         for f in $library_names; do
19654                           if test -f "$dir/$f"; then
19655                             found_dir="$dir"
19656                             found_so="$dir/$f"
19657                             break
19658                           fi
19659                         done
19660                       fi
19661                     fi
19662                   fi
19663                                     if test "X$found_dir" = "X"; then
19664                     if test -f "$dir/$libname.$acl_libext"; then
19665                       found_dir="$dir"
19666                       found_a="$dir/$libname.$acl_libext"
19667                     fi
19668                   fi
19669                   if test "X$found_dir" != "X"; then
19670                     if test -f "$dir/$libname.la"; then
19671                       found_la="$dir/$libname.la"
19672                     fi
19673                   fi
19674                   ;;
19675               esac
19676               if test "X$found_dir" != "X"; then
19677                 break
19678               fi
19679             done
19680           fi
19681           if test "X$found_dir" != "X"; then
19682                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
19683             if test "X$found_so" != "X"; then
19684                                                         if test "$enable_rpath" = no \
19685                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19686                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19687                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19688               else
19689                                                                                 haveit=
19690                 for x in $ltrpathdirs; do
19691                   if test "X$x" = "X$found_dir"; then
19692                     haveit=yes
19693                     break
19694                   fi
19695                 done
19696                 if test -z "$haveit"; then
19697                   ltrpathdirs="$ltrpathdirs $found_dir"
19698                 fi
19699                                 if test "$acl_hardcode_direct" = yes; then
19700                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19701                 else
19702                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19703                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19704                                                             haveit=
19705                     for x in $rpathdirs; do
19706                       if test "X$x" = "X$found_dir"; then
19707                         haveit=yes
19708                         break
19709                       fi
19710                     done
19711                     if test -z "$haveit"; then
19712                       rpathdirs="$rpathdirs $found_dir"
19713                     fi
19714                   else
19715                                                                                 haveit=
19716                     for x in $LDFLAGS $LIBPTH; do
19717
19718   acl_save_prefix="$prefix"
19719   prefix="$acl_final_prefix"
19720   acl_save_exec_prefix="$exec_prefix"
19721   exec_prefix="$acl_final_exec_prefix"
19722   eval x=\"$x\"
19723   exec_prefix="$acl_save_exec_prefix"
19724   prefix="$acl_save_prefix"
19725
19726                       if test "X$x" = "X-L$found_dir"; then
19727                         haveit=yes
19728                         break
19729                       fi
19730                     done
19731                     if test -z "$haveit"; then
19732                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
19733                     fi
19734                     if test "$acl_hardcode_minus_L" != no; then
19735                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19736                     else
19737                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19738                     fi
19739                   fi
19740                 fi
19741               fi
19742             else
19743               if test "X$found_a" != "X"; then
19744                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
19745               else
19746                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
19747               fi
19748             fi
19749                         additional_includedir=
19750             case "$found_dir" in
19751               */$acl_libdirstem | */$acl_libdirstem/)
19752                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19753                 if test "$name" = 'pth'; then
19754                   LIBPTH_PREFIX="$basedir"
19755                 fi
19756                 additional_includedir="$basedir/include"
19757                 ;;
19758               */$acl_libdirstem2 | */$acl_libdirstem2/)
19759                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19760                 if test "$name" = 'pth'; then
19761                   LIBPTH_PREFIX="$basedir"
19762                 fi
19763                 additional_includedir="$basedir/include"
19764                 ;;
19765             esac
19766             if test "X$additional_includedir" != "X"; then
19767                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
19768                 haveit=
19769                 if test "X$additional_includedir" = "X/usr/local/include"; then
19770                   if test -n "$GCC"; then
19771                     case $host_os in
19772                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19773                     esac
19774                   fi
19775                 fi
19776                 if test -z "$haveit"; then
19777                   for x in $CPPFLAGS $INCPTH; do
19778
19779   acl_save_prefix="$prefix"
19780   prefix="$acl_final_prefix"
19781   acl_save_exec_prefix="$exec_prefix"
19782   exec_prefix="$acl_final_exec_prefix"
19783   eval x=\"$x\"
19784   exec_prefix="$acl_save_exec_prefix"
19785   prefix="$acl_save_prefix"
19786
19787                     if test "X$x" = "X-I$additional_includedir"; then
19788                       haveit=yes
19789                       break
19790                     fi
19791                   done
19792                   if test -z "$haveit"; then
19793                     if test -d "$additional_includedir"; then
19794                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
19795                     fi
19796                   fi
19797                 fi
19798               fi
19799             fi
19800                         if test -n "$found_la"; then
19801                                                         save_libdir="$libdir"
19802               case "$found_la" in
19803                 */* | *\\*) . "$found_la" ;;
19804                 *) . "./$found_la" ;;
19805               esac
19806               libdir="$save_libdir"
19807                             for dep in $dependency_libs; do
19808                 case "$dep" in
19809                   -L*)
19810                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19811                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19812                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19813                       haveit=
19814                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19815                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19816                         if test -n "$GCC"; then
19817                           case $host_os in
19818                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19819                           esac
19820                         fi
19821                       fi
19822                       if test -z "$haveit"; then
19823                         haveit=
19824                         for x in $LDFLAGS $LIBPTH; do
19825
19826   acl_save_prefix="$prefix"
19827   prefix="$acl_final_prefix"
19828   acl_save_exec_prefix="$exec_prefix"
19829   exec_prefix="$acl_final_exec_prefix"
19830   eval x=\"$x\"
19831   exec_prefix="$acl_save_exec_prefix"
19832   prefix="$acl_save_prefix"
19833
19834                           if test "X$x" = "X-L$additional_libdir"; then
19835                             haveit=yes
19836                             break
19837                           fi
19838                         done
19839                         if test -z "$haveit"; then
19840                           if test -d "$additional_libdir"; then
19841                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
19842                           fi
19843                         fi
19844                         haveit=
19845                         for x in $LDFLAGS $LTLIBPTH; do
19846
19847   acl_save_prefix="$prefix"
19848   prefix="$acl_final_prefix"
19849   acl_save_exec_prefix="$exec_prefix"
19850   exec_prefix="$acl_final_exec_prefix"
19851   eval x=\"$x\"
19852   exec_prefix="$acl_save_exec_prefix"
19853   prefix="$acl_save_prefix"
19854
19855                           if test "X$x" = "X-L$additional_libdir"; then
19856                             haveit=yes
19857                             break
19858                           fi
19859                         done
19860                         if test -z "$haveit"; then
19861                           if test -d "$additional_libdir"; then
19862                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
19863                           fi
19864                         fi
19865                       fi
19866                     fi
19867                     ;;
19868                   -R*)
19869                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
19870                     if test "$enable_rpath" != no; then
19871                                                                   haveit=
19872                       for x in $rpathdirs; do
19873                         if test "X$x" = "X$dir"; then
19874                           haveit=yes
19875                           break
19876                         fi
19877                       done
19878                       if test -z "$haveit"; then
19879                         rpathdirs="$rpathdirs $dir"
19880                       fi
19881                                                                   haveit=
19882                       for x in $ltrpathdirs; do
19883                         if test "X$x" = "X$dir"; then
19884                           haveit=yes
19885                           break
19886                         fi
19887                       done
19888                       if test -z "$haveit"; then
19889                         ltrpathdirs="$ltrpathdirs $dir"
19890                       fi
19891                     fi
19892                     ;;
19893                   -l*)
19894                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19895                     ;;
19896                   *.la)
19897                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19898                     ;;
19899                   *)
19900                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
19901                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
19902                     ;;
19903                 esac
19904               done
19905             fi
19906           else
19907                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19908             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
19909           fi
19910         fi
19911       fi
19912     done
19913   done
19914   if test "X$rpathdirs" != "X"; then
19915     if test -n "$acl_hardcode_libdir_separator"; then
19916                         alldirs=
19917       for found_dir in $rpathdirs; do
19918         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19919       done
19920             acl_save_libdir="$libdir"
19921       libdir="$alldirs"
19922       eval flag=\"$acl_hardcode_libdir_flag_spec\"
19923       libdir="$acl_save_libdir"
19924       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19925     else
19926             for found_dir in $rpathdirs; do
19927         acl_save_libdir="$libdir"
19928         libdir="$found_dir"
19929         eval flag=\"$acl_hardcode_libdir_flag_spec\"
19930         libdir="$acl_save_libdir"
19931         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19932       done
19933     fi
19934   fi
19935   if test "X$ltrpathdirs" != "X"; then
19936             for found_dir in $ltrpathdirs; do
19937       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
19938     done
19939   fi
19940
19941
19942
19943
19944
19945
19946     ac_cv_libpth_libs="$LIBPTH"
19947     ac_cv_libpth_ltlibs="$LTLIBPTH"
19948     ac_cv_libpth_cppflags="$INCPTH"
19949     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
19950
19951 fi
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
19953 $as_echo "$ac_cv_libpth_libs" >&6; }
19954   LIBPTH="$ac_cv_libpth_libs"
19955   LTLIBPTH="$ac_cv_libpth_ltlibs"
19956   INCPTH="$ac_cv_libpth_cppflags"
19957   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
19958
19959   for element in $INCPTH; do
19960     haveit=
19961     for x in $CPPFLAGS; do
19962
19963   acl_save_prefix="$prefix"
19964   prefix="$acl_final_prefix"
19965   acl_save_exec_prefix="$exec_prefix"
19966   exec_prefix="$acl_final_exec_prefix"
19967   eval x=\"$x\"
19968   exec_prefix="$acl_save_exec_prefix"
19969   prefix="$acl_save_prefix"
19970
19971       if test "X$x" = "X$element"; then
19972         haveit=yes
19973         break
19974       fi
19975     done
19976     if test -z "$haveit"; then
19977       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19978     fi
19979   done
19980
19981
19982
19983
19984       HAVE_LIBPTH=yes
19985
19986
19987
19988       gl_have_pth=
19989       gl_save_LIBS="$LIBS"
19990       LIBS="$LIBS $LIBPTH"
19991       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992 /* end confdefs.h.  */
19993 #include <pth.h>
19994 int
19995 main ()
19996 {
19997 pth_self();
19998   ;
19999   return 0;
20000 }
20001 _ACEOF
20002 if ac_fn_c_try_link "$LINENO"; then :
20003   gl_have_pth=yes
20004 fi
20005 rm -f core conftest.err conftest.$ac_objext \
20006     conftest$ac_exeext conftest.$ac_ext
20007       LIBS="$gl_save_LIBS"
20008       if test -n "$gl_have_pth"; then
20009         gl_threads_api=pth
20010         LIBTHREAD="$LIBPTH"
20011         LTLIBTHREAD="$LTLIBPTH"
20012         LIBMULTITHREAD="$LIBTHREAD"
20013         LTLIBMULTITHREAD="$LTLIBTHREAD"
20014
20015 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
20016
20017         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
20018           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
20019
20020 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
20021
20022             LIBTHREAD=
20023             LTLIBTHREAD=
20024           fi
20025         fi
20026       else
20027         CPPFLAGS="$gl_save_CPPFLAGS"
20028       fi
20029     fi
20030     if test -z "$gl_have_pthread"; then
20031       case "$gl_use_threads" in
20032         yes | windows | win32) # The 'win32' is for backward compatibility.
20033           if { case "$host_os" in
20034                  mingw*) true;;
20035                  *) false;;
20036                esac
20037              }; then
20038             gl_threads_api=windows
20039
20040 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
20041
20042           fi
20043           ;;
20044       esac
20045     fi
20046   fi
20047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
20048 $as_echo_n "checking for multithread API to use... " >&6; }
20049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
20050 $as_echo "$gl_threads_api" >&6; }
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062   if test "$gl_threads_api" = posix; then
20063     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
20064     # pthread_rwlock_* functions.
20065     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
20066 "
20067 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
20068
20069 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
20070
20071 fi
20072
20073     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
20074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h.  */
20076
20077       #include <pthread.h>
20078 int
20079 main ()
20080 {
20081
20082 #if __FreeBSD__ == 4
20083 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
20084 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
20085        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
20086 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
20087 #else
20088 int x = (int)PTHREAD_MUTEX_RECURSIVE;
20089 return !x;
20090 #endif
20091
20092   ;
20093   return 0;
20094 }
20095 _ACEOF
20096 if ac_fn_c_try_compile "$LINENO"; then :
20097
20098 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
20099
20100 fi
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102   fi
20103   :
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116     use_additional=yes
20117
20118   acl_save_prefix="$prefix"
20119   prefix="$acl_final_prefix"
20120   acl_save_exec_prefix="$exec_prefix"
20121   exec_prefix="$acl_final_exec_prefix"
20122
20123     eval additional_includedir=\"$includedir\"
20124     eval additional_libdir=\"$libdir\"
20125
20126   exec_prefix="$acl_save_exec_prefix"
20127   prefix="$acl_save_prefix"
20128
20129
20130 # Check whether --with-libiconv-prefix was given.
20131 if test "${with_libiconv_prefix+set}" = set; then :
20132   withval=$with_libiconv_prefix;
20133     if test "X$withval" = "Xno"; then
20134       use_additional=no
20135     else
20136       if test "X$withval" = "X"; then
20137
20138   acl_save_prefix="$prefix"
20139   prefix="$acl_final_prefix"
20140   acl_save_exec_prefix="$exec_prefix"
20141   exec_prefix="$acl_final_exec_prefix"
20142
20143           eval additional_includedir=\"$includedir\"
20144           eval additional_libdir=\"$libdir\"
20145
20146   exec_prefix="$acl_save_exec_prefix"
20147   prefix="$acl_save_prefix"
20148
20149       else
20150         additional_includedir="$withval/include"
20151         additional_libdir="$withval/$acl_libdirstem"
20152         if test "$acl_libdirstem2" != "$acl_libdirstem" \
20153            && ! test -d "$withval/$acl_libdirstem"; then
20154           additional_libdir="$withval/$acl_libdirstem2"
20155         fi
20156       fi
20157     fi
20158
20159 fi
20160
20161       LIBICONV=
20162   LTLIBICONV=
20163   INCICONV=
20164   LIBICONV_PREFIX=
20165       HAVE_LIBICONV=
20166   rpathdirs=
20167   ltrpathdirs=
20168   names_already_handled=
20169   names_next_round='iconv '
20170   while test -n "$names_next_round"; do
20171     names_this_round="$names_next_round"
20172     names_next_round=
20173     for name in $names_this_round; do
20174       already_handled=
20175       for n in $names_already_handled; do
20176         if test "$n" = "$name"; then
20177           already_handled=yes
20178           break
20179         fi
20180       done
20181       if test -z "$already_handled"; then
20182         names_already_handled="$names_already_handled $name"
20183                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20184         eval value=\"\$HAVE_LIB$uppername\"
20185         if test -n "$value"; then
20186           if test "$value" = yes; then
20187             eval value=\"\$LIB$uppername\"
20188             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20189             eval value=\"\$LTLIB$uppername\"
20190             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20191           else
20192                                     :
20193           fi
20194         else
20195                               found_dir=
20196           found_la=
20197           found_so=
20198           found_a=
20199           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
20200           if test -n "$acl_shlibext"; then
20201             shrext=".$acl_shlibext"             # typically: shrext=.so
20202           else
20203             shrext=
20204           fi
20205           if test $use_additional = yes; then
20206             dir="$additional_libdir"
20207                                     if test -n "$acl_shlibext"; then
20208               if test -f "$dir/$libname$shrext"; then
20209                 found_dir="$dir"
20210                 found_so="$dir/$libname$shrext"
20211               else
20212                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20213                   ver=`(cd "$dir" && \
20214                         for f in "$libname$shrext".*; do echo "$f"; done \
20215                         | sed -e "s,^$libname$shrext\\\\.,," \
20216                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20217                         | sed 1q ) 2>/dev/null`
20218                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20219                     found_dir="$dir"
20220                     found_so="$dir/$libname$shrext.$ver"
20221                   fi
20222                 else
20223                   eval library_names=\"$acl_library_names_spec\"
20224                   for f in $library_names; do
20225                     if test -f "$dir/$f"; then
20226                       found_dir="$dir"
20227                       found_so="$dir/$f"
20228                       break
20229                     fi
20230                   done
20231                 fi
20232               fi
20233             fi
20234                         if test "X$found_dir" = "X"; then
20235               if test -f "$dir/$libname.$acl_libext"; then
20236                 found_dir="$dir"
20237                 found_a="$dir/$libname.$acl_libext"
20238               fi
20239             fi
20240             if test "X$found_dir" != "X"; then
20241               if test -f "$dir/$libname.la"; then
20242                 found_la="$dir/$libname.la"
20243               fi
20244             fi
20245           fi
20246           if test "X$found_dir" = "X"; then
20247             for x in $LDFLAGS $LTLIBICONV; do
20248
20249   acl_save_prefix="$prefix"
20250   prefix="$acl_final_prefix"
20251   acl_save_exec_prefix="$exec_prefix"
20252   exec_prefix="$acl_final_exec_prefix"
20253   eval x=\"$x\"
20254   exec_prefix="$acl_save_exec_prefix"
20255   prefix="$acl_save_prefix"
20256
20257               case "$x" in
20258                 -L*)
20259                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20260                                     if test -n "$acl_shlibext"; then
20261                     if test -f "$dir/$libname$shrext"; then
20262                       found_dir="$dir"
20263                       found_so="$dir/$libname$shrext"
20264                     else
20265                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20266                         ver=`(cd "$dir" && \
20267                               for f in "$libname$shrext".*; do echo "$f"; done \
20268                               | sed -e "s,^$libname$shrext\\\\.,," \
20269                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20270                               | sed 1q ) 2>/dev/null`
20271                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20272                           found_dir="$dir"
20273                           found_so="$dir/$libname$shrext.$ver"
20274                         fi
20275                       else
20276                         eval library_names=\"$acl_library_names_spec\"
20277                         for f in $library_names; do
20278                           if test -f "$dir/$f"; then
20279                             found_dir="$dir"
20280                             found_so="$dir/$f"
20281                             break
20282                           fi
20283                         done
20284                       fi
20285                     fi
20286                   fi
20287                                     if test "X$found_dir" = "X"; then
20288                     if test -f "$dir/$libname.$acl_libext"; then
20289                       found_dir="$dir"
20290                       found_a="$dir/$libname.$acl_libext"
20291                     fi
20292                   fi
20293                   if test "X$found_dir" != "X"; then
20294                     if test -f "$dir/$libname.la"; then
20295                       found_la="$dir/$libname.la"
20296                     fi
20297                   fi
20298                   ;;
20299               esac
20300               if test "X$found_dir" != "X"; then
20301                 break
20302               fi
20303             done
20304           fi
20305           if test "X$found_dir" != "X"; then
20306                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20307             if test "X$found_so" != "X"; then
20308                                                         if test "$enable_rpath" = no \
20309                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20310                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20311                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20312               else
20313                                                                                 haveit=
20314                 for x in $ltrpathdirs; do
20315                   if test "X$x" = "X$found_dir"; then
20316                     haveit=yes
20317                     break
20318                   fi
20319                 done
20320                 if test -z "$haveit"; then
20321                   ltrpathdirs="$ltrpathdirs $found_dir"
20322                 fi
20323                                 if test "$acl_hardcode_direct" = yes; then
20324                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20325                 else
20326                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20327                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20328                                                             haveit=
20329                     for x in $rpathdirs; do
20330                       if test "X$x" = "X$found_dir"; then
20331                         haveit=yes
20332                         break
20333                       fi
20334                     done
20335                     if test -z "$haveit"; then
20336                       rpathdirs="$rpathdirs $found_dir"
20337                     fi
20338                   else
20339                                                                                 haveit=
20340                     for x in $LDFLAGS $LIBICONV; do
20341
20342   acl_save_prefix="$prefix"
20343   prefix="$acl_final_prefix"
20344   acl_save_exec_prefix="$exec_prefix"
20345   exec_prefix="$acl_final_exec_prefix"
20346   eval x=\"$x\"
20347   exec_prefix="$acl_save_exec_prefix"
20348   prefix="$acl_save_prefix"
20349
20350                       if test "X$x" = "X-L$found_dir"; then
20351                         haveit=yes
20352                         break
20353                       fi
20354                     done
20355                     if test -z "$haveit"; then
20356                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20357                     fi
20358                     if test "$acl_hardcode_minus_L" != no; then
20359                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20360                     else
20361                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20362                     fi
20363                   fi
20364                 fi
20365               fi
20366             else
20367               if test "X$found_a" != "X"; then
20368                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20369               else
20370                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20371               fi
20372             fi
20373                         additional_includedir=
20374             case "$found_dir" in
20375               */$acl_libdirstem | */$acl_libdirstem/)
20376                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20377                 if test "$name" = 'iconv'; then
20378                   LIBICONV_PREFIX="$basedir"
20379                 fi
20380                 additional_includedir="$basedir/include"
20381                 ;;
20382               */$acl_libdirstem2 | */$acl_libdirstem2/)
20383                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20384                 if test "$name" = 'iconv'; then
20385                   LIBICONV_PREFIX="$basedir"
20386                 fi
20387                 additional_includedir="$basedir/include"
20388                 ;;
20389             esac
20390             if test "X$additional_includedir" != "X"; then
20391                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20392                 haveit=
20393                 if test "X$additional_includedir" = "X/usr/local/include"; then
20394                   if test -n "$GCC"; then
20395                     case $host_os in
20396                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20397                     esac
20398                   fi
20399                 fi
20400                 if test -z "$haveit"; then
20401                   for x in $CPPFLAGS $INCICONV; do
20402
20403   acl_save_prefix="$prefix"
20404   prefix="$acl_final_prefix"
20405   acl_save_exec_prefix="$exec_prefix"
20406   exec_prefix="$acl_final_exec_prefix"
20407   eval x=\"$x\"
20408   exec_prefix="$acl_save_exec_prefix"
20409   prefix="$acl_save_prefix"
20410
20411                     if test "X$x" = "X-I$additional_includedir"; then
20412                       haveit=yes
20413                       break
20414                     fi
20415                   done
20416                   if test -z "$haveit"; then
20417                     if test -d "$additional_includedir"; then
20418                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20419                     fi
20420                   fi
20421                 fi
20422               fi
20423             fi
20424                         if test -n "$found_la"; then
20425                                                         save_libdir="$libdir"
20426               case "$found_la" in
20427                 */* | *\\*) . "$found_la" ;;
20428                 *) . "./$found_la" ;;
20429               esac
20430               libdir="$save_libdir"
20431                             for dep in $dependency_libs; do
20432                 case "$dep" in
20433                   -L*)
20434                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20435                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20436                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20437                       haveit=
20438                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20439                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20440                         if test -n "$GCC"; then
20441                           case $host_os in
20442                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20443                           esac
20444                         fi
20445                       fi
20446                       if test -z "$haveit"; then
20447                         haveit=
20448                         for x in $LDFLAGS $LIBICONV; do
20449
20450   acl_save_prefix="$prefix"
20451   prefix="$acl_final_prefix"
20452   acl_save_exec_prefix="$exec_prefix"
20453   exec_prefix="$acl_final_exec_prefix"
20454   eval x=\"$x\"
20455   exec_prefix="$acl_save_exec_prefix"
20456   prefix="$acl_save_prefix"
20457
20458                           if test "X$x" = "X-L$additional_libdir"; then
20459                             haveit=yes
20460                             break
20461                           fi
20462                         done
20463                         if test -z "$haveit"; then
20464                           if test -d "$additional_libdir"; then
20465                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20466                           fi
20467                         fi
20468                         haveit=
20469                         for x in $LDFLAGS $LTLIBICONV; do
20470
20471   acl_save_prefix="$prefix"
20472   prefix="$acl_final_prefix"
20473   acl_save_exec_prefix="$exec_prefix"
20474   exec_prefix="$acl_final_exec_prefix"
20475   eval x=\"$x\"
20476   exec_prefix="$acl_save_exec_prefix"
20477   prefix="$acl_save_prefix"
20478
20479                           if test "X$x" = "X-L$additional_libdir"; then
20480                             haveit=yes
20481                             break
20482                           fi
20483                         done
20484                         if test -z "$haveit"; then
20485                           if test -d "$additional_libdir"; then
20486                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20487                           fi
20488                         fi
20489                       fi
20490                     fi
20491                     ;;
20492                   -R*)
20493                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20494                     if test "$enable_rpath" != no; then
20495                                                                   haveit=
20496                       for x in $rpathdirs; do
20497                         if test "X$x" = "X$dir"; then
20498                           haveit=yes
20499                           break
20500                         fi
20501                       done
20502                       if test -z "$haveit"; then
20503                         rpathdirs="$rpathdirs $dir"
20504                       fi
20505                                                                   haveit=
20506                       for x in $ltrpathdirs; do
20507                         if test "X$x" = "X$dir"; then
20508                           haveit=yes
20509                           break
20510                         fi
20511                       done
20512                       if test -z "$haveit"; then
20513                         ltrpathdirs="$ltrpathdirs $dir"
20514                       fi
20515                     fi
20516                     ;;
20517                   -l*)
20518                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20519                     ;;
20520                   *.la)
20521                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20522                     ;;
20523                   *)
20524                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20525                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20526                     ;;
20527                 esac
20528               done
20529             fi
20530           else
20531                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20532             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20533           fi
20534         fi
20535       fi
20536     done
20537   done
20538   if test "X$rpathdirs" != "X"; then
20539     if test -n "$acl_hardcode_libdir_separator"; then
20540                         alldirs=
20541       for found_dir in $rpathdirs; do
20542         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20543       done
20544             acl_save_libdir="$libdir"
20545       libdir="$alldirs"
20546       eval flag=\"$acl_hardcode_libdir_flag_spec\"
20547       libdir="$acl_save_libdir"
20548       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20549     else
20550             for found_dir in $rpathdirs; do
20551         acl_save_libdir="$libdir"
20552         libdir="$found_dir"
20553         eval flag=\"$acl_hardcode_libdir_flag_spec\"
20554         libdir="$acl_save_libdir"
20555         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20556       done
20557     fi
20558   fi
20559   if test "X$ltrpathdirs" != "X"; then
20560             for found_dir in $ltrpathdirs; do
20561       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20562     done
20563   fi
20564
20565
20566
20567
20568
20569
20570
20571
20572   GNULIB_ICONV=0;
20573     ICONV_CONST=;
20574   REPLACE_ICONV=0;
20575   REPLACE_ICONV_OPEN=0;
20576   REPLACE_ICONV_UTF=0;
20577   ICONV_H='';
20578    if test -n "$ICONV_H"; then
20579   GL_GENERATE_ICONV_H_TRUE=
20580   GL_GENERATE_ICONV_H_FALSE='#'
20581 else
20582   GL_GENERATE_ICONV_H_TRUE='#'
20583   GL_GENERATE_ICONV_H_FALSE=
20584 fi
20585
20586
20587
20588
20589
20590
20591
20592           am_save_CPPFLAGS="$CPPFLAGS"
20593
20594   for element in $INCICONV; do
20595     haveit=
20596     for x in $CPPFLAGS; do
20597
20598   acl_save_prefix="$prefix"
20599   prefix="$acl_final_prefix"
20600   acl_save_exec_prefix="$exec_prefix"
20601   exec_prefix="$acl_final_exec_prefix"
20602   eval x=\"$x\"
20603   exec_prefix="$acl_save_exec_prefix"
20604   prefix="$acl_save_prefix"
20605
20606       if test "X$x" = "X$element"; then
20607         haveit=yes
20608         break
20609       fi
20610     done
20611     if test -z "$haveit"; then
20612       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20613     fi
20614   done
20615
20616
20617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20618 $as_echo_n "checking for iconv... " >&6; }
20619 if ${am_cv_func_iconv+:} false; then :
20620   $as_echo_n "(cached) " >&6
20621 else
20622
20623     am_cv_func_iconv="no, consider installing GNU libiconv"
20624     am_cv_lib_iconv=no
20625     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20626 /* end confdefs.h.  */
20627
20628 #include <stdlib.h>
20629 #include <iconv.h>
20630
20631 int
20632 main ()
20633 {
20634 iconv_t cd = iconv_open("","");
20635            iconv(cd,NULL,NULL,NULL,NULL);
20636            iconv_close(cd);
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 if ac_fn_c_try_link "$LINENO"; then :
20642   am_cv_func_iconv=yes
20643 fi
20644 rm -f core conftest.err conftest.$ac_objext \
20645     conftest$ac_exeext conftest.$ac_ext
20646     if test "$am_cv_func_iconv" != yes; then
20647       am_save_LIBS="$LIBS"
20648       LIBS="$LIBS $LIBICONV"
20649       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650 /* end confdefs.h.  */
20651
20652 #include <stdlib.h>
20653 #include <iconv.h>
20654
20655 int
20656 main ()
20657 {
20658 iconv_t cd = iconv_open("","");
20659              iconv(cd,NULL,NULL,NULL,NULL);
20660              iconv_close(cd);
20661   ;
20662   return 0;
20663 }
20664 _ACEOF
20665 if ac_fn_c_try_link "$LINENO"; then :
20666   am_cv_lib_iconv=yes
20667         am_cv_func_iconv=yes
20668 fi
20669 rm -f core conftest.err conftest.$ac_objext \
20670     conftest$ac_exeext conftest.$ac_ext
20671       LIBS="$am_save_LIBS"
20672     fi
20673
20674 fi
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20676 $as_echo "$am_cv_func_iconv" >&6; }
20677   if test "$am_cv_func_iconv" = yes; then
20678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20679 $as_echo_n "checking for working iconv... " >&6; }
20680 if ${am_cv_func_iconv_works+:} false; then :
20681   $as_echo_n "(cached) " >&6
20682 else
20683
20684                   am_save_LIBS="$LIBS"
20685       if test $am_cv_lib_iconv = yes; then
20686         LIBS="$LIBS $LIBICONV"
20687       fi
20688       am_cv_func_iconv_works=no
20689       for ac_iconv_const in '' 'const'; do
20690         if test "$cross_compiling" = yes; then :
20691   case "$host_os" in
20692              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20693              *)            am_cv_func_iconv_works="guessing yes" ;;
20694            esac
20695 else
20696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697 /* end confdefs.h.  */
20698
20699 #include <iconv.h>
20700 #include <string.h>
20701
20702 #ifndef ICONV_CONST
20703 # define ICONV_CONST $ac_iconv_const
20704 #endif
20705
20706 int
20707 main ()
20708 {
20709 int result = 0;
20710   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20711      returns.  */
20712   {
20713     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20714     if (cd_utf8_to_88591 != (iconv_t)(-1))
20715       {
20716         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
20717         char buf[10];
20718         ICONV_CONST char *inptr = input;
20719         size_t inbytesleft = strlen (input);
20720         char *outptr = buf;
20721         size_t outbytesleft = sizeof (buf);
20722         size_t res = iconv (cd_utf8_to_88591,
20723                             &inptr, &inbytesleft,
20724                             &outptr, &outbytesleft);
20725         if (res == 0)
20726           result |= 1;
20727         iconv_close (cd_utf8_to_88591);
20728       }
20729   }
20730   /* Test against Solaris 10 bug: Failures are not distinguishable from
20731      successful returns.  */
20732   {
20733     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20734     if (cd_ascii_to_88591 != (iconv_t)(-1))
20735       {
20736         static ICONV_CONST char input[] = "\263";
20737         char buf[10];
20738         ICONV_CONST char *inptr = input;
20739         size_t inbytesleft = strlen (input);
20740         char *outptr = buf;
20741         size_t outbytesleft = sizeof (buf);
20742         size_t res = iconv (cd_ascii_to_88591,
20743                             &inptr, &inbytesleft,
20744                             &outptr, &outbytesleft);
20745         if (res == 0)
20746           result |= 2;
20747         iconv_close (cd_ascii_to_88591);
20748       }
20749   }
20750   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
20751   {
20752     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20753     if (cd_88591_to_utf8 != (iconv_t)(-1))
20754       {
20755         static ICONV_CONST char input[] = "\304";
20756         static char buf[2] = { (char)0xDE, (char)0xAD };
20757         ICONV_CONST char *inptr = input;
20758         size_t inbytesleft = 1;
20759         char *outptr = buf;
20760         size_t outbytesleft = 1;
20761         size_t res = iconv (cd_88591_to_utf8,
20762                             &inptr, &inbytesleft,
20763                             &outptr, &outbytesleft);
20764         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20765           result |= 4;
20766         iconv_close (cd_88591_to_utf8);
20767       }
20768   }
20769 #if 0 /* This bug could be worked around by the caller.  */
20770   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
20771   {
20772     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20773     if (cd_88591_to_utf8 != (iconv_t)(-1))
20774       {
20775         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20776         char buf[50];
20777         ICONV_CONST char *inptr = input;
20778         size_t inbytesleft = strlen (input);
20779         char *outptr = buf;
20780         size_t outbytesleft = sizeof (buf);
20781         size_t res = iconv (cd_88591_to_utf8,
20782                             &inptr, &inbytesleft,
20783                             &outptr, &outbytesleft);
20784         if ((int)res > 0)
20785           result |= 8;
20786         iconv_close (cd_88591_to_utf8);
20787       }
20788   }
20789 #endif
20790   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20791      provided.  */
20792   if (/* Try standardized names.  */
20793       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20794       /* Try IRIX, OSF/1 names.  */
20795       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20796       /* Try AIX names.  */
20797       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20798       /* Try HP-UX names.  */
20799       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
20800     result |= 16;
20801   return result;
20802
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 if ac_fn_c_try_run "$LINENO"; then :
20808   am_cv_func_iconv_works=yes
20809 fi
20810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20811   conftest.$ac_objext conftest.beam conftest.$ac_ext
20812 fi
20813
20814         test "$am_cv_func_iconv_works" = no || break
20815       done
20816       LIBS="$am_save_LIBS"
20817
20818 fi
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20820 $as_echo "$am_cv_func_iconv_works" >&6; }
20821     case "$am_cv_func_iconv_works" in
20822       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20823       *)   am_func_iconv=yes ;;
20824     esac
20825   else
20826     am_func_iconv=no am_cv_lib_iconv=no
20827   fi
20828   if test "$am_func_iconv" = yes; then
20829
20830 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20831
20832   fi
20833   if test "$am_cv_lib_iconv" = yes; then
20834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20835 $as_echo_n "checking how to link with libiconv... " >&6; }
20836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20837 $as_echo "$LIBICONV" >&6; }
20838   else
20839             CPPFLAGS="$am_save_CPPFLAGS"
20840     LIBICONV=
20841     LTLIBICONV=
20842   fi
20843
20844
20845
20846   if test "$am_cv_func_iconv" = yes; then
20847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20848 $as_echo_n "checking for iconv declaration... " >&6; }
20849     if ${am_cv_proto_iconv+:} false; then :
20850   $as_echo_n "(cached) " >&6
20851 else
20852
20853       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h.  */
20855
20856 #include <stdlib.h>
20857 #include <iconv.h>
20858 extern
20859 #ifdef __cplusplus
20860 "C"
20861 #endif
20862 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
20863 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20864 #else
20865 size_t iconv();
20866 #endif
20867
20868 int
20869 main ()
20870 {
20871
20872   ;
20873   return 0;
20874 }
20875 _ACEOF
20876 if ac_fn_c_try_compile "$LINENO"; then :
20877   am_cv_proto_iconv_arg1=""
20878 else
20879   am_cv_proto_iconv_arg1="const"
20880 fi
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882       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);"
20883 fi
20884
20885     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20886     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20887          $am_cv_proto_iconv" >&5
20888 $as_echo "
20889          $am_cv_proto_iconv" >&6; }
20890
20891 cat >>confdefs.h <<_ACEOF
20892 #define ICONV_CONST $am_cv_proto_iconv_arg1
20893 _ACEOF
20894
20895
20896        if test -n "$am_cv_proto_iconv_arg1"; then
20897          ICONV_CONST="const"
20898        fi
20899
20900   fi
20901
20902
20903
20904
20905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h.  */
20907 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
20908 int
20909 main ()
20910 {
20911
20912   ;
20913   return 0;
20914 }
20915 _ACEOF
20916 if ac_fn_c_try_link "$LINENO"; then :
20917
20918 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
20919
20920 fi
20921 rm -f core conftest.err conftest.$ac_objext \
20922     conftest$ac_exeext conftest.$ac_ext
20923
20924   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
20925 do :
20926   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20927 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20929   cat >>confdefs.h <<_ACEOF
20930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20931 _ACEOF
20932
20933 fi
20934
20935 done
20936
20937   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
20938     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
20939     argz_stringify argz_next __fsetlocking
20940 do :
20941   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20944   cat >>confdefs.h <<_ACEOF
20945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20946 _ACEOF
20947
20948 fi
20949 done
20950
20951
20952       if test $ac_cv_func_uselocale = yes; then
20953     for ac_func in getlocalename_l
20954 do :
20955   ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
20956 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
20957   cat >>confdefs.h <<_ACEOF
20958 #define HAVE_GETLOCALENAME_L 1
20959 _ACEOF
20960
20961 fi
20962 done
20963
20964   fi
20965
20966           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
20967 "
20968 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
20969   ac_have_decl=1
20970 else
20971   ac_have_decl=0
20972 fi
20973
20974 cat >>confdefs.h <<_ACEOF
20975 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
20976 _ACEOF
20977 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
20978 "
20979 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
20980   ac_have_decl=1
20981 else
20982   ac_have_decl=0
20983 fi
20984
20985 cat >>confdefs.h <<_ACEOF
20986 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
20987 _ACEOF
20988
20989
20990
20991
20992                     for ac_prog in bison
20993 do
20994   # Extract the first word of "$ac_prog", so it can be a program name with args.
20995 set dummy $ac_prog; ac_word=$2
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20997 $as_echo_n "checking for $ac_word... " >&6; }
20998 if ${ac_cv_prog_INTLBISON+:} false; then :
20999   $as_echo_n "(cached) " >&6
21000 else
21001   if test -n "$INTLBISON"; then
21002   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
21003 else
21004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21005 for as_dir in $PATH
21006 do
21007   IFS=$as_save_IFS
21008   test -z "$as_dir" && as_dir=.
21009     for ac_exec_ext in '' $ac_executable_extensions; do
21010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21011     ac_cv_prog_INTLBISON="$ac_prog"
21012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21013     break 2
21014   fi
21015 done
21016   done
21017 IFS=$as_save_IFS
21018
21019 fi
21020 fi
21021 INTLBISON=$ac_cv_prog_INTLBISON
21022 if test -n "$INTLBISON"; then
21023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
21024 $as_echo "$INTLBISON" >&6; }
21025 else
21026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21027 $as_echo "no" >&6; }
21028 fi
21029
21030
21031   test -n "$INTLBISON" && break
21032 done
21033
21034   if test -z "$INTLBISON"; then
21035     ac_verc_fail=yes
21036   else
21037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
21038 $as_echo_n "checking version of bison... " >&6; }
21039     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21040     case $ac_prog_version in
21041       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21042       2.[7-9]* | [3-9].*)
21043          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21044       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21045     esac
21046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21047 $as_echo "$ac_prog_version" >&6; }
21048   fi
21049   if test $ac_verc_fail = yes; then
21050     INTLBISON=:
21051   fi
21052
21053
21054
21055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
21056 $as_echo_n "checking for long long int... " >&6; }
21057 if ${ac_cv_type_long_long_int+:} false; then :
21058   $as_echo_n "(cached) " >&6
21059 else
21060   ac_cv_type_long_long_int=yes
21061       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
21062         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
21063         if test $ac_cv_type_long_long_int = yes; then
21064                                         if test "$cross_compiling" = yes; then :
21065   :
21066 else
21067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21068 /* end confdefs.h.  */
21069 #include <limits.h>
21070                  #ifndef LLONG_MAX
21071                  # define HALF \
21072                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
21073                  # define LLONG_MAX (HALF - 1 + HALF)
21074                  #endif
21075 int
21076 main ()
21077 {
21078 long long int n = 1;
21079                  int i;
21080                  for (i = 0; ; i++)
21081                    {
21082                      long long int m = n << i;
21083                      if (m >> i != n)
21084                        return 1;
21085                      if (LLONG_MAX / 2 < m)
21086                        break;
21087                    }
21088                  return 0;
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 if ac_fn_c_try_run "$LINENO"; then :
21094
21095 else
21096   ac_cv_type_long_long_int=no
21097 fi
21098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21099   conftest.$ac_objext conftest.beam conftest.$ac_ext
21100 fi
21101
21102         fi
21103       fi
21104 fi
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
21106 $as_echo "$ac_cv_type_long_long_int" >&6; }
21107   if test $ac_cv_type_long_long_int = yes; then
21108
21109 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
21110
21111   fi
21112
21113
21114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21115 $as_echo_n "checking for wchar_t... " >&6; }
21116 if ${gt_cv_c_wchar_t+:} false; then :
21117   $as_echo_n "(cached) " >&6
21118 else
21119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h.  */
21121 #include <stddef.h>
21122             wchar_t foo = (wchar_t)'\0';
21123 int
21124 main ()
21125 {
21126
21127   ;
21128   return 0;
21129 }
21130 _ACEOF
21131 if ac_fn_c_try_compile "$LINENO"; then :
21132   gt_cv_c_wchar_t=yes
21133 else
21134   gt_cv_c_wchar_t=no
21135 fi
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 fi
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21139 $as_echo "$gt_cv_c_wchar_t" >&6; }
21140   if test $gt_cv_c_wchar_t = yes; then
21141
21142 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21143
21144   fi
21145
21146
21147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
21148 $as_echo_n "checking for wint_t... " >&6; }
21149 if ${gt_cv_c_wint_t+:} false; then :
21150   $as_echo_n "(cached) " >&6
21151 else
21152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h.  */
21154
21155 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21156    <wchar.h>.
21157    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
21158    before <wchar.h>.  */
21159 #include <stddef.h>
21160 #include <stdio.h>
21161 #include <time.h>
21162 #include <wchar.h>
21163             wint_t foo = (wchar_t)'\0';
21164 int
21165 main ()
21166 {
21167
21168   ;
21169   return 0;
21170 }
21171 _ACEOF
21172 if ac_fn_c_try_compile "$LINENO"; then :
21173   gt_cv_c_wint_t=yes
21174 else
21175   gt_cv_c_wint_t=no
21176 fi
21177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21178 fi
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
21180 $as_echo "$gt_cv_c_wint_t" >&6; }
21181   if test $gt_cv_c_wint_t = yes; then
21182
21183 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
21184
21185   fi
21186
21187
21188
21189
21190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
21191 $as_echo_n "checking for intmax_t... " >&6; }
21192 if ${gt_cv_c_intmax_t+:} false; then :
21193   $as_echo_n "(cached) " >&6
21194 else
21195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h.  */
21197
21198 #include <stddef.h>
21199 #include <stdlib.h>
21200 #if HAVE_STDINT_H_WITH_UINTMAX
21201 #include <stdint.h>
21202 #endif
21203 #if HAVE_INTTYPES_H_WITH_UINTMAX
21204 #include <inttypes.h>
21205 #endif
21206
21207 int
21208 main ()
21209 {
21210 intmax_t x = -1;
21211             return !x;
21212   ;
21213   return 0;
21214 }
21215 _ACEOF
21216 if ac_fn_c_try_compile "$LINENO"; then :
21217   gt_cv_c_intmax_t=yes
21218 else
21219   gt_cv_c_intmax_t=no
21220 fi
21221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21222 fi
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
21224 $as_echo "$gt_cv_c_intmax_t" >&6; }
21225   if test $gt_cv_c_intmax_t = yes; then
21226
21227 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
21228
21229   fi
21230
21231
21232
21233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
21234 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
21235 if ${gt_cv_func_printf_posix+:} false; then :
21236   $as_echo_n "(cached) " >&6
21237 else
21238
21239       if test "$cross_compiling" = yes; then :
21240
21241           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21242 /* end confdefs.h.  */
21243
21244 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
21245   notposix
21246 #endif
21247
21248 _ACEOF
21249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21250   $EGREP "notposix" >/dev/null 2>&1; then :
21251   gt_cv_func_printf_posix="guessing no"
21252 else
21253   gt_cv_func_printf_posix="guessing yes"
21254 fi
21255 rm -f conftest*
21256
21257
21258 else
21259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21260 /* end confdefs.h.  */
21261
21262 #include <stdio.h>
21263 #include <string.h>
21264 /* The string "%2$d %1$d", with dollar characters protected from the shell's
21265    dollar expansion (possibly an autoconf bug).  */
21266 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21267 static char buf[100];
21268 int main ()
21269 {
21270   sprintf (buf, format, 33, 55);
21271   return (strcmp (buf, "55 33") != 0);
21272 }
21273 _ACEOF
21274 if ac_fn_c_try_run "$LINENO"; then :
21275   gt_cv_func_printf_posix=yes
21276 else
21277   gt_cv_func_printf_posix=no
21278 fi
21279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21280   conftest.$ac_objext conftest.beam conftest.$ac_ext
21281 fi
21282
21283
21284 fi
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
21286 $as_echo "$gt_cv_func_printf_posix" >&6; }
21287   case $gt_cv_func_printf_posix in
21288     *yes)
21289
21290 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
21291
21292       ;;
21293   esac
21294
21295
21296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
21297 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
21298 if ${ac_cv_gnu_library_2_1+:} false; then :
21299   $as_echo_n "(cached) " >&6
21300 else
21301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21302 /* end confdefs.h.  */
21303
21304 #include <features.h>
21305 #ifdef __GNU_LIBRARY__
21306  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
21307   Lucky GNU user
21308  #endif
21309 #endif
21310 #ifdef __UCLIBC__
21311  Lucky user
21312 #endif
21313
21314 _ACEOF
21315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21316   $EGREP "Lucky" >/dev/null 2>&1; then :
21317   ac_cv_gnu_library_2_1=yes
21318 else
21319   ac_cv_gnu_library_2_1=no
21320 fi
21321 rm -f conftest*
21322
21323
21324
21325 fi
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
21327 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
21328
21329     GLIBC21="$ac_cv_gnu_library_2_1"
21330
21331
21332
21333   for ac_header in stdint.h
21334 do :
21335   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21336 if test "x$ac_cv_header_stdint_h" = xyes; then :
21337   cat >>confdefs.h <<_ACEOF
21338 #define HAVE_STDINT_H 1
21339 _ACEOF
21340
21341 fi
21342
21343 done
21344
21345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
21346 $as_echo_n "checking for SIZE_MAX... " >&6; }
21347 if ${gl_cv_size_max+:} false; then :
21348   $as_echo_n "(cached) " >&6
21349 else
21350
21351     gl_cv_size_max=
21352     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h.  */
21354
21355 #include <limits.h>
21356 #if HAVE_STDINT_H
21357 #include <stdint.h>
21358 #endif
21359 #ifdef SIZE_MAX
21360 Found it
21361 #endif
21362
21363 _ACEOF
21364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21365   $EGREP "Found it" >/dev/null 2>&1; then :
21366   gl_cv_size_max=yes
21367 fi
21368 rm -f conftest*
21369
21370     if test -z "$gl_cv_size_max"; then
21371                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
21372 #include <limits.h>"; then :
21373
21374 else
21375   size_t_bits_minus_1=
21376 fi
21377
21378       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
21379
21380 else
21381   fits_in_uint=
21382 fi
21383
21384       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
21385         if test $fits_in_uint = 1; then
21386                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387 /* end confdefs.h.  */
21388 #include <stddef.h>
21389                  extern size_t foo;
21390                  extern unsigned long foo;
21391
21392 int
21393 main ()
21394 {
21395
21396   ;
21397   return 0;
21398 }
21399 _ACEOF
21400 if ac_fn_c_try_compile "$LINENO"; then :
21401   fits_in_uint=0
21402 fi
21403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21404         fi
21405                                 if test $fits_in_uint = 1; then
21406           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
21407         else
21408           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
21409         fi
21410       else
21411                 gl_cv_size_max='((size_t)~(size_t)0)'
21412       fi
21413     fi
21414
21415 fi
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
21417 $as_echo "$gl_cv_size_max" >&6; }
21418   if test "$gl_cv_size_max" != yes; then
21419
21420 cat >>confdefs.h <<_ACEOF
21421 #define SIZE_MAX $gl_cv_size_max
21422 _ACEOF
21423
21424   fi
21425
21426
21427
21428
21429   for ac_header in stdint.h
21430 do :
21431   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21432 if test "x$ac_cv_header_stdint_h" = xyes; then :
21433   cat >>confdefs.h <<_ACEOF
21434 #define HAVE_STDINT_H 1
21435 _ACEOF
21436
21437 fi
21438
21439 done
21440
21441
21442
21443
21444
21445   for ac_func in $ac_func_list
21446 do :
21447   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21448 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21449 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21450   cat >>confdefs.h <<_ACEOF
21451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21452 _ACEOF
21453
21454 fi
21455 done
21456
21457
21458
21459
21460
21461
21462
21463
21464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
21465 $as_echo_n "checking for working fcntl.h... " >&6; }
21466 if ${gl_cv_header_working_fcntl_h+:} false; then :
21467   $as_echo_n "(cached) " >&6
21468 else
21469   if test "$cross_compiling" = yes; then :
21470   gl_cv_header_working_fcntl_h=cross-compiling
21471 else
21472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h.  */
21474 #include <sys/types.h>
21475            #include <sys/stat.h>
21476            #if HAVE_UNISTD_H
21477            # include <unistd.h>
21478            #else /* on Windows with MSVC */
21479            # include <io.h>
21480            # include <stdlib.h>
21481            # defined sleep(n) _sleep ((n) * 1000)
21482            #endif
21483            #include <fcntl.h>
21484            #ifndef O_NOATIME
21485             #define O_NOATIME 0
21486            #endif
21487            #ifndef O_NOFOLLOW
21488             #define O_NOFOLLOW 0
21489            #endif
21490            static int const constants[] =
21491             {
21492               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
21493               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
21494             };
21495
21496 int
21497 main ()
21498 {
21499
21500             int result = !constants;
21501             #if HAVE_SYMLINK
21502             {
21503               static char const sym[] = "conftest.sym";
21504               if (symlink ("/dev/null", sym) != 0)
21505                 result |= 2;
21506               else
21507                 {
21508                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
21509                   if (fd >= 0)
21510                     {
21511                       close (fd);
21512                       result |= 4;
21513                     }
21514                 }
21515               if (unlink (sym) != 0 || symlink (".", sym) != 0)
21516                 result |= 2;
21517               else
21518                 {
21519                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
21520                   if (fd >= 0)
21521                     {
21522                       close (fd);
21523                       result |= 4;
21524                     }
21525                 }
21526               unlink (sym);
21527             }
21528             #endif
21529             {
21530               static char const file[] = "confdefs.h";
21531               int fd = open (file, O_RDONLY | O_NOATIME);
21532               if (fd < 0)
21533                 result |= 8;
21534               else
21535                 {
21536                   struct stat st0;
21537                   if (fstat (fd, &st0) != 0)
21538                     result |= 16;
21539                   else
21540                     {
21541                       char c;
21542                       sleep (1);
21543                       if (read (fd, &c, 1) != 1)
21544                         result |= 24;
21545                       else
21546                         {
21547                           if (close (fd) != 0)
21548                             result |= 32;
21549                           else
21550                             {
21551                               struct stat st1;
21552                               if (stat (file, &st1) != 0)
21553                                 result |= 40;
21554                               else
21555                                 if (st0.st_atime != st1.st_atime)
21556                                   result |= 64;
21557                             }
21558                         }
21559                     }
21560                 }
21561             }
21562             return result;
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 if ac_fn_c_try_run "$LINENO"; then :
21568   gl_cv_header_working_fcntl_h=yes
21569 else
21570   case $? in #(
21571         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
21572         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
21573         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
21574          *) gl_cv_header_working_fcntl_h='no';;
21575         esac
21576 fi
21577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21578   conftest.$ac_objext conftest.beam conftest.$ac_ext
21579 fi
21580
21581 fi
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
21583 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
21584
21585   case $gl_cv_header_working_fcntl_h in #(
21586   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
21587   *) ac_val=1;;
21588   esac
21589
21590 cat >>confdefs.h <<_ACEOF
21591 #define HAVE_WORKING_O_NOATIME $ac_val
21592 _ACEOF
21593
21594
21595   case $gl_cv_header_working_fcntl_h in #(
21596   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
21597   *) ac_val=1;;
21598   esac
21599
21600 cat >>confdefs.h <<_ACEOF
21601 #define HAVE_WORKING_O_NOFOLLOW $ac_val
21602 _ACEOF
21603
21604
21605
21606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21607 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21608 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21609   $as_echo_n "(cached) " >&6
21610 else
21611   gt_save_LIBS="$LIBS"
21612      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21613      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21614 /* end confdefs.h.  */
21615 #include <CoreFoundation/CFPreferences.h>
21616 int
21617 main ()
21618 {
21619 CFPreferencesCopyAppValue(NULL, NULL)
21620   ;
21621   return 0;
21622 }
21623 _ACEOF
21624 if ac_fn_c_try_link "$LINENO"; then :
21625   gt_cv_func_CFPreferencesCopyAppValue=yes
21626 else
21627   gt_cv_func_CFPreferencesCopyAppValue=no
21628 fi
21629 rm -f core conftest.err conftest.$ac_objext \
21630     conftest$ac_exeext conftest.$ac_ext
21631      LIBS="$gt_save_LIBS"
21632 fi
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21634 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21635   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21636
21637 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21638
21639   fi
21640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21641 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21642 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21643   $as_echo_n "(cached) " >&6
21644 else
21645   gt_save_LIBS="$LIBS"
21646      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21647      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21648 /* end confdefs.h.  */
21649 #include <CoreFoundation/CFLocale.h>
21650 int
21651 main ()
21652 {
21653 CFLocaleCopyCurrent();
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 if ac_fn_c_try_link "$LINENO"; then :
21659   gt_cv_func_CFLocaleCopyCurrent=yes
21660 else
21661   gt_cv_func_CFLocaleCopyCurrent=no
21662 fi
21663 rm -f core conftest.err conftest.$ac_objext \
21664     conftest$ac_exeext conftest.$ac_ext
21665      LIBS="$gt_save_LIBS"
21666 fi
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21668 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21669   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21670
21671 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21672
21673   fi
21674   INTL_MACOSX_LIBS=
21675   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21676     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21677   fi
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690     case "$enable_silent_rules" in
21691     yes) INTL_DEFAULT_VERBOSITY=0;;
21692     no)  INTL_DEFAULT_VERBOSITY=1;;
21693     *)   INTL_DEFAULT_VERBOSITY=1;;
21694   esac
21695
21696
21697   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
21698 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
21699
21700 else
21701
21702 $as_echo "#define ptrdiff_t long" >>confdefs.h
21703
21704
21705 fi
21706
21707   for ac_header in features.h stddef.h stdlib.h string.h
21708 do :
21709   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21710 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21711 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21712   cat >>confdefs.h <<_ACEOF
21713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21714 _ACEOF
21715
21716 fi
21717
21718 done
21719
21720   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
21721     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
21722 do :
21723   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21725 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21726   cat >>confdefs.h <<_ACEOF
21727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21728 _ACEOF
21729
21730 fi
21731 done
21732
21733
21734       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
21735 "
21736 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
21737   ac_have_decl=1
21738 else
21739   ac_have_decl=0
21740 fi
21741
21742 cat >>confdefs.h <<_ACEOF
21743 #define HAVE_DECL__SNPRINTF $ac_have_decl
21744 _ACEOF
21745 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
21746 "
21747 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
21748   ac_have_decl=1
21749 else
21750   ac_have_decl=0
21751 fi
21752
21753 cat >>confdefs.h <<_ACEOF
21754 #define HAVE_DECL__SNWPRINTF $ac_have_decl
21755 _ACEOF
21756
21757
21758           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
21759 "
21760 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
21761   ac_have_decl=1
21762 else
21763   ac_have_decl=0
21764 fi
21765
21766 cat >>confdefs.h <<_ACEOF
21767 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
21768 _ACEOF
21769
21770
21771   case $gt_cv_func_printf_posix in
21772     *yes) HAVE_POSIX_PRINTF=1 ;;
21773     *) HAVE_POSIX_PRINTF=0 ;;
21774   esac
21775
21776   if test "$ac_cv_func_asprintf" = yes; then
21777     HAVE_ASPRINTF=1
21778   else
21779     HAVE_ASPRINTF=0
21780   fi
21781
21782   if test "$ac_cv_func_snprintf" = yes; then
21783     HAVE_SNPRINTF=1
21784   else
21785     HAVE_SNPRINTF=0
21786   fi
21787
21788   if test "$ac_cv_func_newlocale" = yes; then
21789     HAVE_NEWLOCALE=1
21790   else
21791     HAVE_NEWLOCALE=0
21792   fi
21793
21794   if test "$ac_cv_func_wprintf" = yes; then
21795     HAVE_WPRINTF=1
21796   else
21797     HAVE_WPRINTF=0
21798   fi
21799
21800
21801
21802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
21803 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
21804 if ${am_cv_langinfo_codeset+:} false; then :
21805   $as_echo_n "(cached) " >&6
21806 else
21807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h.  */
21809 #include <langinfo.h>
21810 int
21811 main ()
21812 {
21813 char* cs = nl_langinfo(CODESET); return !cs;
21814   ;
21815   return 0;
21816 }
21817 _ACEOF
21818 if ac_fn_c_try_link "$LINENO"; then :
21819   am_cv_langinfo_codeset=yes
21820 else
21821   am_cv_langinfo_codeset=no
21822 fi
21823 rm -f core conftest.err conftest.$ac_objext \
21824     conftest$ac_exeext conftest.$ac_ext
21825
21826 fi
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
21828 $as_echo "$am_cv_langinfo_codeset" >&6; }
21829   if test $am_cv_langinfo_codeset = yes; then
21830
21831 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
21832
21833   fi
21834
21835
21836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21837 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21838 if ${gt_cv_val_LC_MESSAGES+:} false; then :
21839   $as_echo_n "(cached) " >&6
21840 else
21841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21842 /* end confdefs.h.  */
21843 #include <locale.h>
21844 int
21845 main ()
21846 {
21847 return LC_MESSAGES
21848   ;
21849   return 0;
21850 }
21851 _ACEOF
21852 if ac_fn_c_try_link "$LINENO"; then :
21853   gt_cv_val_LC_MESSAGES=yes
21854 else
21855   gt_cv_val_LC_MESSAGES=no
21856 fi
21857 rm -f core conftest.err conftest.$ac_objext \
21858     conftest$ac_exeext conftest.$ac_ext
21859 fi
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
21861 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
21862   if test $gt_cv_val_LC_MESSAGES = yes; then
21863
21864 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21865
21866   fi
21867
21868
21869                 if test "$enable_shared" = yes; then
21870     case "$host_os" in
21871       mingw* | cygwin*) is_woe32dll=yes ;;
21872       *) is_woe32dll=no ;;
21873     esac
21874   else
21875     is_woe32dll=no
21876   fi
21877   WOE32DLL=$is_woe32dll
21878
21879
21880       case "$host_os" in
21881     mingw* | cygwin*) is_woe32=yes ;;
21882     *) is_woe32=no ;;
21883   esac
21884   WOE32=$is_woe32
21885
21886   if test $WOE32 = yes; then
21887         if test -n "$ac_tool_prefix"; then
21888   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
21889 set dummy ${ac_tool_prefix}windres; ac_word=$2
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21891 $as_echo_n "checking for $ac_word... " >&6; }
21892 if ${ac_cv_prog_WINDRES+:} false; then :
21893   $as_echo_n "(cached) " >&6
21894 else
21895   if test -n "$WINDRES"; then
21896   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
21897 else
21898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21899 for as_dir in $PATH
21900 do
21901   IFS=$as_save_IFS
21902   test -z "$as_dir" && as_dir=.
21903     for ac_exec_ext in '' $ac_executable_extensions; do
21904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21905     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
21906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21907     break 2
21908   fi
21909 done
21910   done
21911 IFS=$as_save_IFS
21912
21913 fi
21914 fi
21915 WINDRES=$ac_cv_prog_WINDRES
21916 if test -n "$WINDRES"; then
21917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
21918 $as_echo "$WINDRES" >&6; }
21919 else
21920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21921 $as_echo "no" >&6; }
21922 fi
21923
21924
21925 fi
21926 if test -z "$ac_cv_prog_WINDRES"; then
21927   ac_ct_WINDRES=$WINDRES
21928   # Extract the first word of "windres", so it can be a program name with args.
21929 set dummy windres; ac_word=$2
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21931 $as_echo_n "checking for $ac_word... " >&6; }
21932 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
21933   $as_echo_n "(cached) " >&6
21934 else
21935   if test -n "$ac_ct_WINDRES"; then
21936   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
21937 else
21938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21939 for as_dir in $PATH
21940 do
21941   IFS=$as_save_IFS
21942   test -z "$as_dir" && as_dir=.
21943     for ac_exec_ext in '' $ac_executable_extensions; do
21944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21945     ac_cv_prog_ac_ct_WINDRES="windres"
21946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21947     break 2
21948   fi
21949 done
21950   done
21951 IFS=$as_save_IFS
21952
21953 fi
21954 fi
21955 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
21956 if test -n "$ac_ct_WINDRES"; then
21957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
21958 $as_echo "$ac_ct_WINDRES" >&6; }
21959 else
21960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21961 $as_echo "no" >&6; }
21962 fi
21963
21964   if test "x$ac_ct_WINDRES" = x; then
21965     WINDRES=""
21966   else
21967     case $cross_compiling:$ac_tool_warned in
21968 yes:)
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21971 ac_tool_warned=yes ;;
21972 esac
21973     WINDRES=$ac_ct_WINDRES
21974   fi
21975 else
21976   WINDRES="$ac_cv_prog_WINDRES"
21977 fi
21978
21979   fi
21980
21981               case "$host_os" in
21982     hpux*) LTLIBC="" ;;
21983     *)     LTLIBC="-lc" ;;
21984   esac
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
22013 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
22014 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
22015   $as_echo_n "(cached) " >&6
22016 else
22017   gt_save_LIBS="$LIBS"
22018      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22019      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h.  */
22021 #include <CoreFoundation/CFPreferences.h>
22022 int
22023 main ()
22024 {
22025 CFPreferencesCopyAppValue(NULL, NULL)
22026   ;
22027   return 0;
22028 }
22029 _ACEOF
22030 if ac_fn_c_try_link "$LINENO"; then :
22031   gt_cv_func_CFPreferencesCopyAppValue=yes
22032 else
22033   gt_cv_func_CFPreferencesCopyAppValue=no
22034 fi
22035 rm -f core conftest.err conftest.$ac_objext \
22036     conftest$ac_exeext conftest.$ac_ext
22037      LIBS="$gt_save_LIBS"
22038 fi
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22040 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22041   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22042
22043 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
22044
22045   fi
22046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
22047 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
22048 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
22049   $as_echo_n "(cached) " >&6
22050 else
22051   gt_save_LIBS="$LIBS"
22052      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22053      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22054 /* end confdefs.h.  */
22055 #include <CoreFoundation/CFLocale.h>
22056 int
22057 main ()
22058 {
22059 CFLocaleCopyCurrent();
22060   ;
22061   return 0;
22062 }
22063 _ACEOF
22064 if ac_fn_c_try_link "$LINENO"; then :
22065   gt_cv_func_CFLocaleCopyCurrent=yes
22066 else
22067   gt_cv_func_CFLocaleCopyCurrent=no
22068 fi
22069 rm -f core conftest.err conftest.$ac_objext \
22070     conftest$ac_exeext conftest.$ac_ext
22071      LIBS="$gt_save_LIBS"
22072 fi
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
22074 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
22075   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22076
22077 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
22078
22079   fi
22080   INTL_MACOSX_LIBS=
22081   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22082     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
22083   fi
22084
22085
22086
22087
22088
22089
22090     BUILD_INCLUDED_LIBINTL=no
22091     USE_INCLUDED_LIBINTL=no
22092
22093   LIBINTL=
22094   LTLIBINTL=
22095   POSUB=
22096
22097     case " $gt_needs " in
22098     *" need-formatstring-macros "*) gt_api_version=3 ;;
22099     *" need-ngettext "*) gt_api_version=2 ;;
22100     *) gt_api_version=1 ;;
22101   esac
22102   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
22103   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
22104
22105     if test "$USE_NLS" = "yes"; then
22106     gt_use_preinstalled_gnugettext=no
22107
22108       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
22109 $as_echo_n "checking whether included gettext is requested... " >&6; }
22110
22111 # Check whether --with-included-gettext was given.
22112 if test "${with_included_gettext+set}" = set; then :
22113   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
22114 else
22115   nls_cv_force_use_gnu_gettext=no
22116 fi
22117
22118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
22119 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
22120
22121       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
22122       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
22123
22124
22125         if test $gt_api_version -ge 3; then
22126           gt_revision_test_code='
22127 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
22128 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
22129 #endif
22130 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
22131 '
22132         else
22133           gt_revision_test_code=
22134         fi
22135         if test $gt_api_version -ge 2; then
22136           gt_expression_test_code=' + * ngettext ("", "", 0)'
22137         else
22138           gt_expression_test_code=
22139         fi
22140
22141         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
22142 $as_echo_n "checking for GNU gettext in libc... " >&6; }
22143 if eval \${$gt_func_gnugettext_libc+:} false; then :
22144   $as_echo_n "(cached) " >&6
22145 else
22146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22147 /* end confdefs.h.  */
22148
22149 #include <libintl.h>
22150 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
22151 extern int _nl_msg_cat_cntr;
22152 extern int *_nl_domain_bindings;
22153 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
22154 #else
22155 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
22156 #endif
22157 $gt_revision_test_code
22158
22159 int
22160 main ()
22161 {
22162
22163 bindtextdomain ("", "");
22164 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
22165
22166   ;
22167   return 0;
22168 }
22169 _ACEOF
22170 if ac_fn_c_try_link "$LINENO"; then :
22171   eval "$gt_func_gnugettext_libc=yes"
22172 else
22173   eval "$gt_func_gnugettext_libc=no"
22174 fi
22175 rm -f core conftest.err conftest.$ac_objext \
22176     conftest$ac_exeext conftest.$ac_ext
22177 fi
22178 eval ac_res=\$$gt_func_gnugettext_libc
22179                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22180 $as_echo "$ac_res" >&6; }
22181
22182         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
22183
22184
22185
22186
22187
22188
22189
22190
22191     use_additional=yes
22192
22193   acl_save_prefix="$prefix"
22194   prefix="$acl_final_prefix"
22195   acl_save_exec_prefix="$exec_prefix"
22196   exec_prefix="$acl_final_exec_prefix"
22197
22198     eval additional_includedir=\"$includedir\"
22199     eval additional_libdir=\"$libdir\"
22200
22201   exec_prefix="$acl_save_exec_prefix"
22202   prefix="$acl_save_prefix"
22203
22204
22205 # Check whether --with-libintl-prefix was given.
22206 if test "${with_libintl_prefix+set}" = set; then :
22207   withval=$with_libintl_prefix;
22208     if test "X$withval" = "Xno"; then
22209       use_additional=no
22210     else
22211       if test "X$withval" = "X"; then
22212
22213   acl_save_prefix="$prefix"
22214   prefix="$acl_final_prefix"
22215   acl_save_exec_prefix="$exec_prefix"
22216   exec_prefix="$acl_final_exec_prefix"
22217
22218           eval additional_includedir=\"$includedir\"
22219           eval additional_libdir=\"$libdir\"
22220
22221   exec_prefix="$acl_save_exec_prefix"
22222   prefix="$acl_save_prefix"
22223
22224       else
22225         additional_includedir="$withval/include"
22226         additional_libdir="$withval/$acl_libdirstem"
22227         if test "$acl_libdirstem2" != "$acl_libdirstem" \
22228            && ! test -d "$withval/$acl_libdirstem"; then
22229           additional_libdir="$withval/$acl_libdirstem2"
22230         fi
22231       fi
22232     fi
22233
22234 fi
22235
22236       LIBINTL=
22237   LTLIBINTL=
22238   INCINTL=
22239   LIBINTL_PREFIX=
22240       HAVE_LIBINTL=
22241   rpathdirs=
22242   ltrpathdirs=
22243   names_already_handled=
22244   names_next_round='intl '
22245   while test -n "$names_next_round"; do
22246     names_this_round="$names_next_round"
22247     names_next_round=
22248     for name in $names_this_round; do
22249       already_handled=
22250       for n in $names_already_handled; do
22251         if test "$n" = "$name"; then
22252           already_handled=yes
22253           break
22254         fi
22255       done
22256       if test -z "$already_handled"; then
22257         names_already_handled="$names_already_handled $name"
22258                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
22259         eval value=\"\$HAVE_LIB$uppername\"
22260         if test -n "$value"; then
22261           if test "$value" = yes; then
22262             eval value=\"\$LIB$uppername\"
22263             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
22264             eval value=\"\$LTLIB$uppername\"
22265             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
22266           else
22267                                     :
22268           fi
22269         else
22270                               found_dir=
22271           found_la=
22272           found_so=
22273           found_a=
22274           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
22275           if test -n "$acl_shlibext"; then
22276             shrext=".$acl_shlibext"             # typically: shrext=.so
22277           else
22278             shrext=
22279           fi
22280           if test $use_additional = yes; then
22281             dir="$additional_libdir"
22282                                     if test -n "$acl_shlibext"; then
22283               if test -f "$dir/$libname$shrext"; then
22284                 found_dir="$dir"
22285                 found_so="$dir/$libname$shrext"
22286               else
22287                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22288                   ver=`(cd "$dir" && \
22289                         for f in "$libname$shrext".*; do echo "$f"; done \
22290                         | sed -e "s,^$libname$shrext\\\\.,," \
22291                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22292                         | sed 1q ) 2>/dev/null`
22293                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22294                     found_dir="$dir"
22295                     found_so="$dir/$libname$shrext.$ver"
22296                   fi
22297                 else
22298                   eval library_names=\"$acl_library_names_spec\"
22299                   for f in $library_names; do
22300                     if test -f "$dir/$f"; then
22301                       found_dir="$dir"
22302                       found_so="$dir/$f"
22303                       break
22304                     fi
22305                   done
22306                 fi
22307               fi
22308             fi
22309                         if test "X$found_dir" = "X"; then
22310               if test -f "$dir/$libname.$acl_libext"; then
22311                 found_dir="$dir"
22312                 found_a="$dir/$libname.$acl_libext"
22313               fi
22314             fi
22315             if test "X$found_dir" != "X"; then
22316               if test -f "$dir/$libname.la"; then
22317                 found_la="$dir/$libname.la"
22318               fi
22319             fi
22320           fi
22321           if test "X$found_dir" = "X"; then
22322             for x in $LDFLAGS $LTLIBINTL; do
22323
22324   acl_save_prefix="$prefix"
22325   prefix="$acl_final_prefix"
22326   acl_save_exec_prefix="$exec_prefix"
22327   exec_prefix="$acl_final_exec_prefix"
22328   eval x=\"$x\"
22329   exec_prefix="$acl_save_exec_prefix"
22330   prefix="$acl_save_prefix"
22331
22332               case "$x" in
22333                 -L*)
22334                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22335                                     if test -n "$acl_shlibext"; then
22336                     if test -f "$dir/$libname$shrext"; then
22337                       found_dir="$dir"
22338                       found_so="$dir/$libname$shrext"
22339                     else
22340                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22341                         ver=`(cd "$dir" && \
22342                               for f in "$libname$shrext".*; do echo "$f"; done \
22343                               | sed -e "s,^$libname$shrext\\\\.,," \
22344                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22345                               | sed 1q ) 2>/dev/null`
22346                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22347                           found_dir="$dir"
22348                           found_so="$dir/$libname$shrext.$ver"
22349                         fi
22350                       else
22351                         eval library_names=\"$acl_library_names_spec\"
22352                         for f in $library_names; do
22353                           if test -f "$dir/$f"; then
22354                             found_dir="$dir"
22355                             found_so="$dir/$f"
22356                             break
22357                           fi
22358                         done
22359                       fi
22360                     fi
22361                   fi
22362                                     if test "X$found_dir" = "X"; then
22363                     if test -f "$dir/$libname.$acl_libext"; then
22364                       found_dir="$dir"
22365                       found_a="$dir/$libname.$acl_libext"
22366                     fi
22367                   fi
22368                   if test "X$found_dir" != "X"; then
22369                     if test -f "$dir/$libname.la"; then
22370                       found_la="$dir/$libname.la"
22371                     fi
22372                   fi
22373                   ;;
22374               esac
22375               if test "X$found_dir" != "X"; then
22376                 break
22377               fi
22378             done
22379           fi
22380           if test "X$found_dir" != "X"; then
22381                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
22382             if test "X$found_so" != "X"; then
22383                                                         if test "$enable_rpath" = no \
22384                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22385                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
22386                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22387               else
22388                                                                                 haveit=
22389                 for x in $ltrpathdirs; do
22390                   if test "X$x" = "X$found_dir"; then
22391                     haveit=yes
22392                     break
22393                   fi
22394                 done
22395                 if test -z "$haveit"; then
22396                   ltrpathdirs="$ltrpathdirs $found_dir"
22397                 fi
22398                                 if test "$acl_hardcode_direct" = yes; then
22399                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22400                 else
22401                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22402                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22403                                                             haveit=
22404                     for x in $rpathdirs; do
22405                       if test "X$x" = "X$found_dir"; then
22406                         haveit=yes
22407                         break
22408                       fi
22409                     done
22410                     if test -z "$haveit"; then
22411                       rpathdirs="$rpathdirs $found_dir"
22412                     fi
22413                   else
22414                                                                                 haveit=
22415                     for x in $LDFLAGS $LIBINTL; do
22416
22417   acl_save_prefix="$prefix"
22418   prefix="$acl_final_prefix"
22419   acl_save_exec_prefix="$exec_prefix"
22420   exec_prefix="$acl_final_exec_prefix"
22421   eval x=\"$x\"
22422   exec_prefix="$acl_save_exec_prefix"
22423   prefix="$acl_save_prefix"
22424
22425                       if test "X$x" = "X-L$found_dir"; then
22426                         haveit=yes
22427                         break
22428                       fi
22429                     done
22430                     if test -z "$haveit"; then
22431                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
22432                     fi
22433                     if test "$acl_hardcode_minus_L" != no; then
22434                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22435                     else
22436                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22437                     fi
22438                   fi
22439                 fi
22440               fi
22441             else
22442               if test "X$found_a" != "X"; then
22443                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
22444               else
22445                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
22446               fi
22447             fi
22448                         additional_includedir=
22449             case "$found_dir" in
22450               */$acl_libdirstem | */$acl_libdirstem/)
22451                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22452                 if test "$name" = 'intl'; then
22453                   LIBINTL_PREFIX="$basedir"
22454                 fi
22455                 additional_includedir="$basedir/include"
22456                 ;;
22457               */$acl_libdirstem2 | */$acl_libdirstem2/)
22458                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
22459                 if test "$name" = 'intl'; then
22460                   LIBINTL_PREFIX="$basedir"
22461                 fi
22462                 additional_includedir="$basedir/include"
22463                 ;;
22464             esac
22465             if test "X$additional_includedir" != "X"; then
22466                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22467                 haveit=
22468                 if test "X$additional_includedir" = "X/usr/local/include"; then
22469                   if test -n "$GCC"; then
22470                     case $host_os in
22471                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22472                     esac
22473                   fi
22474                 fi
22475                 if test -z "$haveit"; then
22476                   for x in $CPPFLAGS $INCINTL; do
22477
22478   acl_save_prefix="$prefix"
22479   prefix="$acl_final_prefix"
22480   acl_save_exec_prefix="$exec_prefix"
22481   exec_prefix="$acl_final_exec_prefix"
22482   eval x=\"$x\"
22483   exec_prefix="$acl_save_exec_prefix"
22484   prefix="$acl_save_prefix"
22485
22486                     if test "X$x" = "X-I$additional_includedir"; then
22487                       haveit=yes
22488                       break
22489                     fi
22490                   done
22491                   if test -z "$haveit"; then
22492                     if test -d "$additional_includedir"; then
22493                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
22494                     fi
22495                   fi
22496                 fi
22497               fi
22498             fi
22499                         if test -n "$found_la"; then
22500                                                         save_libdir="$libdir"
22501               case "$found_la" in
22502                 */* | *\\*) . "$found_la" ;;
22503                 *) . "./$found_la" ;;
22504               esac
22505               libdir="$save_libdir"
22506                             for dep in $dependency_libs; do
22507                 case "$dep" in
22508                   -L*)
22509                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22510                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
22511                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
22512                       haveit=
22513                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
22514                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
22515                         if test -n "$GCC"; then
22516                           case $host_os in
22517                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22518                           esac
22519                         fi
22520                       fi
22521                       if test -z "$haveit"; then
22522                         haveit=
22523                         for x in $LDFLAGS $LIBINTL; do
22524
22525   acl_save_prefix="$prefix"
22526   prefix="$acl_final_prefix"
22527   acl_save_exec_prefix="$exec_prefix"
22528   exec_prefix="$acl_final_exec_prefix"
22529   eval x=\"$x\"
22530   exec_prefix="$acl_save_exec_prefix"
22531   prefix="$acl_save_prefix"
22532
22533                           if test "X$x" = "X-L$additional_libdir"; then
22534                             haveit=yes
22535                             break
22536                           fi
22537                         done
22538                         if test -z "$haveit"; then
22539                           if test -d "$additional_libdir"; then
22540                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
22541                           fi
22542                         fi
22543                         haveit=
22544                         for x in $LDFLAGS $LTLIBINTL; do
22545
22546   acl_save_prefix="$prefix"
22547   prefix="$acl_final_prefix"
22548   acl_save_exec_prefix="$exec_prefix"
22549   exec_prefix="$acl_final_exec_prefix"
22550   eval x=\"$x\"
22551   exec_prefix="$acl_save_exec_prefix"
22552   prefix="$acl_save_prefix"
22553
22554                           if test "X$x" = "X-L$additional_libdir"; then
22555                             haveit=yes
22556                             break
22557                           fi
22558                         done
22559                         if test -z "$haveit"; then
22560                           if test -d "$additional_libdir"; then
22561                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
22562                           fi
22563                         fi
22564                       fi
22565                     fi
22566                     ;;
22567                   -R*)
22568                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22569                     if test "$enable_rpath" != no; then
22570                                                                   haveit=
22571                       for x in $rpathdirs; do
22572                         if test "X$x" = "X$dir"; then
22573                           haveit=yes
22574                           break
22575                         fi
22576                       done
22577                       if test -z "$haveit"; then
22578                         rpathdirs="$rpathdirs $dir"
22579                       fi
22580                                                                   haveit=
22581                       for x in $ltrpathdirs; do
22582                         if test "X$x" = "X$dir"; then
22583                           haveit=yes
22584                           break
22585                         fi
22586                       done
22587                       if test -z "$haveit"; then
22588                         ltrpathdirs="$ltrpathdirs $dir"
22589                       fi
22590                     fi
22591                     ;;
22592                   -l*)
22593                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22594                     ;;
22595                   *.la)
22596                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22597                     ;;
22598                   *)
22599                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
22600                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
22601                     ;;
22602                 esac
22603               done
22604             fi
22605           else
22606                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22607             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
22608           fi
22609         fi
22610       fi
22611     done
22612   done
22613   if test "X$rpathdirs" != "X"; then
22614     if test -n "$acl_hardcode_libdir_separator"; then
22615                         alldirs=
22616       for found_dir in $rpathdirs; do
22617         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22618       done
22619             acl_save_libdir="$libdir"
22620       libdir="$alldirs"
22621       eval flag=\"$acl_hardcode_libdir_flag_spec\"
22622       libdir="$acl_save_libdir"
22623       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22624     else
22625             for found_dir in $rpathdirs; do
22626         acl_save_libdir="$libdir"
22627         libdir="$found_dir"
22628         eval flag=\"$acl_hardcode_libdir_flag_spec\"
22629         libdir="$acl_save_libdir"
22630         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22631       done
22632     fi
22633   fi
22634   if test "X$ltrpathdirs" != "X"; then
22635             for found_dir in $ltrpathdirs; do
22636       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
22637     done
22638   fi
22639
22640
22641
22642
22643
22644
22645           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
22646 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
22647 if eval \${$gt_func_gnugettext_libintl+:} false; then :
22648   $as_echo_n "(cached) " >&6
22649 else
22650   gt_save_CPPFLAGS="$CPPFLAGS"
22651             CPPFLAGS="$CPPFLAGS $INCINTL"
22652             gt_save_LIBS="$LIBS"
22653             LIBS="$LIBS $LIBINTL"
22654                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655 /* end confdefs.h.  */
22656
22657 #include <libintl.h>
22658 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
22659 extern int _nl_msg_cat_cntr;
22660 extern
22661 #ifdef __cplusplus
22662 "C"
22663 #endif
22664 const char *_nl_expand_alias (const char *);
22665 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
22666 #else
22667 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
22668 #endif
22669 $gt_revision_test_code
22670
22671 int
22672 main ()
22673 {
22674
22675 bindtextdomain ("", "");
22676 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
22677
22678   ;
22679   return 0;
22680 }
22681 _ACEOF
22682 if ac_fn_c_try_link "$LINENO"; then :
22683   eval "$gt_func_gnugettext_libintl=yes"
22684 else
22685   eval "$gt_func_gnugettext_libintl=no"
22686 fi
22687 rm -f core conftest.err conftest.$ac_objext \
22688     conftest$ac_exeext conftest.$ac_ext
22689                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
22690               LIBS="$LIBS $LIBICONV"
22691               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692 /* end confdefs.h.  */
22693
22694 #include <libintl.h>
22695 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
22696 extern int _nl_msg_cat_cntr;
22697 extern
22698 #ifdef __cplusplus
22699 "C"
22700 #endif
22701 const char *_nl_expand_alias (const char *);
22702 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
22703 #else
22704 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
22705 #endif
22706 $gt_revision_test_code
22707
22708 int
22709 main ()
22710 {
22711
22712 bindtextdomain ("", "");
22713 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
22714
22715   ;
22716   return 0;
22717 }
22718 _ACEOF
22719 if ac_fn_c_try_link "$LINENO"; then :
22720   LIBINTL="$LIBINTL $LIBICONV"
22721                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22722                  eval "$gt_func_gnugettext_libintl=yes"
22723
22724 fi
22725 rm -f core conftest.err conftest.$ac_objext \
22726     conftest$ac_exeext conftest.$ac_ext
22727             fi
22728             CPPFLAGS="$gt_save_CPPFLAGS"
22729             LIBS="$gt_save_LIBS"
22730 fi
22731 eval ac_res=\$$gt_func_gnugettext_libintl
22732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22733 $as_echo "$ac_res" >&6; }
22734         fi
22735
22736                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
22737            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
22738                 && test "$PACKAGE" != gettext-runtime \
22739                 && test "$PACKAGE" != gettext-tools; }; then
22740           gt_use_preinstalled_gnugettext=yes
22741         else
22742                     LIBINTL=
22743           LTLIBINTL=
22744           INCINTL=
22745         fi
22746
22747
22748         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
22749                               nls_cv_use_gnu_gettext=yes
22750         fi
22751       fi
22752
22753       if test "$nls_cv_use_gnu_gettext" = "yes"; then
22754                 BUILD_INCLUDED_LIBINTL=yes
22755         USE_INCLUDED_LIBINTL=yes
22756         LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
22757         LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
22758         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
22759       fi
22760
22761       CATOBJEXT=
22762       if test "$gt_use_preinstalled_gnugettext" = "yes" \
22763          || test "$nls_cv_use_gnu_gettext" = "yes"; then
22764                 CATOBJEXT=.gmo
22765       fi
22766
22767
22768     if test -n "$INTL_MACOSX_LIBS"; then
22769       if test "$gt_use_preinstalled_gnugettext" = "yes" \
22770          || test "$nls_cv_use_gnu_gettext" = "yes"; then
22771                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
22772         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
22773       fi
22774     fi
22775
22776     if test "$gt_use_preinstalled_gnugettext" = "yes" \
22777        || test "$nls_cv_use_gnu_gettext" = "yes"; then
22778
22779 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
22780
22781     else
22782       USE_NLS=no
22783     fi
22784   fi
22785
22786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
22787 $as_echo_n "checking whether to use NLS... " >&6; }
22788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
22789 $as_echo "$USE_NLS" >&6; }
22790   if test "$USE_NLS" = "yes"; then
22791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
22792 $as_echo_n "checking where the gettext function comes from... " >&6; }
22793     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22794       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22795         gt_source="external libintl"
22796       else
22797         gt_source="libc"
22798       fi
22799     else
22800       gt_source="included intl directory"
22801     fi
22802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
22803 $as_echo "$gt_source" >&6; }
22804   fi
22805
22806   if test "$USE_NLS" = "yes"; then
22807
22808     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22809       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
22811 $as_echo_n "checking how to link with libintl... " >&6; }
22812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
22813 $as_echo "$LIBINTL" >&6; }
22814
22815   for element in $INCINTL; do
22816     haveit=
22817     for x in $CPPFLAGS; do
22818
22819   acl_save_prefix="$prefix"
22820   prefix="$acl_final_prefix"
22821   acl_save_exec_prefix="$exec_prefix"
22822   exec_prefix="$acl_final_exec_prefix"
22823   eval x=\"$x\"
22824   exec_prefix="$acl_save_exec_prefix"
22825   prefix="$acl_save_prefix"
22826
22827       if test "X$x" = "X$element"; then
22828         haveit=yes
22829         break
22830       fi
22831     done
22832     if test -z "$haveit"; then
22833       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22834     fi
22835   done
22836
22837       fi
22838
22839
22840 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
22841
22842
22843 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
22844
22845     fi
22846
22847         POSUB=po
22848   fi
22849
22850
22851             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
22852       BUILD_INCLUDED_LIBINTL=yes
22853     fi
22854
22855
22856
22857
22858
22859         nls_cv_header_intl=
22860     nls_cv_header_libgt=
22861
22862         DATADIRNAME=share
22863
22864
22865         INSTOBJEXT=.mo
22866
22867
22868         GENCAT=gencat
22869
22870
22871         INTLOBJS=
22872     if test "$USE_INCLUDED_LIBINTL" = yes; then
22873       INTLOBJS="\$(GETTOBJS)"
22874     fi
22875
22876
22877         INTL_LIBTOOL_SUFFIX_PREFIX=l
22878
22879
22880
22881     INTLLIBS="$LIBINTL"
22882
22883
22884
22885
22886
22887
22888
22889
22890   if test -z "$USE_NLS"; then
22891     echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
22892     exit 1
22893   fi
22894   BISON_LOCALEDIR=
22895   BISON_USE_NLS=no
22896   if test "$USE_NLS" = yes; then
22897                         if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
22898       BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
22899     fi
22900
22901     if test -n "$BISON_LOCALEDIR"; then
22902                               USER_LINGUAS="${LINGUAS-%UNSET%}"
22903       if test -n "$USER_LINGUAS"; then
22904         BISON_USE_NLS=yes
22905       fi
22906     fi
22907   fi
22908   if test $BISON_USE_NLS = yes; then
22909
22910 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
22911
22912   fi
22913
22914
22915 MSGMERGE_LIBM=?
22916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22917 /* end confdefs.h.  */
22918
22919    #ifndef __NO_MATH_INLINES
22920    # define __NO_MATH_INLINES 1 /* for glibc */
22921    #endif
22922    #include <math.h>
22923    double x;
22924 int
22925 main ()
22926 {
22927 x = ceil(x); x = sqrt(x);
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 if ac_fn_c_try_link "$LINENO"; then :
22933   MSGMERGE_LIBM=
22934 fi
22935 rm -f core conftest.err conftest.$ac_objext \
22936     conftest$ac_exeext conftest.$ac_ext
22937 if test "$MSGMERGE_LIBM" = "?"; then
22938   save_LIBS="$LIBS"
22939   LIBS="$LIBS -lm"
22940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h.  */
22942
22943      #ifndef __NO_MATH_INLINES
22944      # define __NO_MATH_INLINES 1 /* for glibc */
22945      #endif
22946      #include <math.h>
22947      double x;
22948 int
22949 main ()
22950 {
22951 x = ceil(x); x = sqrt(x);
22952   ;
22953   return 0;
22954 }
22955 _ACEOF
22956 if ac_fn_c_try_link "$LINENO"; then :
22957   MSGMERGE_LIBM="-lm"
22958 fi
22959 rm -f core conftest.err conftest.$ac_objext \
22960     conftest$ac_exeext conftest.$ac_ext
22961   LIBS="$save_LIBS"
22962 fi
22963 if test "$MSGMERGE_LIBM" = "?"; then
22964   MSGMERGE_LIBM=
22965 fi
22966
22967
22968
22969
22970
22971
22972
22973           LIBC_FATAL_STDERR_=1
22974   export LIBC_FATAL_STDERR_
22975
22976
22977   gl_need_lib_has_acl=
22978   # Check whether --enable-acl was given.
22979 if test "${enable_acl+set}" = set; then :
22980   enableval=$enable_acl;
22981 else
22982   enable_acl=auto
22983 fi
22984
22985
22986
22987
22988
22989
22990
22991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
22992 $as_echo_n "checking whether to use C++... " >&6; }
22993     # Check whether --enable-c++ was given.
22994 if test "${enable_c__+set}" = set; then :
22995   enableval=$enable_c__; CXX_CHOICE="$enableval"
22996 else
22997   CXX_CHOICE=yes
22998 fi
22999
23000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_CHOICE" >&5
23001 $as_echo "$CXX_CHOICE" >&6; }
23002
23003
23004
23005   GNULIB__EXIT=0;
23006   GNULIB_ATOLL=0;
23007   GNULIB_CALLOC_POSIX=0;
23008   GNULIB_CANONICALIZE_FILE_NAME=0;
23009   GNULIB_GETLOADAVG=0;
23010   GNULIB_GETSUBOPT=0;
23011   GNULIB_GRANTPT=0;
23012   GNULIB_MALLOC_POSIX=0;
23013   GNULIB_MBTOWC=0;
23014   GNULIB_MKDTEMP=0;
23015   GNULIB_MKOSTEMP=0;
23016   GNULIB_MKOSTEMPS=0;
23017   GNULIB_MKSTEMP=0;
23018   GNULIB_MKSTEMPS=0;
23019   GNULIB_POSIX_OPENPT=0;
23020   GNULIB_PTSNAME=0;
23021   GNULIB_PTSNAME_R=0;
23022   GNULIB_PUTENV=0;
23023   GNULIB_QSORT_R=0;
23024   GNULIB_RANDOM=0;
23025   GNULIB_RANDOM_R=0;
23026   GNULIB_REALLOC_POSIX=0;
23027   GNULIB_REALPATH=0;
23028   GNULIB_RPMATCH=0;
23029   GNULIB_SECURE_GETENV=0;
23030   GNULIB_SETENV=0;
23031   GNULIB_STRTOD=0;
23032   GNULIB_STRTOLL=0;
23033   GNULIB_STRTOULL=0;
23034   GNULIB_SYSTEM_POSIX=0;
23035   GNULIB_UNLOCKPT=0;
23036   GNULIB_UNSETENV=0;
23037   GNULIB_WCTOMB=0;
23038     HAVE__EXIT=1;
23039   HAVE_ATOLL=1;
23040   HAVE_CANONICALIZE_FILE_NAME=1;
23041   HAVE_DECL_GETLOADAVG=1;
23042   HAVE_GETSUBOPT=1;
23043   HAVE_GRANTPT=1;
23044   HAVE_MKDTEMP=1;
23045   HAVE_MKOSTEMP=1;
23046   HAVE_MKOSTEMPS=1;
23047   HAVE_MKSTEMP=1;
23048   HAVE_MKSTEMPS=1;
23049   HAVE_POSIX_OPENPT=1;
23050   HAVE_PTSNAME=1;
23051   HAVE_PTSNAME_R=1;
23052   HAVE_RANDOM=1;
23053   HAVE_RANDOM_H=1;
23054   HAVE_RANDOM_R=1;
23055   HAVE_REALPATH=1;
23056   HAVE_RPMATCH=1;
23057   HAVE_SECURE_GETENV=1;
23058   HAVE_SETENV=1;
23059   HAVE_DECL_SETENV=1;
23060   HAVE_STRTOD=1;
23061   HAVE_STRTOLL=1;
23062   HAVE_STRTOULL=1;
23063   HAVE_STRUCT_RANDOM_DATA=1;
23064   HAVE_SYS_LOADAVG_H=0;
23065   HAVE_UNLOCKPT=1;
23066   HAVE_DECL_UNSETENV=1;
23067   REPLACE_CALLOC=0;
23068   REPLACE_CANONICALIZE_FILE_NAME=0;
23069   REPLACE_MALLOC=0;
23070   REPLACE_MBTOWC=0;
23071   REPLACE_MKSTEMP=0;
23072   REPLACE_PTSNAME=0;
23073   REPLACE_PTSNAME_R=0;
23074   REPLACE_PUTENV=0;
23075   REPLACE_QSORT_R=0;
23076   REPLACE_RANDOM_R=0;
23077   REPLACE_REALLOC=0;
23078   REPLACE_REALPATH=0;
23079   REPLACE_SETENV=0;
23080   REPLACE_STRTOD=0;
23081   REPLACE_UNSETENV=0;
23082   REPLACE_WCTOMB=0;
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
23093 $as_echo_n "checking whether // is distinct from /... " >&6; }
23094 if ${gl_cv_double_slash_root+:} false; then :
23095   $as_echo_n "(cached) " >&6
23096 else
23097    if test x"$cross_compiling" = xyes ; then
23098         # When cross-compiling, there is no way to tell whether // is special
23099         # short of a list of hosts.  However, the only known hosts to date
23100         # that have a distinct // are Apollo DomainOS (too old to port to),
23101         # Cygwin, and z/OS.  If anyone knows of another system for which // has
23102         # special semantics and is distinct from /, please report it to
23103         # <bug-gnulib@gnu.org>.
23104         case $host in
23105           *-cygwin | i370-ibm-openedition)
23106             gl_cv_double_slash_root=yes ;;
23107           *)
23108             # Be optimistic and assume that / and // are the same when we
23109             # don't know.
23110             gl_cv_double_slash_root='unknown, assuming no' ;;
23111         esac
23112       else
23113         set x `ls -di / // 2>/dev/null`
23114         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
23115           gl_cv_double_slash_root=no
23116         else
23117           gl_cv_double_slash_root=yes
23118         fi
23119       fi
23120 fi
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
23122 $as_echo "$gl_cv_double_slash_root" >&6; }
23123   if test "$gl_cv_double_slash_root" = yes; then
23124
23125 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
23126
23127   fi
23128
23129
23130
23131
23132
23133      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
23134 $as_echo_n "checking whether realpath works... " >&6; }
23135 if ${gl_cv_func_realpath_works+:} false; then :
23136   $as_echo_n "(cached) " >&6
23137 else
23138
23139     touch conftest.a
23140     mkdir conftest.d
23141     if test "$cross_compiling" = yes; then :
23142   case "$host_os" in
23143                        # Guess yes on glibc systems.
23144         *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
23145                        # If we don't know, assume the worst.
23146         *)             gl_cv_func_realpath_works="guessing no" ;;
23147       esac
23148
23149 else
23150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23151 /* end confdefs.h.  */
23152
23153
23154
23155 #include <stdlib.h>
23156 #if defined __MACH__ && defined __APPLE__
23157 /* Avoid a crash on Mac OS X.  */
23158 #include <mach/mach.h>
23159 #include <mach/mach_error.h>
23160 #include <mach/thread_status.h>
23161 #include <mach/exception.h>
23162 #include <mach/task.h>
23163 #include <pthread.h>
23164 /* The exception port on which our thread listens.  */
23165 static mach_port_t our_exception_port;
23166 /* The main function of the thread listening for exceptions of type
23167    EXC_BAD_ACCESS.  */
23168 static void *
23169 mach_exception_thread (void *arg)
23170 {
23171   /* Buffer for a message to be received.  */
23172   struct {
23173     mach_msg_header_t head;
23174     mach_msg_body_t msgh_body;
23175     char data[1024];
23176   } msg;
23177   mach_msg_return_t retval;
23178   /* Wait for a message on the exception port.  */
23179   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
23180                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
23181   if (retval != MACH_MSG_SUCCESS)
23182     abort ();
23183   exit (1);
23184 }
23185 static void
23186 nocrash_init (void)
23187 {
23188   mach_port_t self = mach_task_self ();
23189   /* Allocate a port on which the thread shall listen for exceptions.  */
23190   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
23191       == KERN_SUCCESS) {
23192     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
23193     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
23194                                 MACH_MSG_TYPE_MAKE_SEND)
23195         == KERN_SUCCESS) {
23196       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
23197          for us.  */
23198       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
23199       /* Create the thread listening on the exception port.  */
23200       pthread_attr_t attr;
23201       pthread_t thread;
23202       if (pthread_attr_init (&attr) == 0
23203           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
23204           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
23205         pthread_attr_destroy (&attr);
23206         /* Replace the exception port info for these exceptions with our own.
23207            Note that we replace the exception port for the entire task, not only
23208            for a particular thread.  This has the effect that when our exception
23209            port gets the message, the thread specific exception port has already
23210            been asked, and we don't need to bother about it.
23211            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
23212         task_set_exception_ports (self, mask, our_exception_port,
23213                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
23214       }
23215     }
23216   }
23217 }
23218 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23219 /* Avoid a crash on native Windows.  */
23220 #define WIN32_LEAN_AND_MEAN
23221 #include <windows.h>
23222 #include <winerror.h>
23223 static LONG WINAPI
23224 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
23225 {
23226   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
23227     {
23228     case EXCEPTION_ACCESS_VIOLATION:
23229     case EXCEPTION_IN_PAGE_ERROR:
23230     case EXCEPTION_STACK_OVERFLOW:
23231     case EXCEPTION_GUARD_PAGE:
23232     case EXCEPTION_PRIV_INSTRUCTION:
23233     case EXCEPTION_ILLEGAL_INSTRUCTION:
23234     case EXCEPTION_DATATYPE_MISALIGNMENT:
23235     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
23236     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
23237       exit (1);
23238     }
23239   return EXCEPTION_CONTINUE_SEARCH;
23240 }
23241 static void
23242 nocrash_init (void)
23243 {
23244   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
23245 }
23246 #else
23247 /* Avoid a crash on POSIX systems.  */
23248 #include <signal.h>
23249 #include <unistd.h>
23250 /* A POSIX signal handler.  */
23251 static void
23252 exception_handler (int sig)
23253 {
23254   _exit (1);
23255 }
23256 static void
23257 nocrash_init (void)
23258 {
23259 #ifdef SIGSEGV
23260   signal (SIGSEGV, exception_handler);
23261 #endif
23262 #ifdef SIGBUS
23263   signal (SIGBUS, exception_handler);
23264 #endif
23265 }
23266 #endif
23267
23268         #include <stdlib.h>
23269         #include <string.h>
23270
23271 int
23272 main ()
23273 {
23274
23275         int result = 0;
23276         {
23277           char *name = realpath ("conftest.a", NULL);
23278           if (!(name && *name == '/'))
23279             result |= 1;
23280           free (name);
23281         }
23282         {
23283           char *name = realpath ("conftest.b/../conftest.a", NULL);
23284           if (name != NULL)
23285             result |= 2;
23286           free (name);
23287         }
23288         {
23289           char *name = realpath ("conftest.a/", NULL);
23290           if (name != NULL)
23291             result |= 4;
23292           free (name);
23293         }
23294         {
23295           char *name1 = realpath (".", NULL);
23296           char *name2 = realpath ("conftest.d//./..", NULL);
23297           if (! (name1 && name2 && strcmp (name1, name2) != 0))
23298             result |= 8;
23299           free (name1);
23300           free (name2);
23301         }
23302         return result;
23303
23304   ;
23305   return 0;
23306 }
23307
23308 _ACEOF
23309 if ac_fn_c_try_run "$LINENO"; then :
23310   gl_cv_func_realpath_works=yes
23311 else
23312   gl_cv_func_realpath_works=no
23313 fi
23314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23315   conftest.$ac_objext conftest.beam conftest.$ac_ext
23316 fi
23317
23318     rm -rf conftest.a conftest.d
23319
23320 fi
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
23322 $as_echo "$gl_cv_func_realpath_works" >&6; }
23323   case "$gl_cv_func_realpath_works" in
23324     *yes)
23325
23326 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
23327
23328       ;;
23329   esac
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341   GNULIB_CHDIR=0;
23342   GNULIB_CHOWN=0;
23343   GNULIB_CLOSE=0;
23344   GNULIB_DUP=0;
23345   GNULIB_DUP2=0;
23346   GNULIB_DUP3=0;
23347   GNULIB_ENVIRON=0;
23348   GNULIB_EUIDACCESS=0;
23349   GNULIB_FACCESSAT=0;
23350   GNULIB_FCHDIR=0;
23351   GNULIB_FCHOWNAT=0;
23352   GNULIB_FDATASYNC=0;
23353   GNULIB_FSYNC=0;
23354   GNULIB_FTRUNCATE=0;
23355   GNULIB_GETCWD=0;
23356   GNULIB_GETDOMAINNAME=0;
23357   GNULIB_GETDTABLESIZE=0;
23358   GNULIB_GETGROUPS=0;
23359   GNULIB_GETHOSTNAME=0;
23360   GNULIB_GETLOGIN=0;
23361   GNULIB_GETLOGIN_R=0;
23362   GNULIB_GETPAGESIZE=0;
23363   GNULIB_GETUSERSHELL=0;
23364   GNULIB_GROUP_MEMBER=0;
23365   GNULIB_ISATTY=0;
23366   GNULIB_LCHOWN=0;
23367   GNULIB_LINK=0;
23368   GNULIB_LINKAT=0;
23369   GNULIB_LSEEK=0;
23370   GNULIB_PIPE=0;
23371   GNULIB_PIPE2=0;
23372   GNULIB_PREAD=0;
23373   GNULIB_PWRITE=0;
23374   GNULIB_READ=0;
23375   GNULIB_READLINK=0;
23376   GNULIB_READLINKAT=0;
23377   GNULIB_RMDIR=0;
23378   GNULIB_SETHOSTNAME=0;
23379   GNULIB_SLEEP=0;
23380   GNULIB_SYMLINK=0;
23381   GNULIB_SYMLINKAT=0;
23382   GNULIB_TTYNAME_R=0;
23383   GNULIB_UNISTD_H_NONBLOCKING=0;
23384   GNULIB_UNISTD_H_SIGPIPE=0;
23385   GNULIB_UNLINK=0;
23386   GNULIB_UNLINKAT=0;
23387   GNULIB_USLEEP=0;
23388   GNULIB_WRITE=0;
23389     HAVE_CHOWN=1;
23390   HAVE_DUP2=1;
23391   HAVE_DUP3=1;
23392   HAVE_EUIDACCESS=1;
23393   HAVE_FACCESSAT=1;
23394   HAVE_FCHDIR=1;
23395   HAVE_FCHOWNAT=1;
23396   HAVE_FDATASYNC=1;
23397   HAVE_FSYNC=1;
23398   HAVE_FTRUNCATE=1;
23399   HAVE_GETDTABLESIZE=1;
23400   HAVE_GETGROUPS=1;
23401   HAVE_GETHOSTNAME=1;
23402   HAVE_GETLOGIN=1;
23403   HAVE_GETPAGESIZE=1;
23404   HAVE_GROUP_MEMBER=1;
23405   HAVE_LCHOWN=1;
23406   HAVE_LINK=1;
23407   HAVE_LINKAT=1;
23408   HAVE_PIPE=1;
23409   HAVE_PIPE2=1;
23410   HAVE_PREAD=1;
23411   HAVE_PWRITE=1;
23412   HAVE_READLINK=1;
23413   HAVE_READLINKAT=1;
23414   HAVE_SETHOSTNAME=1;
23415   HAVE_SLEEP=1;
23416   HAVE_SYMLINK=1;
23417   HAVE_SYMLINKAT=1;
23418   HAVE_UNLINKAT=1;
23419   HAVE_USLEEP=1;
23420   HAVE_DECL_ENVIRON=1;
23421   HAVE_DECL_FCHDIR=1;
23422   HAVE_DECL_FDATASYNC=1;
23423   HAVE_DECL_GETDOMAINNAME=1;
23424   HAVE_DECL_GETLOGIN_R=1;
23425   HAVE_DECL_GETPAGESIZE=1;
23426   HAVE_DECL_GETUSERSHELL=1;
23427   HAVE_DECL_SETHOSTNAME=1;
23428   HAVE_DECL_TTYNAME_R=1;
23429   HAVE_OS_H=0;
23430   HAVE_SYS_PARAM_H=0;
23431   REPLACE_CHOWN=0;
23432   REPLACE_CLOSE=0;
23433   REPLACE_DUP=0;
23434   REPLACE_DUP2=0;
23435   REPLACE_FCHOWNAT=0;
23436   REPLACE_FTRUNCATE=0;
23437   REPLACE_GETCWD=0;
23438   REPLACE_GETDOMAINNAME=0;
23439   REPLACE_GETDTABLESIZE=0;
23440   REPLACE_GETLOGIN_R=0;
23441   REPLACE_GETGROUPS=0;
23442   REPLACE_GETPAGESIZE=0;
23443   REPLACE_ISATTY=0;
23444   REPLACE_LCHOWN=0;
23445   REPLACE_LINK=0;
23446   REPLACE_LINKAT=0;
23447   REPLACE_LSEEK=0;
23448   REPLACE_PREAD=0;
23449   REPLACE_PWRITE=0;
23450   REPLACE_READ=0;
23451   REPLACE_READLINK=0;
23452   REPLACE_READLINKAT=0;
23453   REPLACE_RMDIR=0;
23454   REPLACE_SLEEP=0;
23455   REPLACE_SYMLINK=0;
23456   REPLACE_SYMLINKAT=0;
23457   REPLACE_TTYNAME_R=0;
23458   REPLACE_UNLINK=0;
23459   REPLACE_UNLINKAT=0;
23460   REPLACE_USLEEP=0;
23461   REPLACE_WRITE=0;
23462   UNISTD_H_HAVE_WINSOCK2_H=0;
23463   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
23464
23465
23466
23467
23468
23469
23470   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
23471     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
23472
23473 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
23474
23475   else
23476     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
23477   fi
23478
23479
23480
23481
23482
23483      GNULIB_OPENDIR=0;
23484   GNULIB_READDIR=0;
23485   GNULIB_REWINDDIR=0;
23486   GNULIB_CLOSEDIR=0;
23487   GNULIB_DIRFD=0;
23488   GNULIB_FDOPENDIR=0;
23489   GNULIB_SCANDIR=0;
23490   GNULIB_ALPHASORT=0;
23491     HAVE_OPENDIR=1;
23492   HAVE_READDIR=1;
23493   HAVE_REWINDDIR=1;
23494   HAVE_CLOSEDIR=1;
23495   HAVE_DECL_DIRFD=1;
23496   HAVE_DECL_FDOPENDIR=1;
23497   HAVE_FDOPENDIR=1;
23498   HAVE_SCANDIR=1;
23499   HAVE_ALPHASORT=1;
23500   REPLACE_OPENDIR=0;
23501   REPLACE_CLOSEDIR=0;
23502   REPLACE_DIRFD=0;
23503   REPLACE_FDOPENDIR=0;
23504
23505
23506
23507
23508
23509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
23510 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
23511 if ${gl_cv_have_include_next+:} false; then :
23512   $as_echo_n "(cached) " >&6
23513 else
23514   rm -rf conftestd1a conftestd1b conftestd2
23515      mkdir conftestd1a conftestd1b conftestd2
23516                                                   cat <<EOF > conftestd1a/conftest.h
23517 #define DEFINED_IN_CONFTESTD1
23518 #include_next <conftest.h>
23519 #ifdef DEFINED_IN_CONFTESTD2
23520 int foo;
23521 #else
23522 #error "include_next doesn't work"
23523 #endif
23524 EOF
23525      cat <<EOF > conftestd1b/conftest.h
23526 #define DEFINED_IN_CONFTESTD1
23527 #include <stdio.h>
23528 #include_next <conftest.h>
23529 #ifdef DEFINED_IN_CONFTESTD2
23530 int foo;
23531 #else
23532 #error "include_next doesn't work"
23533 #endif
23534 EOF
23535      cat <<EOF > conftestd2/conftest.h
23536 #ifndef DEFINED_IN_CONFTESTD1
23537 #error "include_next test doesn't work"
23538 #endif
23539 #define DEFINED_IN_CONFTESTD2
23540 EOF
23541      gl_save_CPPFLAGS="$CPPFLAGS"
23542      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
23543      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23544 /* end confdefs.h.  */
23545 #include <conftest.h>
23546 _ACEOF
23547 if ac_fn_c_try_compile "$LINENO"; then :
23548   gl_cv_have_include_next=yes
23549 else
23550   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
23551         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23552 /* end confdefs.h.  */
23553 #include <conftest.h>
23554 _ACEOF
23555 if ac_fn_c_try_compile "$LINENO"; then :
23556   gl_cv_have_include_next=buggy
23557 else
23558   gl_cv_have_include_next=no
23559 fi
23560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561
23562 fi
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23564      CPPFLAGS="$gl_save_CPPFLAGS"
23565      rm -rf conftestd1a conftestd1b conftestd2
23566
23567 fi
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
23569 $as_echo "$gl_cv_have_include_next" >&6; }
23570   PRAGMA_SYSTEM_HEADER=
23571   if test $gl_cv_have_include_next = yes; then
23572     INCLUDE_NEXT=include_next
23573     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
23574     if test -n "$GCC"; then
23575       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
23576     fi
23577   else
23578     if test $gl_cv_have_include_next = buggy; then
23579       INCLUDE_NEXT=include
23580       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
23581     else
23582       INCLUDE_NEXT=include
23583       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
23584     fi
23585   fi
23586
23587
23588
23589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
23590 $as_echo_n "checking whether system header files limit the line length... " >&6; }
23591 if ${gl_cv_pragma_columns+:} false; then :
23592   $as_echo_n "(cached) " >&6
23593 else
23594        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h.  */
23596
23597 #ifdef __TANDEM
23598 choke me
23599 #endif
23600
23601 _ACEOF
23602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23603   $EGREP "choke me" >/dev/null 2>&1; then :
23604   gl_cv_pragma_columns=yes
23605 else
23606   gl_cv_pragma_columns=no
23607 fi
23608 rm -f conftest*
23609
23610
23611 fi
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
23613 $as_echo "$gl_cv_pragma_columns" >&6; }
23614   if test $gl_cv_pragma_columns = yes; then
23615     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
23616   else
23617     PRAGMA_COLUMNS=
23618   fi
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
23631 $as_echo_n "checking if environ is properly declared... " >&6; }
23632   if ${gt_cv_var_environ_declaration+:} false; then :
23633   $as_echo_n "(cached) " >&6
23634 else
23635
23636     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23637 /* end confdefs.h.  */
23638 #if HAVE_UNISTD_H
23639      #include <unistd.h>
23640      #endif
23641      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
23642      #include <stdlib.h>
23643
23644            extern struct { int foo; } environ;
23645 int
23646 main ()
23647 {
23648 environ.foo = 1;
23649   ;
23650   return 0;
23651 }
23652 _ACEOF
23653 if ac_fn_c_try_compile "$LINENO"; then :
23654   gt_cv_var_environ_declaration=no
23655 else
23656   gt_cv_var_environ_declaration=yes
23657 fi
23658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23659 fi
23660
23661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
23662 $as_echo "$gt_cv_var_environ_declaration" >&6; }
23663   if test $gt_cv_var_environ_declaration = yes; then
23664
23665 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
23666
23667   fi
23668
23669
23670   if test $gt_cv_var_environ_declaration != yes; then
23671     HAVE_DECL_ENVIRON=0
23672   fi
23673
23674
23675
23676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
23677 $as_echo_n "checking for complete errno.h... " >&6; }
23678 if ${gl_cv_header_errno_h_complete+:} false; then :
23679   $as_echo_n "(cached) " >&6
23680 else
23681
23682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h.  */
23684
23685 #include <errno.h>
23686 #if !defined ETXTBSY
23687 booboo
23688 #endif
23689 #if !defined ENOMSG
23690 booboo
23691 #endif
23692 #if !defined EIDRM
23693 booboo
23694 #endif
23695 #if !defined ENOLINK
23696 booboo
23697 #endif
23698 #if !defined EPROTO
23699 booboo
23700 #endif
23701 #if !defined EMULTIHOP
23702 booboo
23703 #endif
23704 #if !defined EBADMSG
23705 booboo
23706 #endif
23707 #if !defined EOVERFLOW
23708 booboo
23709 #endif
23710 #if !defined ENOTSUP
23711 booboo
23712 #endif
23713 #if !defined ENETRESET
23714 booboo
23715 #endif
23716 #if !defined ECONNABORTED
23717 booboo
23718 #endif
23719 #if !defined ESTALE
23720 booboo
23721 #endif
23722 #if !defined EDQUOT
23723 booboo
23724 #endif
23725 #if !defined ECANCELED
23726 booboo
23727 #endif
23728 #if !defined EOWNERDEAD
23729 booboo
23730 #endif
23731 #if !defined ENOTRECOVERABLE
23732 booboo
23733 #endif
23734 #if !defined EILSEQ
23735 booboo
23736 #endif
23737
23738 _ACEOF
23739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23740   $EGREP "booboo" >/dev/null 2>&1; then :
23741   gl_cv_header_errno_h_complete=no
23742 else
23743   gl_cv_header_errno_h_complete=yes
23744 fi
23745 rm -f conftest*
23746
23747
23748 fi
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
23750 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
23751   if test $gl_cv_header_errno_h_complete = yes; then
23752     ERRNO_H=''
23753   else
23754
23755
23756
23757
23758
23759
23760
23761
23762      if test $gl_cv_have_include_next = yes; then
23763        gl_cv_next_errno_h='<'errno.h'>'
23764      else
23765        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
23766 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
23767 if ${gl_cv_next_errno_h+:} false; then :
23768   $as_echo_n "(cached) " >&6
23769 else
23770
23771
23772
23773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23774 /* end confdefs.h.  */
23775 #include <errno.h>
23776 _ACEOF
23777                 case "$host_os" in
23778     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23779     *)    gl_absname_cpp="$ac_cpp" ;;
23780   esac
23781
23782   case "$host_os" in
23783     mingw*)
23784                                           gl_dirsep_regex='[/\\]'
23785       ;;
23786     *)
23787       gl_dirsep_regex='\/'
23788       ;;
23789   esac
23790       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23791   gl_header_literal_regex=`echo 'errno.h' \
23792                            | sed -e "$gl_make_literal_regex_sed"`
23793   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23794       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23795       s|^/[^/]|//&|
23796       p
23797       q
23798     }'
23799
23800         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23801   sed -n "$gl_absolute_header_sed"`
23802
23803            gl_header=$gl_cv_absolute_errno_h
23804            gl_cv_next_errno_h='"'$gl_header'"'
23805
23806
23807 fi
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
23809 $as_echo "$gl_cv_next_errno_h" >&6; }
23810      fi
23811      NEXT_ERRNO_H=$gl_cv_next_errno_h
23812
23813      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23814        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23815        gl_next_as_first_directive='<'errno.h'>'
23816      else
23817        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23818        gl_next_as_first_directive=$gl_cv_next_errno_h
23819      fi
23820      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
23821
23822
23823
23824
23825     ERRNO_H='errno.h'
23826   fi
23827
23828    if test -n "$ERRNO_H"; then
23829   GL_GENERATE_ERRNO_H_TRUE=
23830   GL_GENERATE_ERRNO_H_FALSE='#'
23831 else
23832   GL_GENERATE_ERRNO_H_TRUE='#'
23833   GL_GENERATE_ERRNO_H_FALSE=
23834 fi
23835
23836
23837   if test -n "$ERRNO_H"; then
23838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
23839 $as_echo_n "checking for EMULTIHOP value... " >&6; }
23840 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
23841   $as_echo_n "(cached) " >&6
23842 else
23843
23844       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23845 /* end confdefs.h.  */
23846
23847 #include <errno.h>
23848 #ifdef EMULTIHOP
23849 yes
23850 #endif
23851
23852 _ACEOF
23853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23854   $EGREP "yes" >/dev/null 2>&1; then :
23855   gl_cv_header_errno_h_EMULTIHOP=yes
23856 else
23857   gl_cv_header_errno_h_EMULTIHOP=no
23858 fi
23859 rm -f conftest*
23860
23861       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
23862         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23863 /* end confdefs.h.  */
23864
23865 #define _XOPEN_SOURCE_EXTENDED 1
23866 #include <errno.h>
23867 #ifdef EMULTIHOP
23868 yes
23869 #endif
23870
23871 _ACEOF
23872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23873   $EGREP "yes" >/dev/null 2>&1; then :
23874   gl_cv_header_errno_h_EMULTIHOP=hidden
23875 fi
23876 rm -f conftest*
23877
23878         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
23879                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
23880 #define _XOPEN_SOURCE_EXTENDED 1
23881 #include <errno.h>
23882 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
23883 #include <stdio.h>
23884 #include <stdlib.h>
23885 "; then :
23886
23887 fi
23888
23889         fi
23890       fi
23891
23892 fi
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
23894 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
23895     case $gl_cv_header_errno_h_EMULTIHOP in
23896       yes | no)
23897         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
23898         ;;
23899       *)
23900         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
23901         ;;
23902     esac
23903
23904
23905   fi
23906
23907
23908   if test -n "$ERRNO_H"; then
23909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
23910 $as_echo_n "checking for ENOLINK value... " >&6; }
23911 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
23912   $as_echo_n "(cached) " >&6
23913 else
23914
23915       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23916 /* end confdefs.h.  */
23917
23918 #include <errno.h>
23919 #ifdef ENOLINK
23920 yes
23921 #endif
23922
23923 _ACEOF
23924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23925   $EGREP "yes" >/dev/null 2>&1; then :
23926   gl_cv_header_errno_h_ENOLINK=yes
23927 else
23928   gl_cv_header_errno_h_ENOLINK=no
23929 fi
23930 rm -f conftest*
23931
23932       if test $gl_cv_header_errno_h_ENOLINK = no; then
23933         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23934 /* end confdefs.h.  */
23935
23936 #define _XOPEN_SOURCE_EXTENDED 1
23937 #include <errno.h>
23938 #ifdef ENOLINK
23939 yes
23940 #endif
23941
23942 _ACEOF
23943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23944   $EGREP "yes" >/dev/null 2>&1; then :
23945   gl_cv_header_errno_h_ENOLINK=hidden
23946 fi
23947 rm -f conftest*
23948
23949         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
23950                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
23951 #define _XOPEN_SOURCE_EXTENDED 1
23952 #include <errno.h>
23953 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
23954 #include <stdio.h>
23955 #include <stdlib.h>
23956 "; then :
23957
23958 fi
23959
23960         fi
23961       fi
23962
23963 fi
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
23965 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
23966     case $gl_cv_header_errno_h_ENOLINK in
23967       yes | no)
23968         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
23969         ;;
23970       *)
23971         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
23972         ;;
23973     esac
23974
23975
23976   fi
23977
23978
23979   if test -n "$ERRNO_H"; then
23980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
23981 $as_echo_n "checking for EOVERFLOW value... " >&6; }
23982 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
23983   $as_echo_n "(cached) " >&6
23984 else
23985
23986       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23987 /* end confdefs.h.  */
23988
23989 #include <errno.h>
23990 #ifdef EOVERFLOW
23991 yes
23992 #endif
23993
23994 _ACEOF
23995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23996   $EGREP "yes" >/dev/null 2>&1; then :
23997   gl_cv_header_errno_h_EOVERFLOW=yes
23998 else
23999   gl_cv_header_errno_h_EOVERFLOW=no
24000 fi
24001 rm -f conftest*
24002
24003       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
24004         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24005 /* end confdefs.h.  */
24006
24007 #define _XOPEN_SOURCE_EXTENDED 1
24008 #include <errno.h>
24009 #ifdef EOVERFLOW
24010 yes
24011 #endif
24012
24013 _ACEOF
24014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24015   $EGREP "yes" >/dev/null 2>&1; then :
24016   gl_cv_header_errno_h_EOVERFLOW=hidden
24017 fi
24018 rm -f conftest*
24019
24020         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
24021                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
24022 #define _XOPEN_SOURCE_EXTENDED 1
24023 #include <errno.h>
24024 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
24025 #include <stdio.h>
24026 #include <stdlib.h>
24027 "; then :
24028
24029 fi
24030
24031         fi
24032       fi
24033
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
24036 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
24037     case $gl_cv_header_errno_h_EOVERFLOW in
24038       yes | no)
24039         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
24040         ;;
24041       *)
24042         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
24043         ;;
24044     esac
24045
24046
24047   fi
24048
24049
24050 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24051 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24052   ac_have_decl=1
24053 else
24054   ac_have_decl=0
24055 fi
24056
24057 cat >>confdefs.h <<_ACEOF
24058 #define HAVE_DECL_STRERROR_R $ac_have_decl
24059 _ACEOF
24060
24061 for ac_func in strerror_r
24062 do :
24063   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24064 if test "x$ac_cv_func_strerror_r" = xyes; then :
24065   cat >>confdefs.h <<_ACEOF
24066 #define HAVE_STRERROR_R 1
24067 _ACEOF
24068
24069 fi
24070 done
24071
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24073 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
24074 if ${ac_cv_func_strerror_r_char_p+:} false; then :
24075   $as_echo_n "(cached) " >&6
24076 else
24077
24078     ac_cv_func_strerror_r_char_p=no
24079     if test $ac_cv_have_decl_strerror_r = yes; then
24080       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24081 /* end confdefs.h.  */
24082 $ac_includes_default
24083 int
24084 main ()
24085 {
24086
24087           char buf[100];
24088           char x = *strerror_r (0, buf, sizeof buf);
24089           char *p = strerror_r (0, buf, sizeof buf);
24090           return !p || x;
24091
24092   ;
24093   return 0;
24094 }
24095 _ACEOF
24096 if ac_fn_c_try_compile "$LINENO"; then :
24097   ac_cv_func_strerror_r_char_p=yes
24098 fi
24099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24100     else
24101       # strerror_r is not declared.  Choose between
24102       # systems that have relatively inaccessible declarations for the
24103       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
24104       # former has a strerror_r that returns char*, while the latter
24105       # has a strerror_r that returns `int'.
24106       # This test should segfault on the DEC system.
24107       if test "$cross_compiling" = yes; then :
24108   :
24109 else
24110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111 /* end confdefs.h.  */
24112 $ac_includes_default
24113         extern char *strerror_r ();
24114 int
24115 main ()
24116 {
24117 char buf[100];
24118           char x = *strerror_r (0, buf, sizeof buf);
24119           return ! isalpha (x);
24120   ;
24121   return 0;
24122 }
24123 _ACEOF
24124 if ac_fn_c_try_run "$LINENO"; then :
24125   ac_cv_func_strerror_r_char_p=yes
24126 fi
24127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24128   conftest.$ac_objext conftest.beam conftest.$ac_ext
24129 fi
24130
24131     fi
24132
24133 fi
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24135 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24136 if test $ac_cv_func_strerror_r_char_p = yes; then
24137
24138 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24139
24140 fi
24141
24142
24143   XGETTEXT_EXTRA_OPTIONS=
24144
24145 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24146 if test "x$ac_cv_type_mode_t" = xyes; then :
24147
24148 else
24149
24150 cat >>confdefs.h <<_ACEOF
24151 #define mode_t int
24152 _ACEOF
24153
24154 fi
24155
24156
24157   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
24158 "
24159 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
24160
24161 cat >>confdefs.h <<_ACEOF
24162 #define HAVE_SIG_ATOMIC_T 1
24163 _ACEOF
24164
24165
24166 else
24167
24168 $as_echo "#define sig_atomic_t int" >>confdefs.h
24169
24170 fi
24171
24172
24173
24174   GNULIB_FCNTL=0;
24175   GNULIB_NONBLOCKING=0;
24176   GNULIB_OPEN=0;
24177   GNULIB_OPENAT=0;
24178     HAVE_FCNTL=1;
24179   HAVE_OPENAT=1;
24180   REPLACE_FCNTL=0;
24181   REPLACE_OPEN=0;
24182   REPLACE_OPENAT=0;
24183
24184
24185
24186 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24187 if test "x$ac_cv_type_pid_t" = xyes; then :
24188
24189 else
24190
24191 cat >>confdefs.h <<_ACEOF
24192 #define pid_t int
24193 _ACEOF
24194
24195 fi
24196
24197
24198   ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
24199 if test "x$ac_cv_func_eaccess" = xyes; then :
24200
24201 else
24202
24203 $as_echo "#define eaccess access" >>confdefs.h
24204
24205 fi
24206
24207
24208
24209
24210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
24211 $as_echo_n "checking for mbstate_t... " >&6; }
24212 if ${ac_cv_type_mbstate_t+:} false; then :
24213   $as_echo_n "(cached) " >&6
24214 else
24215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24216 /* end confdefs.h.  */
24217 $ac_includes_default
24218 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24219    <wchar.h>.
24220    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24221    included before <wchar.h>.  */
24222 #include <stddef.h>
24223 #include <stdio.h>
24224 #include <time.h>
24225 #include <wchar.h>
24226 int
24227 main ()
24228 {
24229 mbstate_t x; return sizeof x;
24230   ;
24231   return 0;
24232 }
24233 _ACEOF
24234 if ac_fn_c_try_compile "$LINENO"; then :
24235   ac_cv_type_mbstate_t=yes
24236 else
24237   ac_cv_type_mbstate_t=no
24238 fi
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240 fi
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
24242 $as_echo "$ac_cv_type_mbstate_t" >&6; }
24243    if test $ac_cv_type_mbstate_t = yes; then
24244
24245 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
24246
24247    else
24248
24249 $as_echo "#define mbstate_t int" >>confdefs.h
24250
24251    fi
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272   GNULIB_DPRINTF=0;
24273   GNULIB_FCLOSE=0;
24274   GNULIB_FDOPEN=0;
24275   GNULIB_FFLUSH=0;
24276   GNULIB_FGETC=0;
24277   GNULIB_FGETS=0;
24278   GNULIB_FOPEN=0;
24279   GNULIB_FPRINTF=0;
24280   GNULIB_FPRINTF_POSIX=0;
24281   GNULIB_FPURGE=0;
24282   GNULIB_FPUTC=0;
24283   GNULIB_FPUTS=0;
24284   GNULIB_FREAD=0;
24285   GNULIB_FREOPEN=0;
24286   GNULIB_FSCANF=0;
24287   GNULIB_FSEEK=0;
24288   GNULIB_FSEEKO=0;
24289   GNULIB_FTELL=0;
24290   GNULIB_FTELLO=0;
24291   GNULIB_FWRITE=0;
24292   GNULIB_GETC=0;
24293   GNULIB_GETCHAR=0;
24294   GNULIB_GETDELIM=0;
24295   GNULIB_GETLINE=0;
24296   GNULIB_OBSTACK_PRINTF=0;
24297   GNULIB_OBSTACK_PRINTF_POSIX=0;
24298   GNULIB_PCLOSE=0;
24299   GNULIB_PERROR=0;
24300   GNULIB_POPEN=0;
24301   GNULIB_PRINTF=0;
24302   GNULIB_PRINTF_POSIX=0;
24303   GNULIB_PUTC=0;
24304   GNULIB_PUTCHAR=0;
24305   GNULIB_PUTS=0;
24306   GNULIB_REMOVE=0;
24307   GNULIB_RENAME=0;
24308   GNULIB_RENAMEAT=0;
24309   GNULIB_SCANF=0;
24310   GNULIB_SNPRINTF=0;
24311   GNULIB_SPRINTF_POSIX=0;
24312   GNULIB_STDIO_H_NONBLOCKING=0;
24313   GNULIB_STDIO_H_SIGPIPE=0;
24314   GNULIB_TMPFILE=0;
24315   GNULIB_VASPRINTF=0;
24316   GNULIB_VFSCANF=0;
24317   GNULIB_VSCANF=0;
24318   GNULIB_VDPRINTF=0;
24319   GNULIB_VFPRINTF=0;
24320   GNULIB_VFPRINTF_POSIX=0;
24321   GNULIB_VPRINTF=0;
24322   GNULIB_VPRINTF_POSIX=0;
24323   GNULIB_VSNPRINTF=0;
24324   GNULIB_VSPRINTF_POSIX=0;
24325     HAVE_DECL_FPURGE=1;
24326   HAVE_DECL_FSEEKO=1;
24327   HAVE_DECL_FTELLO=1;
24328   HAVE_DECL_GETDELIM=1;
24329   HAVE_DECL_GETLINE=1;
24330   HAVE_DECL_OBSTACK_PRINTF=1;
24331   HAVE_DECL_SNPRINTF=1;
24332   HAVE_DECL_VSNPRINTF=1;
24333   HAVE_DPRINTF=1;
24334   HAVE_FSEEKO=1;
24335   HAVE_FTELLO=1;
24336   HAVE_PCLOSE=1;
24337   HAVE_POPEN=1;
24338   HAVE_RENAMEAT=1;
24339   HAVE_VASPRINTF=1;
24340   HAVE_VDPRINTF=1;
24341   REPLACE_DPRINTF=0;
24342   REPLACE_FCLOSE=0;
24343   REPLACE_FDOPEN=0;
24344   REPLACE_FFLUSH=0;
24345   REPLACE_FOPEN=0;
24346   REPLACE_FPRINTF=0;
24347   REPLACE_FPURGE=0;
24348   REPLACE_FREOPEN=0;
24349   REPLACE_FSEEK=0;
24350   REPLACE_FSEEKO=0;
24351   REPLACE_FTELL=0;
24352   REPLACE_FTELLO=0;
24353   REPLACE_GETDELIM=0;
24354   REPLACE_GETLINE=0;
24355   REPLACE_OBSTACK_PRINTF=0;
24356   REPLACE_PERROR=0;
24357   REPLACE_POPEN=0;
24358   REPLACE_PRINTF=0;
24359   REPLACE_REMOVE=0;
24360   REPLACE_RENAME=0;
24361   REPLACE_RENAMEAT=0;
24362   REPLACE_SNPRINTF=0;
24363   REPLACE_SPRINTF=0;
24364   REPLACE_STDIO_READ_FUNCS=0;
24365   REPLACE_STDIO_WRITE_FUNCS=0;
24366   REPLACE_TMPFILE=0;
24367   REPLACE_VASPRINTF=0;
24368   REPLACE_VDPRINTF=0;
24369   REPLACE_VFPRINTF=0;
24370   REPLACE_VPRINTF=0;
24371   REPLACE_VSNPRINTF=0;
24372   REPLACE_VSPRINTF=0;
24373
24374
24375      GNULIB_FCHMODAT=0;
24376   GNULIB_FSTAT=0;
24377   GNULIB_FSTATAT=0;
24378   GNULIB_FUTIMENS=0;
24379   GNULIB_LCHMOD=0;
24380   GNULIB_LSTAT=0;
24381   GNULIB_MKDIRAT=0;
24382   GNULIB_MKFIFO=0;
24383   GNULIB_MKFIFOAT=0;
24384   GNULIB_MKNOD=0;
24385   GNULIB_MKNODAT=0;
24386   GNULIB_STAT=0;
24387   GNULIB_UTIMENSAT=0;
24388     HAVE_FCHMODAT=1;
24389   HAVE_FSTATAT=1;
24390   HAVE_FUTIMENS=1;
24391   HAVE_LCHMOD=1;
24392   HAVE_LSTAT=1;
24393   HAVE_MKDIRAT=1;
24394   HAVE_MKFIFO=1;
24395   HAVE_MKFIFOAT=1;
24396   HAVE_MKNOD=1;
24397   HAVE_MKNODAT=1;
24398   HAVE_UTIMENSAT=1;
24399   REPLACE_FSTAT=0;
24400   REPLACE_FSTATAT=0;
24401   REPLACE_FUTIMENS=0;
24402   REPLACE_LSTAT=0;
24403   REPLACE_MKDIR=0;
24404   REPLACE_MKFIFO=0;
24405   REPLACE_MKNOD=0;
24406   REPLACE_STAT=0;
24407   REPLACE_UTIMENSAT=0;
24408
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
24410 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
24411 if ${ac_cv_header_stat_broken+:} false; then :
24412   $as_echo_n "(cached) " >&6
24413 else
24414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24415 /* end confdefs.h.  */
24416 #include <sys/types.h>
24417 #include <sys/stat.h>
24418
24419 #if defined S_ISBLK && defined S_IFDIR
24420 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
24421 #endif
24422
24423 #if defined S_ISBLK && defined S_IFCHR
24424 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
24425 #endif
24426
24427 #if defined S_ISLNK && defined S_IFREG
24428 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
24429 #endif
24430
24431 #if defined S_ISSOCK && defined S_IFREG
24432 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
24433 #endif
24434
24435 _ACEOF
24436 if ac_fn_c_try_compile "$LINENO"; then :
24437   ac_cv_header_stat_broken=no
24438 else
24439   ac_cv_header_stat_broken=yes
24440 fi
24441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24442 fi
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
24444 $as_echo "$ac_cv_header_stat_broken" >&6; }
24445 if test $ac_cv_header_stat_broken = yes; then
24446
24447 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
24448
24449 fi
24450
24451
24452
24453
24454
24455   case "$host_os" in
24456     mingw*)
24457                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
24458 $as_echo_n "checking for 64-bit off_t... " >&6; }
24459 if ${gl_cv_type_off_t_64+:} false; then :
24460   $as_echo_n "(cached) " >&6
24461 else
24462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24463 /* end confdefs.h.  */
24464 #include <sys/types.h>
24465                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
24466
24467 int
24468 main ()
24469 {
24470
24471   ;
24472   return 0;
24473 }
24474 _ACEOF
24475 if ac_fn_c_try_compile "$LINENO"; then :
24476   gl_cv_type_off_t_64=yes
24477 else
24478   gl_cv_type_off_t_64=no
24479 fi
24480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24481
24482 fi
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
24484 $as_echo "$gl_cv_type_off_t_64" >&6; }
24485       if test $gl_cv_type_off_t_64 = no; then
24486         WINDOWS_64_BIT_OFF_T=1
24487       else
24488         WINDOWS_64_BIT_OFF_T=0
24489       fi
24490                   WINDOWS_64_BIT_ST_SIZE=1
24491       ;;
24492     *)
24493                                                       WINDOWS_64_BIT_OFF_T=0
24494       WINDOWS_64_BIT_ST_SIZE=0
24495       ;;
24496   esac
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512      if test $gl_cv_have_include_next = yes; then
24513        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24514      else
24515        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24516 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24517 if ${gl_cv_next_sys_stat_h+:} false; then :
24518   $as_echo_n "(cached) " >&6
24519 else
24520
24521              if test $ac_cv_header_sys_stat_h = yes; then
24522
24523
24524
24525
24526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h.  */
24528 #include <sys/stat.h>
24529 _ACEOF
24530                 case "$host_os" in
24531     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24532     *)    gl_absname_cpp="$ac_cpp" ;;
24533   esac
24534
24535   case "$host_os" in
24536     mingw*)
24537                                           gl_dirsep_regex='[/\\]'
24538       ;;
24539     *)
24540       gl_dirsep_regex='\/'
24541       ;;
24542   esac
24543       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24544   gl_header_literal_regex=`echo 'sys/stat.h' \
24545                            | sed -e "$gl_make_literal_regex_sed"`
24546   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24547       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24548       s|^/[^/]|//&|
24549       p
24550       q
24551     }'
24552
24553         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24554   sed -n "$gl_absolute_header_sed"`
24555
24556            gl_header=$gl_cv_absolute_sys_stat_h
24557            gl_cv_next_sys_stat_h='"'$gl_header'"'
24558           else
24559                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24560              fi
24561
24562
24563 fi
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24565 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24566      fi
24567      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24568
24569      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24570        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24571        gl_next_as_first_directive='<'sys/stat.h'>'
24572      else
24573        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24574        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24575      fi
24576      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24589
24590 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24591
24592   fi
24593
24594       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24595      #include <sys/stat.h>
24596 "
24597 if test "x$ac_cv_type_nlink_t" = xyes; then :
24598
24599 else
24600
24601 $as_echo "#define nlink_t int" >>confdefs.h
24602
24603 fi
24604
24605
24606
24607     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
24608     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24610 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24611 if eval \${$as_gl_Symbol+:} false; then :
24612   $as_echo_n "(cached) " >&6
24613 else
24614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24615 /* end confdefs.h.  */
24616 #include <sys/stat.h>
24617
24618 int
24619 main ()
24620 {
24621 #undef $gl_func
24622   (void) $gl_func;
24623   ;
24624   return 0;
24625 }
24626 _ACEOF
24627 if ac_fn_c_try_compile "$LINENO"; then :
24628   eval "$as_gl_Symbol=yes"
24629 else
24630   eval "$as_gl_Symbol=no"
24631 fi
24632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24633 fi
24634 eval ac_res=\$$as_gl_Symbol
24635                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24636 $as_echo "$ac_res" >&6; }
24637     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24638   cat >>confdefs.h <<_ACEOF
24639 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24640 _ACEOF
24641
24642                      eval ac_cv_have_decl_$gl_func=yes
24643 fi
24644       done
24645
24646
24647 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
24648 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
24649   ac_have_decl=1
24650 else
24651   ac_have_decl=0
24652 fi
24653
24654 cat >>confdefs.h <<_ACEOF
24655 #define HAVE_DECL_GETDELIM $ac_have_decl
24656 _ACEOF
24657
24658
24659
24660
24661
24662 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
24663 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
24664   ac_have_decl=1
24665 else
24666   ac_have_decl=0
24667 fi
24668
24669 cat >>confdefs.h <<_ACEOF
24670 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
24671 _ACEOF
24672
24673 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
24674 if test "x$ac_cv_have_decl_getline" = xyes; then :
24675   ac_have_decl=1
24676 else
24677   ac_have_decl=0
24678 fi
24679
24680 cat >>confdefs.h <<_ACEOF
24681 #define HAVE_DECL_GETLINE $ac_have_decl
24682 _ACEOF
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699      if test $gl_cv_have_include_next = yes; then
24700        gl_cv_next_getopt_h='<'getopt.h'>'
24701      else
24702        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
24703 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
24704 if ${gl_cv_next_getopt_h+:} false; then :
24705   $as_echo_n "(cached) " >&6
24706 else
24707
24708              if test $ac_cv_header_getopt_h = yes; then
24709
24710
24711
24712
24713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24714 /* end confdefs.h.  */
24715 #include <getopt.h>
24716 _ACEOF
24717                 case "$host_os" in
24718     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24719     *)    gl_absname_cpp="$ac_cpp" ;;
24720   esac
24721
24722   case "$host_os" in
24723     mingw*)
24724                                           gl_dirsep_regex='[/\\]'
24725       ;;
24726     *)
24727       gl_dirsep_regex='\/'
24728       ;;
24729   esac
24730       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24731   gl_header_literal_regex=`echo 'getopt.h' \
24732                            | sed -e "$gl_make_literal_regex_sed"`
24733   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24734       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24735       s|^/[^/]|//&|
24736       p
24737       q
24738     }'
24739
24740         gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24741   sed -n "$gl_absolute_header_sed"`
24742
24743            gl_header=$gl_cv_absolute_getopt_h
24744            gl_cv_next_getopt_h='"'$gl_header'"'
24745           else
24746                gl_cv_next_getopt_h='<'getopt.h'>'
24747              fi
24748
24749
24750 fi
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
24752 $as_echo "$gl_cv_next_getopt_h" >&6; }
24753      fi
24754      NEXT_GETOPT_H=$gl_cv_next_getopt_h
24755
24756      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24757        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24758        gl_next_as_first_directive='<'getopt.h'>'
24759      else
24760        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24761        gl_next_as_first_directive=$gl_cv_next_getopt_h
24762      fi
24763      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
24764
24765
24766
24767
24768   if test $ac_cv_header_getopt_h = yes; then
24769     HAVE_GETOPT_H=1
24770   else
24771     HAVE_GETOPT_H=0
24772   fi
24773
24774
24775   gl_replace_getopt=
24776
24777     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
24778     for ac_header in getopt.h
24779 do :
24780   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
24781 if test "x$ac_cv_header_getopt_h" = xyes; then :
24782   cat >>confdefs.h <<_ACEOF
24783 #define HAVE_GETOPT_H 1
24784 _ACEOF
24785
24786 else
24787   gl_replace_getopt=yes
24788 fi
24789
24790 done
24791
24792   fi
24793
24794     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
24795     for ac_func in getopt_long_only
24796 do :
24797   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
24798 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
24799   cat >>confdefs.h <<_ACEOF
24800 #define HAVE_GETOPT_LONG_ONLY 1
24801 _ACEOF
24802
24803 else
24804   gl_replace_getopt=yes
24805 fi
24806 done
24807
24808   fi
24809
24810           if test -z "$gl_replace_getopt"; then
24811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
24812 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
24813 if ${gl_cv_func_getopt_posix+:} false; then :
24814   $as_echo_n "(cached) " >&6
24815 else
24816
24817                                                 if test $cross_compiling = no; then
24818                               if test "$cross_compiling" = yes; then :
24819   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24821 as_fn_error $? "cannot run test program while cross compiling
24822 See \`config.log' for more details" "$LINENO" 5; }
24823 else
24824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24825 /* end confdefs.h.  */
24826
24827 #include <unistd.h>
24828 #include <stdlib.h>
24829 #include <string.h>
24830
24831 int
24832 main ()
24833 {
24834   static char program[] = "program";
24835   static char a[] = "-a";
24836   static char foo[] = "foo";
24837   static char bar[] = "bar";
24838   char *argv[] = { program, a, foo, bar, NULL };
24839   int c;
24840
24841   c = getopt (4, argv, "ab");
24842   if (!(c == 'a'))
24843     return 1;
24844   c = getopt (4, argv, "ab");
24845   if (!(c == -1))
24846     return 2;
24847   if (!(optind == 2))
24848     return 3;
24849   return 0;
24850 }
24851
24852 _ACEOF
24853 if ac_fn_c_try_run "$LINENO"; then :
24854   gl_cv_func_getopt_posix=maybe
24855 else
24856   gl_cv_func_getopt_posix=no
24857 fi
24858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24859   conftest.$ac_objext conftest.beam conftest.$ac_ext
24860 fi
24861
24862           if test $gl_cv_func_getopt_posix = maybe; then
24863                                     if test "$cross_compiling" = yes; then :
24864   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24866 as_fn_error $? "cannot run test program while cross compiling
24867 See \`config.log' for more details" "$LINENO" 5; }
24868 else
24869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24870 /* end confdefs.h.  */
24871
24872 #include <unistd.h>
24873 #include <stdlib.h>
24874 #include <string.h>
24875
24876 int
24877 main ()
24878 {
24879   static char program[] = "program";
24880   static char donald[] = "donald";
24881   static char p[] = "-p";
24882   static char billy[] = "billy";
24883   static char duck[] = "duck";
24884   static char a[] = "-a";
24885   static char bar[] = "bar";
24886   char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
24887   int c;
24888
24889   c = getopt (7, argv, "+abp:q:");
24890   if (!(c == -1))
24891     return 4;
24892   if (!(strcmp (argv[0], "program") == 0))
24893     return 5;
24894   if (!(strcmp (argv[1], "donald") == 0))
24895     return 6;
24896   if (!(strcmp (argv[2], "-p") == 0))
24897     return 7;
24898   if (!(strcmp (argv[3], "billy") == 0))
24899     return 8;
24900   if (!(strcmp (argv[4], "duck") == 0))
24901     return 9;
24902   if (!(strcmp (argv[5], "-a") == 0))
24903     return 10;
24904   if (!(strcmp (argv[6], "bar") == 0))
24905     return 11;
24906   if (!(optind == 1))
24907     return 12;
24908   return 0;
24909 }
24910
24911 _ACEOF
24912 if ac_fn_c_try_run "$LINENO"; then :
24913   gl_cv_func_getopt_posix=maybe
24914 else
24915   gl_cv_func_getopt_posix=no
24916 fi
24917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24918   conftest.$ac_objext conftest.beam conftest.$ac_ext
24919 fi
24920
24921           fi
24922           if test $gl_cv_func_getopt_posix = maybe; then
24923                         if test "$cross_compiling" = yes; then :
24924   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24926 as_fn_error $? "cannot run test program while cross compiling
24927 See \`config.log' for more details" "$LINENO" 5; }
24928 else
24929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24930 /* end confdefs.h.  */
24931
24932 #include <unistd.h>
24933 #include <stdlib.h>
24934 #include <string.h>
24935
24936 int
24937 main ()
24938 {
24939   static char program[] = "program";
24940   static char ab[] = "-ab";
24941   char *argv[3] = { program, ab, NULL };
24942   if (getopt (2, argv, "ab:") != 'a')
24943     return 13;
24944   if (getopt (2, argv, "ab:") != '?')
24945     return 14;
24946   if (optopt != 'b')
24947     return 15;
24948   if (optind != 2)
24949     return 16;
24950   return 0;
24951 }
24952
24953 _ACEOF
24954 if ac_fn_c_try_run "$LINENO"; then :
24955   gl_cv_func_getopt_posix=yes
24956 else
24957   gl_cv_func_getopt_posix=no
24958 fi
24959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24960   conftest.$ac_objext conftest.beam conftest.$ac_ext
24961 fi
24962
24963           fi
24964         else
24965           case "$host_os" in
24966             darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
24967             *)                       gl_cv_func_getopt_posix="guessing yes";;
24968           esac
24969         fi
24970
24971 fi
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
24973 $as_echo "$gl_cv_func_getopt_posix" >&6; }
24974     case "$gl_cv_func_getopt_posix" in
24975       *no) gl_replace_getopt=yes ;;
24976     esac
24977   fi
24978
24979   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
24980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
24981 $as_echo_n "checking for working GNU getopt function... " >&6; }
24982 if ${gl_cv_func_getopt_gnu+:} false; then :
24983   $as_echo_n "(cached) " >&6
24984 else
24985   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
24986        # optstring is necessary for programs like m4 that have POSIX-mandated
24987        # semantics for supporting options interspersed with files.
24988        # Also, since getopt_long is a GNU extension, we require optind=0.
24989        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
24990        # so take care to revert to the correct (non-)export state.
24991        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
24992        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
24993          xx) gl_had_POSIXLY_CORRECT=exported ;;
24994          x)  gl_had_POSIXLY_CORRECT=yes      ;;
24995          *)  gl_had_POSIXLY_CORRECT=         ;;
24996        esac
24997        POSIXLY_CORRECT=1
24998        export POSIXLY_CORRECT
24999        if test "$cross_compiling" = yes; then :
25000            gl_cv_func_getopt_gnu="guessing no"
25001
25002 else
25003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25004 /* end confdefs.h.  */
25005 #include <getopt.h>
25006                            #include <stddef.h>
25007                            #include <string.h>
25008
25009 #include <stdlib.h>
25010 #if defined __MACH__ && defined __APPLE__
25011 /* Avoid a crash on Mac OS X.  */
25012 #include <mach/mach.h>
25013 #include <mach/mach_error.h>
25014 #include <mach/thread_status.h>
25015 #include <mach/exception.h>
25016 #include <mach/task.h>
25017 #include <pthread.h>
25018 /* The exception port on which our thread listens.  */
25019 static mach_port_t our_exception_port;
25020 /* The main function of the thread listening for exceptions of type
25021    EXC_BAD_ACCESS.  */
25022 static void *
25023 mach_exception_thread (void *arg)
25024 {
25025   /* Buffer for a message to be received.  */
25026   struct {
25027     mach_msg_header_t head;
25028     mach_msg_body_t msgh_body;
25029     char data[1024];
25030   } msg;
25031   mach_msg_return_t retval;
25032   /* Wait for a message on the exception port.  */
25033   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
25034                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
25035   if (retval != MACH_MSG_SUCCESS)
25036     abort ();
25037   exit (1);
25038 }
25039 static void
25040 nocrash_init (void)
25041 {
25042   mach_port_t self = mach_task_self ();
25043   /* Allocate a port on which the thread shall listen for exceptions.  */
25044   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
25045       == KERN_SUCCESS) {
25046     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
25047     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
25048                                 MACH_MSG_TYPE_MAKE_SEND)
25049         == KERN_SUCCESS) {
25050       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
25051          for us.  */
25052       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
25053       /* Create the thread listening on the exception port.  */
25054       pthread_attr_t attr;
25055       pthread_t thread;
25056       if (pthread_attr_init (&attr) == 0
25057           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
25058           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
25059         pthread_attr_destroy (&attr);
25060         /* Replace the exception port info for these exceptions with our own.
25061            Note that we replace the exception port for the entire task, not only
25062            for a particular thread.  This has the effect that when our exception
25063            port gets the message, the thread specific exception port has already
25064            been asked, and we don't need to bother about it.
25065            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
25066         task_set_exception_ports (self, mask, our_exception_port,
25067                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
25068       }
25069     }
25070   }
25071 }
25072 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25073 /* Avoid a crash on native Windows.  */
25074 #define WIN32_LEAN_AND_MEAN
25075 #include <windows.h>
25076 #include <winerror.h>
25077 static LONG WINAPI
25078 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
25079 {
25080   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
25081     {
25082     case EXCEPTION_ACCESS_VIOLATION:
25083     case EXCEPTION_IN_PAGE_ERROR:
25084     case EXCEPTION_STACK_OVERFLOW:
25085     case EXCEPTION_GUARD_PAGE:
25086     case EXCEPTION_PRIV_INSTRUCTION:
25087     case EXCEPTION_ILLEGAL_INSTRUCTION:
25088     case EXCEPTION_DATATYPE_MISALIGNMENT:
25089     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
25090     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
25091       exit (1);
25092     }
25093   return EXCEPTION_CONTINUE_SEARCH;
25094 }
25095 static void
25096 nocrash_init (void)
25097 {
25098   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
25099 }
25100 #else
25101 /* Avoid a crash on POSIX systems.  */
25102 #include <signal.h>
25103 #include <unistd.h>
25104 /* A POSIX signal handler.  */
25105 static void
25106 exception_handler (int sig)
25107 {
25108   _exit (1);
25109 }
25110 static void
25111 nocrash_init (void)
25112 {
25113 #ifdef SIGSEGV
25114   signal (SIGSEGV, exception_handler);
25115 #endif
25116 #ifdef SIGBUS
25117   signal (SIGBUS, exception_handler);
25118 #endif
25119 }
25120 #endif
25121
25122
25123 int
25124 main ()
25125 {
25126
25127              int result = 0;
25128
25129              nocrash_init();
25130
25131              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
25132                 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
25133                 OSF/1 5.1, Solaris 10.  */
25134              {
25135                static char conftest[] = "conftest";
25136                static char plus[] = "-+";
25137                char *argv[3] = { conftest, plus, NULL };
25138                opterr = 0;
25139                if (getopt (2, argv, "+a") != '?')
25140                  result |= 1;
25141              }
25142              /* This code succeeds on glibc 2.8, mingw,
25143                 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
25144                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
25145              {
25146                static char program[] = "program";
25147                static char p[] = "-p";
25148                static char foo[] = "foo";
25149                static char bar[] = "bar";
25150                char *argv[] = { program, p, foo, bar, NULL };
25151
25152                optind = 1;
25153                if (getopt (4, argv, "p::") != 'p')
25154                  result |= 2;
25155                else if (optarg != NULL)
25156                  result |= 4;
25157                else if (getopt (4, argv, "p::") != -1)
25158                  result |= 6;
25159                else if (optind != 2)
25160                  result |= 8;
25161              }
25162              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
25163              {
25164                static char program[] = "program";
25165                static char foo[] = "foo";
25166                static char p[] = "-p";
25167                char *argv[] = { program, foo, p, NULL };
25168                optind = 0;
25169                if (getopt (3, argv, "-p") != 1)
25170                  result |= 16;
25171                else if (getopt (3, argv, "-p") != 'p')
25172                  result |= 16;
25173              }
25174              /* This code fails on glibc 2.11.  */
25175              {
25176                static char program[] = "program";
25177                static char b[] = "-b";
25178                static char a[] = "-a";
25179                char *argv[] = { program, b, a, NULL };
25180                optind = opterr = 0;
25181                if (getopt (3, argv, "+:a:b") != 'b')
25182                  result |= 32;
25183                else if (getopt (3, argv, "+:a:b") != ':')
25184                  result |= 32;
25185              }
25186              /* This code dumps core on glibc 2.14.  */
25187              {
25188                static char program[] = "program";
25189                static char w[] = "-W";
25190                static char dummy[] = "dummy";
25191                char *argv[] = { program, w, dummy, NULL };
25192                optind = opterr = 1;
25193                if (getopt (3, argv, "W;") != 'W')
25194                  result |= 64;
25195              }
25196              return result;
25197
25198   ;
25199   return 0;
25200 }
25201 _ACEOF
25202 if ac_fn_c_try_run "$LINENO"; then :
25203   gl_cv_func_getopt_gnu=yes
25204 else
25205   gl_cv_func_getopt_gnu=no
25206 fi
25207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25208   conftest.$ac_objext conftest.beam conftest.$ac_ext
25209 fi
25210
25211        case $gl_had_POSIXLY_CORRECT in
25212          exported) ;;
25213          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
25214          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
25215        esac
25216
25217 fi
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
25219 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
25220     if test "$gl_cv_func_getopt_gnu" != yes; then
25221       gl_replace_getopt=yes
25222     else
25223       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
25224 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
25225 if ${gl_cv_func_getopt_long_gnu+:} false; then :
25226   $as_echo_n "(cached) " >&6
25227 else
25228   if test "$cross_compiling" = yes; then :
25229               case "$host_os" in
25230               openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
25231               *)        gl_cv_func_getopt_long_gnu="guessing yes";;
25232             esac
25233
25234 else
25235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h.  */
25237 #include <getopt.h>
25238                 #include <stddef.h>
25239                 #include <string.h>
25240
25241 int
25242 main ()
25243 {
25244 static const struct option long_options[] =
25245                   {
25246                     { "xtremely-",no_argument,       NULL, 1003 },
25247                     { "xtra",     no_argument,       NULL, 1001 },
25248                     { "xtreme",   no_argument,       NULL, 1002 },
25249                     { "xtremely", no_argument,       NULL, 1003 },
25250                     { NULL,       0,                 NULL, 0 }
25251                   };
25252                 /* This code fails on OpenBSD 5.0.  */
25253                 {
25254                   static char program[] = "program";
25255                   static char xtremel[] = "--xtremel";
25256                   char *argv[] = { program, xtremel, NULL };
25257                   int option_index;
25258                   optind = 1; opterr = 0;
25259                   if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
25260                     return 1;
25261                 }
25262                 return 0;
25263
25264   ;
25265   return 0;
25266 }
25267 _ACEOF
25268 if ac_fn_c_try_run "$LINENO"; then :
25269   gl_cv_func_getopt_long_gnu=yes
25270 else
25271   gl_cv_func_getopt_long_gnu=no
25272 fi
25273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25274   conftest.$ac_objext conftest.beam conftest.$ac_ext
25275 fi
25276
25277
25278 fi
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
25280 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
25281       case "$gl_cv_func_getopt_long_gnu" in
25282         *yes) ;;
25283         *) gl_replace_getopt=yes ;;
25284       esac
25285     fi
25286   fi
25287
25288
25289
25290
25291
25292
25293     REPLACE_GETOPT=0
25294     if test -n "$gl_replace_getopt"; then
25295       REPLACE_GETOPT=1
25296     fi
25297
25298   if test $REPLACE_GETOPT = 1; then
25299
25300   GETOPT_H=getopt.h
25301
25302 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
25303
25304
25305
25306   fi
25307
25308 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
25309 if test "x$ac_cv_have_decl_getenv" = xyes; then :
25310   ac_have_decl=1
25311 else
25312   ac_have_decl=0
25313 fi
25314
25315 cat >>confdefs.h <<_ACEOF
25316 #define HAVE_DECL_GETENV $ac_have_decl
25317 _ACEOF
25318
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
25320 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
25321 if ${ac_cv_c_restrict+:} false; then :
25322   $as_echo_n "(cached) " >&6
25323 else
25324   ac_cv_c_restrict=no
25325    # The order here caters to the fact that C++ does not require restrict.
25326    for ac_kw in __restrict __restrict__ _Restrict restrict; do
25327      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328 /* end confdefs.h.  */
25329 typedef int *int_ptr;
25330            int foo (int_ptr $ac_kw ip) { return ip[0]; }
25331            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
25332            int bar (int ip[$ac_kw]) { return ip[0]; }
25333
25334 int
25335 main ()
25336 {
25337 int s[1];
25338            int *$ac_kw t = s;
25339            t[0] = 0;
25340            return foo (t) + bar (t);
25341
25342   ;
25343   return 0;
25344 }
25345 _ACEOF
25346 if ac_fn_c_try_compile "$LINENO"; then :
25347   ac_cv_c_restrict=$ac_kw
25348 fi
25349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25350      test "$ac_cv_c_restrict" != no && break
25351    done
25352
25353 fi
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
25355 $as_echo "$ac_cv_c_restrict" >&6; }
25356
25357  case $ac_cv_c_restrict in
25358    restrict) ;;
25359    no) $as_echo "#define restrict /**/" >>confdefs.h
25360  ;;
25361    *)  cat >>confdefs.h <<_ACEOF
25362 #define restrict $ac_cv_c_restrict
25363 _ACEOF
25364  ;;
25365  esac
25366
25367
25368   GNULIB_GETTIMEOFDAY=0;
25369     HAVE_GETTIMEOFDAY=1;
25370   HAVE_STRUCT_TIMEVAL=1;
25371   HAVE_SYS_TIME_H=1;
25372   HAVE_TIMEZONE_T=0;
25373   REPLACE_GETTIMEOFDAY=0;
25374   REPLACE_STRUCT_TIMEVAL=0;
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391      if test $gl_cv_have_include_next = yes; then
25392        gl_cv_next_sys_time_h='<'sys/time.h'>'
25393      else
25394        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
25395 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
25396 if ${gl_cv_next_sys_time_h+:} false; then :
25397   $as_echo_n "(cached) " >&6
25398 else
25399
25400              if test $ac_cv_header_sys_time_h = yes; then
25401
25402
25403
25404
25405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h.  */
25407 #include <sys/time.h>
25408 _ACEOF
25409                 case "$host_os" in
25410     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25411     *)    gl_absname_cpp="$ac_cpp" ;;
25412   esac
25413
25414   case "$host_os" in
25415     mingw*)
25416                                           gl_dirsep_regex='[/\\]'
25417       ;;
25418     *)
25419       gl_dirsep_regex='\/'
25420       ;;
25421   esac
25422       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25423   gl_header_literal_regex=`echo 'sys/time.h' \
25424                            | sed -e "$gl_make_literal_regex_sed"`
25425   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25426       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25427       s|^/[^/]|//&|
25428       p
25429       q
25430     }'
25431
25432         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25433   sed -n "$gl_absolute_header_sed"`
25434
25435            gl_header=$gl_cv_absolute_sys_time_h
25436            gl_cv_next_sys_time_h='"'$gl_header'"'
25437           else
25438                gl_cv_next_sys_time_h='<'sys/time.h'>'
25439              fi
25440
25441
25442 fi
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
25444 $as_echo "$gl_cv_next_sys_time_h" >&6; }
25445      fi
25446      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
25447
25448      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25449        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25450        gl_next_as_first_directive='<'sys/time.h'>'
25451      else
25452        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25453        gl_next_as_first_directive=$gl_cv_next_sys_time_h
25454      fi
25455      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
25456
25457
25458
25459
25460
25461   if test $ac_cv_header_sys_time_h != yes; then
25462     HAVE_SYS_TIME_H=0
25463   fi
25464
25465
25466
25467
25468
25469   if test $ac_cv_header_sys_socket_h != yes; then
25470                     for ac_header in winsock2.h
25471 do :
25472   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25473 if test "x$ac_cv_header_winsock2_h" = xyes; then :
25474   cat >>confdefs.h <<_ACEOF
25475 #define HAVE_WINSOCK2_H 1
25476 _ACEOF
25477
25478 fi
25479
25480 done
25481
25482   fi
25483   if test "$ac_cv_header_winsock2_h" = yes; then
25484     HAVE_WINSOCK2_H=1
25485     UNISTD_H_HAVE_WINSOCK2_H=1
25486     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25487   else
25488     HAVE_WINSOCK2_H=0
25489   fi
25490
25491
25492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
25493 $as_echo_n "checking for struct timeval... " >&6; }
25494 if ${gl_cv_sys_struct_timeval+:} false; then :
25495   $as_echo_n "(cached) " >&6
25496 else
25497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h.  */
25499 #if HAVE_SYS_TIME_H
25500              #include <sys/time.h>
25501             #endif
25502             #include <time.h>
25503             #if HAVE_WINSOCK2_H
25504             # include <winsock2.h>
25505             #endif
25506
25507 int
25508 main ()
25509 {
25510 static struct timeval x; x.tv_sec = x.tv_usec;
25511   ;
25512   return 0;
25513 }
25514 _ACEOF
25515 if ac_fn_c_try_compile "$LINENO"; then :
25516   gl_cv_sys_struct_timeval=yes
25517 else
25518   gl_cv_sys_struct_timeval=no
25519 fi
25520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25521
25522 fi
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
25524 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
25525   if test $gl_cv_sys_struct_timeval != yes; then
25526     HAVE_STRUCT_TIMEVAL=0
25527   else
25528                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
25529 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
25530 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
25531   $as_echo_n "(cached) " >&6
25532 else
25533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25534 /* end confdefs.h.  */
25535 #if HAVE_SYS_TIME_H
25536                #include <sys/time.h>
25537               #endif
25538               #include <time.h>
25539               #if HAVE_WINSOCK2_H
25540               # include <winsock2.h>
25541               #endif
25542
25543 int
25544 main ()
25545 {
25546 static struct timeval x;
25547               typedef int verify_tv_sec_type[
25548                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
25549               ];
25550
25551   ;
25552   return 0;
25553 }
25554 _ACEOF
25555 if ac_fn_c_try_compile "$LINENO"; then :
25556   gl_cv_sys_struct_timeval_tv_sec=yes
25557 else
25558   gl_cv_sys_struct_timeval_tv_sec=no
25559 fi
25560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25561
25562 fi
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
25564 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
25565     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
25566       REPLACE_STRUCT_TIMEVAL=1
25567     fi
25568   fi
25569
25570
25571     for gl_func in gettimeofday; do
25572     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25574 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25575 if eval \${$as_gl_Symbol+:} false; then :
25576   $as_echo_n "(cached) " >&6
25577 else
25578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25579 /* end confdefs.h.  */
25580
25581 #if HAVE_SYS_TIME_H
25582 # include <sys/time.h>
25583 #endif
25584 #include <time.h>
25585
25586 int
25587 main ()
25588 {
25589 #undef $gl_func
25590   (void) $gl_func;
25591   ;
25592   return 0;
25593 }
25594 _ACEOF
25595 if ac_fn_c_try_compile "$LINENO"; then :
25596   eval "$as_gl_Symbol=yes"
25597 else
25598   eval "$as_gl_Symbol=no"
25599 fi
25600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25601 fi
25602 eval ac_res=\$$as_gl_Symbol
25603                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25604 $as_echo "$ac_res" >&6; }
25605     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25606   cat >>confdefs.h <<_ACEOF
25607 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25608 _ACEOF
25609
25610                      eval ac_cv_have_decl_$gl_func=yes
25611 fi
25612       done
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623   GNULIB_ACOSF=0;
25624   GNULIB_ACOSL=0;
25625   GNULIB_ASINF=0;
25626   GNULIB_ASINL=0;
25627   GNULIB_ATANF=0;
25628   GNULIB_ATANL=0;
25629   GNULIB_ATAN2F=0;
25630   GNULIB_CBRT=0;
25631   GNULIB_CBRTF=0;
25632   GNULIB_CBRTL=0;
25633   GNULIB_CEIL=0;
25634   GNULIB_CEILF=0;
25635   GNULIB_CEILL=0;
25636   GNULIB_COPYSIGN=0;
25637   GNULIB_COPYSIGNF=0;
25638   GNULIB_COPYSIGNL=0;
25639   GNULIB_COSF=0;
25640   GNULIB_COSL=0;
25641   GNULIB_COSHF=0;
25642   GNULIB_EXPF=0;
25643   GNULIB_EXPL=0;
25644   GNULIB_EXP2=0;
25645   GNULIB_EXP2F=0;
25646   GNULIB_EXP2L=0;
25647   GNULIB_EXPM1=0;
25648   GNULIB_EXPM1F=0;
25649   GNULIB_EXPM1L=0;
25650   GNULIB_FABSF=0;
25651   GNULIB_FABSL=0;
25652   GNULIB_FLOOR=0;
25653   GNULIB_FLOORF=0;
25654   GNULIB_FLOORL=0;
25655   GNULIB_FMA=0;
25656   GNULIB_FMAF=0;
25657   GNULIB_FMAL=0;
25658   GNULIB_FMOD=0;
25659   GNULIB_FMODF=0;
25660   GNULIB_FMODL=0;
25661   GNULIB_FREXPF=0;
25662   GNULIB_FREXP=0;
25663   GNULIB_FREXPL=0;
25664   GNULIB_HYPOT=0;
25665   GNULIB_HYPOTF=0;
25666   GNULIB_HYPOTL=0;
25667   GNULIB_ILOGB=0;
25668   GNULIB_ILOGBF=0;
25669   GNULIB_ILOGBL=0;
25670   GNULIB_ISFINITE=0;
25671   GNULIB_ISINF=0;
25672   GNULIB_ISNAN=0;
25673   GNULIB_ISNANF=0;
25674   GNULIB_ISNAND=0;
25675   GNULIB_ISNANL=0;
25676   GNULIB_LDEXPF=0;
25677   GNULIB_LDEXPL=0;
25678   GNULIB_LOG=0;
25679   GNULIB_LOGF=0;
25680   GNULIB_LOGL=0;
25681   GNULIB_LOG10=0;
25682   GNULIB_LOG10F=0;
25683   GNULIB_LOG10L=0;
25684   GNULIB_LOG1P=0;
25685   GNULIB_LOG1PF=0;
25686   GNULIB_LOG1PL=0;
25687   GNULIB_LOG2=0;
25688   GNULIB_LOG2F=0;
25689   GNULIB_LOG2L=0;
25690   GNULIB_LOGB=0;
25691   GNULIB_LOGBF=0;
25692   GNULIB_LOGBL=0;
25693   GNULIB_MODF=0;
25694   GNULIB_MODFF=0;
25695   GNULIB_MODFL=0;
25696   GNULIB_POWF=0;
25697   GNULIB_REMAINDER=0;
25698   GNULIB_REMAINDERF=0;
25699   GNULIB_REMAINDERL=0;
25700   GNULIB_RINT=0;
25701   GNULIB_RINTF=0;
25702   GNULIB_RINTL=0;
25703   GNULIB_ROUND=0;
25704   GNULIB_ROUNDF=0;
25705   GNULIB_ROUNDL=0;
25706   GNULIB_SIGNBIT=0;
25707   GNULIB_SINF=0;
25708   GNULIB_SINL=0;
25709   GNULIB_SINHF=0;
25710   GNULIB_SQRTF=0;
25711   GNULIB_SQRTL=0;
25712   GNULIB_TANF=0;
25713   GNULIB_TANL=0;
25714   GNULIB_TANHF=0;
25715   GNULIB_TRUNC=0;
25716   GNULIB_TRUNCF=0;
25717   GNULIB_TRUNCL=0;
25718     HAVE_ACOSF=1;
25719   HAVE_ACOSL=1;
25720   HAVE_ASINF=1;
25721   HAVE_ASINL=1;
25722   HAVE_ATANF=1;
25723   HAVE_ATANL=1;
25724   HAVE_ATAN2F=1;
25725   HAVE_CBRT=1;
25726   HAVE_CBRTF=1;
25727   HAVE_CBRTL=1;
25728   HAVE_COPYSIGN=1;
25729   HAVE_COPYSIGNL=1;
25730   HAVE_COSF=1;
25731   HAVE_COSL=1;
25732   HAVE_COSHF=1;
25733   HAVE_EXPF=1;
25734   HAVE_EXPL=1;
25735   HAVE_EXPM1=1;
25736   HAVE_EXPM1F=1;
25737   HAVE_FABSF=1;
25738   HAVE_FABSL=1;
25739   HAVE_FMA=1;
25740   HAVE_FMAF=1;
25741   HAVE_FMAL=1;
25742   HAVE_FMODF=1;
25743   HAVE_FMODL=1;
25744   HAVE_FREXPF=1;
25745   HAVE_HYPOTF=1;
25746   HAVE_HYPOTL=1;
25747   HAVE_ILOGB=1;
25748   HAVE_ILOGBF=1;
25749   HAVE_ILOGBL=1;
25750   HAVE_ISNANF=1;
25751   HAVE_ISNAND=1;
25752   HAVE_ISNANL=1;
25753   HAVE_LDEXPF=1;
25754   HAVE_LOGF=1;
25755   HAVE_LOGL=1;
25756   HAVE_LOG10F=1;
25757   HAVE_LOG10L=1;
25758   HAVE_LOG1P=1;
25759   HAVE_LOG1PF=1;
25760   HAVE_LOG1PL=1;
25761   HAVE_LOGBF=1;
25762   HAVE_LOGBL=1;
25763   HAVE_MODFF=1;
25764   HAVE_MODFL=1;
25765   HAVE_POWF=1;
25766   HAVE_REMAINDER=1;
25767   HAVE_REMAINDERF=1;
25768   HAVE_RINT=1;
25769   HAVE_RINTL=1;
25770   HAVE_SINF=1;
25771   HAVE_SINL=1;
25772   HAVE_SINHF=1;
25773   HAVE_SQRTF=1;
25774   HAVE_SQRTL=1;
25775   HAVE_TANF=1;
25776   HAVE_TANL=1;
25777   HAVE_TANHF=1;
25778   HAVE_DECL_ACOSL=1;
25779   HAVE_DECL_ASINL=1;
25780   HAVE_DECL_ATANL=1;
25781   HAVE_DECL_CBRTF=1;
25782   HAVE_DECL_CBRTL=1;
25783   HAVE_DECL_CEILF=1;
25784   HAVE_DECL_CEILL=1;
25785   HAVE_DECL_COPYSIGNF=1;
25786   HAVE_DECL_COSL=1;
25787   HAVE_DECL_EXPL=1;
25788   HAVE_DECL_EXP2=1;
25789   HAVE_DECL_EXP2F=1;
25790   HAVE_DECL_EXP2L=1;
25791   HAVE_DECL_EXPM1L=1;
25792   HAVE_DECL_FLOORF=1;
25793   HAVE_DECL_FLOORL=1;
25794   HAVE_DECL_FREXPL=1;
25795   HAVE_DECL_LDEXPL=1;
25796   HAVE_DECL_LOGL=1;
25797   HAVE_DECL_LOG10L=1;
25798   HAVE_DECL_LOG2=1;
25799   HAVE_DECL_LOG2F=1;
25800   HAVE_DECL_LOG2L=1;
25801   HAVE_DECL_LOGB=1;
25802   HAVE_DECL_REMAINDER=1;
25803   HAVE_DECL_REMAINDERL=1;
25804   HAVE_DECL_RINTF=1;
25805   HAVE_DECL_ROUND=1;
25806   HAVE_DECL_ROUNDF=1;
25807   HAVE_DECL_ROUNDL=1;
25808   HAVE_DECL_SINL=1;
25809   HAVE_DECL_SQRTL=1;
25810   HAVE_DECL_TANL=1;
25811   HAVE_DECL_TRUNC=1;
25812   HAVE_DECL_TRUNCF=1;
25813   HAVE_DECL_TRUNCL=1;
25814   REPLACE_CBRTF=0;
25815   REPLACE_CBRTL=0;
25816   REPLACE_CEIL=0;
25817   REPLACE_CEILF=0;
25818   REPLACE_CEILL=0;
25819   REPLACE_EXPM1=0;
25820   REPLACE_EXPM1F=0;
25821   REPLACE_EXP2=0;
25822   REPLACE_EXP2L=0;
25823   REPLACE_FABSL=0;
25824   REPLACE_FLOOR=0;
25825   REPLACE_FLOORF=0;
25826   REPLACE_FLOORL=0;
25827   REPLACE_FMA=0;
25828   REPLACE_FMAF=0;
25829   REPLACE_FMAL=0;
25830   REPLACE_FMOD=0;
25831   REPLACE_FMODF=0;
25832   REPLACE_FMODL=0;
25833   REPLACE_FREXPF=0;
25834   REPLACE_FREXP=0;
25835   REPLACE_FREXPL=0;
25836   REPLACE_HUGE_VAL=0;
25837   REPLACE_HYPOT=0;
25838   REPLACE_HYPOTF=0;
25839   REPLACE_HYPOTL=0;
25840   REPLACE_ILOGB=0;
25841   REPLACE_ILOGBF=0;
25842   REPLACE_ISFINITE=0;
25843   REPLACE_ISINF=0;
25844   REPLACE_ISNAN=0;
25845   REPLACE_LDEXPL=0;
25846   REPLACE_LOG=0;
25847   REPLACE_LOGF=0;
25848   REPLACE_LOGL=0;
25849   REPLACE_LOG10=0;
25850   REPLACE_LOG10F=0;
25851   REPLACE_LOG10L=0;
25852   REPLACE_LOG1P=0;
25853   REPLACE_LOG1PF=0;
25854   REPLACE_LOG1PL=0;
25855   REPLACE_LOG2=0;
25856   REPLACE_LOG2F=0;
25857   REPLACE_LOG2L=0;
25858   REPLACE_LOGB=0;
25859   REPLACE_LOGBF=0;
25860   REPLACE_LOGBL=0;
25861   REPLACE_MODF=0;
25862   REPLACE_MODFF=0;
25863   REPLACE_MODFL=0;
25864   REPLACE_NAN=0;
25865   REPLACE_REMAINDER=0;
25866   REPLACE_REMAINDERF=0;
25867   REPLACE_REMAINDERL=0;
25868   REPLACE_ROUND=0;
25869   REPLACE_ROUNDF=0;
25870   REPLACE_ROUNDL=0;
25871   REPLACE_SIGNBIT=0;
25872   REPLACE_SIGNBIT_USING_GCC=0;
25873   REPLACE_SQRTL=0;
25874   REPLACE_TRUNC=0;
25875   REPLACE_TRUNCF=0;
25876   REPLACE_TRUNCL=0;
25877
25878
25879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25880 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25881 if ${ac_cv_c_bigendian+:} false; then :
25882   $as_echo_n "(cached) " >&6
25883 else
25884   ac_cv_c_bigendian=unknown
25885     # See if we're dealing with a universal compiler.
25886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25887 /* end confdefs.h.  */
25888 #ifndef __APPLE_CC__
25889                not a universal capable compiler
25890              #endif
25891              typedef int dummy;
25892
25893 _ACEOF
25894 if ac_fn_c_try_compile "$LINENO"; then :
25895
25896         # Check for potential -arch flags.  It is not universal unless
25897         # there are at least two -arch flags with different values.
25898         ac_arch=
25899         ac_prev=
25900         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25901          if test -n "$ac_prev"; then
25902            case $ac_word in
25903              i?86 | x86_64 | ppc | ppc64)
25904                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25905                  ac_arch=$ac_word
25906                else
25907                  ac_cv_c_bigendian=universal
25908                  break
25909                fi
25910                ;;
25911            esac
25912            ac_prev=
25913          elif test "x$ac_word" = "x-arch"; then
25914            ac_prev=arch
25915          fi
25916        done
25917 fi
25918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25919     if test $ac_cv_c_bigendian = unknown; then
25920       # See if sys/param.h defines the BYTE_ORDER macro.
25921       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922 /* end confdefs.h.  */
25923 #include <sys/types.h>
25924              #include <sys/param.h>
25925
25926 int
25927 main ()
25928 {
25929 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25930                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25931                      && LITTLE_ENDIAN)
25932               bogus endian macros
25933              #endif
25934
25935   ;
25936   return 0;
25937 }
25938 _ACEOF
25939 if ac_fn_c_try_compile "$LINENO"; then :
25940   # It does; now see whether it defined to BIG_ENDIAN or not.
25941          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25942 /* end confdefs.h.  */
25943 #include <sys/types.h>
25944                 #include <sys/param.h>
25945
25946 int
25947 main ()
25948 {
25949 #if BYTE_ORDER != BIG_ENDIAN
25950                  not big endian
25951                 #endif
25952
25953   ;
25954   return 0;
25955 }
25956 _ACEOF
25957 if ac_fn_c_try_compile "$LINENO"; then :
25958   ac_cv_c_bigendian=yes
25959 else
25960   ac_cv_c_bigendian=no
25961 fi
25962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25963 fi
25964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965     fi
25966     if test $ac_cv_c_bigendian = unknown; then
25967       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25968       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h.  */
25970 #include <limits.h>
25971
25972 int
25973 main ()
25974 {
25975 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25976               bogus endian macros
25977              #endif
25978
25979   ;
25980   return 0;
25981 }
25982 _ACEOF
25983 if ac_fn_c_try_compile "$LINENO"; then :
25984   # It does; now see whether it defined to _BIG_ENDIAN or not.
25985          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h.  */
25987 #include <limits.h>
25988
25989 int
25990 main ()
25991 {
25992 #ifndef _BIG_ENDIAN
25993                  not big endian
25994                 #endif
25995
25996   ;
25997   return 0;
25998 }
25999 _ACEOF
26000 if ac_fn_c_try_compile "$LINENO"; then :
26001   ac_cv_c_bigendian=yes
26002 else
26003   ac_cv_c_bigendian=no
26004 fi
26005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26006 fi
26007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26008     fi
26009     if test $ac_cv_c_bigendian = unknown; then
26010       # Compile a test program.
26011       if test "$cross_compiling" = yes; then :
26012   # Try to guess by grepping values from an object file.
26013          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26014 /* end confdefs.h.  */
26015 short int ascii_mm[] =
26016                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26017                 short int ascii_ii[] =
26018                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26019                 int use_ascii (int i) {
26020                   return ascii_mm[i] + ascii_ii[i];
26021                 }
26022                 short int ebcdic_ii[] =
26023                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26024                 short int ebcdic_mm[] =
26025                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26026                 int use_ebcdic (int i) {
26027                   return ebcdic_mm[i] + ebcdic_ii[i];
26028                 }
26029                 extern int foo;
26030
26031 int
26032 main ()
26033 {
26034 return use_ascii (foo) == use_ebcdic (foo);
26035   ;
26036   return 0;
26037 }
26038 _ACEOF
26039 if ac_fn_c_try_compile "$LINENO"; then :
26040   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26041               ac_cv_c_bigendian=yes
26042             fi
26043             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26044               if test "$ac_cv_c_bigendian" = unknown; then
26045                 ac_cv_c_bigendian=no
26046               else
26047                 # finding both strings is unlikely to happen, but who knows?
26048                 ac_cv_c_bigendian=unknown
26049               fi
26050             fi
26051 fi
26052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26053 else
26054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26055 /* end confdefs.h.  */
26056 $ac_includes_default
26057 int
26058 main ()
26059 {
26060
26061              /* Are we little or big endian?  From Harbison&Steele.  */
26062              union
26063              {
26064                long int l;
26065                char c[sizeof (long int)];
26066              } u;
26067              u.l = 1;
26068              return u.c[sizeof (long int) - 1] == 1;
26069
26070   ;
26071   return 0;
26072 }
26073 _ACEOF
26074 if ac_fn_c_try_run "$LINENO"; then :
26075   ac_cv_c_bigendian=no
26076 else
26077   ac_cv_c_bigendian=yes
26078 fi
26079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26080   conftest.$ac_objext conftest.beam conftest.$ac_ext
26081 fi
26082
26083     fi
26084 fi
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26086 $as_echo "$ac_cv_c_bigendian" >&6; }
26087  case $ac_cv_c_bigendian in #(
26088    yes)
26089      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
26090 ;; #(
26091    no)
26092       ;; #(
26093    universal)
26094
26095 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26096
26097      ;; #(
26098    *)
26099      as_fn_error $? "unknown endianness
26100  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26101  esac
26102
26103
26104
26105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
26106 $as_echo_n "checking whether long double and double are the same... " >&6; }
26107 if ${gl_cv_long_double_equals_double+:} false; then :
26108   $as_echo_n "(cached) " >&6
26109 else
26110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26111 /* end confdefs.h.  */
26112 #include <float.h>
26113 int
26114 main ()
26115 {
26116 typedef int check[sizeof (long double) == sizeof (double)
26117                               && LDBL_MANT_DIG == DBL_MANT_DIG
26118                               && LDBL_MAX_EXP == DBL_MAX_EXP
26119                               && LDBL_MIN_EXP == DBL_MIN_EXP
26120                               ? 1 : -1];
26121
26122   ;
26123   return 0;
26124 }
26125 _ACEOF
26126 if ac_fn_c_try_compile "$LINENO"; then :
26127   gl_cv_long_double_equals_double=yes
26128 else
26129   gl_cv_long_double_equals_double=no
26130 fi
26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26132
26133 fi
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
26135 $as_echo "$gl_cv_long_double_equals_double" >&6; }
26136   if test $gl_cv_long_double_equals_double = yes; then
26137
26138 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
26139
26140     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
26141   else
26142     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
26143   fi
26144
26145
26146
26147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
26148 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
26149 if ${gl_cv_cc_float_expbit0+:} false; then :
26150   $as_echo_n "(cached) " >&6
26151 else
26152
26153       if test "$cross_compiling" = yes; then :
26154   gl_cv_cc_float_expbit0="word 0 bit 23"
26155 else
26156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26157 /* end confdefs.h.  */
26158
26159 #include <float.h>
26160 #include <stddef.h>
26161 #include <stdio.h>
26162 #include <string.h>
26163 #define NWORDS \
26164   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
26165 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
26166 static unsigned int ored_words[NWORDS];
26167 static unsigned int anded_words[NWORDS];
26168 static void add_to_ored_words (float x)
26169 {
26170   memory_float m;
26171   size_t i;
26172   /* Clear it first, in case
26173      sizeof (float) < sizeof (memory_float).  */
26174   memset (&m, 0, sizeof (memory_float));
26175   m.value = x;
26176   for (i = 0; i < NWORDS; i++)
26177     {
26178       ored_words[i] |= m.word[i];
26179       anded_words[i] &= m.word[i];
26180     }
26181 }
26182 int main ()
26183 {
26184   size_t j;
26185   FILE *fp = fopen ("conftest.out", "w");
26186   if (fp == NULL)
26187     return 1;
26188   for (j = 0; j < NWORDS; j++)
26189     anded_words[j] = ~ (unsigned int) 0;
26190   add_to_ored_words (0.25f);
26191   add_to_ored_words (0.5f);
26192   add_to_ored_words (1.0f);
26193   add_to_ored_words (2.0f);
26194   add_to_ored_words (4.0f);
26195   /* Remove bits that are common (e.g. if representation of the first mantissa
26196      bit is explicit).  */
26197   for (j = 0; j < NWORDS; j++)
26198     ored_words[j] &= ~anded_words[j];
26199   /* Now find the nonzero word.  */
26200   for (j = 0; j < NWORDS; j++)
26201     if (ored_words[j] != 0)
26202       break;
26203   if (j < NWORDS)
26204     {
26205       size_t i;
26206       for (i = j + 1; i < NWORDS; i++)
26207         if (ored_words[i] != 0)
26208           {
26209             fprintf (fp, "unknown");
26210             return (fclose (fp) != 0);
26211           }
26212       for (i = 0; ; i++)
26213         if ((ored_words[j] >> i) & 1)
26214           {
26215             fprintf (fp, "word %d bit %d", (int) j, (int) i);
26216             return (fclose (fp) != 0);
26217           }
26218     }
26219   fprintf (fp, "unknown");
26220   return (fclose (fp) != 0);
26221 }
26222
26223 _ACEOF
26224 if ac_fn_c_try_run "$LINENO"; then :
26225   gl_cv_cc_float_expbit0=`cat conftest.out`
26226 else
26227   gl_cv_cc_float_expbit0="unknown"
26228 fi
26229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26230   conftest.$ac_objext conftest.beam conftest.$ac_ext
26231 fi
26232
26233       rm -f conftest.out
26234
26235 fi
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
26237 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
26238   case "$gl_cv_cc_float_expbit0" in
26239     word*bit*)
26240       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
26241       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
26242
26243 cat >>confdefs.h <<_ACEOF
26244 #define FLT_EXPBIT0_WORD $word
26245 _ACEOF
26246
26247
26248 cat >>confdefs.h <<_ACEOF
26249 #define FLT_EXPBIT0_BIT $bit
26250 _ACEOF
26251
26252       ;;
26253   esac
26254
26255
26256
26257   ISNANF_LIBM=
26258
26259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
26260 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
26261 if ${gl_cv_func_isnanf_no_libm+:} false; then :
26262   $as_echo_n "(cached) " >&6
26263 else
26264
26265       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26266 /* end confdefs.h.  */
26267 #include <math.h>
26268              #if __GNUC__ >= 4
26269              # undef isnanf
26270              # define isnanf(x) __builtin_isnanf ((float)(x))
26271              #elif defined isnan
26272              # undef isnanf
26273              # define isnanf(x) isnan ((float)(x))
26274              #endif
26275              float x;
26276 int
26277 main ()
26278 {
26279 return isnanf (x);
26280   ;
26281   return 0;
26282 }
26283 _ACEOF
26284 if ac_fn_c_try_link "$LINENO"; then :
26285   gl_cv_func_isnanf_no_libm=yes
26286 else
26287   gl_cv_func_isnanf_no_libm=no
26288 fi
26289 rm -f core conftest.err conftest.$ac_objext \
26290     conftest$ac_exeext conftest.$ac_ext
26291
26292 fi
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
26294 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
26295
26296   if test $gl_cv_func_isnanf_no_libm = no; then
26297
26298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
26299 $as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
26300 if ${gl_cv_func_isnanf_in_libm+:} false; then :
26301   $as_echo_n "(cached) " >&6
26302 else
26303
26304       save_LIBS="$LIBS"
26305       LIBS="$LIBS -lm"
26306       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h.  */
26308 #include <math.h>
26309              #if __GNUC__ >= 4
26310              # undef isnanf
26311              # define isnanf(x) __builtin_isnanf ((float)(x))
26312              #elif defined isnan
26313              # undef isnanf
26314              # define isnanf(x) isnan ((float)(x))
26315              #endif
26316              float x;
26317 int
26318 main ()
26319 {
26320 return isnanf (x);
26321   ;
26322   return 0;
26323 }
26324 _ACEOF
26325 if ac_fn_c_try_link "$LINENO"; then :
26326   gl_cv_func_isnanf_in_libm=yes
26327 else
26328   gl_cv_func_isnanf_in_libm=no
26329 fi
26330 rm -f core conftest.err conftest.$ac_objext \
26331     conftest$ac_exeext conftest.$ac_ext
26332       LIBS="$save_LIBS"
26333
26334 fi
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
26336 $as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
26337
26338     if test $gl_cv_func_isnanf_in_libm = yes; then
26339       ISNANF_LIBM=-lm
26340     fi
26341   fi
26342     if test $gl_cv_func_isnanf_no_libm = yes \
26343      || test $gl_cv_func_isnanf_in_libm = yes; then
26344     save_LIBS="$LIBS"
26345     LIBS="$LIBS $ISNANF_LIBM"
26346
26347
26348
26349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
26350 $as_echo_n "checking whether isnan(float) works... " >&6; }
26351 if ${gl_cv_func_isnanf_works+:} false; then :
26352   $as_echo_n "(cached) " >&6
26353 else
26354
26355       if test "$cross_compiling" = yes; then :
26356   case "$host_os" in
26357            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
26358            *)                gl_cv_func_isnanf_works="guessing yes";;
26359          esac
26360
26361 else
26362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363 /* end confdefs.h.  */
26364
26365 #include <math.h>
26366 #if __GNUC__ >= 4
26367 # undef isnanf
26368 # define isnanf(x) __builtin_isnanf ((float)(x))
26369 #elif defined isnan
26370 # undef isnanf
26371 # define isnanf(x) isnan ((float)(x))
26372 #endif
26373 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
26374 #ifdef __DECC
26375 static float
26376 NaN ()
26377 {
26378   static float zero = 0.0f;
26379   return zero / zero;
26380 }
26381 #else
26382 # define NaN() (0.0f / 0.0f)
26383 #endif
26384 #define NWORDS \
26385   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
26386 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
26387 int main()
26388 {
26389   int result = 0;
26390
26391   if (isnanf (1.0f / 0.0f))
26392     result |= 1;
26393
26394   if (!isnanf (NaN ()))
26395     result |= 2;
26396
26397 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
26398   /* The isnanf function should be immune against changes in the sign bit and
26399      in the mantissa bits.  The xor operation twiddles a bit that can only be
26400      a sign bit or a mantissa bit.  */
26401   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
26402     {
26403       memory_float m;
26404
26405       m.value = NaN ();
26406       /* Set the bits below the exponent to 01111...111.  */
26407       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
26408       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
26409       if (!isnanf (m.value))
26410         result |= 4;
26411     }
26412 #endif
26413
26414   return result;
26415 }
26416 _ACEOF
26417 if ac_fn_c_try_run "$LINENO"; then :
26418   gl_cv_func_isnanf_works=yes
26419 else
26420   gl_cv_func_isnanf_works=no
26421 fi
26422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26423   conftest.$ac_objext conftest.beam conftest.$ac_ext
26424 fi
26425
26426
26427 fi
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
26429 $as_echo "$gl_cv_func_isnanf_works" >&6; }
26430
26431     LIBS="$save_LIBS"
26432     case "$gl_cv_func_isnanf_works" in
26433       *yes) gl_func_isnanf=yes ;;
26434       *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
26435     esac
26436   else
26437     gl_func_isnanf=no
26438   fi
26439   if test $gl_func_isnanf != yes; then
26440     HAVE_ISNANF=0
26441   fi
26442
26443
26444
26445
26446   ISNAND_LIBM=
26447
26448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
26449 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
26450 if ${gl_cv_func_isnand_no_libm+:} false; then :
26451   $as_echo_n "(cached) " >&6
26452 else
26453
26454       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26455 /* end confdefs.h.  */
26456 #include <math.h>
26457              #if __GNUC__ >= 4
26458              # undef isnand
26459              # define isnand(x) __builtin_isnan ((double)(x))
26460              #else
26461              # undef isnand
26462              # define isnand(x) isnan ((double)(x))
26463              #endif
26464              double x;
26465 int
26466 main ()
26467 {
26468 return isnand (x);
26469   ;
26470   return 0;
26471 }
26472 _ACEOF
26473 if ac_fn_c_try_link "$LINENO"; then :
26474   gl_cv_func_isnand_no_libm=yes
26475 else
26476   gl_cv_func_isnand_no_libm=no
26477 fi
26478 rm -f core conftest.err conftest.$ac_objext \
26479     conftest$ac_exeext conftest.$ac_ext
26480
26481 fi
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
26483 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
26484
26485   if test $gl_cv_func_isnand_no_libm = no; then
26486
26487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
26488 $as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
26489 if ${gl_cv_func_isnand_in_libm+:} false; then :
26490   $as_echo_n "(cached) " >&6
26491 else
26492
26493       save_LIBS="$LIBS"
26494       LIBS="$LIBS -lm"
26495       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26496 /* end confdefs.h.  */
26497 #include <math.h>
26498              #if __GNUC__ >= 4
26499              # undef isnand
26500              # define isnand(x) __builtin_isnan ((double)(x))
26501              #elif defined isnan
26502              # undef isnand
26503              # define isnand(x) isnan ((double)(x))
26504              #endif
26505              double x;
26506 int
26507 main ()
26508 {
26509 return isnand (x);
26510   ;
26511   return 0;
26512 }
26513 _ACEOF
26514 if ac_fn_c_try_link "$LINENO"; then :
26515   gl_cv_func_isnand_in_libm=yes
26516 else
26517   gl_cv_func_isnand_in_libm=no
26518 fi
26519 rm -f core conftest.err conftest.$ac_objext \
26520     conftest$ac_exeext conftest.$ac_ext
26521       LIBS="$save_LIBS"
26522
26523 fi
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
26525 $as_echo "$gl_cv_func_isnand_in_libm" >&6; }
26526
26527     if test $gl_cv_func_isnand_in_libm = yes; then
26528       ISNAND_LIBM=-lm
26529     fi
26530   fi
26531     if test $gl_cv_func_isnand_no_libm = yes \
26532      || test $gl_cv_func_isnand_in_libm = yes; then
26533     gl_func_isnand=yes
26534   else
26535     gl_func_isnand=no
26536     HAVE_ISNAND=0
26537   fi
26538
26539
26540
26541
26542   ISNANL_LIBM=
26543
26544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
26545 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
26546 if ${gl_cv_func_isnanl_no_libm+:} false; then :
26547   $as_echo_n "(cached) " >&6
26548 else
26549
26550       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26551 /* end confdefs.h.  */
26552 #include <math.h>
26553              #if __GNUC__ >= 4
26554              # undef isnanl
26555              # define isnanl(x) __builtin_isnanl ((long double)(x))
26556              #elif defined isnan
26557              # undef isnanl
26558              # define isnanl(x) isnan ((long double)(x))
26559              #endif
26560              long double x;
26561 int
26562 main ()
26563 {
26564 return isnanl (x);
26565   ;
26566   return 0;
26567 }
26568 _ACEOF
26569 if ac_fn_c_try_link "$LINENO"; then :
26570   gl_cv_func_isnanl_no_libm=yes
26571 else
26572   gl_cv_func_isnanl_no_libm=no
26573 fi
26574 rm -f core conftest.err conftest.$ac_objext \
26575     conftest$ac_exeext conftest.$ac_ext
26576
26577 fi
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
26579 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
26580
26581   if test $gl_cv_func_isnanl_no_libm = no; then
26582
26583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
26584 $as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
26585 if ${gl_cv_func_isnanl_in_libm+:} false; then :
26586   $as_echo_n "(cached) " >&6
26587 else
26588
26589       save_LIBS="$LIBS"
26590       LIBS="$LIBS -lm"
26591       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26592 /* end confdefs.h.  */
26593 #include <math.h>
26594              #if __GNUC__ >= 4
26595              # undef isnanl
26596              # define isnanl(x) __builtin_isnanl ((long double)(x))
26597              #elif defined isnan
26598              # undef isnanl
26599              # define isnanl(x) isnan ((long double)(x))
26600              #endif
26601              long double x;
26602 int
26603 main ()
26604 {
26605 return isnanl (x);
26606   ;
26607   return 0;
26608 }
26609 _ACEOF
26610 if ac_fn_c_try_link "$LINENO"; then :
26611   gl_cv_func_isnanl_in_libm=yes
26612 else
26613   gl_cv_func_isnanl_in_libm=no
26614 fi
26615 rm -f core conftest.err conftest.$ac_objext \
26616     conftest$ac_exeext conftest.$ac_ext
26617       LIBS="$save_LIBS"
26618
26619 fi
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
26621 $as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
26622
26623     if test $gl_cv_func_isnanl_in_libm = yes; then
26624       ISNANL_LIBM=-lm
26625     fi
26626   fi
26627     if test $gl_cv_func_isnanl_no_libm = yes \
26628      || test $gl_cv_func_isnanl_in_libm = yes; then
26629     save_LIBS="$LIBS"
26630     LIBS="$LIBS $ISNANL_LIBM"
26631
26632
26633
26634
26635      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
26636 $as_echo_n "checking whether isnanl works... " >&6; }
26637 if ${gl_cv_func_isnanl_works+:} false; then :
26638   $as_echo_n "(cached) " >&6
26639 else
26640
26641       if test "$cross_compiling" = yes; then :
26642   gl_cv_func_isnanl_works="guessing yes"
26643 else
26644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26645 /* end confdefs.h.  */
26646
26647 #include <float.h>
26648 #include <limits.h>
26649 #include <math.h>
26650 #if __GNUC__ >= 4
26651 # undef isnanl
26652 # define isnanl(x) __builtin_isnanl ((long double)(x))
26653 #elif defined isnan
26654 # undef isnanl
26655 # define isnanl(x) isnan ((long double)(x))
26656 #endif
26657 #define NWORDS \
26658   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
26659 typedef union { unsigned int word[NWORDS]; long double value; }
26660         memory_long_double;
26661 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
26662    runtime type conversion.  */
26663 #ifdef __sgi
26664 static long double NaNl ()
26665 {
26666   double zero = 0.0;
26667   return zero / zero;
26668 }
26669 #else
26670 # define NaNl() (0.0L / 0.0L)
26671 #endif
26672 int main ()
26673 {
26674   int result = 0;
26675
26676   if (!isnanl (NaNl ()))
26677     result |= 1;
26678
26679   {
26680     memory_long_double m;
26681     unsigned int i;
26682
26683     /* The isnanl function should be immune against changes in the sign bit and
26684        in the mantissa bits.  The xor operation twiddles a bit that can only be
26685        a sign bit or a mantissa bit (since the exponent never extends to
26686        bit 31).  */
26687     m.value = NaNl ();
26688     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
26689     for (i = 0; i < NWORDS; i++)
26690       m.word[i] |= 1;
26691     if (!isnanl (m.value))
26692       result |= 1;
26693   }
26694
26695 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
26696 /* Representation of an 80-bit 'long double' as an initializer for a sequence
26697    of 'unsigned int' words.  */
26698 # ifdef WORDS_BIGENDIAN
26699 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
26700      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
26701        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
26702        (unsigned int) (mantlo) << 16                                        \
26703      }
26704 # else
26705 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
26706      { mantlo, manthi, exponent }
26707 # endif
26708   { /* Quiet NaN.  */
26709     static memory_long_double x =
26710       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
26711     if (!isnanl (x.value))
26712       result |= 2;
26713   }
26714   {
26715     /* Signalling NaN.  */
26716     static memory_long_double x =
26717       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
26718     if (!isnanl (x.value))
26719       result |= 2;
26720   }
26721   /* isnanl should return something even for noncanonical values.  */
26722   { /* Pseudo-NaN.  */
26723     static memory_long_double x =
26724       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
26725     if (isnanl (x.value) && !isnanl (x.value))
26726       result |= 4;
26727   }
26728   { /* Pseudo-Infinity.  */
26729     static memory_long_double x =
26730       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
26731     if (isnanl (x.value) && !isnanl (x.value))
26732       result |= 8;
26733   }
26734   { /* Pseudo-Zero.  */
26735     static memory_long_double x =
26736       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
26737     if (isnanl (x.value) && !isnanl (x.value))
26738       result |= 16;
26739   }
26740   { /* Unnormalized number.  */
26741     static memory_long_double x =
26742       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
26743     if (isnanl (x.value) && !isnanl (x.value))
26744       result |= 32;
26745   }
26746   { /* Pseudo-Denormal.  */
26747     static memory_long_double x =
26748       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
26749     if (isnanl (x.value) && !isnanl (x.value))
26750       result |= 64;
26751   }
26752 #endif
26753
26754   return result;
26755 }
26756 _ACEOF
26757 if ac_fn_c_try_run "$LINENO"; then :
26758   gl_cv_func_isnanl_works=yes
26759 else
26760   gl_cv_func_isnanl_works=no
26761 fi
26762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26763   conftest.$ac_objext conftest.beam conftest.$ac_ext
26764 fi
26765
26766
26767 fi
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
26769 $as_echo "$gl_cv_func_isnanl_works" >&6; }
26770
26771     LIBS="$save_LIBS"
26772     case "$gl_cv_func_isnanl_works" in
26773       *yes) gl_func_isnanl=yes ;;
26774       *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
26775     esac
26776   else
26777     gl_func_isnanl=no
26778   fi
26779   if test $gl_func_isnanl != yes; then
26780     HAVE_ISNANL=0
26781   fi
26782
26783
26784
26785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
26786 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
26787 if ${gl_cv_cc_double_expbit0+:} false; then :
26788   $as_echo_n "(cached) " >&6
26789 else
26790
26791       if test "$cross_compiling" = yes; then :
26792
26793                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26794 /* end confdefs.h.  */
26795
26796 #if defined arm || defined __arm || defined __arm__
26797   mixed_endianness
26798 #endif
26799
26800 _ACEOF
26801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26802   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
26803   gl_cv_cc_double_expbit0="unknown"
26804 else
26805
26806                                                          :
26807 if ${ac_cv_c_bigendian+:} false; then :
26808   $as_echo_n "(cached) " >&6
26809 else
26810   ac_cv_c_bigendian=unknown
26811     # See if we're dealing with a universal compiler.
26812     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26813 /* end confdefs.h.  */
26814 #ifndef __APPLE_CC__
26815                not a universal capable compiler
26816              #endif
26817              typedef int dummy;
26818
26819 _ACEOF
26820 if ac_fn_c_try_compile "$LINENO"; then :
26821
26822         # Check for potential -arch flags.  It is not universal unless
26823         # there are at least two -arch flags with different values.
26824         ac_arch=
26825         ac_prev=
26826         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26827          if test -n "$ac_prev"; then
26828            case $ac_word in
26829              i?86 | x86_64 | ppc | ppc64)
26830                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26831                  ac_arch=$ac_word
26832                else
26833                  ac_cv_c_bigendian=universal
26834                  break
26835                fi
26836                ;;
26837            esac
26838            ac_prev=
26839          elif test "x$ac_word" = "x-arch"; then
26840            ac_prev=arch
26841          fi
26842        done
26843 fi
26844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26845     if test $ac_cv_c_bigendian = unknown; then
26846       # See if sys/param.h defines the BYTE_ORDER macro.
26847       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26848 /* end confdefs.h.  */
26849 #include <sys/types.h>
26850              #include <sys/param.h>
26851
26852 int
26853 main ()
26854 {
26855 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26856                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26857                      && LITTLE_ENDIAN)
26858               bogus endian macros
26859              #endif
26860
26861   ;
26862   return 0;
26863 }
26864 _ACEOF
26865 if ac_fn_c_try_compile "$LINENO"; then :
26866   # It does; now see whether it defined to BIG_ENDIAN or not.
26867          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26868 /* end confdefs.h.  */
26869 #include <sys/types.h>
26870                 #include <sys/param.h>
26871
26872 int
26873 main ()
26874 {
26875 #if BYTE_ORDER != BIG_ENDIAN
26876                  not big endian
26877                 #endif
26878
26879   ;
26880   return 0;
26881 }
26882 _ACEOF
26883 if ac_fn_c_try_compile "$LINENO"; then :
26884   ac_cv_c_bigendian=yes
26885 else
26886   ac_cv_c_bigendian=no
26887 fi
26888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26889 fi
26890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26891     fi
26892     if test $ac_cv_c_bigendian = unknown; then
26893       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26894       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26895 /* end confdefs.h.  */
26896 #include <limits.h>
26897
26898 int
26899 main ()
26900 {
26901 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26902               bogus endian macros
26903              #endif
26904
26905   ;
26906   return 0;
26907 }
26908 _ACEOF
26909 if ac_fn_c_try_compile "$LINENO"; then :
26910   # It does; now see whether it defined to _BIG_ENDIAN or not.
26911          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h.  */
26913 #include <limits.h>
26914
26915 int
26916 main ()
26917 {
26918 #ifndef _BIG_ENDIAN
26919                  not big endian
26920                 #endif
26921
26922   ;
26923   return 0;
26924 }
26925 _ACEOF
26926 if ac_fn_c_try_compile "$LINENO"; then :
26927   ac_cv_c_bigendian=yes
26928 else
26929   ac_cv_c_bigendian=no
26930 fi
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26932 fi
26933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26934     fi
26935     if test $ac_cv_c_bigendian = unknown; then
26936       # Compile a test program.
26937       if test "$cross_compiling" = yes; then :
26938   # Try to guess by grepping values from an object file.
26939          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26940 /* end confdefs.h.  */
26941 short int ascii_mm[] =
26942                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26943                 short int ascii_ii[] =
26944                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26945                 int use_ascii (int i) {
26946                   return ascii_mm[i] + ascii_ii[i];
26947                 }
26948                 short int ebcdic_ii[] =
26949                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26950                 short int ebcdic_mm[] =
26951                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26952                 int use_ebcdic (int i) {
26953                   return ebcdic_mm[i] + ebcdic_ii[i];
26954                 }
26955                 extern int foo;
26956
26957 int
26958 main ()
26959 {
26960 return use_ascii (foo) == use_ebcdic (foo);
26961   ;
26962   return 0;
26963 }
26964 _ACEOF
26965 if ac_fn_c_try_compile "$LINENO"; then :
26966   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26967               ac_cv_c_bigendian=yes
26968             fi
26969             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26970               if test "$ac_cv_c_bigendian" = unknown; then
26971                 ac_cv_c_bigendian=no
26972               else
26973                 # finding both strings is unlikely to happen, but who knows?
26974                 ac_cv_c_bigendian=unknown
26975               fi
26976             fi
26977 fi
26978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979 else
26980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26981 /* end confdefs.h.  */
26982 $ac_includes_default
26983 int
26984 main ()
26985 {
26986
26987              /* Are we little or big endian?  From Harbison&Steele.  */
26988              union
26989              {
26990                long int l;
26991                char c[sizeof (long int)];
26992              } u;
26993              u.l = 1;
26994              return u.c[sizeof (long int) - 1] == 1;
26995
26996   ;
26997   return 0;
26998 }
26999 _ACEOF
27000 if ac_fn_c_try_run "$LINENO"; then :
27001   ac_cv_c_bigendian=no
27002 else
27003   ac_cv_c_bigendian=yes
27004 fi
27005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27006   conftest.$ac_objext conftest.beam conftest.$ac_ext
27007 fi
27008
27009     fi
27010 fi
27011 :
27012  case $ac_cv_c_bigendian in #(
27013    yes)
27014      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
27015    no)
27016      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
27017    universal)
27018
27019 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27020
27021      ;; #(
27022    *)
27023      gl_cv_cc_double_expbit0="unknown" ;;
27024  esac
27025
27026
27027 fi
27028 rm -f conftest*
27029
27030
27031 else
27032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h.  */
27034
27035 #include <float.h>
27036 #include <stddef.h>
27037 #include <stdio.h>
27038 #include <string.h>
27039 #define NWORDS \
27040   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
27041 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
27042 static unsigned int ored_words[NWORDS];
27043 static unsigned int anded_words[NWORDS];
27044 static void add_to_ored_words (double x)
27045 {
27046   memory_double m;
27047   size_t i;
27048   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
27049   memset (&m, 0, sizeof (memory_double));
27050   m.value = x;
27051   for (i = 0; i < NWORDS; i++)
27052     {
27053       ored_words[i] |= m.word[i];
27054       anded_words[i] &= m.word[i];
27055     }
27056 }
27057 int main ()
27058 {
27059   size_t j;
27060   FILE *fp = fopen ("conftest.out", "w");
27061   if (fp == NULL)
27062     return 1;
27063   for (j = 0; j < NWORDS; j++)
27064     anded_words[j] = ~ (unsigned int) 0;
27065   add_to_ored_words (0.25);
27066   add_to_ored_words (0.5);
27067   add_to_ored_words (1.0);
27068   add_to_ored_words (2.0);
27069   add_to_ored_words (4.0);
27070   /* Remove bits that are common (e.g. if representation of the first mantissa
27071      bit is explicit).  */
27072   for (j = 0; j < NWORDS; j++)
27073     ored_words[j] &= ~anded_words[j];
27074   /* Now find the nonzero word.  */
27075   for (j = 0; j < NWORDS; j++)
27076     if (ored_words[j] != 0)
27077       break;
27078   if (j < NWORDS)
27079     {
27080       size_t i;
27081       for (i = j + 1; i < NWORDS; i++)
27082         if (ored_words[i] != 0)
27083           {
27084             fprintf (fp, "unknown");
27085             return (fclose (fp) != 0);
27086           }
27087       for (i = 0; ; i++)
27088         if ((ored_words[j] >> i) & 1)
27089           {
27090             fprintf (fp, "word %d bit %d", (int) j, (int) i);
27091             return (fclose (fp) != 0);
27092           }
27093     }
27094   fprintf (fp, "unknown");
27095   return (fclose (fp) != 0);
27096 }
27097
27098 _ACEOF
27099 if ac_fn_c_try_run "$LINENO"; then :
27100   gl_cv_cc_double_expbit0=`cat conftest.out`
27101 else
27102   gl_cv_cc_double_expbit0="unknown"
27103 fi
27104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27105   conftest.$ac_objext conftest.beam conftest.$ac_ext
27106 fi
27107
27108       rm -f conftest.out
27109
27110 fi
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
27112 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
27113   case "$gl_cv_cc_double_expbit0" in
27114     word*bit*)
27115       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
27116       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
27117
27118 cat >>confdefs.h <<_ACEOF
27119 #define DBL_EXPBIT0_WORD $word
27120 _ACEOF
27121
27122
27123 cat >>confdefs.h <<_ACEOF
27124 #define DBL_EXPBIT0_BIT $bit
27125 _ACEOF
27126
27127       ;;
27128   esac
27129
27130
27131   GNULIB_ISWBLANK=0;
27132   GNULIB_WCTYPE=0;
27133   GNULIB_ISWCTYPE=0;
27134   GNULIB_WCTRANS=0;
27135   GNULIB_TOWCTRANS=0;
27136     HAVE_ISWBLANK=1;
27137   HAVE_WCTYPE_T=1;
27138   HAVE_WCTRANS_T=1;
27139   REPLACE_ISWBLANK=0;
27140
27141
27142
27143
27144
27145
27146
27147
27148   if test $ac_cv_func_iswcntrl = yes; then
27149     HAVE_ISWCNTRL=1
27150   else
27151     HAVE_ISWCNTRL=0
27152   fi
27153
27154
27155
27156   if test $gt_cv_c_wint_t = yes; then
27157     HAVE_WINT_T=1
27158   else
27159     HAVE_WINT_T=0
27160   fi
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172      if test $gl_cv_have_include_next = yes; then
27173        gl_cv_next_wctype_h='<'wctype.h'>'
27174      else
27175        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
27176 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
27177 if ${gl_cv_next_wctype_h+:} false; then :
27178   $as_echo_n "(cached) " >&6
27179 else
27180
27181              if test $ac_cv_header_wctype_h = yes; then
27182
27183
27184
27185
27186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27187 /* end confdefs.h.  */
27188 #include <wctype.h>
27189 _ACEOF
27190                 case "$host_os" in
27191     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27192     *)    gl_absname_cpp="$ac_cpp" ;;
27193   esac
27194
27195   case "$host_os" in
27196     mingw*)
27197                                           gl_dirsep_regex='[/\\]'
27198       ;;
27199     *)
27200       gl_dirsep_regex='\/'
27201       ;;
27202   esac
27203       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27204   gl_header_literal_regex=`echo 'wctype.h' \
27205                            | sed -e "$gl_make_literal_regex_sed"`
27206   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27207       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27208       s|^/[^/]|//&|
27209       p
27210       q
27211     }'
27212
27213         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27214   sed -n "$gl_absolute_header_sed"`
27215
27216            gl_header=$gl_cv_absolute_wctype_h
27217            gl_cv_next_wctype_h='"'$gl_header'"'
27218           else
27219                gl_cv_next_wctype_h='<'wctype.h'>'
27220              fi
27221
27222
27223 fi
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
27225 $as_echo "$gl_cv_next_wctype_h" >&6; }
27226      fi
27227      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
27228
27229      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27230        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27231        gl_next_as_first_directive='<'wctype.h'>'
27232      else
27233        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27234        gl_next_as_first_directive=$gl_cv_next_wctype_h
27235      fi
27236      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
27237
27238
27239
27240
27241   if test $ac_cv_header_wctype_h = yes; then
27242     if test $ac_cv_func_iswcntrl = yes; then
27243                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
27244 $as_echo_n "checking whether iswcntrl works... " >&6; }
27245 if ${gl_cv_func_iswcntrl_works+:} false; then :
27246   $as_echo_n "(cached) " >&6
27247 else
27248
27249           if test "$cross_compiling" = yes; then :
27250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251 /* end confdefs.h.  */
27252 #include <stdlib.h>
27253                           #if __GNU_LIBRARY__ == 1
27254                           Linux libc5 i18n is broken.
27255                           #endif
27256 int
27257 main ()
27258 {
27259
27260   ;
27261   return 0;
27262 }
27263 _ACEOF
27264 if ac_fn_c_try_compile "$LINENO"; then :
27265   gl_cv_func_iswcntrl_works="guessing yes"
27266 else
27267   gl_cv_func_iswcntrl_works="guessing no"
27268 fi
27269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27270
27271 else
27272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27273 /* end confdefs.h.  */
27274
27275                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27276                   included before <wchar.h>.
27277                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27278                   must be included before <wchar.h>.  */
27279                #include <stddef.h>
27280                #include <stdio.h>
27281                #include <time.h>
27282                #include <wchar.h>
27283                #include <wctype.h>
27284                int main () { return iswprint ('x') == 0; }
27285
27286 _ACEOF
27287 if ac_fn_c_try_run "$LINENO"; then :
27288   gl_cv_func_iswcntrl_works=yes
27289 else
27290   gl_cv_func_iswcntrl_works=no
27291 fi
27292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27293   conftest.$ac_objext conftest.beam conftest.$ac_ext
27294 fi
27295
27296
27297 fi
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
27299 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
27300     fi
27301     HAVE_WCTYPE_H=1
27302   else
27303     HAVE_WCTYPE_H=0
27304   fi
27305
27306
27307   case "$gl_cv_func_iswcntrl_works" in
27308     *yes) REPLACE_ISWCNTRL=0 ;;
27309     *)    REPLACE_ISWCNTRL=1 ;;
27310   esac
27311
27312
27313   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
27314         :
27315   fi
27316
27317   if test $REPLACE_ISWCNTRL = 1; then
27318     REPLACE_TOWLOWER=1
27319   else
27320     for ac_func in towlower
27321 do :
27322   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
27323 if test "x$ac_cv_func_towlower" = xyes; then :
27324   cat >>confdefs.h <<_ACEOF
27325 #define HAVE_TOWLOWER 1
27326 _ACEOF
27327
27328 fi
27329 done
27330
27331     if test $ac_cv_func_towlower = yes; then
27332       REPLACE_TOWLOWER=0
27333     else
27334       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27335              included before <wchar.h>.
27336              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27337              must be included before <wchar.h>.  */
27338           #include <stddef.h>
27339           #include <stdio.h>
27340           #include <time.h>
27341           #include <wchar.h>
27342           #if HAVE_WCTYPE_H
27343           # include <wctype.h>
27344           #endif
27345
27346 "
27347 if test "x$ac_cv_have_decl_towlower" = xyes; then :
27348   ac_have_decl=1
27349 else
27350   ac_have_decl=0
27351 fi
27352
27353 cat >>confdefs.h <<_ACEOF
27354 #define HAVE_DECL_TOWLOWER $ac_have_decl
27355 _ACEOF
27356
27357       if test $ac_cv_have_decl_towlower = yes; then
27358                                 REPLACE_TOWLOWER=1
27359       else
27360         REPLACE_TOWLOWER=0
27361       fi
27362     fi
27363   fi
27364
27365
27366   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
27367         :
27368   fi
27369
27370           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
27371 $as_echo_n "checking for wctype_t... " >&6; }
27372 if ${gl_cv_type_wctype_t+:} false; then :
27373   $as_echo_n "(cached) " >&6
27374 else
27375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376 /* end confdefs.h.  */
27377 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27378                included before <wchar.h>.
27379                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27380                must be included before <wchar.h>.  */
27381             #include <stddef.h>
27382             #include <stdio.h>
27383             #include <time.h>
27384             #include <wchar.h>
27385             #if HAVE_WCTYPE_H
27386             # include <wctype.h>
27387             #endif
27388             wctype_t a;
27389
27390 int
27391 main ()
27392 {
27393
27394   ;
27395   return 0;
27396 }
27397 _ACEOF
27398 if ac_fn_c_try_compile "$LINENO"; then :
27399   gl_cv_type_wctype_t=yes
27400 else
27401   gl_cv_type_wctype_t=no
27402 fi
27403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27404
27405 fi
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
27407 $as_echo "$gl_cv_type_wctype_t" >&6; }
27408   if test $gl_cv_type_wctype_t = no; then
27409     HAVE_WCTYPE_T=0
27410   fi
27411
27412       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
27413 $as_echo_n "checking for wctrans_t... " >&6; }
27414 if ${gl_cv_type_wctrans_t+:} false; then :
27415   $as_echo_n "(cached) " >&6
27416 else
27417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27418 /* end confdefs.h.  */
27419 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27420                included before <wchar.h>.
27421                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27422                must be included before <wchar.h>.  */
27423             #include <stddef.h>
27424             #include <stdio.h>
27425             #include <time.h>
27426             #include <wchar.h>
27427             #include <wctype.h>
27428             wctrans_t a;
27429
27430 int
27431 main ()
27432 {
27433
27434   ;
27435   return 0;
27436 }
27437 _ACEOF
27438 if ac_fn_c_try_compile "$LINENO"; then :
27439   gl_cv_type_wctrans_t=yes
27440 else
27441   gl_cv_type_wctrans_t=no
27442 fi
27443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27444
27445 fi
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
27447 $as_echo "$gl_cv_type_wctrans_t" >&6; }
27448   if test $gl_cv_type_wctrans_t = no; then
27449     HAVE_WCTRANS_T=0
27450   fi
27451
27452
27453     for gl_func in wctype iswctype wctrans towctrans     ; do
27454     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27456 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27457 if eval \${$as_gl_Symbol+:} false; then :
27458   $as_echo_n "(cached) " >&6
27459 else
27460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27461 /* end confdefs.h.  */
27462
27463 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27464    <wchar.h>.
27465    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27466    included before <wchar.h>.  */
27467 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27468 # include <stddef.h>
27469 # include <stdio.h>
27470 # include <time.h>
27471 # include <wchar.h>
27472 #endif
27473 #include <wctype.h>
27474
27475 int
27476 main ()
27477 {
27478 #undef $gl_func
27479   (void) $gl_func;
27480   ;
27481   return 0;
27482 }
27483 _ACEOF
27484 if ac_fn_c_try_compile "$LINENO"; then :
27485   eval "$as_gl_Symbol=yes"
27486 else
27487   eval "$as_gl_Symbol=no"
27488 fi
27489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27490 fi
27491 eval ac_res=\$$as_gl_Symbol
27492                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27493 $as_echo "$ac_res" >&6; }
27494     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27495   cat >>confdefs.h <<_ACEOF
27496 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27497 _ACEOF
27498
27499                      eval ac_cv_have_decl_$gl_func=yes
27500 fi
27501       done
27502
27503
27504
27505
27506
27507   GNULIB_NL_LANGINFO=0;
27508     HAVE_NL_LANGINFO=1;
27509   REPLACE_NL_LANGINFO=0;
27510
27511
27512
27513
27514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
27515 $as_echo_n "checking whether included glib is requested... " >&6; }
27516
27517 # Check whether --with-included-glib was given.
27518 if test "${with_included_glib+set}" = set; then :
27519   withval=$with_included_glib; gl_cv_libglib_force_included=$withval
27520 else
27521   gl_cv_libglib_force_included=no
27522 fi
27523
27524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
27525 $as_echo "$gl_cv_libglib_force_included" >&6; }
27526
27527   gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
27528   LIBGLIB=
27529   LTLIBGLIB=
27530   INCGLIB=
27531   if test "$gl_cv_libglib_use_included" != yes; then
27532             if ${gl_cv_libglib+:} false; then :
27533   $as_echo_n "(cached) " >&6
27534 else
27535
27536       gl_cv_libglib=no
27537       gl_cv_LIBGLIB=
27538       gl_cv_LTLIBGLIB=
27539       gl_cv_INCGLIB=
27540       gl_save_LIBS="$LIBS"
27541
27542
27543
27544
27545
27546
27547
27548     use_additional=yes
27549
27550   acl_save_prefix="$prefix"
27551   prefix="$acl_final_prefix"
27552   acl_save_exec_prefix="$exec_prefix"
27553   exec_prefix="$acl_final_exec_prefix"
27554
27555     eval additional_includedir=\"$includedir\"
27556     eval additional_libdir=\"$libdir\"
27557
27558   exec_prefix="$acl_save_exec_prefix"
27559   prefix="$acl_save_prefix"
27560
27561
27562 # Check whether --with-libglib-2.0-prefix was given.
27563 if test "${with_libglib_2_0_prefix+set}" = set; then :
27564   withval=$with_libglib_2_0_prefix;
27565     if test "X$withval" = "Xno"; then
27566       use_additional=no
27567     else
27568       if test "X$withval" = "X"; then
27569
27570   acl_save_prefix="$prefix"
27571   prefix="$acl_final_prefix"
27572   acl_save_exec_prefix="$exec_prefix"
27573   exec_prefix="$acl_final_exec_prefix"
27574
27575           eval additional_includedir=\"$includedir\"
27576           eval additional_libdir=\"$libdir\"
27577
27578   exec_prefix="$acl_save_exec_prefix"
27579   prefix="$acl_save_prefix"
27580
27581       else
27582         additional_includedir="$withval/include"
27583         additional_libdir="$withval/$acl_libdirstem"
27584         if test "$acl_libdirstem2" != "$acl_libdirstem" \
27585            && ! test -d "$withval/$acl_libdirstem"; then
27586           additional_libdir="$withval/$acl_libdirstem2"
27587         fi
27588       fi
27589     fi
27590
27591 fi
27592
27593       LIBGLIB_2_0=
27594   LTLIBGLIB_2_0=
27595   INCGLIB_2_0=
27596   LIBGLIB_2_0_PREFIX=
27597       HAVE_LIBGLIB_2_0=
27598   rpathdirs=
27599   ltrpathdirs=
27600   names_already_handled=
27601   names_next_round='glib-2.0 '
27602   while test -n "$names_next_round"; do
27603     names_this_round="$names_next_round"
27604     names_next_round=
27605     for name in $names_this_round; do
27606       already_handled=
27607       for n in $names_already_handled; do
27608         if test "$n" = "$name"; then
27609           already_handled=yes
27610           break
27611         fi
27612       done
27613       if test -z "$already_handled"; then
27614         names_already_handled="$names_already_handled $name"
27615                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
27616         eval value=\"\$HAVE_LIB$uppername\"
27617         if test -n "$value"; then
27618           if test "$value" = yes; then
27619             eval value=\"\$LIB$uppername\"
27620             test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
27621             eval value=\"\$LTLIB$uppername\"
27622             test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
27623           else
27624                                     :
27625           fi
27626         else
27627                               found_dir=
27628           found_la=
27629           found_so=
27630           found_a=
27631           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
27632           if test -n "$acl_shlibext"; then
27633             shrext=".$acl_shlibext"             # typically: shrext=.so
27634           else
27635             shrext=
27636           fi
27637           if test $use_additional = yes; then
27638             dir="$additional_libdir"
27639                                     if test -n "$acl_shlibext"; then
27640               if test -f "$dir/$libname$shrext"; then
27641                 found_dir="$dir"
27642                 found_so="$dir/$libname$shrext"
27643               else
27644                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27645                   ver=`(cd "$dir" && \
27646                         for f in "$libname$shrext".*; do echo "$f"; done \
27647                         | sed -e "s,^$libname$shrext\\\\.,," \
27648                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27649                         | sed 1q ) 2>/dev/null`
27650                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27651                     found_dir="$dir"
27652                     found_so="$dir/$libname$shrext.$ver"
27653                   fi
27654                 else
27655                   eval library_names=\"$acl_library_names_spec\"
27656                   for f in $library_names; do
27657                     if test -f "$dir/$f"; then
27658                       found_dir="$dir"
27659                       found_so="$dir/$f"
27660                       break
27661                     fi
27662                   done
27663                 fi
27664               fi
27665             fi
27666                         if test "X$found_dir" = "X"; then
27667               if test -f "$dir/$libname.$acl_libext"; then
27668                 found_dir="$dir"
27669                 found_a="$dir/$libname.$acl_libext"
27670               fi
27671             fi
27672             if test "X$found_dir" != "X"; then
27673               if test -f "$dir/$libname.la"; then
27674                 found_la="$dir/$libname.la"
27675               fi
27676             fi
27677           fi
27678           if test "X$found_dir" = "X"; then
27679             for x in $LDFLAGS $LTLIBGLIB_2_0; do
27680
27681   acl_save_prefix="$prefix"
27682   prefix="$acl_final_prefix"
27683   acl_save_exec_prefix="$exec_prefix"
27684   exec_prefix="$acl_final_exec_prefix"
27685   eval x=\"$x\"
27686   exec_prefix="$acl_save_exec_prefix"
27687   prefix="$acl_save_prefix"
27688
27689               case "$x" in
27690                 -L*)
27691                   dir=`echo "X$x" | sed -e 's/^X-L//'`
27692                                     if test -n "$acl_shlibext"; then
27693                     if test -f "$dir/$libname$shrext"; then
27694                       found_dir="$dir"
27695                       found_so="$dir/$libname$shrext"
27696                     else
27697                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27698                         ver=`(cd "$dir" && \
27699                               for f in "$libname$shrext".*; do echo "$f"; done \
27700                               | sed -e "s,^$libname$shrext\\\\.,," \
27701                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27702                               | sed 1q ) 2>/dev/null`
27703                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27704                           found_dir="$dir"
27705                           found_so="$dir/$libname$shrext.$ver"
27706                         fi
27707                       else
27708                         eval library_names=\"$acl_library_names_spec\"
27709                         for f in $library_names; do
27710                           if test -f "$dir/$f"; then
27711                             found_dir="$dir"
27712                             found_so="$dir/$f"
27713                             break
27714                           fi
27715                         done
27716                       fi
27717                     fi
27718                   fi
27719                                     if test "X$found_dir" = "X"; then
27720                     if test -f "$dir/$libname.$acl_libext"; then
27721                       found_dir="$dir"
27722                       found_a="$dir/$libname.$acl_libext"
27723                     fi
27724                   fi
27725                   if test "X$found_dir" != "X"; then
27726                     if test -f "$dir/$libname.la"; then
27727                       found_la="$dir/$libname.la"
27728                     fi
27729                   fi
27730                   ;;
27731               esac
27732               if test "X$found_dir" != "X"; then
27733                 break
27734               fi
27735             done
27736           fi
27737           if test "X$found_dir" != "X"; then
27738                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
27739             if test "X$found_so" != "X"; then
27740                                                         if test "$enable_rpath" = no \
27741                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
27742                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
27743                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
27744               else
27745                                                                                 haveit=
27746                 for x in $ltrpathdirs; do
27747                   if test "X$x" = "X$found_dir"; then
27748                     haveit=yes
27749                     break
27750                   fi
27751                 done
27752                 if test -z "$haveit"; then
27753                   ltrpathdirs="$ltrpathdirs $found_dir"
27754                 fi
27755                                 if test "$acl_hardcode_direct" = yes; then
27756                                                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
27757                 else
27758                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
27759                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
27760                                                             haveit=
27761                     for x in $rpathdirs; do
27762                       if test "X$x" = "X$found_dir"; then
27763                         haveit=yes
27764                         break
27765                       fi
27766                     done
27767                     if test -z "$haveit"; then
27768                       rpathdirs="$rpathdirs $found_dir"
27769                     fi
27770                   else
27771                                                                                 haveit=
27772                     for x in $LDFLAGS $LIBGLIB_2_0; do
27773
27774   acl_save_prefix="$prefix"
27775   prefix="$acl_final_prefix"
27776   acl_save_exec_prefix="$exec_prefix"
27777   exec_prefix="$acl_final_exec_prefix"
27778   eval x=\"$x\"
27779   exec_prefix="$acl_save_exec_prefix"
27780   prefix="$acl_save_prefix"
27781
27782                       if test "X$x" = "X-L$found_dir"; then
27783                         haveit=yes
27784                         break
27785                       fi
27786                     done
27787                     if test -z "$haveit"; then
27788                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
27789                     fi
27790                     if test "$acl_hardcode_minus_L" != no; then
27791                                                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
27792                     else
27793                                                                                                                                                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
27794                     fi
27795                   fi
27796                 fi
27797               fi
27798             else
27799               if test "X$found_a" != "X"; then
27800                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
27801               else
27802                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
27803               fi
27804             fi
27805                         additional_includedir=
27806             case "$found_dir" in
27807               */$acl_libdirstem | */$acl_libdirstem/)
27808                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27809                 if test "$name" = 'glib-2.0'; then
27810                   LIBGLIB_2_0_PREFIX="$basedir"
27811                 fi
27812                 additional_includedir="$basedir/include"
27813                 ;;
27814               */$acl_libdirstem2 | */$acl_libdirstem2/)
27815                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
27816                 if test "$name" = 'glib-2.0'; then
27817                   LIBGLIB_2_0_PREFIX="$basedir"
27818                 fi
27819                 additional_includedir="$basedir/include"
27820                 ;;
27821             esac
27822             if test "X$additional_includedir" != "X"; then
27823                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
27824                 haveit=
27825                 if test "X$additional_includedir" = "X/usr/local/include"; then
27826                   if test -n "$GCC"; then
27827                     case $host_os in
27828                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27829                     esac
27830                   fi
27831                 fi
27832                 if test -z "$haveit"; then
27833                   for x in $CPPFLAGS $INCGLIB_2_0; do
27834
27835   acl_save_prefix="$prefix"
27836   prefix="$acl_final_prefix"
27837   acl_save_exec_prefix="$exec_prefix"
27838   exec_prefix="$acl_final_exec_prefix"
27839   eval x=\"$x\"
27840   exec_prefix="$acl_save_exec_prefix"
27841   prefix="$acl_save_prefix"
27842
27843                     if test "X$x" = "X-I$additional_includedir"; then
27844                       haveit=yes
27845                       break
27846                     fi
27847                   done
27848                   if test -z "$haveit"; then
27849                     if test -d "$additional_includedir"; then
27850                                             INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
27851                     fi
27852                   fi
27853                 fi
27854               fi
27855             fi
27856                         if test -n "$found_la"; then
27857                                                         save_libdir="$libdir"
27858               case "$found_la" in
27859                 */* | *\\*) . "$found_la" ;;
27860                 *) . "./$found_la" ;;
27861               esac
27862               libdir="$save_libdir"
27863                             for dep in $dependency_libs; do
27864                 case "$dep" in
27865                   -L*)
27866                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27867                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
27868                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
27869                       haveit=
27870                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
27871                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
27872                         if test -n "$GCC"; then
27873                           case $host_os in
27874                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27875                           esac
27876                         fi
27877                       fi
27878                       if test -z "$haveit"; then
27879                         haveit=
27880                         for x in $LDFLAGS $LIBGLIB_2_0; do
27881
27882   acl_save_prefix="$prefix"
27883   prefix="$acl_final_prefix"
27884   acl_save_exec_prefix="$exec_prefix"
27885   exec_prefix="$acl_final_exec_prefix"
27886   eval x=\"$x\"
27887   exec_prefix="$acl_save_exec_prefix"
27888   prefix="$acl_save_prefix"
27889
27890                           if test "X$x" = "X-L$additional_libdir"; then
27891                             haveit=yes
27892                             break
27893                           fi
27894                         done
27895                         if test -z "$haveit"; then
27896                           if test -d "$additional_libdir"; then
27897                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
27898                           fi
27899                         fi
27900                         haveit=
27901                         for x in $LDFLAGS $LTLIBGLIB_2_0; do
27902
27903   acl_save_prefix="$prefix"
27904   prefix="$acl_final_prefix"
27905   acl_save_exec_prefix="$exec_prefix"
27906   exec_prefix="$acl_final_exec_prefix"
27907   eval x=\"$x\"
27908   exec_prefix="$acl_save_exec_prefix"
27909   prefix="$acl_save_prefix"
27910
27911                           if test "X$x" = "X-L$additional_libdir"; then
27912                             haveit=yes
27913                             break
27914                           fi
27915                         done
27916                         if test -z "$haveit"; then
27917                           if test -d "$additional_libdir"; then
27918                                                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
27919                           fi
27920                         fi
27921                       fi
27922                     fi
27923                     ;;
27924                   -R*)
27925                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
27926                     if test "$enable_rpath" != no; then
27927                                                                   haveit=
27928                       for x in $rpathdirs; do
27929                         if test "X$x" = "X$dir"; then
27930                           haveit=yes
27931                           break
27932                         fi
27933                       done
27934                       if test -z "$haveit"; then
27935                         rpathdirs="$rpathdirs $dir"
27936                       fi
27937                                                                   haveit=
27938                       for x in $ltrpathdirs; do
27939                         if test "X$x" = "X$dir"; then
27940                           haveit=yes
27941                           break
27942                         fi
27943                       done
27944                       if test -z "$haveit"; then
27945                         ltrpathdirs="$ltrpathdirs $dir"
27946                       fi
27947                     fi
27948                     ;;
27949                   -l*)
27950                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27951                     ;;
27952                   *.la)
27953                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27954                     ;;
27955                   *)
27956                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
27957                     LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
27958                     ;;
27959                 esac
27960               done
27961             fi
27962           else
27963                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
27964             LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
27965           fi
27966         fi
27967       fi
27968     done
27969   done
27970   if test "X$rpathdirs" != "X"; then
27971     if test -n "$acl_hardcode_libdir_separator"; then
27972                         alldirs=
27973       for found_dir in $rpathdirs; do
27974         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27975       done
27976             acl_save_libdir="$libdir"
27977       libdir="$alldirs"
27978       eval flag=\"$acl_hardcode_libdir_flag_spec\"
27979       libdir="$acl_save_libdir"
27980       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
27981     else
27982             for found_dir in $rpathdirs; do
27983         acl_save_libdir="$libdir"
27984         libdir="$found_dir"
27985         eval flag=\"$acl_hardcode_libdir_flag_spec\"
27986         libdir="$acl_save_libdir"
27987         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
27988       done
27989     fi
27990   fi
27991   if test "X$ltrpathdirs" != "X"; then
27992             for found_dir in $ltrpathdirs; do
27993       LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
27994     done
27995   fi
27996
27997
27998
27999
28000
28001
28002       LIBS="$gl_save_LIBS $LIBGLIB_2_0"
28003       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28004 /* end confdefs.h.  */
28005 #include <glib.h>
28006 #ifndef G_BEGIN_DECLS
28007 error this glib.h includes a glibconfig.h from a glib version 1.x
28008 #endif
28009
28010 int
28011 main ()
28012 {
28013 g_string_new ("foo");
28014   ;
28015   return 0;
28016 }
28017 _ACEOF
28018 if ac_fn_c_try_link "$LINENO"; then :
28019   gl_cv_libglib=yes
28020          gl_cv_LIBGLIB="$LIBGLIB_2_0"
28021          gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
28022
28023 fi
28024 rm -f core conftest.err conftest.$ac_objext \
28025     conftest$ac_exeext conftest.$ac_ext
28026       if test "$gl_cv_libglib" != yes; then
28027         gl_save_CPPFLAGS="$CPPFLAGS"
28028         CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
28029         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28030 /* end confdefs.h.  */
28031 #include <glib.h>
28032 #ifndef G_BEGIN_DECLS
28033 error this glib.h includes a glibconfig.h from a glib version 1.x
28034 #endif
28035
28036 int
28037 main ()
28038 {
28039 g_string_new ("foo");
28040   ;
28041   return 0;
28042 }
28043 _ACEOF
28044 if ac_fn_c_try_link "$LINENO"; then :
28045   gl_cv_libglib=yes
28046            gl_cv_LIBGLIB="$LIBGLIB_2_0"
28047            gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
28048            gl_cv_INCGLIB="$INCGLIB_2_0"
28049
28050 fi
28051 rm -f core conftest.err conftest.$ac_objext \
28052     conftest$ac_exeext conftest.$ac_ext
28053         if test "$gl_cv_libglib" != yes; then
28054                               if test -n "$LIBGLIB_2_0_PREFIX"; then
28055             CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
28056             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28057 /* end confdefs.h.  */
28058 #include <glib.h>
28059 #ifndef G_BEGIN_DECLS
28060 error this glib.h includes a glibconfig.h from a glib version 1.x
28061 #endif
28062
28063 int
28064 main ()
28065 {
28066 g_string_new ("foo");
28067   ;
28068   return 0;
28069 }
28070 _ACEOF
28071 if ac_fn_c_try_link "$LINENO"; then :
28072   gl_cv_libglib=yes
28073                gl_cv_LIBGLIB="$LIBGLIB_2_0"
28074                gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
28075                gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
28076
28077 fi
28078 rm -f core conftest.err conftest.$ac_objext \
28079     conftest$ac_exeext conftest.$ac_ext
28080           fi
28081         fi
28082         CPPFLAGS="$gl_save_CPPFLAGS"
28083       fi
28084       LIBS="$gl_save_LIBS"
28085
28086 fi
28087
28088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
28089 $as_echo_n "checking for glib... " >&6; }
28090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
28091 $as_echo "$gl_cv_libglib" >&6; }
28092     if test $gl_cv_libglib = yes; then
28093       LIBGLIB="$gl_cv_LIBGLIB"
28094       LTLIBGLIB="$gl_cv_LTLIBGLIB"
28095       INCGLIB="$gl_cv_INCGLIB"
28096     else
28097       gl_cv_libglib_use_included=yes
28098     fi
28099   fi
28100
28101
28102
28103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
28104 $as_echo_n "checking whether to use the included glib... " >&6; }
28105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
28106 $as_echo "$gl_cv_libglib_use_included" >&6; }
28107
28108   if test "$gl_cv_libglib_use_included" = yes; then
28109     LIBGLIB_H=
28110     LIBGLIB_H="$LIBGLIB_H glib.h"
28111     LIBGLIB_H="$LIBGLIB_H glibconfig.h"
28112     LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
28113     LIBGLIB_H="$LIBGLIB_H glib/glist.h"
28114     LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
28115     LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
28116     LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
28117     LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
28118
28119     for ac_header in unistd.h
28120 do :
28121   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
28122 if test "x$ac_cv_header_unistd_h" = xyes; then :
28123   cat >>confdefs.h <<_ACEOF
28124 #define HAVE_UNISTD_H 1
28125 _ACEOF
28126
28127 fi
28128
28129 done
28130
28131       else
28132     LIBGLIB_H=
28133   fi
28134
28135
28136    if test "$gl_cv_libglib_use_included" = yes; then
28137   INCLUDED_LIBGLIB_TRUE=
28138   INCLUDED_LIBGLIB_FALSE='#'
28139 else
28140   INCLUDED_LIBGLIB_TRUE='#'
28141   INCLUDED_LIBGLIB_FALSE=
28142 fi
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libunistring is requested" >&5
28154 $as_echo_n "checking whether included libunistring is requested... " >&6; }
28155
28156 # Check whether --with-included-libunistring was given.
28157 if test "${with_included_libunistring+set}" = set; then :
28158   withval=$with_included_libunistring; gl_libunistring_force_included=$withval
28159 else
28160   gl_libunistring_force_included=no
28161 fi
28162
28163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_force_included" >&5
28164 $as_echo "$gl_libunistring_force_included" >&6; }
28165       gl_libunistring_use_included="$gl_libunistring_force_included"
28166       if test "$gl_libunistring_use_included" = yes; then
28167                         if test -z "$HAVE_LIBUNISTRING"; then
28168           HAVE_LIBUNISTRING=no
28169         fi
28170         LIBUNISTRING=
28171         LTLIBUNISTRING=
28172       else
28173
28174
28175   if test -n "$LIBICONV"; then
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189     use_additional=yes
28190
28191   acl_save_prefix="$prefix"
28192   prefix="$acl_final_prefix"
28193   acl_save_exec_prefix="$exec_prefix"
28194   exec_prefix="$acl_final_exec_prefix"
28195
28196     eval additional_includedir=\"$includedir\"
28197     eval additional_libdir=\"$libdir\"
28198
28199   exec_prefix="$acl_save_exec_prefix"
28200   prefix="$acl_save_prefix"
28201
28202
28203 # Check whether --with-libunistring-prefix was given.
28204 if test "${with_libunistring_prefix+set}" = set; then :
28205   withval=$with_libunistring_prefix;
28206     if test "X$withval" = "Xno"; then
28207       use_additional=no
28208     else
28209       if test "X$withval" = "X"; then
28210
28211   acl_save_prefix="$prefix"
28212   prefix="$acl_final_prefix"
28213   acl_save_exec_prefix="$exec_prefix"
28214   exec_prefix="$acl_final_exec_prefix"
28215
28216           eval additional_includedir=\"$includedir\"
28217           eval additional_libdir=\"$libdir\"
28218
28219   exec_prefix="$acl_save_exec_prefix"
28220   prefix="$acl_save_prefix"
28221
28222       else
28223         additional_includedir="$withval/include"
28224         additional_libdir="$withval/$acl_libdirstem"
28225         if test "$acl_libdirstem2" != "$acl_libdirstem" \
28226            && ! test -d "$withval/$acl_libdirstem"; then
28227           additional_libdir="$withval/$acl_libdirstem2"
28228         fi
28229       fi
28230     fi
28231
28232 fi
28233
28234       LIBUNISTRING=
28235   LTLIBUNISTRING=
28236   INCUNISTRING=
28237   LIBUNISTRING_PREFIX=
28238       HAVE_LIBUNISTRING=
28239   rpathdirs=
28240   ltrpathdirs=
28241   names_already_handled=
28242   names_next_round='unistring '
28243   while test -n "$names_next_round"; do
28244     names_this_round="$names_next_round"
28245     names_next_round=
28246     for name in $names_this_round; do
28247       already_handled=
28248       for n in $names_already_handled; do
28249         if test "$n" = "$name"; then
28250           already_handled=yes
28251           break
28252         fi
28253       done
28254       if test -z "$already_handled"; then
28255         names_already_handled="$names_already_handled $name"
28256                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
28257         eval value=\"\$HAVE_LIB$uppername\"
28258         if test -n "$value"; then
28259           if test "$value" = yes; then
28260             eval value=\"\$LIB$uppername\"
28261             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
28262             eval value=\"\$LTLIB$uppername\"
28263             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
28264           else
28265                                     :
28266           fi
28267         else
28268                               found_dir=
28269           found_la=
28270           found_so=
28271           found_a=
28272           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
28273           if test -n "$acl_shlibext"; then
28274             shrext=".$acl_shlibext"             # typically: shrext=.so
28275           else
28276             shrext=
28277           fi
28278           if test $use_additional = yes; then
28279             dir="$additional_libdir"
28280                                     if test -n "$acl_shlibext"; then
28281               if test -f "$dir/$libname$shrext"; then
28282                 found_dir="$dir"
28283                 found_so="$dir/$libname$shrext"
28284               else
28285                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28286                   ver=`(cd "$dir" && \
28287                         for f in "$libname$shrext".*; do echo "$f"; done \
28288                         | sed -e "s,^$libname$shrext\\\\.,," \
28289                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28290                         | sed 1q ) 2>/dev/null`
28291                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28292                     found_dir="$dir"
28293                     found_so="$dir/$libname$shrext.$ver"
28294                   fi
28295                 else
28296                   eval library_names=\"$acl_library_names_spec\"
28297                   for f in $library_names; do
28298                     if test -f "$dir/$f"; then
28299                       found_dir="$dir"
28300                       found_so="$dir/$f"
28301                       break
28302                     fi
28303                   done
28304                 fi
28305               fi
28306             fi
28307                         if test "X$found_dir" = "X"; then
28308               if test -f "$dir/$libname.$acl_libext"; then
28309                 found_dir="$dir"
28310                 found_a="$dir/$libname.$acl_libext"
28311               fi
28312             fi
28313             if test "X$found_dir" != "X"; then
28314               if test -f "$dir/$libname.la"; then
28315                 found_la="$dir/$libname.la"
28316               fi
28317             fi
28318           fi
28319           if test "X$found_dir" = "X"; then
28320             for x in $LDFLAGS $LTLIBUNISTRING; do
28321
28322   acl_save_prefix="$prefix"
28323   prefix="$acl_final_prefix"
28324   acl_save_exec_prefix="$exec_prefix"
28325   exec_prefix="$acl_final_exec_prefix"
28326   eval x=\"$x\"
28327   exec_prefix="$acl_save_exec_prefix"
28328   prefix="$acl_save_prefix"
28329
28330               case "$x" in
28331                 -L*)
28332                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28333                                     if test -n "$acl_shlibext"; then
28334                     if test -f "$dir/$libname$shrext"; then
28335                       found_dir="$dir"
28336                       found_so="$dir/$libname$shrext"
28337                     else
28338                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28339                         ver=`(cd "$dir" && \
28340                               for f in "$libname$shrext".*; do echo "$f"; done \
28341                               | sed -e "s,^$libname$shrext\\\\.,," \
28342                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28343                               | sed 1q ) 2>/dev/null`
28344                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28345                           found_dir="$dir"
28346                           found_so="$dir/$libname$shrext.$ver"
28347                         fi
28348                       else
28349                         eval library_names=\"$acl_library_names_spec\"
28350                         for f in $library_names; do
28351                           if test -f "$dir/$f"; then
28352                             found_dir="$dir"
28353                             found_so="$dir/$f"
28354                             break
28355                           fi
28356                         done
28357                       fi
28358                     fi
28359                   fi
28360                                     if test "X$found_dir" = "X"; then
28361                     if test -f "$dir/$libname.$acl_libext"; then
28362                       found_dir="$dir"
28363                       found_a="$dir/$libname.$acl_libext"
28364                     fi
28365                   fi
28366                   if test "X$found_dir" != "X"; then
28367                     if test -f "$dir/$libname.la"; then
28368                       found_la="$dir/$libname.la"
28369                     fi
28370                   fi
28371                   ;;
28372               esac
28373               if test "X$found_dir" != "X"; then
28374                 break
28375               fi
28376             done
28377           fi
28378           if test "X$found_dir" != "X"; then
28379                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
28380             if test "X$found_so" != "X"; then
28381                                                         if test "$enable_rpath" = no \
28382                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
28383                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
28384                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28385               else
28386                                                                                 haveit=
28387                 for x in $ltrpathdirs; do
28388                   if test "X$x" = "X$found_dir"; then
28389                     haveit=yes
28390                     break
28391                   fi
28392                 done
28393                 if test -z "$haveit"; then
28394                   ltrpathdirs="$ltrpathdirs $found_dir"
28395                 fi
28396                                 if test "$acl_hardcode_direct" = yes; then
28397                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28398                 else
28399                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28400                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28401                                                             haveit=
28402                     for x in $rpathdirs; do
28403                       if test "X$x" = "X$found_dir"; then
28404                         haveit=yes
28405                         break
28406                       fi
28407                     done
28408                     if test -z "$haveit"; then
28409                       rpathdirs="$rpathdirs $found_dir"
28410                     fi
28411                   else
28412                                                                                 haveit=
28413                     for x in $LDFLAGS $LIBUNISTRING; do
28414
28415   acl_save_prefix="$prefix"
28416   prefix="$acl_final_prefix"
28417   acl_save_exec_prefix="$exec_prefix"
28418   exec_prefix="$acl_final_exec_prefix"
28419   eval x=\"$x\"
28420   exec_prefix="$acl_save_exec_prefix"
28421   prefix="$acl_save_prefix"
28422
28423                       if test "X$x" = "X-L$found_dir"; then
28424                         haveit=yes
28425                         break
28426                       fi
28427                     done
28428                     if test -z "$haveit"; then
28429                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
28430                     fi
28431                     if test "$acl_hardcode_minus_L" != no; then
28432                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28433                     else
28434                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
28435                     fi
28436                   fi
28437                 fi
28438               fi
28439             else
28440               if test "X$found_a" != "X"; then
28441                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
28442               else
28443                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
28444               fi
28445             fi
28446                         additional_includedir=
28447             case "$found_dir" in
28448               */$acl_libdirstem | */$acl_libdirstem/)
28449                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28450                 if test "$name" = 'unistring'; then
28451                   LIBUNISTRING_PREFIX="$basedir"
28452                 fi
28453                 additional_includedir="$basedir/include"
28454                 ;;
28455               */$acl_libdirstem2 | */$acl_libdirstem2/)
28456                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
28457                 if test "$name" = 'unistring'; then
28458                   LIBUNISTRING_PREFIX="$basedir"
28459                 fi
28460                 additional_includedir="$basedir/include"
28461                 ;;
28462             esac
28463             if test "X$additional_includedir" != "X"; then
28464                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28465                 haveit=
28466                 if test "X$additional_includedir" = "X/usr/local/include"; then
28467                   if test -n "$GCC"; then
28468                     case $host_os in
28469                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28470                     esac
28471                   fi
28472                 fi
28473                 if test -z "$haveit"; then
28474                   for x in $CPPFLAGS $INCUNISTRING; do
28475
28476   acl_save_prefix="$prefix"
28477   prefix="$acl_final_prefix"
28478   acl_save_exec_prefix="$exec_prefix"
28479   exec_prefix="$acl_final_exec_prefix"
28480   eval x=\"$x\"
28481   exec_prefix="$acl_save_exec_prefix"
28482   prefix="$acl_save_prefix"
28483
28484                     if test "X$x" = "X-I$additional_includedir"; then
28485                       haveit=yes
28486                       break
28487                     fi
28488                   done
28489                   if test -z "$haveit"; then
28490                     if test -d "$additional_includedir"; then
28491                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
28492                     fi
28493                   fi
28494                 fi
28495               fi
28496             fi
28497                         if test -n "$found_la"; then
28498                                                         save_libdir="$libdir"
28499               case "$found_la" in
28500                 */* | *\\*) . "$found_la" ;;
28501                 *) . "./$found_la" ;;
28502               esac
28503               libdir="$save_libdir"
28504                             for dep in $dependency_libs; do
28505                 case "$dep" in
28506                   -L*)
28507                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28508                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
28509                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
28510                       haveit=
28511                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
28512                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
28513                         if test -n "$GCC"; then
28514                           case $host_os in
28515                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28516                           esac
28517                         fi
28518                       fi
28519                       if test -z "$haveit"; then
28520                         haveit=
28521                         for x in $LDFLAGS $LIBUNISTRING; do
28522
28523   acl_save_prefix="$prefix"
28524   prefix="$acl_final_prefix"
28525   acl_save_exec_prefix="$exec_prefix"
28526   exec_prefix="$acl_final_exec_prefix"
28527   eval x=\"$x\"
28528   exec_prefix="$acl_save_exec_prefix"
28529   prefix="$acl_save_prefix"
28530
28531                           if test "X$x" = "X-L$additional_libdir"; then
28532                             haveit=yes
28533                             break
28534                           fi
28535                         done
28536                         if test -z "$haveit"; then
28537                           if test -d "$additional_libdir"; then
28538                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
28539                           fi
28540                         fi
28541                         haveit=
28542                         for x in $LDFLAGS $LTLIBUNISTRING; do
28543
28544   acl_save_prefix="$prefix"
28545   prefix="$acl_final_prefix"
28546   acl_save_exec_prefix="$exec_prefix"
28547   exec_prefix="$acl_final_exec_prefix"
28548   eval x=\"$x\"
28549   exec_prefix="$acl_save_exec_prefix"
28550   prefix="$acl_save_prefix"
28551
28552                           if test "X$x" = "X-L$additional_libdir"; then
28553                             haveit=yes
28554                             break
28555                           fi
28556                         done
28557                         if test -z "$haveit"; then
28558                           if test -d "$additional_libdir"; then
28559                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
28560                           fi
28561                         fi
28562                       fi
28563                     fi
28564                     ;;
28565                   -R*)
28566                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
28567                     if test "$enable_rpath" != no; then
28568                                                                   haveit=
28569                       for x in $rpathdirs; do
28570                         if test "X$x" = "X$dir"; then
28571                           haveit=yes
28572                           break
28573                         fi
28574                       done
28575                       if test -z "$haveit"; then
28576                         rpathdirs="$rpathdirs $dir"
28577                       fi
28578                                                                   haveit=
28579                       for x in $ltrpathdirs; do
28580                         if test "X$x" = "X$dir"; then
28581                           haveit=yes
28582                           break
28583                         fi
28584                       done
28585                       if test -z "$haveit"; then
28586                         ltrpathdirs="$ltrpathdirs $dir"
28587                       fi
28588                     fi
28589                     ;;
28590                   -l*)
28591                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28592                     ;;
28593                   *.la)
28594                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28595                     ;;
28596                   *)
28597                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
28598                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
28599                     ;;
28600                 esac
28601               done
28602             fi
28603           else
28604                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
28605             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
28606           fi
28607         fi
28608       fi
28609     done
28610   done
28611   if test "X$rpathdirs" != "X"; then
28612     if test -n "$acl_hardcode_libdir_separator"; then
28613                         alldirs=
28614       for found_dir in $rpathdirs; do
28615         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
28616       done
28617             acl_save_libdir="$libdir"
28618       libdir="$alldirs"
28619       eval flag=\"$acl_hardcode_libdir_flag_spec\"
28620       libdir="$acl_save_libdir"
28621       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
28622     else
28623             for found_dir in $rpathdirs; do
28624         acl_save_libdir="$libdir"
28625         libdir="$found_dir"
28626         eval flag=\"$acl_hardcode_libdir_flag_spec\"
28627         libdir="$acl_save_libdir"
28628         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
28629       done
28630     fi
28631   fi
28632   if test "X$ltrpathdirs" != "X"; then
28633             for found_dir in $ltrpathdirs; do
28634       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
28635     done
28636   fi
28637
28638
28639
28640
28641
28642
28643
28644         ac_save_CPPFLAGS="$CPPFLAGS"
28645
28646   for element in $INCUNISTRING; do
28647     haveit=
28648     for x in $CPPFLAGS; do
28649
28650   acl_save_prefix="$prefix"
28651   prefix="$acl_final_prefix"
28652   acl_save_exec_prefix="$exec_prefix"
28653   exec_prefix="$acl_final_exec_prefix"
28654   eval x=\"$x\"
28655   exec_prefix="$acl_save_exec_prefix"
28656   prefix="$acl_save_prefix"
28657
28658       if test "X$x" = "X$element"; then
28659         haveit=yes
28660         break
28661       fi
28662     done
28663     if test -z "$haveit"; then
28664       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28665     fi
28666   done
28667
28668
28669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
28670 $as_echo_n "checking for libunistring... " >&6; }
28671 if ${ac_cv_libunistring+:} false; then :
28672   $as_echo_n "(cached) " >&6
28673 else
28674
28675     ac_save_LIBS="$LIBS"
28676                                 case " $LIBUNISTRING" in
28677       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
28678       *)       LIBS="$LIBUNISTRING $LIBS" ;;
28679     esac
28680     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28681 /* end confdefs.h.  */
28682 #include <uniconv.h>
28683 int
28684 main ()
28685 {
28686 u8_strconv_from_locale((char*)0);
28687   ;
28688   return 0;
28689 }
28690 _ACEOF
28691 if ac_fn_c_try_link "$LINENO"; then :
28692   ac_cv_libunistring=yes
28693 else
28694   ac_cv_libunistring='no, trying again together with libiconv'
28695 fi
28696 rm -f core conftest.err conftest.$ac_objext \
28697     conftest$ac_exeext conftest.$ac_ext
28698     LIBS="$ac_save_LIBS"
28699
28700 fi
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
28702 $as_echo "$ac_cv_libunistring" >&6; }
28703   if test "$ac_cv_libunistring" = yes; then
28704     HAVE_LIBUNISTRING=yes
28705
28706 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
28707
28708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
28709 $as_echo_n "checking how to link with libunistring... " >&6; }
28710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
28711 $as_echo "$LIBUNISTRING" >&6; }
28712   else
28713     HAVE_LIBUNISTRING=no
28714             CPPFLAGS="$ac_save_CPPFLAGS"
28715     LIBUNISTRING=
28716     LTLIBUNISTRING=
28717     LIBUNISTRING_PREFIX=
28718   fi
28719
28720
28721
28722
28723
28724
28725
28726     if test "$ac_cv_libunistring" != yes; then
28727                         unset ac_cv_libunistring
28728       glus_save_LIBS="$LIBS"
28729       LIBS="$LIBS $LIBICONV"
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743     use_additional=yes
28744
28745   acl_save_prefix="$prefix"
28746   prefix="$acl_final_prefix"
28747   acl_save_exec_prefix="$exec_prefix"
28748   exec_prefix="$acl_final_exec_prefix"
28749
28750     eval additional_includedir=\"$includedir\"
28751     eval additional_libdir=\"$libdir\"
28752
28753   exec_prefix="$acl_save_exec_prefix"
28754   prefix="$acl_save_prefix"
28755
28756
28757 # Check whether --with-libunistring-prefix was given.
28758 if test "${with_libunistring_prefix+set}" = set; then :
28759   withval=$with_libunistring_prefix;
28760     if test "X$withval" = "Xno"; then
28761       use_additional=no
28762     else
28763       if test "X$withval" = "X"; then
28764
28765   acl_save_prefix="$prefix"
28766   prefix="$acl_final_prefix"
28767   acl_save_exec_prefix="$exec_prefix"
28768   exec_prefix="$acl_final_exec_prefix"
28769
28770           eval additional_includedir=\"$includedir\"
28771           eval additional_libdir=\"$libdir\"
28772
28773   exec_prefix="$acl_save_exec_prefix"
28774   prefix="$acl_save_prefix"
28775
28776       else
28777         additional_includedir="$withval/include"
28778         additional_libdir="$withval/$acl_libdirstem"
28779         if test "$acl_libdirstem2" != "$acl_libdirstem" \
28780            && ! test -d "$withval/$acl_libdirstem"; then
28781           additional_libdir="$withval/$acl_libdirstem2"
28782         fi
28783       fi
28784     fi
28785
28786 fi
28787
28788       LIBUNISTRING=
28789   LTLIBUNISTRING=
28790   INCUNISTRING=
28791   LIBUNISTRING_PREFIX=
28792       HAVE_LIBUNISTRING=
28793   rpathdirs=
28794   ltrpathdirs=
28795   names_already_handled=
28796   names_next_round='unistring '
28797   while test -n "$names_next_round"; do
28798     names_this_round="$names_next_round"
28799     names_next_round=
28800     for name in $names_this_round; do
28801       already_handled=
28802       for n in $names_already_handled; do
28803         if test "$n" = "$name"; then
28804           already_handled=yes
28805           break
28806         fi
28807       done
28808       if test -z "$already_handled"; then
28809         names_already_handled="$names_already_handled $name"
28810                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
28811         eval value=\"\$HAVE_LIB$uppername\"
28812         if test -n "$value"; then
28813           if test "$value" = yes; then
28814             eval value=\"\$LIB$uppername\"
28815             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
28816             eval value=\"\$LTLIB$uppername\"
28817             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
28818           else
28819                                     :
28820           fi
28821         else
28822                               found_dir=
28823           found_la=
28824           found_so=
28825           found_a=
28826           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
28827           if test -n "$acl_shlibext"; then
28828             shrext=".$acl_shlibext"             # typically: shrext=.so
28829           else
28830             shrext=
28831           fi
28832           if test $use_additional = yes; then
28833             dir="$additional_libdir"
28834                                     if test -n "$acl_shlibext"; then
28835               if test -f "$dir/$libname$shrext"; then
28836                 found_dir="$dir"
28837                 found_so="$dir/$libname$shrext"
28838               else
28839                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28840                   ver=`(cd "$dir" && \
28841                         for f in "$libname$shrext".*; do echo "$f"; done \
28842                         | sed -e "s,^$libname$shrext\\\\.,," \
28843                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28844                         | sed 1q ) 2>/dev/null`
28845                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28846                     found_dir="$dir"
28847                     found_so="$dir/$libname$shrext.$ver"
28848                   fi
28849                 else
28850                   eval library_names=\"$acl_library_names_spec\"
28851                   for f in $library_names; do
28852                     if test -f "$dir/$f"; then
28853                       found_dir="$dir"
28854                       found_so="$dir/$f"
28855                       break
28856                     fi
28857                   done
28858                 fi
28859               fi
28860             fi
28861                         if test "X$found_dir" = "X"; then
28862               if test -f "$dir/$libname.$acl_libext"; then
28863                 found_dir="$dir"
28864                 found_a="$dir/$libname.$acl_libext"
28865               fi
28866             fi
28867             if test "X$found_dir" != "X"; then
28868               if test -f "$dir/$libname.la"; then
28869                 found_la="$dir/$libname.la"
28870               fi
28871             fi
28872           fi
28873           if test "X$found_dir" = "X"; then
28874             for x in $LDFLAGS $LTLIBUNISTRING; do
28875
28876   acl_save_prefix="$prefix"
28877   prefix="$acl_final_prefix"
28878   acl_save_exec_prefix="$exec_prefix"
28879   exec_prefix="$acl_final_exec_prefix"
28880   eval x=\"$x\"
28881   exec_prefix="$acl_save_exec_prefix"
28882   prefix="$acl_save_prefix"
28883
28884               case "$x" in
28885                 -L*)
28886                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28887                                     if test -n "$acl_shlibext"; then
28888                     if test -f "$dir/$libname$shrext"; then
28889                       found_dir="$dir"
28890                       found_so="$dir/$libname$shrext"
28891                     else
28892                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28893                         ver=`(cd "$dir" && \
28894                               for f in "$libname$shrext".*; do echo "$f"; done \
28895                               | sed -e "s,^$libname$shrext\\\\.,," \
28896                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28897                               | sed 1q ) 2>/dev/null`
28898                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28899                           found_dir="$dir"
28900                           found_so="$dir/$libname$shrext.$ver"
28901                         fi
28902                       else
28903                         eval library_names=\"$acl_library_names_spec\"
28904                         for f in $library_names; do
28905                           if test -f "$dir/$f"; then
28906                             found_dir="$dir"
28907                             found_so="$dir/$f"
28908                             break
28909                           fi
28910                         done
28911                       fi
28912                     fi
28913                   fi
28914                                     if test "X$found_dir" = "X"; then
28915                     if test -f "$dir/$libname.$acl_libext"; then
28916                       found_dir="$dir"
28917                       found_a="$dir/$libname.$acl_libext"
28918                     fi
28919                   fi
28920                   if test "X$found_dir" != "X"; then
28921                     if test -f "$dir/$libname.la"; then
28922                       found_la="$dir/$libname.la"
28923                     fi
28924                   fi
28925                   ;;
28926               esac
28927               if test "X$found_dir" != "X"; then
28928                 break
28929               fi
28930             done
28931           fi
28932           if test "X$found_dir" != "X"; then
28933                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
28934             if test "X$found_so" != "X"; then
28935                                                         if test "$enable_rpath" = no \
28936                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
28937                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
28938                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28939               else
28940                                                                                 haveit=
28941                 for x in $ltrpathdirs; do
28942                   if test "X$x" = "X$found_dir"; then
28943                     haveit=yes
28944                     break
28945                   fi
28946                 done
28947                 if test -z "$haveit"; then
28948                   ltrpathdirs="$ltrpathdirs $found_dir"
28949                 fi
28950                                 if test "$acl_hardcode_direct" = yes; then
28951                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28952                 else
28953                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28954                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28955                                                             haveit=
28956                     for x in $rpathdirs; do
28957                       if test "X$x" = "X$found_dir"; then
28958                         haveit=yes
28959                         break
28960                       fi
28961                     done
28962                     if test -z "$haveit"; then
28963                       rpathdirs="$rpathdirs $found_dir"
28964                     fi
28965                   else
28966                                                                                 haveit=
28967                     for x in $LDFLAGS $LIBUNISTRING; do
28968
28969   acl_save_prefix="$prefix"
28970   prefix="$acl_final_prefix"
28971   acl_save_exec_prefix="$exec_prefix"
28972   exec_prefix="$acl_final_exec_prefix"
28973   eval x=\"$x\"
28974   exec_prefix="$acl_save_exec_prefix"
28975   prefix="$acl_save_prefix"
28976
28977                       if test "X$x" = "X-L$found_dir"; then
28978                         haveit=yes
28979                         break
28980                       fi
28981                     done
28982                     if test -z "$haveit"; then
28983                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
28984                     fi
28985                     if test "$acl_hardcode_minus_L" != no; then
28986                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28987                     else
28988                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
28989                     fi
28990                   fi
28991                 fi
28992               fi
28993             else
28994               if test "X$found_a" != "X"; then
28995                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
28996               else
28997                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
28998               fi
28999             fi
29000                         additional_includedir=
29001             case "$found_dir" in
29002               */$acl_libdirstem | */$acl_libdirstem/)
29003                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
29004                 if test "$name" = 'unistring'; then
29005                   LIBUNISTRING_PREFIX="$basedir"
29006                 fi
29007                 additional_includedir="$basedir/include"
29008                 ;;
29009               */$acl_libdirstem2 | */$acl_libdirstem2/)
29010                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
29011                 if test "$name" = 'unistring'; then
29012                   LIBUNISTRING_PREFIX="$basedir"
29013                 fi
29014                 additional_includedir="$basedir/include"
29015                 ;;
29016             esac
29017             if test "X$additional_includedir" != "X"; then
29018                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
29019                 haveit=
29020                 if test "X$additional_includedir" = "X/usr/local/include"; then
29021                   if test -n "$GCC"; then
29022                     case $host_os in
29023                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29024                     esac
29025                   fi
29026                 fi
29027                 if test -z "$haveit"; then
29028                   for x in $CPPFLAGS $INCUNISTRING; do
29029
29030   acl_save_prefix="$prefix"
29031   prefix="$acl_final_prefix"
29032   acl_save_exec_prefix="$exec_prefix"
29033   exec_prefix="$acl_final_exec_prefix"
29034   eval x=\"$x\"
29035   exec_prefix="$acl_save_exec_prefix"
29036   prefix="$acl_save_prefix"
29037
29038                     if test "X$x" = "X-I$additional_includedir"; then
29039                       haveit=yes
29040                       break
29041                     fi
29042                   done
29043                   if test -z "$haveit"; then
29044                     if test -d "$additional_includedir"; then
29045                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
29046                     fi
29047                   fi
29048                 fi
29049               fi
29050             fi
29051                         if test -n "$found_la"; then
29052                                                         save_libdir="$libdir"
29053               case "$found_la" in
29054                 */* | *\\*) . "$found_la" ;;
29055                 *) . "./$found_la" ;;
29056               esac
29057               libdir="$save_libdir"
29058                             for dep in $dependency_libs; do
29059                 case "$dep" in
29060                   -L*)
29061                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29062                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
29063                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
29064                       haveit=
29065                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
29066                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
29067                         if test -n "$GCC"; then
29068                           case $host_os in
29069                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29070                           esac
29071                         fi
29072                       fi
29073                       if test -z "$haveit"; then
29074                         haveit=
29075                         for x in $LDFLAGS $LIBUNISTRING; do
29076
29077   acl_save_prefix="$prefix"
29078   prefix="$acl_final_prefix"
29079   acl_save_exec_prefix="$exec_prefix"
29080   exec_prefix="$acl_final_exec_prefix"
29081   eval x=\"$x\"
29082   exec_prefix="$acl_save_exec_prefix"
29083   prefix="$acl_save_prefix"
29084
29085                           if test "X$x" = "X-L$additional_libdir"; then
29086                             haveit=yes
29087                             break
29088                           fi
29089                         done
29090                         if test -z "$haveit"; then
29091                           if test -d "$additional_libdir"; then
29092                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
29093                           fi
29094                         fi
29095                         haveit=
29096                         for x in $LDFLAGS $LTLIBUNISTRING; do
29097
29098   acl_save_prefix="$prefix"
29099   prefix="$acl_final_prefix"
29100   acl_save_exec_prefix="$exec_prefix"
29101   exec_prefix="$acl_final_exec_prefix"
29102   eval x=\"$x\"
29103   exec_prefix="$acl_save_exec_prefix"
29104   prefix="$acl_save_prefix"
29105
29106                           if test "X$x" = "X-L$additional_libdir"; then
29107                             haveit=yes
29108                             break
29109                           fi
29110                         done
29111                         if test -z "$haveit"; then
29112                           if test -d "$additional_libdir"; then
29113                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
29114                           fi
29115                         fi
29116                       fi
29117                     fi
29118                     ;;
29119                   -R*)
29120                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
29121                     if test "$enable_rpath" != no; then
29122                                                                   haveit=
29123                       for x in $rpathdirs; do
29124                         if test "X$x" = "X$dir"; then
29125                           haveit=yes
29126                           break
29127                         fi
29128                       done
29129                       if test -z "$haveit"; then
29130                         rpathdirs="$rpathdirs $dir"
29131                       fi
29132                                                                   haveit=
29133                       for x in $ltrpathdirs; do
29134                         if test "X$x" = "X$dir"; then
29135                           haveit=yes
29136                           break
29137                         fi
29138                       done
29139                       if test -z "$haveit"; then
29140                         ltrpathdirs="$ltrpathdirs $dir"
29141                       fi
29142                     fi
29143                     ;;
29144                   -l*)
29145                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29146                     ;;
29147                   *.la)
29148                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29149                     ;;
29150                   *)
29151                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
29152                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
29153                     ;;
29154                 esac
29155               done
29156             fi
29157           else
29158                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
29159             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
29160           fi
29161         fi
29162       fi
29163     done
29164   done
29165   if test "X$rpathdirs" != "X"; then
29166     if test -n "$acl_hardcode_libdir_separator"; then
29167                         alldirs=
29168       for found_dir in $rpathdirs; do
29169         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
29170       done
29171             acl_save_libdir="$libdir"
29172       libdir="$alldirs"
29173       eval flag=\"$acl_hardcode_libdir_flag_spec\"
29174       libdir="$acl_save_libdir"
29175       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
29176     else
29177             for found_dir in $rpathdirs; do
29178         acl_save_libdir="$libdir"
29179         libdir="$found_dir"
29180         eval flag=\"$acl_hardcode_libdir_flag_spec\"
29181         libdir="$acl_save_libdir"
29182         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
29183       done
29184     fi
29185   fi
29186   if test "X$ltrpathdirs" != "X"; then
29187             for found_dir in $ltrpathdirs; do
29188       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
29189     done
29190   fi
29191
29192
29193
29194
29195
29196
29197
29198         ac_save_CPPFLAGS="$CPPFLAGS"
29199
29200   for element in $INCUNISTRING; do
29201     haveit=
29202     for x in $CPPFLAGS; do
29203
29204   acl_save_prefix="$prefix"
29205   prefix="$acl_final_prefix"
29206   acl_save_exec_prefix="$exec_prefix"
29207   exec_prefix="$acl_final_exec_prefix"
29208   eval x=\"$x\"
29209   exec_prefix="$acl_save_exec_prefix"
29210   prefix="$acl_save_prefix"
29211
29212       if test "X$x" = "X$element"; then
29213         haveit=yes
29214         break
29215       fi
29216     done
29217     if test -z "$haveit"; then
29218       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29219     fi
29220   done
29221
29222
29223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
29224 $as_echo_n "checking for libunistring... " >&6; }
29225 if ${ac_cv_libunistring+:} false; then :
29226   $as_echo_n "(cached) " >&6
29227 else
29228
29229     ac_save_LIBS="$LIBS"
29230                                 case " $LIBUNISTRING" in
29231       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
29232       *)       LIBS="$LIBUNISTRING $LIBS" ;;
29233     esac
29234     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29235 /* end confdefs.h.  */
29236 #include <uniconv.h>
29237 int
29238 main ()
29239 {
29240 u8_strconv_from_locale((char*)0);
29241   ;
29242   return 0;
29243 }
29244 _ACEOF
29245 if ac_fn_c_try_link "$LINENO"; then :
29246   ac_cv_libunistring=yes
29247 else
29248   ac_cv_libunistring='no, consider installing GNU libunistring'
29249 fi
29250 rm -f core conftest.err conftest.$ac_objext \
29251     conftest$ac_exeext conftest.$ac_ext
29252     LIBS="$ac_save_LIBS"
29253
29254 fi
29255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
29256 $as_echo "$ac_cv_libunistring" >&6; }
29257   if test "$ac_cv_libunistring" = yes; then
29258     HAVE_LIBUNISTRING=yes
29259
29260 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
29261
29262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
29263 $as_echo_n "checking how to link with libunistring... " >&6; }
29264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
29265 $as_echo "$LIBUNISTRING" >&6; }
29266   else
29267     HAVE_LIBUNISTRING=no
29268             CPPFLAGS="$ac_save_CPPFLAGS"
29269     LIBUNISTRING=
29270     LTLIBUNISTRING=
29271     LIBUNISTRING_PREFIX=
29272   fi
29273
29274
29275
29276
29277
29278
29279
29280       if test -n "$LIBUNISTRING"; then
29281         LIBUNISTRING="$LIBUNISTRING $LIBICONV"
29282         LTLIBUNISTRING="$LTLIBUNISTRING $LTLIBICONV"
29283       fi
29284       LIBS="$glus_save_LIBS"
29285     fi
29286   else
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300     use_additional=yes
29301
29302   acl_save_prefix="$prefix"
29303   prefix="$acl_final_prefix"
29304   acl_save_exec_prefix="$exec_prefix"
29305   exec_prefix="$acl_final_exec_prefix"
29306
29307     eval additional_includedir=\"$includedir\"
29308     eval additional_libdir=\"$libdir\"
29309
29310   exec_prefix="$acl_save_exec_prefix"
29311   prefix="$acl_save_prefix"
29312
29313
29314 # Check whether --with-libunistring-prefix was given.
29315 if test "${with_libunistring_prefix+set}" = set; then :
29316   withval=$with_libunistring_prefix;
29317     if test "X$withval" = "Xno"; then
29318       use_additional=no
29319     else
29320       if test "X$withval" = "X"; then
29321
29322   acl_save_prefix="$prefix"
29323   prefix="$acl_final_prefix"
29324   acl_save_exec_prefix="$exec_prefix"
29325   exec_prefix="$acl_final_exec_prefix"
29326
29327           eval additional_includedir=\"$includedir\"
29328           eval additional_libdir=\"$libdir\"
29329
29330   exec_prefix="$acl_save_exec_prefix"
29331   prefix="$acl_save_prefix"
29332
29333       else
29334         additional_includedir="$withval/include"
29335         additional_libdir="$withval/$acl_libdirstem"
29336         if test "$acl_libdirstem2" != "$acl_libdirstem" \
29337            && ! test -d "$withval/$acl_libdirstem"; then
29338           additional_libdir="$withval/$acl_libdirstem2"
29339         fi
29340       fi
29341     fi
29342
29343 fi
29344
29345       LIBUNISTRING=
29346   LTLIBUNISTRING=
29347   INCUNISTRING=
29348   LIBUNISTRING_PREFIX=
29349       HAVE_LIBUNISTRING=
29350   rpathdirs=
29351   ltrpathdirs=
29352   names_already_handled=
29353   names_next_round='unistring '
29354   while test -n "$names_next_round"; do
29355     names_this_round="$names_next_round"
29356     names_next_round=
29357     for name in $names_this_round; do
29358       already_handled=
29359       for n in $names_already_handled; do
29360         if test "$n" = "$name"; then
29361           already_handled=yes
29362           break
29363         fi
29364       done
29365       if test -z "$already_handled"; then
29366         names_already_handled="$names_already_handled $name"
29367                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
29368         eval value=\"\$HAVE_LIB$uppername\"
29369         if test -n "$value"; then
29370           if test "$value" = yes; then
29371             eval value=\"\$LIB$uppername\"
29372             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
29373             eval value=\"\$LTLIB$uppername\"
29374             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
29375           else
29376                                     :
29377           fi
29378         else
29379                               found_dir=
29380           found_la=
29381           found_so=
29382           found_a=
29383           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
29384           if test -n "$acl_shlibext"; then
29385             shrext=".$acl_shlibext"             # typically: shrext=.so
29386           else
29387             shrext=
29388           fi
29389           if test $use_additional = yes; then
29390             dir="$additional_libdir"
29391                                     if test -n "$acl_shlibext"; then
29392               if test -f "$dir/$libname$shrext"; then
29393                 found_dir="$dir"
29394                 found_so="$dir/$libname$shrext"
29395               else
29396                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
29397                   ver=`(cd "$dir" && \
29398                         for f in "$libname$shrext".*; do echo "$f"; done \
29399                         | sed -e "s,^$libname$shrext\\\\.,," \
29400                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
29401                         | sed 1q ) 2>/dev/null`
29402                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
29403                     found_dir="$dir"
29404                     found_so="$dir/$libname$shrext.$ver"
29405                   fi
29406                 else
29407                   eval library_names=\"$acl_library_names_spec\"
29408                   for f in $library_names; do
29409                     if test -f "$dir/$f"; then
29410                       found_dir="$dir"
29411                       found_so="$dir/$f"
29412                       break
29413                     fi
29414                   done
29415                 fi
29416               fi
29417             fi
29418                         if test "X$found_dir" = "X"; then
29419               if test -f "$dir/$libname.$acl_libext"; then
29420                 found_dir="$dir"
29421                 found_a="$dir/$libname.$acl_libext"
29422               fi
29423             fi
29424             if test "X$found_dir" != "X"; then
29425               if test -f "$dir/$libname.la"; then
29426                 found_la="$dir/$libname.la"
29427               fi
29428             fi
29429           fi
29430           if test "X$found_dir" = "X"; then
29431             for x in $LDFLAGS $LTLIBUNISTRING; do
29432
29433   acl_save_prefix="$prefix"
29434   prefix="$acl_final_prefix"
29435   acl_save_exec_prefix="$exec_prefix"
29436   exec_prefix="$acl_final_exec_prefix"
29437   eval x=\"$x\"
29438   exec_prefix="$acl_save_exec_prefix"
29439   prefix="$acl_save_prefix"
29440
29441               case "$x" in
29442                 -L*)
29443                   dir=`echo "X$x" | sed -e 's/^X-L//'`
29444                                     if test -n "$acl_shlibext"; then
29445                     if test -f "$dir/$libname$shrext"; then
29446                       found_dir="$dir"
29447                       found_so="$dir/$libname$shrext"
29448                     else
29449                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
29450                         ver=`(cd "$dir" && \
29451                               for f in "$libname$shrext".*; do echo "$f"; done \
29452                               | sed -e "s,^$libname$shrext\\\\.,," \
29453                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
29454                               | sed 1q ) 2>/dev/null`
29455                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
29456                           found_dir="$dir"
29457                           found_so="$dir/$libname$shrext.$ver"
29458                         fi
29459                       else
29460                         eval library_names=\"$acl_library_names_spec\"
29461                         for f in $library_names; do
29462                           if test -f "$dir/$f"; then
29463                             found_dir="$dir"
29464                             found_so="$dir/$f"
29465                             break
29466                           fi
29467                         done
29468                       fi
29469                     fi
29470                   fi
29471                                     if test "X$found_dir" = "X"; then
29472                     if test -f "$dir/$libname.$acl_libext"; then
29473                       found_dir="$dir"
29474                       found_a="$dir/$libname.$acl_libext"
29475                     fi
29476                   fi
29477                   if test "X$found_dir" != "X"; then
29478                     if test -f "$dir/$libname.la"; then
29479                       found_la="$dir/$libname.la"
29480                     fi
29481                   fi
29482                   ;;
29483               esac
29484               if test "X$found_dir" != "X"; then
29485                 break
29486               fi
29487             done
29488           fi
29489           if test "X$found_dir" != "X"; then
29490                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
29491             if test "X$found_so" != "X"; then
29492                                                         if test "$enable_rpath" = no \
29493                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
29494                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
29495                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
29496               else
29497                                                                                 haveit=
29498                 for x in $ltrpathdirs; do
29499                   if test "X$x" = "X$found_dir"; then
29500                     haveit=yes
29501                     break
29502                   fi
29503                 done
29504                 if test -z "$haveit"; then
29505                   ltrpathdirs="$ltrpathdirs $found_dir"
29506                 fi
29507                                 if test "$acl_hardcode_direct" = yes; then
29508                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
29509                 else
29510                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
29511                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
29512                                                             haveit=
29513                     for x in $rpathdirs; do
29514                       if test "X$x" = "X$found_dir"; then
29515                         haveit=yes
29516                         break
29517                       fi
29518                     done
29519                     if test -z "$haveit"; then
29520                       rpathdirs="$rpathdirs $found_dir"
29521                     fi
29522                   else
29523                                                                                 haveit=
29524                     for x in $LDFLAGS $LIBUNISTRING; do
29525
29526   acl_save_prefix="$prefix"
29527   prefix="$acl_final_prefix"
29528   acl_save_exec_prefix="$exec_prefix"
29529   exec_prefix="$acl_final_exec_prefix"
29530   eval x=\"$x\"
29531   exec_prefix="$acl_save_exec_prefix"
29532   prefix="$acl_save_prefix"
29533
29534                       if test "X$x" = "X-L$found_dir"; then
29535                         haveit=yes
29536                         break
29537                       fi
29538                     done
29539                     if test -z "$haveit"; then
29540                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
29541                     fi
29542                     if test "$acl_hardcode_minus_L" != no; then
29543                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
29544                     else
29545                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
29546                     fi
29547                   fi
29548                 fi
29549               fi
29550             else
29551               if test "X$found_a" != "X"; then
29552                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
29553               else
29554                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
29555               fi
29556             fi
29557                         additional_includedir=
29558             case "$found_dir" in
29559               */$acl_libdirstem | */$acl_libdirstem/)
29560                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
29561                 if test "$name" = 'unistring'; then
29562                   LIBUNISTRING_PREFIX="$basedir"
29563                 fi
29564                 additional_includedir="$basedir/include"
29565                 ;;
29566               */$acl_libdirstem2 | */$acl_libdirstem2/)
29567                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
29568                 if test "$name" = 'unistring'; then
29569                   LIBUNISTRING_PREFIX="$basedir"
29570                 fi
29571                 additional_includedir="$basedir/include"
29572                 ;;
29573             esac
29574             if test "X$additional_includedir" != "X"; then
29575                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
29576                 haveit=
29577                 if test "X$additional_includedir" = "X/usr/local/include"; then
29578                   if test -n "$GCC"; then
29579                     case $host_os in
29580                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29581                     esac
29582                   fi
29583                 fi
29584                 if test -z "$haveit"; then
29585                   for x in $CPPFLAGS $INCUNISTRING; do
29586
29587   acl_save_prefix="$prefix"
29588   prefix="$acl_final_prefix"
29589   acl_save_exec_prefix="$exec_prefix"
29590   exec_prefix="$acl_final_exec_prefix"
29591   eval x=\"$x\"
29592   exec_prefix="$acl_save_exec_prefix"
29593   prefix="$acl_save_prefix"
29594
29595                     if test "X$x" = "X-I$additional_includedir"; then
29596                       haveit=yes
29597                       break
29598                     fi
29599                   done
29600                   if test -z "$haveit"; then
29601                     if test -d "$additional_includedir"; then
29602                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
29603                     fi
29604                   fi
29605                 fi
29606               fi
29607             fi
29608                         if test -n "$found_la"; then
29609                                                         save_libdir="$libdir"
29610               case "$found_la" in
29611                 */* | *\\*) . "$found_la" ;;
29612                 *) . "./$found_la" ;;
29613               esac
29614               libdir="$save_libdir"
29615                             for dep in $dependency_libs; do
29616                 case "$dep" in
29617                   -L*)
29618                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29619                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
29620                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
29621                       haveit=
29622                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
29623                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
29624                         if test -n "$GCC"; then
29625                           case $host_os in
29626                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29627                           esac
29628                         fi
29629                       fi
29630                       if test -z "$haveit"; then
29631                         haveit=
29632                         for x in $LDFLAGS $LIBUNISTRING; do
29633
29634   acl_save_prefix="$prefix"
29635   prefix="$acl_final_prefix"
29636   acl_save_exec_prefix="$exec_prefix"
29637   exec_prefix="$acl_final_exec_prefix"
29638   eval x=\"$x\"
29639   exec_prefix="$acl_save_exec_prefix"
29640   prefix="$acl_save_prefix"
29641
29642                           if test "X$x" = "X-L$additional_libdir"; then
29643                             haveit=yes
29644                             break
29645                           fi
29646                         done
29647                         if test -z "$haveit"; then
29648                           if test -d "$additional_libdir"; then
29649                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
29650                           fi
29651                         fi
29652                         haveit=
29653                         for x in $LDFLAGS $LTLIBUNISTRING; do
29654
29655   acl_save_prefix="$prefix"
29656   prefix="$acl_final_prefix"
29657   acl_save_exec_prefix="$exec_prefix"
29658   exec_prefix="$acl_final_exec_prefix"
29659   eval x=\"$x\"
29660   exec_prefix="$acl_save_exec_prefix"
29661   prefix="$acl_save_prefix"
29662
29663                           if test "X$x" = "X-L$additional_libdir"; then
29664                             haveit=yes
29665                             break
29666                           fi
29667                         done
29668                         if test -z "$haveit"; then
29669                           if test -d "$additional_libdir"; then
29670                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
29671                           fi
29672                         fi
29673                       fi
29674                     fi
29675                     ;;
29676                   -R*)
29677                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
29678                     if test "$enable_rpath" != no; then
29679                                                                   haveit=
29680                       for x in $rpathdirs; do
29681                         if test "X$x" = "X$dir"; then
29682                           haveit=yes
29683                           break
29684                         fi
29685                       done
29686                       if test -z "$haveit"; then
29687                         rpathdirs="$rpathdirs $dir"
29688                       fi
29689                                                                   haveit=
29690                       for x in $ltrpathdirs; do
29691                         if test "X$x" = "X$dir"; then
29692                           haveit=yes
29693                           break
29694                         fi
29695                       done
29696                       if test -z "$haveit"; then
29697                         ltrpathdirs="$ltrpathdirs $dir"
29698                       fi
29699                     fi
29700                     ;;
29701                   -l*)
29702                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29703                     ;;
29704                   *.la)
29705                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29706                     ;;
29707                   *)
29708                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
29709                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
29710                     ;;
29711                 esac
29712               done
29713             fi
29714           else
29715                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
29716             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
29717           fi
29718         fi
29719       fi
29720     done
29721   done
29722   if test "X$rpathdirs" != "X"; then
29723     if test -n "$acl_hardcode_libdir_separator"; then
29724                         alldirs=
29725       for found_dir in $rpathdirs; do
29726         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
29727       done
29728             acl_save_libdir="$libdir"
29729       libdir="$alldirs"
29730       eval flag=\"$acl_hardcode_libdir_flag_spec\"
29731       libdir="$acl_save_libdir"
29732       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
29733     else
29734             for found_dir in $rpathdirs; do
29735         acl_save_libdir="$libdir"
29736         libdir="$found_dir"
29737         eval flag=\"$acl_hardcode_libdir_flag_spec\"
29738         libdir="$acl_save_libdir"
29739         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
29740       done
29741     fi
29742   fi
29743   if test "X$ltrpathdirs" != "X"; then
29744             for found_dir in $ltrpathdirs; do
29745       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
29746     done
29747   fi
29748
29749
29750
29751
29752
29753
29754
29755         ac_save_CPPFLAGS="$CPPFLAGS"
29756
29757   for element in $INCUNISTRING; do
29758     haveit=
29759     for x in $CPPFLAGS; do
29760
29761   acl_save_prefix="$prefix"
29762   prefix="$acl_final_prefix"
29763   acl_save_exec_prefix="$exec_prefix"
29764   exec_prefix="$acl_final_exec_prefix"
29765   eval x=\"$x\"
29766   exec_prefix="$acl_save_exec_prefix"
29767   prefix="$acl_save_prefix"
29768
29769       if test "X$x" = "X$element"; then
29770         haveit=yes
29771         break
29772       fi
29773     done
29774     if test -z "$haveit"; then
29775       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29776     fi
29777   done
29778
29779
29780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
29781 $as_echo_n "checking for libunistring... " >&6; }
29782 if ${ac_cv_libunistring+:} false; then :
29783   $as_echo_n "(cached) " >&6
29784 else
29785
29786     ac_save_LIBS="$LIBS"
29787                                 case " $LIBUNISTRING" in
29788       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
29789       *)       LIBS="$LIBUNISTRING $LIBS" ;;
29790     esac
29791     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29792 /* end confdefs.h.  */
29793 #include <uniconv.h>
29794 int
29795 main ()
29796 {
29797 u8_strconv_from_locale((char*)0);
29798   ;
29799   return 0;
29800 }
29801 _ACEOF
29802 if ac_fn_c_try_link "$LINENO"; then :
29803   ac_cv_libunistring=yes
29804 else
29805   ac_cv_libunistring='no, consider installing GNU libunistring'
29806 fi
29807 rm -f core conftest.err conftest.$ac_objext \
29808     conftest$ac_exeext conftest.$ac_ext
29809     LIBS="$ac_save_LIBS"
29810
29811 fi
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
29813 $as_echo "$ac_cv_libunistring" >&6; }
29814   if test "$ac_cv_libunistring" = yes; then
29815     HAVE_LIBUNISTRING=yes
29816
29817 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
29818
29819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
29820 $as_echo_n "checking how to link with libunistring... " >&6; }
29821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
29822 $as_echo "$LIBUNISTRING" >&6; }
29823   else
29824     HAVE_LIBUNISTRING=no
29825             CPPFLAGS="$ac_save_CPPFLAGS"
29826     LIBUNISTRING=
29827     LTLIBUNISTRING=
29828     LIBUNISTRING_PREFIX=
29829   fi
29830
29831
29832
29833
29834
29835
29836
29837   fi
29838   if test $HAVE_LIBUNISTRING = yes; then
29839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring version" >&5
29840 $as_echo_n "checking for libunistring version... " >&6; }
29841 if ${gl_cv_libunistring_version+:} false; then :
29842   $as_echo_n "(cached) " >&6
29843 else
29844   if ac_fn_c_compute_int "$LINENO" "_LIBUNISTRING_VERSION" "gl_libunistring_hexversion"        "#include <unistring/version.h>"; then :
29845
29846 fi
29847
29848                      if test $gl_libunistring_hexversion = 9; then
29849                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29850 /* end confdefs.h.  */
29851 #include <unistring/cdefs.h>
29852 int
29853 main ()
29854 {
29855
29856   ;
29857   return 0;
29858 }
29859 _ACEOF
29860 if ac_fn_c_try_compile "$LINENO"; then :
29861   gl_cv_libunistring_version092=true
29862 else
29863   gl_cv_libunistring_version092=false
29864 fi
29865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29866          if $gl_cv_libunistring_version092; then
29867
29868
29869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29870 /* end confdefs.h.  */
29871 #include <unistr.h>
29872 _ACEOF
29873                 case "$host_os" in
29874     aix*) gl_absname_cpp="$ac_cpp -C" ;;
29875     *)    gl_absname_cpp="$ac_cpp" ;;
29876   esac
29877
29878   case "$host_os" in
29879     mingw*)
29880                                           gl_dirsep_regex='[/\\]'
29881       ;;
29882     *)
29883       gl_dirsep_regex='\/'
29884       ;;
29885   esac
29886       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29887   gl_header_literal_regex=`echo 'unistr.h' \
29888                            | sed -e "$gl_make_literal_regex_sed"`
29889   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29890       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29891       s|^/[^/]|//&|
29892       p
29893       q
29894     }'
29895
29896         gl_cv_absolute_unistr_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29897   sed -n "$gl_absolute_header_sed"`
29898
29899            if test -n "$gl_cv_absolute_unistr_h" \
29900               && grep 'Copy no more than N units of SRC to DEST.  Return a pointer' $gl_cv_absolute_unistr_h > /dev/null; then
29901                           gl_libunistring_hexversion=2307
29902            else
29903                           gl_libunistring_hexversion=2306
29904            fi
29905          else
29906                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29907 /* end confdefs.h.  */
29908 #include <unicase.h>
29909                   casing_suffix_context_t ct;
29910 int
29911 main ()
29912 {
29913
29914   ;
29915   return 0;
29916 }
29917 _ACEOF
29918 if ac_fn_c_try_compile "$LINENO"; then :
29919   gl_cv_libunistring_version091=true
29920 else
29921   gl_cv_libunistring_version091=false
29922 fi
29923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29924            if $gl_cv_libunistring_version091; then
29925                           gl_libunistring_hexversion=2305
29926            else
29927                           gl_libunistring_hexversion=2304
29928            fi
29929          fi
29930        fi
29931               gl_libunistring_major=`expr $gl_libunistring_hexversion / 65536`
29932        gl_libunistring_minor=`expr $gl_libunistring_hexversion / 256 % 256`
29933        gl_libunistring_subminor=`expr $gl_libunistring_hexversion % 256`
29934        gl_cv_libunistring_version="$gl_libunistring_major.$gl_libunistring_minor.$gl_libunistring_subminor"
29935
29936 fi
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libunistring_version" >&5
29938 $as_echo "$gl_cv_libunistring_version" >&6; }
29939     LIBUNISTRING_VERSION="$gl_cv_libunistring_version"
29940   fi
29941
29942         if test $HAVE_LIBUNISTRING = no; then
29943           gl_libunistring_use_included=yes
29944           LIBUNISTRING=
29945           LTLIBUNISTRING=
29946         fi
29947       fi
29948
29949
29950
29951
29952
29953
29954 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
29955 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
29956   ac_have_decl=1
29957 else
29958   ac_have_decl=0
29959 fi
29960
29961 cat >>confdefs.h <<_ACEOF
29962 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
29963 _ACEOF
29964
29965
29966   GNULIB_LOCALECONV=0;
29967   GNULIB_SETLOCALE=0;
29968   GNULIB_DUPLOCALE=0;
29969     HAVE_DUPLOCALE=1;
29970   REPLACE_LOCALECONV=0;
29971   REPLACE_SETLOCALE=0;
29972   REPLACE_DUPLOCALE=0;
29973   REPLACE_STRUCT_LCONV=0;
29974
29975
29976     REPLACE_NULL=0;
29977   HAVE_MAX_ALIGN_T=1;
29978   HAVE_WCHAR_T=1;
29979
29980
29981
29982
29983   STDDEF_H=
29984   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
29985
29986 "
29987 if test "x$ac_cv_type_max_align_t" = xyes; then :
29988
29989 else
29990   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
29991 fi
29992
29993   if test $gt_cv_c_wchar_t = no; then
29994     HAVE_WCHAR_T=0
29995     STDDEF_H=stddef.h
29996   fi
29997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
29998 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
29999 if ${gl_cv_decl_null_works+:} false; then :
30000   $as_echo_n "(cached) " >&6
30001 else
30002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30003 /* end confdefs.h.  */
30004 #include <stddef.h>
30005       int test[2 * (sizeof NULL == sizeof (void *)) -1];
30006
30007 int
30008 main ()
30009 {
30010
30011   ;
30012   return 0;
30013 }
30014 _ACEOF
30015 if ac_fn_c_try_compile "$LINENO"; then :
30016   gl_cv_decl_null_works=yes
30017 else
30018   gl_cv_decl_null_works=no
30019 fi
30020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30021 fi
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
30023 $as_echo "$gl_cv_decl_null_works" >&6; }
30024   if test $gl_cv_decl_null_works = no; then
30025     REPLACE_NULL=1
30026     STDDEF_H=stddef.h
30027   fi
30028
30029    if test -n "$STDDEF_H"; then
30030   GL_GENERATE_STDDEF_H_TRUE=
30031   GL_GENERATE_STDDEF_H_FALSE='#'
30032 else
30033   GL_GENERATE_STDDEF_H_TRUE='#'
30034   GL_GENERATE_STDDEF_H_FALSE=
30035 fi
30036
30037   if test -n "$STDDEF_H"; then
30038
30039
30040
30041
30042
30043
30044
30045
30046      if test $gl_cv_have_include_next = yes; then
30047        gl_cv_next_stddef_h='<'stddef.h'>'
30048      else
30049        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
30050 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
30051 if ${gl_cv_next_stddef_h+:} false; then :
30052   $as_echo_n "(cached) " >&6
30053 else
30054
30055
30056
30057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30058 /* end confdefs.h.  */
30059 #include <stddef.h>
30060 _ACEOF
30061                 case "$host_os" in
30062     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30063     *)    gl_absname_cpp="$ac_cpp" ;;
30064   esac
30065
30066   case "$host_os" in
30067     mingw*)
30068                                           gl_dirsep_regex='[/\\]'
30069       ;;
30070     *)
30071       gl_dirsep_regex='\/'
30072       ;;
30073   esac
30074       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30075   gl_header_literal_regex=`echo 'stddef.h' \
30076                            | sed -e "$gl_make_literal_regex_sed"`
30077   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30078       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30079       s|^/[^/]|//&|
30080       p
30081       q
30082     }'
30083
30084         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30085   sed -n "$gl_absolute_header_sed"`
30086
30087            gl_header=$gl_cv_absolute_stddef_h
30088            gl_cv_next_stddef_h='"'$gl_header'"'
30089
30090
30091 fi
30092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
30093 $as_echo "$gl_cv_next_stddef_h" >&6; }
30094      fi
30095      NEXT_STDDEF_H=$gl_cv_next_stddef_h
30096
30097      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30098        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30099        gl_next_as_first_directive='<'stddef.h'>'
30100      else
30101        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30102        gl_next_as_first_directive=$gl_cv_next_stddef_h
30103      fi
30104      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
30105
30106
30107
30108
30109   fi
30110
30111
30112
30113
30114
30115
30116
30117
30118   POW_LIBM=
30119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pow can be used without linking with libm" >&5
30120 $as_echo_n "checking whether pow can be used without linking with libm... " >&6; }
30121 if ${gl_cv_func_pow_no_libm+:} false; then :
30122   $as_echo_n "(cached) " >&6
30123 else
30124
30125       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30126 /* end confdefs.h.  */
30127 #ifndef __NO_MATH_INLINES
30128              # define __NO_MATH_INLINES 1 /* for glibc */
30129              #endif
30130              #include <math.h>
30131
30132              double (*funcptr) (double, double) = pow;
30133              int i_ret;
30134              float f_ret;
30135              double d_ret;
30136              long double l_ret;
30137 int
30138 main ()
30139 {
30140 double y = funcptr (1.6180339887, 1.6180339887) + pow (1.6180339887, 1.6180339887);
30141
30142              return y < 0.3 || y > 1.7;
30143
30144   ;
30145   return 0;
30146 }
30147 _ACEOF
30148 if ac_fn_c_try_link "$LINENO"; then :
30149   gl_cv_func_pow_no_libm=yes
30150 else
30151   gl_cv_func_pow_no_libm=no
30152 fi
30153 rm -f core conftest.err conftest.$ac_objext \
30154     conftest$ac_exeext conftest.$ac_ext
30155
30156 fi
30157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pow_no_libm" >&5
30158 $as_echo "$gl_cv_func_pow_no_libm" >&6; }
30159   if test $gl_cv_func_pow_no_libm = no; then
30160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pow can be used with libm" >&5
30161 $as_echo_n "checking whether pow can be used with libm... " >&6; }
30162 if ${gl_cv_func_pow_in_libm+:} false; then :
30163   $as_echo_n "(cached) " >&6
30164 else
30165
30166         save_LIBS="$LIBS"
30167         LIBS="$LIBS -lm"
30168         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30169 /* end confdefs.h.  */
30170 #ifndef __NO_MATH_INLINES
30171                # define __NO_MATH_INLINES 1 /* for glibc */
30172                #endif
30173                #include <math.h>
30174
30175                double (*funcptr) (double, double) = pow;
30176                int i_ret;
30177                float f_ret;
30178                double d_ret;
30179                long double l_ret;
30180 int
30181 main ()
30182 {
30183 double y = funcptr (1.6180339887, 1.6180339887) + pow (1.6180339887, 1.6180339887);
30184
30185                return y < 0.3 || y > 1.7;
30186
30187   ;
30188   return 0;
30189 }
30190 _ACEOF
30191 if ac_fn_c_try_link "$LINENO"; then :
30192   gl_cv_func_pow_in_libm=yes
30193 else
30194   gl_cv_func_pow_in_libm=no
30195 fi
30196 rm -f core conftest.err conftest.$ac_objext \
30197     conftest$ac_exeext conftest.$ac_ext
30198         LIBS="$save_LIBS"
30199
30200 fi
30201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pow_in_libm" >&5
30202 $as_echo "$gl_cv_func_pow_in_libm" >&6; }
30203     if test $gl_cv_func_pow_in_libm = yes; then
30204       POW_LIBM=-lm
30205     fi
30206   fi
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
30217 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
30218 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
30219   $as_echo_n "(cached) " >&6
30220 else
30221   rm -f conftest.sym conftest.file
30222      echo >conftest.file
30223      if test "$cross_compiling" = yes; then :
30224   case "$host_os" in
30225           *-gnu*)
30226             # Guess yes on glibc systems.
30227             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
30228           *)
30229             # If we don't know, assume the worst.
30230             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
30231         esac
30232
30233 else
30234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30235 /* end confdefs.h.  */
30236 $ac_includes_default
30237 int
30238 main ()
30239 {
30240 struct stat sbuf;
30241             if (symlink ("conftest.file", "conftest.sym") != 0)
30242               return 1;
30243             /* Linux will dereference the symlink and fail, as required by
30244                POSIX.  That is better in the sense that it means we will not
30245                have to compile and use the lstat wrapper.  */
30246             return lstat ("conftest.sym/", &sbuf) == 0;
30247
30248   ;
30249   return 0;
30250 }
30251 _ACEOF
30252 if ac_fn_c_try_run "$LINENO"; then :
30253   gl_cv_func_lstat_dereferences_slashed_symlink=yes
30254 else
30255   gl_cv_func_lstat_dereferences_slashed_symlink=no
30256 fi
30257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30258   conftest.$ac_objext conftest.beam conftest.$ac_ext
30259 fi
30260
30261      rm -f conftest.sym conftest.file
30262
30263 fi
30264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
30265 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
30266   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
30267     *yes)
30268
30269 cat >>confdefs.h <<_ACEOF
30270 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
30271 _ACEOF
30272
30273       ;;
30274   esac
30275
30276
30277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
30278 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
30279 if ${gl_cv_func_malloc_posix+:} false; then :
30280   $as_echo_n "(cached) " >&6
30281 else
30282
30283                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30284 /* end confdefs.h.  */
30285
30286 int
30287 main ()
30288 {
30289 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
30290              choke me
30291              #endif
30292
30293   ;
30294   return 0;
30295 }
30296 _ACEOF
30297 if ac_fn_c_try_compile "$LINENO"; then :
30298   gl_cv_func_malloc_posix=yes
30299 else
30300   gl_cv_func_malloc_posix=no
30301 fi
30302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30303
30304 fi
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
30306 $as_echo "$gl_cv_func_malloc_posix" >&6; }
30307
30308
30309
30310       for ac_header in stdlib.h
30311 do :
30312   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
30313 if test "x$ac_cv_header_stdlib_h" = xyes; then :
30314   cat >>confdefs.h <<_ACEOF
30315 #define HAVE_STDLIB_H 1
30316 _ACEOF
30317
30318 fi
30319
30320 done
30321
30322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
30323 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
30324 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
30325   $as_echo_n "(cached) " >&6
30326 else
30327   if test "$cross_compiling" = yes; then :
30328   case "$host_os" in
30329           # Guess yes on platforms where we know the result.
30330           *-gnu* | freebsd* | netbsd* | openbsd* \
30331           | hpux* | solaris* | cygwin* | mingw*)
30332             ac_cv_func_malloc_0_nonnull=yes ;;
30333           # If we don't know, assume the worst.
30334           *) ac_cv_func_malloc_0_nonnull=no ;;
30335         esac
30336
30337 else
30338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30339 /* end confdefs.h.  */
30340 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
30341             # include <stdlib.h>
30342             #else
30343             char *malloc ();
30344             #endif
30345
30346 int
30347 main ()
30348 {
30349 char *p = malloc (0);
30350             int result = !p;
30351             free (p);
30352             return result;
30353   ;
30354   return 0;
30355 }
30356
30357 _ACEOF
30358 if ac_fn_c_try_run "$LINENO"; then :
30359   ac_cv_func_malloc_0_nonnull=yes
30360 else
30361   ac_cv_func_malloc_0_nonnull=no
30362 fi
30363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30364   conftest.$ac_objext conftest.beam conftest.$ac_ext
30365 fi
30366
30367
30368 fi
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
30370 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
30371   if test $ac_cv_func_malloc_0_nonnull = yes; then :
30372   gl_cv_func_malloc_0_nonnull=1
30373 else
30374   gl_cv_func_malloc_0_nonnull=0
30375 fi
30376
30377
30378 cat >>confdefs.h <<_ACEOF
30379 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
30380 _ACEOF
30381
30382
30383
30384
30385
30386   GNULIB_BTOWC=0;
30387   GNULIB_WCTOB=0;
30388   GNULIB_MBSINIT=0;
30389   GNULIB_MBRTOWC=0;
30390   GNULIB_MBRLEN=0;
30391   GNULIB_MBSRTOWCS=0;
30392   GNULIB_MBSNRTOWCS=0;
30393   GNULIB_WCRTOMB=0;
30394   GNULIB_WCSRTOMBS=0;
30395   GNULIB_WCSNRTOMBS=0;
30396   GNULIB_WCWIDTH=0;
30397   GNULIB_WMEMCHR=0;
30398   GNULIB_WMEMCMP=0;
30399   GNULIB_WMEMCPY=0;
30400   GNULIB_WMEMMOVE=0;
30401   GNULIB_WMEMSET=0;
30402   GNULIB_WCSLEN=0;
30403   GNULIB_WCSNLEN=0;
30404   GNULIB_WCSCPY=0;
30405   GNULIB_WCPCPY=0;
30406   GNULIB_WCSNCPY=0;
30407   GNULIB_WCPNCPY=0;
30408   GNULIB_WCSCAT=0;
30409   GNULIB_WCSNCAT=0;
30410   GNULIB_WCSCMP=0;
30411   GNULIB_WCSNCMP=0;
30412   GNULIB_WCSCASECMP=0;
30413   GNULIB_WCSNCASECMP=0;
30414   GNULIB_WCSCOLL=0;
30415   GNULIB_WCSXFRM=0;
30416   GNULIB_WCSDUP=0;
30417   GNULIB_WCSCHR=0;
30418   GNULIB_WCSRCHR=0;
30419   GNULIB_WCSCSPN=0;
30420   GNULIB_WCSSPN=0;
30421   GNULIB_WCSPBRK=0;
30422   GNULIB_WCSSTR=0;
30423   GNULIB_WCSTOK=0;
30424   GNULIB_WCSWIDTH=0;
30425     HAVE_BTOWC=1;
30426   HAVE_MBSINIT=1;
30427   HAVE_MBRTOWC=1;
30428   HAVE_MBRLEN=1;
30429   HAVE_MBSRTOWCS=1;
30430   HAVE_MBSNRTOWCS=1;
30431   HAVE_WCRTOMB=1;
30432   HAVE_WCSRTOMBS=1;
30433   HAVE_WCSNRTOMBS=1;
30434   HAVE_WMEMCHR=1;
30435   HAVE_WMEMCMP=1;
30436   HAVE_WMEMCPY=1;
30437   HAVE_WMEMMOVE=1;
30438   HAVE_WMEMSET=1;
30439   HAVE_WCSLEN=1;
30440   HAVE_WCSNLEN=1;
30441   HAVE_WCSCPY=1;
30442   HAVE_WCPCPY=1;
30443   HAVE_WCSNCPY=1;
30444   HAVE_WCPNCPY=1;
30445   HAVE_WCSCAT=1;
30446   HAVE_WCSNCAT=1;
30447   HAVE_WCSCMP=1;
30448   HAVE_WCSNCMP=1;
30449   HAVE_WCSCASECMP=1;
30450   HAVE_WCSNCASECMP=1;
30451   HAVE_WCSCOLL=1;
30452   HAVE_WCSXFRM=1;
30453   HAVE_WCSDUP=1;
30454   HAVE_WCSCHR=1;
30455   HAVE_WCSRCHR=1;
30456   HAVE_WCSCSPN=1;
30457   HAVE_WCSSPN=1;
30458   HAVE_WCSPBRK=1;
30459   HAVE_WCSSTR=1;
30460   HAVE_WCSTOK=1;
30461   HAVE_WCSWIDTH=1;
30462   HAVE_DECL_WCTOB=1;
30463   HAVE_DECL_WCWIDTH=1;
30464   REPLACE_MBSTATE_T=0;
30465   REPLACE_BTOWC=0;
30466   REPLACE_WCTOB=0;
30467   REPLACE_MBSINIT=0;
30468   REPLACE_MBRTOWC=0;
30469   REPLACE_MBRLEN=0;
30470   REPLACE_MBSRTOWCS=0;
30471   REPLACE_MBSNRTOWCS=0;
30472   REPLACE_WCRTOMB=0;
30473   REPLACE_WCSRTOMBS=0;
30474   REPLACE_WCSNRTOMBS=0;
30475   REPLACE_WCWIDTH=0;
30476   REPLACE_WCSWIDTH=0;
30477
30478
30479
30480
30481
30482
30483
30484
30485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
30486 $as_echo_n "checking for a traditional japanese locale... " >&6; }
30487 if ${gt_cv_locale_ja+:} false; then :
30488   $as_echo_n "(cached) " >&6
30489 else
30490
30491     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30492 /* end confdefs.h.  */
30493
30494 #include <locale.h>
30495 #include <time.h>
30496 #if HAVE_LANGINFO_CODESET
30497 # include <langinfo.h>
30498 #endif
30499 #include <stdlib.h>
30500 #include <string.h>
30501 struct tm t;
30502 char buf[16];
30503 int main ()
30504 {
30505   const char *p;
30506   /* Check whether the given locale name is recognized by the system.  */
30507 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
30508   /* On native Windows, setlocale(category, "") looks at the system settings,
30509      not at the environment variables.  Also, when an encoding suffix such
30510      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30511      category of the locale to "C".  */
30512   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30513       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30514     return 1;
30515 #else
30516   if (setlocale (LC_ALL, "") == NULL) return 1;
30517 #endif
30518   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30519      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30520      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30521      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30522      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30523      some unit tests fail.
30524      On MirBSD 10, when an unsupported locale is specified, setlocale()
30525      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
30526 #if HAVE_LANGINFO_CODESET
30527   {
30528     const char *cs = nl_langinfo (CODESET);
30529     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
30530         || strcmp (cs, "UTF-8") == 0)
30531       return 1;
30532   }
30533 #endif
30534 #ifdef __CYGWIN__
30535   /* On Cygwin, avoid locale names without encoding suffix, because the
30536      locale_charset() function relies on the encoding suffix.  Note that
30537      LC_ALL is set on the command line.  */
30538   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30539 #endif
30540   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
30541      on Cygwin 1.5.x.  */
30542   if (MB_CUR_MAX == 1)
30543     return 1;
30544   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
30545      This excludes the UTF-8 encoding (except on MirBSD).  */
30546   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30547   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
30548   for (p = buf; *p != '\0'; p++)
30549     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
30550       return 1;
30551   return 0;
30552 }
30553
30554 _ACEOF
30555     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30556   (eval $ac_link) 2>&5
30557   ac_status=$?
30558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30559   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30560       case "$host_os" in
30561         # Handle native Windows specially, because there setlocale() interprets
30562         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
30563         # "fr" or "fra" as "French" or "French_France.1252",
30564         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
30565         # "ja" as "Japanese" or "Japanese_Japan.932",
30566         # and similar.
30567         mingw*)
30568           # Note that on native Windows, the Japanese locale is
30569           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
30570           # cannot use it here.
30571           gt_cv_locale_ja=none
30572           ;;
30573         *)
30574           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30575           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
30576           # configure script would override the LC_ALL setting. Likewise for
30577           # LC_CTYPE, which is also set at the beginning of the configure script.
30578           # Test for the AIX locale name.
30579           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30580             gt_cv_locale_ja=ja_JP
30581           else
30582             # Test for the locale name with explicit encoding suffix.
30583             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30584               gt_cv_locale_ja=ja_JP.EUC-JP
30585             else
30586               # Test for the HP-UX, OSF/1, NetBSD locale name.
30587               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30588                 gt_cv_locale_ja=ja_JP.eucJP
30589               else
30590                 # Test for the IRIX, FreeBSD locale name.
30591                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30592                   gt_cv_locale_ja=ja_JP.EUC
30593                 else
30594                   # Test for the Solaris 7 locale name.
30595                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30596                     gt_cv_locale_ja=ja
30597                   else
30598                     # Special test for NetBSD 1.6.
30599                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
30600                       gt_cv_locale_ja=ja_JP.eucJP
30601                     else
30602                       # None found.
30603                       gt_cv_locale_ja=none
30604                     fi
30605                   fi
30606                 fi
30607               fi
30608             fi
30609           fi
30610           ;;
30611       esac
30612     fi
30613     rm -fr conftest*
30614
30615 fi
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
30617 $as_echo "$gt_cv_locale_ja" >&6; }
30618   LOCALE_JA=$gt_cv_locale_ja
30619
30620
30621
30622
30623
30624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
30625 $as_echo_n "checking for a transitional chinese locale... " >&6; }
30626 if ${gt_cv_locale_zh_CN+:} false; then :
30627   $as_echo_n "(cached) " >&6
30628 else
30629
30630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30631 /* end confdefs.h.  */
30632
30633 #include <locale.h>
30634 #include <stdlib.h>
30635 #include <time.h>
30636 #if HAVE_LANGINFO_CODESET
30637 # include <langinfo.h>
30638 #endif
30639 #include <stdlib.h>
30640 #include <string.h>
30641 struct tm t;
30642 char buf[16];
30643 int main ()
30644 {
30645   const char *p;
30646   /* Check whether the given locale name is recognized by the system.  */
30647 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
30648   /* On native Windows, setlocale(category, "") looks at the system settings,
30649      not at the environment variables.  Also, when an encoding suffix such
30650      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30651      category of the locale to "C".  */
30652   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30653       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30654     return 1;
30655 #else
30656   if (setlocale (LC_ALL, "") == NULL) return 1;
30657 #endif
30658   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30659      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30660      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30661      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30662      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30663      some unit tests fail.
30664      On MirBSD 10, when an unsupported locale is specified, setlocale()
30665      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
30666 #if HAVE_LANGINFO_CODESET
30667   {
30668     const char *cs = nl_langinfo (CODESET);
30669     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
30670         || strcmp (cs, "UTF-8") == 0)
30671       return 1;
30672   }
30673 #endif
30674 #ifdef __CYGWIN__
30675   /* On Cygwin, avoid locale names without encoding suffix, because the
30676      locale_charset() function relies on the encoding suffix.  Note that
30677      LC_ALL is set on the command line.  */
30678   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30679 #endif
30680   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
30681      This excludes the UTF-8 encoding (except on MirBSD).  */
30682   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30683   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
30684   for (p = buf; *p != '\0'; p++)
30685     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
30686       return 1;
30687   /* Check whether a typical GB18030 multibyte sequence is recognized as a
30688      single wide character.  This excludes the GB2312 and GBK encodings.  */
30689   if (mblen ("\203\062\332\066", 5) != 4)
30690     return 1;
30691   return 0;
30692 }
30693
30694 _ACEOF
30695     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30696   (eval $ac_link) 2>&5
30697   ac_status=$?
30698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30699   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30700       case "$host_os" in
30701         # Handle native Windows specially, because there setlocale() interprets
30702         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
30703         # "fr" or "fra" as "French" or "French_France.1252",
30704         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
30705         # "ja" as "Japanese" or "Japanese_Japan.932",
30706         # and similar.
30707         mingw*)
30708           # Test for the hypothetical native Windows locale name.
30709           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30710             gt_cv_locale_zh_CN=Chinese_China.54936
30711           else
30712             # None found.
30713             gt_cv_locale_zh_CN=none
30714           fi
30715           ;;
30716         solaris2.8)
30717           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
30718           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
30719           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
30720           gt_cv_locale_zh_CN=none
30721           ;;
30722         *)
30723           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30724           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
30725           # configure script would override the LC_ALL setting. Likewise for
30726           # LC_CTYPE, which is also set at the beginning of the configure script.
30727           # Test for the locale name without encoding suffix.
30728           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30729             gt_cv_locale_zh_CN=zh_CN
30730           else
30731             # Test for the locale name with explicit encoding suffix.
30732             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30733               gt_cv_locale_zh_CN=zh_CN.GB18030
30734             else
30735               # None found.
30736               gt_cv_locale_zh_CN=none
30737             fi
30738           fi
30739           ;;
30740       esac
30741     else
30742       # If there was a link error, due to mblen(), the system is so old that
30743       # it certainly doesn't have a chinese locale.
30744       gt_cv_locale_zh_CN=none
30745     fi
30746     rm -fr conftest*
30747
30748 fi
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
30750 $as_echo "$gt_cv_locale_zh_CN" >&6; }
30751   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
30752
30753
30754
30755
30756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
30757 $as_echo_n "checking for a french Unicode locale... " >&6; }
30758 if ${gt_cv_locale_fr_utf8+:} false; then :
30759   $as_echo_n "(cached) " >&6
30760 else
30761
30762     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30763 /* end confdefs.h.  */
30764
30765 #include <locale.h>
30766 #include <time.h>
30767 #if HAVE_LANGINFO_CODESET
30768 # include <langinfo.h>
30769 #endif
30770 #include <stdlib.h>
30771 #include <string.h>
30772 struct tm t;
30773 char buf[16];
30774 int main () {
30775   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
30776      imitates locale dependent behaviour by looking at the environment
30777      variables, and all locales use the UTF-8 encoding.  */
30778 #if !(defined __BEOS__ || defined __HAIKU__)
30779   /* Check whether the given locale name is recognized by the system.  */
30780 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
30781   /* On native Windows, setlocale(category, "") looks at the system settings,
30782      not at the environment variables.  Also, when an encoding suffix such
30783      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30784      category of the locale to "C".  */
30785   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30786       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30787     return 1;
30788 # else
30789   if (setlocale (LC_ALL, "") == NULL) return 1;
30790 # endif
30791   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30792      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30793      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30794      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30795      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30796      some unit tests fail.  */
30797 # if HAVE_LANGINFO_CODESET
30798   {
30799     const char *cs = nl_langinfo (CODESET);
30800     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30801       return 1;
30802   }
30803 # endif
30804 # ifdef __CYGWIN__
30805   /* On Cygwin, avoid locale names without encoding suffix, because the
30806      locale_charset() function relies on the encoding suffix.  Note that
30807      LC_ALL is set on the command line.  */
30808   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30809 # endif
30810   /* Check whether in the abbreviation of the second month, the second
30811      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
30812      two bytes long, with UTF-8 encoding.  */
30813   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30814   if (strftime (buf, sizeof (buf), "%b", &t) < 4
30815       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
30816     return 1;
30817 #endif
30818 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
30819   /* Check whether the decimal separator is a comma.
30820      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30821      are nl_langinfo(RADIXCHAR) are both ".".  */
30822   if (localeconv () ->decimal_point[0] != ',') return 1;
30823 #endif
30824   return 0;
30825 }
30826
30827 _ACEOF
30828     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30829   (eval $ac_link) 2>&5
30830   ac_status=$?
30831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30832   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30833       case "$host_os" in
30834         # Handle native Windows specially, because there setlocale() interprets
30835         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
30836         # "fr" or "fra" as "French" or "French_France.1252",
30837         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
30838         # "ja" as "Japanese" or "Japanese_Japan.932",
30839         # and similar.
30840         mingw*)
30841           # Test for the hypothetical native Windows locale name.
30842           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30843             gt_cv_locale_fr_utf8=French_France.65001
30844           else
30845             # None found.
30846             gt_cv_locale_fr_utf8=none
30847           fi
30848           ;;
30849         *)
30850           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30851           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
30852           # configure script would override the LC_ALL setting. Likewise for
30853           # LC_CTYPE, which is also set at the beginning of the configure script.
30854           # Test for the usual locale name.
30855           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30856             gt_cv_locale_fr_utf8=fr_FR
30857           else
30858             # Test for the locale name with explicit encoding suffix.
30859             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30860               gt_cv_locale_fr_utf8=fr_FR.UTF-8
30861             else
30862               # Test for the Solaris 7 locale name.
30863               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30864                 gt_cv_locale_fr_utf8=fr.UTF-8
30865               else
30866                 # None found.
30867                 gt_cv_locale_fr_utf8=none
30868               fi
30869             fi
30870           fi
30871           ;;
30872       esac
30873     fi
30874     rm -fr conftest*
30875
30876 fi
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
30878 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
30879   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
30880
30881
30882
30883   GNULIB_FFSL=0;
30884   GNULIB_FFSLL=0;
30885   GNULIB_MEMCHR=0;
30886   GNULIB_MEMMEM=0;
30887   GNULIB_MEMPCPY=0;
30888   GNULIB_MEMRCHR=0;
30889   GNULIB_RAWMEMCHR=0;
30890   GNULIB_STPCPY=0;
30891   GNULIB_STPNCPY=0;
30892   GNULIB_STRCHRNUL=0;
30893   GNULIB_STRDUP=0;
30894   GNULIB_STRNCAT=0;
30895   GNULIB_STRNDUP=0;
30896   GNULIB_STRNLEN=0;
30897   GNULIB_STRPBRK=0;
30898   GNULIB_STRSEP=0;
30899   GNULIB_STRSTR=0;
30900   GNULIB_STRCASESTR=0;
30901   GNULIB_STRTOK_R=0;
30902   GNULIB_MBSLEN=0;
30903   GNULIB_MBSNLEN=0;
30904   GNULIB_MBSCHR=0;
30905   GNULIB_MBSRCHR=0;
30906   GNULIB_MBSSTR=0;
30907   GNULIB_MBSCASECMP=0;
30908   GNULIB_MBSNCASECMP=0;
30909   GNULIB_MBSPCASECMP=0;
30910   GNULIB_MBSCASESTR=0;
30911   GNULIB_MBSCSPN=0;
30912   GNULIB_MBSPBRK=0;
30913   GNULIB_MBSSPN=0;
30914   GNULIB_MBSSEP=0;
30915   GNULIB_MBSTOK_R=0;
30916   GNULIB_STRERROR=0;
30917   GNULIB_STRERROR_R=0;
30918   GNULIB_STRSIGNAL=0;
30919   GNULIB_STRVERSCMP=0;
30920   HAVE_MBSLEN=0;
30921     HAVE_FFSL=1;
30922   HAVE_FFSLL=1;
30923   HAVE_MEMCHR=1;
30924   HAVE_DECL_MEMMEM=1;
30925   HAVE_MEMPCPY=1;
30926   HAVE_DECL_MEMRCHR=1;
30927   HAVE_RAWMEMCHR=1;
30928   HAVE_STPCPY=1;
30929   HAVE_STPNCPY=1;
30930   HAVE_STRCHRNUL=1;
30931   HAVE_DECL_STRDUP=1;
30932   HAVE_DECL_STRNDUP=1;
30933   HAVE_DECL_STRNLEN=1;
30934   HAVE_STRPBRK=1;
30935   HAVE_STRSEP=1;
30936   HAVE_STRCASESTR=1;
30937   HAVE_DECL_STRTOK_R=1;
30938   HAVE_DECL_STRERROR_R=1;
30939   HAVE_DECL_STRSIGNAL=1;
30940   HAVE_STRVERSCMP=1;
30941   REPLACE_MEMCHR=0;
30942   REPLACE_MEMMEM=0;
30943   REPLACE_STPNCPY=0;
30944   REPLACE_STRDUP=0;
30945   REPLACE_STRSTR=0;
30946   REPLACE_STRCASESTR=0;
30947   REPLACE_STRCHRNUL=0;
30948   REPLACE_STRERROR=0;
30949   REPLACE_STRERROR_R=0;
30950   REPLACE_STRNCAT=0;
30951   REPLACE_STRNDUP=0;
30952   REPLACE_STRNLEN=0;
30953   REPLACE_STRSIGNAL=0;
30954   REPLACE_STRTOK_R=0;
30955   UNDEFINE_STRTOK_R=0;
30956
30957
30958
30959
30960
30961
30962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
30963 $as_echo_n "checking for a traditional french locale... " >&6; }
30964 if ${gt_cv_locale_fr+:} false; then :
30965   $as_echo_n "(cached) " >&6
30966 else
30967
30968     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30969 /* end confdefs.h.  */
30970
30971 #include <locale.h>
30972 #include <time.h>
30973 #if HAVE_LANGINFO_CODESET
30974 # include <langinfo.h>
30975 #endif
30976 #include <stdlib.h>
30977 #include <string.h>
30978 struct tm t;
30979 char buf[16];
30980 int main () {
30981   /* Check whether the given locale name is recognized by the system.  */
30982 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
30983   /* On native Windows, setlocale(category, "") looks at the system settings,
30984      not at the environment variables.  Also, when an encoding suffix such
30985      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30986      category of the locale to "C".  */
30987   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30988       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30989     return 1;
30990 #else
30991   if (setlocale (LC_ALL, "") == NULL) return 1;
30992 #endif
30993   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30994      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30995      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30996      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30997      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30998      some unit tests fail.
30999      On MirBSD 10, when an unsupported locale is specified, setlocale()
31000      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
31001 #if HAVE_LANGINFO_CODESET
31002   {
31003     const char *cs = nl_langinfo (CODESET);
31004     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
31005         || strcmp (cs, "UTF-8") == 0)
31006       return 1;
31007   }
31008 #endif
31009 #ifdef __CYGWIN__
31010   /* On Cygwin, avoid locale names without encoding suffix, because the
31011      locale_charset() function relies on the encoding suffix.  Note that
31012      LC_ALL is set on the command line.  */
31013   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
31014 #endif
31015   /* Check whether in the abbreviation of the second month, the second
31016      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
31017      one byte long. This excludes the UTF-8 encoding.  */
31018   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
31019   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
31020 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
31021   /* Check whether the decimal separator is a comma.
31022      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
31023      are nl_langinfo(RADIXCHAR) are both ".".  */
31024   if (localeconv () ->decimal_point[0] != ',') return 1;
31025 #endif
31026   return 0;
31027 }
31028
31029 _ACEOF
31030     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31031   (eval $ac_link) 2>&5
31032   ac_status=$?
31033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31034   test $ac_status = 0; } && test -s conftest$ac_exeext; then
31035       case "$host_os" in
31036         # Handle native Windows specially, because there setlocale() interprets
31037         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
31038         # "fr" or "fra" as "French" or "French_France.1252",
31039         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
31040         # "ja" as "Japanese" or "Japanese_Japan.932",
31041         # and similar.
31042         mingw*)
31043           # Test for the native Windows locale name.
31044           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31045             gt_cv_locale_fr=French_France.1252
31046           else
31047             # None found.
31048             gt_cv_locale_fr=none
31049           fi
31050           ;;
31051         *)
31052           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
31053           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
31054           # configure script would override the LC_ALL setting. Likewise for
31055           # LC_CTYPE, which is also set at the beginning of the configure script.
31056           # Test for the usual locale name.
31057           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31058             gt_cv_locale_fr=fr_FR
31059           else
31060             # Test for the locale name with explicit encoding suffix.
31061             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31062               gt_cv_locale_fr=fr_FR.ISO-8859-1
31063             else
31064               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
31065               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31066                 gt_cv_locale_fr=fr_FR.ISO8859-1
31067               else
31068                 # Test for the HP-UX locale name.
31069                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31070                   gt_cv_locale_fr=fr_FR.iso88591
31071                 else
31072                   # Test for the Solaris 7 locale name.
31073                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31074                     gt_cv_locale_fr=fr
31075                   else
31076                     # None found.
31077                     gt_cv_locale_fr=none
31078                   fi
31079                 fi
31080               fi
31081             fi
31082           fi
31083           ;;
31084       esac
31085     fi
31086     rm -fr conftest*
31087
31088 fi
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
31090 $as_echo "$gt_cv_locale_fr" >&6; }
31091   LOCALE_FR=$gt_cv_locale_fr
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31107   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31108   # irrelevant for anonymous mappings.
31109   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31110 if test "x$ac_cv_func_mmap" = xyes; then :
31111   gl_have_mmap=yes
31112 else
31113   gl_have_mmap=no
31114 fi
31115
31116
31117   # Try to allow MAP_ANONYMOUS.
31118   gl_have_mmap_anonymous=no
31119   if test $gl_have_mmap = yes; then
31120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31121 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31122     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31123 /* end confdefs.h.  */
31124
31125 #include <sys/mman.h>
31126 #ifdef MAP_ANONYMOUS
31127     I cannot identify this map
31128 #endif
31129
31130 _ACEOF
31131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31132   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
31133   gl_have_mmap_anonymous=yes
31134 fi
31135 rm -f conftest*
31136
31137     if test $gl_have_mmap_anonymous != yes; then
31138       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31139 /* end confdefs.h.  */
31140
31141 #include <sys/mman.h>
31142 #ifdef MAP_ANON
31143     I cannot identify this map
31144 #endif
31145
31146 _ACEOF
31147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31148   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
31149
31150 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31151
31152          gl_have_mmap_anonymous=yes
31153 fi
31154 rm -f conftest*
31155
31156     fi
31157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31158 $as_echo "$gl_have_mmap_anonymous" >&6; }
31159     if test $gl_have_mmap_anonymous = yes; then
31160
31161 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31162
31163     fi
31164   fi
31165
31166
31167
31168
31169
31170
31171   if test $HAVE_MEMCHR = 1; then
31172     # Detect platform-specific bugs in some versions of glibc:
31173     # memchr should not dereference anything with length 0
31174     #   http://bugzilla.redhat.com/499689
31175     # memchr should not dereference overestimated length after a match
31176     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
31177     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
31178     # Assume that memchr works on platforms that lack mprotect.
31179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
31180 $as_echo_n "checking whether memchr works... " >&6; }
31181 if ${gl_cv_func_memchr_works+:} false; then :
31182   $as_echo_n "(cached) " >&6
31183 else
31184   if test "$cross_compiling" = yes; then :
31185          gl_cv_func_memchr_works="guessing no"
31186 else
31187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31188 /* end confdefs.h.  */
31189
31190 #include <string.h>
31191 #if HAVE_SYS_MMAN_H
31192 # include <fcntl.h>
31193 # include <unistd.h>
31194 # include <sys/types.h>
31195 # include <sys/mman.h>
31196 # ifndef MAP_FILE
31197 #  define MAP_FILE 0
31198 # endif
31199 #endif
31200
31201 int
31202 main ()
31203 {
31204
31205   int result = 0;
31206   char *fence = NULL;
31207 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
31208 # if HAVE_MAP_ANONYMOUS
31209   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
31210   const int fd = -1;
31211 # else /* !HAVE_MAP_ANONYMOUS */
31212   const int flags = MAP_FILE | MAP_PRIVATE;
31213   int fd = open ("/dev/zero", O_RDONLY, 0666);
31214   if (fd >= 0)
31215 # endif
31216     {
31217       int pagesize = getpagesize ();
31218       char *two_pages =
31219         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
31220                        flags, fd, 0);
31221       if (two_pages != (char *)(-1)
31222           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
31223         fence = two_pages + pagesize;
31224     }
31225 #endif
31226   if (fence)
31227     {
31228       if (memchr (fence, 0, 0))
31229         result |= 1;
31230       strcpy (fence - 9, "12345678");
31231       if (memchr (fence - 9, 0, 79) != fence - 1)
31232         result |= 2;
31233       if (memchr (fence - 1, 0, 3) != fence - 1)
31234         result |= 4;
31235     }
31236   return result;
31237
31238   ;
31239   return 0;
31240 }
31241 _ACEOF
31242 if ac_fn_c_try_run "$LINENO"; then :
31243   gl_cv_func_memchr_works=yes
31244 else
31245   gl_cv_func_memchr_works=no
31246 fi
31247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31248   conftest.$ac_objext conftest.beam conftest.$ac_ext
31249 fi
31250
31251 fi
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
31253 $as_echo "$gl_cv_func_memchr_works" >&6; }
31254     if test "$gl_cv_func_memchr_works" != yes; then
31255       REPLACE_MEMCHR=1
31256     fi
31257   fi
31258
31259
31260
31261
31262
31263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
31264 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
31265 if ${gl_cv_minmax_in_limits_h+:} false; then :
31266   $as_echo_n "(cached) " >&6
31267 else
31268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31269 /* end confdefs.h.  */
31270 #include <limits.h>
31271             int x = MIN (42, 17);
31272 int
31273 main ()
31274 {
31275
31276   ;
31277   return 0;
31278 }
31279 _ACEOF
31280 if ac_fn_c_try_compile "$LINENO"; then :
31281   gl_cv_minmax_in_limits_h=yes
31282 else
31283   gl_cv_minmax_in_limits_h=no
31284 fi
31285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31286 fi
31287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
31288 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
31289   if test $gl_cv_minmax_in_limits_h = yes; then
31290
31291 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
31292
31293   fi
31294
31295
31296
31297
31298
31299
31300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
31301 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
31302 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
31303   $as_echo_n "(cached) " >&6
31304 else
31305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31306 /* end confdefs.h.  */
31307 #include <sys/param.h>
31308             int x = MIN (42, 17);
31309 int
31310 main ()
31311 {
31312
31313   ;
31314   return 0;
31315 }
31316 _ACEOF
31317 if ac_fn_c_try_compile "$LINENO"; then :
31318   gl_cv_minmax_in_sys_param_h=yes
31319 else
31320   gl_cv_minmax_in_sys_param_h=no
31321 fi
31322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31323 fi
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
31325 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
31326   if test $gl_cv_minmax_in_sys_param_h = yes; then
31327
31328 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
31329
31330   fi
31331
31332
31333
31334
31335
31336
31337
31338
31339     gl_cv_c_multiarch=no
31340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31341 /* end confdefs.h.  */
31342 #ifndef __APPLE_CC__
31343          not a universal capable compiler
31344         #endif
31345         typedef int dummy;
31346
31347 _ACEOF
31348 if ac_fn_c_try_compile "$LINENO"; then :
31349
31350                arch=
31351      prev=
31352      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
31353        if test -n "$prev"; then
31354          case $word in
31355            i?86 | x86_64 | ppc | ppc64)
31356              if test -z "$arch" || test "$arch" = "$word"; then
31357                arch="$word"
31358              else
31359                gl_cv_c_multiarch=yes
31360              fi
31361              ;;
31362          esac
31363          prev=
31364        else
31365          if test "x$word" = "x-arch"; then
31366            prev=arch
31367          fi
31368        fi
31369      done
31370
31371 fi
31372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31373   if test $gl_cv_c_multiarch = yes; then
31374     APPLE_UNIVERSAL_BUILD=1
31375   else
31376     APPLE_UNIVERSAL_BUILD=0
31377   fi
31378
31379
31380
31381
31382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
31383 $as_echo_n "checking for promoted mode_t type... " >&6; }
31384 if ${gl_cv_promoted_mode_t+:} false; then :
31385   $as_echo_n "(cached) " >&6
31386 else
31387
31388                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31389 /* end confdefs.h.  */
31390 #include <sys/types.h>
31391 int
31392 main ()
31393 {
31394 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
31395   ;
31396   return 0;
31397 }
31398 _ACEOF
31399 if ac_fn_c_try_compile "$LINENO"; then :
31400   gl_cv_promoted_mode_t='int'
31401 else
31402   gl_cv_promoted_mode_t='mode_t'
31403 fi
31404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31405
31406 fi
31407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
31408 $as_echo "$gl_cv_promoted_mode_t" >&6; }
31409
31410 cat >>confdefs.h <<_ACEOF
31411 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
31412 _ACEOF
31413
31414
31415
31416
31417
31418
31419
31420   GNULIB_POSIX_SPAWN=0;
31421   GNULIB_POSIX_SPAWNP=0;
31422   GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=0;
31423   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
31424   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
31425   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
31426   GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=0;
31427   GNULIB_POSIX_SPAWNATTR_INIT=0;
31428   GNULIB_POSIX_SPAWNATTR_GETFLAGS=0;
31429   GNULIB_POSIX_SPAWNATTR_SETFLAGS=0;
31430   GNULIB_POSIX_SPAWNATTR_GETPGROUP=0;
31431   GNULIB_POSIX_SPAWNATTR_SETPGROUP=0;
31432   GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM=0;
31433   GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM=0;
31434   GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY=0;
31435   GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY=0;
31436   GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT=0;
31437   GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT=0;
31438   GNULIB_POSIX_SPAWNATTR_GETSIGMASK=0;
31439   GNULIB_POSIX_SPAWNATTR_SETSIGMASK=0;
31440   GNULIB_POSIX_SPAWNATTR_DESTROY=0;
31441     HAVE_POSIX_SPAWN=1;
31442   HAVE_POSIX_SPAWNATTR_T=1;
31443   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=1;
31444
31445   REPLACE_POSIX_SPAWN=0;
31446   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
31447
31448   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
31449
31450   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
31451
31452
31453
31454
31455
31456   LIB_POSIX_SPAWN=
31457
31458   gl_saved_libs=$LIBS
31459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing posix_spawn" >&5
31460 $as_echo_n "checking for library containing posix_spawn... " >&6; }
31461 if ${ac_cv_search_posix_spawn+:} false; then :
31462   $as_echo_n "(cached) " >&6
31463 else
31464   ac_func_search_save_LIBS=$LIBS
31465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31466 /* end confdefs.h.  */
31467
31468 /* Override any GCC internal prototype to avoid an error.
31469    Use char because int might match the return type of a GCC
31470    builtin and then its argument prototype would still apply.  */
31471 #ifdef __cplusplus
31472 extern "C"
31473 #endif
31474 char posix_spawn ();
31475 int
31476 main ()
31477 {
31478 return posix_spawn ();
31479   ;
31480   return 0;
31481 }
31482 _ACEOF
31483 for ac_lib in '' rt; do
31484   if test -z "$ac_lib"; then
31485     ac_res="none required"
31486   else
31487     ac_res=-l$ac_lib
31488     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31489   fi
31490   if ac_fn_c_try_link "$LINENO"; then :
31491   ac_cv_search_posix_spawn=$ac_res
31492 fi
31493 rm -f core conftest.err conftest.$ac_objext \
31494     conftest$ac_exeext
31495   if ${ac_cv_search_posix_spawn+:} false; then :
31496   break
31497 fi
31498 done
31499 if ${ac_cv_search_posix_spawn+:} false; then :
31500
31501 else
31502   ac_cv_search_posix_spawn=no
31503 fi
31504 rm conftest.$ac_ext
31505 LIBS=$ac_func_search_save_LIBS
31506 fi
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_posix_spawn" >&5
31508 $as_echo "$ac_cv_search_posix_spawn" >&6; }
31509 ac_res=$ac_cv_search_posix_spawn
31510 if test "$ac_res" != no; then :
31511   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31512   test "$ac_cv_search_posix_spawn" = "none required" ||
31513                     LIB_POSIX_SPAWN=$ac_cv_search_posix_spawn
31514 fi
31515
31516     for ac_func in posix_spawn
31517 do :
31518   ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
31519 if test "x$ac_cv_func_posix_spawn" = xyes; then :
31520   cat >>confdefs.h <<_ACEOF
31521 #define HAVE_POSIX_SPAWN 1
31522 _ACEOF
31523
31524 fi
31525 done
31526
31527   LIBS=$gl_saved_libs
31528
31529   if test $ac_cv_func_posix_spawn != yes; then
31530     HAVE_POSIX_SPAWN=0
31531   fi
31532
31533
31534
31535
31536                                       if test $ac_cv_func_posix_spawn = yes; then
31537
31538
31539      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn works" >&5
31540 $as_echo_n "checking whether posix_spawn works... " >&6; }
31541 if ${gl_cv_func_posix_spawn_works+:} false; then :
31542   $as_echo_n "(cached) " >&6
31543 else
31544   if test $cross_compiling = no; then
31545        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546 /* end confdefs.h.  */
31547
31548 #include <errno.h>
31549 #include <fcntl.h>
31550 #include <signal.h>
31551 #include <spawn.h>
31552 #include <stdbool.h>
31553 #include <stdio.h>
31554 #include <stdlib.h>
31555 #include <string.h>
31556 #include <unistd.h>
31557 #include <sys/types.h>
31558 #include <sys/wait.h>
31559
31560 extern char **environ;
31561
31562 #ifndef STDIN_FILENO
31563 # define STDIN_FILENO 0
31564 #endif
31565 #ifndef STDOUT_FILENO
31566 # define STDOUT_FILENO 1
31567 #endif
31568 #ifndef STDERR_FILENO
31569 # define STDERR_FILENO 2
31570 #endif
31571
31572 #ifndef WTERMSIG
31573 # define WTERMSIG(x) ((x) & 0x7f)
31574 #endif
31575 #ifndef WIFEXITED
31576 # define WIFEXITED(x) (WTERMSIG (x) == 0)
31577 #endif
31578 #ifndef WEXITSTATUS
31579 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
31580 #endif
31581
31582 #define CHILD_PROGRAM_FILENAME "/non/exist/ent"
31583
31584 static int
31585 fd_safer (int fd)
31586 {
31587   if (0 <= fd && fd <= 2)
31588     {
31589       int f = fd_safer (dup (fd));
31590       int e = errno;
31591       close (fd);
31592       errno = e;
31593       fd = f;
31594     }
31595
31596   return fd;
31597 }
31598
31599 int
31600 main ()
31601 {
31602   char *argv[2] = { CHILD_PROGRAM_FILENAME, NULL };
31603   int ofd[2];
31604   sigset_t blocked_signals;
31605   sigset_t fatal_signal_set;
31606   posix_spawn_file_actions_t actions;
31607   bool actions_allocated;
31608   posix_spawnattr_t attrs;
31609   bool attrs_allocated;
31610   int err;
31611   pid_t child;
31612   int status;
31613   int exitstatus;
31614
31615   setvbuf (stdout, NULL, _IOFBF, 0);
31616   puts ("This should be seen only once.");
31617   if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0)
31618     {
31619       perror ("cannot create pipe");
31620       exit (1);
31621     }
31622   sigprocmask (SIG_SETMASK, NULL, &blocked_signals);
31623   sigemptyset (&fatal_signal_set);
31624   sigaddset (&fatal_signal_set, SIGINT);
31625   sigaddset (&fatal_signal_set, SIGTERM);
31626   sigaddset (&fatal_signal_set, SIGHUP);
31627   sigaddset (&fatal_signal_set, SIGPIPE);
31628   sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL);
31629   actions_allocated = false;
31630   attrs_allocated = false;
31631   if ((err = posix_spawn_file_actions_init (&actions)) != 0
31632       || (actions_allocated = true,
31633           (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0
31634           || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0
31635           || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0
31636           || (err = posix_spawnattr_init (&attrs)) != 0
31637           || (attrs_allocated = true,
31638               (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0
31639               || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0)
31640           || (err = posix_spawnp (&child, CHILD_PROGRAM_FILENAME, &actions, &attrs, argv, environ)) != 0))
31641     {
31642       if (actions_allocated)
31643         posix_spawn_file_actions_destroy (&actions);
31644       if (attrs_allocated)
31645         posix_spawnattr_destroy (&attrs);
31646       sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
31647       if (err == ENOENT)
31648         return 0;
31649       else
31650         {
31651           errno = err;
31652           perror ("subprocess failed");
31653           exit (1);
31654         }
31655     }
31656   posix_spawn_file_actions_destroy (&actions);
31657   posix_spawnattr_destroy (&attrs);
31658   sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
31659   close (ofd[0]);
31660   close (ofd[1]);
31661   status = 0;
31662   while (waitpid (child, &status, 0) != child)
31663     ;
31664   if (!WIFEXITED (status))
31665     {
31666       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
31667       exit (1);
31668     }
31669   exitstatus = WEXITSTATUS (status);
31670   if (exitstatus != 127)
31671     {
31672       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
31673       exit (1);
31674     }
31675   return 0;
31676 }
31677
31678 _ACEOF
31679 if ac_fn_c_try_link "$LINENO"; then :
31680   if test -s conftest$ac_exeext \
31681              && ./conftest$ac_exeext > conftest.out \
31682              && echo 'This should be seen only once.' > conftest.ok \
31683              && cmp conftest.out conftest.ok > /dev/null; then
31684             gl_cv_func_posix_spawn_works=yes
31685           else
31686             gl_cv_func_posix_spawn_works=no
31687           fi
31688 else
31689   gl_cv_func_posix_spawn_works=no
31690 fi
31691 rm -f core conftest.err conftest.$ac_objext \
31692     conftest$ac_exeext conftest.$ac_ext
31693        if test $gl_cv_func_posix_spawn_works = yes; then
31694          if test "$cross_compiling" = yes; then :
31695   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31697 as_fn_error $? "cannot run test program while cross compiling
31698 See \`config.log' for more details" "$LINENO" 5; }
31699 else
31700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31701 /* end confdefs.h.  */
31702
31703 /* Test whether posix_spawn_file_actions_addopen supports filename arguments
31704    that contain special characters such as '*'.  */
31705
31706 #include <errno.h>
31707 #include <fcntl.h>
31708 #include <signal.h>
31709 #include <spawn.h>
31710 #include <stdbool.h>
31711 #include <stdio.h>
31712 #include <string.h>
31713 #include <unistd.h>
31714 #include <sys/types.h>
31715 #include <sys/wait.h>
31716
31717 extern char **environ;
31718
31719 #ifndef STDIN_FILENO
31720 # define STDIN_FILENO 0
31721 #endif
31722 #ifndef STDOUT_FILENO
31723 # define STDOUT_FILENO 1
31724 #endif
31725 #ifndef STDERR_FILENO
31726 # define STDERR_FILENO 2
31727 #endif
31728
31729 #ifndef WTERMSIG
31730 # define WTERMSIG(x) ((x) & 0x7f)
31731 #endif
31732 #ifndef WIFEXITED
31733 # define WIFEXITED(x) (WTERMSIG (x) == 0)
31734 #endif
31735 #ifndef WEXITSTATUS
31736 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
31737 #endif
31738
31739 #define CHILD_PROGRAM_FILENAME "conftest"
31740 #define DATA_FILENAME "conftest%=*#?"
31741
31742 static int
31743 parent_main (void)
31744 {
31745   FILE *fp;
31746   char *argv[3] = { CHILD_PROGRAM_FILENAME, "-child", NULL };
31747   posix_spawn_file_actions_t actions;
31748   bool actions_allocated;
31749   int err;
31750   pid_t child;
31751   int status;
31752   int exitstatus;
31753
31754   /* Create a data file with specific contents.  */
31755   fp = fopen (DATA_FILENAME, "wb");
31756   if (fp == NULL)
31757     {
31758       perror ("cannot create data file");
31759       return 1;
31760     }
31761   fwrite ("Halle Potta", 1, 11, fp);
31762   if (fflush (fp) || fclose (fp))
31763     {
31764       perror ("cannot prepare data file");
31765       return 2;
31766     }
31767
31768   /* Avoid reading from our stdin, as it could block.  */
31769   freopen ("/dev/null", "rb", stdin);
31770
31771   /* Test whether posix_spawn_file_actions_addopen with this file name
31772      actually works, but spawning a child that reads from this file.  */
31773   actions_allocated = false;
31774   if ((err = posix_spawn_file_actions_init (&actions)) != 0
31775       || (actions_allocated = true,
31776           (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) != 0
31777           || (err = posix_spawn (&child, CHILD_PROGRAM_FILENAME, &actions, NULL, argv, environ)) != 0))
31778     {
31779       if (actions_allocated)
31780         posix_spawn_file_actions_destroy (&actions);
31781       errno = err;
31782       perror ("subprocess failed");
31783       return 3;
31784     }
31785   posix_spawn_file_actions_destroy (&actions);
31786   status = 0;
31787   while (waitpid (child, &status, 0) != child)
31788     ;
31789   if (!WIFEXITED (status))
31790     {
31791       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
31792       return 4;
31793     }
31794   exitstatus = WEXITSTATUS (status);
31795   if (exitstatus != 0)
31796     {
31797       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
31798       return 5;
31799     }
31800   return 0;
31801 }
31802
31803 static int
31804 child_main (void)
31805 {
31806   char buf[1024];
31807
31808   /* See if reading from STDIN_FILENO yields the expected contents.  */
31809   if (fread (buf, 1, sizeof (buf), stdin) == 11
31810       && memcmp (buf, "Halle Potta", 11) == 0)
31811     return 0;
31812   else
31813     return 8;
31814 }
31815
31816 static void
31817 cleanup_then_die (int sig)
31818 {
31819   /* Clean up data file.  */
31820   unlink (DATA_FILENAME);
31821
31822   /* Re-raise the signal and die from it.  */
31823   signal (sig, SIG_DFL);
31824   raise (sig);
31825 }
31826
31827 int
31828 main (int argc, char *argv[])
31829 {
31830   int exitstatus;
31831
31832   if (!(argc > 1 && strcmp (argv[1], "-child") == 0))
31833     {
31834       /* This is the parent process.  */
31835       signal (SIGINT, cleanup_then_die);
31836       signal (SIGTERM, cleanup_then_die);
31837       #ifdef SIGHUP
31838       signal (SIGHUP, cleanup_then_die);
31839       #endif
31840
31841       exitstatus = parent_main ();
31842     }
31843   else
31844     {
31845       /* This is the child process.  */
31846
31847       exitstatus = child_main ();
31848     }
31849   unlink (DATA_FILENAME);
31850   return exitstatus;
31851 }
31852
31853 _ACEOF
31854 if ac_fn_c_try_run "$LINENO"; then :
31855
31856 else
31857   gl_cv_func_posix_spawn_works=no
31858 fi
31859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31860   conftest.$ac_objext conftest.beam conftest.$ac_ext
31861 fi
31862
31863        fi
31864      else
31865        case "$host_os" in
31866          aix*) gl_cv_func_posix_spawn_works="guessing no";;
31867          *)    gl_cv_func_posix_spawn_works="guessing yes";;
31868        esac
31869      fi
31870
31871 fi
31872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_works" >&5
31873 $as_echo "$gl_cv_func_posix_spawn_works" >&6; }
31874
31875     case "$gl_cv_func_posix_spawn_works" in
31876       *yes)
31877
31878 $as_echo "#define HAVE_WORKING_POSIX_SPAWN 1" >>confdefs.h
31879
31880                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedpolicy is supported" >&5
31881 $as_echo_n "checking whether posix_spawnattr_setschedpolicy is supported... " >&6; }
31882 if ${gl_cv_func_spawnattr_setschedpolicy+:} false; then :
31883   $as_echo_n "(cached) " >&6
31884 else
31885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31886 /* end confdefs.h.  */
31887
31888 #include <spawn.h>
31889 #if POSIX_SPAWN_SETSCHEDULER
31890  POSIX scheduling supported
31891 #endif
31892
31893 _ACEOF
31894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31895   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
31896   gl_cv_func_spawnattr_setschedpolicy=yes
31897 else
31898   gl_cv_func_spawnattr_setschedpolicy=no
31899 fi
31900 rm -f conftest*
31901
31902
31903 fi
31904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedpolicy" >&5
31905 $as_echo "$gl_cv_func_spawnattr_setschedpolicy" >&6; }
31906                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedparam is supported" >&5
31907 $as_echo_n "checking whether posix_spawnattr_setschedparam is supported... " >&6; }
31908 if ${gl_cv_func_spawnattr_setschedparam+:} false; then :
31909   $as_echo_n "(cached) " >&6
31910 else
31911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31912 /* end confdefs.h.  */
31913
31914 #include <spawn.h>
31915 #if POSIX_SPAWN_SETSCHEDPARAM
31916  POSIX scheduling supported
31917 #endif
31918
31919 _ACEOF
31920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31921   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
31922   gl_cv_func_spawnattr_setschedparam=yes
31923 else
31924   gl_cv_func_spawnattr_setschedparam=no
31925 fi
31926 rm -f conftest*
31927
31928
31929 fi
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedparam" >&5
31931 $as_echo "$gl_cv_func_spawnattr_setschedparam" >&6; }
31932         ;;
31933       *) REPLACE_POSIX_SPAWN=1 ;;
31934     esac
31935   fi
31936
31937
31938   GNULIB_PTHREAD_SIGMASK=0;
31939   GNULIB_RAISE=0;
31940   GNULIB_SIGNAL_H_SIGPIPE=0;
31941   GNULIB_SIGPROCMASK=0;
31942   GNULIB_SIGACTION=0;
31943     HAVE_POSIX_SIGNALBLOCKING=1;
31944   HAVE_PTHREAD_SIGMASK=1;
31945   HAVE_RAISE=1;
31946   HAVE_SIGSET_T=1;
31947   HAVE_SIGINFO_T=1;
31948   HAVE_SIGACTION=1;
31949   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
31950
31951   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
31952
31953   HAVE_SIGHANDLER_T=1;
31954   REPLACE_PTHREAD_SIGMASK=0;
31955   REPLACE_RAISE=0;
31956
31957
31958   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
31959       #include <signal.h>
31960       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
31961       #include <sys/types.h>
31962
31963 "
31964 if test "x$ac_cv_type_sigset_t" = xyes; then :
31965
31966 cat >>confdefs.h <<_ACEOF
31967 #define HAVE_SIGSET_T 1
31968 _ACEOF
31969
31970 gl_cv_type_sigset_t=yes
31971 else
31972   gl_cv_type_sigset_t=no
31973 fi
31974
31975   if test $gl_cv_type_sigset_t != yes; then
31976     HAVE_SIGSET_T=0
31977   fi
31978
31979
31980
31981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
31982 $as_echo_n "checking for SIGPIPE... " >&6; }
31983 if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
31984   $as_echo_n "(cached) " >&6
31985 else
31986
31987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31988 /* end confdefs.h.  */
31989
31990 #include <signal.h>
31991 #if !defined SIGPIPE
31992 booboo
31993 #endif
31994
31995 _ACEOF
31996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31997   $EGREP "booboo" >/dev/null 2>&1; then :
31998   gl_cv_header_signal_h_SIGPIPE=no
31999 else
32000   gl_cv_header_signal_h_SIGPIPE=yes
32001 fi
32002 rm -f conftest*
32003
32004
32005 fi
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
32007 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
32008
32009
32010                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
32011 $as_echo_n "checking for shared library path variable... " >&6; }
32012 if ${acl_cv_libpath+:} false; then :
32013   $as_echo_n "(cached) " >&6
32014 else
32015
32016     LD="$LD" \
32017     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
32018     . ./conftest.sh
32019     rm -f ./conftest.sh
32020     acl_cv_libpath=${acl_cv_shlibpath_var:-none}
32021
32022 fi
32023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
32024 $as_echo "$acl_cv_libpath" >&6; }
32025   shlibpath_var="$acl_cv_shlibpath_var"
32026
32027
32028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
32029 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
32030   # Check whether --enable-relocatable was given.
32031 if test "${enable_relocatable+set}" = set; then :
32032   enableval=$enable_relocatable; if test "$enableval" != no; then
32033        RELOCATABLE=yes
32034      else
32035        RELOCATABLE=no
32036      fi
32037
32038 else
32039   RELOCATABLE=no
32040 fi
32041
32042
32043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
32044 $as_echo "$RELOCATABLE" >&6; }
32045
32046
32047
32048     if test "X$prefix" = "XNONE"; then
32049     reloc_final_prefix="$ac_default_prefix"
32050   else
32051     reloc_final_prefix="$prefix"
32052   fi
32053
32054 cat >>confdefs.h <<_ACEOF
32055 #define INSTALLPREFIX "${reloc_final_prefix}"
32056 _ACEOF
32057
32058   if test $RELOCATABLE = yes; then
32059
32060 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
32061
32062   fi
32063
32064
32065
32066
32067
32068
32069   is_noop=no
32070   use_elf_origin_trick=no
32071   use_wrapper=no
32072   if test $RELOCATABLE = yes; then
32073     # --enable-relocatable implies --disable-rpath
32074     enable_rpath=no
32075     for ac_header in mach-o/dyld.h
32076 do :
32077   ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
32078 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
32079   cat >>confdefs.h <<_ACEOF
32080 #define HAVE_MACH_O_DYLD_H 1
32081 _ACEOF
32082
32083 fi
32084
32085 done
32086
32087     for ac_func in _NSGetExecutablePath
32088 do :
32089   ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
32090 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
32091   cat >>confdefs.h <<_ACEOF
32092 #define HAVE__NSGETEXECUTABLEPATH 1
32093 _ACEOF
32094
32095 fi
32096 done
32097
32098     case "$host_os" in
32099       mingw*) is_noop=yes ;;
32100       linux* | kfreebsd*) use_elf_origin_trick=yes ;;
32101     esac
32102     if test $is_noop = yes; then
32103       RELOCATABLE_LDFLAGS=:
32104
32105     else
32106       if test $use_elf_origin_trick = yes; then
32107                 case "$ac_aux_dir" in
32108           /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
32109           *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
32110         esac
32111         RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
32112
32113       else
32114         use_wrapper=yes
32115                                         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\""
32116
32117         case "$ac_aux_dir" in
32118           /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
32119           *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
32120         esac
32121       fi
32122     fi
32123   fi
32124    if test $is_noop = yes || test $use_elf_origin_trick = yes; then
32125   RELOCATABLE_VIA_LD_TRUE=
32126   RELOCATABLE_VIA_LD_FALSE='#'
32127 else
32128   RELOCATABLE_VIA_LD_TRUE='#'
32129   RELOCATABLE_VIA_LD_FALSE=
32130 fi
32131
32132    if test $use_wrapper = yes; then
32133   RELOCATABLE_VIA_WRAPPER_TRUE=
32134   RELOCATABLE_VIA_WRAPPER_FALSE='#'
32135 else
32136   RELOCATABLE_VIA_WRAPPER_TRUE='#'
32137   RELOCATABLE_VIA_WRAPPER_FALSE=
32138 fi
32139
32140
32141
32142
32143
32144
32145
32146
32147       RELOCATABLE_STRIP=':'
32148
32149
32150 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
32151 if test "x$ac_cv_have_decl_setenv" = xyes; then :
32152   ac_have_decl=1
32153 else
32154   ac_have_decl=0
32155 fi
32156
32157 cat >>confdefs.h <<_ACEOF
32158 #define HAVE_DECL_SETENV $ac_have_decl
32159 _ACEOF
32160
32161
32162
32163
32164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
32165 $as_echo_n "checking for ssize_t... " >&6; }
32166 if ${gt_cv_ssize_t+:} false; then :
32167   $as_echo_n "(cached) " >&6
32168 else
32169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32170 /* end confdefs.h.  */
32171 #include <sys/types.h>
32172 int
32173 main ()
32174 {
32175 int x = sizeof (ssize_t *) + sizeof (ssize_t);
32176             return !x;
32177   ;
32178   return 0;
32179 }
32180 _ACEOF
32181 if ac_fn_c_try_compile "$LINENO"; then :
32182   gt_cv_ssize_t=yes
32183 else
32184   gt_cv_ssize_t=no
32185 fi
32186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32187 fi
32188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
32189 $as_echo "$gt_cv_ssize_t" >&6; }
32190   if test $gt_cv_ssize_t = no; then
32191
32192 $as_echo "#define ssize_t int" >>confdefs.h
32193
32194   fi
32195
32196
32197
32198
32199
32200
32201
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
32203 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
32204 if ${ac_cv_type_uid_t+:} false; then :
32205   $as_echo_n "(cached) " >&6
32206 else
32207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32208 /* end confdefs.h.  */
32209 #include <sys/types.h>
32210
32211 _ACEOF
32212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32213   $EGREP "uid_t" >/dev/null 2>&1; then :
32214   ac_cv_type_uid_t=yes
32215 else
32216   ac_cv_type_uid_t=no
32217 fi
32218 rm -f conftest*
32219
32220 fi
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
32222 $as_echo "$ac_cv_type_uid_t" >&6; }
32223 if test $ac_cv_type_uid_t = no; then
32224
32225 $as_echo "#define uid_t int" >>confdefs.h
32226
32227
32228 $as_echo "#define gid_t int" >>confdefs.h
32229
32230 fi
32231
32232
32233
32234
32235
32236
32237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32238 /* end confdefs.h.  */
32239
32240 #ifdef _MSC_VER
32241 MicrosoftCompiler
32242 #endif
32243
32244 _ACEOF
32245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32246   $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
32247   gl_asmext='asm'
32248      gl_c_asm_opt='-c -Fa'
32249
32250 else
32251   gl_asmext='s'
32252      gl_c_asm_opt='-S'
32253
32254 fi
32255 rm -f conftest*
32256
32257
32258
32259
32260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
32261 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
32262 if ${gl_cv_prog_as_underscore+:} false; then :
32263   $as_echo_n "(cached) " >&6
32264 else
32265   cat > conftest.c <<EOF
32266 #ifdef __cplusplus
32267 extern "C" int foo (void);
32268 #endif
32269 int foo(void) { return 0; }
32270 EOF
32271      # Look for the assembly language name in the .s file.
32272      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
32273   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32274   (eval $ac_try) 2>&5
32275   ac_status=$?
32276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32277   test $ac_status = 0; }; } >/dev/null 2>&1
32278      if LC_ALL=C grep -E '(^|^a-zA-Z0-9_)_foo(^a-zA-Z0-9_|$)' conftest.$gl_asmext >/dev/null; then
32279        gl_cv_prog_as_underscore=yes
32280      else
32281        gl_cv_prog_as_underscore=no
32282      fi
32283      rm -f conftest*
32284
32285 fi
32286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
32287 $as_echo "$gl_cv_prog_as_underscore" >&6; }
32288   if test $gl_cv_prog_as_underscore = yes; then
32289     USER_LABEL_PREFIX=_
32290   else
32291     USER_LABEL_PREFIX=
32292   fi
32293
32294 cat >>confdefs.h <<_ACEOF
32295 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
32296 _ACEOF
32297
32298   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
32299
32300
32301
32302
32303
32304
32305
32306
32307
32308
32309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
32310 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
32311 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
32312   $as_echo_n "(cached) " >&6
32313 else
32314
32315       if test "$cross_compiling" = yes; then :
32316
32317          case "$host_os" in
32318                                  # Guess yes on glibc systems.
32319            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
32320                                  # Guess yes on FreeBSD >= 5.
32321            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
32322            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
32323                                  # Guess yes on Mac OS X >= 10.3.
32324            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
32325            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
32326                                  # Guess yes on OpenBSD >= 3.9.
32327            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
32328                                  gl_cv_func_snprintf_retval_c99="guessing no";;
32329            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
32330                                  # Guess yes on Solaris >= 2.10.
32331            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
32332            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
32333                                  # Guess yes on AIX >= 4.
32334            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
32335            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
32336                                  # Guess yes on NetBSD >= 3.
32337            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
32338                                  gl_cv_func_snprintf_retval_c99="guessing no";;
32339            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
32340                                  # Guess yes on BeOS.
32341            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
32342                                  # If we don't know, assume the worst.
32343            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
32344          esac
32345
32346 else
32347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32348 /* end confdefs.h.  */
32349
32350 #include <stdio.h>
32351 #include <string.h>
32352 #if HAVE_SNPRINTF
32353 # define my_snprintf snprintf
32354 #else
32355 # include <stdarg.h>
32356 static int my_snprintf (char *buf, int size, const char *format, ...)
32357 {
32358   va_list args;
32359   int ret;
32360   va_start (args, format);
32361   ret = vsnprintf (buf, size, format, args);
32362   va_end (args);
32363   return ret;
32364 }
32365 #endif
32366 static char buf[100];
32367 int main ()
32368 {
32369   strcpy (buf, "ABCDEF");
32370   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
32371     return 1;
32372   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
32373     return 2;
32374   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
32375     return 3;
32376   return 0;
32377 }
32378 _ACEOF
32379 if ac_fn_c_try_run "$LINENO"; then :
32380   gl_cv_func_snprintf_retval_c99=yes
32381 else
32382   gl_cv_func_snprintf_retval_c99=no
32383 fi
32384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32385   conftest.$ac_objext conftest.beam conftest.$ac_ext
32386 fi
32387
32388
32389 fi
32390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
32391 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
32392
32393 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
32394 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
32395   ac_have_decl=1
32396 else
32397   ac_have_decl=0
32398 fi
32399
32400 cat >>confdefs.h <<_ACEOF
32401 #define HAVE_DECL_SNPRINTF $ac_have_decl
32402 _ACEOF
32403
32404
32405
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
32407 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
32408 if ${ac_cv_header_stdbool_h+:} false; then :
32409   $as_echo_n "(cached) " >&6
32410 else
32411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32412 /* end confdefs.h.  */
32413
32414              #include <stdbool.h>
32415              #ifndef bool
32416               "error: bool is not defined"
32417              #endif
32418              #ifndef false
32419               "error: false is not defined"
32420              #endif
32421              #if false
32422               "error: false is not 0"
32423              #endif
32424              #ifndef true
32425               "error: true is not defined"
32426              #endif
32427              #if true != 1
32428               "error: true is not 1"
32429              #endif
32430              #ifndef __bool_true_false_are_defined
32431               "error: __bool_true_false_are_defined is not defined"
32432              #endif
32433
32434              struct s { _Bool s: 1; _Bool t; } s;
32435
32436              char a[true == 1 ? 1 : -1];
32437              char b[false == 0 ? 1 : -1];
32438              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
32439              char d[(bool) 0.5 == true ? 1 : -1];
32440              /* See body of main program for 'e'.  */
32441              char f[(_Bool) 0.0 == false ? 1 : -1];
32442              char g[true];
32443              char h[sizeof (_Bool)];
32444              char i[sizeof s.t];
32445              enum { j = false, k = true, l = false * true, m = true * 256 };
32446              /* The following fails for
32447                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
32448              _Bool n[m];
32449              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
32450              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
32451              /* Catch a bug in an HP-UX C compiler.  See
32452                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
32453                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
32454               */
32455              _Bool q = true;
32456              _Bool *pq = &q;
32457
32458 int
32459 main ()
32460 {
32461
32462              bool e = &s;
32463              *pq |= q;
32464              *pq |= ! q;
32465              /* Refer to every declared value, to avoid compiler optimizations.  */
32466              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
32467                      + !m + !n + !o + !p + !q + !pq);
32468
32469   ;
32470   return 0;
32471 }
32472 _ACEOF
32473 if ac_fn_c_try_compile "$LINENO"; then :
32474   ac_cv_header_stdbool_h=yes
32475 else
32476   ac_cv_header_stdbool_h=no
32477 fi
32478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32479 fi
32480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
32481 $as_echo "$ac_cv_header_stdbool_h" >&6; }
32482    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
32483 if test "x$ac_cv_type__Bool" = xyes; then :
32484
32485 cat >>confdefs.h <<_ACEOF
32486 #define HAVE__BOOL 1
32487 _ACEOF
32488
32489
32490 fi
32491
32492
32493
32494
32495
32496
32497
32498   if test $ac_cv_type_long_long_int = yes; then
32499     HAVE_LONG_LONG_INT=1
32500   else
32501     HAVE_LONG_LONG_INT=0
32502   fi
32503
32504
32505   if test $ac_cv_type_unsigned_long_long_int = yes; then
32506     HAVE_UNSIGNED_LONG_LONG_INT=1
32507   else
32508     HAVE_UNSIGNED_LONG_LONG_INT=0
32509   fi
32510
32511
32512
32513   if test $ac_cv_header_wchar_h = yes; then
32514     HAVE_WCHAR_H=1
32515   else
32516     HAVE_WCHAR_H=0
32517   fi
32518
32519
32520       if test $ac_cv_header_inttypes_h = yes; then
32521     HAVE_INTTYPES_H=1
32522   else
32523     HAVE_INTTYPES_H=0
32524   fi
32525
32526
32527       if test $ac_cv_header_sys_types_h = yes; then
32528     HAVE_SYS_TYPES_H=1
32529   else
32530     HAVE_SYS_TYPES_H=0
32531   fi
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543      if test $gl_cv_have_include_next = yes; then
32544        gl_cv_next_stdint_h='<'stdint.h'>'
32545      else
32546        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
32547 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
32548 if ${gl_cv_next_stdint_h+:} false; then :
32549   $as_echo_n "(cached) " >&6
32550 else
32551
32552              if test $ac_cv_header_stdint_h = yes; then
32553
32554
32555
32556
32557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32558 /* end confdefs.h.  */
32559 #include <stdint.h>
32560 _ACEOF
32561                 case "$host_os" in
32562     aix*) gl_absname_cpp="$ac_cpp -C" ;;
32563     *)    gl_absname_cpp="$ac_cpp" ;;
32564   esac
32565
32566   case "$host_os" in
32567     mingw*)
32568                                           gl_dirsep_regex='[/\\]'
32569       ;;
32570     *)
32571       gl_dirsep_regex='\/'
32572       ;;
32573   esac
32574       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32575   gl_header_literal_regex=`echo 'stdint.h' \
32576                            | sed -e "$gl_make_literal_regex_sed"`
32577   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32578       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32579       s|^/[^/]|//&|
32580       p
32581       q
32582     }'
32583
32584         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32585   sed -n "$gl_absolute_header_sed"`
32586
32587            gl_header=$gl_cv_absolute_stdint_h
32588            gl_cv_next_stdint_h='"'$gl_header'"'
32589           else
32590                gl_cv_next_stdint_h='<'stdint.h'>'
32591              fi
32592
32593
32594 fi
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
32596 $as_echo "$gl_cv_next_stdint_h" >&6; }
32597      fi
32598      NEXT_STDINT_H=$gl_cv_next_stdint_h
32599
32600      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32601        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32602        gl_next_as_first_directive='<'stdint.h'>'
32603      else
32604        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32605        gl_next_as_first_directive=$gl_cv_next_stdint_h
32606      fi
32607      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
32608
32609
32610
32611
32612   if test $ac_cv_header_stdint_h = yes; then
32613     HAVE_STDINT_H=1
32614   else
32615     HAVE_STDINT_H=0
32616   fi
32617
32618
32619     if test $ac_cv_header_stdint_h = yes; then
32620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
32621 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
32622 if ${gl_cv_header_working_stdint_h+:} false; then :
32623   $as_echo_n "(cached) " >&6
32624 else
32625   gl_cv_header_working_stdint_h=no
32626        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32627 /* end confdefs.h.  */
32628
32629
32630 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
32631 #define __STDC_CONSTANT_MACROS 1
32632 #define __STDC_LIMIT_MACROS 1
32633 #include <stdint.h>
32634 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
32635 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
32636 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
32637 #endif
32638
32639
32640   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32641      included before <wchar.h>.  */
32642   #include <stddef.h>
32643   #include <signal.h>
32644   #if HAVE_WCHAR_H
32645   # include <stdio.h>
32646   # include <time.h>
32647   # include <wchar.h>
32648   #endif
32649
32650
32651 #ifdef INT8_MAX
32652 int8_t a1 = INT8_MAX;
32653 int8_t a1min = INT8_MIN;
32654 #endif
32655 #ifdef INT16_MAX
32656 int16_t a2 = INT16_MAX;
32657 int16_t a2min = INT16_MIN;
32658 #endif
32659 #ifdef INT32_MAX
32660 int32_t a3 = INT32_MAX;
32661 int32_t a3min = INT32_MIN;
32662 #endif
32663 #ifdef INT64_MAX
32664 int64_t a4 = INT64_MAX;
32665 int64_t a4min = INT64_MIN;
32666 #endif
32667 #ifdef UINT8_MAX
32668 uint8_t b1 = UINT8_MAX;
32669 #else
32670 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
32671 #endif
32672 #ifdef UINT16_MAX
32673 uint16_t b2 = UINT16_MAX;
32674 #endif
32675 #ifdef UINT32_MAX
32676 uint32_t b3 = UINT32_MAX;
32677 #endif
32678 #ifdef UINT64_MAX
32679 uint64_t b4 = UINT64_MAX;
32680 #endif
32681 int_least8_t c1 = INT8_C (0x7f);
32682 int_least8_t c1max = INT_LEAST8_MAX;
32683 int_least8_t c1min = INT_LEAST8_MIN;
32684 int_least16_t c2 = INT16_C (0x7fff);
32685 int_least16_t c2max = INT_LEAST16_MAX;
32686 int_least16_t c2min = INT_LEAST16_MIN;
32687 int_least32_t c3 = INT32_C (0x7fffffff);
32688 int_least32_t c3max = INT_LEAST32_MAX;
32689 int_least32_t c3min = INT_LEAST32_MIN;
32690 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
32691 int_least64_t c4max = INT_LEAST64_MAX;
32692 int_least64_t c4min = INT_LEAST64_MIN;
32693 uint_least8_t d1 = UINT8_C (0xff);
32694 uint_least8_t d1max = UINT_LEAST8_MAX;
32695 uint_least16_t d2 = UINT16_C (0xffff);
32696 uint_least16_t d2max = UINT_LEAST16_MAX;
32697 uint_least32_t d3 = UINT32_C (0xffffffff);
32698 uint_least32_t d3max = UINT_LEAST32_MAX;
32699 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
32700 uint_least64_t d4max = UINT_LEAST64_MAX;
32701 int_fast8_t e1 = INT_FAST8_MAX;
32702 int_fast8_t e1min = INT_FAST8_MIN;
32703 int_fast16_t e2 = INT_FAST16_MAX;
32704 int_fast16_t e2min = INT_FAST16_MIN;
32705 int_fast32_t e3 = INT_FAST32_MAX;
32706 int_fast32_t e3min = INT_FAST32_MIN;
32707 int_fast64_t e4 = INT_FAST64_MAX;
32708 int_fast64_t e4min = INT_FAST64_MIN;
32709 uint_fast8_t f1 = UINT_FAST8_MAX;
32710 uint_fast16_t f2 = UINT_FAST16_MAX;
32711 uint_fast32_t f3 = UINT_FAST32_MAX;
32712 uint_fast64_t f4 = UINT_FAST64_MAX;
32713 #ifdef INTPTR_MAX
32714 intptr_t g = INTPTR_MAX;
32715 intptr_t gmin = INTPTR_MIN;
32716 #endif
32717 #ifdef UINTPTR_MAX
32718 uintptr_t h = UINTPTR_MAX;
32719 #endif
32720 intmax_t i = INTMAX_MAX;
32721 uintmax_t j = UINTMAX_MAX;
32722
32723 #include <limits.h> /* for CHAR_BIT */
32724 #define TYPE_MINIMUM(t) \
32725   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
32726 #define TYPE_MAXIMUM(t) \
32727   ((t) ((t) 0 < (t) -1 \
32728         ? (t) -1 \
32729         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
32730 struct s {
32731   int check_PTRDIFF:
32732       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
32733       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
32734       ? 1 : -1;
32735   /* Detect bug in FreeBSD 6.0 / ia64.  */
32736   int check_SIG_ATOMIC:
32737       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
32738       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
32739       ? 1 : -1;
32740   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
32741   int check_WCHAR:
32742       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
32743       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
32744       ? 1 : -1;
32745   /* Detect bug in mingw.  */
32746   int check_WINT:
32747       WINT_MIN == TYPE_MINIMUM (wint_t)
32748       && WINT_MAX == TYPE_MAXIMUM (wint_t)
32749       ? 1 : -1;
32750
32751   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
32752   int check_UINT8_C:
32753         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
32754   int check_UINT16_C:
32755         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
32756
32757   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
32758 #ifdef UINT8_MAX
32759   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
32760 #endif
32761 #ifdef UINT16_MAX
32762   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
32763 #endif
32764 #ifdef UINT32_MAX
32765   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
32766 #endif
32767 #ifdef UINT64_MAX
32768   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
32769 #endif
32770   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
32771   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
32772   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
32773   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
32774   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
32775   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
32776   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
32777   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
32778   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
32779   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
32780   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
32781 };
32782
32783 int
32784 main ()
32785 {
32786
32787   ;
32788   return 0;
32789 }
32790 _ACEOF
32791 if ac_fn_c_try_compile "$LINENO"; then :
32792                                                     if test "$cross_compiling" = yes; then :
32793                  gl_cv_header_working_stdint_h=yes
32794
32795 else
32796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32797 /* end confdefs.h.  */
32798
32799
32800 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
32801 #define __STDC_CONSTANT_MACROS 1
32802 #define __STDC_LIMIT_MACROS 1
32803 #include <stdint.h>
32804
32805
32806   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32807      included before <wchar.h>.  */
32808   #include <stddef.h>
32809   #include <signal.h>
32810   #if HAVE_WCHAR_H
32811   # include <stdio.h>
32812   # include <time.h>
32813   # include <wchar.h>
32814   #endif
32815
32816
32817 #include <stdio.h>
32818 #include <string.h>
32819 #define MVAL(macro) MVAL1(macro)
32820 #define MVAL1(expression) #expression
32821 static const char *macro_values[] =
32822   {
32823 #ifdef INT8_MAX
32824     MVAL (INT8_MAX),
32825 #endif
32826 #ifdef INT16_MAX
32827     MVAL (INT16_MAX),
32828 #endif
32829 #ifdef INT32_MAX
32830     MVAL (INT32_MAX),
32831 #endif
32832 #ifdef INT64_MAX
32833     MVAL (INT64_MAX),
32834 #endif
32835 #ifdef UINT8_MAX
32836     MVAL (UINT8_MAX),
32837 #endif
32838 #ifdef UINT16_MAX
32839     MVAL (UINT16_MAX),
32840 #endif
32841 #ifdef UINT32_MAX
32842     MVAL (UINT32_MAX),
32843 #endif
32844 #ifdef UINT64_MAX
32845     MVAL (UINT64_MAX),
32846 #endif
32847     NULL
32848   };
32849
32850 int
32851 main ()
32852 {
32853
32854   const char **mv;
32855   for (mv = macro_values; *mv != NULL; mv++)
32856     {
32857       const char *value = *mv;
32858       /* Test whether it looks like a cast expression.  */
32859       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
32860           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
32861           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
32862           || strncmp (value, "((int)"/*)*/, 6) == 0
32863           || strncmp (value, "((signed short)"/*)*/, 15) == 0
32864           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
32865         return mv - macro_values + 1;
32866     }
32867   return 0;
32868
32869   ;
32870   return 0;
32871 }
32872 _ACEOF
32873 if ac_fn_c_try_run "$LINENO"; then :
32874   gl_cv_header_working_stdint_h=yes
32875 fi
32876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32877   conftest.$ac_objext conftest.beam conftest.$ac_ext
32878 fi
32879
32880
32881 fi
32882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32883
32884 fi
32885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
32886 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
32887   fi
32888   if test "$gl_cv_header_working_stdint_h" = yes; then
32889             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
32890 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
32891 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
32892   $as_echo_n "(cached) " >&6
32893 else
32894   gl_cv_header_stdint_predates_cxx11_h=yes
32895        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32896 /* end confdefs.h.  */
32897
32898
32899 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
32900 #include <stdint.h>
32901
32902
32903   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32904      included before <wchar.h>.  */
32905   #include <stddef.h>
32906   #include <signal.h>
32907   #if HAVE_WCHAR_H
32908   # include <stdio.h>
32909   # include <time.h>
32910   # include <wchar.h>
32911   #endif
32912
32913
32914 intmax_t im = INTMAX_MAX;
32915 int32_t i32 = INT32_C (0x7fffffff);
32916
32917 int
32918 main ()
32919 {
32920
32921   ;
32922   return 0;
32923 }
32924 _ACEOF
32925 if ac_fn_c_try_compile "$LINENO"; then :
32926   gl_cv_header_stdint_predates_cxx11_h=no
32927 fi
32928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32929 fi
32930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
32931 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
32932
32933     if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
32934
32935 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
32936
32937
32938 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
32939
32940     fi
32941     STDINT_H=
32942   else
32943             for ac_header in sys/inttypes.h sys/bitypes.h
32944 do :
32945   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32946 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32948   cat >>confdefs.h <<_ACEOF
32949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32950 _ACEOF
32951
32952 fi
32953
32954 done
32955
32956     if test $ac_cv_header_sys_inttypes_h = yes; then
32957       HAVE_SYS_INTTYPES_H=1
32958     else
32959       HAVE_SYS_INTTYPES_H=0
32960     fi
32961
32962     if test $ac_cv_header_sys_bitypes_h = yes; then
32963       HAVE_SYS_BITYPES_H=1
32964     else
32965       HAVE_SYS_BITYPES_H=0
32966     fi
32967
32968
32969
32970
32971   if test $APPLE_UNIVERSAL_BUILD = 0; then
32972
32973
32974   for gltype in ptrdiff_t size_t ; do
32975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
32976 $as_echo_n "checking for bit size of $gltype... " >&6; }
32977 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
32978   $as_echo_n "(cached) " >&6
32979 else
32980   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
32981   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32982      included before <wchar.h>.  */
32983   #include <stddef.h>
32984   #include <signal.h>
32985   #if HAVE_WCHAR_H
32986   # include <stdio.h>
32987   # include <time.h>
32988   # include <wchar.h>
32989   #endif
32990
32991 #include <limits.h>"; then :
32992
32993 else
32994   result=unknown
32995 fi
32996
32997        eval gl_cv_bitsizeof_${gltype}=\$result
32998
32999 fi
33000 eval ac_res=\$gl_cv_bitsizeof_${gltype}
33001                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33002 $as_echo "$ac_res" >&6; }
33003     eval result=\$gl_cv_bitsizeof_${gltype}
33004     if test $result = unknown; then
33005                                                 result=0
33006     fi
33007     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
33008     cat >>confdefs.h <<_ACEOF
33009 #define BITSIZEOF_${GLTYPE} $result
33010 _ACEOF
33011
33012     eval BITSIZEOF_${GLTYPE}=\$result
33013   done
33014
33015
33016   fi
33017
33018
33019   for gltype in sig_atomic_t wchar_t wint_t ; do
33020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
33021 $as_echo_n "checking for bit size of $gltype... " >&6; }
33022 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
33023   $as_echo_n "(cached) " >&6
33024 else
33025   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
33026   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33027      included before <wchar.h>.  */
33028   #include <stddef.h>
33029   #include <signal.h>
33030   #if HAVE_WCHAR_H
33031   # include <stdio.h>
33032   # include <time.h>
33033   # include <wchar.h>
33034   #endif
33035
33036 #include <limits.h>"; then :
33037
33038 else
33039   result=unknown
33040 fi
33041
33042        eval gl_cv_bitsizeof_${gltype}=\$result
33043
33044 fi
33045 eval ac_res=\$gl_cv_bitsizeof_${gltype}
33046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33047 $as_echo "$ac_res" >&6; }
33048     eval result=\$gl_cv_bitsizeof_${gltype}
33049     if test $result = unknown; then
33050                                                 result=0
33051     fi
33052     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
33053     cat >>confdefs.h <<_ACEOF
33054 #define BITSIZEOF_${GLTYPE} $result
33055 _ACEOF
33056
33057     eval BITSIZEOF_${GLTYPE}=\$result
33058   done
33059
33060
33061
33062
33063   for gltype in sig_atomic_t wchar_t wint_t ; do
33064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
33065 $as_echo_n "checking whether $gltype is signed... " >&6; }
33066 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
33067   $as_echo_n "(cached) " >&6
33068 else
33069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33070 /* end confdefs.h.  */
33071
33072   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33073      included before <wchar.h>.  */
33074   #include <stddef.h>
33075   #include <signal.h>
33076   #if HAVE_WCHAR_H
33077   # include <stdio.h>
33078   # include <time.h>
33079   # include <wchar.h>
33080   #endif
33081
33082             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
33083 int
33084 main ()
33085 {
33086
33087   ;
33088   return 0;
33089 }
33090 _ACEOF
33091 if ac_fn_c_try_compile "$LINENO"; then :
33092   result=yes
33093 else
33094   result=no
33095 fi
33096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33097        eval gl_cv_type_${gltype}_signed=\$result
33098
33099 fi
33100 eval ac_res=\$gl_cv_type_${gltype}_signed
33101                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33102 $as_echo "$ac_res" >&6; }
33103     eval result=\$gl_cv_type_${gltype}_signed
33104     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
33105     if test "$result" = yes; then
33106       cat >>confdefs.h <<_ACEOF
33107 #define HAVE_SIGNED_${GLTYPE} 1
33108 _ACEOF
33109
33110       eval HAVE_SIGNED_${GLTYPE}=1
33111     else
33112       eval HAVE_SIGNED_${GLTYPE}=0
33113     fi
33114   done
33115
33116
33117   gl_cv_type_ptrdiff_t_signed=yes
33118   gl_cv_type_size_t_signed=no
33119   if test $APPLE_UNIVERSAL_BUILD = 0; then
33120
33121
33122   for gltype in ptrdiff_t size_t ; do
33123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
33124 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
33125 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
33126   $as_echo_n "(cached) " >&6
33127 else
33128   eval gl_cv_type_${gltype}_suffix=no
33129        eval result=\$gl_cv_type_${gltype}_signed
33130        if test "$result" = yes; then
33131          glsufu=
33132        else
33133          glsufu=u
33134        fi
33135        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
33136          case $glsuf in
33137            '')  gltype1='int';;
33138            l)   gltype1='long int';;
33139            ll)  gltype1='long long int';;
33140            i64) gltype1='__int64';;
33141            u)   gltype1='unsigned int';;
33142            ul)  gltype1='unsigned long int';;
33143            ull) gltype1='unsigned long long int';;
33144            ui64)gltype1='unsigned __int64';;
33145          esac
33146          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33147 /* end confdefs.h.  */
33148
33149   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33150      included before <wchar.h>.  */
33151   #include <stddef.h>
33152   #include <signal.h>
33153   #if HAVE_WCHAR_H
33154   # include <stdio.h>
33155   # include <time.h>
33156   # include <wchar.h>
33157   #endif
33158
33159               extern $gltype foo;
33160               extern $gltype1 foo;
33161 int
33162 main ()
33163 {
33164
33165   ;
33166   return 0;
33167 }
33168 _ACEOF
33169 if ac_fn_c_try_compile "$LINENO"; then :
33170   eval gl_cv_type_${gltype}_suffix=\$glsuf
33171 fi
33172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33173          eval result=\$gl_cv_type_${gltype}_suffix
33174          test "$result" != no && break
33175        done
33176 fi
33177 eval ac_res=\$gl_cv_type_${gltype}_suffix
33178                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33179 $as_echo "$ac_res" >&6; }
33180     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
33181     eval result=\$gl_cv_type_${gltype}_suffix
33182     test "$result" = no && result=
33183     eval ${GLTYPE}_SUFFIX=\$result
33184     cat >>confdefs.h <<_ACEOF
33185 #define ${GLTYPE}_SUFFIX $result
33186 _ACEOF
33187
33188   done
33189
33190
33191   fi
33192
33193
33194   for gltype in sig_atomic_t wchar_t wint_t ; do
33195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
33196 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
33197 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
33198   $as_echo_n "(cached) " >&6
33199 else
33200   eval gl_cv_type_${gltype}_suffix=no
33201        eval result=\$gl_cv_type_${gltype}_signed
33202        if test "$result" = yes; then
33203          glsufu=
33204        else
33205          glsufu=u
33206        fi
33207        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
33208          case $glsuf in
33209            '')  gltype1='int';;
33210            l)   gltype1='long int';;
33211            ll)  gltype1='long long int';;
33212            i64) gltype1='__int64';;
33213            u)   gltype1='unsigned int';;
33214            ul)  gltype1='unsigned long int';;
33215            ull) gltype1='unsigned long long int';;
33216            ui64)gltype1='unsigned __int64';;
33217          esac
33218          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33219 /* end confdefs.h.  */
33220
33221   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33222      included before <wchar.h>.  */
33223   #include <stddef.h>
33224   #include <signal.h>
33225   #if HAVE_WCHAR_H
33226   # include <stdio.h>
33227   # include <time.h>
33228   # include <wchar.h>
33229   #endif
33230
33231               extern $gltype foo;
33232               extern $gltype1 foo;
33233 int
33234 main ()
33235 {
33236
33237   ;
33238   return 0;
33239 }
33240 _ACEOF
33241 if ac_fn_c_try_compile "$LINENO"; then :
33242   eval gl_cv_type_${gltype}_suffix=\$glsuf
33243 fi
33244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33245          eval result=\$gl_cv_type_${gltype}_suffix
33246          test "$result" != no && break
33247        done
33248 fi
33249 eval ac_res=\$gl_cv_type_${gltype}_suffix
33250                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33251 $as_echo "$ac_res" >&6; }
33252     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
33253     eval result=\$gl_cv_type_${gltype}_suffix
33254     test "$result" = no && result=
33255     eval ${GLTYPE}_SUFFIX=\$result
33256     cat >>confdefs.h <<_ACEOF
33257 #define ${GLTYPE}_SUFFIX $result
33258 _ACEOF
33259
33260   done
33261
33262
33263
33264           if test $BITSIZEOF_WINT_T -lt 32; then
33265     BITSIZEOF_WINT_T=32
33266   fi
33267
33268     STDINT_H=stdint.h
33269   fi
33270
33271    if test -n "$STDINT_H"; then
33272   GL_GENERATE_STDINT_H_TRUE=
33273   GL_GENERATE_STDINT_H_FALSE='#'
33274 else
33275   GL_GENERATE_STDINT_H_TRUE='#'
33276   GL_GENERATE_STDINT_H_FALSE=
33277 fi
33278
33279
33280 ac_fn_c_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default"
33281 if test "x$ac_cv_have_decl_stpncpy" = xyes; then :
33282   ac_have_decl=1
33283 else
33284   ac_have_decl=0
33285 fi
33286
33287 cat >>confdefs.h <<_ACEOF
33288 #define HAVE_DECL_STPNCPY $ac_have_decl
33289 _ACEOF
33290
33291
33292
33293
33294      REPLACE_STRERROR_0=0
33295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
33296 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
33297 if ${gl_cv_func_strerror_0_works+:} false; then :
33298   $as_echo_n "(cached) " >&6
33299 else
33300   if test "$cross_compiling" = yes; then :
33301   case "$host_os" in
33302                  # Guess yes on glibc systems.
33303          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
33304                  # If we don't know, assume the worst.
33305          *)      gl_cv_func_strerror_0_works="guessing no" ;;
33306        esac
33307
33308 else
33309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33310 /* end confdefs.h.  */
33311 #include <string.h>
33312            #include <errno.h>
33313
33314 int
33315 main ()
33316 {
33317 int result = 0;
33318            char *str;
33319            errno = 0;
33320            str = strerror (0);
33321            if (!*str) result |= 1;
33322            if (errno) result |= 2;
33323            if (strstr (str, "nknown") || strstr (str, "ndefined"))
33324              result |= 4;
33325            return result;
33326   ;
33327   return 0;
33328 }
33329 _ACEOF
33330 if ac_fn_c_try_run "$LINENO"; then :
33331   gl_cv_func_strerror_0_works=yes
33332 else
33333   gl_cv_func_strerror_0_works=no
33334 fi
33335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33336   conftest.$ac_objext conftest.beam conftest.$ac_ext
33337 fi
33338
33339
33340 fi
33341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
33342 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
33343   case "$gl_cv_func_strerror_0_works" in
33344     *yes) ;;
33345     *)
33346       REPLACE_STRERROR_0=1
33347
33348 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
33349
33350       ;;
33351   esac
33352
33353
33354
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364      if test $gl_cv_have_include_next = yes; then
33365        gl_cv_next_string_h='<'string.h'>'
33366      else
33367        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
33368 $as_echo_n "checking absolute name of <string.h>... " >&6; }
33369 if ${gl_cv_next_string_h+:} false; then :
33370   $as_echo_n "(cached) " >&6
33371 else
33372
33373
33374
33375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33376 /* end confdefs.h.  */
33377 #include <string.h>
33378 _ACEOF
33379                 case "$host_os" in
33380     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33381     *)    gl_absname_cpp="$ac_cpp" ;;
33382   esac
33383
33384   case "$host_os" in
33385     mingw*)
33386                                           gl_dirsep_regex='[/\\]'
33387       ;;
33388     *)
33389       gl_dirsep_regex='\/'
33390       ;;
33391   esac
33392       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33393   gl_header_literal_regex=`echo 'string.h' \
33394                            | sed -e "$gl_make_literal_regex_sed"`
33395   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33396       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33397       s|^/[^/]|//&|
33398       p
33399       q
33400     }'
33401
33402         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33403   sed -n "$gl_absolute_header_sed"`
33404
33405            gl_header=$gl_cv_absolute_string_h
33406            gl_cv_next_string_h='"'$gl_header'"'
33407
33408
33409 fi
33410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
33411 $as_echo "$gl_cv_next_string_h" >&6; }
33412      fi
33413      NEXT_STRING_H=$gl_cv_next_string_h
33414
33415      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33416        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33417        gl_next_as_first_directive='<'string.h'>'
33418      else
33419        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33420        gl_next_as_first_directive=$gl_cv_next_string_h
33421      fi
33422      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
33423
33424
33425
33426
33427
33428
33429     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
33430     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33432 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33433 if eval \${$as_gl_Symbol+:} false; then :
33434   $as_echo_n "(cached) " >&6
33435 else
33436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33437 /* end confdefs.h.  */
33438 #include <string.h>
33439
33440 int
33441 main ()
33442 {
33443 #undef $gl_func
33444   (void) $gl_func;
33445   ;
33446   return 0;
33447 }
33448 _ACEOF
33449 if ac_fn_c_try_compile "$LINENO"; then :
33450   eval "$as_gl_Symbol=yes"
33451 else
33452   eval "$as_gl_Symbol=no"
33453 fi
33454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33455 fi
33456 eval ac_res=\$$as_gl_Symbol
33457                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33458 $as_echo "$ac_res" >&6; }
33459     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33460   cat >>confdefs.h <<_ACEOF
33461 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33462 _ACEOF
33463
33464                      eval ac_cv_have_decl_$gl_func=yes
33465 fi
33466       done
33467
33468
33469 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
33470 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
33471   ac_have_decl=1
33472 else
33473   ac_have_decl=0
33474 fi
33475
33476 cat >>confdefs.h <<_ACEOF
33477 #define HAVE_DECL_STRNLEN $ac_have_decl
33478 _ACEOF
33479
33480
33481
33482
33483   if test "$gl_cv_func_memchr_works" != yes; then
33484     REPLACE_STRSTR=1
33485   else
33486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
33487 $as_echo_n "checking whether strstr works... " >&6; }
33488 if ${gl_cv_func_strstr_works_always+:} false; then :
33489   $as_echo_n "(cached) " >&6
33490 else
33491   if test "$cross_compiling" = yes; then :
33492                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33493 /* end confdefs.h.  */
33494
33495 #ifdef __GNU_LIBRARY__
33496  #include <features.h>
33497  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
33498      || defined __UCLIBC__
33499   Lucky user
33500  #endif
33501 #elif defined __CYGWIN__
33502  #include <cygwin/version.h>
33503  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
33504   Lucky user
33505  #endif
33506 #else
33507   Lucky user
33508 #endif
33509
33510 _ACEOF
33511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33512   $EGREP "Lucky user" >/dev/null 2>&1; then :
33513   gl_cv_func_strstr_works_always="guessing yes"
33514 else
33515   gl_cv_func_strstr_works_always="guessing no"
33516 fi
33517 rm -f conftest*
33518
33519
33520 else
33521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33522 /* end confdefs.h.  */
33523
33524 #include <string.h> /* for strstr */
33525 #define P "_EF_BF_BD"
33526 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
33527 #define NEEDLE P P P P P
33528
33529 int
33530 main ()
33531 {
33532 return !!strstr (HAYSTACK, NEEDLE);
33533
33534   ;
33535   return 0;
33536 }
33537 _ACEOF
33538 if ac_fn_c_try_run "$LINENO"; then :
33539   gl_cv_func_strstr_works_always=yes
33540 else
33541   gl_cv_func_strstr_works_always=no
33542 fi
33543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33544   conftest.$ac_objext conftest.beam conftest.$ac_ext
33545 fi
33546
33547
33548 fi
33549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
33550 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
33551     case "$gl_cv_func_strstr_works_always" in
33552       *yes) ;;
33553       *)
33554         REPLACE_STRSTR=1
33555         ;;
33556     esac
33557   fi
33558
33559
33560   GNULIB_PSELECT=0;
33561   GNULIB_SELECT=0;
33562     HAVE_PSELECT=1;
33563   REPLACE_PSELECT=0;
33564   REPLACE_SELECT=0;
33565
33566
33567
33568
33569
33570
33571
33572
33573
33574
33575
33576
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586      if test $gl_cv_have_include_next = yes; then
33587        gl_cv_next_sys_types_h='<'sys/types.h'>'
33588      else
33589        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
33590 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
33591 if ${gl_cv_next_sys_types_h+:} false; then :
33592   $as_echo_n "(cached) " >&6
33593 else
33594
33595
33596
33597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33598 /* end confdefs.h.  */
33599 #include <sys/types.h>
33600 _ACEOF
33601                 case "$host_os" in
33602     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33603     *)    gl_absname_cpp="$ac_cpp" ;;
33604   esac
33605
33606   case "$host_os" in
33607     mingw*)
33608                                           gl_dirsep_regex='[/\\]'
33609       ;;
33610     *)
33611       gl_dirsep_regex='\/'
33612       ;;
33613   esac
33614       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33615   gl_header_literal_regex=`echo 'sys/types.h' \
33616                            | sed -e "$gl_make_literal_regex_sed"`
33617   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33618       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33619       s|^/[^/]|//&|
33620       p
33621       q
33622     }'
33623
33624         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33625   sed -n "$gl_absolute_header_sed"`
33626
33627            gl_header=$gl_cv_absolute_sys_types_h
33628            gl_cv_next_sys_types_h='"'$gl_header'"'
33629
33630
33631 fi
33632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
33633 $as_echo "$gl_cv_next_sys_types_h" >&6; }
33634      fi
33635      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
33636
33637      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33638        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33639        gl_next_as_first_directive='<'sys/types.h'>'
33640      else
33641        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33642        gl_next_as_first_directive=$gl_cv_next_sys_types_h
33643      fi
33644      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
33655
33656
33657   GNULIB_WAITPID=0;
33658
33659
33660
33661
33662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether curses libraries may be used" >&5
33663 $as_echo_n "checking whether curses libraries may be used... " >&6; }
33664   # Check whether --enable-curses was given.
33665 if test "${enable_curses+set}" = set; then :
33666   enableval=$enable_curses; gl_curses_allowed="$enableval"
33667 else
33668   gl_curses_allowed=yes
33669 fi
33670
33671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_curses_allowed" >&5
33672 $as_echo "$gl_curses_allowed" >&6; }
33673
33674
33675
33676
33677
33678
33679
33680
33681   if test "$gl_curses_allowed" != no; then
33682
33683
33684
33685
33686
33687
33688
33689
33690     use_additional=yes
33691
33692   acl_save_prefix="$prefix"
33693   prefix="$acl_final_prefix"
33694   acl_save_exec_prefix="$exec_prefix"
33695   exec_prefix="$acl_final_exec_prefix"
33696
33697     eval additional_includedir=\"$includedir\"
33698     eval additional_libdir=\"$libdir\"
33699
33700   exec_prefix="$acl_save_exec_prefix"
33701   prefix="$acl_save_prefix"
33702
33703
33704 # Check whether --with-libncurses-prefix was given.
33705 if test "${with_libncurses_prefix+set}" = set; then :
33706   withval=$with_libncurses_prefix;
33707     if test "X$withval" = "Xno"; then
33708       use_additional=no
33709     else
33710       if test "X$withval" = "X"; then
33711
33712   acl_save_prefix="$prefix"
33713   prefix="$acl_final_prefix"
33714   acl_save_exec_prefix="$exec_prefix"
33715   exec_prefix="$acl_final_exec_prefix"
33716
33717           eval additional_includedir=\"$includedir\"
33718           eval additional_libdir=\"$libdir\"
33719
33720   exec_prefix="$acl_save_exec_prefix"
33721   prefix="$acl_save_prefix"
33722
33723       else
33724         additional_includedir="$withval/include"
33725         additional_libdir="$withval/$acl_libdirstem"
33726         if test "$acl_libdirstem2" != "$acl_libdirstem" \
33727            && ! test -d "$withval/$acl_libdirstem"; then
33728           additional_libdir="$withval/$acl_libdirstem2"
33729         fi
33730       fi
33731     fi
33732
33733 fi
33734
33735       LIBNCURSES=
33736   LTLIBNCURSES=
33737   INCNCURSES=
33738   LIBNCURSES_PREFIX=
33739       HAVE_LIBNCURSES=
33740   rpathdirs=
33741   ltrpathdirs=
33742   names_already_handled=
33743   names_next_round='ncurses '
33744   while test -n "$names_next_round"; do
33745     names_this_round="$names_next_round"
33746     names_next_round=
33747     for name in $names_this_round; do
33748       already_handled=
33749       for n in $names_already_handled; do
33750         if test "$n" = "$name"; then
33751           already_handled=yes
33752           break
33753         fi
33754       done
33755       if test -z "$already_handled"; then
33756         names_already_handled="$names_already_handled $name"
33757                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
33758         eval value=\"\$HAVE_LIB$uppername\"
33759         if test -n "$value"; then
33760           if test "$value" = yes; then
33761             eval value=\"\$LIB$uppername\"
33762             test -z "$value" || LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$value"
33763             eval value=\"\$LTLIB$uppername\"
33764             test -z "$value" || LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$value"
33765           else
33766                                     :
33767           fi
33768         else
33769                               found_dir=
33770           found_la=
33771           found_so=
33772           found_a=
33773           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
33774           if test -n "$acl_shlibext"; then
33775             shrext=".$acl_shlibext"             # typically: shrext=.so
33776           else
33777             shrext=
33778           fi
33779           if test $use_additional = yes; then
33780             dir="$additional_libdir"
33781                                     if test -n "$acl_shlibext"; then
33782               if test -f "$dir/$libname$shrext"; then
33783                 found_dir="$dir"
33784                 found_so="$dir/$libname$shrext"
33785               else
33786                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33787                   ver=`(cd "$dir" && \
33788                         for f in "$libname$shrext".*; do echo "$f"; done \
33789                         | sed -e "s,^$libname$shrext\\\\.,," \
33790                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33791                         | sed 1q ) 2>/dev/null`
33792                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33793                     found_dir="$dir"
33794                     found_so="$dir/$libname$shrext.$ver"
33795                   fi
33796                 else
33797                   eval library_names=\"$acl_library_names_spec\"
33798                   for f in $library_names; do
33799                     if test -f "$dir/$f"; then
33800                       found_dir="$dir"
33801                       found_so="$dir/$f"
33802                       break
33803                     fi
33804                   done
33805                 fi
33806               fi
33807             fi
33808                         if test "X$found_dir" = "X"; then
33809               if test -f "$dir/$libname.$acl_libext"; then
33810                 found_dir="$dir"
33811                 found_a="$dir/$libname.$acl_libext"
33812               fi
33813             fi
33814             if test "X$found_dir" != "X"; then
33815               if test -f "$dir/$libname.la"; then
33816                 found_la="$dir/$libname.la"
33817               fi
33818             fi
33819           fi
33820           if test "X$found_dir" = "X"; then
33821             for x in $LDFLAGS $LTLIBNCURSES; do
33822
33823   acl_save_prefix="$prefix"
33824   prefix="$acl_final_prefix"
33825   acl_save_exec_prefix="$exec_prefix"
33826   exec_prefix="$acl_final_exec_prefix"
33827   eval x=\"$x\"
33828   exec_prefix="$acl_save_exec_prefix"
33829   prefix="$acl_save_prefix"
33830
33831               case "$x" in
33832                 -L*)
33833                   dir=`echo "X$x" | sed -e 's/^X-L//'`
33834                                     if test -n "$acl_shlibext"; then
33835                     if test -f "$dir/$libname$shrext"; then
33836                       found_dir="$dir"
33837                       found_so="$dir/$libname$shrext"
33838                     else
33839                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33840                         ver=`(cd "$dir" && \
33841                               for f in "$libname$shrext".*; do echo "$f"; done \
33842                               | sed -e "s,^$libname$shrext\\\\.,," \
33843                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33844                               | sed 1q ) 2>/dev/null`
33845                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33846                           found_dir="$dir"
33847                           found_so="$dir/$libname$shrext.$ver"
33848                         fi
33849                       else
33850                         eval library_names=\"$acl_library_names_spec\"
33851                         for f in $library_names; do
33852                           if test -f "$dir/$f"; then
33853                             found_dir="$dir"
33854                             found_so="$dir/$f"
33855                             break
33856                           fi
33857                         done
33858                       fi
33859                     fi
33860                   fi
33861                                     if test "X$found_dir" = "X"; then
33862                     if test -f "$dir/$libname.$acl_libext"; then
33863                       found_dir="$dir"
33864                       found_a="$dir/$libname.$acl_libext"
33865                     fi
33866                   fi
33867                   if test "X$found_dir" != "X"; then
33868                     if test -f "$dir/$libname.la"; then
33869                       found_la="$dir/$libname.la"
33870                     fi
33871                   fi
33872                   ;;
33873               esac
33874               if test "X$found_dir" != "X"; then
33875                 break
33876               fi
33877             done
33878           fi
33879           if test "X$found_dir" != "X"; then
33880                         LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$found_dir -l$name"
33881             if test "X$found_so" != "X"; then
33882                                                         if test "$enable_rpath" = no \
33883                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
33884                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
33885                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
33886               else
33887                                                                                 haveit=
33888                 for x in $ltrpathdirs; do
33889                   if test "X$x" = "X$found_dir"; then
33890                     haveit=yes
33891                     break
33892                   fi
33893                 done
33894                 if test -z "$haveit"; then
33895                   ltrpathdirs="$ltrpathdirs $found_dir"
33896                 fi
33897                                 if test "$acl_hardcode_direct" = yes; then
33898                                                       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
33899                 else
33900                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
33901                                                             LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
33902                                                             haveit=
33903                     for x in $rpathdirs; do
33904                       if test "X$x" = "X$found_dir"; then
33905                         haveit=yes
33906                         break
33907                       fi
33908                     done
33909                     if test -z "$haveit"; then
33910                       rpathdirs="$rpathdirs $found_dir"
33911                     fi
33912                   else
33913                                                                                 haveit=
33914                     for x in $LDFLAGS $LIBNCURSES; do
33915
33916   acl_save_prefix="$prefix"
33917   prefix="$acl_final_prefix"
33918   acl_save_exec_prefix="$exec_prefix"
33919   exec_prefix="$acl_final_exec_prefix"
33920   eval x=\"$x\"
33921   exec_prefix="$acl_save_exec_prefix"
33922   prefix="$acl_save_prefix"
33923
33924                       if test "X$x" = "X-L$found_dir"; then
33925                         haveit=yes
33926                         break
33927                       fi
33928                     done
33929                     if test -z "$haveit"; then
33930                       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir"
33931                     fi
33932                     if test "$acl_hardcode_minus_L" != no; then
33933                                                                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
33934                     else
33935                                                                                                                                                                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
33936                     fi
33937                   fi
33938                 fi
33939               fi
33940             else
33941               if test "X$found_a" != "X"; then
33942                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_a"
33943               else
33944                                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir -l$name"
33945               fi
33946             fi
33947                         additional_includedir=
33948             case "$found_dir" in
33949               */$acl_libdirstem | */$acl_libdirstem/)
33950                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
33951                 if test "$name" = 'ncurses'; then
33952                   LIBNCURSES_PREFIX="$basedir"
33953                 fi
33954                 additional_includedir="$basedir/include"
33955                 ;;
33956               */$acl_libdirstem2 | */$acl_libdirstem2/)
33957                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
33958                 if test "$name" = 'ncurses'; then
33959                   LIBNCURSES_PREFIX="$basedir"
33960                 fi
33961                 additional_includedir="$basedir/include"
33962                 ;;
33963             esac
33964             if test "X$additional_includedir" != "X"; then
33965                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
33966                 haveit=
33967                 if test "X$additional_includedir" = "X/usr/local/include"; then
33968                   if test -n "$GCC"; then
33969                     case $host_os in
33970                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33971                     esac
33972                   fi
33973                 fi
33974                 if test -z "$haveit"; then
33975                   for x in $CPPFLAGS $INCNCURSES; do
33976
33977   acl_save_prefix="$prefix"
33978   prefix="$acl_final_prefix"
33979   acl_save_exec_prefix="$exec_prefix"
33980   exec_prefix="$acl_final_exec_prefix"
33981   eval x=\"$x\"
33982   exec_prefix="$acl_save_exec_prefix"
33983   prefix="$acl_save_prefix"
33984
33985                     if test "X$x" = "X-I$additional_includedir"; then
33986                       haveit=yes
33987                       break
33988                     fi
33989                   done
33990                   if test -z "$haveit"; then
33991                     if test -d "$additional_includedir"; then
33992                                             INCNCURSES="${INCNCURSES}${INCNCURSES:+ }-I$additional_includedir"
33993                     fi
33994                   fi
33995                 fi
33996               fi
33997             fi
33998                         if test -n "$found_la"; then
33999                                                         save_libdir="$libdir"
34000               case "$found_la" in
34001                 */* | *\\*) . "$found_la" ;;
34002                 *) . "./$found_la" ;;
34003               esac
34004               libdir="$save_libdir"
34005                             for dep in $dependency_libs; do
34006                 case "$dep" in
34007                   -L*)
34008                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34009                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
34010                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
34011                       haveit=
34012                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
34013                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
34014                         if test -n "$GCC"; then
34015                           case $host_os in
34016                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34017                           esac
34018                         fi
34019                       fi
34020                       if test -z "$haveit"; then
34021                         haveit=
34022                         for x in $LDFLAGS $LIBNCURSES; do
34023
34024   acl_save_prefix="$prefix"
34025   prefix="$acl_final_prefix"
34026   acl_save_exec_prefix="$exec_prefix"
34027   exec_prefix="$acl_final_exec_prefix"
34028   eval x=\"$x\"
34029   exec_prefix="$acl_save_exec_prefix"
34030   prefix="$acl_save_prefix"
34031
34032                           if test "X$x" = "X-L$additional_libdir"; then
34033                             haveit=yes
34034                             break
34035                           fi
34036                         done
34037                         if test -z "$haveit"; then
34038                           if test -d "$additional_libdir"; then
34039                                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$additional_libdir"
34040                           fi
34041                         fi
34042                         haveit=
34043                         for x in $LDFLAGS $LTLIBNCURSES; do
34044
34045   acl_save_prefix="$prefix"
34046   prefix="$acl_final_prefix"
34047   acl_save_exec_prefix="$exec_prefix"
34048   exec_prefix="$acl_final_exec_prefix"
34049   eval x=\"$x\"
34050   exec_prefix="$acl_save_exec_prefix"
34051   prefix="$acl_save_prefix"
34052
34053                           if test "X$x" = "X-L$additional_libdir"; then
34054                             haveit=yes
34055                             break
34056                           fi
34057                         done
34058                         if test -z "$haveit"; then
34059                           if test -d "$additional_libdir"; then
34060                                                         LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$additional_libdir"
34061                           fi
34062                         fi
34063                       fi
34064                     fi
34065                     ;;
34066                   -R*)
34067                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
34068                     if test "$enable_rpath" != no; then
34069                                                                   haveit=
34070                       for x in $rpathdirs; do
34071                         if test "X$x" = "X$dir"; then
34072                           haveit=yes
34073                           break
34074                         fi
34075                       done
34076                       if test -z "$haveit"; then
34077                         rpathdirs="$rpathdirs $dir"
34078                       fi
34079                                                                   haveit=
34080                       for x in $ltrpathdirs; do
34081                         if test "X$x" = "X$dir"; then
34082                           haveit=yes
34083                           break
34084                         fi
34085                       done
34086                       if test -z "$haveit"; then
34087                         ltrpathdirs="$ltrpathdirs $dir"
34088                       fi
34089                     fi
34090                     ;;
34091                   -l*)
34092                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34093                     ;;
34094                   *.la)
34095                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34096                     ;;
34097                   *)
34098                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$dep"
34099                     LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$dep"
34100                     ;;
34101                 esac
34102               done
34103             fi
34104           else
34105                                                             LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
34106             LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-l$name"
34107           fi
34108         fi
34109       fi
34110     done
34111   done
34112   if test "X$rpathdirs" != "X"; then
34113     if test -n "$acl_hardcode_libdir_separator"; then
34114                         alldirs=
34115       for found_dir in $rpathdirs; do
34116         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
34117       done
34118             acl_save_libdir="$libdir"
34119       libdir="$alldirs"
34120       eval flag=\"$acl_hardcode_libdir_flag_spec\"
34121       libdir="$acl_save_libdir"
34122       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
34123     else
34124             for found_dir in $rpathdirs; do
34125         acl_save_libdir="$libdir"
34126         libdir="$found_dir"
34127         eval flag=\"$acl_hardcode_libdir_flag_spec\"
34128         libdir="$acl_save_libdir"
34129         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
34130       done
34131     fi
34132   fi
34133   if test "X$ltrpathdirs" != "X"; then
34134             for found_dir in $ltrpathdirs; do
34135       LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-R$found_dir"
34136     done
34137   fi
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152     use_additional=yes
34153
34154   acl_save_prefix="$prefix"
34155   prefix="$acl_final_prefix"
34156   acl_save_exec_prefix="$exec_prefix"
34157   exec_prefix="$acl_final_exec_prefix"
34158
34159     eval additional_includedir=\"$includedir\"
34160     eval additional_libdir=\"$libdir\"
34161
34162   exec_prefix="$acl_save_exec_prefix"
34163   prefix="$acl_save_prefix"
34164
34165
34166 # Check whether --with-libtermcap-prefix was given.
34167 if test "${with_libtermcap_prefix+set}" = set; then :
34168   withval=$with_libtermcap_prefix;
34169     if test "X$withval" = "Xno"; then
34170       use_additional=no
34171     else
34172       if test "X$withval" = "X"; then
34173
34174   acl_save_prefix="$prefix"
34175   prefix="$acl_final_prefix"
34176   acl_save_exec_prefix="$exec_prefix"
34177   exec_prefix="$acl_final_exec_prefix"
34178
34179           eval additional_includedir=\"$includedir\"
34180           eval additional_libdir=\"$libdir\"
34181
34182   exec_prefix="$acl_save_exec_prefix"
34183   prefix="$acl_save_prefix"
34184
34185       else
34186         additional_includedir="$withval/include"
34187         additional_libdir="$withval/$acl_libdirstem"
34188         if test "$acl_libdirstem2" != "$acl_libdirstem" \
34189            && ! test -d "$withval/$acl_libdirstem"; then
34190           additional_libdir="$withval/$acl_libdirstem2"
34191         fi
34192       fi
34193     fi
34194
34195 fi
34196
34197       LIBTERMCAP=
34198   LTLIBTERMCAP=
34199   INCTERMCAP=
34200   LIBTERMCAP_PREFIX=
34201       HAVE_LIBTERMCAP=
34202   rpathdirs=
34203   ltrpathdirs=
34204   names_already_handled=
34205   names_next_round='termcap '
34206   while test -n "$names_next_round"; do
34207     names_this_round="$names_next_round"
34208     names_next_round=
34209     for name in $names_this_round; do
34210       already_handled=
34211       for n in $names_already_handled; do
34212         if test "$n" = "$name"; then
34213           already_handled=yes
34214           break
34215         fi
34216       done
34217       if test -z "$already_handled"; then
34218         names_already_handled="$names_already_handled $name"
34219                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
34220         eval value=\"\$HAVE_LIB$uppername\"
34221         if test -n "$value"; then
34222           if test "$value" = yes; then
34223             eval value=\"\$LIB$uppername\"
34224             test -z "$value" || LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$value"
34225             eval value=\"\$LTLIB$uppername\"
34226             test -z "$value" || LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$value"
34227           else
34228                                     :
34229           fi
34230         else
34231                               found_dir=
34232           found_la=
34233           found_so=
34234           found_a=
34235           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
34236           if test -n "$acl_shlibext"; then
34237             shrext=".$acl_shlibext"             # typically: shrext=.so
34238           else
34239             shrext=
34240           fi
34241           if test $use_additional = yes; then
34242             dir="$additional_libdir"
34243                                     if test -n "$acl_shlibext"; then
34244               if test -f "$dir/$libname$shrext"; then
34245                 found_dir="$dir"
34246                 found_so="$dir/$libname$shrext"
34247               else
34248                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34249                   ver=`(cd "$dir" && \
34250                         for f in "$libname$shrext".*; do echo "$f"; done \
34251                         | sed -e "s,^$libname$shrext\\\\.,," \
34252                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34253                         | sed 1q ) 2>/dev/null`
34254                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34255                     found_dir="$dir"
34256                     found_so="$dir/$libname$shrext.$ver"
34257                   fi
34258                 else
34259                   eval library_names=\"$acl_library_names_spec\"
34260                   for f in $library_names; do
34261                     if test -f "$dir/$f"; then
34262                       found_dir="$dir"
34263                       found_so="$dir/$f"
34264                       break
34265                     fi
34266                   done
34267                 fi
34268               fi
34269             fi
34270                         if test "X$found_dir" = "X"; then
34271               if test -f "$dir/$libname.$acl_libext"; then
34272                 found_dir="$dir"
34273                 found_a="$dir/$libname.$acl_libext"
34274               fi
34275             fi
34276             if test "X$found_dir" != "X"; then
34277               if test -f "$dir/$libname.la"; then
34278                 found_la="$dir/$libname.la"
34279               fi
34280             fi
34281           fi
34282           if test "X$found_dir" = "X"; then
34283             for x in $LDFLAGS $LTLIBTERMCAP; do
34284
34285   acl_save_prefix="$prefix"
34286   prefix="$acl_final_prefix"
34287   acl_save_exec_prefix="$exec_prefix"
34288   exec_prefix="$acl_final_exec_prefix"
34289   eval x=\"$x\"
34290   exec_prefix="$acl_save_exec_prefix"
34291   prefix="$acl_save_prefix"
34292
34293               case "$x" in
34294                 -L*)
34295                   dir=`echo "X$x" | sed -e 's/^X-L//'`
34296                                     if test -n "$acl_shlibext"; then
34297                     if test -f "$dir/$libname$shrext"; then
34298                       found_dir="$dir"
34299                       found_so="$dir/$libname$shrext"
34300                     else
34301                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34302                         ver=`(cd "$dir" && \
34303                               for f in "$libname$shrext".*; do echo "$f"; done \
34304                               | sed -e "s,^$libname$shrext\\\\.,," \
34305                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34306                               | sed 1q ) 2>/dev/null`
34307                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34308                           found_dir="$dir"
34309                           found_so="$dir/$libname$shrext.$ver"
34310                         fi
34311                       else
34312                         eval library_names=\"$acl_library_names_spec\"
34313                         for f in $library_names; do
34314                           if test -f "$dir/$f"; then
34315                             found_dir="$dir"
34316                             found_so="$dir/$f"
34317                             break
34318                           fi
34319                         done
34320                       fi
34321                     fi
34322                   fi
34323                                     if test "X$found_dir" = "X"; then
34324                     if test -f "$dir/$libname.$acl_libext"; then
34325                       found_dir="$dir"
34326                       found_a="$dir/$libname.$acl_libext"
34327                     fi
34328                   fi
34329                   if test "X$found_dir" != "X"; then
34330                     if test -f "$dir/$libname.la"; then
34331                       found_la="$dir/$libname.la"
34332                     fi
34333                   fi
34334                   ;;
34335               esac
34336               if test "X$found_dir" != "X"; then
34337                 break
34338               fi
34339             done
34340           fi
34341           if test "X$found_dir" != "X"; then
34342                         LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$found_dir -l$name"
34343             if test "X$found_so" != "X"; then
34344                                                         if test "$enable_rpath" = no \
34345                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
34346                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
34347                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
34348               else
34349                                                                                 haveit=
34350                 for x in $ltrpathdirs; do
34351                   if test "X$x" = "X$found_dir"; then
34352                     haveit=yes
34353                     break
34354                   fi
34355                 done
34356                 if test -z "$haveit"; then
34357                   ltrpathdirs="$ltrpathdirs $found_dir"
34358                 fi
34359                                 if test "$acl_hardcode_direct" = yes; then
34360                                                       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
34361                 else
34362                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
34363                                                             LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
34364                                                             haveit=
34365                     for x in $rpathdirs; do
34366                       if test "X$x" = "X$found_dir"; then
34367                         haveit=yes
34368                         break
34369                       fi
34370                     done
34371                     if test -z "$haveit"; then
34372                       rpathdirs="$rpathdirs $found_dir"
34373                     fi
34374                   else
34375                                                                                 haveit=
34376                     for x in $LDFLAGS $LIBTERMCAP; do
34377
34378   acl_save_prefix="$prefix"
34379   prefix="$acl_final_prefix"
34380   acl_save_exec_prefix="$exec_prefix"
34381   exec_prefix="$acl_final_exec_prefix"
34382   eval x=\"$x\"
34383   exec_prefix="$acl_save_exec_prefix"
34384   prefix="$acl_save_prefix"
34385
34386                       if test "X$x" = "X-L$found_dir"; then
34387                         haveit=yes
34388                         break
34389                       fi
34390                     done
34391                     if test -z "$haveit"; then
34392                       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir"
34393                     fi
34394                     if test "$acl_hardcode_minus_L" != no; then
34395                                                                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
34396                     else
34397                                                                                                                                                                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
34398                     fi
34399                   fi
34400                 fi
34401               fi
34402             else
34403               if test "X$found_a" != "X"; then
34404                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_a"
34405               else
34406                                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir -l$name"
34407               fi
34408             fi
34409                         additional_includedir=
34410             case "$found_dir" in
34411               */$acl_libdirstem | */$acl_libdirstem/)
34412                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34413                 if test "$name" = 'termcap'; then
34414                   LIBTERMCAP_PREFIX="$basedir"
34415                 fi
34416                 additional_includedir="$basedir/include"
34417                 ;;
34418               */$acl_libdirstem2 | */$acl_libdirstem2/)
34419                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
34420                 if test "$name" = 'termcap'; then
34421                   LIBTERMCAP_PREFIX="$basedir"
34422                 fi
34423                 additional_includedir="$basedir/include"
34424                 ;;
34425             esac
34426             if test "X$additional_includedir" != "X"; then
34427                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
34428                 haveit=
34429                 if test "X$additional_includedir" = "X/usr/local/include"; then
34430                   if test -n "$GCC"; then
34431                     case $host_os in
34432                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34433                     esac
34434                   fi
34435                 fi
34436                 if test -z "$haveit"; then
34437                   for x in $CPPFLAGS $INCTERMCAP; do
34438
34439   acl_save_prefix="$prefix"
34440   prefix="$acl_final_prefix"
34441   acl_save_exec_prefix="$exec_prefix"
34442   exec_prefix="$acl_final_exec_prefix"
34443   eval x=\"$x\"
34444   exec_prefix="$acl_save_exec_prefix"
34445   prefix="$acl_save_prefix"
34446
34447                     if test "X$x" = "X-I$additional_includedir"; then
34448                       haveit=yes
34449                       break
34450                     fi
34451                   done
34452                   if test -z "$haveit"; then
34453                     if test -d "$additional_includedir"; then
34454                                             INCTERMCAP="${INCTERMCAP}${INCTERMCAP:+ }-I$additional_includedir"
34455                     fi
34456                   fi
34457                 fi
34458               fi
34459             fi
34460                         if test -n "$found_la"; then
34461                                                         save_libdir="$libdir"
34462               case "$found_la" in
34463                 */* | *\\*) . "$found_la" ;;
34464                 *) . "./$found_la" ;;
34465               esac
34466               libdir="$save_libdir"
34467                             for dep in $dependency_libs; do
34468                 case "$dep" in
34469                   -L*)
34470                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34471                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
34472                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
34473                       haveit=
34474                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
34475                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
34476                         if test -n "$GCC"; then
34477                           case $host_os in
34478                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34479                           esac
34480                         fi
34481                       fi
34482                       if test -z "$haveit"; then
34483                         haveit=
34484                         for x in $LDFLAGS $LIBTERMCAP; do
34485
34486   acl_save_prefix="$prefix"
34487   prefix="$acl_final_prefix"
34488   acl_save_exec_prefix="$exec_prefix"
34489   exec_prefix="$acl_final_exec_prefix"
34490   eval x=\"$x\"
34491   exec_prefix="$acl_save_exec_prefix"
34492   prefix="$acl_save_prefix"
34493
34494                           if test "X$x" = "X-L$additional_libdir"; then
34495                             haveit=yes
34496                             break
34497                           fi
34498                         done
34499                         if test -z "$haveit"; then
34500                           if test -d "$additional_libdir"; then
34501                                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$additional_libdir"
34502                           fi
34503                         fi
34504                         haveit=
34505                         for x in $LDFLAGS $LTLIBTERMCAP; do
34506
34507   acl_save_prefix="$prefix"
34508   prefix="$acl_final_prefix"
34509   acl_save_exec_prefix="$exec_prefix"
34510   exec_prefix="$acl_final_exec_prefix"
34511   eval x=\"$x\"
34512   exec_prefix="$acl_save_exec_prefix"
34513   prefix="$acl_save_prefix"
34514
34515                           if test "X$x" = "X-L$additional_libdir"; then
34516                             haveit=yes
34517                             break
34518                           fi
34519                         done
34520                         if test -z "$haveit"; then
34521                           if test -d "$additional_libdir"; then
34522                                                         LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$additional_libdir"
34523                           fi
34524                         fi
34525                       fi
34526                     fi
34527                     ;;
34528                   -R*)
34529                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
34530                     if test "$enable_rpath" != no; then
34531                                                                   haveit=
34532                       for x in $rpathdirs; do
34533                         if test "X$x" = "X$dir"; then
34534                           haveit=yes
34535                           break
34536                         fi
34537                       done
34538                       if test -z "$haveit"; then
34539                         rpathdirs="$rpathdirs $dir"
34540                       fi
34541                                                                   haveit=
34542                       for x in $ltrpathdirs; do
34543                         if test "X$x" = "X$dir"; then
34544                           haveit=yes
34545                           break
34546                         fi
34547                       done
34548                       if test -z "$haveit"; then
34549                         ltrpathdirs="$ltrpathdirs $dir"
34550                       fi
34551                     fi
34552                     ;;
34553                   -l*)
34554                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34555                     ;;
34556                   *.la)
34557                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34558                     ;;
34559                   *)
34560                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$dep"
34561                     LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$dep"
34562                     ;;
34563                 esac
34564               done
34565             fi
34566           else
34567                                                             LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
34568             LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-l$name"
34569           fi
34570         fi
34571       fi
34572     done
34573   done
34574   if test "X$rpathdirs" != "X"; then
34575     if test -n "$acl_hardcode_libdir_separator"; then
34576                         alldirs=
34577       for found_dir in $rpathdirs; do
34578         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
34579       done
34580             acl_save_libdir="$libdir"
34581       libdir="$alldirs"
34582       eval flag=\"$acl_hardcode_libdir_flag_spec\"
34583       libdir="$acl_save_libdir"
34584       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
34585     else
34586             for found_dir in $rpathdirs; do
34587         acl_save_libdir="$libdir"
34588         libdir="$found_dir"
34589         eval flag=\"$acl_hardcode_libdir_flag_spec\"
34590         libdir="$acl_save_libdir"
34591         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
34592       done
34593     fi
34594   fi
34595   if test "X$ltrpathdirs" != "X"; then
34596             for found_dir in $ltrpathdirs; do
34597       LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-R$found_dir"
34598     done
34599   fi
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614     use_additional=yes
34615
34616   acl_save_prefix="$prefix"
34617   prefix="$acl_final_prefix"
34618   acl_save_exec_prefix="$exec_prefix"
34619   exec_prefix="$acl_final_exec_prefix"
34620
34621     eval additional_includedir=\"$includedir\"
34622     eval additional_libdir=\"$libdir\"
34623
34624   exec_prefix="$acl_save_exec_prefix"
34625   prefix="$acl_save_prefix"
34626
34627
34628 # Check whether --with-libxcurses-prefix was given.
34629 if test "${with_libxcurses_prefix+set}" = set; then :
34630   withval=$with_libxcurses_prefix;
34631     if test "X$withval" = "Xno"; then
34632       use_additional=no
34633     else
34634       if test "X$withval" = "X"; then
34635
34636   acl_save_prefix="$prefix"
34637   prefix="$acl_final_prefix"
34638   acl_save_exec_prefix="$exec_prefix"
34639   exec_prefix="$acl_final_exec_prefix"
34640
34641           eval additional_includedir=\"$includedir\"
34642           eval additional_libdir=\"$libdir\"
34643
34644   exec_prefix="$acl_save_exec_prefix"
34645   prefix="$acl_save_prefix"
34646
34647       else
34648         additional_includedir="$withval/include"
34649         additional_libdir="$withval/$acl_libdirstem"
34650         if test "$acl_libdirstem2" != "$acl_libdirstem" \
34651            && ! test -d "$withval/$acl_libdirstem"; then
34652           additional_libdir="$withval/$acl_libdirstem2"
34653         fi
34654       fi
34655     fi
34656
34657 fi
34658
34659       LIBXCURSES=
34660   LTLIBXCURSES=
34661   INCXCURSES=
34662   LIBXCURSES_PREFIX=
34663       HAVE_LIBXCURSES=
34664   rpathdirs=
34665   ltrpathdirs=
34666   names_already_handled=
34667   names_next_round='xcurses '
34668   while test -n "$names_next_round"; do
34669     names_this_round="$names_next_round"
34670     names_next_round=
34671     for name in $names_this_round; do
34672       already_handled=
34673       for n in $names_already_handled; do
34674         if test "$n" = "$name"; then
34675           already_handled=yes
34676           break
34677         fi
34678       done
34679       if test -z "$already_handled"; then
34680         names_already_handled="$names_already_handled $name"
34681                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
34682         eval value=\"\$HAVE_LIB$uppername\"
34683         if test -n "$value"; then
34684           if test "$value" = yes; then
34685             eval value=\"\$LIB$uppername\"
34686             test -z "$value" || LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$value"
34687             eval value=\"\$LTLIB$uppername\"
34688             test -z "$value" || LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$value"
34689           else
34690                                     :
34691           fi
34692         else
34693                               found_dir=
34694           found_la=
34695           found_so=
34696           found_a=
34697           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
34698           if test -n "$acl_shlibext"; then
34699             shrext=".$acl_shlibext"             # typically: shrext=.so
34700           else
34701             shrext=
34702           fi
34703           if test $use_additional = yes; then
34704             dir="$additional_libdir"
34705                                     if test -n "$acl_shlibext"; then
34706               if test -f "$dir/$libname$shrext"; then
34707                 found_dir="$dir"
34708                 found_so="$dir/$libname$shrext"
34709               else
34710                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34711                   ver=`(cd "$dir" && \
34712                         for f in "$libname$shrext".*; do echo "$f"; done \
34713                         | sed -e "s,^$libname$shrext\\\\.,," \
34714                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34715                         | sed 1q ) 2>/dev/null`
34716                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34717                     found_dir="$dir"
34718                     found_so="$dir/$libname$shrext.$ver"
34719                   fi
34720                 else
34721                   eval library_names=\"$acl_library_names_spec\"
34722                   for f in $library_names; do
34723                     if test -f "$dir/$f"; then
34724                       found_dir="$dir"
34725                       found_so="$dir/$f"
34726                       break
34727                     fi
34728                   done
34729                 fi
34730               fi
34731             fi
34732                         if test "X$found_dir" = "X"; then
34733               if test -f "$dir/$libname.$acl_libext"; then
34734                 found_dir="$dir"
34735                 found_a="$dir/$libname.$acl_libext"
34736               fi
34737             fi
34738             if test "X$found_dir" != "X"; then
34739               if test -f "$dir/$libname.la"; then
34740                 found_la="$dir/$libname.la"
34741               fi
34742             fi
34743           fi
34744           if test "X$found_dir" = "X"; then
34745             for x in $LDFLAGS $LTLIBXCURSES; do
34746
34747   acl_save_prefix="$prefix"
34748   prefix="$acl_final_prefix"
34749   acl_save_exec_prefix="$exec_prefix"
34750   exec_prefix="$acl_final_exec_prefix"
34751   eval x=\"$x\"
34752   exec_prefix="$acl_save_exec_prefix"
34753   prefix="$acl_save_prefix"
34754
34755               case "$x" in
34756                 -L*)
34757                   dir=`echo "X$x" | sed -e 's/^X-L//'`
34758                                     if test -n "$acl_shlibext"; then
34759                     if test -f "$dir/$libname$shrext"; then
34760                       found_dir="$dir"
34761                       found_so="$dir/$libname$shrext"
34762                     else
34763                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34764                         ver=`(cd "$dir" && \
34765                               for f in "$libname$shrext".*; do echo "$f"; done \
34766                               | sed -e "s,^$libname$shrext\\\\.,," \
34767                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34768                               | sed 1q ) 2>/dev/null`
34769                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34770                           found_dir="$dir"
34771                           found_so="$dir/$libname$shrext.$ver"
34772                         fi
34773                       else
34774                         eval library_names=\"$acl_library_names_spec\"
34775                         for f in $library_names; do
34776                           if test -f "$dir/$f"; then
34777                             found_dir="$dir"
34778                             found_so="$dir/$f"
34779                             break
34780                           fi
34781                         done
34782                       fi
34783                     fi
34784                   fi
34785                                     if test "X$found_dir" = "X"; then
34786                     if test -f "$dir/$libname.$acl_libext"; then
34787                       found_dir="$dir"
34788                       found_a="$dir/$libname.$acl_libext"
34789                     fi
34790                   fi
34791                   if test "X$found_dir" != "X"; then
34792                     if test -f "$dir/$libname.la"; then
34793                       found_la="$dir/$libname.la"
34794                     fi
34795                   fi
34796                   ;;
34797               esac
34798               if test "X$found_dir" != "X"; then
34799                 break
34800               fi
34801             done
34802           fi
34803           if test "X$found_dir" != "X"; then
34804                         LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$found_dir -l$name"
34805             if test "X$found_so" != "X"; then
34806                                                         if test "$enable_rpath" = no \
34807                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
34808                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
34809                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
34810               else
34811                                                                                 haveit=
34812                 for x in $ltrpathdirs; do
34813                   if test "X$x" = "X$found_dir"; then
34814                     haveit=yes
34815                     break
34816                   fi
34817                 done
34818                 if test -z "$haveit"; then
34819                   ltrpathdirs="$ltrpathdirs $found_dir"
34820                 fi
34821                                 if test "$acl_hardcode_direct" = yes; then
34822                                                       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
34823                 else
34824                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
34825                                                             LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
34826                                                             haveit=
34827                     for x in $rpathdirs; do
34828                       if test "X$x" = "X$found_dir"; then
34829                         haveit=yes
34830                         break
34831                       fi
34832                     done
34833                     if test -z "$haveit"; then
34834                       rpathdirs="$rpathdirs $found_dir"
34835                     fi
34836                   else
34837                                                                                 haveit=
34838                     for x in $LDFLAGS $LIBXCURSES; do
34839
34840   acl_save_prefix="$prefix"
34841   prefix="$acl_final_prefix"
34842   acl_save_exec_prefix="$exec_prefix"
34843   exec_prefix="$acl_final_exec_prefix"
34844   eval x=\"$x\"
34845   exec_prefix="$acl_save_exec_prefix"
34846   prefix="$acl_save_prefix"
34847
34848                       if test "X$x" = "X-L$found_dir"; then
34849                         haveit=yes
34850                         break
34851                       fi
34852                     done
34853                     if test -z "$haveit"; then
34854                       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir"
34855                     fi
34856                     if test "$acl_hardcode_minus_L" != no; then
34857                                                                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
34858                     else
34859                                                                                                                                                                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
34860                     fi
34861                   fi
34862                 fi
34863               fi
34864             else
34865               if test "X$found_a" != "X"; then
34866                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_a"
34867               else
34868                                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir -l$name"
34869               fi
34870             fi
34871                         additional_includedir=
34872             case "$found_dir" in
34873               */$acl_libdirstem | */$acl_libdirstem/)
34874                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34875                 if test "$name" = 'xcurses'; then
34876                   LIBXCURSES_PREFIX="$basedir"
34877                 fi
34878                 additional_includedir="$basedir/include"
34879                 ;;
34880               */$acl_libdirstem2 | */$acl_libdirstem2/)
34881                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
34882                 if test "$name" = 'xcurses'; then
34883                   LIBXCURSES_PREFIX="$basedir"
34884                 fi
34885                 additional_includedir="$basedir/include"
34886                 ;;
34887             esac
34888             if test "X$additional_includedir" != "X"; then
34889                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
34890                 haveit=
34891                 if test "X$additional_includedir" = "X/usr/local/include"; then
34892                   if test -n "$GCC"; then
34893                     case $host_os in
34894                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34895                     esac
34896                   fi
34897                 fi
34898                 if test -z "$haveit"; then
34899                   for x in $CPPFLAGS $INCXCURSES; do
34900
34901   acl_save_prefix="$prefix"
34902   prefix="$acl_final_prefix"
34903   acl_save_exec_prefix="$exec_prefix"
34904   exec_prefix="$acl_final_exec_prefix"
34905   eval x=\"$x\"
34906   exec_prefix="$acl_save_exec_prefix"
34907   prefix="$acl_save_prefix"
34908
34909                     if test "X$x" = "X-I$additional_includedir"; then
34910                       haveit=yes
34911                       break
34912                     fi
34913                   done
34914                   if test -z "$haveit"; then
34915                     if test -d "$additional_includedir"; then
34916                                             INCXCURSES="${INCXCURSES}${INCXCURSES:+ }-I$additional_includedir"
34917                     fi
34918                   fi
34919                 fi
34920               fi
34921             fi
34922                         if test -n "$found_la"; then
34923                                                         save_libdir="$libdir"
34924               case "$found_la" in
34925                 */* | *\\*) . "$found_la" ;;
34926                 *) . "./$found_la" ;;
34927               esac
34928               libdir="$save_libdir"
34929                             for dep in $dependency_libs; do
34930                 case "$dep" in
34931                   -L*)
34932                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34933                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
34934                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
34935                       haveit=
34936                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
34937                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
34938                         if test -n "$GCC"; then
34939                           case $host_os in
34940                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34941                           esac
34942                         fi
34943                       fi
34944                       if test -z "$haveit"; then
34945                         haveit=
34946                         for x in $LDFLAGS $LIBXCURSES; do
34947
34948   acl_save_prefix="$prefix"
34949   prefix="$acl_final_prefix"
34950   acl_save_exec_prefix="$exec_prefix"
34951   exec_prefix="$acl_final_exec_prefix"
34952   eval x=\"$x\"
34953   exec_prefix="$acl_save_exec_prefix"
34954   prefix="$acl_save_prefix"
34955
34956                           if test "X$x" = "X-L$additional_libdir"; then
34957                             haveit=yes
34958                             break
34959                           fi
34960                         done
34961                         if test -z "$haveit"; then
34962                           if test -d "$additional_libdir"; then
34963                                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$additional_libdir"
34964                           fi
34965                         fi
34966                         haveit=
34967                         for x in $LDFLAGS $LTLIBXCURSES; do
34968
34969   acl_save_prefix="$prefix"
34970   prefix="$acl_final_prefix"
34971   acl_save_exec_prefix="$exec_prefix"
34972   exec_prefix="$acl_final_exec_prefix"
34973   eval x=\"$x\"
34974   exec_prefix="$acl_save_exec_prefix"
34975   prefix="$acl_save_prefix"
34976
34977                           if test "X$x" = "X-L$additional_libdir"; then
34978                             haveit=yes
34979                             break
34980                           fi
34981                         done
34982                         if test -z "$haveit"; then
34983                           if test -d "$additional_libdir"; then
34984                                                         LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$additional_libdir"
34985                           fi
34986                         fi
34987                       fi
34988                     fi
34989                     ;;
34990                   -R*)
34991                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
34992                     if test "$enable_rpath" != no; then
34993                                                                   haveit=
34994                       for x in $rpathdirs; do
34995                         if test "X$x" = "X$dir"; then
34996                           haveit=yes
34997                           break
34998                         fi
34999                       done
35000                       if test -z "$haveit"; then
35001                         rpathdirs="$rpathdirs $dir"
35002                       fi
35003                                                                   haveit=
35004                       for x in $ltrpathdirs; do
35005                         if test "X$x" = "X$dir"; then
35006                           haveit=yes
35007                           break
35008                         fi
35009                       done
35010                       if test -z "$haveit"; then
35011                         ltrpathdirs="$ltrpathdirs $dir"
35012                       fi
35013                     fi
35014                     ;;
35015                   -l*)
35016                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
35017                     ;;
35018                   *.la)
35019                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
35020                     ;;
35021                   *)
35022                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$dep"
35023                     LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$dep"
35024                     ;;
35025                 esac
35026               done
35027             fi
35028           else
35029                                                             LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
35030             LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-l$name"
35031           fi
35032         fi
35033       fi
35034     done
35035   done
35036   if test "X$rpathdirs" != "X"; then
35037     if test -n "$acl_hardcode_libdir_separator"; then
35038                         alldirs=
35039       for found_dir in $rpathdirs; do
35040         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
35041       done
35042             acl_save_libdir="$libdir"
35043       libdir="$alldirs"
35044       eval flag=\"$acl_hardcode_libdir_flag_spec\"
35045       libdir="$acl_save_libdir"
35046       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
35047     else
35048             for found_dir in $rpathdirs; do
35049         acl_save_libdir="$libdir"
35050         libdir="$found_dir"
35051         eval flag=\"$acl_hardcode_libdir_flag_spec\"
35052         libdir="$acl_save_libdir"
35053         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
35054       done
35055     fi
35056   fi
35057   if test "X$ltrpathdirs" != "X"; then
35058             for found_dir in $ltrpathdirs; do
35059       LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-R$found_dir"
35060     done
35061   fi
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076     use_additional=yes
35077
35078   acl_save_prefix="$prefix"
35079   prefix="$acl_final_prefix"
35080   acl_save_exec_prefix="$exec_prefix"
35081   exec_prefix="$acl_final_exec_prefix"
35082
35083     eval additional_includedir=\"$includedir\"
35084     eval additional_libdir=\"$libdir\"
35085
35086   exec_prefix="$acl_save_exec_prefix"
35087   prefix="$acl_save_prefix"
35088
35089
35090 # Check whether --with-libcurses-prefix was given.
35091 if test "${with_libcurses_prefix+set}" = set; then :
35092   withval=$with_libcurses_prefix;
35093     if test "X$withval" = "Xno"; then
35094       use_additional=no
35095     else
35096       if test "X$withval" = "X"; then
35097
35098   acl_save_prefix="$prefix"
35099   prefix="$acl_final_prefix"
35100   acl_save_exec_prefix="$exec_prefix"
35101   exec_prefix="$acl_final_exec_prefix"
35102
35103           eval additional_includedir=\"$includedir\"
35104           eval additional_libdir=\"$libdir\"
35105
35106   exec_prefix="$acl_save_exec_prefix"
35107   prefix="$acl_save_prefix"
35108
35109       else
35110         additional_includedir="$withval/include"
35111         additional_libdir="$withval/$acl_libdirstem"
35112         if test "$acl_libdirstem2" != "$acl_libdirstem" \
35113            && ! test -d "$withval/$acl_libdirstem"; then
35114           additional_libdir="$withval/$acl_libdirstem2"
35115         fi
35116       fi
35117     fi
35118
35119 fi
35120
35121       LIBCURSES=
35122   LTLIBCURSES=
35123   INCCURSES=
35124   LIBCURSES_PREFIX=
35125       HAVE_LIBCURSES=
35126   rpathdirs=
35127   ltrpathdirs=
35128   names_already_handled=
35129   names_next_round='curses '
35130   while test -n "$names_next_round"; do
35131     names_this_round="$names_next_round"
35132     names_next_round=
35133     for name in $names_this_round; do
35134       already_handled=
35135       for n in $names_already_handled; do
35136         if test "$n" = "$name"; then
35137           already_handled=yes
35138           break
35139         fi
35140       done
35141       if test -z "$already_handled"; then
35142         names_already_handled="$names_already_handled $name"
35143                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
35144         eval value=\"\$HAVE_LIB$uppername\"
35145         if test -n "$value"; then
35146           if test "$value" = yes; then
35147             eval value=\"\$LIB$uppername\"
35148             test -z "$value" || LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$value"
35149             eval value=\"\$LTLIB$uppername\"
35150             test -z "$value" || LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$value"
35151           else
35152                                     :
35153           fi
35154         else
35155                               found_dir=
35156           found_la=
35157           found_so=
35158           found_a=
35159           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
35160           if test -n "$acl_shlibext"; then
35161             shrext=".$acl_shlibext"             # typically: shrext=.so
35162           else
35163             shrext=
35164           fi
35165           if test $use_additional = yes; then
35166             dir="$additional_libdir"
35167                                     if test -n "$acl_shlibext"; then
35168               if test -f "$dir/$libname$shrext"; then
35169                 found_dir="$dir"
35170                 found_so="$dir/$libname$shrext"
35171               else
35172                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
35173                   ver=`(cd "$dir" && \
35174                         for f in "$libname$shrext".*; do echo "$f"; done \
35175                         | sed -e "s,^$libname$shrext\\\\.,," \
35176                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
35177                         | sed 1q ) 2>/dev/null`
35178                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
35179                     found_dir="$dir"
35180                     found_so="$dir/$libname$shrext.$ver"
35181                   fi
35182                 else
35183                   eval library_names=\"$acl_library_names_spec\"
35184                   for f in $library_names; do
35185                     if test -f "$dir/$f"; then
35186                       found_dir="$dir"
35187                       found_so="$dir/$f"
35188                       break
35189                     fi
35190                   done
35191                 fi
35192               fi
35193             fi
35194                         if test "X$found_dir" = "X"; then
35195               if test -f "$dir/$libname.$acl_libext"; then
35196                 found_dir="$dir"
35197                 found_a="$dir/$libname.$acl_libext"
35198               fi
35199             fi
35200             if test "X$found_dir" != "X"; then
35201               if test -f "$dir/$libname.la"; then
35202                 found_la="$dir/$libname.la"
35203               fi
35204             fi
35205           fi
35206           if test "X$found_dir" = "X"; then
35207             for x in $LDFLAGS $LTLIBCURSES; do
35208
35209   acl_save_prefix="$prefix"
35210   prefix="$acl_final_prefix"
35211   acl_save_exec_prefix="$exec_prefix"
35212   exec_prefix="$acl_final_exec_prefix"
35213   eval x=\"$x\"
35214   exec_prefix="$acl_save_exec_prefix"
35215   prefix="$acl_save_prefix"
35216
35217               case "$x" in
35218                 -L*)
35219                   dir=`echo "X$x" | sed -e 's/^X-L//'`
35220                                     if test -n "$acl_shlibext"; then
35221                     if test -f "$dir/$libname$shrext"; then
35222                       found_dir="$dir"
35223                       found_so="$dir/$libname$shrext"
35224                     else
35225                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
35226                         ver=`(cd "$dir" && \
35227                               for f in "$libname$shrext".*; do echo "$f"; done \
35228                               | sed -e "s,^$libname$shrext\\\\.,," \
35229                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
35230                               | sed 1q ) 2>/dev/null`
35231                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
35232                           found_dir="$dir"
35233                           found_so="$dir/$libname$shrext.$ver"
35234                         fi
35235                       else
35236                         eval library_names=\"$acl_library_names_spec\"
35237                         for f in $library_names; do
35238                           if test -f "$dir/$f"; then
35239                             found_dir="$dir"
35240                             found_so="$dir/$f"
35241                             break
35242                           fi
35243                         done
35244                       fi
35245                     fi
35246                   fi
35247                                     if test "X$found_dir" = "X"; then
35248                     if test -f "$dir/$libname.$acl_libext"; then
35249                       found_dir="$dir"
35250                       found_a="$dir/$libname.$acl_libext"
35251                     fi
35252                   fi
35253                   if test "X$found_dir" != "X"; then
35254                     if test -f "$dir/$libname.la"; then
35255                       found_la="$dir/$libname.la"
35256                     fi
35257                   fi
35258                   ;;
35259               esac
35260               if test "X$found_dir" != "X"; then
35261                 break
35262               fi
35263             done
35264           fi
35265           if test "X$found_dir" != "X"; then
35266                         LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$found_dir -l$name"
35267             if test "X$found_so" != "X"; then
35268                                                         if test "$enable_rpath" = no \
35269                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
35270                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
35271                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
35272               else
35273                                                                                 haveit=
35274                 for x in $ltrpathdirs; do
35275                   if test "X$x" = "X$found_dir"; then
35276                     haveit=yes
35277                     break
35278                   fi
35279                 done
35280                 if test -z "$haveit"; then
35281                   ltrpathdirs="$ltrpathdirs $found_dir"
35282                 fi
35283                                 if test "$acl_hardcode_direct" = yes; then
35284                                                       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
35285                 else
35286                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
35287                                                             LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
35288                                                             haveit=
35289                     for x in $rpathdirs; do
35290                       if test "X$x" = "X$found_dir"; then
35291                         haveit=yes
35292                         break
35293                       fi
35294                     done
35295                     if test -z "$haveit"; then
35296                       rpathdirs="$rpathdirs $found_dir"
35297                     fi
35298                   else
35299                                                                                 haveit=
35300                     for x in $LDFLAGS $LIBCURSES; do
35301
35302   acl_save_prefix="$prefix"
35303   prefix="$acl_final_prefix"
35304   acl_save_exec_prefix="$exec_prefix"
35305   exec_prefix="$acl_final_exec_prefix"
35306   eval x=\"$x\"
35307   exec_prefix="$acl_save_exec_prefix"
35308   prefix="$acl_save_prefix"
35309
35310                       if test "X$x" = "X-L$found_dir"; then
35311                         haveit=yes
35312                         break
35313                       fi
35314                     done
35315                     if test -z "$haveit"; then
35316                       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir"
35317                     fi
35318                     if test "$acl_hardcode_minus_L" != no; then
35319                                                                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
35320                     else
35321                                                                                                                                                                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
35322                     fi
35323                   fi
35324                 fi
35325               fi
35326             else
35327               if test "X$found_a" != "X"; then
35328                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_a"
35329               else
35330                                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir -l$name"
35331               fi
35332             fi
35333                         additional_includedir=
35334             case "$found_dir" in
35335               */$acl_libdirstem | */$acl_libdirstem/)
35336                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
35337                 if test "$name" = 'curses'; then
35338                   LIBCURSES_PREFIX="$basedir"
35339                 fi
35340                 additional_includedir="$basedir/include"
35341                 ;;
35342               */$acl_libdirstem2 | */$acl_libdirstem2/)
35343                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
35344                 if test "$name" = 'curses'; then
35345                   LIBCURSES_PREFIX="$basedir"
35346                 fi
35347                 additional_includedir="$basedir/include"
35348                 ;;
35349             esac
35350             if test "X$additional_includedir" != "X"; then
35351                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
35352                 haveit=
35353                 if test "X$additional_includedir" = "X/usr/local/include"; then
35354                   if test -n "$GCC"; then
35355                     case $host_os in
35356                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35357                     esac
35358                   fi
35359                 fi
35360                 if test -z "$haveit"; then
35361                   for x in $CPPFLAGS $INCCURSES; do
35362
35363   acl_save_prefix="$prefix"
35364   prefix="$acl_final_prefix"
35365   acl_save_exec_prefix="$exec_prefix"
35366   exec_prefix="$acl_final_exec_prefix"
35367   eval x=\"$x\"
35368   exec_prefix="$acl_save_exec_prefix"
35369   prefix="$acl_save_prefix"
35370
35371                     if test "X$x" = "X-I$additional_includedir"; then
35372                       haveit=yes
35373                       break
35374                     fi
35375                   done
35376                   if test -z "$haveit"; then
35377                     if test -d "$additional_includedir"; then
35378                                             INCCURSES="${INCCURSES}${INCCURSES:+ }-I$additional_includedir"
35379                     fi
35380                   fi
35381                 fi
35382               fi
35383             fi
35384                         if test -n "$found_la"; then
35385                                                         save_libdir="$libdir"
35386               case "$found_la" in
35387                 */* | *\\*) . "$found_la" ;;
35388                 *) . "./$found_la" ;;
35389               esac
35390               libdir="$save_libdir"
35391                             for dep in $dependency_libs; do
35392                 case "$dep" in
35393                   -L*)
35394                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
35395                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
35396                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
35397                       haveit=
35398                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
35399                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
35400                         if test -n "$GCC"; then
35401                           case $host_os in
35402                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35403                           esac
35404                         fi
35405                       fi
35406                       if test -z "$haveit"; then
35407                         haveit=
35408                         for x in $LDFLAGS $LIBCURSES; do
35409
35410   acl_save_prefix="$prefix"
35411   prefix="$acl_final_prefix"
35412   acl_save_exec_prefix="$exec_prefix"
35413   exec_prefix="$acl_final_exec_prefix"
35414   eval x=\"$x\"
35415   exec_prefix="$acl_save_exec_prefix"
35416   prefix="$acl_save_prefix"
35417
35418                           if test "X$x" = "X-L$additional_libdir"; then
35419                             haveit=yes
35420                             break
35421                           fi
35422                         done
35423                         if test -z "$haveit"; then
35424                           if test -d "$additional_libdir"; then
35425                                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$additional_libdir"
35426                           fi
35427                         fi
35428                         haveit=
35429                         for x in $LDFLAGS $LTLIBCURSES; do
35430
35431   acl_save_prefix="$prefix"
35432   prefix="$acl_final_prefix"
35433   acl_save_exec_prefix="$exec_prefix"
35434   exec_prefix="$acl_final_exec_prefix"
35435   eval x=\"$x\"
35436   exec_prefix="$acl_save_exec_prefix"
35437   prefix="$acl_save_prefix"
35438
35439                           if test "X$x" = "X-L$additional_libdir"; then
35440                             haveit=yes
35441                             break
35442                           fi
35443                         done
35444                         if test -z "$haveit"; then
35445                           if test -d "$additional_libdir"; then
35446                                                         LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$additional_libdir"
35447                           fi
35448                         fi
35449                       fi
35450                     fi
35451                     ;;
35452                   -R*)
35453                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
35454                     if test "$enable_rpath" != no; then
35455                                                                   haveit=
35456                       for x in $rpathdirs; do
35457                         if test "X$x" = "X$dir"; then
35458                           haveit=yes
35459                           break
35460                         fi
35461                       done
35462                       if test -z "$haveit"; then
35463                         rpathdirs="$rpathdirs $dir"
35464                       fi
35465                                                                   haveit=
35466                       for x in $ltrpathdirs; do
35467                         if test "X$x" = "X$dir"; then
35468                           haveit=yes
35469                           break
35470                         fi
35471                       done
35472                       if test -z "$haveit"; then
35473                         ltrpathdirs="$ltrpathdirs $dir"
35474                       fi
35475                     fi
35476                     ;;
35477                   -l*)
35478                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
35479                     ;;
35480                   *.la)
35481                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
35482                     ;;
35483                   *)
35484                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$dep"
35485                     LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$dep"
35486                     ;;
35487                 esac
35488               done
35489             fi
35490           else
35491                                                             LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
35492             LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-l$name"
35493           fi
35494         fi
35495       fi
35496     done
35497   done
35498   if test "X$rpathdirs" != "X"; then
35499     if test -n "$acl_hardcode_libdir_separator"; then
35500                         alldirs=
35501       for found_dir in $rpathdirs; do
35502         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
35503       done
35504             acl_save_libdir="$libdir"
35505       libdir="$alldirs"
35506       eval flag=\"$acl_hardcode_libdir_flag_spec\"
35507       libdir="$acl_save_libdir"
35508       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
35509     else
35510             for found_dir in $rpathdirs; do
35511         acl_save_libdir="$libdir"
35512         libdir="$found_dir"
35513         eval flag=\"$acl_hardcode_libdir_flag_spec\"
35514         libdir="$acl_save_libdir"
35515         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
35516       done
35517     fi
35518   fi
35519   if test "X$ltrpathdirs" != "X"; then
35520             for found_dir in $ltrpathdirs; do
35521       LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-R$found_dir"
35522     done
35523   fi
35524
35525
35526
35527
35528
35529
35530
35531   else
35532
35533     LIBNCURSES=
35534     LTLIBNCURSES=
35535     INCNCURSES=
35536
35537     LIBTERMCAP=
35538     LTLIBTERMCAP=
35539     INCTERMCAP=
35540
35541     LIBXCURSES=
35542     LTLIBXCURSES=
35543     INCXCURSES=
35544
35545     LIBCURSES=
35546     LTLIBCURSES=
35547     INCCURSES=
35548
35549   fi
35550
35551       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where terminfo library functions come from" >&5
35552 $as_echo_n "checking where terminfo library functions come from... " >&6; }
35553 if ${gl_cv_terminfo+:} false; then :
35554   $as_echo_n "(cached) " >&6
35555 else
35556
35557     gl_cv_terminfo="not found, consider installing GNU ncurses"
35558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35559 /* end confdefs.h.  */
35560 extern
35561       #ifdef __cplusplus
35562       "C"
35563       #endif
35564       int setupterm (const char *, int, int *);
35565       extern
35566       #ifdef __cplusplus
35567       "C"
35568       #endif
35569       int tigetnum (const char *);
35570       extern
35571       #ifdef __cplusplus
35572       "C"
35573       #endif
35574       int tigetflag (const char *);
35575       extern
35576       #ifdef __cplusplus
35577       "C"
35578       #endif
35579       const char * tigetstr (const char *);
35580
35581 int
35582 main ()
35583 {
35584 return setupterm ("xterm", 0, (int *)0)
35585                  + tigetnum ("colors")
35586                  + tigetflag ("hc") + * tigetstr("oc");
35587   ;
35588   return 0;
35589 }
35590 _ACEOF
35591 if ac_fn_c_try_link "$LINENO"; then :
35592   gl_cv_terminfo=libc
35593 fi
35594 rm -f core conftest.err conftest.$ac_objext \
35595     conftest$ac_exeext conftest.$ac_ext
35596     if test "$gl_cv_terminfo" != libc; then
35597       gl_save_LIBS="$LIBS"
35598       LIBS="$LIBS $LIBNCURSES"
35599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35600 /* end confdefs.h.  */
35601 extern
35602         #ifdef __cplusplus
35603         "C"
35604         #endif
35605         int setupterm (const char *, int, int *);
35606         extern
35607         #ifdef __cplusplus
35608         "C"
35609         #endif
35610         int tigetnum (const char *);
35611         extern
35612         #ifdef __cplusplus
35613         "C"
35614         #endif
35615         int tigetflag (const char *);
35616         extern
35617         #ifdef __cplusplus
35618         "C"
35619         #endif
35620         const char * tigetstr (const char *);
35621
35622 int
35623 main ()
35624 {
35625 return setupterm ("xterm", 0, (int *)0)
35626                    + tigetnum ("colors")
35627                    + tigetflag ("hc") + * tigetstr("oc");
35628   ;
35629   return 0;
35630 }
35631 _ACEOF
35632 if ac_fn_c_try_link "$LINENO"; then :
35633   gl_cv_terminfo=libncurses
35634 fi
35635 rm -f core conftest.err conftest.$ac_objext \
35636     conftest$ac_exeext conftest.$ac_ext
35637       LIBS="$gl_save_LIBS"
35638       if test "$gl_cv_terminfo" != libncurses; then
35639         gl_save_LIBS="$LIBS"
35640         LIBS="$LIBS $LIBTERMCAP"
35641         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35642 /* end confdefs.h.  */
35643 extern
35644           #ifdef __cplusplus
35645           "C"
35646           #endif
35647           int setupterm (const char *, int, int *);
35648           extern
35649           #ifdef __cplusplus
35650           "C"
35651           #endif
35652           int tigetnum (const char *);
35653           extern
35654           #ifdef __cplusplus
35655           "C"
35656           #endif
35657           int tigetflag (const char *);
35658           extern
35659           #ifdef __cplusplus
35660           "C"
35661           #endif
35662           const char * tigetstr (const char *);
35663
35664 int
35665 main ()
35666 {
35667 return setupterm ("xterm", 0, (int *)0)
35668                      + tigetnum ("colors")
35669                      + tigetflag ("hc") + * tigetstr("oc");
35670   ;
35671   return 0;
35672 }
35673 _ACEOF
35674 if ac_fn_c_try_link "$LINENO"; then :
35675   gl_cv_terminfo=libtermcap
35676 fi
35677 rm -f core conftest.err conftest.$ac_objext \
35678     conftest$ac_exeext conftest.$ac_ext
35679         LIBS="$gl_save_LIBS"
35680         if test "$gl_cv_terminfo" != libtermcap; then
35681           gl_save_LIBS="$LIBS"
35682           LIBS="$LIBS $LIBXCURSES"
35683           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35684 /* end confdefs.h.  */
35685 extern
35686             #ifdef __cplusplus
35687             "C"
35688             #endif
35689             int setupterm (const char *, int, int *);
35690             extern
35691             #ifdef __cplusplus
35692             "C"
35693             #endif
35694             int tigetnum (const char *);
35695             extern
35696             #ifdef __cplusplus
35697             "C"
35698             #endif
35699             int tigetflag (const char *);
35700             extern
35701             #ifdef __cplusplus
35702             "C"
35703             #endif
35704             const char * tigetstr (const char *);
35705
35706 int
35707 main ()
35708 {
35709 return setupterm ("xterm", 0, (int *)0)
35710                        + tigetnum ("colors")
35711                        + tigetflag ("hc") + * tigetstr("oc");
35712   ;
35713   return 0;
35714 }
35715 _ACEOF
35716 if ac_fn_c_try_link "$LINENO"; then :
35717   gl_cv_terminfo=libxcurses
35718 fi
35719 rm -f core conftest.err conftest.$ac_objext \
35720     conftest$ac_exeext conftest.$ac_ext
35721           LIBS="$gl_save_LIBS"
35722           if test "$gl_cv_terminfo" != libxcurses; then
35723             gl_save_LIBS="$LIBS"
35724             LIBS="$LIBS $LIBCURSES"
35725             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35726 /* end confdefs.h.  */
35727 extern
35728               #ifdef __cplusplus
35729               "C"
35730               #endif
35731               int setupterm (const char *, int, int *);
35732               extern
35733               #ifdef __cplusplus
35734               "C"
35735               #endif
35736               int tigetnum (const char *);
35737               extern
35738               #ifdef __cplusplus
35739               "C"
35740               #endif
35741               int tigetflag (const char *);
35742               extern
35743               #ifdef __cplusplus
35744               "C"
35745               #endif
35746               const char * tigetstr (const char *);
35747
35748 int
35749 main ()
35750 {
35751 return setupterm ("xterm", 0, (int *)0)
35752                          + tigetnum ("colors")
35753                          + tigetflag ("hc") + * tigetstr("oc");
35754   ;
35755   return 0;
35756 }
35757 _ACEOF
35758 if ac_fn_c_try_link "$LINENO"; then :
35759   gl_cv_terminfo=libcurses
35760 fi
35761 rm -f core conftest.err conftest.$ac_objext \
35762     conftest$ac_exeext conftest.$ac_ext
35763             LIBS="$gl_save_LIBS"
35764           fi
35765         fi
35766       fi
35767     fi
35768
35769 fi
35770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo" >&5
35771 $as_echo "$gl_cv_terminfo" >&6; }
35772   case "$gl_cv_terminfo" in
35773     libc)
35774       LIBTERMINFO=
35775       LTLIBTERMINFO=
35776       INCTERMINFO=
35777       ;;
35778     libncurses)
35779       LIBTERMINFO="$LIBNCURSES"
35780       LTLIBTERMINFO="$LTLIBNCURSES"
35781       INCTERMINFO="$INCNCURSES"
35782       ;;
35783     libtermcap)
35784       LIBTERMINFO="$LIBTERMCAP"
35785       LTLIBTERMINFO="$LTLIBTERMCAP"
35786       INCTERMINFO="$INCTERMCAP"
35787       ;;
35788     libxcurses)
35789       LIBTERMINFO="$LIBXCURSES"
35790       LTLIBTERMINFO="$LTLIBXCURSES"
35791       INCTERMINFO="$INCXCURSES"
35792       ;;
35793     libcurses)
35794       LIBTERMINFO="$LIBCURSES"
35795       LTLIBTERMINFO="$LTLIBCURSES"
35796       INCTERMINFO="$INCCURSES"
35797       ;;
35798   esac
35799   case "$gl_cv_terminfo" in
35800     libc | libncurses | libtermcap | libxcurses | libcurses)
35801
35802 $as_echo "#define HAVE_TERMINFO 1" >>confdefs.h
35803
35804       ;;
35805     *)
35806             { $as_echo "$as_me:${as_lineno-$LINENO}: checking where termcap library functions come from" >&5
35807 $as_echo_n "checking where termcap library functions come from... " >&6; }
35808 if ${gl_cv_termcap+:} false; then :
35809   $as_echo_n "(cached) " >&6
35810 else
35811
35812         gl_cv_termcap="not found, consider installing GNU ncurses"
35813         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35814 /* end confdefs.h.  */
35815 extern
35816           #ifdef __cplusplus
35817           "C"
35818           #endif
35819           int tgetent (char *, const char *);
35820
35821 int
35822 main ()
35823 {
35824 return tgetent ((char *) 0, "xterm");
35825   ;
35826   return 0;
35827 }
35828 _ACEOF
35829 if ac_fn_c_try_link "$LINENO"; then :
35830   gl_cv_termcap=libc
35831 fi
35832 rm -f core conftest.err conftest.$ac_objext \
35833     conftest$ac_exeext conftest.$ac_ext
35834         if test "$gl_cv_termcap" != libc; then
35835           gl_save_LIBS="$LIBS"
35836           LIBS="$LIBS $LIBNCURSES"
35837           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35838 /* end confdefs.h.  */
35839 extern
35840             #ifdef __cplusplus
35841             "C"
35842             #endif
35843             int tgetent (char *, const char *);
35844
35845 int
35846 main ()
35847 {
35848 return tgetent ((char *) 0, "xterm");
35849   ;
35850   return 0;
35851 }
35852 _ACEOF
35853 if ac_fn_c_try_link "$LINENO"; then :
35854   gl_cv_termcap=libncurses
35855 fi
35856 rm -f core conftest.err conftest.$ac_objext \
35857     conftest$ac_exeext conftest.$ac_ext
35858           LIBS="$gl_save_LIBS"
35859           if test "$gl_cv_termcap" != libncurses; then
35860             gl_save_LIBS="$LIBS"
35861             LIBS="$LIBS $LIBTERMCAP"
35862             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35863 /* end confdefs.h.  */
35864 extern
35865               #ifdef __cplusplus
35866               "C"
35867               #endif
35868               int tgetent (char *, const char *);
35869
35870 int
35871 main ()
35872 {
35873 return tgetent ((char *) 0, "xterm");
35874   ;
35875   return 0;
35876 }
35877 _ACEOF
35878 if ac_fn_c_try_link "$LINENO"; then :
35879   gl_cv_termcap=libtermcap
35880 fi
35881 rm -f core conftest.err conftest.$ac_objext \
35882     conftest$ac_exeext conftest.$ac_ext
35883             LIBS="$gl_save_LIBS"
35884           fi
35885         fi
35886
35887 fi
35888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_termcap" >&5
35889 $as_echo "$gl_cv_termcap" >&6; }
35890       case "$gl_cv_termcap" in
35891         libc)
35892           LIBTERMINFO=
35893           LTLIBTERMINFO=
35894           INCTERMINFO=
35895           ;;
35896         libncurses)
35897           LIBTERMINFO="$LIBNCURSES"
35898           LTLIBTERMINFO="$LTLIBNCURSES"
35899           INCTERMINFO="$INCNCURSES"
35900           ;;
35901         libtermcap)
35902           LIBTERMINFO="$LIBTERMCAP"
35903           LTLIBTERMINFO="$LTLIBTERMCAP"
35904           INCTERMINFO="$INCTERMCAP"
35905           ;;
35906       esac
35907       case "$gl_cv_termcap" in
35908         libc | libncurses | libtermcap)
35909
35910 $as_echo "#define HAVE_TERMCAP 1" >>confdefs.h
35911
35912           ;;
35913       esac
35914       ;;
35915   esac
35916
35917
35918
35919
35920       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparam" >&5
35921 $as_echo_n "checking for tparam... " >&6; }
35922 if ${gl_cv_terminfo_tparam+:} false; then :
35923   $as_echo_n "(cached) " >&6
35924 else
35925
35926     gl_save_LIBS="$LIBS"
35927     LIBS="$LIBS $LIBTERMINFO"
35928     gl_save_CPPFLAGS="$CPPFLAGS"
35929     CPPFLAGS="$CPPFLAGS $INCTERMINFO"
35930     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35931 /* end confdefs.h.  */
35932 extern
35933       #ifdef __cplusplus
35934       "C"
35935       #endif
35936       char * tparam (const char *, void *, int, ...);
35937       char buf;
35938
35939 int
35940 main ()
35941 {
35942 return tparam ("\033\133%dm", &buf, 1, 8);
35943   ;
35944   return 0;
35945 }
35946 _ACEOF
35947 if ac_fn_c_try_link "$LINENO"; then :
35948   gl_cv_terminfo_tparam=yes
35949 else
35950   gl_cv_terminfo_tparam=no
35951 fi
35952 rm -f core conftest.err conftest.$ac_objext \
35953     conftest$ac_exeext conftest.$ac_ext
35954     CPPFLAGS="$gl_save_CPPFLAGS"
35955     LIBS="$gl_save_LIBS"
35956
35957 fi
35958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparam" >&5
35959 $as_echo "$gl_cv_terminfo_tparam" >&6; }
35960   if test $gl_cv_terminfo_tparam = yes; then
35961
35962 $as_echo "#define HAVE_TPARAM 1" >>confdefs.h
35963
35964   else
35965             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm" >&5
35966 $as_echo_n "checking for tparm... " >&6; }
35967 if ${gl_cv_terminfo_tparm+:} false; then :
35968   $as_echo_n "(cached) " >&6
35969 else
35970
35971       gl_save_LIBS="$LIBS"
35972       LIBS="$LIBS $LIBTERMINFO"
35973       gl_save_CPPFLAGS="$CPPFLAGS"
35974       CPPFLAGS="$CPPFLAGS $INCTERMINFO"
35975       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35976 /* end confdefs.h.  */
35977 extern
35978         #ifdef __cplusplus
35979         "C"
35980         #endif
35981         char * tparm (const char *, ...);
35982
35983 int
35984 main ()
35985 {
35986 return tparm ("\033\133%dm", 8);
35987   ;
35988   return 0;
35989 }
35990 _ACEOF
35991 if ac_fn_c_try_link "$LINENO"; then :
35992   gl_cv_terminfo_tparm=yes
35993 else
35994   gl_cv_terminfo_tparm=no
35995 fi
35996 rm -f core conftest.err conftest.$ac_objext \
35997     conftest$ac_exeext conftest.$ac_ext
35998       CPPFLAGS="$gl_save_CPPFLAGS"
35999       LIBS="$gl_save_LIBS"
36000
36001 fi
36002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparm" >&5
36003 $as_echo "$gl_cv_terminfo_tparm" >&6; }
36004   fi
36005
36006
36007   GNULIB_MKTIME=0;
36008   GNULIB_NANOSLEEP=0;
36009   GNULIB_STRPTIME=0;
36010   GNULIB_TIMEGM=0;
36011   GNULIB_TIME_R=0;
36012   GNULIB_TIME_RZ=0;
36013     HAVE_DECL_LOCALTIME_R=1;
36014   HAVE_NANOSLEEP=1;
36015   HAVE_STRPTIME=1;
36016   HAVE_TIMEGM=1;
36017         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
36018   REPLACE_MKTIME=GNULIB_PORTCHECK;
36019   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
36020   REPLACE_TIMEGM=GNULIB_PORTCHECK;
36021
36022       : ${GNULIB_GETTIMEOFDAY=0};
36023         REPLACE_GMTIME=0;
36024   REPLACE_LOCALTIME=0;
36025
36026
36027
36028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
36029 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
36030 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
36031   $as_echo_n "(cached) " >&6
36032 else
36033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36034 /* end confdefs.h.  */
36035 #include <time.h>
36036
36037 int
36038 main ()
36039 {
36040 static struct timespec x; x.tv_sec = x.tv_nsec;
36041   ;
36042   return 0;
36043 }
36044 _ACEOF
36045 if ac_fn_c_try_compile "$LINENO"; then :
36046   gl_cv_sys_struct_timespec_in_time_h=yes
36047 else
36048   gl_cv_sys_struct_timespec_in_time_h=no
36049 fi
36050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36051 fi
36052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
36053 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
36054
36055   TIME_H_DEFINES_STRUCT_TIMESPEC=0
36056   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
36057   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
36058   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
36059   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
36060     TIME_H_DEFINES_STRUCT_TIMESPEC=1
36061   else
36062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
36063 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
36064 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
36065   $as_echo_n "(cached) " >&6
36066 else
36067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36068 /* end confdefs.h.  */
36069 #include <sys/time.h>
36070
36071 int
36072 main ()
36073 {
36074 static struct timespec x; x.tv_sec = x.tv_nsec;
36075   ;
36076   return 0;
36077 }
36078 _ACEOF
36079 if ac_fn_c_try_compile "$LINENO"; then :
36080   gl_cv_sys_struct_timespec_in_sys_time_h=yes
36081 else
36082   gl_cv_sys_struct_timespec_in_sys_time_h=no
36083 fi
36084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36085 fi
36086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
36087 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
36088     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
36089       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
36090     else
36091       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
36092 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
36093 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
36094   $as_echo_n "(cached) " >&6
36095 else
36096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36097 /* end confdefs.h.  */
36098 #include <pthread.h>
36099
36100 int
36101 main ()
36102 {
36103 static struct timespec x; x.tv_sec = x.tv_nsec;
36104   ;
36105   return 0;
36106 }
36107 _ACEOF
36108 if ac_fn_c_try_compile "$LINENO"; then :
36109   gl_cv_sys_struct_timespec_in_pthread_h=yes
36110 else
36111   gl_cv_sys_struct_timespec_in_pthread_h=no
36112 fi
36113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36114 fi
36115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
36116 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
36117       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
36118         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
36119       else
36120         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
36121 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
36122 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
36123   $as_echo_n "(cached) " >&6
36124 else
36125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36126 /* end confdefs.h.  */
36127 #include <unistd.h>
36128
36129 int
36130 main ()
36131 {
36132 static struct timespec x; x.tv_sec = x.tv_nsec;
36133   ;
36134   return 0;
36135 }
36136 _ACEOF
36137 if ac_fn_c_try_compile "$LINENO"; then :
36138   gl_cv_sys_struct_timespec_in_unistd_h=yes
36139 else
36140   gl_cv_sys_struct_timespec_in_unistd_h=no
36141 fi
36142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36143 fi
36144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
36145 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
36146         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
36147           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
36148         fi
36149       fi
36150     fi
36151   fi
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166
36167
36168      if test $gl_cv_have_include_next = yes; then
36169        gl_cv_next_time_h='<'time.h'>'
36170      else
36171        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
36172 $as_echo_n "checking absolute name of <time.h>... " >&6; }
36173 if ${gl_cv_next_time_h+:} false; then :
36174   $as_echo_n "(cached) " >&6
36175 else
36176
36177
36178
36179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36180 /* end confdefs.h.  */
36181 #include <time.h>
36182 _ACEOF
36183                 case "$host_os" in
36184     aix*) gl_absname_cpp="$ac_cpp -C" ;;
36185     *)    gl_absname_cpp="$ac_cpp" ;;
36186   esac
36187
36188   case "$host_os" in
36189     mingw*)
36190                                           gl_dirsep_regex='[/\\]'
36191       ;;
36192     *)
36193       gl_dirsep_regex='\/'
36194       ;;
36195   esac
36196       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36197   gl_header_literal_regex=`echo 'time.h' \
36198                            | sed -e "$gl_make_literal_regex_sed"`
36199   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36200       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36201       s|^/[^/]|//&|
36202       p
36203       q
36204     }'
36205
36206         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36207   sed -n "$gl_absolute_header_sed"`
36208
36209            gl_header=$gl_cv_absolute_time_h
36210            gl_cv_next_time_h='"'$gl_header'"'
36211
36212
36213 fi
36214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
36215 $as_echo "$gl_cv_next_time_h" >&6; }
36216      fi
36217      NEXT_TIME_H=$gl_cv_next_time_h
36218
36219      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36220        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36221        gl_next_as_first_directive='<'time.h'>'
36222      else
36223        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36224        gl_next_as_first_directive=$gl_cv_next_time_h
36225      fi
36226      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
36227
36228
36229
36230
36231
36232
36233
36234
36235
36236
36237
36238
36239 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
36240 i\
36241 0
36242 q
36243 '
36244 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
36245 i\
36246 0
36247 q
36248 '
36249 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;}
36250 i\
36251 0
36252 q
36253 '
36254
36255
36256   if test "$HAVE_LIBUNISTRING" = yes; then
36257     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
36258     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
36259     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
36260   fi
36261
36262
36263
36264 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
36265 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
36266   ac_have_decl=1
36267 else
36268   ac_have_decl=0
36269 fi
36270
36271 cat >>confdefs.h <<_ACEOF
36272 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
36273 _ACEOF
36274
36275 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
36276 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
36277   ac_have_decl=1
36278 else
36279   ac_have_decl=0
36280 fi
36281
36282 cat >>confdefs.h <<_ACEOF
36283 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
36284 _ACEOF
36285
36286 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
36287 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
36288   ac_have_decl=1
36289 else
36290   ac_have_decl=0
36291 fi
36292
36293 cat >>confdefs.h <<_ACEOF
36294 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
36295 _ACEOF
36296
36297 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
36298 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
36299   ac_have_decl=1
36300 else
36301   ac_have_decl=0
36302 fi
36303
36304 cat >>confdefs.h <<_ACEOF
36305 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
36306 _ACEOF
36307
36308 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
36309 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
36310   ac_have_decl=1
36311 else
36312   ac_have_decl=0
36313 fi
36314
36315 cat >>confdefs.h <<_ACEOF
36316 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
36317 _ACEOF
36318
36319 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
36320 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
36321   ac_have_decl=1
36322 else
36323   ac_have_decl=0
36324 fi
36325
36326 cat >>confdefs.h <<_ACEOF
36327 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
36328 _ACEOF
36329
36330 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
36331 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
36332   ac_have_decl=1
36333 else
36334   ac_have_decl=0
36335 fi
36336
36337 cat >>confdefs.h <<_ACEOF
36338 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
36339 _ACEOF
36340
36341 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
36342 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
36343   ac_have_decl=1
36344 else
36345   ac_have_decl=0
36346 fi
36347
36348 cat >>confdefs.h <<_ACEOF
36349 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
36350 _ACEOF
36351
36352 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
36353 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
36354   ac_have_decl=1
36355 else
36356   ac_have_decl=0
36357 fi
36358
36359 cat >>confdefs.h <<_ACEOF
36360 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
36361 _ACEOF
36362
36363 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
36364 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
36365   ac_have_decl=1
36366 else
36367   ac_have_decl=0
36368 fi
36369
36370 cat >>confdefs.h <<_ACEOF
36371 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
36372 _ACEOF
36373
36374 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
36375 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
36376   ac_have_decl=1
36377 else
36378   ac_have_decl=0
36379 fi
36380
36381 cat >>confdefs.h <<_ACEOF
36382 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
36383 _ACEOF
36384
36385 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
36386 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
36387   ac_have_decl=1
36388 else
36389   ac_have_decl=0
36390 fi
36391
36392 cat >>confdefs.h <<_ACEOF
36393 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
36394 _ACEOF
36395
36396 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
36397 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
36398   ac_have_decl=1
36399 else
36400   ac_have_decl=0
36401 fi
36402
36403 cat >>confdefs.h <<_ACEOF
36404 #define HAVE_DECL_UNSETENV $ac_have_decl
36405 _ACEOF
36406
36407
36408
36409
36410
36411
36412
36413   if test $ac_cv_header_features_h = yes; then
36414     HAVE_FEATURES_H=1
36415   else
36416     HAVE_FEATURES_H=0
36417   fi
36418
36419
36420
36421
36422
36423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
36424 $as_echo_n "checking for intmax_t... " >&6; }
36425 if ${gt_cv_c_intmax_t+:} false; then :
36426   $as_echo_n "(cached) " >&6
36427 else
36428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36429 /* end confdefs.h.  */
36430
36431 #include <stddef.h>
36432 #include <stdlib.h>
36433 #if HAVE_STDINT_H_WITH_UINTMAX
36434 #include <stdint.h>
36435 #endif
36436 #if HAVE_INTTYPES_H_WITH_UINTMAX
36437 #include <inttypes.h>
36438 #endif
36439
36440 int
36441 main ()
36442 {
36443 intmax_t x = -1; return !x;
36444   ;
36445   return 0;
36446 }
36447 _ACEOF
36448 if ac_fn_c_try_compile "$LINENO"; then :
36449   gt_cv_c_intmax_t=yes
36450 else
36451   gt_cv_c_intmax_t=no
36452 fi
36453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36454 fi
36455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
36456 $as_echo "$gt_cv_c_intmax_t" >&6; }
36457   if test $gt_cv_c_intmax_t = yes; then
36458
36459 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
36460
36461   else
36462
36463     test $ac_cv_type_long_long_int = yes \
36464       && ac_type='long long' \
36465       || ac_type='long'
36466
36467 cat >>confdefs.h <<_ACEOF
36468 #define intmax_t $ac_type
36469 _ACEOF
36470
36471   fi
36472
36473
36474
36475
36476
36477
36478   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
36479 do :
36480   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36481 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
36482 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
36483   cat >>confdefs.h <<_ACEOF
36484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36485 _ACEOF
36486
36487 fi
36488 done
36489
36490       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
36491 "
36492 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
36493   ac_have_decl=1
36494 else
36495   ac_have_decl=0
36496 fi
36497
36498 cat >>confdefs.h <<_ACEOF
36499 #define HAVE_DECL__SNPRINTF $ac_have_decl
36500 _ACEOF
36501
36502
36503
36504   case "$gl_cv_func_snprintf_retval_c99" in
36505     *yes)
36506
36507 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
36508
36509       ;;
36510   esac
36511
36512 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
36513 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
36514   ac_have_decl=1
36515 else
36516   ac_have_decl=0
36517 fi
36518
36519 cat >>confdefs.h <<_ACEOF
36520 #define HAVE_DECL_VSNPRINTF $ac_have_decl
36521 _ACEOF
36522
36523
36524             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
36525 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
36526 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
36527   $as_echo_n "(cached) " >&6
36528 else
36529   gl_cv_header_wchar_h_correct_inline=yes
36530      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36531 /* end confdefs.h.  */
36532
36533        #define wcstod renamed_wcstod
36534 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
36535    <wchar.h>.
36536    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36537    included before <wchar.h>.  */
36538 #include <stddef.h>
36539 #include <stdio.h>
36540 #include <time.h>
36541 #include <wchar.h>
36542 extern int zero (void);
36543 int main () { return zero(); }
36544
36545 _ACEOF
36546      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
36547   (eval $ac_compile) 2>&5
36548   ac_status=$?
36549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36550   test $ac_status = 0; }; then
36551        mv conftest.$ac_objext conftest1.$ac_objext
36552        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36553 /* end confdefs.h.  */
36554
36555          #define wcstod renamed_wcstod
36556 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
36557    <wchar.h>.
36558    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36559    included before <wchar.h>.  */
36560 #include <stddef.h>
36561 #include <stdio.h>
36562 #include <time.h>
36563 #include <wchar.h>
36564 int zero (void) { return 0; }
36565
36566 _ACEOF
36567        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
36568   (eval $ac_compile) 2>&5
36569   ac_status=$?
36570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36571   test $ac_status = 0; }; then
36572          mv conftest.$ac_objext conftest2.$ac_objext
36573          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
36574            :
36575          else
36576            gl_cv_header_wchar_h_correct_inline=no
36577          fi
36578        fi
36579      fi
36580      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
36581
36582 fi
36583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
36584 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
36585   if test $gl_cv_header_wchar_h_correct_inline = no; then
36586     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
36587 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
36588 C99 mode. You have four options:
36589   - Add the flag -fgnu89-inline to CC and reconfigure, or
36590   - Fix your include files, using parts of
36591     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
36592   - Use a gcc version older than 4.3, or
36593   - Don't use the flags -std=c99 or -std=gnu99.
36594 Configuration aborted." "$LINENO" 5
36595   fi
36596
36597
36598
36599
36600   GNULIB_ISBLANK=0;
36601     HAVE_ISBLANK=1;
36602
36603 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
36604 if test "x$ac_cv_have_decl_alarm" = xyes; then :
36605   ac_have_decl=1
36606 else
36607   ac_have_decl=0
36608 fi
36609
36610 cat >>confdefs.h <<_ACEOF
36611 #define HAVE_DECL_ALARM $ac_have_decl
36612 _ACEOF
36613
36614
36615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
36616 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
36617 if ${gl_cv_var_stdin_large_offset+:} false; then :
36618   $as_echo_n "(cached) " >&6
36619 else
36620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36621 /* end confdefs.h.  */
36622 #include <stdio.h>
36623 int
36624 main ()
36625 {
36626 #if defined __SL64 && defined __SCLE /* cygwin */
36627   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
36628      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
36629      it is easier to do a version check than building a runtime test.  */
36630 # include <cygwin/version.h>
36631 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
36632   choke me
36633 # endif
36634 #endif
36635   ;
36636   return 0;
36637 }
36638 _ACEOF
36639 if ac_fn_c_try_link "$LINENO"; then :
36640   gl_cv_var_stdin_large_offset=yes
36641 else
36642   gl_cv_var_stdin_large_offset=no
36643 fi
36644 rm -f core conftest.err conftest.$ac_objext \
36645     conftest$ac_exeext conftest.$ac_ext
36646 fi
36647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
36648 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
36649
36650 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
36651 if test "x$ac_cv_have_decl_ftello" = xyes; then :
36652   ac_have_decl=1
36653 else
36654   ac_have_decl=0
36655 fi
36656
36657 cat >>confdefs.h <<_ACEOF
36658 #define HAVE_DECL_FTELLO $ac_have_decl
36659 _ACEOF
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670   if test $ac_cv_have_decl_ftello = no; then
36671     HAVE_DECL_FTELLO=0
36672   fi
36673
36674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
36675 $as_echo_n "checking for ftello... " >&6; }
36676 if ${gl_cv_func_ftello+:} false; then :
36677   $as_echo_n "(cached) " >&6
36678 else
36679
36680       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36681 /* end confdefs.h.  */
36682 #include <stdio.h>
36683 int
36684 main ()
36685 {
36686 ftello (stdin);
36687   ;
36688   return 0;
36689 }
36690 _ACEOF
36691 if ac_fn_c_try_link "$LINENO"; then :
36692   gl_cv_func_ftello=yes
36693 else
36694   gl_cv_func_ftello=no
36695 fi
36696 rm -f core conftest.err conftest.$ac_objext \
36697     conftest$ac_exeext conftest.$ac_ext
36698
36699 fi
36700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
36701 $as_echo "$gl_cv_func_ftello" >&6; }
36702   if test $gl_cv_func_ftello = no; then
36703     HAVE_FTELLO=0
36704   else
36705     if test $WINDOWS_64_BIT_OFF_T = 1; then
36706       REPLACE_FTELLO=1
36707     fi
36708     if test $gl_cv_var_stdin_large_offset = no; then
36709       REPLACE_FTELLO=1
36710     fi
36711     if test $REPLACE_FTELLO = 0; then
36712
36713       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
36714 $as_echo_n "checking whether ftello works... " >&6; }
36715 if ${gl_cv_func_ftello_works+:} false; then :
36716   $as_echo_n "(cached) " >&6
36717 else
36718
36719                               case "$host_os" in
36720                       # Guess no on Solaris.
36721             solaris*) gl_cv_func_ftello_works="guessing no" ;;
36722                       # Guess yes otherwise.
36723             *)        gl_cv_func_ftello_works="guessing yes" ;;
36724           esac
36725           if test "$cross_compiling" = yes; then :
36726   :
36727 else
36728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36729 /* end confdefs.h.  */
36730
36731 #include <stdio.h>
36732 #include <stdlib.h>
36733 #include <string.h>
36734 #define TESTFILE "conftest.tmp"
36735 int
36736 main (void)
36737 {
36738   FILE *fp;
36739
36740   /* Create a file with some contents.  */
36741   fp = fopen (TESTFILE, "w");
36742   if (fp == NULL)
36743     return 70;
36744   if (fwrite ("foogarsh", 1, 8, fp) < 8)
36745     return 71;
36746   if (fclose (fp))
36747     return 72;
36748
36749   /* The file's contents is now "foogarsh".  */
36750
36751   /* Try writing after reading to EOF.  */
36752   fp = fopen (TESTFILE, "r+");
36753   if (fp == NULL)
36754     return 73;
36755   if (fseek (fp, -1, SEEK_END))
36756     return 74;
36757   if (!(getc (fp) == 'h'))
36758     return 1;
36759   if (!(getc (fp) == EOF))
36760     return 2;
36761   if (!(ftell (fp) == 8))
36762     return 3;
36763   if (!(ftell (fp) == 8))
36764     return 4;
36765   if (!(putc ('!', fp) == '!'))
36766     return 5;
36767   if (!(ftell (fp) == 9))
36768     return 6;
36769   if (!(fclose (fp) == 0))
36770     return 7;
36771   fp = fopen (TESTFILE, "r");
36772   if (fp == NULL)
36773     return 75;
36774   {
36775     char buf[10];
36776     if (!(fread (buf, 1, 10, fp) == 9))
36777       return 10;
36778     if (!(memcmp (buf, "foogarsh!", 9) == 0))
36779       return 11;
36780   }
36781   if (!(fclose (fp) == 0))
36782     return 12;
36783
36784   /* The file's contents is now "foogarsh!".  */
36785
36786   return 0;
36787 }
36788 _ACEOF
36789 if ac_fn_c_try_run "$LINENO"; then :
36790   gl_cv_func_ftello_works=yes
36791 else
36792   gl_cv_func_ftello_works=no
36793 fi
36794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36795   conftest.$ac_objext conftest.beam conftest.$ac_ext
36796 fi
36797
36798
36799 fi
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
36801 $as_echo "$gl_cv_func_ftello_works" >&6; }
36802       case "$gl_cv_func_ftello_works" in
36803         *yes) ;;
36804         *)
36805           REPLACE_FTELLO=1
36806
36807 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
36808
36809           ;;
36810       esac
36811     fi
36812   fi
36813
36814
36815
36816
36817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
36818 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
36819 if ${gl_cv_func_ungetc_works+:} false; then :
36820   $as_echo_n "(cached) " >&6
36821 else
36822   if test "$cross_compiling" = yes; then :
36823   case "$host_os" in
36824                    # Guess yes on glibc and bionic systems.
36825            *-gnu*|*-android*)
36826                    gl_cv_func_ungetc_works="guessing yes" ;;
36827                    # If we don't know, assume the worst.
36828            *)      gl_cv_func_ungetc_works="guessing no" ;;
36829          esac
36830
36831 else
36832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36833 /* end confdefs.h.  */
36834
36835 #include <stdio.h>
36836
36837 int
36838 main ()
36839 {
36840 FILE *f;
36841            if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
36842            if (fputs ("abc", f) < 0) return 2;
36843            rewind (f);
36844            if (fgetc (f) != 'a') return 3;
36845            if (fgetc (f) != 'b') return 4;
36846            if (ungetc ('d', f) != 'd') return 5;
36847            if (ftell (f) != 1) return 6;
36848            if (fgetc (f) != 'd') return 7;
36849            if (ftell (f) != 2) return 8;
36850            if (fseek (f, 0, SEEK_CUR) != 0) return 9;
36851            if (ftell (f) != 2) return 10;
36852            if (fgetc (f) != 'c') return 11;
36853            fclose (f); remove ("conftest.tmp");
36854   ;
36855   return 0;
36856 }
36857 _ACEOF
36858 if ac_fn_c_try_run "$LINENO"; then :
36859   gl_cv_func_ungetc_works=yes
36860 else
36861   gl_cv_func_ungetc_works=no
36862 fi
36863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36864   conftest.$ac_objext conftest.beam conftest.$ac_ext
36865 fi
36866
36867
36868 fi
36869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
36870 $as_echo "$gl_cv_func_ungetc_works" >&6; }
36871   case "$gl_cv_func_ungetc_works" in
36872     *yes) ;;
36873     *)
36874
36875 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
36876
36877       ;;
36878   esac
36879
36880
36881
36882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
36883 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
36884 if ${gl_cv_func_getcwd_null+:} false; then :
36885   $as_echo_n "(cached) " >&6
36886 else
36887   if test "$cross_compiling" = yes; then :
36888   case "$host_os" in
36889                      # Guess yes on glibc systems.
36890             *-gnu*)  gl_cv_func_getcwd_null="guessing yes";;
36891                      # Guess yes on Cygwin.
36892             cygwin*) gl_cv_func_getcwd_null="guessing yes";;
36893                      # If we don't know, assume the worst.
36894             *)       gl_cv_func_getcwd_null="guessing no";;
36895           esac
36896
36897 else
36898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36899 /* end confdefs.h.  */
36900
36901 #        include <stdlib.h>
36902 #        if HAVE_UNISTD_H
36903 #         include <unistd.h>
36904 #        else /* on Windows with MSVC */
36905 #         include <direct.h>
36906 #        endif
36907 #        ifndef getcwd
36908          char *getcwd ();
36909 #        endif
36910
36911 int
36912 main ()
36913 {
36914
36915 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
36916 /* mingw cwd does not start with '/', but getcwd does allocate.
36917    However, mingw fails to honor non-zero size.  */
36918 #else
36919            if (chdir ("/") != 0)
36920              return 1;
36921            else
36922              {
36923                char *f = getcwd (NULL, 0);
36924                if (! f)
36925                  return 2;
36926                if (f[0] != '/')
36927                  return 3;
36928                if (f[1] != '\0')
36929                  return 4;
36930                free (f);
36931                return 0;
36932              }
36933 #endif
36934
36935   ;
36936   return 0;
36937 }
36938 _ACEOF
36939 if ac_fn_c_try_run "$LINENO"; then :
36940   gl_cv_func_getcwd_null=yes
36941 else
36942   gl_cv_func_getcwd_null=no
36943 fi
36944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36945   conftest.$ac_objext conftest.beam conftest.$ac_ext
36946 fi
36947
36948 fi
36949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
36950 $as_echo "$gl_cv_func_getcwd_null" >&6; }
36951
36952
36953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
36954 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
36955 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
36956   $as_echo_n "(cached) " >&6
36957 else
36958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36959 /* end confdefs.h.  */
36960 #include <unistd.h>
36961 int
36962 main ()
36963 {
36964 extern
36965            #ifdef __cplusplus
36966            "C"
36967            #endif
36968            char *getcwd (char *, size_t);
36969
36970   ;
36971   return 0;
36972 }
36973
36974 _ACEOF
36975 if ac_fn_c_try_compile "$LINENO"; then :
36976   gl_cv_func_getcwd_posix_signature=yes
36977 else
36978   gl_cv_func_getcwd_posix_signature=no
36979 fi
36980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36981
36982 fi
36983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
36984 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
36985
36986
36987
36988
36989   GNULIB_IMAXABS=0;
36990   GNULIB_IMAXDIV=0;
36991   GNULIB_STRTOIMAX=0;
36992   GNULIB_STRTOUMAX=0;
36993     HAVE_DECL_IMAXABS=1;
36994   HAVE_DECL_IMAXDIV=1;
36995   HAVE_DECL_STRTOIMAX=1;
36996   HAVE_DECL_STRTOUMAX=1;
36997   REPLACE_STRTOIMAX=0;
36998   REPLACE_STRTOUMAX=0;
36999   INT32_MAX_LT_INTMAX_MAX=1;
37000   INT64_MAX_EQ_LONG_MAX='defined _LP64';
37001   PRI_MACROS_BROKEN=0;
37002   PRIPTR_PREFIX=__PRIPTR_PREFIX;
37003   UINT32_MAX_LT_UINTMAX_MAX=1;
37004   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020      if test $gl_cv_have_include_next = yes; then
37021        gl_cv_next_inttypes_h='<'inttypes.h'>'
37022      else
37023        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
37024 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
37025 if ${gl_cv_next_inttypes_h+:} false; then :
37026   $as_echo_n "(cached) " >&6
37027 else
37028
37029              if test $ac_cv_header_inttypes_h = yes; then
37030
37031
37032
37033
37034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37035 /* end confdefs.h.  */
37036 #include <inttypes.h>
37037 _ACEOF
37038                 case "$host_os" in
37039     aix*) gl_absname_cpp="$ac_cpp -C" ;;
37040     *)    gl_absname_cpp="$ac_cpp" ;;
37041   esac
37042
37043   case "$host_os" in
37044     mingw*)
37045                                           gl_dirsep_regex='[/\\]'
37046       ;;
37047     *)
37048       gl_dirsep_regex='\/'
37049       ;;
37050   esac
37051       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37052   gl_header_literal_regex=`echo 'inttypes.h' \
37053                            | sed -e "$gl_make_literal_regex_sed"`
37054   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37055       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37056       s|^/[^/]|//&|
37057       p
37058       q
37059     }'
37060
37061         gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37062   sed -n "$gl_absolute_header_sed"`
37063
37064            gl_header=$gl_cv_absolute_inttypes_h
37065            gl_cv_next_inttypes_h='"'$gl_header'"'
37066           else
37067                gl_cv_next_inttypes_h='<'inttypes.h'>'
37068              fi
37069
37070
37071 fi
37072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
37073 $as_echo "$gl_cv_next_inttypes_h" >&6; }
37074      fi
37075      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
37076
37077      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37078        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37079        gl_next_as_first_directive='<'inttypes.h'>'
37080      else
37081        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37082        gl_next_as_first_directive=$gl_cv_next_inttypes_h
37083      fi
37084      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
37085
37086
37087
37088
37089
37090
37091
37092
37093     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
37094     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
37095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
37096 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
37097 if eval \${$as_gl_Symbol+:} false; then :
37098   $as_echo_n "(cached) " >&6
37099 else
37100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37101 /* end confdefs.h.  */
37102 #include <inttypes.h>
37103
37104 int
37105 main ()
37106 {
37107 #undef $gl_func
37108   (void) $gl_func;
37109   ;
37110   return 0;
37111 }
37112 _ACEOF
37113 if ac_fn_c_try_compile "$LINENO"; then :
37114   eval "$as_gl_Symbol=yes"
37115 else
37116   eval "$as_gl_Symbol=no"
37117 fi
37118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37119 fi
37120 eval ac_res=\$$as_gl_Symbol
37121                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
37122 $as_echo "$ac_res" >&6; }
37123     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
37124   cat >>confdefs.h <<_ACEOF
37125 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
37126 _ACEOF
37127
37128                      eval ac_cv_have_decl_$gl_func=yes
37129 fi
37130       done
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142    if true; then
37143   GL_COND_LIBTOOL_TRUE=
37144   GL_COND_LIBTOOL_FALSE='#'
37145 else
37146   GL_COND_LIBTOOL_TRUE='#'
37147   GL_COND_LIBTOOL_FALSE=
37148 fi
37149
37150   gl_cond_libtool=true
37151   gl_m4_base='gnulib-m4'
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161   gl_source_base='gnulib-lib'
37162
37163
37164
37165   LIB_ACL=
37166   use_acl=0
37167   if test "$enable_acl" != no; then
37168         for ac_header in sys/acl.h
37169 do :
37170   ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
37171 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
37172   cat >>confdefs.h <<_ACEOF
37173 #define HAVE_SYS_ACL_H 1
37174 _ACEOF
37175
37176 fi
37177
37178 done
37179
37180     if test $ac_cv_header_sys_acl_h = yes; then
37181       ac_save_LIBS=$LIBS
37182
37183                   if test $use_acl = 0; then
37184         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
37185 $as_echo_n "checking for library containing acl_get_file... " >&6; }
37186 if ${ac_cv_search_acl_get_file+:} false; then :
37187   $as_echo_n "(cached) " >&6
37188 else
37189   ac_func_search_save_LIBS=$LIBS
37190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37191 /* end confdefs.h.  */
37192
37193 /* Override any GCC internal prototype to avoid an error.
37194    Use char because int might match the return type of a GCC
37195    builtin and then its argument prototype would still apply.  */
37196 #ifdef __cplusplus
37197 extern "C"
37198 #endif
37199 char acl_get_file ();
37200 int
37201 main ()
37202 {
37203 return acl_get_file ();
37204   ;
37205   return 0;
37206 }
37207 _ACEOF
37208 for ac_lib in '' acl pacl; do
37209   if test -z "$ac_lib"; then
37210     ac_res="none required"
37211   else
37212     ac_res=-l$ac_lib
37213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37214   fi
37215   if ac_fn_c_try_link "$LINENO"; then :
37216   ac_cv_search_acl_get_file=$ac_res
37217 fi
37218 rm -f core conftest.err conftest.$ac_objext \
37219     conftest$ac_exeext
37220   if ${ac_cv_search_acl_get_file+:} false; then :
37221   break
37222 fi
37223 done
37224 if ${ac_cv_search_acl_get_file+:} false; then :
37225
37226 else
37227   ac_cv_search_acl_get_file=no
37228 fi
37229 rm conftest.$ac_ext
37230 LIBS=$ac_func_search_save_LIBS
37231 fi
37232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
37233 $as_echo "$ac_cv_search_acl_get_file" >&6; }
37234 ac_res=$ac_cv_search_acl_get_file
37235 if test "$ac_res" != no; then :
37236   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37237   if test "$ac_cv_search_acl_get_file" != "none required"; then
37238              LIB_ACL=$ac_cv_search_acl_get_file
37239            fi
37240            for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
37241               acl_free acl_from_mode acl_from_text \
37242               acl_delete_def_file acl_extended_file \
37243               acl_delete_fd_np acl_delete_file_np \
37244               acl_copy_ext_native acl_create_entry_np \
37245               acl_to_short_text acl_free_text
37246 do :
37247   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37249 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37250   cat >>confdefs.h <<_ACEOF
37251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37252 _ACEOF
37253
37254 fi
37255 done
37256
37257            # If the acl_get_file bug is detected, don't enable the ACL support.
37258
37259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
37260 $as_echo_n "checking for working acl_get_file... " >&6; }
37261 if ${gl_cv_func_working_acl_get_file+:} false; then :
37262   $as_echo_n "(cached) " >&6
37263 else
37264   gl_cv_func_working_acl_get_file=no
37265      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37266 /* end confdefs.h.  */
37267 #include <sys/types.h>
37268            #include <sys/acl.h>
37269            #include <errno.h>
37270
37271 int
37272 main ()
37273 {
37274 acl_t acl = acl_get_file (".", ACL_TYPE_ACCESS);
37275             return acl ? acl_free (acl) != 0 : errno == ENOENT;
37276
37277   ;
37278   return 0;
37279 }
37280 _ACEOF
37281 if ac_fn_c_try_link "$LINENO"; then :
37282   if test $cross_compiling = yes; then
37283           gl_cv_func_working_acl_get_file="guessing yes"
37284         elif ./conftest$ac_exeext; then
37285           gl_cv_func_working_acl_get_file=yes
37286         fi
37287 fi
37288 rm -f core conftest.err conftest.$ac_objext \
37289     conftest$ac_exeext conftest.$ac_ext
37290 fi
37291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
37292 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
37293   if test "$gl_cv_func_working_acl_get_file" != no; then :
37294   use_acl=1
37295 fi
37296
37297            if test $use_acl = 1; then
37298                           for ac_header in acl/libacl.h
37299 do :
37300   ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
37301 if test "x$ac_cv_header_acl_libacl_h" = xyes; then :
37302   cat >>confdefs.h <<_ACEOF
37303 #define HAVE_ACL_LIBACL_H 1
37304 _ACEOF
37305
37306 fi
37307
37308 done
37309
37310
37311
37312
37313
37314
37315
37316
37317
37318   for ac_func in acl_entries
37319 do :
37320   ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
37321 if test "x$ac_cv_func_acl_entries" = xyes; then :
37322   cat >>confdefs.h <<_ACEOF
37323 #define HAVE_ACL_ENTRIES 1
37324 _ACEOF
37325
37326 else
37327
37328     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37329
37330 fi
37331 done
37332
37333
37334              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
37335 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
37336 if ${gl_cv_acl_ACL_FIRST_ENTRY+:} false; then :
37337   $as_echo_n "(cached) " >&6
37338 else
37339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37340 /* end confdefs.h.  */
37341 #include <sys/types.h>
37342 #include <sys/acl.h>
37343 int type = ACL_FIRST_ENTRY;
37344 int
37345 main ()
37346 {
37347
37348   ;
37349   return 0;
37350 }
37351 _ACEOF
37352 if ac_fn_c_try_compile "$LINENO"; then :
37353   gl_cv_acl_ACL_FIRST_ENTRY=yes
37354 else
37355   gl_cv_acl_ACL_FIRST_ENTRY=no
37356 fi
37357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37358 fi
37359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
37360 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
37361              if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
37362
37363 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
37364
37365              fi
37366                           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
37367 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
37368 if ${gl_cv_acl_ACL_TYPE_EXTENDED+:} false; then :
37369   $as_echo_n "(cached) " >&6
37370 else
37371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37372 /* end confdefs.h.  */
37373 #include <sys/types.h>
37374 #include <sys/acl.h>
37375 int type = ACL_TYPE_EXTENDED;
37376 int
37377 main ()
37378 {
37379
37380   ;
37381   return 0;
37382 }
37383 _ACEOF
37384 if ac_fn_c_try_compile "$LINENO"; then :
37385   gl_cv_acl_ACL_TYPE_EXTENDED=yes
37386 else
37387   gl_cv_acl_ACL_TYPE_EXTENDED=no
37388 fi
37389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37390 fi
37391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
37392 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
37393              if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
37394
37395 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
37396
37397              fi
37398            else
37399              LIB_ACL=
37400            fi
37401
37402 fi
37403
37404       fi
37405
37406             if test $use_acl = 0; then
37407         for ac_func in facl
37408 do :
37409   ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
37410 if test "x$ac_cv_func_facl" = xyes; then :
37411   cat >>confdefs.h <<_ACEOF
37412 #define HAVE_FACL 1
37413 _ACEOF
37414
37415 fi
37416 done
37417
37418         if test $ac_cv_func_facl = yes; then
37419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
37420 $as_echo_n "checking for library containing acl_trivial... " >&6; }
37421 if ${ac_cv_search_acl_trivial+:} false; then :
37422   $as_echo_n "(cached) " >&6
37423 else
37424   ac_func_search_save_LIBS=$LIBS
37425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37426 /* end confdefs.h.  */
37427
37428 /* Override any GCC internal prototype to avoid an error.
37429    Use char because int might match the return type of a GCC
37430    builtin and then its argument prototype would still apply.  */
37431 #ifdef __cplusplus
37432 extern "C"
37433 #endif
37434 char acl_trivial ();
37435 int
37436 main ()
37437 {
37438 return acl_trivial ();
37439   ;
37440   return 0;
37441 }
37442 _ACEOF
37443 for ac_lib in '' sec; do
37444   if test -z "$ac_lib"; then
37445     ac_res="none required"
37446   else
37447     ac_res=-l$ac_lib
37448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37449   fi
37450   if ac_fn_c_try_link "$LINENO"; then :
37451   ac_cv_search_acl_trivial=$ac_res
37452 fi
37453 rm -f core conftest.err conftest.$ac_objext \
37454     conftest$ac_exeext
37455   if ${ac_cv_search_acl_trivial+:} false; then :
37456   break
37457 fi
37458 done
37459 if ${ac_cv_search_acl_trivial+:} false; then :
37460
37461 else
37462   ac_cv_search_acl_trivial=no
37463 fi
37464 rm conftest.$ac_ext
37465 LIBS=$ac_func_search_save_LIBS
37466 fi
37467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
37468 $as_echo "$ac_cv_search_acl_trivial" >&6; }
37469 ac_res=$ac_cv_search_acl_trivial
37470 if test "$ac_res" != no; then :
37471   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37472   if test "$ac_cv_search_acl_trivial" != "none required"; then
37473                LIB_ACL=$ac_cv_search_acl_trivial
37474              fi
37475
37476 fi
37477
37478           for ac_func in acl_trivial
37479 do :
37480   ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
37481 if test "x$ac_cv_func_acl_trivial" = xyes; then :
37482   cat >>confdefs.h <<_ACEOF
37483 #define HAVE_ACL_TRIVIAL 1
37484 _ACEOF
37485
37486 fi
37487 done
37488
37489           use_acl=1
37490         fi
37491       fi
37492
37493             if test $use_acl = 0; then
37494         for ac_func in getacl
37495 do :
37496   ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
37497 if test "x$ac_cv_func_getacl" = xyes; then :
37498   cat >>confdefs.h <<_ACEOF
37499 #define HAVE_GETACL 1
37500 _ACEOF
37501
37502 fi
37503 done
37504
37505         if test $ac_cv_func_getacl = yes; then
37506           use_acl=1
37507         fi
37508                 for ac_header in aclv.h
37509 do :
37510   ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
37511 "
37512 if test "x$ac_cv_header_aclv_h" = xyes; then :
37513   cat >>confdefs.h <<_ACEOF
37514 #define HAVE_ACLV_H 1
37515 _ACEOF
37516
37517 fi
37518
37519 done
37520
37521       fi
37522
37523             if test $use_acl = 0; then
37524         for ac_func in aclx_get
37525 do :
37526   ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
37527 if test "x$ac_cv_func_aclx_get" = xyes; then :
37528   cat >>confdefs.h <<_ACEOF
37529 #define HAVE_ACLX_GET 1
37530 _ACEOF
37531
37532 fi
37533 done
37534
37535         if test $ac_cv_func_aclx_get = yes; then
37536           use_acl=1
37537         fi
37538       fi
37539
37540             if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
37541         for ac_func in statacl
37542 do :
37543   ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
37544 if test "x$ac_cv_func_statacl" = xyes; then :
37545   cat >>confdefs.h <<_ACEOF
37546 #define HAVE_STATACL 1
37547 _ACEOF
37548
37549 fi
37550 done
37551
37552         if test $ac_cv_func_statacl = yes; then
37553           use_acl=1
37554         fi
37555       fi
37556
37557             if test $use_acl = 0; then
37558         for ac_func in aclsort
37559 do :
37560   ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
37561 if test "x$ac_cv_func_aclsort" = xyes; then :
37562   cat >>confdefs.h <<_ACEOF
37563 #define HAVE_ACLSORT 1
37564 _ACEOF
37565
37566 fi
37567 done
37568
37569         if test $ac_cv_func_aclsort = yes; then
37570           use_acl=1
37571         fi
37572       fi
37573
37574       LIBS=$ac_save_LIBS
37575     fi
37576
37577     if test "$enable_acl$use_acl" = yes0; then
37578       as_fn_error $? "ACLs enabled but support not detected" "$LINENO" 5
37579     elif test "$enable_acl$use_acl" = auto0; then
37580       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
37581 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
37582       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gettext-tools will be built without ACL support." >&5
37583 $as_echo "$as_me: WARNING: gettext-tools will be built without ACL support." >&2;}
37584     fi
37585   fi
37586   test $gl_need_lib_has_acl && LIB_HAS_ACL=$LIB_ACL
37587
37588
37589 cat >>confdefs.h <<_ACEOF
37590 #define USE_ACL $use_acl
37591 _ACEOF
37592
37593   USE_ACL=$use_acl
37594
37595
37596
37597
37598
37599
37600
37601   if test $ac_cv_func_alloca_works = no; then
37602
37603
37604   :
37605
37606   fi
37607
37608   # Define an additional variable used in the Makefile substitution.
37609
37610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37611 /* end confdefs.h.  */
37612
37613 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
37614   Need own alloca
37615 #endif
37616
37617 _ACEOF
37618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37619   $EGREP "Need own alloca" >/dev/null 2>&1; then :
37620   ALLOCA_H=alloca.h
37621 else
37622   ALLOCA_H=
37623 fi
37624 rm -f conftest*
37625
37626
37627    if test -n "$ALLOCA_H"; then
37628   GL_GENERATE_ALLOCA_H_TRUE=
37629   GL_GENERATE_ALLOCA_H_FALSE='#'
37630 else
37631   GL_GENERATE_ALLOCA_H_TRUE='#'
37632   GL_GENERATE_ALLOCA_H_FALSE=
37633 fi
37634
37635
37636
37637
37638
37639   if test "$CXX_CHOICE" = no; then
37640     CXX=no
37641   fi
37642   if test -z "$CXX"; then
37643     if test -n "$CCC"; then
37644       CXX="$CCC"
37645     else
37646       if test -n "$ac_tool_prefix"; then
37647   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
37648   do
37649     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37652 $as_echo_n "checking for $ac_word... " >&6; }
37653 if ${ac_cv_prog_CXX+:} false; then :
37654   $as_echo_n "(cached) " >&6
37655 else
37656   if test -n "$CXX"; then
37657   ac_cv_prog_CXX="$CXX" # Let the user override the test.
37658 else
37659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37660 for as_dir in $PATH
37661 do
37662   IFS=$as_save_IFS
37663   test -z "$as_dir" && as_dir=.
37664     for ac_exec_ext in '' $ac_executable_extensions; do
37665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37666     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
37667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37668     break 2
37669   fi
37670 done
37671   done
37672 IFS=$as_save_IFS
37673
37674 fi
37675 fi
37676 CXX=$ac_cv_prog_CXX
37677 if test -n "$CXX"; then
37678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
37679 $as_echo "$CXX" >&6; }
37680 else
37681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37682 $as_echo "no" >&6; }
37683 fi
37684
37685
37686     test -n "$CXX" && break
37687   done
37688 fi
37689 if test -z "$CXX"; then
37690   ac_ct_CXX=$CXX
37691   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
37692 do
37693   # Extract the first word of "$ac_prog", so it can be a program name with args.
37694 set dummy $ac_prog; ac_word=$2
37695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37696 $as_echo_n "checking for $ac_word... " >&6; }
37697 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
37698   $as_echo_n "(cached) " >&6
37699 else
37700   if test -n "$ac_ct_CXX"; then
37701   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
37702 else
37703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37704 for as_dir in $PATH
37705 do
37706   IFS=$as_save_IFS
37707   test -z "$as_dir" && as_dir=.
37708     for ac_exec_ext in '' $ac_executable_extensions; do
37709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37710     ac_cv_prog_ac_ct_CXX="$ac_prog"
37711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37712     break 2
37713   fi
37714 done
37715   done
37716 IFS=$as_save_IFS
37717
37718 fi
37719 fi
37720 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
37721 if test -n "$ac_ct_CXX"; then
37722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
37723 $as_echo "$ac_ct_CXX" >&6; }
37724 else
37725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37726 $as_echo "no" >&6; }
37727 fi
37728
37729
37730   test -n "$ac_ct_CXX" && break
37731 done
37732
37733   if test "x$ac_ct_CXX" = x; then
37734     CXX=":"
37735   else
37736     case $cross_compiling:$ac_tool_warned in
37737 yes:)
37738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37740 ac_tool_warned=yes ;;
37741 esac
37742     CXX=$ac_ct_CXX
37743   fi
37744 fi
37745
37746     fi
37747   fi
37748   if test "$CXX" != no; then
37749             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
37750 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
37751     ac_ext=cpp
37752 ac_cpp='$CXXCPP $CPPFLAGS'
37753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37756
37757
37758
37759     echo 'int main () { return 0; }' > conftest.$ac_ext
37760     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
37761   (eval $ac_link) 2>&5
37762   ac_status=$?
37763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37764   test $ac_status = 0; } && test -s conftest$ac_exeext; then
37765       gl_cv_prog_ansicxx_works=yes
37766       if (./conftest; exit) 2>/dev/null; then
37767         gl_cv_prog_ansicxx_cross=no
37768       else
37769         gl_cv_prog_ansicxx_cross=yes
37770       fi
37771     else
37772       gl_cv_prog_ansicxx_works=no
37773     fi
37774     rm -fr conftest*
37775     ac_ext=c
37776 ac_cpp='$CPP $CPPFLAGS'
37777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37780
37781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
37782 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
37783     if test $gl_cv_prog_ansicxx_works = no; then
37784       CXX=no
37785     else
37786                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
37787 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
37788       ac_ext=cpp
37789 ac_cpp='$CXXCPP $CPPFLAGS'
37790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37793
37794       cat <<EOF > conftest.$ac_ext
37795 #include <iostream>
37796 namespace test { using namespace std; }
37797 std::ostream* ptr;
37798 int main () { return 0; }
37799 EOF
37800       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
37801   (eval $ac_link) 2>&5
37802   ac_status=$?
37803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37804   test $ac_status = 0; } && test -s conftest$ac_exeext; then
37805         gl_cv_prog_ansicxx_namespaces=yes
37806       else
37807         gl_cv_prog_ansicxx_namespaces=no
37808       fi
37809       rm -fr conftest*
37810       ac_ext=c
37811 ac_cpp='$CPP $CPPFLAGS'
37812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37815
37816       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
37817 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
37818       if test $gl_cv_prog_ansicxx_namespaces = no; then
37819         CXX=no
37820       fi
37821     fi
37822   fi
37823
37824
37825
37826    if test "$CXX" != no; then
37827   ANSICXX_TRUE=
37828   ANSICXX_FALSE='#'
37829 else
37830   ANSICXX_TRUE='#'
37831   ANSICXX_FALSE=
37832 fi
37833
37834
37835   if test "$CXX" != no; then
37836
37837 depcc="$CXX"  am_compiler_list=
37838
37839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
37840 $as_echo_n "checking dependency style of $depcc... " >&6; }
37841 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
37842   $as_echo_n "(cached) " >&6
37843 else
37844   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
37845   # We make a subdir and do the tests there.  Otherwise we can end up
37846   # making bogus files that we don't know about and never remove.  For
37847   # instance it was reported that on HP-UX the gcc test will end up
37848   # making a dummy file named 'D' -- because '-MD' means "put the output
37849   # in D".
37850   rm -rf conftest.dir
37851   mkdir conftest.dir
37852   # Copy depcomp to subdir because otherwise we won't find it if we're
37853   # using a relative directory.
37854   cp "$am_depcomp" conftest.dir
37855   cd conftest.dir
37856   # We will build objects and dependencies in a subdirectory because
37857   # it helps to detect inapplicable dependency modes.  For instance
37858   # both Tru64's cc and ICC support -MD to output dependencies as a
37859   # side effect of compilation, but ICC will put the dependencies in
37860   # the current directory while Tru64 will put them in the object
37861   # directory.
37862   mkdir sub
37863
37864   am_cv_CXX_dependencies_compiler_type=none
37865   if test "$am_compiler_list" = ""; then
37866      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
37867   fi
37868   am__universal=false
37869   case " $depcc " in #(
37870      *\ -arch\ *\ -arch\ *) am__universal=true ;;
37871      esac
37872
37873   for depmode in $am_compiler_list; do
37874     # Setup a source with many dependencies, because some compilers
37875     # like to wrap large dependency lists on column 80 (with \), and
37876     # we should not choose a depcomp mode which is confused by this.
37877     #
37878     # We need to recreate these files for each test, as the compiler may
37879     # overwrite some of them when testing with obscure command lines.
37880     # This happens at least with the AIX C compiler.
37881     : > sub/conftest.c
37882     for i in 1 2 3 4 5 6; do
37883       echo '#include "conftst'$i'.h"' >> sub/conftest.c
37884       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
37885       # Solaris 10 /bin/sh.
37886       echo '/* dummy */' > sub/conftst$i.h
37887     done
37888     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
37889
37890     # We check with '-c' and '-o' for the sake of the "dashmstdout"
37891     # mode.  It turns out that the SunPro C++ compiler does not properly
37892     # handle '-M -o', and we need to detect this.  Also, some Intel
37893     # versions had trouble with output in subdirs.
37894     am__obj=sub/conftest.${OBJEXT-o}
37895     am__minus_obj="-o $am__obj"
37896     case $depmode in
37897     gcc)
37898       # This depmode causes a compiler race in universal mode.
37899       test "$am__universal" = false || continue
37900       ;;
37901     nosideeffect)
37902       # After this tag, mechanisms are not by side-effect, so they'll
37903       # only be used when explicitly requested.
37904       if test "x$enable_dependency_tracking" = xyes; then
37905         continue
37906       else
37907         break
37908       fi
37909       ;;
37910     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
37911       # This compiler won't grok '-c -o', but also, the minuso test has
37912       # not run yet.  These depmodes are late enough in the game, and
37913       # so weak that their functioning should not be impacted.
37914       am__obj=conftest.${OBJEXT-o}
37915       am__minus_obj=
37916       ;;
37917     none) break ;;
37918     esac
37919     if depmode=$depmode \
37920        source=sub/conftest.c object=$am__obj \
37921        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
37922        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
37923          >/dev/null 2>conftest.err &&
37924        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
37925        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
37926        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
37927        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
37928       # icc doesn't choke on unknown options, it will just issue warnings
37929       # or remarks (even with -Werror).  So we grep stderr for any message
37930       # that says an option was ignored or not supported.
37931       # When given -MP, icc 7.0 and 7.1 complain thusly:
37932       #   icc: Command line warning: ignoring option '-M'; no argument required
37933       # The diagnosis changed in icc 8.0:
37934       #   icc: Command line remark: option '-MP' not supported
37935       if (grep 'ignoring option' conftest.err ||
37936           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
37937         am_cv_CXX_dependencies_compiler_type=$depmode
37938         break
37939       fi
37940     fi
37941   done
37942
37943   cd ..
37944   rm -rf conftest.dir
37945 else
37946   am_cv_CXX_dependencies_compiler_type=none
37947 fi
37948
37949 fi
37950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
37951 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
37952 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
37953
37954  if
37955   test "x$enable_dependency_tracking" != xno \
37956   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
37957   am__fastdepCXX_TRUE=
37958   am__fastdepCXX_FALSE='#'
37959 else
37960   am__fastdepCXX_TRUE='#'
37961   am__fastdepCXX_FALSE=
37962 fi
37963
37964
37965   else
37966      if false; then
37967   am__fastdepCXX_TRUE=
37968   am__fastdepCXX_FALSE='#'
37969 else
37970   am__fastdepCXX_TRUE='#'
37971   am__fastdepCXX_FALSE=
37972 fi
37973
37974   fi
37975
37976
37977   for ac_func in atexit
37978 do :
37979   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
37980 if test "x$ac_cv_func_atexit" = xyes; then :
37981   cat >>confdefs.h <<_ACEOF
37982 #define HAVE_ATEXIT 1
37983 _ACEOF
37984
37985 fi
37986 done
37987
37988
37989   if test $ac_cv_func_atexit = no; then
37990
37991
37992
37993
37994
37995
37996
37997
37998   gl_LIBOBJS="$gl_LIBOBJS atexit.$ac_objext"
37999
38000
38001   :
38002
38003   fi
38004
38005     for ac_header in dirent.h string.h
38006 do :
38007   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38008 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38010   cat >>confdefs.h <<_ACEOF
38011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38012 _ACEOF
38013
38014 fi
38015
38016 done
38017
38018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
38019 $as_echo_n "checking for long file names... " >&6; }
38020 if ${ac_cv_sys_long_file_names+:} false; then :
38021   $as_echo_n "(cached) " >&6
38022 else
38023   ac_cv_sys_long_file_names=yes
38024 # Test for long file names in all the places we know might matter:
38025 #      .                the current directory, where building will happen
38026 #      $prefix/lib      where we will be installing things
38027 #      $exec_prefix/lib likewise
38028 #      $TMPDIR          if set, where it might want to write temporary files
38029 #      /tmp             where it might want to write temporary files
38030 #      /var/tmp         likewise
38031 #      /usr/tmp         likewise
38032 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
38033   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
38034   # in the usual case where exec_prefix is '${prefix}'.
38035   case $ac_dir in #(
38036     . | /* | ?:[\\/]*) ;; #(
38037     *) continue;;
38038   esac
38039   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
38040   ac_xdir=$ac_dir/cf$$
38041   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
38042   ac_tf1=$ac_xdir/conftest9012345
38043   ac_tf2=$ac_xdir/conftest9012346
38044   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
38045     ac_cv_sys_long_file_names=no
38046   rm -f -r "$ac_xdir" 2>/dev/null
38047   test $ac_cv_sys_long_file_names = no && break
38048 done
38049 fi
38050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
38051 $as_echo "$ac_cv_sys_long_file_names" >&6; }
38052 if test $ac_cv_sys_long_file_names = yes; then
38053
38054 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
38055
38056 fi
38057
38058   for ac_func in pathconf
38059 do :
38060   ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
38061 if test "x$ac_cv_func_pathconf" = xyes; then :
38062   cat >>confdefs.h <<_ACEOF
38063 #define HAVE_PATHCONF 1
38064 _ACEOF
38065
38066 fi
38067 done
38068
38069   for ac_header in string.h unistd.h
38070 do :
38071   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38072 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38074   cat >>confdefs.h <<_ACEOF
38075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38076 _ACEOF
38077
38078 fi
38079
38080 done
38081
38082
38083
38084   if test -z "$USE_NLS"; then
38085     echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
38086     exit 1
38087   fi
38088   BISON_LOCALEDIR=
38089   BISON_USE_NLS=no
38090   if test "$USE_NLS" = yes; then
38091                         if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
38092       BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
38093     fi
38094
38095     if test -n "$BISON_LOCALEDIR"; then
38096                               USER_LINGUAS="${LINGUAS-%UNSET%}"
38097       if test -n "$USER_LINGUAS"; then
38098         BISON_USE_NLS=yes
38099       fi
38100     fi
38101   fi
38102   if test $BISON_USE_NLS = yes; then
38103
38104 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
38105
38106   fi
38107
38108
38109     for ac_header in byteswap.h
38110 do :
38111   ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
38112 if test "x$ac_cv_header_byteswap_h" = xyes; then :
38113   cat >>confdefs.h <<_ACEOF
38114 #define HAVE_BYTESWAP_H 1
38115 _ACEOF
38116
38117     BYTESWAP_H=''
38118
38119 else
38120
38121     BYTESWAP_H='byteswap.h'
38122
38123 fi
38124
38125 done
38126
38127
38128    if test -n "$BYTESWAP_H"; then
38129   GL_GENERATE_BYTESWAP_H_TRUE=
38130   GL_GENERATE_BYTESWAP_H_FALSE='#'
38131 else
38132   GL_GENERATE_BYTESWAP_H_TRUE='#'
38133   GL_GENERATE_BYTESWAP_H_FALSE=
38134 fi
38135
38136
38137
38138
38139
38140   if test $ac_cv_func_canonicalize_file_name = no; then
38141     HAVE_CANONICALIZE_FILE_NAME=0
38142     if test $ac_cv_func_realpath = no; then
38143       HAVE_REALPATH=0
38144     else
38145       case "$gl_cv_func_realpath_works" in
38146         *yes) ;;
38147         *)    REPLACE_REALPATH=1 ;;
38148       esac
38149     fi
38150   else
38151     case "$gl_cv_func_realpath_works" in
38152       *yes)
38153         ;;
38154       *)
38155         REPLACE_CANONICALIZE_FILE_NAME=1
38156         REPLACE_REALPATH=1
38157         ;;
38158     esac
38159   fi
38160
38161   if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
38162
38163
38164
38165
38166
38167
38168
38169
38170   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
38171
38172   fi
38173
38174
38175 cat >>confdefs.h <<_ACEOF
38176 #define GNULIB_CANONICALIZE_LGPL 1
38177 _ACEOF
38178
38179
38180
38181
38182
38183
38184
38185           GNULIB_CANONICALIZE_FILE_NAME=1
38186
38187
38188
38189
38190
38191 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
38192
38193
38194
38195
38196
38197
38198
38199
38200           GNULIB_REALPATH=1
38201
38202
38203
38204
38205
38206 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
38207
38208
38209
38210
38211
38212 $as_echo "#define SIGNAL_SAFE_LIST 1" >>confdefs.h
38213
38214
38215
38216 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
38217
38218
38219
38220
38221
38222   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
38223     REPLACE_CLOSE=1
38224   fi
38225
38226
38227
38228
38229
38230   if test $ac_cv_header_sys_socket_h != yes; then
38231                     for ac_header in winsock2.h
38232 do :
38233   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
38234 if test "x$ac_cv_header_winsock2_h" = xyes; then :
38235   cat >>confdefs.h <<_ACEOF
38236 #define HAVE_WINSOCK2_H 1
38237 _ACEOF
38238
38239 fi
38240
38241 done
38242
38243   fi
38244   if test "$ac_cv_header_winsock2_h" = yes; then
38245     HAVE_WINSOCK2_H=1
38246     UNISTD_H_HAVE_WINSOCK2_H=1
38247     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
38248   else
38249     HAVE_WINSOCK2_H=0
38250   fi
38251
38252
38253     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
38254                         REPLACE_CLOSE=1
38255     fi
38256
38257
38258
38259   if test $REPLACE_CLOSE = 1; then
38260
38261
38262
38263
38264
38265
38266
38267
38268   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
38269
38270   fi
38271
38272
38273
38274
38275
38276           GNULIB_CLOSE=1
38277
38278
38279
38280
38281
38282 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
38283
38284
38285
38286
38287
38288
38289   for ac_func in closedir
38290 do :
38291   ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
38292 if test "x$ac_cv_func_closedir" = xyes; then :
38293   cat >>confdefs.h <<_ACEOF
38294 #define HAVE_CLOSEDIR 1
38295 _ACEOF
38296
38297 fi
38298 done
38299
38300   if test $ac_cv_func_closedir = no; then
38301     HAVE_CLOSEDIR=0
38302   fi
38303
38304     case $host_os,$HAVE_CLOSEDIR in
38305     os2*,1)
38306       REPLACE_CLOSEDIR=1;;
38307   esac
38308
38309   if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
38310
38311
38312
38313
38314
38315
38316
38317
38318   gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
38319
38320   fi
38321
38322
38323
38324
38325
38326           GNULIB_CLOSEDIR=1
38327
38328
38329
38330
38331
38332 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
38333
38334
38335
38336
38337           if test "x$datarootdir" = x; then
38338     datarootdir='${datadir}'
38339
38340   fi
38341     if test "x$docdir" = x; then
38342     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
38343
38344   fi
38345     if test "x$htmldir" = x; then
38346     htmldir='${docdir}'
38347
38348   fi
38349   if test "x$dvidir" = x; then
38350     dvidir='${docdir}'
38351
38352   fi
38353   if test "x$pdfdir" = x; then
38354     pdfdir='${docdir}'
38355
38356   fi
38357   if test "x$psdir" = x; then
38358     psdir='${docdir}'
38359
38360   fi
38361   if test "x$lispdir" = x; then
38362     lispdir='${datarootdir}/emacs/site-lisp'
38363
38364   fi
38365   if test "x$localedir" = x; then
38366     localedir='${datarootdir}/locale'
38367
38368   fi
38369     if test "x$runstatedir" = x; then
38370     runstatedir='${localstatedir}/run'
38371
38372   fi
38373
38374       pkglibexecdir='${libexecdir}/${PACKAGE}'
38375
38376
38377
38378
38379   for ac_func in chown utime utimes
38380 do :
38381   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38383 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38384   cat >>confdefs.h <<_ACEOF
38385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38386 _ACEOF
38387
38388 fi
38389 done
38390
38391
38392
38393   ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
38394
38395   # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments.
38396   ac_config_files="$ac_config_files csharpexec.sh:../build-aux/csharpexec.sh.in"
38397
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410      if test $gl_cv_have_include_next = yes; then
38411        gl_cv_next_dirent_h='<'dirent.h'>'
38412      else
38413        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
38414 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
38415 if ${gl_cv_next_dirent_h+:} false; then :
38416   $as_echo_n "(cached) " >&6
38417 else
38418
38419              if test $ac_cv_header_dirent_h = yes; then
38420
38421
38422
38423
38424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38425 /* end confdefs.h.  */
38426 #include <dirent.h>
38427 _ACEOF
38428                 case "$host_os" in
38429     aix*) gl_absname_cpp="$ac_cpp -C" ;;
38430     *)    gl_absname_cpp="$ac_cpp" ;;
38431   esac
38432
38433   case "$host_os" in
38434     mingw*)
38435                                           gl_dirsep_regex='[/\\]'
38436       ;;
38437     *)
38438       gl_dirsep_regex='\/'
38439       ;;
38440   esac
38441       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
38442   gl_header_literal_regex=`echo 'dirent.h' \
38443                            | sed -e "$gl_make_literal_regex_sed"`
38444   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
38445       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
38446       s|^/[^/]|//&|
38447       p
38448       q
38449     }'
38450
38451         gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38452   sed -n "$gl_absolute_header_sed"`
38453
38454            gl_header=$gl_cv_absolute_dirent_h
38455            gl_cv_next_dirent_h='"'$gl_header'"'
38456           else
38457                gl_cv_next_dirent_h='<'dirent.h'>'
38458              fi
38459
38460
38461 fi
38462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
38463 $as_echo "$gl_cv_next_dirent_h" >&6; }
38464      fi
38465      NEXT_DIRENT_H=$gl_cv_next_dirent_h
38466
38467      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38468        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38469        gl_next_as_first_directive='<'dirent.h'>'
38470      else
38471        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38472        gl_next_as_first_directive=$gl_cv_next_dirent_h
38473      fi
38474      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
38475
38476
38477
38478
38479   if test $ac_cv_header_dirent_h = yes; then
38480     HAVE_DIRENT_H=1
38481   else
38482     HAVE_DIRENT_H=0
38483   fi
38484
38485
38486
38487     for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
38488     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
38489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
38490 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
38491 if eval \${$as_gl_Symbol+:} false; then :
38492   $as_echo_n "(cached) " >&6
38493 else
38494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38495 /* end confdefs.h.  */
38496 #include <dirent.h>
38497
38498 int
38499 main ()
38500 {
38501 #undef $gl_func
38502   (void) $gl_func;
38503   ;
38504   return 0;
38505 }
38506 _ACEOF
38507 if ac_fn_c_try_compile "$LINENO"; then :
38508   eval "$as_gl_Symbol=yes"
38509 else
38510   eval "$as_gl_Symbol=no"
38511 fi
38512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38513 fi
38514 eval ac_res=\$$as_gl_Symbol
38515                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
38516 $as_echo "$ac_res" >&6; }
38517     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
38518   cat >>confdefs.h <<_ACEOF
38519 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
38520 _ACEOF
38521
38522                      eval ac_cv_have_decl_$gl_func=yes
38523 fi
38524       done
38525
38526
38527
38528
38529
38530
38531
38532   for ac_func in dirfd
38533 do :
38534   ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
38535 if test "x$ac_cv_func_dirfd" = xyes; then :
38536   cat >>confdefs.h <<_ACEOF
38537 #define HAVE_DIRFD 1
38538 _ACEOF
38539
38540 fi
38541 done
38542
38543   ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
38544       #include <dirent.h>
38545 "
38546 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
38547   ac_have_decl=1
38548 else
38549   ac_have_decl=0
38550 fi
38551
38552 cat >>confdefs.h <<_ACEOF
38553 #define HAVE_DECL_DIRFD $ac_have_decl
38554 _ACEOF
38555
38556   if test $ac_cv_have_decl_dirfd = no; then
38557     HAVE_DECL_DIRFD=0
38558   fi
38559
38560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
38561 $as_echo_n "checking whether dirfd is a macro... " >&6; }
38562 if ${gl_cv_func_dirfd_macro+:} false; then :
38563   $as_echo_n "(cached) " >&6
38564 else
38565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38566 /* end confdefs.h.  */
38567
38568 #include <sys/types.h>
38569 #include <dirent.h>
38570 #ifdef dirfd
38571  dirent_header_defines_dirfd
38572 #endif
38573 _ACEOF
38574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38575   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
38576   gl_cv_func_dirfd_macro=yes
38577 else
38578   gl_cv_func_dirfd_macro=no
38579 fi
38580 rm -f conftest*
38581
38582 fi
38583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
38584 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
38585
38586   # Use the replacement if we have no function or macro with that name,
38587   # or if OS/2 kLIBC whose dirfd() does not work.
38588   # Replace only if the system declares dirfd already.
38589   case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
38590     no,no,*,yes | *,*,os2*,yes)
38591       REPLACE_DIRFD=1
38592
38593 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
38594 ;;
38595   esac
38596
38597   if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
38598      || test $REPLACE_DIRFD = 1; then
38599
38600
38601
38602
38603
38604
38605
38606
38607   gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
38608
38609
38610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
38611 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
38612 if ${gl_cv_sys_dir_fd_member_name+:} false; then :
38613   $as_echo_n "(cached) " >&6
38614 else
38615
38616       dirfd_save_CFLAGS=$CFLAGS
38617       for ac_expr in d_fd dd_fd; do
38618
38619         CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
38620         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38621 /* end confdefs.h.  */
38622
38623            #include <sys/types.h>
38624            #include <dirent.h>
38625 int
38626 main ()
38627 {
38628 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
38629   ;
38630   return 0;
38631 }
38632 _ACEOF
38633 if ac_fn_c_try_compile "$LINENO"; then :
38634   dir_fd_found=yes
38635
38636 fi
38637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38638         CFLAGS=$dirfd_save_CFLAGS
38639         test "$dir_fd_found" = yes && break
38640       done
38641       test "$dir_fd_found" = yes || ac_expr=no_such_member
38642
38643       gl_cv_sys_dir_fd_member_name=$ac_expr
38644
38645
38646 fi
38647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
38648 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
38649   if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
38650
38651 cat >>confdefs.h <<_ACEOF
38652 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
38653 _ACEOF
38654
38655   fi
38656
38657
38658   fi
38659
38660
38661
38662
38663
38664           GNULIB_DIRFD=1
38665
38666
38667
38668
38669
38670 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
38671
38672
38673
38674
38675
38676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
38677 $as_echo_n "checking whether // is distinct from /... " >&6; }
38678 if ${gl_cv_double_slash_root+:} false; then :
38679   $as_echo_n "(cached) " >&6
38680 else
38681    if test x"$cross_compiling" = xyes ; then
38682         # When cross-compiling, there is no way to tell whether // is special
38683         # short of a list of hosts.  However, the only known hosts to date
38684         # that have a distinct // are Apollo DomainOS (too old to port to),
38685         # Cygwin, and z/OS.  If anyone knows of another system for which // has
38686         # special semantics and is distinct from /, please report it to
38687         # <bug-gnulib@gnu.org>.
38688         case $host in
38689           *-cygwin | i370-ibm-openedition)
38690             gl_cv_double_slash_root=yes ;;
38691           *)
38692             # Be optimistic and assume that / and // are the same when we
38693             # don't know.
38694             gl_cv_double_slash_root='unknown, assuming no' ;;
38695         esac
38696       else
38697         set x `ls -di / // 2>/dev/null`
38698         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
38699           gl_cv_double_slash_root=no
38700         else
38701           gl_cv_double_slash_root=yes
38702         fi
38703       fi
38704 fi
38705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
38706 $as_echo "$gl_cv_double_slash_root" >&6; }
38707   if test "$gl_cv_double_slash_root" = yes; then
38708
38709 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
38710
38711   fi
38712
38713
38714
38715
38716
38717
38718 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
38719
38720
38721   if test $HAVE_DUP2 = 1; then
38722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
38723 $as_echo_n "checking whether dup2 works... " >&6; }
38724 if ${gl_cv_func_dup2_works+:} false; then :
38725   $as_echo_n "(cached) " >&6
38726 else
38727   if test "$cross_compiling" = yes; then :
38728   case "$host_os" in
38729            mingw*) # on this platform, dup2 always returns 0 for success
38730              gl_cv_func_dup2_works="guessing no" ;;
38731            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
38732              gl_cv_func_dup2_works="guessing no" ;;
38733            aix* | freebsd*)
38734                    # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
38735                    # not EBADF.
38736              gl_cv_func_dup2_works="guessing no" ;;
38737            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
38738              gl_cv_func_dup2_works="guessing no" ;;
38739            *-android*) # implemented using dup3(), which fails if oldfd == newfd
38740              gl_cv_func_dup2_works="guessing no" ;;
38741            os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
38742              gl_cv_func_dup2_works="guessing no" ;;
38743            *) gl_cv_func_dup2_works="guessing yes" ;;
38744          esac
38745 else
38746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38747 /* end confdefs.h.  */
38748
38749          #include <errno.h>
38750              #include <fcntl.h>
38751              #include <limits.h>
38752              #include <sys/resource.h>
38753              #include <unistd.h>
38754              #ifndef RLIM_SAVED_CUR
38755              # define RLIM_SAVED_CUR RLIM_INFINITY
38756              #endif
38757              #ifndef RLIM_SAVED_MAX
38758              # define RLIM_SAVED_MAX RLIM_INFINITY
38759              #endif
38760
38761 int
38762 main ()
38763 {
38764 int result = 0;
38765              int bad_fd = INT_MAX;
38766              struct rlimit rlim;
38767              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
38768                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
38769                  && rlim.rlim_cur != RLIM_INFINITY
38770                  && rlim.rlim_cur != RLIM_SAVED_MAX
38771                  && rlim.rlim_cur != RLIM_SAVED_CUR)
38772                bad_fd = rlim.rlim_cur;
38773              #ifdef FD_CLOEXEC
38774                if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
38775                  result |= 1;
38776              #endif
38777              if (dup2 (1, 1) != 1)
38778                result |= 2;
38779              #ifdef FD_CLOEXEC
38780                if (fcntl (1, F_GETFD) != FD_CLOEXEC)
38781                  result |= 4;
38782              #endif
38783              close (0);
38784              if (dup2 (0, 0) != -1)
38785                result |= 8;
38786              /* Many gnulib modules require POSIX conformance of EBADF.  */
38787              if (dup2 (2, bad_fd) == -1 && errno != EBADF)
38788                result |= 16;
38789              /* Flush out some cygwin core dumps.  */
38790              if (dup2 (2, -1) != -1 || errno != EBADF)
38791                result |= 32;
38792              dup2 (2, 255);
38793              dup2 (2, 256);
38794              /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
38795              {
38796                int fd = open (".", O_RDONLY);
38797                if (fd == -1)
38798                  result |= 64;
38799                else if (dup2 (fd, fd + 1) == -1)
38800                  result |= 128;
38801
38802                close (fd);
38803              }
38804              return result;
38805   ;
38806   return 0;
38807 }
38808
38809 _ACEOF
38810 if ac_fn_c_try_run "$LINENO"; then :
38811   gl_cv_func_dup2_works=yes
38812 else
38813   gl_cv_func_dup2_works=no
38814 fi
38815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38816   conftest.$ac_objext conftest.beam conftest.$ac_ext
38817 fi
38818
38819
38820 fi
38821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
38822 $as_echo "$gl_cv_func_dup2_works" >&6; }
38823     case "$gl_cv_func_dup2_works" in
38824       *yes) ;;
38825       *)
38826         REPLACE_DUP2=1
38827         for ac_func in setdtablesize
38828 do :
38829   ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
38830 if test "x$ac_cv_func_setdtablesize" = xyes; then :
38831   cat >>confdefs.h <<_ACEOF
38832 #define HAVE_SETDTABLESIZE 1
38833 _ACEOF
38834
38835 fi
38836 done
38837
38838         ;;
38839     esac
38840   fi
38841
38842
38843   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
38844
38845
38846
38847
38848
38849
38850
38851
38852   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
38853
38854
38855   fi
38856
38857
38858
38859
38860
38861           GNULIB_DUP2=1
38862
38863
38864
38865
38866
38867 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
38868
38869
38870
38871
38872
38873
38874
38875
38876
38877           GNULIB_ENVIRON=1
38878
38879
38880
38881
38882
38883 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
38884
38885
38886
38887
38888
38889       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
38890 $as_echo_n "checking for error_at_line... " >&6; }
38891 if ${ac_cv_lib_error_at_line+:} false; then :
38892   $as_echo_n "(cached) " >&6
38893 else
38894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38895 /* end confdefs.h.  */
38896 #include <error.h>
38897 int
38898 main ()
38899 {
38900 error_at_line (0, 0, "", 0, "an error occurred");
38901   ;
38902   return 0;
38903 }
38904 _ACEOF
38905 if ac_fn_c_try_link "$LINENO"; then :
38906   ac_cv_lib_error_at_line=yes
38907 else
38908   ac_cv_lib_error_at_line=no
38909 fi
38910 rm -f core conftest.err conftest.$ac_objext \
38911     conftest$ac_exeext conftest.$ac_ext
38912 fi
38913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
38914 $as_echo "$ac_cv_lib_error_at_line" >&6; }
38915
38916   if test $ac_cv_lib_error_at_line = no; then
38917
38918
38919
38920
38921
38922
38923
38924
38925   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
38926
38927
38928
38929   :
38930
38931   fi
38932
38933
38934   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
38935
38936
38937
38938   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
38939
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949   FABS_LIBM=
38950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fabs can be used without linking with libm" >&5
38951 $as_echo_n "checking whether fabs can be used without linking with libm... " >&6; }
38952 if ${gl_cv_func_fabs_no_libm+:} false; then :
38953   $as_echo_n "(cached) " >&6
38954 else
38955
38956       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38957 /* end confdefs.h.  */
38958 #ifndef __NO_MATH_INLINES
38959              # define __NO_MATH_INLINES 1 /* for glibc */
38960              #endif
38961              #include <math.h>
38962
38963              double (*funcptr) (double) = fabs;
38964              int i_ret;
38965              float f_ret;
38966              double d_ret;
38967              long double l_ret;
38968 int
38969 main ()
38970 {
38971 double y = funcptr (1.6180339887) + fabs (1.6180339887);
38972
38973              return y < 0.3 || y > 1.7;
38974
38975   ;
38976   return 0;
38977 }
38978 _ACEOF
38979 if ac_fn_c_try_link "$LINENO"; then :
38980   gl_cv_func_fabs_no_libm=yes
38981 else
38982   gl_cv_func_fabs_no_libm=no
38983 fi
38984 rm -f core conftest.err conftest.$ac_objext \
38985     conftest$ac_exeext conftest.$ac_ext
38986
38987 fi
38988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fabs_no_libm" >&5
38989 $as_echo "$gl_cv_func_fabs_no_libm" >&6; }
38990   if test $gl_cv_func_fabs_no_libm = no; then
38991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fabs can be used with libm" >&5
38992 $as_echo_n "checking whether fabs can be used with libm... " >&6; }
38993 if ${gl_cv_func_fabs_in_libm+:} false; then :
38994   $as_echo_n "(cached) " >&6
38995 else
38996
38997         save_LIBS="$LIBS"
38998         LIBS="$LIBS -lm"
38999         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39000 /* end confdefs.h.  */
39001 #ifndef __NO_MATH_INLINES
39002                # define __NO_MATH_INLINES 1 /* for glibc */
39003                #endif
39004                #include <math.h>
39005
39006                double (*funcptr) (double) = fabs;
39007                int i_ret;
39008                float f_ret;
39009                double d_ret;
39010                long double l_ret;
39011 int
39012 main ()
39013 {
39014 double y = funcptr (1.6180339887) + fabs (1.6180339887);
39015
39016                return y < 0.3 || y > 1.7;
39017
39018   ;
39019   return 0;
39020 }
39021 _ACEOF
39022 if ac_fn_c_try_link "$LINENO"; then :
39023   gl_cv_func_fabs_in_libm=yes
39024 else
39025   gl_cv_func_fabs_in_libm=no
39026 fi
39027 rm -f core conftest.err conftest.$ac_objext \
39028     conftest$ac_exeext conftest.$ac_ext
39029         LIBS="$save_LIBS"
39030
39031 fi
39032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fabs_in_libm" >&5
39033 $as_echo "$gl_cv_func_fabs_in_libm" >&6; }
39034     if test $gl_cv_func_fabs_in_libm = yes; then
39035       FABS_LIBM=-lm
39036     fi
39037   fi
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047   :
39048
39049
39050
39051
39052
39053
39054   if test $ac_cv_func_fcntl = no; then
39055
39056
39057
39058   if test $ac_cv_func_fcntl = no; then
39059     HAVE_FCNTL=0
39060   else
39061     REPLACE_FCNTL=1
39062   fi
39063
39064   else
39065             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
39066 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
39067 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
39068   $as_echo_n "(cached) " >&6
39069 else
39070   if test "$cross_compiling" = yes; then :
39071   case $host_os in
39072             aix* | cygwin* | haiku*)
39073                gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
39074             *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
39075           esac
39076 else
39077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39078 /* end confdefs.h.  */
39079 #include <errno.h>
39080               #include <fcntl.h>
39081               #include <limits.h>
39082               #include <sys/resource.h>
39083               #include <unistd.h>
39084               #ifndef RLIM_SAVED_CUR
39085               # define RLIM_SAVED_CUR RLIM_INFINITY
39086               #endif
39087               #ifndef RLIM_SAVED_MAX
39088               # define RLIM_SAVED_MAX RLIM_INFINITY
39089               #endif
39090
39091 int
39092 main ()
39093 {
39094 int result = 0;
39095               int bad_fd = INT_MAX;
39096               struct rlimit rlim;
39097               if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
39098                   && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
39099                   && rlim.rlim_cur != RLIM_INFINITY
39100                   && rlim.rlim_cur != RLIM_SAVED_MAX
39101                   && rlim.rlim_cur != RLIM_SAVED_CUR)
39102                 bad_fd = rlim.rlim_cur;
39103               if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
39104               if (errno != EINVAL) result |= 2;
39105               if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
39106               if (errno != EINVAL) result |= 8;
39107               /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
39108               {
39109                 int fd;
39110                 fd = open (".", O_RDONLY);
39111                 if (fd == -1)
39112                   result |= 16;
39113                 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
39114                   result |= 32;
39115
39116                 close (fd);
39117               }
39118               return result;
39119   ;
39120   return 0;
39121 }
39122 _ACEOF
39123 if ac_fn_c_try_run "$LINENO"; then :
39124   gl_cv_func_fcntl_f_dupfd_works=yes
39125 else
39126   gl_cv_func_fcntl_f_dupfd_works=no
39127 fi
39128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39129   conftest.$ac_objext conftest.beam conftest.$ac_ext
39130 fi
39131
39132 fi
39133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
39134 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
39135     case $gl_cv_func_fcntl_f_dupfd_works in
39136       *yes) ;;
39137       *)
39138
39139
39140   if test $ac_cv_func_fcntl = no; then
39141     HAVE_FCNTL=0
39142   else
39143     REPLACE_FCNTL=1
39144   fi
39145
39146
39147 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
39148  ;;
39149     esac
39150
39151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
39152 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
39153 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
39154   $as_echo_n "(cached) " >&6
39155 else
39156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39157 /* end confdefs.h.  */
39158
39159 #include <fcntl.h>
39160 #ifndef F_DUPFD_CLOEXEC
39161 choke me
39162 #endif
39163
39164 int
39165 main ()
39166 {
39167
39168   ;
39169   return 0;
39170 }
39171 _ACEOF
39172 if ac_fn_c_try_compile "$LINENO"; then :
39173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39174 /* end confdefs.h.  */
39175
39176 #ifdef __linux__
39177 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
39178    it to support the semantics on older kernels that failed with EINVAL.  */
39179 choke me
39180 #endif
39181
39182 int
39183 main ()
39184 {
39185
39186   ;
39187   return 0;
39188 }
39189 _ACEOF
39190 if ac_fn_c_try_compile "$LINENO"; then :
39191   gl_cv_func_fcntl_f_dupfd_cloexec=yes
39192 else
39193   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
39194 fi
39195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39196 else
39197   gl_cv_func_fcntl_f_dupfd_cloexec=no
39198 fi
39199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39200 fi
39201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
39202 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
39203     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
39204
39205
39206
39207   if test $ac_cv_func_fcntl = no; then
39208     HAVE_FCNTL=0
39209   else
39210     REPLACE_FCNTL=1
39211   fi
39212
39213           fi
39214   fi
39215
39216
39217   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
39218
39219
39220
39221
39222
39223
39224
39225
39226   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
39227
39228   fi
39229
39230
39231
39232
39233
39234           GNULIB_FCNTL=1
39235
39236
39237
39238
39239
39240 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255      if test $gl_cv_have_include_next = yes; then
39256        gl_cv_next_fcntl_h='<'fcntl.h'>'
39257      else
39258        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
39259 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
39260 if ${gl_cv_next_fcntl_h+:} false; then :
39261   $as_echo_n "(cached) " >&6
39262 else
39263
39264
39265
39266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39267 /* end confdefs.h.  */
39268 #include <fcntl.h>
39269 _ACEOF
39270                 case "$host_os" in
39271     aix*) gl_absname_cpp="$ac_cpp -C" ;;
39272     *)    gl_absname_cpp="$ac_cpp" ;;
39273   esac
39274
39275   case "$host_os" in
39276     mingw*)
39277                                           gl_dirsep_regex='[/\\]'
39278       ;;
39279     *)
39280       gl_dirsep_regex='\/'
39281       ;;
39282   esac
39283       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39284   gl_header_literal_regex=`echo 'fcntl.h' \
39285                            | sed -e "$gl_make_literal_regex_sed"`
39286   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39287       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39288       s|^/[^/]|//&|
39289       p
39290       q
39291     }'
39292
39293         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39294   sed -n "$gl_absolute_header_sed"`
39295
39296            gl_header=$gl_cv_absolute_fcntl_h
39297            gl_cv_next_fcntl_h='"'$gl_header'"'
39298
39299
39300 fi
39301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
39302 $as_echo "$gl_cv_next_fcntl_h" >&6; }
39303      fi
39304      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
39305
39306      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39307        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39308        gl_next_as_first_directive='<'fcntl.h'>'
39309      else
39310        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39311        gl_next_as_first_directive=$gl_cv_next_fcntl_h
39312      fi
39313      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
39314
39315
39316
39317
39318
39319
39320
39321
39322
39323
39324     for gl_func in fcntl openat; do
39325     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
39326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
39327 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
39328 if eval \${$as_gl_Symbol+:} false; then :
39329   $as_echo_n "(cached) " >&6
39330 else
39331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39332 /* end confdefs.h.  */
39333 #include <fcntl.h>
39334
39335 int
39336 main ()
39337 {
39338 #undef $gl_func
39339   (void) $gl_func;
39340   ;
39341   return 0;
39342 }
39343 _ACEOF
39344 if ac_fn_c_try_compile "$LINENO"; then :
39345   eval "$as_gl_Symbol=yes"
39346 else
39347   eval "$as_gl_Symbol=no"
39348 fi
39349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39350 fi
39351 eval ac_res=\$$as_gl_Symbol
39352                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39353 $as_echo "$ac_res" >&6; }
39354     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
39355   cat >>confdefs.h <<_ACEOF
39356 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
39357 _ACEOF
39358
39359                      eval ac_cv_have_decl_$gl_func=yes
39360 fi
39361       done
39362
39363
39364
39365
39366 cat >>confdefs.h <<_ACEOF
39367 #define GNULIB_FD_SAFER_FLAG 1
39368 _ACEOF
39369
39370
39371
39372
39373
39374
39375
39376
39377
39378   FLOAT_H=
39379   REPLACE_FLOAT_LDBL=0
39380   case "$host_os" in
39381     aix* | beos* | openbsd* | mirbsd* | irix*)
39382       FLOAT_H=float.h
39383       ;;
39384     freebsd*)
39385       case "$host_cpu" in
39386         i[34567]86 )
39387           FLOAT_H=float.h
39388           ;;
39389         x86_64 )
39390           # On x86_64 systems, the C compiler may still be generating
39391           # 32-bit code.
39392           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39393 /* end confdefs.h.  */
39394 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
39395              yes
39396              #endif
39397 _ACEOF
39398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39399   $EGREP "yes" >/dev/null 2>&1; then :
39400
39401 else
39402   FLOAT_H=float.h
39403 fi
39404 rm -f conftest*
39405
39406           ;;
39407       esac
39408       ;;
39409     linux*)
39410       case "$host_cpu" in
39411         powerpc*)
39412           FLOAT_H=float.h
39413           ;;
39414       esac
39415       ;;
39416   esac
39417   case "$host_os" in
39418     aix* | freebsd* | linux*)
39419       if test -n "$FLOAT_H"; then
39420         REPLACE_FLOAT_LDBL=1
39421       fi
39422       ;;
39423   esac
39424
39425     REPLACE_ITOLD=0
39426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
39427 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
39428 if ${gl_cv_func_itold_works+:} false; then :
39429   $as_echo_n "(cached) " >&6
39430 else
39431
39432       if test "$cross_compiling" = yes; then :
39433   case "$host" in
39434            sparc*-*-linux*)
39435              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39436 /* end confdefs.h.  */
39437 #if defined __LP64__ || defined __arch64__
39438                 yes
39439                 #endif
39440 _ACEOF
39441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39442   $EGREP "yes" >/dev/null 2>&1; then :
39443   gl_cv_func_itold_works="guessing no"
39444 else
39445   gl_cv_func_itold_works="guessing yes"
39446 fi
39447 rm -f conftest*
39448
39449              ;;
39450            *) gl_cv_func_itold_works="guessing yes" ;;
39451          esac
39452
39453 else
39454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39455 /* end confdefs.h.  */
39456
39457 int i = -1;
39458 volatile long double ld;
39459 int main ()
39460 {
39461   ld += i * 1.0L;
39462   if (ld > 0)
39463     return 1;
39464   return 0;
39465 }
39466 _ACEOF
39467 if ac_fn_c_try_run "$LINENO"; then :
39468   gl_cv_func_itold_works=yes
39469 else
39470   gl_cv_func_itold_works=no
39471 fi
39472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39473   conftest.$ac_objext conftest.beam conftest.$ac_ext
39474 fi
39475
39476
39477 fi
39478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
39479 $as_echo "$gl_cv_func_itold_works" >&6; }
39480   case "$gl_cv_func_itold_works" in
39481     *no)
39482       REPLACE_ITOLD=1
39483                   FLOAT_H=float.h
39484       ;;
39485   esac
39486
39487   if test -n "$FLOAT_H"; then
39488
39489
39490
39491
39492
39493
39494
39495
39496      if test $gl_cv_have_include_next = yes; then
39497        gl_cv_next_float_h='<'float.h'>'
39498      else
39499        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
39500 $as_echo_n "checking absolute name of <float.h>... " >&6; }
39501 if ${gl_cv_next_float_h+:} false; then :
39502   $as_echo_n "(cached) " >&6
39503 else
39504
39505
39506
39507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39508 /* end confdefs.h.  */
39509 #include <float.h>
39510 _ACEOF
39511                 case "$host_os" in
39512     aix*) gl_absname_cpp="$ac_cpp -C" ;;
39513     *)    gl_absname_cpp="$ac_cpp" ;;
39514   esac
39515
39516   case "$host_os" in
39517     mingw*)
39518                                           gl_dirsep_regex='[/\\]'
39519       ;;
39520     *)
39521       gl_dirsep_regex='\/'
39522       ;;
39523   esac
39524       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39525   gl_header_literal_regex=`echo 'float.h' \
39526                            | sed -e "$gl_make_literal_regex_sed"`
39527   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39528       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39529       s|^/[^/]|//&|
39530       p
39531       q
39532     }'
39533
39534         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39535   sed -n "$gl_absolute_header_sed"`
39536
39537            gl_header=$gl_cv_absolute_float_h
39538            gl_cv_next_float_h='"'$gl_header'"'
39539
39540
39541 fi
39542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
39543 $as_echo "$gl_cv_next_float_h" >&6; }
39544      fi
39545      NEXT_FLOAT_H=$gl_cv_next_float_h
39546
39547      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39548        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39549        gl_next_as_first_directive='<'float.h'>'
39550      else
39551        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39552        gl_next_as_first_directive=$gl_cv_next_float_h
39553      fi
39554      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
39555
39556
39557
39558
39559   fi
39560
39561    if test -n "$FLOAT_H"; then
39562   GL_GENERATE_FLOAT_H_TRUE=
39563   GL_GENERATE_FLOAT_H_FALSE='#'
39564 else
39565   GL_GENERATE_FLOAT_H_TRUE='#'
39566   GL_GENERATE_FLOAT_H_FALSE=
39567 fi
39568
39569
39570
39571   if test $REPLACE_FLOAT_LDBL = 1; then
39572
39573
39574
39575
39576
39577
39578
39579
39580   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
39581
39582   fi
39583   if test $REPLACE_ITOLD = 1; then
39584
39585
39586
39587
39588
39589
39590
39591
39592   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
39593
39594   fi
39595
39596
39597
39598
39599
39600   FNMATCH_H=
39601   gl_fnmatch_required_lowercase=`
39602     echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
39603   `
39604   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
39605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
39606 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
39607 if eval \${$gl_fnmatch_cache_var+:} false; then :
39608   $as_echo_n "(cached) " >&6
39609 else
39610                            if test $gl_fnmatch_required = GNU; then
39611        gl_fnmatch_gnu_start=
39612        gl_fnmatch_gnu_end=
39613      else
39614        gl_fnmatch_gnu_start='#if 0'
39615        gl_fnmatch_gnu_end='#endif'
39616      fi
39617      if test "$cross_compiling" = yes; then :
39618   eval "$gl_fnmatch_cache_var=\"guessing no\""
39619 else
39620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39621 /* end confdefs.h.  */
39622 #include <fnmatch.h>
39623             static int
39624             y (char const *pattern, char const *string, int flags)
39625             {
39626               return fnmatch (pattern, string, flags) == 0;
39627             }
39628             static int
39629             n (char const *pattern, char const *string, int flags)
39630             {
39631               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
39632             }
39633
39634 int
39635 main ()
39636 {
39637 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
39638             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
39639             static char const A_1[] = { 'A' - 1, 0 };
39640             static char const A01[] = { 'A' + 1, 0 };
39641             static char const a_1[] = { 'a' - 1, 0 };
39642             static char const a01[] = { 'a' + 1, 0 };
39643             static char const bs_1[] = { '\\\\' - 1, 0 };
39644             static char const bs01[] = { '\\\\' + 1, 0 };
39645             int result = 0;
39646             if (!n ("a*", "", 0))
39647               return 1;
39648             if (!y ("a*", "abc", 0))
39649               return 1;
39650             if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
39651               return 1;
39652             if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
39653               return 2;
39654             if (!y ("a\\\\bc", "abc", 0))
39655               return 3;
39656             if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
39657               return 3;
39658             if (!y ("*x", ".x", 0))
39659               return 4;
39660             if (!n ("*x", ".x", FNM_PERIOD))
39661               return 4;
39662             if (!y (Apat, "\\\\", 0))
39663               return 5;
39664             if (!y (Apat, "A", 0))
39665               return 5;
39666             if (!y (apat, "\\\\", 0))
39667               return 5;
39668             if (!y (apat, "a", 0))
39669               return 5;
39670             if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
39671               return 5;
39672             if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
39673               return 5;
39674             if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
39675               return 5;
39676             if (!(y (apat, a01, 0) == ('a' < '\\\\')))
39677               return 5;
39678             if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
39679               return 5;
39680             if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
39681               return 5;
39682             if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
39683               return 5;
39684             if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
39685               return 5;
39686             $gl_fnmatch_gnu_start
39687             if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
39688               result |= 8;
39689             if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
39690               result |= 16;
39691             if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
39692               result |= 32;
39693             if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
39694               result |= 64;
39695             if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
39696               result |= 64;
39697             if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
39698               result |= 64;
39699             $gl_fnmatch_gnu_end
39700             return result;
39701
39702   ;
39703   return 0;
39704 }
39705 _ACEOF
39706 if ac_fn_c_try_run "$LINENO"; then :
39707   eval "$gl_fnmatch_cache_var=yes"
39708 else
39709   eval "$gl_fnmatch_cache_var=no"
39710 fi
39711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39712   conftest.$ac_objext conftest.beam conftest.$ac_ext
39713 fi
39714
39715
39716 fi
39717 eval ac_res=\$$gl_fnmatch_cache_var
39718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39719 $as_echo "$ac_res" >&6; }
39720   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
39721   if test "$gl_fnmatch_result" = yes; then
39722             rm -f "$gl_source_base/fnmatch.h"
39723   else
39724     FNMATCH_H=fnmatch.h
39725   fi
39726
39727    if test -n "$FNMATCH_H"; then
39728   GL_GENERATE_FNMATCH_H_TRUE=
39729   GL_GENERATE_FNMATCH_H_FALSE='#'
39730 else
39731   GL_GENERATE_FNMATCH_H_TRUE='#'
39732   GL_GENERATE_FNMATCH_H_FALSE=
39733 fi
39734
39735
39736   if test -n "$FNMATCH_H"; then
39737
39738
39739
39740
39741
39742
39743
39744
39745   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
39746
39747
39748
39749 cat >>confdefs.h <<_ACEOF
39750 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
39751 _ACEOF
39752
39753
39754   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
39755 "
39756 if test "x$ac_cv_have_decl_isblank" = xyes; then :
39757   ac_have_decl=1
39758 else
39759   ac_have_decl=0
39760 fi
39761
39762 cat >>confdefs.h <<_ACEOF
39763 #define HAVE_DECL_ISBLANK $ac_have_decl
39764 _ACEOF
39765
39766
39767
39768
39769   fi
39770
39771
39772
39773   case "$host_os" in
39774     mingw* | pw*)
39775             REPLACE_FOPEN=1
39776             gl_cv_func_fopen_slash="guessing no"
39777       ;;
39778     *)
39779                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
39780 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
39781 if ${gl_cv_func_fopen_slash+:} false; then :
39782   $as_echo_n "(cached) " >&6
39783 else
39784
39785           if test "$cross_compiling" = yes; then :
39786
39787              case "$host_os" in
39788                aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
39789                  gl_cv_func_fopen_slash="guessing no" ;;
39790                *)
39791                  gl_cv_func_fopen_slash="guessing yes" ;;
39792              esac
39793
39794 else
39795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39796 /* end confdefs.h.  */
39797
39798 #include <stddef.h>
39799 #include <stdio.h>
39800 int main ()
39801 {
39802   return fopen ("conftest.sl/", "w") != NULL;
39803 }
39804 _ACEOF
39805 if ac_fn_c_try_run "$LINENO"; then :
39806   gl_cv_func_fopen_slash=yes
39807 else
39808   gl_cv_func_fopen_slash=no
39809 fi
39810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39811   conftest.$ac_objext conftest.beam conftest.$ac_ext
39812 fi
39813
39814           rm -f conftest.sl
39815
39816 fi
39817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
39818 $as_echo "$gl_cv_func_fopen_slash" >&6; }
39819       ;;
39820   esac
39821   case "$gl_cv_func_fopen_slash" in
39822     *no)
39823
39824 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
39825
39826       REPLACE_FOPEN=1
39827       ;;
39828   esac
39829
39830   if test $REPLACE_FOPEN = 1; then
39831
39832
39833
39834
39835
39836
39837
39838
39839   gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
39840
39841     :
39842   fi
39843
39844
39845
39846
39847
39848           GNULIB_FOPEN=1
39849
39850
39851
39852
39853
39854 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
39855
39856
39857
39858
39859
39860
39861
39862   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
39863     REPLACE_FSTAT=1
39864   fi
39865
39866
39867   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
39868     REPLACE_FSTAT=1
39869   fi
39870
39871
39872
39873   if test $REPLACE_FSTAT = 1; then
39874
39875
39876
39877
39878
39879
39880
39881
39882   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
39883
39884     :
39885   fi
39886
39887
39888
39889
39890
39891           GNULIB_FSTAT=1
39892
39893
39894
39895
39896
39897 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
39898
39899
39900
39901
39902
39903 cat >>confdefs.h <<_ACEOF
39904 #define GNULIB_FWRITEERROR 1
39905 _ACEOF
39906
39907
39908
39909
39910
39911
39912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
39913 $as_echo_n "checking for Java to native code compiler... " >&6; }
39914   # Search for the gcj command or use the one provided by the user.
39915   if test -z "$GCJ"; then
39916                 if test -n "$ac_tool_prefix"; then
39917   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
39918 set dummy ${ac_tool_prefix}gcj; ac_word=$2
39919 :
39920 if ${ac_cv_prog_GCJ+:} false; then :
39921   $as_echo_n "(cached) " >&6
39922 else
39923   if test -n "$GCJ"; then
39924   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
39925 else
39926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39927 for as_dir in $PATH
39928 do
39929   IFS=$as_save_IFS
39930   test -z "$as_dir" && as_dir=.
39931     for ac_exec_ext in '' $ac_executable_extensions; do
39932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39933     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
39934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39935     break 2
39936   fi
39937 done
39938   done
39939 IFS=$as_save_IFS
39940
39941 fi
39942 fi
39943 GCJ=$ac_cv_prog_GCJ
39944 if test -n "$GCJ"; then
39945   :
39946 else
39947   :
39948 fi
39949
39950
39951 fi
39952 if test -z "$ac_cv_prog_GCJ"; then
39953   ac_ct_GCJ=$GCJ
39954   # Extract the first word of "gcj", so it can be a program name with args.
39955 set dummy gcj; ac_word=$2
39956 :
39957 if ${ac_cv_prog_ac_ct_GCJ+:} false; then :
39958   $as_echo_n "(cached) " >&6
39959 else
39960   if test -n "$ac_ct_GCJ"; then
39961   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
39962 else
39963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39964 for as_dir in $PATH
39965 do
39966   IFS=$as_save_IFS
39967   test -z "$as_dir" && as_dir=.
39968     for ac_exec_ext in '' $ac_executable_extensions; do
39969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39970     ac_cv_prog_ac_ct_GCJ="gcj"
39971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39972     break 2
39973   fi
39974 done
39975   done
39976 IFS=$as_save_IFS
39977
39978 fi
39979 fi
39980 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
39981 if test -n "$ac_ct_GCJ"; then
39982   :
39983 else
39984   :
39985 fi
39986
39987   if test "x$ac_ct_GCJ" = x; then
39988     GCJ="none"
39989   else
39990     case $cross_compiling:$ac_tool_warned in
39991 yes:)
39992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39994 ac_tool_warned=yes ;;
39995 esac
39996     GCJ=$ac_ct_GCJ
39997   fi
39998 else
39999   GCJ="$ac_cv_prog_GCJ"
40000 fi
40001
40002               fi
40003   # Choose GCJFLAGS or use the one provided by the user.
40004   if test "$GCJ" != none; then
40005     test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
40006   fi
40007   # Check whether the version is ok and it can create executables.
40008   ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
40009   if test "$GCJ" != none \
40010      && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
40011      && (
40012       # See if libgcj.so is well installed and if exception handling works.
40013       cat > conftest.java <<EOF
40014 public class conftest {
40015   public static void main (String[] args) {
40016     try {
40017       java.util.ResourceBundle.getBundle("foobar");
40018     } catch (Exception e) {
40019     }
40020     System.exit(0);
40021   }
40022 }
40023 EOF
40024       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
40025   (eval $ac_gcj_link) 2>&5
40026   ac_status=$?
40027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40028   test $ac_status = 0; }
40029       error=$?
40030       if test $error = 0 && test "$cross_compiling" != yes; then
40031         # Run conftest and catch its exit status, but silently.
40032         error=`./conftest >/dev/null 2>&1; echo $?`
40033         test $error = 0 || error=1
40034         rm -f core conftest.core
40035       fi
40036       rm -f conftest.java conftest$ac_exeext
40037       exit $error
40038      ); then
40039     :
40040   else
40041     GCJ=none
40042   fi
40043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
40044 $as_echo "$GCJ" >&6; }
40045   if test "$GCJ" != none; then
40046     HAVE_GCJ=1
40047   else
40048     HAVE_GCJ=
40049   fi
40050
40051
40052
40053
40054
40055
40056
40057
40058
40059
40060
40061
40062   if test $ac_cv_func_getdelim = yes; then
40063     HAVE_GETDELIM=1
40064         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
40065 $as_echo_n "checking for working getdelim function... " >&6; }
40066 if ${gl_cv_func_working_getdelim+:} false; then :
40067   $as_echo_n "(cached) " >&6
40068 else
40069   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
40070     if test "$cross_compiling" = yes; then :
40071         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40072 /* end confdefs.h.  */
40073
40074 #include <features.h>
40075 #ifdef __GNU_LIBRARY__
40076  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
40077   Lucky GNU user
40078  #endif
40079 #endif
40080
40081 _ACEOF
40082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40083   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
40084   gl_cv_func_working_getdelim="guessing yes"
40085 else
40086   gl_cv_func_working_getdelim="guessing no"
40087 fi
40088 rm -f conftest*
40089
40090
40091 else
40092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40093 /* end confdefs.h.  */
40094
40095 #    include <stdio.h>
40096 #    include <stdlib.h>
40097 #    include <string.h>
40098     int main ()
40099     {
40100       FILE *in = fopen ("./conftest.data", "r");
40101       if (!in)
40102         return 1;
40103       {
40104         /* Test result for a NULL buffer and a zero size.
40105            Based on a test program from Karl Heuer.  */
40106         char *line = NULL;
40107         size_t siz = 0;
40108         int len = getdelim (&line, &siz, '\n', in);
40109         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
40110           return 2;
40111       }
40112       {
40113         /* Test result for a NULL buffer and a non-zero size.
40114            This crashes on FreeBSD 8.0.  */
40115         char *line = NULL;
40116         size_t siz = (size_t)(~0) / 4;
40117         if (getdelim (&line, &siz, '\n', in) == -1)
40118           return 3;
40119         free (line);
40120       }
40121       fclose (in);
40122       return 0;
40123     }
40124
40125 _ACEOF
40126 if ac_fn_c_try_run "$LINENO"; then :
40127   gl_cv_func_working_getdelim=yes
40128 else
40129   gl_cv_func_working_getdelim=no
40130 fi
40131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40132   conftest.$ac_objext conftest.beam conftest.$ac_ext
40133 fi
40134
40135 fi
40136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
40137 $as_echo "$gl_cv_func_working_getdelim" >&6; }
40138     case "$gl_cv_func_working_getdelim" in
40139       *no)
40140         REPLACE_GETDELIM=1
40141         ;;
40142     esac
40143   else
40144     HAVE_GETDELIM=0
40145   fi
40146
40147   if test $ac_cv_have_decl_getdelim = no; then
40148     HAVE_DECL_GETDELIM=0
40149   fi
40150
40151   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
40152
40153
40154
40155
40156
40157
40158
40159
40160   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
40161
40162
40163   for ac_func in flockfile funlockfile
40164 do :
40165   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40166 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40167 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40168   cat >>confdefs.h <<_ACEOF
40169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40170 _ACEOF
40171
40172 fi
40173 done
40174
40175   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
40176 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
40177   ac_have_decl=1
40178 else
40179   ac_have_decl=0
40180 fi
40181
40182 cat >>confdefs.h <<_ACEOF
40183 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
40184 _ACEOF
40185
40186
40187   fi
40188
40189
40190
40191
40192
40193           GNULIB_GETDELIM=1
40194
40195
40196
40197
40198
40199 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
40200
40201
40202
40203
40204
40205
40206
40207
40208   if test $ac_cv_func_getdtablesize = yes &&
40209      test $ac_cv_have_decl_getdtablesize = yes; then
40210     # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
40211     # up to an unchangeable hard limit; all other platforms correctly
40212     # require setrlimit before getdtablesize() can report a larger value.
40213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
40214 $as_echo_n "checking whether getdtablesize works... " >&6; }
40215 if ${gl_cv_func_getdtablesize_works+:} false; then :
40216   $as_echo_n "(cached) " >&6
40217 else
40218   if test "$cross_compiling" = yes; then :
40219   case "$host_os" in
40220           cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
40221             gl_cv_func_getdtablesize_works="guessing no" ;;
40222           *) gl_cv_func_getdtablesize_works="guessing yes" ;;
40223          esac
40224 else
40225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40226 /* end confdefs.h.  */
40227
40228         #include <unistd.h>
40229 int
40230 main ()
40231 {
40232 int size = getdtablesize();
40233            if (dup2 (0, getdtablesize()) != -1)
40234              return 1;
40235            if (size != getdtablesize())
40236              return 2;
40237
40238   ;
40239   return 0;
40240 }
40241 _ACEOF
40242 if ac_fn_c_try_run "$LINENO"; then :
40243   gl_cv_func_getdtablesize_works=yes
40244 else
40245   gl_cv_func_getdtablesize_works=no
40246 fi
40247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40248   conftest.$ac_objext conftest.beam conftest.$ac_ext
40249 fi
40250
40251
40252 fi
40253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
40254 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
40255     case "$gl_cv_func_getdtablesize_works" in
40256       *yes) ;;
40257       *) REPLACE_GETDTABLESIZE=1 ;;
40258     esac
40259   else
40260     HAVE_GETDTABLESIZE=0
40261   fi
40262
40263   if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
40264
40265
40266
40267
40268
40269
40270
40271
40272   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
40273
40274     :
40275   fi
40276
40277
40278
40279
40280
40281           GNULIB_GETDTABLESIZE=1
40282
40283
40284
40285
40286
40287 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
40288
40289
40290
40291
40292
40293
40294
40295
40296
40297
40298   gl_getline_needs_run_time_check=no
40299   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
40300 if test "x$ac_cv_func_getline" = xyes; then :
40301                    gl_getline_needs_run_time_check=yes
40302 else
40303   am_cv_func_working_getline=no
40304 fi
40305
40306   if test $gl_getline_needs_run_time_check = yes; then
40307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
40308 $as_echo_n "checking for working getline function... " >&6; }
40309 if ${am_cv_func_working_getline+:} false; then :
40310   $as_echo_n "(cached) " >&6
40311 else
40312   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
40313     if test "$cross_compiling" = yes; then :
40314         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40315 /* end confdefs.h.  */
40316
40317 #include <features.h>
40318 #ifdef __GNU_LIBRARY__
40319  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
40320   Lucky GNU user
40321  #endif
40322 #endif
40323
40324 _ACEOF
40325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40326   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
40327   am_cv_func_working_getline="guessing yes"
40328 else
40329   am_cv_func_working_getline="guessing no"
40330 fi
40331 rm -f conftest*
40332
40333
40334 else
40335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40336 /* end confdefs.h.  */
40337
40338 #    include <stdio.h>
40339 #    include <stdlib.h>
40340 #    include <string.h>
40341     int main ()
40342     {
40343       FILE *in = fopen ("./conftest.data", "r");
40344       if (!in)
40345         return 1;
40346       {
40347         /* Test result for a NULL buffer and a zero size.
40348            Based on a test program from Karl Heuer.  */
40349         char *line = NULL;
40350         size_t siz = 0;
40351         int len = getline (&line, &siz, in);
40352         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
40353           return 2;
40354         free (line);
40355       }
40356       {
40357         /* Test result for a NULL buffer and a non-zero size.
40358            This crashes on FreeBSD 8.0.  */
40359         char *line = NULL;
40360         size_t siz = (size_t)(~0) / 4;
40361         if (getline (&line, &siz, in) == -1)
40362           return 3;
40363         free (line);
40364       }
40365       fclose (in);
40366       return 0;
40367     }
40368
40369 _ACEOF
40370 if ac_fn_c_try_run "$LINENO"; then :
40371   am_cv_func_working_getline=yes
40372 else
40373   am_cv_func_working_getline=no
40374 fi
40375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40376   conftest.$ac_objext conftest.beam conftest.$ac_ext
40377 fi
40378
40379 fi
40380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
40381 $as_echo "$am_cv_func_working_getline" >&6; }
40382   fi
40383
40384   if test $ac_cv_have_decl_getline = no; then
40385     HAVE_DECL_GETLINE=0
40386   fi
40387
40388   case "$am_cv_func_working_getline" in
40389     *no)
40390                         REPLACE_GETLINE=1
40391       ;;
40392   esac
40393
40394   if test $REPLACE_GETLINE = 1; then
40395
40396
40397
40398
40399
40400
40401
40402
40403   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
40404
40405
40406   :
40407
40408   fi
40409
40410
40411
40412
40413
40414           GNULIB_GETLINE=1
40415
40416
40417
40418
40419
40420 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
40421
40422
40423
40424
40425
40426
40427
40428
40429   if test $REPLACE_GETOPT = 1; then
40430
40431
40432
40433
40434
40435
40436
40437
40438   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
40439
40440
40441
40442
40443
40444
40445
40446
40447
40448   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
40449
40450
40451
40452
40453         GNULIB_GL_UNISTD_H_GETOPT=1
40454   fi
40455
40456
40457
40458 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
40459
40460
40461
40462
40463
40464
40465
40466     REPLACE_GETOPT=0
40467     if test -n "$gl_replace_getopt"; then
40468       REPLACE_GETOPT=1
40469     fi
40470
40471   if test $REPLACE_GETOPT = 1; then
40472
40473   GETOPT_H=getopt.h
40474
40475 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
40476
40477
40478
40479   fi
40480
40481   if test $REPLACE_GETOPT = 1; then
40482
40483
40484
40485
40486
40487
40488
40489
40490   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
40491
40492
40493
40494
40495
40496
40497
40498
40499
40500   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
40501
40502
40503
40504
40505         GNULIB_GL_UNISTD_H_GETOPT=1
40506   fi
40507
40508
40509
40510
40511
40512
40513
40514
40515
40516
40517   gl_gettimeofday_timezone=void
40518   if test $ac_cv_func_gettimeofday != yes; then
40519     HAVE_GETTIMEOFDAY=0
40520   else
40521
40522
40523
40524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
40525 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
40526 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
40527   $as_echo_n "(cached) " >&6
40528 else
40529   if test "$cross_compiling" = yes; then :
40530   # When cross-compiling:
40531       case "$host_os" in
40532                 # Guess all is fine on glibc systems.
40533         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
40534                 # If we don't know, assume the worst.
40535         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
40536       esac
40537
40538 else
40539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40540 /* end confdefs.h.  */
40541 #include <string.h>
40542           #include <sys/time.h>
40543           #include <time.h>
40544           #include <stdlib.h>
40545
40546 int
40547 main ()
40548 {
40549
40550           time_t t = 0;
40551           struct tm *lt;
40552           struct tm saved_lt;
40553           struct timeval tv;
40554           lt = localtime (&t);
40555           saved_lt = *lt;
40556           gettimeofday (&tv, NULL);
40557           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
40558
40559   ;
40560   return 0;
40561 }
40562 _ACEOF
40563 if ac_fn_c_try_run "$LINENO"; then :
40564   gl_cv_func_gettimeofday_clobber=no
40565 else
40566   gl_cv_func_gettimeofday_clobber=yes
40567 fi
40568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40569   conftest.$ac_objext conftest.beam conftest.$ac_ext
40570 fi
40571
40572 fi
40573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
40574 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
40575
40576  case "$gl_cv_func_gettimeofday_clobber" in
40577    *yes)
40578      REPLACE_GETTIMEOFDAY=1
40579
40580   REPLACE_GMTIME=1
40581   REPLACE_LOCALTIME=1
40582
40583
40584 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
40585
40586      ;;
40587  esac
40588
40589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
40590 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
40591 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
40592   $as_echo_n "(cached) " >&6
40593 else
40594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40595 /* end confdefs.h.  */
40596 #include <sys/time.h>
40597               struct timeval c;
40598               int gettimeofday (struct timeval *restrict, void *restrict);
40599
40600 int
40601 main ()
40602 {
40603 /* glibc uses struct timezone * rather than the POSIX void *
40604                  if _GNU_SOURCE is defined.  However, since the only portable
40605                  use of gettimeofday uses NULL as the second parameter, and
40606                  since the glibc definition is actually more typesafe, it is
40607                  not worth wrapping this to get a compliant signature.  */
40608               int (*f) (struct timeval *restrict, void *restrict)
40609                 = gettimeofday;
40610               int x = f (&c, 0);
40611               return !(x | c.tv_sec | c.tv_usec);
40612
40613   ;
40614   return 0;
40615 }
40616 _ACEOF
40617 if ac_fn_c_try_compile "$LINENO"; then :
40618   gl_cv_func_gettimeofday_posix_signature=yes
40619 else
40620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40621 /* end confdefs.h.  */
40622 #include <sys/time.h>
40623 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
40624
40625 int
40626 main ()
40627 {
40628
40629   ;
40630   return 0;
40631 }
40632 _ACEOF
40633 if ac_fn_c_try_compile "$LINENO"; then :
40634   gl_cv_func_gettimeofday_posix_signature=almost
40635 else
40636   gl_cv_func_gettimeofday_posix_signature=no
40637 fi
40638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40639 fi
40640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40641 fi
40642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
40643 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
40644     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
40645       gl_gettimeofday_timezone='struct timezone'
40646     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
40647       REPLACE_GETTIMEOFDAY=1
40648     fi
40649         if test $REPLACE_STRUCT_TIMEVAL = 1; then
40650       REPLACE_GETTIMEOFDAY=1
40651     fi
40652
40653   fi
40654
40655 cat >>confdefs.h <<_ACEOF
40656 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
40657 _ACEOF
40658
40659
40660   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
40661
40662
40663
40664
40665
40666
40667
40668
40669   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
40670
40671
40672   for ac_header in sys/timeb.h
40673 do :
40674   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
40675 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
40676   cat >>confdefs.h <<_ACEOF
40677 #define HAVE_SYS_TIMEB_H 1
40678 _ACEOF
40679
40680 fi
40681
40682 done
40683
40684   for ac_func in _ftime
40685 do :
40686   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
40687 if test "x$ac_cv_func__ftime" = xyes; then :
40688   cat >>confdefs.h <<_ACEOF
40689 #define HAVE__FTIME 1
40690 _ACEOF
40691
40692 fi
40693 done
40694
40695
40696   fi
40697
40698
40699
40700
40701
40702           GNULIB_GETTIMEOFDAY=1
40703
40704
40705
40706
40707
40708 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
40709
40710
40711
40712
40713   :
40714
40715
40716
40717
40718
40719
40720
40721           GNULIB_ICONV=1
40722
40723
40724
40725
40726
40727
40728
40729
40730
40731
40732
40733
40734
40735
40736
40737
40738      if test $gl_cv_have_include_next = yes; then
40739        gl_cv_next_iconv_h='<'iconv.h'>'
40740      else
40741        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
40742 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
40743 if ${gl_cv_next_iconv_h+:} false; then :
40744   $as_echo_n "(cached) " >&6
40745 else
40746
40747              if test $ac_cv_header_iconv_h = yes; then
40748
40749
40750
40751
40752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40753 /* end confdefs.h.  */
40754 #include <iconv.h>
40755 _ACEOF
40756                 case "$host_os" in
40757     aix*) gl_absname_cpp="$ac_cpp -C" ;;
40758     *)    gl_absname_cpp="$ac_cpp" ;;
40759   esac
40760
40761   case "$host_os" in
40762     mingw*)
40763                                           gl_dirsep_regex='[/\\]'
40764       ;;
40765     *)
40766       gl_dirsep_regex='\/'
40767       ;;
40768   esac
40769       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
40770   gl_header_literal_regex=`echo 'iconv.h' \
40771                            | sed -e "$gl_make_literal_regex_sed"`
40772   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
40773       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
40774       s|^/[^/]|//&|
40775       p
40776       q
40777     }'
40778
40779         gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40780   sed -n "$gl_absolute_header_sed"`
40781
40782            gl_header=$gl_cv_absolute_iconv_h
40783            gl_cv_next_iconv_h='"'$gl_header'"'
40784           else
40785                gl_cv_next_iconv_h='<'iconv.h'>'
40786              fi
40787
40788
40789 fi
40790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
40791 $as_echo "$gl_cv_next_iconv_h" >&6; }
40792      fi
40793      NEXT_ICONV_H=$gl_cv_next_iconv_h
40794
40795      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40796        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40797        gl_next_as_first_directive='<'iconv.h'>'
40798      else
40799        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40800        gl_next_as_first_directive=$gl_cv_next_iconv_h
40801      fi
40802      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812   if test "$am_cv_func_iconv" = yes; then
40813
40814
40815   ICONV_H='iconv.h'
40816    if test -n "$ICONV_H"; then
40817   GL_GENERATE_ICONV_H_TRUE=
40818   GL_GENERATE_ICONV_H_FALSE='#'
40819 else
40820   GL_GENERATE_ICONV_H_TRUE='#'
40821   GL_GENERATE_ICONV_H_FALSE=
40822 fi
40823
40824
40825             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40826 /* end confdefs.h.  */
40827
40828       #include <iconv.h>
40829       #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
40830        gnu_iconv
40831       #endif
40832
40833 _ACEOF
40834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40835   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
40836   gl_func_iconv_gnu=yes
40837 else
40838   gl_func_iconv_gnu=no
40839 fi
40840 rm -f conftest*
40841
40842     if test $gl_func_iconv_gnu = no; then
40843       iconv_flavor=
40844       case "$host_os" in
40845         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
40846         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
40847         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
40848         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
40849         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
40850       esac
40851       if test -n "$iconv_flavor"; then
40852
40853 cat >>confdefs.h <<_ACEOF
40854 #define ICONV_FLAVOR $iconv_flavor
40855 _ACEOF
40856
40857
40858
40859
40860   ICONV_H='iconv.h'
40861    if test -n "$ICONV_H"; then
40862   GL_GENERATE_ICONV_H_TRUE=
40863   GL_GENERATE_ICONV_H_FALSE='#'
40864 else
40865   GL_GENERATE_ICONV_H_TRUE='#'
40866   GL_GENERATE_ICONV_H_FALSE=
40867 fi
40868
40869
40870   REPLACE_ICONV_OPEN=1
40871
40872       fi
40873     fi
40874
40875   fi
40876
40877   if test $REPLACE_ICONV_OPEN = 1; then
40878
40879
40880
40881
40882
40883
40884
40885
40886   gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
40887
40888   fi
40889   if test $REPLACE_ICONV = 1; then
40890
40891
40892
40893
40894
40895
40896
40897
40898   gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext"
40899
40900
40901
40902
40903
40904
40905
40906
40907
40908   gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext"
40909
40910   fi
40911
40912
40913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
40914 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
40915 if ${gl_cv_c_inline_effective+:} false; then :
40916   $as_echo_n "(cached) " >&6
40917 else
40918   if test $ac_cv_c_inline = no; then
40919        gl_cv_c_inline_effective=no
40920      else
40921                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40922 /* end confdefs.h.  */
40923
40924 int
40925 main ()
40926 {
40927 #ifdef __NO_INLINE__
40928                #error "inline is not effective"
40929              #endif
40930   ;
40931   return 0;
40932 }
40933 _ACEOF
40934 if ac_fn_c_try_compile "$LINENO"; then :
40935   gl_cv_c_inline_effective=yes
40936 else
40937   gl_cv_c_inline_effective=no
40938 fi
40939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40940      fi
40941
40942 fi
40943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
40944 $as_echo "$gl_cv_c_inline_effective" >&6; }
40945   if test $gl_cv_c_inline_effective = yes; then
40946
40947 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
40948
40949   fi
40950
40951
40952
40953
40954   ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
40955       #ifndef isinf
40956       #error \"isinf must be a macro, not a function\"
40957       #endif
40958
40959 "
40960 if test "x$ac_cv_have_decl_isinf" = xyes; then :
40961   ac_have_decl=1
40962 else
40963   ac_have_decl=0
40964 fi
40965
40966 cat >>confdefs.h <<_ACEOF
40967 #define HAVE_DECL_ISINF $ac_have_decl
40968 _ACEOF
40969
40970   if test "$ac_cv_have_decl_isinf" = yes; then
40971
40972   save_LIBS=$LIBS
40973   ISINF_LIBM=missing
40974   for libm in "" "-lm"; do
40975     LIBS="$save_LIBS $libm"
40976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40977 /* end confdefs.h.  */
40978
40979          #ifndef __NO_MATH_INLINES
40980          # define __NO_MATH_INLINES 1 /* for glibc */
40981          #endif
40982          #include <math.h>
40983
40984          double x;
40985 int
40986 main ()
40987 {
40988 x = isinf (x) + isinf ((float) x);
40989   ;
40990   return 0;
40991 }
40992 _ACEOF
40993 if ac_fn_c_try_link "$LINENO"; then :
40994   ISINF_LIBM=$libm
40995 break
40996 fi
40997 rm -f core conftest.err conftest.$ac_objext \
40998     conftest$ac_exeext conftest.$ac_ext
40999   done
41000   LIBS=$save_LIBS
41001
41002     if test "$ISINF_LIBM" != missing; then
41003
41004
41005
41006
41007      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isinf(long double) works" >&5
41008 $as_echo_n "checking whether isinf(long double) works... " >&6; }
41009 if ${gl_cv_func_isinfl_works+:} false; then :
41010   $as_echo_n "(cached) " >&6
41011 else
41012
41013       if test "$cross_compiling" = yes; then :
41014   gl_cv_func_isinfl_works="guessing yes"
41015 else
41016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41017 /* end confdefs.h.  */
41018
41019 #include <float.h>
41020 #include <limits.h>
41021 #include <math.h>
41022 #define NWORDS \
41023   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41024 typedef union { unsigned int word[NWORDS]; long double value; }
41025         memory_long_double;
41026 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
41027    runtime type conversion.  */
41028 #ifdef __sgi
41029 static long double NaNl ()
41030 {
41031   double zero = 0.0;
41032   return zero / zero;
41033 }
41034 #else
41035 # define NaNl() (0.0L / 0.0L)
41036 #endif
41037 int main ()
41038 {
41039   int result = 0;
41040
41041   if (isinf (LDBL_MAX))
41042     result |= 1;
41043
41044   {
41045     memory_long_double m;
41046     unsigned int i;
41047
41048     /* The isinf macro should be immune against changes in the sign bit and
41049        in the mantissa bits.  The xor operation twiddles a bit that can only be
41050        a sign bit or a mantissa bit (since the exponent never extends to
41051        bit 31).  */
41052     m.value = NaNl ();
41053     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
41054     for (i = 0; i < NWORDS; i++)
41055       m.word[i] |= 1;
41056     if (isinf (m.value))
41057       result |= 2;
41058   }
41059
41060 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
41061 /* Representation of an 80-bit 'long double' as an initializer for a sequence
41062    of 'unsigned int' words.  */
41063 # ifdef WORDS_BIGENDIAN
41064 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
41065      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
41066        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
41067        (unsigned int) (mantlo) << 16                                        \
41068      }
41069 # else
41070 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
41071      { mantlo, manthi, exponent }
41072 # endif
41073   { /* Quiet NaN.  */
41074     static memory_long_double x =
41075       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
41076     if (isinf (x.value))
41077       result |= 2;
41078   }
41079   {
41080     /* Signalling NaN.  */
41081     static memory_long_double x =
41082       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
41083     if (isinf (x.value))
41084       result |= 2;
41085   }
41086   /* isinf should return something even for noncanonical values.  */
41087   { /* Pseudo-NaN.  */
41088     static memory_long_double x =
41089       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
41090     if (isinf (x.value) && !isinf (x.value))
41091       result |= 4;
41092   }
41093   { /* Pseudo-Infinity.  */
41094     static memory_long_double x =
41095       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
41096     if (isinf (x.value) && !isinf (x.value))
41097       result |= 8;
41098   }
41099   { /* Pseudo-Zero.  */
41100     static memory_long_double x =
41101       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
41102     if (isinf (x.value) && !isinf (x.value))
41103       result |= 16;
41104   }
41105   { /* Unnormalized number.  */
41106     static memory_long_double x =
41107       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
41108     if (isinf (x.value) && !isinf (x.value))
41109       result |= 32;
41110   }
41111   { /* Pseudo-Denormal.  */
41112     static memory_long_double x =
41113       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
41114     if (isinf (x.value) && !isinf (x.value))
41115       result |= 64;
41116   }
41117 #endif
41118
41119   return result;
41120 }
41121 _ACEOF
41122 if ac_fn_c_try_run "$LINENO"; then :
41123   gl_cv_func_isinfl_works=yes
41124 else
41125   gl_cv_func_isinfl_works=no
41126 fi
41127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41128   conftest.$ac_objext conftest.beam conftest.$ac_ext
41129 fi
41130
41131
41132 fi
41133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isinfl_works" >&5
41134 $as_echo "$gl_cv_func_isinfl_works" >&6; }
41135
41136       case "$gl_cv_func_isinfl_works" in
41137         *yes) ;;
41138         *)    ISINF_LIBM=missing;;
41139       esac
41140     fi
41141   fi
41142   if test "$ac_cv_have_decl_isinf" != yes ||
41143      test "$ISINF_LIBM" = missing; then
41144     REPLACE_ISINF=1
41145         ISINF_LIBM=
41146   fi
41147
41148
41149   if test $REPLACE_ISINF = 1; then
41150
41151
41152
41153
41154
41155
41156
41157
41158   gl_LIBOBJS="$gl_LIBOBJS isinf.$ac_objext"
41159
41160   fi
41161
41162
41163
41164
41165
41166           GNULIB_ISINF=1
41167
41168
41169
41170
41171
41172 $as_echo "#define GNULIB_TEST_ISINF 1" >>confdefs.h
41173
41174
41175
41176
41177
41178
41179
41180
41181
41182   # If we replaced any of the underlying isnan* functions, replace
41183   # the isnan macro; it undoubtedly suffers from the same flaws.
41184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan macro works" >&5
41185 $as_echo_n "checking whether isnan macro works... " >&6; }
41186   if test $gl_func_isnanf = yes \
41187      && test $gl_func_isnand = yes \
41188      && test $gl_func_isnanl = yes; then
41189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41190 $as_echo "yes" >&6; }
41191     ISNAN_LIBM=
41192         case " $ISNAN_LIBM " in
41193       *" $ISNANF_LIBM "*) ;;
41194       *) ISNAN_LIBM="$ISNAN_LIBM $ISNANF_LIBM" ;;
41195     esac
41196         case " $ISNAN_LIBM " in
41197       *" $ISNAND_LIBM "*) ;;
41198       *) ISNAN_LIBM="$ISNAN_LIBM $ISNAND_LIBM" ;;
41199     esac
41200         case " $ISNAN_LIBM " in
41201       *" $ISNANL_LIBM "*) ;;
41202       *) ISNAN_LIBM="$ISNAN_LIBM $ISNANL_LIBM" ;;
41203     esac
41204   else
41205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41206 $as_echo "no" >&6; }
41207         REPLACE_ISNAN=1
41208     ISNAN_LIBM=
41209   fi
41210
41211
41212
41213
41214
41215
41216
41217           GNULIB_ISNAN=1
41218
41219
41220
41221
41222
41223 $as_echo "#define GNULIB_TEST_ISNAN 1" >>confdefs.h
41224
41225
41226
41227
41228
41229   ISNAND_LIBM=
41230
41231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
41232 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
41233 if ${gl_cv_func_isnand_no_libm+:} false; then :
41234   $as_echo_n "(cached) " >&6
41235 else
41236
41237       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41238 /* end confdefs.h.  */
41239 #include <math.h>
41240              #if __GNUC__ >= 4
41241              # undef isnand
41242              # define isnand(x) __builtin_isnan ((double)(x))
41243              #else
41244              # undef isnand
41245              # define isnand(x) isnan ((double)(x))
41246              #endif
41247              double x;
41248 int
41249 main ()
41250 {
41251 return isnand (x);
41252   ;
41253   return 0;
41254 }
41255 _ACEOF
41256 if ac_fn_c_try_link "$LINENO"; then :
41257   gl_cv_func_isnand_no_libm=yes
41258 else
41259   gl_cv_func_isnand_no_libm=no
41260 fi
41261 rm -f core conftest.err conftest.$ac_objext \
41262     conftest$ac_exeext conftest.$ac_ext
41263
41264 fi
41265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
41266 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
41267
41268   if test $gl_cv_func_isnand_no_libm = no; then
41269
41270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
41271 $as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
41272 if ${gl_cv_func_isnand_in_libm+:} false; then :
41273   $as_echo_n "(cached) " >&6
41274 else
41275
41276       save_LIBS="$LIBS"
41277       LIBS="$LIBS -lm"
41278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41279 /* end confdefs.h.  */
41280 #include <math.h>
41281              #if __GNUC__ >= 4
41282              # undef isnand
41283              # define isnand(x) __builtin_isnan ((double)(x))
41284              #elif defined isnan
41285              # undef isnand
41286              # define isnand(x) isnan ((double)(x))
41287              #endif
41288              double x;
41289 int
41290 main ()
41291 {
41292 return isnand (x);
41293   ;
41294   return 0;
41295 }
41296 _ACEOF
41297 if ac_fn_c_try_link "$LINENO"; then :
41298   gl_cv_func_isnand_in_libm=yes
41299 else
41300   gl_cv_func_isnand_in_libm=no
41301 fi
41302 rm -f core conftest.err conftest.$ac_objext \
41303     conftest$ac_exeext conftest.$ac_ext
41304       LIBS="$save_LIBS"
41305
41306 fi
41307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
41308 $as_echo "$gl_cv_func_isnand_in_libm" >&6; }
41309
41310     if test $gl_cv_func_isnand_in_libm = yes; then
41311       ISNAND_LIBM=-lm
41312     fi
41313   fi
41314     if test $gl_cv_func_isnand_no_libm = yes \
41315      || test $gl_cv_func_isnand_in_libm = yes; then
41316     gl_func_isnand=yes
41317   else
41318     gl_func_isnand=no
41319     HAVE_ISNAND=0
41320   fi
41321
41322
41323
41324
41325
41326   if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
41327
41328
41329
41330
41331
41332
41333
41334
41335   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
41336
41337
41338
41339
41340   fi
41341
41342
41343
41344
41345
41346           GNULIB_ISNAND=1
41347
41348
41349
41350
41351
41352 $as_echo "#define GNULIB_TEST_ISNAND 1" >>confdefs.h
41353
41354
41355
41356
41357
41358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
41359 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
41360 if ${gl_cv_func_isnand_no_libm+:} false; then :
41361   $as_echo_n "(cached) " >&6
41362 else
41363
41364       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41365 /* end confdefs.h.  */
41366 #include <math.h>
41367              #if __GNUC__ >= 4
41368              # undef isnand
41369              # define isnand(x) __builtin_isnan ((double)(x))
41370              #else
41371              # undef isnand
41372              # define isnand(x) isnan ((double)(x))
41373              #endif
41374              double x;
41375 int
41376 main ()
41377 {
41378 return isnand (x);
41379   ;
41380   return 0;
41381 }
41382 _ACEOF
41383 if ac_fn_c_try_link "$LINENO"; then :
41384   gl_cv_func_isnand_no_libm=yes
41385 else
41386   gl_cv_func_isnand_no_libm=no
41387 fi
41388 rm -f core conftest.err conftest.$ac_objext \
41389     conftest$ac_exeext conftest.$ac_ext
41390
41391 fi
41392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
41393 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
41394
41395   gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
41396   if test $gl_cv_func_isnand_no_libm = yes; then
41397
41398 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
41399
41400   fi
41401
41402   if test $gl_func_isnand_no_libm != yes; then
41403
41404
41405
41406
41407
41408
41409
41410
41411   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
41412
41413
41414
41415
41416   fi
41417
41418
41419   ISNANF_LIBM=
41420
41421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
41422 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
41423 if ${gl_cv_func_isnanf_no_libm+:} false; then :
41424   $as_echo_n "(cached) " >&6
41425 else
41426
41427       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41428 /* end confdefs.h.  */
41429 #include <math.h>
41430              #if __GNUC__ >= 4
41431              # undef isnanf
41432              # define isnanf(x) __builtin_isnanf ((float)(x))
41433              #elif defined isnan
41434              # undef isnanf
41435              # define isnanf(x) isnan ((float)(x))
41436              #endif
41437              float x;
41438 int
41439 main ()
41440 {
41441 return isnanf (x);
41442   ;
41443   return 0;
41444 }
41445 _ACEOF
41446 if ac_fn_c_try_link "$LINENO"; then :
41447   gl_cv_func_isnanf_no_libm=yes
41448 else
41449   gl_cv_func_isnanf_no_libm=no
41450 fi
41451 rm -f core conftest.err conftest.$ac_objext \
41452     conftest$ac_exeext conftest.$ac_ext
41453
41454 fi
41455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
41456 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
41457
41458   if test $gl_cv_func_isnanf_no_libm = no; then
41459
41460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
41461 $as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
41462 if ${gl_cv_func_isnanf_in_libm+:} false; then :
41463   $as_echo_n "(cached) " >&6
41464 else
41465
41466       save_LIBS="$LIBS"
41467       LIBS="$LIBS -lm"
41468       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41469 /* end confdefs.h.  */
41470 #include <math.h>
41471              #if __GNUC__ >= 4
41472              # undef isnanf
41473              # define isnanf(x) __builtin_isnanf ((float)(x))
41474              #elif defined isnan
41475              # undef isnanf
41476              # define isnanf(x) isnan ((float)(x))
41477              #endif
41478              float x;
41479 int
41480 main ()
41481 {
41482 return isnanf (x);
41483   ;
41484   return 0;
41485 }
41486 _ACEOF
41487 if ac_fn_c_try_link "$LINENO"; then :
41488   gl_cv_func_isnanf_in_libm=yes
41489 else
41490   gl_cv_func_isnanf_in_libm=no
41491 fi
41492 rm -f core conftest.err conftest.$ac_objext \
41493     conftest$ac_exeext conftest.$ac_ext
41494       LIBS="$save_LIBS"
41495
41496 fi
41497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
41498 $as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
41499
41500     if test $gl_cv_func_isnanf_in_libm = yes; then
41501       ISNANF_LIBM=-lm
41502     fi
41503   fi
41504     if test $gl_cv_func_isnanf_no_libm = yes \
41505      || test $gl_cv_func_isnanf_in_libm = yes; then
41506     save_LIBS="$LIBS"
41507     LIBS="$LIBS $ISNANF_LIBM"
41508
41509
41510
41511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
41512 $as_echo_n "checking whether isnan(float) works... " >&6; }
41513 if ${gl_cv_func_isnanf_works+:} false; then :
41514   $as_echo_n "(cached) " >&6
41515 else
41516
41517       if test "$cross_compiling" = yes; then :
41518   case "$host_os" in
41519            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
41520            *)                gl_cv_func_isnanf_works="guessing yes";;
41521          esac
41522
41523 else
41524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41525 /* end confdefs.h.  */
41526
41527 #include <math.h>
41528 #if __GNUC__ >= 4
41529 # undef isnanf
41530 # define isnanf(x) __builtin_isnanf ((float)(x))
41531 #elif defined isnan
41532 # undef isnanf
41533 # define isnanf(x) isnan ((float)(x))
41534 #endif
41535 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
41536 #ifdef __DECC
41537 static float
41538 NaN ()
41539 {
41540   static float zero = 0.0f;
41541   return zero / zero;
41542 }
41543 #else
41544 # define NaN() (0.0f / 0.0f)
41545 #endif
41546 #define NWORDS \
41547   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41548 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
41549 int main()
41550 {
41551   int result = 0;
41552
41553   if (isnanf (1.0f / 0.0f))
41554     result |= 1;
41555
41556   if (!isnanf (NaN ()))
41557     result |= 2;
41558
41559 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
41560   /* The isnanf function should be immune against changes in the sign bit and
41561      in the mantissa bits.  The xor operation twiddles a bit that can only be
41562      a sign bit or a mantissa bit.  */
41563   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
41564     {
41565       memory_float m;
41566
41567       m.value = NaN ();
41568       /* Set the bits below the exponent to 01111...111.  */
41569       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
41570       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
41571       if (!isnanf (m.value))
41572         result |= 4;
41573     }
41574 #endif
41575
41576   return result;
41577 }
41578 _ACEOF
41579 if ac_fn_c_try_run "$LINENO"; then :
41580   gl_cv_func_isnanf_works=yes
41581 else
41582   gl_cv_func_isnanf_works=no
41583 fi
41584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41585   conftest.$ac_objext conftest.beam conftest.$ac_ext
41586 fi
41587
41588
41589 fi
41590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
41591 $as_echo "$gl_cv_func_isnanf_works" >&6; }
41592
41593     LIBS="$save_LIBS"
41594     case "$gl_cv_func_isnanf_works" in
41595       *yes) gl_func_isnanf=yes ;;
41596       *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
41597     esac
41598   else
41599     gl_func_isnanf=no
41600   fi
41601   if test $gl_func_isnanf != yes; then
41602     HAVE_ISNANF=0
41603   fi
41604
41605
41606
41607
41608
41609   if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
41610
41611
41612
41613
41614
41615
41616
41617
41618   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
41619
41620
41621
41622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
41623 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
41624 if ${gl_cv_cc_float_expbit0+:} false; then :
41625   $as_echo_n "(cached) " >&6
41626 else
41627
41628       if test "$cross_compiling" = yes; then :
41629   gl_cv_cc_float_expbit0="word 0 bit 23"
41630 else
41631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41632 /* end confdefs.h.  */
41633
41634 #include <float.h>
41635 #include <stddef.h>
41636 #include <stdio.h>
41637 #include <string.h>
41638 #define NWORDS \
41639   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41640 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
41641 static unsigned int ored_words[NWORDS];
41642 static unsigned int anded_words[NWORDS];
41643 static void add_to_ored_words (float x)
41644 {
41645   memory_float m;
41646   size_t i;
41647   /* Clear it first, in case
41648      sizeof (float) < sizeof (memory_float).  */
41649   memset (&m, 0, sizeof (memory_float));
41650   m.value = x;
41651   for (i = 0; i < NWORDS; i++)
41652     {
41653       ored_words[i] |= m.word[i];
41654       anded_words[i] &= m.word[i];
41655     }
41656 }
41657 int main ()
41658 {
41659   size_t j;
41660   FILE *fp = fopen ("conftest.out", "w");
41661   if (fp == NULL)
41662     return 1;
41663   for (j = 0; j < NWORDS; j++)
41664     anded_words[j] = ~ (unsigned int) 0;
41665   add_to_ored_words (0.25f);
41666   add_to_ored_words (0.5f);
41667   add_to_ored_words (1.0f);
41668   add_to_ored_words (2.0f);
41669   add_to_ored_words (4.0f);
41670   /* Remove bits that are common (e.g. if representation of the first mantissa
41671      bit is explicit).  */
41672   for (j = 0; j < NWORDS; j++)
41673     ored_words[j] &= ~anded_words[j];
41674   /* Now find the nonzero word.  */
41675   for (j = 0; j < NWORDS; j++)
41676     if (ored_words[j] != 0)
41677       break;
41678   if (j < NWORDS)
41679     {
41680       size_t i;
41681       for (i = j + 1; i < NWORDS; i++)
41682         if (ored_words[i] != 0)
41683           {
41684             fprintf (fp, "unknown");
41685             return (fclose (fp) != 0);
41686           }
41687       for (i = 0; ; i++)
41688         if ((ored_words[j] >> i) & 1)
41689           {
41690             fprintf (fp, "word %d bit %d", (int) j, (int) i);
41691             return (fclose (fp) != 0);
41692           }
41693     }
41694   fprintf (fp, "unknown");
41695   return (fclose (fp) != 0);
41696 }
41697
41698 _ACEOF
41699 if ac_fn_c_try_run "$LINENO"; then :
41700   gl_cv_cc_float_expbit0=`cat conftest.out`
41701 else
41702   gl_cv_cc_float_expbit0="unknown"
41703 fi
41704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41705   conftest.$ac_objext conftest.beam conftest.$ac_ext
41706 fi
41707
41708       rm -f conftest.out
41709
41710 fi
41711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
41712 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
41713   case "$gl_cv_cc_float_expbit0" in
41714     word*bit*)
41715       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
41716       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
41717
41718 cat >>confdefs.h <<_ACEOF
41719 #define FLT_EXPBIT0_WORD $word
41720 _ACEOF
41721
41722
41723 cat >>confdefs.h <<_ACEOF
41724 #define FLT_EXPBIT0_BIT $bit
41725 _ACEOF
41726
41727       ;;
41728   esac
41729
41730
41731   fi
41732
41733
41734
41735
41736
41737           GNULIB_ISNANF=1
41738
41739
41740
41741
41742
41743 $as_echo "#define GNULIB_TEST_ISNANF 1" >>confdefs.h
41744
41745
41746
41747
41748
41749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
41750 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
41751 if ${gl_cv_func_isnanf_no_libm+:} false; then :
41752   $as_echo_n "(cached) " >&6
41753 else
41754
41755       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41756 /* end confdefs.h.  */
41757 #include <math.h>
41758              #if __GNUC__ >= 4
41759              # undef isnanf
41760              # define isnanf(x) __builtin_isnanf ((float)(x))
41761              #elif defined isnan
41762              # undef isnanf
41763              # define isnanf(x) isnan ((float)(x))
41764              #endif
41765              float x;
41766 int
41767 main ()
41768 {
41769 return isnanf (x);
41770   ;
41771   return 0;
41772 }
41773 _ACEOF
41774 if ac_fn_c_try_link "$LINENO"; then :
41775   gl_cv_func_isnanf_no_libm=yes
41776 else
41777   gl_cv_func_isnanf_no_libm=no
41778 fi
41779 rm -f core conftest.err conftest.$ac_objext \
41780     conftest$ac_exeext conftest.$ac_ext
41781
41782 fi
41783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
41784 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
41785
41786   if test $gl_cv_func_isnanf_no_libm = yes; then
41787
41788
41789
41790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
41791 $as_echo_n "checking whether isnan(float) works... " >&6; }
41792 if ${gl_cv_func_isnanf_works+:} false; then :
41793   $as_echo_n "(cached) " >&6
41794 else
41795
41796       if test "$cross_compiling" = yes; then :
41797   case "$host_os" in
41798            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
41799            *)                gl_cv_func_isnanf_works="guessing yes";;
41800          esac
41801
41802 else
41803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41804 /* end confdefs.h.  */
41805
41806 #include <math.h>
41807 #if __GNUC__ >= 4
41808 # undef isnanf
41809 # define isnanf(x) __builtin_isnanf ((float)(x))
41810 #elif defined isnan
41811 # undef isnanf
41812 # define isnanf(x) isnan ((float)(x))
41813 #endif
41814 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
41815 #ifdef __DECC
41816 static float
41817 NaN ()
41818 {
41819   static float zero = 0.0f;
41820   return zero / zero;
41821 }
41822 #else
41823 # define NaN() (0.0f / 0.0f)
41824 #endif
41825 #define NWORDS \
41826   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41827 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
41828 int main()
41829 {
41830   int result = 0;
41831
41832   if (isnanf (1.0f / 0.0f))
41833     result |= 1;
41834
41835   if (!isnanf (NaN ()))
41836     result |= 2;
41837
41838 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
41839   /* The isnanf function should be immune against changes in the sign bit and
41840      in the mantissa bits.  The xor operation twiddles a bit that can only be
41841      a sign bit or a mantissa bit.  */
41842   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
41843     {
41844       memory_float m;
41845
41846       m.value = NaN ();
41847       /* Set the bits below the exponent to 01111...111.  */
41848       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
41849       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
41850       if (!isnanf (m.value))
41851         result |= 4;
41852     }
41853 #endif
41854
41855   return result;
41856 }
41857 _ACEOF
41858 if ac_fn_c_try_run "$LINENO"; then :
41859   gl_cv_func_isnanf_works=yes
41860 else
41861   gl_cv_func_isnanf_works=no
41862 fi
41863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41864   conftest.$ac_objext conftest.beam conftest.$ac_ext
41865 fi
41866
41867
41868 fi
41869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
41870 $as_echo "$gl_cv_func_isnanf_works" >&6; }
41871
41872   fi
41873   if test $gl_cv_func_isnanf_no_libm = yes \
41874      && { case "$gl_cv_func_isnanf_works" in
41875             *yes) true;;
41876             *) false;;
41877           esac
41878         }; then
41879     gl_func_isnanf_no_libm=yes
41880
41881 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
41882
41883   else
41884     gl_func_isnanf_no_libm=no
41885   fi
41886
41887   if test $gl_func_isnanf_no_libm != yes; then
41888
41889
41890
41891
41892
41893
41894
41895
41896   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
41897
41898
41899
41900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
41901 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
41902 if ${gl_cv_cc_float_expbit0+:} false; then :
41903   $as_echo_n "(cached) " >&6
41904 else
41905
41906       if test "$cross_compiling" = yes; then :
41907   gl_cv_cc_float_expbit0="word 0 bit 23"
41908 else
41909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41910 /* end confdefs.h.  */
41911
41912 #include <float.h>
41913 #include <stddef.h>
41914 #include <stdio.h>
41915 #include <string.h>
41916 #define NWORDS \
41917   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41918 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
41919 static unsigned int ored_words[NWORDS];
41920 static unsigned int anded_words[NWORDS];
41921 static void add_to_ored_words (float x)
41922 {
41923   memory_float m;
41924   size_t i;
41925   /* Clear it first, in case
41926      sizeof (float) < sizeof (memory_float).  */
41927   memset (&m, 0, sizeof (memory_float));
41928   m.value = x;
41929   for (i = 0; i < NWORDS; i++)
41930     {
41931       ored_words[i] |= m.word[i];
41932       anded_words[i] &= m.word[i];
41933     }
41934 }
41935 int main ()
41936 {
41937   size_t j;
41938   FILE *fp = fopen ("conftest.out", "w");
41939   if (fp == NULL)
41940     return 1;
41941   for (j = 0; j < NWORDS; j++)
41942     anded_words[j] = ~ (unsigned int) 0;
41943   add_to_ored_words (0.25f);
41944   add_to_ored_words (0.5f);
41945   add_to_ored_words (1.0f);
41946   add_to_ored_words (2.0f);
41947   add_to_ored_words (4.0f);
41948   /* Remove bits that are common (e.g. if representation of the first mantissa
41949      bit is explicit).  */
41950   for (j = 0; j < NWORDS; j++)
41951     ored_words[j] &= ~anded_words[j];
41952   /* Now find the nonzero word.  */
41953   for (j = 0; j < NWORDS; j++)
41954     if (ored_words[j] != 0)
41955       break;
41956   if (j < NWORDS)
41957     {
41958       size_t i;
41959       for (i = j + 1; i < NWORDS; i++)
41960         if (ored_words[i] != 0)
41961           {
41962             fprintf (fp, "unknown");
41963             return (fclose (fp) != 0);
41964           }
41965       for (i = 0; ; i++)
41966         if ((ored_words[j] >> i) & 1)
41967           {
41968             fprintf (fp, "word %d bit %d", (int) j, (int) i);
41969             return (fclose (fp) != 0);
41970           }
41971     }
41972   fprintf (fp, "unknown");
41973   return (fclose (fp) != 0);
41974 }
41975
41976 _ACEOF
41977 if ac_fn_c_try_run "$LINENO"; then :
41978   gl_cv_cc_float_expbit0=`cat conftest.out`
41979 else
41980   gl_cv_cc_float_expbit0="unknown"
41981 fi
41982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41983   conftest.$ac_objext conftest.beam conftest.$ac_ext
41984 fi
41985
41986       rm -f conftest.out
41987
41988 fi
41989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
41990 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
41991   case "$gl_cv_cc_float_expbit0" in
41992     word*bit*)
41993       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
41994       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
41995
41996 cat >>confdefs.h <<_ACEOF
41997 #define FLT_EXPBIT0_WORD $word
41998 _ACEOF
41999
42000
42001 cat >>confdefs.h <<_ACEOF
42002 #define FLT_EXPBIT0_BIT $bit
42003 _ACEOF
42004
42005       ;;
42006   esac
42007
42008
42009   fi
42010
42011
42012   ISNANL_LIBM=
42013
42014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
42015 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
42016 if ${gl_cv_func_isnanl_no_libm+:} false; then :
42017   $as_echo_n "(cached) " >&6
42018 else
42019
42020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42021 /* end confdefs.h.  */
42022 #include <math.h>
42023              #if __GNUC__ >= 4
42024              # undef isnanl
42025              # define isnanl(x) __builtin_isnanl ((long double)(x))
42026              #elif defined isnan
42027              # undef isnanl
42028              # define isnanl(x) isnan ((long double)(x))
42029              #endif
42030              long double x;
42031 int
42032 main ()
42033 {
42034 return isnanl (x);
42035   ;
42036   return 0;
42037 }
42038 _ACEOF
42039 if ac_fn_c_try_link "$LINENO"; then :
42040   gl_cv_func_isnanl_no_libm=yes
42041 else
42042   gl_cv_func_isnanl_no_libm=no
42043 fi
42044 rm -f core conftest.err conftest.$ac_objext \
42045     conftest$ac_exeext conftest.$ac_ext
42046
42047 fi
42048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
42049 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
42050
42051   if test $gl_cv_func_isnanl_no_libm = no; then
42052
42053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
42054 $as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
42055 if ${gl_cv_func_isnanl_in_libm+:} false; then :
42056   $as_echo_n "(cached) " >&6
42057 else
42058
42059       save_LIBS="$LIBS"
42060       LIBS="$LIBS -lm"
42061       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42062 /* end confdefs.h.  */
42063 #include <math.h>
42064              #if __GNUC__ >= 4
42065              # undef isnanl
42066              # define isnanl(x) __builtin_isnanl ((long double)(x))
42067              #elif defined isnan
42068              # undef isnanl
42069              # define isnanl(x) isnan ((long double)(x))
42070              #endif
42071              long double x;
42072 int
42073 main ()
42074 {
42075 return isnanl (x);
42076   ;
42077   return 0;
42078 }
42079 _ACEOF
42080 if ac_fn_c_try_link "$LINENO"; then :
42081   gl_cv_func_isnanl_in_libm=yes
42082 else
42083   gl_cv_func_isnanl_in_libm=no
42084 fi
42085 rm -f core conftest.err conftest.$ac_objext \
42086     conftest$ac_exeext conftest.$ac_ext
42087       LIBS="$save_LIBS"
42088
42089 fi
42090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
42091 $as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
42092
42093     if test $gl_cv_func_isnanl_in_libm = yes; then
42094       ISNANL_LIBM=-lm
42095     fi
42096   fi
42097     if test $gl_cv_func_isnanl_no_libm = yes \
42098      || test $gl_cv_func_isnanl_in_libm = yes; then
42099     save_LIBS="$LIBS"
42100     LIBS="$LIBS $ISNANL_LIBM"
42101
42102
42103
42104
42105      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
42106 $as_echo_n "checking whether isnanl works... " >&6; }
42107 if ${gl_cv_func_isnanl_works+:} false; then :
42108   $as_echo_n "(cached) " >&6
42109 else
42110
42111       if test "$cross_compiling" = yes; then :
42112   gl_cv_func_isnanl_works="guessing yes"
42113 else
42114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42115 /* end confdefs.h.  */
42116
42117 #include <float.h>
42118 #include <limits.h>
42119 #include <math.h>
42120 #if __GNUC__ >= 4
42121 # undef isnanl
42122 # define isnanl(x) __builtin_isnanl ((long double)(x))
42123 #elif defined isnan
42124 # undef isnanl
42125 # define isnanl(x) isnan ((long double)(x))
42126 #endif
42127 #define NWORDS \
42128   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42129 typedef union { unsigned int word[NWORDS]; long double value; }
42130         memory_long_double;
42131 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
42132    runtime type conversion.  */
42133 #ifdef __sgi
42134 static long double NaNl ()
42135 {
42136   double zero = 0.0;
42137   return zero / zero;
42138 }
42139 #else
42140 # define NaNl() (0.0L / 0.0L)
42141 #endif
42142 int main ()
42143 {
42144   int result = 0;
42145
42146   if (!isnanl (NaNl ()))
42147     result |= 1;
42148
42149   {
42150     memory_long_double m;
42151     unsigned int i;
42152
42153     /* The isnanl function should be immune against changes in the sign bit and
42154        in the mantissa bits.  The xor operation twiddles a bit that can only be
42155        a sign bit or a mantissa bit (since the exponent never extends to
42156        bit 31).  */
42157     m.value = NaNl ();
42158     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
42159     for (i = 0; i < NWORDS; i++)
42160       m.word[i] |= 1;
42161     if (!isnanl (m.value))
42162       result |= 1;
42163   }
42164
42165 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
42166 /* Representation of an 80-bit 'long double' as an initializer for a sequence
42167    of 'unsigned int' words.  */
42168 # ifdef WORDS_BIGENDIAN
42169 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
42170      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
42171        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
42172        (unsigned int) (mantlo) << 16                                        \
42173      }
42174 # else
42175 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
42176      { mantlo, manthi, exponent }
42177 # endif
42178   { /* Quiet NaN.  */
42179     static memory_long_double x =
42180       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
42181     if (!isnanl (x.value))
42182       result |= 2;
42183   }
42184   {
42185     /* Signalling NaN.  */
42186     static memory_long_double x =
42187       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
42188     if (!isnanl (x.value))
42189       result |= 2;
42190   }
42191   /* isnanl should return something even for noncanonical values.  */
42192   { /* Pseudo-NaN.  */
42193     static memory_long_double x =
42194       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
42195     if (isnanl (x.value) && !isnanl (x.value))
42196       result |= 4;
42197   }
42198   { /* Pseudo-Infinity.  */
42199     static memory_long_double x =
42200       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
42201     if (isnanl (x.value) && !isnanl (x.value))
42202       result |= 8;
42203   }
42204   { /* Pseudo-Zero.  */
42205     static memory_long_double x =
42206       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
42207     if (isnanl (x.value) && !isnanl (x.value))
42208       result |= 16;
42209   }
42210   { /* Unnormalized number.  */
42211     static memory_long_double x =
42212       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
42213     if (isnanl (x.value) && !isnanl (x.value))
42214       result |= 32;
42215   }
42216   { /* Pseudo-Denormal.  */
42217     static memory_long_double x =
42218       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
42219     if (isnanl (x.value) && !isnanl (x.value))
42220       result |= 64;
42221   }
42222 #endif
42223
42224   return result;
42225 }
42226 _ACEOF
42227 if ac_fn_c_try_run "$LINENO"; then :
42228   gl_cv_func_isnanl_works=yes
42229 else
42230   gl_cv_func_isnanl_works=no
42231 fi
42232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42233   conftest.$ac_objext conftest.beam conftest.$ac_ext
42234 fi
42235
42236
42237 fi
42238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
42239 $as_echo "$gl_cv_func_isnanl_works" >&6; }
42240
42241     LIBS="$save_LIBS"
42242     case "$gl_cv_func_isnanl_works" in
42243       *yes) gl_func_isnanl=yes ;;
42244       *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
42245     esac
42246   else
42247     gl_func_isnanl=no
42248   fi
42249   if test $gl_func_isnanl != yes; then
42250     HAVE_ISNANL=0
42251   fi
42252
42253
42254
42255
42256
42257   if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
42258
42259
42260
42261
42262
42263
42264
42265
42266   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
42267
42268
42269
42270
42271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
42272 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
42273 if ${gl_cv_cc_long_double_expbit0+:} false; then :
42274   $as_echo_n "(cached) " >&6
42275 else
42276
42277       if test "$cross_compiling" = yes; then :
42278
42279                               gl_cv_cc_long_double_expbit0="unknown"
42280
42281 else
42282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42283 /* end confdefs.h.  */
42284
42285 #include <float.h>
42286 #include <stddef.h>
42287 #include <stdio.h>
42288 #include <string.h>
42289 #define NWORDS \
42290   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42291 typedef union { long double value; unsigned int word[NWORDS]; }
42292         memory_long_double;
42293 static unsigned int ored_words[NWORDS];
42294 static unsigned int anded_words[NWORDS];
42295 static void add_to_ored_words (long double x)
42296 {
42297   memory_long_double m;
42298   size_t i;
42299   /* Clear it first, in case
42300      sizeof (long double) < sizeof (memory_long_double).  */
42301   memset (&m, 0, sizeof (memory_long_double));
42302   m.value = x;
42303   for (i = 0; i < NWORDS; i++)
42304     {
42305       ored_words[i] |= m.word[i];
42306       anded_words[i] &= m.word[i];
42307     }
42308 }
42309 int main ()
42310 {
42311   size_t j;
42312   FILE *fp = fopen ("conftest.out", "w");
42313   if (fp == NULL)
42314     return 1;
42315   for (j = 0; j < NWORDS; j++)
42316     anded_words[j] = ~ (unsigned int) 0;
42317   add_to_ored_words (0.25L);
42318   add_to_ored_words (0.5L);
42319   add_to_ored_words (1.0L);
42320   add_to_ored_words (2.0L);
42321   add_to_ored_words (4.0L);
42322   /* Remove bits that are common (e.g. if representation of the first mantissa
42323      bit is explicit).  */
42324   for (j = 0; j < NWORDS; j++)
42325     ored_words[j] &= ~anded_words[j];
42326   /* Now find the nonzero word.  */
42327   for (j = 0; j < NWORDS; j++)
42328     if (ored_words[j] != 0)
42329       break;
42330   if (j < NWORDS)
42331     {
42332       size_t i;
42333       for (i = j + 1; i < NWORDS; i++)
42334         if (ored_words[i] != 0)
42335           {
42336             fprintf (fp, "unknown");
42337             return (fclose (fp) != 0);
42338           }
42339       for (i = 0; ; i++)
42340         if ((ored_words[j] >> i) & 1)
42341           {
42342             fprintf (fp, "word %d bit %d", (int) j, (int) i);
42343             return (fclose (fp) != 0);
42344           }
42345     }
42346   fprintf (fp, "unknown");
42347   return (fclose (fp) != 0);
42348 }
42349
42350 _ACEOF
42351 if ac_fn_c_try_run "$LINENO"; then :
42352   gl_cv_cc_long_double_expbit0=`cat conftest.out`
42353 else
42354   gl_cv_cc_long_double_expbit0="unknown"
42355 fi
42356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42357   conftest.$ac_objext conftest.beam conftest.$ac_ext
42358 fi
42359
42360       rm -f conftest.out
42361
42362 fi
42363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
42364 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
42365   case "$gl_cv_cc_long_double_expbit0" in
42366     word*bit*)
42367       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
42368       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
42369
42370 cat >>confdefs.h <<_ACEOF
42371 #define LDBL_EXPBIT0_WORD $word
42372 _ACEOF
42373
42374
42375 cat >>confdefs.h <<_ACEOF
42376 #define LDBL_EXPBIT0_BIT $bit
42377 _ACEOF
42378
42379       ;;
42380   esac
42381
42382
42383
42384   fi
42385
42386
42387
42388
42389
42390           GNULIB_ISNANL=1
42391
42392
42393
42394
42395
42396 $as_echo "#define GNULIB_TEST_ISNANL 1" >>confdefs.h
42397
42398
42399
42400
42401
42402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
42403 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
42404 if ${gl_cv_func_isnanl_no_libm+:} false; then :
42405   $as_echo_n "(cached) " >&6
42406 else
42407
42408       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42409 /* end confdefs.h.  */
42410 #include <math.h>
42411              #if __GNUC__ >= 4
42412              # undef isnanl
42413              # define isnanl(x) __builtin_isnanl ((long double)(x))
42414              #elif defined isnan
42415              # undef isnanl
42416              # define isnanl(x) isnan ((long double)(x))
42417              #endif
42418              long double x;
42419 int
42420 main ()
42421 {
42422 return isnanl (x);
42423   ;
42424   return 0;
42425 }
42426 _ACEOF
42427 if ac_fn_c_try_link "$LINENO"; then :
42428   gl_cv_func_isnanl_no_libm=yes
42429 else
42430   gl_cv_func_isnanl_no_libm=no
42431 fi
42432 rm -f core conftest.err conftest.$ac_objext \
42433     conftest$ac_exeext conftest.$ac_ext
42434
42435 fi
42436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
42437 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
42438
42439   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
42440   if test $gl_func_isnanl_no_libm = yes; then
42441
42442
42443
42444
42445      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
42446 $as_echo_n "checking whether isnanl works... " >&6; }
42447 if ${gl_cv_func_isnanl_works+:} false; then :
42448   $as_echo_n "(cached) " >&6
42449 else
42450
42451       if test "$cross_compiling" = yes; then :
42452   gl_cv_func_isnanl_works="guessing yes"
42453 else
42454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42455 /* end confdefs.h.  */
42456
42457 #include <float.h>
42458 #include <limits.h>
42459 #include <math.h>
42460 #if __GNUC__ >= 4
42461 # undef isnanl
42462 # define isnanl(x) __builtin_isnanl ((long double)(x))
42463 #elif defined isnan
42464 # undef isnanl
42465 # define isnanl(x) isnan ((long double)(x))
42466 #endif
42467 #define NWORDS \
42468   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42469 typedef union { unsigned int word[NWORDS]; long double value; }
42470         memory_long_double;
42471 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
42472    runtime type conversion.  */
42473 #ifdef __sgi
42474 static long double NaNl ()
42475 {
42476   double zero = 0.0;
42477   return zero / zero;
42478 }
42479 #else
42480 # define NaNl() (0.0L / 0.0L)
42481 #endif
42482 int main ()
42483 {
42484   int result = 0;
42485
42486   if (!isnanl (NaNl ()))
42487     result |= 1;
42488
42489   {
42490     memory_long_double m;
42491     unsigned int i;
42492
42493     /* The isnanl function should be immune against changes in the sign bit and
42494        in the mantissa bits.  The xor operation twiddles a bit that can only be
42495        a sign bit or a mantissa bit (since the exponent never extends to
42496        bit 31).  */
42497     m.value = NaNl ();
42498     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
42499     for (i = 0; i < NWORDS; i++)
42500       m.word[i] |= 1;
42501     if (!isnanl (m.value))
42502       result |= 1;
42503   }
42504
42505 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
42506 /* Representation of an 80-bit 'long double' as an initializer for a sequence
42507    of 'unsigned int' words.  */
42508 # ifdef WORDS_BIGENDIAN
42509 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
42510      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
42511        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
42512        (unsigned int) (mantlo) << 16                                        \
42513      }
42514 # else
42515 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
42516      { mantlo, manthi, exponent }
42517 # endif
42518   { /* Quiet NaN.  */
42519     static memory_long_double x =
42520       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
42521     if (!isnanl (x.value))
42522       result |= 2;
42523   }
42524   {
42525     /* Signalling NaN.  */
42526     static memory_long_double x =
42527       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
42528     if (!isnanl (x.value))
42529       result |= 2;
42530   }
42531   /* isnanl should return something even for noncanonical values.  */
42532   { /* Pseudo-NaN.  */
42533     static memory_long_double x =
42534       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
42535     if (isnanl (x.value) && !isnanl (x.value))
42536       result |= 4;
42537   }
42538   { /* Pseudo-Infinity.  */
42539     static memory_long_double x =
42540       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
42541     if (isnanl (x.value) && !isnanl (x.value))
42542       result |= 8;
42543   }
42544   { /* Pseudo-Zero.  */
42545     static memory_long_double x =
42546       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
42547     if (isnanl (x.value) && !isnanl (x.value))
42548       result |= 16;
42549   }
42550   { /* Unnormalized number.  */
42551     static memory_long_double x =
42552       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
42553     if (isnanl (x.value) && !isnanl (x.value))
42554       result |= 32;
42555   }
42556   { /* Pseudo-Denormal.  */
42557     static memory_long_double x =
42558       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
42559     if (isnanl (x.value) && !isnanl (x.value))
42560       result |= 64;
42561   }
42562 #endif
42563
42564   return result;
42565 }
42566 _ACEOF
42567 if ac_fn_c_try_run "$LINENO"; then :
42568   gl_cv_func_isnanl_works=yes
42569 else
42570   gl_cv_func_isnanl_works=no
42571 fi
42572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42573   conftest.$ac_objext conftest.beam conftest.$ac_ext
42574 fi
42575
42576
42577 fi
42578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
42579 $as_echo "$gl_cv_func_isnanl_works" >&6; }
42580
42581     case "$gl_cv_func_isnanl_works" in
42582       *yes) ;;
42583       *)    gl_func_isnanl_no_libm=no ;;
42584     esac
42585   fi
42586   if test $gl_func_isnanl_no_libm = yes; then
42587
42588 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
42589
42590   fi
42591
42592   if test $gl_func_isnanl_no_libm != yes; then
42593
42594
42595
42596
42597
42598
42599
42600
42601   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
42602
42603
42604
42605
42606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
42607 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
42608 if ${gl_cv_cc_long_double_expbit0+:} false; then :
42609   $as_echo_n "(cached) " >&6
42610 else
42611
42612       if test "$cross_compiling" = yes; then :
42613
42614                               gl_cv_cc_long_double_expbit0="unknown"
42615
42616 else
42617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42618 /* end confdefs.h.  */
42619
42620 #include <float.h>
42621 #include <stddef.h>
42622 #include <stdio.h>
42623 #include <string.h>
42624 #define NWORDS \
42625   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42626 typedef union { long double value; unsigned int word[NWORDS]; }
42627         memory_long_double;
42628 static unsigned int ored_words[NWORDS];
42629 static unsigned int anded_words[NWORDS];
42630 static void add_to_ored_words (long double x)
42631 {
42632   memory_long_double m;
42633   size_t i;
42634   /* Clear it first, in case
42635      sizeof (long double) < sizeof (memory_long_double).  */
42636   memset (&m, 0, sizeof (memory_long_double));
42637   m.value = x;
42638   for (i = 0; i < NWORDS; i++)
42639     {
42640       ored_words[i] |= m.word[i];
42641       anded_words[i] &= m.word[i];
42642     }
42643 }
42644 int main ()
42645 {
42646   size_t j;
42647   FILE *fp = fopen ("conftest.out", "w");
42648   if (fp == NULL)
42649     return 1;
42650   for (j = 0; j < NWORDS; j++)
42651     anded_words[j] = ~ (unsigned int) 0;
42652   add_to_ored_words (0.25L);
42653   add_to_ored_words (0.5L);
42654   add_to_ored_words (1.0L);
42655   add_to_ored_words (2.0L);
42656   add_to_ored_words (4.0L);
42657   /* Remove bits that are common (e.g. if representation of the first mantissa
42658      bit is explicit).  */
42659   for (j = 0; j < NWORDS; j++)
42660     ored_words[j] &= ~anded_words[j];
42661   /* Now find the nonzero word.  */
42662   for (j = 0; j < NWORDS; j++)
42663     if (ored_words[j] != 0)
42664       break;
42665   if (j < NWORDS)
42666     {
42667       size_t i;
42668       for (i = j + 1; i < NWORDS; i++)
42669         if (ored_words[i] != 0)
42670           {
42671             fprintf (fp, "unknown");
42672             return (fclose (fp) != 0);
42673           }
42674       for (i = 0; ; i++)
42675         if ((ored_words[j] >> i) & 1)
42676           {
42677             fprintf (fp, "word %d bit %d", (int) j, (int) i);
42678             return (fclose (fp) != 0);
42679           }
42680     }
42681   fprintf (fp, "unknown");
42682   return (fclose (fp) != 0);
42683 }
42684
42685 _ACEOF
42686 if ac_fn_c_try_run "$LINENO"; then :
42687   gl_cv_cc_long_double_expbit0=`cat conftest.out`
42688 else
42689   gl_cv_cc_long_double_expbit0="unknown"
42690 fi
42691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42692   conftest.$ac_objext conftest.beam conftest.$ac_ext
42693 fi
42694
42695       rm -f conftest.out
42696
42697 fi
42698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
42699 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
42700   case "$gl_cv_cc_long_double_expbit0" in
42701     word*bit*)
42702       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
42703       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
42704
42705 cat >>confdefs.h <<_ACEOF
42706 #define LDBL_EXPBIT0_WORD $word
42707 _ACEOF
42708
42709
42710 cat >>confdefs.h <<_ACEOF
42711 #define LDBL_EXPBIT0_BIT $bit
42712 _ACEOF
42713
42714       ;;
42715   esac
42716
42717
42718
42719   fi
42720
42721
42722
42723
42724
42725   ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
42726 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
42727    <wchar.h>.
42728    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
42729    before <wchar.h>.  */
42730 #include <stddef.h>
42731 #include <stdio.h>
42732 #include <time.h>
42733 #include <wchar.h>
42734 #include <wctype.h>
42735
42736 "
42737 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
42738   ac_have_decl=1
42739 else
42740   ac_have_decl=0
42741 fi
42742
42743 cat >>confdefs.h <<_ACEOF
42744 #define HAVE_DECL_ISWBLANK $ac_have_decl
42745 _ACEOF
42746
42747   if test $ac_cv_func_iswblank = no; then
42748     HAVE_ISWBLANK=0
42749     if test $ac_cv_have_decl_iswblank = yes; then
42750       REPLACE_ISWBLANK=1
42751     fi
42752   fi
42753   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42754         :
42755   else
42756     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
42757             :
42758     fi
42759   fi
42760
42761
42762   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42763     :
42764   else
42765     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
42766
42767
42768
42769
42770
42771
42772
42773
42774   gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
42775
42776     fi
42777   fi
42778
42779
42780
42781
42782
42783           GNULIB_ISWBLANK=1
42784
42785
42786
42787
42788
42789 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
42790
42791
42792
42793
42794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
42795 $as_echo_n "checking whether to use Java... " >&6; }
42796   # Check whether --enable-java was given.
42797 if test "${enable_java+set}" = set; then :
42798   enableval=$enable_java; JAVA_CHOICE="$enableval"
42799 else
42800   JAVA_CHOICE=yes
42801 fi
42802
42803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
42804 $as_echo "$JAVA_CHOICE" >&6; }
42805   if test "$JAVA_CHOICE" = yes; then
42806     # Check whether --enable-native-java was given.
42807 if test "${enable_native_java+set}" = set; then :
42808   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
42809 fi
42810
42811   fi
42812
42813
42814   # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
42815   ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
42816
42817   # You need to invoke gt_JAVAEXEC yourself, possibly with arguments.
42818   ac_config_files="$ac_config_files javaexec.sh:../build-aux/javaexec.sh.in"
42819
42820
42821
42822
42823
42824
42825
42826
42827
42828
42829
42830
42831
42832
42833
42834      if test $gl_cv_have_include_next = yes; then
42835        gl_cv_next_langinfo_h='<'langinfo.h'>'
42836      else
42837        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
42838 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
42839 if ${gl_cv_next_langinfo_h+:} false; then :
42840   $as_echo_n "(cached) " >&6
42841 else
42842
42843              if test $ac_cv_header_langinfo_h = yes; then
42844
42845
42846
42847
42848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42849 /* end confdefs.h.  */
42850 #include <langinfo.h>
42851 _ACEOF
42852                 case "$host_os" in
42853     aix*) gl_absname_cpp="$ac_cpp -C" ;;
42854     *)    gl_absname_cpp="$ac_cpp" ;;
42855   esac
42856
42857   case "$host_os" in
42858     mingw*)
42859                                           gl_dirsep_regex='[/\\]'
42860       ;;
42861     *)
42862       gl_dirsep_regex='\/'
42863       ;;
42864   esac
42865       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42866   gl_header_literal_regex=`echo 'langinfo.h' \
42867                            | sed -e "$gl_make_literal_regex_sed"`
42868   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42869       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42870       s|^/[^/]|//&|
42871       p
42872       q
42873     }'
42874
42875         gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42876   sed -n "$gl_absolute_header_sed"`
42877
42878            gl_header=$gl_cv_absolute_langinfo_h
42879            gl_cv_next_langinfo_h='"'$gl_header'"'
42880           else
42881                gl_cv_next_langinfo_h='<'langinfo.h'>'
42882              fi
42883
42884
42885 fi
42886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
42887 $as_echo "$gl_cv_next_langinfo_h" >&6; }
42888      fi
42889      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
42890
42891      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42892        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42893        gl_next_as_first_directive='<'langinfo.h'>'
42894      else
42895        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42896        gl_next_as_first_directive=$gl_cv_next_langinfo_h
42897      fi
42898      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
42899
42900
42901
42902
42903
42904     HAVE_LANGINFO_CODESET=0
42905   HAVE_LANGINFO_T_FMT_AMPM=0
42906   HAVE_LANGINFO_ERA=0
42907   HAVE_LANGINFO_YESEXPR=0
42908
42909   if test $ac_cv_header_langinfo_h = yes; then
42910     HAVE_LANGINFO_H=1
42911             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
42912 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
42913 if ${gl_cv_header_langinfo_codeset+:} false; then :
42914   $as_echo_n "(cached) " >&6
42915 else
42916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42917 /* end confdefs.h.  */
42918 #include <langinfo.h>
42919 int a = CODESET;
42920
42921 int
42922 main ()
42923 {
42924
42925   ;
42926   return 0;
42927 }
42928 _ACEOF
42929 if ac_fn_c_try_compile "$LINENO"; then :
42930   gl_cv_header_langinfo_codeset=yes
42931 else
42932   gl_cv_header_langinfo_codeset=no
42933 fi
42934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42935
42936 fi
42937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
42938 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
42939     if test $gl_cv_header_langinfo_codeset = yes; then
42940       HAVE_LANGINFO_CODESET=1
42941     fi
42942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
42943 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
42944 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
42945   $as_echo_n "(cached) " >&6
42946 else
42947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42948 /* end confdefs.h.  */
42949 #include <langinfo.h>
42950 int a = T_FMT_AMPM;
42951
42952 int
42953 main ()
42954 {
42955
42956   ;
42957   return 0;
42958 }
42959 _ACEOF
42960 if ac_fn_c_try_compile "$LINENO"; then :
42961   gl_cv_header_langinfo_t_fmt_ampm=yes
42962 else
42963   gl_cv_header_langinfo_t_fmt_ampm=no
42964 fi
42965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42966
42967 fi
42968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
42969 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
42970     if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
42971       HAVE_LANGINFO_T_FMT_AMPM=1
42972     fi
42973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
42974 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
42975 if ${gl_cv_header_langinfo_era+:} false; then :
42976   $as_echo_n "(cached) " >&6
42977 else
42978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42979 /* end confdefs.h.  */
42980 #include <langinfo.h>
42981 int a = ERA;
42982
42983 int
42984 main ()
42985 {
42986
42987   ;
42988   return 0;
42989 }
42990 _ACEOF
42991 if ac_fn_c_try_compile "$LINENO"; then :
42992   gl_cv_header_langinfo_era=yes
42993 else
42994   gl_cv_header_langinfo_era=no
42995 fi
42996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42997
42998 fi
42999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
43000 $as_echo "$gl_cv_header_langinfo_era" >&6; }
43001     if test $gl_cv_header_langinfo_era = yes; then
43002       HAVE_LANGINFO_ERA=1
43003     fi
43004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
43005 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
43006 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
43007   $as_echo_n "(cached) " >&6
43008 else
43009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43010 /* end confdefs.h.  */
43011 #include <langinfo.h>
43012 int a = YESEXPR;
43013
43014 int
43015 main ()
43016 {
43017
43018   ;
43019   return 0;
43020 }
43021 _ACEOF
43022 if ac_fn_c_try_compile "$LINENO"; then :
43023   gl_cv_header_langinfo_yesexpr=yes
43024 else
43025   gl_cv_header_langinfo_yesexpr=no
43026 fi
43027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43028
43029 fi
43030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
43031 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
43032     if test $gl_cv_header_langinfo_yesexpr = yes; then
43033       HAVE_LANGINFO_YESEXPR=1
43034     fi
43035   else
43036     HAVE_LANGINFO_H=0
43037   fi
43038
43039
43040
43041
43042
43043
43044
43045     for gl_func in nl_langinfo; do
43046     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
43048 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43049 if eval \${$as_gl_Symbol+:} false; then :
43050   $as_echo_n "(cached) " >&6
43051 else
43052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43053 /* end confdefs.h.  */
43054 #include <langinfo.h>
43055
43056 int
43057 main ()
43058 {
43059 #undef $gl_func
43060   (void) $gl_func;
43061   ;
43062   return 0;
43063 }
43064 _ACEOF
43065 if ac_fn_c_try_compile "$LINENO"; then :
43066   eval "$as_gl_Symbol=yes"
43067 else
43068   eval "$as_gl_Symbol=no"
43069 fi
43070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43071 fi
43072 eval ac_res=\$$as_gl_Symbol
43073                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
43074 $as_echo "$ac_res" >&6; }
43075     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
43076   cat >>confdefs.h <<_ACEOF
43077 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43078 _ACEOF
43079
43080                      eval ac_cv_have_decl_$gl_func=yes
43081 fi
43082       done
43083
43084
43085
43086
43087
43088
43089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libcroco is requested" >&5
43090 $as_echo_n "checking whether included libcroco is requested... " >&6; }
43091
43092 # Check whether --with-included-libcroco was given.
43093 if test "${with_included_libcroco+set}" = set; then :
43094   withval=$with_included_libcroco; gl_cv_libcroco_force_included=$withval
43095 else
43096   gl_cv_libcroco_force_included=no
43097 fi
43098
43099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_force_included" >&5
43100 $as_echo "$gl_cv_libcroco_force_included" >&6; }
43101
43102   gl_cv_libcroco_use_included="$gl_cv_libcroco_force_included"
43103   LIBCROCO=
43104   LTLIBCROCO=
43105   INCCROCO=
43106   if test "$gl_cv_libcroco_use_included" != yes; then
43107             if ${gl_cv_libcroco+:} false; then :
43108   $as_echo_n "(cached) " >&6
43109 else
43110
43111       gl_cv_libcroco=no
43112       gl_cv_LIBCROCO=
43113       gl_cv_LTLIBCROCO=
43114       gl_cv_INCCROCO=
43115       gl_save_LIBS="$LIBS"
43116
43117
43118
43119
43120
43121
43122
43123     use_additional=yes
43124
43125   acl_save_prefix="$prefix"
43126   prefix="$acl_final_prefix"
43127   acl_save_exec_prefix="$exec_prefix"
43128   exec_prefix="$acl_final_exec_prefix"
43129
43130     eval additional_includedir=\"$includedir\"
43131     eval additional_libdir=\"$libdir\"
43132
43133   exec_prefix="$acl_save_exec_prefix"
43134   prefix="$acl_save_prefix"
43135
43136
43137 # Check whether --with-libcroco-0.6-prefix was given.
43138 if test "${with_libcroco_0_6_prefix+set}" = set; then :
43139   withval=$with_libcroco_0_6_prefix;
43140     if test "X$withval" = "Xno"; then
43141       use_additional=no
43142     else
43143       if test "X$withval" = "X"; then
43144
43145   acl_save_prefix="$prefix"
43146   prefix="$acl_final_prefix"
43147   acl_save_exec_prefix="$exec_prefix"
43148   exec_prefix="$acl_final_exec_prefix"
43149
43150           eval additional_includedir=\"$includedir\"
43151           eval additional_libdir=\"$libdir\"
43152
43153   exec_prefix="$acl_save_exec_prefix"
43154   prefix="$acl_save_prefix"
43155
43156       else
43157         additional_includedir="$withval/include"
43158         additional_libdir="$withval/$acl_libdirstem"
43159         if test "$acl_libdirstem2" != "$acl_libdirstem" \
43160            && ! test -d "$withval/$acl_libdirstem"; then
43161           additional_libdir="$withval/$acl_libdirstem2"
43162         fi
43163       fi
43164     fi
43165
43166 fi
43167
43168       LIBCROCO_0_6=
43169   LTLIBCROCO_0_6=
43170   INCCROCO_0_6=
43171   LIBCROCO_0_6_PREFIX=
43172       HAVE_LIBCROCO_0_6=
43173   rpathdirs=
43174   ltrpathdirs=
43175   names_already_handled=
43176   names_next_round='croco-0.6 glib-2.0'
43177   while test -n "$names_next_round"; do
43178     names_this_round="$names_next_round"
43179     names_next_round=
43180     for name in $names_this_round; do
43181       already_handled=
43182       for n in $names_already_handled; do
43183         if test "$n" = "$name"; then
43184           already_handled=yes
43185           break
43186         fi
43187       done
43188       if test -z "$already_handled"; then
43189         names_already_handled="$names_already_handled $name"
43190                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
43191         eval value=\"\$HAVE_LIB$uppername\"
43192         if test -n "$value"; then
43193           if test "$value" = yes; then
43194             eval value=\"\$LIB$uppername\"
43195             test -z "$value" || LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$value"
43196             eval value=\"\$LTLIB$uppername\"
43197             test -z "$value" || LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$value"
43198           else
43199                                     :
43200           fi
43201         else
43202                               found_dir=
43203           found_la=
43204           found_so=
43205           found_a=
43206           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
43207           if test -n "$acl_shlibext"; then
43208             shrext=".$acl_shlibext"             # typically: shrext=.so
43209           else
43210             shrext=
43211           fi
43212           if test $use_additional = yes; then
43213             dir="$additional_libdir"
43214                                     if test -n "$acl_shlibext"; then
43215               if test -f "$dir/$libname$shrext"; then
43216                 found_dir="$dir"
43217                 found_so="$dir/$libname$shrext"
43218               else
43219                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
43220                   ver=`(cd "$dir" && \
43221                         for f in "$libname$shrext".*; do echo "$f"; done \
43222                         | sed -e "s,^$libname$shrext\\\\.,," \
43223                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
43224                         | sed 1q ) 2>/dev/null`
43225                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
43226                     found_dir="$dir"
43227                     found_so="$dir/$libname$shrext.$ver"
43228                   fi
43229                 else
43230                   eval library_names=\"$acl_library_names_spec\"
43231                   for f in $library_names; do
43232                     if test -f "$dir/$f"; then
43233                       found_dir="$dir"
43234                       found_so="$dir/$f"
43235                       break
43236                     fi
43237                   done
43238                 fi
43239               fi
43240             fi
43241                         if test "X$found_dir" = "X"; then
43242               if test -f "$dir/$libname.$acl_libext"; then
43243                 found_dir="$dir"
43244                 found_a="$dir/$libname.$acl_libext"
43245               fi
43246             fi
43247             if test "X$found_dir" != "X"; then
43248               if test -f "$dir/$libname.la"; then
43249                 found_la="$dir/$libname.la"
43250               fi
43251             fi
43252           fi
43253           if test "X$found_dir" = "X"; then
43254             for x in $LDFLAGS $LTLIBCROCO_0_6; do
43255
43256   acl_save_prefix="$prefix"
43257   prefix="$acl_final_prefix"
43258   acl_save_exec_prefix="$exec_prefix"
43259   exec_prefix="$acl_final_exec_prefix"
43260   eval x=\"$x\"
43261   exec_prefix="$acl_save_exec_prefix"
43262   prefix="$acl_save_prefix"
43263
43264               case "$x" in
43265                 -L*)
43266                   dir=`echo "X$x" | sed -e 's/^X-L//'`
43267                                     if test -n "$acl_shlibext"; then
43268                     if test -f "$dir/$libname$shrext"; then
43269                       found_dir="$dir"
43270                       found_so="$dir/$libname$shrext"
43271                     else
43272                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
43273                         ver=`(cd "$dir" && \
43274                               for f in "$libname$shrext".*; do echo "$f"; done \
43275                               | sed -e "s,^$libname$shrext\\\\.,," \
43276                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
43277                               | sed 1q ) 2>/dev/null`
43278                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
43279                           found_dir="$dir"
43280                           found_so="$dir/$libname$shrext.$ver"
43281                         fi
43282                       else
43283                         eval library_names=\"$acl_library_names_spec\"
43284                         for f in $library_names; do
43285                           if test -f "$dir/$f"; then
43286                             found_dir="$dir"
43287                             found_so="$dir/$f"
43288                             break
43289                           fi
43290                         done
43291                       fi
43292                     fi
43293                   fi
43294                                     if test "X$found_dir" = "X"; then
43295                     if test -f "$dir/$libname.$acl_libext"; then
43296                       found_dir="$dir"
43297                       found_a="$dir/$libname.$acl_libext"
43298                     fi
43299                   fi
43300                   if test "X$found_dir" != "X"; then
43301                     if test -f "$dir/$libname.la"; then
43302                       found_la="$dir/$libname.la"
43303                     fi
43304                   fi
43305                   ;;
43306               esac
43307               if test "X$found_dir" != "X"; then
43308                 break
43309               fi
43310             done
43311           fi
43312           if test "X$found_dir" != "X"; then
43313                         LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$found_dir -l$name"
43314             if test "X$found_so" != "X"; then
43315                                                         if test "$enable_rpath" = no \
43316                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
43317                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
43318                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
43319               else
43320                                                                                 haveit=
43321                 for x in $ltrpathdirs; do
43322                   if test "X$x" = "X$found_dir"; then
43323                     haveit=yes
43324                     break
43325                   fi
43326                 done
43327                 if test -z "$haveit"; then
43328                   ltrpathdirs="$ltrpathdirs $found_dir"
43329                 fi
43330                                 if test "$acl_hardcode_direct" = yes; then
43331                                                       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
43332                 else
43333                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
43334                                                             LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
43335                                                             haveit=
43336                     for x in $rpathdirs; do
43337                       if test "X$x" = "X$found_dir"; then
43338                         haveit=yes
43339                         break
43340                       fi
43341                     done
43342                     if test -z "$haveit"; then
43343                       rpathdirs="$rpathdirs $found_dir"
43344                     fi
43345                   else
43346                                                                                 haveit=
43347                     for x in $LDFLAGS $LIBCROCO_0_6; do
43348
43349   acl_save_prefix="$prefix"
43350   prefix="$acl_final_prefix"
43351   acl_save_exec_prefix="$exec_prefix"
43352   exec_prefix="$acl_final_exec_prefix"
43353   eval x=\"$x\"
43354   exec_prefix="$acl_save_exec_prefix"
43355   prefix="$acl_save_prefix"
43356
43357                       if test "X$x" = "X-L$found_dir"; then
43358                         haveit=yes
43359                         break
43360                       fi
43361                     done
43362                     if test -z "$haveit"; then
43363                       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir"
43364                     fi
43365                     if test "$acl_hardcode_minus_L" != no; then
43366                                                                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
43367                     else
43368                                                                                                                                                                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
43369                     fi
43370                   fi
43371                 fi
43372               fi
43373             else
43374               if test "X$found_a" != "X"; then
43375                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_a"
43376               else
43377                                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir -l$name"
43378               fi
43379             fi
43380                         additional_includedir=
43381             case "$found_dir" in
43382               */$acl_libdirstem | */$acl_libdirstem/)
43383                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
43384                 if test "$name" = 'croco-0.6'; then
43385                   LIBCROCO_0_6_PREFIX="$basedir"
43386                 fi
43387                 additional_includedir="$basedir/include"
43388                 ;;
43389               */$acl_libdirstem2 | */$acl_libdirstem2/)
43390                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
43391                 if test "$name" = 'croco-0.6'; then
43392                   LIBCROCO_0_6_PREFIX="$basedir"
43393                 fi
43394                 additional_includedir="$basedir/include"
43395                 ;;
43396             esac
43397             if test "X$additional_includedir" != "X"; then
43398                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
43399                 haveit=
43400                 if test "X$additional_includedir" = "X/usr/local/include"; then
43401                   if test -n "$GCC"; then
43402                     case $host_os in
43403                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
43404                     esac
43405                   fi
43406                 fi
43407                 if test -z "$haveit"; then
43408                   for x in $CPPFLAGS $INCCROCO_0_6; do
43409
43410   acl_save_prefix="$prefix"
43411   prefix="$acl_final_prefix"
43412   acl_save_exec_prefix="$exec_prefix"
43413   exec_prefix="$acl_final_exec_prefix"
43414   eval x=\"$x\"
43415   exec_prefix="$acl_save_exec_prefix"
43416   prefix="$acl_save_prefix"
43417
43418                     if test "X$x" = "X-I$additional_includedir"; then
43419                       haveit=yes
43420                       break
43421                     fi
43422                   done
43423                   if test -z "$haveit"; then
43424                     if test -d "$additional_includedir"; then
43425                                             INCCROCO_0_6="${INCCROCO_0_6}${INCCROCO_0_6:+ }-I$additional_includedir"
43426                     fi
43427                   fi
43428                 fi
43429               fi
43430             fi
43431                         if test -n "$found_la"; then
43432                                                         save_libdir="$libdir"
43433               case "$found_la" in
43434                 */* | *\\*) . "$found_la" ;;
43435                 *) . "./$found_la" ;;
43436               esac
43437               libdir="$save_libdir"
43438                             for dep in $dependency_libs; do
43439                 case "$dep" in
43440                   -L*)
43441                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
43442                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
43443                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
43444                       haveit=
43445                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
43446                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
43447                         if test -n "$GCC"; then
43448                           case $host_os in
43449                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
43450                           esac
43451                         fi
43452                       fi
43453                       if test -z "$haveit"; then
43454                         haveit=
43455                         for x in $LDFLAGS $LIBCROCO_0_6; do
43456
43457   acl_save_prefix="$prefix"
43458   prefix="$acl_final_prefix"
43459   acl_save_exec_prefix="$exec_prefix"
43460   exec_prefix="$acl_final_exec_prefix"
43461   eval x=\"$x\"
43462   exec_prefix="$acl_save_exec_prefix"
43463   prefix="$acl_save_prefix"
43464
43465                           if test "X$x" = "X-L$additional_libdir"; then
43466                             haveit=yes
43467                             break
43468                           fi
43469                         done
43470                         if test -z "$haveit"; then
43471                           if test -d "$additional_libdir"; then
43472                                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$additional_libdir"
43473                           fi
43474                         fi
43475                         haveit=
43476                         for x in $LDFLAGS $LTLIBCROCO_0_6; do
43477
43478   acl_save_prefix="$prefix"
43479   prefix="$acl_final_prefix"
43480   acl_save_exec_prefix="$exec_prefix"
43481   exec_prefix="$acl_final_exec_prefix"
43482   eval x=\"$x\"
43483   exec_prefix="$acl_save_exec_prefix"
43484   prefix="$acl_save_prefix"
43485
43486                           if test "X$x" = "X-L$additional_libdir"; then
43487                             haveit=yes
43488                             break
43489                           fi
43490                         done
43491                         if test -z "$haveit"; then
43492                           if test -d "$additional_libdir"; then
43493                                                         LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$additional_libdir"
43494                           fi
43495                         fi
43496                       fi
43497                     fi
43498                     ;;
43499                   -R*)
43500                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
43501                     if test "$enable_rpath" != no; then
43502                                                                   haveit=
43503                       for x in $rpathdirs; do
43504                         if test "X$x" = "X$dir"; then
43505                           haveit=yes
43506                           break
43507                         fi
43508                       done
43509                       if test -z "$haveit"; then
43510                         rpathdirs="$rpathdirs $dir"
43511                       fi
43512                                                                   haveit=
43513                       for x in $ltrpathdirs; do
43514                         if test "X$x" = "X$dir"; then
43515                           haveit=yes
43516                           break
43517                         fi
43518                       done
43519                       if test -z "$haveit"; then
43520                         ltrpathdirs="$ltrpathdirs $dir"
43521                       fi
43522                     fi
43523                     ;;
43524                   -l*)
43525                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
43526                     ;;
43527                   *.la)
43528                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
43529                     ;;
43530                   *)
43531                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$dep"
43532                     LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$dep"
43533                     ;;
43534                 esac
43535               done
43536             fi
43537           else
43538                                                             LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
43539             LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-l$name"
43540           fi
43541         fi
43542       fi
43543     done
43544   done
43545   if test "X$rpathdirs" != "X"; then
43546     if test -n "$acl_hardcode_libdir_separator"; then
43547                         alldirs=
43548       for found_dir in $rpathdirs; do
43549         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
43550       done
43551             acl_save_libdir="$libdir"
43552       libdir="$alldirs"
43553       eval flag=\"$acl_hardcode_libdir_flag_spec\"
43554       libdir="$acl_save_libdir"
43555       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
43556     else
43557             for found_dir in $rpathdirs; do
43558         acl_save_libdir="$libdir"
43559         libdir="$found_dir"
43560         eval flag=\"$acl_hardcode_libdir_flag_spec\"
43561         libdir="$acl_save_libdir"
43562         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
43563       done
43564     fi
43565   fi
43566   if test "X$ltrpathdirs" != "X"; then
43567             for found_dir in $ltrpathdirs; do
43568       LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-R$found_dir"
43569     done
43570   fi
43571
43572
43573
43574
43575
43576
43577       LIBS="$gl_save_LIBS $LIBCROCO_0_6"
43578       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43579 /* end confdefs.h.  */
43580 #include <libcroco-config.h>
43581 int
43582 main ()
43583 {
43584 const char *version = LIBCROCO_VERSION; return !version;
43585   ;
43586   return 0;
43587 }
43588 _ACEOF
43589 if ac_fn_c_try_link "$LINENO"; then :
43590   gl_cv_libcroco=yes
43591          gl_cv_LIBCROCO="$LIBCROCO_0_6"
43592          gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
43593
43594 fi
43595 rm -f core conftest.err conftest.$ac_objext \
43596     conftest$ac_exeext conftest.$ac_ext
43597       if test "$gl_cv_libcroco" != yes; then
43598         gl_save_CPPFLAGS="$CPPFLAGS"
43599         CPPFLAGS="$CPPFLAGS $INCCROCO_0_6"
43600         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43601 /* end confdefs.h.  */
43602 #include <libcroco-config.h>
43603 int
43604 main ()
43605 {
43606 const char *version = LIBCROCO_VERSION; return !version;
43607   ;
43608   return 0;
43609 }
43610 _ACEOF
43611 if ac_fn_c_try_link "$LINENO"; then :
43612   gl_cv_libcroco=yes
43613            gl_cv_LIBCROCO="$LIBCROCO_0_6"
43614            gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
43615            gl_cv_INCCROCO="$INCCROCO_0_6"
43616
43617 fi
43618 rm -f core conftest.err conftest.$ac_objext \
43619     conftest$ac_exeext conftest.$ac_ext
43620         if test "$gl_cv_libcroco" != yes; then
43621                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43622 /* end confdefs.h.  */
43623 #include <libcroco-0.6/libcroco/libcroco-config.h>
43624 int
43625 main ()
43626 {
43627 const char *version = LIBCROCO_VERSION; return !version;
43628   ;
43629   return 0;
43630 }
43631 _ACEOF
43632 if ac_fn_c_try_link "$LINENO"; then :
43633
43634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>" >&5
43635 $as_echo_n "checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>... " >&6; }
43636 if ${gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h+:} false; then :
43637   $as_echo_n "(cached) " >&6
43638 else
43639           if test $ac_cv_header_libcroco_0_6_libcroco_libcroco_config_h = yes; then
43640
43641
43642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43643 /* end confdefs.h.  */
43644 #include <libcroco-0.6/libcroco/libcroco-config.h>
43645 _ACEOF
43646                 case "$host_os" in
43647     aix*) gl_absname_cpp="$ac_cpp -C" ;;
43648     *)    gl_absname_cpp="$ac_cpp" ;;
43649   esac
43650
43651   case "$host_os" in
43652     mingw*)
43653                                           gl_dirsep_regex='[/\\]'
43654       ;;
43655     *)
43656       gl_dirsep_regex='\/'
43657       ;;
43658   esac
43659       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43660   gl_header_literal_regex=`echo 'libcroco-0.6/libcroco/libcroco-config.h' \
43661                            | sed -e "$gl_make_literal_regex_sed"`
43662   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43663       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43664       s|^/[^/]|//&|
43665       p
43666       q
43667     }'
43668
43669         gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43670   sed -n "$gl_absolute_header_sed"`
43671
43672     fi
43673
43674 fi
43675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&5
43676 $as_echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&6; }
43677 cat >>confdefs.h <<_ACEOF
43678 #define ABSOLUTE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h"
43679 _ACEOF
43680
43681
43682              libcroco_include_dir=`echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" | sed -e 's,.libcroco-config\.h$,,'`
43683              if test -d "$libcroco_include_dir"; then
43684                gl_cv_libcroco=yes
43685                gl_cv_LIBCROCO="$LIBCROCO_0_6"
43686                gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
43687                gl_cv_INCCROCO="-I$libcroco_include_dir"
43688              fi
43689
43690 fi
43691 rm -f core conftest.err conftest.$ac_objext \
43692     conftest$ac_exeext conftest.$ac_ext
43693         fi
43694         CPPFLAGS="$gl_save_CPPFLAGS"
43695       fi
43696       LIBS="$gl_save_LIBS"
43697
43698 fi
43699
43700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcroco" >&5
43701 $as_echo_n "checking for libcroco... " >&6; }
43702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco" >&5
43703 $as_echo "$gl_cv_libcroco" >&6; }
43704     if test $gl_cv_libcroco = yes; then
43705       LIBCROCO="$gl_cv_LIBCROCO"
43706       LTLIBCROCO="$gl_cv_LTLIBCROCO"
43707       INCCROCO="$gl_cv_INCCROCO"
43708     else
43709       gl_cv_libcroco_use_included=yes
43710     fi
43711   fi
43712
43713
43714
43715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libcroco" >&5
43716 $as_echo_n "checking whether to use the included libcroco... " >&6; }
43717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_use_included" >&5
43718 $as_echo "$gl_cv_libcroco_use_included" >&6; }
43719
43720    if test "$gl_cv_libcroco_use_included" = yes; then
43721   INCLUDED_LIBCROCO_TRUE=
43722   INCLUDED_LIBCROCO_FALSE='#'
43723 else
43724   INCLUDED_LIBCROCO_TRUE='#'
43725   INCLUDED_LIBCROCO_FALSE=
43726 fi
43727
43728
43729
43730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
43731 $as_echo_n "checking whether included glib is requested... " >&6; }
43732
43733 # Check whether --with-included-glib was given.
43734 if test "${with_included_glib+set}" = set; then :
43735   withval=$with_included_glib; gl_cv_libglib_force_included=$withval
43736 else
43737   gl_cv_libglib_force_included=no
43738 fi
43739
43740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
43741 $as_echo "$gl_cv_libglib_force_included" >&6; }
43742
43743   gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
43744   LIBGLIB=
43745   LTLIBGLIB=
43746   INCGLIB=
43747   if test "$gl_cv_libglib_use_included" != yes; then
43748             if ${gl_cv_libglib+:} false; then :
43749   $as_echo_n "(cached) " >&6
43750 else
43751
43752       gl_cv_libglib=no
43753       gl_cv_LIBGLIB=
43754       gl_cv_LTLIBGLIB=
43755       gl_cv_INCGLIB=
43756       gl_save_LIBS="$LIBS"
43757
43758
43759
43760
43761
43762
43763
43764     use_additional=yes
43765
43766   acl_save_prefix="$prefix"
43767   prefix="$acl_final_prefix"
43768   acl_save_exec_prefix="$exec_prefix"
43769   exec_prefix="$acl_final_exec_prefix"
43770
43771     eval additional_includedir=\"$includedir\"
43772     eval additional_libdir=\"$libdir\"
43773
43774   exec_prefix="$acl_save_exec_prefix"
43775   prefix="$acl_save_prefix"
43776
43777
43778 # Check whether --with-libglib-2.0-prefix was given.
43779 if test "${with_libglib_2_0_prefix+set}" = set; then :
43780   withval=$with_libglib_2_0_prefix;
43781     if test "X$withval" = "Xno"; then
43782       use_additional=no
43783     else
43784       if test "X$withval" = "X"; then
43785
43786   acl_save_prefix="$prefix"
43787   prefix="$acl_final_prefix"
43788   acl_save_exec_prefix="$exec_prefix"
43789   exec_prefix="$acl_final_exec_prefix"
43790
43791           eval additional_includedir=\"$includedir\"
43792           eval additional_libdir=\"$libdir\"
43793
43794   exec_prefix="$acl_save_exec_prefix"
43795   prefix="$acl_save_prefix"
43796
43797       else
43798         additional_includedir="$withval/include"
43799         additional_libdir="$withval/$acl_libdirstem"
43800         if test "$acl_libdirstem2" != "$acl_libdirstem" \
43801            && ! test -d "$withval/$acl_libdirstem"; then
43802           additional_libdir="$withval/$acl_libdirstem2"
43803         fi
43804       fi
43805     fi
43806
43807 fi
43808
43809       LIBGLIB_2_0=
43810   LTLIBGLIB_2_0=
43811   INCGLIB_2_0=
43812   LIBGLIB_2_0_PREFIX=
43813       HAVE_LIBGLIB_2_0=
43814   rpathdirs=
43815   ltrpathdirs=
43816   names_already_handled=
43817   names_next_round='glib-2.0 '
43818   while test -n "$names_next_round"; do
43819     names_this_round="$names_next_round"
43820     names_next_round=
43821     for name in $names_this_round; do
43822       already_handled=
43823       for n in $names_already_handled; do
43824         if test "$n" = "$name"; then
43825           already_handled=yes
43826           break
43827         fi
43828       done
43829       if test -z "$already_handled"; then
43830         names_already_handled="$names_already_handled $name"
43831                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
43832         eval value=\"\$HAVE_LIB$uppername\"
43833         if test -n "$value"; then
43834           if test "$value" = yes; then
43835             eval value=\"\$LIB$uppername\"
43836             test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
43837             eval value=\"\$LTLIB$uppername\"
43838             test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
43839           else
43840                                     :
43841           fi
43842         else
43843                               found_dir=
43844           found_la=
43845           found_so=
43846           found_a=
43847           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
43848           if test -n "$acl_shlibext"; then
43849             shrext=".$acl_shlibext"             # typically: shrext=.so
43850           else
43851             shrext=
43852           fi
43853           if test $use_additional = yes; then
43854             dir="$additional_libdir"
43855                                     if test -n "$acl_shlibext"; then
43856               if test -f "$dir/$libname$shrext"; then
43857                 found_dir="$dir"
43858                 found_so="$dir/$libname$shrext"
43859               else
43860                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
43861                   ver=`(cd "$dir" && \
43862                         for f in "$libname$shrext".*; do echo "$f"; done \
43863                         | sed -e "s,^$libname$shrext\\\\.,," \
43864                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
43865                         | sed 1q ) 2>/dev/null`
43866                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
43867                     found_dir="$dir"
43868                     found_so="$dir/$libname$shrext.$ver"
43869                   fi
43870                 else
43871                   eval library_names=\"$acl_library_names_spec\"
43872                   for f in $library_names; do
43873                     if test -f "$dir/$f"; then
43874                       found_dir="$dir"
43875                       found_so="$dir/$f"
43876                       break
43877                     fi
43878                   done
43879                 fi
43880               fi
43881             fi
43882                         if test "X$found_dir" = "X"; then
43883               if test -f "$dir/$libname.$acl_libext"; then
43884                 found_dir="$dir"
43885                 found_a="$dir/$libname.$acl_libext"
43886               fi
43887             fi
43888             if test "X$found_dir" != "X"; then
43889               if test -f "$dir/$libname.la"; then
43890                 found_la="$dir/$libname.la"
43891               fi
43892             fi
43893           fi
43894           if test "X$found_dir" = "X"; then
43895             for x in $LDFLAGS $LTLIBGLIB_2_0; do
43896
43897   acl_save_prefix="$prefix"
43898   prefix="$acl_final_prefix"
43899   acl_save_exec_prefix="$exec_prefix"
43900   exec_prefix="$acl_final_exec_prefix"
43901   eval x=\"$x\"
43902   exec_prefix="$acl_save_exec_prefix"
43903   prefix="$acl_save_prefix"
43904
43905               case "$x" in
43906                 -L*)
43907                   dir=`echo "X$x" | sed -e 's/^X-L//'`
43908                                     if test -n "$acl_shlibext"; then
43909                     if test -f "$dir/$libname$shrext"; then
43910                       found_dir="$dir"
43911                       found_so="$dir/$libname$shrext"
43912                     else
43913                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
43914                         ver=`(cd "$dir" && \
43915                               for f in "$libname$shrext".*; do echo "$f"; done \
43916                               | sed -e "s,^$libname$shrext\\\\.,," \
43917                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
43918                               | sed 1q ) 2>/dev/null`
43919                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
43920                           found_dir="$dir"
43921                           found_so="$dir/$libname$shrext.$ver"
43922                         fi
43923                       else
43924                         eval library_names=\"$acl_library_names_spec\"
43925                         for f in $library_names; do
43926                           if test -f "$dir/$f"; then
43927                             found_dir="$dir"
43928                             found_so="$dir/$f"
43929                             break
43930                           fi
43931                         done
43932                       fi
43933                     fi
43934                   fi
43935                                     if test "X$found_dir" = "X"; then
43936                     if test -f "$dir/$libname.$acl_libext"; then
43937                       found_dir="$dir"
43938                       found_a="$dir/$libname.$acl_libext"
43939                     fi
43940                   fi
43941                   if test "X$found_dir" != "X"; then
43942                     if test -f "$dir/$libname.la"; then
43943                       found_la="$dir/$libname.la"
43944                     fi
43945                   fi
43946                   ;;
43947               esac
43948               if test "X$found_dir" != "X"; then
43949                 break
43950               fi
43951             done
43952           fi
43953           if test "X$found_dir" != "X"; then
43954                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
43955             if test "X$found_so" != "X"; then
43956                                                         if test "$enable_rpath" = no \
43957                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
43958                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
43959                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
43960               else
43961                                                                                 haveit=
43962                 for x in $ltrpathdirs; do
43963                   if test "X$x" = "X$found_dir"; then
43964                     haveit=yes
43965                     break
43966                   fi
43967                 done
43968                 if test -z "$haveit"; then
43969                   ltrpathdirs="$ltrpathdirs $found_dir"
43970                 fi
43971                                 if test "$acl_hardcode_direct" = yes; then
43972                                                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
43973                 else
43974                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
43975                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
43976                                                             haveit=
43977                     for x in $rpathdirs; do
43978                       if test "X$x" = "X$found_dir"; then
43979                         haveit=yes
43980                         break
43981                       fi
43982                     done
43983                     if test -z "$haveit"; then
43984                       rpathdirs="$rpathdirs $found_dir"
43985                     fi
43986                   else
43987                                                                                 haveit=
43988                     for x in $LDFLAGS $LIBGLIB_2_0; do
43989
43990   acl_save_prefix="$prefix"
43991   prefix="$acl_final_prefix"
43992   acl_save_exec_prefix="$exec_prefix"
43993   exec_prefix="$acl_final_exec_prefix"
43994   eval x=\"$x\"
43995   exec_prefix="$acl_save_exec_prefix"
43996   prefix="$acl_save_prefix"
43997
43998                       if test "X$x" = "X-L$found_dir"; then
43999                         haveit=yes
44000                         break
44001                       fi
44002                     done
44003                     if test -z "$haveit"; then
44004                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
44005                     fi
44006                     if test "$acl_hardcode_minus_L" != no; then
44007                                                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
44008                     else
44009                                                                                                                                                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
44010                     fi
44011                   fi
44012                 fi
44013               fi
44014             else
44015               if test "X$found_a" != "X"; then
44016                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
44017               else
44018                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
44019               fi
44020             fi
44021                         additional_includedir=
44022             case "$found_dir" in
44023               */$acl_libdirstem | */$acl_libdirstem/)
44024                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
44025                 if test "$name" = 'glib-2.0'; then
44026                   LIBGLIB_2_0_PREFIX="$basedir"
44027                 fi
44028                 additional_includedir="$basedir/include"
44029                 ;;
44030               */$acl_libdirstem2 | */$acl_libdirstem2/)
44031                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
44032                 if test "$name" = 'glib-2.0'; then
44033                   LIBGLIB_2_0_PREFIX="$basedir"
44034                 fi
44035                 additional_includedir="$basedir/include"
44036                 ;;
44037             esac
44038             if test "X$additional_includedir" != "X"; then
44039                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
44040                 haveit=
44041                 if test "X$additional_includedir" = "X/usr/local/include"; then
44042                   if test -n "$GCC"; then
44043                     case $host_os in
44044                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44045                     esac
44046                   fi
44047                 fi
44048                 if test -z "$haveit"; then
44049                   for x in $CPPFLAGS $INCGLIB_2_0; do
44050
44051   acl_save_prefix="$prefix"
44052   prefix="$acl_final_prefix"
44053   acl_save_exec_prefix="$exec_prefix"
44054   exec_prefix="$acl_final_exec_prefix"
44055   eval x=\"$x\"
44056   exec_prefix="$acl_save_exec_prefix"
44057   prefix="$acl_save_prefix"
44058
44059                     if test "X$x" = "X-I$additional_includedir"; then
44060                       haveit=yes
44061                       break
44062                     fi
44063                   done
44064                   if test -z "$haveit"; then
44065                     if test -d "$additional_includedir"; then
44066                                             INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
44067                     fi
44068                   fi
44069                 fi
44070               fi
44071             fi
44072                         if test -n "$found_la"; then
44073                                                         save_libdir="$libdir"
44074               case "$found_la" in
44075                 */* | *\\*) . "$found_la" ;;
44076                 *) . "./$found_la" ;;
44077               esac
44078               libdir="$save_libdir"
44079                             for dep in $dependency_libs; do
44080                 case "$dep" in
44081                   -L*)
44082                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
44083                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
44084                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
44085                       haveit=
44086                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
44087                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
44088                         if test -n "$GCC"; then
44089                           case $host_os in
44090                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44091                           esac
44092                         fi
44093                       fi
44094                       if test -z "$haveit"; then
44095                         haveit=
44096                         for x in $LDFLAGS $LIBGLIB_2_0; do
44097
44098   acl_save_prefix="$prefix"
44099   prefix="$acl_final_prefix"
44100   acl_save_exec_prefix="$exec_prefix"
44101   exec_prefix="$acl_final_exec_prefix"
44102   eval x=\"$x\"
44103   exec_prefix="$acl_save_exec_prefix"
44104   prefix="$acl_save_prefix"
44105
44106                           if test "X$x" = "X-L$additional_libdir"; then
44107                             haveit=yes
44108                             break
44109                           fi
44110                         done
44111                         if test -z "$haveit"; then
44112                           if test -d "$additional_libdir"; then
44113                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
44114                           fi
44115                         fi
44116                         haveit=
44117                         for x in $LDFLAGS $LTLIBGLIB_2_0; do
44118
44119   acl_save_prefix="$prefix"
44120   prefix="$acl_final_prefix"
44121   acl_save_exec_prefix="$exec_prefix"
44122   exec_prefix="$acl_final_exec_prefix"
44123   eval x=\"$x\"
44124   exec_prefix="$acl_save_exec_prefix"
44125   prefix="$acl_save_prefix"
44126
44127                           if test "X$x" = "X-L$additional_libdir"; then
44128                             haveit=yes
44129                             break
44130                           fi
44131                         done
44132                         if test -z "$haveit"; then
44133                           if test -d "$additional_libdir"; then
44134                                                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
44135                           fi
44136                         fi
44137                       fi
44138                     fi
44139                     ;;
44140                   -R*)
44141                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
44142                     if test "$enable_rpath" != no; then
44143                                                                   haveit=
44144                       for x in $rpathdirs; do
44145                         if test "X$x" = "X$dir"; then
44146                           haveit=yes
44147                           break
44148                         fi
44149                       done
44150                       if test -z "$haveit"; then
44151                         rpathdirs="$rpathdirs $dir"
44152                       fi
44153                                                                   haveit=
44154                       for x in $ltrpathdirs; do
44155                         if test "X$x" = "X$dir"; then
44156                           haveit=yes
44157                           break
44158                         fi
44159                       done
44160                       if test -z "$haveit"; then
44161                         ltrpathdirs="$ltrpathdirs $dir"
44162                       fi
44163                     fi
44164                     ;;
44165                   -l*)
44166                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
44167                     ;;
44168                   *.la)
44169                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
44170                     ;;
44171                   *)
44172                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
44173                     LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
44174                     ;;
44175                 esac
44176               done
44177             fi
44178           else
44179                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
44180             LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
44181           fi
44182         fi
44183       fi
44184     done
44185   done
44186   if test "X$rpathdirs" != "X"; then
44187     if test -n "$acl_hardcode_libdir_separator"; then
44188                         alldirs=
44189       for found_dir in $rpathdirs; do
44190         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
44191       done
44192             acl_save_libdir="$libdir"
44193       libdir="$alldirs"
44194       eval flag=\"$acl_hardcode_libdir_flag_spec\"
44195       libdir="$acl_save_libdir"
44196       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
44197     else
44198             for found_dir in $rpathdirs; do
44199         acl_save_libdir="$libdir"
44200         libdir="$found_dir"
44201         eval flag=\"$acl_hardcode_libdir_flag_spec\"
44202         libdir="$acl_save_libdir"
44203         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
44204       done
44205     fi
44206   fi
44207   if test "X$ltrpathdirs" != "X"; then
44208             for found_dir in $ltrpathdirs; do
44209       LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
44210     done
44211   fi
44212
44213
44214
44215
44216
44217
44218       LIBS="$gl_save_LIBS $LIBGLIB_2_0"
44219       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44220 /* end confdefs.h.  */
44221 #include <glib.h>
44222 #ifndef G_BEGIN_DECLS
44223 error this glib.h includes a glibconfig.h from a glib version 1.x
44224 #endif
44225
44226 int
44227 main ()
44228 {
44229 g_string_new ("foo");
44230   ;
44231   return 0;
44232 }
44233 _ACEOF
44234 if ac_fn_c_try_link "$LINENO"; then :
44235   gl_cv_libglib=yes
44236          gl_cv_LIBGLIB="$LIBGLIB_2_0"
44237          gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
44238
44239 fi
44240 rm -f core conftest.err conftest.$ac_objext \
44241     conftest$ac_exeext conftest.$ac_ext
44242       if test "$gl_cv_libglib" != yes; then
44243         gl_save_CPPFLAGS="$CPPFLAGS"
44244         CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
44245         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44246 /* end confdefs.h.  */
44247 #include <glib.h>
44248 #ifndef G_BEGIN_DECLS
44249 error this glib.h includes a glibconfig.h from a glib version 1.x
44250 #endif
44251
44252 int
44253 main ()
44254 {
44255 g_string_new ("foo");
44256   ;
44257   return 0;
44258 }
44259 _ACEOF
44260 if ac_fn_c_try_link "$LINENO"; then :
44261   gl_cv_libglib=yes
44262            gl_cv_LIBGLIB="$LIBGLIB_2_0"
44263            gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
44264            gl_cv_INCGLIB="$INCGLIB_2_0"
44265
44266 fi
44267 rm -f core conftest.err conftest.$ac_objext \
44268     conftest$ac_exeext conftest.$ac_ext
44269         if test "$gl_cv_libglib" != yes; then
44270                               if test -n "$LIBGLIB_2_0_PREFIX"; then
44271             CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
44272             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44273 /* end confdefs.h.  */
44274 #include <glib.h>
44275 #ifndef G_BEGIN_DECLS
44276 error this glib.h includes a glibconfig.h from a glib version 1.x
44277 #endif
44278
44279 int
44280 main ()
44281 {
44282 g_string_new ("foo");
44283   ;
44284   return 0;
44285 }
44286 _ACEOF
44287 if ac_fn_c_try_link "$LINENO"; then :
44288   gl_cv_libglib=yes
44289                gl_cv_LIBGLIB="$LIBGLIB_2_0"
44290                gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
44291                gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
44292
44293 fi
44294 rm -f core conftest.err conftest.$ac_objext \
44295     conftest$ac_exeext conftest.$ac_ext
44296           fi
44297         fi
44298         CPPFLAGS="$gl_save_CPPFLAGS"
44299       fi
44300       LIBS="$gl_save_LIBS"
44301
44302 fi
44303
44304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
44305 $as_echo_n "checking for glib... " >&6; }
44306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
44307 $as_echo "$gl_cv_libglib" >&6; }
44308     if test $gl_cv_libglib = yes; then
44309       LIBGLIB="$gl_cv_LIBGLIB"
44310       LTLIBGLIB="$gl_cv_LTLIBGLIB"
44311       INCGLIB="$gl_cv_INCGLIB"
44312     else
44313       gl_cv_libglib_use_included=yes
44314     fi
44315   fi
44316
44317
44318
44319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
44320 $as_echo_n "checking whether to use the included glib... " >&6; }
44321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
44322 $as_echo "$gl_cv_libglib_use_included" >&6; }
44323
44324   if test "$gl_cv_libglib_use_included" = yes; then
44325     LIBGLIB_H=
44326     LIBGLIB_H="$LIBGLIB_H glib.h"
44327     LIBGLIB_H="$LIBGLIB_H glibconfig.h"
44328     LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
44329     LIBGLIB_H="$LIBGLIB_H glib/glist.h"
44330     LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
44331     LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
44332     LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
44333     LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
44334
44335     for ac_header in unistd.h
44336 do :
44337   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
44338 if test "x$ac_cv_header_unistd_h" = xyes; then :
44339   cat >>confdefs.h <<_ACEOF
44340 #define HAVE_UNISTD_H 1
44341 _ACEOF
44342
44343 fi
44344
44345 done
44346
44347       else
44348     LIBGLIB_H=
44349   fi
44350
44351
44352    if test "$gl_cv_libglib_use_included" = yes; then
44353   INCLUDED_LIBGLIB_TRUE=
44354   INCLUDED_LIBGLIB_FALSE='#'
44355 else
44356   INCLUDED_LIBGLIB_TRUE='#'
44357   INCLUDED_LIBGLIB_FALSE=
44358 fi
44359
44360
44361
44362
44363
44364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
44365 $as_echo_n "checking whether to use the included libunistring... " >&6; }
44366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
44367 $as_echo "$gl_libunistring_use_included" >&6; }
44368
44369
44370
44371
44372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libxml is requested" >&5
44373 $as_echo_n "checking whether included libxml is requested... " >&6; }
44374
44375 # Check whether --with-included-libxml was given.
44376 if test "${with_included_libxml+set}" = set; then :
44377   withval=$with_included_libxml; gl_cv_libxml_force_included=$withval
44378 else
44379   gl_cv_libxml_force_included=no
44380 fi
44381
44382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_force_included" >&5
44383 $as_echo "$gl_cv_libxml_force_included" >&6; }
44384
44385   gl_cv_libxml_use_included="$gl_cv_libxml_force_included"
44386   LIBXML=
44387   LTLIBXML=
44388   INCXML=
44389   if test "$gl_cv_libxml_use_included" != yes; then
44390             if ${gl_cv_libxml+:} false; then :
44391   $as_echo_n "(cached) " >&6
44392 else
44393
44394       gl_cv_libxml=no
44395       gl_cv_LIBXML=
44396       gl_cv_LTLIBXML=
44397       gl_cv_INCXML=
44398       gl_save_LIBS="$LIBS"
44399       LIBS="$LIBS $LIBICONV"
44400
44401
44402
44403
44404
44405
44406
44407     use_additional=yes
44408
44409   acl_save_prefix="$prefix"
44410   prefix="$acl_final_prefix"
44411   acl_save_exec_prefix="$exec_prefix"
44412   exec_prefix="$acl_final_exec_prefix"
44413
44414     eval additional_includedir=\"$includedir\"
44415     eval additional_libdir=\"$libdir\"
44416
44417   exec_prefix="$acl_save_exec_prefix"
44418   prefix="$acl_save_prefix"
44419
44420
44421 # Check whether --with-libxml2-prefix was given.
44422 if test "${with_libxml2_prefix+set}" = set; then :
44423   withval=$with_libxml2_prefix;
44424     if test "X$withval" = "Xno"; then
44425       use_additional=no
44426     else
44427       if test "X$withval" = "X"; then
44428
44429   acl_save_prefix="$prefix"
44430   prefix="$acl_final_prefix"
44431   acl_save_exec_prefix="$exec_prefix"
44432   exec_prefix="$acl_final_exec_prefix"
44433
44434           eval additional_includedir=\"$includedir\"
44435           eval additional_libdir=\"$libdir\"
44436
44437   exec_prefix="$acl_save_exec_prefix"
44438   prefix="$acl_save_prefix"
44439
44440       else
44441         additional_includedir="$withval/include"
44442         additional_libdir="$withval/$acl_libdirstem"
44443         if test "$acl_libdirstem2" != "$acl_libdirstem" \
44444            && ! test -d "$withval/$acl_libdirstem"; then
44445           additional_libdir="$withval/$acl_libdirstem2"
44446         fi
44447       fi
44448     fi
44449
44450 fi
44451
44452       LIBXML2=
44453   LTLIBXML2=
44454   INCXML2=
44455   LIBXML2_PREFIX=
44456       HAVE_LIBXML2=
44457   rpathdirs=
44458   ltrpathdirs=
44459   names_already_handled=
44460   names_next_round='xml2 '
44461   while test -n "$names_next_round"; do
44462     names_this_round="$names_next_round"
44463     names_next_round=
44464     for name in $names_this_round; do
44465       already_handled=
44466       for n in $names_already_handled; do
44467         if test "$n" = "$name"; then
44468           already_handled=yes
44469           break
44470         fi
44471       done
44472       if test -z "$already_handled"; then
44473         names_already_handled="$names_already_handled $name"
44474                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
44475         eval value=\"\$HAVE_LIB$uppername\"
44476         if test -n "$value"; then
44477           if test "$value" = yes; then
44478             eval value=\"\$LIB$uppername\"
44479             test -z "$value" || LIBXML2="${LIBXML2}${LIBXML2:+ }$value"
44480             eval value=\"\$LTLIB$uppername\"
44481             test -z "$value" || LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$value"
44482           else
44483                                     :
44484           fi
44485         else
44486                               found_dir=
44487           found_la=
44488           found_so=
44489           found_a=
44490           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
44491           if test -n "$acl_shlibext"; then
44492             shrext=".$acl_shlibext"             # typically: shrext=.so
44493           else
44494             shrext=
44495           fi
44496           if test $use_additional = yes; then
44497             dir="$additional_libdir"
44498                                     if test -n "$acl_shlibext"; then
44499               if test -f "$dir/$libname$shrext"; then
44500                 found_dir="$dir"
44501                 found_so="$dir/$libname$shrext"
44502               else
44503                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
44504                   ver=`(cd "$dir" && \
44505                         for f in "$libname$shrext".*; do echo "$f"; done \
44506                         | sed -e "s,^$libname$shrext\\\\.,," \
44507                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
44508                         | sed 1q ) 2>/dev/null`
44509                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
44510                     found_dir="$dir"
44511                     found_so="$dir/$libname$shrext.$ver"
44512                   fi
44513                 else
44514                   eval library_names=\"$acl_library_names_spec\"
44515                   for f in $library_names; do
44516                     if test -f "$dir/$f"; then
44517                       found_dir="$dir"
44518                       found_so="$dir/$f"
44519                       break
44520                     fi
44521                   done
44522                 fi
44523               fi
44524             fi
44525                         if test "X$found_dir" = "X"; then
44526               if test -f "$dir/$libname.$acl_libext"; then
44527                 found_dir="$dir"
44528                 found_a="$dir/$libname.$acl_libext"
44529               fi
44530             fi
44531             if test "X$found_dir" != "X"; then
44532               if test -f "$dir/$libname.la"; then
44533                 found_la="$dir/$libname.la"
44534               fi
44535             fi
44536           fi
44537           if test "X$found_dir" = "X"; then
44538             for x in $LDFLAGS $LTLIBXML2; do
44539
44540   acl_save_prefix="$prefix"
44541   prefix="$acl_final_prefix"
44542   acl_save_exec_prefix="$exec_prefix"
44543   exec_prefix="$acl_final_exec_prefix"
44544   eval x=\"$x\"
44545   exec_prefix="$acl_save_exec_prefix"
44546   prefix="$acl_save_prefix"
44547
44548               case "$x" in
44549                 -L*)
44550                   dir=`echo "X$x" | sed -e 's/^X-L//'`
44551                                     if test -n "$acl_shlibext"; then
44552                     if test -f "$dir/$libname$shrext"; then
44553                       found_dir="$dir"
44554                       found_so="$dir/$libname$shrext"
44555                     else
44556                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
44557                         ver=`(cd "$dir" && \
44558                               for f in "$libname$shrext".*; do echo "$f"; done \
44559                               | sed -e "s,^$libname$shrext\\\\.,," \
44560                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
44561                               | sed 1q ) 2>/dev/null`
44562                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
44563                           found_dir="$dir"
44564                           found_so="$dir/$libname$shrext.$ver"
44565                         fi
44566                       else
44567                         eval library_names=\"$acl_library_names_spec\"
44568                         for f in $library_names; do
44569                           if test -f "$dir/$f"; then
44570                             found_dir="$dir"
44571                             found_so="$dir/$f"
44572                             break
44573                           fi
44574                         done
44575                       fi
44576                     fi
44577                   fi
44578                                     if test "X$found_dir" = "X"; then
44579                     if test -f "$dir/$libname.$acl_libext"; then
44580                       found_dir="$dir"
44581                       found_a="$dir/$libname.$acl_libext"
44582                     fi
44583                   fi
44584                   if test "X$found_dir" != "X"; then
44585                     if test -f "$dir/$libname.la"; then
44586                       found_la="$dir/$libname.la"
44587                     fi
44588                   fi
44589                   ;;
44590               esac
44591               if test "X$found_dir" != "X"; then
44592                 break
44593               fi
44594             done
44595           fi
44596           if test "X$found_dir" != "X"; then
44597                         LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$found_dir -l$name"
44598             if test "X$found_so" != "X"; then
44599                                                         if test "$enable_rpath" = no \
44600                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
44601                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
44602                                 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
44603               else
44604                                                                                 haveit=
44605                 for x in $ltrpathdirs; do
44606                   if test "X$x" = "X$found_dir"; then
44607                     haveit=yes
44608                     break
44609                   fi
44610                 done
44611                 if test -z "$haveit"; then
44612                   ltrpathdirs="$ltrpathdirs $found_dir"
44613                 fi
44614                                 if test "$acl_hardcode_direct" = yes; then
44615                                                       LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
44616                 else
44617                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
44618                                                             LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
44619                                                             haveit=
44620                     for x in $rpathdirs; do
44621                       if test "X$x" = "X$found_dir"; then
44622                         haveit=yes
44623                         break
44624                       fi
44625                     done
44626                     if test -z "$haveit"; then
44627                       rpathdirs="$rpathdirs $found_dir"
44628                     fi
44629                   else
44630                                                                                 haveit=
44631                     for x in $LDFLAGS $LIBXML2; do
44632
44633   acl_save_prefix="$prefix"
44634   prefix="$acl_final_prefix"
44635   acl_save_exec_prefix="$exec_prefix"
44636   exec_prefix="$acl_final_exec_prefix"
44637   eval x=\"$x\"
44638   exec_prefix="$acl_save_exec_prefix"
44639   prefix="$acl_save_prefix"
44640
44641                       if test "X$x" = "X-L$found_dir"; then
44642                         haveit=yes
44643                         break
44644                       fi
44645                     done
44646                     if test -z "$haveit"; then
44647                       LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir"
44648                     fi
44649                     if test "$acl_hardcode_minus_L" != no; then
44650                                                                                         LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
44651                     else
44652                                                                                                                                                                                 LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
44653                     fi
44654                   fi
44655                 fi
44656               fi
44657             else
44658               if test "X$found_a" != "X"; then
44659                                 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_a"
44660               else
44661                                                 LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir -l$name"
44662               fi
44663             fi
44664                         additional_includedir=
44665             case "$found_dir" in
44666               */$acl_libdirstem | */$acl_libdirstem/)
44667                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
44668                 if test "$name" = 'xml2'; then
44669                   LIBXML2_PREFIX="$basedir"
44670                 fi
44671                 additional_includedir="$basedir/include"
44672                 ;;
44673               */$acl_libdirstem2 | */$acl_libdirstem2/)
44674                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
44675                 if test "$name" = 'xml2'; then
44676                   LIBXML2_PREFIX="$basedir"
44677                 fi
44678                 additional_includedir="$basedir/include"
44679                 ;;
44680             esac
44681             if test "X$additional_includedir" != "X"; then
44682                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
44683                 haveit=
44684                 if test "X$additional_includedir" = "X/usr/local/include"; then
44685                   if test -n "$GCC"; then
44686                     case $host_os in
44687                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44688                     esac
44689                   fi
44690                 fi
44691                 if test -z "$haveit"; then
44692                   for x in $CPPFLAGS $INCXML2; do
44693
44694   acl_save_prefix="$prefix"
44695   prefix="$acl_final_prefix"
44696   acl_save_exec_prefix="$exec_prefix"
44697   exec_prefix="$acl_final_exec_prefix"
44698   eval x=\"$x\"
44699   exec_prefix="$acl_save_exec_prefix"
44700   prefix="$acl_save_prefix"
44701
44702                     if test "X$x" = "X-I$additional_includedir"; then
44703                       haveit=yes
44704                       break
44705                     fi
44706                   done
44707                   if test -z "$haveit"; then
44708                     if test -d "$additional_includedir"; then
44709                                             INCXML2="${INCXML2}${INCXML2:+ }-I$additional_includedir"
44710                     fi
44711                   fi
44712                 fi
44713               fi
44714             fi
44715                         if test -n "$found_la"; then
44716                                                         save_libdir="$libdir"
44717               case "$found_la" in
44718                 */* | *\\*) . "$found_la" ;;
44719                 *) . "./$found_la" ;;
44720               esac
44721               libdir="$save_libdir"
44722                             for dep in $dependency_libs; do
44723                 case "$dep" in
44724                   -L*)
44725                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
44726                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
44727                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
44728                       haveit=
44729                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
44730                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
44731                         if test -n "$GCC"; then
44732                           case $host_os in
44733                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44734                           esac
44735                         fi
44736                       fi
44737                       if test -z "$haveit"; then
44738                         haveit=
44739                         for x in $LDFLAGS $LIBXML2; do
44740
44741   acl_save_prefix="$prefix"
44742   prefix="$acl_final_prefix"
44743   acl_save_exec_prefix="$exec_prefix"
44744   exec_prefix="$acl_final_exec_prefix"
44745   eval x=\"$x\"
44746   exec_prefix="$acl_save_exec_prefix"
44747   prefix="$acl_save_prefix"
44748
44749                           if test "X$x" = "X-L$additional_libdir"; then
44750                             haveit=yes
44751                             break
44752                           fi
44753                         done
44754                         if test -z "$haveit"; then
44755                           if test -d "$additional_libdir"; then
44756                                                         LIBXML2="${LIBXML2}${LIBXML2:+ }-L$additional_libdir"
44757                           fi
44758                         fi
44759                         haveit=
44760                         for x in $LDFLAGS $LTLIBXML2; do
44761
44762   acl_save_prefix="$prefix"
44763   prefix="$acl_final_prefix"
44764   acl_save_exec_prefix="$exec_prefix"
44765   exec_prefix="$acl_final_exec_prefix"
44766   eval x=\"$x\"
44767   exec_prefix="$acl_save_exec_prefix"
44768   prefix="$acl_save_prefix"
44769
44770                           if test "X$x" = "X-L$additional_libdir"; then
44771                             haveit=yes
44772                             break
44773                           fi
44774                         done
44775                         if test -z "$haveit"; then
44776                           if test -d "$additional_libdir"; then
44777                                                         LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$additional_libdir"
44778                           fi
44779                         fi
44780                       fi
44781                     fi
44782                     ;;
44783                   -R*)
44784                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
44785                     if test "$enable_rpath" != no; then
44786                                                                   haveit=
44787                       for x in $rpathdirs; do
44788                         if test "X$x" = "X$dir"; then
44789                           haveit=yes
44790                           break
44791                         fi
44792                       done
44793                       if test -z "$haveit"; then
44794                         rpathdirs="$rpathdirs $dir"
44795                       fi
44796                                                                   haveit=
44797                       for x in $ltrpathdirs; do
44798                         if test "X$x" = "X$dir"; then
44799                           haveit=yes
44800                           break
44801                         fi
44802                       done
44803                       if test -z "$haveit"; then
44804                         ltrpathdirs="$ltrpathdirs $dir"
44805                       fi
44806                     fi
44807                     ;;
44808                   -l*)
44809                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
44810                     ;;
44811                   *.la)
44812                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
44813                     ;;
44814                   *)
44815                                         LIBXML2="${LIBXML2}${LIBXML2:+ }$dep"
44816                     LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$dep"
44817                     ;;
44818                 esac
44819               done
44820             fi
44821           else
44822                                                             LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
44823             LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-l$name"
44824           fi
44825         fi
44826       fi
44827     done
44828   done
44829   if test "X$rpathdirs" != "X"; then
44830     if test -n "$acl_hardcode_libdir_separator"; then
44831                         alldirs=
44832       for found_dir in $rpathdirs; do
44833         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
44834       done
44835             acl_save_libdir="$libdir"
44836       libdir="$alldirs"
44837       eval flag=\"$acl_hardcode_libdir_flag_spec\"
44838       libdir="$acl_save_libdir"
44839       LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
44840     else
44841             for found_dir in $rpathdirs; do
44842         acl_save_libdir="$libdir"
44843         libdir="$found_dir"
44844         eval flag=\"$acl_hardcode_libdir_flag_spec\"
44845         libdir="$acl_save_libdir"
44846         LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
44847       done
44848     fi
44849   fi
44850   if test "X$ltrpathdirs" != "X"; then
44851             for found_dir in $ltrpathdirs; do
44852       LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-R$found_dir"
44853     done
44854   fi
44855
44856
44857
44858
44859
44860
44861       LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV"
44862       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44863 /* end confdefs.h.  */
44864 #include <libxml/xmlversion.h>
44865                    #include <libxml/xmlmemory.h>
44866                    #include <libxml/xpath.h>
44867
44868 int
44869 main ()
44870 {
44871 xmlCheckVersion (0);
44872          xmlFree ((void *) 0);
44873          xmlXPathSetContextNode ((void *)0, (void *)0);
44874
44875   ;
44876   return 0;
44877 }
44878 _ACEOF
44879 if ac_fn_c_try_link "$LINENO"; then :
44880   gl_cv_libxml=yes
44881          gl_cv_LIBXML="$LIBXML2 $LIBICONV"
44882          gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
44883
44884 fi
44885 rm -f core conftest.err conftest.$ac_objext \
44886     conftest$ac_exeext conftest.$ac_ext
44887       if test "$gl_cv_libxml" != yes; then
44888         gl_save_CPPFLAGS="$CPPFLAGS"
44889         CPPFLAGS="$CPPFLAGS $INCXML2"
44890         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44891 /* end confdefs.h.  */
44892 #include <libxml/xmlversion.h>
44893                      #include <libxml/xmlmemory.h>
44894                      #include <libxml/xpath.h>
44895
44896 int
44897 main ()
44898 {
44899 xmlCheckVersion (0);
44900            xmlFree ((void *) 0);
44901            xmlXPathSetContextNode ((void *)0, (void *)0);
44902
44903   ;
44904   return 0;
44905 }
44906 _ACEOF
44907 if ac_fn_c_try_link "$LINENO"; then :
44908   gl_cv_libxml=yes
44909            gl_cv_LIBXML="$LIBXML2 $LIBICONV"
44910            gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
44911            gl_cv_INCXML="$INCXML2"
44912
44913 fi
44914 rm -f core conftest.err conftest.$ac_objext \
44915     conftest$ac_exeext conftest.$ac_ext
44916         if test "$gl_cv_libxml" != yes; then
44917                                                   libxml2_include_dir=
44918           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44919 /* end confdefs.h.  */
44920 #include <libxml2/libxml/xmlexports.h>
44921 _ACEOF
44922 if ac_fn_c_try_cpp "$LINENO"; then :
44923
44924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlexports.h>" >&5
44925 $as_echo_n "checking absolute name of <libxml2/libxml/xmlexports.h>... " >&6; }
44926 if ${gl_cv_absolute_libxml2_libxml_xmlexports_h+:} false; then :
44927   $as_echo_n "(cached) " >&6
44928 else
44929           if test $ac_cv_header_libxml2_libxml_xmlexports_h = yes; then
44930
44931
44932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44933 /* end confdefs.h.  */
44934 #include <libxml2/libxml/xmlexports.h>
44935 _ACEOF
44936                 case "$host_os" in
44937     aix*) gl_absname_cpp="$ac_cpp -C" ;;
44938     *)    gl_absname_cpp="$ac_cpp" ;;
44939   esac
44940
44941   case "$host_os" in
44942     mingw*)
44943                                           gl_dirsep_regex='[/\\]'
44944       ;;
44945     *)
44946       gl_dirsep_regex='\/'
44947       ;;
44948   esac
44949       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
44950   gl_header_literal_regex=`echo 'libxml2/libxml/xmlexports.h' \
44951                            | sed -e "$gl_make_literal_regex_sed"`
44952   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
44953       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
44954       s|^/[^/]|//&|
44955       p
44956       q
44957     }'
44958
44959         gl_cv_absolute_libxml2_libxml_xmlexports_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
44960   sed -n "$gl_absolute_header_sed"`
44961
44962     fi
44963
44964 fi
44965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlexports_h" >&5
44966 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" >&6; }
44967 cat >>confdefs.h <<_ACEOF
44968 #define ABSOLUTE_LIBXML2_LIBXML_XMLEXPORTS_H "$gl_cv_absolute_libxml2_libxml_xmlexports_h"
44969 _ACEOF
44970
44971
44972              libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" | sed -e 's,.libxml.xmlexports\.h$,,'`
44973
44974 fi
44975 rm -f conftest.err conftest.i conftest.$ac_ext
44976           if test -z "$libxml2_include_dir"; then
44977             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44978 /* end confdefs.h.  */
44979 #include <libxml2/libxml/xmlversion.h>
44980 _ACEOF
44981 if ac_fn_c_try_cpp "$LINENO"; then :
44982
44983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlversion.h>" >&5
44984 $as_echo_n "checking absolute name of <libxml2/libxml/xmlversion.h>... " >&6; }
44985 if ${gl_cv_absolute_libxml2_libxml_xmlversion_h+:} false; then :
44986   $as_echo_n "(cached) " >&6
44987 else
44988           if test $ac_cv_header_libxml2_libxml_xmlversion_h = yes; then
44989
44990
44991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44992 /* end confdefs.h.  */
44993 #include <libxml2/libxml/xmlversion.h>
44994 _ACEOF
44995                 case "$host_os" in
44996     aix*) gl_absname_cpp="$ac_cpp -C" ;;
44997     *)    gl_absname_cpp="$ac_cpp" ;;
44998   esac
44999
45000   case "$host_os" in
45001     mingw*)
45002                                           gl_dirsep_regex='[/\\]'
45003       ;;
45004     *)
45005       gl_dirsep_regex='\/'
45006       ;;
45007   esac
45008       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
45009   gl_header_literal_regex=`echo 'libxml2/libxml/xmlversion.h' \
45010                            | sed -e "$gl_make_literal_regex_sed"`
45011   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
45012       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
45013       s|^/[^/]|//&|
45014       p
45015       q
45016     }'
45017
45018         gl_cv_absolute_libxml2_libxml_xmlversion_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45019   sed -n "$gl_absolute_header_sed"`
45020
45021     fi
45022
45023 fi
45024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlversion_h" >&5
45025 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" >&6; }
45026 cat >>confdefs.h <<_ACEOF
45027 #define ABSOLUTE_LIBXML2_LIBXML_XMLVERSION_H "$gl_cv_absolute_libxml2_libxml_xmlversion_h"
45028 _ACEOF
45029
45030
45031                libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'`
45032
45033 fi
45034 rm -f conftest.err conftest.i conftest.$ac_ext
45035           fi
45036           if test -n "$libxml2_include_dir" && test -d "$libxml2_include_dir"; then
45037             CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir"
45038             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45039 /* end confdefs.h.  */
45040 #include <libxml/xmlversion.h>
45041                          #include <libxml/xmlmemory.h>
45042                          #include <libxml/xpath.h>
45043
45044 int
45045 main ()
45046 {
45047 xmlCheckVersion (0);
45048                xmlFree ((void *) 0);
45049                xmlXPathSetContextNode ((void *)0, (void *)0);
45050
45051   ;
45052   return 0;
45053 }
45054 _ACEOF
45055 if ac_fn_c_try_link "$LINENO"; then :
45056   gl_cv_libxml=yes
45057                gl_cv_LIBXML="$LIBXML2 $LIBICONV"
45058                gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
45059                gl_cv_INCXML="-I$libxml2_include_dir"
45060
45061 fi
45062 rm -f core conftest.err conftest.$ac_objext \
45063     conftest$ac_exeext conftest.$ac_ext
45064           fi
45065         fi
45066         CPPFLAGS="$gl_save_CPPFLAGS"
45067       fi
45068       LIBS="$gl_save_LIBS"
45069
45070 fi
45071
45072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml" >&5
45073 $as_echo_n "checking for libxml... " >&6; }
45074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml" >&5
45075 $as_echo "$gl_cv_libxml" >&6; }
45076     if test $gl_cv_libxml = yes; then
45077       LIBXML="$gl_cv_LIBXML"
45078       LTLIBXML="$gl_cv_LTLIBXML"
45079       INCXML="$gl_cv_INCXML"
45080     else
45081       gl_cv_libxml_use_included=yes
45082     fi
45083   fi
45084
45085
45086
45087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libxml" >&5
45088 $as_echo_n "checking whether to use the included libxml... " >&6; }
45089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_use_included" >&5
45090 $as_echo "$gl_cv_libxml_use_included" >&6; }
45091
45092   if test "$gl_cv_libxml_use_included" = yes; then
45093     LIBXML_H=
45094     LIBXML_H="$LIBXML_H libxml/DOCBparser.h"
45095     LIBXML_H="$LIBXML_H libxml/HTMLparser.h"
45096     LIBXML_H="$LIBXML_H libxml/HTMLtree.h"
45097     LIBXML_H="$LIBXML_H libxml/SAX2.h"
45098     LIBXML_H="$LIBXML_H libxml/SAX.h"
45099     LIBXML_H="$LIBXML_H libxml/c14n.h"
45100     LIBXML_H="$LIBXML_H libxml/catalog.h"
45101     LIBXML_H="$LIBXML_H libxml/chvalid.h"
45102     LIBXML_H="$LIBXML_H libxml/debugXML.h"
45103     LIBXML_H="$LIBXML_H libxml/dict.h"
45104     LIBXML_H="$LIBXML_H libxml/encoding.h"
45105     LIBXML_H="$LIBXML_H libxml/entities.h"
45106     LIBXML_H="$LIBXML_H libxml/globals.h"
45107     LIBXML_H="$LIBXML_H libxml/hash.h"
45108     LIBXML_H="$LIBXML_H libxml/list.h"
45109     LIBXML_H="$LIBXML_H libxml/nanoftp.h"
45110     LIBXML_H="$LIBXML_H libxml/nanohttp.h"
45111     LIBXML_H="$LIBXML_H libxml/parser.h"
45112     LIBXML_H="$LIBXML_H libxml/parserInternals.h"
45113     LIBXML_H="$LIBXML_H libxml/pattern.h"
45114     LIBXML_H="$LIBXML_H libxml/relaxng.h"
45115     LIBXML_H="$LIBXML_H libxml/schemasInternals.h"
45116     LIBXML_H="$LIBXML_H libxml/schematron.h"
45117     LIBXML_H="$LIBXML_H libxml/threads.h"
45118     LIBXML_H="$LIBXML_H libxml/tree.h"
45119     LIBXML_H="$LIBXML_H libxml/uri.h"
45120     LIBXML_H="$LIBXML_H libxml/valid.h"
45121     LIBXML_H="$LIBXML_H libxml/xinclude.h"
45122     LIBXML_H="$LIBXML_H libxml/xlink.h"
45123     LIBXML_H="$LIBXML_H libxml/xmlIO.h"
45124     LIBXML_H="$LIBXML_H libxml/xmlautomata.h"
45125     LIBXML_H="$LIBXML_H libxml/xmlerror.h"
45126     LIBXML_H="$LIBXML_H libxml/xmlexports.h"
45127     LIBXML_H="$LIBXML_H libxml/xmlmemory.h"
45128     LIBXML_H="$LIBXML_H libxml/xmlmodule.h"
45129     LIBXML_H="$LIBXML_H libxml/xmlreader.h"
45130     LIBXML_H="$LIBXML_H libxml/xmlregexp.h"
45131     LIBXML_H="$LIBXML_H libxml/xmlsave.h"
45132     LIBXML_H="$LIBXML_H libxml/xmlschemas.h"
45133     LIBXML_H="$LIBXML_H libxml/xmlschemastypes.h"
45134     LIBXML_H="$LIBXML_H libxml/xmlstring.h"
45135     LIBXML_H="$LIBXML_H libxml/xmlunicode.h"
45136     LIBXML_H="$LIBXML_H libxml/xmlversion.h"
45137     LIBXML_H="$LIBXML_H libxml/xmlwriter.h"
45138     LIBXML_H="$LIBXML_H libxml/xpath.h"
45139     LIBXML_H="$LIBXML_H libxml/xpathInternals.h"
45140     LIBXML_H="$LIBXML_H libxml/xpointer.h"
45141     for ac_header in arpa/inet.h ctype.h dlfcn.h dl.h errno.h \
45142                       fcntl.h float.h limits.h malloc.h math.h netdb.h \
45143                       netinet/in.h signal.h stdlib.h string.h \
45144                       strings.h sys/select.h sys/socket.h sys/stat.h \
45145                       sys/time.h sys/types.h time.h unistd.h
45146 do :
45147   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45148 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
45149 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
45150   cat >>confdefs.h <<_ACEOF
45151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45152 _ACEOF
45153
45154 fi
45155
45156 done
45157
45158     for ac_header in arpa/nameser.h
45159 do :
45160   ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
45161       #if HAVE_SYS_TYPES_H
45162       # include <sys/types.h>
45163       #endif
45164
45165 "
45166 if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
45167   cat >>confdefs.h <<_ACEOF
45168 #define HAVE_ARPA_NAMESER_H 1
45169 _ACEOF
45170
45171 fi
45172
45173 done
45174
45175     for ac_header in resolv.h
45176 do :
45177   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
45178       #if HAVE_SYS_TYPES_H
45179       # include <sys/types.h>
45180       #endif
45181       #if HAVE_NETINET_IN_H
45182       # include <netinet/in.h>
45183       #endif
45184       #if HAVE_ARPA_NAMESER_H
45185       # include <arpa/nameser.h>
45186       #endif
45187
45188 "
45189 if test "x$ac_cv_header_resolv_h" = xyes; then :
45190   cat >>confdefs.h <<_ACEOF
45191 #define HAVE_RESOLV_H 1
45192 _ACEOF
45193
45194 fi
45195
45196 done
45197
45198     for ac_func in dlopen getaddrinfo localtime shlload stat _stat strftime
45199 do :
45200   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
45202 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
45203   cat >>confdefs.h <<_ACEOF
45204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45205 _ACEOF
45206
45207 fi
45208 done
45209
45210
45211 $as_echo "#define VA_COPY va_copy" >>confdefs.h
45212
45213           else
45214     LIBXML_H=
45215   fi
45216
45217
45218    if test "$gl_cv_libxml_use_included" = yes; then
45219   INCLUDED_LIBXML_TRUE=
45220   INCLUDED_LIBXML_FALSE='#'
45221 else
45222   INCLUDED_LIBXML_TRUE='#'
45223   INCLUDED_LIBXML_FALSE=
45224 fi
45225
45226
45227
45228
45229
45230
45231
45232
45233
45234
45235   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
45236
45237
45238
45239
45240
45241
45242
45243
45244
45245   case "$host_os" in
45246     solaris*)
45247
45248 $as_echo "#define _LCONV_C99 1" >>confdefs.h
45249
45250       ;;
45251   esac
45252
45253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
45254 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
45255 if ${gl_cv_header_locale_h_posix2001+:} false; then :
45256   $as_echo_n "(cached) " >&6
45257 else
45258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45259 /* end confdefs.h.  */
45260 #include <locale.h>
45261             int x = LC_MESSAGES;
45262             int y = sizeof (((struct lconv *) 0)->decimal_point);
45263 int
45264 main ()
45265 {
45266
45267   ;
45268   return 0;
45269 }
45270 _ACEOF
45271 if ac_fn_c_try_compile "$LINENO"; then :
45272   gl_cv_header_locale_h_posix2001=yes
45273 else
45274   gl_cv_header_locale_h_posix2001=no
45275 fi
45276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45277 fi
45278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
45279 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
45280
45281
45282   if test $ac_cv_header_xlocale_h = yes; then
45283     HAVE_XLOCALE_H=1
45284                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
45285 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
45286 if ${gl_cv_header_locale_has_locale_t+:} false; then :
45287   $as_echo_n "(cached) " >&6
45288 else
45289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45290 /* end confdefs.h.  */
45291 #include <locale.h>
45292               locale_t x;
45293 int
45294 main ()
45295 {
45296
45297   ;
45298   return 0;
45299 }
45300 _ACEOF
45301 if ac_fn_c_try_compile "$LINENO"; then :
45302   gl_cv_header_locale_has_locale_t=yes
45303 else
45304   gl_cv_header_locale_has_locale_t=no
45305 fi
45306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45307
45308 fi
45309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
45310 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
45311     if test $gl_cv_header_locale_has_locale_t = yes; then
45312       gl_cv_header_locale_h_needs_xlocale_h=no
45313     else
45314       gl_cv_header_locale_h_needs_xlocale_h=yes
45315     fi
45316   else
45317     HAVE_XLOCALE_H=0
45318     gl_cv_header_locale_h_needs_xlocale_h=no
45319   fi
45320
45321
45322           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
45323 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
45324 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
45325   $as_echo_n "(cached) " >&6
45326 else
45327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45328 /* end confdefs.h.  */
45329 #include <locale.h>
45330             struct lconv l;
45331             int x = sizeof (l.decimal_point);
45332             int y = sizeof (l.int_p_cs_precedes);
45333 int
45334 main ()
45335 {
45336
45337   ;
45338   return 0;
45339 }
45340 _ACEOF
45341 if ac_fn_c_try_compile "$LINENO"; then :
45342   gl_cv_sys_struct_lconv_ok=yes
45343 else
45344   gl_cv_sys_struct_lconv_ok=no
45345 fi
45346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45347
45348 fi
45349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
45350 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
45351   if test $gl_cv_sys_struct_lconv_ok = no; then
45352     REPLACE_STRUCT_LCONV=1
45353   fi
45354
45355
45356
45357
45358
45359
45360
45361
45362
45363      if test $gl_cv_have_include_next = yes; then
45364        gl_cv_next_locale_h='<'locale.h'>'
45365      else
45366        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
45367 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
45368 if ${gl_cv_next_locale_h+:} false; then :
45369   $as_echo_n "(cached) " >&6
45370 else
45371
45372
45373
45374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45375 /* end confdefs.h.  */
45376 #include <locale.h>
45377 _ACEOF
45378                 case "$host_os" in
45379     aix*) gl_absname_cpp="$ac_cpp -C" ;;
45380     *)    gl_absname_cpp="$ac_cpp" ;;
45381   esac
45382
45383   case "$host_os" in
45384     mingw*)
45385                                           gl_dirsep_regex='[/\\]'
45386       ;;
45387     *)
45388       gl_dirsep_regex='\/'
45389       ;;
45390   esac
45391       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
45392   gl_header_literal_regex=`echo 'locale.h' \
45393                            | sed -e "$gl_make_literal_regex_sed"`
45394   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
45395       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
45396       s|^/[^/]|//&|
45397       p
45398       q
45399     }'
45400
45401         gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45402   sed -n "$gl_absolute_header_sed"`
45403
45404            gl_header=$gl_cv_absolute_locale_h
45405            gl_cv_next_locale_h='"'$gl_header'"'
45406
45407
45408 fi
45409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
45410 $as_echo "$gl_cv_next_locale_h" >&6; }
45411      fi
45412      NEXT_LOCALE_H=$gl_cv_next_locale_h
45413
45414      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45415        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45416        gl_next_as_first_directive='<'locale.h'>'
45417      else
45418        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45419        gl_next_as_first_directive=$gl_cv_next_locale_h
45420      fi
45421      NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
45422
45423
45424
45425
45426
45427
45428     for gl_func in setlocale duplocale; do
45429     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
45431 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45432 if eval \${$as_gl_Symbol+:} false; then :
45433   $as_echo_n "(cached) " >&6
45434 else
45435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45436 /* end confdefs.h.  */
45437 #include <locale.h>
45438 /* Some systems provide declarations in a non-standard header.  */
45439 #if HAVE_XLOCALE_H
45440 # include <xlocale.h>
45441 #endif
45442
45443 int
45444 main ()
45445 {
45446 #undef $gl_func
45447   (void) $gl_func;
45448   ;
45449   return 0;
45450 }
45451 _ACEOF
45452 if ac_fn_c_try_compile "$LINENO"; then :
45453   eval "$as_gl_Symbol=yes"
45454 else
45455   eval "$as_gl_Symbol=no"
45456 fi
45457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45458 fi
45459 eval ac_res=\$$as_gl_Symbol
45460                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45461 $as_echo "$ac_res" >&6; }
45462     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
45463   cat >>confdefs.h <<_ACEOF
45464 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45465 _ACEOF
45466
45467                      eval ac_cv_have_decl_$gl_func=yes
45468 fi
45469       done
45470
45471
45472
45473
45474
45475   for ac_func in setlocale uselocale
45476 do :
45477   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
45479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
45480   cat >>confdefs.h <<_ACEOF
45481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45482 _ACEOF
45483
45484 fi
45485 done
45486
45487       if test $ac_cv_func_uselocale = yes; then
45488     for ac_func in getlocalename_l
45489 do :
45490   ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
45491 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
45492   cat >>confdefs.h <<_ACEOF
45493 #define HAVE_GETLOCALENAME_L 1
45494 _ACEOF
45495
45496 fi
45497 done
45498
45499   fi
45500
45501
45502
45503   if test "$gl_threads_api" = posix; then
45504     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
45505     # pthread_rwlock_* functions.
45506     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
45507 "
45508 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
45509
45510 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
45511
45512 fi
45513
45514     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
45515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45516 /* end confdefs.h.  */
45517
45518       #include <pthread.h>
45519 int
45520 main ()
45521 {
45522
45523 #if __FreeBSD__ == 4
45524 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
45525 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
45526        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
45527 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
45528 #else
45529 int x = (int)PTHREAD_MUTEX_RECURSIVE;
45530 return !x;
45531 #endif
45532
45533   ;
45534   return 0;
45535 }
45536 _ACEOF
45537 if ac_fn_c_try_compile "$LINENO"; then :
45538
45539 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
45540
45541 fi
45542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45543   fi
45544   :
45545
45546
45547
45548 cat >>confdefs.h <<_ACEOF
45549 #define GNULIB_LOCK 1
45550 _ACEOF
45551
45552
45553
45554
45555
45556
45557
45558
45559
45560   LOG10_LIBM="$POW_LIBM"
45561
45562
45563
45564
45565   save_LIBS="$LIBS"
45566   LIBS="$LIBS $LOG10_LIBM"
45567
45568
45569      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log10 works" >&5
45570 $as_echo_n "checking whether log10 works... " >&6; }
45571 if ${gl_cv_func_log10_works+:} false; then :
45572   $as_echo_n "(cached) " >&6
45573 else
45574
45575       if test "$cross_compiling" = yes; then :
45576   case "$host_os" in
45577            osf*) gl_cv_func_log10_works="guessing no";;
45578            *)    gl_cv_func_log10_works="guessing yes";;
45579          esac
45580
45581 else
45582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45583 /* end confdefs.h.  */
45584
45585 #include <math.h>
45586 volatile double x;
45587 double y;
45588 int main ()
45589 {
45590   x = -0.0;
45591   y = log10 (x);
45592   if (!(y + y == y))
45593     return 1;
45594   return 0;
45595 }
45596
45597 _ACEOF
45598 if ac_fn_c_try_run "$LINENO"; then :
45599   gl_cv_func_log10_works=yes
45600 else
45601   gl_cv_func_log10_works=no
45602 fi
45603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45604   conftest.$ac_objext conftest.beam conftest.$ac_ext
45605 fi
45606
45607
45608 fi
45609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_log10_works" >&5
45610 $as_echo "$gl_cv_func_log10_works" >&6; }
45611
45612   LIBS="$save_LIBS"
45613   case "$gl_cv_func_log10_works" in
45614     *yes) ;;
45615     *) REPLACE_LOG10=1 ;;
45616   esac
45617
45618
45619
45620   if test $REPLACE_LOG10 = 1; then
45621
45622
45623
45624
45625
45626
45627
45628
45629   gl_LIBOBJS="$gl_LIBOBJS log10.$ac_objext"
45630
45631   fi
45632
45633
45634
45635
45636
45637           GNULIB_LOG10=1
45638
45639
45640
45641
45642
45643 $as_echo "#define GNULIB_TEST_LOG10 1" >>confdefs.h
45644
45645
45646
45647
45648
45649
45650   if test $ac_cv_func_lstat = yes; then
45651
45652     case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
45653       *no)
45654         REPLACE_LSTAT=1
45655         ;;
45656     esac
45657   else
45658     HAVE_LSTAT=0
45659   fi
45660
45661   if test $REPLACE_LSTAT = 1; then
45662
45663
45664
45665
45666
45667
45668
45669
45670   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
45671
45672     :
45673   fi
45674
45675
45676
45677
45678
45679           GNULIB_LSTAT=1
45680
45681
45682
45683
45684
45685 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
45686
45687
45688
45689
45690
45691
45692   if test $gl_cv_func_malloc_posix = yes; then
45693
45694 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
45695
45696   else
45697     REPLACE_MALLOC=1
45698   fi
45699
45700   if test $REPLACE_MALLOC = 1; then
45701
45702
45703
45704
45705
45706
45707
45708
45709   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
45710
45711   fi
45712
45713
45714
45715
45716
45717           GNULIB_MALLOC_POSIX=1
45718
45719
45720
45721
45722
45723 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
45724
45725
45726
45727
45728
45729
45730
45731
45732
45733
45734
45735
45736
45737
45738
45739
45740
45741
45742      if test $gl_cv_have_include_next = yes; then
45743        gl_cv_next_math_h='<'math.h'>'
45744      else
45745        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
45746 $as_echo_n "checking absolute name of <math.h>... " >&6; }
45747 if ${gl_cv_next_math_h+:} false; then :
45748   $as_echo_n "(cached) " >&6
45749 else
45750
45751              if test $ac_cv_header_math_h = yes; then
45752
45753
45754
45755
45756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45757 /* end confdefs.h.  */
45758 #include <math.h>
45759 _ACEOF
45760                 case "$host_os" in
45761     aix*) gl_absname_cpp="$ac_cpp -C" ;;
45762     *)    gl_absname_cpp="$ac_cpp" ;;
45763   esac
45764
45765   case "$host_os" in
45766     mingw*)
45767                                           gl_dirsep_regex='[/\\]'
45768       ;;
45769     *)
45770       gl_dirsep_regex='\/'
45771       ;;
45772   esac
45773       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
45774   gl_header_literal_regex=`echo 'math.h' \
45775                            | sed -e "$gl_make_literal_regex_sed"`
45776   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
45777       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
45778       s|^/[^/]|//&|
45779       p
45780       q
45781     }'
45782
45783         gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45784   sed -n "$gl_absolute_header_sed"`
45785
45786            gl_header=$gl_cv_absolute_math_h
45787            gl_cv_next_math_h='"'$gl_header'"'
45788           else
45789                gl_cv_next_math_h='<'math.h'>'
45790              fi
45791
45792
45793 fi
45794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
45795 $as_echo "$gl_cv_next_math_h" >&6; }
45796      fi
45797      NEXT_MATH_H=$gl_cv_next_math_h
45798
45799      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45800        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45801        gl_next_as_first_directive='<'math.h'>'
45802      else
45803        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45804        gl_next_as_first_directive=$gl_cv_next_math_h
45805      fi
45806      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
45807
45808
45809
45810
45811
45812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
45813 $as_echo_n "checking whether NAN macro works... " >&6; }
45814 if ${gl_cv_header_math_nan_works+:} false; then :
45815   $as_echo_n "(cached) " >&6
45816 else
45817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45818 /* end confdefs.h.  */
45819 #include <math.h>
45820 int
45821 main ()
45822 {
45823 /* Solaris 10 has a broken definition of NAN.  Other platforms
45824         fail to provide NAN, or provide it only in C99 mode; this
45825         test only needs to fail when NAN is provided but wrong.  */
45826          float f = 1.0f;
45827 #ifdef NAN
45828          f = NAN;
45829 #endif
45830          return f == 0;
45831   ;
45832   return 0;
45833 }
45834 _ACEOF
45835 if ac_fn_c_try_compile "$LINENO"; then :
45836   gl_cv_header_math_nan_works=yes
45837 else
45838   gl_cv_header_math_nan_works=no
45839 fi
45840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45841 fi
45842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
45843 $as_echo "$gl_cv_header_math_nan_works" >&6; }
45844   if test $gl_cv_header_math_nan_works = no; then
45845     REPLACE_NAN=1
45846   fi
45847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
45848 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
45849 if ${gl_cv_header_math_huge_val_works+:} false; then :
45850   $as_echo_n "(cached) " >&6
45851 else
45852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45853 /* end confdefs.h.  */
45854 #include <math.h>
45855 int
45856 main ()
45857 {
45858 /* Solaris 10 has a broken definition of HUGE_VAL.  */
45859          double d = HUGE_VAL;
45860          return d == 0;
45861   ;
45862   return 0;
45863 }
45864 _ACEOF
45865 if ac_fn_c_try_compile "$LINENO"; then :
45866   gl_cv_header_math_huge_val_works=yes
45867 else
45868   gl_cv_header_math_huge_val_works=no
45869 fi
45870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45871 fi
45872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
45873 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
45874   if test $gl_cv_header_math_huge_val_works = no; then
45875     REPLACE_HUGE_VAL=1
45876   fi
45877
45878
45879     for gl_func in acosf acosl asinf asinl atanf atanl      cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf      expf expl exp2 exp2f exp2l expm1 expm1f expm1l      fabsf fabsl floorf floorl fma fmaf fmal      fmod fmodf fmodl frexpf frexpl hypotf hypotl      ilogb ilogbf ilogbl      ldexpf ldexpl      log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l      logb logbf logbl      modf modff modfl powf      remainder remainderf remainderl      rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl      tanf tanl tanhf trunc truncf truncl; do
45880     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
45882 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45883 if eval \${$as_gl_Symbol+:} false; then :
45884   $as_echo_n "(cached) " >&6
45885 else
45886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45887 /* end confdefs.h.  */
45888 #include <math.h>
45889 int
45890 main ()
45891 {
45892 #undef $gl_func
45893   (void) $gl_func;
45894   ;
45895   return 0;
45896 }
45897 _ACEOF
45898 if ac_fn_c_try_compile "$LINENO"; then :
45899   eval "$as_gl_Symbol=yes"
45900 else
45901   eval "$as_gl_Symbol=no"
45902 fi
45903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45904 fi
45905 eval ac_res=\$$as_gl_Symbol
45906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45907 $as_echo "$ac_res" >&6; }
45908     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
45909   cat >>confdefs.h <<_ACEOF
45910 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45911 _ACEOF
45912
45913                      eval ac_cv_have_decl_$gl_func=yes
45914 fi
45915       done
45916
45917
45918
45919
45920
45921
45922
45923   :
45924
45925
45926
45927
45928
45929
45930
45931
45932
45933
45934
45935   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
45936
45937
45938
45939      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
45940 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
45941 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
45942   $as_echo_n "(cached) " >&6
45943 else
45944
45945                   case "$host_os" in
45946                      # Guess no on AIX and OSF/1.
45947         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
45948                      # Guess yes otherwise.
45949         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
45950       esac
45951       if test $LOCALE_JA != none; then
45952         if test "$cross_compiling" = yes; then :
45953   :
45954 else
45955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45956 /* end confdefs.h.  */
45957
45958 #include <locale.h>
45959 #include <string.h>
45960 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45961    <wchar.h>.
45962    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45963    included before <wchar.h>.  */
45964 #include <stddef.h>
45965 #include <stdio.h>
45966 #include <time.h>
45967 #include <wchar.h>
45968 int main ()
45969 {
45970   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
45971     {
45972       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
45973       mbstate_t state;
45974       wchar_t wc;
45975
45976       memset (&state, '\0', sizeof (mbstate_t));
45977       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
45978         if (mbsinit (&state))
45979           return 1;
45980     }
45981   return 0;
45982 }
45983 _ACEOF
45984 if ac_fn_c_try_run "$LINENO"; then :
45985   gl_cv_func_mbrtowc_incomplete_state=yes
45986 else
45987   gl_cv_func_mbrtowc_incomplete_state=no
45988 fi
45989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45990   conftest.$ac_objext conftest.beam conftest.$ac_ext
45991 fi
45992
45993       fi
45994
45995 fi
45996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
45997 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
45998
45999
46000
46001
46002      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
46003 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
46004 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
46005   $as_echo_n "(cached) " >&6
46006 else
46007
46008                   case "$host_os" in
46009                     # Guess no on Solaris 8.
46010         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
46011                     # Guess yes otherwise.
46012         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
46013       esac
46014       if test $LOCALE_ZH_CN != none; then
46015         if test "$cross_compiling" = yes; then :
46016   :
46017 else
46018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46019 /* end confdefs.h.  */
46020
46021 #include <locale.h>
46022 #include <stdlib.h>
46023 #include <string.h>
46024 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46025    <wchar.h>.
46026    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46027    included before <wchar.h>.  */
46028 #include <stddef.h>
46029 #include <stdio.h>
46030 #include <time.h>
46031 #include <wchar.h>
46032 int main ()
46033 {
46034   /* This fails on Solaris 8:
46035      mbrtowc returns 2, and sets wc to 0x00F0.
46036      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
46037   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46038     {
46039       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
46040       mbstate_t state;
46041       wchar_t wc;
46042
46043       memset (&state, '\0', sizeof (mbstate_t));
46044       if (mbrtowc (&wc, input + 3, 6, &state) != 4
46045           && mbtowc (&wc, input + 3, 6) == 4)
46046         return 1;
46047     }
46048   return 0;
46049 }
46050 _ACEOF
46051 if ac_fn_c_try_run "$LINENO"; then :
46052   gl_cv_func_mbrtowc_sanitycheck=yes
46053 else
46054   gl_cv_func_mbrtowc_sanitycheck=no
46055 fi
46056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46057   conftest.$ac_objext conftest.beam conftest.$ac_ext
46058 fi
46059
46060       fi
46061
46062 fi
46063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
46064 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
46065
46066     REPLACE_MBSTATE_T=0
46067     case "$gl_cv_func_mbrtowc_incomplete_state" in
46068       *yes) ;;
46069       *) REPLACE_MBSTATE_T=1 ;;
46070     esac
46071     case "$gl_cv_func_mbrtowc_sanitycheck" in
46072       *yes) ;;
46073       *) REPLACE_MBSTATE_T=1 ;;
46074     esac
46075   else
46076     REPLACE_MBSTATE_T=1
46077   fi
46078
46079
46080
46081   if test $ac_cv_func_mbrtowc = no; then
46082     HAVE_MBRTOWC=0
46083     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
46084 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46085    <wchar.h>.
46086    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46087    included before <wchar.h>.  */
46088 #include <stddef.h>
46089 #include <stdio.h>
46090 #include <time.h>
46091 #include <wchar.h>
46092
46093 "
46094 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
46095   ac_have_decl=1
46096 else
46097   ac_have_decl=0
46098 fi
46099
46100 cat >>confdefs.h <<_ACEOF
46101 #define HAVE_DECL_MBRTOWC $ac_have_decl
46102 _ACEOF
46103
46104     if test $ac_cv_have_decl_mbrtowc = yes; then
46105                         REPLACE_MBRTOWC=1
46106     fi
46107   else
46108     if test $REPLACE_MBSTATE_T = 1; then
46109       REPLACE_MBRTOWC=1
46110     else
46111
46112
46113
46114      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
46115 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
46116 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
46117   $as_echo_n "(cached) " >&6
46118 else
46119
46120                   case "$host_os" in
46121                   # Guess no on Solaris.
46122         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
46123                   # Guess yes otherwise.
46124         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
46125       esac
46126       if test $LOCALE_FR_UTF8 != none; then
46127         if test "$cross_compiling" = yes; then :
46128   :
46129 else
46130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46131 /* end confdefs.h.  */
46132
46133 #include <locale.h>
46134 #include <stdlib.h>
46135 #include <string.h>
46136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46137    <wchar.h>.
46138    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46139    included before <wchar.h>.  */
46140 #include <stddef.h>
46141 #include <stdio.h>
46142 #include <time.h>
46143 #include <wchar.h>
46144 int main ()
46145 {
46146   int result = 0;
46147
46148   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
46149     {
46150       char input[] = "\303\237er";
46151       mbstate_t state;
46152       wchar_t wc;
46153       size_t ret;
46154
46155       memset (&state, '\0', sizeof (mbstate_t));
46156       wc = (wchar_t) 0xBADFACE;
46157       ret = mbrtowc (&wc, input, 5, &state);
46158       if (ret != 2)
46159         result |= 1;
46160       if (!mbsinit (&state))
46161         result |= 2;
46162
46163       memset (&state, '\0', sizeof (mbstate_t));
46164       ret = mbrtowc (NULL, input, 5, &state);
46165       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
46166         result |= 4;
46167       if (!mbsinit (&state))
46168         result |= 8;
46169     }
46170   return result;
46171 }
46172 _ACEOF
46173 if ac_fn_c_try_run "$LINENO"; then :
46174   gl_cv_func_mbrtowc_null_arg1=yes
46175 else
46176   gl_cv_func_mbrtowc_null_arg1=no
46177 fi
46178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46179   conftest.$ac_objext conftest.beam conftest.$ac_ext
46180 fi
46181
46182       fi
46183
46184 fi
46185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
46186 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
46187
46188
46189
46190
46191      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
46192 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
46193 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
46194   $as_echo_n "(cached) " >&6
46195 else
46196
46197                   case "$host_os" in
46198               # Guess no on OSF/1.
46199         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
46200               # Guess yes otherwise.
46201         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
46202       esac
46203       if test $LOCALE_FR_UTF8 != none; then
46204         if test "$cross_compiling" = yes; then :
46205   :
46206 else
46207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46208 /* end confdefs.h.  */
46209
46210 #include <locale.h>
46211 #include <string.h>
46212 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46213    <wchar.h>.
46214    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46215    included before <wchar.h>.  */
46216 #include <stddef.h>
46217 #include <stdio.h>
46218 #include <time.h>
46219 #include <wchar.h>
46220 int main ()
46221 {
46222   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
46223     {
46224       mbstate_t state;
46225       wchar_t wc;
46226       int ret;
46227
46228       memset (&state, '\0', sizeof (mbstate_t));
46229       wc = (wchar_t) 0xBADFACE;
46230       mbrtowc (&wc, NULL, 5, &state);
46231       /* Check that wc was not modified.  */
46232       if (wc != (wchar_t) 0xBADFACE)
46233         return 1;
46234     }
46235   return 0;
46236 }
46237 _ACEOF
46238 if ac_fn_c_try_run "$LINENO"; then :
46239   gl_cv_func_mbrtowc_null_arg2=yes
46240 else
46241   gl_cv_func_mbrtowc_null_arg2=no
46242 fi
46243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46244   conftest.$ac_objext conftest.beam conftest.$ac_ext
46245 fi
46246
46247       fi
46248
46249 fi
46250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
46251 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
46252
46253
46254
46255
46256
46257
46258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
46259 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
46260 if ${gl_cv_func_mbrtowc_retval+:} false; then :
46261   $as_echo_n "(cached) " >&6
46262 else
46263
46264                   case "$host_os" in
46265                                    # Guess no on HP-UX, Solaris, native Windows.
46266         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
46267                                    # Guess yes otherwise.
46268         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
46269       esac
46270       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
46271          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
46272         if test "$cross_compiling" = yes; then :
46273   :
46274 else
46275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46276 /* end confdefs.h.  */
46277
46278 #include <locale.h>
46279 #include <string.h>
46280 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46281    <wchar.h>.
46282    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46283    included before <wchar.h>.  */
46284 #include <stddef.h>
46285 #include <stdio.h>
46286 #include <time.h>
46287 #include <wchar.h>
46288 int main ()
46289 {
46290   int result = 0;
46291   int found_some_locale = 0;
46292   /* This fails on Solaris.  */
46293   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
46294     {
46295       char input[] = "B\303\274\303\237er"; /* "Büßer" */
46296       mbstate_t state;
46297       wchar_t wc;
46298
46299       memset (&state, '\0', sizeof (mbstate_t));
46300       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46301         {
46302           input[1] = '\0';
46303           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
46304             result |= 1;
46305         }
46306       found_some_locale = 1;
46307     }
46308   /* This fails on HP-UX 11.11.  */
46309   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
46310     {
46311       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
46312       mbstate_t state;
46313       wchar_t wc;
46314
46315       memset (&state, '\0', sizeof (mbstate_t));
46316       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46317         {
46318           input[1] = '\0';
46319           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
46320             result |= 2;
46321         }
46322       found_some_locale = 1;
46323     }
46324   /* This fails on native Windows.  */
46325   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
46326     {
46327       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
46328       mbstate_t state;
46329       wchar_t wc;
46330
46331       memset (&state, '\0', sizeof (mbstate_t));
46332       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
46333         {
46334           input[3] = '\0';
46335           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
46336             result |= 4;
46337         }
46338       found_some_locale = 1;
46339     }
46340   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
46341     {
46342       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
46343       mbstate_t state;
46344       wchar_t wc;
46345
46346       memset (&state, '\0', sizeof (mbstate_t));
46347       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
46348         {
46349           input[3] = '\0';
46350           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
46351             result |= 8;
46352         }
46353       found_some_locale = 1;
46354     }
46355   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
46356     {
46357       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
46358       mbstate_t state;
46359       wchar_t wc;
46360
46361       memset (&state, '\0', sizeof (mbstate_t));
46362       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
46363         {
46364           input[3] = '\0';
46365           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
46366             result |= 16;
46367         }
46368       found_some_locale = 1;
46369     }
46370   return (found_some_locale ? result : 77);
46371 }
46372 _ACEOF
46373 if ac_fn_c_try_run "$LINENO"; then :
46374   gl_cv_func_mbrtowc_retval=yes
46375 else
46376   if test $? != 77; then
46377              gl_cv_func_mbrtowc_retval=no
46378            fi
46379
46380 fi
46381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46382   conftest.$ac_objext conftest.beam conftest.$ac_ext
46383 fi
46384
46385       fi
46386
46387 fi
46388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
46389 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
46390
46391
46392
46393
46394      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
46395 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
46396 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
46397   $as_echo_n "(cached) " >&6
46398 else
46399
46400                   case "$host_os" in
46401                        # Guess no on Solaris 8 and 9.
46402         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
46403                        # Guess yes otherwise.
46404         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
46405       esac
46406       if test $LOCALE_ZH_CN != none; then
46407         if test "$cross_compiling" = yes; then :
46408   :
46409 else
46410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46411 /* end confdefs.h.  */
46412
46413 #include <locale.h>
46414 #include <string.h>
46415 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46416    <wchar.h>.
46417    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46418    included before <wchar.h>.  */
46419 #include <stddef.h>
46420 #include <stdio.h>
46421 #include <time.h>
46422 #include <wchar.h>
46423 int main ()
46424 {
46425   /* This fails on Solaris 8 and 9.  */
46426   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46427     {
46428       mbstate_t state;
46429       wchar_t wc;
46430
46431       memset (&state, '\0', sizeof (mbstate_t));
46432       if (mbrtowc (&wc, "", 1, &state) != 0)
46433         return 1;
46434     }
46435   return 0;
46436 }
46437 _ACEOF
46438 if ac_fn_c_try_run "$LINENO"; then :
46439   gl_cv_func_mbrtowc_nul_retval=yes
46440 else
46441   gl_cv_func_mbrtowc_nul_retval=no
46442 fi
46443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46444   conftest.$ac_objext conftest.beam conftest.$ac_ext
46445 fi
46446
46447       fi
46448
46449 fi
46450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
46451 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
46452
46453
46454
46455      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
46456 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
46457 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
46458   $as_echo_n "(cached) " >&6
46459 else
46460
46461                   case "$host_os" in
46462                      # Guess no on AIX and glibc systems.
46463         aix* | *-gnu*)
46464                     gl_cv_func_mbrtowc_empty_input="guessing no" ;;
46465         *)          gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
46466       esac
46467       if test "$cross_compiling" = yes; then :
46468   :
46469 else
46470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46471 /* end confdefs.h.  */
46472
46473            #include <wchar.h>
46474            static wchar_t wc;
46475            static mbstate_t mbs;
46476            int
46477            main (void)
46478            {
46479              return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
46480            }
46481 _ACEOF
46482 if ac_fn_c_try_run "$LINENO"; then :
46483   gl_cv_func_mbrtowc_empty_input=yes
46484 else
46485   gl_cv_func_mbrtowc_empty_input=no
46486 fi
46487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46488   conftest.$ac_objext conftest.beam conftest.$ac_ext
46489 fi
46490
46491
46492 fi
46493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
46494 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
46495
46496
46497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
46498 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
46499 if ${gl_cv_C_locale_sans_EILSEQ+:} false; then :
46500   $as_echo_n "(cached) " >&6
46501 else
46502
46503                gl_cv_C_locale_sans_EILSEQ="guessing no"
46504
46505      if test "$cross_compiling" = yes; then :
46506   :
46507 else
46508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46509 /* end confdefs.h.  */
46510 #include <limits.h>
46511             #include <locale.h>
46512             #include <wchar.h>
46513
46514 int
46515 main ()
46516 {
46517
46518             int i;
46519             char *locale = setlocale (LC_ALL, "C");
46520             if (! locale)
46521               return 1;
46522             for (i = CHAR_MIN; i <= CHAR_MAX; i++)
46523               {
46524                 char c = i;
46525                 wchar_t wc;
46526                 mbstate_t mbs = { 0, };
46527                 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
46528                 if (1 < ss)
46529                   return 1;
46530               }
46531             return 0;
46532
46533   ;
46534   return 0;
46535 }
46536 _ACEOF
46537 if ac_fn_c_try_run "$LINENO"; then :
46538   gl_cv_C_locale_sans_EILSEQ=yes
46539 else
46540   gl_cv_C_locale_sans_EILSEQ=no
46541 fi
46542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46543   conftest.$ac_objext conftest.beam conftest.$ac_ext
46544 fi
46545
46546 fi
46547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
46548 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
46549
46550       case "$gl_cv_func_mbrtowc_null_arg1" in
46551         *yes) ;;
46552         *)
46553 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
46554
46555            REPLACE_MBRTOWC=1
46556            ;;
46557       esac
46558       case "$gl_cv_func_mbrtowc_null_arg2" in
46559         *yes) ;;
46560         *)
46561 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
46562
46563            REPLACE_MBRTOWC=1
46564            ;;
46565       esac
46566       case "$gl_cv_func_mbrtowc_retval" in
46567         *yes) ;;
46568         *)
46569 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
46570
46571            REPLACE_MBRTOWC=1
46572            ;;
46573       esac
46574       case "$gl_cv_func_mbrtowc_nul_retval" in
46575         *yes) ;;
46576         *)
46577 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
46578
46579            REPLACE_MBRTOWC=1
46580            ;;
46581       esac
46582       case "$gl_cv_func_mbrtowc_empty_input" in
46583         *yes) ;;
46584         *)
46585 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
46586
46587            REPLACE_MBRTOWC=1
46588            ;;
46589       esac
46590       case $gl_cv_C_locale_sans_EILSEQ in
46591         *yes) ;;
46592         *)
46593 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
46594
46595            REPLACE_MBRTOWC=1
46596            ;;
46597       esac
46598     fi
46599   fi
46600
46601   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
46602
46603
46604
46605
46606
46607
46608
46609
46610   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
46611
46612
46613   :
46614
46615   fi
46616
46617
46618
46619
46620
46621           GNULIB_MBRTOWC=1
46622
46623
46624
46625
46626
46627 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
46628
46629
46630
46631
46632
46633
46634
46635
46636
46637
46638
46639
46640
46641
46642   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
46643
46644
46645
46646      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
46647 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
46648 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
46649   $as_echo_n "(cached) " >&6
46650 else
46651
46652                   case "$host_os" in
46653                      # Guess no on AIX and OSF/1.
46654         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
46655                      # Guess yes otherwise.
46656         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
46657       esac
46658       if test $LOCALE_JA != none; then
46659         if test "$cross_compiling" = yes; then :
46660   :
46661 else
46662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46663 /* end confdefs.h.  */
46664
46665 #include <locale.h>
46666 #include <string.h>
46667 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46668    <wchar.h>.
46669    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46670    included before <wchar.h>.  */
46671 #include <stddef.h>
46672 #include <stdio.h>
46673 #include <time.h>
46674 #include <wchar.h>
46675 int main ()
46676 {
46677   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
46678     {
46679       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
46680       mbstate_t state;
46681       wchar_t wc;
46682
46683       memset (&state, '\0', sizeof (mbstate_t));
46684       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46685         if (mbsinit (&state))
46686           return 1;
46687     }
46688   return 0;
46689 }
46690 _ACEOF
46691 if ac_fn_c_try_run "$LINENO"; then :
46692   gl_cv_func_mbrtowc_incomplete_state=yes
46693 else
46694   gl_cv_func_mbrtowc_incomplete_state=no
46695 fi
46696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46697   conftest.$ac_objext conftest.beam conftest.$ac_ext
46698 fi
46699
46700       fi
46701
46702 fi
46703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
46704 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
46705
46706
46707
46708
46709      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
46710 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
46711 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
46712   $as_echo_n "(cached) " >&6
46713 else
46714
46715                   case "$host_os" in
46716                     # Guess no on Solaris 8.
46717         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
46718                     # Guess yes otherwise.
46719         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
46720       esac
46721       if test $LOCALE_ZH_CN != none; then
46722         if test "$cross_compiling" = yes; then :
46723   :
46724 else
46725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46726 /* end confdefs.h.  */
46727
46728 #include <locale.h>
46729 #include <stdlib.h>
46730 #include <string.h>
46731 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46732    <wchar.h>.
46733    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46734    included before <wchar.h>.  */
46735 #include <stddef.h>
46736 #include <stdio.h>
46737 #include <time.h>
46738 #include <wchar.h>
46739 int main ()
46740 {
46741   /* This fails on Solaris 8:
46742      mbrtowc returns 2, and sets wc to 0x00F0.
46743      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
46744   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46745     {
46746       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
46747       mbstate_t state;
46748       wchar_t wc;
46749
46750       memset (&state, '\0', sizeof (mbstate_t));
46751       if (mbrtowc (&wc, input + 3, 6, &state) != 4
46752           && mbtowc (&wc, input + 3, 6) == 4)
46753         return 1;
46754     }
46755   return 0;
46756 }
46757 _ACEOF
46758 if ac_fn_c_try_run "$LINENO"; then :
46759   gl_cv_func_mbrtowc_sanitycheck=yes
46760 else
46761   gl_cv_func_mbrtowc_sanitycheck=no
46762 fi
46763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46764   conftest.$ac_objext conftest.beam conftest.$ac_ext
46765 fi
46766
46767       fi
46768
46769 fi
46770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
46771 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
46772
46773     REPLACE_MBSTATE_T=0
46774     case "$gl_cv_func_mbrtowc_incomplete_state" in
46775       *yes) ;;
46776       *) REPLACE_MBSTATE_T=1 ;;
46777     esac
46778     case "$gl_cv_func_mbrtowc_sanitycheck" in
46779       *yes) ;;
46780       *) REPLACE_MBSTATE_T=1 ;;
46781     esac
46782   else
46783     REPLACE_MBSTATE_T=1
46784   fi
46785
46786
46787
46788   if test $ac_cv_func_mbsinit = no; then
46789     HAVE_MBSINIT=0
46790     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
46791 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46792    <wchar.h>.
46793    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46794    included before <wchar.h>.  */
46795 #include <stddef.h>
46796 #include <stdio.h>
46797 #include <time.h>
46798 #include <wchar.h>
46799
46800 "
46801 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
46802   ac_have_decl=1
46803 else
46804   ac_have_decl=0
46805 fi
46806
46807 cat >>confdefs.h <<_ACEOF
46808 #define HAVE_DECL_MBSINIT $ac_have_decl
46809 _ACEOF
46810
46811     if test $ac_cv_have_decl_mbsinit = yes; then
46812                         REPLACE_MBSINIT=1
46813     fi
46814   else
46815     if test $REPLACE_MBSTATE_T = 1; then
46816       REPLACE_MBSINIT=1
46817     else
46818                         case "$host_os" in
46819         mingw*) REPLACE_MBSINIT=1 ;;
46820       esac
46821     fi
46822   fi
46823
46824   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
46825
46826
46827
46828
46829
46830
46831
46832
46833   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
46834
46835
46836   :
46837
46838   fi
46839
46840
46841
46842
46843
46844           GNULIB_MBSINIT=1
46845
46846
46847
46848
46849
46850 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
46851
46852
46853
46854
46855
46856
46857   if test $ac_cv_func_mbslen = yes; then
46858     HAVE_MBSLEN=1
46859   else
46860     HAVE_MBSLEN=0
46861   fi
46862
46863
46864
46865
46866
46867
46868           GNULIB_MBSLEN=1
46869
46870
46871
46872
46873
46874 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
46875
46876
46877
46878
46879
46880
46881
46882
46883
46884
46885
46886
46887
46888   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
46889
46890
46891
46892      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
46893 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
46894 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
46895   $as_echo_n "(cached) " >&6
46896 else
46897
46898                   case "$host_os" in
46899                      # Guess no on AIX and OSF/1.
46900         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
46901                      # Guess yes otherwise.
46902         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
46903       esac
46904       if test $LOCALE_JA != none; then
46905         if test "$cross_compiling" = yes; then :
46906   :
46907 else
46908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46909 /* end confdefs.h.  */
46910
46911 #include <locale.h>
46912 #include <string.h>
46913 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46914    <wchar.h>.
46915    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46916    included before <wchar.h>.  */
46917 #include <stddef.h>
46918 #include <stdio.h>
46919 #include <time.h>
46920 #include <wchar.h>
46921 int main ()
46922 {
46923   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
46924     {
46925       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
46926       mbstate_t state;
46927       wchar_t wc;
46928
46929       memset (&state, '\0', sizeof (mbstate_t));
46930       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46931         if (mbsinit (&state))
46932           return 1;
46933     }
46934   return 0;
46935 }
46936 _ACEOF
46937 if ac_fn_c_try_run "$LINENO"; then :
46938   gl_cv_func_mbrtowc_incomplete_state=yes
46939 else
46940   gl_cv_func_mbrtowc_incomplete_state=no
46941 fi
46942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46943   conftest.$ac_objext conftest.beam conftest.$ac_ext
46944 fi
46945
46946       fi
46947
46948 fi
46949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
46950 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
46951
46952
46953
46954
46955      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
46956 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
46957 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
46958   $as_echo_n "(cached) " >&6
46959 else
46960
46961                   case "$host_os" in
46962                     # Guess no on Solaris 8.
46963         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
46964                     # Guess yes otherwise.
46965         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
46966       esac
46967       if test $LOCALE_ZH_CN != none; then
46968         if test "$cross_compiling" = yes; then :
46969   :
46970 else
46971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46972 /* end confdefs.h.  */
46973
46974 #include <locale.h>
46975 #include <stdlib.h>
46976 #include <string.h>
46977 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46978    <wchar.h>.
46979    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46980    included before <wchar.h>.  */
46981 #include <stddef.h>
46982 #include <stdio.h>
46983 #include <time.h>
46984 #include <wchar.h>
46985 int main ()
46986 {
46987   /* This fails on Solaris 8:
46988      mbrtowc returns 2, and sets wc to 0x00F0.
46989      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
46990   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46991     {
46992       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
46993       mbstate_t state;
46994       wchar_t wc;
46995
46996       memset (&state, '\0', sizeof (mbstate_t));
46997       if (mbrtowc (&wc, input + 3, 6, &state) != 4
46998           && mbtowc (&wc, input + 3, 6) == 4)
46999         return 1;
47000     }
47001   return 0;
47002 }
47003 _ACEOF
47004 if ac_fn_c_try_run "$LINENO"; then :
47005   gl_cv_func_mbrtowc_sanitycheck=yes
47006 else
47007   gl_cv_func_mbrtowc_sanitycheck=no
47008 fi
47009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47010   conftest.$ac_objext conftest.beam conftest.$ac_ext
47011 fi
47012
47013       fi
47014
47015 fi
47016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
47017 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
47018
47019     REPLACE_MBSTATE_T=0
47020     case "$gl_cv_func_mbrtowc_incomplete_state" in
47021       *yes) ;;
47022       *) REPLACE_MBSTATE_T=1 ;;
47023     esac
47024     case "$gl_cv_func_mbrtowc_sanitycheck" in
47025       *yes) ;;
47026       *) REPLACE_MBSTATE_T=1 ;;
47027     esac
47028   else
47029     REPLACE_MBSTATE_T=1
47030   fi
47031
47032
47033
47034   if test $ac_cv_func_mbsrtowcs = no; then
47035     HAVE_MBSRTOWCS=0
47036     ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
47037 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
47038    <wchar.h>.
47039    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
47040    included before <wchar.h>.  */
47041 #include <stddef.h>
47042 #include <stdio.h>
47043 #include <time.h>
47044 #include <wchar.h>
47045
47046 "
47047 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
47048   ac_have_decl=1
47049 else
47050   ac_have_decl=0
47051 fi
47052
47053 cat >>confdefs.h <<_ACEOF
47054 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
47055 _ACEOF
47056
47057     if test $ac_cv_have_decl_mbsrtowcs = yes; then
47058                         REPLACE_MBSRTOWCS=1
47059     fi
47060   else
47061     if test $REPLACE_MBSTATE_T = 1; then
47062       REPLACE_MBSRTOWCS=1
47063     else
47064
47065
47066
47067
47068
47069
47070      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
47071 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
47072 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
47073   $as_echo_n "(cached) " >&6
47074 else
47075
47076                   case "$host_os" in
47077                                    # Guess no on HP-UX, Solaris, mingw.
47078         hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
47079                                    # Guess yes otherwise.
47080         *)                         gl_cv_func_mbsrtowcs_works="guessing yes" ;;
47081       esac
47082       if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
47083         if test "$cross_compiling" = yes; then :
47084   :
47085 else
47086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47087 /* end confdefs.h.  */
47088
47089 #include <locale.h>
47090 #include <string.h>
47091 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
47092    <wchar.h>.
47093    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
47094    included before <wchar.h>.  */
47095 #include <stddef.h>
47096 #include <stdio.h>
47097 #include <time.h>
47098 #include <wchar.h>
47099 int main ()
47100 {
47101   int result = 0;
47102   /* Test whether the function supports a NULL destination argument.
47103      This fails on native Windows.  */
47104   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
47105     {
47106       const char input[] = "\337er";
47107       const char *src = input;
47108       mbstate_t state;
47109
47110       memset (&state, '\0', sizeof (mbstate_t));
47111       if (mbsrtowcs (NULL, &src, 1, &state) != 3
47112           || src != input)
47113         result |= 1;
47114     }
47115   /* Test whether the function works when started with a conversion state
47116      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
47117   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
47118     {
47119       const char input[] = "B\303\274\303\237er";
47120       mbstate_t state;
47121
47122       memset (&state, '\0', sizeof (mbstate_t));
47123       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
47124         if (!mbsinit (&state))
47125           {
47126             const char *src = input + 2;
47127             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
47128               result |= 2;
47129           }
47130     }
47131   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
47132     {
47133       const char input[] = "<\306\374\313\334\270\354>";
47134       mbstate_t state;
47135
47136       memset (&state, '\0', sizeof (mbstate_t));
47137       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
47138         if (!mbsinit (&state))
47139           {
47140             const char *src = input + 4;
47141             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
47142               result |= 4;
47143           }
47144     }
47145   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
47146     {
47147       const char input[] = "B\250\271\201\060\211\070er";
47148       mbstate_t state;
47149
47150       memset (&state, '\0', sizeof (mbstate_t));
47151       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
47152         if (!mbsinit (&state))
47153           {
47154             const char *src = input + 2;
47155             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
47156               result |= 8;
47157           }
47158     }
47159   return result;
47160 }
47161 _ACEOF
47162 if ac_fn_c_try_run "$LINENO"; then :
47163   gl_cv_func_mbsrtowcs_works=yes
47164 else
47165   gl_cv_func_mbsrtowcs_works=no
47166 fi
47167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47168   conftest.$ac_objext conftest.beam conftest.$ac_ext
47169 fi
47170
47171       fi
47172
47173 fi
47174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
47175 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
47176
47177       case "$gl_cv_func_mbsrtowcs_works" in
47178         *yes) ;;
47179         *) REPLACE_MBSRTOWCS=1 ;;
47180       esac
47181     fi
47182   fi
47183
47184   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
47185
47186
47187
47188
47189
47190
47191
47192
47193   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
47204
47205
47206   :
47207
47208   fi
47209
47210
47211
47212
47213
47214           GNULIB_MBSRTOWCS=1
47215
47216
47217
47218
47219
47220 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
47221
47222
47223
47224
47225
47226
47227
47228
47229           GNULIB_MBSSTR=1
47230
47231
47232
47233
47234
47235 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
47236
47237
47238
47239
47240
47241
47242
47243       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
47244 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
47245 if ${ac_cv_have_decl_mbswidth+:} false; then :
47246   $as_echo_n "(cached) " >&6
47247 else
47248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47249 /* end confdefs.h.  */
47250
47251 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
47252    <wchar.h>.
47253    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
47254    before <wchar.h>.  */
47255 #include <stddef.h>
47256 #include <stdio.h>
47257 #include <time.h>
47258 #include <wchar.h>
47259
47260 int
47261 main ()
47262 {
47263
47264   char *p = (char *) mbswidth;
47265   return !p;
47266
47267   ;
47268   return 0;
47269 }
47270 _ACEOF
47271 if ac_fn_c_try_compile "$LINENO"; then :
47272   ac_cv_have_decl_mbswidth=yes
47273 else
47274   ac_cv_have_decl_mbswidth=no
47275 fi
47276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47277 fi
47278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
47279 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
47280   if test $ac_cv_have_decl_mbswidth = yes; then
47281     ac_val=1
47282   else
47283     ac_val=0
47284   fi
47285
47286 cat >>confdefs.h <<_ACEOF
47287 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
47288 _ACEOF
47289
47290
47291
47292
47293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
47294 $as_echo_n "checking for mbstate_t... " >&6; }
47295 if ${ac_cv_type_mbstate_t+:} false; then :
47296   $as_echo_n "(cached) " >&6
47297 else
47298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47299 /* end confdefs.h.  */
47300 $ac_includes_default
47301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
47302    <wchar.h>.
47303    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
47304    included before <wchar.h>.  */
47305 #include <stddef.h>
47306 #include <stdio.h>
47307 #include <time.h>
47308 #include <wchar.h>
47309 int
47310 main ()
47311 {
47312 mbstate_t x; return sizeof x;
47313   ;
47314   return 0;
47315 }
47316 _ACEOF
47317 if ac_fn_c_try_compile "$LINENO"; then :
47318   ac_cv_type_mbstate_t=yes
47319 else
47320   ac_cv_type_mbstate_t=no
47321 fi
47322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47323 fi
47324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
47325 $as_echo "$ac_cv_type_mbstate_t" >&6; }
47326    if test $ac_cv_type_mbstate_t = yes; then
47327
47328 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
47329
47330    else
47331
47332 $as_echo "#define mbstate_t int" >>confdefs.h
47333
47334    fi
47335
47336
47337
47338
47339   :
47340
47341
47342   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
47343
47344
47345
47346
47347
47348
47349
47350
47351   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
47352
47353
47354   for ac_header in bp-sym.h
47355 do :
47356   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
47357 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
47358   cat >>confdefs.h <<_ACEOF
47359 #define HAVE_BP_SYM_H 1
47360 _ACEOF
47361
47362 fi
47363
47364 done
47365
47366
47367   fi
47368
47369
47370
47371
47372
47373           GNULIB_MEMCHR=1
47374
47375
47376
47377
47378
47379 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
47380
47381
47382
47383
47384   for ac_func in memmove
47385 do :
47386   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
47387 if test "x$ac_cv_func_memmove" = xyes; then :
47388   cat >>confdefs.h <<_ACEOF
47389 #define HAVE_MEMMOVE 1
47390 _ACEOF
47391
47392 fi
47393 done
47394
47395
47396   if test $ac_cv_func_memmove = no; then
47397
47398
47399
47400
47401
47402
47403
47404
47405   gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext"
47406
47407
47408   :
47409
47410   fi
47411
47412   for ac_func in memset
47413 do :
47414   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
47415 if test "x$ac_cv_func_memset" = xyes; then :
47416   cat >>confdefs.h <<_ACEOF
47417 #define HAVE_MEMSET 1
47418 _ACEOF
47419
47420 fi
47421 done
47422
47423
47424   if test $ac_cv_func_memset = no; then
47425
47426
47427
47428
47429
47430
47431
47432
47433   gl_LIBOBJS="$gl_LIBOBJS memset.$ac_objext"
47434
47435
47436   :
47437
47438   fi
47439
47440
47441
47442
47443
47444   for ac_func in mkdtemp
47445 do :
47446   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
47447 if test "x$ac_cv_func_mkdtemp" = xyes; then :
47448   cat >>confdefs.h <<_ACEOF
47449 #define HAVE_MKDTEMP 1
47450 _ACEOF
47451
47452 fi
47453 done
47454
47455   if test $ac_cv_func_mkdtemp = no; then
47456     HAVE_MKDTEMP=0
47457   fi
47458
47459   if test $HAVE_MKDTEMP = 0; then
47460
47461
47462
47463
47464
47465
47466
47467
47468   gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
47469
47470     :
47471
47472   fi
47473
47474
47475
47476
47477
47478           GNULIB_MKDTEMP=1
47479
47480
47481
47482
47483
47484 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
47485
47486
47487
47488
47489
47490           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
47491 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
47492 if ${gl_cv_c_cplusplus+:} false; then :
47493   $as_echo_n "(cached) " >&6
47494 else
47495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47496 /* end confdefs.h.  */
47497
47498 #ifdef __cplusplus
47499   Is c++
47500 #endif
47501
47502 _ACEOF
47503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47504   $EGREP "Is c++" >/dev/null 2>&1; then :
47505   gl_cv_c_cplusplus=yes
47506 else
47507   gl_cv_c_cplusplus=no
47508 fi
47509 rm -f conftest*
47510
47511 fi
47512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
47513 $as_echo "$gl_cv_c_cplusplus" >&6; }
47514   if test $gl_cv_c_cplusplus = yes; then
47515
47516 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
47517
47518   fi
47519
47520
47521   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
47522
47523
47524
47525
47526
47527
47528
47529
47530   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
47531
47532   fi
47533
47534   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
47535
47536
47537
47538
47539
47540
47541
47542
47543   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
47544
47545   fi
47546
47547
47548   NO_CXX=
47549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47550 /* end confdefs.h.  */
47551
47552 #if defined __GNUC__ && defined __cplusplus
47553   Is g++
47554 #endif
47555
47556 _ACEOF
47557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47558   $EGREP "Is g++" >/dev/null 2>&1; then :
47559   NO_CXX="-x c"
47560 fi
47561 rm -f conftest*
47562
47563
47564
47565
47566
47567
47568
47569
47570
47571
47572
47573
47574
47575
47576
47577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5
47578 $as_echo_n "checking for obstacks that work with any size object... " >&6; }
47579 if ${ac_cv_func_obstack+:} false; then :
47580   $as_echo_n "(cached) " >&6
47581 else
47582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47583 /* end confdefs.h.  */
47584 #include "obstack.h"
47585              void *obstack_chunk_alloc (size_t n) { return 0; }
47586              void obstack_chunk_free (void *p) { }
47587              /* Check that an internal function returns size_t, not int.  */
47588              size_t _obstack_memory_used (struct obstack *);
47589
47590 int
47591 main ()
47592 {
47593 struct obstack mem;
47594              obstack_init (&mem);
47595              obstack_free (&mem, 0);
47596
47597   ;
47598   return 0;
47599 }
47600 _ACEOF
47601 if ac_fn_c_try_link "$LINENO"; then :
47602   ac_cv_func_obstack=yes
47603 else
47604   ac_cv_func_obstack=no
47605 fi
47606 rm -f core conftest.err conftest.$ac_objext \
47607     conftest$ac_exeext conftest.$ac_ext
47608 fi
47609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
47610 $as_echo "$ac_cv_func_obstack" >&6; }
47611    if test "$ac_cv_func_obstack" = yes; then
47612
47613 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
47614
47615    else
47616
47617
47618
47619
47620
47621
47622
47623
47624   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
47625
47626    fi
47627
47628
47629
47630   case "$host_os" in
47631     mingw* | pw*)
47632       REPLACE_OPEN=1
47633       ;;
47634     *)
47635
47636       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
47637 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
47638 if ${gl_cv_func_open_slash+:} false; then :
47639   $as_echo_n "(cached) " >&6
47640 else
47641   # Assume that if we have lstat, we can also check symlinks.
47642           if test $ac_cv_func_lstat = yes; then
47643             touch conftest.tmp
47644             ln -s conftest.tmp conftest.lnk
47645           fi
47646           if test "$cross_compiling" = yes; then :
47647
47648              case "$host_os" in
47649                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
47650                  gl_cv_func_open_slash="guessing no" ;;
47651                *)
47652                  gl_cv_func_open_slash="guessing yes" ;;
47653              esac
47654
47655 else
47656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47657 /* end confdefs.h.  */
47658
47659 #include <fcntl.h>
47660 #if HAVE_UNISTD_H
47661 # include <unistd.h>
47662 #endif
47663 int main ()
47664 {
47665   int result = 0;
47666 #if HAVE_LSTAT
47667   if (open ("conftest.lnk/", O_RDONLY) != -1)
47668     result |= 1;
47669 #endif
47670   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
47671     result |= 2;
47672   return result;
47673 }
47674 _ACEOF
47675 if ac_fn_c_try_run "$LINENO"; then :
47676   gl_cv_func_open_slash=yes
47677 else
47678   gl_cv_func_open_slash=no
47679 fi
47680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47681   conftest.$ac_objext conftest.beam conftest.$ac_ext
47682 fi
47683
47684           rm -f conftest.sl conftest.tmp conftest.lnk
47685
47686 fi
47687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
47688 $as_echo "$gl_cv_func_open_slash" >&6; }
47689       case "$gl_cv_func_open_slash" in
47690         *no)
47691
47692 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
47693
47694           REPLACE_OPEN=1
47695           ;;
47696       esac
47697       ;;
47698   esac
47699
47700
47701
47702   if test $REPLACE_OPEN = 1; then
47703
47704
47705
47706
47707
47708
47709
47710
47711   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
47712
47713
47714
47715   :
47716
47717   fi
47718
47719
47720
47721
47722
47723           GNULIB_OPEN=1
47724
47725
47726
47727
47728
47729 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
47730
47731
47732
47733
47734
47735
47736   for ac_func in opendir
47737 do :
47738   ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
47739 if test "x$ac_cv_func_opendir" = xyes; then :
47740   cat >>confdefs.h <<_ACEOF
47741 #define HAVE_OPENDIR 1
47742 _ACEOF
47743
47744 fi
47745 done
47746
47747   if test $ac_cv_func_opendir = no; then
47748     HAVE_OPENDIR=0
47749   fi
47750
47751       case $host_os,$HAVE_OPENDIR in
47752     os2*,1)
47753       REPLACE_OPENDIR=1;;
47754   esac
47755
47756   if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
47757
47758
47759
47760
47761
47762
47763
47764
47765   gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
47766
47767   fi
47768
47769
47770
47771
47772
47773           GNULIB_OPENDIR=1
47774
47775
47776
47777
47778
47779 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
47780
47781
47782
47783
47784   OPENMP_CFLAGS=
47785   # Check whether --enable-openmp was given.
47786 if test "${enable_openmp+set}" = set; then :
47787   enableval=$enable_openmp;
47788 fi
47789
47790   if test "$enable_openmp" != no; then
47791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
47792 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
47793 if ${ac_cv_prog_c_openmp+:} false; then :
47794   $as_echo_n "(cached) " >&6
47795 else
47796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47797 /* end confdefs.h.  */
47798
47799 #ifndef _OPENMP
47800  choke me
47801 #endif
47802 #include <omp.h>
47803 int main () { return omp_get_num_threads (); }
47804
47805 _ACEOF
47806 if ac_fn_c_try_link "$LINENO"; then :
47807   ac_cv_prog_c_openmp='none needed'
47808 else
47809   ac_cv_prog_c_openmp='unsupported'
47810                                                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
47811                            -Popenmp --openmp; do
47812             ac_save_CFLAGS=$CFLAGS
47813             CFLAGS="$CFLAGS $ac_option"
47814             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47815 /* end confdefs.h.  */
47816
47817 #ifndef _OPENMP
47818  choke me
47819 #endif
47820 #include <omp.h>
47821 int main () { return omp_get_num_threads (); }
47822
47823 _ACEOF
47824 if ac_fn_c_try_link "$LINENO"; then :
47825   ac_cv_prog_c_openmp=$ac_option
47826 fi
47827 rm -f core conftest.err conftest.$ac_objext \
47828     conftest$ac_exeext conftest.$ac_ext
47829             CFLAGS=$ac_save_CFLAGS
47830             if test "$ac_cv_prog_c_openmp" != unsupported; then
47831               break
47832             fi
47833           done
47834 fi
47835 rm -f core conftest.err conftest.$ac_objext \
47836     conftest$ac_exeext conftest.$ac_ext
47837 fi
47838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
47839 $as_echo "$ac_cv_prog_c_openmp" >&6; }
47840     case $ac_cv_prog_c_openmp in #(
47841       "none needed" | unsupported)
47842         ;; #(
47843       *)
47844         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
47845     esac
47846   fi
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
47858
47859   if test $ac_cv_func_pipe2 != yes; then
47860     HAVE_PIPE2=0
47861   fi
47862
47863
47864
47865
47866
47867
47868           GNULIB_PIPE2=1
47869
47870
47871
47872
47873
47874 $as_echo "#define GNULIB_TEST_PIPE2 1" >>confdefs.h
47875
47876
47877
47878
47879
47880 cat >>confdefs.h <<_ACEOF
47881 #define GNULIB_PIPE2_SAFER 1
47882 _ACEOF
47883
47884
47885
47886
47887
47888
47889
47890
47891   if test $REPLACE_POSIX_SPAWN = 1; then
47892     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
47893   else
47894             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_addclose works" >&5
47895 $as_echo_n "checking whether posix_spawn_file_actions_addclose works... " >&6; }
47896 if ${gl_cv_func_posix_spawn_file_actions_addclose_works+:} false; then :
47897   $as_echo_n "(cached) " >&6
47898 else
47899   if test "$cross_compiling" = yes; then :
47900   # Guess no on Solaris, yes otherwise.
47901           case "$host_os" in
47902             solaris*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no";;
47903             *)        gl_cv_func_posix_spawn_file_actions_addclose_works="guessing yes";;
47904           esac
47905
47906 else
47907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47908 /* end confdefs.h.  */
47909
47910 #include <spawn.h>
47911 int main ()
47912 {
47913   posix_spawn_file_actions_t actions;
47914   if (posix_spawn_file_actions_init (&actions) != 0)
47915     return 1;
47916   if (posix_spawn_file_actions_addclose (&actions, 10000000) == 0)
47917     return 2;
47918   return 0;
47919 }
47920 _ACEOF
47921 if ac_fn_c_try_run "$LINENO"; then :
47922   gl_cv_func_posix_spawn_file_actions_addclose_works=yes
47923 else
47924   gl_cv_func_posix_spawn_file_actions_addclose_works=no
47925 fi
47926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47927   conftest.$ac_objext conftest.beam conftest.$ac_ext
47928 fi
47929
47930
47931 fi
47932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_addclose_works" >&5
47933 $as_echo "$gl_cv_func_posix_spawn_file_actions_addclose_works" >&6; }
47934     case "$gl_cv_func_posix_spawn_file_actions_addclose_works" in
47935       *yes) ;;
47936       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1 ;;
47937     esac
47938   fi
47939
47940   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
47941
47942
47943
47944
47945
47946
47947
47948
47949   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addclose.$ac_objext"
47950
47951   fi
47952
47953
47954
47955
47956
47957           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
47958
47959
47960
47961
47962
47963 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 1" >>confdefs.h
47964
47965
47966
47967
47968
47969
47970
47971
47972
47973   if test $REPLACE_POSIX_SPAWN = 1; then
47974     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
47975   else
47976             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_adddup2 works" >&5
47977 $as_echo_n "checking whether posix_spawn_file_actions_adddup2 works... " >&6; }
47978 if ${gl_cv_func_posix_spawn_file_actions_adddup2_works+:} false; then :
47979   $as_echo_n "(cached) " >&6
47980 else
47981   if test "$cross_compiling" = yes; then :
47982   # Guess no on Solaris, yes otherwise.
47983           case "$host_os" in
47984             solaris*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no";;
47985             *)        gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing yes";;
47986           esac
47987
47988 else
47989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47990 /* end confdefs.h.  */
47991
47992 #include <spawn.h>
47993 int main ()
47994 {
47995   posix_spawn_file_actions_t actions;
47996   if (posix_spawn_file_actions_init (&actions) != 0)
47997     return 1;
47998   if (posix_spawn_file_actions_adddup2 (&actions, 10000000, 2) == 0)
47999     return 2;
48000   return 0;
48001 }
48002 _ACEOF
48003 if ac_fn_c_try_run "$LINENO"; then :
48004   gl_cv_func_posix_spawn_file_actions_adddup2_works=yes
48005 else
48006   gl_cv_func_posix_spawn_file_actions_adddup2_works=no
48007 fi
48008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48009   conftest.$ac_objext conftest.beam conftest.$ac_ext
48010 fi
48011
48012
48013 fi
48014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_adddup2_works" >&5
48015 $as_echo "$gl_cv_func_posix_spawn_file_actions_adddup2_works" >&6; }
48016     case "$gl_cv_func_posix_spawn_file_actions_adddup2_works" in
48017       *yes) ;;
48018       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1 ;;
48019     esac
48020   fi
48021
48022   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
48023
48024
48025
48026
48027
48028
48029
48030
48031   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_adddup2.$ac_objext"
48032
48033   fi
48034
48035
48036
48037
48038
48039           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
48040
48041
48042
48043
48044
48045 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1" >>confdefs.h
48046
48047
48048
48049
48050
48051
48052
48053
48054
48055   if test $REPLACE_POSIX_SPAWN = 1; then
48056     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
48057   else
48058             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_addopen works" >&5
48059 $as_echo_n "checking whether posix_spawn_file_actions_addopen works... " >&6; }
48060 if ${gl_cv_func_posix_spawn_file_actions_addopen_works+:} false; then :
48061   $as_echo_n "(cached) " >&6
48062 else
48063   if test "$cross_compiling" = yes; then :
48064   # Guess no on Solaris, yes otherwise.
48065           case "$host_os" in
48066             solaris*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no";;
48067             *)        gl_cv_func_posix_spawn_file_actions_addopen_works="guessing yes";;
48068           esac
48069
48070 else
48071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48072 /* end confdefs.h.  */
48073
48074 #include <spawn.h>
48075 #include <fcntl.h>
48076 int main ()
48077 {
48078   posix_spawn_file_actions_t actions;
48079   if (posix_spawn_file_actions_init (&actions) != 0)
48080     return 1;
48081   if (posix_spawn_file_actions_addopen (&actions, 10000000, "foo", 0, O_RDONLY)
48082       == 0)
48083     return 2;
48084   return 0;
48085 }
48086 _ACEOF
48087 if ac_fn_c_try_run "$LINENO"; then :
48088   gl_cv_func_posix_spawn_file_actions_addopen_works=yes
48089 else
48090   gl_cv_func_posix_spawn_file_actions_addopen_works=no
48091 fi
48092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48093   conftest.$ac_objext conftest.beam conftest.$ac_ext
48094 fi
48095
48096
48097 fi
48098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_addopen_works" >&5
48099 $as_echo "$gl_cv_func_posix_spawn_file_actions_addopen_works" >&6; }
48100     case "$gl_cv_func_posix_spawn_file_actions_addopen_works" in
48101       *yes) ;;
48102       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1 ;;
48103     esac
48104   fi
48105
48106   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
48107
48108
48109
48110
48111
48112
48113
48114
48115   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addopen.$ac_objext"
48116
48117   fi
48118
48119
48120
48121
48122
48123           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
48124
48125
48126
48127
48128
48129 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 1" >>confdefs.h
48130
48131
48132
48133
48134
48135
48136   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
48137
48138
48139
48140
48141
48142
48143
48144
48145   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_destroy.$ac_objext"
48146
48147   fi
48148
48149
48150
48151
48152
48153           GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=1
48154
48155
48156
48157
48158
48159 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_DESTROY 1" >>confdefs.h
48160
48161
48162
48163
48164
48165
48166   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
48167
48168
48169
48170
48171
48172
48173
48174
48175   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_init.$ac_objext"
48176
48177   fi
48178
48179
48180
48181
48182
48183           GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=1
48184
48185
48186
48187
48188
48189 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_INIT 1" >>confdefs.h
48190
48191
48192
48193
48194
48195
48196   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
48197
48198
48199
48200
48201
48202
48203
48204
48205   gl_LIBOBJS="$gl_LIBOBJS spawnattr_destroy.$ac_objext"
48206
48207   fi
48208
48209
48210
48211
48212
48213           GNULIB_POSIX_SPAWNATTR_DESTROY=1
48214
48215
48216
48217
48218
48219 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_DESTROY 1" >>confdefs.h
48220
48221
48222
48223
48224
48225
48226   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
48227
48228
48229
48230
48231
48232
48233
48234
48235   gl_LIBOBJS="$gl_LIBOBJS spawnattr_init.$ac_objext"
48236
48237   fi
48238
48239
48240
48241
48242
48243           GNULIB_POSIX_SPAWNATTR_INIT=1
48244
48245
48246
48247
48248
48249 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_INIT 1" >>confdefs.h
48250
48251
48252
48253
48254
48255
48256   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
48257
48258
48259
48260
48261
48262
48263
48264
48265   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setflags.$ac_objext"
48266
48267   fi
48268
48269
48270
48271
48272
48273           GNULIB_POSIX_SPAWNATTR_SETFLAGS=1
48274
48275
48276
48277
48278
48279 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETFLAGS 1" >>confdefs.h
48280
48281
48282
48283
48284
48285
48286   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
48287
48288
48289
48290
48291
48292
48293
48294
48295   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setsigmask.$ac_objext"
48296
48297   fi
48298
48299
48300
48301
48302
48303           GNULIB_POSIX_SPAWNATTR_SETSIGMASK=1
48304
48305
48306
48307
48308
48309 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h
48310
48311
48312
48313
48314
48315
48316   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
48317
48318
48319
48320
48321
48322
48323
48324
48325   gl_LIBOBJS="$gl_LIBOBJS spawnp.$ac_objext"
48326
48327
48328
48329
48330
48331
48332
48333
48334
48335   gl_LIBOBJS="$gl_LIBOBJS spawni.$ac_objext"
48336
48337
48338   for ac_header in paths.h
48339 do :
48340   ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
48341 if test "x$ac_cv_header_paths_h" = xyes; then :
48342   cat >>confdefs.h <<_ACEOF
48343 #define HAVE_PATHS_H 1
48344 _ACEOF
48345
48346 fi
48347
48348 done
48349
48350   for ac_func in confstr sched_setparam sched_setscheduler setegid seteuid vfork
48351 do :
48352   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48353 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
48354 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
48355   cat >>confdefs.h <<_ACEOF
48356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48357 _ACEOF
48358
48359 fi
48360 done
48361
48362
48363   fi
48364
48365
48366
48367
48368
48369           GNULIB_POSIX_SPAWNP=1
48370
48371
48372
48373
48374
48375 $as_echo "#define GNULIB_TEST_POSIX_SPAWNP 1" >>confdefs.h
48376
48377
48378
48379
48380
48381
48382
48383   POW_LIBM="$POW_LIBM"
48384
48385
48386
48387
48388   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
48389 "
48390 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
48391   ac_have_decl=1
48392 else
48393   ac_have_decl=0
48394 fi
48395
48396 cat >>confdefs.h <<_ACEOF
48397 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
48398 _ACEOF
48399
48400   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
48401 "
48402 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
48403   ac_have_decl=1
48404 else
48405   ac_have_decl=0
48406 fi
48407
48408 cat >>confdefs.h <<_ACEOF
48409 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
48410 _ACEOF
48411
48412
48413
48414   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
48415
48416
48417
48418   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
48419
48420
48421       :
48422
48423
48424   :
48425
48426
48427
48428
48429
48430   for ac_func in raise
48431 do :
48432   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
48433 if test "x$ac_cv_func_raise" = xyes; then :
48434   cat >>confdefs.h <<_ACEOF
48435 #define HAVE_RAISE 1
48436 _ACEOF
48437
48438 fi
48439 done
48440
48441   if test $ac_cv_func_raise = no; then
48442     HAVE_RAISE=0
48443   else
48444     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
48445       REPLACE_RAISE=1
48446     fi
48447
48448
48449
48450
48451   if test $gl_cv_type_sigset_t = yes; then
48452     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
48453 if test "x$ac_cv_func_sigprocmask" = xyes; then :
48454   gl_cv_func_sigprocmask=1
48455 fi
48456
48457   fi
48458   if test -z "$gl_cv_func_sigprocmask"; then
48459     HAVE_POSIX_SIGNALBLOCKING=0
48460   fi
48461
48462       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
48463
48464
48465
48466
48467           if test $gl_cv_header_signal_h_SIGPIPE != yes; then
48468             REPLACE_RAISE=1
48469           fi
48470
48471       fi
48472
48473   fi
48474
48475   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
48476
48477
48478
48479
48480
48481
48482
48483
48484   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
48485
48486     :
48487   fi
48488
48489
48490
48491
48492
48493           GNULIB_RAISE=1
48494
48495
48496
48497
48498
48499 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
48500
48501
48502
48503
48504
48505
48506
48507   for ac_func in rawmemchr
48508 do :
48509   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
48510 if test "x$ac_cv_func_rawmemchr" = xyes; then :
48511   cat >>confdefs.h <<_ACEOF
48512 #define HAVE_RAWMEMCHR 1
48513 _ACEOF
48514
48515 fi
48516 done
48517
48518   if test $ac_cv_func_rawmemchr = no; then
48519     HAVE_RAWMEMCHR=0
48520   fi
48521
48522   if test $HAVE_RAWMEMCHR = 0; then
48523
48524
48525
48526
48527
48528
48529
48530
48531   gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
48532
48533     :
48534   fi
48535
48536
48537
48538
48539
48540           GNULIB_RAWMEMCHR=1
48541
48542
48543
48544
48545
48546 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
48547
48548
48549
48550
48551
48552
48553   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
48554     REPLACE_READ=1
48555   fi
48556
48557
48558   if test $REPLACE_READ = 1; then
48559
48560
48561
48562
48563
48564
48565
48566
48567   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
48568
48569     :
48570   fi
48571
48572
48573
48574
48575
48576           GNULIB_READ=1
48577
48578
48579
48580
48581
48582 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
48583
48584
48585
48586
48587
48588
48589   for ac_func in readdir
48590 do :
48591   ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
48592 if test "x$ac_cv_func_readdir" = xyes; then :
48593   cat >>confdefs.h <<_ACEOF
48594 #define HAVE_READDIR 1
48595 _ACEOF
48596
48597 fi
48598 done
48599
48600   if test $ac_cv_func_readdir = no; then
48601     HAVE_READDIR=0
48602   fi
48603
48604   if test $HAVE_READDIR = 0; then
48605
48606
48607
48608
48609
48610
48611
48612
48613   gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
48614
48615   fi
48616
48617
48618
48619
48620
48621           GNULIB_READDIR=1
48622
48623
48624
48625
48626
48627 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
48628
48629
48630
48631
48632
48633
48634   if test $ac_cv_func_readlink = no; then
48635     HAVE_READLINK=0
48636   else
48637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
48638 $as_echo_n "checking whether readlink signature is correct... " >&6; }
48639 if ${gl_cv_decl_readlink_works+:} false; then :
48640   $as_echo_n "(cached) " >&6
48641 else
48642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48643 /* end confdefs.h.  */
48644 #include <unistd.h>
48645       /* Cause compilation failure if original declaration has wrong type.  */
48646       ssize_t readlink (const char *, char *, size_t);
48647 int
48648 main ()
48649 {
48650
48651   ;
48652   return 0;
48653 }
48654 _ACEOF
48655 if ac_fn_c_try_compile "$LINENO"; then :
48656   gl_cv_decl_readlink_works=yes
48657 else
48658   gl_cv_decl_readlink_works=no
48659 fi
48660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48661 fi
48662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
48663 $as_echo "$gl_cv_decl_readlink_works" >&6; }
48664             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
48665 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
48666 if ${gl_cv_func_readlink_works+:} false; then :
48667   $as_echo_n "(cached) " >&6
48668 else
48669   # We have readlink, so assume ln -s works.
48670        ln -s conftest.no-such conftest.link
48671        ln -s conftest.link conftest.lnk2
48672        if test "$cross_compiling" = yes; then :
48673   case "$host_os" in
48674                     # Guess yes on glibc systems.
48675             *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
48676                     # If we don't know, assume the worst.
48677             *)      gl_cv_func_readlink_works="guessing no" ;;
48678           esac
48679
48680 else
48681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48682 /* end confdefs.h.  */
48683 #include <unistd.h>
48684
48685 int
48686 main ()
48687 {
48688 char buf[20];
48689       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
48690   ;
48691   return 0;
48692 }
48693 _ACEOF
48694 if ac_fn_c_try_run "$LINENO"; then :
48695   gl_cv_func_readlink_works=yes
48696 else
48697   gl_cv_func_readlink_works=no
48698 fi
48699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48700   conftest.$ac_objext conftest.beam conftest.$ac_ext
48701 fi
48702
48703       rm -f conftest.link conftest.lnk2
48704 fi
48705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
48706 $as_echo "$gl_cv_func_readlink_works" >&6; }
48707     case "$gl_cv_func_readlink_works" in
48708       *yes)
48709         if test "$gl_cv_decl_readlink_works" != yes; then
48710           REPLACE_READLINK=1
48711         fi
48712         ;;
48713       *)
48714
48715 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
48716
48717         REPLACE_READLINK=1
48718         ;;
48719     esac
48720   fi
48721
48722   if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
48723
48724
48725
48726
48727
48728
48729
48730
48731   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
48732
48733
48734   :
48735
48736   fi
48737
48738
48739
48740
48741
48742           GNULIB_READLINK=1
48743
48744
48745
48746
48747
48748 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
48749
48750
48751
48752
48753
48754
48755   if test $gl_cv_func_malloc_posix = yes; then
48756
48757 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
48758
48759   else
48760     REPLACE_REALLOC=1
48761   fi
48762
48763   if test $REPLACE_REALLOC = 1; then
48764
48765
48766
48767
48768
48769
48770
48771
48772   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
48773
48774   fi
48775
48776
48777
48778
48779
48780           GNULIB_REALLOC_POSIX=1
48781
48782
48783
48784
48785
48786 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
48787
48788
48789
48790
48791
48792
48793
48794
48795   : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
48796   RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
48797   RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
48798
48799   if test $RELOCATABLE = yes; then
48800
48801
48802
48803
48804
48805
48806
48807
48808   gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
48809
48810
48811
48812
48813
48814
48815
48816
48817
48818   gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
48819
48820   fi
48821
48822
48823
48824   :
48825
48826
48827
48828
48829
48830
48831
48832
48833
48834
48835
48836
48837
48838
48839
48840
48841
48842
48843
48844   if test $ac_cv_have_decl_setenv = no; then
48845     HAVE_DECL_SETENV=0
48846   fi
48847
48848
48849
48850
48851
48852   for ac_header in search.h
48853 do :
48854   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
48855 if test "x$ac_cv_header_search_h" = xyes; then :
48856   cat >>confdefs.h <<_ACEOF
48857 #define HAVE_SEARCH_H 1
48858 _ACEOF
48859
48860 fi
48861
48862 done
48863
48864   for ac_func in tsearch
48865 do :
48866   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
48867 if test "x$ac_cv_func_tsearch" = xyes; then :
48868   cat >>confdefs.h <<_ACEOF
48869 #define HAVE_TSEARCH 1
48870 _ACEOF
48871
48872 fi
48873 done
48874
48875
48876
48877
48878   relocatable_sh=$ac_aux_dir/relocatable.sh.in
48879
48880
48881
48882
48883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
48884 $as_echo_n "checking whether rmdir works... " >&6; }
48885 if ${gl_cv_func_rmdir_works+:} false; then :
48886   $as_echo_n "(cached) " >&6
48887 else
48888   mkdir conftest.dir
48889      touch conftest.file
48890      if test "$cross_compiling" = yes; then :
48891   case "$host_os" in
48892                   # Guess yes on glibc systems.
48893           *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
48894                   # If we don't know, assume the worst.
48895           *)      gl_cv_func_rmdir_works="guessing no" ;;
48896         esac
48897
48898 else
48899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48900 /* end confdefs.h.  */
48901 #include <stdio.h>
48902            #include <errno.h>
48903            #if HAVE_UNISTD_H
48904            # include <unistd.h>
48905            #else /* on Windows with MSVC */
48906            # include <direct.h>
48907            #endif
48908
48909 int
48910 main ()
48911 {
48912 int result = 0;
48913       if (!rmdir ("conftest.file/"))
48914         result |= 1;
48915       else if (errno != ENOTDIR)
48916         result |= 2;
48917       if (!rmdir ("conftest.dir/./"))
48918         result |= 4;
48919       return result;
48920
48921   ;
48922   return 0;
48923 }
48924 _ACEOF
48925 if ac_fn_c_try_run "$LINENO"; then :
48926   gl_cv_func_rmdir_works=yes
48927 else
48928   gl_cv_func_rmdir_works=no
48929 fi
48930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48931   conftest.$ac_objext conftest.beam conftest.$ac_ext
48932 fi
48933
48934      rm -rf conftest.dir conftest.file
48935 fi
48936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
48937 $as_echo "$gl_cv_func_rmdir_works" >&6; }
48938   case "$gl_cv_func_rmdir_works" in
48939     *yes) ;;
48940     *)
48941       REPLACE_RMDIR=1
48942       ;;
48943   esac
48944
48945   if test $REPLACE_RMDIR = 1; then
48946
48947
48948
48949
48950
48951
48952
48953
48954   gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
48955
48956   fi
48957
48958
48959
48960
48961
48962           GNULIB_RMDIR=1
48963
48964
48965
48966
48967
48968 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
48969
48970
48971
48972
48973
48974
48975
48976
48977
48978
48979
48980
48981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48982 /* end confdefs.h.  */
48983
48984        #include <sched.h>
48985        struct sched_param a;
48986        int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
48987        pid_t t1;
48988
48989 int
48990 main ()
48991 {
48992
48993   ;
48994   return 0;
48995 }
48996 _ACEOF
48997 if ac_fn_c_try_compile "$LINENO"; then :
48998   SCHED_H=''
48999 else
49000   SCHED_H='sched.h'
49001
49002
49003
49004
49005
49006
49007
49008
49009
49010
49011      if test $gl_cv_have_include_next = yes; then
49012        gl_cv_next_sched_h='<'sched.h'>'
49013      else
49014        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
49015 $as_echo_n "checking absolute name of <sched.h>... " >&6; }
49016 if ${gl_cv_next_sched_h+:} false; then :
49017   $as_echo_n "(cached) " >&6
49018 else
49019
49020              if test $ac_cv_header_sched_h = yes; then
49021
49022
49023
49024
49025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49026 /* end confdefs.h.  */
49027 #include <sched.h>
49028 _ACEOF
49029                 case "$host_os" in
49030     aix*) gl_absname_cpp="$ac_cpp -C" ;;
49031     *)    gl_absname_cpp="$ac_cpp" ;;
49032   esac
49033
49034   case "$host_os" in
49035     mingw*)
49036                                           gl_dirsep_regex='[/\\]'
49037       ;;
49038     *)
49039       gl_dirsep_regex='\/'
49040       ;;
49041   esac
49042       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
49043   gl_header_literal_regex=`echo 'sched.h' \
49044                            | sed -e "$gl_make_literal_regex_sed"`
49045   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
49046       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
49047       s|^/[^/]|//&|
49048       p
49049       q
49050     }'
49051
49052         gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49053   sed -n "$gl_absolute_header_sed"`
49054
49055            gl_header=$gl_cv_absolute_sched_h
49056            gl_cv_next_sched_h='"'$gl_header'"'
49057           else
49058                gl_cv_next_sched_h='<'sched.h'>'
49059              fi
49060
49061
49062 fi
49063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
49064 $as_echo "$gl_cv_next_sched_h" >&6; }
49065      fi
49066      NEXT_SCHED_H=$gl_cv_next_sched_h
49067
49068      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49069        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49070        gl_next_as_first_directive='<'sched.h'>'
49071      else
49072        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49073        gl_next_as_first_directive=$gl_cv_next_sched_h
49074      fi
49075      NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
49076
49077
49078
49079
49080
49081      if test $ac_cv_header_sched_h = yes; then
49082        HAVE_SCHED_H=1
49083      else
49084        HAVE_SCHED_H=0
49085      fi
49086
49087
49088      if test "$HAVE_SCHED_H" = 1; then
49089        ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <sched.h>
49090 "
49091 if test "x$ac_cv_type_struct_sched_param" = xyes; then :
49092   HAVE_STRUCT_SCHED_PARAM=1
49093 else
49094   HAVE_STRUCT_SCHED_PARAM=0
49095 fi
49096
49097      else
49098               ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h>
49099 "
49100 if test "x$ac_cv_type_struct_sched_param" = xyes; then :
49101   HAVE_STRUCT_SCHED_PARAM=1
49102 else
49103   HAVE_STRUCT_SCHED_PARAM=0
49104 fi
49105
49106      fi
49107
49108
49109
49110
49111 fi
49112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49113
49114    if test -n "$SCHED_H"; then
49115   GL_GENERATE_SCHED_H_TRUE=
49116   GL_GENERATE_SCHED_H_FALSE='#'
49117 else
49118   GL_GENERATE_SCHED_H_TRUE='#'
49119   GL_GENERATE_SCHED_H_FALSE=
49120 fi
49121
49122
49123
49124
49125
49126
49127
49128   if test $ac_cv_func_secure_getenv = no; then
49129     HAVE_SECURE_GETENV=0
49130   fi
49131
49132   if test $HAVE_SECURE_GETENV = 0; then
49133
49134
49135
49136
49137
49138
49139
49140
49141   gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
49142
49143
49144   for ac_func in __secure_getenv
49145 do :
49146   ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
49147 if test "x$ac_cv_func___secure_getenv" = xyes; then :
49148   cat >>confdefs.h <<_ACEOF
49149 #define HAVE___SECURE_GETENV 1
49150 _ACEOF
49151
49152 fi
49153 done
49154
49155   if test $ac_cv_func___secure_getenv = no; then
49156     for ac_func in issetugid
49157 do :
49158   ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
49159 if test "x$ac_cv_func_issetugid" = xyes; then :
49160   cat >>confdefs.h <<_ACEOF
49161 #define HAVE_ISSETUGID 1
49162 _ACEOF
49163
49164 fi
49165 done
49166
49167   fi
49168
49169   fi
49170
49171
49172
49173
49174
49175           GNULIB_SECURE_GETENV=1
49176
49177
49178
49179
49180
49181 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
49182
49183
49184
49185
49186
49187      if test $ac_cv_func_setenv = no; then
49188     HAVE_SETENV=0
49189   else
49190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
49191 $as_echo_n "checking whether setenv validates arguments... " >&6; }
49192 if ${gl_cv_func_setenv_works+:} false; then :
49193   $as_echo_n "(cached) " >&6
49194 else
49195   if test "$cross_compiling" = yes; then :
49196   case "$host_os" in
49197                  # Guess yes on glibc systems.
49198          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
49199                  # If we don't know, assume the worst.
49200          *)      gl_cv_func_setenv_works="guessing no" ;;
49201        esac
49202
49203 else
49204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49205 /* end confdefs.h.  */
49206
49207        #include <stdlib.h>
49208        #include <errno.h>
49209        #include <string.h>
49210
49211 int
49212 main ()
49213 {
49214
49215        int result = 0;
49216        {
49217          if (setenv ("", "", 0) != -1)
49218            result |= 1;
49219          else if (errno != EINVAL)
49220            result |= 2;
49221        }
49222        {
49223          if (setenv ("a", "=", 1) != 0)
49224            result |= 4;
49225          else if (strcmp (getenv ("a"), "=") != 0)
49226            result |= 8;
49227        }
49228        return result;
49229
49230   ;
49231   return 0;
49232 }
49233 _ACEOF
49234 if ac_fn_c_try_run "$LINENO"; then :
49235   gl_cv_func_setenv_works=yes
49236 else
49237   gl_cv_func_setenv_works=no
49238 fi
49239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49240   conftest.$ac_objext conftest.beam conftest.$ac_ext
49241 fi
49242
49243 fi
49244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
49245 $as_echo "$gl_cv_func_setenv_works" >&6; }
49246     case "$gl_cv_func_setenv_works" in
49247       *yes) ;;
49248       *)
49249         REPLACE_SETENV=1
49250         ;;
49251     esac
49252   fi
49253
49254   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
49255
49256
49257
49258
49259
49260
49261
49262
49263   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
49264
49265   fi
49266
49267
49268
49269
49270
49271           GNULIB_SETENV=1
49272
49273
49274
49275
49276
49277 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
49278
49279
49280
49281
49282
49283
49284   case "$host_os" in
49285             mingw*) REPLACE_SETLOCALE=1 ;;
49286             cygwin*)
49287       case `uname -r` in
49288         1.5.*) REPLACE_SETLOCALE=1 ;;
49289       esac
49290       ;;
49291   esac
49292
49293   if test $REPLACE_SETLOCALE = 1; then
49294
49295
49296
49297
49298
49299
49300
49301
49302   gl_LIBOBJS="$gl_LIBOBJS setlocale.$ac_objext"
49303
49304
49305   :
49306
49307   fi
49308
49309
49310
49311
49312
49313           GNULIB_SETLOCALE=1
49314
49315
49316
49317
49318
49319 $as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
49320
49321
49322
49323
49324
49325
49326   if test $ac_cv_func_sigaction = yes; then
49327     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
49328 "
49329 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
49330
49331 cat >>confdefs.h <<_ACEOF
49332 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
49333 _ACEOF
49334
49335
49336 fi
49337
49338     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
49339       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
49340     fi
49341   else
49342     HAVE_SIGACTION=0
49343   fi
49344
49345   if test $HAVE_SIGACTION = 0; then
49346
49347
49348
49349
49350
49351
49352
49353
49354   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
49355
49356
49357
49358
49359
49360
49361
49362   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
49363 #include <signal.h>
49364
49365 "
49366 if test "x$ac_cv_type_siginfo_t" = xyes; then :
49367
49368 cat >>confdefs.h <<_ACEOF
49369 #define HAVE_SIGINFO_T 1
49370 _ACEOF
49371
49372
49373 fi
49374
49375   if test $ac_cv_type_siginfo_t = no; then
49376     HAVE_SIGINFO_T=0
49377   fi
49378
49379   fi
49380
49381
49382
49383
49384
49385           GNULIB_SIGACTION=1
49386
49387
49388
49389
49390
49391 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
49392
49393
49394
49395
49396
49397
49398
49399
49400
49401
49402
49403
49404
49405
49406      if test $gl_cv_have_include_next = yes; then
49407        gl_cv_next_signal_h='<'signal.h'>'
49408      else
49409        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
49410 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
49411 if ${gl_cv_next_signal_h+:} false; then :
49412   $as_echo_n "(cached) " >&6
49413 else
49414
49415
49416
49417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49418 /* end confdefs.h.  */
49419 #include <signal.h>
49420 _ACEOF
49421                 case "$host_os" in
49422     aix*) gl_absname_cpp="$ac_cpp -C" ;;
49423     *)    gl_absname_cpp="$ac_cpp" ;;
49424   esac
49425
49426   case "$host_os" in
49427     mingw*)
49428                                           gl_dirsep_regex='[/\\]'
49429       ;;
49430     *)
49431       gl_dirsep_regex='\/'
49432       ;;
49433   esac
49434       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
49435   gl_header_literal_regex=`echo 'signal.h' \
49436                            | sed -e "$gl_make_literal_regex_sed"`
49437   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
49438       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
49439       s|^/[^/]|//&|
49440       p
49441       q
49442     }'
49443
49444         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49445   sed -n "$gl_absolute_header_sed"`
49446
49447            gl_header=$gl_cv_absolute_signal_h
49448            gl_cv_next_signal_h='"'$gl_header'"'
49449
49450
49451 fi
49452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
49453 $as_echo "$gl_cv_next_signal_h" >&6; }
49454      fi
49455      NEXT_SIGNAL_H=$gl_cv_next_signal_h
49456
49457      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49458        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49459        gl_next_as_first_directive='<'signal.h'>'
49460      else
49461        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49462        gl_next_as_first_directive=$gl_cv_next_signal_h
49463      fi
49464      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
49465
49466
49467
49468
49469
49470 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
49471 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
49472   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
49473 #include <signal.h>
49474
49475 "
49476 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
49477
49478 else
49479   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
49480 fi
49481
49482
49483
49484
49485
49486
49487
49488   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
49489 #include <signal.h>
49490
49491 "
49492 if test "x$ac_cv_type_sighandler_t" = xyes; then :
49493
49494 else
49495   HAVE_SIGHANDLER_T=0
49496 fi
49497
49498
49499
49500     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
49501     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
49502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
49503 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
49504 if eval \${$as_gl_Symbol+:} false; then :
49505   $as_echo_n "(cached) " >&6
49506 else
49507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49508 /* end confdefs.h.  */
49509 #include <signal.h>
49510
49511 int
49512 main ()
49513 {
49514 #undef $gl_func
49515   (void) $gl_func;
49516   ;
49517   return 0;
49518 }
49519 _ACEOF
49520 if ac_fn_c_try_compile "$LINENO"; then :
49521   eval "$as_gl_Symbol=yes"
49522 else
49523   eval "$as_gl_Symbol=no"
49524 fi
49525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49526 fi
49527 eval ac_res=\$$as_gl_Symbol
49528                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
49529 $as_echo "$ac_res" >&6; }
49530     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
49531   cat >>confdefs.h <<_ACEOF
49532 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
49533 _ACEOF
49534
49535                      eval ac_cv_have_decl_$gl_func=yes
49536 fi
49537       done
49538
49539
49540
49541
49542      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
49543 $as_echo_n "checking for signbit macro... " >&6; }
49544 if ${gl_cv_func_signbit+:} false; then :
49545   $as_echo_n "(cached) " >&6
49546 else
49547
49548       if test "$cross_compiling" = yes; then :
49549   case "$host_os" in
49550                    # Guess yes on glibc systems.
49551            *-gnu*) gl_cv_func_signbit="guessing yes" ;;
49552                    # If we don't know, assume the worst.
49553            *)      gl_cv_func_signbit="guessing no" ;;
49554          esac
49555
49556 else
49557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49558 /* end confdefs.h.  */
49559
49560 #include <math.h>
49561 /* If signbit is defined as a function, don't use it, since calling it for
49562    'float' or 'long double' arguments would involve conversions.
49563    If signbit is not declared at all but exists as a library function, don't
49564    use it, since the prototype may not match.
49565    If signbit is not declared at all but exists as a compiler built-in, don't
49566    use it, since it's preferable to use __builtin_signbit* (no warnings,
49567    no conversions).  */
49568 #ifndef signbit
49569 # error "signbit should be a macro"
49570 #endif
49571 #include <string.h>
49572
49573 /* Global variables.
49574    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
49575    but cannot constant-fold            __builtin_signbitl (variable).  */
49576 float vf;
49577 double vd;
49578 long double vl;
49579 int main ()
49580 {
49581 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
49582    So we use -p0f and -p0d instead.  */
49583 float p0f = 0.0f;
49584 float m0f = -p0f;
49585 double p0d = 0.0;
49586 double m0d = -p0d;
49587 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
49588    So we use another constant expression instead.
49589    But that expression does not work on other platforms, such as when
49590    cross-compiling to PowerPC on Mac OS X 10.5.  */
49591 long double p0l = 0.0L;
49592 #if defined __hpux || defined __sgi
49593 long double m0l = -LDBL_MIN * LDBL_MIN;
49594 #else
49595 long double m0l = -p0l;
49596 #endif
49597   int result = 0;
49598   if (signbit (vf)) /* link check */
49599     vf++;
49600   {
49601     float plus_inf = 1.0f / p0f;
49602     float minus_inf = -1.0f / p0f;
49603     if (!(!signbit (255.0f)
49604           && signbit (-255.0f)
49605           && !signbit (p0f)
49606           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
49607           && !signbit (plus_inf)
49608           && signbit (minus_inf)))
49609       result |= 1;
49610   }
49611   if (signbit (vd)) /* link check */
49612     vd++;
49613   {
49614     double plus_inf = 1.0 / p0d;
49615     double minus_inf = -1.0 / p0d;
49616     if (!(!signbit (255.0)
49617           && signbit (-255.0)
49618           && !signbit (p0d)
49619           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
49620           && !signbit (plus_inf)
49621           && signbit (minus_inf)))
49622       result |= 2;
49623   }
49624   if (signbit (vl)) /* link check */
49625     vl++;
49626   {
49627     long double plus_inf = 1.0L / p0l;
49628     long double minus_inf = -1.0L / p0l;
49629     if (signbit (255.0L))
49630       result |= 4;
49631     if (!signbit (-255.0L))
49632       result |= 4;
49633     if (signbit (p0l))
49634       result |= 8;
49635     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
49636       result |= 16;
49637     if (signbit (plus_inf))
49638       result |= 32;
49639     if (!signbit (minus_inf))
49640       result |= 64;
49641   }
49642   return result;
49643 }
49644
49645
49646 _ACEOF
49647 if ac_fn_c_try_run "$LINENO"; then :
49648   gl_cv_func_signbit=yes
49649 else
49650   gl_cv_func_signbit=no
49651 fi
49652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49653   conftest.$ac_objext conftest.beam conftest.$ac_ext
49654 fi
49655
49656
49657 fi
49658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
49659 $as_echo "$gl_cv_func_signbit" >&6; }
49660           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
49661 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
49662 if ${gl_cv_func_signbit_gcc+:} false; then :
49663   $as_echo_n "(cached) " >&6
49664 else
49665
49666       if test "$cross_compiling" = yes; then :
49667   case "$host_os" in
49668                    # Guess yes on glibc systems.
49669            *-gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
49670                    # If we don't know, assume the worst.
49671            *)      gl_cv_func_signbit_gcc="guessing no" ;;
49672          esac
49673
49674 else
49675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49676 /* end confdefs.h.  */
49677
49678 #if __GNUC__ >= 4
49679 # define signbit(x) \
49680    (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
49681     sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
49682     __builtin_signbitf (x))
49683 #else
49684 # error "signbit should be three compiler built-ins"
49685 #endif
49686 #include <string.h>
49687
49688 /* Global variables.
49689    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
49690    but cannot constant-fold            __builtin_signbitl (variable).  */
49691 float vf;
49692 double vd;
49693 long double vl;
49694 int main ()
49695 {
49696 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
49697    So we use -p0f and -p0d instead.  */
49698 float p0f = 0.0f;
49699 float m0f = -p0f;
49700 double p0d = 0.0;
49701 double m0d = -p0d;
49702 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
49703    So we use another constant expression instead.
49704    But that expression does not work on other platforms, such as when
49705    cross-compiling to PowerPC on Mac OS X 10.5.  */
49706 long double p0l = 0.0L;
49707 #if defined __hpux || defined __sgi
49708 long double m0l = -LDBL_MIN * LDBL_MIN;
49709 #else
49710 long double m0l = -p0l;
49711 #endif
49712   int result = 0;
49713   if (signbit (vf)) /* link check */
49714     vf++;
49715   {
49716     float plus_inf = 1.0f / p0f;
49717     float minus_inf = -1.0f / p0f;
49718     if (!(!signbit (255.0f)
49719           && signbit (-255.0f)
49720           && !signbit (p0f)
49721           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
49722           && !signbit (plus_inf)
49723           && signbit (minus_inf)))
49724       result |= 1;
49725   }
49726   if (signbit (vd)) /* link check */
49727     vd++;
49728   {
49729     double plus_inf = 1.0 / p0d;
49730     double minus_inf = -1.0 / p0d;
49731     if (!(!signbit (255.0)
49732           && signbit (-255.0)
49733           && !signbit (p0d)
49734           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
49735           && !signbit (plus_inf)
49736           && signbit (minus_inf)))
49737       result |= 2;
49738   }
49739   if (signbit (vl)) /* link check */
49740     vl++;
49741   {
49742     long double plus_inf = 1.0L / p0l;
49743     long double minus_inf = -1.0L / p0l;
49744     if (signbit (255.0L))
49745       result |= 4;
49746     if (!signbit (-255.0L))
49747       result |= 4;
49748     if (signbit (p0l))
49749       result |= 8;
49750     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
49751       result |= 16;
49752     if (signbit (plus_inf))
49753       result |= 32;
49754     if (!signbit (minus_inf))
49755       result |= 64;
49756   }
49757   return result;
49758 }
49759
49760
49761 _ACEOF
49762 if ac_fn_c_try_run "$LINENO"; then :
49763   gl_cv_func_signbit_gcc=yes
49764 else
49765   gl_cv_func_signbit_gcc=no
49766 fi
49767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49768   conftest.$ac_objext conftest.beam conftest.$ac_ext
49769 fi
49770
49771
49772 fi
49773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
49774 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
49775       case "$gl_cv_func_signbit_gcc" in
49776     *yes)
49777       REPLACE_SIGNBIT_USING_GCC=1
49778       ;;
49779     *)
49780       case "$gl_cv_func_signbit" in
49781         *yes) ;;
49782         *)
49783                     REPLACE_SIGNBIT=1
49784
49785
49786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
49787 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
49788 if ${gl_cv_cc_float_signbit+:} false; then :
49789   $as_echo_n "(cached) " >&6
49790 else
49791
49792       if test "$cross_compiling" = yes; then :
49793
49794                               gl_cv_cc_float_signbit="unknown"
49795
49796 else
49797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49798 /* end confdefs.h.  */
49799
49800 #include <stddef.h>
49801 #include <stdio.h>
49802 #define NWORDS \
49803   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
49804 typedef union { float value; unsigned int word[NWORDS]; }
49805         memory_float;
49806 static memory_float plus = { 1.0f };
49807 static memory_float minus = { -1.0f };
49808 int main ()
49809 {
49810   size_t j, k, i;
49811   unsigned int m;
49812   FILE *fp = fopen ("conftest.out", "w");
49813   if (fp == NULL)
49814     return 1;
49815   /* Find the different bit.  */
49816   k = 0; m = 0;
49817   for (j = 0; j < NWORDS; j++)
49818     {
49819       unsigned int x = plus.word[j] ^ minus.word[j];
49820       if ((x & (x - 1)) || (x && m))
49821         {
49822           /* More than one bit difference.  */
49823           fprintf (fp, "unknown");
49824           return 2;
49825         }
49826       if (x)
49827         {
49828           k = j;
49829           m = x;
49830         }
49831     }
49832   if (m == 0)
49833     {
49834       /* No difference.  */
49835       fprintf (fp, "unknown");
49836       return 3;
49837     }
49838   /* Now m = plus.word[k] ^ ~minus.word[k].  */
49839   if (plus.word[k] & ~minus.word[k])
49840     {
49841       /* Oh? The sign bit is set in the positive and cleared in the negative
49842          numbers?  */
49843       fprintf (fp, "unknown");
49844       return 4;
49845     }
49846   for (i = 0; ; i++)
49847     if ((m >> i) & 1)
49848       break;
49849   fprintf (fp, "word %d bit %d", (int) k, (int) i);
49850   if (fclose (fp) != 0)
49851     return 5;
49852   return 0;
49853 }
49854
49855 _ACEOF
49856 if ac_fn_c_try_run "$LINENO"; then :
49857   gl_cv_cc_float_signbit=`cat conftest.out`
49858 else
49859   gl_cv_cc_float_signbit="unknown"
49860 fi
49861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49862   conftest.$ac_objext conftest.beam conftest.$ac_ext
49863 fi
49864
49865       rm -f conftest.out
49866
49867 fi
49868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
49869 $as_echo "$gl_cv_cc_float_signbit" >&6; }
49870   case "$gl_cv_cc_float_signbit" in
49871     word*bit*)
49872       word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
49873       bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
49874
49875 cat >>confdefs.h <<_ACEOF
49876 #define FLT_SIGNBIT_WORD $word
49877 _ACEOF
49878
49879
49880 cat >>confdefs.h <<_ACEOF
49881 #define FLT_SIGNBIT_BIT $bit
49882 _ACEOF
49883
49884       ;;
49885   esac
49886
49887
49888
49889
49890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
49891 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
49892 if ${gl_cv_cc_double_signbit+:} false; then :
49893   $as_echo_n "(cached) " >&6
49894 else
49895
49896       if test "$cross_compiling" = yes; then :
49897
49898                               gl_cv_cc_double_signbit="unknown"
49899
49900 else
49901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49902 /* end confdefs.h.  */
49903
49904 #include <stddef.h>
49905 #include <stdio.h>
49906 #define NWORDS \
49907   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
49908 typedef union { double value; unsigned int word[NWORDS]; }
49909         memory_float;
49910 static memory_float plus = { 1.0 };
49911 static memory_float minus = { -1.0 };
49912 int main ()
49913 {
49914   size_t j, k, i;
49915   unsigned int m;
49916   FILE *fp = fopen ("conftest.out", "w");
49917   if (fp == NULL)
49918     return 1;
49919   /* Find the different bit.  */
49920   k = 0; m = 0;
49921   for (j = 0; j < NWORDS; j++)
49922     {
49923       unsigned int x = plus.word[j] ^ minus.word[j];
49924       if ((x & (x - 1)) || (x && m))
49925         {
49926           /* More than one bit difference.  */
49927           fprintf (fp, "unknown");
49928           return 2;
49929         }
49930       if (x)
49931         {
49932           k = j;
49933           m = x;
49934         }
49935     }
49936   if (m == 0)
49937     {
49938       /* No difference.  */
49939       fprintf (fp, "unknown");
49940       return 3;
49941     }
49942   /* Now m = plus.word[k] ^ ~minus.word[k].  */
49943   if (plus.word[k] & ~minus.word[k])
49944     {
49945       /* Oh? The sign bit is set in the positive and cleared in the negative
49946          numbers?  */
49947       fprintf (fp, "unknown");
49948       return 4;
49949     }
49950   for (i = 0; ; i++)
49951     if ((m >> i) & 1)
49952       break;
49953   fprintf (fp, "word %d bit %d", (int) k, (int) i);
49954   if (fclose (fp) != 0)
49955     return 5;
49956   return 0;
49957 }
49958
49959 _ACEOF
49960 if ac_fn_c_try_run "$LINENO"; then :
49961   gl_cv_cc_double_signbit=`cat conftest.out`
49962 else
49963   gl_cv_cc_double_signbit="unknown"
49964 fi
49965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49966   conftest.$ac_objext conftest.beam conftest.$ac_ext
49967 fi
49968
49969       rm -f conftest.out
49970
49971 fi
49972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
49973 $as_echo "$gl_cv_cc_double_signbit" >&6; }
49974   case "$gl_cv_cc_double_signbit" in
49975     word*bit*)
49976       word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
49977       bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
49978
49979 cat >>confdefs.h <<_ACEOF
49980 #define DBL_SIGNBIT_WORD $word
49981 _ACEOF
49982
49983
49984 cat >>confdefs.h <<_ACEOF
49985 #define DBL_SIGNBIT_BIT $bit
49986 _ACEOF
49987
49988       ;;
49989   esac
49990
49991
49992
49993
49994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
49995 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
49996 if ${gl_cv_cc_long_double_signbit+:} false; then :
49997   $as_echo_n "(cached) " >&6
49998 else
49999
50000       if test "$cross_compiling" = yes; then :
50001
50002                               gl_cv_cc_long_double_signbit="unknown"
50003
50004 else
50005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50006 /* end confdefs.h.  */
50007
50008 #include <stddef.h>
50009 #include <stdio.h>
50010 #define NWORDS \
50011   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
50012 typedef union { long double value; unsigned int word[NWORDS]; }
50013         memory_float;
50014 static memory_float plus = { 1.0L };
50015 static memory_float minus = { -1.0L };
50016 int main ()
50017 {
50018   size_t j, k, i;
50019   unsigned int m;
50020   FILE *fp = fopen ("conftest.out", "w");
50021   if (fp == NULL)
50022     return 1;
50023   /* Find the different bit.  */
50024   k = 0; m = 0;
50025   for (j = 0; j < NWORDS; j++)
50026     {
50027       unsigned int x = plus.word[j] ^ minus.word[j];
50028       if ((x & (x - 1)) || (x && m))
50029         {
50030           /* More than one bit difference.  */
50031           fprintf (fp, "unknown");
50032           return 2;
50033         }
50034       if (x)
50035         {
50036           k = j;
50037           m = x;
50038         }
50039     }
50040   if (m == 0)
50041     {
50042       /* No difference.  */
50043       fprintf (fp, "unknown");
50044       return 3;
50045     }
50046   /* Now m = plus.word[k] ^ ~minus.word[k].  */
50047   if (plus.word[k] & ~minus.word[k])
50048     {
50049       /* Oh? The sign bit is set in the positive and cleared in the negative
50050          numbers?  */
50051       fprintf (fp, "unknown");
50052       return 4;
50053     }
50054   for (i = 0; ; i++)
50055     if ((m >> i) & 1)
50056       break;
50057   fprintf (fp, "word %d bit %d", (int) k, (int) i);
50058   if (fclose (fp) != 0)
50059     return 5;
50060   return 0;
50061 }
50062
50063 _ACEOF
50064 if ac_fn_c_try_run "$LINENO"; then :
50065   gl_cv_cc_long_double_signbit=`cat conftest.out`
50066 else
50067   gl_cv_cc_long_double_signbit="unknown"
50068 fi
50069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50070   conftest.$ac_objext conftest.beam conftest.$ac_ext
50071 fi
50072
50073       rm -f conftest.out
50074
50075 fi
50076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
50077 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
50078   case "$gl_cv_cc_long_double_signbit" in
50079     word*bit*)
50080       word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
50081       bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
50082
50083 cat >>confdefs.h <<_ACEOF
50084 #define LDBL_SIGNBIT_WORD $word
50085 _ACEOF
50086
50087
50088 cat >>confdefs.h <<_ACEOF
50089 #define LDBL_SIGNBIT_BIT $bit
50090 _ACEOF
50091
50092       ;;
50093   esac
50094
50095
50096           if test "$gl_cv_cc_float_signbit" = unknown; then
50097                         ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
50098 "
50099 if test "x$ac_cv_have_decl_copysignf" = xyes; then :
50100   ac_have_decl=1
50101 else
50102   ac_have_decl=0
50103 fi
50104
50105 cat >>confdefs.h <<_ACEOF
50106 #define HAVE_DECL_COPYSIGNF $ac_have_decl
50107 _ACEOF
50108
50109             if test "$ac_cv_have_decl_copysignf" = yes; then
50110                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
50111 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
50112 if ${gl_cv_func_copysignf_no_libm+:} false; then :
50113   $as_echo_n "(cached) " >&6
50114 else
50115
50116                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50117 /* end confdefs.h.  */
50118 #include <math.h>
50119                          float x, y;
50120 int
50121 main ()
50122 {
50123 return copysignf (x, y) < 0;
50124   ;
50125   return 0;
50126 }
50127 _ACEOF
50128 if ac_fn_c_try_link "$LINENO"; then :
50129   gl_cv_func_copysignf_no_libm=yes
50130 else
50131   gl_cv_func_copysignf_no_libm=no
50132 fi
50133 rm -f core conftest.err conftest.$ac_objext \
50134     conftest$ac_exeext conftest.$ac_ext
50135
50136 fi
50137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
50138 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
50139               if test $gl_cv_func_copysignf_no_libm = yes; then
50140
50141 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
50142
50143               fi
50144             fi
50145           fi
50146           if test "$gl_cv_cc_double_signbit" = unknown; then
50147                         ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
50148 "
50149 if test "x$ac_cv_have_decl_copysign" = xyes; then :
50150   ac_have_decl=1
50151 else
50152   ac_have_decl=0
50153 fi
50154
50155 cat >>confdefs.h <<_ACEOF
50156 #define HAVE_DECL_COPYSIGN $ac_have_decl
50157 _ACEOF
50158
50159             if test "$ac_cv_have_decl_copysign" = yes; then
50160                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
50161 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
50162 if ${gl_cv_func_copysign_no_libm+:} false; then :
50163   $as_echo_n "(cached) " >&6
50164 else
50165
50166                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50167 /* end confdefs.h.  */
50168 #include <math.h>
50169                          double x, y;
50170 int
50171 main ()
50172 {
50173 return copysign (x, y) < 0;
50174   ;
50175   return 0;
50176 }
50177 _ACEOF
50178 if ac_fn_c_try_link "$LINENO"; then :
50179   gl_cv_func_copysign_no_libm=yes
50180 else
50181   gl_cv_func_copysign_no_libm=no
50182 fi
50183 rm -f core conftest.err conftest.$ac_objext \
50184     conftest$ac_exeext conftest.$ac_ext
50185
50186 fi
50187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
50188 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
50189               if test $gl_cv_func_copysign_no_libm = yes; then
50190
50191 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
50192
50193               fi
50194             fi
50195           fi
50196           if test "$gl_cv_cc_long_double_signbit" = unknown; then
50197                         ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
50198 "
50199 if test "x$ac_cv_have_decl_copysignl" = xyes; then :
50200   ac_have_decl=1
50201 else
50202   ac_have_decl=0
50203 fi
50204
50205 cat >>confdefs.h <<_ACEOF
50206 #define HAVE_DECL_COPYSIGNL $ac_have_decl
50207 _ACEOF
50208
50209             if test "$ac_cv_have_decl_copysignl" = yes; then
50210                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
50211 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
50212 if ${gl_cv_func_copysignl_no_libm+:} false; then :
50213   $as_echo_n "(cached) " >&6
50214 else
50215
50216                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50217 /* end confdefs.h.  */
50218 #include <math.h>
50219                          long double x, y;
50220 int
50221 main ()
50222 {
50223 return copysignl (x, y) < 0;
50224   ;
50225   return 0;
50226 }
50227 _ACEOF
50228 if ac_fn_c_try_link "$LINENO"; then :
50229   gl_cv_func_copysignl_no_libm=yes
50230 else
50231   gl_cv_func_copysignl_no_libm=no
50232 fi
50233 rm -f core conftest.err conftest.$ac_objext \
50234     conftest$ac_exeext conftest.$ac_ext
50235
50236 fi
50237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
50238 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
50239               if test $gl_cv_func_copysignl_no_libm = yes; then
50240
50241 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
50242
50243               fi
50244             fi
50245           fi
50246           ;;
50247       esac
50248       ;;
50249   esac
50250
50251   if test $REPLACE_SIGNBIT = 1; then
50252
50253
50254
50255
50256
50257
50258
50259
50260   gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
50261
50262
50263
50264
50265
50266
50267
50268
50269
50270   gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
50271
50272
50273
50274
50275
50276
50277
50278
50279
50280   gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
50281
50282   fi
50283
50284
50285
50286
50287
50288           GNULIB_SIGNBIT=1
50289
50290
50291
50292
50293
50294 $as_echo "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
50295
50296
50297
50298
50299
50300
50301
50302
50303 cat >>confdefs.h <<_ACEOF
50304 #define GNULIB_SIGPIPE 1
50305 _ACEOF
50306
50307
50308
50309   GNULIB_SIGNAL_H_SIGPIPE=1
50310
50311
50312   GNULIB_STDIO_H_SIGPIPE=1
50313
50314   GNULIB_UNISTD_H_SIGPIPE=1
50315
50316
50317
50318   if test $gl_cv_type_sigset_t = yes; then
50319     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
50320 if test "x$ac_cv_func_sigprocmask" = xyes; then :
50321   gl_cv_func_sigprocmask=1
50322 fi
50323
50324   fi
50325   if test -z "$gl_cv_func_sigprocmask"; then
50326     HAVE_POSIX_SIGNALBLOCKING=0
50327   fi
50328
50329   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
50330
50331
50332
50333
50334
50335
50336
50337
50338   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
50339
50340     :
50341   fi
50342
50343
50344
50345
50346
50347           GNULIB_SIGPROCMASK=1
50348
50349
50350
50351
50352
50353 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
50354
50355
50356
50357
50358   for ac_header in stdint.h
50359 do :
50360   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
50361 if test "x$ac_cv_header_stdint_h" = xyes; then :
50362   cat >>confdefs.h <<_ACEOF
50363 #define HAVE_STDINT_H 1
50364 _ACEOF
50365
50366 fi
50367
50368 done
50369
50370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
50371 $as_echo_n "checking for SIZE_MAX... " >&6; }
50372 if ${gl_cv_size_max+:} false; then :
50373   $as_echo_n "(cached) " >&6
50374 else
50375
50376     gl_cv_size_max=
50377     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50378 /* end confdefs.h.  */
50379
50380 #include <limits.h>
50381 #if HAVE_STDINT_H
50382 #include <stdint.h>
50383 #endif
50384 #ifdef SIZE_MAX
50385 Found it
50386 #endif
50387
50388 _ACEOF
50389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50390   $EGREP "Found it" >/dev/null 2>&1; then :
50391   gl_cv_size_max=yes
50392 fi
50393 rm -f conftest*
50394
50395     if test -z "$gl_cv_size_max"; then
50396                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
50397 #include <limits.h>"; then :
50398
50399 else
50400   size_t_bits_minus_1=
50401 fi
50402
50403       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
50404
50405 else
50406   fits_in_uint=
50407 fi
50408
50409       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
50410         if test $fits_in_uint = 1; then
50411                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50412 /* end confdefs.h.  */
50413 #include <stddef.h>
50414                  extern size_t foo;
50415                  extern unsigned long foo;
50416
50417 int
50418 main ()
50419 {
50420
50421   ;
50422   return 0;
50423 }
50424 _ACEOF
50425 if ac_fn_c_try_compile "$LINENO"; then :
50426   fits_in_uint=0
50427 fi
50428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50429         fi
50430                                 if test $fits_in_uint = 1; then
50431           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
50432         else
50433           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
50434         fi
50435       else
50436                 gl_cv_size_max='((size_t)~(size_t)0)'
50437       fi
50438     fi
50439
50440 fi
50441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
50442 $as_echo "$gl_cv_size_max" >&6; }
50443   if test "$gl_cv_size_max" != yes; then
50444
50445 cat >>confdefs.h <<_ACEOF
50446 #define SIZE_MAX $gl_cv_size_max
50447 _ACEOF
50448
50449   fi
50450
50451
50452
50453
50454   gl_cv_func_snprintf_usable=no
50455   for ac_func in snprintf
50456 do :
50457   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
50458 if test "x$ac_cv_func_snprintf" = xyes; then :
50459   cat >>confdefs.h <<_ACEOF
50460 #define HAVE_SNPRINTF 1
50461 _ACEOF
50462
50463 fi
50464 done
50465
50466   if test $ac_cv_func_snprintf = yes; then
50467
50468
50469
50470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
50471 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
50472 if ${gl_cv_func_snprintf_size1+:} false; then :
50473   $as_echo_n "(cached) " >&6
50474 else
50475
50476       if test "$cross_compiling" = yes; then :
50477   gl_cv_func_snprintf_size1="guessing yes"
50478 else
50479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50480 /* end confdefs.h.  */
50481
50482 #include <stdio.h>
50483 #if HAVE_SNPRINTF
50484 # define my_snprintf snprintf
50485 #else
50486 # include <stdarg.h>
50487 static int my_snprintf (char *buf, int size, const char *format, ...)
50488 {
50489   va_list args;
50490   int ret;
50491   va_start (args, format);
50492   ret = vsnprintf (buf, size, format, args);
50493   va_end (args);
50494   return ret;
50495 }
50496 #endif
50497 int main()
50498 {
50499   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
50500   my_snprintf (buf, 1, "%d", 12345);
50501   return buf[1] != 'E';
50502 }
50503 _ACEOF
50504 if ac_fn_c_try_run "$LINENO"; then :
50505   gl_cv_func_snprintf_size1=yes
50506 else
50507   gl_cv_func_snprintf_size1=no
50508 fi
50509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50510   conftest.$ac_objext conftest.beam conftest.$ac_ext
50511 fi
50512
50513
50514 fi
50515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
50516 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
50517
50518     case "$gl_cv_func_snprintf_size1" in
50519       *yes)
50520
50521         case "$gl_cv_func_snprintf_retval_c99" in
50522           *yes)
50523
50524
50525      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
50526 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
50527 if ${gl_cv_func_printf_positions+:} false; then :
50528   $as_echo_n "(cached) " >&6
50529 else
50530
50531       if test "$cross_compiling" = yes; then :
50532
50533          case "$host_os" in
50534            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
50535                          gl_cv_func_printf_positions="guessing no";;
50536            beos*)        gl_cv_func_printf_positions="guessing no";;
50537            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
50538            *)            gl_cv_func_printf_positions="guessing yes";;
50539          esac
50540
50541 else
50542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50543 /* end confdefs.h.  */
50544
50545 #include <stdio.h>
50546 #include <string.h>
50547 /* The string "%2$d %1$d", with dollar characters protected from the shell's
50548    dollar expansion (possibly an autoconf bug).  */
50549 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
50550 static char buf[100];
50551 int main ()
50552 {
50553   sprintf (buf, format, 33, 55);
50554   return (strcmp (buf, "55 33") != 0);
50555 }
50556 _ACEOF
50557 if ac_fn_c_try_run "$LINENO"; then :
50558   gl_cv_func_printf_positions=yes
50559 else
50560   gl_cv_func_printf_positions=no
50561 fi
50562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50563   conftest.$ac_objext conftest.beam conftest.$ac_ext
50564 fi
50565
50566
50567 fi
50568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
50569 $as_echo "$gl_cv_func_printf_positions" >&6; }
50570
50571             case "$gl_cv_func_printf_positions" in
50572               *yes)
50573                 gl_cv_func_snprintf_usable=yes
50574                 ;;
50575             esac
50576             ;;
50577         esac
50578         ;;
50579     esac
50580   fi
50581   if test $gl_cv_func_snprintf_usable = no; then
50582
50583
50584
50585
50586
50587
50588
50589
50590
50591
50592   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
50593
50594   if test $ac_cv_func_snprintf = yes; then
50595     REPLACE_SNPRINTF=1
50596   fi
50597   :
50598
50599   fi
50600
50601   if test $ac_cv_have_decl_snprintf = no; then
50602     HAVE_DECL_SNPRINTF=0
50603   fi
50604
50605
50606
50607
50608
50609
50610           GNULIB_SNPRINTF=1
50611
50612
50613
50614
50615
50616 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
50617
50618
50619
50620
50621
50622 cat >>confdefs.h <<_ACEOF
50623 #define GNULIB_SNPRINTF 1
50624 _ACEOF
50625
50626
50627
50628
50629
50630
50631
50632
50633
50634
50635
50636
50637
50638
50639      if test $gl_cv_have_include_next = yes; then
50640        gl_cv_next_spawn_h='<'spawn.h'>'
50641      else
50642        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <spawn.h>" >&5
50643 $as_echo_n "checking absolute name of <spawn.h>... " >&6; }
50644 if ${gl_cv_next_spawn_h+:} false; then :
50645   $as_echo_n "(cached) " >&6
50646 else
50647
50648              if test $ac_cv_header_spawn_h = yes; then
50649
50650
50651
50652
50653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50654 /* end confdefs.h.  */
50655 #include <spawn.h>
50656 _ACEOF
50657                 case "$host_os" in
50658     aix*) gl_absname_cpp="$ac_cpp -C" ;;
50659     *)    gl_absname_cpp="$ac_cpp" ;;
50660   esac
50661
50662   case "$host_os" in
50663     mingw*)
50664                                           gl_dirsep_regex='[/\\]'
50665       ;;
50666     *)
50667       gl_dirsep_regex='\/'
50668       ;;
50669   esac
50670       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
50671   gl_header_literal_regex=`echo 'spawn.h' \
50672                            | sed -e "$gl_make_literal_regex_sed"`
50673   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
50674       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
50675       s|^/[^/]|//&|
50676       p
50677       q
50678     }'
50679
50680         gl_cv_absolute_spawn_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50681   sed -n "$gl_absolute_header_sed"`
50682
50683            gl_header=$gl_cv_absolute_spawn_h
50684            gl_cv_next_spawn_h='"'$gl_header'"'
50685           else
50686                gl_cv_next_spawn_h='<'spawn.h'>'
50687              fi
50688
50689
50690 fi
50691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_spawn_h" >&5
50692 $as_echo "$gl_cv_next_spawn_h" >&6; }
50693      fi
50694      NEXT_SPAWN_H=$gl_cv_next_spawn_h
50695
50696      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50697        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50698        gl_next_as_first_directive='<'spawn.h'>'
50699      else
50700        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50701        gl_next_as_first_directive=$gl_cv_next_spawn_h
50702      fi
50703      NEXT_AS_FIRST_DIRECTIVE_SPAWN_H=$gl_next_as_first_directive
50704
50705
50706
50707
50708
50709   if test $ac_cv_header_spawn_h = yes; then
50710     HAVE_SPAWN_H=1
50711     ac_fn_c_check_type "$LINENO" "posix_spawnattr_t" "ac_cv_type_posix_spawnattr_t" "
50712 #include <spawn.h>
50713
50714 "
50715 if test "x$ac_cv_type_posix_spawnattr_t" = xyes; then :
50716
50717 cat >>confdefs.h <<_ACEOF
50718 #define HAVE_POSIX_SPAWNATTR_T 1
50719 _ACEOF
50720
50721
50722 else
50723   HAVE_POSIX_SPAWNATTR_T=0
50724 fi
50725
50726     ac_fn_c_check_type "$LINENO" "posix_spawn_file_actions_t" "ac_cv_type_posix_spawn_file_actions_t" "
50727 #include <spawn.h>
50728
50729 "
50730 if test "x$ac_cv_type_posix_spawn_file_actions_t" = xyes; then :
50731
50732 cat >>confdefs.h <<_ACEOF
50733 #define HAVE_POSIX_SPAWN_FILE_ACTIONS_T 1
50734 _ACEOF
50735
50736
50737 else
50738   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
50739 fi
50740
50741   else
50742     HAVE_SPAWN_H=0
50743     HAVE_POSIX_SPAWNATTR_T=0
50744     HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
50745   fi
50746
50747
50748
50749
50750
50751
50752
50753
50754
50755
50756
50757     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
50758     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
50760 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50761 if eval \${$as_gl_Symbol+:} false; then :
50762   $as_echo_n "(cached) " >&6
50763 else
50764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50765 /* end confdefs.h.  */
50766 #include <spawn.h>
50767
50768 int
50769 main ()
50770 {
50771 #undef $gl_func
50772   (void) $gl_func;
50773   ;
50774   return 0;
50775 }
50776 _ACEOF
50777 if ac_fn_c_try_compile "$LINENO"; then :
50778   eval "$as_gl_Symbol=yes"
50779 else
50780   eval "$as_gl_Symbol=no"
50781 fi
50782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50783 fi
50784 eval ac_res=\$$as_gl_Symbol
50785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50786 $as_echo "$ac_res" >&6; }
50787     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
50788   cat >>confdefs.h <<_ACEOF
50789 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
50790 _ACEOF
50791
50792                      eval ac_cv_have_decl_$gl_func=yes
50793 fi
50794       done
50795
50796
50797
50798
50799
50800
50801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
50802 $as_echo_n "checking for ssize_t... " >&6; }
50803 if ${gt_cv_ssize_t+:} false; then :
50804   $as_echo_n "(cached) " >&6
50805 else
50806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50807 /* end confdefs.h.  */
50808 #include <sys/types.h>
50809 int
50810 main ()
50811 {
50812 int x = sizeof (ssize_t *) + sizeof (ssize_t);
50813             return !x;
50814   ;
50815   return 0;
50816 }
50817 _ACEOF
50818 if ac_fn_c_try_compile "$LINENO"; then :
50819   gt_cv_ssize_t=yes
50820 else
50821   gt_cv_ssize_t=no
50822 fi
50823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50824 fi
50825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
50826 $as_echo "$gt_cv_ssize_t" >&6; }
50827   if test $gt_cv_ssize_t = no; then
50828
50829 $as_echo "#define ssize_t int" >>confdefs.h
50830
50831   fi
50832
50833
50834
50835
50836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
50837 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
50838 if ${gl_cv_func_stat_dir_slash+:} false; then :
50839   $as_echo_n "(cached) " >&6
50840 else
50841   if test "$cross_compiling" = yes; then :
50842   case $host_os in
50843             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
50844             *) gl_cv_func_stat_dir_slash="guessing yes";;
50845           esac
50846 else
50847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50848 /* end confdefs.h.  */
50849 #include <sys/stat.h>
50850
50851 int
50852 main ()
50853 {
50854 struct stat st; return stat (".", &st) != stat ("./", &st);
50855   ;
50856   return 0;
50857 }
50858 _ACEOF
50859 if ac_fn_c_try_run "$LINENO"; then :
50860   gl_cv_func_stat_dir_slash=yes
50861 else
50862   gl_cv_func_stat_dir_slash=no
50863 fi
50864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50865   conftest.$ac_objext conftest.beam conftest.$ac_ext
50866 fi
50867
50868 fi
50869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
50870 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
50871         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
50872 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
50873 if ${gl_cv_func_stat_file_slash+:} false; then :
50874   $as_echo_n "(cached) " >&6
50875 else
50876   touch conftest.tmp
50877        # Assume that if we have lstat, we can also check symlinks.
50878        if test $ac_cv_func_lstat = yes; then
50879          ln -s conftest.tmp conftest.lnk
50880        fi
50881        if test "$cross_compiling" = yes; then :
50882   case "$host_os" in
50883                     # Guess yes on glibc systems.
50884             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
50885                     # If we don't know, assume the worst.
50886             *)      gl_cv_func_stat_file_slash="guessing no" ;;
50887           esac
50888
50889 else
50890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50891 /* end confdefs.h.  */
50892 #include <sys/stat.h>
50893
50894 int
50895 main ()
50896 {
50897 int result = 0;
50898       struct stat st;
50899       if (!stat ("conftest.tmp/", &st))
50900         result |= 1;
50901 #if HAVE_LSTAT
50902       if (!stat ("conftest.lnk/", &st))
50903         result |= 2;
50904 #endif
50905       return result;
50906
50907   ;
50908   return 0;
50909 }
50910 _ACEOF
50911 if ac_fn_c_try_run "$LINENO"; then :
50912   gl_cv_func_stat_file_slash=yes
50913 else
50914   gl_cv_func_stat_file_slash=no
50915 fi
50916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50917   conftest.$ac_objext conftest.beam conftest.$ac_ext
50918 fi
50919
50920        rm -f conftest.tmp conftest.lnk
50921 fi
50922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
50923 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
50924   case $gl_cv_func_stat_dir_slash in
50925     *no) REPLACE_STAT=1
50926
50927 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
50928 ;;
50929   esac
50930   case $gl_cv_func_stat_file_slash in
50931     *no) REPLACE_STAT=1
50932
50933 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
50934 ;;
50935   esac
50936
50937   if test $REPLACE_STAT = 1; then
50938
50939
50940
50941
50942
50943
50944
50945
50946   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
50947
50948     :
50949   fi
50950
50951
50952
50953
50954
50955           GNULIB_STAT=1
50956
50957
50958
50959
50960
50961 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
50962
50963
50964
50965
50966   STDARG_H=''
50967   NEXT_STDARG_H='<stdarg.h>'
50968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
50969 $as_echo_n "checking for va_copy... " >&6; }
50970   if ${gl_cv_func_va_copy+:} false; then :
50971   $as_echo_n "(cached) " >&6
50972 else
50973
50974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50975 /* end confdefs.h.  */
50976 #include <stdarg.h>
50977 int
50978 main ()
50979 {
50980
50981 #ifndef va_copy
50982 void (*func) (va_list, va_list) = va_copy;
50983 #endif
50984
50985   ;
50986   return 0;
50987 }
50988 _ACEOF
50989 if ac_fn_c_try_compile "$LINENO"; then :
50990   gl_cv_func_va_copy=yes
50991 else
50992   gl_cv_func_va_copy=no
50993 fi
50994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50995 fi
50996
50997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
50998 $as_echo "$gl_cv_func_va_copy" >&6; }
50999   if test $gl_cv_func_va_copy = no; then
51000                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51001 /* end confdefs.h.  */
51002 #if defined _AIX && !defined __GNUC__
51003         AIX vaccine
51004        #endif
51005
51006 _ACEOF
51007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51008   $EGREP "vaccine" >/dev/null 2>&1; then :
51009   gl_aixcc=yes
51010 else
51011   gl_aixcc=no
51012 fi
51013 rm -f conftest*
51014
51015     if test $gl_aixcc = yes; then
51016             STDARG_H=stdarg.h
51017
51018
51019
51020
51021
51022
51023
51024
51025      if test $gl_cv_have_include_next = yes; then
51026        gl_cv_next_stdarg_h='<'stdarg.h'>'
51027      else
51028        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
51029 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
51030 if ${gl_cv_next_stdarg_h+:} false; then :
51031   $as_echo_n "(cached) " >&6
51032 else
51033
51034
51035
51036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51037 /* end confdefs.h.  */
51038 #include <stdarg.h>
51039 _ACEOF
51040                 case "$host_os" in
51041     aix*) gl_absname_cpp="$ac_cpp -C" ;;
51042     *)    gl_absname_cpp="$ac_cpp" ;;
51043   esac
51044
51045   case "$host_os" in
51046     mingw*)
51047                                           gl_dirsep_regex='[/\\]'
51048       ;;
51049     *)
51050       gl_dirsep_regex='\/'
51051       ;;
51052   esac
51053       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
51054   gl_header_literal_regex=`echo 'stdarg.h' \
51055                            | sed -e "$gl_make_literal_regex_sed"`
51056   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
51057       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
51058       s|^/[^/]|//&|
51059       p
51060       q
51061     }'
51062
51063         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51064   sed -n "$gl_absolute_header_sed"`
51065
51066            gl_header=$gl_cv_absolute_stdarg_h
51067            gl_cv_next_stdarg_h='"'$gl_header'"'
51068
51069
51070 fi
51071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
51072 $as_echo "$gl_cv_next_stdarg_h" >&6; }
51073      fi
51074      NEXT_STDARG_H=$gl_cv_next_stdarg_h
51075
51076      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51077        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51078        gl_next_as_first_directive='<'stdarg.h'>'
51079      else
51080        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51081        gl_next_as_first_directive=$gl_cv_next_stdarg_h
51082      fi
51083      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
51084
51085
51086
51087
51088             if test "$gl_cv_next_stdarg_h" = '""'; then
51089         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
51090         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
51091       fi
51092     else
51093
51094   saved_as_echo_n="$as_echo_n"
51095   as_echo_n=':'
51096   if ${gl_cv_func___va_copy+:} false; then :
51097   $as_echo_n "(cached) " >&6
51098 else
51099
51100         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51101 /* end confdefs.h.  */
51102 #include <stdarg.h>
51103 int
51104 main ()
51105 {
51106
51107 #ifndef __va_copy
51108 error, bail out
51109 #endif
51110
51111   ;
51112   return 0;
51113 }
51114 _ACEOF
51115 if ac_fn_c_try_compile "$LINENO"; then :
51116   gl_cv_func___va_copy=yes
51117 else
51118   gl_cv_func___va_copy=no
51119 fi
51120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51121 fi
51122
51123   as_echo_n="$saved_as_echo_n"
51124
51125       if test $gl_cv_func___va_copy = yes; then
51126
51127 $as_echo "#define va_copy __va_copy" >>confdefs.h
51128
51129       else
51130
51131
51132 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
51133
51134       fi
51135     fi
51136   fi
51137
51138    if test -n "$STDARG_H"; then
51139   GL_GENERATE_STDARG_H_TRUE=
51140   GL_GENERATE_STDARG_H_FALSE='#'
51141 else
51142   GL_GENERATE_STDARG_H_TRUE='#'
51143   GL_GENERATE_STDARG_H_FALSE=
51144 fi
51145
51146
51147
51148
51149
51150
51151   # Define two additional variables used in the Makefile substitution.
51152
51153   if test "$ac_cv_header_stdbool_h" = yes; then
51154     STDBOOL_H=''
51155   else
51156     STDBOOL_H='stdbool.h'
51157   fi
51158
51159    if test -n "$STDBOOL_H"; then
51160   GL_GENERATE_STDBOOL_H_TRUE=
51161   GL_GENERATE_STDBOOL_H_FALSE='#'
51162 else
51163   GL_GENERATE_STDBOOL_H_TRUE='#'
51164   GL_GENERATE_STDBOOL_H_FALSE=
51165 fi
51166
51167
51168   if test "$ac_cv_type__Bool" = yes; then
51169     HAVE__BOOL=1
51170   else
51171     HAVE__BOOL=0
51172   fi
51173
51174
51175
51176
51177
51178   STDDEF_H=
51179   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
51180
51181 "
51182 if test "x$ac_cv_type_max_align_t" = xyes; then :
51183
51184 else
51185   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
51186 fi
51187
51188   if test $gt_cv_c_wchar_t = no; then
51189     HAVE_WCHAR_T=0
51190     STDDEF_H=stddef.h
51191   fi
51192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
51193 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
51194 if ${gl_cv_decl_null_works+:} false; then :
51195   $as_echo_n "(cached) " >&6
51196 else
51197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51198 /* end confdefs.h.  */
51199 #include <stddef.h>
51200       int test[2 * (sizeof NULL == sizeof (void *)) -1];
51201
51202 int
51203 main ()
51204 {
51205
51206   ;
51207   return 0;
51208 }
51209 _ACEOF
51210 if ac_fn_c_try_compile "$LINENO"; then :
51211   gl_cv_decl_null_works=yes
51212 else
51213   gl_cv_decl_null_works=no
51214 fi
51215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51216 fi
51217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
51218 $as_echo "$gl_cv_decl_null_works" >&6; }
51219   if test $gl_cv_decl_null_works = no; then
51220     REPLACE_NULL=1
51221     STDDEF_H=stddef.h
51222   fi
51223
51224    if test -n "$STDDEF_H"; then
51225   GL_GENERATE_STDDEF_H_TRUE=
51226   GL_GENERATE_STDDEF_H_FALSE='#'
51227 else
51228   GL_GENERATE_STDDEF_H_TRUE='#'
51229   GL_GENERATE_STDDEF_H_FALSE=
51230 fi
51231
51232   if test -n "$STDDEF_H"; then
51233
51234
51235
51236
51237
51238
51239
51240
51241      if test $gl_cv_have_include_next = yes; then
51242        gl_cv_next_stddef_h='<'stddef.h'>'
51243      else
51244        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
51245 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
51246 if ${gl_cv_next_stddef_h+:} false; then :
51247   $as_echo_n "(cached) " >&6
51248 else
51249
51250
51251
51252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51253 /* end confdefs.h.  */
51254 #include <stddef.h>
51255 _ACEOF
51256                 case "$host_os" in
51257     aix*) gl_absname_cpp="$ac_cpp -C" ;;
51258     *)    gl_absname_cpp="$ac_cpp" ;;
51259   esac
51260
51261   case "$host_os" in
51262     mingw*)
51263                                           gl_dirsep_regex='[/\\]'
51264       ;;
51265     *)
51266       gl_dirsep_regex='\/'
51267       ;;
51268   esac
51269       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
51270   gl_header_literal_regex=`echo 'stddef.h' \
51271                            | sed -e "$gl_make_literal_regex_sed"`
51272   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
51273       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
51274       s|^/[^/]|//&|
51275       p
51276       q
51277     }'
51278
51279         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51280   sed -n "$gl_absolute_header_sed"`
51281
51282            gl_header=$gl_cv_absolute_stddef_h
51283            gl_cv_next_stddef_h='"'$gl_header'"'
51284
51285
51286 fi
51287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
51288 $as_echo "$gl_cv_next_stddef_h" >&6; }
51289      fi
51290      NEXT_STDDEF_H=$gl_cv_next_stddef_h
51291
51292      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51293        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51294        gl_next_as_first_directive='<'stddef.h'>'
51295      else
51296        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51297        gl_next_as_first_directive=$gl_cv_next_stddef_h
51298      fi
51299      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
51300
51301
51302
51303
51304   fi
51305
51306
51307
51308
51309
51310
51311
51312
51313
51314
51315
51316
51317
51318
51319      if test $gl_cv_have_include_next = yes; then
51320        gl_cv_next_stdio_h='<'stdio.h'>'
51321      else
51322        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
51323 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
51324 if ${gl_cv_next_stdio_h+:} false; then :
51325   $as_echo_n "(cached) " >&6
51326 else
51327
51328
51329
51330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51331 /* end confdefs.h.  */
51332 #include <stdio.h>
51333 _ACEOF
51334                 case "$host_os" in
51335     aix*) gl_absname_cpp="$ac_cpp -C" ;;
51336     *)    gl_absname_cpp="$ac_cpp" ;;
51337   esac
51338
51339   case "$host_os" in
51340     mingw*)
51341                                           gl_dirsep_regex='[/\\]'
51342       ;;
51343     *)
51344       gl_dirsep_regex='\/'
51345       ;;
51346   esac
51347       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
51348   gl_header_literal_regex=`echo 'stdio.h' \
51349                            | sed -e "$gl_make_literal_regex_sed"`
51350   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
51351       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
51352       s|^/[^/]|//&|
51353       p
51354       q
51355     }'
51356
51357         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51358   sed -n "$gl_absolute_header_sed"`
51359
51360            gl_header=$gl_cv_absolute_stdio_h
51361            gl_cv_next_stdio_h='"'$gl_header'"'
51362
51363
51364 fi
51365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
51366 $as_echo "$gl_cv_next_stdio_h" >&6; }
51367      fi
51368      NEXT_STDIO_H=$gl_cv_next_stdio_h
51369
51370      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51371        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51372        gl_next_as_first_directive='<'stdio.h'>'
51373      else
51374        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51375        gl_next_as_first_directive=$gl_cv_next_stdio_h
51376      fi
51377      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
51378
51379
51380
51381
51382
51383         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
51384 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
51385 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
51386   $as_echo_n "(cached) " >&6
51387 else
51388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51389 /* end confdefs.h.  */
51390
51391        #define __STDC_FORMAT_MACROS 1
51392        #include <stdio.h>
51393        #include <inttypes.h>
51394        /* For non-mingw systems, compilation will trivially succeed.
51395           For mingw, compilation will succeed for older mingw (system
51396           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
51397        #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
51398          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
51399        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
51400        #endif
51401
51402 int
51403 main ()
51404 {
51405
51406   ;
51407   return 0;
51408 }
51409 _ACEOF
51410 if ac_fn_c_try_compile "$LINENO"; then :
51411   gl_cv_func_printf_attribute_flavor=system
51412 else
51413   gl_cv_func_printf_attribute_flavor=gnu
51414 fi
51415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51416 fi
51417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
51418 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
51419   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
51420
51421 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
51422
51423   fi
51424
51425       GNULIB_FSCANF=1
51426
51427
51428 cat >>confdefs.h <<_ACEOF
51429 #define GNULIB_FSCANF 1
51430 _ACEOF
51431
51432
51433   GNULIB_SCANF=1
51434
51435
51436 cat >>confdefs.h <<_ACEOF
51437 #define GNULIB_SCANF 1
51438 _ACEOF
51439
51440
51441   GNULIB_FGETC=1
51442   GNULIB_GETC=1
51443   GNULIB_GETCHAR=1
51444   GNULIB_FGETS=1
51445   GNULIB_FREAD=1
51446
51447
51448       GNULIB_FPRINTF=1
51449   GNULIB_PRINTF=1
51450   GNULIB_VFPRINTF=1
51451   GNULIB_VPRINTF=1
51452   GNULIB_FPUTC=1
51453   GNULIB_PUTC=1
51454   GNULIB_PUTCHAR=1
51455   GNULIB_FPUTS=1
51456   GNULIB_PUTS=1
51457   GNULIB_FWRITE=1
51458
51459
51460
51461
51462     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
51463       REPLACE_STDIO_WRITE_FUNCS=1
51464
51465
51466
51467
51468
51469
51470
51471
51472   gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
51473
51474     fi
51475
51476
51477
51478
51479     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
51480     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
51481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
51482 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
51483 if eval \${$as_gl_Symbol+:} false; then :
51484   $as_echo_n "(cached) " >&6
51485 else
51486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51487 /* end confdefs.h.  */
51488 #include <stdio.h>
51489
51490 int
51491 main ()
51492 {
51493 #undef $gl_func
51494   (void) $gl_func;
51495   ;
51496   return 0;
51497 }
51498 _ACEOF
51499 if ac_fn_c_try_compile "$LINENO"; then :
51500   eval "$as_gl_Symbol=yes"
51501 else
51502   eval "$as_gl_Symbol=no"
51503 fi
51504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51505 fi
51506 eval ac_res=\$$as_gl_Symbol
51507                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51508 $as_echo "$ac_res" >&6; }
51509     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
51510   cat >>confdefs.h <<_ACEOF
51511 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51512 _ACEOF
51513
51514                      eval ac_cv_have_decl_$gl_func=yes
51515 fi
51516       done
51517
51518
51519
51520
51521
51522
51523
51524
51525
51526
51527
51528
51529      if test $gl_cv_have_include_next = yes; then
51530        gl_cv_next_stdlib_h='<'stdlib.h'>'
51531      else
51532        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
51533 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
51534 if ${gl_cv_next_stdlib_h+:} false; then :
51535   $as_echo_n "(cached) " >&6
51536 else
51537
51538
51539
51540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51541 /* end confdefs.h.  */
51542 #include <stdlib.h>
51543 _ACEOF
51544                 case "$host_os" in
51545     aix*) gl_absname_cpp="$ac_cpp -C" ;;
51546     *)    gl_absname_cpp="$ac_cpp" ;;
51547   esac
51548
51549   case "$host_os" in
51550     mingw*)
51551                                           gl_dirsep_regex='[/\\]'
51552       ;;
51553     *)
51554       gl_dirsep_regex='\/'
51555       ;;
51556   esac
51557       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
51558   gl_header_literal_regex=`echo 'stdlib.h' \
51559                            | sed -e "$gl_make_literal_regex_sed"`
51560   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
51561       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
51562       s|^/[^/]|//&|
51563       p
51564       q
51565     }'
51566
51567         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51568   sed -n "$gl_absolute_header_sed"`
51569
51570            gl_header=$gl_cv_absolute_stdlib_h
51571            gl_cv_next_stdlib_h='"'$gl_header'"'
51572
51573
51574 fi
51575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
51576 $as_echo "$gl_cv_next_stdlib_h" >&6; }
51577      fi
51578      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
51579
51580      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51581        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51582        gl_next_as_first_directive='<'stdlib.h'>'
51583      else
51584        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51585        gl_next_as_first_directive=$gl_cv_next_stdlib_h
51586      fi
51587      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
51588
51589
51590
51591
51592
51593
51594     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
51595     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
51596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
51597 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
51598 if eval \${$as_gl_Symbol+:} false; then :
51599   $as_echo_n "(cached) " >&6
51600 else
51601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51602 /* end confdefs.h.  */
51603 #include <stdlib.h>
51604 #if HAVE_SYS_LOADAVG_H
51605 # include <sys/loadavg.h>
51606 #endif
51607 #if HAVE_RANDOM_H
51608 # include <random.h>
51609 #endif
51610
51611 int
51612 main ()
51613 {
51614 #undef $gl_func
51615   (void) $gl_func;
51616   ;
51617   return 0;
51618 }
51619 _ACEOF
51620 if ac_fn_c_try_compile "$LINENO"; then :
51621   eval "$as_gl_Symbol=yes"
51622 else
51623   eval "$as_gl_Symbol=no"
51624 fi
51625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51626 fi
51627 eval ac_res=\$$as_gl_Symbol
51628                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51629 $as_echo "$ac_res" >&6; }
51630     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
51631   cat >>confdefs.h <<_ACEOF
51632 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51633 _ACEOF
51634
51635                      eval ac_cv_have_decl_$gl_func=yes
51636 fi
51637       done
51638
51639
51640
51641
51642
51643
51644
51645
51646   for ac_func in stpcpy
51647 do :
51648   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
51649 if test "x$ac_cv_func_stpcpy" = xyes; then :
51650   cat >>confdefs.h <<_ACEOF
51651 #define HAVE_STPCPY 1
51652 _ACEOF
51653
51654 fi
51655 done
51656
51657   if test $ac_cv_func_stpcpy = no; then
51658     HAVE_STPCPY=0
51659   fi
51660
51661   if test $HAVE_STPCPY = 0; then
51662
51663
51664
51665
51666
51667
51668
51669
51670   gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
51671
51672
51673   :
51674
51675   fi
51676
51677
51678
51679
51680
51681           GNULIB_STPCPY=1
51682
51683
51684
51685
51686
51687 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
51688
51689
51690
51691
51692
51693
51694
51695
51696
51697
51698
51699
51700
51701   if test $ac_cv_func_stpncpy = yes; then
51702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stpncpy" >&5
51703 $as_echo_n "checking for working stpncpy... " >&6; }
51704 if ${gl_cv_func_stpncpy+:} false; then :
51705   $as_echo_n "(cached) " >&6
51706 else
51707
51708       if test "$cross_compiling" = yes; then :
51709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51710 /* end confdefs.h.  */
51711
51712 #include <features.h>
51713 #ifdef __GNU_LIBRARY__
51714   Thanks for using GNU
51715 #endif
51716
51717 _ACEOF
51718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51719   $EGREP "Thanks for using GNU" >/dev/null 2>&1; then :
51720   gl_cv_func_stpncpy="guessing yes"
51721 else
51722   gl_cv_func_stpncpy="guessing no"
51723 fi
51724 rm -f conftest*
51725
51726
51727 else
51728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51729 /* end confdefs.h.  */
51730
51731 #include <stdlib.h>
51732 #include <string.h> /* for strcpy */
51733 /* The stpncpy prototype is missing in <string.h> on AIX 4.  */
51734 #if !HAVE_DECL_STPNCPY
51735 extern
51736 # ifdef __cplusplus
51737 "C"
51738 # endif
51739 char *stpncpy (char *dest, const char *src, size_t n);
51740 #endif
51741 int main ()
51742 {
51743   int result = 0;
51744   const char *src = "Hello";
51745   char dest[10];
51746   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here.  */
51747   {
51748     strcpy (dest, "\377\377\377\377\377\377");
51749     if (stpncpy (dest, src, 2) != dest + 2)
51750       result |= 1;
51751   }
51752   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here.  */
51753   {
51754     strcpy (dest, "\377\377\377\377\377\377");
51755     if (stpncpy (dest, src, 5) != dest + 5)
51756       result |= 2;
51757   }
51758   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here.  */
51759   {
51760     strcpy (dest, "\377\377\377\377\377\377");
51761     if (stpncpy (dest, src, 7) != dest + 5)
51762       result |= 4;
51763   }
51764   return result;
51765 }
51766
51767 _ACEOF
51768 if ac_fn_c_try_run "$LINENO"; then :
51769   gl_cv_func_stpncpy=yes
51770 else
51771   gl_cv_func_stpncpy=no
51772 fi
51773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51774   conftest.$ac_objext conftest.beam conftest.$ac_ext
51775 fi
51776
51777
51778 fi
51779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stpncpy" >&5
51780 $as_echo "$gl_cv_func_stpncpy" >&6; }
51781     case "$gl_cv_func_stpncpy" in
51782       *yes)
51783
51784 $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h
51785
51786         ;;
51787       *)
51788         REPLACE_STPNCPY=1
51789         ;;
51790     esac
51791   else
51792     HAVE_STPNCPY=0
51793   fi
51794
51795   if test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1; then
51796
51797
51798
51799
51800
51801
51802
51803
51804   gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext"
51805
51806
51807   :
51808
51809   fi
51810
51811
51812
51813
51814
51815           GNULIB_STPNCPY=1
51816
51817
51818
51819
51820
51821 $as_echo "#define GNULIB_TEST_STPNCPY 1" >>confdefs.h
51822
51823
51824
51825
51826
51827
51828
51829   for ac_func in strchrnul
51830 do :
51831   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
51832 if test "x$ac_cv_func_strchrnul" = xyes; then :
51833   cat >>confdefs.h <<_ACEOF
51834 #define HAVE_STRCHRNUL 1
51835 _ACEOF
51836
51837 fi
51838 done
51839
51840   if test $ac_cv_func_strchrnul = no; then
51841     HAVE_STRCHRNUL=0
51842   else
51843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
51844 $as_echo_n "checking whether strchrnul works... " >&6; }
51845 if ${gl_cv_func_strchrnul_works+:} false; then :
51846   $as_echo_n "(cached) " >&6
51847 else
51848   if test "$cross_compiling" = yes; then :
51849            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51850 /* end confdefs.h.  */
51851
51852 #if defined __CYGWIN__
51853  #include <cygwin/version.h>
51854  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
51855   Lucky user
51856  #endif
51857 #else
51858   Lucky user
51859 #endif
51860
51861 _ACEOF
51862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51863   $EGREP "Lucky user" >/dev/null 2>&1; then :
51864   gl_cv_func_strchrnul_works="guessing yes"
51865 else
51866   gl_cv_func_strchrnul_works="guessing no"
51867 fi
51868 rm -f conftest*
51869
51870
51871 else
51872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51873 /* end confdefs.h.  */
51874
51875 #include <string.h> /* for strchrnul */
51876
51877 int
51878 main ()
51879 {
51880 const char *buf = "a";
51881       return strchrnul (buf, 'b') != buf + 1;
51882
51883   ;
51884   return 0;
51885 }
51886 _ACEOF
51887 if ac_fn_c_try_run "$LINENO"; then :
51888   gl_cv_func_strchrnul_works=yes
51889 else
51890   gl_cv_func_strchrnul_works=no
51891 fi
51892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51893   conftest.$ac_objext conftest.beam conftest.$ac_ext
51894 fi
51895
51896
51897 fi
51898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
51899 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
51900     case "$gl_cv_func_strchrnul_works" in
51901       *yes) ;;
51902       *) REPLACE_STRCHRNUL=1 ;;
51903     esac
51904   fi
51905
51906   if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
51907
51908
51909
51910
51911
51912
51913
51914
51915   gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
51916
51917     :
51918   fi
51919
51920
51921
51922
51923
51924           GNULIB_STRCHRNUL=1
51925
51926
51927
51928
51929
51930 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
51931
51932
51933
51934
51935   for ac_func in strcspn
51936 do :
51937   ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
51938 if test "x$ac_cv_func_strcspn" = xyes; then :
51939   cat >>confdefs.h <<_ACEOF
51940 #define HAVE_STRCSPN 1
51941 _ACEOF
51942
51943 fi
51944 done
51945
51946
51947   if test $ac_cv_func_strcspn = no; then
51948
51949
51950
51951
51952
51953
51954
51955
51956   gl_LIBOBJS="$gl_LIBOBJS strcspn.$ac_objext"
51957
51958     :
51959   fi
51960
51961
51962
51963
51964
51965   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
51966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
51967 $as_echo_n "checking for working strerror function... " >&6; }
51968 if ${gl_cv_func_working_strerror+:} false; then :
51969   $as_echo_n "(cached) " >&6
51970 else
51971   if test "$cross_compiling" = yes; then :
51972   case "$host_os" in
51973                    # Guess yes on glibc systems.
51974            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
51975                    # If we don't know, assume the worst.
51976            *)      gl_cv_func_working_strerror="guessing no" ;;
51977          esac
51978
51979 else
51980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51981 /* end confdefs.h.  */
51982 #include <string.h>
51983
51984 int
51985 main ()
51986 {
51987 if (!*strerror (-2)) return 1;
51988   ;
51989   return 0;
51990 }
51991 _ACEOF
51992 if ac_fn_c_try_run "$LINENO"; then :
51993   gl_cv_func_working_strerror=yes
51994 else
51995   gl_cv_func_working_strerror=no
51996 fi
51997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51998   conftest.$ac_objext conftest.beam conftest.$ac_ext
51999 fi
52000
52001
52002 fi
52003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
52004 $as_echo "$gl_cv_func_working_strerror" >&6; }
52005     case "$gl_cv_func_working_strerror" in
52006       *yes) ;;
52007       *)
52008                         REPLACE_STRERROR=1
52009         ;;
52010     esac
52011
52012   else
52013             REPLACE_STRERROR=1
52014   fi
52015
52016   if test $REPLACE_STRERROR = 1; then
52017
52018
52019
52020
52021
52022
52023
52024
52025   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
52026
52027   fi
52028
52029
52030 cat >>confdefs.h <<_ACEOF
52031 #define GNULIB_STRERROR 1
52032 _ACEOF
52033
52034
52035
52036
52037
52038
52039
52040           GNULIB_STRERROR=1
52041
52042
52043
52044
52045
52046 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
52047
52048
52049
52050
52051
52052   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
52053
52054
52055
52056
52057
52058
52059
52060
52061   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
52062
52063
52064
52065
52066
52067   if test $ac_cv_header_sys_socket_h != yes; then
52068                     for ac_header in winsock2.h
52069 do :
52070   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
52071 if test "x$ac_cv_header_winsock2_h" = xyes; then :
52072   cat >>confdefs.h <<_ACEOF
52073 #define HAVE_WINSOCK2_H 1
52074 _ACEOF
52075
52076 fi
52077
52078 done
52079
52080   fi
52081   if test "$ac_cv_header_winsock2_h" = yes; then
52082     HAVE_WINSOCK2_H=1
52083     UNISTD_H_HAVE_WINSOCK2_H=1
52084     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
52085   else
52086     HAVE_WINSOCK2_H=0
52087   fi
52088
52089
52090   fi
52091   if test $gl_cond_libtool = false; then
52092     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
52093     gl_libdeps="$gl_libdeps $LIBICONV"
52094   fi
52095   if test $gl_cond_libtool = false; then
52096     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
52097     gl_libdeps="$gl_libdeps $LIBICONV"
52098   fi
52099
52100
52101
52102
52103
52104
52105
52106
52107
52108   if test $ac_cv_have_decl_strnlen = no; then
52109     HAVE_DECL_STRNLEN=0
52110   else
52111
52112          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
52113 $as_echo_n "checking for working strnlen... " >&6; }
52114 if ${ac_cv_func_strnlen_working+:} false; then :
52115   $as_echo_n "(cached) " >&6
52116 else
52117   if test "$cross_compiling" = yes; then :
52118   # Guess no on AIX systems, yes otherwise.
52119                 case "$host_os" in
52120                   aix*) ac_cv_func_strnlen_working=no;;
52121                   *)    ac_cv_func_strnlen_working=yes;;
52122                 esac
52123 else
52124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52125 /* end confdefs.h.  */
52126 $ac_includes_default
52127 int
52128 main ()
52129 {
52130
52131 #define S "foobar"
52132 #define S_LEN (sizeof S - 1)
52133
52134   /* At least one implementation is buggy: that of AIX 4.3 would
52135      give strnlen (S, 1) == 3.  */
52136
52137   int i;
52138   for (i = 0; i < S_LEN + 1; ++i)
52139     {
52140       int expected = i <= S_LEN ? i : S_LEN;
52141       if (strnlen (S, i) != expected)
52142         return 1;
52143     }
52144   return 0;
52145
52146   ;
52147   return 0;
52148 }
52149 _ACEOF
52150 if ac_fn_c_try_run "$LINENO"; then :
52151   ac_cv_func_strnlen_working=yes
52152 else
52153   ac_cv_func_strnlen_working=no
52154 fi
52155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52156   conftest.$ac_objext conftest.beam conftest.$ac_ext
52157 fi
52158
52159 fi
52160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
52161 $as_echo "$ac_cv_func_strnlen_working" >&6; }
52162 test $ac_cv_func_strnlen_working = no && :
52163
52164
52165     if test $ac_cv_func_strnlen_working = no; then
52166       REPLACE_STRNLEN=1
52167     fi
52168   fi
52169
52170   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
52171
52172
52173
52174
52175
52176
52177
52178
52179   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
52180
52181     :
52182   fi
52183
52184
52185
52186
52187
52188           GNULIB_STRNLEN=1
52189
52190
52191
52192
52193
52194 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
52195
52196
52197
52198
52199
52200   for ac_func in strpbrk
52201 do :
52202   ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
52203 if test "x$ac_cv_func_strpbrk" = xyes; then :
52204   cat >>confdefs.h <<_ACEOF
52205 #define HAVE_STRPBRK 1
52206 _ACEOF
52207
52208 fi
52209 done
52210
52211   if test $ac_cv_func_strpbrk = no; then
52212     HAVE_STRPBRK=0
52213   fi
52214
52215   if test $HAVE_STRPBRK = 0; then
52216
52217
52218
52219
52220
52221
52222
52223
52224   gl_LIBOBJS="$gl_LIBOBJS strpbrk.$ac_objext"
52225
52226     :
52227   fi
52228
52229
52230
52231
52232
52233           GNULIB_STRPBRK=1
52234
52235
52236
52237
52238
52239 $as_echo "#define GNULIB_TEST_STRPBRK 1" >>confdefs.h
52240
52241
52242
52243
52244
52245   if test $REPLACE_STRSTR = 0; then
52246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
52247 $as_echo_n "checking whether strstr works in linear time... " >&6; }
52248 if ${gl_cv_func_strstr_linear+:} false; then :
52249   $as_echo_n "(cached) " >&6
52250 else
52251   if test "$cross_compiling" = yes; then :
52252                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52253 /* end confdefs.h.  */
52254
52255 #include <features.h>
52256 #ifdef __GNU_LIBRARY__
52257  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
52258      && !(defined __i386__ || defined __x86_64__) \
52259      && !defined __UCLIBC__
52260   Lucky user
52261  #endif
52262 #endif
52263 #ifdef __CYGWIN__
52264  #include <cygwin/version.h>
52265  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
52266   Lucky user
52267  #endif
52268 #endif
52269
52270 _ACEOF
52271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52272   $EGREP "Lucky user" >/dev/null 2>&1; then :
52273   gl_cv_func_strstr_linear="guessing yes"
52274 else
52275   gl_cv_func_strstr_linear="guessing no"
52276 fi
52277 rm -f conftest*
52278
52279
52280 else
52281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52282 /* end confdefs.h.  */
52283
52284 #include <signal.h> /* for signal */
52285 #include <string.h> /* for strstr */
52286 #include <stdlib.h> /* for malloc */
52287 #include <unistd.h> /* for alarm */
52288 static void quit (int sig) { _exit (sig + 128); }
52289
52290 int
52291 main ()
52292 {
52293
52294     int result = 0;
52295     size_t m = 1000000;
52296     char *haystack = (char *) malloc (2 * m + 2);
52297     char *needle = (char *) malloc (m + 2);
52298     /* Failure to compile this test due to missing alarm is okay,
52299        since all such platforms (mingw) also have quadratic strstr.  */
52300     signal (SIGALRM, quit);
52301     alarm (5);
52302     /* Check for quadratic performance.  */
52303     if (haystack && needle)
52304       {
52305         memset (haystack, 'A', 2 * m);
52306         haystack[2 * m] = 'B';
52307         haystack[2 * m + 1] = 0;
52308         memset (needle, 'A', m);
52309         needle[m] = 'B';
52310         needle[m + 1] = 0;
52311         if (!strstr (haystack, needle))
52312           result |= 1;
52313       }
52314     return result;
52315
52316   ;
52317   return 0;
52318 }
52319 _ACEOF
52320 if ac_fn_c_try_run "$LINENO"; then :
52321   gl_cv_func_strstr_linear=yes
52322 else
52323   gl_cv_func_strstr_linear=no
52324 fi
52325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52326   conftest.$ac_objext conftest.beam conftest.$ac_ext
52327 fi
52328
52329
52330 fi
52331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
52332 $as_echo "$gl_cv_func_strstr_linear" >&6; }
52333     case "$gl_cv_func_strstr_linear" in
52334       *yes) ;;
52335       *)
52336         REPLACE_STRSTR=1
52337         ;;
52338     esac
52339   fi
52340
52341   if test $REPLACE_STRSTR = 1; then
52342
52343
52344
52345
52346
52347
52348
52349
52350   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
52351
52352   fi
52353
52354
52355
52356   if test "$gl_cv_func_memchr_works" != yes; then
52357     REPLACE_STRSTR=1
52358   else
52359         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
52360 $as_echo_n "checking whether strstr works... " >&6; }
52361 if ${gl_cv_func_strstr_works_always+:} false; then :
52362   $as_echo_n "(cached) " >&6
52363 else
52364   if test "$cross_compiling" = yes; then :
52365                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52366 /* end confdefs.h.  */
52367
52368 #ifdef __GNU_LIBRARY__
52369  #include <features.h>
52370  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
52371      || defined __UCLIBC__
52372   Lucky user
52373  #endif
52374 #elif defined __CYGWIN__
52375  #include <cygwin/version.h>
52376  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
52377   Lucky user
52378  #endif
52379 #else
52380   Lucky user
52381 #endif
52382
52383 _ACEOF
52384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52385   $EGREP "Lucky user" >/dev/null 2>&1; then :
52386   gl_cv_func_strstr_works_always="guessing yes"
52387 else
52388   gl_cv_func_strstr_works_always="guessing no"
52389 fi
52390 rm -f conftest*
52391
52392
52393 else
52394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52395 /* end confdefs.h.  */
52396
52397 #include <string.h> /* for strstr */
52398 #define P "_EF_BF_BD"
52399 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
52400 #define NEEDLE P P P P P
52401
52402 int
52403 main ()
52404 {
52405 return !!strstr (HAYSTACK, NEEDLE);
52406
52407   ;
52408   return 0;
52409 }
52410 _ACEOF
52411 if ac_fn_c_try_run "$LINENO"; then :
52412   gl_cv_func_strstr_works_always=yes
52413 else
52414   gl_cv_func_strstr_works_always=no
52415 fi
52416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52417   conftest.$ac_objext conftest.beam conftest.$ac_ext
52418 fi
52419
52420
52421 fi
52422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
52423 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
52424     case "$gl_cv_func_strstr_works_always" in
52425       *yes) ;;
52426       *)
52427         REPLACE_STRSTR=1
52428         ;;
52429     esac
52430   fi
52431
52432   if test $REPLACE_STRSTR = 1; then
52433
52434
52435
52436
52437
52438
52439
52440
52441   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
52442
52443   fi
52444
52445
52446
52447
52448
52449           GNULIB_STRSTR=1
52450
52451
52452
52453
52454
52455 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
52456
52457
52458
52459
52460   for ac_func in strtol
52461 do :
52462   ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
52463 if test "x$ac_cv_func_strtol" = xyes; then :
52464   cat >>confdefs.h <<_ACEOF
52465 #define HAVE_STRTOL 1
52466 _ACEOF
52467
52468 fi
52469 done
52470
52471
52472   if test $ac_cv_func_strtol = no; then
52473
52474
52475
52476
52477
52478
52479
52480
52481   gl_LIBOBJS="$gl_LIBOBJS strtol.$ac_objext"
52482
52483   fi
52484
52485   for ac_func in strtoul
52486 do :
52487   ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
52488 if test "x$ac_cv_func_strtoul" = xyes; then :
52489   cat >>confdefs.h <<_ACEOF
52490 #define HAVE_STRTOUL 1
52491 _ACEOF
52492
52493 fi
52494 done
52495
52496
52497   if test $ac_cv_func_strtoul = no; then
52498
52499
52500
52501
52502
52503
52504
52505
52506   gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
52507
52508   fi
52509
52510
52511
52512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
52513 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
52514 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
52515   $as_echo_n "(cached) " >&6
52516 else
52517
52518                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52519 /* end confdefs.h.  */
52520 #include <sys/select.h>
52521 int
52522 main ()
52523 {
52524 struct timeval b;
52525   ;
52526   return 0;
52527 }
52528 _ACEOF
52529 if ac_fn_c_try_compile "$LINENO"; then :
52530   gl_cv_header_sys_select_h_selfcontained=yes
52531 else
52532   gl_cv_header_sys_select_h_selfcontained=no
52533 fi
52534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52535                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
52536         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52537 /* end confdefs.h.  */
52538 #include <sys/select.h>
52539 int
52540 main ()
52541 {
52542 int memset; int bzero;
52543   ;
52544   return 0;
52545 }
52546
52547 _ACEOF
52548 if ac_fn_c_try_compile "$LINENO"; then :
52549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52550 /* end confdefs.h.  */
52551 #include <sys/select.h>
52552 int
52553 main ()
52554 {
52555
52556                   #undef memset
52557                   #define memset nonexistent_memset
52558                   extern
52559                   #ifdef __cplusplus
52560                   "C"
52561                   #endif
52562                   void *memset (void *, int, unsigned long);
52563                   #undef bzero
52564                   #define bzero nonexistent_bzero
52565                   extern
52566                   #ifdef __cplusplus
52567                   "C"
52568                   #endif
52569                   void bzero (void *, unsigned long);
52570                   fd_set fds;
52571                   FD_ZERO (&fds);
52572
52573   ;
52574   return 0;
52575 }
52576
52577 _ACEOF
52578 if ac_fn_c_try_link "$LINENO"; then :
52579
52580 else
52581   gl_cv_header_sys_select_h_selfcontained=no
52582 fi
52583 rm -f core conftest.err conftest.$ac_objext \
52584     conftest$ac_exeext conftest.$ac_ext
52585
52586 fi
52587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52588       fi
52589
52590 fi
52591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
52592 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
52593
52594
52595
52596
52597
52598
52599
52600
52601
52602      if test $gl_cv_have_include_next = yes; then
52603        gl_cv_next_sys_select_h='<'sys/select.h'>'
52604      else
52605        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
52606 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
52607 if ${gl_cv_next_sys_select_h+:} false; then :
52608   $as_echo_n "(cached) " >&6
52609 else
52610
52611              if test $ac_cv_header_sys_select_h = yes; then
52612
52613
52614
52615
52616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52617 /* end confdefs.h.  */
52618 #include <sys/select.h>
52619 _ACEOF
52620                 case "$host_os" in
52621     aix*) gl_absname_cpp="$ac_cpp -C" ;;
52622     *)    gl_absname_cpp="$ac_cpp" ;;
52623   esac
52624
52625   case "$host_os" in
52626     mingw*)
52627                                           gl_dirsep_regex='[/\\]'
52628       ;;
52629     *)
52630       gl_dirsep_regex='\/'
52631       ;;
52632   esac
52633       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52634   gl_header_literal_regex=`echo 'sys/select.h' \
52635                            | sed -e "$gl_make_literal_regex_sed"`
52636   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52637       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52638       s|^/[^/]|//&|
52639       p
52640       q
52641     }'
52642
52643         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52644   sed -n "$gl_absolute_header_sed"`
52645
52646            gl_header=$gl_cv_absolute_sys_select_h
52647            gl_cv_next_sys_select_h='"'$gl_header'"'
52648           else
52649                gl_cv_next_sys_select_h='<'sys/select.h'>'
52650              fi
52651
52652
52653 fi
52654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
52655 $as_echo "$gl_cv_next_sys_select_h" >&6; }
52656      fi
52657      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
52658
52659      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52660        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52661        gl_next_as_first_directive='<'sys/select.h'>'
52662      else
52663        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52664        gl_next_as_first_directive=$gl_cv_next_sys_select_h
52665      fi
52666      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
52667
52668
52669
52670
52671   if test $ac_cv_header_sys_select_h = yes; then
52672     HAVE_SYS_SELECT_H=1
52673   else
52674     HAVE_SYS_SELECT_H=0
52675   fi
52676
52677
52678
52679
52680
52681   if test $ac_cv_header_sys_socket_h != yes; then
52682                     for ac_header in winsock2.h
52683 do :
52684   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
52685 if test "x$ac_cv_header_winsock2_h" = xyes; then :
52686   cat >>confdefs.h <<_ACEOF
52687 #define HAVE_WINSOCK2_H 1
52688 _ACEOF
52689
52690 fi
52691
52692 done
52693
52694   fi
52695   if test "$ac_cv_header_winsock2_h" = yes; then
52696     HAVE_WINSOCK2_H=1
52697     UNISTD_H_HAVE_WINSOCK2_H=1
52698     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
52699   else
52700     HAVE_WINSOCK2_H=0
52701   fi
52702
52703
52704
52705
52706     for gl_func in pselect select; do
52707     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
52708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
52709 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
52710 if eval \${$as_gl_Symbol+:} false; then :
52711   $as_echo_n "(cached) " >&6
52712 else
52713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52714 /* end confdefs.h.  */
52715
52716 /* Some systems require prerequisite headers.  */
52717 #include <sys/types.h>
52718 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
52719 # include <sys/time.h>
52720 #endif
52721 #include <sys/select.h>
52722
52723 int
52724 main ()
52725 {
52726 #undef $gl_func
52727   (void) $gl_func;
52728   ;
52729   return 0;
52730 }
52731 _ACEOF
52732 if ac_fn_c_try_compile "$LINENO"; then :
52733   eval "$as_gl_Symbol=yes"
52734 else
52735   eval "$as_gl_Symbol=no"
52736 fi
52737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52738 fi
52739 eval ac_res=\$$as_gl_Symbol
52740                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
52741 $as_echo "$ac_res" >&6; }
52742     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
52743   cat >>confdefs.h <<_ACEOF
52744 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
52745 _ACEOF
52746
52747                      eval ac_cv_have_decl_$gl_func=yes
52748 fi
52749       done
52750
52751
52752
52753
52754
52755
52756
52757
52758
52759
52760
52761
52762
52763
52764
52765
52766
52767      if test $gl_cv_have_include_next = yes; then
52768        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
52769      else
52770        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
52771 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
52772 if ${gl_cv_next_sys_stat_h+:} false; then :
52773   $as_echo_n "(cached) " >&6
52774 else
52775
52776              if test $ac_cv_header_sys_stat_h = yes; then
52777
52778
52779
52780
52781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52782 /* end confdefs.h.  */
52783 #include <sys/stat.h>
52784 _ACEOF
52785                 case "$host_os" in
52786     aix*) gl_absname_cpp="$ac_cpp -C" ;;
52787     *)    gl_absname_cpp="$ac_cpp" ;;
52788   esac
52789
52790   case "$host_os" in
52791     mingw*)
52792                                           gl_dirsep_regex='[/\\]'
52793       ;;
52794     *)
52795       gl_dirsep_regex='\/'
52796       ;;
52797   esac
52798       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52799   gl_header_literal_regex=`echo 'sys/stat.h' \
52800                            | sed -e "$gl_make_literal_regex_sed"`
52801   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52802       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52803       s|^/[^/]|//&|
52804       p
52805       q
52806     }'
52807
52808         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52809   sed -n "$gl_absolute_header_sed"`
52810
52811            gl_header=$gl_cv_absolute_sys_stat_h
52812            gl_cv_next_sys_stat_h='"'$gl_header'"'
52813           else
52814                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
52815              fi
52816
52817
52818 fi
52819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
52820 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
52821      fi
52822      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
52823
52824      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52825        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52826        gl_next_as_first_directive='<'sys/stat.h'>'
52827      else
52828        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52829        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
52830      fi
52831      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
52832
52833
52834
52835
52836
52837
52838
52839
52840
52841
52842
52843   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
52844
52845 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
52846
52847   fi
52848
52849       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
52850      #include <sys/stat.h>
52851 "
52852 if test "x$ac_cv_type_nlink_t" = xyes; then :
52853
52854 else
52855
52856 $as_echo "#define nlink_t int" >>confdefs.h
52857
52858 fi
52859
52860
52861
52862     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
52863     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
52864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
52865 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
52866 if eval \${$as_gl_Symbol+:} false; then :
52867   $as_echo_n "(cached) " >&6
52868 else
52869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52870 /* end confdefs.h.  */
52871 #include <sys/stat.h>
52872
52873 int
52874 main ()
52875 {
52876 #undef $gl_func
52877   (void) $gl_func;
52878   ;
52879   return 0;
52880 }
52881 _ACEOF
52882 if ac_fn_c_try_compile "$LINENO"; then :
52883   eval "$as_gl_Symbol=yes"
52884 else
52885   eval "$as_gl_Symbol=no"
52886 fi
52887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52888 fi
52889 eval ac_res=\$$as_gl_Symbol
52890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
52891 $as_echo "$ac_res" >&6; }
52892     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
52893   cat >>confdefs.h <<_ACEOF
52894 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
52895 _ACEOF
52896
52897                      eval ac_cv_have_decl_$gl_func=yes
52898 fi
52899       done
52900
52901
52902
52903
52904
52905
52906
52907
52908
52909
52910
52911
52912
52913
52914
52915
52916
52917
52918
52919
52920
52921      if test $gl_cv_have_include_next = yes; then
52922        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
52923      else
52924        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
52925 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
52926 if ${gl_cv_next_sys_wait_h+:} false; then :
52927   $as_echo_n "(cached) " >&6
52928 else
52929
52930              if test $ac_cv_header_sys_wait_h = yes; then
52931
52932
52933
52934
52935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52936 /* end confdefs.h.  */
52937 #include <sys/wait.h>
52938 _ACEOF
52939                 case "$host_os" in
52940     aix*) gl_absname_cpp="$ac_cpp -C" ;;
52941     *)    gl_absname_cpp="$ac_cpp" ;;
52942   esac
52943
52944   case "$host_os" in
52945     mingw*)
52946                                           gl_dirsep_regex='[/\\]'
52947       ;;
52948     *)
52949       gl_dirsep_regex='\/'
52950       ;;
52951   esac
52952       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52953   gl_header_literal_regex=`echo 'sys/wait.h' \
52954                            | sed -e "$gl_make_literal_regex_sed"`
52955   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52956       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52957       s|^/[^/]|//&|
52958       p
52959       q
52960     }'
52961
52962         gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52963   sed -n "$gl_absolute_header_sed"`
52964
52965            gl_header=$gl_cv_absolute_sys_wait_h
52966            gl_cv_next_sys_wait_h='"'$gl_header'"'
52967           else
52968                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
52969              fi
52970
52971
52972 fi
52973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
52974 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
52975      fi
52976      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
52977
52978      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52979        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52980        gl_next_as_first_directive='<'sys/wait.h'>'
52981      else
52982        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52983        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
52984      fi
52985      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
52986
52987
52988
52989
52990
52991
52992
52993
52994     for gl_func in waitpid; do
52995     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
52996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
52997 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
52998 if eval \${$as_gl_Symbol+:} false; then :
52999   $as_echo_n "(cached) " >&6
53000 else
53001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53002 /* end confdefs.h.  */
53003 #include <sys/wait.h>
53004 int
53005 main ()
53006 {
53007 #undef $gl_func
53008   (void) $gl_func;
53009   ;
53010   return 0;
53011 }
53012 _ACEOF
53013 if ac_fn_c_try_compile "$LINENO"; then :
53014   eval "$as_gl_Symbol=yes"
53015 else
53016   eval "$as_gl_Symbol=no"
53017 fi
53018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53019 fi
53020 eval ac_res=\$$as_gl_Symbol
53021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
53022 $as_echo "$ac_res" >&6; }
53023     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
53024   cat >>confdefs.h <<_ACEOF
53025 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
53026 _ACEOF
53027
53028                      eval ac_cv_have_decl_$gl_func=yes
53029 fi
53030       done
53031
53032
53033
53034
53035
53036   :
53037
53038
53039
53040
53041
53042
53043
53044   if test $gl_cv_terminfo_tparam = no && test $gl_cv_terminfo_tparm = no; then
53045
53046
53047
53048
53049
53050
53051
53052
53053   gl_LIBOBJS="$gl_LIBOBJS tparm.$ac_objext"
53054
53055   fi
53056   case "$gl_cv_terminfo" in
53057     no*)
53058       case "$gl_cv_termcap" in
53059         no*)
53060
53061
53062
53063
53064
53065
53066
53067
53068   gl_LIBOBJS="$gl_LIBOBJS tputs.$ac_objext"
53069
53070           ;;
53071       esac
53072       ;;
53073   esac
53074
53075
53076
53077
53078
53079
53080
53081
53082
53083
53084
53085   :
53086
53087
53088       if  { test "$HAVE_LIBUNISTRING" != yes \
53089     || {
53090
53091
53092
53093             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53094             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53095                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53096                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53097                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53098                          }
53099                     }
53100                }
53101
53102
53103
53104
53105        }
53106   }; then
53107     LIBUNISTRING_UNICONV_H='uniconv.h'
53108   else
53109     LIBUNISTRING_UNICONV_H=
53110   fi
53111
53112
53113
53114
53115        if  { test "$HAVE_LIBUNISTRING" != yes \
53116     || {
53117
53118
53119
53120             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53121             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53122                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53123                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53124                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53125                          }
53126                     }
53127                }
53128
53129
53130
53131
53132        }
53133   }; then
53134   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
53135   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
53136 else
53137   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
53138   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
53139 fi
53140
53141
53142
53143
53144       if  { test "$HAVE_LIBUNISTRING" != yes \
53145     || {
53146
53147
53148
53149             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53150             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53151                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53152                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53153                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53154                          }
53155                     }
53156                }
53157
53158
53159
53160
53161        }
53162   }; then
53163     LIBUNISTRING_UNICTYPE_H='unictype.h'
53164   else
53165     LIBUNISTRING_UNICTYPE_H=
53166   fi
53167
53168
53169
53170
53171
53172        if  { test "$HAVE_LIBUNISTRING" != yes \
53173     || {
53174
53175
53176
53177             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53178             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53179                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53180                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53181                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
53182                          }
53183                     }
53184                }
53185
53186
53187
53188
53189        }
53190   }; then
53191   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE=
53192   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE='#'
53193 else
53194   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE='#'
53195   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE=
53196 fi
53197
53198
53199
53200
53201       if  { test "$HAVE_LIBUNISTRING" != yes \
53202     || {
53203
53204
53205
53206             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53207             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53208                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53209                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53210                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53211                          }
53212                     }
53213                }
53214
53215
53216
53217
53218        }
53219   }; then
53220     LIBUNISTRING_UNILBRK_H='unilbrk.h'
53221   else
53222     LIBUNISTRING_UNILBRK_H=
53223   fi
53224
53225
53226
53227
53228
53229        if  { test "$HAVE_LIBUNISTRING" != yes \
53230     || {
53231
53232
53233
53234             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53235             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53236                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53237                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53238                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
53239                          }
53240                     }
53241                }
53242
53243
53244
53245
53246        }
53247   }; then
53248   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
53249   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
53250 else
53251   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
53252   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
53253 fi
53254
53255
53256
53257
53258        if  { test "$HAVE_LIBUNISTRING" != yes \
53259     || {
53260
53261
53262
53263             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53264             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53265                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53266                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53267                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
53268                          }
53269                     }
53270                }
53271
53272
53273
53274
53275        }
53276   }; then
53277   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
53278   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
53279 else
53280   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
53281   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
53282 fi
53283
53284
53285
53286
53287        if  { test "$HAVE_LIBUNISTRING" != yes \
53288     || {
53289
53290
53291
53292             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53293             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53294                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53295                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53296                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
53297                          }
53298                     }
53299                }
53300
53301
53302
53303
53304        }
53305   }; then
53306   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
53307   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
53308 else
53309   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
53310   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
53311 fi
53312
53313
53314
53315
53316       if  { test "$HAVE_LIBUNISTRING" != yes \
53317     || {
53318
53319
53320
53321             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53322             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53323                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53324                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53325                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 5
53326                          }
53327                     }
53328                }
53329
53330
53331
53332
53333        }
53334   }; then
53335     LIBUNISTRING_UNINAME_H='uniname.h'
53336   else
53337     LIBUNISTRING_UNINAME_H=
53338   fi
53339
53340
53341
53342
53343        if  { test "$HAVE_LIBUNISTRING" != yes \
53344     || {
53345
53346
53347
53348             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53349             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53350                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53351                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53352                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
53353                          }
53354                     }
53355                }
53356
53357
53358
53359
53360        }
53361   }; then
53362   LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE=
53363   LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE='#'
53364 else
53365   LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE='#'
53366   LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE=
53367 fi
53368
53369
53370
53371
53372
53373
53374
53375
53376
53377
53378
53379
53380
53381
53382      if test $gl_cv_have_include_next = yes; then
53383        gl_cv_next_unistd_h='<'unistd.h'>'
53384      else
53385        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
53386 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
53387 if ${gl_cv_next_unistd_h+:} false; then :
53388   $as_echo_n "(cached) " >&6
53389 else
53390
53391              if test $ac_cv_header_unistd_h = yes; then
53392
53393
53394
53395
53396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53397 /* end confdefs.h.  */
53398 #include <unistd.h>
53399 _ACEOF
53400                 case "$host_os" in
53401     aix*) gl_absname_cpp="$ac_cpp -C" ;;
53402     *)    gl_absname_cpp="$ac_cpp" ;;
53403   esac
53404
53405   case "$host_os" in
53406     mingw*)
53407                                           gl_dirsep_regex='[/\\]'
53408       ;;
53409     *)
53410       gl_dirsep_regex='\/'
53411       ;;
53412   esac
53413       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
53414   gl_header_literal_regex=`echo 'unistd.h' \
53415                            | sed -e "$gl_make_literal_regex_sed"`
53416   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
53417       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
53418       s|^/[^/]|//&|
53419       p
53420       q
53421     }'
53422
53423         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
53424   sed -n "$gl_absolute_header_sed"`
53425
53426            gl_header=$gl_cv_absolute_unistd_h
53427            gl_cv_next_unistd_h='"'$gl_header'"'
53428           else
53429                gl_cv_next_unistd_h='<'unistd.h'>'
53430              fi
53431
53432
53433 fi
53434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
53435 $as_echo "$gl_cv_next_unistd_h" >&6; }
53436      fi
53437      NEXT_UNISTD_H=$gl_cv_next_unistd_h
53438
53439      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
53440        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
53441        gl_next_as_first_directive='<'unistd.h'>'
53442      else
53443        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
53444        gl_next_as_first_directive=$gl_cv_next_unistd_h
53445      fi
53446      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
53447
53448
53449
53450
53451   if test $ac_cv_header_unistd_h = yes; then
53452     HAVE_UNISTD_H=1
53453   else
53454     HAVE_UNISTD_H=0
53455   fi
53456
53457
53458
53459
53460
53461
53462
53463     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
53464     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
53465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
53466 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
53467 if eval \${$as_gl_Symbol+:} false; then :
53468   $as_echo_n "(cached) " >&6
53469 else
53470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53471 /* end confdefs.h.  */
53472
53473 #if HAVE_UNISTD_H
53474 # include <unistd.h>
53475 #endif
53476 /* Some systems declare various items in the wrong headers.  */
53477 #if !(defined __GLIBC__ && !defined __UCLIBC__)
53478 # include <fcntl.h>
53479 # include <stdio.h>
53480 # include <stdlib.h>
53481 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
53482 #  include <io.h>
53483 # endif
53484 #endif
53485
53486 int
53487 main ()
53488 {
53489 #undef $gl_func
53490   (void) $gl_func;
53491   ;
53492   return 0;
53493 }
53494 _ACEOF
53495 if ac_fn_c_try_compile "$LINENO"; then :
53496   eval "$as_gl_Symbol=yes"
53497 else
53498   eval "$as_gl_Symbol=no"
53499 fi
53500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53501 fi
53502 eval ac_res=\$$as_gl_Symbol
53503                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
53504 $as_echo "$ac_res" >&6; }
53505     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
53506   cat >>confdefs.h <<_ACEOF
53507 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
53508 _ACEOF
53509
53510                      eval ac_cv_have_decl_$gl_func=yes
53511 fi
53512       done
53513
53514
53515
53516
53517
53518
53519
53520       if  { test "$HAVE_LIBUNISTRING" != yes \
53521     || {
53522
53523
53524
53525             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53526             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53527                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53528                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53529                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53530                          }
53531                     }
53532                }
53533
53534
53535
53536
53537        }
53538   }; then
53539     LIBUNISTRING_UNISTR_H='unistr.h'
53540   else
53541     LIBUNISTRING_UNISTR_H=
53542   fi
53543
53544
53545
53546
53547 cat >>confdefs.h <<_ACEOF
53548 #define GNULIB_UNISTR_U16_MBTOUC 1
53549 _ACEOF
53550
53551
53552
53553
53554        if  { test "$HAVE_LIBUNISTRING" != yes \
53555     || {
53556
53557
53558
53559             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53560             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53561                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53562                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53563                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53564                          }
53565                     }
53566                }
53567
53568
53569
53570
53571        }
53572   }; then
53573   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
53574   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
53575 else
53576   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
53577   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
53578 fi
53579
53580
53581
53582
53583        if  { test "$HAVE_LIBUNISTRING" != yes \
53584     || {
53585
53586
53587
53588             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53589             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53590                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53591                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53592                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53593                          }
53594                     }
53595                }
53596
53597
53598
53599
53600        }
53601   }; then
53602   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
53603   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
53604 else
53605   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
53606   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
53607 fi
53608
53609
53610
53611
53612        if  { test "$HAVE_LIBUNISTRING" != yes \
53613     || {
53614
53615
53616
53617             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53618             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53619                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53620                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53621                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53622                          }
53623                     }
53624                }
53625
53626
53627
53628
53629        }
53630   }; then
53631   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
53632   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
53633 else
53634   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
53635   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
53636 fi
53637
53638
53639
53640
53641 cat >>confdefs.h <<_ACEOF
53642 #define GNULIB_UNISTR_U8_MBTOUC 1
53643 _ACEOF
53644
53645
53646
53647
53648        if  { test "$HAVE_LIBUNISTRING" != yes \
53649     || {
53650
53651
53652
53653             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53654             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53655                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53656                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53657                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53658                          }
53659                     }
53660                }
53661
53662
53663
53664
53665        }
53666   }; then
53667   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
53668   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
53669 else
53670   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
53671   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
53672 fi
53673
53674
53675
53676
53677 cat >>confdefs.h <<_ACEOF
53678 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
53679 _ACEOF
53680
53681
53682
53683
53684        if  { test "$HAVE_LIBUNISTRING" != yes \
53685     || {
53686
53687
53688
53689             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53690             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53691                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53692                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53693                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53694                          }
53695                     }
53696                }
53697
53698
53699
53700
53701        }
53702   }; then
53703   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
53704   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
53705 else
53706   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
53707   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
53708 fi
53709
53710
53711
53712
53713 cat >>confdefs.h <<_ACEOF
53714 #define GNULIB_UNISTR_U8_MBTOUCR 1
53715 _ACEOF
53716
53717
53718
53719
53720        if  { test "$HAVE_LIBUNISTRING" != yes \
53721     || {
53722
53723
53724
53725             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53726             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53727                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53728                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53729                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53730                          }
53731                     }
53732                }
53733
53734
53735
53736
53737        }
53738   }; then
53739   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
53740   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
53741 else
53742   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
53743   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
53744 fi
53745
53746
53747
53748
53749        if  { test "$HAVE_LIBUNISTRING" != yes \
53750     || {
53751
53752
53753
53754             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53755             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53756                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53757                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53758                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53759                          }
53760                     }
53761                }
53762
53763
53764
53765
53766        }
53767   }; then
53768   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
53769   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
53770 else
53771   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
53772   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
53773 fi
53774
53775
53776
53777
53778 cat >>confdefs.h <<_ACEOF
53779 #define GNULIB_UNISTR_U8_UCTOMB 1
53780 _ACEOF
53781
53782
53783
53784
53785        if  { test "$HAVE_LIBUNISTRING" != yes \
53786     || {
53787
53788
53789
53790             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53791             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53792                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53793                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53794                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53795                          }
53796                     }
53797                }
53798
53799
53800
53801
53802        }
53803   }; then
53804   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
53805   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
53806 else
53807   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
53808   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
53809 fi
53810
53811
53812
53813
53814       if  { test "$HAVE_LIBUNISTRING" != yes \
53815     || {
53816
53817
53818
53819             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53820             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53821                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53822                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53823                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53824                          }
53825                     }
53826                }
53827
53828
53829
53830
53831        }
53832   }; then
53833     LIBUNISTRING_UNITYPES_H='unitypes.h'
53834   else
53835     LIBUNISTRING_UNITYPES_H=
53836   fi
53837
53838
53839
53840
53841       if  { test "$HAVE_LIBUNISTRING" != yes \
53842     || {
53843
53844
53845
53846             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53847             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53848                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53849                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53850                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53851                          }
53852                     }
53853                }
53854
53855
53856
53857
53858        }
53859   }; then
53860     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
53861   else
53862     LIBUNISTRING_UNIWIDTH_H=
53863   fi
53864
53865
53866
53867
53868        if  { test "$HAVE_LIBUNISTRING" != yes \
53869     || {
53870
53871
53872
53873             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53874             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53875                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53876                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53877                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
53878                          }
53879                     }
53880                }
53881
53882
53883
53884
53885        }
53886   }; then
53887   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
53888   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
53889 else
53890   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
53891   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
53892 fi
53893
53894
53895
53896
53897 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
53898
53899
53900
53901
53902
53903
53904
53905
53906
53907
53908
53909
53910
53911
53912
53913
53914
53915
53916
53917
53918
53919   if test $ac_cv_have_decl_unsetenv = no; then
53920     HAVE_DECL_UNSETENV=0
53921   fi
53922   for ac_func in unsetenv
53923 do :
53924   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
53925 if test "x$ac_cv_func_unsetenv" = xyes; then :
53926   cat >>confdefs.h <<_ACEOF
53927 #define HAVE_UNSETENV 1
53928 _ACEOF
53929
53930 fi
53931 done
53932
53933   if test $ac_cv_func_unsetenv = no; then
53934     HAVE_UNSETENV=0
53935   else
53936     HAVE_UNSETENV=1
53937         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
53938 $as_echo_n "checking for unsetenv() return type... " >&6; }
53939 if ${gt_cv_func_unsetenv_ret+:} false; then :
53940   $as_echo_n "(cached) " >&6
53941 else
53942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53943 /* end confdefs.h.  */
53944
53945 #undef _BSD
53946 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
53947 #include <stdlib.h>
53948 extern
53949 #ifdef __cplusplus
53950 "C"
53951 #endif
53952 int unsetenv (const char *name);
53953
53954 int
53955 main ()
53956 {
53957
53958   ;
53959   return 0;
53960 }
53961 _ACEOF
53962 if ac_fn_c_try_compile "$LINENO"; then :
53963   gt_cv_func_unsetenv_ret='int'
53964 else
53965   gt_cv_func_unsetenv_ret='void'
53966 fi
53967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53968 fi
53969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
53970 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
53971     if test $gt_cv_func_unsetenv_ret = 'void'; then
53972
53973 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
53974
53975       REPLACE_UNSETENV=1
53976     fi
53977
53978                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
53979 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
53980 if ${gl_cv_func_unsetenv_works+:} false; then :
53981   $as_echo_n "(cached) " >&6
53982 else
53983   if test "$cross_compiling" = yes; then :
53984   case "$host_os" in
53985                  # Guess yes on glibc systems.
53986          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
53987                  # If we don't know, assume the worst.
53988          *)      gl_cv_func_unsetenv_works="guessing no" ;;
53989        esac
53990
53991 else
53992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53993 /* end confdefs.h.  */
53994
53995        #include <stdlib.h>
53996        #include <errno.h>
53997        extern char **environ;
53998
53999 int
54000 main ()
54001 {
54002
54003        char entry1[] = "a=1";
54004        char entry2[] = "b=2";
54005        char *env[] = { entry1, entry2, NULL };
54006        if (putenv ((char *) "a=1")) return 1;
54007        if (putenv (entry2)) return 2;
54008        entry2[0] = 'a';
54009        unsetenv ("a");
54010        if (getenv ("a")) return 3;
54011        if (!unsetenv ("") || errno != EINVAL) return 4;
54012        entry2[0] = 'b';
54013        environ = env;
54014        if (!getenv ("a")) return 5;
54015        entry2[0] = 'a';
54016        unsetenv ("a");
54017        if (getenv ("a")) return 6;
54018
54019   ;
54020   return 0;
54021 }
54022 _ACEOF
54023 if ac_fn_c_try_run "$LINENO"; then :
54024   gl_cv_func_unsetenv_works=yes
54025 else
54026   gl_cv_func_unsetenv_works=no
54027 fi
54028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54029   conftest.$ac_objext conftest.beam conftest.$ac_ext
54030 fi
54031
54032 fi
54033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
54034 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
54035     case "$gl_cv_func_unsetenv_works" in
54036       *yes) ;;
54037       *)
54038         REPLACE_UNSETENV=1
54039         ;;
54040     esac
54041   fi
54042
54043   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
54044
54045
54046
54047
54048
54049
54050
54051
54052   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
54053
54054
54055
54056
54057
54058   fi
54059
54060
54061
54062
54063
54064           GNULIB_UNSETENV=1
54065
54066
54067
54068
54069
54070 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
54071
54072
54073
54074
54075
54076   if test $ac_cv_func_vasnprintf = no; then
54077
54078
54079
54080
54081
54082
54083
54084
54085
54086
54087   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
54088
54089
54090
54091
54092
54093
54094
54095
54096
54097   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
54098
54099
54100
54101
54102
54103
54104
54105
54106
54107   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
54108
54109
54110
54111
54112
54113
54114
54115
54116
54117   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
54118
54119   if test $ac_cv_func_vasnprintf = yes; then
54120
54121 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
54122
54123   fi
54124
54125
54126
54127
54128
54129
54130
54131
54132
54133
54134
54135   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
54136 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
54137
54138 else
54139
54140 $as_echo "#define ptrdiff_t long" >>confdefs.h
54141
54142
54143 fi
54144
54145
54146
54147
54148
54149
54150
54151   fi
54152
54153
54154   for ac_func in vasprintf
54155 do :
54156   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
54157 if test "x$ac_cv_func_vasprintf" = xyes; then :
54158   cat >>confdefs.h <<_ACEOF
54159 #define HAVE_VASPRINTF 1
54160 _ACEOF
54161
54162 fi
54163 done
54164
54165   if test $ac_cv_func_vasprintf = no; then
54166
54167
54168
54169
54170
54171
54172
54173
54174
54175   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
54176
54177
54178
54179
54180
54181
54182
54183
54184
54185   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
54186
54187
54188   if test $ac_cv_func_vasprintf = yes; then
54189     REPLACE_VASPRINTF=1
54190   else
54191     HAVE_VASPRINTF=0
54192   fi
54193
54194
54195
54196
54197
54198
54199
54200
54201   fi
54202
54203
54204
54205
54206
54207
54208           GNULIB_VASPRINTF=1
54209
54210
54211
54212
54213
54214 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
54215
54216
54217
54218
54219
54220   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
54221
54222
54223
54224   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
54225
54226
54227
54228   gl_cv_func_vsnprintf_usable=no
54229   for ac_func in vsnprintf
54230 do :
54231   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
54232 if test "x$ac_cv_func_vsnprintf" = xyes; then :
54233   cat >>confdefs.h <<_ACEOF
54234 #define HAVE_VSNPRINTF 1
54235 _ACEOF
54236
54237 fi
54238 done
54239
54240   if test $ac_cv_func_vsnprintf = yes; then
54241
54242
54243
54244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
54245 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
54246 if ${gl_cv_func_snprintf_size1+:} false; then :
54247   $as_echo_n "(cached) " >&6
54248 else
54249
54250       if test "$cross_compiling" = yes; then :
54251   gl_cv_func_snprintf_size1="guessing yes"
54252 else
54253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54254 /* end confdefs.h.  */
54255
54256 #include <stdio.h>
54257 #if HAVE_SNPRINTF
54258 # define my_snprintf snprintf
54259 #else
54260 # include <stdarg.h>
54261 static int my_snprintf (char *buf, int size, const char *format, ...)
54262 {
54263   va_list args;
54264   int ret;
54265   va_start (args, format);
54266   ret = vsnprintf (buf, size, format, args);
54267   va_end (args);
54268   return ret;
54269 }
54270 #endif
54271 int main()
54272 {
54273   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
54274   my_snprintf (buf, 1, "%d", 12345);
54275   return buf[1] != 'E';
54276 }
54277 _ACEOF
54278 if ac_fn_c_try_run "$LINENO"; then :
54279   gl_cv_func_snprintf_size1=yes
54280 else
54281   gl_cv_func_snprintf_size1=no
54282 fi
54283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54284   conftest.$ac_objext conftest.beam conftest.$ac_ext
54285 fi
54286
54287
54288 fi
54289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
54290 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
54291
54292     case "$gl_cv_func_snprintf_size1" in
54293       *yes)
54294
54295         case "$gl_cv_func_snprintf_retval_c99" in
54296           *yes)
54297
54298
54299      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
54300 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
54301 if ${gl_cv_func_printf_positions+:} false; then :
54302   $as_echo_n "(cached) " >&6
54303 else
54304
54305       if test "$cross_compiling" = yes; then :
54306
54307          case "$host_os" in
54308            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
54309                          gl_cv_func_printf_positions="guessing no";;
54310            beos*)        gl_cv_func_printf_positions="guessing no";;
54311            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
54312            *)            gl_cv_func_printf_positions="guessing yes";;
54313          esac
54314
54315 else
54316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54317 /* end confdefs.h.  */
54318
54319 #include <stdio.h>
54320 #include <string.h>
54321 /* The string "%2$d %1$d", with dollar characters protected from the shell's
54322    dollar expansion (possibly an autoconf bug).  */
54323 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
54324 static char buf[100];
54325 int main ()
54326 {
54327   sprintf (buf, format, 33, 55);
54328   return (strcmp (buf, "55 33") != 0);
54329 }
54330 _ACEOF
54331 if ac_fn_c_try_run "$LINENO"; then :
54332   gl_cv_func_printf_positions=yes
54333 else
54334   gl_cv_func_printf_positions=no
54335 fi
54336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54337   conftest.$ac_objext conftest.beam conftest.$ac_ext
54338 fi
54339
54340
54341 fi
54342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
54343 $as_echo "$gl_cv_func_printf_positions" >&6; }
54344
54345             case "$gl_cv_func_printf_positions" in
54346               *yes)
54347                 gl_cv_func_vsnprintf_usable=yes
54348                 ;;
54349             esac
54350             ;;
54351         esac
54352         ;;
54353     esac
54354   fi
54355   if test $gl_cv_func_vsnprintf_usable = no; then
54356
54357
54358
54359
54360
54361
54362
54363
54364
54365
54366   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
54367
54368   if test $ac_cv_func_vsnprintf = yes; then
54369     REPLACE_VSNPRINTF=1
54370   fi
54371   :
54372
54373   fi
54374
54375   if test $ac_cv_have_decl_vsnprintf = no; then
54376     HAVE_DECL_VSNPRINTF=0
54377   fi
54378
54379
54380
54381
54382
54383
54384           GNULIB_VSNPRINTF=1
54385
54386
54387
54388
54389
54390 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
54391
54392
54393
54394
54395
54396   for ac_func in waitid
54397 do :
54398   ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
54399 if test "x$ac_cv_func_waitid" = xyes; then :
54400   cat >>confdefs.h <<_ACEOF
54401 #define HAVE_WAITID 1
54402 _ACEOF
54403
54404 fi
54405 done
54406
54407
54408
54409 for ac_func in waitpid
54410 do :
54411   ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
54412 if test "x$ac_cv_func_waitpid" = xyes; then :
54413   cat >>confdefs.h <<_ACEOF
54414 #define HAVE_WAITPID 1
54415 _ACEOF
54416
54417 fi
54418 done
54419
54420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
54421 $as_echo_n "checking for union wait... " >&6; }
54422 if ${gt_cv_union_wait+:} false; then :
54423   $as_echo_n "(cached) " >&6
54424 else
54425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54426 /* end confdefs.h.  */
54427 #include <sys/types.h>
54428 #include <sys/wait.h>
54429 int
54430 main ()
54431 {
54432 union wait status; int pid; pid = wait (&status);
54433 #ifdef WEXITSTATUS
54434 /* Some POSIXoid systems have both the new-style macros and the old
54435    union wait type, and they do not work together.  If union wait
54436    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
54437 if (WEXITSTATUS (status) != 0) pid = -1;
54438 #ifdef WTERMSIG
54439 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
54440 -- blow chunks here --
54441 #endif
54442 #endif
54443 #ifdef HAVE_WAITPID
54444 /* Make sure union wait works with waitpid.  */
54445 pid = waitpid (-1, &status, 0);
54446 #endif
54447
54448   ;
54449   return 0;
54450 }
54451 _ACEOF
54452 if ac_fn_c_try_link "$LINENO"; then :
54453   gt_cv_union_wait=yes
54454 else
54455   gt_cv_union_wait=no
54456 fi
54457 rm -f core conftest.err conftest.$ac_objext \
54458     conftest$ac_exeext conftest.$ac_ext
54459 fi
54460
54461 if test "$gt_cv_union_wait" = yes; then
54462
54463 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
54464
54465 fi
54466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_union_wait" >&5
54467 $as_echo "$gt_cv_union_wait" >&6; }
54468
54469
54470
54471   HAVE_WAITPID=1
54472   case $host_os in
54473     mingw*) HAVE_WAITPID=0 ;;
54474   esac
54475
54476   if test $HAVE_WAITPID = 0; then
54477
54478
54479
54480
54481
54482
54483
54484
54485   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
54486
54487   fi
54488
54489
54490
54491
54492
54493           GNULIB_WAITPID=1
54494
54495
54496
54497
54498
54499 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
54500
54501
54502
54503
54504
54505
54506
54507
54508
54509
54510
54511
54512
54513
54514
54515      if test $gl_cv_have_include_next = yes; then
54516        gl_cv_next_wchar_h='<'wchar.h'>'
54517      else
54518        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
54519 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
54520 if ${gl_cv_next_wchar_h+:} false; then :
54521   $as_echo_n "(cached) " >&6
54522 else
54523
54524              if test $ac_cv_header_wchar_h = yes; then
54525
54526
54527
54528
54529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54530 /* end confdefs.h.  */
54531 #include <wchar.h>
54532 _ACEOF
54533                 case "$host_os" in
54534     aix*) gl_absname_cpp="$ac_cpp -C" ;;
54535     *)    gl_absname_cpp="$ac_cpp" ;;
54536   esac
54537
54538   case "$host_os" in
54539     mingw*)
54540                                           gl_dirsep_regex='[/\\]'
54541       ;;
54542     *)
54543       gl_dirsep_regex='\/'
54544       ;;
54545   esac
54546       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
54547   gl_header_literal_regex=`echo 'wchar.h' \
54548                            | sed -e "$gl_make_literal_regex_sed"`
54549   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
54550       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
54551       s|^/[^/]|//&|
54552       p
54553       q
54554     }'
54555
54556         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
54557   sed -n "$gl_absolute_header_sed"`
54558
54559            gl_header=$gl_cv_absolute_wchar_h
54560            gl_cv_next_wchar_h='"'$gl_header'"'
54561           else
54562                gl_cv_next_wchar_h='<'wchar.h'>'
54563              fi
54564
54565
54566 fi
54567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
54568 $as_echo "$gl_cv_next_wchar_h" >&6; }
54569      fi
54570      NEXT_WCHAR_H=$gl_cv_next_wchar_h
54571
54572      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
54573        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
54574        gl_next_as_first_directive='<'wchar.h'>'
54575      else
54576        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
54577        gl_next_as_first_directive=$gl_cv_next_wchar_h
54578      fi
54579      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
54580
54581
54582
54583
54584   if test $ac_cv_header_wchar_h = yes; then
54585     HAVE_WCHAR_H=1
54586   else
54587     HAVE_WCHAR_H=0
54588   fi
54589
54590
54591
54592
54593
54594   if test $gt_cv_c_wint_t = yes; then
54595     HAVE_WINT_T=1
54596   else
54597     HAVE_WINT_T=0
54598   fi
54599
54600
54601
54602     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
54603     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
54604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
54605 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
54606 if eval \${$as_gl_Symbol+:} false; then :
54607   $as_echo_n "(cached) " >&6
54608 else
54609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54610 /* end confdefs.h.  */
54611
54612 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54613    <wchar.h>.
54614    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54615    included before <wchar.h>.  */
54616 #if !(defined __GLIBC__ && !defined __UCLIBC__)
54617 # include <stddef.h>
54618 # include <stdio.h>
54619 # include <time.h>
54620 #endif
54621 #include <wchar.h>
54622
54623 int
54624 main ()
54625 {
54626 #undef $gl_func
54627   (void) $gl_func;
54628   ;
54629   return 0;
54630 }
54631 _ACEOF
54632 if ac_fn_c_try_compile "$LINENO"; then :
54633   eval "$as_gl_Symbol=yes"
54634 else
54635   eval "$as_gl_Symbol=no"
54636 fi
54637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54638 fi
54639 eval ac_res=\$$as_gl_Symbol
54640                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
54641 $as_echo "$ac_res" >&6; }
54642     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
54643   cat >>confdefs.h <<_ACEOF
54644 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
54645 _ACEOF
54646
54647                      eval ac_cv_have_decl_$gl_func=yes
54648 fi
54649       done
54650
54651
54652
54653
54654
54655
54656
54657   if test $ac_cv_func_iswcntrl = yes; then
54658     HAVE_ISWCNTRL=1
54659   else
54660     HAVE_ISWCNTRL=0
54661   fi
54662
54663
54664
54665   if test $gt_cv_c_wint_t = yes; then
54666     HAVE_WINT_T=1
54667   else
54668     HAVE_WINT_T=0
54669   fi
54670
54671
54672
54673
54674
54675
54676
54677
54678
54679
54680
54681      if test $gl_cv_have_include_next = yes; then
54682        gl_cv_next_wctype_h='<'wctype.h'>'
54683      else
54684        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
54685 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
54686 if ${gl_cv_next_wctype_h+:} false; then :
54687   $as_echo_n "(cached) " >&6
54688 else
54689
54690              if test $ac_cv_header_wctype_h = yes; then
54691
54692
54693
54694
54695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54696 /* end confdefs.h.  */
54697 #include <wctype.h>
54698 _ACEOF
54699                 case "$host_os" in
54700     aix*) gl_absname_cpp="$ac_cpp -C" ;;
54701     *)    gl_absname_cpp="$ac_cpp" ;;
54702   esac
54703
54704   case "$host_os" in
54705     mingw*)
54706                                           gl_dirsep_regex='[/\\]'
54707       ;;
54708     *)
54709       gl_dirsep_regex='\/'
54710       ;;
54711   esac
54712       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
54713   gl_header_literal_regex=`echo 'wctype.h' \
54714                            | sed -e "$gl_make_literal_regex_sed"`
54715   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
54716       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
54717       s|^/[^/]|//&|
54718       p
54719       q
54720     }'
54721
54722         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
54723   sed -n "$gl_absolute_header_sed"`
54724
54725            gl_header=$gl_cv_absolute_wctype_h
54726            gl_cv_next_wctype_h='"'$gl_header'"'
54727           else
54728                gl_cv_next_wctype_h='<'wctype.h'>'
54729              fi
54730
54731
54732 fi
54733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
54734 $as_echo "$gl_cv_next_wctype_h" >&6; }
54735      fi
54736      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
54737
54738      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
54739        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
54740        gl_next_as_first_directive='<'wctype.h'>'
54741      else
54742        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
54743        gl_next_as_first_directive=$gl_cv_next_wctype_h
54744      fi
54745      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
54746
54747
54748
54749
54750   if test $ac_cv_header_wctype_h = yes; then
54751     if test $ac_cv_func_iswcntrl = yes; then
54752                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
54753 $as_echo_n "checking whether iswcntrl works... " >&6; }
54754 if ${gl_cv_func_iswcntrl_works+:} false; then :
54755   $as_echo_n "(cached) " >&6
54756 else
54757
54758           if test "$cross_compiling" = yes; then :
54759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54760 /* end confdefs.h.  */
54761 #include <stdlib.h>
54762                           #if __GNU_LIBRARY__ == 1
54763                           Linux libc5 i18n is broken.
54764                           #endif
54765 int
54766 main ()
54767 {
54768
54769   ;
54770   return 0;
54771 }
54772 _ACEOF
54773 if ac_fn_c_try_compile "$LINENO"; then :
54774   gl_cv_func_iswcntrl_works="guessing yes"
54775 else
54776   gl_cv_func_iswcntrl_works="guessing no"
54777 fi
54778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54779
54780 else
54781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54782 /* end confdefs.h.  */
54783
54784                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
54785                   included before <wchar.h>.
54786                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
54787                   must be included before <wchar.h>.  */
54788                #include <stddef.h>
54789                #include <stdio.h>
54790                #include <time.h>
54791                #include <wchar.h>
54792                #include <wctype.h>
54793                int main () { return iswprint ('x') == 0; }
54794
54795 _ACEOF
54796 if ac_fn_c_try_run "$LINENO"; then :
54797   gl_cv_func_iswcntrl_works=yes
54798 else
54799   gl_cv_func_iswcntrl_works=no
54800 fi
54801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54802   conftest.$ac_objext conftest.beam conftest.$ac_ext
54803 fi
54804
54805
54806 fi
54807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
54808 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
54809     fi
54810     HAVE_WCTYPE_H=1
54811   else
54812     HAVE_WCTYPE_H=0
54813   fi
54814
54815
54816   case "$gl_cv_func_iswcntrl_works" in
54817     *yes) REPLACE_ISWCNTRL=0 ;;
54818     *)    REPLACE_ISWCNTRL=1 ;;
54819   esac
54820
54821
54822   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
54823         :
54824   fi
54825
54826   if test $REPLACE_ISWCNTRL = 1; then
54827     REPLACE_TOWLOWER=1
54828   else
54829     for ac_func in towlower
54830 do :
54831   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
54832 if test "x$ac_cv_func_towlower" = xyes; then :
54833   cat >>confdefs.h <<_ACEOF
54834 #define HAVE_TOWLOWER 1
54835 _ACEOF
54836
54837 fi
54838 done
54839
54840     if test $ac_cv_func_towlower = yes; then
54841       REPLACE_TOWLOWER=0
54842     else
54843       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
54844              included before <wchar.h>.
54845              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
54846              must be included before <wchar.h>.  */
54847           #include <stddef.h>
54848           #include <stdio.h>
54849           #include <time.h>
54850           #include <wchar.h>
54851           #if HAVE_WCTYPE_H
54852           # include <wctype.h>
54853           #endif
54854
54855 "
54856 if test "x$ac_cv_have_decl_towlower" = xyes; then :
54857   ac_have_decl=1
54858 else
54859   ac_have_decl=0
54860 fi
54861
54862 cat >>confdefs.h <<_ACEOF
54863 #define HAVE_DECL_TOWLOWER $ac_have_decl
54864 _ACEOF
54865
54866       if test $ac_cv_have_decl_towlower = yes; then
54867                                 REPLACE_TOWLOWER=1
54868       else
54869         REPLACE_TOWLOWER=0
54870       fi
54871     fi
54872   fi
54873
54874
54875   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
54876         :
54877   fi
54878
54879           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
54880 $as_echo_n "checking for wctype_t... " >&6; }
54881 if ${gl_cv_type_wctype_t+:} false; then :
54882   $as_echo_n "(cached) " >&6
54883 else
54884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54885 /* end confdefs.h.  */
54886 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
54887                included before <wchar.h>.
54888                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
54889                must be included before <wchar.h>.  */
54890             #include <stddef.h>
54891             #include <stdio.h>
54892             #include <time.h>
54893             #include <wchar.h>
54894             #if HAVE_WCTYPE_H
54895             # include <wctype.h>
54896             #endif
54897             wctype_t a;
54898
54899 int
54900 main ()
54901 {
54902
54903   ;
54904   return 0;
54905 }
54906 _ACEOF
54907 if ac_fn_c_try_compile "$LINENO"; then :
54908   gl_cv_type_wctype_t=yes
54909 else
54910   gl_cv_type_wctype_t=no
54911 fi
54912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54913
54914 fi
54915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
54916 $as_echo "$gl_cv_type_wctype_t" >&6; }
54917   if test $gl_cv_type_wctype_t = no; then
54918     HAVE_WCTYPE_T=0
54919   fi
54920
54921       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
54922 $as_echo_n "checking for wctrans_t... " >&6; }
54923 if ${gl_cv_type_wctrans_t+:} false; then :
54924   $as_echo_n "(cached) " >&6
54925 else
54926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54927 /* end confdefs.h.  */
54928 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
54929                included before <wchar.h>.
54930                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
54931                must be included before <wchar.h>.  */
54932             #include <stddef.h>
54933             #include <stdio.h>
54934             #include <time.h>
54935             #include <wchar.h>
54936             #include <wctype.h>
54937             wctrans_t a;
54938
54939 int
54940 main ()
54941 {
54942
54943   ;
54944   return 0;
54945 }
54946 _ACEOF
54947 if ac_fn_c_try_compile "$LINENO"; then :
54948   gl_cv_type_wctrans_t=yes
54949 else
54950   gl_cv_type_wctrans_t=no
54951 fi
54952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54953
54954 fi
54955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
54956 $as_echo "$gl_cv_type_wctrans_t" >&6; }
54957   if test $gl_cv_type_wctrans_t = no; then
54958     HAVE_WCTRANS_T=0
54959   fi
54960
54961
54962     for gl_func in wctype iswctype wctrans towctrans     ; do
54963     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
54964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
54965 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
54966 if eval \${$as_gl_Symbol+:} false; then :
54967   $as_echo_n "(cached) " >&6
54968 else
54969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54970 /* end confdefs.h.  */
54971
54972 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54973    <wchar.h>.
54974    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54975    included before <wchar.h>.  */
54976 #if !(defined __GLIBC__ && !defined __UCLIBC__)
54977 # include <stddef.h>
54978 # include <stdio.h>
54979 # include <time.h>
54980 # include <wchar.h>
54981 #endif
54982 #include <wctype.h>
54983
54984 int
54985 main ()
54986 {
54987 #undef $gl_func
54988   (void) $gl_func;
54989   ;
54990   return 0;
54991 }
54992 _ACEOF
54993 if ac_fn_c_try_compile "$LINENO"; then :
54994   eval "$as_gl_Symbol=yes"
54995 else
54996   eval "$as_gl_Symbol=no"
54997 fi
54998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54999 fi
55000 eval ac_res=\$$as_gl_Symbol
55001                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
55002 $as_echo "$ac_res" >&6; }
55003     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
55004   cat >>confdefs.h <<_ACEOF
55005 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
55006 _ACEOF
55007
55008                      eval ac_cv_have_decl_$gl_func=yes
55009 fi
55010       done
55011
55012
55013
55014
55015
55016
55017
55018
55019
55020
55021
55022
55023
55024   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
55025 /* AIX 3.2.5 declares wcwidth in <string.h>. */
55026 #include <string.h>
55027 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
55028    <wchar.h>.
55029    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
55030    before <wchar.h>.  */
55031 #include <stddef.h>
55032 #include <stdio.h>
55033 #include <time.h>
55034 #include <wchar.h>
55035
55036 "
55037 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
55038   ac_have_decl=1
55039 else
55040   ac_have_decl=0
55041 fi
55042
55043 cat >>confdefs.h <<_ACEOF
55044 #define HAVE_DECL_WCWIDTH $ac_have_decl
55045 _ACEOF
55046
55047   if test $ac_cv_have_decl_wcwidth != yes; then
55048     HAVE_DECL_WCWIDTH=0
55049   fi
55050
55051   if test $ac_cv_func_wcwidth = yes; then
55052     HAVE_WCWIDTH=1
55053                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
55054 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
55055 if ${gl_cv_func_wcwidth_works+:} false; then :
55056   $as_echo_n "(cached) " >&6
55057 else
55058
55059         if test "$cross_compiling" = yes; then :
55060
55061            case "$host_os" in
55062                      # Guess yes on glibc and AIX 7 systems.
55063              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
55064              *)                  gl_cv_func_wcwidth_works="guessing no";;
55065            esac
55066
55067 else
55068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55069 /* end confdefs.h.  */
55070
55071 #include <locale.h>
55072 /* AIX 3.2.5 declares wcwidth in <string.h>. */
55073 #include <string.h>
55074 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
55075    <wchar.h>.
55076    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
55077    before <wchar.h>.  */
55078 #include <stddef.h>
55079 #include <stdio.h>
55080 #include <time.h>
55081 #include <wchar.h>
55082 #if !HAVE_DECL_WCWIDTH
55083 extern
55084 # ifdef __cplusplus
55085 "C"
55086 # endif
55087 int wcwidth (int);
55088 #endif
55089 int main ()
55090 {
55091   int result = 0;
55092   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
55093     {
55094       if (wcwidth (0x0301) > 0)
55095         result |= 1;
55096       if (wcwidth (0x05B0) > 0)
55097         result |= 2;
55098       if (wcwidth (0x200B) > 0)
55099         result |= 4;
55100       if (wcwidth (0xFF1A) == 0)
55101         result |= 8;
55102     }
55103   return result;
55104 }
55105 _ACEOF
55106 if ac_fn_c_try_run "$LINENO"; then :
55107   gl_cv_func_wcwidth_works=yes
55108 else
55109   gl_cv_func_wcwidth_works=no
55110 fi
55111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55112   conftest.$ac_objext conftest.beam conftest.$ac_ext
55113 fi
55114
55115
55116 fi
55117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
55118 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
55119     case "$gl_cv_func_wcwidth_works" in
55120       *yes) ;;
55121       *no) REPLACE_WCWIDTH=1 ;;
55122     esac
55123   else
55124     HAVE_WCWIDTH=0
55125   fi
55126
55127   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
55128
55129
55130
55131
55132
55133
55134
55135
55136   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
55137
55138   fi
55139
55140
55141
55142
55143
55144           GNULIB_WCWIDTH=1
55145
55146
55147
55148
55149
55150 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
55151
55152
55153
55154
55155
55156
55157   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
55158     REPLACE_WRITE=1
55159   fi
55160
55161
55162
55163
55164     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
55165       REPLACE_WRITE=1
55166     fi
55167
55168
55169
55170   if test $REPLACE_WRITE = 1; then
55171
55172
55173
55174
55175
55176
55177
55178
55179   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
55180
55181     :
55182   fi
55183
55184
55185
55186
55187
55188           GNULIB_WRITE=1
55189
55190
55191
55192
55193
55194 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
55195
55196
55197
55198
55199
55200
55201
55202
55203
55204
55205
55206   gl_LIBOBJS="$gl_LIBOBJS xmemdup0.$ac_objext"
55207
55208
55209
55210   for ac_header in stdint.h
55211 do :
55212   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
55213 if test "x$ac_cv_header_stdint_h" = xyes; then :
55214   cat >>confdefs.h <<_ACEOF
55215 #define HAVE_STDINT_H 1
55216 _ACEOF
55217
55218 fi
55219
55220 done
55221
55222
55223   :
55224
55225
55226   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
55227
55228   # End of code from modules
55229
55230
55231
55232
55233
55234
55235
55236
55237
55238   gltests_libdeps=
55239   gltests_ltlibdeps=
55240
55241
55242
55243
55244
55245
55246
55247
55248
55249   gl_source_base='gnulib-tests'
55250   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
55251
55252   gl_module_indicator_condition=$gltests_WITNESS
55253
55254
55255
55256
55257
55258
55259
55260   if test $ac_cv_func_btowc = no; then
55261     HAVE_BTOWC=0
55262   else
55263
55264
55265
55266
55267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
55268 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
55269 if ${gl_cv_func_btowc_nul+:} false; then :
55270   $as_echo_n "(cached) " >&6
55271 else
55272
55273         if test "$cross_compiling" = yes; then :
55274
55275            case "$host_os" in
55276                       # Guess no on Cygwin.
55277              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
55278                       # Guess yes otherwise.
55279              *)       gl_cv_func_btowc_nul="guessing yes" ;;
55280            esac
55281
55282 else
55283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55284 /* end confdefs.h.  */
55285
55286 #include <string.h>
55287 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
55288    <wchar.h>.
55289    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
55290    included before <wchar.h>.  */
55291 #include <stddef.h>
55292 #include <stdio.h>
55293 #include <time.h>
55294 #include <wchar.h>
55295 int main ()
55296 {
55297   if (btowc ('\0') != 0)
55298     return 1;
55299   return 0;
55300 }
55301 _ACEOF
55302 if ac_fn_c_try_run "$LINENO"; then :
55303   gl_cv_func_btowc_nul=yes
55304 else
55305   gl_cv_func_btowc_nul=no
55306 fi
55307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55308   conftest.$ac_objext conftest.beam conftest.$ac_ext
55309 fi
55310
55311
55312 fi
55313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
55314 $as_echo "$gl_cv_func_btowc_nul" >&6; }
55315
55316         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
55317 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
55318 if ${gl_cv_func_btowc_eof+:} false; then :
55319   $as_echo_n "(cached) " >&6
55320 else
55321
55322                         case "$host_os" in
55323                  # Guess no on IRIX.
55324           irix*) gl_cv_func_btowc_eof="guessing no" ;;
55325                  # Guess yes otherwise.
55326           *)     gl_cv_func_btowc_eof="guessing yes" ;;
55327         esac
55328         if test $LOCALE_FR != none; then
55329           if test "$cross_compiling" = yes; then :
55330   :
55331 else
55332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55333 /* end confdefs.h.  */
55334
55335 #include <locale.h>
55336 #include <string.h>
55337 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
55338    <wchar.h>.
55339    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
55340    included before <wchar.h>.  */
55341 #include <stddef.h>
55342 #include <stdio.h>
55343 #include <time.h>
55344 #include <wchar.h>
55345 int main ()
55346 {
55347   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
55348     {
55349       if (btowc (EOF) != WEOF)
55350         return 1;
55351     }
55352   return 0;
55353 }
55354 _ACEOF
55355 if ac_fn_c_try_run "$LINENO"; then :
55356   gl_cv_func_btowc_eof=yes
55357 else
55358   gl_cv_func_btowc_eof=no
55359 fi
55360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55361   conftest.$ac_objext conftest.beam conftest.$ac_ext
55362 fi
55363
55364         fi
55365
55366 fi
55367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
55368 $as_echo "$gl_cv_func_btowc_eof" >&6; }
55369
55370     case "$gl_cv_func_btowc_nul" in
55371       *yes) ;;
55372       *) REPLACE_BTOWC=1 ;;
55373     esac
55374     case "$gl_cv_func_btowc_eof" in
55375       *yes) ;;
55376       *) REPLACE_BTOWC=1 ;;
55377     esac
55378   fi
55379
55380   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
55381
55382
55383
55384
55385
55386
55387
55388
55389   gltests_LIBOBJS="$gltests_LIBOBJS btowc.$ac_objext"
55390
55391
55392   :
55393
55394   fi
55395
55396
55397
55398
55399
55400     if test "$GNULIB_BTOWC" != 1; then
55401         if test "$GNULIB_BTOWC" = 0; then
55402       GNULIB_BTOWC=$gl_module_indicator_condition
55403     else
55404       GNULIB_BTOWC="($GNULIB_BTOWC || $gl_module_indicator_condition)"
55405     fi
55406   fi
55407
55408
55409
55410
55411
55412 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
55413
55414
55415
55416
55417
55418
55419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
55420 $as_echo_n "checking for a traditional french locale... " >&6; }
55421 if ${gt_cv_locale_fr+:} false; then :
55422   $as_echo_n "(cached) " >&6
55423 else
55424
55425     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55426 /* end confdefs.h.  */
55427
55428 #include <locale.h>
55429 #include <time.h>
55430 #if HAVE_LANGINFO_CODESET
55431 # include <langinfo.h>
55432 #endif
55433 #include <stdlib.h>
55434 #include <string.h>
55435 struct tm t;
55436 char buf[16];
55437 int main () {
55438   /* Check whether the given locale name is recognized by the system.  */
55439 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
55440   /* On native Windows, setlocale(category, "") looks at the system settings,
55441      not at the environment variables.  Also, when an encoding suffix such
55442      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
55443      category of the locale to "C".  */
55444   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
55445       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
55446     return 1;
55447 #else
55448   if (setlocale (LC_ALL, "") == NULL) return 1;
55449 #endif
55450   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55451      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55452      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55453      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55454      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55455      some unit tests fail.
55456      On MirBSD 10, when an unsupported locale is specified, setlocale()
55457      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
55458 #if HAVE_LANGINFO_CODESET
55459   {
55460     const char *cs = nl_langinfo (CODESET);
55461     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
55462         || strcmp (cs, "UTF-8") == 0)
55463       return 1;
55464   }
55465 #endif
55466 #ifdef __CYGWIN__
55467   /* On Cygwin, avoid locale names without encoding suffix, because the
55468      locale_charset() function relies on the encoding suffix.  Note that
55469      LC_ALL is set on the command line.  */
55470   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55471 #endif
55472   /* Check whether in the abbreviation of the second month, the second
55473      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
55474      one byte long. This excludes the UTF-8 encoding.  */
55475   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55476   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
55477 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
55478   /* Check whether the decimal separator is a comma.
55479      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55480      are nl_langinfo(RADIXCHAR) are both ".".  */
55481   if (localeconv () ->decimal_point[0] != ',') return 1;
55482 #endif
55483   return 0;
55484 }
55485
55486 _ACEOF
55487     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55488   (eval $ac_link) 2>&5
55489   ac_status=$?
55490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55491   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55492       case "$host_os" in
55493         # Handle native Windows specially, because there setlocale() interprets
55494         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
55495         # "fr" or "fra" as "French" or "French_France.1252",
55496         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
55497         # "ja" as "Japanese" or "Japanese_Japan.932",
55498         # and similar.
55499         mingw*)
55500           # Test for the native Windows locale name.
55501           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55502             gt_cv_locale_fr=French_France.1252
55503           else
55504             # None found.
55505             gt_cv_locale_fr=none
55506           fi
55507           ;;
55508         *)
55509           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55510           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
55511           # configure script would override the LC_ALL setting. Likewise for
55512           # LC_CTYPE, which is also set at the beginning of the configure script.
55513           # Test for the usual locale name.
55514           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55515             gt_cv_locale_fr=fr_FR
55516           else
55517             # Test for the locale name with explicit encoding suffix.
55518             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55519               gt_cv_locale_fr=fr_FR.ISO-8859-1
55520             else
55521               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
55522               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55523                 gt_cv_locale_fr=fr_FR.ISO8859-1
55524               else
55525                 # Test for the HP-UX locale name.
55526                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55527                   gt_cv_locale_fr=fr_FR.iso88591
55528                 else
55529                   # Test for the Solaris 7 locale name.
55530                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55531                     gt_cv_locale_fr=fr
55532                   else
55533                     # None found.
55534                     gt_cv_locale_fr=none
55535                   fi
55536                 fi
55537               fi
55538             fi
55539           fi
55540           ;;
55541       esac
55542     fi
55543     rm -fr conftest*
55544
55545 fi
55546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
55547 $as_echo "$gt_cv_locale_fr" >&6; }
55548   LOCALE_FR=$gt_cv_locale_fr
55549
55550
55551
55552
55553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
55554 $as_echo_n "checking for a french Unicode locale... " >&6; }
55555 if ${gt_cv_locale_fr_utf8+:} false; then :
55556   $as_echo_n "(cached) " >&6
55557 else
55558
55559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55560 /* end confdefs.h.  */
55561
55562 #include <locale.h>
55563 #include <time.h>
55564 #if HAVE_LANGINFO_CODESET
55565 # include <langinfo.h>
55566 #endif
55567 #include <stdlib.h>
55568 #include <string.h>
55569 struct tm t;
55570 char buf[16];
55571 int main () {
55572   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
55573      imitates locale dependent behaviour by looking at the environment
55574      variables, and all locales use the UTF-8 encoding.  */
55575 #if !(defined __BEOS__ || defined __HAIKU__)
55576   /* Check whether the given locale name is recognized by the system.  */
55577 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
55578   /* On native Windows, setlocale(category, "") looks at the system settings,
55579      not at the environment variables.  Also, when an encoding suffix such
55580      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
55581      category of the locale to "C".  */
55582   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
55583       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
55584     return 1;
55585 # else
55586   if (setlocale (LC_ALL, "") == NULL) return 1;
55587 # endif
55588   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55589      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55590      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55591      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55592      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55593      some unit tests fail.  */
55594 # if HAVE_LANGINFO_CODESET
55595   {
55596     const char *cs = nl_langinfo (CODESET);
55597     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55598       return 1;
55599   }
55600 # endif
55601 # ifdef __CYGWIN__
55602   /* On Cygwin, avoid locale names without encoding suffix, because the
55603      locale_charset() function relies on the encoding suffix.  Note that
55604      LC_ALL is set on the command line.  */
55605   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55606 # endif
55607   /* Check whether in the abbreviation of the second month, the second
55608      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
55609      two bytes long, with UTF-8 encoding.  */
55610   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55611   if (strftime (buf, sizeof (buf), "%b", &t) < 4
55612       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
55613     return 1;
55614 #endif
55615 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
55616   /* Check whether the decimal separator is a comma.
55617      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55618      are nl_langinfo(RADIXCHAR) are both ".".  */
55619   if (localeconv () ->decimal_point[0] != ',') return 1;
55620 #endif
55621   return 0;
55622 }
55623
55624 _ACEOF
55625     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55626   (eval $ac_link) 2>&5
55627   ac_status=$?
55628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55629   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55630       case "$host_os" in
55631         # Handle native Windows specially, because there setlocale() interprets
55632         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
55633         # "fr" or "fra" as "French" or "French_France.1252",
55634         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
55635         # "ja" as "Japanese" or "Japanese_Japan.932",
55636         # and similar.
55637         mingw*)
55638           # Test for the hypothetical native Windows locale name.
55639           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55640             gt_cv_locale_fr_utf8=French_France.65001
55641           else
55642             # None found.
55643             gt_cv_locale_fr_utf8=none
55644           fi
55645           ;;
55646         *)
55647           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55648           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
55649           # configure script would override the LC_ALL setting. Likewise for
55650           # LC_CTYPE, which is also set at the beginning of the configure script.
55651           # Test for the usual locale name.
55652           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55653             gt_cv_locale_fr_utf8=fr_FR
55654           else
55655             # Test for the locale name with explicit encoding suffix.
55656             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55657               gt_cv_locale_fr_utf8=fr_FR.UTF-8
55658             else
55659               # Test for the Solaris 7 locale name.
55660               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55661                 gt_cv_locale_fr_utf8=fr.UTF-8
55662               else
55663                 # None found.
55664                 gt_cv_locale_fr_utf8=none
55665               fi
55666             fi
55667           fi
55668           ;;
55669       esac
55670     fi
55671     rm -fr conftest*
55672
55673 fi
55674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
55675 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
55676   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
55677
55678
55679
55680
55681
55682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
55683 $as_echo_n "checking for a traditional french locale... " >&6; }
55684 if ${gt_cv_locale_fr+:} false; then :
55685   $as_echo_n "(cached) " >&6
55686 else
55687
55688     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55689 /* end confdefs.h.  */
55690
55691 #include <locale.h>
55692 #include <time.h>
55693 #if HAVE_LANGINFO_CODESET
55694 # include <langinfo.h>
55695 #endif
55696 #include <stdlib.h>
55697 #include <string.h>
55698 struct tm t;
55699 char buf[16];
55700 int main () {
55701   /* Check whether the given locale name is recognized by the system.  */
55702 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
55703   /* On native Windows, setlocale(category, "") looks at the system settings,
55704      not at the environment variables.  Also, when an encoding suffix such
55705      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
55706      category of the locale to "C".  */
55707   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
55708       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
55709     return 1;
55710 #else
55711   if (setlocale (LC_ALL, "") == NULL) return 1;
55712 #endif
55713   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55714      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55715      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55716      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55717      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55718      some unit tests fail.
55719      On MirBSD 10, when an unsupported locale is specified, setlocale()
55720      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
55721 #if HAVE_LANGINFO_CODESET
55722   {
55723     const char *cs = nl_langinfo (CODESET);
55724     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
55725         || strcmp (cs, "UTF-8") == 0)
55726       return 1;
55727   }
55728 #endif
55729 #ifdef __CYGWIN__
55730   /* On Cygwin, avoid locale names without encoding suffix, because the
55731      locale_charset() function relies on the encoding suffix.  Note that
55732      LC_ALL is set on the command line.  */
55733   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55734 #endif
55735   /* Check whether in the abbreviation of the second month, the second
55736      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
55737      one byte long. This excludes the UTF-8 encoding.  */
55738   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55739   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
55740 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
55741   /* Check whether the decimal separator is a comma.
55742      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55743      are nl_langinfo(RADIXCHAR) are both ".".  */
55744   if (localeconv () ->decimal_point[0] != ',') return 1;
55745 #endif
55746   return 0;
55747 }
55748
55749 _ACEOF
55750     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55751   (eval $ac_link) 2>&5
55752   ac_status=$?
55753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55754   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55755       case "$host_os" in
55756         # Handle native Windows specially, because there setlocale() interprets
55757         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
55758         # "fr" or "fra" as "French" or "French_France.1252",
55759         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
55760         # "ja" as "Japanese" or "Japanese_Japan.932",
55761         # and similar.
55762         mingw*)
55763           # Test for the native Windows locale name.
55764           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55765             gt_cv_locale_fr=French_France.1252
55766           else
55767             # None found.
55768             gt_cv_locale_fr=none
55769           fi
55770           ;;
55771         *)
55772           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55773           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
55774           # configure script would override the LC_ALL setting. Likewise for
55775           # LC_CTYPE, which is also set at the beginning of the configure script.
55776           # Test for the usual locale name.
55777           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55778             gt_cv_locale_fr=fr_FR
55779           else
55780             # Test for the locale name with explicit encoding suffix.
55781             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55782               gt_cv_locale_fr=fr_FR.ISO-8859-1
55783             else
55784               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
55785               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55786                 gt_cv_locale_fr=fr_FR.ISO8859-1
55787               else
55788                 # Test for the HP-UX locale name.
55789                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55790                   gt_cv_locale_fr=fr_FR.iso88591
55791                 else
55792                   # Test for the Solaris 7 locale name.
55793                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55794                     gt_cv_locale_fr=fr
55795                   else
55796                     # None found.
55797                     gt_cv_locale_fr=none
55798                   fi
55799                 fi
55800               fi
55801             fi
55802           fi
55803           ;;
55804       esac
55805     fi
55806     rm -fr conftest*
55807
55808 fi
55809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
55810 $as_echo "$gt_cv_locale_fr" >&6; }
55811   LOCALE_FR=$gt_cv_locale_fr
55812
55813
55814
55815
55816
55817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
55818 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
55819 if ${gt_cv_locale_tr_utf8+:} false; then :
55820   $as_echo_n "(cached) " >&6
55821 else
55822
55823     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55824 /* end confdefs.h.  */
55825
55826 #include <locale.h>
55827 #include <time.h>
55828 #if HAVE_LANGINFO_CODESET
55829 # include <langinfo.h>
55830 #endif
55831 #include <stdlib.h>
55832 #include <string.h>
55833 struct tm t;
55834 char buf[16];
55835 int main () {
55836   /* On BeOS, locales are not implemented in libc.  Rather, libintl
55837      imitates locale dependent behaviour by looking at the environment
55838      variables, and all locales use the UTF-8 encoding.  But BeOS does not
55839      implement the Turkish upper-/lowercase mappings.  Therefore, let this
55840      program return 1 on BeOS.  */
55841   /* Check whether the given locale name is recognized by the system.  */
55842 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
55843   /* On native Windows, setlocale(category, "") looks at the system settings,
55844      not at the environment variables.  Also, when an encoding suffix such
55845      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
55846      category of the locale to "C".  */
55847   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
55848       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
55849     return 1;
55850 #else
55851   if (setlocale (LC_ALL, "") == NULL) return 1;
55852 #endif
55853   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55854      On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
55855      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55856      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55857      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55858      some unit tests fail.  */
55859 #if HAVE_LANGINFO_CODESET
55860   {
55861     const char *cs = nl_langinfo (CODESET);
55862     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55863       return 1;
55864   }
55865 #endif
55866 #ifdef __CYGWIN__
55867   /* On Cygwin, avoid locale names without encoding suffix, because the
55868      locale_charset() function relies on the encoding suffix.  Note that
55869      LC_ALL is set on the command line.  */
55870   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55871 #endif
55872   /* Check whether in the abbreviation of the eighth month, the second
55873      character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
55874      two bytes long, with UTF-8 encoding.  */
55875   t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
55876   if (strftime (buf, sizeof (buf), "%b", &t) < 4
55877       || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
55878     return 1;
55879   /* Check whether the upper-/lowercase mappings are as expected for
55880      Turkish.  */
55881   if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
55882       || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
55883     return 1;
55884   return 0;
55885 }
55886
55887 _ACEOF
55888     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55889   (eval $ac_link) 2>&5
55890   ac_status=$?
55891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55892   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55893       case "$host_os" in
55894         # Handle native Windows specially, because there setlocale() interprets
55895         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
55896         # "fr" or "fra" as "French" or "French_France.1252",
55897         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
55898         # "ja" as "Japanese" or "Japanese_Japan.932",
55899         # and similar.
55900         mingw*)
55901           # Test for the hypothetical native Windows locale name.
55902           if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55903             gt_cv_locale_tr_utf8=Turkish_Turkey.65001
55904           else
55905             # None found.
55906             gt_cv_locale_tr_utf8=none
55907           fi
55908           ;;
55909         *)
55910           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55911           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
55912           # configure script would override the LC_ALL setting. Likewise for
55913           # LC_CTYPE, which is also set at the beginning of the configure script.
55914           # Test for the usual locale name.
55915           if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55916             gt_cv_locale_tr_utf8=tr_TR
55917           else
55918             # Test for the locale name with explicit encoding suffix.
55919             if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55920               gt_cv_locale_tr_utf8=tr_TR.UTF-8
55921             else
55922               # Test for the Solaris 7 locale name.
55923               if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55924                 gt_cv_locale_tr_utf8=tr.UTF-8
55925               else
55926                 # None found.
55927                 gt_cv_locale_tr_utf8=none
55928               fi
55929             fi
55930           fi
55931           ;;
55932       esac
55933     else
55934       gt_cv_locale_tr_utf8=none
55935     fi
55936     rm -fr conftest*
55937
55938 fi
55939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
55940 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
55941   LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
55942
55943
55944
55945
55946
55947
55948
55949
55950
55951
55952
55953
55954
55955      if test $gl_cv_have_include_next = yes; then
55956        gl_cv_next_ctype_h='<'ctype.h'>'
55957      else
55958        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
55959 $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
55960 if ${gl_cv_next_ctype_h+:} false; then :
55961   $as_echo_n "(cached) " >&6
55962 else
55963
55964
55965
55966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55967 /* end confdefs.h.  */
55968 #include <ctype.h>
55969 _ACEOF
55970                 case "$host_os" in
55971     aix*) gl_absname_cpp="$ac_cpp -C" ;;
55972     *)    gl_absname_cpp="$ac_cpp" ;;
55973   esac
55974
55975   case "$host_os" in
55976     mingw*)
55977                                           gl_dirsep_regex='[/\\]'
55978       ;;
55979     *)
55980       gl_dirsep_regex='\/'
55981       ;;
55982   esac
55983       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
55984   gl_header_literal_regex=`echo 'ctype.h' \
55985                            | sed -e "$gl_make_literal_regex_sed"`
55986   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
55987       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
55988       s|^/[^/]|//&|
55989       p
55990       q
55991     }'
55992
55993         gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
55994   sed -n "$gl_absolute_header_sed"`
55995
55996            gl_header=$gl_cv_absolute_ctype_h
55997            gl_cv_next_ctype_h='"'$gl_header'"'
55998
55999
56000 fi
56001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
56002 $as_echo "$gl_cv_next_ctype_h" >&6; }
56003      fi
56004      NEXT_CTYPE_H=$gl_cv_next_ctype_h
56005
56006      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
56007        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
56008        gl_next_as_first_directive='<'ctype.h'>'
56009      else
56010        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
56011        gl_next_as_first_directive=$gl_cv_next_ctype_h
56012      fi
56013      NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive
56014
56015
56016
56017
56018
56019
56020     for gl_func in isblank; do
56021     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
56022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
56023 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
56024 if eval \${$as_gl_Symbol+:} false; then :
56025   $as_echo_n "(cached) " >&6
56026 else
56027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56028 /* end confdefs.h.  */
56029 #include <ctype.h>
56030
56031 int
56032 main ()
56033 {
56034 #undef $gl_func
56035   (void) $gl_func;
56036   ;
56037   return 0;
56038 }
56039 _ACEOF
56040 if ac_fn_c_try_compile "$LINENO"; then :
56041   eval "$as_gl_Symbol=yes"
56042 else
56043   eval "$as_gl_Symbol=no"
56044 fi
56045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56046 fi
56047 eval ac_res=\$$as_gl_Symbol
56048                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
56049 $as_echo "$ac_res" >&6; }
56050     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
56051   cat >>confdefs.h <<_ACEOF
56052 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
56053 _ACEOF
56054
56055                      eval ac_cv_have_decl_$gl_func=yes
56056 fi
56057       done
56058
56059
56060
56061
56062
56063   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
56064     REPLACE_DUP=1
56065   fi
56066
56067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
56068 $as_echo_n "checking whether dup works... " >&6; }
56069 if ${gl_cv_func_dup_works+:} false; then :
56070   $as_echo_n "(cached) " >&6
56071 else
56072   if test "$cross_compiling" = yes; then :
56073   gl_cv_func_dup_works='guessing yes'
56074 else
56075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56076 /* end confdefs.h.  */
56077 #include <unistd.h>
56078                          #include <fcntl.h>
56079                          #include <errno.h>
56080 int
56081 main ()
56082 {
56083 /* On OS/2 kLIBC, dup does not work on a directory fd.  */
56084            int fd = open (".", O_RDONLY);
56085            return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
56086
56087   ;
56088   return 0;
56089 }
56090
56091 _ACEOF
56092 if ac_fn_c_try_run "$LINENO"; then :
56093   gl_cv_func_dup_works=yes
56094 else
56095   gl_cv_func_dup_works=no
56096 fi
56097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56098   conftest.$ac_objext conftest.beam conftest.$ac_ext
56099 fi
56100
56101
56102 fi
56103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
56104 $as_echo "$gl_cv_func_dup_works" >&6; }
56105   case "$gl_cv_func_dup_works" in
56106     *yes) ;;
56107     *)
56108       REPLACE_DUP=1
56109       ;;
56110   esac
56111
56112   if test $REPLACE_DUP = 1; then
56113
56114
56115
56116
56117
56118
56119
56120
56121   gltests_LIBOBJS="$gltests_LIBOBJS dup.$ac_objext"
56122
56123     :
56124   fi
56125
56126
56127
56128
56129
56130     if test "$GNULIB_DUP" != 1; then
56131         if test "$GNULIB_DUP" = 0; then
56132       GNULIB_DUP=$gl_module_indicator_condition
56133     else
56134       GNULIB_DUP="($GNULIB_DUP || $gl_module_indicator_condition)"
56135     fi
56136   fi
56137
56138
56139
56140
56141
56142 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
56143
56144
56145
56146
56147
56148
56149   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
56150     REPLACE_FDOPEN=1
56151   else
56152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
56153 $as_echo_n "checking whether fdopen sets errno... " >&6; }
56154 if ${gl_cv_func_fdopen_works+:} false; then :
56155   $as_echo_n "(cached) " >&6
56156 else
56157
56158         if test "$cross_compiling" = yes; then :
56159   case "$host_os" in
56160              mingw*) gl_cv_func_fdopen_works="guessing no" ;;
56161              *)      gl_cv_func_fdopen_works="guessing yes" ;;
56162            esac
56163
56164 else
56165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56166 /* end confdefs.h.  */
56167
56168 #include <stdio.h>
56169 #include <errno.h>
56170 int
56171 main (void)
56172 {
56173   FILE *fp;
56174   errno = 0;
56175   fp = fdopen (-1, "r");
56176   if (fp == NULL && errno == 0)
56177     return 1;
56178   return 0;
56179 }
56180 _ACEOF
56181 if ac_fn_c_try_run "$LINENO"; then :
56182   gl_cv_func_fdopen_works=yes
56183 else
56184   gl_cv_func_fdopen_works=no
56185 fi
56186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56187   conftest.$ac_objext conftest.beam conftest.$ac_ext
56188 fi
56189
56190
56191 fi
56192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
56193 $as_echo "$gl_cv_func_fdopen_works" >&6; }
56194     case "$gl_cv_func_fdopen_works" in
56195       *no) REPLACE_FDOPEN=1 ;;
56196     esac
56197   fi
56198
56199   if test $REPLACE_FDOPEN = 1; then
56200
56201
56202
56203
56204
56205
56206
56207
56208   gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
56209
56210
56211   fi
56212
56213
56214
56215
56216
56217     if test "$GNULIB_FDOPEN" != 1; then
56218         if test "$GNULIB_FDOPEN" = 0; then
56219       GNULIB_FDOPEN=$gl_module_indicator_condition
56220     else
56221       GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
56222     fi
56223   fi
56224
56225
56226
56227
56228
56229 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
56230
56231
56232
56233
56234
56235   if test "$enable_acl" != no; then
56236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr with XATTR_NAME_POSIX_ACL macros" >&5
56237 $as_echo_n "checking for getxattr with XATTR_NAME_POSIX_ACL macros... " >&6; }
56238 if ${gl_cv_getxattr_with_posix_acls+:} false; then :
56239   $as_echo_n "(cached) " >&6
56240 else
56241   gl_cv_getxattr_with_posix_acls=no
56242        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56243 /* end confdefs.h.  */
56244 #include <sys/types.h>
56245               #include <sys/xattr.h>
56246               #include <linux/xattr.h>
56247
56248 int
56249 main ()
56250 {
56251 ssize_t a = getxattr (".", XATTR_NAME_POSIX_ACL_ACCESS, 0, 0);
56252               ssize_t b = getxattr (".", XATTR_NAME_POSIX_ACL_DEFAULT, 0, 0);
56253               return a < 0 || b < 0;
56254
56255   ;
56256   return 0;
56257 }
56258 _ACEOF
56259 if ac_fn_c_try_link "$LINENO"; then :
56260   gl_cv_getxattr_with_posix_acls=yes
56261 fi
56262 rm -f core conftest.err conftest.$ac_objext \
56263     conftest$ac_exeext conftest.$ac_ext
56264 fi
56265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_getxattr_with_posix_acls" >&5
56266 $as_echo "$gl_cv_getxattr_with_posix_acls" >&6; }
56267   fi
56268   if test "$gl_cv_getxattr_with_posix_acls" = yes; then
56269     LIB_HAS_ACL=
56270
56271 $as_echo "#define GETXATTR_WITH_POSIX_ACLS 1" >>confdefs.h
56272
56273   else
56274             gl_need_lib_has_acl=1
56275     LIB_HAS_ACL=$LIB_ACL
56276   fi
56277
56278
56279
56280
56281
56282
56283     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
56284     REPLACE_FTELL=1
56285   fi
56286
56287   if test $REPLACE_FTELL = 1; then
56288
56289
56290
56291
56292
56293
56294
56295
56296   gltests_LIBOBJS="$gltests_LIBOBJS ftell.$ac_objext"
56297
56298   fi
56299
56300
56301
56302
56303
56304     if test "$GNULIB_FTELL" != 1; then
56305         if test "$GNULIB_FTELL" = 0; then
56306       GNULIB_FTELL=$gl_module_indicator_condition
56307     else
56308       GNULIB_FTELL="($GNULIB_FTELL || $gl_module_indicator_condition)"
56309     fi
56310   fi
56311
56312
56313
56314
56315
56316 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
56317
56318
56319
56320
56321
56322
56323
56324
56325
56326
56327
56328
56329
56330   if test $ac_cv_have_decl_ftello = no; then
56331     HAVE_DECL_FTELLO=0
56332   fi
56333
56334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
56335 $as_echo_n "checking for ftello... " >&6; }
56336 if ${gl_cv_func_ftello+:} false; then :
56337   $as_echo_n "(cached) " >&6
56338 else
56339
56340       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56341 /* end confdefs.h.  */
56342 #include <stdio.h>
56343 int
56344 main ()
56345 {
56346 ftello (stdin);
56347   ;
56348   return 0;
56349 }
56350 _ACEOF
56351 if ac_fn_c_try_link "$LINENO"; then :
56352   gl_cv_func_ftello=yes
56353 else
56354   gl_cv_func_ftello=no
56355 fi
56356 rm -f core conftest.err conftest.$ac_objext \
56357     conftest$ac_exeext conftest.$ac_ext
56358
56359 fi
56360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
56361 $as_echo "$gl_cv_func_ftello" >&6; }
56362   if test $gl_cv_func_ftello = no; then
56363     HAVE_FTELLO=0
56364   else
56365     if test $WINDOWS_64_BIT_OFF_T = 1; then
56366       REPLACE_FTELLO=1
56367     fi
56368     if test $gl_cv_var_stdin_large_offset = no; then
56369       REPLACE_FTELLO=1
56370     fi
56371     if test $REPLACE_FTELLO = 0; then
56372
56373       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
56374 $as_echo_n "checking whether ftello works... " >&6; }
56375 if ${gl_cv_func_ftello_works+:} false; then :
56376   $as_echo_n "(cached) " >&6
56377 else
56378
56379                               case "$host_os" in
56380                       # Guess no on Solaris.
56381             solaris*) gl_cv_func_ftello_works="guessing no" ;;
56382                       # Guess yes otherwise.
56383             *)        gl_cv_func_ftello_works="guessing yes" ;;
56384           esac
56385           if test "$cross_compiling" = yes; then :
56386   :
56387 else
56388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56389 /* end confdefs.h.  */
56390
56391 #include <stdio.h>
56392 #include <stdlib.h>
56393 #include <string.h>
56394 #define TESTFILE "conftest.tmp"
56395 int
56396 main (void)
56397 {
56398   FILE *fp;
56399
56400   /* Create a file with some contents.  */
56401   fp = fopen (TESTFILE, "w");
56402   if (fp == NULL)
56403     return 70;
56404   if (fwrite ("foogarsh", 1, 8, fp) < 8)
56405     return 71;
56406   if (fclose (fp))
56407     return 72;
56408
56409   /* The file's contents is now "foogarsh".  */
56410
56411   /* Try writing after reading to EOF.  */
56412   fp = fopen (TESTFILE, "r+");
56413   if (fp == NULL)
56414     return 73;
56415   if (fseek (fp, -1, SEEK_END))
56416     return 74;
56417   if (!(getc (fp) == 'h'))
56418     return 1;
56419   if (!(getc (fp) == EOF))
56420     return 2;
56421   if (!(ftell (fp) == 8))
56422     return 3;
56423   if (!(ftell (fp) == 8))
56424     return 4;
56425   if (!(putc ('!', fp) == '!'))
56426     return 5;
56427   if (!(ftell (fp) == 9))
56428     return 6;
56429   if (!(fclose (fp) == 0))
56430     return 7;
56431   fp = fopen (TESTFILE, "r");
56432   if (fp == NULL)
56433     return 75;
56434   {
56435     char buf[10];
56436     if (!(fread (buf, 1, 10, fp) == 9))
56437       return 10;
56438     if (!(memcmp (buf, "foogarsh!", 9) == 0))
56439       return 11;
56440   }
56441   if (!(fclose (fp) == 0))
56442     return 12;
56443
56444   /* The file's contents is now "foogarsh!".  */
56445
56446   return 0;
56447 }
56448 _ACEOF
56449 if ac_fn_c_try_run "$LINENO"; then :
56450   gl_cv_func_ftello_works=yes
56451 else
56452   gl_cv_func_ftello_works=no
56453 fi
56454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56455   conftest.$ac_objext conftest.beam conftest.$ac_ext
56456 fi
56457
56458
56459 fi
56460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
56461 $as_echo "$gl_cv_func_ftello_works" >&6; }
56462       case "$gl_cv_func_ftello_works" in
56463         *yes) ;;
56464         *)
56465           REPLACE_FTELLO=1
56466
56467 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
56468
56469           ;;
56470       esac
56471     fi
56472   fi
56473
56474   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
56475
56476
56477
56478
56479
56480
56481
56482
56483   gltests_LIBOBJS="$gltests_LIBOBJS ftello.$ac_objext"
56484
56485
56486       for ac_func in _ftelli64
56487 do :
56488   ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
56489 if test "x$ac_cv_func__ftelli64" = xyes; then :
56490   cat >>confdefs.h <<_ACEOF
56491 #define HAVE__FTELLI64 1
56492 _ACEOF
56493
56494 fi
56495 done
56496
56497
56498   fi
56499
56500
56501
56502
56503
56504     if test "$GNULIB_FTELLO" != 1; then
56505         if test "$GNULIB_FTELLO" = 0; then
56506       GNULIB_FTELLO=$gl_module_indicator_condition
56507     else
56508       GNULIB_FTELLO="($GNULIB_FTELLO || $gl_module_indicator_condition)"
56509     fi
56510   fi
56511
56512
56513
56514
56515
56516 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
56517
56518
56519
56520
56521
56522
56523
56524
56525
56526   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
56527   *yes,yes) ;;
56528   *)
56529         REPLACE_GETCWD=1
56530     ;;
56531   esac
56532
56533   if test $REPLACE_GETCWD = 1; then
56534
56535
56536
56537
56538
56539
56540
56541
56542   gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext"
56543
56544   fi
56545
56546
56547
56548
56549
56550     if test "$GNULIB_GETCWD" != 1; then
56551         if test "$GNULIB_GETCWD" = 0; then
56552       GNULIB_GETCWD=$gl_module_indicator_condition
56553     else
56554       GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)"
56555     fi
56556   fi
56557
56558
56559
56560
56561
56562 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
56563
56564
56565
56566
56567
56568
56569   for ac_func in getpagesize
56570 do :
56571   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
56572 if test "x$ac_cv_func_getpagesize" = xyes; then :
56573   cat >>confdefs.h <<_ACEOF
56574 #define HAVE_GETPAGESIZE 1
56575 _ACEOF
56576
56577 fi
56578 done
56579
56580   if test $ac_cv_func_getpagesize = no; then
56581     HAVE_GETPAGESIZE=0
56582     for ac_header in OS.h
56583 do :
56584   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
56585 if test "x$ac_cv_header_OS_h" = xyes; then :
56586   cat >>confdefs.h <<_ACEOF
56587 #define HAVE_OS_H 1
56588 _ACEOF
56589
56590 fi
56591
56592 done
56593
56594     if test $ac_cv_header_OS_h = yes; then
56595       HAVE_OS_H=1
56596     fi
56597     for ac_header in sys/param.h
56598 do :
56599   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
56600 if test "x$ac_cv_header_sys_param_h" = xyes; then :
56601   cat >>confdefs.h <<_ACEOF
56602 #define HAVE_SYS_PARAM_H 1
56603 _ACEOF
56604
56605 fi
56606
56607 done
56608
56609     if test $ac_cv_header_sys_param_h = yes; then
56610       HAVE_SYS_PARAM_H=1
56611     fi
56612   fi
56613   case "$host_os" in
56614     mingw*)
56615       REPLACE_GETPAGESIZE=1
56616       ;;
56617   esac
56618       ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
56619 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
56620
56621 else
56622   HAVE_DECL_GETPAGESIZE=0
56623 fi
56624
56625
56626   if test $REPLACE_GETPAGESIZE = 1; then
56627
56628
56629
56630
56631
56632
56633
56634
56635   gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
56636
56637   fi
56638
56639
56640
56641
56642
56643     if test "$GNULIB_GETPAGESIZE" != 1; then
56644         if test "$GNULIB_GETPAGESIZE" = 0; then
56645       GNULIB_GETPAGESIZE=$gl_module_indicator_condition
56646     else
56647       GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
56648     fi
56649   fi
56650
56651
56652
56653
56654
56655 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
56656
56657
56658
56659
56660
56661
56662
56663
56664   PRIPTR_PREFIX=
56665   if test -n "$STDINT_H"; then
56666         PRIPTR_PREFIX='"l"'
56667   else
56668         for glpfx in '' l ll I64; do
56669       case $glpfx in
56670         '')  gltype1='int';;
56671         l)   gltype1='long int';;
56672         ll)  gltype1='long long int';;
56673         I64) gltype1='__int64';;
56674       esac
56675       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56676 /* end confdefs.h.  */
56677 #include <stdint.h>
56678            extern intptr_t foo;
56679            extern $gltype1 foo;
56680 int
56681 main ()
56682 {
56683
56684   ;
56685   return 0;
56686 }
56687 _ACEOF
56688 if ac_fn_c_try_compile "$LINENO"; then :
56689   PRIPTR_PREFIX='"'$glpfx'"'
56690 fi
56691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56692       test -n "$PRIPTR_PREFIX" && break
56693     done
56694   fi
56695
56696
56697
56698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
56699 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
56700 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
56701   $as_echo_n "(cached) " >&6
56702 else
56703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56704 /* end confdefs.h.  */
56705 /* Work also in C++ mode.  */
56706             #define __STDC_LIMIT_MACROS 1
56707
56708             /* Work if build is not clean.  */
56709             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
56710
56711             #include <limits.h>
56712             #if HAVE_STDINT_H
56713              #include <stdint.h>
56714             #endif
56715
56716             #if defined INT32_MAX && defined INTMAX_MAX
56717              #define CONDITION (INT32_MAX < INTMAX_MAX)
56718             #elif HAVE_LONG_LONG_INT
56719              #define CONDITION (sizeof (int) < sizeof (long long int))
56720             #else
56721              #define CONDITION 0
56722             #endif
56723             int test[CONDITION ? 1 : -1];
56724 int
56725 main ()
56726 {
56727
56728   ;
56729   return 0;
56730 }
56731 _ACEOF
56732 if ac_fn_c_try_compile "$LINENO"; then :
56733   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
56734 else
56735   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
56736 fi
56737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56738 fi
56739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
56740 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
56741   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
56742     INT32_MAX_LT_INTMAX_MAX=1;
56743   else
56744     INT32_MAX_LT_INTMAX_MAX=0;
56745   fi
56746
56747
56748   if test $APPLE_UNIVERSAL_BUILD = 0; then
56749
56750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
56751 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
56752 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
56753   $as_echo_n "(cached) " >&6
56754 else
56755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56756 /* end confdefs.h.  */
56757 /* Work also in C++ mode.  */
56758             #define __STDC_LIMIT_MACROS 1
56759
56760             /* Work if build is not clean.  */
56761             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
56762
56763             #include <limits.h>
56764             #if HAVE_STDINT_H
56765              #include <stdint.h>
56766             #endif
56767
56768             #if defined INT64_MAX
56769              #define CONDITION (INT64_MAX == LONG_MAX)
56770             #elif HAVE_LONG_LONG_INT
56771              #define CONDITION (sizeof (long long int) == sizeof (long int))
56772             #else
56773              #define CONDITION 0
56774             #endif
56775             int test[CONDITION ? 1 : -1];
56776 int
56777 main ()
56778 {
56779
56780   ;
56781   return 0;
56782 }
56783 _ACEOF
56784 if ac_fn_c_try_compile "$LINENO"; then :
56785   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
56786 else
56787   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
56788 fi
56789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56790 fi
56791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
56792 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
56793   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
56794     INT64_MAX_EQ_LONG_MAX=1;
56795   else
56796     INT64_MAX_EQ_LONG_MAX=0;
56797   fi
56798
56799
56800   else
56801     INT64_MAX_EQ_LONG_MAX=-1
56802   fi
56803
56804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
56805 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
56806 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
56807   $as_echo_n "(cached) " >&6
56808 else
56809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56810 /* end confdefs.h.  */
56811 /* Work also in C++ mode.  */
56812             #define __STDC_LIMIT_MACROS 1
56813
56814             /* Work if build is not clean.  */
56815             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
56816
56817             #include <limits.h>
56818             #if HAVE_STDINT_H
56819              #include <stdint.h>
56820             #endif
56821
56822             #if defined UINT32_MAX && defined UINTMAX_MAX
56823              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
56824             #elif HAVE_LONG_LONG_INT
56825              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
56826             #else
56827              #define CONDITION 0
56828             #endif
56829             int test[CONDITION ? 1 : -1];
56830 int
56831 main ()
56832 {
56833
56834   ;
56835   return 0;
56836 }
56837 _ACEOF
56838 if ac_fn_c_try_compile "$LINENO"; then :
56839   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
56840 else
56841   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
56842 fi
56843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56844 fi
56845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
56846 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
56847   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
56848     UINT32_MAX_LT_UINTMAX_MAX=1;
56849   else
56850     UINT32_MAX_LT_UINTMAX_MAX=0;
56851   fi
56852
56853
56854   if test $APPLE_UNIVERSAL_BUILD = 0; then
56855
56856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
56857 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
56858 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
56859   $as_echo_n "(cached) " >&6
56860 else
56861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56862 /* end confdefs.h.  */
56863 /* Work also in C++ mode.  */
56864             #define __STDC_LIMIT_MACROS 1
56865
56866             /* Work if build is not clean.  */
56867             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
56868
56869             #include <limits.h>
56870             #if HAVE_STDINT_H
56871              #include <stdint.h>
56872             #endif
56873
56874             #if defined UINT64_MAX
56875              #define CONDITION (UINT64_MAX == ULONG_MAX)
56876             #elif HAVE_LONG_LONG_INT
56877              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
56878             #else
56879              #define CONDITION 0
56880             #endif
56881             int test[CONDITION ? 1 : -1];
56882 int
56883 main ()
56884 {
56885
56886   ;
56887   return 0;
56888 }
56889 _ACEOF
56890 if ac_fn_c_try_compile "$LINENO"; then :
56891   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
56892 else
56893   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
56894 fi
56895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56896 fi
56897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
56898 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
56899   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
56900     UINT64_MAX_EQ_ULONG_MAX=1;
56901   else
56902     UINT64_MAX_EQ_ULONG_MAX=0;
56903   fi
56904
56905
56906   else
56907     UINT64_MAX_EQ_ULONG_MAX=-1
56908   fi
56909
56910
56911
56912
56913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
56914 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
56915 if ${gl_cv_cc_float_expbit0+:} false; then :
56916   $as_echo_n "(cached) " >&6
56917 else
56918
56919       if test "$cross_compiling" = yes; then :
56920   gl_cv_cc_float_expbit0="word 0 bit 23"
56921 else
56922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56923 /* end confdefs.h.  */
56924
56925 #include <float.h>
56926 #include <stddef.h>
56927 #include <stdio.h>
56928 #include <string.h>
56929 #define NWORDS \
56930   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
56931 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
56932 static unsigned int ored_words[NWORDS];
56933 static unsigned int anded_words[NWORDS];
56934 static void add_to_ored_words (float x)
56935 {
56936   memory_float m;
56937   size_t i;
56938   /* Clear it first, in case
56939      sizeof (float) < sizeof (memory_float).  */
56940   memset (&m, 0, sizeof (memory_float));
56941   m.value = x;
56942   for (i = 0; i < NWORDS; i++)
56943     {
56944       ored_words[i] |= m.word[i];
56945       anded_words[i] &= m.word[i];
56946     }
56947 }
56948 int main ()
56949 {
56950   size_t j;
56951   FILE *fp = fopen ("conftest.out", "w");
56952   if (fp == NULL)
56953     return 1;
56954   for (j = 0; j < NWORDS; j++)
56955     anded_words[j] = ~ (unsigned int) 0;
56956   add_to_ored_words (0.25f);
56957   add_to_ored_words (0.5f);
56958   add_to_ored_words (1.0f);
56959   add_to_ored_words (2.0f);
56960   add_to_ored_words (4.0f);
56961   /* Remove bits that are common (e.g. if representation of the first mantissa
56962      bit is explicit).  */
56963   for (j = 0; j < NWORDS; j++)
56964     ored_words[j] &= ~anded_words[j];
56965   /* Now find the nonzero word.  */
56966   for (j = 0; j < NWORDS; j++)
56967     if (ored_words[j] != 0)
56968       break;
56969   if (j < NWORDS)
56970     {
56971       size_t i;
56972       for (i = j + 1; i < NWORDS; i++)
56973         if (ored_words[i] != 0)
56974           {
56975             fprintf (fp, "unknown");
56976             return (fclose (fp) != 0);
56977           }
56978       for (i = 0; ; i++)
56979         if ((ored_words[j] >> i) & 1)
56980           {
56981             fprintf (fp, "word %d bit %d", (int) j, (int) i);
56982             return (fclose (fp) != 0);
56983           }
56984     }
56985   fprintf (fp, "unknown");
56986   return (fclose (fp) != 0);
56987 }
56988
56989 _ACEOF
56990 if ac_fn_c_try_run "$LINENO"; then :
56991   gl_cv_cc_float_expbit0=`cat conftest.out`
56992 else
56993   gl_cv_cc_float_expbit0="unknown"
56994 fi
56995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56996   conftest.$ac_objext conftest.beam conftest.$ac_ext
56997 fi
56998
56999       rm -f conftest.out
57000
57001 fi
57002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
57003 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
57004   case "$gl_cv_cc_float_expbit0" in
57005     word*bit*)
57006       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57007       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
57008
57009 cat >>confdefs.h <<_ACEOF
57010 #define FLT_EXPBIT0_WORD $word
57011 _ACEOF
57012
57013
57014 cat >>confdefs.h <<_ACEOF
57015 #define FLT_EXPBIT0_BIT $bit
57016 _ACEOF
57017
57018       ;;
57019   esac
57020
57021
57022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
57023 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
57024 if ${gl_cv_cc_double_expbit0+:} false; then :
57025   $as_echo_n "(cached) " >&6
57026 else
57027
57028       if test "$cross_compiling" = yes; then :
57029
57030                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57031 /* end confdefs.h.  */
57032
57033 #if defined arm || defined __arm || defined __arm__
57034   mixed_endianness
57035 #endif
57036
57037 _ACEOF
57038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57039   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
57040   gl_cv_cc_double_expbit0="unknown"
57041 else
57042
57043                                                          :
57044 if ${ac_cv_c_bigendian+:} false; then :
57045   $as_echo_n "(cached) " >&6
57046 else
57047   ac_cv_c_bigendian=unknown
57048     # See if we're dealing with a universal compiler.
57049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57050 /* end confdefs.h.  */
57051 #ifndef __APPLE_CC__
57052                not a universal capable compiler
57053              #endif
57054              typedef int dummy;
57055
57056 _ACEOF
57057 if ac_fn_c_try_compile "$LINENO"; then :
57058
57059         # Check for potential -arch flags.  It is not universal unless
57060         # there are at least two -arch flags with different values.
57061         ac_arch=
57062         ac_prev=
57063         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
57064          if test -n "$ac_prev"; then
57065            case $ac_word in
57066              i?86 | x86_64 | ppc | ppc64)
57067                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
57068                  ac_arch=$ac_word
57069                else
57070                  ac_cv_c_bigendian=universal
57071                  break
57072                fi
57073                ;;
57074            esac
57075            ac_prev=
57076          elif test "x$ac_word" = "x-arch"; then
57077            ac_prev=arch
57078          fi
57079        done
57080 fi
57081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57082     if test $ac_cv_c_bigendian = unknown; then
57083       # See if sys/param.h defines the BYTE_ORDER macro.
57084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57085 /* end confdefs.h.  */
57086 #include <sys/types.h>
57087              #include <sys/param.h>
57088
57089 int
57090 main ()
57091 {
57092 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
57093                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
57094                      && LITTLE_ENDIAN)
57095               bogus endian macros
57096              #endif
57097
57098   ;
57099   return 0;
57100 }
57101 _ACEOF
57102 if ac_fn_c_try_compile "$LINENO"; then :
57103   # It does; now see whether it defined to BIG_ENDIAN or not.
57104          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57105 /* end confdefs.h.  */
57106 #include <sys/types.h>
57107                 #include <sys/param.h>
57108
57109 int
57110 main ()
57111 {
57112 #if BYTE_ORDER != BIG_ENDIAN
57113                  not big endian
57114                 #endif
57115
57116   ;
57117   return 0;
57118 }
57119 _ACEOF
57120 if ac_fn_c_try_compile "$LINENO"; then :
57121   ac_cv_c_bigendian=yes
57122 else
57123   ac_cv_c_bigendian=no
57124 fi
57125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57126 fi
57127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57128     fi
57129     if test $ac_cv_c_bigendian = unknown; then
57130       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57131       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57132 /* end confdefs.h.  */
57133 #include <limits.h>
57134
57135 int
57136 main ()
57137 {
57138 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
57139               bogus endian macros
57140              #endif
57141
57142   ;
57143   return 0;
57144 }
57145 _ACEOF
57146 if ac_fn_c_try_compile "$LINENO"; then :
57147   # It does; now see whether it defined to _BIG_ENDIAN or not.
57148          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57149 /* end confdefs.h.  */
57150 #include <limits.h>
57151
57152 int
57153 main ()
57154 {
57155 #ifndef _BIG_ENDIAN
57156                  not big endian
57157                 #endif
57158
57159   ;
57160   return 0;
57161 }
57162 _ACEOF
57163 if ac_fn_c_try_compile "$LINENO"; then :
57164   ac_cv_c_bigendian=yes
57165 else
57166   ac_cv_c_bigendian=no
57167 fi
57168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57169 fi
57170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57171     fi
57172     if test $ac_cv_c_bigendian = unknown; then
57173       # Compile a test program.
57174       if test "$cross_compiling" = yes; then :
57175   # Try to guess by grepping values from an object file.
57176          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57177 /* end confdefs.h.  */
57178 short int ascii_mm[] =
57179                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
57180                 short int ascii_ii[] =
57181                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
57182                 int use_ascii (int i) {
57183                   return ascii_mm[i] + ascii_ii[i];
57184                 }
57185                 short int ebcdic_ii[] =
57186                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
57187                 short int ebcdic_mm[] =
57188                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
57189                 int use_ebcdic (int i) {
57190                   return ebcdic_mm[i] + ebcdic_ii[i];
57191                 }
57192                 extern int foo;
57193
57194 int
57195 main ()
57196 {
57197 return use_ascii (foo) == use_ebcdic (foo);
57198   ;
57199   return 0;
57200 }
57201 _ACEOF
57202 if ac_fn_c_try_compile "$LINENO"; then :
57203   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
57204               ac_cv_c_bigendian=yes
57205             fi
57206             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
57207               if test "$ac_cv_c_bigendian" = unknown; then
57208                 ac_cv_c_bigendian=no
57209               else
57210                 # finding both strings is unlikely to happen, but who knows?
57211                 ac_cv_c_bigendian=unknown
57212               fi
57213             fi
57214 fi
57215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57216 else
57217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57218 /* end confdefs.h.  */
57219 $ac_includes_default
57220 int
57221 main ()
57222 {
57223
57224              /* Are we little or big endian?  From Harbison&Steele.  */
57225              union
57226              {
57227                long int l;
57228                char c[sizeof (long int)];
57229              } u;
57230              u.l = 1;
57231              return u.c[sizeof (long int) - 1] == 1;
57232
57233   ;
57234   return 0;
57235 }
57236 _ACEOF
57237 if ac_fn_c_try_run "$LINENO"; then :
57238   ac_cv_c_bigendian=no
57239 else
57240   ac_cv_c_bigendian=yes
57241 fi
57242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57243   conftest.$ac_objext conftest.beam conftest.$ac_ext
57244 fi
57245
57246     fi
57247 fi
57248 :
57249  case $ac_cv_c_bigendian in #(
57250    yes)
57251      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
57252    no)
57253      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
57254    universal)
57255
57256 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
57257
57258      ;; #(
57259    *)
57260      gl_cv_cc_double_expbit0="unknown" ;;
57261  esac
57262
57263
57264 fi
57265 rm -f conftest*
57266
57267
57268 else
57269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57270 /* end confdefs.h.  */
57271
57272 #include <float.h>
57273 #include <stddef.h>
57274 #include <stdio.h>
57275 #include <string.h>
57276 #define NWORDS \
57277   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
57278 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
57279 static unsigned int ored_words[NWORDS];
57280 static unsigned int anded_words[NWORDS];
57281 static void add_to_ored_words (double x)
57282 {
57283   memory_double m;
57284   size_t i;
57285   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
57286   memset (&m, 0, sizeof (memory_double));
57287   m.value = x;
57288   for (i = 0; i < NWORDS; i++)
57289     {
57290       ored_words[i] |= m.word[i];
57291       anded_words[i] &= m.word[i];
57292     }
57293 }
57294 int main ()
57295 {
57296   size_t j;
57297   FILE *fp = fopen ("conftest.out", "w");
57298   if (fp == NULL)
57299     return 1;
57300   for (j = 0; j < NWORDS; j++)
57301     anded_words[j] = ~ (unsigned int) 0;
57302   add_to_ored_words (0.25);
57303   add_to_ored_words (0.5);
57304   add_to_ored_words (1.0);
57305   add_to_ored_words (2.0);
57306   add_to_ored_words (4.0);
57307   /* Remove bits that are common (e.g. if representation of the first mantissa
57308      bit is explicit).  */
57309   for (j = 0; j < NWORDS; j++)
57310     ored_words[j] &= ~anded_words[j];
57311   /* Now find the nonzero word.  */
57312   for (j = 0; j < NWORDS; j++)
57313     if (ored_words[j] != 0)
57314       break;
57315   if (j < NWORDS)
57316     {
57317       size_t i;
57318       for (i = j + 1; i < NWORDS; i++)
57319         if (ored_words[i] != 0)
57320           {
57321             fprintf (fp, "unknown");
57322             return (fclose (fp) != 0);
57323           }
57324       for (i = 0; ; i++)
57325         if ((ored_words[j] >> i) & 1)
57326           {
57327             fprintf (fp, "word %d bit %d", (int) j, (int) i);
57328             return (fclose (fp) != 0);
57329           }
57330     }
57331   fprintf (fp, "unknown");
57332   return (fclose (fp) != 0);
57333 }
57334
57335 _ACEOF
57336 if ac_fn_c_try_run "$LINENO"; then :
57337   gl_cv_cc_double_expbit0=`cat conftest.out`
57338 else
57339   gl_cv_cc_double_expbit0="unknown"
57340 fi
57341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57342   conftest.$ac_objext conftest.beam conftest.$ac_ext
57343 fi
57344
57345       rm -f conftest.out
57346
57347 fi
57348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
57349 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
57350   case "$gl_cv_cc_double_expbit0" in
57351     word*bit*)
57352       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57353       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
57354
57355 cat >>confdefs.h <<_ACEOF
57356 #define DBL_EXPBIT0_WORD $word
57357 _ACEOF
57358
57359
57360 cat >>confdefs.h <<_ACEOF
57361 #define DBL_EXPBIT0_BIT $bit
57362 _ACEOF
57363
57364       ;;
57365   esac
57366
57367
57368
57369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
57370 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
57371 if ${gl_cv_cc_long_double_expbit0+:} false; then :
57372   $as_echo_n "(cached) " >&6
57373 else
57374
57375       if test "$cross_compiling" = yes; then :
57376
57377                               gl_cv_cc_long_double_expbit0="unknown"
57378
57379 else
57380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57381 /* end confdefs.h.  */
57382
57383 #include <float.h>
57384 #include <stddef.h>
57385 #include <stdio.h>
57386 #include <string.h>
57387 #define NWORDS \
57388   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
57389 typedef union { long double value; unsigned int word[NWORDS]; }
57390         memory_long_double;
57391 static unsigned int ored_words[NWORDS];
57392 static unsigned int anded_words[NWORDS];
57393 static void add_to_ored_words (long double x)
57394 {
57395   memory_long_double m;
57396   size_t i;
57397   /* Clear it first, in case
57398      sizeof (long double) < sizeof (memory_long_double).  */
57399   memset (&m, 0, sizeof (memory_long_double));
57400   m.value = x;
57401   for (i = 0; i < NWORDS; i++)
57402     {
57403       ored_words[i] |= m.word[i];
57404       anded_words[i] &= m.word[i];
57405     }
57406 }
57407 int main ()
57408 {
57409   size_t j;
57410   FILE *fp = fopen ("conftest.out", "w");
57411   if (fp == NULL)
57412     return 1;
57413   for (j = 0; j < NWORDS; j++)
57414     anded_words[j] = ~ (unsigned int) 0;
57415   add_to_ored_words (0.25L);
57416   add_to_ored_words (0.5L);
57417   add_to_ored_words (1.0L);
57418   add_to_ored_words (2.0L);
57419   add_to_ored_words (4.0L);
57420   /* Remove bits that are common (e.g. if representation of the first mantissa
57421      bit is explicit).  */
57422   for (j = 0; j < NWORDS; j++)
57423     ored_words[j] &= ~anded_words[j];
57424   /* Now find the nonzero word.  */
57425   for (j = 0; j < NWORDS; j++)
57426     if (ored_words[j] != 0)
57427       break;
57428   if (j < NWORDS)
57429     {
57430       size_t i;
57431       for (i = j + 1; i < NWORDS; i++)
57432         if (ored_words[i] != 0)
57433           {
57434             fprintf (fp, "unknown");
57435             return (fclose (fp) != 0);
57436           }
57437       for (i = 0; ; i++)
57438         if ((ored_words[j] >> i) & 1)
57439           {
57440             fprintf (fp, "word %d bit %d", (int) j, (int) i);
57441             return (fclose (fp) != 0);
57442           }
57443     }
57444   fprintf (fp, "unknown");
57445   return (fclose (fp) != 0);
57446 }
57447
57448 _ACEOF
57449 if ac_fn_c_try_run "$LINENO"; then :
57450   gl_cv_cc_long_double_expbit0=`cat conftest.out`
57451 else
57452   gl_cv_cc_long_double_expbit0="unknown"
57453 fi
57454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57455   conftest.$ac_objext conftest.beam conftest.$ac_ext
57456 fi
57457
57458       rm -f conftest.out
57459
57460 fi
57461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
57462 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
57463   case "$gl_cv_cc_long_double_expbit0" in
57464     word*bit*)
57465       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57466       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
57467
57468 cat >>confdefs.h <<_ACEOF
57469 #define LDBL_EXPBIT0_WORD $word
57470 _ACEOF
57471
57472
57473 cat >>confdefs.h <<_ACEOF
57474 #define LDBL_EXPBIT0_BIT $bit
57475 _ACEOF
57476
57477       ;;
57478   esac
57479
57480
57481
57482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
57483 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
57484 if ${gl_cv_cc_float_expbit0+:} false; then :
57485   $as_echo_n "(cached) " >&6
57486 else
57487
57488       if test "$cross_compiling" = yes; then :
57489   gl_cv_cc_float_expbit0="word 0 bit 23"
57490 else
57491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57492 /* end confdefs.h.  */
57493
57494 #include <float.h>
57495 #include <stddef.h>
57496 #include <stdio.h>
57497 #include <string.h>
57498 #define NWORDS \
57499   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
57500 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
57501 static unsigned int ored_words[NWORDS];
57502 static unsigned int anded_words[NWORDS];
57503 static void add_to_ored_words (float x)
57504 {
57505   memory_float m;
57506   size_t i;
57507   /* Clear it first, in case
57508      sizeof (float) < sizeof (memory_float).  */
57509   memset (&m, 0, sizeof (memory_float));
57510   m.value = x;
57511   for (i = 0; i < NWORDS; i++)
57512     {
57513       ored_words[i] |= m.word[i];
57514       anded_words[i] &= m.word[i];
57515     }
57516 }
57517 int main ()
57518 {
57519   size_t j;
57520   FILE *fp = fopen ("conftest.out", "w");
57521   if (fp == NULL)
57522     return 1;
57523   for (j = 0; j < NWORDS; j++)
57524     anded_words[j] = ~ (unsigned int) 0;
57525   add_to_ored_words (0.25f);
57526   add_to_ored_words (0.5f);
57527   add_to_ored_words (1.0f);
57528   add_to_ored_words (2.0f);
57529   add_to_ored_words (4.0f);
57530   /* Remove bits that are common (e.g. if representation of the first mantissa
57531      bit is explicit).  */
57532   for (j = 0; j < NWORDS; j++)
57533     ored_words[j] &= ~anded_words[j];
57534   /* Now find the nonzero word.  */
57535   for (j = 0; j < NWORDS; j++)
57536     if (ored_words[j] != 0)
57537       break;
57538   if (j < NWORDS)
57539     {
57540       size_t i;
57541       for (i = j + 1; i < NWORDS; i++)
57542         if (ored_words[i] != 0)
57543           {
57544             fprintf (fp, "unknown");
57545             return (fclose (fp) != 0);
57546           }
57547       for (i = 0; ; i++)
57548         if ((ored_words[j] >> i) & 1)
57549           {
57550             fprintf (fp, "word %d bit %d", (int) j, (int) i);
57551             return (fclose (fp) != 0);
57552           }
57553     }
57554   fprintf (fp, "unknown");
57555   return (fclose (fp) != 0);
57556 }
57557
57558 _ACEOF
57559 if ac_fn_c_try_run "$LINENO"; then :
57560   gl_cv_cc_float_expbit0=`cat conftest.out`
57561 else
57562   gl_cv_cc_float_expbit0="unknown"
57563 fi
57564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57565   conftest.$ac_objext conftest.beam conftest.$ac_ext
57566 fi
57567
57568       rm -f conftest.out
57569
57570 fi
57571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
57572 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
57573   case "$gl_cv_cc_float_expbit0" in
57574     word*bit*)
57575       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57576       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
57577
57578 cat >>confdefs.h <<_ACEOF
57579 #define FLT_EXPBIT0_WORD $word
57580 _ACEOF
57581
57582
57583 cat >>confdefs.h <<_ACEOF
57584 #define FLT_EXPBIT0_BIT $bit
57585 _ACEOF
57586
57587       ;;
57588   esac
57589
57590
57591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
57592 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
57593 if ${gl_cv_cc_double_expbit0+:} false; then :
57594   $as_echo_n "(cached) " >&6
57595 else
57596
57597       if test "$cross_compiling" = yes; then :
57598
57599                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57600 /* end confdefs.h.  */
57601
57602 #if defined arm || defined __arm || defined __arm__
57603   mixed_endianness
57604 #endif
57605
57606 _ACEOF
57607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57608   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
57609   gl_cv_cc_double_expbit0="unknown"
57610 else
57611
57612                                                          :
57613 if ${ac_cv_c_bigendian+:} false; then :
57614   $as_echo_n "(cached) " >&6
57615 else
57616   ac_cv_c_bigendian=unknown
57617     # See if we're dealing with a universal compiler.
57618     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57619 /* end confdefs.h.  */
57620 #ifndef __APPLE_CC__
57621                not a universal capable compiler
57622              #endif
57623              typedef int dummy;
57624
57625 _ACEOF
57626 if ac_fn_c_try_compile "$LINENO"; then :
57627
57628         # Check for potential -arch flags.  It is not universal unless
57629         # there are at least two -arch flags with different values.
57630         ac_arch=
57631         ac_prev=
57632         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
57633          if test -n "$ac_prev"; then
57634            case $ac_word in
57635              i?86 | x86_64 | ppc | ppc64)
57636                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
57637                  ac_arch=$ac_word
57638                else
57639                  ac_cv_c_bigendian=universal
57640                  break
57641                fi
57642                ;;
57643            esac
57644            ac_prev=
57645          elif test "x$ac_word" = "x-arch"; then
57646            ac_prev=arch
57647          fi
57648        done
57649 fi
57650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57651     if test $ac_cv_c_bigendian = unknown; then
57652       # See if sys/param.h defines the BYTE_ORDER macro.
57653       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57654 /* end confdefs.h.  */
57655 #include <sys/types.h>
57656              #include <sys/param.h>
57657
57658 int
57659 main ()
57660 {
57661 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
57662                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
57663                      && LITTLE_ENDIAN)
57664               bogus endian macros
57665              #endif
57666
57667   ;
57668   return 0;
57669 }
57670 _ACEOF
57671 if ac_fn_c_try_compile "$LINENO"; then :
57672   # It does; now see whether it defined to BIG_ENDIAN or not.
57673          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57674 /* end confdefs.h.  */
57675 #include <sys/types.h>
57676                 #include <sys/param.h>
57677
57678 int
57679 main ()
57680 {
57681 #if BYTE_ORDER != BIG_ENDIAN
57682                  not big endian
57683                 #endif
57684
57685   ;
57686   return 0;
57687 }
57688 _ACEOF
57689 if ac_fn_c_try_compile "$LINENO"; then :
57690   ac_cv_c_bigendian=yes
57691 else
57692   ac_cv_c_bigendian=no
57693 fi
57694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57695 fi
57696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57697     fi
57698     if test $ac_cv_c_bigendian = unknown; then
57699       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57700       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57701 /* end confdefs.h.  */
57702 #include <limits.h>
57703
57704 int
57705 main ()
57706 {
57707 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
57708               bogus endian macros
57709              #endif
57710
57711   ;
57712   return 0;
57713 }
57714 _ACEOF
57715 if ac_fn_c_try_compile "$LINENO"; then :
57716   # It does; now see whether it defined to _BIG_ENDIAN or not.
57717          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57718 /* end confdefs.h.  */
57719 #include <limits.h>
57720
57721 int
57722 main ()
57723 {
57724 #ifndef _BIG_ENDIAN
57725                  not big endian
57726                 #endif
57727
57728   ;
57729   return 0;
57730 }
57731 _ACEOF
57732 if ac_fn_c_try_compile "$LINENO"; then :
57733   ac_cv_c_bigendian=yes
57734 else
57735   ac_cv_c_bigendian=no
57736 fi
57737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57738 fi
57739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57740     fi
57741     if test $ac_cv_c_bigendian = unknown; then
57742       # Compile a test program.
57743       if test "$cross_compiling" = yes; then :
57744   # Try to guess by grepping values from an object file.
57745          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57746 /* end confdefs.h.  */
57747 short int ascii_mm[] =
57748                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
57749                 short int ascii_ii[] =
57750                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
57751                 int use_ascii (int i) {
57752                   return ascii_mm[i] + ascii_ii[i];
57753                 }
57754                 short int ebcdic_ii[] =
57755                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
57756                 short int ebcdic_mm[] =
57757                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
57758                 int use_ebcdic (int i) {
57759                   return ebcdic_mm[i] + ebcdic_ii[i];
57760                 }
57761                 extern int foo;
57762
57763 int
57764 main ()
57765 {
57766 return use_ascii (foo) == use_ebcdic (foo);
57767   ;
57768   return 0;
57769 }
57770 _ACEOF
57771 if ac_fn_c_try_compile "$LINENO"; then :
57772   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
57773               ac_cv_c_bigendian=yes
57774             fi
57775             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
57776               if test "$ac_cv_c_bigendian" = unknown; then
57777                 ac_cv_c_bigendian=no
57778               else
57779                 # finding both strings is unlikely to happen, but who knows?
57780                 ac_cv_c_bigendian=unknown
57781               fi
57782             fi
57783 fi
57784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57785 else
57786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57787 /* end confdefs.h.  */
57788 $ac_includes_default
57789 int
57790 main ()
57791 {
57792
57793              /* Are we little or big endian?  From Harbison&Steele.  */
57794              union
57795              {
57796                long int l;
57797                char c[sizeof (long int)];
57798              } u;
57799              u.l = 1;
57800              return u.c[sizeof (long int) - 1] == 1;
57801
57802   ;
57803   return 0;
57804 }
57805 _ACEOF
57806 if ac_fn_c_try_run "$LINENO"; then :
57807   ac_cv_c_bigendian=no
57808 else
57809   ac_cv_c_bigendian=yes
57810 fi
57811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57812   conftest.$ac_objext conftest.beam conftest.$ac_ext
57813 fi
57814
57815     fi
57816 fi
57817 :
57818  case $ac_cv_c_bigendian in #(
57819    yes)
57820      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
57821    no)
57822      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
57823    universal)
57824
57825 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
57826
57827      ;; #(
57828    *)
57829      gl_cv_cc_double_expbit0="unknown" ;;
57830  esac
57831
57832
57833 fi
57834 rm -f conftest*
57835
57836
57837 else
57838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57839 /* end confdefs.h.  */
57840
57841 #include <float.h>
57842 #include <stddef.h>
57843 #include <stdio.h>
57844 #include <string.h>
57845 #define NWORDS \
57846   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
57847 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
57848 static unsigned int ored_words[NWORDS];
57849 static unsigned int anded_words[NWORDS];
57850 static void add_to_ored_words (double x)
57851 {
57852   memory_double m;
57853   size_t i;
57854   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
57855   memset (&m, 0, sizeof (memory_double));
57856   m.value = x;
57857   for (i = 0; i < NWORDS; i++)
57858     {
57859       ored_words[i] |= m.word[i];
57860       anded_words[i] &= m.word[i];
57861     }
57862 }
57863 int main ()
57864 {
57865   size_t j;
57866   FILE *fp = fopen ("conftest.out", "w");
57867   if (fp == NULL)
57868     return 1;
57869   for (j = 0; j < NWORDS; j++)
57870     anded_words[j] = ~ (unsigned int) 0;
57871   add_to_ored_words (0.25);
57872   add_to_ored_words (0.5);
57873   add_to_ored_words (1.0);
57874   add_to_ored_words (2.0);
57875   add_to_ored_words (4.0);
57876   /* Remove bits that are common (e.g. if representation of the first mantissa
57877      bit is explicit).  */
57878   for (j = 0; j < NWORDS; j++)
57879     ored_words[j] &= ~anded_words[j];
57880   /* Now find the nonzero word.  */
57881   for (j = 0; j < NWORDS; j++)
57882     if (ored_words[j] != 0)
57883       break;
57884   if (j < NWORDS)
57885     {
57886       size_t i;
57887       for (i = j + 1; i < NWORDS; i++)
57888         if (ored_words[i] != 0)
57889           {
57890             fprintf (fp, "unknown");
57891             return (fclose (fp) != 0);
57892           }
57893       for (i = 0; ; i++)
57894         if ((ored_words[j] >> i) & 1)
57895           {
57896             fprintf (fp, "word %d bit %d", (int) j, (int) i);
57897             return (fclose (fp) != 0);
57898           }
57899     }
57900   fprintf (fp, "unknown");
57901   return (fclose (fp) != 0);
57902 }
57903
57904 _ACEOF
57905 if ac_fn_c_try_run "$LINENO"; then :
57906   gl_cv_cc_double_expbit0=`cat conftest.out`
57907 else
57908   gl_cv_cc_double_expbit0="unknown"
57909 fi
57910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57911   conftest.$ac_objext conftest.beam conftest.$ac_ext
57912 fi
57913
57914       rm -f conftest.out
57915
57916 fi
57917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
57918 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
57919   case "$gl_cv_cc_double_expbit0" in
57920     word*bit*)
57921       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57922       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
57923
57924 cat >>confdefs.h <<_ACEOF
57925 #define DBL_EXPBIT0_WORD $word
57926 _ACEOF
57927
57928
57929 cat >>confdefs.h <<_ACEOF
57930 #define DBL_EXPBIT0_BIT $bit
57931 _ACEOF
57932
57933       ;;
57934   esac
57935
57936
57937
57938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
57939 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
57940 if ${gl_cv_cc_long_double_expbit0+:} false; then :
57941   $as_echo_n "(cached) " >&6
57942 else
57943
57944       if test "$cross_compiling" = yes; then :
57945
57946                               gl_cv_cc_long_double_expbit0="unknown"
57947
57948 else
57949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57950 /* end confdefs.h.  */
57951
57952 #include <float.h>
57953 #include <stddef.h>
57954 #include <stdio.h>
57955 #include <string.h>
57956 #define NWORDS \
57957   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
57958 typedef union { long double value; unsigned int word[NWORDS]; }
57959         memory_long_double;
57960 static unsigned int ored_words[NWORDS];
57961 static unsigned int anded_words[NWORDS];
57962 static void add_to_ored_words (long double x)
57963 {
57964   memory_long_double m;
57965   size_t i;
57966   /* Clear it first, in case
57967      sizeof (long double) < sizeof (memory_long_double).  */
57968   memset (&m, 0, sizeof (memory_long_double));
57969   m.value = x;
57970   for (i = 0; i < NWORDS; i++)
57971     {
57972       ored_words[i] |= m.word[i];
57973       anded_words[i] &= m.word[i];
57974     }
57975 }
57976 int main ()
57977 {
57978   size_t j;
57979   FILE *fp = fopen ("conftest.out", "w");
57980   if (fp == NULL)
57981     return 1;
57982   for (j = 0; j < NWORDS; j++)
57983     anded_words[j] = ~ (unsigned int) 0;
57984   add_to_ored_words (0.25L);
57985   add_to_ored_words (0.5L);
57986   add_to_ored_words (1.0L);
57987   add_to_ored_words (2.0L);
57988   add_to_ored_words (4.0L);
57989   /* Remove bits that are common (e.g. if representation of the first mantissa
57990      bit is explicit).  */
57991   for (j = 0; j < NWORDS; j++)
57992     ored_words[j] &= ~anded_words[j];
57993   /* Now find the nonzero word.  */
57994   for (j = 0; j < NWORDS; j++)
57995     if (ored_words[j] != 0)
57996       break;
57997   if (j < NWORDS)
57998     {
57999       size_t i;
58000       for (i = j + 1; i < NWORDS; i++)
58001         if (ored_words[i] != 0)
58002           {
58003             fprintf (fp, "unknown");
58004             return (fclose (fp) != 0);
58005           }
58006       for (i = 0; ; i++)
58007         if ((ored_words[j] >> i) & 1)
58008           {
58009             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58010             return (fclose (fp) != 0);
58011           }
58012     }
58013   fprintf (fp, "unknown");
58014   return (fclose (fp) != 0);
58015 }
58016
58017 _ACEOF
58018 if ac_fn_c_try_run "$LINENO"; then :
58019   gl_cv_cc_long_double_expbit0=`cat conftest.out`
58020 else
58021   gl_cv_cc_long_double_expbit0="unknown"
58022 fi
58023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58024   conftest.$ac_objext conftest.beam conftest.$ac_ext
58025 fi
58026
58027       rm -f conftest.out
58028
58029 fi
58030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
58031 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
58032   case "$gl_cv_cc_long_double_expbit0" in
58033     word*bit*)
58034       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58035       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
58036
58037 cat >>confdefs.h <<_ACEOF
58038 #define LDBL_EXPBIT0_WORD $word
58039 _ACEOF
58040
58041
58042 cat >>confdefs.h <<_ACEOF
58043 #define LDBL_EXPBIT0_BIT $bit
58044 _ACEOF
58045
58046       ;;
58047   esac
58048
58049
58050
58051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
58052 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
58053 if ${gl_cv_cc_double_expbit0+:} false; then :
58054   $as_echo_n "(cached) " >&6
58055 else
58056
58057       if test "$cross_compiling" = yes; then :
58058
58059                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58060 /* end confdefs.h.  */
58061
58062 #if defined arm || defined __arm || defined __arm__
58063   mixed_endianness
58064 #endif
58065
58066 _ACEOF
58067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58068   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
58069   gl_cv_cc_double_expbit0="unknown"
58070 else
58071
58072                                                          :
58073 if ${ac_cv_c_bigendian+:} false; then :
58074   $as_echo_n "(cached) " >&6
58075 else
58076   ac_cv_c_bigendian=unknown
58077     # See if we're dealing with a universal compiler.
58078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58079 /* end confdefs.h.  */
58080 #ifndef __APPLE_CC__
58081                not a universal capable compiler
58082              #endif
58083              typedef int dummy;
58084
58085 _ACEOF
58086 if ac_fn_c_try_compile "$LINENO"; then :
58087
58088         # Check for potential -arch flags.  It is not universal unless
58089         # there are at least two -arch flags with different values.
58090         ac_arch=
58091         ac_prev=
58092         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
58093          if test -n "$ac_prev"; then
58094            case $ac_word in
58095              i?86 | x86_64 | ppc | ppc64)
58096                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
58097                  ac_arch=$ac_word
58098                else
58099                  ac_cv_c_bigendian=universal
58100                  break
58101                fi
58102                ;;
58103            esac
58104            ac_prev=
58105          elif test "x$ac_word" = "x-arch"; then
58106            ac_prev=arch
58107          fi
58108        done
58109 fi
58110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58111     if test $ac_cv_c_bigendian = unknown; then
58112       # See if sys/param.h defines the BYTE_ORDER macro.
58113       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58114 /* end confdefs.h.  */
58115 #include <sys/types.h>
58116              #include <sys/param.h>
58117
58118 int
58119 main ()
58120 {
58121 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
58122                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
58123                      && LITTLE_ENDIAN)
58124               bogus endian macros
58125              #endif
58126
58127   ;
58128   return 0;
58129 }
58130 _ACEOF
58131 if ac_fn_c_try_compile "$LINENO"; then :
58132   # It does; now see whether it defined to BIG_ENDIAN or not.
58133          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58134 /* end confdefs.h.  */
58135 #include <sys/types.h>
58136                 #include <sys/param.h>
58137
58138 int
58139 main ()
58140 {
58141 #if BYTE_ORDER != BIG_ENDIAN
58142                  not big endian
58143                 #endif
58144
58145   ;
58146   return 0;
58147 }
58148 _ACEOF
58149 if ac_fn_c_try_compile "$LINENO"; then :
58150   ac_cv_c_bigendian=yes
58151 else
58152   ac_cv_c_bigendian=no
58153 fi
58154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58155 fi
58156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58157     fi
58158     if test $ac_cv_c_bigendian = unknown; then
58159       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
58160       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58161 /* end confdefs.h.  */
58162 #include <limits.h>
58163
58164 int
58165 main ()
58166 {
58167 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
58168               bogus endian macros
58169              #endif
58170
58171   ;
58172   return 0;
58173 }
58174 _ACEOF
58175 if ac_fn_c_try_compile "$LINENO"; then :
58176   # It does; now see whether it defined to _BIG_ENDIAN or not.
58177          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58178 /* end confdefs.h.  */
58179 #include <limits.h>
58180
58181 int
58182 main ()
58183 {
58184 #ifndef _BIG_ENDIAN
58185                  not big endian
58186                 #endif
58187
58188   ;
58189   return 0;
58190 }
58191 _ACEOF
58192 if ac_fn_c_try_compile "$LINENO"; then :
58193   ac_cv_c_bigendian=yes
58194 else
58195   ac_cv_c_bigendian=no
58196 fi
58197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58198 fi
58199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58200     fi
58201     if test $ac_cv_c_bigendian = unknown; then
58202       # Compile a test program.
58203       if test "$cross_compiling" = yes; then :
58204   # Try to guess by grepping values from an object file.
58205          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58206 /* end confdefs.h.  */
58207 short int ascii_mm[] =
58208                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
58209                 short int ascii_ii[] =
58210                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
58211                 int use_ascii (int i) {
58212                   return ascii_mm[i] + ascii_ii[i];
58213                 }
58214                 short int ebcdic_ii[] =
58215                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
58216                 short int ebcdic_mm[] =
58217                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
58218                 int use_ebcdic (int i) {
58219                   return ebcdic_mm[i] + ebcdic_ii[i];
58220                 }
58221                 extern int foo;
58222
58223 int
58224 main ()
58225 {
58226 return use_ascii (foo) == use_ebcdic (foo);
58227   ;
58228   return 0;
58229 }
58230 _ACEOF
58231 if ac_fn_c_try_compile "$LINENO"; then :
58232   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
58233               ac_cv_c_bigendian=yes
58234             fi
58235             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
58236               if test "$ac_cv_c_bigendian" = unknown; then
58237                 ac_cv_c_bigendian=no
58238               else
58239                 # finding both strings is unlikely to happen, but who knows?
58240                 ac_cv_c_bigendian=unknown
58241               fi
58242             fi
58243 fi
58244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58245 else
58246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58247 /* end confdefs.h.  */
58248 $ac_includes_default
58249 int
58250 main ()
58251 {
58252
58253              /* Are we little or big endian?  From Harbison&Steele.  */
58254              union
58255              {
58256                long int l;
58257                char c[sizeof (long int)];
58258              } u;
58259              u.l = 1;
58260              return u.c[sizeof (long int) - 1] == 1;
58261
58262   ;
58263   return 0;
58264 }
58265 _ACEOF
58266 if ac_fn_c_try_run "$LINENO"; then :
58267   ac_cv_c_bigendian=no
58268 else
58269   ac_cv_c_bigendian=yes
58270 fi
58271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58272   conftest.$ac_objext conftest.beam conftest.$ac_ext
58273 fi
58274
58275     fi
58276 fi
58277 :
58278  case $ac_cv_c_bigendian in #(
58279    yes)
58280      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
58281    no)
58282      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
58283    universal)
58284
58285 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
58286
58287      ;; #(
58288    *)
58289      gl_cv_cc_double_expbit0="unknown" ;;
58290  esac
58291
58292
58293 fi
58294 rm -f conftest*
58295
58296
58297 else
58298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58299 /* end confdefs.h.  */
58300
58301 #include <float.h>
58302 #include <stddef.h>
58303 #include <stdio.h>
58304 #include <string.h>
58305 #define NWORDS \
58306   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58307 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
58308 static unsigned int ored_words[NWORDS];
58309 static unsigned int anded_words[NWORDS];
58310 static void add_to_ored_words (double x)
58311 {
58312   memory_double m;
58313   size_t i;
58314   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
58315   memset (&m, 0, sizeof (memory_double));
58316   m.value = x;
58317   for (i = 0; i < NWORDS; i++)
58318     {
58319       ored_words[i] |= m.word[i];
58320       anded_words[i] &= m.word[i];
58321     }
58322 }
58323 int main ()
58324 {
58325   size_t j;
58326   FILE *fp = fopen ("conftest.out", "w");
58327   if (fp == NULL)
58328     return 1;
58329   for (j = 0; j < NWORDS; j++)
58330     anded_words[j] = ~ (unsigned int) 0;
58331   add_to_ored_words (0.25);
58332   add_to_ored_words (0.5);
58333   add_to_ored_words (1.0);
58334   add_to_ored_words (2.0);
58335   add_to_ored_words (4.0);
58336   /* Remove bits that are common (e.g. if representation of the first mantissa
58337      bit is explicit).  */
58338   for (j = 0; j < NWORDS; j++)
58339     ored_words[j] &= ~anded_words[j];
58340   /* Now find the nonzero word.  */
58341   for (j = 0; j < NWORDS; j++)
58342     if (ored_words[j] != 0)
58343       break;
58344   if (j < NWORDS)
58345     {
58346       size_t i;
58347       for (i = j + 1; i < NWORDS; i++)
58348         if (ored_words[i] != 0)
58349           {
58350             fprintf (fp, "unknown");
58351             return (fclose (fp) != 0);
58352           }
58353       for (i = 0; ; i++)
58354         if ((ored_words[j] >> i) & 1)
58355           {
58356             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58357             return (fclose (fp) != 0);
58358           }
58359     }
58360   fprintf (fp, "unknown");
58361   return (fclose (fp) != 0);
58362 }
58363
58364 _ACEOF
58365 if ac_fn_c_try_run "$LINENO"; then :
58366   gl_cv_cc_double_expbit0=`cat conftest.out`
58367 else
58368   gl_cv_cc_double_expbit0="unknown"
58369 fi
58370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58371   conftest.$ac_objext conftest.beam conftest.$ac_ext
58372 fi
58373
58374       rm -f conftest.out
58375
58376 fi
58377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
58378 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
58379   case "$gl_cv_cc_double_expbit0" in
58380     word*bit*)
58381       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58382       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
58383
58384 cat >>confdefs.h <<_ACEOF
58385 #define DBL_EXPBIT0_WORD $word
58386 _ACEOF
58387
58388
58389 cat >>confdefs.h <<_ACEOF
58390 #define DBL_EXPBIT0_BIT $bit
58391 _ACEOF
58392
58393       ;;
58394   esac
58395
58396
58397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
58398 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
58399 if ${gl_cv_cc_double_expbit0+:} false; then :
58400   $as_echo_n "(cached) " >&6
58401 else
58402
58403       if test "$cross_compiling" = yes; then :
58404
58405                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58406 /* end confdefs.h.  */
58407
58408 #if defined arm || defined __arm || defined __arm__
58409   mixed_endianness
58410 #endif
58411
58412 _ACEOF
58413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58414   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
58415   gl_cv_cc_double_expbit0="unknown"
58416 else
58417
58418                                                          :
58419 if ${ac_cv_c_bigendian+:} false; then :
58420   $as_echo_n "(cached) " >&6
58421 else
58422   ac_cv_c_bigendian=unknown
58423     # See if we're dealing with a universal compiler.
58424     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58425 /* end confdefs.h.  */
58426 #ifndef __APPLE_CC__
58427                not a universal capable compiler
58428              #endif
58429              typedef int dummy;
58430
58431 _ACEOF
58432 if ac_fn_c_try_compile "$LINENO"; then :
58433
58434         # Check for potential -arch flags.  It is not universal unless
58435         # there are at least two -arch flags with different values.
58436         ac_arch=
58437         ac_prev=
58438         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
58439          if test -n "$ac_prev"; then
58440            case $ac_word in
58441              i?86 | x86_64 | ppc | ppc64)
58442                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
58443                  ac_arch=$ac_word
58444                else
58445                  ac_cv_c_bigendian=universal
58446                  break
58447                fi
58448                ;;
58449            esac
58450            ac_prev=
58451          elif test "x$ac_word" = "x-arch"; then
58452            ac_prev=arch
58453          fi
58454        done
58455 fi
58456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58457     if test $ac_cv_c_bigendian = unknown; then
58458       # See if sys/param.h defines the BYTE_ORDER macro.
58459       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58460 /* end confdefs.h.  */
58461 #include <sys/types.h>
58462              #include <sys/param.h>
58463
58464 int
58465 main ()
58466 {
58467 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
58468                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
58469                      && LITTLE_ENDIAN)
58470               bogus endian macros
58471              #endif
58472
58473   ;
58474   return 0;
58475 }
58476 _ACEOF
58477 if ac_fn_c_try_compile "$LINENO"; then :
58478   # It does; now see whether it defined to BIG_ENDIAN or not.
58479          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58480 /* end confdefs.h.  */
58481 #include <sys/types.h>
58482                 #include <sys/param.h>
58483
58484 int
58485 main ()
58486 {
58487 #if BYTE_ORDER != BIG_ENDIAN
58488                  not big endian
58489                 #endif
58490
58491   ;
58492   return 0;
58493 }
58494 _ACEOF
58495 if ac_fn_c_try_compile "$LINENO"; then :
58496   ac_cv_c_bigendian=yes
58497 else
58498   ac_cv_c_bigendian=no
58499 fi
58500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58501 fi
58502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58503     fi
58504     if test $ac_cv_c_bigendian = unknown; then
58505       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
58506       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58507 /* end confdefs.h.  */
58508 #include <limits.h>
58509
58510 int
58511 main ()
58512 {
58513 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
58514               bogus endian macros
58515              #endif
58516
58517   ;
58518   return 0;
58519 }
58520 _ACEOF
58521 if ac_fn_c_try_compile "$LINENO"; then :
58522   # It does; now see whether it defined to _BIG_ENDIAN or not.
58523          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58524 /* end confdefs.h.  */
58525 #include <limits.h>
58526
58527 int
58528 main ()
58529 {
58530 #ifndef _BIG_ENDIAN
58531                  not big endian
58532                 #endif
58533
58534   ;
58535   return 0;
58536 }
58537 _ACEOF
58538 if ac_fn_c_try_compile "$LINENO"; then :
58539   ac_cv_c_bigendian=yes
58540 else
58541   ac_cv_c_bigendian=no
58542 fi
58543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58544 fi
58545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58546     fi
58547     if test $ac_cv_c_bigendian = unknown; then
58548       # Compile a test program.
58549       if test "$cross_compiling" = yes; then :
58550   # Try to guess by grepping values from an object file.
58551          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58552 /* end confdefs.h.  */
58553 short int ascii_mm[] =
58554                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
58555                 short int ascii_ii[] =
58556                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
58557                 int use_ascii (int i) {
58558                   return ascii_mm[i] + ascii_ii[i];
58559                 }
58560                 short int ebcdic_ii[] =
58561                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
58562                 short int ebcdic_mm[] =
58563                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
58564                 int use_ebcdic (int i) {
58565                   return ebcdic_mm[i] + ebcdic_ii[i];
58566                 }
58567                 extern int foo;
58568
58569 int
58570 main ()
58571 {
58572 return use_ascii (foo) == use_ebcdic (foo);
58573   ;
58574   return 0;
58575 }
58576 _ACEOF
58577 if ac_fn_c_try_compile "$LINENO"; then :
58578   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
58579               ac_cv_c_bigendian=yes
58580             fi
58581             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
58582               if test "$ac_cv_c_bigendian" = unknown; then
58583                 ac_cv_c_bigendian=no
58584               else
58585                 # finding both strings is unlikely to happen, but who knows?
58586                 ac_cv_c_bigendian=unknown
58587               fi
58588             fi
58589 fi
58590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58591 else
58592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58593 /* end confdefs.h.  */
58594 $ac_includes_default
58595 int
58596 main ()
58597 {
58598
58599              /* Are we little or big endian?  From Harbison&Steele.  */
58600              union
58601              {
58602                long int l;
58603                char c[sizeof (long int)];
58604              } u;
58605              u.l = 1;
58606              return u.c[sizeof (long int) - 1] == 1;
58607
58608   ;
58609   return 0;
58610 }
58611 _ACEOF
58612 if ac_fn_c_try_run "$LINENO"; then :
58613   ac_cv_c_bigendian=no
58614 else
58615   ac_cv_c_bigendian=yes
58616 fi
58617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58618   conftest.$ac_objext conftest.beam conftest.$ac_ext
58619 fi
58620
58621     fi
58622 fi
58623 :
58624  case $ac_cv_c_bigendian in #(
58625    yes)
58626      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
58627    no)
58628      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
58629    universal)
58630
58631 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
58632
58633      ;; #(
58634    *)
58635      gl_cv_cc_double_expbit0="unknown" ;;
58636  esac
58637
58638
58639 fi
58640 rm -f conftest*
58641
58642
58643 else
58644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58645 /* end confdefs.h.  */
58646
58647 #include <float.h>
58648 #include <stddef.h>
58649 #include <stdio.h>
58650 #include <string.h>
58651 #define NWORDS \
58652   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58653 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
58654 static unsigned int ored_words[NWORDS];
58655 static unsigned int anded_words[NWORDS];
58656 static void add_to_ored_words (double x)
58657 {
58658   memory_double m;
58659   size_t i;
58660   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
58661   memset (&m, 0, sizeof (memory_double));
58662   m.value = x;
58663   for (i = 0; i < NWORDS; i++)
58664     {
58665       ored_words[i] |= m.word[i];
58666       anded_words[i] &= m.word[i];
58667     }
58668 }
58669 int main ()
58670 {
58671   size_t j;
58672   FILE *fp = fopen ("conftest.out", "w");
58673   if (fp == NULL)
58674     return 1;
58675   for (j = 0; j < NWORDS; j++)
58676     anded_words[j] = ~ (unsigned int) 0;
58677   add_to_ored_words (0.25);
58678   add_to_ored_words (0.5);
58679   add_to_ored_words (1.0);
58680   add_to_ored_words (2.0);
58681   add_to_ored_words (4.0);
58682   /* Remove bits that are common (e.g. if representation of the first mantissa
58683      bit is explicit).  */
58684   for (j = 0; j < NWORDS; j++)
58685     ored_words[j] &= ~anded_words[j];
58686   /* Now find the nonzero word.  */
58687   for (j = 0; j < NWORDS; j++)
58688     if (ored_words[j] != 0)
58689       break;
58690   if (j < NWORDS)
58691     {
58692       size_t i;
58693       for (i = j + 1; i < NWORDS; i++)
58694         if (ored_words[i] != 0)
58695           {
58696             fprintf (fp, "unknown");
58697             return (fclose (fp) != 0);
58698           }
58699       for (i = 0; ; i++)
58700         if ((ored_words[j] >> i) & 1)
58701           {
58702             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58703             return (fclose (fp) != 0);
58704           }
58705     }
58706   fprintf (fp, "unknown");
58707   return (fclose (fp) != 0);
58708 }
58709
58710 _ACEOF
58711 if ac_fn_c_try_run "$LINENO"; then :
58712   gl_cv_cc_double_expbit0=`cat conftest.out`
58713 else
58714   gl_cv_cc_double_expbit0="unknown"
58715 fi
58716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58717   conftest.$ac_objext conftest.beam conftest.$ac_ext
58718 fi
58719
58720       rm -f conftest.out
58721
58722 fi
58723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
58724 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
58725   case "$gl_cv_cc_double_expbit0" in
58726     word*bit*)
58727       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58728       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
58729
58730 cat >>confdefs.h <<_ACEOF
58731 #define DBL_EXPBIT0_WORD $word
58732 _ACEOF
58733
58734
58735 cat >>confdefs.h <<_ACEOF
58736 #define DBL_EXPBIT0_BIT $bit
58737 _ACEOF
58738
58739       ;;
58740   esac
58741
58742
58743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
58744 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
58745 if ${gl_cv_cc_float_expbit0+:} false; then :
58746   $as_echo_n "(cached) " >&6
58747 else
58748
58749       if test "$cross_compiling" = yes; then :
58750   gl_cv_cc_float_expbit0="word 0 bit 23"
58751 else
58752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58753 /* end confdefs.h.  */
58754
58755 #include <float.h>
58756 #include <stddef.h>
58757 #include <stdio.h>
58758 #include <string.h>
58759 #define NWORDS \
58760   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58761 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
58762 static unsigned int ored_words[NWORDS];
58763 static unsigned int anded_words[NWORDS];
58764 static void add_to_ored_words (float x)
58765 {
58766   memory_float m;
58767   size_t i;
58768   /* Clear it first, in case
58769      sizeof (float) < sizeof (memory_float).  */
58770   memset (&m, 0, sizeof (memory_float));
58771   m.value = x;
58772   for (i = 0; i < NWORDS; i++)
58773     {
58774       ored_words[i] |= m.word[i];
58775       anded_words[i] &= m.word[i];
58776     }
58777 }
58778 int main ()
58779 {
58780   size_t j;
58781   FILE *fp = fopen ("conftest.out", "w");
58782   if (fp == NULL)
58783     return 1;
58784   for (j = 0; j < NWORDS; j++)
58785     anded_words[j] = ~ (unsigned int) 0;
58786   add_to_ored_words (0.25f);
58787   add_to_ored_words (0.5f);
58788   add_to_ored_words (1.0f);
58789   add_to_ored_words (2.0f);
58790   add_to_ored_words (4.0f);
58791   /* Remove bits that are common (e.g. if representation of the first mantissa
58792      bit is explicit).  */
58793   for (j = 0; j < NWORDS; j++)
58794     ored_words[j] &= ~anded_words[j];
58795   /* Now find the nonzero word.  */
58796   for (j = 0; j < NWORDS; j++)
58797     if (ored_words[j] != 0)
58798       break;
58799   if (j < NWORDS)
58800     {
58801       size_t i;
58802       for (i = j + 1; i < NWORDS; i++)
58803         if (ored_words[i] != 0)
58804           {
58805             fprintf (fp, "unknown");
58806             return (fclose (fp) != 0);
58807           }
58808       for (i = 0; ; i++)
58809         if ((ored_words[j] >> i) & 1)
58810           {
58811             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58812             return (fclose (fp) != 0);
58813           }
58814     }
58815   fprintf (fp, "unknown");
58816   return (fclose (fp) != 0);
58817 }
58818
58819 _ACEOF
58820 if ac_fn_c_try_run "$LINENO"; then :
58821   gl_cv_cc_float_expbit0=`cat conftest.out`
58822 else
58823   gl_cv_cc_float_expbit0="unknown"
58824 fi
58825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58826   conftest.$ac_objext conftest.beam conftest.$ac_ext
58827 fi
58828
58829       rm -f conftest.out
58830
58831 fi
58832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
58833 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
58834   case "$gl_cv_cc_float_expbit0" in
58835     word*bit*)
58836       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58837       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
58838
58839 cat >>confdefs.h <<_ACEOF
58840 #define FLT_EXPBIT0_WORD $word
58841 _ACEOF
58842
58843
58844 cat >>confdefs.h <<_ACEOF
58845 #define FLT_EXPBIT0_BIT $bit
58846 _ACEOF
58847
58848       ;;
58849   esac
58850
58851
58852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
58853 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
58854 if ${gl_cv_cc_float_expbit0+:} false; then :
58855   $as_echo_n "(cached) " >&6
58856 else
58857
58858       if test "$cross_compiling" = yes; then :
58859   gl_cv_cc_float_expbit0="word 0 bit 23"
58860 else
58861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58862 /* end confdefs.h.  */
58863
58864 #include <float.h>
58865 #include <stddef.h>
58866 #include <stdio.h>
58867 #include <string.h>
58868 #define NWORDS \
58869   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58870 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
58871 static unsigned int ored_words[NWORDS];
58872 static unsigned int anded_words[NWORDS];
58873 static void add_to_ored_words (float x)
58874 {
58875   memory_float m;
58876   size_t i;
58877   /* Clear it first, in case
58878      sizeof (float) < sizeof (memory_float).  */
58879   memset (&m, 0, sizeof (memory_float));
58880   m.value = x;
58881   for (i = 0; i < NWORDS; i++)
58882     {
58883       ored_words[i] |= m.word[i];
58884       anded_words[i] &= m.word[i];
58885     }
58886 }
58887 int main ()
58888 {
58889   size_t j;
58890   FILE *fp = fopen ("conftest.out", "w");
58891   if (fp == NULL)
58892     return 1;
58893   for (j = 0; j < NWORDS; j++)
58894     anded_words[j] = ~ (unsigned int) 0;
58895   add_to_ored_words (0.25f);
58896   add_to_ored_words (0.5f);
58897   add_to_ored_words (1.0f);
58898   add_to_ored_words (2.0f);
58899   add_to_ored_words (4.0f);
58900   /* Remove bits that are common (e.g. if representation of the first mantissa
58901      bit is explicit).  */
58902   for (j = 0; j < NWORDS; j++)
58903     ored_words[j] &= ~anded_words[j];
58904   /* Now find the nonzero word.  */
58905   for (j = 0; j < NWORDS; j++)
58906     if (ored_words[j] != 0)
58907       break;
58908   if (j < NWORDS)
58909     {
58910       size_t i;
58911       for (i = j + 1; i < NWORDS; i++)
58912         if (ored_words[i] != 0)
58913           {
58914             fprintf (fp, "unknown");
58915             return (fclose (fp) != 0);
58916           }
58917       for (i = 0; ; i++)
58918         if ((ored_words[j] >> i) & 1)
58919           {
58920             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58921             return (fclose (fp) != 0);
58922           }
58923     }
58924   fprintf (fp, "unknown");
58925   return (fclose (fp) != 0);
58926 }
58927
58928 _ACEOF
58929 if ac_fn_c_try_run "$LINENO"; then :
58930   gl_cv_cc_float_expbit0=`cat conftest.out`
58931 else
58932   gl_cv_cc_float_expbit0="unknown"
58933 fi
58934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58935   conftest.$ac_objext conftest.beam conftest.$ac_ext
58936 fi
58937
58938       rm -f conftest.out
58939
58940 fi
58941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
58942 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
58943   case "$gl_cv_cc_float_expbit0" in
58944     word*bit*)
58945       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58946       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
58947
58948 cat >>confdefs.h <<_ACEOF
58949 #define FLT_EXPBIT0_WORD $word
58950 _ACEOF
58951
58952
58953 cat >>confdefs.h <<_ACEOF
58954 #define FLT_EXPBIT0_BIT $bit
58955 _ACEOF
58956
58957       ;;
58958   esac
58959
58960
58961
58962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
58963 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
58964 if ${gl_cv_cc_long_double_expbit0+:} false; then :
58965   $as_echo_n "(cached) " >&6
58966 else
58967
58968       if test "$cross_compiling" = yes; then :
58969
58970                               gl_cv_cc_long_double_expbit0="unknown"
58971
58972 else
58973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58974 /* end confdefs.h.  */
58975
58976 #include <float.h>
58977 #include <stddef.h>
58978 #include <stdio.h>
58979 #include <string.h>
58980 #define NWORDS \
58981   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58982 typedef union { long double value; unsigned int word[NWORDS]; }
58983         memory_long_double;
58984 static unsigned int ored_words[NWORDS];
58985 static unsigned int anded_words[NWORDS];
58986 static void add_to_ored_words (long double x)
58987 {
58988   memory_long_double m;
58989   size_t i;
58990   /* Clear it first, in case
58991      sizeof (long double) < sizeof (memory_long_double).  */
58992   memset (&m, 0, sizeof (memory_long_double));
58993   m.value = x;
58994   for (i = 0; i < NWORDS; i++)
58995     {
58996       ored_words[i] |= m.word[i];
58997       anded_words[i] &= m.word[i];
58998     }
58999 }
59000 int main ()
59001 {
59002   size_t j;
59003   FILE *fp = fopen ("conftest.out", "w");
59004   if (fp == NULL)
59005     return 1;
59006   for (j = 0; j < NWORDS; j++)
59007     anded_words[j] = ~ (unsigned int) 0;
59008   add_to_ored_words (0.25L);
59009   add_to_ored_words (0.5L);
59010   add_to_ored_words (1.0L);
59011   add_to_ored_words (2.0L);
59012   add_to_ored_words (4.0L);
59013   /* Remove bits that are common (e.g. if representation of the first mantissa
59014      bit is explicit).  */
59015   for (j = 0; j < NWORDS; j++)
59016     ored_words[j] &= ~anded_words[j];
59017   /* Now find the nonzero word.  */
59018   for (j = 0; j < NWORDS; j++)
59019     if (ored_words[j] != 0)
59020       break;
59021   if (j < NWORDS)
59022     {
59023       size_t i;
59024       for (i = j + 1; i < NWORDS; i++)
59025         if (ored_words[i] != 0)
59026           {
59027             fprintf (fp, "unknown");
59028             return (fclose (fp) != 0);
59029           }
59030       for (i = 0; ; i++)
59031         if ((ored_words[j] >> i) & 1)
59032           {
59033             fprintf (fp, "word %d bit %d", (int) j, (int) i);
59034             return (fclose (fp) != 0);
59035           }
59036     }
59037   fprintf (fp, "unknown");
59038   return (fclose (fp) != 0);
59039 }
59040
59041 _ACEOF
59042 if ac_fn_c_try_run "$LINENO"; then :
59043   gl_cv_cc_long_double_expbit0=`cat conftest.out`
59044 else
59045   gl_cv_cc_long_double_expbit0="unknown"
59046 fi
59047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59048   conftest.$ac_objext conftest.beam conftest.$ac_ext
59049 fi
59050
59051       rm -f conftest.out
59052
59053 fi
59054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
59055 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
59056   case "$gl_cv_cc_long_double_expbit0" in
59057     word*bit*)
59058       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
59059       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
59060
59061 cat >>confdefs.h <<_ACEOF
59062 #define LDBL_EXPBIT0_WORD $word
59063 _ACEOF
59064
59065
59066 cat >>confdefs.h <<_ACEOF
59067 #define LDBL_EXPBIT0_BIT $bit
59068 _ACEOF
59069
59070       ;;
59071   esac
59072
59073
59074
59075
59076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
59077 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
59078 if ${gl_cv_cc_long_double_expbit0+:} false; then :
59079   $as_echo_n "(cached) " >&6
59080 else
59081
59082       if test "$cross_compiling" = yes; then :
59083
59084                               gl_cv_cc_long_double_expbit0="unknown"
59085
59086 else
59087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59088 /* end confdefs.h.  */
59089
59090 #include <float.h>
59091 #include <stddef.h>
59092 #include <stdio.h>
59093 #include <string.h>
59094 #define NWORDS \
59095   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
59096 typedef union { long double value; unsigned int word[NWORDS]; }
59097         memory_long_double;
59098 static unsigned int ored_words[NWORDS];
59099 static unsigned int anded_words[NWORDS];
59100 static void add_to_ored_words (long double x)
59101 {
59102   memory_long_double m;
59103   size_t i;
59104   /* Clear it first, in case
59105      sizeof (long double) < sizeof (memory_long_double).  */
59106   memset (&m, 0, sizeof (memory_long_double));
59107   m.value = x;
59108   for (i = 0; i < NWORDS; i++)
59109     {
59110       ored_words[i] |= m.word[i];
59111       anded_words[i] &= m.word[i];
59112     }
59113 }
59114 int main ()
59115 {
59116   size_t j;
59117   FILE *fp = fopen ("conftest.out", "w");
59118   if (fp == NULL)
59119     return 1;
59120   for (j = 0; j < NWORDS; j++)
59121     anded_words[j] = ~ (unsigned int) 0;
59122   add_to_ored_words (0.25L);
59123   add_to_ored_words (0.5L);
59124   add_to_ored_words (1.0L);
59125   add_to_ored_words (2.0L);
59126   add_to_ored_words (4.0L);
59127   /* Remove bits that are common (e.g. if representation of the first mantissa
59128      bit is explicit).  */
59129   for (j = 0; j < NWORDS; j++)
59130     ored_words[j] &= ~anded_words[j];
59131   /* Now find the nonzero word.  */
59132   for (j = 0; j < NWORDS; j++)
59133     if (ored_words[j] != 0)
59134       break;
59135   if (j < NWORDS)
59136     {
59137       size_t i;
59138       for (i = j + 1; i < NWORDS; i++)
59139         if (ored_words[i] != 0)
59140           {
59141             fprintf (fp, "unknown");
59142             return (fclose (fp) != 0);
59143           }
59144       for (i = 0; ; i++)
59145         if ((ored_words[j] >> i) & 1)
59146           {
59147             fprintf (fp, "word %d bit %d", (int) j, (int) i);
59148             return (fclose (fp) != 0);
59149           }
59150     }
59151   fprintf (fp, "unknown");
59152   return (fclose (fp) != 0);
59153 }
59154
59155 _ACEOF
59156 if ac_fn_c_try_run "$LINENO"; then :
59157   gl_cv_cc_long_double_expbit0=`cat conftest.out`
59158 else
59159   gl_cv_cc_long_double_expbit0="unknown"
59160 fi
59161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59162   conftest.$ac_objext conftest.beam conftest.$ac_ext
59163 fi
59164
59165       rm -f conftest.out
59166
59167 fi
59168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
59169 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
59170   case "$gl_cv_cc_long_double_expbit0" in
59171     word*bit*)
59172       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
59173       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
59174
59175 cat >>confdefs.h <<_ACEOF
59176 #define LDBL_EXPBIT0_WORD $word
59177 _ACEOF
59178
59179
59180 cat >>confdefs.h <<_ACEOF
59181 #define LDBL_EXPBIT0_BIT $bit
59182 _ACEOF
59183
59184       ;;
59185   esac
59186
59187
59188
59189
59190
59191
59192
59193
59194
59195
59196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
59197 $as_echo_n "checking whether lseek detects pipes... " >&6; }
59198 if ${gl_cv_func_lseek_pipe+:} false; then :
59199   $as_echo_n "(cached) " >&6
59200 else
59201   case "$host_os" in
59202        mingw*)
59203                                                                gl_cv_func_lseek_pipe=no
59204          ;;
59205        *)
59206          if test $cross_compiling = no; then
59207            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59208 /* end confdefs.h.  */
59209
59210 #include <sys/types.h> /* for off_t */
59211 #include <stdio.h> /* for SEEK_CUR */
59212 #if HAVE_UNISTD_H
59213 # include <unistd.h>
59214 #else /* on Windows with MSVC */
59215 # include <io.h>
59216 #endif
59217
59218 int
59219 main ()
59220 {
59221
59222   /* Exit with success only if stdin is seekable.  */
59223   return lseek (0, (off_t)0, SEEK_CUR) < 0;
59224
59225   ;
59226   return 0;
59227 }
59228 _ACEOF
59229 if ac_fn_c_try_link "$LINENO"; then :
59230   if test -s conftest$ac_exeext \
59231                  && ./conftest$ac_exeext < conftest.$ac_ext \
59232                  && test 1 = "`echo hi \
59233                    | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
59234                 gl_cv_func_lseek_pipe=yes
59235               else
59236                 gl_cv_func_lseek_pipe=no
59237               fi
59238
59239 else
59240   gl_cv_func_lseek_pipe=no
59241 fi
59242 rm -f core conftest.err conftest.$ac_objext \
59243     conftest$ac_exeext conftest.$ac_ext
59244          else
59245            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59246 /* end confdefs.h.  */
59247
59248 #if defined __BEOS__
59249 /* BeOS mistakenly return 0 when trying to seek on pipes.  */
59250   Choke me.
59251 #endif
59252 _ACEOF
59253 if ac_fn_c_try_compile "$LINENO"; then :
59254   gl_cv_func_lseek_pipe=yes
59255 else
59256   gl_cv_func_lseek_pipe=no
59257 fi
59258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59259          fi
59260          ;;
59261      esac
59262
59263 fi
59264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
59265 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
59266   if test $gl_cv_func_lseek_pipe = no; then
59267     REPLACE_LSEEK=1
59268
59269 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
59270
59271   fi
59272
59273
59274   if test $WINDOWS_64_BIT_OFF_T = 1; then
59275     REPLACE_LSEEK=1
59276   fi
59277
59278   if test $REPLACE_LSEEK = 1; then
59279
59280
59281
59282
59283
59284
59285
59286
59287   gltests_LIBOBJS="$gltests_LIBOBJS lseek.$ac_objext"
59288
59289   fi
59290
59291
59292
59293
59294
59295     if test "$GNULIB_LSEEK" != 1; then
59296         if test "$GNULIB_LSEEK" = 0; then
59297       GNULIB_LSEEK=$gl_module_indicator_condition
59298     else
59299       GNULIB_LSEEK="($GNULIB_LSEEK || $gl_module_indicator_condition)"
59300     fi
59301   fi
59302
59303
59304
59305
59306
59307 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
59308
59309
59310
59311
59312
59313
59314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
59315 $as_echo_n "checking for a traditional french locale... " >&6; }
59316 if ${gt_cv_locale_fr+:} false; then :
59317   $as_echo_n "(cached) " >&6
59318 else
59319
59320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59321 /* end confdefs.h.  */
59322
59323 #include <locale.h>
59324 #include <time.h>
59325 #if HAVE_LANGINFO_CODESET
59326 # include <langinfo.h>
59327 #endif
59328 #include <stdlib.h>
59329 #include <string.h>
59330 struct tm t;
59331 char buf[16];
59332 int main () {
59333   /* Check whether the given locale name is recognized by the system.  */
59334 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59335   /* On native Windows, setlocale(category, "") looks at the system settings,
59336      not at the environment variables.  Also, when an encoding suffix such
59337      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59338      category of the locale to "C".  */
59339   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59340       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59341     return 1;
59342 #else
59343   if (setlocale (LC_ALL, "") == NULL) return 1;
59344 #endif
59345   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59346      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59347      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59348      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59349      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59350      some unit tests fail.
59351      On MirBSD 10, when an unsupported locale is specified, setlocale()
59352      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
59353 #if HAVE_LANGINFO_CODESET
59354   {
59355     const char *cs = nl_langinfo (CODESET);
59356     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
59357         || strcmp (cs, "UTF-8") == 0)
59358       return 1;
59359   }
59360 #endif
59361 #ifdef __CYGWIN__
59362   /* On Cygwin, avoid locale names without encoding suffix, because the
59363      locale_charset() function relies on the encoding suffix.  Note that
59364      LC_ALL is set on the command line.  */
59365   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59366 #endif
59367   /* Check whether in the abbreviation of the second month, the second
59368      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
59369      one byte long. This excludes the UTF-8 encoding.  */
59370   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59371   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
59372 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
59373   /* Check whether the decimal separator is a comma.
59374      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
59375      are nl_langinfo(RADIXCHAR) are both ".".  */
59376   if (localeconv () ->decimal_point[0] != ',') return 1;
59377 #endif
59378   return 0;
59379 }
59380
59381 _ACEOF
59382     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59383   (eval $ac_link) 2>&5
59384   ac_status=$?
59385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59386   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59387       case "$host_os" in
59388         # Handle native Windows specially, because there setlocale() interprets
59389         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59390         # "fr" or "fra" as "French" or "French_France.1252",
59391         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59392         # "ja" as "Japanese" or "Japanese_Japan.932",
59393         # and similar.
59394         mingw*)
59395           # Test for the native Windows locale name.
59396           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59397             gt_cv_locale_fr=French_France.1252
59398           else
59399             # None found.
59400             gt_cv_locale_fr=none
59401           fi
59402           ;;
59403         *)
59404           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59405           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59406           # configure script would override the LC_ALL setting. Likewise for
59407           # LC_CTYPE, which is also set at the beginning of the configure script.
59408           # Test for the usual locale name.
59409           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59410             gt_cv_locale_fr=fr_FR
59411           else
59412             # Test for the locale name with explicit encoding suffix.
59413             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59414               gt_cv_locale_fr=fr_FR.ISO-8859-1
59415             else
59416               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
59417               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59418                 gt_cv_locale_fr=fr_FR.ISO8859-1
59419               else
59420                 # Test for the HP-UX locale name.
59421                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59422                   gt_cv_locale_fr=fr_FR.iso88591
59423                 else
59424                   # Test for the Solaris 7 locale name.
59425                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59426                     gt_cv_locale_fr=fr
59427                   else
59428                     # None found.
59429                     gt_cv_locale_fr=none
59430                   fi
59431                 fi
59432               fi
59433             fi
59434           fi
59435           ;;
59436       esac
59437     fi
59438     rm -fr conftest*
59439
59440 fi
59441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
59442 $as_echo "$gt_cv_locale_fr" >&6; }
59443   LOCALE_FR=$gt_cv_locale_fr
59444
59445
59446
59447
59448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
59449 $as_echo_n "checking for a french Unicode locale... " >&6; }
59450 if ${gt_cv_locale_fr_utf8+:} false; then :
59451   $as_echo_n "(cached) " >&6
59452 else
59453
59454     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59455 /* end confdefs.h.  */
59456
59457 #include <locale.h>
59458 #include <time.h>
59459 #if HAVE_LANGINFO_CODESET
59460 # include <langinfo.h>
59461 #endif
59462 #include <stdlib.h>
59463 #include <string.h>
59464 struct tm t;
59465 char buf[16];
59466 int main () {
59467   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
59468      imitates locale dependent behaviour by looking at the environment
59469      variables, and all locales use the UTF-8 encoding.  */
59470 #if !(defined __BEOS__ || defined __HAIKU__)
59471   /* Check whether the given locale name is recognized by the system.  */
59472 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59473   /* On native Windows, setlocale(category, "") looks at the system settings,
59474      not at the environment variables.  Also, when an encoding suffix such
59475      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59476      category of the locale to "C".  */
59477   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59478       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59479     return 1;
59480 # else
59481   if (setlocale (LC_ALL, "") == NULL) return 1;
59482 # endif
59483   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59484      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59485      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59486      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59487      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59488      some unit tests fail.  */
59489 # if HAVE_LANGINFO_CODESET
59490   {
59491     const char *cs = nl_langinfo (CODESET);
59492     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
59493       return 1;
59494   }
59495 # endif
59496 # ifdef __CYGWIN__
59497   /* On Cygwin, avoid locale names without encoding suffix, because the
59498      locale_charset() function relies on the encoding suffix.  Note that
59499      LC_ALL is set on the command line.  */
59500   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59501 # endif
59502   /* Check whether in the abbreviation of the second month, the second
59503      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
59504      two bytes long, with UTF-8 encoding.  */
59505   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59506   if (strftime (buf, sizeof (buf), "%b", &t) < 4
59507       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
59508     return 1;
59509 #endif
59510 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
59511   /* Check whether the decimal separator is a comma.
59512      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
59513      are nl_langinfo(RADIXCHAR) are both ".".  */
59514   if (localeconv () ->decimal_point[0] != ',') return 1;
59515 #endif
59516   return 0;
59517 }
59518
59519 _ACEOF
59520     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59521   (eval $ac_link) 2>&5
59522   ac_status=$?
59523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59524   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59525       case "$host_os" in
59526         # Handle native Windows specially, because there setlocale() interprets
59527         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59528         # "fr" or "fra" as "French" or "French_France.1252",
59529         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59530         # "ja" as "Japanese" or "Japanese_Japan.932",
59531         # and similar.
59532         mingw*)
59533           # Test for the hypothetical native Windows locale name.
59534           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59535             gt_cv_locale_fr_utf8=French_France.65001
59536           else
59537             # None found.
59538             gt_cv_locale_fr_utf8=none
59539           fi
59540           ;;
59541         *)
59542           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59543           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59544           # configure script would override the LC_ALL setting. Likewise for
59545           # LC_CTYPE, which is also set at the beginning of the configure script.
59546           # Test for the usual locale name.
59547           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59548             gt_cv_locale_fr_utf8=fr_FR
59549           else
59550             # Test for the locale name with explicit encoding suffix.
59551             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59552               gt_cv_locale_fr_utf8=fr_FR.UTF-8
59553             else
59554               # Test for the Solaris 7 locale name.
59555               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59556                 gt_cv_locale_fr_utf8=fr.UTF-8
59557               else
59558                 # None found.
59559                 gt_cv_locale_fr_utf8=none
59560               fi
59561             fi
59562           fi
59563           ;;
59564       esac
59565     fi
59566     rm -fr conftest*
59567
59568 fi
59569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
59570 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
59571   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
59572
59573
59574
59575
59576
59577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
59578 $as_echo_n "checking for a traditional japanese locale... " >&6; }
59579 if ${gt_cv_locale_ja+:} false; then :
59580   $as_echo_n "(cached) " >&6
59581 else
59582
59583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59584 /* end confdefs.h.  */
59585
59586 #include <locale.h>
59587 #include <time.h>
59588 #if HAVE_LANGINFO_CODESET
59589 # include <langinfo.h>
59590 #endif
59591 #include <stdlib.h>
59592 #include <string.h>
59593 struct tm t;
59594 char buf[16];
59595 int main ()
59596 {
59597   const char *p;
59598   /* Check whether the given locale name is recognized by the system.  */
59599 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59600   /* On native Windows, setlocale(category, "") looks at the system settings,
59601      not at the environment variables.  Also, when an encoding suffix such
59602      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59603      category of the locale to "C".  */
59604   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59605       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59606     return 1;
59607 #else
59608   if (setlocale (LC_ALL, "") == NULL) return 1;
59609 #endif
59610   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59611      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59612      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59613      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59614      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59615      some unit tests fail.
59616      On MirBSD 10, when an unsupported locale is specified, setlocale()
59617      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
59618 #if HAVE_LANGINFO_CODESET
59619   {
59620     const char *cs = nl_langinfo (CODESET);
59621     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
59622         || strcmp (cs, "UTF-8") == 0)
59623       return 1;
59624   }
59625 #endif
59626 #ifdef __CYGWIN__
59627   /* On Cygwin, avoid locale names without encoding suffix, because the
59628      locale_charset() function relies on the encoding suffix.  Note that
59629      LC_ALL is set on the command line.  */
59630   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59631 #endif
59632   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
59633      on Cygwin 1.5.x.  */
59634   if (MB_CUR_MAX == 1)
59635     return 1;
59636   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
59637      This excludes the UTF-8 encoding (except on MirBSD).  */
59638   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59639   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
59640   for (p = buf; *p != '\0'; p++)
59641     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
59642       return 1;
59643   return 0;
59644 }
59645
59646 _ACEOF
59647     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59648   (eval $ac_link) 2>&5
59649   ac_status=$?
59650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59651   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59652       case "$host_os" in
59653         # Handle native Windows specially, because there setlocale() interprets
59654         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59655         # "fr" or "fra" as "French" or "French_France.1252",
59656         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59657         # "ja" as "Japanese" or "Japanese_Japan.932",
59658         # and similar.
59659         mingw*)
59660           # Note that on native Windows, the Japanese locale is
59661           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
59662           # cannot use it here.
59663           gt_cv_locale_ja=none
59664           ;;
59665         *)
59666           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59667           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59668           # configure script would override the LC_ALL setting. Likewise for
59669           # LC_CTYPE, which is also set at the beginning of the configure script.
59670           # Test for the AIX locale name.
59671           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59672             gt_cv_locale_ja=ja_JP
59673           else
59674             # Test for the locale name with explicit encoding suffix.
59675             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59676               gt_cv_locale_ja=ja_JP.EUC-JP
59677             else
59678               # Test for the HP-UX, OSF/1, NetBSD locale name.
59679               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59680                 gt_cv_locale_ja=ja_JP.eucJP
59681               else
59682                 # Test for the IRIX, FreeBSD locale name.
59683                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59684                   gt_cv_locale_ja=ja_JP.EUC
59685                 else
59686                   # Test for the Solaris 7 locale name.
59687                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59688                     gt_cv_locale_ja=ja
59689                   else
59690                     # Special test for NetBSD 1.6.
59691                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
59692                       gt_cv_locale_ja=ja_JP.eucJP
59693                     else
59694                       # None found.
59695                       gt_cv_locale_ja=none
59696                     fi
59697                   fi
59698                 fi
59699               fi
59700             fi
59701           fi
59702           ;;
59703       esac
59704     fi
59705     rm -fr conftest*
59706
59707 fi
59708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
59709 $as_echo "$gt_cv_locale_ja" >&6; }
59710   LOCALE_JA=$gt_cv_locale_ja
59711
59712
59713
59714
59715
59716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
59717 $as_echo_n "checking for a transitional chinese locale... " >&6; }
59718 if ${gt_cv_locale_zh_CN+:} false; then :
59719   $as_echo_n "(cached) " >&6
59720 else
59721
59722     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59723 /* end confdefs.h.  */
59724
59725 #include <locale.h>
59726 #include <stdlib.h>
59727 #include <time.h>
59728 #if HAVE_LANGINFO_CODESET
59729 # include <langinfo.h>
59730 #endif
59731 #include <stdlib.h>
59732 #include <string.h>
59733 struct tm t;
59734 char buf[16];
59735 int main ()
59736 {
59737   const char *p;
59738   /* Check whether the given locale name is recognized by the system.  */
59739 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59740   /* On native Windows, setlocale(category, "") looks at the system settings,
59741      not at the environment variables.  Also, when an encoding suffix such
59742      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59743      category of the locale to "C".  */
59744   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59745       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59746     return 1;
59747 #else
59748   if (setlocale (LC_ALL, "") == NULL) return 1;
59749 #endif
59750   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59751      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59752      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59753      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59754      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59755      some unit tests fail.
59756      On MirBSD 10, when an unsupported locale is specified, setlocale()
59757      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
59758 #if HAVE_LANGINFO_CODESET
59759   {
59760     const char *cs = nl_langinfo (CODESET);
59761     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
59762         || strcmp (cs, "UTF-8") == 0)
59763       return 1;
59764   }
59765 #endif
59766 #ifdef __CYGWIN__
59767   /* On Cygwin, avoid locale names without encoding suffix, because the
59768      locale_charset() function relies on the encoding suffix.  Note that
59769      LC_ALL is set on the command line.  */
59770   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59771 #endif
59772   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
59773      This excludes the UTF-8 encoding (except on MirBSD).  */
59774   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59775   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
59776   for (p = buf; *p != '\0'; p++)
59777     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
59778       return 1;
59779   /* Check whether a typical GB18030 multibyte sequence is recognized as a
59780      single wide character.  This excludes the GB2312 and GBK encodings.  */
59781   if (mblen ("\203\062\332\066", 5) != 4)
59782     return 1;
59783   return 0;
59784 }
59785
59786 _ACEOF
59787     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59788   (eval $ac_link) 2>&5
59789   ac_status=$?
59790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59791   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59792       case "$host_os" in
59793         # Handle native Windows specially, because there setlocale() interprets
59794         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59795         # "fr" or "fra" as "French" or "French_France.1252",
59796         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59797         # "ja" as "Japanese" or "Japanese_Japan.932",
59798         # and similar.
59799         mingw*)
59800           # Test for the hypothetical native Windows locale name.
59801           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59802             gt_cv_locale_zh_CN=Chinese_China.54936
59803           else
59804             # None found.
59805             gt_cv_locale_zh_CN=none
59806           fi
59807           ;;
59808         solaris2.8)
59809           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
59810           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
59811           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
59812           gt_cv_locale_zh_CN=none
59813           ;;
59814         *)
59815           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59816           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59817           # configure script would override the LC_ALL setting. Likewise for
59818           # LC_CTYPE, which is also set at the beginning of the configure script.
59819           # Test for the locale name without encoding suffix.
59820           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59821             gt_cv_locale_zh_CN=zh_CN
59822           else
59823             # Test for the locale name with explicit encoding suffix.
59824             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59825               gt_cv_locale_zh_CN=zh_CN.GB18030
59826             else
59827               # None found.
59828               gt_cv_locale_zh_CN=none
59829             fi
59830           fi
59831           ;;
59832       esac
59833     else
59834       # If there was a link error, due to mblen(), the system is so old that
59835       # it certainly doesn't have a chinese locale.
59836       gt_cv_locale_zh_CN=none
59837     fi
59838     rm -fr conftest*
59839
59840 fi
59841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
59842 $as_echo "$gt_cv_locale_zh_CN" >&6; }
59843   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
59844
59845
59846
59847
59848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
59849 $as_echo_n "checking for a french Unicode locale... " >&6; }
59850 if ${gt_cv_locale_fr_utf8+:} false; then :
59851   $as_echo_n "(cached) " >&6
59852 else
59853
59854     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59855 /* end confdefs.h.  */
59856
59857 #include <locale.h>
59858 #include <time.h>
59859 #if HAVE_LANGINFO_CODESET
59860 # include <langinfo.h>
59861 #endif
59862 #include <stdlib.h>
59863 #include <string.h>
59864 struct tm t;
59865 char buf[16];
59866 int main () {
59867   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
59868      imitates locale dependent behaviour by looking at the environment
59869      variables, and all locales use the UTF-8 encoding.  */
59870 #if !(defined __BEOS__ || defined __HAIKU__)
59871   /* Check whether the given locale name is recognized by the system.  */
59872 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59873   /* On native Windows, setlocale(category, "") looks at the system settings,
59874      not at the environment variables.  Also, when an encoding suffix such
59875      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59876      category of the locale to "C".  */
59877   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59878       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59879     return 1;
59880 # else
59881   if (setlocale (LC_ALL, "") == NULL) return 1;
59882 # endif
59883   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59884      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59885      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59886      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59887      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59888      some unit tests fail.  */
59889 # if HAVE_LANGINFO_CODESET
59890   {
59891     const char *cs = nl_langinfo (CODESET);
59892     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
59893       return 1;
59894   }
59895 # endif
59896 # ifdef __CYGWIN__
59897   /* On Cygwin, avoid locale names without encoding suffix, because the
59898      locale_charset() function relies on the encoding suffix.  Note that
59899      LC_ALL is set on the command line.  */
59900   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59901 # endif
59902   /* Check whether in the abbreviation of the second month, the second
59903      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
59904      two bytes long, with UTF-8 encoding.  */
59905   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59906   if (strftime (buf, sizeof (buf), "%b", &t) < 4
59907       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
59908     return 1;
59909 #endif
59910 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
59911   /* Check whether the decimal separator is a comma.
59912      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
59913      are nl_langinfo(RADIXCHAR) are both ".".  */
59914   if (localeconv () ->decimal_point[0] != ',') return 1;
59915 #endif
59916   return 0;
59917 }
59918
59919 _ACEOF
59920     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59921   (eval $ac_link) 2>&5
59922   ac_status=$?
59923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59924   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59925       case "$host_os" in
59926         # Handle native Windows specially, because there setlocale() interprets
59927         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59928         # "fr" or "fra" as "French" or "French_France.1252",
59929         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59930         # "ja" as "Japanese" or "Japanese_Japan.932",
59931         # and similar.
59932         mingw*)
59933           # Test for the hypothetical native Windows locale name.
59934           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59935             gt_cv_locale_fr_utf8=French_France.65001
59936           else
59937             # None found.
59938             gt_cv_locale_fr_utf8=none
59939           fi
59940           ;;
59941         *)
59942           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59943           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59944           # configure script would override the LC_ALL setting. Likewise for
59945           # LC_CTYPE, which is also set at the beginning of the configure script.
59946           # Test for the usual locale name.
59947           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59948             gt_cv_locale_fr_utf8=fr_FR
59949           else
59950             # Test for the locale name with explicit encoding suffix.
59951             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59952               gt_cv_locale_fr_utf8=fr_FR.UTF-8
59953             else
59954               # Test for the Solaris 7 locale name.
59955               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59956                 gt_cv_locale_fr_utf8=fr.UTF-8
59957               else
59958                 # None found.
59959                 gt_cv_locale_fr_utf8=none
59960               fi
59961             fi
59962           fi
59963           ;;
59964       esac
59965     fi
59966     rm -fr conftest*
59967
59968 fi
59969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
59970 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
59971   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
59972
59973
59974
59975
59976
59977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
59978 $as_echo_n "checking for a traditional french locale... " >&6; }
59979 if ${gt_cv_locale_fr+:} false; then :
59980   $as_echo_n "(cached) " >&6
59981 else
59982
59983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59984 /* end confdefs.h.  */
59985
59986 #include <locale.h>
59987 #include <time.h>
59988 #if HAVE_LANGINFO_CODESET
59989 # include <langinfo.h>
59990 #endif
59991 #include <stdlib.h>
59992 #include <string.h>
59993 struct tm t;
59994 char buf[16];
59995 int main () {
59996   /* Check whether the given locale name is recognized by the system.  */
59997 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59998   /* On native Windows, setlocale(category, "") looks at the system settings,
59999      not at the environment variables.  Also, when an encoding suffix such
60000      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60001      category of the locale to "C".  */
60002   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60003       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60004     return 1;
60005 #else
60006   if (setlocale (LC_ALL, "") == NULL) return 1;
60007 #endif
60008   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60009      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60010      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60011      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60012      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60013      some unit tests fail.
60014      On MirBSD 10, when an unsupported locale is specified, setlocale()
60015      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
60016 #if HAVE_LANGINFO_CODESET
60017   {
60018     const char *cs = nl_langinfo (CODESET);
60019     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
60020         || strcmp (cs, "UTF-8") == 0)
60021       return 1;
60022   }
60023 #endif
60024 #ifdef __CYGWIN__
60025   /* On Cygwin, avoid locale names without encoding suffix, because the
60026      locale_charset() function relies on the encoding suffix.  Note that
60027      LC_ALL is set on the command line.  */
60028   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60029 #endif
60030   /* Check whether in the abbreviation of the second month, the second
60031      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
60032      one byte long. This excludes the UTF-8 encoding.  */
60033   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60034   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
60035 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
60036   /* Check whether the decimal separator is a comma.
60037      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
60038      are nl_langinfo(RADIXCHAR) are both ".".  */
60039   if (localeconv () ->decimal_point[0] != ',') return 1;
60040 #endif
60041   return 0;
60042 }
60043
60044 _ACEOF
60045     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60046   (eval $ac_link) 2>&5
60047   ac_status=$?
60048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60049   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60050       case "$host_os" in
60051         # Handle native Windows specially, because there setlocale() interprets
60052         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60053         # "fr" or "fra" as "French" or "French_France.1252",
60054         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60055         # "ja" as "Japanese" or "Japanese_Japan.932",
60056         # and similar.
60057         mingw*)
60058           # Test for the native Windows locale name.
60059           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60060             gt_cv_locale_fr=French_France.1252
60061           else
60062             # None found.
60063             gt_cv_locale_fr=none
60064           fi
60065           ;;
60066         *)
60067           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60068           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60069           # configure script would override the LC_ALL setting. Likewise for
60070           # LC_CTYPE, which is also set at the beginning of the configure script.
60071           # Test for the usual locale name.
60072           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60073             gt_cv_locale_fr=fr_FR
60074           else
60075             # Test for the locale name with explicit encoding suffix.
60076             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60077               gt_cv_locale_fr=fr_FR.ISO-8859-1
60078             else
60079               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
60080               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60081                 gt_cv_locale_fr=fr_FR.ISO8859-1
60082               else
60083                 # Test for the HP-UX locale name.
60084                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60085                   gt_cv_locale_fr=fr_FR.iso88591
60086                 else
60087                   # Test for the Solaris 7 locale name.
60088                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60089                     gt_cv_locale_fr=fr
60090                   else
60091                     # None found.
60092                     gt_cv_locale_fr=none
60093                   fi
60094                 fi
60095               fi
60096             fi
60097           fi
60098           ;;
60099       esac
60100     fi
60101     rm -fr conftest*
60102
60103 fi
60104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
60105 $as_echo "$gt_cv_locale_fr" >&6; }
60106   LOCALE_FR=$gt_cv_locale_fr
60107
60108
60109
60110
60111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
60112 $as_echo_n "checking for a french Unicode locale... " >&6; }
60113 if ${gt_cv_locale_fr_utf8+:} false; then :
60114   $as_echo_n "(cached) " >&6
60115 else
60116
60117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60118 /* end confdefs.h.  */
60119
60120 #include <locale.h>
60121 #include <time.h>
60122 #if HAVE_LANGINFO_CODESET
60123 # include <langinfo.h>
60124 #endif
60125 #include <stdlib.h>
60126 #include <string.h>
60127 struct tm t;
60128 char buf[16];
60129 int main () {
60130   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
60131      imitates locale dependent behaviour by looking at the environment
60132      variables, and all locales use the UTF-8 encoding.  */
60133 #if !(defined __BEOS__ || defined __HAIKU__)
60134   /* Check whether the given locale name is recognized by the system.  */
60135 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60136   /* On native Windows, setlocale(category, "") looks at the system settings,
60137      not at the environment variables.  Also, when an encoding suffix such
60138      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60139      category of the locale to "C".  */
60140   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60141       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60142     return 1;
60143 # else
60144   if (setlocale (LC_ALL, "") == NULL) return 1;
60145 # endif
60146   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60147      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60148      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60149      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60150      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60151      some unit tests fail.  */
60152 # if HAVE_LANGINFO_CODESET
60153   {
60154     const char *cs = nl_langinfo (CODESET);
60155     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
60156       return 1;
60157   }
60158 # endif
60159 # ifdef __CYGWIN__
60160   /* On Cygwin, avoid locale names without encoding suffix, because the
60161      locale_charset() function relies on the encoding suffix.  Note that
60162      LC_ALL is set on the command line.  */
60163   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60164 # endif
60165   /* Check whether in the abbreviation of the second month, the second
60166      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
60167      two bytes long, with UTF-8 encoding.  */
60168   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60169   if (strftime (buf, sizeof (buf), "%b", &t) < 4
60170       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
60171     return 1;
60172 #endif
60173 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
60174   /* Check whether the decimal separator is a comma.
60175      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
60176      are nl_langinfo(RADIXCHAR) are both ".".  */
60177   if (localeconv () ->decimal_point[0] != ',') return 1;
60178 #endif
60179   return 0;
60180 }
60181
60182 _ACEOF
60183     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60184   (eval $ac_link) 2>&5
60185   ac_status=$?
60186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60187   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60188       case "$host_os" in
60189         # Handle native Windows specially, because there setlocale() interprets
60190         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60191         # "fr" or "fra" as "French" or "French_France.1252",
60192         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60193         # "ja" as "Japanese" or "Japanese_Japan.932",
60194         # and similar.
60195         mingw*)
60196           # Test for the hypothetical native Windows locale name.
60197           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60198             gt_cv_locale_fr_utf8=French_France.65001
60199           else
60200             # None found.
60201             gt_cv_locale_fr_utf8=none
60202           fi
60203           ;;
60204         *)
60205           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60206           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60207           # configure script would override the LC_ALL setting. Likewise for
60208           # LC_CTYPE, which is also set at the beginning of the configure script.
60209           # Test for the usual locale name.
60210           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60211             gt_cv_locale_fr_utf8=fr_FR
60212           else
60213             # Test for the locale name with explicit encoding suffix.
60214             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60215               gt_cv_locale_fr_utf8=fr_FR.UTF-8
60216             else
60217               # Test for the Solaris 7 locale name.
60218               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60219                 gt_cv_locale_fr_utf8=fr.UTF-8
60220               else
60221                 # None found.
60222                 gt_cv_locale_fr_utf8=none
60223               fi
60224             fi
60225           fi
60226           ;;
60227       esac
60228     fi
60229     rm -fr conftest*
60230
60231 fi
60232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
60233 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
60234   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
60235
60236
60237
60238
60239
60240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
60241 $as_echo_n "checking for a traditional japanese locale... " >&6; }
60242 if ${gt_cv_locale_ja+:} false; then :
60243   $as_echo_n "(cached) " >&6
60244 else
60245
60246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60247 /* end confdefs.h.  */
60248
60249 #include <locale.h>
60250 #include <time.h>
60251 #if HAVE_LANGINFO_CODESET
60252 # include <langinfo.h>
60253 #endif
60254 #include <stdlib.h>
60255 #include <string.h>
60256 struct tm t;
60257 char buf[16];
60258 int main ()
60259 {
60260   const char *p;
60261   /* Check whether the given locale name is recognized by the system.  */
60262 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60263   /* On native Windows, setlocale(category, "") looks at the system settings,
60264      not at the environment variables.  Also, when an encoding suffix such
60265      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60266      category of the locale to "C".  */
60267   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60268       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60269     return 1;
60270 #else
60271   if (setlocale (LC_ALL, "") == NULL) return 1;
60272 #endif
60273   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60274      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60275      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60276      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60277      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60278      some unit tests fail.
60279      On MirBSD 10, when an unsupported locale is specified, setlocale()
60280      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
60281 #if HAVE_LANGINFO_CODESET
60282   {
60283     const char *cs = nl_langinfo (CODESET);
60284     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
60285         || strcmp (cs, "UTF-8") == 0)
60286       return 1;
60287   }
60288 #endif
60289 #ifdef __CYGWIN__
60290   /* On Cygwin, avoid locale names without encoding suffix, because the
60291      locale_charset() function relies on the encoding suffix.  Note that
60292      LC_ALL is set on the command line.  */
60293   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60294 #endif
60295   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
60296      on Cygwin 1.5.x.  */
60297   if (MB_CUR_MAX == 1)
60298     return 1;
60299   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
60300      This excludes the UTF-8 encoding (except on MirBSD).  */
60301   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60302   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
60303   for (p = buf; *p != '\0'; p++)
60304     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
60305       return 1;
60306   return 0;
60307 }
60308
60309 _ACEOF
60310     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60311   (eval $ac_link) 2>&5
60312   ac_status=$?
60313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60314   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60315       case "$host_os" in
60316         # Handle native Windows specially, because there setlocale() interprets
60317         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60318         # "fr" or "fra" as "French" or "French_France.1252",
60319         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60320         # "ja" as "Japanese" or "Japanese_Japan.932",
60321         # and similar.
60322         mingw*)
60323           # Note that on native Windows, the Japanese locale is
60324           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
60325           # cannot use it here.
60326           gt_cv_locale_ja=none
60327           ;;
60328         *)
60329           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60330           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60331           # configure script would override the LC_ALL setting. Likewise for
60332           # LC_CTYPE, which is also set at the beginning of the configure script.
60333           # Test for the AIX locale name.
60334           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60335             gt_cv_locale_ja=ja_JP
60336           else
60337             # Test for the locale name with explicit encoding suffix.
60338             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60339               gt_cv_locale_ja=ja_JP.EUC-JP
60340             else
60341               # Test for the HP-UX, OSF/1, NetBSD locale name.
60342               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60343                 gt_cv_locale_ja=ja_JP.eucJP
60344               else
60345                 # Test for the IRIX, FreeBSD locale name.
60346                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60347                   gt_cv_locale_ja=ja_JP.EUC
60348                 else
60349                   # Test for the Solaris 7 locale name.
60350                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60351                     gt_cv_locale_ja=ja
60352                   else
60353                     # Special test for NetBSD 1.6.
60354                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
60355                       gt_cv_locale_ja=ja_JP.eucJP
60356                     else
60357                       # None found.
60358                       gt_cv_locale_ja=none
60359                     fi
60360                   fi
60361                 fi
60362               fi
60363             fi
60364           fi
60365           ;;
60366       esac
60367     fi
60368     rm -fr conftest*
60369
60370 fi
60371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
60372 $as_echo "$gt_cv_locale_ja" >&6; }
60373   LOCALE_JA=$gt_cv_locale_ja
60374
60375
60376
60377
60378
60379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
60380 $as_echo_n "checking for a transitional chinese locale... " >&6; }
60381 if ${gt_cv_locale_zh_CN+:} false; then :
60382   $as_echo_n "(cached) " >&6
60383 else
60384
60385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60386 /* end confdefs.h.  */
60387
60388 #include <locale.h>
60389 #include <stdlib.h>
60390 #include <time.h>
60391 #if HAVE_LANGINFO_CODESET
60392 # include <langinfo.h>
60393 #endif
60394 #include <stdlib.h>
60395 #include <string.h>
60396 struct tm t;
60397 char buf[16];
60398 int main ()
60399 {
60400   const char *p;
60401   /* Check whether the given locale name is recognized by the system.  */
60402 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60403   /* On native Windows, setlocale(category, "") looks at the system settings,
60404      not at the environment variables.  Also, when an encoding suffix such
60405      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60406      category of the locale to "C".  */
60407   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60408       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60409     return 1;
60410 #else
60411   if (setlocale (LC_ALL, "") == NULL) return 1;
60412 #endif
60413   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60414      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60415      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60416      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60417      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60418      some unit tests fail.
60419      On MirBSD 10, when an unsupported locale is specified, setlocale()
60420      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
60421 #if HAVE_LANGINFO_CODESET
60422   {
60423     const char *cs = nl_langinfo (CODESET);
60424     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
60425         || strcmp (cs, "UTF-8") == 0)
60426       return 1;
60427   }
60428 #endif
60429 #ifdef __CYGWIN__
60430   /* On Cygwin, avoid locale names without encoding suffix, because the
60431      locale_charset() function relies on the encoding suffix.  Note that
60432      LC_ALL is set on the command line.  */
60433   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60434 #endif
60435   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
60436      This excludes the UTF-8 encoding (except on MirBSD).  */
60437   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60438   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
60439   for (p = buf; *p != '\0'; p++)
60440     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
60441       return 1;
60442   /* Check whether a typical GB18030 multibyte sequence is recognized as a
60443      single wide character.  This excludes the GB2312 and GBK encodings.  */
60444   if (mblen ("\203\062\332\066", 5) != 4)
60445     return 1;
60446   return 0;
60447 }
60448
60449 _ACEOF
60450     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60451   (eval $ac_link) 2>&5
60452   ac_status=$?
60453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60454   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60455       case "$host_os" in
60456         # Handle native Windows specially, because there setlocale() interprets
60457         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60458         # "fr" or "fra" as "French" or "French_France.1252",
60459         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60460         # "ja" as "Japanese" or "Japanese_Japan.932",
60461         # and similar.
60462         mingw*)
60463           # Test for the hypothetical native Windows locale name.
60464           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60465             gt_cv_locale_zh_CN=Chinese_China.54936
60466           else
60467             # None found.
60468             gt_cv_locale_zh_CN=none
60469           fi
60470           ;;
60471         solaris2.8)
60472           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
60473           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
60474           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
60475           gt_cv_locale_zh_CN=none
60476           ;;
60477         *)
60478           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60479           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60480           # configure script would override the LC_ALL setting. Likewise for
60481           # LC_CTYPE, which is also set at the beginning of the configure script.
60482           # Test for the locale name without encoding suffix.
60483           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60484             gt_cv_locale_zh_CN=zh_CN
60485           else
60486             # Test for the locale name with explicit encoding suffix.
60487             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60488               gt_cv_locale_zh_CN=zh_CN.GB18030
60489             else
60490               # None found.
60491               gt_cv_locale_zh_CN=none
60492             fi
60493           fi
60494           ;;
60495       esac
60496     else
60497       # If there was a link error, due to mblen(), the system is so old that
60498       # it certainly doesn't have a chinese locale.
60499       gt_cv_locale_zh_CN=none
60500     fi
60501     rm -fr conftest*
60502
60503 fi
60504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
60505 $as_echo "$gt_cv_locale_zh_CN" >&6; }
60506   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
60507
60508
60509
60510
60511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
60512 $as_echo_n "checking for a french Unicode locale... " >&6; }
60513 if ${gt_cv_locale_fr_utf8+:} false; then :
60514   $as_echo_n "(cached) " >&6
60515 else
60516
60517     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60518 /* end confdefs.h.  */
60519
60520 #include <locale.h>
60521 #include <time.h>
60522 #if HAVE_LANGINFO_CODESET
60523 # include <langinfo.h>
60524 #endif
60525 #include <stdlib.h>
60526 #include <string.h>
60527 struct tm t;
60528 char buf[16];
60529 int main () {
60530   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
60531      imitates locale dependent behaviour by looking at the environment
60532      variables, and all locales use the UTF-8 encoding.  */
60533 #if !(defined __BEOS__ || defined __HAIKU__)
60534   /* Check whether the given locale name is recognized by the system.  */
60535 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60536   /* On native Windows, setlocale(category, "") looks at the system settings,
60537      not at the environment variables.  Also, when an encoding suffix such
60538      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60539      category of the locale to "C".  */
60540   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60541       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60542     return 1;
60543 # else
60544   if (setlocale (LC_ALL, "") == NULL) return 1;
60545 # endif
60546   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60547      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60548      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60549      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60550      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60551      some unit tests fail.  */
60552 # if HAVE_LANGINFO_CODESET
60553   {
60554     const char *cs = nl_langinfo (CODESET);
60555     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
60556       return 1;
60557   }
60558 # endif
60559 # ifdef __CYGWIN__
60560   /* On Cygwin, avoid locale names without encoding suffix, because the
60561      locale_charset() function relies on the encoding suffix.  Note that
60562      LC_ALL is set on the command line.  */
60563   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60564 # endif
60565   /* Check whether in the abbreviation of the second month, the second
60566      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
60567      two bytes long, with UTF-8 encoding.  */
60568   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60569   if (strftime (buf, sizeof (buf), "%b", &t) < 4
60570       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
60571     return 1;
60572 #endif
60573 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
60574   /* Check whether the decimal separator is a comma.
60575      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
60576      are nl_langinfo(RADIXCHAR) are both ".".  */
60577   if (localeconv () ->decimal_point[0] != ',') return 1;
60578 #endif
60579   return 0;
60580 }
60581
60582 _ACEOF
60583     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60584   (eval $ac_link) 2>&5
60585   ac_status=$?
60586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60587   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60588       case "$host_os" in
60589         # Handle native Windows specially, because there setlocale() interprets
60590         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60591         # "fr" or "fra" as "French" or "French_France.1252",
60592         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60593         # "ja" as "Japanese" or "Japanese_Japan.932",
60594         # and similar.
60595         mingw*)
60596           # Test for the hypothetical native Windows locale name.
60597           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60598             gt_cv_locale_fr_utf8=French_France.65001
60599           else
60600             # None found.
60601             gt_cv_locale_fr_utf8=none
60602           fi
60603           ;;
60604         *)
60605           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60606           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60607           # configure script would override the LC_ALL setting. Likewise for
60608           # LC_CTYPE, which is also set at the beginning of the configure script.
60609           # Test for the usual locale name.
60610           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60611             gt_cv_locale_fr_utf8=fr_FR
60612           else
60613             # Test for the locale name with explicit encoding suffix.
60614             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60615               gt_cv_locale_fr_utf8=fr_FR.UTF-8
60616             else
60617               # Test for the Solaris 7 locale name.
60618               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60619                 gt_cv_locale_fr_utf8=fr.UTF-8
60620               else
60621                 # None found.
60622                 gt_cv_locale_fr_utf8=none
60623               fi
60624             fi
60625           fi
60626           ;;
60627       esac
60628     fi
60629     rm -fr conftest*
60630
60631 fi
60632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
60633 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
60634   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
60635
60636
60637
60638
60639
60640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
60641 $as_echo_n "checking for a transitional chinese locale... " >&6; }
60642 if ${gt_cv_locale_zh_CN+:} false; then :
60643   $as_echo_n "(cached) " >&6
60644 else
60645
60646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60647 /* end confdefs.h.  */
60648
60649 #include <locale.h>
60650 #include <stdlib.h>
60651 #include <time.h>
60652 #if HAVE_LANGINFO_CODESET
60653 # include <langinfo.h>
60654 #endif
60655 #include <stdlib.h>
60656 #include <string.h>
60657 struct tm t;
60658 char buf[16];
60659 int main ()
60660 {
60661   const char *p;
60662   /* Check whether the given locale name is recognized by the system.  */
60663 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60664   /* On native Windows, setlocale(category, "") looks at the system settings,
60665      not at the environment variables.  Also, when an encoding suffix such
60666      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60667      category of the locale to "C".  */
60668   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60669       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60670     return 1;
60671 #else
60672   if (setlocale (LC_ALL, "") == NULL) return 1;
60673 #endif
60674   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60675      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60676      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60677      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60678      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60679      some unit tests fail.
60680      On MirBSD 10, when an unsupported locale is specified, setlocale()
60681      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
60682 #if HAVE_LANGINFO_CODESET
60683   {
60684     const char *cs = nl_langinfo (CODESET);
60685     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
60686         || strcmp (cs, "UTF-8") == 0)
60687       return 1;
60688   }
60689 #endif
60690 #ifdef __CYGWIN__
60691   /* On Cygwin, avoid locale names without encoding suffix, because the
60692      locale_charset() function relies on the encoding suffix.  Note that
60693      LC_ALL is set on the command line.  */
60694   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60695 #endif
60696   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
60697      This excludes the UTF-8 encoding (except on MirBSD).  */
60698   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60699   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
60700   for (p = buf; *p != '\0'; p++)
60701     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
60702       return 1;
60703   /* Check whether a typical GB18030 multibyte sequence is recognized as a
60704      single wide character.  This excludes the GB2312 and GBK encodings.  */
60705   if (mblen ("\203\062\332\066", 5) != 4)
60706     return 1;
60707   return 0;
60708 }
60709
60710 _ACEOF
60711     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60712   (eval $ac_link) 2>&5
60713   ac_status=$?
60714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60715   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60716       case "$host_os" in
60717         # Handle native Windows specially, because there setlocale() interprets
60718         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60719         # "fr" or "fra" as "French" or "French_France.1252",
60720         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60721         # "ja" as "Japanese" or "Japanese_Japan.932",
60722         # and similar.
60723         mingw*)
60724           # Test for the hypothetical native Windows locale name.
60725           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60726             gt_cv_locale_zh_CN=Chinese_China.54936
60727           else
60728             # None found.
60729             gt_cv_locale_zh_CN=none
60730           fi
60731           ;;
60732         solaris2.8)
60733           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
60734           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
60735           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
60736           gt_cv_locale_zh_CN=none
60737           ;;
60738         *)
60739           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60740           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60741           # configure script would override the LC_ALL setting. Likewise for
60742           # LC_CTYPE, which is also set at the beginning of the configure script.
60743           # Test for the locale name without encoding suffix.
60744           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60745             gt_cv_locale_zh_CN=zh_CN
60746           else
60747             # Test for the locale name with explicit encoding suffix.
60748             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60749               gt_cv_locale_zh_CN=zh_CN.GB18030
60750             else
60751               # None found.
60752               gt_cv_locale_zh_CN=none
60753             fi
60754           fi
60755           ;;
60756       esac
60757     else
60758       # If there was a link error, due to mblen(), the system is so old that
60759       # it certainly doesn't have a chinese locale.
60760       gt_cv_locale_zh_CN=none
60761     fi
60762     rm -fr conftest*
60763
60764 fi
60765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
60766 $as_echo "$gt_cv_locale_zh_CN" >&6; }
60767   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
60768
60769
60770
60771
60772
60773   if false; then
60774     REPLACE_MBTOWC=1
60775   fi
60776
60777   if test $REPLACE_MBTOWC = 1; then
60778
60779
60780
60781
60782
60783
60784
60785
60786   gltests_LIBOBJS="$gltests_LIBOBJS mbtowc.$ac_objext"
60787
60788
60789   :
60790
60791   fi
60792
60793
60794
60795
60796
60797     if test "$GNULIB_MBTOWC" != 1; then
60798         if test "$GNULIB_MBTOWC" = 0; then
60799       GNULIB_MBTOWC=$gl_module_indicator_condition
60800     else
60801       GNULIB_MBTOWC="($GNULIB_MBTOWC || $gl_module_indicator_condition)"
60802     fi
60803   fi
60804
60805
60806
60807
60808
60809 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
60810
60811
60812
60813
60814
60815
60816   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
60817   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
60818   # irrelevant for anonymous mappings.
60819   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
60820 if test "x$ac_cv_func_mmap" = xyes; then :
60821   gl_have_mmap=yes
60822 else
60823   gl_have_mmap=no
60824 fi
60825
60826
60827   # Try to allow MAP_ANONYMOUS.
60828   gl_have_mmap_anonymous=no
60829   if test $gl_have_mmap = yes; then
60830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
60831 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
60832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60833 /* end confdefs.h.  */
60834
60835 #include <sys/mman.h>
60836 #ifdef MAP_ANONYMOUS
60837     I cannot identify this map
60838 #endif
60839
60840 _ACEOF
60841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60842   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
60843   gl_have_mmap_anonymous=yes
60844 fi
60845 rm -f conftest*
60846
60847     if test $gl_have_mmap_anonymous != yes; then
60848       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60849 /* end confdefs.h.  */
60850
60851 #include <sys/mman.h>
60852 #ifdef MAP_ANON
60853     I cannot identify this map
60854 #endif
60855
60856 _ACEOF
60857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60858   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
60859
60860 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
60861
60862          gl_have_mmap_anonymous=yes
60863 fi
60864 rm -f conftest*
60865
60866     fi
60867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
60868 $as_echo "$gl_have_mmap_anonymous" >&6; }
60869     if test $gl_have_mmap_anonymous = yes; then
60870
60871 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
60872
60873     fi
60874   fi
60875
60876
60877
60878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60879 /* end confdefs.h.  */
60880 [
60881   #if defined _MSC_VER || defined __MINGW32__
60882     notposix
60883   #endif
60884     ]
60885 _ACEOF
60886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60887   $EGREP "notposix" >/dev/null 2>&1; then :
60888   posix_spawn_ported=no
60889 else
60890   posix_spawn_ported=yes
60891 fi
60892 rm -f conftest*
60893
60894    if test $posix_spawn_ported = yes; then
60895   POSIX_SPAWN_PORTED_TRUE=
60896   POSIX_SPAWN_PORTED_FALSE='#'
60897 else
60898   POSIX_SPAWN_PORTED_TRUE='#'
60899   POSIX_SPAWN_PORTED_FALSE=
60900 fi
60901
60902
60903
60904      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
60905 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
60906 if ${gl_cv_func_svid_putenv+:} false; then :
60907   $as_echo_n "(cached) " >&6
60908 else
60909   if test "$cross_compiling" = yes; then :
60910                case "$host_os" in
60911                         # Guess yes on glibc systems.
60912                 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
60913                         # If we don't know, assume the worst.
60914                 *)      gl_cv_func_svid_putenv="guessing no" ;;
60915               esac
60916
60917 else
60918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60919 /* end confdefs.h.  */
60920 $ac_includes_default
60921 int
60922 main ()
60923 {
60924
60925     /* Put it in env.  */
60926     if (putenv ("CONFTEST_putenv=val"))
60927       return 1;
60928
60929     /* Try to remove it.  */
60930     if (putenv ("CONFTEST_putenv"))
60931       return 2;
60932
60933     /* Make sure it was deleted.  */
60934     if (getenv ("CONFTEST_putenv") != 0)
60935       return 3;
60936
60937     return 0;
60938
60939   ;
60940   return 0;
60941 }
60942 _ACEOF
60943 if ac_fn_c_try_run "$LINENO"; then :
60944   gl_cv_func_svid_putenv=yes
60945 else
60946   gl_cv_func_svid_putenv=no
60947 fi
60948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
60949   conftest.$ac_objext conftest.beam conftest.$ac_ext
60950 fi
60951
60952
60953 fi
60954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
60955 $as_echo "$gl_cv_func_svid_putenv" >&6; }
60956   case "$gl_cv_func_svid_putenv" in
60957     *yes) ;;
60958     *)
60959       REPLACE_PUTENV=1
60960       ;;
60961   esac
60962
60963   if test $REPLACE_PUTENV = 1; then
60964
60965
60966
60967
60968
60969
60970
60971
60972   gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext"
60973
60974
60975   ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
60976 if test "x$ac_cv_have_decl__putenv" = xyes; then :
60977   ac_have_decl=1
60978 else
60979   ac_have_decl=0
60980 fi
60981
60982 cat >>confdefs.h <<_ACEOF
60983 #define HAVE_DECL__PUTENV $ac_have_decl
60984 _ACEOF
60985
60986
60987   fi
60988
60989
60990
60991
60992
60993     if test "$GNULIB_PUTENV" != 1; then
60994         if test "$GNULIB_PUTENV" = 0; then
60995       GNULIB_PUTENV=$gl_module_indicator_condition
60996     else
60997       GNULIB_PUTENV="($GNULIB_PUTENV || $gl_module_indicator_condition)"
60998     fi
60999   fi
61000
61001
61002
61003
61004
61005 $as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
61006
61007
61008
61009
61010
61011
61012   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
61013   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
61014   # irrelevant for anonymous mappings.
61015   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
61016 if test "x$ac_cv_func_mmap" = xyes; then :
61017   gl_have_mmap=yes
61018 else
61019   gl_have_mmap=no
61020 fi
61021
61022
61023   # Try to allow MAP_ANONYMOUS.
61024   gl_have_mmap_anonymous=no
61025   if test $gl_have_mmap = yes; then
61026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
61027 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
61028     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61029 /* end confdefs.h.  */
61030
61031 #include <sys/mman.h>
61032 #ifdef MAP_ANONYMOUS
61033     I cannot identify this map
61034 #endif
61035
61036 _ACEOF
61037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61038   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61039   gl_have_mmap_anonymous=yes
61040 fi
61041 rm -f conftest*
61042
61043     if test $gl_have_mmap_anonymous != yes; then
61044       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61045 /* end confdefs.h.  */
61046
61047 #include <sys/mman.h>
61048 #ifdef MAP_ANON
61049     I cannot identify this map
61050 #endif
61051
61052 _ACEOF
61053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61054   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61055
61056 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
61057
61058          gl_have_mmap_anonymous=yes
61059 fi
61060 rm -f conftest*
61061
61062     fi
61063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
61064 $as_echo "$gl_have_mmap_anonymous" >&6; }
61065     if test $gl_have_mmap_anonymous = yes; then
61066
61067 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
61068
61069     fi
61070   fi
61071
61072
61073
61074
61075
61076
61077   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
61078   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
61079   # irrelevant for anonymous mappings.
61080   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
61081 if test "x$ac_cv_func_mmap" = xyes; then :
61082   gl_have_mmap=yes
61083 else
61084   gl_have_mmap=no
61085 fi
61086
61087
61088   # Try to allow MAP_ANONYMOUS.
61089   gl_have_mmap_anonymous=no
61090   if test $gl_have_mmap = yes; then
61091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
61092 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
61093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61094 /* end confdefs.h.  */
61095
61096 #include <sys/mman.h>
61097 #ifdef MAP_ANONYMOUS
61098     I cannot identify this map
61099 #endif
61100
61101 _ACEOF
61102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61103   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61104   gl_have_mmap_anonymous=yes
61105 fi
61106 rm -f conftest*
61107
61108     if test $gl_have_mmap_anonymous != yes; then
61109       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61110 /* end confdefs.h.  */
61111
61112 #include <sys/mman.h>
61113 #ifdef MAP_ANON
61114     I cannot identify this map
61115 #endif
61116
61117 _ACEOF
61118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61119   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61120
61121 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
61122
61123          gl_have_mmap_anonymous=yes
61124 fi
61125 rm -f conftest*
61126
61127     fi
61128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
61129 $as_echo "$gl_have_mmap_anonymous" >&6; }
61130     if test $gl_have_mmap_anonymous = yes; then
61131
61132 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
61133
61134     fi
61135   fi
61136
61137
61138
61139   :
61140
61141
61142
61143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
61144 $as_echo_n "checking for a traditional french locale... " >&6; }
61145 if ${gt_cv_locale_fr+:} false; then :
61146   $as_echo_n "(cached) " >&6
61147 else
61148
61149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61150 /* end confdefs.h.  */
61151
61152 #include <locale.h>
61153 #include <time.h>
61154 #if HAVE_LANGINFO_CODESET
61155 # include <langinfo.h>
61156 #endif
61157 #include <stdlib.h>
61158 #include <string.h>
61159 struct tm t;
61160 char buf[16];
61161 int main () {
61162   /* Check whether the given locale name is recognized by the system.  */
61163 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
61164   /* On native Windows, setlocale(category, "") looks at the system settings,
61165      not at the environment variables.  Also, when an encoding suffix such
61166      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
61167      category of the locale to "C".  */
61168   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
61169       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
61170     return 1;
61171 #else
61172   if (setlocale (LC_ALL, "") == NULL) return 1;
61173 #endif
61174   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
61175      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
61176      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
61177      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
61178      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
61179      some unit tests fail.
61180      On MirBSD 10, when an unsupported locale is specified, setlocale()
61181      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
61182 #if HAVE_LANGINFO_CODESET
61183   {
61184     const char *cs = nl_langinfo (CODESET);
61185     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
61186         || strcmp (cs, "UTF-8") == 0)
61187       return 1;
61188   }
61189 #endif
61190 #ifdef __CYGWIN__
61191   /* On Cygwin, avoid locale names without encoding suffix, because the
61192      locale_charset() function relies on the encoding suffix.  Note that
61193      LC_ALL is set on the command line.  */
61194   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
61195 #endif
61196   /* Check whether in the abbreviation of the second month, the second
61197      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
61198      one byte long. This excludes the UTF-8 encoding.  */
61199   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
61200   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
61201 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
61202   /* Check whether the decimal separator is a comma.
61203      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
61204      are nl_langinfo(RADIXCHAR) are both ".".  */
61205   if (localeconv () ->decimal_point[0] != ',') return 1;
61206 #endif
61207   return 0;
61208 }
61209
61210 _ACEOF
61211     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
61212   (eval $ac_link) 2>&5
61213   ac_status=$?
61214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61215   test $ac_status = 0; } && test -s conftest$ac_exeext; then
61216       case "$host_os" in
61217         # Handle native Windows specially, because there setlocale() interprets
61218         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
61219         # "fr" or "fra" as "French" or "French_France.1252",
61220         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
61221         # "ja" as "Japanese" or "Japanese_Japan.932",
61222         # and similar.
61223         mingw*)
61224           # Test for the native Windows locale name.
61225           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61226             gt_cv_locale_fr=French_France.1252
61227           else
61228             # None found.
61229             gt_cv_locale_fr=none
61230           fi
61231           ;;
61232         *)
61233           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
61234           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
61235           # configure script would override the LC_ALL setting. Likewise for
61236           # LC_CTYPE, which is also set at the beginning of the configure script.
61237           # Test for the usual locale name.
61238           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61239             gt_cv_locale_fr=fr_FR
61240           else
61241             # Test for the locale name with explicit encoding suffix.
61242             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61243               gt_cv_locale_fr=fr_FR.ISO-8859-1
61244             else
61245               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
61246               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61247                 gt_cv_locale_fr=fr_FR.ISO8859-1
61248               else
61249                 # Test for the HP-UX locale name.
61250                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61251                   gt_cv_locale_fr=fr_FR.iso88591
61252                 else
61253                   # Test for the Solaris 7 locale name.
61254                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61255                     gt_cv_locale_fr=fr
61256                   else
61257                     # None found.
61258                     gt_cv_locale_fr=none
61259                   fi
61260                 fi
61261               fi
61262             fi
61263           fi
61264           ;;
61265       esac
61266     fi
61267     rm -fr conftest*
61268
61269 fi
61270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
61271 $as_echo "$gt_cv_locale_fr" >&6; }
61272   LOCALE_FR=$gt_cv_locale_fr
61273
61274
61275
61276
61277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
61278 $as_echo_n "checking for a french Unicode locale... " >&6; }
61279 if ${gt_cv_locale_fr_utf8+:} false; then :
61280   $as_echo_n "(cached) " >&6
61281 else
61282
61283     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61284 /* end confdefs.h.  */
61285
61286 #include <locale.h>
61287 #include <time.h>
61288 #if HAVE_LANGINFO_CODESET
61289 # include <langinfo.h>
61290 #endif
61291 #include <stdlib.h>
61292 #include <string.h>
61293 struct tm t;
61294 char buf[16];
61295 int main () {
61296   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
61297      imitates locale dependent behaviour by looking at the environment
61298      variables, and all locales use the UTF-8 encoding.  */
61299 #if !(defined __BEOS__ || defined __HAIKU__)
61300   /* Check whether the given locale name is recognized by the system.  */
61301 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
61302   /* On native Windows, setlocale(category, "") looks at the system settings,
61303      not at the environment variables.  Also, when an encoding suffix such
61304      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
61305      category of the locale to "C".  */
61306   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
61307       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
61308     return 1;
61309 # else
61310   if (setlocale (LC_ALL, "") == NULL) return 1;
61311 # endif
61312   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
61313      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
61314      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
61315      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
61316      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
61317      some unit tests fail.  */
61318 # if HAVE_LANGINFO_CODESET
61319   {
61320     const char *cs = nl_langinfo (CODESET);
61321     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
61322       return 1;
61323   }
61324 # endif
61325 # ifdef __CYGWIN__
61326   /* On Cygwin, avoid locale names without encoding suffix, because the
61327      locale_charset() function relies on the encoding suffix.  Note that
61328      LC_ALL is set on the command line.  */
61329   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
61330 # endif
61331   /* Check whether in the abbreviation of the second month, the second
61332      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
61333      two bytes long, with UTF-8 encoding.  */
61334   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
61335   if (strftime (buf, sizeof (buf), "%b", &t) < 4
61336       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
61337     return 1;
61338 #endif
61339 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
61340   /* Check whether the decimal separator is a comma.
61341      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
61342      are nl_langinfo(RADIXCHAR) are both ".".  */
61343   if (localeconv () ->decimal_point[0] != ',') return 1;
61344 #endif
61345   return 0;
61346 }
61347
61348 _ACEOF
61349     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
61350   (eval $ac_link) 2>&5
61351   ac_status=$?
61352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61353   test $ac_status = 0; } && test -s conftest$ac_exeext; then
61354       case "$host_os" in
61355         # Handle native Windows specially, because there setlocale() interprets
61356         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
61357         # "fr" or "fra" as "French" or "French_France.1252",
61358         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
61359         # "ja" as "Japanese" or "Japanese_Japan.932",
61360         # and similar.
61361         mingw*)
61362           # Test for the hypothetical native Windows locale name.
61363           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61364             gt_cv_locale_fr_utf8=French_France.65001
61365           else
61366             # None found.
61367             gt_cv_locale_fr_utf8=none
61368           fi
61369           ;;
61370         *)
61371           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
61372           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
61373           # configure script would override the LC_ALL setting. Likewise for
61374           # LC_CTYPE, which is also set at the beginning of the configure script.
61375           # Test for the usual locale name.
61376           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61377             gt_cv_locale_fr_utf8=fr_FR
61378           else
61379             # Test for the locale name with explicit encoding suffix.
61380             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61381               gt_cv_locale_fr_utf8=fr_FR.UTF-8
61382             else
61383               # Test for the Solaris 7 locale name.
61384               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61385                 gt_cv_locale_fr_utf8=fr.UTF-8
61386               else
61387                 # None found.
61388                 gt_cv_locale_fr_utf8=none
61389               fi
61390             fi
61391           fi
61392           ;;
61393       esac
61394     fi
61395     rm -fr conftest*
61396
61397 fi
61398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
61399 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
61400   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
61401
61402
61403
61404
61405
61406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
61407 $as_echo_n "checking for a traditional japanese locale... " >&6; }
61408 if ${gt_cv_locale_ja+:} false; then :
61409   $as_echo_n "(cached) " >&6
61410 else
61411
61412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61413 /* end confdefs.h.  */
61414
61415 #include <locale.h>
61416 #include <time.h>
61417 #if HAVE_LANGINFO_CODESET
61418 # include <langinfo.h>
61419 #endif
61420 #include <stdlib.h>
61421 #include <string.h>
61422 struct tm t;
61423 char buf[16];
61424 int main ()
61425 {
61426   const char *p;
61427   /* Check whether the given locale name is recognized by the system.  */
61428 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
61429   /* On native Windows, setlocale(category, "") looks at the system settings,
61430      not at the environment variables.  Also, when an encoding suffix such
61431      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
61432      category of the locale to "C".  */
61433   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
61434       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
61435     return 1;
61436 #else
61437   if (setlocale (LC_ALL, "") == NULL) return 1;
61438 #endif
61439   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
61440      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
61441      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
61442      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
61443      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
61444      some unit tests fail.
61445      On MirBSD 10, when an unsupported locale is specified, setlocale()
61446      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
61447 #if HAVE_LANGINFO_CODESET
61448   {
61449     const char *cs = nl_langinfo (CODESET);
61450     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
61451         || strcmp (cs, "UTF-8") == 0)
61452       return 1;
61453   }
61454 #endif
61455 #ifdef __CYGWIN__
61456   /* On Cygwin, avoid locale names without encoding suffix, because the
61457      locale_charset() function relies on the encoding suffix.  Note that
61458      LC_ALL is set on the command line.  */
61459   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
61460 #endif
61461   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
61462      on Cygwin 1.5.x.  */
61463   if (MB_CUR_MAX == 1)
61464     return 1;
61465   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
61466      This excludes the UTF-8 encoding (except on MirBSD).  */
61467   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
61468   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
61469   for (p = buf; *p != '\0'; p++)
61470     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
61471       return 1;
61472   return 0;
61473 }
61474
61475 _ACEOF
61476     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
61477   (eval $ac_link) 2>&5
61478   ac_status=$?
61479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61480   test $ac_status = 0; } && test -s conftest$ac_exeext; then
61481       case "$host_os" in
61482         # Handle native Windows specially, because there setlocale() interprets
61483         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
61484         # "fr" or "fra" as "French" or "French_France.1252",
61485         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
61486         # "ja" as "Japanese" or "Japanese_Japan.932",
61487         # and similar.
61488         mingw*)
61489           # Note that on native Windows, the Japanese locale is
61490           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
61491           # cannot use it here.
61492           gt_cv_locale_ja=none
61493           ;;
61494         *)
61495           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
61496           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
61497           # configure script would override the LC_ALL setting. Likewise for
61498           # LC_CTYPE, which is also set at the beginning of the configure script.
61499           # Test for the AIX locale name.
61500           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61501             gt_cv_locale_ja=ja_JP
61502           else
61503             # Test for the locale name with explicit encoding suffix.
61504             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61505               gt_cv_locale_ja=ja_JP.EUC-JP
61506             else
61507               # Test for the HP-UX, OSF/1, NetBSD locale name.
61508               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61509                 gt_cv_locale_ja=ja_JP.eucJP
61510               else
61511                 # Test for the IRIX, FreeBSD locale name.
61512                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61513                   gt_cv_locale_ja=ja_JP.EUC
61514                 else
61515                   # Test for the Solaris 7 locale name.
61516                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61517                     gt_cv_locale_ja=ja
61518                   else
61519                     # Special test for NetBSD 1.6.
61520                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
61521                       gt_cv_locale_ja=ja_JP.eucJP
61522                     else
61523                       # None found.
61524                       gt_cv_locale_ja=none
61525                     fi
61526                   fi
61527                 fi
61528               fi
61529             fi
61530           fi
61531           ;;
61532       esac
61533     fi
61534     rm -fr conftest*
61535
61536 fi
61537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
61538 $as_echo "$gt_cv_locale_ja" >&6; }
61539   LOCALE_JA=$gt_cv_locale_ja
61540
61541
61542
61543
61544
61545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
61546 $as_echo_n "checking for a transitional chinese locale... " >&6; }
61547 if ${gt_cv_locale_zh_CN+:} false; then :
61548   $as_echo_n "(cached) " >&6
61549 else
61550
61551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61552 /* end confdefs.h.  */
61553
61554 #include <locale.h>
61555 #include <stdlib.h>
61556 #include <time.h>
61557 #if HAVE_LANGINFO_CODESET
61558 # include <langinfo.h>
61559 #endif
61560 #include <stdlib.h>
61561 #include <string.h>
61562 struct tm t;
61563 char buf[16];
61564 int main ()
61565 {
61566   const char *p;
61567   /* Check whether the given locale name is recognized by the system.  */
61568 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
61569   /* On native Windows, setlocale(category, "") looks at the system settings,
61570      not at the environment variables.  Also, when an encoding suffix such
61571      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
61572      category of the locale to "C".  */
61573   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
61574       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
61575     return 1;
61576 #else
61577   if (setlocale (LC_ALL, "") == NULL) return 1;
61578 #endif
61579   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
61580      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
61581      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
61582      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
61583      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
61584      some unit tests fail.
61585      On MirBSD 10, when an unsupported locale is specified, setlocale()
61586      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
61587 #if HAVE_LANGINFO_CODESET
61588   {
61589     const char *cs = nl_langinfo (CODESET);
61590     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
61591         || strcmp (cs, "UTF-8") == 0)
61592       return 1;
61593   }
61594 #endif
61595 #ifdef __CYGWIN__
61596   /* On Cygwin, avoid locale names without encoding suffix, because the
61597      locale_charset() function relies on the encoding suffix.  Note that
61598      LC_ALL is set on the command line.  */
61599   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
61600 #endif
61601   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
61602      This excludes the UTF-8 encoding (except on MirBSD).  */
61603   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
61604   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
61605   for (p = buf; *p != '\0'; p++)
61606     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
61607       return 1;
61608   /* Check whether a typical GB18030 multibyte sequence is recognized as a
61609      single wide character.  This excludes the GB2312 and GBK encodings.  */
61610   if (mblen ("\203\062\332\066", 5) != 4)
61611     return 1;
61612   return 0;
61613 }
61614
61615 _ACEOF
61616     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
61617   (eval $ac_link) 2>&5
61618   ac_status=$?
61619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61620   test $ac_status = 0; } && test -s conftest$ac_exeext; then
61621       case "$host_os" in
61622         # Handle native Windows specially, because there setlocale() interprets
61623         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
61624         # "fr" or "fra" as "French" or "French_France.1252",
61625         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
61626         # "ja" as "Japanese" or "Japanese_Japan.932",
61627         # and similar.
61628         mingw*)
61629           # Test for the hypothetical native Windows locale name.
61630           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61631             gt_cv_locale_zh_CN=Chinese_China.54936
61632           else
61633             # None found.
61634             gt_cv_locale_zh_CN=none
61635           fi
61636           ;;
61637         solaris2.8)
61638           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
61639           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
61640           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
61641           gt_cv_locale_zh_CN=none
61642           ;;
61643         *)
61644           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
61645           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
61646           # configure script would override the LC_ALL setting. Likewise for
61647           # LC_CTYPE, which is also set at the beginning of the configure script.
61648           # Test for the locale name without encoding suffix.
61649           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61650             gt_cv_locale_zh_CN=zh_CN
61651           else
61652             # Test for the locale name with explicit encoding suffix.
61653             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61654               gt_cv_locale_zh_CN=zh_CN.GB18030
61655             else
61656               # None found.
61657               gt_cv_locale_zh_CN=none
61658             fi
61659           fi
61660           ;;
61661       esac
61662     else
61663       # If there was a link error, due to mblen(), the system is so old that
61664       # it certainly doesn't have a chinese locale.
61665       gt_cv_locale_zh_CN=none
61666     fi
61667     rm -fr conftest*
61668
61669 fi
61670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
61671 $as_echo "$gt_cv_locale_zh_CN" >&6; }
61672   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
61673
61674
61675
61676
61677
61678
61679
61680                ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
61681 "
61682 if test "x$ac_cv_have_decl_sleep" = xyes; then :
61683   ac_have_decl=1
61684 else
61685   ac_have_decl=0
61686 fi
61687
61688 cat >>confdefs.h <<_ACEOF
61689 #define HAVE_DECL_SLEEP $ac_have_decl
61690 _ACEOF
61691
61692
61693   if test $ac_cv_have_decl_sleep != yes; then
61694     HAVE_SLEEP=0
61695   else
61696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
61697 $as_echo_n "checking for working sleep... " >&6; }
61698 if ${gl_cv_func_sleep_works+:} false; then :
61699   $as_echo_n "(cached) " >&6
61700 else
61701   if test "$cross_compiling" = yes; then :
61702   case "$host_os" in
61703                  # Guess yes on glibc systems.
61704          *-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
61705                  # If we don't know, assume the worst.
61706          *)      gl_cv_func_sleep_works="guessing no" ;;
61707        esac
61708
61709 else
61710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61711 /* end confdefs.h.  */
61712
61713 #include <errno.h>
61714 #include <unistd.h>
61715 #include <signal.h>
61716 static void
61717 handle_alarm (int sig)
61718 {
61719   if (sig != SIGALRM)
61720     _exit (2);
61721 }
61722
61723 int
61724 main ()
61725 {
61726
61727     /* Failure to compile this test due to missing alarm is okay,
61728        since all such platforms (mingw) also lack sleep.  */
61729     unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
61730     unsigned int remaining;
61731     signal (SIGALRM, handle_alarm);
61732     alarm (1);
61733     remaining = sleep (pentecost);
61734     if (remaining > pentecost)
61735       return 3;
61736     if (remaining <= pentecost - 10)
61737       return 4;
61738     return 0;
61739
61740   ;
61741   return 0;
61742 }
61743 _ACEOF
61744 if ac_fn_c_try_run "$LINENO"; then :
61745   gl_cv_func_sleep_works=yes
61746 else
61747   gl_cv_func_sleep_works=no
61748 fi
61749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
61750   conftest.$ac_objext conftest.beam conftest.$ac_ext
61751 fi
61752
61753 fi
61754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
61755 $as_echo "$gl_cv_func_sleep_works" >&6; }
61756     case "$gl_cv_func_sleep_works" in
61757       *yes) ;;
61758       *)
61759         REPLACE_SLEEP=1
61760         ;;
61761     esac
61762   fi
61763
61764   if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
61765
61766
61767
61768
61769
61770
61771
61772
61773   gltests_LIBOBJS="$gltests_LIBOBJS sleep.$ac_objext"
61774
61775   fi
61776
61777
61778
61779
61780
61781     if test "$GNULIB_SLEEP" != 1; then
61782         if test "$GNULIB_SLEEP" = 0; then
61783       GNULIB_SLEEP=$gl_module_indicator_condition
61784     else
61785       GNULIB_SLEEP="($GNULIB_SLEEP || $gl_module_indicator_condition)"
61786     fi
61787   fi
61788
61789
61790
61791
61792
61793 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
61794
61795
61796
61797
61798
61799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
61800 $as_echo_n "checking for working stdalign.h... " >&6; }
61801 if ${gl_cv_header_working_stdalign_h+:} false; then :
61802   $as_echo_n "(cached) " >&6
61803 else
61804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61805 /* end confdefs.h.  */
61806 #include <stdalign.h>
61807             #include <stddef.h>
61808
61809             /* Test that alignof yields a result consistent with offsetof.
61810                This catches GCC bug 52023
61811                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
61812             #ifdef __cplusplus
61813                template <class t> struct alignof_helper { char a; t b; };
61814             # define ao(type) offsetof (alignof_helper<type>, b)
61815             #else
61816             # define ao(type) offsetof (struct { char a; type b; }, b)
61817             #endif
61818             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
61819             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
61820             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
61821
61822             /* Test _Alignas only on platforms where gnulib can help.  */
61823             #if \
61824                 ((defined __cplusplus && 201103 <= __cplusplus) \
61825                  || (defined __APPLE__ && defined __MACH__ \
61826                      ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
61827                      : __GNUC__) \
61828                  || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
61829                  || __ICC || 0x5110 <= __SUNPRO_C \
61830                  || 1300 <= _MSC_VER)
61831               struct alignas_test { char c; char alignas (8) alignas_8; };
61832               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
61833                                 ? 1 : -1];
61834             #endif
61835
61836 int
61837 main ()
61838 {
61839
61840   ;
61841   return 0;
61842 }
61843 _ACEOF
61844 if ac_fn_c_try_compile "$LINENO"; then :
61845   gl_cv_header_working_stdalign_h=yes
61846 else
61847   gl_cv_header_working_stdalign_h=no
61848 fi
61849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61850 fi
61851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
61852 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
61853
61854   if test $gl_cv_header_working_stdalign_h = yes; then
61855     STDALIGN_H=''
61856   else
61857     STDALIGN_H='stdalign.h'
61858   fi
61859
61860
61861    if test -n "$STDALIGN_H"; then
61862   GL_GENERATE_STDALIGN_H_TRUE=
61863   GL_GENERATE_STDALIGN_H_FALSE='#'
61864 else
61865   GL_GENERATE_STDALIGN_H_TRUE='#'
61866   GL_GENERATE_STDALIGN_H_FALSE=
61867 fi
61868
61869
61870
61871
61872
61873
61874
61875   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
61876   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
61877   # irrelevant for anonymous mappings.
61878   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
61879 if test "x$ac_cv_func_mmap" = xyes; then :
61880   gl_have_mmap=yes
61881 else
61882   gl_have_mmap=no
61883 fi
61884
61885
61886   # Try to allow MAP_ANONYMOUS.
61887   gl_have_mmap_anonymous=no
61888   if test $gl_have_mmap = yes; then
61889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
61890 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
61891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61892 /* end confdefs.h.  */
61893
61894 #include <sys/mman.h>
61895 #ifdef MAP_ANONYMOUS
61896     I cannot identify this map
61897 #endif
61898
61899 _ACEOF
61900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61901   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61902   gl_have_mmap_anonymous=yes
61903 fi
61904 rm -f conftest*
61905
61906     if test $gl_have_mmap_anonymous != yes; then
61907       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61908 /* end confdefs.h.  */
61909
61910 #include <sys/mman.h>
61911 #ifdef MAP_ANON
61912     I cannot identify this map
61913 #endif
61914
61915 _ACEOF
61916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61917   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61918
61919 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
61920
61921          gl_have_mmap_anonymous=yes
61922 fi
61923 rm -f conftest*
61924
61925     fi
61926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
61927 $as_echo "$gl_have_mmap_anonymous" >&6; }
61928     if test $gl_have_mmap_anonymous = yes; then
61929
61930 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
61931
61932     fi
61933   fi
61934
61935
61936
61937
61938
61939
61940
61941   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
61942   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
61943   # irrelevant for anonymous mappings.
61944   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
61945 if test "x$ac_cv_func_mmap" = xyes; then :
61946   gl_have_mmap=yes
61947 else
61948   gl_have_mmap=no
61949 fi
61950
61951
61952   # Try to allow MAP_ANONYMOUS.
61953   gl_have_mmap_anonymous=no
61954   if test $gl_have_mmap = yes; then
61955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
61956 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
61957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61958 /* end confdefs.h.  */
61959
61960 #include <sys/mman.h>
61961 #ifdef MAP_ANONYMOUS
61962     I cannot identify this map
61963 #endif
61964
61965 _ACEOF
61966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61967   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61968   gl_have_mmap_anonymous=yes
61969 fi
61970 rm -f conftest*
61971
61972     if test $gl_have_mmap_anonymous != yes; then
61973       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61974 /* end confdefs.h.  */
61975
61976 #include <sys/mman.h>
61977 #ifdef MAP_ANON
61978     I cannot identify this map
61979 #endif
61980
61981 _ACEOF
61982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61983   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61984
61985 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
61986
61987          gl_have_mmap_anonymous=yes
61988 fi
61989 rm -f conftest*
61990
61991     fi
61992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
61993 $as_echo "$gl_have_mmap_anonymous" >&6; }
61994     if test $gl_have_mmap_anonymous = yes; then
61995
61996 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
61997
61998     fi
61999   fi
62000
62001
62002
62003
62004
62005
62006         if test $ac_cv_func_symlink = no; then
62007     HAVE_SYMLINK=0
62008   else
62009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
62010 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
62011 if ${gl_cv_func_symlink_works+:} false; then :
62012   $as_echo_n "(cached) " >&6
62013 else
62014   if test "$cross_compiling" = yes; then :
62015   case "$host_os" in
62016                     # Guess yes on glibc systems.
62017             *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
62018                     # If we don't know, assume the worst.
62019             *)      gl_cv_func_symlink_works="guessing no" ;;
62020           esac
62021
62022 else
62023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62024 /* end confdefs.h.  */
62025 #include <unistd.h>
62026
62027 int
62028 main ()
62029 {
62030 int result = 0;
62031              if (!symlink ("a", "conftest.link/"))
62032                result |= 1;
62033              if (symlink ("conftest.f", "conftest.lnk2"))
62034                result |= 2;
62035              else if (!symlink ("a", "conftest.lnk2/"))
62036                result |= 4;
62037              return result;
62038
62039   ;
62040   return 0;
62041 }
62042 _ACEOF
62043 if ac_fn_c_try_run "$LINENO"; then :
62044   gl_cv_func_symlink_works=yes
62045 else
62046   gl_cv_func_symlink_works=no
62047 fi
62048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62049   conftest.$ac_objext conftest.beam conftest.$ac_ext
62050 fi
62051
62052       rm -f conftest.f conftest.link conftest.lnk2
62053 fi
62054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
62055 $as_echo "$gl_cv_func_symlink_works" >&6; }
62056     case "$gl_cv_func_symlink_works" in
62057       *yes) ;;
62058       *)
62059         REPLACE_SYMLINK=1
62060         ;;
62061     esac
62062   fi
62063
62064   if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
62065
62066
62067
62068
62069
62070
62071
62072
62073   gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
62074
62075   fi
62076
62077
62078
62079
62080
62081     if test "$GNULIB_SYMLINK" != 1; then
62082         if test "$GNULIB_SYMLINK" = 0; then
62083       GNULIB_SYMLINK=$gl_module_indicator_condition
62084     else
62085       GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)"
62086     fi
62087   fi
62088
62089
62090
62091
62092
62093 $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
62094
62095
62096
62097
62098
62099
62100   if test $gl_threads_api = posix; then
62101     gl_save_LIBS="$LIBS"
62102     LIBS="$LIBS $LIBMULTITHREAD"
62103     for ac_func in pthread_atfork
62104 do :
62105   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
62106 if test "x$ac_cv_func_pthread_atfork" = xyes; then :
62107   cat >>confdefs.h <<_ACEOF
62108 #define HAVE_PTHREAD_ATFORK 1
62109 _ACEOF
62110
62111 fi
62112 done
62113
62114     LIBS="$gl_save_LIBS"
62115   fi
62116
62117
62118
62119        if  { test "$HAVE_LIBUNISTRING" != yes \
62120     || {
62121
62122
62123
62124             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
62125             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
62126                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
62127                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
62128                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
62129                          }
62130                     }
62131                }
62132
62133
62134
62135
62136        }
62137   }; then
62138   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE=
62139   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE='#'
62140 else
62141   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE='#'
62142   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE=
62143 fi
62144
62145
62146
62147
62148
62149   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
62150   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
62151   # irrelevant for anonymous mappings.
62152   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
62153 if test "x$ac_cv_func_mmap" = xyes; then :
62154   gl_have_mmap=yes
62155 else
62156   gl_have_mmap=no
62157 fi
62158
62159
62160   # Try to allow MAP_ANONYMOUS.
62161   gl_have_mmap_anonymous=no
62162   if test $gl_have_mmap = yes; then
62163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
62164 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
62165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62166 /* end confdefs.h.  */
62167
62168 #include <sys/mman.h>
62169 #ifdef MAP_ANONYMOUS
62170     I cannot identify this map
62171 #endif
62172
62173 _ACEOF
62174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62175   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
62176   gl_have_mmap_anonymous=yes
62177 fi
62178 rm -f conftest*
62179
62180     if test $gl_have_mmap_anonymous != yes; then
62181       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62182 /* end confdefs.h.  */
62183
62184 #include <sys/mman.h>
62185 #ifdef MAP_ANON
62186     I cannot identify this map
62187 #endif
62188
62189 _ACEOF
62190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62191   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
62192
62193 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
62194
62195          gl_have_mmap_anonymous=yes
62196 fi
62197 rm -f conftest*
62198
62199     fi
62200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
62201 $as_echo "$gl_have_mmap_anonymous" >&6; }
62202     if test $gl_have_mmap_anonymous = yes; then
62203
62204 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
62205
62206     fi
62207   fi
62208
62209
62210
62211
62212
62213        if  { test "$HAVE_LIBUNISTRING" != yes \
62214     || {
62215
62216
62217
62218             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
62219             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
62220                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
62221                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
62222                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
62223                          }
62224                     }
62225                }
62226
62227
62228
62229
62230        }
62231   }; then
62232   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE=
62233   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE='#'
62234 else
62235   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE='#'
62236   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE=
62237 fi
62238
62239
62240
62241
62242
62243
62244
62245
62246
62247
62248
62249
62250   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
62251
62252
62253
62254      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
62255 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
62256 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
62257   $as_echo_n "(cached) " >&6
62258 else
62259
62260                   case "$host_os" in
62261                      # Guess no on AIX and OSF/1.
62262         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
62263                      # Guess yes otherwise.
62264         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
62265       esac
62266       if test $LOCALE_JA != none; then
62267         if test "$cross_compiling" = yes; then :
62268   :
62269 else
62270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62271 /* end confdefs.h.  */
62272
62273 #include <locale.h>
62274 #include <string.h>
62275 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
62276    <wchar.h>.
62277    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62278    included before <wchar.h>.  */
62279 #include <stddef.h>
62280 #include <stdio.h>
62281 #include <time.h>
62282 #include <wchar.h>
62283 int main ()
62284 {
62285   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
62286     {
62287       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
62288       mbstate_t state;
62289       wchar_t wc;
62290
62291       memset (&state, '\0', sizeof (mbstate_t));
62292       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
62293         if (mbsinit (&state))
62294           return 1;
62295     }
62296   return 0;
62297 }
62298 _ACEOF
62299 if ac_fn_c_try_run "$LINENO"; then :
62300   gl_cv_func_mbrtowc_incomplete_state=yes
62301 else
62302   gl_cv_func_mbrtowc_incomplete_state=no
62303 fi
62304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62305   conftest.$ac_objext conftest.beam conftest.$ac_ext
62306 fi
62307
62308       fi
62309
62310 fi
62311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
62312 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
62313
62314
62315
62316
62317      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
62318 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
62319 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
62320   $as_echo_n "(cached) " >&6
62321 else
62322
62323                   case "$host_os" in
62324                     # Guess no on Solaris 8.
62325         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
62326                     # Guess yes otherwise.
62327         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
62328       esac
62329       if test $LOCALE_ZH_CN != none; then
62330         if test "$cross_compiling" = yes; then :
62331   :
62332 else
62333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62334 /* end confdefs.h.  */
62335
62336 #include <locale.h>
62337 #include <stdlib.h>
62338 #include <string.h>
62339 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
62340    <wchar.h>.
62341    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62342    included before <wchar.h>.  */
62343 #include <stddef.h>
62344 #include <stdio.h>
62345 #include <time.h>
62346 #include <wchar.h>
62347 int main ()
62348 {
62349   /* This fails on Solaris 8:
62350      mbrtowc returns 2, and sets wc to 0x00F0.
62351      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
62352   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
62353     {
62354       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
62355       mbstate_t state;
62356       wchar_t wc;
62357
62358       memset (&state, '\0', sizeof (mbstate_t));
62359       if (mbrtowc (&wc, input + 3, 6, &state) != 4
62360           && mbtowc (&wc, input + 3, 6) == 4)
62361         return 1;
62362     }
62363   return 0;
62364 }
62365 _ACEOF
62366 if ac_fn_c_try_run "$LINENO"; then :
62367   gl_cv_func_mbrtowc_sanitycheck=yes
62368 else
62369   gl_cv_func_mbrtowc_sanitycheck=no
62370 fi
62371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62372   conftest.$ac_objext conftest.beam conftest.$ac_ext
62373 fi
62374
62375       fi
62376
62377 fi
62378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
62379 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
62380
62381     REPLACE_MBSTATE_T=0
62382     case "$gl_cv_func_mbrtowc_incomplete_state" in
62383       *yes) ;;
62384       *) REPLACE_MBSTATE_T=1 ;;
62385     esac
62386     case "$gl_cv_func_mbrtowc_sanitycheck" in
62387       *yes) ;;
62388       *) REPLACE_MBSTATE_T=1 ;;
62389     esac
62390   else
62391     REPLACE_MBSTATE_T=1
62392   fi
62393
62394
62395
62396   if test $ac_cv_func_wcrtomb = no; then
62397     HAVE_WCRTOMB=0
62398     ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
62399 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
62400    <wchar.h>.
62401    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62402    included before <wchar.h>.  */
62403 #include <stddef.h>
62404 #include <stdio.h>
62405 #include <time.h>
62406 #include <wchar.h>
62407
62408 "
62409 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
62410   ac_have_decl=1
62411 else
62412   ac_have_decl=0
62413 fi
62414
62415 cat >>confdefs.h <<_ACEOF
62416 #define HAVE_DECL_WCRTOMB $ac_have_decl
62417 _ACEOF
62418
62419     if test $ac_cv_have_decl_wcrtomb = yes; then
62420                         REPLACE_WCRTOMB=1
62421     fi
62422   else
62423     if test $REPLACE_MBSTATE_T = 1; then
62424       REPLACE_WCRTOMB=1
62425     else
62426
62427
62428
62429
62430
62431              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
62432 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
62433 if ${gl_cv_func_wcrtomb_retval+:} false; then :
62434   $as_echo_n "(cached) " >&6
62435 else
62436
62437                               case "$host_os" in
62438                                      # Guess no on AIX 4, OSF/1 and Solaris.
62439             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
62440                                      # Guess yes otherwise.
62441             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
62442           esac
62443           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
62444             if test "$cross_compiling" = yes; then :
62445   :
62446 else
62447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62448 /* end confdefs.h.  */
62449
62450 #include <locale.h>
62451 #include <string.h>
62452 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
62453    <wchar.h>.
62454    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62455    included before <wchar.h>.  */
62456 #include <stddef.h>
62457 #include <stdio.h>
62458 #include <time.h>
62459 #include <wchar.h>
62460 int main ()
62461 {
62462   int result = 0;
62463   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
62464     {
62465       if (wcrtomb (NULL, 0, NULL) != 1)
62466         result |= 1;
62467     }
62468   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
62469     {
62470       if (wcrtomb (NULL, 0, NULL) != 1)
62471         result |= 2;
62472     }
62473   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
62474     {
62475       if (wcrtomb (NULL, 0, NULL) != 1)
62476         result |= 4;
62477     }
62478   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
62479     {
62480       if (wcrtomb (NULL, 0, NULL) != 1)
62481         result |= 8;
62482     }
62483   return result;
62484 }
62485 _ACEOF
62486 if ac_fn_c_try_run "$LINENO"; then :
62487   gl_cv_func_wcrtomb_retval=yes
62488 else
62489   gl_cv_func_wcrtomb_retval=no
62490 fi
62491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62492   conftest.$ac_objext conftest.beam conftest.$ac_ext
62493 fi
62494
62495           fi
62496
62497 fi
62498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
62499 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
62500       case "$gl_cv_func_wcrtomb_retval" in
62501         *yes) ;;
62502         *) REPLACE_WCRTOMB=1 ;;
62503       esac
62504     fi
62505   fi
62506
62507   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
62508
62509
62510
62511
62512
62513
62514
62515
62516   gltests_LIBOBJS="$gltests_LIBOBJS wcrtomb.$ac_objext"
62517
62518
62519   :
62520
62521   fi
62522
62523
62524
62525
62526
62527     if test "$GNULIB_WCRTOMB" != 1; then
62528         if test "$GNULIB_WCRTOMB" = 0; then
62529       GNULIB_WCRTOMB=$gl_module_indicator_condition
62530     else
62531       GNULIB_WCRTOMB="($GNULIB_WCRTOMB || $gl_module_indicator_condition)"
62532     fi
62533   fi
62534
62535
62536
62537
62538
62539 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
62540
62541
62542
62543
62544
62545
62546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
62547 $as_echo_n "checking for a traditional french locale... " >&6; }
62548 if ${gt_cv_locale_fr+:} false; then :
62549   $as_echo_n "(cached) " >&6
62550 else
62551
62552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62553 /* end confdefs.h.  */
62554
62555 #include <locale.h>
62556 #include <time.h>
62557 #if HAVE_LANGINFO_CODESET
62558 # include <langinfo.h>
62559 #endif
62560 #include <stdlib.h>
62561 #include <string.h>
62562 struct tm t;
62563 char buf[16];
62564 int main () {
62565   /* Check whether the given locale name is recognized by the system.  */
62566 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
62567   /* On native Windows, setlocale(category, "") looks at the system settings,
62568      not at the environment variables.  Also, when an encoding suffix such
62569      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
62570      category of the locale to "C".  */
62571   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
62572       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
62573     return 1;
62574 #else
62575   if (setlocale (LC_ALL, "") == NULL) return 1;
62576 #endif
62577   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
62578      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
62579      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
62580      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
62581      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
62582      some unit tests fail.
62583      On MirBSD 10, when an unsupported locale is specified, setlocale()
62584      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
62585 #if HAVE_LANGINFO_CODESET
62586   {
62587     const char *cs = nl_langinfo (CODESET);
62588     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
62589         || strcmp (cs, "UTF-8") == 0)
62590       return 1;
62591   }
62592 #endif
62593 #ifdef __CYGWIN__
62594   /* On Cygwin, avoid locale names without encoding suffix, because the
62595      locale_charset() function relies on the encoding suffix.  Note that
62596      LC_ALL is set on the command line.  */
62597   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
62598 #endif
62599   /* Check whether in the abbreviation of the second month, the second
62600      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
62601      one byte long. This excludes the UTF-8 encoding.  */
62602   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
62603   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
62604 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
62605   /* Check whether the decimal separator is a comma.
62606      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
62607      are nl_langinfo(RADIXCHAR) are both ".".  */
62608   if (localeconv () ->decimal_point[0] != ',') return 1;
62609 #endif
62610   return 0;
62611 }
62612
62613 _ACEOF
62614     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
62615   (eval $ac_link) 2>&5
62616   ac_status=$?
62617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62618   test $ac_status = 0; } && test -s conftest$ac_exeext; then
62619       case "$host_os" in
62620         # Handle native Windows specially, because there setlocale() interprets
62621         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
62622         # "fr" or "fra" as "French" or "French_France.1252",
62623         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
62624         # "ja" as "Japanese" or "Japanese_Japan.932",
62625         # and similar.
62626         mingw*)
62627           # Test for the native Windows locale name.
62628           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62629             gt_cv_locale_fr=French_France.1252
62630           else
62631             # None found.
62632             gt_cv_locale_fr=none
62633           fi
62634           ;;
62635         *)
62636           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
62637           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
62638           # configure script would override the LC_ALL setting. Likewise for
62639           # LC_CTYPE, which is also set at the beginning of the configure script.
62640           # Test for the usual locale name.
62641           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62642             gt_cv_locale_fr=fr_FR
62643           else
62644             # Test for the locale name with explicit encoding suffix.
62645             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62646               gt_cv_locale_fr=fr_FR.ISO-8859-1
62647             else
62648               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
62649               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62650                 gt_cv_locale_fr=fr_FR.ISO8859-1
62651               else
62652                 # Test for the HP-UX locale name.
62653                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62654                   gt_cv_locale_fr=fr_FR.iso88591
62655                 else
62656                   # Test for the Solaris 7 locale name.
62657                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62658                     gt_cv_locale_fr=fr
62659                   else
62660                     # None found.
62661                     gt_cv_locale_fr=none
62662                   fi
62663                 fi
62664               fi
62665             fi
62666           fi
62667           ;;
62668       esac
62669     fi
62670     rm -fr conftest*
62671
62672 fi
62673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
62674 $as_echo "$gt_cv_locale_fr" >&6; }
62675   LOCALE_FR=$gt_cv_locale_fr
62676
62677
62678
62679
62680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
62681 $as_echo_n "checking for a french Unicode locale... " >&6; }
62682 if ${gt_cv_locale_fr_utf8+:} false; then :
62683   $as_echo_n "(cached) " >&6
62684 else
62685
62686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62687 /* end confdefs.h.  */
62688
62689 #include <locale.h>
62690 #include <time.h>
62691 #if HAVE_LANGINFO_CODESET
62692 # include <langinfo.h>
62693 #endif
62694 #include <stdlib.h>
62695 #include <string.h>
62696 struct tm t;
62697 char buf[16];
62698 int main () {
62699   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
62700      imitates locale dependent behaviour by looking at the environment
62701      variables, and all locales use the UTF-8 encoding.  */
62702 #if !(defined __BEOS__ || defined __HAIKU__)
62703   /* Check whether the given locale name is recognized by the system.  */
62704 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
62705   /* On native Windows, setlocale(category, "") looks at the system settings,
62706      not at the environment variables.  Also, when an encoding suffix such
62707      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
62708      category of the locale to "C".  */
62709   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
62710       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
62711     return 1;
62712 # else
62713   if (setlocale (LC_ALL, "") == NULL) return 1;
62714 # endif
62715   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
62716      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
62717      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
62718      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
62719      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
62720      some unit tests fail.  */
62721 # if HAVE_LANGINFO_CODESET
62722   {
62723     const char *cs = nl_langinfo (CODESET);
62724     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
62725       return 1;
62726   }
62727 # endif
62728 # ifdef __CYGWIN__
62729   /* On Cygwin, avoid locale names without encoding suffix, because the
62730      locale_charset() function relies on the encoding suffix.  Note that
62731      LC_ALL is set on the command line.  */
62732   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
62733 # endif
62734   /* Check whether in the abbreviation of the second month, the second
62735      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
62736      two bytes long, with UTF-8 encoding.  */
62737   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
62738   if (strftime (buf, sizeof (buf), "%b", &t) < 4
62739       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
62740     return 1;
62741 #endif
62742 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
62743   /* Check whether the decimal separator is a comma.
62744      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
62745      are nl_langinfo(RADIXCHAR) are both ".".  */
62746   if (localeconv () ->decimal_point[0] != ',') return 1;
62747 #endif
62748   return 0;
62749 }
62750
62751 _ACEOF
62752     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
62753   (eval $ac_link) 2>&5
62754   ac_status=$?
62755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62756   test $ac_status = 0; } && test -s conftest$ac_exeext; then
62757       case "$host_os" in
62758         # Handle native Windows specially, because there setlocale() interprets
62759         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
62760         # "fr" or "fra" as "French" or "French_France.1252",
62761         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
62762         # "ja" as "Japanese" or "Japanese_Japan.932",
62763         # and similar.
62764         mingw*)
62765           # Test for the hypothetical native Windows locale name.
62766           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62767             gt_cv_locale_fr_utf8=French_France.65001
62768           else
62769             # None found.
62770             gt_cv_locale_fr_utf8=none
62771           fi
62772           ;;
62773         *)
62774           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
62775           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
62776           # configure script would override the LC_ALL setting. Likewise for
62777           # LC_CTYPE, which is also set at the beginning of the configure script.
62778           # Test for the usual locale name.
62779           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62780             gt_cv_locale_fr_utf8=fr_FR
62781           else
62782             # Test for the locale name with explicit encoding suffix.
62783             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62784               gt_cv_locale_fr_utf8=fr_FR.UTF-8
62785             else
62786               # Test for the Solaris 7 locale name.
62787               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62788                 gt_cv_locale_fr_utf8=fr.UTF-8
62789               else
62790                 # None found.
62791                 gt_cv_locale_fr_utf8=none
62792               fi
62793             fi
62794           fi
62795           ;;
62796       esac
62797     fi
62798     rm -fr conftest*
62799
62800 fi
62801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
62802 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
62803   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
62804
62805
62806
62807
62808
62809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
62810 $as_echo_n "checking for a traditional japanese locale... " >&6; }
62811 if ${gt_cv_locale_ja+:} false; then :
62812   $as_echo_n "(cached) " >&6
62813 else
62814
62815     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62816 /* end confdefs.h.  */
62817
62818 #include <locale.h>
62819 #include <time.h>
62820 #if HAVE_LANGINFO_CODESET
62821 # include <langinfo.h>
62822 #endif
62823 #include <stdlib.h>
62824 #include <string.h>
62825 struct tm t;
62826 char buf[16];
62827 int main ()
62828 {
62829   const char *p;
62830   /* Check whether the given locale name is recognized by the system.  */
62831 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
62832   /* On native Windows, setlocale(category, "") looks at the system settings,
62833      not at the environment variables.  Also, when an encoding suffix such
62834      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
62835      category of the locale to "C".  */
62836   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
62837       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
62838     return 1;
62839 #else
62840   if (setlocale (LC_ALL, "") == NULL) return 1;
62841 #endif
62842   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
62843      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
62844      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
62845      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
62846      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
62847      some unit tests fail.
62848      On MirBSD 10, when an unsupported locale is specified, setlocale()
62849      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
62850 #if HAVE_LANGINFO_CODESET
62851   {
62852     const char *cs = nl_langinfo (CODESET);
62853     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
62854         || strcmp (cs, "UTF-8") == 0)
62855       return 1;
62856   }
62857 #endif
62858 #ifdef __CYGWIN__
62859   /* On Cygwin, avoid locale names without encoding suffix, because the
62860      locale_charset() function relies on the encoding suffix.  Note that
62861      LC_ALL is set on the command line.  */
62862   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
62863 #endif
62864   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
62865      on Cygwin 1.5.x.  */
62866   if (MB_CUR_MAX == 1)
62867     return 1;
62868   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
62869      This excludes the UTF-8 encoding (except on MirBSD).  */
62870   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
62871   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
62872   for (p = buf; *p != '\0'; p++)
62873     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
62874       return 1;
62875   return 0;
62876 }
62877
62878 _ACEOF
62879     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
62880   (eval $ac_link) 2>&5
62881   ac_status=$?
62882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62883   test $ac_status = 0; } && test -s conftest$ac_exeext; then
62884       case "$host_os" in
62885         # Handle native Windows specially, because there setlocale() interprets
62886         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
62887         # "fr" or "fra" as "French" or "French_France.1252",
62888         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
62889         # "ja" as "Japanese" or "Japanese_Japan.932",
62890         # and similar.
62891         mingw*)
62892           # Note that on native Windows, the Japanese locale is
62893           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
62894           # cannot use it here.
62895           gt_cv_locale_ja=none
62896           ;;
62897         *)
62898           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
62899           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
62900           # configure script would override the LC_ALL setting. Likewise for
62901           # LC_CTYPE, which is also set at the beginning of the configure script.
62902           # Test for the AIX locale name.
62903           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62904             gt_cv_locale_ja=ja_JP
62905           else
62906             # Test for the locale name with explicit encoding suffix.
62907             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62908               gt_cv_locale_ja=ja_JP.EUC-JP
62909             else
62910               # Test for the HP-UX, OSF/1, NetBSD locale name.
62911               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62912                 gt_cv_locale_ja=ja_JP.eucJP
62913               else
62914                 # Test for the IRIX, FreeBSD locale name.
62915                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62916                   gt_cv_locale_ja=ja_JP.EUC
62917                 else
62918                   # Test for the Solaris 7 locale name.
62919                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62920                     gt_cv_locale_ja=ja
62921                   else
62922                     # Special test for NetBSD 1.6.
62923                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
62924                       gt_cv_locale_ja=ja_JP.eucJP
62925                     else
62926                       # None found.
62927                       gt_cv_locale_ja=none
62928                     fi
62929                   fi
62930                 fi
62931               fi
62932             fi
62933           fi
62934           ;;
62935       esac
62936     fi
62937     rm -fr conftest*
62938
62939 fi
62940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
62941 $as_echo "$gt_cv_locale_ja" >&6; }
62942   LOCALE_JA=$gt_cv_locale_ja
62943
62944
62945
62946
62947
62948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
62949 $as_echo_n "checking for a transitional chinese locale... " >&6; }
62950 if ${gt_cv_locale_zh_CN+:} false; then :
62951   $as_echo_n "(cached) " >&6
62952 else
62953
62954     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62955 /* end confdefs.h.  */
62956
62957 #include <locale.h>
62958 #include <stdlib.h>
62959 #include <time.h>
62960 #if HAVE_LANGINFO_CODESET
62961 # include <langinfo.h>
62962 #endif
62963 #include <stdlib.h>
62964 #include <string.h>
62965 struct tm t;
62966 char buf[16];
62967 int main ()
62968 {
62969   const char *p;
62970   /* Check whether the given locale name is recognized by the system.  */
62971 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
62972   /* On native Windows, setlocale(category, "") looks at the system settings,
62973      not at the environment variables.  Also, when an encoding suffix such
62974      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
62975      category of the locale to "C".  */
62976   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
62977       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
62978     return 1;
62979 #else
62980   if (setlocale (LC_ALL, "") == NULL) return 1;
62981 #endif
62982   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
62983      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
62984      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
62985      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
62986      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
62987      some unit tests fail.
62988      On MirBSD 10, when an unsupported locale is specified, setlocale()
62989      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
62990 #if HAVE_LANGINFO_CODESET
62991   {
62992     const char *cs = nl_langinfo (CODESET);
62993     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
62994         || strcmp (cs, "UTF-8") == 0)
62995       return 1;
62996   }
62997 #endif
62998 #ifdef __CYGWIN__
62999   /* On Cygwin, avoid locale names without encoding suffix, because the
63000      locale_charset() function relies on the encoding suffix.  Note that
63001      LC_ALL is set on the command line.  */
63002   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
63003 #endif
63004   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
63005      This excludes the UTF-8 encoding (except on MirBSD).  */
63006   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
63007   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
63008   for (p = buf; *p != '\0'; p++)
63009     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
63010       return 1;
63011   /* Check whether a typical GB18030 multibyte sequence is recognized as a
63012      single wide character.  This excludes the GB2312 and GBK encodings.  */
63013   if (mblen ("\203\062\332\066", 5) != 4)
63014     return 1;
63015   return 0;
63016 }
63017
63018 _ACEOF
63019     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
63020   (eval $ac_link) 2>&5
63021   ac_status=$?
63022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63023   test $ac_status = 0; } && test -s conftest$ac_exeext; then
63024       case "$host_os" in
63025         # Handle native Windows specially, because there setlocale() interprets
63026         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
63027         # "fr" or "fra" as "French" or "French_France.1252",
63028         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
63029         # "ja" as "Japanese" or "Japanese_Japan.932",
63030         # and similar.
63031         mingw*)
63032           # Test for the hypothetical native Windows locale name.
63033           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
63034             gt_cv_locale_zh_CN=Chinese_China.54936
63035           else
63036             # None found.
63037             gt_cv_locale_zh_CN=none
63038           fi
63039           ;;
63040         solaris2.8)
63041           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
63042           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
63043           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
63044           gt_cv_locale_zh_CN=none
63045           ;;
63046         *)
63047           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
63048           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
63049           # configure script would override the LC_ALL setting. Likewise for
63050           # LC_CTYPE, which is also set at the beginning of the configure script.
63051           # Test for the locale name without encoding suffix.
63052           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
63053             gt_cv_locale_zh_CN=zh_CN
63054           else
63055             # Test for the locale name with explicit encoding suffix.
63056             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
63057               gt_cv_locale_zh_CN=zh_CN.GB18030
63058             else
63059               # None found.
63060               gt_cv_locale_zh_CN=none
63061             fi
63062           fi
63063           ;;
63064       esac
63065     else
63066       # If there was a link error, due to mblen(), the system is so old that
63067       # it certainly doesn't have a chinese locale.
63068       gt_cv_locale_zh_CN=none
63069     fi
63070     rm -fr conftest*
63071
63072 fi
63073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
63074 $as_echo "$gt_cv_locale_zh_CN" >&6; }
63075   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
63076
63077
63078
63079
63080
63081
63082   if test $ac_cv_func_wctob = no; then
63083     HAVE_WCTOB=0
63084     HAVE_DECL_WCTOB=0
63085   else
63086     HAVE_WCTOB=1
63087
63088
63089
63090          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5
63091 $as_echo_n "checking whether wctob works... " >&6; }
63092 if ${gl_cv_func_wctob_works+:} false; then :
63093   $as_echo_n "(cached) " >&6
63094 else
63095
63096                         case "$host_os" in
63097             # Guess no on Solaris <= 9 and Cygwin.
63098           solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
63099             gl_cv_func_wctob_works="guessing no" ;;
63100             # Guess yes otherwise.
63101           *) gl_cv_func_wctob_works="guessing yes" ;;
63102         esac
63103         case "$host_os" in
63104           cygwin*)
63105             if test "$cross_compiling" = yes; then :
63106   :
63107 else
63108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63109 /* end confdefs.h.  */
63110
63111 #include <locale.h>
63112 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63113    <wchar.h>.
63114    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
63115    included before <wchar.h>.  */
63116 #include <stddef.h>
63117 #include <stdio.h>
63118 #include <time.h>
63119 #include <wchar.h>
63120
63121 register long global __asm__ ("%ebx");
63122
63123 int main ()
63124 {
63125   setlocale (LC_ALL, "en_US.UTF-8");
63126
63127   global = 0x12345678;
63128   if (wctob (0x00FC) != -1)
63129     return 1;
63130   if (global != 0x12345678)
63131     return 2;
63132   return 0;
63133 }
63134 _ACEOF
63135 if ac_fn_c_try_run "$LINENO"; then :
63136   :
63137 else
63138   gl_cv_func_wctob_works=no
63139 fi
63140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
63141   conftest.$ac_objext conftest.beam conftest.$ac_ext
63142 fi
63143
63144             ;;
63145         esac
63146         if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then
63147           if test "$cross_compiling" = yes; then :
63148   :
63149 else
63150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63151 /* end confdefs.h.  */
63152
63153 #include <locale.h>
63154 #include <string.h>
63155 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63156    <wchar.h>.
63157    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
63158    included before <wchar.h>.  */
63159 #include <stddef.h>
63160 #include <stdio.h>
63161 #include <time.h>
63162 #include <wchar.h>
63163 int main ()
63164 {
63165   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
63166     {
63167       wchar_t wc;
63168
63169       if (mbtowc (&wc, "\374", 1) == 1)
63170         if (wctob (wc) != (unsigned char) '\374')
63171           return 1;
63172     }
63173   return 0;
63174 }
63175 _ACEOF
63176 if ac_fn_c_try_run "$LINENO"; then :
63177   gl_cv_func_wctob_works=yes
63178 else
63179   gl_cv_func_wctob_works=no
63180 fi
63181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
63182   conftest.$ac_objext conftest.beam conftest.$ac_ext
63183 fi
63184
63185         fi
63186
63187 fi
63188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5
63189 $as_echo "$gl_cv_func_wctob_works" >&6; }
63190     case "$gl_cv_func_wctob_works" in
63191       *yes) ;;
63192       *) REPLACE_WCTOB=1 ;;
63193     esac
63194     if test $REPLACE_WCTOB = 0; then
63195
63196             ac_fn_c_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" "
63197 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63198    <wchar.h>.
63199    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
63200    before <wchar.h>.  */
63201 #include <stddef.h>
63202 #include <stdio.h>
63203 #include <time.h>
63204 #include <wchar.h>
63205
63206 "
63207 if test "x$ac_cv_have_decl_wctob" = xyes; then :
63208   ac_have_decl=1
63209 else
63210   ac_have_decl=0
63211 fi
63212
63213 cat >>confdefs.h <<_ACEOF
63214 #define HAVE_DECL_WCTOB $ac_have_decl
63215 _ACEOF
63216
63217       if test $ac_cv_have_decl_wctob != yes; then
63218         HAVE_DECL_WCTOB=0
63219       fi
63220     fi
63221   fi
63222
63223   if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
63224
63225
63226
63227
63228
63229
63230
63231
63232   gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
63233
63234
63235   :
63236
63237   fi
63238
63239
63240
63241
63242
63243     if test "$GNULIB_WCTOB" != 1; then
63244         if test "$GNULIB_WCTOB" = 0; then
63245       GNULIB_WCTOB=$gl_module_indicator_condition
63246     else
63247       GNULIB_WCTOB="($GNULIB_WCTOB || $gl_module_indicator_condition)"
63248     fi
63249   fi
63250
63251
63252
63253
63254
63255 $as_echo "#define GNULIB_TEST_WCTOB 1" >>confdefs.h
63256
63257
63258
63259
63260
63261
63262   if false; then
63263     REPLACE_WCTOMB=1
63264   fi
63265
63266   if test $REPLACE_WCTOMB = 1; then
63267
63268
63269
63270
63271
63272
63273
63274
63275   gltests_LIBOBJS="$gltests_LIBOBJS wctomb.$ac_objext"
63276
63277
63278   :
63279
63280   fi
63281
63282
63283
63284
63285
63286     if test "$GNULIB_WCTOMB" != 1; then
63287         if test "$GNULIB_WCTOMB" = 0; then
63288       GNULIB_WCTOMB=$gl_module_indicator_condition
63289     else
63290       GNULIB_WCTOMB="($GNULIB_WCTOMB || $gl_module_indicator_condition)"
63291     fi
63292   fi
63293
63294
63295
63296
63297
63298 $as_echo "#define GNULIB_TEST_WCTOMB 1" >>confdefs.h
63299
63300
63301
63302
63303
63304     YIELD_LIB=
63305   if test $gl_threads_api = posix; then
63306         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
63307 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
63308 if ${ac_cv_lib_rt_sched_yield+:} false; then :
63309   $as_echo_n "(cached) " >&6
63310 else
63311   ac_check_lib_save_LIBS=$LIBS
63312 LIBS="-lrt  $LIBS"
63313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63314 /* end confdefs.h.  */
63315
63316 /* Override any GCC internal prototype to avoid an error.
63317    Use char because int might match the return type of a GCC
63318    builtin and then its argument prototype would still apply.  */
63319 #ifdef __cplusplus
63320 extern "C"
63321 #endif
63322 char sched_yield ();
63323 int
63324 main ()
63325 {
63326 return sched_yield ();
63327   ;
63328   return 0;
63329 }
63330 _ACEOF
63331 if ac_fn_c_try_link "$LINENO"; then :
63332   ac_cv_lib_rt_sched_yield=yes
63333 else
63334   ac_cv_lib_rt_sched_yield=no
63335 fi
63336 rm -f core conftest.err conftest.$ac_objext \
63337     conftest$ac_exeext conftest.$ac_ext
63338 LIBS=$ac_check_lib_save_LIBS
63339 fi
63340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
63341 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
63342 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
63343   YIELD_LIB=-lrt
63344 else
63345          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
63346 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
63347 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
63348   $as_echo_n "(cached) " >&6
63349 else
63350   ac_check_lib_save_LIBS=$LIBS
63351 LIBS="-lposix4  $LIBS"
63352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63353 /* end confdefs.h.  */
63354
63355 /* Override any GCC internal prototype to avoid an error.
63356    Use char because int might match the return type of a GCC
63357    builtin and then its argument prototype would still apply.  */
63358 #ifdef __cplusplus
63359 extern "C"
63360 #endif
63361 char sched_yield ();
63362 int
63363 main ()
63364 {
63365 return sched_yield ();
63366   ;
63367   return 0;
63368 }
63369 _ACEOF
63370 if ac_fn_c_try_link "$LINENO"; then :
63371   ac_cv_lib_posix4_sched_yield=yes
63372 else
63373   ac_cv_lib_posix4_sched_yield=no
63374 fi
63375 rm -f core conftest.err conftest.$ac_objext \
63376     conftest$ac_exeext conftest.$ac_ext
63377 LIBS=$ac_check_lib_save_LIBS
63378 fi
63379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
63380 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
63381 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
63382   YIELD_LIB=-lposix4
63383 fi
63384
63385 fi
63386
63387   fi
63388
63389
63390
63391
63392
63393
63394
63395
63396
63397
63398
63399
63400   LIBTESTS_LIBDEPS="$gltests_libdeps"
63401
63402
63403
63404
63405
63406
63407
63408
63409
63410    if false; then
63411   GL_COND_LIBTOOL_TRUE=
63412   GL_COND_LIBTOOL_FALSE='#'
63413 else
63414   GL_COND_LIBTOOL_TRUE='#'
63415   GL_COND_LIBTOOL_FALSE=
63416 fi
63417
63418   gl_cond_libtool=false
63419   gl_libdeps=
63420   gl_ltlibdeps=
63421   gl_m4_base='libgrep/gnulib-m4'
63422
63423
63424
63425
63426
63427
63428
63429
63430
63431   gl_source_base='libgrep'
63432
63433
63434
63435
63436
63437
63438
63439   if test $ac_cv_func_btowc = no; then
63440     HAVE_BTOWC=0
63441   else
63442
63443
63444
63445
63446         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
63447 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
63448 if ${gl_cv_func_btowc_nul+:} false; then :
63449   $as_echo_n "(cached) " >&6
63450 else
63451
63452         if test "$cross_compiling" = yes; then :
63453
63454            case "$host_os" in
63455                       # Guess no on Cygwin.
63456              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
63457                       # Guess yes otherwise.
63458              *)       gl_cv_func_btowc_nul="guessing yes" ;;
63459            esac
63460
63461 else
63462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63463 /* end confdefs.h.  */
63464
63465 #include <string.h>
63466 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63467    <wchar.h>.
63468    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
63469    included before <wchar.h>.  */
63470 #include <stddef.h>
63471 #include <stdio.h>
63472 #include <time.h>
63473 #include <wchar.h>
63474 int main ()
63475 {
63476   if (btowc ('\0') != 0)
63477     return 1;
63478   return 0;
63479 }
63480 _ACEOF
63481 if ac_fn_c_try_run "$LINENO"; then :
63482   gl_cv_func_btowc_nul=yes
63483 else
63484   gl_cv_func_btowc_nul=no
63485 fi
63486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
63487   conftest.$ac_objext conftest.beam conftest.$ac_ext
63488 fi
63489
63490
63491 fi
63492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
63493 $as_echo "$gl_cv_func_btowc_nul" >&6; }
63494
63495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
63496 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
63497 if ${gl_cv_func_btowc_eof+:} false; then :
63498   $as_echo_n "(cached) " >&6
63499 else
63500
63501                         case "$host_os" in
63502                  # Guess no on IRIX.
63503           irix*) gl_cv_func_btowc_eof="guessing no" ;;
63504                  # Guess yes otherwise.
63505           *)     gl_cv_func_btowc_eof="guessing yes" ;;
63506         esac
63507         if test $LOCALE_FR != none; then
63508           if test "$cross_compiling" = yes; then :
63509   :
63510 else
63511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63512 /* end confdefs.h.  */
63513
63514 #include <locale.h>
63515 #include <string.h>
63516 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63517    <wchar.h>.
63518    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
63519    included before <wchar.h>.  */
63520 #include <stddef.h>
63521 #include <stdio.h>
63522 #include <time.h>
63523 #include <wchar.h>
63524 int main ()
63525 {
63526   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
63527     {
63528       if (btowc (EOF) != WEOF)
63529         return 1;
63530     }
63531   return 0;
63532 }
63533 _ACEOF
63534 if ac_fn_c_try_run "$LINENO"; then :
63535   gl_cv_func_btowc_eof=yes
63536 else
63537   gl_cv_func_btowc_eof=no
63538 fi
63539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
63540   conftest.$ac_objext conftest.beam conftest.$ac_ext
63541 fi
63542
63543         fi
63544
63545 fi
63546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
63547 $as_echo "$gl_cv_func_btowc_eof" >&6; }
63548
63549     case "$gl_cv_func_btowc_nul" in
63550       *yes) ;;
63551       *) REPLACE_BTOWC=1 ;;
63552     esac
63553     case "$gl_cv_func_btowc_eof" in
63554       *yes) ;;
63555       *) REPLACE_BTOWC=1 ;;
63556     esac
63557   fi
63558
63559   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
63560
63561
63562
63563
63564
63565
63566
63567
63568   grgl_LIBOBJS="$grgl_LIBOBJS btowc.$ac_objext"
63569
63570
63571   :
63572
63573   fi
63574
63575
63576
63577
63578
63579     if test "$GNULIB_BTOWC" != 1; then
63580         if test "$GNULIB_BTOWC" = 0; then
63581       GNULIB_BTOWC=IN_GETTEXT_TOOLS_LIBGREP
63582     else
63583       GNULIB_BTOWC="($GNULIB_BTOWC || IN_GETTEXT_TOOLS_LIBGREP)"
63584     fi
63585   fi
63586
63587
63588
63589
63590
63591 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
63592
63593
63594
63595
63596
63597
63598
63599
63600
63601
63602
63603
63604
63605
63606
63607
63608
63609      if test $gl_cv_have_include_next = yes; then
63610        gl_cv_next_langinfo_h='<'langinfo.h'>'
63611      else
63612        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
63613 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
63614 if ${gl_cv_next_langinfo_h+:} false; then :
63615   $as_echo_n "(cached) " >&6
63616 else
63617
63618              if test $ac_cv_header_langinfo_h = yes; then
63619
63620
63621
63622
63623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63624 /* end confdefs.h.  */
63625 #include <langinfo.h>
63626 _ACEOF
63627                 case "$host_os" in
63628     aix*) gl_absname_cpp="$ac_cpp -C" ;;
63629     *)    gl_absname_cpp="$ac_cpp" ;;
63630   esac
63631
63632   case "$host_os" in
63633     mingw*)
63634                                           gl_dirsep_regex='[/\\]'
63635       ;;
63636     *)
63637       gl_dirsep_regex='\/'
63638       ;;
63639   esac
63640       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
63641   gl_header_literal_regex=`echo 'langinfo.h' \
63642                            | sed -e "$gl_make_literal_regex_sed"`
63643   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
63644       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
63645       s|^/[^/]|//&|
63646       p
63647       q
63648     }'
63649
63650         gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
63651   sed -n "$gl_absolute_header_sed"`
63652
63653            gl_header=$gl_cv_absolute_langinfo_h
63654            gl_cv_next_langinfo_h='"'$gl_header'"'
63655           else
63656                gl_cv_next_langinfo_h='<'langinfo.h'>'
63657              fi
63658
63659
63660 fi
63661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
63662 $as_echo "$gl_cv_next_langinfo_h" >&6; }
63663      fi
63664      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
63665
63666      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
63667        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
63668        gl_next_as_first_directive='<'langinfo.h'>'
63669      else
63670        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
63671        gl_next_as_first_directive=$gl_cv_next_langinfo_h
63672      fi
63673      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
63674
63675
63676
63677
63678
63679     HAVE_LANGINFO_CODESET=0
63680   HAVE_LANGINFO_T_FMT_AMPM=0
63681   HAVE_LANGINFO_ERA=0
63682   HAVE_LANGINFO_YESEXPR=0
63683
63684   if test $ac_cv_header_langinfo_h = yes; then
63685     HAVE_LANGINFO_H=1
63686             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
63687 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
63688 if ${gl_cv_header_langinfo_codeset+:} false; then :
63689   $as_echo_n "(cached) " >&6
63690 else
63691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63692 /* end confdefs.h.  */
63693 #include <langinfo.h>
63694 int a = CODESET;
63695
63696 int
63697 main ()
63698 {
63699
63700   ;
63701   return 0;
63702 }
63703 _ACEOF
63704 if ac_fn_c_try_compile "$LINENO"; then :
63705   gl_cv_header_langinfo_codeset=yes
63706 else
63707   gl_cv_header_langinfo_codeset=no
63708 fi
63709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63710
63711 fi
63712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
63713 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
63714     if test $gl_cv_header_langinfo_codeset = yes; then
63715       HAVE_LANGINFO_CODESET=1
63716     fi
63717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
63718 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
63719 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
63720   $as_echo_n "(cached) " >&6
63721 else
63722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63723 /* end confdefs.h.  */
63724 #include <langinfo.h>
63725 int a = T_FMT_AMPM;
63726
63727 int
63728 main ()
63729 {
63730
63731   ;
63732   return 0;
63733 }
63734 _ACEOF
63735 if ac_fn_c_try_compile "$LINENO"; then :
63736   gl_cv_header_langinfo_t_fmt_ampm=yes
63737 else
63738   gl_cv_header_langinfo_t_fmt_ampm=no
63739 fi
63740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63741
63742 fi
63743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
63744 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
63745     if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
63746       HAVE_LANGINFO_T_FMT_AMPM=1
63747     fi
63748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
63749 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
63750 if ${gl_cv_header_langinfo_era+:} false; then :
63751   $as_echo_n "(cached) " >&6
63752 else
63753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63754 /* end confdefs.h.  */
63755 #include <langinfo.h>
63756 int a = ERA;
63757
63758 int
63759 main ()
63760 {
63761
63762   ;
63763   return 0;
63764 }
63765 _ACEOF
63766 if ac_fn_c_try_compile "$LINENO"; then :
63767   gl_cv_header_langinfo_era=yes
63768 else
63769   gl_cv_header_langinfo_era=no
63770 fi
63771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63772
63773 fi
63774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
63775 $as_echo "$gl_cv_header_langinfo_era" >&6; }
63776     if test $gl_cv_header_langinfo_era = yes; then
63777       HAVE_LANGINFO_ERA=1
63778     fi
63779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
63780 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
63781 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
63782   $as_echo_n "(cached) " >&6
63783 else
63784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63785 /* end confdefs.h.  */
63786 #include <langinfo.h>
63787 int a = YESEXPR;
63788
63789 int
63790 main ()
63791 {
63792
63793   ;
63794   return 0;
63795 }
63796 _ACEOF
63797 if ac_fn_c_try_compile "$LINENO"; then :
63798   gl_cv_header_langinfo_yesexpr=yes
63799 else
63800   gl_cv_header_langinfo_yesexpr=no
63801 fi
63802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63803
63804 fi
63805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
63806 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
63807     if test $gl_cv_header_langinfo_yesexpr = yes; then
63808       HAVE_LANGINFO_YESEXPR=1
63809     fi
63810   else
63811     HAVE_LANGINFO_H=0
63812   fi
63813
63814
63815
63816
63817
63818
63819
63820     for gl_func in nl_langinfo; do
63821     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
63822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
63823 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
63824 if eval \${$as_gl_Symbol+:} false; then :
63825   $as_echo_n "(cached) " >&6
63826 else
63827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63828 /* end confdefs.h.  */
63829 #include <langinfo.h>
63830
63831 int
63832 main ()
63833 {
63834 #undef $gl_func
63835   (void) $gl_func;
63836   ;
63837   return 0;
63838 }
63839 _ACEOF
63840 if ac_fn_c_try_compile "$LINENO"; then :
63841   eval "$as_gl_Symbol=yes"
63842 else
63843   eval "$as_gl_Symbol=no"
63844 fi
63845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63846 fi
63847 eval ac_res=\$$as_gl_Symbol
63848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
63849 $as_echo "$ac_res" >&6; }
63850     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
63851   cat >>confdefs.h <<_ACEOF
63852 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
63853 _ACEOF
63854
63855                      eval ac_cv_have_decl_$gl_func=yes
63856 fi
63857       done
63858
63859
63860
63861
63862
63863
63864   if test $REPLACE_STRUCT_LCONV = 1; then
63865     REPLACE_LOCALECONV=1
63866   fi
63867
63868   if test $REPLACE_LOCALECONV = 1; then
63869
63870
63871
63872
63873
63874
63875
63876
63877   grgl_LIBOBJS="$grgl_LIBOBJS localeconv.$ac_objext"
63878
63879
63880   ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
63881 "
63882 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
63883
63884 cat >>confdefs.h <<_ACEOF
63885 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
63886 _ACEOF
63887
63888
63889 fi
63890
63891
63892   fi
63893
63894
63895
63896
63897
63898     if test "$GNULIB_LOCALECONV" != 1; then
63899         if test "$GNULIB_LOCALECONV" = 0; then
63900       GNULIB_LOCALECONV=IN_GETTEXT_TOOLS_LIBGREP
63901     else
63902       GNULIB_LOCALECONV="($GNULIB_LOCALECONV || IN_GETTEXT_TOOLS_LIBGREP)"
63903     fi
63904   fi
63905
63906
63907
63908
63909
63910 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
63911
63912
63913
63914
63915
63916   if test "$gl_threads_api" = posix; then
63917     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
63918     # pthread_rwlock_* functions.
63919     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
63920 "
63921 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
63922
63923 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
63924
63925 fi
63926
63927     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
63928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63929 /* end confdefs.h.  */
63930
63931       #include <pthread.h>
63932 int
63933 main ()
63934 {
63935
63936 #if __FreeBSD__ == 4
63937 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
63938 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
63939        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
63940 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
63941 #else
63942 int x = (int)PTHREAD_MUTEX_RECURSIVE;
63943 return !x;
63944 #endif
63945
63946   ;
63947   return 0;
63948 }
63949 _ACEOF
63950 if ac_fn_c_try_compile "$LINENO"; then :
63951
63952 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
63953
63954 fi
63955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63956   fi
63957   :
63958
63959
63960
63961 cat >>confdefs.h <<_ACEOF
63962 #define GNULIB_LOCK IN_GETTEXT_TOOLS_LIBGREP
63963 _ACEOF
63964
63965
63966
63967
63968
63969
63970
63971
63972   if test $ac_cv_func_mbrlen = no; then
63973     HAVE_MBRLEN=0
63974     ac_fn_c_check_decl "$LINENO" "mbrlen" "ac_cv_have_decl_mbrlen" "
63975 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63976    <wchar.h>.
63977    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
63978    included before <wchar.h>.  */
63979 #include <stddef.h>
63980 #include <stdio.h>
63981 #include <time.h>
63982 #include <wchar.h>
63983
63984 "
63985 if test "x$ac_cv_have_decl_mbrlen" = xyes; then :
63986   ac_have_decl=1
63987 else
63988   ac_have_decl=0
63989 fi
63990
63991 cat >>confdefs.h <<_ACEOF
63992 #define HAVE_DECL_MBRLEN $ac_have_decl
63993 _ACEOF
63994
63995     if test $ac_cv_have_decl_mbrlen = yes; then
63996                         REPLACE_MBRLEN=1
63997     fi
63998   else
63999                     if test $REPLACE_MBRTOWC = 1; then
64000       REPLACE_MBRLEN=1
64001     fi
64002   fi
64003
64004   if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then
64005
64006
64007
64008
64009
64010
64011
64012
64013   grgl_LIBOBJS="$grgl_LIBOBJS mbrlen.$ac_objext"
64014
64015
64016   :
64017
64018   fi
64019
64020
64021
64022
64023
64024     if test "$GNULIB_MBRLEN" != 1; then
64025         if test "$GNULIB_MBRLEN" = 0; then
64026       GNULIB_MBRLEN=IN_GETTEXT_TOOLS_LIBGREP
64027     else
64028       GNULIB_MBRLEN="($GNULIB_MBRLEN || IN_GETTEXT_TOOLS_LIBGREP)"
64029     fi
64030   fi
64031
64032
64033
64034
64035
64036 $as_echo "#define GNULIB_TEST_MBRLEN 1" >>confdefs.h
64037
64038
64039
64040
64041
64042
64043   if false; then
64044     REPLACE_MBTOWC=1
64045   fi
64046
64047   if test $REPLACE_MBTOWC = 1; then
64048
64049
64050
64051
64052
64053
64054
64055
64056   grgl_LIBOBJS="$grgl_LIBOBJS mbtowc.$ac_objext"
64057
64058
64059   :
64060
64061   fi
64062
64063
64064
64065
64066
64067     if test "$GNULIB_MBTOWC" != 1; then
64068         if test "$GNULIB_MBTOWC" = 0; then
64069       GNULIB_MBTOWC=IN_GETTEXT_TOOLS_LIBGREP
64070     else
64071       GNULIB_MBTOWC="($GNULIB_MBTOWC || IN_GETTEXT_TOOLS_LIBGREP)"
64072     fi
64073   fi
64074
64075
64076
64077
64078
64079 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
64080
64081
64082
64083
64084
64085
64086
64087      if test $ac_cv_func_nl_langinfo = yes; then
64088     # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
64089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
64090 $as_echo_n "checking whether YESEXPR works... " >&6; }
64091 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
64092   $as_echo_n "(cached) " >&6
64093 else
64094   if test "$cross_compiling" = yes; then :
64095
64096          case "$host_os" in
64097                    # Guess no on irix systems.
64098            irix*)  gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
64099                    # Guess yes elsewhere.
64100            *)      gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
64101          esac
64102
64103 else
64104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64105 /* end confdefs.h.  */
64106 #include <langinfo.h>
64107
64108 int
64109 main ()
64110 {
64111 return !*nl_langinfo(YESEXPR);
64112
64113   ;
64114   return 0;
64115 }
64116 _ACEOF
64117 if ac_fn_c_try_run "$LINENO"; then :
64118   gl_cv_func_nl_langinfo_yesexpr_works=yes
64119 else
64120   gl_cv_func_nl_langinfo_yesexpr_works=no
64121 fi
64122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64123   conftest.$ac_objext conftest.beam conftest.$ac_ext
64124 fi
64125
64126
64127 fi
64128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
64129 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
64130     case $gl_cv_func_nl_langinfo_yesexpr_works in
64131       *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
64132       *)    FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
64133     esac
64134
64135 cat >>confdefs.h <<_ACEOF
64136 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
64137 _ACEOF
64138
64139     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
64140         && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
64141       :
64142     else
64143       REPLACE_NL_LANGINFO=1
64144
64145 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
64146
64147     fi
64148   else
64149     HAVE_NL_LANGINFO=0
64150   fi
64151
64152   if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
64153
64154
64155
64156
64157
64158
64159
64160
64161   grgl_LIBOBJS="$grgl_LIBOBJS nl_langinfo.$ac_objext"
64162
64163   fi
64164
64165
64166
64167
64168
64169     if test "$GNULIB_NL_LANGINFO" != 1; then
64170         if test "$GNULIB_NL_LANGINFO" = 0; then
64171       GNULIB_NL_LANGINFO=IN_GETTEXT_TOOLS_LIBGREP
64172     else
64173       GNULIB_NL_LANGINFO="($GNULIB_NL_LANGINFO || IN_GETTEXT_TOOLS_LIBGREP)"
64174     fi
64175   fi
64176
64177
64178
64179
64180
64181 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
64182
64183
64184
64185
64186
64187 # Check whether --with-included-regex was given.
64188 if test "${with_included_regex+set}" = set; then :
64189   withval=$with_included_regex;
64190 fi
64191
64192
64193   case $with_included_regex in #(
64194   yes|no) ac_use_included_regex=$with_included_regex
64195         ;;
64196   '')
64197     # If the system regex support is good enough that it passes the
64198     # following run test, then default to *not* using the included regex.c.
64199     # If cross compiling, assume the test would fail and use the included
64200     # regex.c.
64201
64202
64203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
64204 $as_echo_n "checking for working re_compile_pattern... " >&6; }
64205 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
64206   $as_echo_n "(cached) " >&6
64207 else
64208   if test "$cross_compiling" = yes; then :
64209          gl_cv_func_re_compile_pattern_working=no
64210 else
64211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64212 /* end confdefs.h.  */
64213 #include <regex.h>
64214
64215             #include <locale.h>
64216             #include <limits.h>
64217             #include <string.h>
64218
64219             #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
64220             # include <signal.h>
64221             # include <unistd.h>
64222             #endif
64223
64224             #if HAVE_MALLOC_H
64225             # include <malloc.h>
64226             #endif
64227
64228             #ifdef M_CHECK_ACTION
64229             /* Exit with distinguishable exit code.  */
64230             static void sigabrt_no_core (int sig) { raise (SIGTERM); }
64231             #endif
64232
64233 int
64234 main ()
64235 {
64236 int result = 0;
64237             static struct re_pattern_buffer regex;
64238             unsigned char folded_chars[UCHAR_MAX + 1];
64239             int i;
64240             const char *s;
64241             struct re_registers regs;
64242
64243             /* Some builds of glibc go into an infinite loop on this
64244                test.  Use alarm to force death, and mallopt to avoid
64245                malloc recursion in diagnosing the corrupted heap. */
64246 #if HAVE_DECL_ALARM
64247             signal (SIGALRM, SIG_DFL);
64248             alarm (2);
64249 #endif
64250 #ifdef M_CHECK_ACTION
64251             signal (SIGABRT, sigabrt_no_core);
64252             mallopt (M_CHECK_ACTION, 2);
64253 #endif
64254
64255             if (setlocale (LC_ALL, "en_US.UTF-8"))
64256               {
64257                 {
64258                   /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
64259                      This test needs valgrind to catch the bug on Debian
64260                      GNU/Linux 3.1 x86, but it might catch the bug better
64261                      on other platforms and it shouldn't hurt to try the
64262                      test here.  */
64263                   static char const pat[] = "insert into";
64264                   static char const data[] =
64265                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
64266                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
64267                                  | RE_ICASE);
64268                   memset (&regex, 0, sizeof regex);
64269                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
64270                   if (s)
64271                     result |= 1;
64272                   else if (re_search (&regex, data, sizeof data - 1,
64273                                       0, sizeof data - 1, &regs)
64274                            != -1)
64275                     result |= 1;
64276                   regfree (&regex);
64277                 }
64278
64279                 {
64280                   /* This test is from glibc bug 15078.
64281                      The test case is from Andreas Schwab in
64282                      <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
64283                      */
64284                   static char const pat[] = "[^x]x";
64285                   static char const data[] =
64286                     /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
64287                     "\xe1\x80\x80"
64288                     "\xe1\x80\xbb"
64289                     "\xe1\x80\xbd"
64290                     "\xe1\x80\x94"
64291                     "\xe1\x80\xba"
64292                     "\xe1\x80\xaf"
64293                     "\xe1\x80\x95"
64294                     "\xe1\x80\xba"
64295                     "x";
64296                   re_set_syntax (0);
64297                   memset (&regex, 0, sizeof regex);
64298                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
64299                   if (s)
64300                     result |= 1;
64301                   else
64302                     {
64303                       i = re_search (&regex, data, sizeof data - 1,
64304                                      0, sizeof data - 1, 0);
64305                       if (i != 0 && i != 21)
64306                         result |= 1;
64307                     }
64308                   regfree (&regex);
64309                 }
64310
64311                 if (! setlocale (LC_ALL, "C"))
64312                   return 1;
64313               }
64314
64315             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
64316             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
64317             memset (&regex, 0, sizeof regex);
64318             s = re_compile_pattern ("a[^x]b", 6, &regex);
64319             if (s)
64320               result |= 2;
64321             /* This should fail, but succeeds for glibc-2.5.  */
64322             else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
64323               result |= 2;
64324
64325             /* This regular expression is from Spencer ere test number 75
64326                in grep-2.3.  */
64327             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
64328             memset (&regex, 0, sizeof regex);
64329             for (i = 0; i <= UCHAR_MAX; i++)
64330               folded_chars[i] = i;
64331             regex.translate = folded_chars;
64332             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
64333             /* This should fail with _Invalid character class name_ error.  */
64334             if (!s)
64335               result |= 4;
64336
64337             /* Ensure that [b-a] is diagnosed as invalid, when
64338                using RE_NO_EMPTY_RANGES. */
64339             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
64340             memset (&regex, 0, sizeof regex);
64341             s = re_compile_pattern ("a[b-a]", 6, &regex);
64342             if (s == 0)
64343               result |= 8;
64344
64345             /* This should succeed, but does not for glibc-2.1.3.  */
64346             memset (&regex, 0, sizeof regex);
64347             s = re_compile_pattern ("{1", 2, &regex);
64348             if (s)
64349               result |= 8;
64350
64351             /* The following example is derived from a problem report
64352                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
64353             memset (&regex, 0, sizeof regex);
64354             s = re_compile_pattern ("[an\371]*n", 7, &regex);
64355             if (s)
64356               result |= 8;
64357             /* This should match, but does not for glibc-2.2.1.  */
64358             else if (re_match (&regex, "an", 2, 0, &regs) != 2)
64359               result |= 8;
64360
64361             memset (&regex, 0, sizeof regex);
64362             s = re_compile_pattern ("x", 1, &regex);
64363             if (s)
64364               result |= 8;
64365             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
64366             else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
64367               result |= 8;
64368
64369             /* The version of regex.c in older versions of gnulib
64370                ignored RE_ICASE.  Detect that problem too.  */
64371             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
64372             memset (&regex, 0, sizeof regex);
64373             s = re_compile_pattern ("x", 1, &regex);
64374             if (s)
64375               result |= 16;
64376             else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
64377               result |= 16;
64378
64379             /* Catch a bug reported by Vin Shelton in
64380                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
64381                */
64382             re_set_syntax (RE_SYNTAX_POSIX_BASIC
64383                            & ~RE_CONTEXT_INVALID_DUP
64384                            & ~RE_NO_EMPTY_RANGES);
64385             memset (&regex, 0, sizeof regex);
64386             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
64387             if (s)
64388               result |= 32;
64389
64390             /* REG_STARTEND was added to glibc on 2004-01-15.
64391                Reject older versions.  */
64392             if (! REG_STARTEND)
64393               result |= 64;
64394
64395 #if 0
64396             /* It would be nice to reject hosts whose regoff_t values are too
64397                narrow (including glibc on hosts with 64-bit ptrdiff_t and
64398                32-bit int), but we should wait until glibc implements this
64399                feature.  Otherwise, support for equivalence classes and
64400                multibyte collation symbols would always be broken except
64401                when compiling --without-included-regex.   */
64402             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
64403                 || sizeof (regoff_t) < sizeof (ssize_t))
64404               result |= 64;
64405 #endif
64406
64407             return result;
64408
64409   ;
64410   return 0;
64411 }
64412 _ACEOF
64413 if ac_fn_c_try_run "$LINENO"; then :
64414   gl_cv_func_re_compile_pattern_working=yes
64415 else
64416   gl_cv_func_re_compile_pattern_working=no
64417 fi
64418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64419   conftest.$ac_objext conftest.beam conftest.$ac_ext
64420 fi
64421
64422 fi
64423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
64424 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
64425     case $gl_cv_func_re_compile_pattern_working in #(
64426     yes) ac_use_included_regex=no;; #(
64427     no) ac_use_included_regex=yes;;
64428     esac
64429     ;;
64430   *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
64431     ;;
64432   esac
64433
64434   if test $ac_use_included_regex = yes; then
64435
64436 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
64437
64438
64439 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
64440
64441
64442 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
64443
64444
64445 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
64446
64447
64448 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
64449
64450
64451 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
64452
64453
64454 $as_echo "#define re_search rpl_re_search" >>confdefs.h
64455
64456
64457 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
64458
64459
64460 $as_echo "#define re_match rpl_re_match" >>confdefs.h
64461
64462
64463 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
64464
64465
64466 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
64467
64468
64469 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
64470
64471
64472 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
64473
64474
64475 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
64476
64477
64478 $as_echo "#define regexec rpl_regexec" >>confdefs.h
64479
64480
64481 $as_echo "#define regerror rpl_regerror" >>confdefs.h
64482
64483
64484 $as_echo "#define regfree rpl_regfree" >>confdefs.h
64485
64486   fi
64487
64488   if test $ac_use_included_regex = yes; then
64489
64490
64491
64492
64493
64494
64495
64496
64497   grgl_LIBOBJS="$grgl_LIBOBJS regex.$ac_objext"
64498
64499
64500
64501
64502
64503
64504
64505
64506   for ac_header in libintl.h
64507 do :
64508   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
64509 if test "x$ac_cv_header_libintl_h" = xyes; then :
64510   cat >>confdefs.h <<_ACEOF
64511 #define HAVE_LIBINTL_H 1
64512 _ACEOF
64513
64514 fi
64515
64516 done
64517
64518
64519   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
64520 "
64521 if test "x$ac_cv_have_decl_isblank" = xyes; then :
64522   ac_have_decl=1
64523 else
64524   ac_have_decl=0
64525 fi
64526
64527 cat >>confdefs.h <<_ACEOF
64528 #define HAVE_DECL_ISBLANK $ac_have_decl
64529 _ACEOF
64530
64531
64532   fi
64533
64534
64535
64536
64537
64538
64539
64540
64541
64542
64543
64544
64545
64546
64547   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
64548
64549
64550
64551      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
64552 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
64553 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
64554   $as_echo_n "(cached) " >&6
64555 else
64556
64557                   case "$host_os" in
64558                      # Guess no on AIX and OSF/1.
64559         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
64560                      # Guess yes otherwise.
64561         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
64562       esac
64563       if test $LOCALE_JA != none; then
64564         if test "$cross_compiling" = yes; then :
64565   :
64566 else
64567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64568 /* end confdefs.h.  */
64569
64570 #include <locale.h>
64571 #include <string.h>
64572 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
64573    <wchar.h>.
64574    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
64575    included before <wchar.h>.  */
64576 #include <stddef.h>
64577 #include <stdio.h>
64578 #include <time.h>
64579 #include <wchar.h>
64580 int main ()
64581 {
64582   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
64583     {
64584       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
64585       mbstate_t state;
64586       wchar_t wc;
64587
64588       memset (&state, '\0', sizeof (mbstate_t));
64589       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
64590         if (mbsinit (&state))
64591           return 1;
64592     }
64593   return 0;
64594 }
64595 _ACEOF
64596 if ac_fn_c_try_run "$LINENO"; then :
64597   gl_cv_func_mbrtowc_incomplete_state=yes
64598 else
64599   gl_cv_func_mbrtowc_incomplete_state=no
64600 fi
64601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64602   conftest.$ac_objext conftest.beam conftest.$ac_ext
64603 fi
64604
64605       fi
64606
64607 fi
64608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
64609 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
64610
64611
64612
64613
64614      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
64615 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
64616 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
64617   $as_echo_n "(cached) " >&6
64618 else
64619
64620                   case "$host_os" in
64621                     # Guess no on Solaris 8.
64622         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
64623                     # Guess yes otherwise.
64624         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
64625       esac
64626       if test $LOCALE_ZH_CN != none; then
64627         if test "$cross_compiling" = yes; then :
64628   :
64629 else
64630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64631 /* end confdefs.h.  */
64632
64633 #include <locale.h>
64634 #include <stdlib.h>
64635 #include <string.h>
64636 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
64637    <wchar.h>.
64638    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
64639    included before <wchar.h>.  */
64640 #include <stddef.h>
64641 #include <stdio.h>
64642 #include <time.h>
64643 #include <wchar.h>
64644 int main ()
64645 {
64646   /* This fails on Solaris 8:
64647      mbrtowc returns 2, and sets wc to 0x00F0.
64648      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
64649   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
64650     {
64651       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
64652       mbstate_t state;
64653       wchar_t wc;
64654
64655       memset (&state, '\0', sizeof (mbstate_t));
64656       if (mbrtowc (&wc, input + 3, 6, &state) != 4
64657           && mbtowc (&wc, input + 3, 6) == 4)
64658         return 1;
64659     }
64660   return 0;
64661 }
64662 _ACEOF
64663 if ac_fn_c_try_run "$LINENO"; then :
64664   gl_cv_func_mbrtowc_sanitycheck=yes
64665 else
64666   gl_cv_func_mbrtowc_sanitycheck=no
64667 fi
64668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64669   conftest.$ac_objext conftest.beam conftest.$ac_ext
64670 fi
64671
64672       fi
64673
64674 fi
64675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
64676 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
64677
64678     REPLACE_MBSTATE_T=0
64679     case "$gl_cv_func_mbrtowc_incomplete_state" in
64680       *yes) ;;
64681       *) REPLACE_MBSTATE_T=1 ;;
64682     esac
64683     case "$gl_cv_func_mbrtowc_sanitycheck" in
64684       *yes) ;;
64685       *) REPLACE_MBSTATE_T=1 ;;
64686     esac
64687   else
64688     REPLACE_MBSTATE_T=1
64689   fi
64690
64691
64692
64693   if test $ac_cv_func_wcrtomb = no; then
64694     HAVE_WCRTOMB=0
64695     ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
64696 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
64697    <wchar.h>.
64698    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
64699    included before <wchar.h>.  */
64700 #include <stddef.h>
64701 #include <stdio.h>
64702 #include <time.h>
64703 #include <wchar.h>
64704
64705 "
64706 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
64707   ac_have_decl=1
64708 else
64709   ac_have_decl=0
64710 fi
64711
64712 cat >>confdefs.h <<_ACEOF
64713 #define HAVE_DECL_WCRTOMB $ac_have_decl
64714 _ACEOF
64715
64716     if test $ac_cv_have_decl_wcrtomb = yes; then
64717                         REPLACE_WCRTOMB=1
64718     fi
64719   else
64720     if test $REPLACE_MBSTATE_T = 1; then
64721       REPLACE_WCRTOMB=1
64722     else
64723
64724
64725
64726
64727
64728              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
64729 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
64730 if ${gl_cv_func_wcrtomb_retval+:} false; then :
64731   $as_echo_n "(cached) " >&6
64732 else
64733
64734                               case "$host_os" in
64735                                      # Guess no on AIX 4, OSF/1 and Solaris.
64736             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
64737                                      # Guess yes otherwise.
64738             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
64739           esac
64740           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
64741             if test "$cross_compiling" = yes; then :
64742   :
64743 else
64744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64745 /* end confdefs.h.  */
64746
64747 #include <locale.h>
64748 #include <string.h>
64749 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
64750    <wchar.h>.
64751    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
64752    included before <wchar.h>.  */
64753 #include <stddef.h>
64754 #include <stdio.h>
64755 #include <time.h>
64756 #include <wchar.h>
64757 int main ()
64758 {
64759   int result = 0;
64760   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
64761     {
64762       if (wcrtomb (NULL, 0, NULL) != 1)
64763         result |= 1;
64764     }
64765   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
64766     {
64767       if (wcrtomb (NULL, 0, NULL) != 1)
64768         result |= 2;
64769     }
64770   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
64771     {
64772       if (wcrtomb (NULL, 0, NULL) != 1)
64773         result |= 4;
64774     }
64775   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
64776     {
64777       if (wcrtomb (NULL, 0, NULL) != 1)
64778         result |= 8;
64779     }
64780   return result;
64781 }
64782 _ACEOF
64783 if ac_fn_c_try_run "$LINENO"; then :
64784   gl_cv_func_wcrtomb_retval=yes
64785 else
64786   gl_cv_func_wcrtomb_retval=no
64787 fi
64788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64789   conftest.$ac_objext conftest.beam conftest.$ac_ext
64790 fi
64791
64792           fi
64793
64794 fi
64795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
64796 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
64797       case "$gl_cv_func_wcrtomb_retval" in
64798         *yes) ;;
64799         *) REPLACE_WCRTOMB=1 ;;
64800       esac
64801     fi
64802   fi
64803
64804   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
64805
64806
64807
64808
64809
64810
64811
64812
64813   grgl_LIBOBJS="$grgl_LIBOBJS wcrtomb.$ac_objext"
64814
64815
64816   :
64817
64818   fi
64819
64820
64821
64822
64823
64824     if test "$GNULIB_WCRTOMB" != 1; then
64825         if test "$GNULIB_WCRTOMB" = 0; then
64826       GNULIB_WCRTOMB=IN_GETTEXT_TOOLS_LIBGREP
64827     else
64828       GNULIB_WCRTOMB="($GNULIB_WCRTOMB || IN_GETTEXT_TOOLS_LIBGREP)"
64829     fi
64830   fi
64831
64832
64833
64834
64835
64836 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
64837
64838
64839
64840
64841   # End of code from modules
64842
64843
64844
64845
64846
64847
64848
64849
64850
64851   gltests_libdeps=
64852   gltests_ltlibdeps=
64853
64854
64855
64856
64857
64858
64859
64860
64861
64862   gl_source_base='tests'
64863   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
64864
64865   gl_module_indicator_condition=$grgltests_WITNESS
64866
64867
64868
64869
64870
64871
64872
64873
64874
64875   LIBGREP_LIBDEPS="$gl_libdeps"
64876
64877   LIBGREP_LTLIBDEPS="$gl_ltlibdeps"
64878
64879
64880
64881    if true; then
64882   GL_COND_LIBTOOL_TRUE=
64883   GL_COND_LIBTOOL_FALSE='#'
64884 else
64885   GL_COND_LIBTOOL_TRUE='#'
64886   GL_COND_LIBTOOL_FALSE=
64887 fi
64888
64889   gl_cond_libtool=true
64890   gl_m4_base='libgettextpo/gnulib-m4'
64891
64892
64893
64894
64895
64896
64897
64898
64899
64900   gl_source_base='libgettextpo'
64901
64902
64903
64904
64905
64906   if test $ac_cv_func_alloca_works = no; then
64907
64908
64909   :
64910
64911   fi
64912
64913   # Define an additional variable used in the Makefile substitution.
64914
64915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64916 /* end confdefs.h.  */
64917
64918 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
64919   Need own alloca
64920 #endif
64921
64922 _ACEOF
64923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64924   $EGREP "Need own alloca" >/dev/null 2>&1; then :
64925   ALLOCA_H=alloca.h
64926 else
64927   ALLOCA_H=
64928 fi
64929 rm -f conftest*
64930
64931
64932    if test -n "$ALLOCA_H"; then
64933   GL_GENERATE_ALLOCA_H_TRUE=
64934   GL_GENERATE_ALLOCA_H_FALSE='#'
64935 else
64936   GL_GENERATE_ALLOCA_H_TRUE='#'
64937   GL_GENERATE_ALLOCA_H_FALSE=
64938 fi
64939
64940
64941
64942
64943
64944   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
64945     REPLACE_CLOSE=1
64946   fi
64947
64948
64949
64950
64951
64952   if test $ac_cv_header_sys_socket_h != yes; then
64953                     for ac_header in winsock2.h
64954 do :
64955   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
64956 if test "x$ac_cv_header_winsock2_h" = xyes; then :
64957   cat >>confdefs.h <<_ACEOF
64958 #define HAVE_WINSOCK2_H 1
64959 _ACEOF
64960
64961 fi
64962
64963 done
64964
64965   fi
64966   if test "$ac_cv_header_winsock2_h" = yes; then
64967     HAVE_WINSOCK2_H=1
64968     UNISTD_H_HAVE_WINSOCK2_H=1
64969     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
64970   else
64971     HAVE_WINSOCK2_H=0
64972   fi
64973
64974
64975     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
64976                         REPLACE_CLOSE=1
64977     fi
64978
64979
64980
64981   if test $REPLACE_CLOSE = 1; then
64982
64983
64984
64985
64986
64987
64988
64989
64990   gtpo_LIBOBJS="$gtpo_LIBOBJS close.$ac_objext"
64991
64992   fi
64993
64994
64995
64996
64997
64998           GNULIB_CLOSE=1
64999
65000
65001
65002
65003
65004 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
65005
65006
65007
65008
65009           if test "x$datarootdir" = x; then
65010     datarootdir='${datadir}'
65011
65012   fi
65013     if test "x$docdir" = x; then
65014     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
65015
65016   fi
65017     if test "x$htmldir" = x; then
65018     htmldir='${docdir}'
65019
65020   fi
65021   if test "x$dvidir" = x; then
65022     dvidir='${docdir}'
65023
65024   fi
65025   if test "x$pdfdir" = x; then
65026     pdfdir='${docdir}'
65027
65028   fi
65029   if test "x$psdir" = x; then
65030     psdir='${docdir}'
65031
65032   fi
65033   if test "x$lispdir" = x; then
65034     lispdir='${datarootdir}/emacs/site-lisp'
65035
65036   fi
65037   if test "x$localedir" = x; then
65038     localedir='${datarootdir}/locale'
65039
65040   fi
65041     if test "x$runstatedir" = x; then
65042     runstatedir='${localstatedir}/run'
65043
65044   fi
65045
65046       pkglibexecdir='${libexecdir}/${PACKAGE}'
65047
65048
65049
65050
65051       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
65052 $as_echo_n "checking for error_at_line... " >&6; }
65053 if ${ac_cv_lib_error_at_line+:} false; then :
65054   $as_echo_n "(cached) " >&6
65055 else
65056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65057 /* end confdefs.h.  */
65058 #include <error.h>
65059 int
65060 main ()
65061 {
65062 error_at_line (0, 0, "", 0, "an error occurred");
65063   ;
65064   return 0;
65065 }
65066 _ACEOF
65067 if ac_fn_c_try_link "$LINENO"; then :
65068   ac_cv_lib_error_at_line=yes
65069 else
65070   ac_cv_lib_error_at_line=no
65071 fi
65072 rm -f core conftest.err conftest.$ac_objext \
65073     conftest$ac_exeext conftest.$ac_ext
65074 fi
65075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
65076 $as_echo "$ac_cv_lib_error_at_line" >&6; }
65077
65078   if test $ac_cv_lib_error_at_line = no; then
65079
65080
65081
65082
65083
65084
65085
65086
65087   gtpo_LIBOBJS="$gtpo_LIBOBJS error.$ac_objext"
65088
65089
65090
65091   :
65092
65093   fi
65094
65095
65096   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
65097
65098
65099
65100   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
65101
65102
65103
65104
65105
65106
65107
65108
65109
65110
65111
65112
65113
65114      if test $gl_cv_have_include_next = yes; then
65115        gl_cv_next_fcntl_h='<'fcntl.h'>'
65116      else
65117        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
65118 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
65119 if ${gl_cv_next_fcntl_h+:} false; then :
65120   $as_echo_n "(cached) " >&6
65121 else
65122
65123
65124
65125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65126 /* end confdefs.h.  */
65127 #include <fcntl.h>
65128 _ACEOF
65129                 case "$host_os" in
65130     aix*) gl_absname_cpp="$ac_cpp -C" ;;
65131     *)    gl_absname_cpp="$ac_cpp" ;;
65132   esac
65133
65134   case "$host_os" in
65135     mingw*)
65136                                           gl_dirsep_regex='[/\\]'
65137       ;;
65138     *)
65139       gl_dirsep_regex='\/'
65140       ;;
65141   esac
65142       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
65143   gl_header_literal_regex=`echo 'fcntl.h' \
65144                            | sed -e "$gl_make_literal_regex_sed"`
65145   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
65146       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
65147       s|^/[^/]|//&|
65148       p
65149       q
65150     }'
65151
65152         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
65153   sed -n "$gl_absolute_header_sed"`
65154
65155            gl_header=$gl_cv_absolute_fcntl_h
65156            gl_cv_next_fcntl_h='"'$gl_header'"'
65157
65158
65159 fi
65160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
65161 $as_echo "$gl_cv_next_fcntl_h" >&6; }
65162      fi
65163      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
65164
65165      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
65166        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
65167        gl_next_as_first_directive='<'fcntl.h'>'
65168      else
65169        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
65170        gl_next_as_first_directive=$gl_cv_next_fcntl_h
65171      fi
65172      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
65173
65174
65175
65176
65177
65178
65179
65180
65181
65182
65183     for gl_func in fcntl openat; do
65184     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
65185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
65186 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
65187 if eval \${$as_gl_Symbol+:} false; then :
65188   $as_echo_n "(cached) " >&6
65189 else
65190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65191 /* end confdefs.h.  */
65192 #include <fcntl.h>
65193
65194 int
65195 main ()
65196 {
65197 #undef $gl_func
65198   (void) $gl_func;
65199   ;
65200   return 0;
65201 }
65202 _ACEOF
65203 if ac_fn_c_try_compile "$LINENO"; then :
65204   eval "$as_gl_Symbol=yes"
65205 else
65206   eval "$as_gl_Symbol=no"
65207 fi
65208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65209 fi
65210 eval ac_res=\$$as_gl_Symbol
65211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
65212 $as_echo "$ac_res" >&6; }
65213     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
65214   cat >>confdefs.h <<_ACEOF
65215 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
65216 _ACEOF
65217
65218                      eval ac_cv_have_decl_$gl_func=yes
65219 fi
65220       done
65221
65222
65223
65224
65225
65226   FLOAT_H=
65227   REPLACE_FLOAT_LDBL=0
65228   case "$host_os" in
65229     aix* | beos* | openbsd* | mirbsd* | irix*)
65230       FLOAT_H=float.h
65231       ;;
65232     freebsd*)
65233       case "$host_cpu" in
65234         i[34567]86 )
65235           FLOAT_H=float.h
65236           ;;
65237         x86_64 )
65238           # On x86_64 systems, the C compiler may still be generating
65239           # 32-bit code.
65240           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65241 /* end confdefs.h.  */
65242 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
65243              yes
65244              #endif
65245 _ACEOF
65246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65247   $EGREP "yes" >/dev/null 2>&1; then :
65248
65249 else
65250   FLOAT_H=float.h
65251 fi
65252 rm -f conftest*
65253
65254           ;;
65255       esac
65256       ;;
65257     linux*)
65258       case "$host_cpu" in
65259         powerpc*)
65260           FLOAT_H=float.h
65261           ;;
65262       esac
65263       ;;
65264   esac
65265   case "$host_os" in
65266     aix* | freebsd* | linux*)
65267       if test -n "$FLOAT_H"; then
65268         REPLACE_FLOAT_LDBL=1
65269       fi
65270       ;;
65271   esac
65272
65273     REPLACE_ITOLD=0
65274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
65275 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
65276 if ${gl_cv_func_itold_works+:} false; then :
65277   $as_echo_n "(cached) " >&6
65278 else
65279
65280       if test "$cross_compiling" = yes; then :
65281   case "$host" in
65282            sparc*-*-linux*)
65283              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65284 /* end confdefs.h.  */
65285 #if defined __LP64__ || defined __arch64__
65286                 yes
65287                 #endif
65288 _ACEOF
65289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65290   $EGREP "yes" >/dev/null 2>&1; then :
65291   gl_cv_func_itold_works="guessing no"
65292 else
65293   gl_cv_func_itold_works="guessing yes"
65294 fi
65295 rm -f conftest*
65296
65297              ;;
65298            *) gl_cv_func_itold_works="guessing yes" ;;
65299          esac
65300
65301 else
65302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65303 /* end confdefs.h.  */
65304
65305 int i = -1;
65306 volatile long double ld;
65307 int main ()
65308 {
65309   ld += i * 1.0L;
65310   if (ld > 0)
65311     return 1;
65312   return 0;
65313 }
65314 _ACEOF
65315 if ac_fn_c_try_run "$LINENO"; then :
65316   gl_cv_func_itold_works=yes
65317 else
65318   gl_cv_func_itold_works=no
65319 fi
65320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
65321   conftest.$ac_objext conftest.beam conftest.$ac_ext
65322 fi
65323
65324
65325 fi
65326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
65327 $as_echo "$gl_cv_func_itold_works" >&6; }
65328   case "$gl_cv_func_itold_works" in
65329     *no)
65330       REPLACE_ITOLD=1
65331                   FLOAT_H=float.h
65332       ;;
65333   esac
65334
65335   if test -n "$FLOAT_H"; then
65336
65337
65338
65339
65340
65341
65342
65343
65344      if test $gl_cv_have_include_next = yes; then
65345        gl_cv_next_float_h='<'float.h'>'
65346      else
65347        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
65348 $as_echo_n "checking absolute name of <float.h>... " >&6; }
65349 if ${gl_cv_next_float_h+:} false; then :
65350   $as_echo_n "(cached) " >&6
65351 else
65352
65353
65354
65355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65356 /* end confdefs.h.  */
65357 #include <float.h>
65358 _ACEOF
65359                 case "$host_os" in
65360     aix*) gl_absname_cpp="$ac_cpp -C" ;;
65361     *)    gl_absname_cpp="$ac_cpp" ;;
65362   esac
65363
65364   case "$host_os" in
65365     mingw*)
65366                                           gl_dirsep_regex='[/\\]'
65367       ;;
65368     *)
65369       gl_dirsep_regex='\/'
65370       ;;
65371   esac
65372       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
65373   gl_header_literal_regex=`echo 'float.h' \
65374                            | sed -e "$gl_make_literal_regex_sed"`
65375   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
65376       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
65377       s|^/[^/]|//&|
65378       p
65379       q
65380     }'
65381
65382         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
65383   sed -n "$gl_absolute_header_sed"`
65384
65385            gl_header=$gl_cv_absolute_float_h
65386            gl_cv_next_float_h='"'$gl_header'"'
65387
65388
65389 fi
65390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
65391 $as_echo "$gl_cv_next_float_h" >&6; }
65392      fi
65393      NEXT_FLOAT_H=$gl_cv_next_float_h
65394
65395      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
65396        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
65397        gl_next_as_first_directive='<'float.h'>'
65398      else
65399        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
65400        gl_next_as_first_directive=$gl_cv_next_float_h
65401      fi
65402      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
65403
65404
65405
65406
65407   fi
65408
65409    if test -n "$FLOAT_H"; then
65410   GL_GENERATE_FLOAT_H_TRUE=
65411   GL_GENERATE_FLOAT_H_FALSE='#'
65412 else
65413   GL_GENERATE_FLOAT_H_TRUE='#'
65414   GL_GENERATE_FLOAT_H_FALSE=
65415 fi
65416
65417
65418
65419   if test $REPLACE_FLOAT_LDBL = 1; then
65420
65421
65422
65423
65424
65425
65426
65427
65428   gtpo_LIBOBJS="$gtpo_LIBOBJS float.$ac_objext"
65429
65430   fi
65431   if test $REPLACE_ITOLD = 1; then
65432
65433
65434
65435
65436
65437
65438
65439
65440   gtpo_LIBOBJS="$gtpo_LIBOBJS itold.$ac_objext"
65441
65442   fi
65443
65444
65445
65446   case "$host_os" in
65447     mingw* | pw*)
65448             REPLACE_FOPEN=1
65449             gl_cv_func_fopen_slash="guessing no"
65450       ;;
65451     *)
65452                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
65453 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
65454 if ${gl_cv_func_fopen_slash+:} false; then :
65455   $as_echo_n "(cached) " >&6
65456 else
65457
65458           if test "$cross_compiling" = yes; then :
65459
65460              case "$host_os" in
65461                aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
65462                  gl_cv_func_fopen_slash="guessing no" ;;
65463                *)
65464                  gl_cv_func_fopen_slash="guessing yes" ;;
65465              esac
65466
65467 else
65468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65469 /* end confdefs.h.  */
65470
65471 #include <stddef.h>
65472 #include <stdio.h>
65473 int main ()
65474 {
65475   return fopen ("conftest.sl/", "w") != NULL;
65476 }
65477 _ACEOF
65478 if ac_fn_c_try_run "$LINENO"; then :
65479   gl_cv_func_fopen_slash=yes
65480 else
65481   gl_cv_func_fopen_slash=no
65482 fi
65483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
65484   conftest.$ac_objext conftest.beam conftest.$ac_ext
65485 fi
65486
65487           rm -f conftest.sl
65488
65489 fi
65490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
65491 $as_echo "$gl_cv_func_fopen_slash" >&6; }
65492       ;;
65493   esac
65494   case "$gl_cv_func_fopen_slash" in
65495     *no)
65496
65497 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
65498
65499       REPLACE_FOPEN=1
65500       ;;
65501   esac
65502
65503   if test $REPLACE_FOPEN = 1; then
65504
65505
65506
65507
65508
65509
65510
65511
65512   gtpo_LIBOBJS="$gtpo_LIBOBJS fopen.$ac_objext"
65513
65514     :
65515   fi
65516
65517
65518
65519
65520
65521           GNULIB_FOPEN=1
65522
65523
65524
65525
65526
65527 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
65528
65529
65530
65531
65532
65533
65534
65535   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
65536     REPLACE_FSTAT=1
65537   fi
65538
65539
65540   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
65541     REPLACE_FSTAT=1
65542   fi
65543
65544
65545
65546   if test $REPLACE_FSTAT = 1; then
65547
65548
65549
65550
65551
65552
65553
65554
65555   gtpo_LIBOBJS="$gtpo_LIBOBJS fstat.$ac_objext"
65556
65557     :
65558   fi
65559
65560
65561
65562
65563
65564           GNULIB_FSTAT=1
65565
65566
65567
65568
65569
65570 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
65571
65572
65573
65574
65575
65576 cat >>confdefs.h <<_ACEOF
65577 #define GNULIB_FWRITEERROR 1
65578 _ACEOF
65579
65580
65581
65582
65583
65584
65585
65586
65587
65588
65589   if test $ac_cv_func_getdelim = yes; then
65590     HAVE_GETDELIM=1
65591         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
65592 $as_echo_n "checking for working getdelim function... " >&6; }
65593 if ${gl_cv_func_working_getdelim+:} false; then :
65594   $as_echo_n "(cached) " >&6
65595 else
65596   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
65597     if test "$cross_compiling" = yes; then :
65598         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65599 /* end confdefs.h.  */
65600
65601 #include <features.h>
65602 #ifdef __GNU_LIBRARY__
65603  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
65604   Lucky GNU user
65605  #endif
65606 #endif
65607
65608 _ACEOF
65609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65610   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
65611   gl_cv_func_working_getdelim="guessing yes"
65612 else
65613   gl_cv_func_working_getdelim="guessing no"
65614 fi
65615 rm -f conftest*
65616
65617
65618 else
65619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65620 /* end confdefs.h.  */
65621
65622 #    include <stdio.h>
65623 #    include <stdlib.h>
65624 #    include <string.h>
65625     int main ()
65626     {
65627       FILE *in = fopen ("./conftest.data", "r");
65628       if (!in)
65629         return 1;
65630       {
65631         /* Test result for a NULL buffer and a zero size.
65632            Based on a test program from Karl Heuer.  */
65633         char *line = NULL;
65634         size_t siz = 0;
65635         int len = getdelim (&line, &siz, '\n', in);
65636         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
65637           return 2;
65638       }
65639       {
65640         /* Test result for a NULL buffer and a non-zero size.
65641            This crashes on FreeBSD 8.0.  */
65642         char *line = NULL;
65643         size_t siz = (size_t)(~0) / 4;
65644         if (getdelim (&line, &siz, '\n', in) == -1)
65645           return 3;
65646         free (line);
65647       }
65648       fclose (in);
65649       return 0;
65650     }
65651
65652 _ACEOF
65653 if ac_fn_c_try_run "$LINENO"; then :
65654   gl_cv_func_working_getdelim=yes
65655 else
65656   gl_cv_func_working_getdelim=no
65657 fi
65658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
65659   conftest.$ac_objext conftest.beam conftest.$ac_ext
65660 fi
65661
65662 fi
65663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
65664 $as_echo "$gl_cv_func_working_getdelim" >&6; }
65665     case "$gl_cv_func_working_getdelim" in
65666       *no)
65667         REPLACE_GETDELIM=1
65668         ;;
65669     esac
65670   else
65671     HAVE_GETDELIM=0
65672   fi
65673
65674   if test $ac_cv_have_decl_getdelim = no; then
65675     HAVE_DECL_GETDELIM=0
65676   fi
65677
65678   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
65679
65680
65681
65682
65683
65684
65685
65686
65687   gtpo_LIBOBJS="$gtpo_LIBOBJS getdelim.$ac_objext"
65688
65689
65690   for ac_func in flockfile funlockfile
65691 do :
65692   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65693 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
65694 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
65695   cat >>confdefs.h <<_ACEOF
65696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65697 _ACEOF
65698
65699 fi
65700 done
65701
65702   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
65703 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
65704   ac_have_decl=1
65705 else
65706   ac_have_decl=0
65707 fi
65708
65709 cat >>confdefs.h <<_ACEOF
65710 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
65711 _ACEOF
65712
65713
65714   fi
65715
65716
65717
65718
65719
65720           GNULIB_GETDELIM=1
65721
65722
65723
65724
65725
65726 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
65727
65728
65729
65730
65731
65732
65733
65734
65735
65736
65737   gl_getline_needs_run_time_check=no
65738   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
65739 if test "x$ac_cv_func_getline" = xyes; then :
65740                    gl_getline_needs_run_time_check=yes
65741 else
65742   am_cv_func_working_getline=no
65743 fi
65744
65745   if test $gl_getline_needs_run_time_check = yes; then
65746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
65747 $as_echo_n "checking for working getline function... " >&6; }
65748 if ${am_cv_func_working_getline+:} false; then :
65749   $as_echo_n "(cached) " >&6
65750 else
65751   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
65752     if test "$cross_compiling" = yes; then :
65753         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65754 /* end confdefs.h.  */
65755
65756 #include <features.h>
65757 #ifdef __GNU_LIBRARY__
65758  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
65759   Lucky GNU user
65760  #endif
65761 #endif
65762
65763 _ACEOF
65764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65765   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
65766   am_cv_func_working_getline="guessing yes"
65767 else
65768   am_cv_func_working_getline="guessing no"
65769 fi
65770 rm -f conftest*
65771
65772
65773 else
65774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65775 /* end confdefs.h.  */
65776
65777 #    include <stdio.h>
65778 #    include <stdlib.h>
65779 #    include <string.h>
65780     int main ()
65781     {
65782       FILE *in = fopen ("./conftest.data", "r");
65783       if (!in)
65784         return 1;
65785       {
65786         /* Test result for a NULL buffer and a zero size.
65787            Based on a test program from Karl Heuer.  */
65788         char *line = NULL;
65789         size_t siz = 0;
65790         int len = getline (&line, &siz, in);
65791         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
65792           return 2;
65793         free (line);
65794       }
65795       {
65796         /* Test result for a NULL buffer and a non-zero size.
65797            This crashes on FreeBSD 8.0.  */
65798         char *line = NULL;
65799         size_t siz = (size_t)(~0) / 4;
65800         if (getline (&line, &siz, in) == -1)
65801           return 3;
65802         free (line);
65803       }
65804       fclose (in);
65805       return 0;
65806     }
65807
65808 _ACEOF
65809 if ac_fn_c_try_run "$LINENO"; then :
65810   am_cv_func_working_getline=yes
65811 else
65812   am_cv_func_working_getline=no
65813 fi
65814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
65815   conftest.$ac_objext conftest.beam conftest.$ac_ext
65816 fi
65817
65818 fi
65819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
65820 $as_echo "$am_cv_func_working_getline" >&6; }
65821   fi
65822
65823   if test $ac_cv_have_decl_getline = no; then
65824     HAVE_DECL_GETLINE=0
65825   fi
65826
65827   case "$am_cv_func_working_getline" in
65828     *no)
65829                         REPLACE_GETLINE=1
65830       ;;
65831   esac
65832
65833   if test $REPLACE_GETLINE = 1; then
65834
65835
65836
65837
65838
65839
65840
65841
65842   gtpo_LIBOBJS="$gtpo_LIBOBJS getline.$ac_objext"
65843
65844
65845   :
65846
65847   fi
65848
65849
65850
65851
65852
65853           GNULIB_GETLINE=1
65854
65855
65856
65857
65858
65859 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
65860
65861
65862
65863
65864
65865
65866
65867
65868
65869
65870
65871   gl_gettimeofday_timezone=void
65872   if test $ac_cv_func_gettimeofday != yes; then
65873     HAVE_GETTIMEOFDAY=0
65874   else
65875
65876
65877
65878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
65879 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
65880 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
65881   $as_echo_n "(cached) " >&6
65882 else
65883   if test "$cross_compiling" = yes; then :
65884   # When cross-compiling:
65885       case "$host_os" in
65886                 # Guess all is fine on glibc systems.
65887         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
65888                 # If we don't know, assume the worst.
65889         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
65890       esac
65891
65892 else
65893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65894 /* end confdefs.h.  */
65895 #include <string.h>
65896           #include <sys/time.h>
65897           #include <time.h>
65898           #include <stdlib.h>
65899
65900 int
65901 main ()
65902 {
65903
65904           time_t t = 0;
65905           struct tm *lt;
65906           struct tm saved_lt;
65907           struct timeval tv;
65908           lt = localtime (&t);
65909           saved_lt = *lt;
65910           gettimeofday (&tv, NULL);
65911           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
65912
65913   ;
65914   return 0;
65915 }
65916 _ACEOF
65917 if ac_fn_c_try_run "$LINENO"; then :
65918   gl_cv_func_gettimeofday_clobber=no
65919 else
65920   gl_cv_func_gettimeofday_clobber=yes
65921 fi
65922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
65923   conftest.$ac_objext conftest.beam conftest.$ac_ext
65924 fi
65925
65926 fi
65927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
65928 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
65929
65930  case "$gl_cv_func_gettimeofday_clobber" in
65931    *yes)
65932      REPLACE_GETTIMEOFDAY=1
65933
65934   REPLACE_GMTIME=1
65935   REPLACE_LOCALTIME=1
65936
65937
65938 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
65939
65940      ;;
65941  esac
65942
65943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
65944 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
65945 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
65946   $as_echo_n "(cached) " >&6
65947 else
65948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65949 /* end confdefs.h.  */
65950 #include <sys/time.h>
65951               struct timeval c;
65952               int gettimeofday (struct timeval *restrict, void *restrict);
65953
65954 int
65955 main ()
65956 {
65957 /* glibc uses struct timezone * rather than the POSIX void *
65958                  if _GNU_SOURCE is defined.  However, since the only portable
65959                  use of gettimeofday uses NULL as the second parameter, and
65960                  since the glibc definition is actually more typesafe, it is
65961                  not worth wrapping this to get a compliant signature.  */
65962               int (*f) (struct timeval *restrict, void *restrict)
65963                 = gettimeofday;
65964               int x = f (&c, 0);
65965               return !(x | c.tv_sec | c.tv_usec);
65966
65967   ;
65968   return 0;
65969 }
65970 _ACEOF
65971 if ac_fn_c_try_compile "$LINENO"; then :
65972   gl_cv_func_gettimeofday_posix_signature=yes
65973 else
65974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65975 /* end confdefs.h.  */
65976 #include <sys/time.h>
65977 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
65978
65979 int
65980 main ()
65981 {
65982
65983   ;
65984   return 0;
65985 }
65986 _ACEOF
65987 if ac_fn_c_try_compile "$LINENO"; then :
65988   gl_cv_func_gettimeofday_posix_signature=almost
65989 else
65990   gl_cv_func_gettimeofday_posix_signature=no
65991 fi
65992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65993 fi
65994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65995 fi
65996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
65997 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
65998     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
65999       gl_gettimeofday_timezone='struct timezone'
66000     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
66001       REPLACE_GETTIMEOFDAY=1
66002     fi
66003         if test $REPLACE_STRUCT_TIMEVAL = 1; then
66004       REPLACE_GETTIMEOFDAY=1
66005     fi
66006
66007   fi
66008
66009 cat >>confdefs.h <<_ACEOF
66010 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
66011 _ACEOF
66012
66013
66014   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
66015
66016
66017
66018
66019
66020
66021
66022
66023   gtpo_LIBOBJS="$gtpo_LIBOBJS gettimeofday.$ac_objext"
66024
66025
66026   for ac_header in sys/timeb.h
66027 do :
66028   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
66029 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
66030   cat >>confdefs.h <<_ACEOF
66031 #define HAVE_SYS_TIMEB_H 1
66032 _ACEOF
66033
66034 fi
66035
66036 done
66037
66038   for ac_func in _ftime
66039 do :
66040   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
66041 if test "x$ac_cv_func__ftime" = xyes; then :
66042   cat >>confdefs.h <<_ACEOF
66043 #define HAVE__FTIME 1
66044 _ACEOF
66045
66046 fi
66047 done
66048
66049
66050   fi
66051
66052
66053
66054
66055
66056           GNULIB_GETTIMEOFDAY=1
66057
66058
66059
66060
66061
66062 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
66063
66064
66065
66066
66067   :
66068
66069
66070
66071
66072
66073
66074
66075           GNULIB_ICONV=1
66076
66077
66078
66079
66080
66081
66082
66083
66084
66085
66086
66087
66088
66089
66090
66091
66092      if test $gl_cv_have_include_next = yes; then
66093        gl_cv_next_iconv_h='<'iconv.h'>'
66094      else
66095        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
66096 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
66097 if ${gl_cv_next_iconv_h+:} false; then :
66098   $as_echo_n "(cached) " >&6
66099 else
66100
66101              if test $ac_cv_header_iconv_h = yes; then
66102
66103
66104
66105
66106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66107 /* end confdefs.h.  */
66108 #include <iconv.h>
66109 _ACEOF
66110                 case "$host_os" in
66111     aix*) gl_absname_cpp="$ac_cpp -C" ;;
66112     *)    gl_absname_cpp="$ac_cpp" ;;
66113   esac
66114
66115   case "$host_os" in
66116     mingw*)
66117                                           gl_dirsep_regex='[/\\]'
66118       ;;
66119     *)
66120       gl_dirsep_regex='\/'
66121       ;;
66122   esac
66123       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
66124   gl_header_literal_regex=`echo 'iconv.h' \
66125                            | sed -e "$gl_make_literal_regex_sed"`
66126   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
66127       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
66128       s|^/[^/]|//&|
66129       p
66130       q
66131     }'
66132
66133         gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
66134   sed -n "$gl_absolute_header_sed"`
66135
66136            gl_header=$gl_cv_absolute_iconv_h
66137            gl_cv_next_iconv_h='"'$gl_header'"'
66138           else
66139                gl_cv_next_iconv_h='<'iconv.h'>'
66140              fi
66141
66142
66143 fi
66144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
66145 $as_echo "$gl_cv_next_iconv_h" >&6; }
66146      fi
66147      NEXT_ICONV_H=$gl_cv_next_iconv_h
66148
66149      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
66150        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
66151        gl_next_as_first_directive='<'iconv.h'>'
66152      else
66153        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
66154        gl_next_as_first_directive=$gl_cv_next_iconv_h
66155      fi
66156      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
66157
66158
66159
66160
66161
66162
66163
66164
66165
66166   if test "$am_cv_func_iconv" = yes; then
66167
66168
66169   ICONV_H='iconv.h'
66170    if test -n "$ICONV_H"; then
66171   GL_GENERATE_ICONV_H_TRUE=
66172   GL_GENERATE_ICONV_H_FALSE='#'
66173 else
66174   GL_GENERATE_ICONV_H_TRUE='#'
66175   GL_GENERATE_ICONV_H_FALSE=
66176 fi
66177
66178
66179             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66180 /* end confdefs.h.  */
66181
66182       #include <iconv.h>
66183       #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
66184        gnu_iconv
66185       #endif
66186
66187 _ACEOF
66188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66189   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
66190   gl_func_iconv_gnu=yes
66191 else
66192   gl_func_iconv_gnu=no
66193 fi
66194 rm -f conftest*
66195
66196     if test $gl_func_iconv_gnu = no; then
66197       iconv_flavor=
66198       case "$host_os" in
66199         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
66200         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
66201         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
66202         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
66203         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
66204       esac
66205       if test -n "$iconv_flavor"; then
66206
66207 cat >>confdefs.h <<_ACEOF
66208 #define ICONV_FLAVOR $iconv_flavor
66209 _ACEOF
66210
66211
66212
66213
66214   ICONV_H='iconv.h'
66215    if test -n "$ICONV_H"; then
66216   GL_GENERATE_ICONV_H_TRUE=
66217   GL_GENERATE_ICONV_H_FALSE='#'
66218 else
66219   GL_GENERATE_ICONV_H_TRUE='#'
66220   GL_GENERATE_ICONV_H_FALSE=
66221 fi
66222
66223
66224   REPLACE_ICONV_OPEN=1
66225
66226       fi
66227     fi
66228
66229   fi
66230
66231   if test $REPLACE_ICONV_OPEN = 1; then
66232
66233
66234
66235
66236
66237
66238
66239
66240   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_open.$ac_objext"
66241
66242   fi
66243   if test $REPLACE_ICONV = 1; then
66244
66245
66246
66247
66248
66249
66250
66251
66252   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv.$ac_objext"
66253
66254
66255
66256
66257
66258
66259
66260
66261
66262   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_close.$ac_objext"
66263
66264   fi
66265
66266
66267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
66268 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
66269 if ${gl_cv_c_inline_effective+:} false; then :
66270   $as_echo_n "(cached) " >&6
66271 else
66272   if test $ac_cv_c_inline = no; then
66273        gl_cv_c_inline_effective=no
66274      else
66275                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66276 /* end confdefs.h.  */
66277
66278 int
66279 main ()
66280 {
66281 #ifdef __NO_INLINE__
66282                #error "inline is not effective"
66283              #endif
66284   ;
66285   return 0;
66286 }
66287 _ACEOF
66288 if ac_fn_c_try_compile "$LINENO"; then :
66289   gl_cv_c_inline_effective=yes
66290 else
66291   gl_cv_c_inline_effective=no
66292 fi
66293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66294      fi
66295
66296 fi
66297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
66298 $as_echo "$gl_cv_c_inline_effective" >&6; }
66299   if test $gl_cv_c_inline_effective = yes; then
66300
66301 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
66302
66303   fi
66304
66305
66306
66307
66308
66309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
66310 $as_echo_n "checking whether to use the included libunistring... " >&6; }
66311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
66312 $as_echo "$gl_libunistring_use_included" >&6; }
66313
66314
66315
66316
66317
66318
66319
66320
66321
66322   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
66323
66324
66325
66326   if test "$gl_threads_api" = posix; then
66327     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
66328     # pthread_rwlock_* functions.
66329     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
66330 "
66331 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
66332
66333 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
66334
66335 fi
66336
66337     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
66338     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66339 /* end confdefs.h.  */
66340
66341       #include <pthread.h>
66342 int
66343 main ()
66344 {
66345
66346 #if __FreeBSD__ == 4
66347 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
66348 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
66349        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
66350 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
66351 #else
66352 int x = (int)PTHREAD_MUTEX_RECURSIVE;
66353 return !x;
66354 #endif
66355
66356   ;
66357   return 0;
66358 }
66359 _ACEOF
66360 if ac_fn_c_try_compile "$LINENO"; then :
66361
66362 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
66363
66364 fi
66365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66366   fi
66367   :
66368
66369
66370
66371 cat >>confdefs.h <<_ACEOF
66372 #define GNULIB_LOCK 1
66373 _ACEOF
66374
66375
66376
66377
66378
66379   if test $gl_cv_func_malloc_posix = yes; then
66380
66381 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
66382
66383   else
66384     REPLACE_MALLOC=1
66385   fi
66386
66387   if test $REPLACE_MALLOC = 1; then
66388
66389
66390
66391
66392
66393
66394
66395
66396   gtpo_LIBOBJS="$gtpo_LIBOBJS malloc.$ac_objext"
66397
66398   fi
66399
66400
66401
66402
66403
66404           GNULIB_MALLOC_POSIX=1
66405
66406
66407
66408
66409
66410 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
66411
66412
66413
66414
66415
66416
66417
66418
66419
66420
66421
66422
66423
66424
66425
66426
66427
66428   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
66429
66430
66431
66432      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
66433 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
66434 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
66435   $as_echo_n "(cached) " >&6
66436 else
66437
66438                   case "$host_os" in
66439                      # Guess no on AIX and OSF/1.
66440         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
66441                      # Guess yes otherwise.
66442         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
66443       esac
66444       if test $LOCALE_JA != none; then
66445         if test "$cross_compiling" = yes; then :
66446   :
66447 else
66448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66449 /* end confdefs.h.  */
66450
66451 #include <locale.h>
66452 #include <string.h>
66453 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66454    <wchar.h>.
66455    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66456    included before <wchar.h>.  */
66457 #include <stddef.h>
66458 #include <stdio.h>
66459 #include <time.h>
66460 #include <wchar.h>
66461 int main ()
66462 {
66463   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
66464     {
66465       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
66466       mbstate_t state;
66467       wchar_t wc;
66468
66469       memset (&state, '\0', sizeof (mbstate_t));
66470       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
66471         if (mbsinit (&state))
66472           return 1;
66473     }
66474   return 0;
66475 }
66476 _ACEOF
66477 if ac_fn_c_try_run "$LINENO"; then :
66478   gl_cv_func_mbrtowc_incomplete_state=yes
66479 else
66480   gl_cv_func_mbrtowc_incomplete_state=no
66481 fi
66482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66483   conftest.$ac_objext conftest.beam conftest.$ac_ext
66484 fi
66485
66486       fi
66487
66488 fi
66489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
66490 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
66491
66492
66493
66494
66495      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
66496 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
66497 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
66498   $as_echo_n "(cached) " >&6
66499 else
66500
66501                   case "$host_os" in
66502                     # Guess no on Solaris 8.
66503         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
66504                     # Guess yes otherwise.
66505         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
66506       esac
66507       if test $LOCALE_ZH_CN != none; then
66508         if test "$cross_compiling" = yes; then :
66509   :
66510 else
66511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66512 /* end confdefs.h.  */
66513
66514 #include <locale.h>
66515 #include <stdlib.h>
66516 #include <string.h>
66517 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66518    <wchar.h>.
66519    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66520    included before <wchar.h>.  */
66521 #include <stddef.h>
66522 #include <stdio.h>
66523 #include <time.h>
66524 #include <wchar.h>
66525 int main ()
66526 {
66527   /* This fails on Solaris 8:
66528      mbrtowc returns 2, and sets wc to 0x00F0.
66529      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
66530   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
66531     {
66532       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
66533       mbstate_t state;
66534       wchar_t wc;
66535
66536       memset (&state, '\0', sizeof (mbstate_t));
66537       if (mbrtowc (&wc, input + 3, 6, &state) != 4
66538           && mbtowc (&wc, input + 3, 6) == 4)
66539         return 1;
66540     }
66541   return 0;
66542 }
66543 _ACEOF
66544 if ac_fn_c_try_run "$LINENO"; then :
66545   gl_cv_func_mbrtowc_sanitycheck=yes
66546 else
66547   gl_cv_func_mbrtowc_sanitycheck=no
66548 fi
66549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66550   conftest.$ac_objext conftest.beam conftest.$ac_ext
66551 fi
66552
66553       fi
66554
66555 fi
66556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
66557 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
66558
66559     REPLACE_MBSTATE_T=0
66560     case "$gl_cv_func_mbrtowc_incomplete_state" in
66561       *yes) ;;
66562       *) REPLACE_MBSTATE_T=1 ;;
66563     esac
66564     case "$gl_cv_func_mbrtowc_sanitycheck" in
66565       *yes) ;;
66566       *) REPLACE_MBSTATE_T=1 ;;
66567     esac
66568   else
66569     REPLACE_MBSTATE_T=1
66570   fi
66571
66572
66573
66574   if test $ac_cv_func_mbrtowc = no; then
66575     HAVE_MBRTOWC=0
66576     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
66577 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66578    <wchar.h>.
66579    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66580    included before <wchar.h>.  */
66581 #include <stddef.h>
66582 #include <stdio.h>
66583 #include <time.h>
66584 #include <wchar.h>
66585
66586 "
66587 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
66588   ac_have_decl=1
66589 else
66590   ac_have_decl=0
66591 fi
66592
66593 cat >>confdefs.h <<_ACEOF
66594 #define HAVE_DECL_MBRTOWC $ac_have_decl
66595 _ACEOF
66596
66597     if test $ac_cv_have_decl_mbrtowc = yes; then
66598                         REPLACE_MBRTOWC=1
66599     fi
66600   else
66601     if test $REPLACE_MBSTATE_T = 1; then
66602       REPLACE_MBRTOWC=1
66603     else
66604
66605
66606
66607      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
66608 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
66609 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
66610   $as_echo_n "(cached) " >&6
66611 else
66612
66613                   case "$host_os" in
66614                   # Guess no on Solaris.
66615         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
66616                   # Guess yes otherwise.
66617         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
66618       esac
66619       if test $LOCALE_FR_UTF8 != none; then
66620         if test "$cross_compiling" = yes; then :
66621   :
66622 else
66623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66624 /* end confdefs.h.  */
66625
66626 #include <locale.h>
66627 #include <stdlib.h>
66628 #include <string.h>
66629 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66630    <wchar.h>.
66631    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66632    included before <wchar.h>.  */
66633 #include <stddef.h>
66634 #include <stdio.h>
66635 #include <time.h>
66636 #include <wchar.h>
66637 int main ()
66638 {
66639   int result = 0;
66640
66641   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
66642     {
66643       char input[] = "\303\237er";
66644       mbstate_t state;
66645       wchar_t wc;
66646       size_t ret;
66647
66648       memset (&state, '\0', sizeof (mbstate_t));
66649       wc = (wchar_t) 0xBADFACE;
66650       ret = mbrtowc (&wc, input, 5, &state);
66651       if (ret != 2)
66652         result |= 1;
66653       if (!mbsinit (&state))
66654         result |= 2;
66655
66656       memset (&state, '\0', sizeof (mbstate_t));
66657       ret = mbrtowc (NULL, input, 5, &state);
66658       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
66659         result |= 4;
66660       if (!mbsinit (&state))
66661         result |= 8;
66662     }
66663   return result;
66664 }
66665 _ACEOF
66666 if ac_fn_c_try_run "$LINENO"; then :
66667   gl_cv_func_mbrtowc_null_arg1=yes
66668 else
66669   gl_cv_func_mbrtowc_null_arg1=no
66670 fi
66671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66672   conftest.$ac_objext conftest.beam conftest.$ac_ext
66673 fi
66674
66675       fi
66676
66677 fi
66678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
66679 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
66680
66681
66682
66683
66684      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
66685 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
66686 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
66687   $as_echo_n "(cached) " >&6
66688 else
66689
66690                   case "$host_os" in
66691               # Guess no on OSF/1.
66692         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
66693               # Guess yes otherwise.
66694         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
66695       esac
66696       if test $LOCALE_FR_UTF8 != none; then
66697         if test "$cross_compiling" = yes; then :
66698   :
66699 else
66700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66701 /* end confdefs.h.  */
66702
66703 #include <locale.h>
66704 #include <string.h>
66705 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66706    <wchar.h>.
66707    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66708    included before <wchar.h>.  */
66709 #include <stddef.h>
66710 #include <stdio.h>
66711 #include <time.h>
66712 #include <wchar.h>
66713 int main ()
66714 {
66715   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
66716     {
66717       mbstate_t state;
66718       wchar_t wc;
66719       int ret;
66720
66721       memset (&state, '\0', sizeof (mbstate_t));
66722       wc = (wchar_t) 0xBADFACE;
66723       mbrtowc (&wc, NULL, 5, &state);
66724       /* Check that wc was not modified.  */
66725       if (wc != (wchar_t) 0xBADFACE)
66726         return 1;
66727     }
66728   return 0;
66729 }
66730 _ACEOF
66731 if ac_fn_c_try_run "$LINENO"; then :
66732   gl_cv_func_mbrtowc_null_arg2=yes
66733 else
66734   gl_cv_func_mbrtowc_null_arg2=no
66735 fi
66736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66737   conftest.$ac_objext conftest.beam conftest.$ac_ext
66738 fi
66739
66740       fi
66741
66742 fi
66743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
66744 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
66745
66746
66747
66748
66749
66750
66751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
66752 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
66753 if ${gl_cv_func_mbrtowc_retval+:} false; then :
66754   $as_echo_n "(cached) " >&6
66755 else
66756
66757                   case "$host_os" in
66758                                    # Guess no on HP-UX, Solaris, native Windows.
66759         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
66760                                    # Guess yes otherwise.
66761         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
66762       esac
66763       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
66764          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
66765         if test "$cross_compiling" = yes; then :
66766   :
66767 else
66768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66769 /* end confdefs.h.  */
66770
66771 #include <locale.h>
66772 #include <string.h>
66773 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66774    <wchar.h>.
66775    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66776    included before <wchar.h>.  */
66777 #include <stddef.h>
66778 #include <stdio.h>
66779 #include <time.h>
66780 #include <wchar.h>
66781 int main ()
66782 {
66783   int result = 0;
66784   int found_some_locale = 0;
66785   /* This fails on Solaris.  */
66786   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
66787     {
66788       char input[] = "B\303\274\303\237er"; /* "Büßer" */
66789       mbstate_t state;
66790       wchar_t wc;
66791
66792       memset (&state, '\0', sizeof (mbstate_t));
66793       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
66794         {
66795           input[1] = '\0';
66796           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
66797             result |= 1;
66798         }
66799       found_some_locale = 1;
66800     }
66801   /* This fails on HP-UX 11.11.  */
66802   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
66803     {
66804       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
66805       mbstate_t state;
66806       wchar_t wc;
66807
66808       memset (&state, '\0', sizeof (mbstate_t));
66809       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
66810         {
66811           input[1] = '\0';
66812           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
66813             result |= 2;
66814         }
66815       found_some_locale = 1;
66816     }
66817   /* This fails on native Windows.  */
66818   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
66819     {
66820       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
66821       mbstate_t state;
66822       wchar_t wc;
66823
66824       memset (&state, '\0', sizeof (mbstate_t));
66825       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
66826         {
66827           input[3] = '\0';
66828           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
66829             result |= 4;
66830         }
66831       found_some_locale = 1;
66832     }
66833   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
66834     {
66835       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
66836       mbstate_t state;
66837       wchar_t wc;
66838
66839       memset (&state, '\0', sizeof (mbstate_t));
66840       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
66841         {
66842           input[3] = '\0';
66843           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
66844             result |= 8;
66845         }
66846       found_some_locale = 1;
66847     }
66848   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
66849     {
66850       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
66851       mbstate_t state;
66852       wchar_t wc;
66853
66854       memset (&state, '\0', sizeof (mbstate_t));
66855       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
66856         {
66857           input[3] = '\0';
66858           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
66859             result |= 16;
66860         }
66861       found_some_locale = 1;
66862     }
66863   return (found_some_locale ? result : 77);
66864 }
66865 _ACEOF
66866 if ac_fn_c_try_run "$LINENO"; then :
66867   gl_cv_func_mbrtowc_retval=yes
66868 else
66869   if test $? != 77; then
66870              gl_cv_func_mbrtowc_retval=no
66871            fi
66872
66873 fi
66874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66875   conftest.$ac_objext conftest.beam conftest.$ac_ext
66876 fi
66877
66878       fi
66879
66880 fi
66881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
66882 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
66883
66884
66885
66886
66887      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
66888 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
66889 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
66890   $as_echo_n "(cached) " >&6
66891 else
66892
66893                   case "$host_os" in
66894                        # Guess no on Solaris 8 and 9.
66895         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
66896                        # Guess yes otherwise.
66897         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
66898       esac
66899       if test $LOCALE_ZH_CN != none; then
66900         if test "$cross_compiling" = yes; then :
66901   :
66902 else
66903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66904 /* end confdefs.h.  */
66905
66906 #include <locale.h>
66907 #include <string.h>
66908 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66909    <wchar.h>.
66910    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66911    included before <wchar.h>.  */
66912 #include <stddef.h>
66913 #include <stdio.h>
66914 #include <time.h>
66915 #include <wchar.h>
66916 int main ()
66917 {
66918   /* This fails on Solaris 8 and 9.  */
66919   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
66920     {
66921       mbstate_t state;
66922       wchar_t wc;
66923
66924       memset (&state, '\0', sizeof (mbstate_t));
66925       if (mbrtowc (&wc, "", 1, &state) != 0)
66926         return 1;
66927     }
66928   return 0;
66929 }
66930 _ACEOF
66931 if ac_fn_c_try_run "$LINENO"; then :
66932   gl_cv_func_mbrtowc_nul_retval=yes
66933 else
66934   gl_cv_func_mbrtowc_nul_retval=no
66935 fi
66936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66937   conftest.$ac_objext conftest.beam conftest.$ac_ext
66938 fi
66939
66940       fi
66941
66942 fi
66943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
66944 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
66945
66946
66947
66948      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
66949 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
66950 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
66951   $as_echo_n "(cached) " >&6
66952 else
66953
66954                   case "$host_os" in
66955                      # Guess no on AIX and glibc systems.
66956         aix* | *-gnu*)
66957                     gl_cv_func_mbrtowc_empty_input="guessing no" ;;
66958         *)          gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
66959       esac
66960       if test "$cross_compiling" = yes; then :
66961   :
66962 else
66963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66964 /* end confdefs.h.  */
66965
66966            #include <wchar.h>
66967            static wchar_t wc;
66968            static mbstate_t mbs;
66969            int
66970            main (void)
66971            {
66972              return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
66973            }
66974 _ACEOF
66975 if ac_fn_c_try_run "$LINENO"; then :
66976   gl_cv_func_mbrtowc_empty_input=yes
66977 else
66978   gl_cv_func_mbrtowc_empty_input=no
66979 fi
66980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66981   conftest.$ac_objext conftest.beam conftest.$ac_ext
66982 fi
66983
66984
66985 fi
66986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
66987 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
66988
66989
66990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
66991 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
66992 if ${gl_cv_C_locale_sans_EILSEQ+:} false; then :
66993   $as_echo_n "(cached) " >&6
66994 else
66995
66996                gl_cv_C_locale_sans_EILSEQ="guessing no"
66997
66998      if test "$cross_compiling" = yes; then :
66999   :
67000 else
67001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67002 /* end confdefs.h.  */
67003 #include <limits.h>
67004             #include <locale.h>
67005             #include <wchar.h>
67006
67007 int
67008 main ()
67009 {
67010
67011             int i;
67012             char *locale = setlocale (LC_ALL, "C");
67013             if (! locale)
67014               return 1;
67015             for (i = CHAR_MIN; i <= CHAR_MAX; i++)
67016               {
67017                 char c = i;
67018                 wchar_t wc;
67019                 mbstate_t mbs = { 0, };
67020                 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
67021                 if (1 < ss)
67022                   return 1;
67023               }
67024             return 0;
67025
67026   ;
67027   return 0;
67028 }
67029 _ACEOF
67030 if ac_fn_c_try_run "$LINENO"; then :
67031   gl_cv_C_locale_sans_EILSEQ=yes
67032 else
67033   gl_cv_C_locale_sans_EILSEQ=no
67034 fi
67035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67036   conftest.$ac_objext conftest.beam conftest.$ac_ext
67037 fi
67038
67039 fi
67040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
67041 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
67042
67043       case "$gl_cv_func_mbrtowc_null_arg1" in
67044         *yes) ;;
67045         *)
67046 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
67047
67048            REPLACE_MBRTOWC=1
67049            ;;
67050       esac
67051       case "$gl_cv_func_mbrtowc_null_arg2" in
67052         *yes) ;;
67053         *)
67054 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
67055
67056            REPLACE_MBRTOWC=1
67057            ;;
67058       esac
67059       case "$gl_cv_func_mbrtowc_retval" in
67060         *yes) ;;
67061         *)
67062 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
67063
67064            REPLACE_MBRTOWC=1
67065            ;;
67066       esac
67067       case "$gl_cv_func_mbrtowc_nul_retval" in
67068         *yes) ;;
67069         *)
67070 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
67071
67072            REPLACE_MBRTOWC=1
67073            ;;
67074       esac
67075       case "$gl_cv_func_mbrtowc_empty_input" in
67076         *yes) ;;
67077         *)
67078 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
67079
67080            REPLACE_MBRTOWC=1
67081            ;;
67082       esac
67083       case $gl_cv_C_locale_sans_EILSEQ in
67084         *yes) ;;
67085         *)
67086 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
67087
67088            REPLACE_MBRTOWC=1
67089            ;;
67090       esac
67091     fi
67092   fi
67093
67094   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
67095
67096
67097
67098
67099
67100
67101
67102
67103   gtpo_LIBOBJS="$gtpo_LIBOBJS mbrtowc.$ac_objext"
67104
67105
67106   :
67107
67108   fi
67109
67110
67111
67112
67113
67114           GNULIB_MBRTOWC=1
67115
67116
67117
67118
67119
67120 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
67121
67122
67123
67124
67125
67126
67127
67128
67129
67130
67131
67132
67133
67134
67135   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
67136
67137
67138
67139      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
67140 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
67141 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
67142   $as_echo_n "(cached) " >&6
67143 else
67144
67145                   case "$host_os" in
67146                      # Guess no on AIX and OSF/1.
67147         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
67148                      # Guess yes otherwise.
67149         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
67150       esac
67151       if test $LOCALE_JA != none; then
67152         if test "$cross_compiling" = yes; then :
67153   :
67154 else
67155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67156 /* end confdefs.h.  */
67157
67158 #include <locale.h>
67159 #include <string.h>
67160 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
67161    <wchar.h>.
67162    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
67163    included before <wchar.h>.  */
67164 #include <stddef.h>
67165 #include <stdio.h>
67166 #include <time.h>
67167 #include <wchar.h>
67168 int main ()
67169 {
67170   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
67171     {
67172       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
67173       mbstate_t state;
67174       wchar_t wc;
67175
67176       memset (&state, '\0', sizeof (mbstate_t));
67177       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
67178         if (mbsinit (&state))
67179           return 1;
67180     }
67181   return 0;
67182 }
67183 _ACEOF
67184 if ac_fn_c_try_run "$LINENO"; then :
67185   gl_cv_func_mbrtowc_incomplete_state=yes
67186 else
67187   gl_cv_func_mbrtowc_incomplete_state=no
67188 fi
67189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67190   conftest.$ac_objext conftest.beam conftest.$ac_ext
67191 fi
67192
67193       fi
67194
67195 fi
67196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
67197 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
67198
67199
67200
67201
67202      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
67203 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
67204 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
67205   $as_echo_n "(cached) " >&6
67206 else
67207
67208                   case "$host_os" in
67209                     # Guess no on Solaris 8.
67210         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
67211                     # Guess yes otherwise.
67212         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
67213       esac
67214       if test $LOCALE_ZH_CN != none; then
67215         if test "$cross_compiling" = yes; then :
67216   :
67217 else
67218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67219 /* end confdefs.h.  */
67220
67221 #include <locale.h>
67222 #include <stdlib.h>
67223 #include <string.h>
67224 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
67225    <wchar.h>.
67226    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
67227    included before <wchar.h>.  */
67228 #include <stddef.h>
67229 #include <stdio.h>
67230 #include <time.h>
67231 #include <wchar.h>
67232 int main ()
67233 {
67234   /* This fails on Solaris 8:
67235      mbrtowc returns 2, and sets wc to 0x00F0.
67236      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
67237   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
67238     {
67239       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
67240       mbstate_t state;
67241       wchar_t wc;
67242
67243       memset (&state, '\0', sizeof (mbstate_t));
67244       if (mbrtowc (&wc, input + 3, 6, &state) != 4
67245           && mbtowc (&wc, input + 3, 6) == 4)
67246         return 1;
67247     }
67248   return 0;
67249 }
67250 _ACEOF
67251 if ac_fn_c_try_run "$LINENO"; then :
67252   gl_cv_func_mbrtowc_sanitycheck=yes
67253 else
67254   gl_cv_func_mbrtowc_sanitycheck=no
67255 fi
67256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67257   conftest.$ac_objext conftest.beam conftest.$ac_ext
67258 fi
67259
67260       fi
67261
67262 fi
67263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
67264 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
67265
67266     REPLACE_MBSTATE_T=0
67267     case "$gl_cv_func_mbrtowc_incomplete_state" in
67268       *yes) ;;
67269       *) REPLACE_MBSTATE_T=1 ;;
67270     esac
67271     case "$gl_cv_func_mbrtowc_sanitycheck" in
67272       *yes) ;;
67273       *) REPLACE_MBSTATE_T=1 ;;
67274     esac
67275   else
67276     REPLACE_MBSTATE_T=1
67277   fi
67278
67279
67280
67281   if test $ac_cv_func_mbsinit = no; then
67282     HAVE_MBSINIT=0
67283     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
67284 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
67285    <wchar.h>.
67286    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
67287    included before <wchar.h>.  */
67288 #include <stddef.h>
67289 #include <stdio.h>
67290 #include <time.h>
67291 #include <wchar.h>
67292
67293 "
67294 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
67295   ac_have_decl=1
67296 else
67297   ac_have_decl=0
67298 fi
67299
67300 cat >>confdefs.h <<_ACEOF
67301 #define HAVE_DECL_MBSINIT $ac_have_decl
67302 _ACEOF
67303
67304     if test $ac_cv_have_decl_mbsinit = yes; then
67305                         REPLACE_MBSINIT=1
67306     fi
67307   else
67308     if test $REPLACE_MBSTATE_T = 1; then
67309       REPLACE_MBSINIT=1
67310     else
67311                         case "$host_os" in
67312         mingw*) REPLACE_MBSINIT=1 ;;
67313       esac
67314     fi
67315   fi
67316
67317   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
67318
67319
67320
67321
67322
67323
67324
67325
67326   gtpo_LIBOBJS="$gtpo_LIBOBJS mbsinit.$ac_objext"
67327
67328
67329   :
67330
67331   fi
67332
67333
67334
67335
67336
67337           GNULIB_MBSINIT=1
67338
67339
67340
67341
67342
67343 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
67344
67345
67346
67347
67348
67349
67350
67351       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
67352 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
67353 if ${ac_cv_have_decl_mbswidth+:} false; then :
67354   $as_echo_n "(cached) " >&6
67355 else
67356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67357 /* end confdefs.h.  */
67358
67359 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
67360    <wchar.h>.
67361    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
67362    before <wchar.h>.  */
67363 #include <stddef.h>
67364 #include <stdio.h>
67365 #include <time.h>
67366 #include <wchar.h>
67367
67368 int
67369 main ()
67370 {
67371
67372   char *p = (char *) mbswidth;
67373   return !p;
67374
67375   ;
67376   return 0;
67377 }
67378 _ACEOF
67379 if ac_fn_c_try_compile "$LINENO"; then :
67380   ac_cv_have_decl_mbswidth=yes
67381 else
67382   ac_cv_have_decl_mbswidth=no
67383 fi
67384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67385 fi
67386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
67387 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
67388   if test $ac_cv_have_decl_mbswidth = yes; then
67389     ac_val=1
67390   else
67391     ac_val=0
67392   fi
67393
67394 cat >>confdefs.h <<_ACEOF
67395 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
67396 _ACEOF
67397
67398
67399
67400
67401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
67402 $as_echo_n "checking for mbstate_t... " >&6; }
67403 if ${ac_cv_type_mbstate_t+:} false; then :
67404   $as_echo_n "(cached) " >&6
67405 else
67406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67407 /* end confdefs.h.  */
67408 $ac_includes_default
67409 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
67410    <wchar.h>.
67411    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
67412    included before <wchar.h>.  */
67413 #include <stddef.h>
67414 #include <stdio.h>
67415 #include <time.h>
67416 #include <wchar.h>
67417 int
67418 main ()
67419 {
67420 mbstate_t x; return sizeof x;
67421   ;
67422   return 0;
67423 }
67424 _ACEOF
67425 if ac_fn_c_try_compile "$LINENO"; then :
67426   ac_cv_type_mbstate_t=yes
67427 else
67428   ac_cv_type_mbstate_t=no
67429 fi
67430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67431 fi
67432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
67433 $as_echo "$ac_cv_type_mbstate_t" >&6; }
67434    if test $ac_cv_type_mbstate_t = yes; then
67435
67436 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
67437
67438    else
67439
67440 $as_echo "#define mbstate_t int" >>confdefs.h
67441
67442    fi
67443
67444
67445
67446   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
67447
67448
67449
67450
67451
67452
67453
67454
67455   gtpo_LIBOBJS="$gtpo_LIBOBJS memchr.$ac_objext"
67456
67457
67458   for ac_header in bp-sym.h
67459 do :
67460   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
67461 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
67462   cat >>confdefs.h <<_ACEOF
67463 #define HAVE_BP_SYM_H 1
67464 _ACEOF
67465
67466 fi
67467
67468 done
67469
67470
67471   fi
67472
67473
67474
67475
67476
67477           GNULIB_MEMCHR=1
67478
67479
67480
67481
67482
67483 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
67484
67485
67486
67487
67488
67489
67490
67491
67492           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
67493 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
67494 if ${gl_cv_c_cplusplus+:} false; then :
67495   $as_echo_n "(cached) " >&6
67496 else
67497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67498 /* end confdefs.h.  */
67499
67500 #ifdef __cplusplus
67501   Is c++
67502 #endif
67503
67504 _ACEOF
67505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67506   $EGREP "Is c++" >/dev/null 2>&1; then :
67507   gl_cv_c_cplusplus=yes
67508 else
67509   gl_cv_c_cplusplus=no
67510 fi
67511 rm -f conftest*
67512
67513 fi
67514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
67515 $as_echo "$gl_cv_c_cplusplus" >&6; }
67516   if test $gl_cv_c_cplusplus = yes; then
67517
67518 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
67519
67520   fi
67521
67522
67523   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
67524
67525
67526
67527
67528
67529
67530
67531
67532   gtpo_LIBOBJS="$gtpo_LIBOBJS msvc-inval.$ac_objext"
67533
67534   fi
67535
67536   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
67537
67538
67539
67540
67541
67542
67543
67544
67545   gtpo_LIBOBJS="$gtpo_LIBOBJS msvc-nothrow.$ac_objext"
67546
67547   fi
67548
67549
67550
67551
67552
67553
67554
67555
67556
67557
67558
67559
67560
67561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5
67562 $as_echo_n "checking for obstacks that work with any size object... " >&6; }
67563 if ${ac_cv_func_obstack+:} false; then :
67564   $as_echo_n "(cached) " >&6
67565 else
67566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67567 /* end confdefs.h.  */
67568 #include "obstack.h"
67569              void *obstack_chunk_alloc (size_t n) { return 0; }
67570              void obstack_chunk_free (void *p) { }
67571              /* Check that an internal function returns size_t, not int.  */
67572              size_t _obstack_memory_used (struct obstack *);
67573
67574 int
67575 main ()
67576 {
67577 struct obstack mem;
67578              obstack_init (&mem);
67579              obstack_free (&mem, 0);
67580
67581   ;
67582   return 0;
67583 }
67584 _ACEOF
67585 if ac_fn_c_try_link "$LINENO"; then :
67586   ac_cv_func_obstack=yes
67587 else
67588   ac_cv_func_obstack=no
67589 fi
67590 rm -f core conftest.err conftest.$ac_objext \
67591     conftest$ac_exeext conftest.$ac_ext
67592 fi
67593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
67594 $as_echo "$ac_cv_func_obstack" >&6; }
67595    if test "$ac_cv_func_obstack" = yes; then
67596
67597 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
67598
67599    else
67600
67601
67602
67603
67604
67605
67606
67607
67608   gtpo_LIBOBJS="$gtpo_LIBOBJS obstack.$ac_objext"
67609
67610    fi
67611
67612
67613
67614   case "$host_os" in
67615     mingw* | pw*)
67616       REPLACE_OPEN=1
67617       ;;
67618     *)
67619
67620       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
67621 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
67622 if ${gl_cv_func_open_slash+:} false; then :
67623   $as_echo_n "(cached) " >&6
67624 else
67625   # Assume that if we have lstat, we can also check symlinks.
67626           if test $ac_cv_func_lstat = yes; then
67627             touch conftest.tmp
67628             ln -s conftest.tmp conftest.lnk
67629           fi
67630           if test "$cross_compiling" = yes; then :
67631
67632              case "$host_os" in
67633                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
67634                  gl_cv_func_open_slash="guessing no" ;;
67635                *)
67636                  gl_cv_func_open_slash="guessing yes" ;;
67637              esac
67638
67639 else
67640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67641 /* end confdefs.h.  */
67642
67643 #include <fcntl.h>
67644 #if HAVE_UNISTD_H
67645 # include <unistd.h>
67646 #endif
67647 int main ()
67648 {
67649   int result = 0;
67650 #if HAVE_LSTAT
67651   if (open ("conftest.lnk/", O_RDONLY) != -1)
67652     result |= 1;
67653 #endif
67654   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
67655     result |= 2;
67656   return result;
67657 }
67658 _ACEOF
67659 if ac_fn_c_try_run "$LINENO"; then :
67660   gl_cv_func_open_slash=yes
67661 else
67662   gl_cv_func_open_slash=no
67663 fi
67664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67665   conftest.$ac_objext conftest.beam conftest.$ac_ext
67666 fi
67667
67668           rm -f conftest.sl conftest.tmp conftest.lnk
67669
67670 fi
67671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
67672 $as_echo "$gl_cv_func_open_slash" >&6; }
67673       case "$gl_cv_func_open_slash" in
67674         *no)
67675
67676 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
67677
67678           REPLACE_OPEN=1
67679           ;;
67680       esac
67681       ;;
67682   esac
67683
67684
67685
67686   if test $REPLACE_OPEN = 1; then
67687
67688
67689
67690
67691
67692
67693
67694
67695   gtpo_LIBOBJS="$gtpo_LIBOBJS open.$ac_objext"
67696
67697
67698
67699   :
67700
67701   fi
67702
67703
67704
67705
67706
67707           GNULIB_OPEN=1
67708
67709
67710
67711
67712
67713 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
67714
67715
67716
67717
67718
67719
67720   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
67721 "
67722 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
67723   ac_have_decl=1
67724 else
67725   ac_have_decl=0
67726 fi
67727
67728 cat >>confdefs.h <<_ACEOF
67729 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
67730 _ACEOF
67731
67732   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
67733 "
67734 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
67735   ac_have_decl=1
67736 else
67737   ac_have_decl=0
67738 fi
67739
67740 cat >>confdefs.h <<_ACEOF
67741 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
67742 _ACEOF
67743
67744
67745
67746
67747
67748   for ac_func in raise
67749 do :
67750   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
67751 if test "x$ac_cv_func_raise" = xyes; then :
67752   cat >>confdefs.h <<_ACEOF
67753 #define HAVE_RAISE 1
67754 _ACEOF
67755
67756 fi
67757 done
67758
67759   if test $ac_cv_func_raise = no; then
67760     HAVE_RAISE=0
67761   else
67762     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
67763       REPLACE_RAISE=1
67764     fi
67765
67766
67767
67768
67769   if test $gl_cv_type_sigset_t = yes; then
67770     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
67771 if test "x$ac_cv_func_sigprocmask" = xyes; then :
67772   gl_cv_func_sigprocmask=1
67773 fi
67774
67775   fi
67776   if test -z "$gl_cv_func_sigprocmask"; then
67777     HAVE_POSIX_SIGNALBLOCKING=0
67778   fi
67779
67780       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
67781
67782
67783
67784
67785           if test $gl_cv_header_signal_h_SIGPIPE != yes; then
67786             REPLACE_RAISE=1
67787           fi
67788
67789       fi
67790
67791   fi
67792
67793   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
67794
67795
67796
67797
67798
67799
67800
67801
67802   gtpo_LIBOBJS="$gtpo_LIBOBJS raise.$ac_objext"
67803
67804     :
67805   fi
67806
67807
67808
67809
67810
67811           GNULIB_RAISE=1
67812
67813
67814
67815
67816
67817 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
67818
67819
67820
67821
67822
67823
67824
67825   for ac_func in rawmemchr
67826 do :
67827   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
67828 if test "x$ac_cv_func_rawmemchr" = xyes; then :
67829   cat >>confdefs.h <<_ACEOF
67830 #define HAVE_RAWMEMCHR 1
67831 _ACEOF
67832
67833 fi
67834 done
67835
67836   if test $ac_cv_func_rawmemchr = no; then
67837     HAVE_RAWMEMCHR=0
67838   fi
67839
67840   if test $HAVE_RAWMEMCHR = 0; then
67841
67842
67843
67844
67845
67846
67847
67848
67849   gtpo_LIBOBJS="$gtpo_LIBOBJS rawmemchr.$ac_objext"
67850
67851     :
67852   fi
67853
67854
67855
67856
67857
67858           GNULIB_RAWMEMCHR=1
67859
67860
67861
67862
67863
67864 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
67865
67866
67867
67868
67869
67870
67871   if test $gl_cv_func_malloc_posix = yes; then
67872
67873 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
67874
67875   else
67876     REPLACE_REALLOC=1
67877   fi
67878
67879   if test $REPLACE_REALLOC = 1; then
67880
67881
67882
67883
67884
67885
67886
67887
67888   gtpo_LIBOBJS="$gtpo_LIBOBJS realloc.$ac_objext"
67889
67890   fi
67891
67892
67893
67894
67895
67896           GNULIB_REALLOC_POSIX=1
67897
67898
67899
67900
67901
67902 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
67903
67904
67905
67906
67907
67908
67909   if test $RELOCATABLE = yes; then
67910
67911
67912
67913
67914
67915
67916
67917
67918   gtpo_LIBOBJS="$gtpo_LIBOBJS relocatable.$ac_objext"
67919
67920   fi
67921
67922
67923
67924
67925
67926
67927
67928
67929
67930
67931
67932      if test $gl_cv_have_include_next = yes; then
67933        gl_cv_next_signal_h='<'signal.h'>'
67934      else
67935        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
67936 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
67937 if ${gl_cv_next_signal_h+:} false; then :
67938   $as_echo_n "(cached) " >&6
67939 else
67940
67941
67942
67943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67944 /* end confdefs.h.  */
67945 #include <signal.h>
67946 _ACEOF
67947                 case "$host_os" in
67948     aix*) gl_absname_cpp="$ac_cpp -C" ;;
67949     *)    gl_absname_cpp="$ac_cpp" ;;
67950   esac
67951
67952   case "$host_os" in
67953     mingw*)
67954                                           gl_dirsep_regex='[/\\]'
67955       ;;
67956     *)
67957       gl_dirsep_regex='\/'
67958       ;;
67959   esac
67960       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
67961   gl_header_literal_regex=`echo 'signal.h' \
67962                            | sed -e "$gl_make_literal_regex_sed"`
67963   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
67964       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
67965       s|^/[^/]|//&|
67966       p
67967       q
67968     }'
67969
67970         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
67971   sed -n "$gl_absolute_header_sed"`
67972
67973            gl_header=$gl_cv_absolute_signal_h
67974            gl_cv_next_signal_h='"'$gl_header'"'
67975
67976
67977 fi
67978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
67979 $as_echo "$gl_cv_next_signal_h" >&6; }
67980      fi
67981      NEXT_SIGNAL_H=$gl_cv_next_signal_h
67982
67983      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
67984        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
67985        gl_next_as_first_directive='<'signal.h'>'
67986      else
67987        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
67988        gl_next_as_first_directive=$gl_cv_next_signal_h
67989      fi
67990      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
67991
67992
67993
67994
67995
67996 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
67997 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
67998   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
67999 #include <signal.h>
68000
68001 "
68002 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
68003
68004 else
68005   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
68006 fi
68007
68008
68009
68010
68011
68012
68013
68014   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
68015 #include <signal.h>
68016
68017 "
68018 if test "x$ac_cv_type_sighandler_t" = xyes; then :
68019
68020 else
68021   HAVE_SIGHANDLER_T=0
68022 fi
68023
68024
68025
68026     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
68027     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
68028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
68029 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
68030 if eval \${$as_gl_Symbol+:} false; then :
68031   $as_echo_n "(cached) " >&6
68032 else
68033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68034 /* end confdefs.h.  */
68035 #include <signal.h>
68036
68037 int
68038 main ()
68039 {
68040 #undef $gl_func
68041   (void) $gl_func;
68042   ;
68043   return 0;
68044 }
68045 _ACEOF
68046 if ac_fn_c_try_compile "$LINENO"; then :
68047   eval "$as_gl_Symbol=yes"
68048 else
68049   eval "$as_gl_Symbol=no"
68050 fi
68051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68052 fi
68053 eval ac_res=\$$as_gl_Symbol
68054                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
68055 $as_echo "$ac_res" >&6; }
68056     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
68057   cat >>confdefs.h <<_ACEOF
68058 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
68059 _ACEOF
68060
68061                      eval ac_cv_have_decl_$gl_func=yes
68062 fi
68063       done
68064
68065
68066
68067
68068
68069
68070
68071 cat >>confdefs.h <<_ACEOF
68072 #define GNULIB_SIGPIPE 1
68073 _ACEOF
68074
68075
68076
68077   GNULIB_SIGNAL_H_SIGPIPE=1
68078
68079
68080   GNULIB_STDIO_H_SIGPIPE=1
68081
68082   GNULIB_UNISTD_H_SIGPIPE=1
68083
68084
68085
68086   if test $gl_cv_type_sigset_t = yes; then
68087     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
68088 if test "x$ac_cv_func_sigprocmask" = xyes; then :
68089   gl_cv_func_sigprocmask=1
68090 fi
68091
68092   fi
68093   if test -z "$gl_cv_func_sigprocmask"; then
68094     HAVE_POSIX_SIGNALBLOCKING=0
68095   fi
68096
68097   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
68098
68099
68100
68101
68102
68103
68104
68105
68106   gtpo_LIBOBJS="$gtpo_LIBOBJS sigprocmask.$ac_objext"
68107
68108     :
68109   fi
68110
68111
68112
68113
68114
68115           GNULIB_SIGPROCMASK=1
68116
68117
68118
68119
68120
68121 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
68122
68123
68124
68125
68126   for ac_header in stdint.h
68127 do :
68128   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
68129 if test "x$ac_cv_header_stdint_h" = xyes; then :
68130   cat >>confdefs.h <<_ACEOF
68131 #define HAVE_STDINT_H 1
68132 _ACEOF
68133
68134 fi
68135
68136 done
68137
68138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
68139 $as_echo_n "checking for SIZE_MAX... " >&6; }
68140 if ${gl_cv_size_max+:} false; then :
68141   $as_echo_n "(cached) " >&6
68142 else
68143
68144     gl_cv_size_max=
68145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68146 /* end confdefs.h.  */
68147
68148 #include <limits.h>
68149 #if HAVE_STDINT_H
68150 #include <stdint.h>
68151 #endif
68152 #ifdef SIZE_MAX
68153 Found it
68154 #endif
68155
68156 _ACEOF
68157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68158   $EGREP "Found it" >/dev/null 2>&1; then :
68159   gl_cv_size_max=yes
68160 fi
68161 rm -f conftest*
68162
68163     if test -z "$gl_cv_size_max"; then
68164                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
68165 #include <limits.h>"; then :
68166
68167 else
68168   size_t_bits_minus_1=
68169 fi
68170
68171       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
68172
68173 else
68174   fits_in_uint=
68175 fi
68176
68177       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
68178         if test $fits_in_uint = 1; then
68179                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68180 /* end confdefs.h.  */
68181 #include <stddef.h>
68182                  extern size_t foo;
68183                  extern unsigned long foo;
68184
68185 int
68186 main ()
68187 {
68188
68189   ;
68190   return 0;
68191 }
68192 _ACEOF
68193 if ac_fn_c_try_compile "$LINENO"; then :
68194   fits_in_uint=0
68195 fi
68196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68197         fi
68198                                 if test $fits_in_uint = 1; then
68199           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
68200         else
68201           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
68202         fi
68203       else
68204                 gl_cv_size_max='((size_t)~(size_t)0)'
68205       fi
68206     fi
68207
68208 fi
68209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
68210 $as_echo "$gl_cv_size_max" >&6; }
68211   if test "$gl_cv_size_max" != yes; then
68212
68213 cat >>confdefs.h <<_ACEOF
68214 #define SIZE_MAX $gl_cv_size_max
68215 _ACEOF
68216
68217   fi
68218
68219
68220
68221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
68222 $as_echo_n "checking for ssize_t... " >&6; }
68223 if ${gt_cv_ssize_t+:} false; then :
68224   $as_echo_n "(cached) " >&6
68225 else
68226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68227 /* end confdefs.h.  */
68228 #include <sys/types.h>
68229 int
68230 main ()
68231 {
68232 int x = sizeof (ssize_t *) + sizeof (ssize_t);
68233             return !x;
68234   ;
68235   return 0;
68236 }
68237 _ACEOF
68238 if ac_fn_c_try_compile "$LINENO"; then :
68239   gt_cv_ssize_t=yes
68240 else
68241   gt_cv_ssize_t=no
68242 fi
68243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68244 fi
68245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
68246 $as_echo "$gt_cv_ssize_t" >&6; }
68247   if test $gt_cv_ssize_t = no; then
68248
68249 $as_echo "#define ssize_t int" >>confdefs.h
68250
68251   fi
68252
68253
68254
68255
68256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
68257 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
68258 if ${gl_cv_func_stat_dir_slash+:} false; then :
68259   $as_echo_n "(cached) " >&6
68260 else
68261   if test "$cross_compiling" = yes; then :
68262   case $host_os in
68263             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
68264             *) gl_cv_func_stat_dir_slash="guessing yes";;
68265           esac
68266 else
68267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68268 /* end confdefs.h.  */
68269 #include <sys/stat.h>
68270
68271 int
68272 main ()
68273 {
68274 struct stat st; return stat (".", &st) != stat ("./", &st);
68275   ;
68276   return 0;
68277 }
68278 _ACEOF
68279 if ac_fn_c_try_run "$LINENO"; then :
68280   gl_cv_func_stat_dir_slash=yes
68281 else
68282   gl_cv_func_stat_dir_slash=no
68283 fi
68284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68285   conftest.$ac_objext conftest.beam conftest.$ac_ext
68286 fi
68287
68288 fi
68289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
68290 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
68291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
68292 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
68293 if ${gl_cv_func_stat_file_slash+:} false; then :
68294   $as_echo_n "(cached) " >&6
68295 else
68296   touch conftest.tmp
68297        # Assume that if we have lstat, we can also check symlinks.
68298        if test $ac_cv_func_lstat = yes; then
68299          ln -s conftest.tmp conftest.lnk
68300        fi
68301        if test "$cross_compiling" = yes; then :
68302   case "$host_os" in
68303                     # Guess yes on glibc systems.
68304             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
68305                     # If we don't know, assume the worst.
68306             *)      gl_cv_func_stat_file_slash="guessing no" ;;
68307           esac
68308
68309 else
68310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68311 /* end confdefs.h.  */
68312 #include <sys/stat.h>
68313
68314 int
68315 main ()
68316 {
68317 int result = 0;
68318       struct stat st;
68319       if (!stat ("conftest.tmp/", &st))
68320         result |= 1;
68321 #if HAVE_LSTAT
68322       if (!stat ("conftest.lnk/", &st))
68323         result |= 2;
68324 #endif
68325       return result;
68326
68327   ;
68328   return 0;
68329 }
68330 _ACEOF
68331 if ac_fn_c_try_run "$LINENO"; then :
68332   gl_cv_func_stat_file_slash=yes
68333 else
68334   gl_cv_func_stat_file_slash=no
68335 fi
68336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68337   conftest.$ac_objext conftest.beam conftest.$ac_ext
68338 fi
68339
68340        rm -f conftest.tmp conftest.lnk
68341 fi
68342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
68343 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
68344   case $gl_cv_func_stat_dir_slash in
68345     *no) REPLACE_STAT=1
68346
68347 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
68348 ;;
68349   esac
68350   case $gl_cv_func_stat_file_slash in
68351     *no) REPLACE_STAT=1
68352
68353 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
68354 ;;
68355   esac
68356
68357   if test $REPLACE_STAT = 1; then
68358
68359
68360
68361
68362
68363
68364
68365
68366   gtpo_LIBOBJS="$gtpo_LIBOBJS stat.$ac_objext"
68367
68368     :
68369   fi
68370
68371
68372
68373
68374
68375           GNULIB_STAT=1
68376
68377
68378
68379
68380
68381 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
68382
68383
68384
68385
68386   STDARG_H=''
68387   NEXT_STDARG_H='<stdarg.h>'
68388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
68389 $as_echo_n "checking for va_copy... " >&6; }
68390   if ${gl_cv_func_va_copy+:} false; then :
68391   $as_echo_n "(cached) " >&6
68392 else
68393
68394     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68395 /* end confdefs.h.  */
68396 #include <stdarg.h>
68397 int
68398 main ()
68399 {
68400
68401 #ifndef va_copy
68402 void (*func) (va_list, va_list) = va_copy;
68403 #endif
68404
68405   ;
68406   return 0;
68407 }
68408 _ACEOF
68409 if ac_fn_c_try_compile "$LINENO"; then :
68410   gl_cv_func_va_copy=yes
68411 else
68412   gl_cv_func_va_copy=no
68413 fi
68414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68415 fi
68416
68417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
68418 $as_echo "$gl_cv_func_va_copy" >&6; }
68419   if test $gl_cv_func_va_copy = no; then
68420                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68421 /* end confdefs.h.  */
68422 #if defined _AIX && !defined __GNUC__
68423         AIX vaccine
68424        #endif
68425
68426 _ACEOF
68427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68428   $EGREP "vaccine" >/dev/null 2>&1; then :
68429   gl_aixcc=yes
68430 else
68431   gl_aixcc=no
68432 fi
68433 rm -f conftest*
68434
68435     if test $gl_aixcc = yes; then
68436             STDARG_H=stdarg.h
68437
68438
68439
68440
68441
68442
68443
68444
68445      if test $gl_cv_have_include_next = yes; then
68446        gl_cv_next_stdarg_h='<'stdarg.h'>'
68447      else
68448        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
68449 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
68450 if ${gl_cv_next_stdarg_h+:} false; then :
68451   $as_echo_n "(cached) " >&6
68452 else
68453
68454
68455
68456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68457 /* end confdefs.h.  */
68458 #include <stdarg.h>
68459 _ACEOF
68460                 case "$host_os" in
68461     aix*) gl_absname_cpp="$ac_cpp -C" ;;
68462     *)    gl_absname_cpp="$ac_cpp" ;;
68463   esac
68464
68465   case "$host_os" in
68466     mingw*)
68467                                           gl_dirsep_regex='[/\\]'
68468       ;;
68469     *)
68470       gl_dirsep_regex='\/'
68471       ;;
68472   esac
68473       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
68474   gl_header_literal_regex=`echo 'stdarg.h' \
68475                            | sed -e "$gl_make_literal_regex_sed"`
68476   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
68477       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
68478       s|^/[^/]|//&|
68479       p
68480       q
68481     }'
68482
68483         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
68484   sed -n "$gl_absolute_header_sed"`
68485
68486            gl_header=$gl_cv_absolute_stdarg_h
68487            gl_cv_next_stdarg_h='"'$gl_header'"'
68488
68489
68490 fi
68491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
68492 $as_echo "$gl_cv_next_stdarg_h" >&6; }
68493      fi
68494      NEXT_STDARG_H=$gl_cv_next_stdarg_h
68495
68496      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
68497        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
68498        gl_next_as_first_directive='<'stdarg.h'>'
68499      else
68500        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
68501        gl_next_as_first_directive=$gl_cv_next_stdarg_h
68502      fi
68503      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
68504
68505
68506
68507
68508             if test "$gl_cv_next_stdarg_h" = '""'; then
68509         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
68510         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
68511       fi
68512     else
68513
68514   saved_as_echo_n="$as_echo_n"
68515   as_echo_n=':'
68516   if ${gl_cv_func___va_copy+:} false; then :
68517   $as_echo_n "(cached) " >&6
68518 else
68519
68520         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68521 /* end confdefs.h.  */
68522 #include <stdarg.h>
68523 int
68524 main ()
68525 {
68526
68527 #ifndef __va_copy
68528 error, bail out
68529 #endif
68530
68531   ;
68532   return 0;
68533 }
68534 _ACEOF
68535 if ac_fn_c_try_compile "$LINENO"; then :
68536   gl_cv_func___va_copy=yes
68537 else
68538   gl_cv_func___va_copy=no
68539 fi
68540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68541 fi
68542
68543   as_echo_n="$saved_as_echo_n"
68544
68545       if test $gl_cv_func___va_copy = yes; then
68546
68547 $as_echo "#define va_copy __va_copy" >>confdefs.h
68548
68549       else
68550
68551
68552 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
68553
68554       fi
68555     fi
68556   fi
68557
68558    if test -n "$STDARG_H"; then
68559   GL_GENERATE_STDARG_H_TRUE=
68560   GL_GENERATE_STDARG_H_FALSE='#'
68561 else
68562   GL_GENERATE_STDARG_H_TRUE='#'
68563   GL_GENERATE_STDARG_H_FALSE=
68564 fi
68565
68566
68567
68568
68569
68570
68571   # Define two additional variables used in the Makefile substitution.
68572
68573   if test "$ac_cv_header_stdbool_h" = yes; then
68574     STDBOOL_H=''
68575   else
68576     STDBOOL_H='stdbool.h'
68577   fi
68578
68579    if test -n "$STDBOOL_H"; then
68580   GL_GENERATE_STDBOOL_H_TRUE=
68581   GL_GENERATE_STDBOOL_H_FALSE='#'
68582 else
68583   GL_GENERATE_STDBOOL_H_TRUE='#'
68584   GL_GENERATE_STDBOOL_H_FALSE=
68585 fi
68586
68587
68588   if test "$ac_cv_type__Bool" = yes; then
68589     HAVE__BOOL=1
68590   else
68591     HAVE__BOOL=0
68592   fi
68593
68594
68595
68596
68597
68598   STDDEF_H=
68599   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
68600
68601 "
68602 if test "x$ac_cv_type_max_align_t" = xyes; then :
68603
68604 else
68605   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
68606 fi
68607
68608   if test $gt_cv_c_wchar_t = no; then
68609     HAVE_WCHAR_T=0
68610     STDDEF_H=stddef.h
68611   fi
68612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
68613 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
68614 if ${gl_cv_decl_null_works+:} false; then :
68615   $as_echo_n "(cached) " >&6
68616 else
68617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68618 /* end confdefs.h.  */
68619 #include <stddef.h>
68620       int test[2 * (sizeof NULL == sizeof (void *)) -1];
68621
68622 int
68623 main ()
68624 {
68625
68626   ;
68627   return 0;
68628 }
68629 _ACEOF
68630 if ac_fn_c_try_compile "$LINENO"; then :
68631   gl_cv_decl_null_works=yes
68632 else
68633   gl_cv_decl_null_works=no
68634 fi
68635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68636 fi
68637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
68638 $as_echo "$gl_cv_decl_null_works" >&6; }
68639   if test $gl_cv_decl_null_works = no; then
68640     REPLACE_NULL=1
68641     STDDEF_H=stddef.h
68642   fi
68643
68644    if test -n "$STDDEF_H"; then
68645   GL_GENERATE_STDDEF_H_TRUE=
68646   GL_GENERATE_STDDEF_H_FALSE='#'
68647 else
68648   GL_GENERATE_STDDEF_H_TRUE='#'
68649   GL_GENERATE_STDDEF_H_FALSE=
68650 fi
68651
68652   if test -n "$STDDEF_H"; then
68653
68654
68655
68656
68657
68658
68659
68660
68661      if test $gl_cv_have_include_next = yes; then
68662        gl_cv_next_stddef_h='<'stddef.h'>'
68663      else
68664        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
68665 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
68666 if ${gl_cv_next_stddef_h+:} false; then :
68667   $as_echo_n "(cached) " >&6
68668 else
68669
68670
68671
68672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68673 /* end confdefs.h.  */
68674 #include <stddef.h>
68675 _ACEOF
68676                 case "$host_os" in
68677     aix*) gl_absname_cpp="$ac_cpp -C" ;;
68678     *)    gl_absname_cpp="$ac_cpp" ;;
68679   esac
68680
68681   case "$host_os" in
68682     mingw*)
68683                                           gl_dirsep_regex='[/\\]'
68684       ;;
68685     *)
68686       gl_dirsep_regex='\/'
68687       ;;
68688   esac
68689       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
68690   gl_header_literal_regex=`echo 'stddef.h' \
68691                            | sed -e "$gl_make_literal_regex_sed"`
68692   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
68693       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
68694       s|^/[^/]|//&|
68695       p
68696       q
68697     }'
68698
68699         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
68700   sed -n "$gl_absolute_header_sed"`
68701
68702            gl_header=$gl_cv_absolute_stddef_h
68703            gl_cv_next_stddef_h='"'$gl_header'"'
68704
68705
68706 fi
68707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
68708 $as_echo "$gl_cv_next_stddef_h" >&6; }
68709      fi
68710      NEXT_STDDEF_H=$gl_cv_next_stddef_h
68711
68712      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
68713        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
68714        gl_next_as_first_directive='<'stddef.h'>'
68715      else
68716        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
68717        gl_next_as_first_directive=$gl_cv_next_stddef_h
68718      fi
68719      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
68720
68721
68722
68723
68724   fi
68725
68726
68727
68728
68729
68730
68731
68732
68733
68734
68735
68736
68737
68738
68739      if test $gl_cv_have_include_next = yes; then
68740        gl_cv_next_stdio_h='<'stdio.h'>'
68741      else
68742        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
68743 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
68744 if ${gl_cv_next_stdio_h+:} false; then :
68745   $as_echo_n "(cached) " >&6
68746 else
68747
68748
68749
68750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68751 /* end confdefs.h.  */
68752 #include <stdio.h>
68753 _ACEOF
68754                 case "$host_os" in
68755     aix*) gl_absname_cpp="$ac_cpp -C" ;;
68756     *)    gl_absname_cpp="$ac_cpp" ;;
68757   esac
68758
68759   case "$host_os" in
68760     mingw*)
68761                                           gl_dirsep_regex='[/\\]'
68762       ;;
68763     *)
68764       gl_dirsep_regex='\/'
68765       ;;
68766   esac
68767       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
68768   gl_header_literal_regex=`echo 'stdio.h' \
68769                            | sed -e "$gl_make_literal_regex_sed"`
68770   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
68771       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
68772       s|^/[^/]|//&|
68773       p
68774       q
68775     }'
68776
68777         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
68778   sed -n "$gl_absolute_header_sed"`
68779
68780            gl_header=$gl_cv_absolute_stdio_h
68781            gl_cv_next_stdio_h='"'$gl_header'"'
68782
68783
68784 fi
68785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
68786 $as_echo "$gl_cv_next_stdio_h" >&6; }
68787      fi
68788      NEXT_STDIO_H=$gl_cv_next_stdio_h
68789
68790      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
68791        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
68792        gl_next_as_first_directive='<'stdio.h'>'
68793      else
68794        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
68795        gl_next_as_first_directive=$gl_cv_next_stdio_h
68796      fi
68797      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
68798
68799
68800
68801
68802
68803         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
68804 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
68805 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
68806   $as_echo_n "(cached) " >&6
68807 else
68808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68809 /* end confdefs.h.  */
68810
68811        #define __STDC_FORMAT_MACROS 1
68812        #include <stdio.h>
68813        #include <inttypes.h>
68814        /* For non-mingw systems, compilation will trivially succeed.
68815           For mingw, compilation will succeed for older mingw (system
68816           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
68817        #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
68818          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
68819        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
68820        #endif
68821
68822 int
68823 main ()
68824 {
68825
68826   ;
68827   return 0;
68828 }
68829 _ACEOF
68830 if ac_fn_c_try_compile "$LINENO"; then :
68831   gl_cv_func_printf_attribute_flavor=system
68832 else
68833   gl_cv_func_printf_attribute_flavor=gnu
68834 fi
68835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68836 fi
68837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
68838 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
68839   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
68840
68841 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
68842
68843   fi
68844
68845       GNULIB_FSCANF=1
68846
68847
68848 cat >>confdefs.h <<_ACEOF
68849 #define GNULIB_FSCANF 1
68850 _ACEOF
68851
68852
68853   GNULIB_SCANF=1
68854
68855
68856 cat >>confdefs.h <<_ACEOF
68857 #define GNULIB_SCANF 1
68858 _ACEOF
68859
68860
68861   GNULIB_FGETC=1
68862   GNULIB_GETC=1
68863   GNULIB_GETCHAR=1
68864   GNULIB_FGETS=1
68865   GNULIB_FREAD=1
68866
68867
68868       GNULIB_FPRINTF=1
68869   GNULIB_PRINTF=1
68870   GNULIB_VFPRINTF=1
68871   GNULIB_VPRINTF=1
68872   GNULIB_FPUTC=1
68873   GNULIB_PUTC=1
68874   GNULIB_PUTCHAR=1
68875   GNULIB_FPUTS=1
68876   GNULIB_PUTS=1
68877   GNULIB_FWRITE=1
68878
68879
68880
68881
68882     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
68883       REPLACE_STDIO_WRITE_FUNCS=1
68884
68885
68886
68887
68888
68889
68890
68891
68892   gtpo_LIBOBJS="$gtpo_LIBOBJS stdio-write.$ac_objext"
68893
68894     fi
68895
68896
68897
68898
68899     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
68900     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
68901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
68902 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
68903 if eval \${$as_gl_Symbol+:} false; then :
68904   $as_echo_n "(cached) " >&6
68905 else
68906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68907 /* end confdefs.h.  */
68908 #include <stdio.h>
68909
68910 int
68911 main ()
68912 {
68913 #undef $gl_func
68914   (void) $gl_func;
68915   ;
68916   return 0;
68917 }
68918 _ACEOF
68919 if ac_fn_c_try_compile "$LINENO"; then :
68920   eval "$as_gl_Symbol=yes"
68921 else
68922   eval "$as_gl_Symbol=no"
68923 fi
68924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68925 fi
68926 eval ac_res=\$$as_gl_Symbol
68927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
68928 $as_echo "$ac_res" >&6; }
68929     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
68930   cat >>confdefs.h <<_ACEOF
68931 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
68932 _ACEOF
68933
68934                      eval ac_cv_have_decl_$gl_func=yes
68935 fi
68936       done
68937
68938
68939
68940
68941
68942
68943
68944
68945
68946
68947
68948
68949      if test $gl_cv_have_include_next = yes; then
68950        gl_cv_next_stdlib_h='<'stdlib.h'>'
68951      else
68952        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
68953 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
68954 if ${gl_cv_next_stdlib_h+:} false; then :
68955   $as_echo_n "(cached) " >&6
68956 else
68957
68958
68959
68960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68961 /* end confdefs.h.  */
68962 #include <stdlib.h>
68963 _ACEOF
68964                 case "$host_os" in
68965     aix*) gl_absname_cpp="$ac_cpp -C" ;;
68966     *)    gl_absname_cpp="$ac_cpp" ;;
68967   esac
68968
68969   case "$host_os" in
68970     mingw*)
68971                                           gl_dirsep_regex='[/\\]'
68972       ;;
68973     *)
68974       gl_dirsep_regex='\/'
68975       ;;
68976   esac
68977       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
68978   gl_header_literal_regex=`echo 'stdlib.h' \
68979                            | sed -e "$gl_make_literal_regex_sed"`
68980   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
68981       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
68982       s|^/[^/]|//&|
68983       p
68984       q
68985     }'
68986
68987         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
68988   sed -n "$gl_absolute_header_sed"`
68989
68990            gl_header=$gl_cv_absolute_stdlib_h
68991            gl_cv_next_stdlib_h='"'$gl_header'"'
68992
68993
68994 fi
68995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
68996 $as_echo "$gl_cv_next_stdlib_h" >&6; }
68997      fi
68998      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
68999
69000      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
69001        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
69002        gl_next_as_first_directive='<'stdlib.h'>'
69003      else
69004        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
69005        gl_next_as_first_directive=$gl_cv_next_stdlib_h
69006      fi
69007      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
69008
69009
69010
69011
69012
69013
69014     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
69015     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
69016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
69017 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
69018 if eval \${$as_gl_Symbol+:} false; then :
69019   $as_echo_n "(cached) " >&6
69020 else
69021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69022 /* end confdefs.h.  */
69023 #include <stdlib.h>
69024 #if HAVE_SYS_LOADAVG_H
69025 # include <sys/loadavg.h>
69026 #endif
69027 #if HAVE_RANDOM_H
69028 # include <random.h>
69029 #endif
69030
69031 int
69032 main ()
69033 {
69034 #undef $gl_func
69035   (void) $gl_func;
69036   ;
69037   return 0;
69038 }
69039 _ACEOF
69040 if ac_fn_c_try_compile "$LINENO"; then :
69041   eval "$as_gl_Symbol=yes"
69042 else
69043   eval "$as_gl_Symbol=no"
69044 fi
69045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69046 fi
69047 eval ac_res=\$$as_gl_Symbol
69048                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
69049 $as_echo "$ac_res" >&6; }
69050     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
69051   cat >>confdefs.h <<_ACEOF
69052 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
69053 _ACEOF
69054
69055                      eval ac_cv_have_decl_$gl_func=yes
69056 fi
69057       done
69058
69059
69060
69061
69062
69063
69064
69065
69066   for ac_func in stpcpy
69067 do :
69068   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
69069 if test "x$ac_cv_func_stpcpy" = xyes; then :
69070   cat >>confdefs.h <<_ACEOF
69071 #define HAVE_STPCPY 1
69072 _ACEOF
69073
69074 fi
69075 done
69076
69077   if test $ac_cv_func_stpcpy = no; then
69078     HAVE_STPCPY=0
69079   fi
69080
69081   if test $HAVE_STPCPY = 0; then
69082
69083
69084
69085
69086
69087
69088
69089
69090   gtpo_LIBOBJS="$gtpo_LIBOBJS stpcpy.$ac_objext"
69091
69092
69093   :
69094
69095   fi
69096
69097
69098
69099
69100
69101           GNULIB_STPCPY=1
69102
69103
69104
69105
69106
69107 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
69108
69109
69110
69111
69112
69113
69114
69115
69116
69117
69118
69119
69120
69121   if test $ac_cv_func_stpncpy = yes; then
69122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stpncpy" >&5
69123 $as_echo_n "checking for working stpncpy... " >&6; }
69124 if ${gl_cv_func_stpncpy+:} false; then :
69125   $as_echo_n "(cached) " >&6
69126 else
69127
69128       if test "$cross_compiling" = yes; then :
69129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69130 /* end confdefs.h.  */
69131
69132 #include <features.h>
69133 #ifdef __GNU_LIBRARY__
69134   Thanks for using GNU
69135 #endif
69136
69137 _ACEOF
69138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69139   $EGREP "Thanks for using GNU" >/dev/null 2>&1; then :
69140   gl_cv_func_stpncpy="guessing yes"
69141 else
69142   gl_cv_func_stpncpy="guessing no"
69143 fi
69144 rm -f conftest*
69145
69146
69147 else
69148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69149 /* end confdefs.h.  */
69150
69151 #include <stdlib.h>
69152 #include <string.h> /* for strcpy */
69153 /* The stpncpy prototype is missing in <string.h> on AIX 4.  */
69154 #if !HAVE_DECL_STPNCPY
69155 extern
69156 # ifdef __cplusplus
69157 "C"
69158 # endif
69159 char *stpncpy (char *dest, const char *src, size_t n);
69160 #endif
69161 int main ()
69162 {
69163   int result = 0;
69164   const char *src = "Hello";
69165   char dest[10];
69166   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here.  */
69167   {
69168     strcpy (dest, "\377\377\377\377\377\377");
69169     if (stpncpy (dest, src, 2) != dest + 2)
69170       result |= 1;
69171   }
69172   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here.  */
69173   {
69174     strcpy (dest, "\377\377\377\377\377\377");
69175     if (stpncpy (dest, src, 5) != dest + 5)
69176       result |= 2;
69177   }
69178   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here.  */
69179   {
69180     strcpy (dest, "\377\377\377\377\377\377");
69181     if (stpncpy (dest, src, 7) != dest + 5)
69182       result |= 4;
69183   }
69184   return result;
69185 }
69186
69187 _ACEOF
69188 if ac_fn_c_try_run "$LINENO"; then :
69189   gl_cv_func_stpncpy=yes
69190 else
69191   gl_cv_func_stpncpy=no
69192 fi
69193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
69194   conftest.$ac_objext conftest.beam conftest.$ac_ext
69195 fi
69196
69197
69198 fi
69199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stpncpy" >&5
69200 $as_echo "$gl_cv_func_stpncpy" >&6; }
69201     case "$gl_cv_func_stpncpy" in
69202       *yes)
69203
69204 $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h
69205
69206         ;;
69207       *)
69208         REPLACE_STPNCPY=1
69209         ;;
69210     esac
69211   else
69212     HAVE_STPNCPY=0
69213   fi
69214
69215   if test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1; then
69216
69217
69218
69219
69220
69221
69222
69223
69224   gtpo_LIBOBJS="$gtpo_LIBOBJS stpncpy.$ac_objext"
69225
69226
69227   :
69228
69229   fi
69230
69231
69232
69233
69234
69235           GNULIB_STPNCPY=1
69236
69237
69238
69239
69240
69241 $as_echo "#define GNULIB_TEST_STPNCPY 1" >>confdefs.h
69242
69243
69244
69245
69246
69247
69248
69249   for ac_func in strchrnul
69250 do :
69251   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
69252 if test "x$ac_cv_func_strchrnul" = xyes; then :
69253   cat >>confdefs.h <<_ACEOF
69254 #define HAVE_STRCHRNUL 1
69255 _ACEOF
69256
69257 fi
69258 done
69259
69260   if test $ac_cv_func_strchrnul = no; then
69261     HAVE_STRCHRNUL=0
69262   else
69263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
69264 $as_echo_n "checking whether strchrnul works... " >&6; }
69265 if ${gl_cv_func_strchrnul_works+:} false; then :
69266   $as_echo_n "(cached) " >&6
69267 else
69268   if test "$cross_compiling" = yes; then :
69269            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69270 /* end confdefs.h.  */
69271
69272 #if defined __CYGWIN__
69273  #include <cygwin/version.h>
69274  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
69275   Lucky user
69276  #endif
69277 #else
69278   Lucky user
69279 #endif
69280
69281 _ACEOF
69282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69283   $EGREP "Lucky user" >/dev/null 2>&1; then :
69284   gl_cv_func_strchrnul_works="guessing yes"
69285 else
69286   gl_cv_func_strchrnul_works="guessing no"
69287 fi
69288 rm -f conftest*
69289
69290
69291 else
69292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69293 /* end confdefs.h.  */
69294
69295 #include <string.h> /* for strchrnul */
69296
69297 int
69298 main ()
69299 {
69300 const char *buf = "a";
69301       return strchrnul (buf, 'b') != buf + 1;
69302
69303   ;
69304   return 0;
69305 }
69306 _ACEOF
69307 if ac_fn_c_try_run "$LINENO"; then :
69308   gl_cv_func_strchrnul_works=yes
69309 else
69310   gl_cv_func_strchrnul_works=no
69311 fi
69312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
69313   conftest.$ac_objext conftest.beam conftest.$ac_ext
69314 fi
69315
69316
69317 fi
69318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
69319 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
69320     case "$gl_cv_func_strchrnul_works" in
69321       *yes) ;;
69322       *) REPLACE_STRCHRNUL=1 ;;
69323     esac
69324   fi
69325
69326   if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
69327
69328
69329
69330
69331
69332
69333
69334
69335   gtpo_LIBOBJS="$gtpo_LIBOBJS strchrnul.$ac_objext"
69336
69337     :
69338   fi
69339
69340
69341
69342
69343
69344           GNULIB_STRCHRNUL=1
69345
69346
69347
69348
69349
69350 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
69351
69352
69353
69354
69355
69356
69357
69358
69359   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
69360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
69361 $as_echo_n "checking for working strerror function... " >&6; }
69362 if ${gl_cv_func_working_strerror+:} false; then :
69363   $as_echo_n "(cached) " >&6
69364 else
69365   if test "$cross_compiling" = yes; then :
69366   case "$host_os" in
69367                    # Guess yes on glibc systems.
69368            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
69369                    # If we don't know, assume the worst.
69370            *)      gl_cv_func_working_strerror="guessing no" ;;
69371          esac
69372
69373 else
69374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69375 /* end confdefs.h.  */
69376 #include <string.h>
69377
69378 int
69379 main ()
69380 {
69381 if (!*strerror (-2)) return 1;
69382   ;
69383   return 0;
69384 }
69385 _ACEOF
69386 if ac_fn_c_try_run "$LINENO"; then :
69387   gl_cv_func_working_strerror=yes
69388 else
69389   gl_cv_func_working_strerror=no
69390 fi
69391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
69392   conftest.$ac_objext conftest.beam conftest.$ac_ext
69393 fi
69394
69395
69396 fi
69397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
69398 $as_echo "$gl_cv_func_working_strerror" >&6; }
69399     case "$gl_cv_func_working_strerror" in
69400       *yes) ;;
69401       *)
69402                         REPLACE_STRERROR=1
69403         ;;
69404     esac
69405
69406   else
69407             REPLACE_STRERROR=1
69408   fi
69409
69410   if test $REPLACE_STRERROR = 1; then
69411
69412
69413
69414
69415
69416
69417
69418
69419   gtpo_LIBOBJS="$gtpo_LIBOBJS strerror.$ac_objext"
69420
69421   fi
69422
69423
69424 cat >>confdefs.h <<_ACEOF
69425 #define GNULIB_STRERROR 1
69426 _ACEOF
69427
69428
69429
69430
69431
69432
69433
69434           GNULIB_STRERROR=1
69435
69436
69437
69438
69439
69440 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
69441
69442
69443
69444
69445
69446   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
69447
69448
69449
69450
69451
69452
69453
69454
69455   gtpo_LIBOBJS="$gtpo_LIBOBJS strerror-override.$ac_objext"
69456
69457
69458
69459
69460
69461   if test $ac_cv_header_sys_socket_h != yes; then
69462                     for ac_header in winsock2.h
69463 do :
69464   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
69465 if test "x$ac_cv_header_winsock2_h" = xyes; then :
69466   cat >>confdefs.h <<_ACEOF
69467 #define HAVE_WINSOCK2_H 1
69468 _ACEOF
69469
69470 fi
69471
69472 done
69473
69474   fi
69475   if test "$ac_cv_header_winsock2_h" = yes; then
69476     HAVE_WINSOCK2_H=1
69477     UNISTD_H_HAVE_WINSOCK2_H=1
69478     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
69479   else
69480     HAVE_WINSOCK2_H=0
69481   fi
69482
69483
69484   fi
69485   if test $gl_cond_libtool = false; then
69486     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
69487     gl_libdeps="$gl_libdeps $LIBICONV"
69488   fi
69489   if test $gl_cond_libtool = false; then
69490     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
69491     gl_libdeps="$gl_libdeps $LIBICONV"
69492   fi
69493
69494
69495
69496
69497
69498   if test $REPLACE_STRSTR = 0; then
69499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
69500 $as_echo_n "checking whether strstr works in linear time... " >&6; }
69501 if ${gl_cv_func_strstr_linear+:} false; then :
69502   $as_echo_n "(cached) " >&6
69503 else
69504   if test "$cross_compiling" = yes; then :
69505                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69506 /* end confdefs.h.  */
69507
69508 #include <features.h>
69509 #ifdef __GNU_LIBRARY__
69510  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
69511      && !(defined __i386__ || defined __x86_64__) \
69512      && !defined __UCLIBC__
69513   Lucky user
69514  #endif
69515 #endif
69516 #ifdef __CYGWIN__
69517  #include <cygwin/version.h>
69518  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
69519   Lucky user
69520  #endif
69521 #endif
69522
69523 _ACEOF
69524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69525   $EGREP "Lucky user" >/dev/null 2>&1; then :
69526   gl_cv_func_strstr_linear="guessing yes"
69527 else
69528   gl_cv_func_strstr_linear="guessing no"
69529 fi
69530 rm -f conftest*
69531
69532
69533 else
69534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69535 /* end confdefs.h.  */
69536
69537 #include <signal.h> /* for signal */
69538 #include <string.h> /* for strstr */
69539 #include <stdlib.h> /* for malloc */
69540 #include <unistd.h> /* for alarm */
69541 static void quit (int sig) { _exit (sig + 128); }
69542
69543 int
69544 main ()
69545 {
69546
69547     int result = 0;
69548     size_t m = 1000000;
69549     char *haystack = (char *) malloc (2 * m + 2);
69550     char *needle = (char *) malloc (m + 2);
69551     /* Failure to compile this test due to missing alarm is okay,
69552        since all such platforms (mingw) also have quadratic strstr.  */
69553     signal (SIGALRM, quit);
69554     alarm (5);
69555     /* Check for quadratic performance.  */
69556     if (haystack && needle)
69557       {
69558         memset (haystack, 'A', 2 * m);
69559         haystack[2 * m] = 'B';
69560         haystack[2 * m + 1] = 0;
69561         memset (needle, 'A', m);
69562         needle[m] = 'B';
69563         needle[m + 1] = 0;
69564         if (!strstr (haystack, needle))
69565           result |= 1;
69566       }
69567     return result;
69568
69569   ;
69570   return 0;
69571 }
69572 _ACEOF
69573 if ac_fn_c_try_run "$LINENO"; then :
69574   gl_cv_func_strstr_linear=yes
69575 else
69576   gl_cv_func_strstr_linear=no
69577 fi
69578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
69579   conftest.$ac_objext conftest.beam conftest.$ac_ext
69580 fi
69581
69582
69583 fi
69584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
69585 $as_echo "$gl_cv_func_strstr_linear" >&6; }
69586     case "$gl_cv_func_strstr_linear" in
69587       *yes) ;;
69588       *)
69589         REPLACE_STRSTR=1
69590         ;;
69591     esac
69592   fi
69593
69594   if test $REPLACE_STRSTR = 1; then
69595
69596
69597
69598
69599
69600
69601
69602
69603   gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
69604
69605   fi
69606
69607
69608
69609   if test "$gl_cv_func_memchr_works" != yes; then
69610     REPLACE_STRSTR=1
69611   else
69612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
69613 $as_echo_n "checking whether strstr works... " >&6; }
69614 if ${gl_cv_func_strstr_works_always+:} false; then :
69615   $as_echo_n "(cached) " >&6
69616 else
69617   if test "$cross_compiling" = yes; then :
69618                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69619 /* end confdefs.h.  */
69620
69621 #ifdef __GNU_LIBRARY__
69622  #include <features.h>
69623  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
69624      || defined __UCLIBC__
69625   Lucky user
69626  #endif
69627 #elif defined __CYGWIN__
69628  #include <cygwin/version.h>
69629  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
69630   Lucky user
69631  #endif
69632 #else
69633   Lucky user
69634 #endif
69635
69636 _ACEOF
69637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69638   $EGREP "Lucky user" >/dev/null 2>&1; then :
69639   gl_cv_func_strstr_works_always="guessing yes"
69640 else
69641   gl_cv_func_strstr_works_always="guessing no"
69642 fi
69643 rm -f conftest*
69644
69645
69646 else
69647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69648 /* end confdefs.h.  */
69649
69650 #include <string.h> /* for strstr */
69651 #define P "_EF_BF_BD"
69652 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
69653 #define NEEDLE P P P P P
69654
69655 int
69656 main ()
69657 {
69658 return !!strstr (HAYSTACK, NEEDLE);
69659
69660   ;
69661   return 0;
69662 }
69663 _ACEOF
69664 if ac_fn_c_try_run "$LINENO"; then :
69665   gl_cv_func_strstr_works_always=yes
69666 else
69667   gl_cv_func_strstr_works_always=no
69668 fi
69669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
69670   conftest.$ac_objext conftest.beam conftest.$ac_ext
69671 fi
69672
69673
69674 fi
69675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
69676 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
69677     case "$gl_cv_func_strstr_works_always" in
69678       *yes) ;;
69679       *)
69680         REPLACE_STRSTR=1
69681         ;;
69682     esac
69683   fi
69684
69685   if test $REPLACE_STRSTR = 1; then
69686
69687
69688
69689
69690
69691
69692
69693
69694   gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
69695
69696   fi
69697
69698
69699
69700
69701
69702           GNULIB_STRSTR=1
69703
69704
69705
69706
69707
69708 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
69709
69710
69711
69712
69713
69714
69715
69716
69717
69718
69719
69720
69721
69722
69723
69724
69725
69726      if test $gl_cv_have_include_next = yes; then
69727        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
69728      else
69729        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
69730 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
69731 if ${gl_cv_next_sys_stat_h+:} false; then :
69732   $as_echo_n "(cached) " >&6
69733 else
69734
69735              if test $ac_cv_header_sys_stat_h = yes; then
69736
69737
69738
69739
69740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69741 /* end confdefs.h.  */
69742 #include <sys/stat.h>
69743 _ACEOF
69744                 case "$host_os" in
69745     aix*) gl_absname_cpp="$ac_cpp -C" ;;
69746     *)    gl_absname_cpp="$ac_cpp" ;;
69747   esac
69748
69749   case "$host_os" in
69750     mingw*)
69751                                           gl_dirsep_regex='[/\\]'
69752       ;;
69753     *)
69754       gl_dirsep_regex='\/'
69755       ;;
69756   esac
69757       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
69758   gl_header_literal_regex=`echo 'sys/stat.h' \
69759                            | sed -e "$gl_make_literal_regex_sed"`
69760   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
69761       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
69762       s|^/[^/]|//&|
69763       p
69764       q
69765     }'
69766
69767         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
69768   sed -n "$gl_absolute_header_sed"`
69769
69770            gl_header=$gl_cv_absolute_sys_stat_h
69771            gl_cv_next_sys_stat_h='"'$gl_header'"'
69772           else
69773                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
69774              fi
69775
69776
69777 fi
69778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
69779 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
69780      fi
69781      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
69782
69783      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
69784        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
69785        gl_next_as_first_directive='<'sys/stat.h'>'
69786      else
69787        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
69788        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
69789      fi
69790      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
69791
69792
69793
69794
69795
69796
69797
69798
69799
69800
69801
69802   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
69803
69804 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
69805
69806   fi
69807
69808       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
69809      #include <sys/stat.h>
69810 "
69811 if test "x$ac_cv_type_nlink_t" = xyes; then :
69812
69813 else
69814
69815 $as_echo "#define nlink_t int" >>confdefs.h
69816
69817 fi
69818
69819
69820
69821     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
69822     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
69823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
69824 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
69825 if eval \${$as_gl_Symbol+:} false; then :
69826   $as_echo_n "(cached) " >&6
69827 else
69828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69829 /* end confdefs.h.  */
69830 #include <sys/stat.h>
69831
69832 int
69833 main ()
69834 {
69835 #undef $gl_func
69836   (void) $gl_func;
69837   ;
69838   return 0;
69839 }
69840 _ACEOF
69841 if ac_fn_c_try_compile "$LINENO"; then :
69842   eval "$as_gl_Symbol=yes"
69843 else
69844   eval "$as_gl_Symbol=no"
69845 fi
69846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69847 fi
69848 eval ac_res=\$$as_gl_Symbol
69849                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
69850 $as_echo "$ac_res" >&6; }
69851     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
69852   cat >>confdefs.h <<_ACEOF
69853 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
69854 _ACEOF
69855
69856                      eval ac_cv_have_decl_$gl_func=yes
69857 fi
69858       done
69859
69860
69861
69862
69863
69864
69865
69866
69867
69868
69869
69870
69871
69872
69873
69874
69875
69876
69877
69878
69879
69880       if  { test "$HAVE_LIBUNISTRING" != yes \
69881     || {
69882
69883
69884
69885             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69886             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69887                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69888                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69889                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
69890                          }
69891                     }
69892                }
69893
69894
69895
69896
69897        }
69898   }; then
69899     LIBUNISTRING_UNICONV_H='uniconv.h'
69900   else
69901     LIBUNISTRING_UNICONV_H=
69902   fi
69903
69904
69905
69906
69907        if  { test "$HAVE_LIBUNISTRING" != yes \
69908     || {
69909
69910
69911
69912             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69913             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69914                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69915                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69916                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
69917                          }
69918                     }
69919                }
69920
69921
69922
69923
69924        }
69925   }; then
69926   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
69927   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
69928 else
69929   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
69930   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
69931 fi
69932
69933
69934
69935
69936       if  { test "$HAVE_LIBUNISTRING" != yes \
69937     || {
69938
69939
69940
69941             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69942             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69943                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69944                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69945                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
69946                          }
69947                     }
69948                }
69949
69950
69951
69952
69953        }
69954   }; then
69955     LIBUNISTRING_UNICTYPE_H='unictype.h'
69956   else
69957     LIBUNISTRING_UNICTYPE_H=
69958   fi
69959
69960
69961
69962
69963
69964        if  { test "$HAVE_LIBUNISTRING" != yes \
69965     || {
69966
69967
69968
69969             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69970             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69971                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69972                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69973                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
69974                          }
69975                     }
69976                }
69977
69978
69979
69980
69981        }
69982   }; then
69983   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_TRUE=
69984   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_FALSE='#'
69985 else
69986   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_TRUE='#'
69987   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_FALSE=
69988 fi
69989
69990
69991
69992
69993
69994        if  { test "$HAVE_LIBUNISTRING" != yes \
69995     || {
69996
69997
69998
69999             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70000             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70001                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70002                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70003                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
70004                          }
70005                     }
70006                }
70007
70008
70009
70010
70011        }
70012   }; then
70013   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE=
70014   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE='#'
70015 else
70016   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE='#'
70017   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE=
70018 fi
70019
70020
70021
70022
70023       if  { test "$HAVE_LIBUNISTRING" != yes \
70024     || {
70025
70026
70027
70028             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70029             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70030                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70031                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70032                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
70033                          }
70034                     }
70035                }
70036
70037
70038
70039
70040        }
70041   }; then
70042     LIBUNISTRING_UNILBRK_H='unilbrk.h'
70043   else
70044     LIBUNISTRING_UNILBRK_H=
70045   fi
70046
70047
70048
70049
70050
70051        if  { test "$HAVE_LIBUNISTRING" != yes \
70052     || {
70053
70054
70055
70056             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70057             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70058                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70059                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70060                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
70061                          }
70062                     }
70063                }
70064
70065
70066
70067
70068        }
70069   }; then
70070   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
70071   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
70072 else
70073   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
70074   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
70075 fi
70076
70077
70078
70079
70080        if  { test "$HAVE_LIBUNISTRING" != yes \
70081     || {
70082
70083
70084
70085             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70086             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70087                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70088                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70089                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
70090                          }
70091                     }
70092                }
70093
70094
70095
70096
70097        }
70098   }; then
70099   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
70100   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
70101 else
70102   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
70103   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
70104 fi
70105
70106
70107
70108
70109        if  { test "$HAVE_LIBUNISTRING" != yes \
70110     || {
70111
70112
70113
70114             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70115             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70116                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70117                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70118                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
70119                          }
70120                     }
70121                }
70122
70123
70124
70125
70126        }
70127   }; then
70128   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
70129   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
70130 else
70131   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
70132   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
70133 fi
70134
70135
70136
70137
70138
70139
70140
70141
70142
70143
70144
70145
70146
70147
70148      if test $gl_cv_have_include_next = yes; then
70149        gl_cv_next_unistd_h='<'unistd.h'>'
70150      else
70151        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
70152 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
70153 if ${gl_cv_next_unistd_h+:} false; then :
70154   $as_echo_n "(cached) " >&6
70155 else
70156
70157              if test $ac_cv_header_unistd_h = yes; then
70158
70159
70160
70161
70162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70163 /* end confdefs.h.  */
70164 #include <unistd.h>
70165 _ACEOF
70166                 case "$host_os" in
70167     aix*) gl_absname_cpp="$ac_cpp -C" ;;
70168     *)    gl_absname_cpp="$ac_cpp" ;;
70169   esac
70170
70171   case "$host_os" in
70172     mingw*)
70173                                           gl_dirsep_regex='[/\\]'
70174       ;;
70175     *)
70176       gl_dirsep_regex='\/'
70177       ;;
70178   esac
70179       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
70180   gl_header_literal_regex=`echo 'unistd.h' \
70181                            | sed -e "$gl_make_literal_regex_sed"`
70182   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
70183       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
70184       s|^/[^/]|//&|
70185       p
70186       q
70187     }'
70188
70189         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
70190   sed -n "$gl_absolute_header_sed"`
70191
70192            gl_header=$gl_cv_absolute_unistd_h
70193            gl_cv_next_unistd_h='"'$gl_header'"'
70194           else
70195                gl_cv_next_unistd_h='<'unistd.h'>'
70196              fi
70197
70198
70199 fi
70200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
70201 $as_echo "$gl_cv_next_unistd_h" >&6; }
70202      fi
70203      NEXT_UNISTD_H=$gl_cv_next_unistd_h
70204
70205      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
70206        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
70207        gl_next_as_first_directive='<'unistd.h'>'
70208      else
70209        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
70210        gl_next_as_first_directive=$gl_cv_next_unistd_h
70211      fi
70212      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
70213
70214
70215
70216
70217   if test $ac_cv_header_unistd_h = yes; then
70218     HAVE_UNISTD_H=1
70219   else
70220     HAVE_UNISTD_H=0
70221   fi
70222
70223
70224
70225
70226
70227
70228
70229     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
70230     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
70231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
70232 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
70233 if eval \${$as_gl_Symbol+:} false; then :
70234   $as_echo_n "(cached) " >&6
70235 else
70236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70237 /* end confdefs.h.  */
70238
70239 #if HAVE_UNISTD_H
70240 # include <unistd.h>
70241 #endif
70242 /* Some systems declare various items in the wrong headers.  */
70243 #if !(defined __GLIBC__ && !defined __UCLIBC__)
70244 # include <fcntl.h>
70245 # include <stdio.h>
70246 # include <stdlib.h>
70247 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
70248 #  include <io.h>
70249 # endif
70250 #endif
70251
70252 int
70253 main ()
70254 {
70255 #undef $gl_func
70256   (void) $gl_func;
70257   ;
70258   return 0;
70259 }
70260 _ACEOF
70261 if ac_fn_c_try_compile "$LINENO"; then :
70262   eval "$as_gl_Symbol=yes"
70263 else
70264   eval "$as_gl_Symbol=no"
70265 fi
70266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70267 fi
70268 eval ac_res=\$$as_gl_Symbol
70269                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
70270 $as_echo "$ac_res" >&6; }
70271     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
70272   cat >>confdefs.h <<_ACEOF
70273 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
70274 _ACEOF
70275
70276                      eval ac_cv_have_decl_$gl_func=yes
70277 fi
70278       done
70279
70280
70281
70282
70283       if  { test "$HAVE_LIBUNISTRING" != yes \
70284     || {
70285
70286
70287
70288             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70289             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70290                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70291                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70292                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
70293                          }
70294                     }
70295                }
70296
70297
70298
70299
70300        }
70301   }; then
70302     LIBUNISTRING_UNISTR_H='unistr.h'
70303   else
70304     LIBUNISTRING_UNISTR_H=
70305   fi
70306
70307
70308
70309
70310 cat >>confdefs.h <<_ACEOF
70311 #define GNULIB_UNISTR_U16_MBTOUC 1
70312 _ACEOF
70313
70314
70315
70316
70317        if  { test "$HAVE_LIBUNISTRING" != yes \
70318     || {
70319
70320
70321
70322             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70323             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70324                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70325                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70326                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70327                          }
70328                     }
70329                }
70330
70331
70332
70333
70334        }
70335   }; then
70336   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
70337   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
70338 else
70339   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
70340   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
70341 fi
70342
70343
70344
70345
70346        if  { test "$HAVE_LIBUNISTRING" != yes \
70347     || {
70348
70349
70350
70351             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70352             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70353                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70354                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70355                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70356                          }
70357                     }
70358                }
70359
70360
70361
70362
70363        }
70364   }; then
70365   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
70366   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
70367 else
70368   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
70369   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
70370 fi
70371
70372
70373
70374
70375        if  { test "$HAVE_LIBUNISTRING" != yes \
70376     || {
70377
70378
70379
70380             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70381             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70382                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70383                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70384                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70385                          }
70386                     }
70387                }
70388
70389
70390
70391
70392        }
70393   }; then
70394   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
70395   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
70396 else
70397   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
70398   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
70399 fi
70400
70401
70402
70403
70404 cat >>confdefs.h <<_ACEOF
70405 #define GNULIB_UNISTR_U8_MBTOUC 1
70406 _ACEOF
70407
70408
70409
70410
70411        if  { test "$HAVE_LIBUNISTRING" != yes \
70412     || {
70413
70414
70415
70416             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70417             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70418                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70419                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70420                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
70421                          }
70422                     }
70423                }
70424
70425
70426
70427
70428        }
70429   }; then
70430   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
70431   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
70432 else
70433   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
70434   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
70435 fi
70436
70437
70438
70439
70440 cat >>confdefs.h <<_ACEOF
70441 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
70442 _ACEOF
70443
70444
70445
70446
70447        if  { test "$HAVE_LIBUNISTRING" != yes \
70448     || {
70449
70450
70451
70452             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70453             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70454                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70455                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70456                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
70457                          }
70458                     }
70459                }
70460
70461
70462
70463
70464        }
70465   }; then
70466   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
70467   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
70468 else
70469   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
70470   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
70471 fi
70472
70473
70474
70475
70476 cat >>confdefs.h <<_ACEOF
70477 #define GNULIB_UNISTR_U8_MBTOUCR 1
70478 _ACEOF
70479
70480
70481
70482
70483        if  { test "$HAVE_LIBUNISTRING" != yes \
70484     || {
70485
70486
70487
70488             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70489             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70490                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70491                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70492                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70493                          }
70494                     }
70495                }
70496
70497
70498
70499
70500        }
70501   }; then
70502   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
70503   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
70504 else
70505   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
70506   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
70507 fi
70508
70509
70510
70511
70512        if  { test "$HAVE_LIBUNISTRING" != yes \
70513     || {
70514
70515
70516
70517             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70518             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70519                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70520                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70521                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70522                          }
70523                     }
70524                }
70525
70526
70527
70528
70529        }
70530   }; then
70531   LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_TRUE=
70532   LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_FALSE='#'
70533 else
70534   LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_TRUE='#'
70535   LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_FALSE=
70536 fi
70537
70538
70539
70540
70541        if  { test "$HAVE_LIBUNISTRING" != yes \
70542     || {
70543
70544
70545
70546             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70547             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70548                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70549                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70550                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70551                          }
70552                     }
70553                }
70554
70555
70556
70557
70558        }
70559   }; then
70560   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
70561   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
70562 else
70563   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
70564   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
70565 fi
70566
70567
70568
70569
70570        if  { test "$HAVE_LIBUNISTRING" != yes \
70571     || {
70572
70573
70574
70575             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70576             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70577                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70578                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70579                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70580                          }
70581                     }
70582                }
70583
70584
70585
70586
70587        }
70588   }; then
70589   LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE=
70590   LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE='#'
70591 else
70592   LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE='#'
70593   LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE=
70594 fi
70595
70596
70597
70598
70599 cat >>confdefs.h <<_ACEOF
70600 #define GNULIB_UNISTR_U8_UCTOMB 1
70601 _ACEOF
70602
70603
70604
70605
70606        if  { test "$HAVE_LIBUNISTRING" != yes \
70607     || {
70608
70609
70610
70611             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70612             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70613                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70614                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70615                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70616                          }
70617                     }
70618                }
70619
70620
70621
70622
70623        }
70624   }; then
70625   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
70626   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
70627 else
70628   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
70629   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
70630 fi
70631
70632
70633
70634
70635       if  { test "$HAVE_LIBUNISTRING" != yes \
70636     || {
70637
70638
70639
70640             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70641             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70642                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70643                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70644                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
70645                          }
70646                     }
70647                }
70648
70649
70650
70651
70652        }
70653   }; then
70654     LIBUNISTRING_UNITYPES_H='unitypes.h'
70655   else
70656     LIBUNISTRING_UNITYPES_H=
70657   fi
70658
70659
70660
70661
70662       if  { test "$HAVE_LIBUNISTRING" != yes \
70663     || {
70664
70665
70666
70667             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70668             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70669                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70670                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70671                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
70672                          }
70673                     }
70674                }
70675
70676
70677
70678
70679        }
70680   }; then
70681     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
70682   else
70683     LIBUNISTRING_UNIWIDTH_H=
70684   fi
70685
70686
70687
70688
70689        if  { test "$HAVE_LIBUNISTRING" != yes \
70690     || {
70691
70692
70693
70694             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70695             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70696                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70697                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70698                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
70699                          }
70700                     }
70701                }
70702
70703
70704
70705
70706        }
70707   }; then
70708   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
70709   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
70710 else
70711   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
70712   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
70713 fi
70714
70715
70716
70717
70718 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
70719
70720
70721
70722
70723
70724
70725
70726
70727
70728
70729
70730
70731
70732
70733
70734
70735
70736
70737
70738
70739   if test $ac_cv_func_vasnprintf = no; then
70740
70741
70742
70743
70744
70745
70746
70747
70748
70749
70750   gtpo_LIBOBJS="$gtpo_LIBOBJS vasnprintf.$ac_objext"
70751
70752
70753
70754
70755
70756
70757
70758
70759
70760   gtpo_LIBOBJS="$gtpo_LIBOBJS printf-args.$ac_objext"
70761
70762
70763
70764
70765
70766
70767
70768
70769
70770   gtpo_LIBOBJS="$gtpo_LIBOBJS printf-parse.$ac_objext"
70771
70772
70773
70774
70775
70776
70777
70778
70779
70780   gtpo_LIBOBJS="$gtpo_LIBOBJS asnprintf.$ac_objext"
70781
70782   if test $ac_cv_func_vasnprintf = yes; then
70783
70784 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
70785
70786   fi
70787
70788
70789
70790
70791
70792
70793
70794
70795
70796
70797
70798   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
70799 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
70800
70801 else
70802
70803 $as_echo "#define ptrdiff_t long" >>confdefs.h
70804
70805
70806 fi
70807
70808
70809
70810
70811
70812
70813
70814   fi
70815
70816
70817   for ac_func in vasprintf
70818 do :
70819   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
70820 if test "x$ac_cv_func_vasprintf" = xyes; then :
70821   cat >>confdefs.h <<_ACEOF
70822 #define HAVE_VASPRINTF 1
70823 _ACEOF
70824
70825 fi
70826 done
70827
70828   if test $ac_cv_func_vasprintf = no; then
70829
70830
70831
70832
70833
70834
70835
70836
70837
70838   gtpo_LIBOBJS="$gtpo_LIBOBJS vasprintf.$ac_objext"
70839
70840
70841
70842
70843
70844
70845
70846
70847
70848   gtpo_LIBOBJS="$gtpo_LIBOBJS asprintf.$ac_objext"
70849
70850
70851   if test $ac_cv_func_vasprintf = yes; then
70852     REPLACE_VASPRINTF=1
70853   else
70854     HAVE_VASPRINTF=0
70855   fi
70856
70857
70858
70859
70860
70861
70862
70863
70864   fi
70865
70866
70867
70868
70869
70870
70871           GNULIB_VASPRINTF=1
70872
70873
70874
70875
70876
70877 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
70878
70879
70880
70881
70882
70883   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
70884
70885
70886
70887   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
70888
70889
70890
70891
70892
70893
70894
70895
70896
70897
70898
70899
70900
70901      if test $gl_cv_have_include_next = yes; then
70902        gl_cv_next_wchar_h='<'wchar.h'>'
70903      else
70904        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
70905 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
70906 if ${gl_cv_next_wchar_h+:} false; then :
70907   $as_echo_n "(cached) " >&6
70908 else
70909
70910              if test $ac_cv_header_wchar_h = yes; then
70911
70912
70913
70914
70915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70916 /* end confdefs.h.  */
70917 #include <wchar.h>
70918 _ACEOF
70919                 case "$host_os" in
70920     aix*) gl_absname_cpp="$ac_cpp -C" ;;
70921     *)    gl_absname_cpp="$ac_cpp" ;;
70922   esac
70923
70924   case "$host_os" in
70925     mingw*)
70926                                           gl_dirsep_regex='[/\\]'
70927       ;;
70928     *)
70929       gl_dirsep_regex='\/'
70930       ;;
70931   esac
70932       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
70933   gl_header_literal_regex=`echo 'wchar.h' \
70934                            | sed -e "$gl_make_literal_regex_sed"`
70935   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
70936       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
70937       s|^/[^/]|//&|
70938       p
70939       q
70940     }'
70941
70942         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
70943   sed -n "$gl_absolute_header_sed"`
70944
70945            gl_header=$gl_cv_absolute_wchar_h
70946            gl_cv_next_wchar_h='"'$gl_header'"'
70947           else
70948                gl_cv_next_wchar_h='<'wchar.h'>'
70949              fi
70950
70951
70952 fi
70953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
70954 $as_echo "$gl_cv_next_wchar_h" >&6; }
70955      fi
70956      NEXT_WCHAR_H=$gl_cv_next_wchar_h
70957
70958      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
70959        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
70960        gl_next_as_first_directive='<'wchar.h'>'
70961      else
70962        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
70963        gl_next_as_first_directive=$gl_cv_next_wchar_h
70964      fi
70965      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
70966
70967
70968
70969
70970   if test $ac_cv_header_wchar_h = yes; then
70971     HAVE_WCHAR_H=1
70972   else
70973     HAVE_WCHAR_H=0
70974   fi
70975
70976
70977
70978
70979
70980   if test $gt_cv_c_wint_t = yes; then
70981     HAVE_WINT_T=1
70982   else
70983     HAVE_WINT_T=0
70984   fi
70985
70986
70987
70988     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
70989     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
70990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
70991 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
70992 if eval \${$as_gl_Symbol+:} false; then :
70993   $as_echo_n "(cached) " >&6
70994 else
70995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70996 /* end confdefs.h.  */
70997
70998 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
70999    <wchar.h>.
71000    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
71001    included before <wchar.h>.  */
71002 #if !(defined __GLIBC__ && !defined __UCLIBC__)
71003 # include <stddef.h>
71004 # include <stdio.h>
71005 # include <time.h>
71006 #endif
71007 #include <wchar.h>
71008
71009 int
71010 main ()
71011 {
71012 #undef $gl_func
71013   (void) $gl_func;
71014   ;
71015   return 0;
71016 }
71017 _ACEOF
71018 if ac_fn_c_try_compile "$LINENO"; then :
71019   eval "$as_gl_Symbol=yes"
71020 else
71021   eval "$as_gl_Symbol=no"
71022 fi
71023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71024 fi
71025 eval ac_res=\$$as_gl_Symbol
71026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
71027 $as_echo "$ac_res" >&6; }
71028     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
71029   cat >>confdefs.h <<_ACEOF
71030 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
71031 _ACEOF
71032
71033                      eval ac_cv_have_decl_$gl_func=yes
71034 fi
71035       done
71036
71037
71038
71039
71040
71041
71042
71043   if test $ac_cv_func_iswcntrl = yes; then
71044     HAVE_ISWCNTRL=1
71045   else
71046     HAVE_ISWCNTRL=0
71047   fi
71048
71049
71050
71051   if test $gt_cv_c_wint_t = yes; then
71052     HAVE_WINT_T=1
71053   else
71054     HAVE_WINT_T=0
71055   fi
71056
71057
71058
71059
71060
71061
71062
71063
71064
71065
71066
71067      if test $gl_cv_have_include_next = yes; then
71068        gl_cv_next_wctype_h='<'wctype.h'>'
71069      else
71070        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
71071 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
71072 if ${gl_cv_next_wctype_h+:} false; then :
71073   $as_echo_n "(cached) " >&6
71074 else
71075
71076              if test $ac_cv_header_wctype_h = yes; then
71077
71078
71079
71080
71081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71082 /* end confdefs.h.  */
71083 #include <wctype.h>
71084 _ACEOF
71085                 case "$host_os" in
71086     aix*) gl_absname_cpp="$ac_cpp -C" ;;
71087     *)    gl_absname_cpp="$ac_cpp" ;;
71088   esac
71089
71090   case "$host_os" in
71091     mingw*)
71092                                           gl_dirsep_regex='[/\\]'
71093       ;;
71094     *)
71095       gl_dirsep_regex='\/'
71096       ;;
71097   esac
71098       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
71099   gl_header_literal_regex=`echo 'wctype.h' \
71100                            | sed -e "$gl_make_literal_regex_sed"`
71101   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
71102       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
71103       s|^/[^/]|//&|
71104       p
71105       q
71106     }'
71107
71108         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
71109   sed -n "$gl_absolute_header_sed"`
71110
71111            gl_header=$gl_cv_absolute_wctype_h
71112            gl_cv_next_wctype_h='"'$gl_header'"'
71113           else
71114                gl_cv_next_wctype_h='<'wctype.h'>'
71115              fi
71116
71117
71118 fi
71119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
71120 $as_echo "$gl_cv_next_wctype_h" >&6; }
71121      fi
71122      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
71123
71124      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
71125        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
71126        gl_next_as_first_directive='<'wctype.h'>'
71127      else
71128        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
71129        gl_next_as_first_directive=$gl_cv_next_wctype_h
71130      fi
71131      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
71132
71133
71134
71135
71136   if test $ac_cv_header_wctype_h = yes; then
71137     if test $ac_cv_func_iswcntrl = yes; then
71138                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
71139 $as_echo_n "checking whether iswcntrl works... " >&6; }
71140 if ${gl_cv_func_iswcntrl_works+:} false; then :
71141   $as_echo_n "(cached) " >&6
71142 else
71143
71144           if test "$cross_compiling" = yes; then :
71145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71146 /* end confdefs.h.  */
71147 #include <stdlib.h>
71148                           #if __GNU_LIBRARY__ == 1
71149                           Linux libc5 i18n is broken.
71150                           #endif
71151 int
71152 main ()
71153 {
71154
71155   ;
71156   return 0;
71157 }
71158 _ACEOF
71159 if ac_fn_c_try_compile "$LINENO"; then :
71160   gl_cv_func_iswcntrl_works="guessing yes"
71161 else
71162   gl_cv_func_iswcntrl_works="guessing no"
71163 fi
71164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71165
71166 else
71167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71168 /* end confdefs.h.  */
71169
71170                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
71171                   included before <wchar.h>.
71172                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
71173                   must be included before <wchar.h>.  */
71174                #include <stddef.h>
71175                #include <stdio.h>
71176                #include <time.h>
71177                #include <wchar.h>
71178                #include <wctype.h>
71179                int main () { return iswprint ('x') == 0; }
71180
71181 _ACEOF
71182 if ac_fn_c_try_run "$LINENO"; then :
71183   gl_cv_func_iswcntrl_works=yes
71184 else
71185   gl_cv_func_iswcntrl_works=no
71186 fi
71187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
71188   conftest.$ac_objext conftest.beam conftest.$ac_ext
71189 fi
71190
71191
71192 fi
71193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
71194 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
71195     fi
71196     HAVE_WCTYPE_H=1
71197   else
71198     HAVE_WCTYPE_H=0
71199   fi
71200
71201
71202   case "$gl_cv_func_iswcntrl_works" in
71203     *yes) REPLACE_ISWCNTRL=0 ;;
71204     *)    REPLACE_ISWCNTRL=1 ;;
71205   esac
71206
71207
71208   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
71209         :
71210   fi
71211
71212   if test $REPLACE_ISWCNTRL = 1; then
71213     REPLACE_TOWLOWER=1
71214   else
71215     for ac_func in towlower
71216 do :
71217   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
71218 if test "x$ac_cv_func_towlower" = xyes; then :
71219   cat >>confdefs.h <<_ACEOF
71220 #define HAVE_TOWLOWER 1
71221 _ACEOF
71222
71223 fi
71224 done
71225
71226     if test $ac_cv_func_towlower = yes; then
71227       REPLACE_TOWLOWER=0
71228     else
71229       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
71230              included before <wchar.h>.
71231              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
71232              must be included before <wchar.h>.  */
71233           #include <stddef.h>
71234           #include <stdio.h>
71235           #include <time.h>
71236           #include <wchar.h>
71237           #if HAVE_WCTYPE_H
71238           # include <wctype.h>
71239           #endif
71240
71241 "
71242 if test "x$ac_cv_have_decl_towlower" = xyes; then :
71243   ac_have_decl=1
71244 else
71245   ac_have_decl=0
71246 fi
71247
71248 cat >>confdefs.h <<_ACEOF
71249 #define HAVE_DECL_TOWLOWER $ac_have_decl
71250 _ACEOF
71251
71252       if test $ac_cv_have_decl_towlower = yes; then
71253                                 REPLACE_TOWLOWER=1
71254       else
71255         REPLACE_TOWLOWER=0
71256       fi
71257     fi
71258   fi
71259
71260
71261   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
71262         :
71263   fi
71264
71265           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
71266 $as_echo_n "checking for wctype_t... " >&6; }
71267 if ${gl_cv_type_wctype_t+:} false; then :
71268   $as_echo_n "(cached) " >&6
71269 else
71270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71271 /* end confdefs.h.  */
71272 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
71273                included before <wchar.h>.
71274                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
71275                must be included before <wchar.h>.  */
71276             #include <stddef.h>
71277             #include <stdio.h>
71278             #include <time.h>
71279             #include <wchar.h>
71280             #if HAVE_WCTYPE_H
71281             # include <wctype.h>
71282             #endif
71283             wctype_t a;
71284
71285 int
71286 main ()
71287 {
71288
71289   ;
71290   return 0;
71291 }
71292 _ACEOF
71293 if ac_fn_c_try_compile "$LINENO"; then :
71294   gl_cv_type_wctype_t=yes
71295 else
71296   gl_cv_type_wctype_t=no
71297 fi
71298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71299
71300 fi
71301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
71302 $as_echo "$gl_cv_type_wctype_t" >&6; }
71303   if test $gl_cv_type_wctype_t = no; then
71304     HAVE_WCTYPE_T=0
71305   fi
71306
71307       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
71308 $as_echo_n "checking for wctrans_t... " >&6; }
71309 if ${gl_cv_type_wctrans_t+:} false; then :
71310   $as_echo_n "(cached) " >&6
71311 else
71312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71313 /* end confdefs.h.  */
71314 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
71315                included before <wchar.h>.
71316                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
71317                must be included before <wchar.h>.  */
71318             #include <stddef.h>
71319             #include <stdio.h>
71320             #include <time.h>
71321             #include <wchar.h>
71322             #include <wctype.h>
71323             wctrans_t a;
71324
71325 int
71326 main ()
71327 {
71328
71329   ;
71330   return 0;
71331 }
71332 _ACEOF
71333 if ac_fn_c_try_compile "$LINENO"; then :
71334   gl_cv_type_wctrans_t=yes
71335 else
71336   gl_cv_type_wctrans_t=no
71337 fi
71338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71339
71340 fi
71341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
71342 $as_echo "$gl_cv_type_wctrans_t" >&6; }
71343   if test $gl_cv_type_wctrans_t = no; then
71344     HAVE_WCTRANS_T=0
71345   fi
71346
71347
71348     for gl_func in wctype iswctype wctrans towctrans     ; do
71349     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
71350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
71351 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
71352 if eval \${$as_gl_Symbol+:} false; then :
71353   $as_echo_n "(cached) " >&6
71354 else
71355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71356 /* end confdefs.h.  */
71357
71358 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
71359    <wchar.h>.
71360    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
71361    included before <wchar.h>.  */
71362 #if !(defined __GLIBC__ && !defined __UCLIBC__)
71363 # include <stddef.h>
71364 # include <stdio.h>
71365 # include <time.h>
71366 # include <wchar.h>
71367 #endif
71368 #include <wctype.h>
71369
71370 int
71371 main ()
71372 {
71373 #undef $gl_func
71374   (void) $gl_func;
71375   ;
71376   return 0;
71377 }
71378 _ACEOF
71379 if ac_fn_c_try_compile "$LINENO"; then :
71380   eval "$as_gl_Symbol=yes"
71381 else
71382   eval "$as_gl_Symbol=no"
71383 fi
71384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71385 fi
71386 eval ac_res=\$$as_gl_Symbol
71387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
71388 $as_echo "$ac_res" >&6; }
71389     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
71390   cat >>confdefs.h <<_ACEOF
71391 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
71392 _ACEOF
71393
71394                      eval ac_cv_have_decl_$gl_func=yes
71395 fi
71396       done
71397
71398
71399
71400
71401
71402
71403
71404
71405
71406
71407
71408
71409
71410   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
71411 /* AIX 3.2.5 declares wcwidth in <string.h>. */
71412 #include <string.h>
71413 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
71414    <wchar.h>.
71415    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
71416    before <wchar.h>.  */
71417 #include <stddef.h>
71418 #include <stdio.h>
71419 #include <time.h>
71420 #include <wchar.h>
71421
71422 "
71423 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
71424   ac_have_decl=1
71425 else
71426   ac_have_decl=0
71427 fi
71428
71429 cat >>confdefs.h <<_ACEOF
71430 #define HAVE_DECL_WCWIDTH $ac_have_decl
71431 _ACEOF
71432
71433   if test $ac_cv_have_decl_wcwidth != yes; then
71434     HAVE_DECL_WCWIDTH=0
71435   fi
71436
71437   if test $ac_cv_func_wcwidth = yes; then
71438     HAVE_WCWIDTH=1
71439                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
71440 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
71441 if ${gl_cv_func_wcwidth_works+:} false; then :
71442   $as_echo_n "(cached) " >&6
71443 else
71444
71445         if test "$cross_compiling" = yes; then :
71446
71447            case "$host_os" in
71448                      # Guess yes on glibc and AIX 7 systems.
71449              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
71450              *)                  gl_cv_func_wcwidth_works="guessing no";;
71451            esac
71452
71453 else
71454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71455 /* end confdefs.h.  */
71456
71457 #include <locale.h>
71458 /* AIX 3.2.5 declares wcwidth in <string.h>. */
71459 #include <string.h>
71460 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
71461    <wchar.h>.
71462    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
71463    before <wchar.h>.  */
71464 #include <stddef.h>
71465 #include <stdio.h>
71466 #include <time.h>
71467 #include <wchar.h>
71468 #if !HAVE_DECL_WCWIDTH
71469 extern
71470 # ifdef __cplusplus
71471 "C"
71472 # endif
71473 int wcwidth (int);
71474 #endif
71475 int main ()
71476 {
71477   int result = 0;
71478   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
71479     {
71480       if (wcwidth (0x0301) > 0)
71481         result |= 1;
71482       if (wcwidth (0x05B0) > 0)
71483         result |= 2;
71484       if (wcwidth (0x200B) > 0)
71485         result |= 4;
71486       if (wcwidth (0xFF1A) == 0)
71487         result |= 8;
71488     }
71489   return result;
71490 }
71491 _ACEOF
71492 if ac_fn_c_try_run "$LINENO"; then :
71493   gl_cv_func_wcwidth_works=yes
71494 else
71495   gl_cv_func_wcwidth_works=no
71496 fi
71497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
71498   conftest.$ac_objext conftest.beam conftest.$ac_ext
71499 fi
71500
71501
71502 fi
71503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
71504 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
71505     case "$gl_cv_func_wcwidth_works" in
71506       *yes) ;;
71507       *no) REPLACE_WCWIDTH=1 ;;
71508     esac
71509   else
71510     HAVE_WCWIDTH=0
71511   fi
71512
71513   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
71514
71515
71516
71517
71518
71519
71520
71521
71522   gtpo_LIBOBJS="$gtpo_LIBOBJS wcwidth.$ac_objext"
71523
71524   fi
71525
71526
71527
71528
71529
71530           GNULIB_WCWIDTH=1
71531
71532
71533
71534
71535
71536 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
71537
71538
71539
71540
71541
71542   for ac_header in stdint.h
71543 do :
71544   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
71545 if test "x$ac_cv_header_stdint_h" = xyes; then :
71546   cat >>confdefs.h <<_ACEOF
71547 #define HAVE_STDINT_H 1
71548 _ACEOF
71549
71550 fi
71551
71552 done
71553
71554
71555   :
71556
71557
71558   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
71559
71560   # End of code from modules
71561
71562
71563
71564
71565
71566
71567
71568
71569
71570   gltests_libdeps=
71571   gltests_ltlibdeps=
71572
71573
71574
71575
71576
71577
71578
71579
71580
71581   gl_source_base='tests'
71582   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
71583
71584   gl_module_indicator_condition=$gtpotests_WITNESS
71585
71586
71587
71588
71589
71590
71591
71592
71593
71594
71595
71596 for ac_header in pwd.h
71597 do :
71598   ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
71599 if test "x$ac_cv_header_pwd_h" = xyes; then :
71600   cat >>confdefs.h <<_ACEOF
71601 #define HAVE_PWD_H 1
71602 _ACEOF
71603
71604 fi
71605
71606 done
71607
71608
71609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
71610 $as_echo_n "checking for inline... " >&6; }
71611 if ${ac_cv_c_inline+:} false; then :
71612   $as_echo_n "(cached) " >&6
71613 else
71614   ac_cv_c_inline=no
71615 for ac_kw in inline __inline__ __inline; do
71616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71617 /* end confdefs.h.  */
71618 #ifndef __cplusplus
71619 typedef int foo_t;
71620 static $ac_kw foo_t static_foo () {return 0; }
71621 $ac_kw foo_t foo () {return 0; }
71622 #endif
71623
71624 _ACEOF
71625 if ac_fn_c_try_compile "$LINENO"; then :
71626   ac_cv_c_inline=$ac_kw
71627 fi
71628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71629   test "$ac_cv_c_inline" != no && break
71630 done
71631
71632 fi
71633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
71634 $as_echo "$ac_cv_c_inline" >&6; }
71635
71636 case $ac_cv_c_inline in
71637   inline | yes) ;;
71638   *)
71639     case $ac_cv_c_inline in
71640       no) ac_val=;;
71641       *) ac_val=$ac_cv_c_inline;;
71642     esac
71643     cat >>confdefs.h <<_ACEOF
71644 #ifndef __cplusplus
71645 #define inline $ac_val
71646 #endif
71647 _ACEOF
71648     ;;
71649 esac
71650
71651
71652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
71653 $as_echo_n "checking for unsigned long long int... " >&6; }
71654 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
71655   $as_echo_n "(cached) " >&6
71656 else
71657   ac_cv_type_unsigned_long_long_int=yes
71658      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
71659        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71660 /* end confdefs.h.  */
71661
71662   /* For now, do not test the preprocessor; as of 2007 there are too many
71663          implementations with broken preprocessors.  Perhaps this can
71664          be revisited in 2012.  In the meantime, code should not expect
71665          #if to work with literals wider than 32 bits.  */
71666       /* Test literals.  */
71667       long long int ll = 9223372036854775807ll;
71668       long long int nll = -9223372036854775807LL;
71669       unsigned long long int ull = 18446744073709551615ULL;
71670       /* Test constant expressions.   */
71671       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
71672                      ? 1 : -1)];
71673       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
71674                      ? 1 : -1)];
71675       int i = 63;
71676 int
71677 main ()
71678 {
71679 /* Test availability of runtime routines for shift and division.  */
71680       long long int llmax = 9223372036854775807ll;
71681       unsigned long long int ullmax = 18446744073709551615ull;
71682       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
71683               | (llmax / ll) | (llmax % ll)
71684               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
71685               | (ullmax / ull) | (ullmax % ull));
71686   ;
71687   return 0;
71688 }
71689
71690 _ACEOF
71691 if ac_fn_c_try_link "$LINENO"; then :
71692
71693 else
71694   ac_cv_type_unsigned_long_long_int=no
71695 fi
71696 rm -f core conftest.err conftest.$ac_objext \
71697     conftest$ac_exeext conftest.$ac_ext
71698      fi
71699 fi
71700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
71701 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
71702   if test $ac_cv_type_unsigned_long_long_int = yes; then
71703
71704 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
71705
71706   fi
71707
71708 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
71709 if test "x$ac_cv_type_size_t" = xyes; then :
71710
71711 else
71712
71713 cat >>confdefs.h <<_ACEOF
71714 #define size_t unsigned int
71715 _ACEOF
71716
71717 fi
71718
71719 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
71720 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
71721
71722 cat >>confdefs.h <<_ACEOF
71723 #define HAVE_PTRDIFF_T 1
71724 _ACEOF
71725
71726
71727 fi
71728
71729
71730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
71731 $as_echo_n "checking for ssize_t... " >&6; }
71732 if ${gt_cv_ssize_t+:} false; then :
71733   $as_echo_n "(cached) " >&6
71734 else
71735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71736 /* end confdefs.h.  */
71737 #include <sys/types.h>
71738 int
71739 main ()
71740 {
71741 int x = sizeof (ssize_t *) + sizeof (ssize_t);
71742             return !x;
71743   ;
71744   return 0;
71745 }
71746 _ACEOF
71747 if ac_fn_c_try_compile "$LINENO"; then :
71748   gt_cv_ssize_t=yes
71749 else
71750   gt_cv_ssize_t=no
71751 fi
71752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71753 fi
71754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
71755 $as_echo "$gt_cv_ssize_t" >&6; }
71756   if test $gt_cv_ssize_t = no; then
71757
71758 $as_echo "#define ssize_t int" >>confdefs.h
71759
71760   fi
71761
71762 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
71763 if test "x$ac_cv_type_pid_t" = xyes; then :
71764
71765 else
71766
71767 cat >>confdefs.h <<_ACEOF
71768 #define pid_t int
71769 _ACEOF
71770
71771 fi
71772
71773
71774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
71775 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
71776 if ${ac_cv_gnu_library_2_1+:} false; then :
71777   $as_echo_n "(cached) " >&6
71778 else
71779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71780 /* end confdefs.h.  */
71781
71782 #include <features.h>
71783 #ifdef __GNU_LIBRARY__
71784  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
71785   Lucky GNU user
71786  #endif
71787 #endif
71788 #ifdef __UCLIBC__
71789  Lucky user
71790 #endif
71791
71792 _ACEOF
71793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71794   $EGREP "Lucky" >/dev/null 2>&1; then :
71795   ac_cv_gnu_library_2_1=yes
71796 else
71797   ac_cv_gnu_library_2_1=no
71798 fi
71799 rm -f conftest*
71800
71801
71802
71803 fi
71804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
71805 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
71806
71807     GLIBC21="$ac_cv_gnu_library_2_1"
71808
71809
71810 if test $GLIBC21 = yes; then
71811   ac_fn_c_check_member "$LINENO" "struct __locale_struct" "__names" "ac_cv_member_struct___locale_struct___names" "#include <xlocale.h>
71812 "
71813 if test "x$ac_cv_member_struct___locale_struct___names" = xyes; then :
71814
71815 cat >>confdefs.h <<_ACEOF
71816 #define HAVE_STRUCT___LOCALE_STRUCT___NAMES 1
71817 _ACEOF
71818
71819
71820 fi
71821
71822 fi
71823
71824 for ac_func in select
71825 do :
71826   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
71827 if test "x$ac_cv_func_select" = xyes; then :
71828   cat >>confdefs.h <<_ACEOF
71829 #define HAVE_SELECT 1
71830 _ACEOF
71831
71832 fi
71833 done
71834
71835 for ac_header in vfork.h
71836 do :
71837   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
71838 if test "x$ac_cv_header_vfork_h" = xyes; then :
71839   cat >>confdefs.h <<_ACEOF
71840 #define HAVE_VFORK_H 1
71841 _ACEOF
71842
71843 fi
71844
71845 done
71846
71847 for ac_func in fork vfork
71848 do :
71849   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71850 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
71851 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
71852   cat >>confdefs.h <<_ACEOF
71853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71854 _ACEOF
71855
71856 fi
71857 done
71858
71859 if test "x$ac_cv_func_fork" = xyes; then
71860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
71861 $as_echo_n "checking for working fork... " >&6; }
71862 if ${ac_cv_func_fork_works+:} false; then :
71863   $as_echo_n "(cached) " >&6
71864 else
71865   if test "$cross_compiling" = yes; then :
71866   ac_cv_func_fork_works=cross
71867 else
71868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71869 /* end confdefs.h.  */
71870 $ac_includes_default
71871 int
71872 main ()
71873 {
71874
71875           /* By Ruediger Kuhlmann. */
71876           return fork () < 0;
71877
71878   ;
71879   return 0;
71880 }
71881 _ACEOF
71882 if ac_fn_c_try_run "$LINENO"; then :
71883   ac_cv_func_fork_works=yes
71884 else
71885   ac_cv_func_fork_works=no
71886 fi
71887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
71888   conftest.$ac_objext conftest.beam conftest.$ac_ext
71889 fi
71890
71891 fi
71892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
71893 $as_echo "$ac_cv_func_fork_works" >&6; }
71894
71895 else
71896   ac_cv_func_fork_works=$ac_cv_func_fork
71897 fi
71898 if test "x$ac_cv_func_fork_works" = xcross; then
71899   case $host in
71900     *-*-amigaos* | *-*-msdosdjgpp*)
71901       # Override, as these systems have only a dummy fork() stub
71902       ac_cv_func_fork_works=no
71903       ;;
71904     *)
71905       ac_cv_func_fork_works=yes
71906       ;;
71907   esac
71908   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
71909 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
71910 fi
71911 ac_cv_func_vfork_works=$ac_cv_func_vfork
71912 if test "x$ac_cv_func_vfork" = xyes; then
71913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
71914 $as_echo_n "checking for working vfork... " >&6; }
71915 if ${ac_cv_func_vfork_works+:} false; then :
71916   $as_echo_n "(cached) " >&6
71917 else
71918   if test "$cross_compiling" = yes; then :
71919   ac_cv_func_vfork_works=cross
71920 else
71921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71922 /* end confdefs.h.  */
71923 /* Thanks to Paul Eggert for this test.  */
71924 $ac_includes_default
71925 #include <sys/wait.h>
71926 #ifdef HAVE_VFORK_H
71927 # include <vfork.h>
71928 #endif
71929 /* On some sparc systems, changes by the child to local and incoming
71930    argument registers are propagated back to the parent.  The compiler
71931    is told about this with #include <vfork.h>, but some compilers
71932    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
71933    static variable whose address is put into a register that is
71934    clobbered by the vfork.  */
71935 static void
71936 #ifdef __cplusplus
71937 sparc_address_test (int arg)
71938 # else
71939 sparc_address_test (arg) int arg;
71940 #endif
71941 {
71942   static pid_t child;
71943   if (!child) {
71944     child = vfork ();
71945     if (child < 0) {
71946       perror ("vfork");
71947       _exit(2);
71948     }
71949     if (!child) {
71950       arg = getpid();
71951       write(-1, "", 0);
71952       _exit (arg);
71953     }
71954   }
71955 }
71956
71957 int
71958 main ()
71959 {
71960   pid_t parent = getpid ();
71961   pid_t child;
71962
71963   sparc_address_test (0);
71964
71965   child = vfork ();
71966
71967   if (child == 0) {
71968     /* Here is another test for sparc vfork register problems.  This
71969        test uses lots of local variables, at least as many local
71970        variables as main has allocated so far including compiler
71971        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
71972        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
71973        reuse the register of parent for one of the local variables,
71974        since it will think that parent can't possibly be used any more
71975        in this routine.  Assigning to the local variable will thus
71976        munge parent in the parent process.  */
71977     pid_t
71978       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
71979       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
71980     /* Convince the compiler that p..p7 are live; otherwise, it might
71981        use the same hardware register for all 8 local variables.  */
71982     if (p != p1 || p != p2 || p != p3 || p != p4
71983         || p != p5 || p != p6 || p != p7)
71984       _exit(1);
71985
71986     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
71987        from child file descriptors.  If the child closes a descriptor
71988        before it execs or exits, this munges the parent's descriptor
71989        as well.  Test for this by closing stdout in the child.  */
71990     _exit(close(fileno(stdout)) != 0);
71991   } else {
71992     int status;
71993     struct stat st;
71994
71995     while (wait(&status) != child)
71996       ;
71997     return (
71998          /* Was there some problem with vforking?  */
71999          child < 0
72000
72001          /* Did the child fail?  (This shouldn't happen.)  */
72002          || status
72003
72004          /* Did the vfork/compiler bug occur?  */
72005          || parent != getpid()
72006
72007          /* Did the file descriptor bug occur?  */
72008          || fstat(fileno(stdout), &st) != 0
72009          );
72010   }
72011 }
72012 _ACEOF
72013 if ac_fn_c_try_run "$LINENO"; then :
72014   ac_cv_func_vfork_works=yes
72015 else
72016   ac_cv_func_vfork_works=no
72017 fi
72018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
72019   conftest.$ac_objext conftest.beam conftest.$ac_ext
72020 fi
72021
72022 fi
72023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
72024 $as_echo "$ac_cv_func_vfork_works" >&6; }
72025
72026 fi;
72027 if test "x$ac_cv_func_fork_works" = xcross; then
72028   ac_cv_func_vfork_works=$ac_cv_func_vfork
72029   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
72030 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
72031 fi
72032
72033 if test "x$ac_cv_func_vfork_works" = xyes; then
72034
72035 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
72036
72037 else
72038
72039 $as_echo "#define vfork fork" >>confdefs.h
72040
72041 fi
72042 if test "x$ac_cv_func_fork_works" = xyes; then
72043
72044 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
72045
72046 fi
72047
72048
72049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signal handlers with siginfo_t" >&5
72050 $as_echo_n "checking for signal handlers with siginfo_t... " >&6; }
72051 if ${gt_cv_siginfo_t+:} false; then :
72052   $as_echo_n "(cached) " >&6
72053 else
72054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72055 /* end confdefs.h.  */
72056
72057 #include <signal.h>
72058 int
72059 main ()
72060 {
72061
72062 struct sigaction action;
72063 siginfo_t info;
72064 action.sa_flags = SA_SIGINFO;
72065 action.sa_sigaction = (void *) 0;
72066
72067   ;
72068   return 0;
72069 }
72070 _ACEOF
72071 if ac_fn_c_try_compile "$LINENO"; then :
72072   gt_cv_siginfo_t=yes
72073 else
72074   gt_cv_siginfo_t=no
72075 fi
72076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72077 fi
72078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_siginfo_t" >&5
72079 $as_echo "$gt_cv_siginfo_t" >&6; }
72080   if test $gt_cv_siginfo_t = yes; then
72081
72082 $as_echo "#define HAVE_SIGINFO 1" >>confdefs.h
72083
72084   fi
72085
72086
72087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale declaration" >&5
72088 $as_echo_n "checking for setlocale declaration... " >&6; }
72089 if ${gt_cv_proto_setlocale+:} false; then :
72090   $as_echo_n "(cached) " >&6
72091 else
72092
72093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72094 /* end confdefs.h.  */
72095
72096 #include <stdlib.h>
72097 #include <locale.h>
72098 extern
72099 #ifdef __cplusplus
72100 "C"
72101 #endif
72102 #if defined(__STDC__) || defined(__cplusplus)
72103 char *setlocale (int category, char *locale);
72104 #else
72105 char *setlocale();
72106 #endif
72107
72108 int
72109 main ()
72110 {
72111
72112   ;
72113   return 0;
72114 }
72115 _ACEOF
72116 if ac_fn_c_try_compile "$LINENO"; then :
72117   gt_cv_proto_setlocale_arg1=""
72118 else
72119   gt_cv_proto_setlocale_arg1="const"
72120 fi
72121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72122 gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"
72123 fi
72124
72125 gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
72126 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
72127          $gt_cv_proto_setlocale" >&5
72128 $as_echo "
72129          $gt_cv_proto_setlocale" >&6; }
72130
72131 cat >>confdefs.h <<_ACEOF
72132 #define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1
72133 _ACEOF
72134
72135
72136
72137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
72138 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
72139 if ${ac_cv_c_bigendian+:} false; then :
72140   $as_echo_n "(cached) " >&6
72141 else
72142   ac_cv_c_bigendian=unknown
72143     # See if we're dealing with a universal compiler.
72144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72145 /* end confdefs.h.  */
72146 #ifndef __APPLE_CC__
72147                not a universal capable compiler
72148              #endif
72149              typedef int dummy;
72150
72151 _ACEOF
72152 if ac_fn_c_try_compile "$LINENO"; then :
72153
72154         # Check for potential -arch flags.  It is not universal unless
72155         # there are at least two -arch flags with different values.
72156         ac_arch=
72157         ac_prev=
72158         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
72159          if test -n "$ac_prev"; then
72160            case $ac_word in
72161              i?86 | x86_64 | ppc | ppc64)
72162                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
72163                  ac_arch=$ac_word
72164                else
72165                  ac_cv_c_bigendian=universal
72166                  break
72167                fi
72168                ;;
72169            esac
72170            ac_prev=
72171          elif test "x$ac_word" = "x-arch"; then
72172            ac_prev=arch
72173          fi
72174        done
72175 fi
72176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72177     if test $ac_cv_c_bigendian = unknown; then
72178       # See if sys/param.h defines the BYTE_ORDER macro.
72179       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72180 /* end confdefs.h.  */
72181 #include <sys/types.h>
72182              #include <sys/param.h>
72183
72184 int
72185 main ()
72186 {
72187 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
72188                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
72189                      && LITTLE_ENDIAN)
72190               bogus endian macros
72191              #endif
72192
72193   ;
72194   return 0;
72195 }
72196 _ACEOF
72197 if ac_fn_c_try_compile "$LINENO"; then :
72198   # It does; now see whether it defined to BIG_ENDIAN or not.
72199          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72200 /* end confdefs.h.  */
72201 #include <sys/types.h>
72202                 #include <sys/param.h>
72203
72204 int
72205 main ()
72206 {
72207 #if BYTE_ORDER != BIG_ENDIAN
72208                  not big endian
72209                 #endif
72210
72211   ;
72212   return 0;
72213 }
72214 _ACEOF
72215 if ac_fn_c_try_compile "$LINENO"; then :
72216   ac_cv_c_bigendian=yes
72217 else
72218   ac_cv_c_bigendian=no
72219 fi
72220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72221 fi
72222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72223     fi
72224     if test $ac_cv_c_bigendian = unknown; then
72225       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
72226       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72227 /* end confdefs.h.  */
72228 #include <limits.h>
72229
72230 int
72231 main ()
72232 {
72233 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
72234               bogus endian macros
72235              #endif
72236
72237   ;
72238   return 0;
72239 }
72240 _ACEOF
72241 if ac_fn_c_try_compile "$LINENO"; then :
72242   # It does; now see whether it defined to _BIG_ENDIAN or not.
72243          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72244 /* end confdefs.h.  */
72245 #include <limits.h>
72246
72247 int
72248 main ()
72249 {
72250 #ifndef _BIG_ENDIAN
72251                  not big endian
72252                 #endif
72253
72254   ;
72255   return 0;
72256 }
72257 _ACEOF
72258 if ac_fn_c_try_compile "$LINENO"; then :
72259   ac_cv_c_bigendian=yes
72260 else
72261   ac_cv_c_bigendian=no
72262 fi
72263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72264 fi
72265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72266     fi
72267     if test $ac_cv_c_bigendian = unknown; then
72268       # Compile a test program.
72269       if test "$cross_compiling" = yes; then :
72270   # Try to guess by grepping values from an object file.
72271          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72272 /* end confdefs.h.  */
72273 short int ascii_mm[] =
72274                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
72275                 short int ascii_ii[] =
72276                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
72277                 int use_ascii (int i) {
72278                   return ascii_mm[i] + ascii_ii[i];
72279                 }
72280                 short int ebcdic_ii[] =
72281                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
72282                 short int ebcdic_mm[] =
72283                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
72284                 int use_ebcdic (int i) {
72285                   return ebcdic_mm[i] + ebcdic_ii[i];
72286                 }
72287                 extern int foo;
72288
72289 int
72290 main ()
72291 {
72292 return use_ascii (foo) == use_ebcdic (foo);
72293   ;
72294   return 0;
72295 }
72296 _ACEOF
72297 if ac_fn_c_try_compile "$LINENO"; then :
72298   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
72299               ac_cv_c_bigendian=yes
72300             fi
72301             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
72302               if test "$ac_cv_c_bigendian" = unknown; then
72303                 ac_cv_c_bigendian=no
72304               else
72305                 # finding both strings is unlikely to happen, but who knows?
72306                 ac_cv_c_bigendian=unknown
72307               fi
72308             fi
72309 fi
72310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72311 else
72312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72313 /* end confdefs.h.  */
72314 $ac_includes_default
72315 int
72316 main ()
72317 {
72318
72319              /* Are we little or big endian?  From Harbison&Steele.  */
72320              union
72321              {
72322                long int l;
72323                char c[sizeof (long int)];
72324              } u;
72325              u.l = 1;
72326              return u.c[sizeof (long int) - 1] == 1;
72327
72328   ;
72329   return 0;
72330 }
72331 _ACEOF
72332 if ac_fn_c_try_run "$LINENO"; then :
72333   ac_cv_c_bigendian=no
72334 else
72335   ac_cv_c_bigendian=yes
72336 fi
72337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
72338   conftest.$ac_objext conftest.beam conftest.$ac_ext
72339 fi
72340
72341     fi
72342 fi
72343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
72344 $as_echo "$ac_cv_c_bigendian" >&6; }
72345  case $ac_cv_c_bigendian in #(
72346    yes)
72347      endianness=1;; #(
72348    no)
72349      endianness=0 ;; #(
72350    universal)
72351      endianness=universal
72352      ;; #(
72353    *)
72354      echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2
72355    echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2
72356    exit 1 ;;
72357  esac
72358
72359 if test $endianness != universal; then
72360
72361 cat >>confdefs.h <<_ACEOF
72362 #define ENDIANNESS $endianness
72363 _ACEOF
72364
72365 fi
72366
72367
72368
72369   for ac_header in arpa/inet.h
72370 do :
72371   ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
72372 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
72373   cat >>confdefs.h <<_ACEOF
72374 #define HAVE_ARPA_INET_H 1
72375 _ACEOF
72376
72377 fi
72378
72379 done
72380
72381   for ac_func in gethostname gethostbyname inet_ntop
72382 do :
72383   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
72385 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
72386   cat >>confdefs.h <<_ACEOF
72387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72388 _ACEOF
72389
72390 fi
72391 done
72392
72393
72394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
72395 $as_echo_n "checking for IPv6 sockets... " >&6; }
72396   if ${gt_cv_socket_ipv6+:} false; then :
72397   $as_echo_n "(cached) " >&6
72398 else
72399
72400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72401 /* end confdefs.h.  */
72402
72403 #include <sys/types.h>
72404 #include <sys/socket.h>
72405 #include <netinet/in.h>
72406 int
72407 main ()
72408 {
72409 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
72410   ;
72411   return 0;
72412 }
72413 _ACEOF
72414 if ac_fn_c_try_compile "$LINENO"; then :
72415   gt_cv_socket_ipv6=yes
72416 else
72417   gt_cv_socket_ipv6=no
72418 fi
72419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72420
72421 fi
72422
72423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_socket_ipv6" >&5
72424 $as_echo "$gt_cv_socket_ipv6" >&6; }
72425   if test $gt_cv_socket_ipv6 = yes; then
72426
72427 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
72428
72429   fi
72430
72431
72432 if test "$enable_shared" = yes; then
72433   case "$host_os" in
72434     mingw* | cygwin*) is_woe32dll=yes ;;
72435     *) is_woe32dll=no ;;
72436   esac
72437 else
72438   is_woe32dll=no
72439 fi
72440  if test $is_woe32dll = yes; then
72441   WOE32DLL_TRUE=
72442   WOE32DLL_FALSE='#'
72443 else
72444   WOE32DLL_TRUE='#'
72445   WOE32DLL_FALSE=
72446 fi
72447
72448 if test $is_woe32dll = yes; then
72449
72450 $as_echo "#define WOE32DLL 1" >>confdefs.h
72451
72452 fi
72453
72454 GETTEXTLIB_EXPORTS_FLAGS=
72455 if test -n "$GETOPT_H"; then
72456   GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT $GETTEXTLIB_EXPORTS_FLAGS"
72457 fi
72458 if test "$ac_cv_lib_error_at_line" = no; then
72459   GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_ERROR $GETTEXTLIB_EXPORTS_FLAGS"
72460 fi
72461
72462 if test "$USER_LABEL_PREFIX" = _; then
72463   GETTEXTLIB_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $GETTEXTLIB_EXPORTS_FLAGS"
72464 fi
72465
72466
72467 if test "$ac_cv_lib_error_at_line" = no; then
72468
72469 $as_echo "#define GNULIB_REPLACE_ERROR 1" >>confdefs.h
72470
72471 fi
72472
72473
72474
72475
72476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
72477 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
72478 if ${lt_cv_path_NM+:} false; then :
72479   $as_echo_n "(cached) " >&6
72480 else
72481   if test -n "$NM"; then
72482   # Let the user override the test.
72483   lt_cv_path_NM=$NM
72484 else
72485   lt_nm_to_check=${ac_tool_prefix}nm
72486   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
72487     lt_nm_to_check="$lt_nm_to_check nm"
72488   fi
72489   for lt_tmp_nm in $lt_nm_to_check; do
72490     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
72491     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
72492       IFS=$lt_save_ifs
72493       test -z "$ac_dir" && ac_dir=.
72494       tmp_nm=$ac_dir/$lt_tmp_nm
72495       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
72496         # Check to see if the nm accepts a BSD-compat flag.
72497         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
72498         #   nm: unknown option "B" ignored
72499         # Tru64's nm complains that /dev/null is an invalid object file
72500         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
72501         case $build_os in
72502         mingw*) lt_bad_file=conftest.nm/nofile ;;
72503         *) lt_bad_file=/dev/null ;;
72504         esac
72505         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
72506         *$lt_bad_file* | *'Invalid file or object type'*)
72507           lt_cv_path_NM="$tmp_nm -B"
72508           break 2
72509           ;;
72510         *)
72511           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
72512           */dev/null*)
72513             lt_cv_path_NM="$tmp_nm -p"
72514             break 2
72515             ;;
72516           *)
72517             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
72518             continue # so that we can try to find one that supports BSD flags
72519             ;;
72520           esac
72521           ;;
72522         esac
72523       fi
72524     done
72525     IFS=$lt_save_ifs
72526   done
72527   : ${lt_cv_path_NM=no}
72528 fi
72529 fi
72530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
72531 $as_echo "$lt_cv_path_NM" >&6; }
72532 if test no != "$lt_cv_path_NM"; then
72533   NM=$lt_cv_path_NM
72534 else
72535   # Didn't find any BSD compatible name lister, look for dumpbin.
72536   if test -n "$DUMPBIN"; then :
72537     # Let the user override the test.
72538   else
72539     if test -n "$ac_tool_prefix"; then
72540   for ac_prog in dumpbin "link -dump"
72541   do
72542     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
72543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
72544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72545 $as_echo_n "checking for $ac_word... " >&6; }
72546 if ${ac_cv_prog_DUMPBIN+:} false; then :
72547   $as_echo_n "(cached) " >&6
72548 else
72549   if test -n "$DUMPBIN"; then
72550   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
72551 else
72552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72553 for as_dir in $PATH
72554 do
72555   IFS=$as_save_IFS
72556   test -z "$as_dir" && as_dir=.
72557     for ac_exec_ext in '' $ac_executable_extensions; do
72558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72559     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
72560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72561     break 2
72562   fi
72563 done
72564   done
72565 IFS=$as_save_IFS
72566
72567 fi
72568 fi
72569 DUMPBIN=$ac_cv_prog_DUMPBIN
72570 if test -n "$DUMPBIN"; then
72571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
72572 $as_echo "$DUMPBIN" >&6; }
72573 else
72574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72575 $as_echo "no" >&6; }
72576 fi
72577
72578
72579     test -n "$DUMPBIN" && break
72580   done
72581 fi
72582 if test -z "$DUMPBIN"; then
72583   ac_ct_DUMPBIN=$DUMPBIN
72584   for ac_prog in dumpbin "link -dump"
72585 do
72586   # Extract the first word of "$ac_prog", so it can be a program name with args.
72587 set dummy $ac_prog; ac_word=$2
72588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72589 $as_echo_n "checking for $ac_word... " >&6; }
72590 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
72591   $as_echo_n "(cached) " >&6
72592 else
72593   if test -n "$ac_ct_DUMPBIN"; then
72594   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
72595 else
72596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72597 for as_dir in $PATH
72598 do
72599   IFS=$as_save_IFS
72600   test -z "$as_dir" && as_dir=.
72601     for ac_exec_ext in '' $ac_executable_extensions; do
72602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72603     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
72604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72605     break 2
72606   fi
72607 done
72608   done
72609 IFS=$as_save_IFS
72610
72611 fi
72612 fi
72613 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
72614 if test -n "$ac_ct_DUMPBIN"; then
72615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
72616 $as_echo "$ac_ct_DUMPBIN" >&6; }
72617 else
72618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72619 $as_echo "no" >&6; }
72620 fi
72621
72622
72623   test -n "$ac_ct_DUMPBIN" && break
72624 done
72625
72626   if test "x$ac_ct_DUMPBIN" = x; then
72627     DUMPBIN=":"
72628   else
72629     case $cross_compiling:$ac_tool_warned in
72630 yes:)
72631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
72632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
72633 ac_tool_warned=yes ;;
72634 esac
72635     DUMPBIN=$ac_ct_DUMPBIN
72636   fi
72637 fi
72638
72639     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
72640     *COFF*)
72641       DUMPBIN="$DUMPBIN -symbols -headers"
72642       ;;
72643     *)
72644       DUMPBIN=:
72645       ;;
72646     esac
72647   fi
72648
72649   if test : != "$DUMPBIN"; then
72650     NM=$DUMPBIN
72651   fi
72652 fi
72653 test -z "$NM" && NM=nm
72654
72655
72656
72657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
72658 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
72659 if ${lt_cv_nm_interface+:} false; then :
72660   $as_echo_n "(cached) " >&6
72661 else
72662   lt_cv_nm_interface="BSD nm"
72663   echo "int some_variable = 0;" > conftest.$ac_ext
72664   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
72665   (eval "$ac_compile" 2>conftest.err)
72666   cat conftest.err >&5
72667   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
72668   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
72669   cat conftest.err >&5
72670   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
72671   cat conftest.out >&5
72672   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
72673     lt_cv_nm_interface="MS dumpbin"
72674   fi
72675   rm -f conftest*
72676 fi
72677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
72678 $as_echo "$lt_cv_nm_interface" >&6; }
72679
72680
72681
72682
72683      GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
72684
72685   if test -n "$GLOBAL_SYMBOL_PIPE"; then
72686     HAVE_GLOBAL_SYMBOL_PIPE=1
72687   else
72688     HAVE_GLOBAL_SYMBOL_PIPE=
72689   fi
72690
72691
72692
72693
72694 # Check whether --with-emacs was given.
72695 if test "${with_emacs+set}" = set; then :
72696   withval=$with_emacs; gt_use_emacs=$withval
72697 else
72698   gt_use_emacs=yes
72699 fi
72700
72701 if test "$EMACS" != no; then
72702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Emacs support is requested" >&5
72703 $as_echo_n "checking whether Emacs support is requested... " >&6; }
72704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_use_emacs" >&5
72705 $as_echo "$gt_use_emacs" >&6; }
72706   if test "$gt_use_emacs" = no; then
72707     EMACS=no
72708   fi
72709 fi
72710 if test "$EMACS" != no; then
72711    # If set to t, that means we are running in a shell under Emacs.
72712  # If you have an Emacs named "t", then use the full path.
72713  test x"$EMACS" = xt && EMACS=
72714  for ac_prog in emacs xemacs
72715 do
72716   # Extract the first word of "$ac_prog", so it can be a program name with args.
72717 set dummy $ac_prog; ac_word=$2
72718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72719 $as_echo_n "checking for $ac_word... " >&6; }
72720 if ${ac_cv_prog_EMACS+:} false; then :
72721   $as_echo_n "(cached) " >&6
72722 else
72723   if test -n "$EMACS"; then
72724   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
72725 else
72726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72727 for as_dir in $PATH
72728 do
72729   IFS=$as_save_IFS
72730   test -z "$as_dir" && as_dir=.
72731     for ac_exec_ext in '' $ac_executable_extensions; do
72732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72733     ac_cv_prog_EMACS="$ac_prog"
72734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72735     break 2
72736   fi
72737 done
72738   done
72739 IFS=$as_save_IFS
72740
72741 fi
72742 fi
72743 EMACS=$ac_cv_prog_EMACS
72744 if test -n "$EMACS"; then
72745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
72746 $as_echo "$EMACS" >&6; }
72747 else
72748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72749 $as_echo "no" >&6; }
72750 fi
72751
72752
72753   test -n "$EMACS" && break
72754 done
72755 test -n "$EMACS" || EMACS="no"
72756
72757
72758
72759
72760 # Check whether --with-lispdir was given.
72761 if test "${with_lispdir+set}" = set; then :
72762   withval=$with_lispdir;  lispdir="$withval"
72763    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
72764 $as_echo_n "checking where .elc files should go... " >&6; }
72765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
72766 $as_echo "$lispdir" >&6; }
72767 else
72768
72769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
72770 $as_echo_n "checking where .elc files should go... " >&6; }
72771 if ${am_cv_lispdir+:} false; then :
72772   $as_echo_n "(cached) " >&6
72773 else
72774
72775    if test $EMACS != "no"; then
72776      if test x${lispdir+set} != xset; then
72777   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
72778   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
72779   #  which is non-obvious for non-emacs users.
72780   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
72781   #  emacsen earlier and avoid running this altogether.
72782   { { $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
72783   ($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
72784   ac_status=$?
72785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72786   test $ac_status = 0; }
72787         am_cv_lispdir=`sed -n \
72788        -e 's,/$,,' \
72789        -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
72790        -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
72791        conftest.out`
72792        rm conftest.out
72793      fi
72794    fi
72795    test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
72796
72797 fi
72798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
72799 $as_echo "$am_cv_lispdir" >&6; }
72800   lispdir="$am_cv_lispdir"
72801
72802 fi
72803
72804
72805
72806 fi
72807
72808 aclocaldir='${datadir}/aclocal'
72809
72810
72811
72812 # Check whether --with-git was given.
72813 if test "${with_git+set}" = set; then :
72814   withval=$with_git; gt_use_git=$withval
72815 else
72816   gt_use_git=maybe
72817 fi
72818
72819
72820 # Check whether --with-cvs was given.
72821 if test "${with_cvs+set}" = set; then :
72822   withval=$with_cvs; gt_use_cvs=$withval
72823 else
72824   gt_use_cvs=no
72825 fi
72826
72827
72828 # Check whether --with-bzip2 was given.
72829 if test "${with_bzip2+set}" = set; then :
72830   withval=$with_bzip2; gt_use_bzip2=$withval
72831 else
72832   gt_use_bzip2=maybe
72833 fi
72834
72835
72836 # Check whether --with-xz was given.
72837 if test "${with_xz+set}" = set; then :
72838   withval=$with_xz; gt_use_xz=$withval
72839 else
72840   gt_use_xz=maybe
72841 fi
72842
72843 # The CVS format is deprecated, because "cvs init" does not work in all
72844 # circumstances
72845 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-05/msg00003.html>)
72846 # and we are not allowed to distribute the cvs infrastructure files ourselves
72847 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-06/msg00011.html>).
72848 #
72849 # With the archive from version 0.18.1, we can observe the following
72850 # compression rates:
72851 #    Size           File
72852 #  16916480   archive.dir.tar
72853 #   3528757   archive.dir.tar.gz
72854 #   2621440   archive.cvs.tar
72855 #   2082492   archive.dir.tar.bz2
72856 #    696320   archive.git.tar
72857 #    599046   archive.git.tar.bz2
72858 #    592989   archive.git.tar.gz
72859 #    588124   archive.git.tar.xz
72860 #    457190   archive.cvs.tar.gz
72861 #    335808   archive.cvs.tar.bz2
72862 #    308880   archive.dir.tar.xz
72863 #    299124   archive.cvs.tar.xz
72864 # Among these:
72865 #   - We don't offer the uncompressed ones, because at least gzip can be
72866 #     assumed to be present everywhere.
72867 #   - Among archive.git.tar.*, all have approximately the same size, because
72868 #     git already compresses most of its repository data. Offer only .gz here.
72869 #   - Among archive.cvs.tar.*, offer only .gz, for simplicity, since --with-cvs
72870 #     is deprecated.
72871 # The remaining ones are:
72872 #    Size           File            ARCHIVE_FORMAT
72873 #   3528757   archive.dir.tar.gz      dirgz
72874 #   2082492   archive.dir.tar.bz2     dirbz2
72875 #    592989   archive.git.tar.gz      git
72876 #    457190   archive.cvs.tar.gz      cvs
72877 #    308880   archive.dir.tar.xz      dirxz
72878 if test "$gt_use_xz" != no && test "$gt_use_xz" != maybe; then
72879   # --with-xz is specified. Even if --with-git or --with-cvs or --with-bzip2 is
72880   # also specified, we use the dirxz format.
72881   ARCHIVE_FORMAT=dirxz
72882 else
72883   if test "$gt_use_git" != no && test "$gt_use_git" != maybe; then
72884     # --with-git is specified. Even if --with-cvs or --with-bzip2 is also
72885     # specified, we use the git format.
72886     ARCHIVE_FORMAT=git
72887   else
72888     if test "$gt_use_cvs" != no; then
72889       # --with-cvs is specified. Even if --with-bzip2 is also specified, we use
72890       # the cvs format.
72891       ARCHIVE_FORMAT=cvs
72892     else
72893       if test "$gt_use_bzip2" != no && test "$gt_use_bzip2" != maybe; then
72894         # --with-bzip2 is specified. We use the dirbz2 format.
72895         ARCHIVE_FORMAT=dirbz2
72896       else
72897         # Neither --with-git nor --with-cvs nor --with-bzip2 nor --with-xz is
72898         # specified. Determine which programs are present.
72899         if test "$gt_use_xz" != no \
72900            && (xz --version) >/dev/null 2>&1 \
72901            && xz --version | grep lzma >/dev/null; then
72902           # --without-xz is not specified, and the xz program exists.
72903           ARCHIVE_FORMAT=dirxz
72904         else
72905           # --without-xz is specified, or the xz program is missing.
72906           if test "$gt_use_git" != no \
72907              && (git --version) >/dev/null 2>&1 \
72908              && { case `git --version | sed -e 's/^[^0-9]*//'` in
72909                     0.* | 1.[0-5].*) false ;;
72910                     *) true ;;
72911                   esac
72912                 }; then
72913             # --without-git is not specified, and the git program exists
72914             # in version 1.6 or newer. Use git format.
72915             ARCHIVE_FORMAT=git
72916           else
72917             # --without-git is specified, or the git program is missing.
72918             if test "$gt_use_bzip2" != no \
72919                && (: | bzip2 --version) >/dev/null 2>&1 \
72920                && { sed_bzip2_version1='s/ \([0-9][0-9.]*\).*/ \1/'
72921                     sed_bzip2_version2='s/^.* //'
72922                     case `(: | bzip2 --version) 2>&1 \
72923                           | sed -e 1q \
72924                           | sed -e "$sed_bzip2_version1" -e "$sed_bzip2_version2"` in
72925                       0.*) false ;;
72926                       *) true ;;
72927                     esac
72928                   }; then
72929               # --without-bzip2 is not specified, and the bzip2 program exists
72930               # in version 1.0 or newer. Use dirbz2 format.
72931               ARCHIVE_FORMAT=dirbz2
72932             else
72933               # --without-bzip2 is specified, or the bzip2 program is missing.
72934               ARCHIVE_FORMAT=dirgz
72935             fi
72936           fi
72937         fi
72938       fi
72939     fi
72940   fi
72941 fi
72942
72943
72944 ARCHIVE_VERSION=0.19.8
72945
72946
72947 PACKAGE_SUFFIX="-$ARCHIVE_VERSION"
72948
72949
72950 cat >>confdefs.h <<_ACEOF
72951 #define PACKAGE_SUFFIX "$PACKAGE_SUFFIX"
72952 _ACEOF
72953
72954
72955 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
72956 # Extract the first word of "dvips", so it can be a program name with args.
72957 set dummy dvips; ac_word=$2
72958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72959 $as_echo_n "checking for $ac_word... " >&6; }
72960 if ${ac_cv_path_DVIPS+:} false; then :
72961   $as_echo_n "(cached) " >&6
72962 else
72963   case $DVIPS in
72964   [\\/]* | ?:[\\/]*)
72965   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
72966   ;;
72967   *)
72968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72969 for as_dir in $PATH
72970 do
72971   IFS=$as_save_IFS
72972   test -z "$as_dir" && as_dir=.
72973     for ac_exec_ext in '' $ac_executable_extensions; do
72974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72975     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
72976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72977     break 2
72978   fi
72979 done
72980   done
72981 IFS=$as_save_IFS
72982
72983   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
72984   ;;
72985 esac
72986 fi
72987 DVIPS=$ac_cv_path_DVIPS
72988 if test -n "$DVIPS"; then
72989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
72990 $as_echo "$DVIPS" >&6; }
72991 else
72992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72993 $as_echo "no" >&6; }
72994 fi
72995
72996
72997 # Extract the first word of "texi2pdf", so it can be a program name with args.
72998 set dummy texi2pdf; ac_word=$2
72999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73000 $as_echo_n "checking for $ac_word... " >&6; }
73001 if ${ac_cv_path_TEXI2PDF+:} false; then :
73002   $as_echo_n "(cached) " >&6
73003 else
73004   case $TEXI2PDF in
73005   [\\/]* | ?:[\\/]*)
73006   ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
73007   ;;
73008   *)
73009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73010 for as_dir in $PATH
73011 do
73012   IFS=$as_save_IFS
73013   test -z "$as_dir" && as_dir=.
73014     for ac_exec_ext in '' $ac_executable_extensions; do
73015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73016     ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
73017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73018     break 2
73019   fi
73020 done
73021   done
73022 IFS=$as_save_IFS
73023
73024   test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
73025   ;;
73026 esac
73027 fi
73028 TEXI2PDF=$ac_cv_path_TEXI2PDF
73029 if test -n "$TEXI2PDF"; then
73030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
73031 $as_echo "$TEXI2PDF" >&6; }
73032 else
73033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73034 $as_echo "no" >&6; }
73035 fi
73036
73037
73038 # Extract the first word of "perl", so it can be a program name with args.
73039 set dummy perl; ac_word=$2
73040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73041 $as_echo_n "checking for $ac_word... " >&6; }
73042 if ${ac_cv_path_PERL+:} false; then :
73043   $as_echo_n "(cached) " >&6
73044 else
73045   case $PERL in
73046   [\\/]* | ?:[\\/]*)
73047   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
73048   ;;
73049   *)
73050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73051 for as_dir in $PATH
73052 do
73053   IFS=$as_save_IFS
73054   test -z "$as_dir" && as_dir=.
73055     for ac_exec_ext in '' $ac_executable_extensions; do
73056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73057     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
73058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73059     break 2
73060   fi
73061 done
73062   done
73063 IFS=$as_save_IFS
73064
73065   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
73066   ;;
73067 esac
73068 fi
73069 PERL=$ac_cv_path_PERL
73070 if test -n "$PERL"; then
73071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
73072 $as_echo "$PERL" >&6; }
73073 else
73074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73075 $as_echo "no" >&6; }
73076 fi
73077
73078
73079
73080 CROSS_COMPILING=$cross_compiling
73081
73082
73083
73084
73085
73086   if test "$CXX_CHOICE" = no; then
73087     CXX=no
73088   fi
73089   if test -z "$CXX"; then
73090     if test -n "$CCC"; then
73091       CXX="$CCC"
73092     else
73093       if test -n "$ac_tool_prefix"; then
73094   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
73095   do
73096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
73097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
73098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73099 $as_echo_n "checking for $ac_word... " >&6; }
73100 if ${ac_cv_prog_CXX+:} false; then :
73101   $as_echo_n "(cached) " >&6
73102 else
73103   if test -n "$CXX"; then
73104   ac_cv_prog_CXX="$CXX" # Let the user override the test.
73105 else
73106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73107 for as_dir in $PATH
73108 do
73109   IFS=$as_save_IFS
73110   test -z "$as_dir" && as_dir=.
73111     for ac_exec_ext in '' $ac_executable_extensions; do
73112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73113     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
73114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73115     break 2
73116   fi
73117 done
73118   done
73119 IFS=$as_save_IFS
73120
73121 fi
73122 fi
73123 CXX=$ac_cv_prog_CXX
73124 if test -n "$CXX"; then
73125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
73126 $as_echo "$CXX" >&6; }
73127 else
73128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73129 $as_echo "no" >&6; }
73130 fi
73131
73132
73133     test -n "$CXX" && break
73134   done
73135 fi
73136 if test -z "$CXX"; then
73137   ac_ct_CXX=$CXX
73138   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
73139 do
73140   # Extract the first word of "$ac_prog", so it can be a program name with args.
73141 set dummy $ac_prog; ac_word=$2
73142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73143 $as_echo_n "checking for $ac_word... " >&6; }
73144 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
73145   $as_echo_n "(cached) " >&6
73146 else
73147   if test -n "$ac_ct_CXX"; then
73148   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
73149 else
73150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73151 for as_dir in $PATH
73152 do
73153   IFS=$as_save_IFS
73154   test -z "$as_dir" && as_dir=.
73155     for ac_exec_ext in '' $ac_executable_extensions; do
73156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73157     ac_cv_prog_ac_ct_CXX="$ac_prog"
73158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73159     break 2
73160   fi
73161 done
73162   done
73163 IFS=$as_save_IFS
73164
73165 fi
73166 fi
73167 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
73168 if test -n "$ac_ct_CXX"; then
73169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
73170 $as_echo "$ac_ct_CXX" >&6; }
73171 else
73172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73173 $as_echo "no" >&6; }
73174 fi
73175
73176
73177   test -n "$ac_ct_CXX" && break
73178 done
73179
73180   if test "x$ac_ct_CXX" = x; then
73181     CXX=":"
73182   else
73183     case $cross_compiling:$ac_tool_warned in
73184 yes:)
73185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
73186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
73187 ac_tool_warned=yes ;;
73188 esac
73189     CXX=$ac_ct_CXX
73190   fi
73191 fi
73192
73193     fi
73194   fi
73195   if test "$CXX" != no; then
73196             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
73197 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
73198     ac_ext=cpp
73199 ac_cpp='$CXXCPP $CPPFLAGS'
73200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
73203
73204
73205
73206     echo 'int main () { return 0; }' > conftest.$ac_ext
73207     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
73208   (eval $ac_link) 2>&5
73209   ac_status=$?
73210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73211   test $ac_status = 0; } && test -s conftest$ac_exeext; then
73212       gl_cv_prog_ansicxx_works=yes
73213       if (./conftest; exit) 2>/dev/null; then
73214         gl_cv_prog_ansicxx_cross=no
73215       else
73216         gl_cv_prog_ansicxx_cross=yes
73217       fi
73218     else
73219       gl_cv_prog_ansicxx_works=no
73220     fi
73221     rm -fr conftest*
73222     ac_ext=c
73223 ac_cpp='$CPP $CPPFLAGS'
73224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
73227
73228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
73229 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
73230     if test $gl_cv_prog_ansicxx_works = no; then
73231       CXX=no
73232     else
73233                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
73234 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
73235       ac_ext=cpp
73236 ac_cpp='$CXXCPP $CPPFLAGS'
73237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
73240
73241       cat <<EOF > conftest.$ac_ext
73242 #include <iostream>
73243 namespace test { using namespace std; }
73244 std::ostream* ptr;
73245 int main () { return 0; }
73246 EOF
73247       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
73248   (eval $ac_link) 2>&5
73249   ac_status=$?
73250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73251   test $ac_status = 0; } && test -s conftest$ac_exeext; then
73252         gl_cv_prog_ansicxx_namespaces=yes
73253       else
73254         gl_cv_prog_ansicxx_namespaces=no
73255       fi
73256       rm -fr conftest*
73257       ac_ext=c
73258 ac_cpp='$CPP $CPPFLAGS'
73259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
73262
73263       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
73264 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
73265       if test $gl_cv_prog_ansicxx_namespaces = no; then
73266         CXX=no
73267       fi
73268     fi
73269   fi
73270
73271
73272
73273    if test "$CXX" != no; then
73274   ANSICXX_TRUE=
73275   ANSICXX_FALSE='#'
73276 else
73277   ANSICXX_TRUE='#'
73278   ANSICXX_FALSE=
73279 fi
73280
73281
73282   if test "$CXX" != no; then
73283
73284 depcc="$CXX"  am_compiler_list=
73285
73286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
73287 $as_echo_n "checking dependency style of $depcc... " >&6; }
73288 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
73289   $as_echo_n "(cached) " >&6
73290 else
73291   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
73292   # We make a subdir and do the tests there.  Otherwise we can end up
73293   # making bogus files that we don't know about and never remove.  For
73294   # instance it was reported that on HP-UX the gcc test will end up
73295   # making a dummy file named 'D' -- because '-MD' means "put the output
73296   # in D".
73297   rm -rf conftest.dir
73298   mkdir conftest.dir
73299   # Copy depcomp to subdir because otherwise we won't find it if we're
73300   # using a relative directory.
73301   cp "$am_depcomp" conftest.dir
73302   cd conftest.dir
73303   # We will build objects and dependencies in a subdirectory because
73304   # it helps to detect inapplicable dependency modes.  For instance
73305   # both Tru64's cc and ICC support -MD to output dependencies as a
73306   # side effect of compilation, but ICC will put the dependencies in
73307   # the current directory while Tru64 will put them in the object
73308   # directory.
73309   mkdir sub
73310
73311   am_cv_CXX_dependencies_compiler_type=none
73312   if test "$am_compiler_list" = ""; then
73313      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
73314   fi
73315   am__universal=false
73316   case " $depcc " in #(
73317      *\ -arch\ *\ -arch\ *) am__universal=true ;;
73318      esac
73319
73320   for depmode in $am_compiler_list; do
73321     # Setup a source with many dependencies, because some compilers
73322     # like to wrap large dependency lists on column 80 (with \), and
73323     # we should not choose a depcomp mode which is confused by this.
73324     #
73325     # We need to recreate these files for each test, as the compiler may
73326     # overwrite some of them when testing with obscure command lines.
73327     # This happens at least with the AIX C compiler.
73328     : > sub/conftest.c
73329     for i in 1 2 3 4 5 6; do
73330       echo '#include "conftst'$i'.h"' >> sub/conftest.c
73331       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
73332       # Solaris 10 /bin/sh.
73333       echo '/* dummy */' > sub/conftst$i.h
73334     done
73335     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
73336
73337     # We check with '-c' and '-o' for the sake of the "dashmstdout"
73338     # mode.  It turns out that the SunPro C++ compiler does not properly
73339     # handle '-M -o', and we need to detect this.  Also, some Intel
73340     # versions had trouble with output in subdirs.
73341     am__obj=sub/conftest.${OBJEXT-o}
73342     am__minus_obj="-o $am__obj"
73343     case $depmode in
73344     gcc)
73345       # This depmode causes a compiler race in universal mode.
73346       test "$am__universal" = false || continue
73347       ;;
73348     nosideeffect)
73349       # After this tag, mechanisms are not by side-effect, so they'll
73350       # only be used when explicitly requested.
73351       if test "x$enable_dependency_tracking" = xyes; then
73352         continue
73353       else
73354         break
73355       fi
73356       ;;
73357     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
73358       # This compiler won't grok '-c -o', but also, the minuso test has
73359       # not run yet.  These depmodes are late enough in the game, and
73360       # so weak that their functioning should not be impacted.
73361       am__obj=conftest.${OBJEXT-o}
73362       am__minus_obj=
73363       ;;
73364     none) break ;;
73365     esac
73366     if depmode=$depmode \
73367        source=sub/conftest.c object=$am__obj \
73368        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
73369        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
73370          >/dev/null 2>conftest.err &&
73371        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
73372        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
73373        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
73374        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
73375       # icc doesn't choke on unknown options, it will just issue warnings
73376       # or remarks (even with -Werror).  So we grep stderr for any message
73377       # that says an option was ignored or not supported.
73378       # When given -MP, icc 7.0 and 7.1 complain thusly:
73379       #   icc: Command line warning: ignoring option '-M'; no argument required
73380       # The diagnosis changed in icc 8.0:
73381       #   icc: Command line remark: option '-MP' not supported
73382       if (grep 'ignoring option' conftest.err ||
73383           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
73384         am_cv_CXX_dependencies_compiler_type=$depmode
73385         break
73386       fi
73387     fi
73388   done
73389
73390   cd ..
73391   rm -rf conftest.dir
73392 else
73393   am_cv_CXX_dependencies_compiler_type=none
73394 fi
73395
73396 fi
73397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
73398 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
73399 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
73400
73401  if
73402   test "x$enable_dependency_tracking" != xno \
73403   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
73404   am__fastdepCXX_TRUE=
73405   am__fastdepCXX_FALSE='#'
73406 else
73407   am__fastdepCXX_TRUE='#'
73408   am__fastdepCXX_FALSE=
73409 fi
73410
73411
73412   else
73413      if false; then
73414   am__fastdepCXX_TRUE=
73415   am__fastdepCXX_FALSE='#'
73416 else
73417   am__fastdepCXX_TRUE='#'
73418   am__fastdepCXX_FALSE=
73419 fi
73420
73421   fi
73422
73423
73424
73425
73426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
73427 $as_echo_n "checking for a traditional french locale... " >&6; }
73428 if ${gt_cv_locale_fr+:} false; then :
73429   $as_echo_n "(cached) " >&6
73430 else
73431
73432     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73433 /* end confdefs.h.  */
73434
73435 #include <locale.h>
73436 #include <time.h>
73437 #if HAVE_LANGINFO_CODESET
73438 # include <langinfo.h>
73439 #endif
73440 #include <stdlib.h>
73441 #include <string.h>
73442 struct tm t;
73443 char buf[16];
73444 int main () {
73445   /* Check whether the given locale name is recognized by the system.  */
73446 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
73447   /* On native Windows, setlocale(category, "") looks at the system settings,
73448      not at the environment variables.  Also, when an encoding suffix such
73449      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
73450      category of the locale to "C".  */
73451   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
73452       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
73453     return 1;
73454 #else
73455   if (setlocale (LC_ALL, "") == NULL) return 1;
73456 #endif
73457   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
73458      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
73459      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
73460      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
73461      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
73462      some unit tests fail.
73463      On MirBSD 10, when an unsupported locale is specified, setlocale()
73464      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
73465 #if HAVE_LANGINFO_CODESET
73466   {
73467     const char *cs = nl_langinfo (CODESET);
73468     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
73469         || strcmp (cs, "UTF-8") == 0)
73470       return 1;
73471   }
73472 #endif
73473 #ifdef __CYGWIN__
73474   /* On Cygwin, avoid locale names without encoding suffix, because the
73475      locale_charset() function relies on the encoding suffix.  Note that
73476      LC_ALL is set on the command line.  */
73477   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
73478 #endif
73479   /* Check whether in the abbreviation of the second month, the second
73480      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
73481      one byte long. This excludes the UTF-8 encoding.  */
73482   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
73483   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
73484 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
73485   /* Check whether the decimal separator is a comma.
73486      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
73487      are nl_langinfo(RADIXCHAR) are both ".".  */
73488   if (localeconv () ->decimal_point[0] != ',') return 1;
73489 #endif
73490   return 0;
73491 }
73492
73493 _ACEOF
73494     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
73495   (eval $ac_link) 2>&5
73496   ac_status=$?
73497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73498   test $ac_status = 0; } && test -s conftest$ac_exeext; then
73499       case "$host_os" in
73500         # Handle native Windows specially, because there setlocale() interprets
73501         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
73502         # "fr" or "fra" as "French" or "French_France.1252",
73503         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
73504         # "ja" as "Japanese" or "Japanese_Japan.932",
73505         # and similar.
73506         mingw*)
73507           # Test for the native Windows locale name.
73508           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73509             gt_cv_locale_fr=French_France.1252
73510           else
73511             # None found.
73512             gt_cv_locale_fr=none
73513           fi
73514           ;;
73515         *)
73516           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
73517           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
73518           # configure script would override the LC_ALL setting. Likewise for
73519           # LC_CTYPE, which is also set at the beginning of the configure script.
73520           # Test for the usual locale name.
73521           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73522             gt_cv_locale_fr=fr_FR
73523           else
73524             # Test for the locale name with explicit encoding suffix.
73525             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73526               gt_cv_locale_fr=fr_FR.ISO-8859-1
73527             else
73528               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
73529               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73530                 gt_cv_locale_fr=fr_FR.ISO8859-1
73531               else
73532                 # Test for the HP-UX locale name.
73533                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73534                   gt_cv_locale_fr=fr_FR.iso88591
73535                 else
73536                   # Test for the Solaris 7 locale name.
73537                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73538                     gt_cv_locale_fr=fr
73539                   else
73540                     # None found.
73541                     gt_cv_locale_fr=none
73542                   fi
73543                 fi
73544               fi
73545             fi
73546           fi
73547           ;;
73548       esac
73549     fi
73550     rm -fr conftest*
73551
73552 fi
73553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
73554 $as_echo "$gt_cv_locale_fr" >&6; }
73555   LOCALE_FR=$gt_cv_locale_fr
73556
73557
73558
73559
73560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
73561 $as_echo_n "checking for a french Unicode locale... " >&6; }
73562 if ${gt_cv_locale_fr_utf8+:} false; then :
73563   $as_echo_n "(cached) " >&6
73564 else
73565
73566     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73567 /* end confdefs.h.  */
73568
73569 #include <locale.h>
73570 #include <time.h>
73571 #if HAVE_LANGINFO_CODESET
73572 # include <langinfo.h>
73573 #endif
73574 #include <stdlib.h>
73575 #include <string.h>
73576 struct tm t;
73577 char buf[16];
73578 int main () {
73579   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
73580      imitates locale dependent behaviour by looking at the environment
73581      variables, and all locales use the UTF-8 encoding.  */
73582 #if !(defined __BEOS__ || defined __HAIKU__)
73583   /* Check whether the given locale name is recognized by the system.  */
73584 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
73585   /* On native Windows, setlocale(category, "") looks at the system settings,
73586      not at the environment variables.  Also, when an encoding suffix such
73587      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
73588      category of the locale to "C".  */
73589   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
73590       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
73591     return 1;
73592 # else
73593   if (setlocale (LC_ALL, "") == NULL) return 1;
73594 # endif
73595   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
73596      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
73597      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
73598      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
73599      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
73600      some unit tests fail.  */
73601 # if HAVE_LANGINFO_CODESET
73602   {
73603     const char *cs = nl_langinfo (CODESET);
73604     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
73605       return 1;
73606   }
73607 # endif
73608 # ifdef __CYGWIN__
73609   /* On Cygwin, avoid locale names without encoding suffix, because the
73610      locale_charset() function relies on the encoding suffix.  Note that
73611      LC_ALL is set on the command line.  */
73612   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
73613 # endif
73614   /* Check whether in the abbreviation of the second month, the second
73615      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
73616      two bytes long, with UTF-8 encoding.  */
73617   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
73618   if (strftime (buf, sizeof (buf), "%b", &t) < 4
73619       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
73620     return 1;
73621 #endif
73622 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
73623   /* Check whether the decimal separator is a comma.
73624      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
73625      are nl_langinfo(RADIXCHAR) are both ".".  */
73626   if (localeconv () ->decimal_point[0] != ',') return 1;
73627 #endif
73628   return 0;
73629 }
73630
73631 _ACEOF
73632     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
73633   (eval $ac_link) 2>&5
73634   ac_status=$?
73635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73636   test $ac_status = 0; } && test -s conftest$ac_exeext; then
73637       case "$host_os" in
73638         # Handle native Windows specially, because there setlocale() interprets
73639         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
73640         # "fr" or "fra" as "French" or "French_France.1252",
73641         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
73642         # "ja" as "Japanese" or "Japanese_Japan.932",
73643         # and similar.
73644         mingw*)
73645           # Test for the hypothetical native Windows locale name.
73646           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73647             gt_cv_locale_fr_utf8=French_France.65001
73648           else
73649             # None found.
73650             gt_cv_locale_fr_utf8=none
73651           fi
73652           ;;
73653         *)
73654           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
73655           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
73656           # configure script would override the LC_ALL setting. Likewise for
73657           # LC_CTYPE, which is also set at the beginning of the configure script.
73658           # Test for the usual locale name.
73659           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73660             gt_cv_locale_fr_utf8=fr_FR
73661           else
73662             # Test for the locale name with explicit encoding suffix.
73663             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73664               gt_cv_locale_fr_utf8=fr_FR.UTF-8
73665             else
73666               # Test for the Solaris 7 locale name.
73667               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73668                 gt_cv_locale_fr_utf8=fr.UTF-8
73669               else
73670                 # None found.
73671                 gt_cv_locale_fr_utf8=none
73672               fi
73673             fi
73674           fi
73675           ;;
73676       esac
73677     fi
73678     rm -fr conftest*
73679
73680 fi
73681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
73682 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
73683   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
73684
73685
73686
73687
73688
73689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
73690 $as_echo_n "checking for a traditional japanese locale... " >&6; }
73691 if ${gt_cv_locale_ja+:} false; then :
73692   $as_echo_n "(cached) " >&6
73693 else
73694
73695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73696 /* end confdefs.h.  */
73697
73698 #include <locale.h>
73699 #include <time.h>
73700 #if HAVE_LANGINFO_CODESET
73701 # include <langinfo.h>
73702 #endif
73703 #include <stdlib.h>
73704 #include <string.h>
73705 struct tm t;
73706 char buf[16];
73707 int main ()
73708 {
73709   const char *p;
73710   /* Check whether the given locale name is recognized by the system.  */
73711 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
73712   /* On native Windows, setlocale(category, "") looks at the system settings,
73713      not at the environment variables.  Also, when an encoding suffix such
73714      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
73715      category of the locale to "C".  */
73716   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
73717       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
73718     return 1;
73719 #else
73720   if (setlocale (LC_ALL, "") == NULL) return 1;
73721 #endif
73722   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
73723      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
73724      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
73725      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
73726      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
73727      some unit tests fail.
73728      On MirBSD 10, when an unsupported locale is specified, setlocale()
73729      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
73730 #if HAVE_LANGINFO_CODESET
73731   {
73732     const char *cs = nl_langinfo (CODESET);
73733     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
73734         || strcmp (cs, "UTF-8") == 0)
73735       return 1;
73736   }
73737 #endif
73738 #ifdef __CYGWIN__
73739   /* On Cygwin, avoid locale names without encoding suffix, because the
73740      locale_charset() function relies on the encoding suffix.  Note that
73741      LC_ALL is set on the command line.  */
73742   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
73743 #endif
73744   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
73745      on Cygwin 1.5.x.  */
73746   if (MB_CUR_MAX == 1)
73747     return 1;
73748   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
73749      This excludes the UTF-8 encoding (except on MirBSD).  */
73750   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
73751   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
73752   for (p = buf; *p != '\0'; p++)
73753     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
73754       return 1;
73755   return 0;
73756 }
73757
73758 _ACEOF
73759     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
73760   (eval $ac_link) 2>&5
73761   ac_status=$?
73762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73763   test $ac_status = 0; } && test -s conftest$ac_exeext; then
73764       case "$host_os" in
73765         # Handle native Windows specially, because there setlocale() interprets
73766         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
73767         # "fr" or "fra" as "French" or "French_France.1252",
73768         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
73769         # "ja" as "Japanese" or "Japanese_Japan.932",
73770         # and similar.
73771         mingw*)
73772           # Note that on native Windows, the Japanese locale is
73773           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
73774           # cannot use it here.
73775           gt_cv_locale_ja=none
73776           ;;
73777         *)
73778           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
73779           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
73780           # configure script would override the LC_ALL setting. Likewise for
73781           # LC_CTYPE, which is also set at the beginning of the configure script.
73782           # Test for the AIX locale name.
73783           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73784             gt_cv_locale_ja=ja_JP
73785           else
73786             # Test for the locale name with explicit encoding suffix.
73787             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73788               gt_cv_locale_ja=ja_JP.EUC-JP
73789             else
73790               # Test for the HP-UX, OSF/1, NetBSD locale name.
73791               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73792                 gt_cv_locale_ja=ja_JP.eucJP
73793               else
73794                 # Test for the IRIX, FreeBSD locale name.
73795                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73796                   gt_cv_locale_ja=ja_JP.EUC
73797                 else
73798                   # Test for the Solaris 7 locale name.
73799                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73800                     gt_cv_locale_ja=ja
73801                   else
73802                     # Special test for NetBSD 1.6.
73803                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
73804                       gt_cv_locale_ja=ja_JP.eucJP
73805                     else
73806                       # None found.
73807                       gt_cv_locale_ja=none
73808                     fi
73809                   fi
73810                 fi
73811               fi
73812             fi
73813           fi
73814           ;;
73815       esac
73816     fi
73817     rm -fr conftest*
73818
73819 fi
73820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
73821 $as_echo "$gt_cv_locale_ja" >&6; }
73822   LOCALE_JA=$gt_cv_locale_ja
73823
73824
73825
73826
73827
73828
73829
73830
73831
73832
73833
73834 ac_ext=cpp
73835 ac_cpp='$CXXCPP $CPPFLAGS'
73836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
73839 if test -z "$CXX"; then
73840   if test -n "$CCC"; then
73841     CXX=$CCC
73842   else
73843     if test -n "$ac_tool_prefix"; then
73844   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
73845   do
73846     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
73847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
73848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73849 $as_echo_n "checking for $ac_word... " >&6; }
73850 if ${ac_cv_prog_CXX+:} false; then :
73851   $as_echo_n "(cached) " >&6
73852 else
73853   if test -n "$CXX"; then
73854   ac_cv_prog_CXX="$CXX" # Let the user override the test.
73855 else
73856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73857 for as_dir in $PATH
73858 do
73859   IFS=$as_save_IFS
73860   test -z "$as_dir" && as_dir=.
73861     for ac_exec_ext in '' $ac_executable_extensions; do
73862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73863     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
73864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73865     break 2
73866   fi
73867 done
73868   done
73869 IFS=$as_save_IFS
73870
73871 fi
73872 fi
73873 CXX=$ac_cv_prog_CXX
73874 if test -n "$CXX"; then
73875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
73876 $as_echo "$CXX" >&6; }
73877 else
73878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73879 $as_echo "no" >&6; }
73880 fi
73881
73882
73883     test -n "$CXX" && break
73884   done
73885 fi
73886 if test -z "$CXX"; then
73887   ac_ct_CXX=$CXX
73888   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
73889 do
73890   # Extract the first word of "$ac_prog", so it can be a program name with args.
73891 set dummy $ac_prog; ac_word=$2
73892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73893 $as_echo_n "checking for $ac_word... " >&6; }
73894 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
73895   $as_echo_n "(cached) " >&6
73896 else
73897   if test -n "$ac_ct_CXX"; then
73898   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
73899 else
73900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73901 for as_dir in $PATH
73902 do
73903   IFS=$as_save_IFS
73904   test -z "$as_dir" && as_dir=.
73905     for ac_exec_ext in '' $ac_executable_extensions; do
73906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73907     ac_cv_prog_ac_ct_CXX="$ac_prog"
73908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73909     break 2
73910   fi
73911 done
73912   done
73913 IFS=$as_save_IFS
73914
73915 fi
73916 fi
73917 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
73918 if test -n "$ac_ct_CXX"; then
73919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
73920 $as_echo "$ac_ct_CXX" >&6; }
73921 else
73922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73923 $as_echo "no" >&6; }
73924 fi
73925
73926
73927   test -n "$ac_ct_CXX" && break
73928 done
73929
73930   if test "x$ac_ct_CXX" = x; then
73931     CXX="g++"
73932   else
73933     case $cross_compiling:$ac_tool_warned in
73934 yes:)
73935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
73936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
73937 ac_tool_warned=yes ;;
73938 esac
73939     CXX=$ac_ct_CXX
73940   fi
73941 fi
73942
73943   fi
73944 fi
73945 # Provide some information about the compiler.
73946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
73947 set X $ac_compile
73948 ac_compiler=$2
73949 for ac_option in --version -v -V -qversion; do
73950   { { ac_try="$ac_compiler $ac_option >&5"
73951 case "(($ac_try" in
73952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73953   *) ac_try_echo=$ac_try;;
73954 esac
73955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
73956 $as_echo "$ac_try_echo"; } >&5
73957   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
73958   ac_status=$?
73959   if test -s conftest.err; then
73960     sed '10a\
73961 ... rest of stderr output deleted ...
73962          10q' conftest.err >conftest.er1
73963     cat conftest.er1 >&5
73964   fi
73965   rm -f conftest.er1 conftest.err
73966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73967   test $ac_status = 0; }
73968 done
73969
73970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
73971 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
73972 if ${ac_cv_cxx_compiler_gnu+:} false; then :
73973   $as_echo_n "(cached) " >&6
73974 else
73975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73976 /* end confdefs.h.  */
73977
73978 int
73979 main ()
73980 {
73981 #ifndef __GNUC__
73982        choke me
73983 #endif
73984
73985   ;
73986   return 0;
73987 }
73988 _ACEOF
73989 if ac_fn_cxx_try_compile "$LINENO"; then :
73990   ac_compiler_gnu=yes
73991 else
73992   ac_compiler_gnu=no
73993 fi
73994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73995 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
73996
73997 fi
73998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
73999 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
74000 if test $ac_compiler_gnu = yes; then
74001   GXX=yes
74002 else
74003   GXX=
74004 fi
74005 ac_test_CXXFLAGS=${CXXFLAGS+set}
74006 ac_save_CXXFLAGS=$CXXFLAGS
74007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
74008 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
74009 if ${ac_cv_prog_cxx_g+:} false; then :
74010   $as_echo_n "(cached) " >&6
74011 else
74012   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
74013    ac_cxx_werror_flag=yes
74014    ac_cv_prog_cxx_g=no
74015    CXXFLAGS="-g"
74016    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74017 /* end confdefs.h.  */
74018
74019 int
74020 main ()
74021 {
74022
74023   ;
74024   return 0;
74025 }
74026 _ACEOF
74027 if ac_fn_cxx_try_compile "$LINENO"; then :
74028   ac_cv_prog_cxx_g=yes
74029 else
74030   CXXFLAGS=""
74031       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74032 /* end confdefs.h.  */
74033
74034 int
74035 main ()
74036 {
74037
74038   ;
74039   return 0;
74040 }
74041 _ACEOF
74042 if ac_fn_cxx_try_compile "$LINENO"; then :
74043
74044 else
74045   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
74046          CXXFLAGS="-g"
74047          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74048 /* end confdefs.h.  */
74049
74050 int
74051 main ()
74052 {
74053
74054   ;
74055   return 0;
74056 }
74057 _ACEOF
74058 if ac_fn_cxx_try_compile "$LINENO"; then :
74059   ac_cv_prog_cxx_g=yes
74060 fi
74061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74062 fi
74063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74064 fi
74065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74066    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
74067 fi
74068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
74069 $as_echo "$ac_cv_prog_cxx_g" >&6; }
74070 if test "$ac_test_CXXFLAGS" = set; then
74071   CXXFLAGS=$ac_save_CXXFLAGS
74072 elif test $ac_cv_prog_cxx_g = yes; then
74073   if test "$GXX" = yes; then
74074     CXXFLAGS="-g -O2"
74075   else
74076     CXXFLAGS="-g"
74077   fi
74078 else
74079   if test "$GXX" = yes; then
74080     CXXFLAGS="-O2"
74081   else
74082     CXXFLAGS=
74083   fi
74084 fi
74085 ac_ext=c
74086 ac_cpp='$CPP $CPPFLAGS'
74087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
74088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
74089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
74090
74091 depcc="$CXX"  am_compiler_list=
74092
74093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
74094 $as_echo_n "checking dependency style of $depcc... " >&6; }
74095 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
74096   $as_echo_n "(cached) " >&6
74097 else
74098   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
74099   # We make a subdir and do the tests there.  Otherwise we can end up
74100   # making bogus files that we don't know about and never remove.  For
74101   # instance it was reported that on HP-UX the gcc test will end up
74102   # making a dummy file named 'D' -- because '-MD' means "put the output
74103   # in D".
74104   rm -rf conftest.dir
74105   mkdir conftest.dir
74106   # Copy depcomp to subdir because otherwise we won't find it if we're
74107   # using a relative directory.
74108   cp "$am_depcomp" conftest.dir
74109   cd conftest.dir
74110   # We will build objects and dependencies in a subdirectory because
74111   # it helps to detect inapplicable dependency modes.  For instance
74112   # both Tru64's cc and ICC support -MD to output dependencies as a
74113   # side effect of compilation, but ICC will put the dependencies in
74114   # the current directory while Tru64 will put them in the object
74115   # directory.
74116   mkdir sub
74117
74118   am_cv_CXX_dependencies_compiler_type=none
74119   if test "$am_compiler_list" = ""; then
74120      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
74121   fi
74122   am__universal=false
74123   case " $depcc " in #(
74124      *\ -arch\ *\ -arch\ *) am__universal=true ;;
74125      esac
74126
74127   for depmode in $am_compiler_list; do
74128     # Setup a source with many dependencies, because some compilers
74129     # like to wrap large dependency lists on column 80 (with \), and
74130     # we should not choose a depcomp mode which is confused by this.
74131     #
74132     # We need to recreate these files for each test, as the compiler may
74133     # overwrite some of them when testing with obscure command lines.
74134     # This happens at least with the AIX C compiler.
74135     : > sub/conftest.c
74136     for i in 1 2 3 4 5 6; do
74137       echo '#include "conftst'$i'.h"' >> sub/conftest.c
74138       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
74139       # Solaris 10 /bin/sh.
74140       echo '/* dummy */' > sub/conftst$i.h
74141     done
74142     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
74143
74144     # We check with '-c' and '-o' for the sake of the "dashmstdout"
74145     # mode.  It turns out that the SunPro C++ compiler does not properly
74146     # handle '-M -o', and we need to detect this.  Also, some Intel
74147     # versions had trouble with output in subdirs.
74148     am__obj=sub/conftest.${OBJEXT-o}
74149     am__minus_obj="-o $am__obj"
74150     case $depmode in
74151     gcc)
74152       # This depmode causes a compiler race in universal mode.
74153       test "$am__universal" = false || continue
74154       ;;
74155     nosideeffect)
74156       # After this tag, mechanisms are not by side-effect, so they'll
74157       # only be used when explicitly requested.
74158       if test "x$enable_dependency_tracking" = xyes; then
74159         continue
74160       else
74161         break
74162       fi
74163       ;;
74164     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
74165       # This compiler won't grok '-c -o', but also, the minuso test has
74166       # not run yet.  These depmodes are late enough in the game, and
74167       # so weak that their functioning should not be impacted.
74168       am__obj=conftest.${OBJEXT-o}
74169       am__minus_obj=
74170       ;;
74171     none) break ;;
74172     esac
74173     if depmode=$depmode \
74174        source=sub/conftest.c object=$am__obj \
74175        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
74176        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
74177          >/dev/null 2>conftest.err &&
74178        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
74179        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
74180        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
74181        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
74182       # icc doesn't choke on unknown options, it will just issue warnings
74183       # or remarks (even with -Werror).  So we grep stderr for any message
74184       # that says an option was ignored or not supported.
74185       # When given -MP, icc 7.0 and 7.1 complain thusly:
74186       #   icc: Command line warning: ignoring option '-M'; no argument required
74187       # The diagnosis changed in icc 8.0:
74188       #   icc: Command line remark: option '-MP' not supported
74189       if (grep 'ignoring option' conftest.err ||
74190           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
74191         am_cv_CXX_dependencies_compiler_type=$depmode
74192         break
74193       fi
74194     fi
74195   done
74196
74197   cd ..
74198   rm -rf conftest.dir
74199 else
74200   am_cv_CXX_dependencies_compiler_type=none
74201 fi
74202
74203 fi
74204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
74205 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
74206 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
74207
74208  if
74209   test "x$enable_dependency_tracking" != xno \
74210   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
74211   am__fastdepCXX_TRUE=
74212   am__fastdepCXX_FALSE='#'
74213 else
74214   am__fastdepCXX_TRUE='#'
74215   am__fastdepCXX_FALSE=
74216 fi
74217
74218
74219
74220
74221
74222 func_stripname_cnf ()
74223 {
74224   case $2 in
74225   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
74226   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
74227   esac
74228 } # func_stripname_cnf
74229
74230       if test -n "$CXX" && ( test no != "$CXX" &&
74231     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
74232     (test g++ != "$CXX"))); then
74233   ac_ext=cpp
74234 ac_cpp='$CXXCPP $CPPFLAGS'
74235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
74236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
74237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
74238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
74239 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
74240 if test -z "$CXXCPP"; then
74241   if ${ac_cv_prog_CXXCPP+:} false; then :
74242   $as_echo_n "(cached) " >&6
74243 else
74244       # Double quotes because CXXCPP needs to be expanded
74245     for CXXCPP in "$CXX -E" "/lib/cpp"
74246     do
74247       ac_preproc_ok=false
74248 for ac_cxx_preproc_warn_flag in '' yes
74249 do
74250   # Use a header file that comes with gcc, so configuring glibc
74251   # with a fresh cross-compiler works.
74252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
74253   # <limits.h> exists even on freestanding compilers.
74254   # On the NeXT, cc -E runs the code through the compiler's parser,
74255   # not just through cpp. "Syntax error" is here to catch this case.
74256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74257 /* end confdefs.h.  */
74258 #ifdef __STDC__
74259 # include <limits.h>
74260 #else
74261 # include <assert.h>
74262 #endif
74263                      Syntax error
74264 _ACEOF
74265 if ac_fn_cxx_try_cpp "$LINENO"; then :
74266
74267 else
74268   # Broken: fails on valid input.
74269 continue
74270 fi
74271 rm -f conftest.err conftest.i conftest.$ac_ext
74272
74273   # OK, works on sane cases.  Now check whether nonexistent headers
74274   # can be detected and how.
74275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74276 /* end confdefs.h.  */
74277 #include <ac_nonexistent.h>
74278 _ACEOF
74279 if ac_fn_cxx_try_cpp "$LINENO"; then :
74280   # Broken: success on invalid input.
74281 continue
74282 else
74283   # Passes both tests.
74284 ac_preproc_ok=:
74285 break
74286 fi
74287 rm -f conftest.err conftest.i conftest.$ac_ext
74288
74289 done
74290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
74291 rm -f conftest.i conftest.err conftest.$ac_ext
74292 if $ac_preproc_ok; then :
74293   break
74294 fi
74295
74296     done
74297     ac_cv_prog_CXXCPP=$CXXCPP
74298
74299 fi
74300   CXXCPP=$ac_cv_prog_CXXCPP
74301 else
74302   ac_cv_prog_CXXCPP=$CXXCPP
74303 fi
74304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
74305 $as_echo "$CXXCPP" >&6; }
74306 ac_preproc_ok=false
74307 for ac_cxx_preproc_warn_flag in '' yes
74308 do
74309   # Use a header file that comes with gcc, so configuring glibc
74310   # with a fresh cross-compiler works.
74311   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
74312   # <limits.h> exists even on freestanding compilers.
74313   # On the NeXT, cc -E runs the code through the compiler's parser,
74314   # not just through cpp. "Syntax error" is here to catch this case.
74315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74316 /* end confdefs.h.  */
74317 #ifdef __STDC__
74318 # include <limits.h>
74319 #else
74320 # include <assert.h>
74321 #endif
74322                      Syntax error
74323 _ACEOF
74324 if ac_fn_cxx_try_cpp "$LINENO"; then :
74325
74326 else
74327   # Broken: fails on valid input.
74328 continue
74329 fi
74330 rm -f conftest.err conftest.i conftest.$ac_ext
74331
74332   # OK, works on sane cases.  Now check whether nonexistent headers
74333   # can be detected and how.
74334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74335 /* end confdefs.h.  */
74336 #include <ac_nonexistent.h>
74337 _ACEOF
74338 if ac_fn_cxx_try_cpp "$LINENO"; then :
74339   # Broken: success on invalid input.
74340 continue
74341 else
74342   # Passes both tests.
74343 ac_preproc_ok=:
74344 break
74345 fi
74346 rm -f conftest.err conftest.i conftest.$ac_ext
74347
74348 done
74349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
74350 rm -f conftest.i conftest.err conftest.$ac_ext
74351 if $ac_preproc_ok; then :
74352
74353 else
74354   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
74355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
74356 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
74357 See \`config.log' for more details" "$LINENO" 5; }
74358 fi
74359
74360 ac_ext=c
74361 ac_cpp='$CPP $CPPFLAGS'
74362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
74363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
74364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
74365
74366 else
74367   _lt_caught_CXX_error=yes
74368 fi
74369
74370 ac_ext=cpp
74371 ac_cpp='$CXXCPP $CPPFLAGS'
74372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
74373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
74374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
74375
74376 archive_cmds_need_lc_CXX=no
74377 allow_undefined_flag_CXX=
74378 always_export_symbols_CXX=no
74379 archive_expsym_cmds_CXX=
74380 compiler_needs_object_CXX=no
74381 export_dynamic_flag_spec_CXX=
74382 hardcode_direct_CXX=no
74383 hardcode_direct_absolute_CXX=no
74384 hardcode_libdir_flag_spec_CXX=
74385 hardcode_libdir_separator_CXX=
74386 hardcode_minus_L_CXX=no
74387 hardcode_shlibpath_var_CXX=unsupported
74388 hardcode_automatic_CXX=no
74389 inherit_rpath_CXX=no
74390 module_cmds_CXX=
74391 module_expsym_cmds_CXX=
74392 link_all_deplibs_CXX=unknown
74393 old_archive_cmds_CXX=$old_archive_cmds
74394 reload_flag_CXX=$reload_flag
74395 reload_cmds_CXX=$reload_cmds
74396 no_undefined_flag_CXX=
74397 whole_archive_flag_spec_CXX=
74398 enable_shared_with_static_runtimes_CXX=no
74399
74400 # Source file extension for C++ test sources.
74401 ac_ext=cpp
74402
74403 # Object file extension for compiled C++ test sources.
74404 objext=o
74405 objext_CXX=$objext
74406
74407 # No sense in running all these tests if we already determined that
74408 # the CXX compiler isn't working.  Some variables (like enable_shared)
74409 # are currently assumed to apply to all compilers on this platform,
74410 # and will be corrupted by setting them based on a non-working compiler.
74411 if test yes != "$_lt_caught_CXX_error"; then
74412   # Code to be used in simple compile tests
74413   lt_simple_compile_test_code="int some_variable = 0;"
74414
74415   # Code to be used in simple link tests
74416   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
74417
74418   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
74419
74420
74421
74422
74423
74424
74425 # If no C compiler was specified, use CC.
74426 LTCC=${LTCC-"$CC"}
74427
74428 # If no C compiler flags were specified, use CFLAGS.
74429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
74430
74431 # Allow CC to be a program name with arguments.
74432 compiler=$CC
74433
74434
74435   # save warnings/boilerplate of simple test code
74436   ac_outfile=conftest.$ac_objext
74437 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
74438 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
74439 _lt_compiler_boilerplate=`cat conftest.err`
74440 $RM conftest*
74441
74442   ac_outfile=conftest.$ac_objext
74443 echo "$lt_simple_link_test_code" >conftest.$ac_ext
74444 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
74445 _lt_linker_boilerplate=`cat conftest.err`
74446 $RM -r conftest*
74447
74448
74449   # Allow CC to be a program name with arguments.
74450   lt_save_CC=$CC
74451   lt_save_CFLAGS=$CFLAGS
74452   lt_save_LD=$LD
74453   lt_save_GCC=$GCC
74454   GCC=$GXX
74455   lt_save_with_gnu_ld=$with_gnu_ld
74456   lt_save_path_LD=$lt_cv_path_LD
74457   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
74458     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
74459   else
74460     $as_unset lt_cv_prog_gnu_ld
74461   fi
74462   if test -n "${lt_cv_path_LDCXX+set}"; then
74463     lt_cv_path_LD=$lt_cv_path_LDCXX
74464   else
74465     $as_unset lt_cv_path_LD
74466   fi
74467   test -z "${LDCXX+set}" || LD=$LDCXX
74468   CC=${CXX-"c++"}
74469   CFLAGS=$CXXFLAGS
74470   compiler=$CC
74471   compiler_CXX=$CC
74472   func_cc_basename $compiler
74473 cc_basename=$func_cc_basename_result
74474
74475
74476   if test -n "$compiler"; then
74477     # We don't want -fno-exception when compiling C++ code, so set the
74478     # no_builtin_flag separately
74479     if test yes = "$GXX"; then
74480       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
74481     else
74482       lt_prog_compiler_no_builtin_flag_CXX=
74483     fi
74484
74485     if test yes = "$GXX"; then
74486       # Set up default GNU C++ configuration
74487
74488
74489
74490 # Check whether --with-gnu-ld was given.
74491 if test "${with_gnu_ld+set}" = set; then :
74492   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
74493 else
74494   with_gnu_ld=no
74495 fi
74496
74497 ac_prog=ld
74498 if test yes = "$GCC"; then
74499   # Check if gcc -print-prog-name=ld gives a path.
74500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
74501 $as_echo_n "checking for ld used by $CC... " >&6; }
74502   case $host in
74503   *-*-mingw*)
74504     # gcc leaves a trailing carriage return, which upsets mingw
74505     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
74506   *)
74507     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
74508   esac
74509   case $ac_prog in
74510     # Accept absolute paths.
74511     [\\/]* | ?:[\\/]*)
74512       re_direlt='/[^/][^/]*/\.\./'
74513       # Canonicalize the pathname of ld
74514       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
74515       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
74516         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
74517       done
74518       test -z "$LD" && LD=$ac_prog
74519       ;;
74520   "")
74521     # If it fails, then pretend we aren't using GCC.
74522     ac_prog=ld
74523     ;;
74524   *)
74525     # If it is relative, then search for the first ld in PATH.
74526     with_gnu_ld=unknown
74527     ;;
74528   esac
74529 elif test yes = "$with_gnu_ld"; then
74530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
74531 $as_echo_n "checking for GNU ld... " >&6; }
74532 else
74533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
74534 $as_echo_n "checking for non-GNU ld... " >&6; }
74535 fi
74536 if ${lt_cv_path_LD+:} false; then :
74537   $as_echo_n "(cached) " >&6
74538 else
74539   if test -z "$LD"; then
74540   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
74541   for ac_dir in $PATH; do
74542     IFS=$lt_save_ifs
74543     test -z "$ac_dir" && ac_dir=.
74544     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
74545       lt_cv_path_LD=$ac_dir/$ac_prog
74546       # Check to see if the program is GNU ld.  I'd rather use --version,
74547       # but apparently some variants of GNU ld only accept -v.
74548       # Break only if it was the GNU/non-GNU ld that we prefer.
74549       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
74550       *GNU* | *'with BFD'*)
74551         test no != "$with_gnu_ld" && break
74552         ;;
74553       *)
74554         test yes != "$with_gnu_ld" && break
74555         ;;
74556       esac
74557     fi
74558   done
74559   IFS=$lt_save_ifs
74560 else
74561   lt_cv_path_LD=$LD # Let the user override the test with a path.
74562 fi
74563 fi
74564
74565 LD=$lt_cv_path_LD
74566 if test -n "$LD"; then
74567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
74568 $as_echo "$LD" >&6; }
74569 else
74570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74571 $as_echo "no" >&6; }
74572 fi
74573 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
74574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
74575 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
74576 if ${lt_cv_prog_gnu_ld+:} false; then :
74577   $as_echo_n "(cached) " >&6
74578 else
74579   # I'd rather use --version here, but apparently some GNU lds only accept -v.
74580 case `$LD -v 2>&1 </dev/null` in
74581 *GNU* | *'with BFD'*)
74582   lt_cv_prog_gnu_ld=yes
74583   ;;
74584 *)
74585   lt_cv_prog_gnu_ld=no
74586   ;;
74587 esac
74588 fi
74589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
74590 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
74591 with_gnu_ld=$lt_cv_prog_gnu_ld
74592
74593
74594
74595
74596
74597
74598
74599       # Check if GNU C++ uses GNU ld as the underlying linker, since the
74600       # archiving commands below assume that GNU ld is being used.
74601       if test yes = "$with_gnu_ld"; then
74602         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
74603         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'
74604
74605         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
74606         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
74607
74608         # If archive_cmds runs LD, not CC, wlarc should be empty
74609         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
74610         #     investigate it a little bit more. (MM)
74611         wlarc='$wl'
74612
74613         # ancient GNU ld didn't support --whole-archive et. al.
74614         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
74615           $GREP 'no-whole-archive' > /dev/null; then
74616           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
74617         else
74618           whole_archive_flag_spec_CXX=
74619         fi
74620       else
74621         with_gnu_ld=no
74622         wlarc=
74623
74624         # A generic and very simple default shared library creation
74625         # command for GNU C++ for the case where it uses the native
74626         # linker, instead of GNU ld.  If possible, this setting should
74627         # overridden to take advantage of the native linker features on
74628         # the platform it is being used on.
74629         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
74630       fi
74631
74632       # Commands to make compiler produce verbose output that lists
74633       # what "hidden" libraries, object files and flags are used when
74634       # linking a shared library.
74635       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
74636
74637     else
74638       GXX=no
74639       with_gnu_ld=no
74640       wlarc=
74641     fi
74642
74643     # PORTME: fill in a description of your system's C++ link characteristics
74644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
74645 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
74646     ld_shlibs_CXX=yes
74647     case $host_os in
74648       aix3*)
74649         # FIXME: insert proper C++ library support
74650         ld_shlibs_CXX=no
74651         ;;
74652       aix[4-9]*)
74653         if test ia64 = "$host_cpu"; then
74654           # On IA64, the linker does run time linking by default, so we don't
74655           # have to do anything special.
74656           aix_use_runtimelinking=no
74657           exp_sym_flag='-Bexport'
74658           no_entry_flag=
74659         else
74660           aix_use_runtimelinking=no
74661
74662           # Test if we are trying to use run time linking or normal
74663           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
74664           # have runtime linking enabled, and use it for executables.
74665           # For shared libraries, we enable/disable runtime linking
74666           # depending on the kind of the shared library created -
74667           # when "with_aix_soname,aix_use_runtimelinking" is:
74668           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
74669           # "aix,yes"  lib.so          shared, rtl:yes, for executables
74670           #            lib.a           static archive
74671           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
74672           #            lib.a(lib.so.V) shared, rtl:no,  for executables
74673           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
74674           #            lib.a(lib.so.V) shared, rtl:no
74675           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
74676           #            lib.a           static archive
74677           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
74678             for ld_flag in $LDFLAGS; do
74679               case $ld_flag in
74680               *-brtl*)
74681                 aix_use_runtimelinking=yes
74682                 break
74683                 ;;
74684               esac
74685             done
74686             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
74687               # With aix-soname=svr4, we create the lib.so.V shared archives only,
74688               # so we don't have lib.a shared libs to link our executables.
74689               # We have to force runtime linking in this case.
74690               aix_use_runtimelinking=yes
74691               LDFLAGS="$LDFLAGS -Wl,-brtl"
74692             fi
74693             ;;
74694           esac
74695
74696           exp_sym_flag='-bexport'
74697           no_entry_flag='-bnoentry'
74698         fi
74699
74700         # When large executables or shared objects are built, AIX ld can
74701         # have problems creating the table of contents.  If linking a library
74702         # or program results in "error TOC overflow" add -mminimal-toc to
74703         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
74704         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
74705
74706         archive_cmds_CXX=''
74707         hardcode_direct_CXX=yes
74708         hardcode_direct_absolute_CXX=yes
74709         hardcode_libdir_separator_CXX=':'
74710         link_all_deplibs_CXX=yes
74711         file_list_spec_CXX='$wl-f,'
74712         case $with_aix_soname,$aix_use_runtimelinking in
74713         aix,*) ;;       # no import file
74714         svr4,* | *,yes) # use import file
74715           # The Import File defines what to hardcode.
74716           hardcode_direct_CXX=no
74717           hardcode_direct_absolute_CXX=no
74718           ;;
74719         esac
74720
74721         if test yes = "$GXX"; then
74722           case $host_os in aix4.[012]|aix4.[012].*)
74723           # We only want to do this on AIX 4.2 and lower, the check
74724           # below for broken collect2 doesn't work under 4.3+
74725           collect2name=`$CC -print-prog-name=collect2`
74726           if test -f "$collect2name" &&
74727              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
74728           then
74729             # We have reworked collect2
74730             :
74731           else
74732             # We have old collect2
74733             hardcode_direct_CXX=unsupported
74734             # It fails to find uninstalled libraries when the uninstalled
74735             # path is not listed in the libpath.  Setting hardcode_minus_L
74736             # to unsupported forces relinking
74737             hardcode_minus_L_CXX=yes
74738             hardcode_libdir_flag_spec_CXX='-L$libdir'
74739             hardcode_libdir_separator_CXX=
74740           fi
74741           esac
74742           shared_flag='-shared'
74743           if test yes = "$aix_use_runtimelinking"; then
74744             shared_flag=$shared_flag' $wl-G'
74745           fi
74746           # Need to ensure runtime linking is disabled for the traditional
74747           # shared library, or the linker may eventually find shared libraries
74748           # /with/ Import File - we do not want to mix them.
74749           shared_flag_aix='-shared'
74750           shared_flag_svr4='-shared $wl-G'
74751         else
74752           # not using gcc
74753           if test ia64 = "$host_cpu"; then
74754           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
74755           # chokes on -Wl,-G. The following line is correct:
74756           shared_flag='-G'
74757           else
74758             if test yes = "$aix_use_runtimelinking"; then
74759               shared_flag='$wl-G'
74760             else
74761               shared_flag='$wl-bM:SRE'
74762             fi
74763             shared_flag_aix='$wl-bM:SRE'
74764             shared_flag_svr4='$wl-G'
74765           fi
74766         fi
74767
74768         export_dynamic_flag_spec_CXX='$wl-bexpall'
74769         # It seems that -bexpall does not export symbols beginning with
74770         # underscore (_), so it is better to generate a list of symbols to
74771         # export.
74772         always_export_symbols_CXX=yes
74773         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
74774           # Warning - without using the other runtime loading flags (-brtl),
74775           # -berok will link without error, but may produce a broken library.
74776           # The "-G" linker flag allows undefined symbols.
74777           no_undefined_flag_CXX='-bernotok'
74778           # Determine the default libpath from the value encoded in an empty
74779           # executable.
74780           if test set = "${lt_cv_aix_libpath+set}"; then
74781   aix_libpath=$lt_cv_aix_libpath
74782 else
74783   if ${lt_cv_aix_libpath__CXX+:} false; then :
74784   $as_echo_n "(cached) " >&6
74785 else
74786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74787 /* end confdefs.h.  */
74788
74789 int
74790 main ()
74791 {
74792
74793   ;
74794   return 0;
74795 }
74796 _ACEOF
74797 if ac_fn_cxx_try_link "$LINENO"; then :
74798
74799   lt_aix_libpath_sed='
74800       /Import File Strings/,/^$/ {
74801           /^0/ {
74802               s/^0  *\([^ ]*\) *$/\1/
74803               p
74804           }
74805       }'
74806   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
74807   # Check for a 64-bit object if we didn't find anything.
74808   if test -z "$lt_cv_aix_libpath__CXX"; then
74809     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
74810   fi
74811 fi
74812 rm -f core conftest.err conftest.$ac_objext \
74813     conftest$ac_exeext conftest.$ac_ext
74814   if test -z "$lt_cv_aix_libpath__CXX"; then
74815     lt_cv_aix_libpath__CXX=/usr/lib:/lib
74816   fi
74817
74818 fi
74819
74820   aix_libpath=$lt_cv_aix_libpath__CXX
74821 fi
74822
74823           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
74824
74825           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
74826         else
74827           if test ia64 = "$host_cpu"; then
74828             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
74829             allow_undefined_flag_CXX="-z nodefs"
74830             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"
74831           else
74832             # Determine the default libpath from the value encoded in an
74833             # empty executable.
74834             if test set = "${lt_cv_aix_libpath+set}"; then
74835   aix_libpath=$lt_cv_aix_libpath
74836 else
74837   if ${lt_cv_aix_libpath__CXX+:} false; then :
74838   $as_echo_n "(cached) " >&6
74839 else
74840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74841 /* end confdefs.h.  */
74842
74843 int
74844 main ()
74845 {
74846
74847   ;
74848   return 0;
74849 }
74850 _ACEOF
74851 if ac_fn_cxx_try_link "$LINENO"; then :
74852
74853   lt_aix_libpath_sed='
74854       /Import File Strings/,/^$/ {
74855           /^0/ {
74856               s/^0  *\([^ ]*\) *$/\1/
74857               p
74858           }
74859       }'
74860   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
74861   # Check for a 64-bit object if we didn't find anything.
74862   if test -z "$lt_cv_aix_libpath__CXX"; then
74863     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
74864   fi
74865 fi
74866 rm -f core conftest.err conftest.$ac_objext \
74867     conftest$ac_exeext conftest.$ac_ext
74868   if test -z "$lt_cv_aix_libpath__CXX"; then
74869     lt_cv_aix_libpath__CXX=/usr/lib:/lib
74870   fi
74871
74872 fi
74873
74874   aix_libpath=$lt_cv_aix_libpath__CXX
74875 fi
74876
74877             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
74878             # Warning - without using the other run time loading flags,
74879             # -berok will link without error, but may produce a broken library.
74880             no_undefined_flag_CXX=' $wl-bernotok'
74881             allow_undefined_flag_CXX=' $wl-berok'
74882             if test yes = "$with_gnu_ld"; then
74883               # We only use this code for GNU lds that support --whole-archive.
74884               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
74885             else
74886               # Exported symbols can be pulled into shared objects from archives
74887               whole_archive_flag_spec_CXX='$convenience'
74888             fi
74889             archive_cmds_need_lc_CXX=yes
74890             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
74891             # -brtl affects multiple linker settings, -berok does not and is overridden later
74892             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
74893             if test svr4 != "$with_aix_soname"; then
74894               # This is similar to how AIX traditionally builds its shared
74895               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
74896               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
74897             fi
74898             if test aix != "$with_aix_soname"; then
74899               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
74900             else
74901               # used by -dlpreopen to get the symbols
74902               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
74903             fi
74904             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
74905           fi
74906         fi
74907         ;;
74908
74909       beos*)
74910         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
74911           allow_undefined_flag_CXX=unsupported
74912           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
74913           # support --undefined.  This deserves some investigation.  FIXME
74914           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
74915         else
74916           ld_shlibs_CXX=no
74917         fi
74918         ;;
74919
74920       chorus*)
74921         case $cc_basename in
74922           *)
74923           # FIXME: insert proper C++ library support
74924           ld_shlibs_CXX=no
74925           ;;
74926         esac
74927         ;;
74928
74929       cygwin* | mingw* | pw32* | cegcc*)
74930         case $GXX,$cc_basename in
74931         ,cl* | no,cl*)
74932           # Native MSVC
74933           # hardcode_libdir_flag_spec is actually meaningless, as there is
74934           # no search path for DLLs.
74935           hardcode_libdir_flag_spec_CXX=' '
74936           allow_undefined_flag_CXX=unsupported
74937           always_export_symbols_CXX=yes
74938           file_list_spec_CXX='@'
74939           # Tell ltmain to make .lib files, not .a files.
74940           libext=lib
74941           # Tell ltmain to make .dll files, not .so files.
74942           shrext_cmds=.dll
74943           # FIXME: Setting linknames here is a bad hack.
74944           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
74945           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
74946               cp "$export_symbols" "$output_objdir/$soname.def";
74947               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
74948             else
74949               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
74950             fi~
74951             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
74952             linknames='
74953           # The linker will not automatically build a static lib if we build a DLL.
74954           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
74955           enable_shared_with_static_runtimes_CXX=yes
74956           # Don't use ranlib
74957           old_postinstall_cmds_CXX='chmod 644 $oldlib'
74958           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
74959             lt_tool_outputfile="@TOOL_OUTPUT@"~
74960             case $lt_outputfile in
74961               *.exe|*.EXE) ;;
74962               *)
74963                 lt_outputfile=$lt_outputfile.exe
74964                 lt_tool_outputfile=$lt_tool_outputfile.exe
74965                 ;;
74966             esac~
74967             func_to_tool_file "$lt_outputfile"~
74968             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
74969               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
74970               $RM "$lt_outputfile.manifest";
74971             fi'
74972           ;;
74973         *)
74974           # g++
74975           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
74976           # as there is no search path for DLLs.
74977           hardcode_libdir_flag_spec_CXX='-L$libdir'
74978           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
74979           allow_undefined_flag_CXX=unsupported
74980           always_export_symbols_CXX=no
74981           enable_shared_with_static_runtimes_CXX=yes
74982
74983           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
74984             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'
74985             # If the export-symbols file already is a .def file, use it as
74986             # is; otherwise, prepend EXPORTS...
74987             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
74988               cp $export_symbols $output_objdir/$soname.def;
74989             else
74990               echo EXPORTS > $output_objdir/$soname.def;
74991               cat $export_symbols >> $output_objdir/$soname.def;
74992             fi~
74993             $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'
74994           else
74995             ld_shlibs_CXX=no
74996           fi
74997           ;;
74998         esac
74999         ;;
75000       darwin* | rhapsody*)
75001
75002
75003   archive_cmds_need_lc_CXX=no
75004   hardcode_direct_CXX=no
75005   hardcode_automatic_CXX=yes
75006   hardcode_shlibpath_var_CXX=unsupported
75007   if test yes = "$lt_cv_ld_force_load"; then
75008     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\"`'
75009
75010   else
75011     whole_archive_flag_spec_CXX=''
75012   fi
75013   link_all_deplibs_CXX=yes
75014   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
75015   case $cc_basename in
75016      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
75017      *) _lt_dar_can_shared=$GCC ;;
75018   esac
75019   if test yes = "$_lt_dar_can_shared"; then
75020     output_verbose_link_cmd=func_echo_all
75021     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"
75022     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
75023     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"
75024     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"
75025        if test yes != "$lt_cv_apple_cc_single_mod"; then
75026       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"
75027       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"
75028     fi
75029
75030   else
75031   ld_shlibs_CXX=no
75032   fi
75033
75034         ;;
75035
75036       os2*)
75037         hardcode_libdir_flag_spec_CXX='-L$libdir'
75038         hardcode_minus_L_CXX=yes
75039         allow_undefined_flag_CXX=unsupported
75040         shrext_cmds=.dll
75041         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
75042           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
75043           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
75044           $ECHO EXPORTS >> $output_objdir/$libname.def~
75045           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
75046           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
75047           emximp -o $lib $output_objdir/$libname.def'
75048         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
75049           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
75050           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
75051           $ECHO EXPORTS >> $output_objdir/$libname.def~
75052           prefix_cmds="$SED"~
75053           if test EXPORTS = "`$SED 1q $export_symbols`"; then
75054             prefix_cmds="$prefix_cmds -e 1d";
75055           fi~
75056           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
75057           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
75058           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
75059           emximp -o $lib $output_objdir/$libname.def'
75060         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
75061         enable_shared_with_static_runtimes_CXX=yes
75062         ;;
75063
75064       dgux*)
75065         case $cc_basename in
75066           ec++*)
75067             # FIXME: insert proper C++ library support
75068             ld_shlibs_CXX=no
75069             ;;
75070           ghcx*)
75071             # Green Hills C++ Compiler
75072             # FIXME: insert proper C++ library support
75073             ld_shlibs_CXX=no
75074             ;;
75075           *)
75076             # FIXME: insert proper C++ library support
75077             ld_shlibs_CXX=no
75078             ;;
75079         esac
75080         ;;
75081
75082       freebsd2.*)
75083         # C++ shared libraries reported to be fairly broken before
75084         # switch to ELF
75085         ld_shlibs_CXX=no
75086         ;;
75087
75088       freebsd-elf*)
75089         archive_cmds_need_lc_CXX=no
75090         ;;
75091
75092       freebsd* | dragonfly*)
75093         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
75094         # conventions
75095         ld_shlibs_CXX=yes
75096         ;;
75097
75098       haiku*)
75099         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
75100         link_all_deplibs_CXX=yes
75101         ;;
75102
75103       hpux9*)
75104         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
75105         hardcode_libdir_separator_CXX=:
75106         export_dynamic_flag_spec_CXX='$wl-E'
75107         hardcode_direct_CXX=yes
75108         hardcode_minus_L_CXX=yes # Not in the search PATH,
75109                                              # but as the default
75110                                              # location of the library.
75111
75112         case $cc_basename in
75113           CC*)
75114             # FIXME: insert proper C++ library support
75115             ld_shlibs_CXX=no
75116             ;;
75117           aCC*)
75118             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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
75119             # Commands to make compiler produce verbose output that lists
75120             # what "hidden" libraries, object files and flags are used when
75121             # linking a shared library.
75122             #
75123             # There doesn't appear to be a way to prevent this compiler from
75124             # explicitly linking system object files so we need to strip them
75125             # from the output so that they don't get included in the library
75126             # dependencies.
75127             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"'
75128             ;;
75129           *)
75130             if test yes = "$GXX"; then
75131               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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
75132             else
75133               # FIXME: insert proper C++ library support
75134               ld_shlibs_CXX=no
75135             fi
75136             ;;
75137         esac
75138         ;;
75139
75140       hpux10*|hpux11*)
75141         if test no = "$with_gnu_ld"; then
75142           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
75143           hardcode_libdir_separator_CXX=:
75144
75145           case $host_cpu in
75146             hppa*64*|ia64*)
75147               ;;
75148             *)
75149               export_dynamic_flag_spec_CXX='$wl-E'
75150               ;;
75151           esac
75152         fi
75153         case $host_cpu in
75154           hppa*64*|ia64*)
75155             hardcode_direct_CXX=no
75156             hardcode_shlibpath_var_CXX=no
75157             ;;
75158           *)
75159             hardcode_direct_CXX=yes
75160             hardcode_direct_absolute_CXX=yes
75161             hardcode_minus_L_CXX=yes # Not in the search PATH,
75162                                                  # but as the default
75163                                                  # location of the library.
75164             ;;
75165         esac
75166
75167         case $cc_basename in
75168           CC*)
75169             # FIXME: insert proper C++ library support
75170             ld_shlibs_CXX=no
75171             ;;
75172           aCC*)
75173             case $host_cpu in
75174               hppa*64*)
75175                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
75176                 ;;
75177               ia64*)
75178                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
75179                 ;;
75180               *)
75181                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
75182                 ;;
75183             esac
75184             # Commands to make compiler produce verbose output that lists
75185             # what "hidden" libraries, object files and flags are used when
75186             # linking a shared library.
75187             #
75188             # There doesn't appear to be a way to prevent this compiler from
75189             # explicitly linking system object files so we need to strip them
75190             # from the output so that they don't get included in the library
75191             # dependencies.
75192             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"'
75193             ;;
75194           *)
75195             if test yes = "$GXX"; then
75196               if test no = "$with_gnu_ld"; then
75197                 case $host_cpu in
75198                   hppa*64*)
75199                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
75200                     ;;
75201                   ia64*)
75202                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
75203                     ;;
75204                   *)
75205                     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'
75206                     ;;
75207                 esac
75208               fi
75209             else
75210               # FIXME: insert proper C++ library support
75211               ld_shlibs_CXX=no
75212             fi
75213             ;;
75214         esac
75215         ;;
75216
75217       interix[3-9]*)
75218         hardcode_direct_CXX=no
75219         hardcode_shlibpath_var_CXX=no
75220         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
75221         export_dynamic_flag_spec_CXX='$wl-E'
75222         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
75223         # Instead, shared libraries are loaded at an image base (0x10000000 by
75224         # default) and relocated if they conflict, which is a slow very memory
75225         # consuming and fragmenting process.  To avoid this, we pick a random,
75226         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
75227         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
75228         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'
75229         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'
75230         ;;
75231       irix5* | irix6*)
75232         case $cc_basename in
75233           CC*)
75234             # SGI C++
75235             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'
75236
75237             # Archives containing C++ object files must be created using
75238             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
75239             # necessary to make sure instantiated templates are included
75240             # in the archive.
75241             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
75242             ;;
75243           *)
75244             if test yes = "$GXX"; then
75245               if test no = "$with_gnu_ld"; then
75246                 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'
75247               else
75248                 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'
75249               fi
75250             fi
75251             link_all_deplibs_CXX=yes
75252             ;;
75253         esac
75254         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
75255         hardcode_libdir_separator_CXX=:
75256         inherit_rpath_CXX=yes
75257         ;;
75258
75259       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
75260         case $cc_basename in
75261           KCC*)
75262             # Kuck and Associates, Inc. (KAI) C++ Compiler
75263
75264             # KCC will only create a shared library if the output file
75265             # ends with ".so" (or ".sl" for HP-UX), so rename the library
75266             # to its proper name (with version) after linking.
75267             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'
75268             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'
75269             # Commands to make compiler produce verbose output that lists
75270             # what "hidden" libraries, object files and flags are used when
75271             # linking a shared library.
75272             #
75273             # There doesn't appear to be a way to prevent this compiler from
75274             # explicitly linking system object files so we need to strip them
75275             # from the output so that they don't get included in the library
75276             # dependencies.
75277             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"'
75278
75279             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
75280             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
75281
75282             # Archives containing C++ object files must be created using
75283             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
75284             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
75285             ;;
75286           icpc* | ecpc* )
75287             # Intel C++
75288             with_gnu_ld=yes
75289             # version 8.0 and above of icpc choke on multiply defined symbols
75290             # if we add $predep_objects and $postdep_objects, however 7.1 and
75291             # earlier do not add the objects themselves.
75292             case `$CC -V 2>&1` in
75293               *"Version 7."*)
75294                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
75295                 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'
75296                 ;;
75297               *)  # Version 8.0 or newer
75298                 tmp_idyn=
75299                 case $host_cpu in
75300                   ia64*) tmp_idyn=' -i_dynamic';;
75301                 esac
75302                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
75303                 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'
75304                 ;;
75305             esac
75306             archive_cmds_need_lc_CXX=no
75307             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
75308             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
75309             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
75310             ;;
75311           pgCC* | pgcpp*)
75312             # Portland Group C++ compiler
75313             case `$CC -V` in
75314             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
75315               prelink_cmds_CXX='tpldir=Template.dir~
75316                rm -rf $tpldir~
75317                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
75318                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
75319               old_archive_cmds_CXX='tpldir=Template.dir~
75320                 rm -rf $tpldir~
75321                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
75322                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
75323                 $RANLIB $oldlib'
75324               archive_cmds_CXX='tpldir=Template.dir~
75325                 rm -rf $tpldir~
75326                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
75327                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
75328               archive_expsym_cmds_CXX='tpldir=Template.dir~
75329                 rm -rf $tpldir~
75330                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
75331                 $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'
75332               ;;
75333             *) # Version 6 and above use weak symbols
75334               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
75335               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'
75336               ;;
75337             esac
75338
75339             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
75340             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
75341             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'
75342             ;;
75343           cxx*)
75344             # Compaq C++
75345             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
75346             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'
75347
75348             runpath_var=LD_RUN_PATH
75349             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
75350             hardcode_libdir_separator_CXX=:
75351
75352             # Commands to make compiler produce verbose output that lists
75353             # what "hidden" libraries, object files and flags are used when
75354             # linking a shared library.
75355             #
75356             # There doesn't appear to be a way to prevent this compiler from
75357             # explicitly linking system object files so we need to strip them
75358             # from the output so that they don't get included in the library
75359             # dependencies.
75360             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'
75361             ;;
75362           xl* | mpixl* | bgxl*)
75363             # IBM XL 8.0 on PPC, with GNU ld
75364             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
75365             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
75366             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
75367             if test yes = "$supports_anon_versioning"; then
75368               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
75369                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
75370                 echo "local: *; };" >> $output_objdir/$libname.ver~
75371                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
75372             fi
75373             ;;
75374           *)
75375             case `$CC -V 2>&1 | sed 5q` in
75376             *Sun\ C*)
75377               # Sun C++ 5.9
75378               no_undefined_flag_CXX=' -zdefs'
75379               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
75380               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'
75381               hardcode_libdir_flag_spec_CXX='-R$libdir'
75382               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'
75383               compiler_needs_object_CXX=yes
75384
75385               # Not sure whether something based on
75386               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
75387               # would be better.
75388               output_verbose_link_cmd='func_echo_all'
75389
75390               # Archives containing C++ object files must be created using
75391               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
75392               # necessary to make sure instantiated templates are included
75393               # in the archive.
75394               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
75395               ;;
75396             esac
75397             ;;
75398         esac
75399         ;;
75400
75401       lynxos*)
75402         # FIXME: insert proper C++ library support
75403         ld_shlibs_CXX=no
75404         ;;
75405
75406       m88k*)
75407         # FIXME: insert proper C++ library support
75408         ld_shlibs_CXX=no
75409         ;;
75410
75411       mvs*)
75412         case $cc_basename in
75413           cxx*)
75414             # FIXME: insert proper C++ library support
75415             ld_shlibs_CXX=no
75416             ;;
75417           *)
75418             # FIXME: insert proper C++ library support
75419             ld_shlibs_CXX=no
75420             ;;
75421         esac
75422         ;;
75423
75424       netbsd*)
75425         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
75426           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
75427           wlarc=
75428           hardcode_libdir_flag_spec_CXX='-R$libdir'
75429           hardcode_direct_CXX=yes
75430           hardcode_shlibpath_var_CXX=no
75431         fi
75432         # Workaround some broken pre-1.5 toolchains
75433         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
75434         ;;
75435
75436       *nto* | *qnx*)
75437         ld_shlibs_CXX=yes
75438         ;;
75439
75440       openbsd* | bitrig*)
75441         if test -f /usr/libexec/ld.so; then
75442           hardcode_direct_CXX=yes
75443           hardcode_shlibpath_var_CXX=no
75444           hardcode_direct_absolute_CXX=yes
75445           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
75446           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
75447           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
75448             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
75449             export_dynamic_flag_spec_CXX='$wl-E'
75450             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
75451           fi
75452           output_verbose_link_cmd=func_echo_all
75453         else
75454           ld_shlibs_CXX=no
75455         fi
75456         ;;
75457
75458       osf3* | osf4* | osf5*)
75459         case $cc_basename in
75460           KCC*)
75461             # Kuck and Associates, Inc. (KAI) C++ Compiler
75462
75463             # KCC will only create a shared library if the output file
75464             # ends with ".so" (or ".sl" for HP-UX), so rename the library
75465             # to its proper name (with version) after linking.
75466             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'
75467
75468             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
75469             hardcode_libdir_separator_CXX=:
75470
75471             # Archives containing C++ object files must be created using
75472             # the KAI C++ compiler.
75473             case $host in
75474               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
75475               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
75476             esac
75477             ;;
75478           RCC*)
75479             # Rational C++ 2.4.1
75480             # FIXME: insert proper C++ library support
75481             ld_shlibs_CXX=no
75482             ;;
75483           cxx*)
75484             case $host in
75485               osf3*)
75486                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
75487                 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'
75488                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
75489                 ;;
75490               *)
75491                 allow_undefined_flag_CXX=' -expect_unresolved \*'
75492                 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'
75493                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
75494                   echo "-hidden">> $lib.exp~
75495                   $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~
75496                   $RM $lib.exp'
75497                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
75498                 ;;
75499             esac
75500
75501             hardcode_libdir_separator_CXX=:
75502
75503             # Commands to make compiler produce verbose output that lists
75504             # what "hidden" libraries, object files and flags are used when
75505             # linking a shared library.
75506             #
75507             # There doesn't appear to be a way to prevent this compiler from
75508             # explicitly linking system object files so we need to strip them
75509             # from the output so that they don't get included in the library
75510             # dependencies.
75511             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"'
75512             ;;
75513           *)
75514             if test yes,no = "$GXX,$with_gnu_ld"; then
75515               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
75516               case $host in
75517                 osf3*)
75518                   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'
75519                   ;;
75520                 *)
75521                   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'
75522                   ;;
75523               esac
75524
75525               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
75526               hardcode_libdir_separator_CXX=:
75527
75528               # Commands to make compiler produce verbose output that lists
75529               # what "hidden" libraries, object files and flags are used when
75530               # linking a shared library.
75531               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
75532
75533             else
75534               # FIXME: insert proper C++ library support
75535               ld_shlibs_CXX=no
75536             fi
75537             ;;
75538         esac
75539         ;;
75540
75541       psos*)
75542         # FIXME: insert proper C++ library support
75543         ld_shlibs_CXX=no
75544         ;;
75545
75546       sunos4*)
75547         case $cc_basename in
75548           CC*)
75549             # Sun C++ 4.x
75550             # FIXME: insert proper C++ library support
75551             ld_shlibs_CXX=no
75552             ;;
75553           lcc*)
75554             # Lucid
75555             # FIXME: insert proper C++ library support
75556             ld_shlibs_CXX=no
75557             ;;
75558           *)
75559             # FIXME: insert proper C++ library support
75560             ld_shlibs_CXX=no
75561             ;;
75562         esac
75563         ;;
75564
75565       solaris*)
75566         case $cc_basename in
75567           CC* | sunCC*)
75568             # Sun C++ 4.2, 5.x and Centerline C++
75569             archive_cmds_need_lc_CXX=yes
75570             no_undefined_flag_CXX=' -zdefs'
75571             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
75572             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
75573               $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'
75574
75575             hardcode_libdir_flag_spec_CXX='-R$libdir'
75576             hardcode_shlibpath_var_CXX=no
75577             case $host_os in
75578               solaris2.[0-5] | solaris2.[0-5].*) ;;
75579               *)
75580                 # The compiler driver will combine and reorder linker options,
75581                 # but understands '-z linker_flag'.
75582                 # Supported since Solaris 2.6 (maybe 2.5.1?)
75583                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
75584                 ;;
75585             esac
75586             link_all_deplibs_CXX=yes
75587
75588             output_verbose_link_cmd='func_echo_all'
75589
75590             # Archives containing C++ object files must be created using
75591             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
75592             # necessary to make sure instantiated templates are included
75593             # in the archive.
75594             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
75595             ;;
75596           gcx*)
75597             # Green Hills C++ Compiler
75598             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
75599
75600             # The C++ compiler must be used to create the archive.
75601             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
75602             ;;
75603           *)
75604             # GNU C++ compiler with Solaris linker
75605             if test yes,no = "$GXX,$with_gnu_ld"; then
75606               no_undefined_flag_CXX=' $wl-z ${wl}defs'
75607               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
75608                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
75609                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
75610                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
75611
75612                 # Commands to make compiler produce verbose output that lists
75613                 # what "hidden" libraries, object files and flags are used when
75614                 # linking a shared library.
75615                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
75616               else
75617                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
75618                 # platform.
75619                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
75620                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
75621                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
75622
75623                 # Commands to make compiler produce verbose output that lists
75624                 # what "hidden" libraries, object files and flags are used when
75625                 # linking a shared library.
75626                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
75627               fi
75628
75629               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
75630               case $host_os in
75631                 solaris2.[0-5] | solaris2.[0-5].*) ;;
75632                 *)
75633                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
75634                   ;;
75635               esac
75636             fi
75637             ;;
75638         esac
75639         ;;
75640
75641     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
75642       no_undefined_flag_CXX='$wl-z,text'
75643       archive_cmds_need_lc_CXX=no
75644       hardcode_shlibpath_var_CXX=no
75645       runpath_var='LD_RUN_PATH'
75646
75647       case $cc_basename in
75648         CC*)
75649           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75650           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75651           ;;
75652         *)
75653           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75654           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75655           ;;
75656       esac
75657       ;;
75658
75659       sysv5* | sco3.2v5* | sco5v6*)
75660         # Note: We CANNOT use -z defs as we might desire, because we do not
75661         # link with -lc, and that would cause any symbols used from libc to
75662         # always be unresolved, which means just about no library would
75663         # ever link correctly.  If we're not using GNU ld we use -z text
75664         # though, which does catch some bad symbols but isn't as heavy-handed
75665         # as -z defs.
75666         no_undefined_flag_CXX='$wl-z,text'
75667         allow_undefined_flag_CXX='$wl-z,nodefs'
75668         archive_cmds_need_lc_CXX=no
75669         hardcode_shlibpath_var_CXX=no
75670         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
75671         hardcode_libdir_separator_CXX=':'
75672         link_all_deplibs_CXX=yes
75673         export_dynamic_flag_spec_CXX='$wl-Bexport'
75674         runpath_var='LD_RUN_PATH'
75675
75676         case $cc_basename in
75677           CC*)
75678             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75679             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75680             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
75681               '"$old_archive_cmds_CXX"
75682             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
75683               '"$reload_cmds_CXX"
75684             ;;
75685           *)
75686             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75687             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75688             ;;
75689         esac
75690       ;;
75691
75692       tandem*)
75693         case $cc_basename in
75694           NCC*)
75695             # NonStop-UX NCC 3.20
75696             # FIXME: insert proper C++ library support
75697             ld_shlibs_CXX=no
75698             ;;
75699           *)
75700             # FIXME: insert proper C++ library support
75701             ld_shlibs_CXX=no
75702             ;;
75703         esac
75704         ;;
75705
75706       vxworks*)
75707         # FIXME: insert proper C++ library support
75708         ld_shlibs_CXX=no
75709         ;;
75710
75711       *)
75712         # FIXME: insert proper C++ library support
75713         ld_shlibs_CXX=no
75714         ;;
75715     esac
75716
75717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
75718 $as_echo "$ld_shlibs_CXX" >&6; }
75719     test no = "$ld_shlibs_CXX" && can_build_shared=no
75720
75721     GCC_CXX=$GXX
75722     LD_CXX=$LD
75723
75724     ## CAVEAT EMPTOR:
75725     ## There is no encapsulation within the following macros, do not change
75726     ## the running order or otherwise move them around unless you know exactly
75727     ## what you are doing...
75728     # Dependencies to place before and after the object being linked:
75729 predep_objects_CXX=
75730 postdep_objects_CXX=
75731 predeps_CXX=
75732 postdeps_CXX=
75733 compiler_lib_search_path_CXX=
75734
75735 cat > conftest.$ac_ext <<_LT_EOF
75736 class Foo
75737 {
75738 public:
75739   Foo (void) { a = 0; }
75740 private:
75741   int a;
75742 };
75743 _LT_EOF
75744
75745
75746 _lt_libdeps_save_CFLAGS=$CFLAGS
75747 case "$CC $CFLAGS " in #(
75748 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
75749 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
75750 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
75751 esac
75752
75753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
75754   (eval $ac_compile) 2>&5
75755   ac_status=$?
75756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75757   test $ac_status = 0; }; then
75758   # Parse the compiler output and extract the necessary
75759   # objects, libraries and library flags.
75760
75761   # Sentinel used to keep track of whether or not we are before
75762   # the conftest object file.
75763   pre_test_object_deps_done=no
75764
75765   for p in `eval "$output_verbose_link_cmd"`; do
75766     case $prev$p in
75767
75768     -L* | -R* | -l*)
75769        # Some compilers place space between "-{L,R}" and the path.
75770        # Remove the space.
75771        if test x-L = "$p" ||
75772           test x-R = "$p"; then
75773          prev=$p
75774          continue
75775        fi
75776
75777        # Expand the sysroot to ease extracting the directories later.
75778        if test -z "$prev"; then
75779          case $p in
75780          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
75781          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
75782          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
75783          esac
75784        fi
75785        case $p in
75786        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
75787        esac
75788        if test no = "$pre_test_object_deps_done"; then
75789          case $prev in
75790          -L | -R)
75791            # Internal compiler library paths should come after those
75792            # provided the user.  The postdeps already come after the
75793            # user supplied libs so there is no need to process them.
75794            if test -z "$compiler_lib_search_path_CXX"; then
75795              compiler_lib_search_path_CXX=$prev$p
75796            else
75797              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
75798            fi
75799            ;;
75800          # The "-l" case would never come before the object being
75801          # linked, so don't bother handling this case.
75802          esac
75803        else
75804          if test -z "$postdeps_CXX"; then
75805            postdeps_CXX=$prev$p
75806          else
75807            postdeps_CXX="${postdeps_CXX} $prev$p"
75808          fi
75809        fi
75810        prev=
75811        ;;
75812
75813     *.lto.$objext) ;; # Ignore GCC LTO objects
75814     *.$objext)
75815        # This assumes that the test object file only shows up
75816        # once in the compiler output.
75817        if test "$p" = "conftest.$objext"; then
75818          pre_test_object_deps_done=yes
75819          continue
75820        fi
75821
75822        if test no = "$pre_test_object_deps_done"; then
75823          if test -z "$predep_objects_CXX"; then
75824            predep_objects_CXX=$p
75825          else
75826            predep_objects_CXX="$predep_objects_CXX $p"
75827          fi
75828        else
75829          if test -z "$postdep_objects_CXX"; then
75830            postdep_objects_CXX=$p
75831          else
75832            postdep_objects_CXX="$postdep_objects_CXX $p"
75833          fi
75834        fi
75835        ;;
75836
75837     *) ;; # Ignore the rest.
75838
75839     esac
75840   done
75841
75842   # Clean up.
75843   rm -f a.out a.exe
75844 else
75845   echo "libtool.m4: error: problem compiling CXX test program"
75846 fi
75847
75848 $RM -f confest.$objext
75849 CFLAGS=$_lt_libdeps_save_CFLAGS
75850
75851 # PORTME: override above test on systems where it is broken
75852 case $host_os in
75853 interix[3-9]*)
75854   # Interix 3.5 installs completely hosed .la files for C++, so rather than
75855   # hack all around it, let's just trust "g++" to DTRT.
75856   predep_objects_CXX=
75857   postdep_objects_CXX=
75858   postdeps_CXX=
75859   ;;
75860 esac
75861
75862
75863 case " $postdeps_CXX " in
75864 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
75865 esac
75866  compiler_lib_search_dirs_CXX=
75867 if test -n "${compiler_lib_search_path_CXX}"; then
75868  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
75869 fi
75870
75871
75872
75873
75874
75875
75876
75877
75878
75879
75880
75881
75882
75883
75884
75885
75886
75887
75888
75889
75890
75891
75892
75893
75894
75895
75896
75897
75898
75899
75900
75901     lt_prog_compiler_wl_CXX=
75902 lt_prog_compiler_pic_CXX=
75903 lt_prog_compiler_static_CXX=
75904
75905
75906   # C++ specific cases for pic, static, wl, etc.
75907   if test yes = "$GXX"; then
75908     lt_prog_compiler_wl_CXX='-Wl,'
75909     lt_prog_compiler_static_CXX='-static'
75910
75911     case $host_os in
75912     aix*)
75913       # All AIX code is PIC.
75914       if test ia64 = "$host_cpu"; then
75915         # AIX 5 now supports IA64 processor
75916         lt_prog_compiler_static_CXX='-Bstatic'
75917       fi
75918       lt_prog_compiler_pic_CXX='-fPIC'
75919       ;;
75920
75921     amigaos*)
75922       case $host_cpu in
75923       powerpc)
75924             # see comment about AmigaOS4 .so support
75925             lt_prog_compiler_pic_CXX='-fPIC'
75926         ;;
75927       m68k)
75928             # FIXME: we need at least 68020 code to build shared libraries, but
75929             # adding the '-m68020' flag to GCC prevents building anything better,
75930             # like '-m68040'.
75931             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
75932         ;;
75933       esac
75934       ;;
75935
75936     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
75937       # PIC is the default for these OSes.
75938       ;;
75939     mingw* | cygwin* | os2* | pw32* | cegcc*)
75940       # This hack is so that the source file can tell whether it is being
75941       # built for inclusion in a dll (and should export symbols for example).
75942       # Although the cygwin gcc ignores -fPIC, still need this for old-style
75943       # (--disable-auto-import) libraries
75944       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
75945       case $host_os in
75946       os2*)
75947         lt_prog_compiler_static_CXX='$wl-static'
75948         ;;
75949       esac
75950       ;;
75951     darwin* | rhapsody*)
75952       # PIC is the default on this platform
75953       # Common symbols not allowed in MH_DYLIB files
75954       lt_prog_compiler_pic_CXX='-fno-common'
75955       ;;
75956     *djgpp*)
75957       # DJGPP does not support shared libraries at all
75958       lt_prog_compiler_pic_CXX=
75959       ;;
75960     haiku*)
75961       # PIC is the default for Haiku.
75962       # The "-static" flag exists, but is broken.
75963       lt_prog_compiler_static_CXX=
75964       ;;
75965     interix[3-9]*)
75966       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
75967       # Instead, we relocate shared libraries at runtime.
75968       ;;
75969     sysv4*MP*)
75970       if test -d /usr/nec; then
75971         lt_prog_compiler_pic_CXX=-Kconform_pic
75972       fi
75973       ;;
75974     hpux*)
75975       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
75976       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
75977       # sets the default TLS model and affects inlining.
75978       case $host_cpu in
75979       hppa*64*)
75980         ;;
75981       *)
75982         lt_prog_compiler_pic_CXX='-fPIC'
75983         ;;
75984       esac
75985       ;;
75986     *qnx* | *nto*)
75987       # QNX uses GNU C++, but need to define -shared option too, otherwise
75988       # it will coredump.
75989       lt_prog_compiler_pic_CXX='-fPIC -shared'
75990       ;;
75991     *)
75992       lt_prog_compiler_pic_CXX='-fPIC'
75993       ;;
75994     esac
75995   else
75996     case $host_os in
75997       aix[4-9]*)
75998         # All AIX code is PIC.
75999         if test ia64 = "$host_cpu"; then
76000           # AIX 5 now supports IA64 processor
76001           lt_prog_compiler_static_CXX='-Bstatic'
76002         else
76003           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
76004         fi
76005         ;;
76006       chorus*)
76007         case $cc_basename in
76008         cxch68*)
76009           # Green Hills C++ Compiler
76010           # _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"
76011           ;;
76012         esac
76013         ;;
76014       mingw* | cygwin* | os2* | pw32* | cegcc*)
76015         # This hack is so that the source file can tell whether it is being
76016         # built for inclusion in a dll (and should export symbols for example).
76017         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
76018         ;;
76019       dgux*)
76020         case $cc_basename in
76021           ec++*)
76022             lt_prog_compiler_pic_CXX='-KPIC'
76023             ;;
76024           ghcx*)
76025             # Green Hills C++ Compiler
76026             lt_prog_compiler_pic_CXX='-pic'
76027             ;;
76028           *)
76029             ;;
76030         esac
76031         ;;
76032       freebsd* | dragonfly*)
76033         # FreeBSD uses GNU C++
76034         ;;
76035       hpux9* | hpux10* | hpux11*)
76036         case $cc_basename in
76037           CC*)
76038             lt_prog_compiler_wl_CXX='-Wl,'
76039             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
76040             if test ia64 != "$host_cpu"; then
76041               lt_prog_compiler_pic_CXX='+Z'
76042             fi
76043             ;;
76044           aCC*)
76045             lt_prog_compiler_wl_CXX='-Wl,'
76046             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
76047             case $host_cpu in
76048             hppa*64*|ia64*)
76049               # +Z the default
76050               ;;
76051             *)
76052               lt_prog_compiler_pic_CXX='+Z'
76053               ;;
76054             esac
76055             ;;
76056           *)
76057             ;;
76058         esac
76059         ;;
76060       interix*)
76061         # This is c89, which is MS Visual C++ (no shared libs)
76062         # Anyone wants to do a port?
76063         ;;
76064       irix5* | irix6* | nonstopux*)
76065         case $cc_basename in
76066           CC*)
76067             lt_prog_compiler_wl_CXX='-Wl,'
76068             lt_prog_compiler_static_CXX='-non_shared'
76069             # CC pic flag -KPIC is the default.
76070             ;;
76071           *)
76072             ;;
76073         esac
76074         ;;
76075       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
76076         case $cc_basename in
76077           KCC*)
76078             # KAI C++ Compiler
76079             lt_prog_compiler_wl_CXX='--backend -Wl,'
76080             lt_prog_compiler_pic_CXX='-fPIC'
76081             ;;
76082           ecpc* )
76083             # old Intel C++ for x86_64, which still supported -KPIC.
76084             lt_prog_compiler_wl_CXX='-Wl,'
76085             lt_prog_compiler_pic_CXX='-KPIC'
76086             lt_prog_compiler_static_CXX='-static'
76087             ;;
76088           icpc* )
76089             # Intel C++, used to be incompatible with GCC.
76090             # ICC 10 doesn't accept -KPIC any more.
76091             lt_prog_compiler_wl_CXX='-Wl,'
76092             lt_prog_compiler_pic_CXX='-fPIC'
76093             lt_prog_compiler_static_CXX='-static'
76094             ;;
76095           pgCC* | pgcpp*)
76096             # Portland Group C++ compiler
76097             lt_prog_compiler_wl_CXX='-Wl,'
76098             lt_prog_compiler_pic_CXX='-fpic'
76099             lt_prog_compiler_static_CXX='-Bstatic'
76100             ;;
76101           cxx*)
76102             # Compaq C++
76103             # Make sure the PIC flag is empty.  It appears that all Alpha
76104             # Linux and Compaq Tru64 Unix objects are PIC.
76105             lt_prog_compiler_pic_CXX=
76106             lt_prog_compiler_static_CXX='-non_shared'
76107             ;;
76108           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
76109             # IBM XL 8.0, 9.0 on PPC and BlueGene
76110             lt_prog_compiler_wl_CXX='-Wl,'
76111             lt_prog_compiler_pic_CXX='-qpic'
76112             lt_prog_compiler_static_CXX='-qstaticlink'
76113             ;;
76114           *)
76115             case `$CC -V 2>&1 | sed 5q` in
76116             *Sun\ C*)
76117               # Sun C++ 5.9
76118               lt_prog_compiler_pic_CXX='-KPIC'
76119               lt_prog_compiler_static_CXX='-Bstatic'
76120               lt_prog_compiler_wl_CXX='-Qoption ld '
76121               ;;
76122             esac
76123             ;;
76124         esac
76125         ;;
76126       lynxos*)
76127         ;;
76128       m88k*)
76129         ;;
76130       mvs*)
76131         case $cc_basename in
76132           cxx*)
76133             lt_prog_compiler_pic_CXX='-W c,exportall'
76134             ;;
76135           *)
76136             ;;
76137         esac
76138         ;;
76139       netbsd*)
76140         ;;
76141       *qnx* | *nto*)
76142         # QNX uses GNU C++, but need to define -shared option too, otherwise
76143         # it will coredump.
76144         lt_prog_compiler_pic_CXX='-fPIC -shared'
76145         ;;
76146       osf3* | osf4* | osf5*)
76147         case $cc_basename in
76148           KCC*)
76149             lt_prog_compiler_wl_CXX='--backend -Wl,'
76150             ;;
76151           RCC*)
76152             # Rational C++ 2.4.1
76153             lt_prog_compiler_pic_CXX='-pic'
76154             ;;
76155           cxx*)
76156             # Digital/Compaq C++
76157             lt_prog_compiler_wl_CXX='-Wl,'
76158             # Make sure the PIC flag is empty.  It appears that all Alpha
76159             # Linux and Compaq Tru64 Unix objects are PIC.
76160             lt_prog_compiler_pic_CXX=
76161             lt_prog_compiler_static_CXX='-non_shared'
76162             ;;
76163           *)
76164             ;;
76165         esac
76166         ;;
76167       psos*)
76168         ;;
76169       solaris*)
76170         case $cc_basename in
76171           CC* | sunCC*)
76172             # Sun C++ 4.2, 5.x and Centerline C++
76173             lt_prog_compiler_pic_CXX='-KPIC'
76174             lt_prog_compiler_static_CXX='-Bstatic'
76175             lt_prog_compiler_wl_CXX='-Qoption ld '
76176             ;;
76177           gcx*)
76178             # Green Hills C++ Compiler
76179             lt_prog_compiler_pic_CXX='-PIC'
76180             ;;
76181           *)
76182             ;;
76183         esac
76184         ;;
76185       sunos4*)
76186         case $cc_basename in
76187           CC*)
76188             # Sun C++ 4.x
76189             lt_prog_compiler_pic_CXX='-pic'
76190             lt_prog_compiler_static_CXX='-Bstatic'
76191             ;;
76192           lcc*)
76193             # Lucid
76194             lt_prog_compiler_pic_CXX='-pic'
76195             ;;
76196           *)
76197             ;;
76198         esac
76199         ;;
76200       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
76201         case $cc_basename in
76202           CC*)
76203             lt_prog_compiler_wl_CXX='-Wl,'
76204             lt_prog_compiler_pic_CXX='-KPIC'
76205             lt_prog_compiler_static_CXX='-Bstatic'
76206             ;;
76207         esac
76208         ;;
76209       tandem*)
76210         case $cc_basename in
76211           NCC*)
76212             # NonStop-UX NCC 3.20
76213             lt_prog_compiler_pic_CXX='-KPIC'
76214             ;;
76215           *)
76216             ;;
76217         esac
76218         ;;
76219       vxworks*)
76220         ;;
76221       *)
76222         lt_prog_compiler_can_build_shared_CXX=no
76223         ;;
76224     esac
76225   fi
76226
76227 case $host_os in
76228   # For platforms that do not support PIC, -DPIC is meaningless:
76229   *djgpp*)
76230     lt_prog_compiler_pic_CXX=
76231     ;;
76232   *)
76233     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
76234     ;;
76235 esac
76236
76237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
76238 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
76239 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
76240   $as_echo_n "(cached) " >&6
76241 else
76242   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
76243 fi
76244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
76245 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
76246 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
76247
76248 #
76249 # Check to make sure the PIC flag actually works.
76250 #
76251 if test -n "$lt_prog_compiler_pic_CXX"; then
76252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
76253 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
76254 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
76255   $as_echo_n "(cached) " >&6
76256 else
76257   lt_cv_prog_compiler_pic_works_CXX=no
76258    ac_outfile=conftest.$ac_objext
76259    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
76260    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
76261    # Insert the option either (1) after the last *FLAGS variable, or
76262    # (2) before a word containing "conftest.", or (3) at the end.
76263    # Note that $ac_compile itself does not contain backslashes and begins
76264    # with a dollar sign (not a hyphen), so the echo should work correctly.
76265    # The option is referenced via a variable to avoid confusing sed.
76266    lt_compile=`echo "$ac_compile" | $SED \
76267    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
76268    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76269    -e 's:$: $lt_compiler_flag:'`
76270    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
76271    (eval "$lt_compile" 2>conftest.err)
76272    ac_status=$?
76273    cat conftest.err >&5
76274    echo "$as_me:$LINENO: \$? = $ac_status" >&5
76275    if (exit $ac_status) && test -s "$ac_outfile"; then
76276      # The compiler can only warn and ignore the option if not recognized
76277      # So say no if there are warnings other than the usual output.
76278      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
76279      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
76280      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
76281        lt_cv_prog_compiler_pic_works_CXX=yes
76282      fi
76283    fi
76284    $RM conftest*
76285
76286 fi
76287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
76288 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
76289
76290 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
76291     case $lt_prog_compiler_pic_CXX in
76292      "" | " "*) ;;
76293      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
76294      esac
76295 else
76296     lt_prog_compiler_pic_CXX=
76297      lt_prog_compiler_can_build_shared_CXX=no
76298 fi
76299
76300 fi
76301
76302
76303
76304
76305
76306 #
76307 # Check to make sure the static flag actually works.
76308 #
76309 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
76310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
76311 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
76312 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
76313   $as_echo_n "(cached) " >&6
76314 else
76315   lt_cv_prog_compiler_static_works_CXX=no
76316    save_LDFLAGS=$LDFLAGS
76317    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
76318    echo "$lt_simple_link_test_code" > conftest.$ac_ext
76319    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
76320      # The linker can only warn and ignore the option if not recognized
76321      # So say no if there are warnings
76322      if test -s conftest.err; then
76323        # Append any errors to the config.log.
76324        cat conftest.err 1>&5
76325        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
76326        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
76327        if diff conftest.exp conftest.er2 >/dev/null; then
76328          lt_cv_prog_compiler_static_works_CXX=yes
76329        fi
76330      else
76331        lt_cv_prog_compiler_static_works_CXX=yes
76332      fi
76333    fi
76334    $RM -r conftest*
76335    LDFLAGS=$save_LDFLAGS
76336
76337 fi
76338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
76339 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
76340
76341 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
76342     :
76343 else
76344     lt_prog_compiler_static_CXX=
76345 fi
76346
76347
76348
76349
76350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
76351 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
76352 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
76353   $as_echo_n "(cached) " >&6
76354 else
76355   lt_cv_prog_compiler_c_o_CXX=no
76356    $RM -r conftest 2>/dev/null
76357    mkdir conftest
76358    cd conftest
76359    mkdir out
76360    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
76361
76362    lt_compiler_flag="-o out/conftest2.$ac_objext"
76363    # Insert the option either (1) after the last *FLAGS variable, or
76364    # (2) before a word containing "conftest.", or (3) at the end.
76365    # Note that $ac_compile itself does not contain backslashes and begins
76366    # with a dollar sign (not a hyphen), so the echo should work correctly.
76367    lt_compile=`echo "$ac_compile" | $SED \
76368    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
76369    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76370    -e 's:$: $lt_compiler_flag:'`
76371    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
76372    (eval "$lt_compile" 2>out/conftest.err)
76373    ac_status=$?
76374    cat out/conftest.err >&5
76375    echo "$as_me:$LINENO: \$? = $ac_status" >&5
76376    if (exit $ac_status) && test -s out/conftest2.$ac_objext
76377    then
76378      # The compiler can only warn and ignore the option if not recognized
76379      # So say no if there are warnings
76380      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
76381      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
76382      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
76383        lt_cv_prog_compiler_c_o_CXX=yes
76384      fi
76385    fi
76386    chmod u+w . 2>&5
76387    $RM conftest*
76388    # SGI C++ compiler will create directory out/ii_files/ for
76389    # template instantiation
76390    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
76391    $RM out/* && rmdir out
76392    cd ..
76393    $RM -r conftest
76394    $RM conftest*
76395
76396 fi
76397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
76398 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
76399
76400
76401
76402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
76403 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
76404 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
76405   $as_echo_n "(cached) " >&6
76406 else
76407   lt_cv_prog_compiler_c_o_CXX=no
76408    $RM -r conftest 2>/dev/null
76409    mkdir conftest
76410    cd conftest
76411    mkdir out
76412    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
76413
76414    lt_compiler_flag="-o out/conftest2.$ac_objext"
76415    # Insert the option either (1) after the last *FLAGS variable, or
76416    # (2) before a word containing "conftest.", or (3) at the end.
76417    # Note that $ac_compile itself does not contain backslashes and begins
76418    # with a dollar sign (not a hyphen), so the echo should work correctly.
76419    lt_compile=`echo "$ac_compile" | $SED \
76420    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
76421    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76422    -e 's:$: $lt_compiler_flag:'`
76423    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
76424    (eval "$lt_compile" 2>out/conftest.err)
76425    ac_status=$?
76426    cat out/conftest.err >&5
76427    echo "$as_me:$LINENO: \$? = $ac_status" >&5
76428    if (exit $ac_status) && test -s out/conftest2.$ac_objext
76429    then
76430      # The compiler can only warn and ignore the option if not recognized
76431      # So say no if there are warnings
76432      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
76433      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
76434      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
76435        lt_cv_prog_compiler_c_o_CXX=yes
76436      fi
76437    fi
76438    chmod u+w . 2>&5
76439    $RM conftest*
76440    # SGI C++ compiler will create directory out/ii_files/ for
76441    # template instantiation
76442    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
76443    $RM out/* && rmdir out
76444    cd ..
76445    $RM -r conftest
76446    $RM conftest*
76447
76448 fi
76449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
76450 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
76451
76452
76453
76454
76455 hard_links=nottested
76456 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
76457   # do not overwrite the value of need_locks provided by the user
76458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
76459 $as_echo_n "checking if we can lock with hard links... " >&6; }
76460   hard_links=yes
76461   $RM conftest*
76462   ln conftest.a conftest.b 2>/dev/null && hard_links=no
76463   touch conftest.a
76464   ln conftest.a conftest.b 2>&5 || hard_links=no
76465   ln conftest.a conftest.b 2>/dev/null && hard_links=no
76466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
76467 $as_echo "$hard_links" >&6; }
76468   if test no = "$hard_links"; then
76469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
76470 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
76471     need_locks=warn
76472   fi
76473 else
76474   need_locks=no
76475 fi
76476
76477
76478
76479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
76480 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
76481
76482   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
76483   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
76484   case $host_os in
76485   aix[4-9]*)
76486     # If we're using GNU nm, then we don't want the "-C" option.
76487     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
76488     # Without the "-l" option, or with the "-B" option, AIX nm treats
76489     # weak defined symbols like other global defined symbols, whereas
76490     # GNU nm marks them as "W".
76491     # While the 'weak' keyword is ignored in the Export File, we need
76492     # it in the Import File for the 'aix-soname' feature, so we have
76493     # to replace the "-B" option with "-P" for AIX nm.
76494     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
76495       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
76496     else
76497       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
76498     fi
76499     ;;
76500   pw32*)
76501     export_symbols_cmds_CXX=$ltdll_cmds
76502     ;;
76503   cygwin* | mingw* | cegcc*)
76504     case $cc_basename in
76505     cl*)
76506       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
76507       ;;
76508     *)
76509       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'
76510       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
76511       ;;
76512     esac
76513     ;;
76514   *)
76515     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
76516     ;;
76517   esac
76518
76519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
76520 $as_echo "$ld_shlibs_CXX" >&6; }
76521 test no = "$ld_shlibs_CXX" && can_build_shared=no
76522
76523 with_gnu_ld_CXX=$with_gnu_ld
76524
76525
76526
76527
76528
76529
76530 #
76531 # Do we need to explicitly link libc?
76532 #
76533 case "x$archive_cmds_need_lc_CXX" in
76534 x|xyes)
76535   # Assume -lc should be added
76536   archive_cmds_need_lc_CXX=yes
76537
76538   if test yes,yes = "$GCC,$enable_shared"; then
76539     case $archive_cmds_CXX in
76540     *'~'*)
76541       # FIXME: we may have to deal with multi-command sequences.
76542       ;;
76543     '$CC '*)
76544       # Test whether the compiler implicitly links with -lc since on some
76545       # systems, -lgcc has to come before -lc. If gcc already passes -lc
76546       # to ld, don't add -lc before -lgcc.
76547       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
76548 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
76549 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
76550   $as_echo_n "(cached) " >&6
76551 else
76552   $RM conftest*
76553         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
76554
76555         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
76556   (eval $ac_compile) 2>&5
76557   ac_status=$?
76558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76559   test $ac_status = 0; } 2>conftest.err; then
76560           soname=conftest
76561           lib=conftest
76562           libobjs=conftest.$ac_objext
76563           deplibs=
76564           wl=$lt_prog_compiler_wl_CXX
76565           pic_flag=$lt_prog_compiler_pic_CXX
76566           compiler_flags=-v
76567           linker_flags=-v
76568           verstring=
76569           output_objdir=.
76570           libname=conftest
76571           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
76572           allow_undefined_flag_CXX=
76573           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
76574   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
76575   ac_status=$?
76576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76577   test $ac_status = 0; }
76578           then
76579             lt_cv_archive_cmds_need_lc_CXX=no
76580           else
76581             lt_cv_archive_cmds_need_lc_CXX=yes
76582           fi
76583           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
76584         else
76585           cat conftest.err 1>&5
76586         fi
76587         $RM conftest*
76588
76589 fi
76590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
76591 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
76592       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
76593       ;;
76594     esac
76595   fi
76596   ;;
76597 esac
76598
76599
76600
76601
76602
76603
76604
76605
76606
76607
76608
76609
76610
76611
76612
76613
76614
76615
76616
76617
76618
76619
76620
76621
76622
76623
76624
76625
76626
76627
76628
76629
76630
76631
76632
76633
76634
76635
76636
76637
76638
76639
76640
76641
76642
76643
76644
76645
76646
76647
76648
76649
76650
76651
76652
76653
76654
76655
76656
76657
76658
76659
76660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
76661 $as_echo_n "checking dynamic linker characteristics... " >&6; }
76662
76663 library_names_spec=
76664 libname_spec='lib$name'
76665 soname_spec=
76666 shrext_cmds=.so
76667 postinstall_cmds=
76668 postuninstall_cmds=
76669 finish_cmds=
76670 finish_eval=
76671 shlibpath_var=
76672 shlibpath_overrides_runpath=unknown
76673 version_type=none
76674 dynamic_linker="$host_os ld.so"
76675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
76676 need_lib_prefix=unknown
76677 hardcode_into_libs=no
76678
76679 # when you set need_version to no, make sure it does not cause -set_version
76680 # flags to be left without arguments
76681 need_version=unknown
76682
76683
76684
76685 case $host_os in
76686 aix3*)
76687   version_type=linux # correct to gnu/linux during the next big refactor
76688   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
76689   shlibpath_var=LIBPATH
76690
76691   # AIX 3 has no versioning support, so we append a major version to the name.
76692   soname_spec='$libname$release$shared_ext$major'
76693   ;;
76694
76695 aix[4-9]*)
76696   version_type=linux # correct to gnu/linux during the next big refactor
76697   need_lib_prefix=no
76698   need_version=no
76699   hardcode_into_libs=yes
76700   if test ia64 = "$host_cpu"; then
76701     # AIX 5 supports IA64
76702     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
76703     shlibpath_var=LD_LIBRARY_PATH
76704   else
76705     # With GCC up to 2.95.x, collect2 would create an import file
76706     # for dependence libraries.  The import file would start with
76707     # the line '#! .'.  This would cause the generated library to
76708     # depend on '.', always an invalid library.  This was fixed in
76709     # development snapshots of GCC prior to 3.0.
76710     case $host_os in
76711       aix4 | aix4.[01] | aix4.[01].*)
76712       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
76713            echo ' yes '
76714            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
76715         :
76716       else
76717         can_build_shared=no
76718       fi
76719       ;;
76720     esac
76721     # Using Import Files as archive members, it is possible to support
76722     # filename-based versioning of shared library archives on AIX. While
76723     # this would work for both with and without runtime linking, it will
76724     # prevent static linking of such archives. So we do filename-based
76725     # shared library versioning with .so extension only, which is used
76726     # when both runtime linking and shared linking is enabled.
76727     # Unfortunately, runtime linking may impact performance, so we do
76728     # not want this to be the default eventually. Also, we use the
76729     # versioned .so libs for executables only if there is the -brtl
76730     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
76731     # To allow for filename-based versioning support, we need to create
76732     # libNAME.so.V as an archive file, containing:
76733     # *) an Import File, referring to the versioned filename of the
76734     #    archive as well as the shared archive member, telling the
76735     #    bitwidth (32 or 64) of that shared object, and providing the
76736     #    list of exported symbols of that shared object, eventually
76737     #    decorated with the 'weak' keyword
76738     # *) the shared object with the F_LOADONLY flag set, to really avoid
76739     #    it being seen by the linker.
76740     # At run time we better use the real file rather than another symlink,
76741     # but for link time we create the symlink libNAME.so -> libNAME.so.V
76742
76743     case $with_aix_soname,$aix_use_runtimelinking in
76744     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
76745     # soname into executable. Probably we can add versioning support to
76746     # collect2, so additional links can be useful in future.
76747     aix,yes) # traditional libtool
76748       dynamic_linker='AIX unversionable lib.so'
76749       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
76750       # instead of lib<name>.a to let people know that these are not
76751       # typical AIX shared libraries.
76752       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76753       ;;
76754     aix,no) # traditional AIX only
76755       dynamic_linker='AIX lib.a(lib.so.V)'
76756       # We preserve .a as extension for shared libraries through AIX4.2
76757       # and later when we are not doing run time linking.
76758       library_names_spec='$libname$release.a $libname.a'
76759       soname_spec='$libname$release$shared_ext$major'
76760       ;;
76761     svr4,*) # full svr4 only
76762       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
76763       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
76764       # We do not specify a path in Import Files, so LIBPATH fires.
76765       shlibpath_overrides_runpath=yes
76766       ;;
76767     *,yes) # both, prefer svr4
76768       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
76769       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
76770       # unpreferred sharedlib libNAME.a needs extra handling
76771       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
76772       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
76773       # We do not specify a path in Import Files, so LIBPATH fires.
76774       shlibpath_overrides_runpath=yes
76775       ;;
76776     *,no) # both, prefer aix
76777       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
76778       library_names_spec='$libname$release.a $libname.a'
76779       soname_spec='$libname$release$shared_ext$major'
76780       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
76781       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
76782       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
76783       ;;
76784     esac
76785     shlibpath_var=LIBPATH
76786   fi
76787   ;;
76788
76789 amigaos*)
76790   case $host_cpu in
76791   powerpc)
76792     # Since July 2007 AmigaOS4 officially supports .so libraries.
76793     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
76794     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76795     ;;
76796   m68k)
76797     library_names_spec='$libname.ixlibrary $libname.a'
76798     # Create ${libname}_ixlibrary.a entries in /sys/libs.
76799     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
76800     ;;
76801   esac
76802   ;;
76803
76804 beos*)
76805   library_names_spec='$libname$shared_ext'
76806   dynamic_linker="$host_os ld.so"
76807   shlibpath_var=LIBRARY_PATH
76808   ;;
76809
76810 bsdi[45]*)
76811   version_type=linux # correct to gnu/linux during the next big refactor
76812   need_version=no
76813   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76814   soname_spec='$libname$release$shared_ext$major'
76815   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
76816   shlibpath_var=LD_LIBRARY_PATH
76817   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
76818   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
76819   # the default ld.so.conf also contains /usr/contrib/lib and
76820   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
76821   # libtool to hard-code these into programs
76822   ;;
76823
76824 cygwin* | mingw* | pw32* | cegcc*)
76825   version_type=windows
76826   shrext_cmds=.dll
76827   need_version=no
76828   need_lib_prefix=no
76829
76830   case $GCC,$cc_basename in
76831   yes,*)
76832     # gcc
76833     library_names_spec='$libname.dll.a'
76834     # DLL is installed to $(libdir)/../bin by postinstall_cmds
76835     postinstall_cmds='base_file=`basename \$file`~
76836       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
76837       dldir=$destdir/`dirname \$dlpath`~
76838       test -d \$dldir || mkdir -p \$dldir~
76839       $install_prog $dir/$dlname \$dldir/$dlname~
76840       chmod a+x \$dldir/$dlname~
76841       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
76842         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
76843       fi'
76844     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
76845       dlpath=$dir/\$dldll~
76846        $RM \$dlpath'
76847     shlibpath_overrides_runpath=yes
76848
76849     case $host_os in
76850     cygwin*)
76851       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
76852       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
76853
76854       ;;
76855     mingw* | cegcc*)
76856       # MinGW DLLs use traditional 'lib' prefix
76857       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
76858       ;;
76859     pw32*)
76860       # pw32 DLLs use 'pw' prefix rather than 'lib'
76861       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
76862       ;;
76863     esac
76864     dynamic_linker='Win32 ld.exe'
76865     ;;
76866
76867   *,cl*)
76868     # Native MSVC
76869     libname_spec='$name'
76870     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
76871     library_names_spec='$libname.dll.lib'
76872
76873     case $build_os in
76874     mingw*)
76875       sys_lib_search_path_spec=
76876       lt_save_ifs=$IFS
76877       IFS=';'
76878       for lt_path in $LIB
76879       do
76880         IFS=$lt_save_ifs
76881         # Let DOS variable expansion print the short 8.3 style file name.
76882         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
76883         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
76884       done
76885       IFS=$lt_save_ifs
76886       # Convert to MSYS style.
76887       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
76888       ;;
76889     cygwin*)
76890       # Convert to unix form, then to dos form, then back to unix form
76891       # but this time dos style (no spaces!) so that the unix form looks
76892       # like /cygdrive/c/PROGRA~1:/cygdr...
76893       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
76894       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
76895       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
76896       ;;
76897     *)
76898       sys_lib_search_path_spec=$LIB
76899       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
76900         # It is most probably a Windows format PATH.
76901         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
76902       else
76903         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
76904       fi
76905       # FIXME: find the short name or the path components, as spaces are
76906       # common. (e.g. "Program Files" -> "PROGRA~1")
76907       ;;
76908     esac
76909
76910     # DLL is installed to $(libdir)/../bin by postinstall_cmds
76911     postinstall_cmds='base_file=`basename \$file`~
76912       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
76913       dldir=$destdir/`dirname \$dlpath`~
76914       test -d \$dldir || mkdir -p \$dldir~
76915       $install_prog $dir/$dlname \$dldir/$dlname'
76916     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
76917       dlpath=$dir/\$dldll~
76918        $RM \$dlpath'
76919     shlibpath_overrides_runpath=yes
76920     dynamic_linker='Win32 link.exe'
76921     ;;
76922
76923   *)
76924     # Assume MSVC wrapper
76925     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
76926     dynamic_linker='Win32 ld.exe'
76927     ;;
76928   esac
76929   # FIXME: first we should search . and the directory the executable is in
76930   shlibpath_var=PATH
76931   ;;
76932
76933 darwin* | rhapsody*)
76934   dynamic_linker="$host_os dyld"
76935   version_type=darwin
76936   need_lib_prefix=no
76937   need_version=no
76938   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
76939   soname_spec='$libname$release$major$shared_ext'
76940   shlibpath_overrides_runpath=yes
76941   shlibpath_var=DYLD_LIBRARY_PATH
76942   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
76943
76944   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
76945   ;;
76946
76947 dgux*)
76948   version_type=linux # correct to gnu/linux during the next big refactor
76949   need_lib_prefix=no
76950   need_version=no
76951   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76952   soname_spec='$libname$release$shared_ext$major'
76953   shlibpath_var=LD_LIBRARY_PATH
76954   ;;
76955
76956 freebsd* | dragonfly*)
76957   # DragonFly does not have aout.  When/if they implement a new
76958   # versioning mechanism, adjust this.
76959   if test -x /usr/bin/objformat; then
76960     objformat=`/usr/bin/objformat`
76961   else
76962     case $host_os in
76963     freebsd[23].*) objformat=aout ;;
76964     *) objformat=elf ;;
76965     esac
76966   fi
76967   version_type=freebsd-$objformat
76968   case $version_type in
76969     freebsd-elf*)
76970       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76971       soname_spec='$libname$release$shared_ext$major'
76972       need_version=no
76973       need_lib_prefix=no
76974       ;;
76975     freebsd-*)
76976       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
76977       need_version=yes
76978       ;;
76979   esac
76980   shlibpath_var=LD_LIBRARY_PATH
76981   case $host_os in
76982   freebsd2.*)
76983     shlibpath_overrides_runpath=yes
76984     ;;
76985   freebsd3.[01]* | freebsdelf3.[01]*)
76986     shlibpath_overrides_runpath=yes
76987     hardcode_into_libs=yes
76988     ;;
76989   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
76990   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
76991     shlibpath_overrides_runpath=no
76992     hardcode_into_libs=yes
76993     ;;
76994   *) # from 4.6 on, and DragonFly
76995     shlibpath_overrides_runpath=yes
76996     hardcode_into_libs=yes
76997     ;;
76998   esac
76999   ;;
77000
77001 haiku*)
77002   version_type=linux # correct to gnu/linux during the next big refactor
77003   need_lib_prefix=no
77004   need_version=no
77005   dynamic_linker="$host_os runtime_loader"
77006   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77007   soname_spec='$libname$release$shared_ext$major'
77008   shlibpath_var=LIBRARY_PATH
77009   shlibpath_overrides_runpath=no
77010   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
77011   hardcode_into_libs=yes
77012   ;;
77013
77014 hpux9* | hpux10* | hpux11*)
77015   # Give a soname corresponding to the major version so that dld.sl refuses to
77016   # link against other versions.
77017   version_type=sunos
77018   need_lib_prefix=no
77019   need_version=no
77020   case $host_cpu in
77021   ia64*)
77022     shrext_cmds='.so'
77023     hardcode_into_libs=yes
77024     dynamic_linker="$host_os dld.so"
77025     shlibpath_var=LD_LIBRARY_PATH
77026     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
77027     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77028     soname_spec='$libname$release$shared_ext$major'
77029     if test 32 = "$HPUX_IA64_MODE"; then
77030       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
77031       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
77032     else
77033       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
77034       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
77035     fi
77036     ;;
77037   hppa*64*)
77038     shrext_cmds='.sl'
77039     hardcode_into_libs=yes
77040     dynamic_linker="$host_os dld.sl"
77041     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
77042     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
77043     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77044     soname_spec='$libname$release$shared_ext$major'
77045     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
77046     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
77047     ;;
77048   *)
77049     shrext_cmds='.sl'
77050     dynamic_linker="$host_os dld.sl"
77051     shlibpath_var=SHLIB_PATH
77052     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
77053     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77054     soname_spec='$libname$release$shared_ext$major'
77055     ;;
77056   esac
77057   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
77058   postinstall_cmds='chmod 555 $lib'
77059   # or fails outright, so override atomically:
77060   install_override_mode=555
77061   ;;
77062
77063 interix[3-9]*)
77064   version_type=linux # correct to gnu/linux during the next big refactor
77065   need_lib_prefix=no
77066   need_version=no
77067   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77068   soname_spec='$libname$release$shared_ext$major'
77069   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
77070   shlibpath_var=LD_LIBRARY_PATH
77071   shlibpath_overrides_runpath=no
77072   hardcode_into_libs=yes
77073   ;;
77074
77075 irix5* | irix6* | nonstopux*)
77076   case $host_os in
77077     nonstopux*) version_type=nonstopux ;;
77078     *)
77079         if test yes = "$lt_cv_prog_gnu_ld"; then
77080                 version_type=linux # correct to gnu/linux during the next big refactor
77081         else
77082                 version_type=irix
77083         fi ;;
77084   esac
77085   need_lib_prefix=no
77086   need_version=no
77087   soname_spec='$libname$release$shared_ext$major'
77088   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
77089   case $host_os in
77090   irix5* | nonstopux*)
77091     libsuff= shlibsuff=
77092     ;;
77093   *)
77094     case $LD in # libtool.m4 will add one of these switches to LD
77095     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
77096       libsuff= shlibsuff= libmagic=32-bit;;
77097     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
77098       libsuff=32 shlibsuff=N32 libmagic=N32;;
77099     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
77100       libsuff=64 shlibsuff=64 libmagic=64-bit;;
77101     *) libsuff= shlibsuff= libmagic=never-match;;
77102     esac
77103     ;;
77104   esac
77105   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
77106   shlibpath_overrides_runpath=no
77107   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
77108   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
77109   hardcode_into_libs=yes
77110   ;;
77111
77112 # No shared lib support for Linux oldld, aout, or coff.
77113 linux*oldld* | linux*aout* | linux*coff*)
77114   dynamic_linker=no
77115   ;;
77116
77117 linux*android*)
77118   version_type=none # Android doesn't support versioned libraries.
77119   need_lib_prefix=no
77120   need_version=no
77121   library_names_spec='$libname$release$shared_ext'
77122   soname_spec='$libname$release$shared_ext'
77123   finish_cmds=
77124   shlibpath_var=LD_LIBRARY_PATH
77125   shlibpath_overrides_runpath=yes
77126
77127   # This implies no fast_install, which is unacceptable.
77128   # Some rework will be needed to allow for fast_install
77129   # before this can be enabled.
77130   hardcode_into_libs=yes
77131
77132   dynamic_linker='Android linker'
77133   # Don't embed -rpath directories since the linker doesn't support them.
77134   hardcode_libdir_flag_spec_CXX='-L$libdir'
77135   ;;
77136
77137 # This must be glibc/ELF.
77138 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
77139   version_type=linux # correct to gnu/linux during the next big refactor
77140   need_lib_prefix=no
77141   need_version=no
77142   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77143   soname_spec='$libname$release$shared_ext$major'
77144   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
77145   shlibpath_var=LD_LIBRARY_PATH
77146   shlibpath_overrides_runpath=no
77147
77148   # Some binutils ld are patched to set DT_RUNPATH
77149   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
77150   $as_echo_n "(cached) " >&6
77151 else
77152   lt_cv_shlibpath_overrides_runpath=no
77153     save_LDFLAGS=$LDFLAGS
77154     save_libdir=$libdir
77155     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
77156          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
77157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77158 /* end confdefs.h.  */
77159
77160 int
77161 main ()
77162 {
77163
77164   ;
77165   return 0;
77166 }
77167 _ACEOF
77168 if ac_fn_cxx_try_link "$LINENO"; then :
77169   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
77170   lt_cv_shlibpath_overrides_runpath=yes
77171 fi
77172 fi
77173 rm -f core conftest.err conftest.$ac_objext \
77174     conftest$ac_exeext conftest.$ac_ext
77175     LDFLAGS=$save_LDFLAGS
77176     libdir=$save_libdir
77177
77178 fi
77179
77180   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
77181
77182   # This implies no fast_install, which is unacceptable.
77183   # Some rework will be needed to allow for fast_install
77184   # before this can be enabled.
77185   hardcode_into_libs=yes
77186
77187   # Ideally, we could use ldconfig to report *all* directores which are
77188   # searched for libraries, however this is still not possible.  Aside from not
77189   # being certain /sbin/ldconfig is available, command
77190   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
77191   # even though it is searched at run-time.  Try to do the best guess by
77192   # appending ld.so.conf contents (and includes) to the search path.
77193   if test -f /etc/ld.so.conf; then
77194     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' ' '`
77195     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
77196   fi
77197
77198   # We used to test for /lib/ld.so.1 and disable shared libraries on
77199   # powerpc, because MkLinux only supported shared libraries with the
77200   # GNU dynamic linker.  Since this was broken with cross compilers,
77201   # most powerpc-linux boxes support dynamic linking these days and
77202   # people can always --disable-shared, the test was removed, and we
77203   # assume the GNU/Linux dynamic linker is in use.
77204   dynamic_linker='GNU/Linux ld.so'
77205   ;;
77206
77207 netbsd*)
77208   version_type=sunos
77209   need_lib_prefix=no
77210   need_version=no
77211   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
77212     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
77213     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
77214     dynamic_linker='NetBSD (a.out) ld.so'
77215   else
77216     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77217     soname_spec='$libname$release$shared_ext$major'
77218     dynamic_linker='NetBSD ld.elf_so'
77219   fi
77220   shlibpath_var=LD_LIBRARY_PATH
77221   shlibpath_overrides_runpath=yes
77222   hardcode_into_libs=yes
77223   ;;
77224
77225 newsos6)
77226   version_type=linux # correct to gnu/linux during the next big refactor
77227   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77228   shlibpath_var=LD_LIBRARY_PATH
77229   shlibpath_overrides_runpath=yes
77230   ;;
77231
77232 *nto* | *qnx*)
77233   version_type=qnx
77234   need_lib_prefix=no
77235   need_version=no
77236   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77237   soname_spec='$libname$release$shared_ext$major'
77238   shlibpath_var=LD_LIBRARY_PATH
77239   shlibpath_overrides_runpath=no
77240   hardcode_into_libs=yes
77241   dynamic_linker='ldqnx.so'
77242   ;;
77243
77244 openbsd* | bitrig*)
77245   version_type=sunos
77246   sys_lib_dlsearch_path_spec=/usr/lib
77247   need_lib_prefix=no
77248   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
77249     need_version=no
77250   else
77251     need_version=yes
77252   fi
77253   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
77254   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
77255   shlibpath_var=LD_LIBRARY_PATH
77256   shlibpath_overrides_runpath=yes
77257   ;;
77258
77259 os2*)
77260   libname_spec='$name'
77261   version_type=windows
77262   shrext_cmds=.dll
77263   need_version=no
77264   need_lib_prefix=no
77265   # OS/2 can only load a DLL with a base name of 8 characters or less.
77266   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
77267     v=$($ECHO $release$versuffix | tr -d .-);
77268     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
77269     $ECHO $n$v`$shared_ext'
77270   library_names_spec='${libname}_dll.$libext'
77271   dynamic_linker='OS/2 ld.exe'
77272   shlibpath_var=BEGINLIBPATH
77273   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
77274   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
77275   postinstall_cmds='base_file=`basename \$file`~
77276     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
77277     dldir=$destdir/`dirname \$dlpath`~
77278     test -d \$dldir || mkdir -p \$dldir~
77279     $install_prog $dir/$dlname \$dldir/$dlname~
77280     chmod a+x \$dldir/$dlname~
77281     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
77282       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
77283     fi'
77284   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
77285     dlpath=$dir/\$dldll~
77286     $RM \$dlpath'
77287   ;;
77288
77289 osf3* | osf4* | osf5*)
77290   version_type=osf
77291   need_lib_prefix=no
77292   need_version=no
77293   soname_spec='$libname$release$shared_ext$major'
77294   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77295   shlibpath_var=LD_LIBRARY_PATH
77296   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
77297   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
77298   ;;
77299
77300 rdos*)
77301   dynamic_linker=no
77302   ;;
77303
77304 solaris*)
77305   version_type=linux # correct to gnu/linux during the next big refactor
77306   need_lib_prefix=no
77307   need_version=no
77308   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77309   soname_spec='$libname$release$shared_ext$major'
77310   shlibpath_var=LD_LIBRARY_PATH
77311   shlibpath_overrides_runpath=yes
77312   hardcode_into_libs=yes
77313   # ldd complains unless libraries are executable
77314   postinstall_cmds='chmod +x $lib'
77315   ;;
77316
77317 sunos4*)
77318   version_type=sunos
77319   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
77320   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
77321   shlibpath_var=LD_LIBRARY_PATH
77322   shlibpath_overrides_runpath=yes
77323   if test yes = "$with_gnu_ld"; then
77324     need_lib_prefix=no
77325   fi
77326   need_version=yes
77327   ;;
77328
77329 sysv4 | sysv4.3*)
77330   version_type=linux # correct to gnu/linux during the next big refactor
77331   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77332   soname_spec='$libname$release$shared_ext$major'
77333   shlibpath_var=LD_LIBRARY_PATH
77334   case $host_vendor in
77335     sni)
77336       shlibpath_overrides_runpath=no
77337       need_lib_prefix=no
77338       runpath_var=LD_RUN_PATH
77339       ;;
77340     siemens)
77341       need_lib_prefix=no
77342       ;;
77343     motorola)
77344       need_lib_prefix=no
77345       need_version=no
77346       shlibpath_overrides_runpath=no
77347       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
77348       ;;
77349   esac
77350   ;;
77351
77352 sysv4*MP*)
77353   if test -d /usr/nec; then
77354     version_type=linux # correct to gnu/linux during the next big refactor
77355     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
77356     soname_spec='$libname$shared_ext.$major'
77357     shlibpath_var=LD_LIBRARY_PATH
77358   fi
77359   ;;
77360
77361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
77362   version_type=sco
77363   need_lib_prefix=no
77364   need_version=no
77365   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
77366   soname_spec='$libname$release$shared_ext$major'
77367   shlibpath_var=LD_LIBRARY_PATH
77368   shlibpath_overrides_runpath=yes
77369   hardcode_into_libs=yes
77370   if test yes = "$with_gnu_ld"; then
77371     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
77372   else
77373     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
77374     case $host_os in
77375       sco3.2v5*)
77376         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
77377         ;;
77378     esac
77379   fi
77380   sys_lib_dlsearch_path_spec='/usr/lib'
77381   ;;
77382
77383 tpf*)
77384   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
77385   version_type=linux # correct to gnu/linux during the next big refactor
77386   need_lib_prefix=no
77387   need_version=no
77388   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77389   shlibpath_var=LD_LIBRARY_PATH
77390   shlibpath_overrides_runpath=no
77391   hardcode_into_libs=yes
77392   ;;
77393
77394 uts4*)
77395   version_type=linux # correct to gnu/linux during the next big refactor
77396   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
77397   soname_spec='$libname$release$shared_ext$major'
77398   shlibpath_var=LD_LIBRARY_PATH
77399   ;;
77400
77401 *)
77402   dynamic_linker=no
77403   ;;
77404 esac
77405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
77406 $as_echo "$dynamic_linker" >&6; }
77407 test no = "$dynamic_linker" && can_build_shared=no
77408
77409 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
77410 if test yes = "$GCC"; then
77411   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
77412 fi
77413
77414 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
77415   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
77416 fi
77417
77418 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
77419   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
77420 fi
77421
77422 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
77423 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
77424
77425 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
77426 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
77427
77428 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
77429 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
77430
77431
77432
77433
77434
77435
77436
77437
77438
77439
77440
77441
77442
77443
77444
77445
77446
77447
77448
77449
77450
77451
77452
77453
77454
77455
77456
77457
77458
77459
77460
77461
77462
77463
77464
77465
77466
77467
77468
77469
77470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
77471 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
77472 hardcode_action_CXX=
77473 if test -n "$hardcode_libdir_flag_spec_CXX" ||
77474    test -n "$runpath_var_CXX" ||
77475    test yes = "$hardcode_automatic_CXX"; then
77476
77477   # We can hardcode non-existent directories.
77478   if test no != "$hardcode_direct_CXX" &&
77479      # If the only mechanism to avoid hardcoding is shlibpath_var, we
77480      # have to relink, otherwise we might link with an installed library
77481      # when we should be linking with a yet-to-be-installed one
77482      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
77483      test no != "$hardcode_minus_L_CXX"; then
77484     # Linking always hardcodes the temporary library directory.
77485     hardcode_action_CXX=relink
77486   else
77487     # We can link without hardcoding, and we can hardcode nonexisting dirs.
77488     hardcode_action_CXX=immediate
77489   fi
77490 else
77491   # We cannot hardcode anything, or else we can only hardcode existing
77492   # directories.
77493   hardcode_action_CXX=unsupported
77494 fi
77495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
77496 $as_echo "$hardcode_action_CXX" >&6; }
77497
77498 if test relink = "$hardcode_action_CXX" ||
77499    test yes = "$inherit_rpath_CXX"; then
77500   # Fast installation is not supported
77501   enable_fast_install=no
77502 elif test yes = "$shlibpath_overrides_runpath" ||
77503      test no = "$enable_shared"; then
77504   # Fast installation is not necessary
77505   enable_fast_install=needless
77506 fi
77507
77508
77509
77510
77511
77512
77513
77514   fi # test -n "$compiler"
77515
77516   CC=$lt_save_CC
77517   CFLAGS=$lt_save_CFLAGS
77518   LDCXX=$LD
77519   LD=$lt_save_LD
77520   GCC=$lt_save_GCC
77521   with_gnu_ld=$lt_save_with_gnu_ld
77522   lt_cv_path_LDCXX=$lt_cv_path_LD
77523   lt_cv_path_LD=$lt_save_path_LD
77524   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
77525   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
77526 fi # test yes != "$_lt_caught_CXX_error"
77527
77528 ac_ext=c
77529 ac_cpp='$CPP $CPPFLAGS'
77530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
77531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
77532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
77533
77534
77535
77536 if test "${enable_libasprintf+set}" = set; then
77537   if test "$enable_libasprintf" != no; then
77538     TESTLIBASPRINTF=yes
77539   else
77540     TESTLIBASPRINTF=no
77541   fi
77542 else
77543   TESTLIBASPRINTF=yes
77544 fi
77545 if test "$CXX" = no; then
77546   TESTLIBASPRINTF=no
77547 fi
77548
77549
77550 test -d intl || mkdir intl
77551 echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
77552
77553
77554
77555 subdirs="$subdirs examples"
77556
77557
77558 ac_config_files="$ac_config_files Makefile"
77559
77560
77561 ac_config_files="$ac_config_files doc/Makefile"
77562
77563
77564 ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in"
77565
77566
77567 ac_config_files="$ac_config_files its/Makefile"
77568
77569
77570 ac_config_files="$ac_config_files gnulib-lib/Makefile"
77571
77572
77573 ac_config_files="$ac_config_files libgrep/Makefile"
77574
77575
77576 ac_config_files="$ac_config_files src/Makefile"
77577
77578 ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in"
77579
77580
77581 ac_config_files="$ac_config_files libgettextpo/Makefile"
77582
77583 ac_config_files="$ac_config_files libgettextpo/exported.sh"
77584
77585
77586 ac_config_files="$ac_config_files po/Makefile.in"
77587
77588
77589 ac_config_files="$ac_config_files projects/Makefile"
77590
77591
77592 ac_config_files="$ac_config_files styles/Makefile"
77593
77594
77595 ac_config_files="$ac_config_files misc/Makefile"
77596
77597 ac_config_files="$ac_config_files misc/gettextize"
77598
77599 ac_config_files="$ac_config_files misc/autopoint"
77600
77601 ac_config_files="$ac_config_files misc/convert-archive"
77602
77603
77604 ac_config_files="$ac_config_files man/Makefile"
77605
77606 ac_config_files="$ac_config_files man/x-to-1"
77607
77608
77609 ac_config_files="$ac_config_files m4/Makefile"
77610
77611
77612 ac_config_files="$ac_config_files tests/Makefile"
77613
77614
77615 ac_config_files="$ac_config_files tests/init-env"
77616
77617
77618 ac_config_files="$ac_config_files gnulib-tests/Makefile"
77619
77620
77621 cat >confcache <<\_ACEOF
77622 # This file is a shell script that caches the results of configure
77623 # tests run on this system so they can be shared between configure
77624 # scripts and configure runs, see configure's option --config-cache.
77625 # It is not useful on other systems.  If it contains results you don't
77626 # want to keep, you may remove or edit it.
77627 #
77628 # config.status only pays attention to the cache file if you give it
77629 # the --recheck option to rerun configure.
77630 #
77631 # `ac_cv_env_foo' variables (set or unset) will be overridden when
77632 # loading this file, other *unset* `ac_cv_foo' will be assigned the
77633 # following values.
77634
77635 _ACEOF
77636
77637 # The following way of writing the cache mishandles newlines in values,
77638 # but we know of no workaround that is simple, portable, and efficient.
77639 # So, we kill variables containing newlines.
77640 # Ultrix sh set writes to stderr and can't be redirected directly,
77641 # and sets the high bit in the cache file unless we assign to the vars.
77642 (
77643   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
77644     eval ac_val=\$$ac_var
77645     case $ac_val in #(
77646     *${as_nl}*)
77647       case $ac_var in #(
77648       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
77649 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
77650       esac
77651       case $ac_var in #(
77652       _ | IFS | as_nl) ;; #(
77653       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
77654       *) { eval $ac_var=; unset $ac_var;} ;;
77655       esac ;;
77656     esac
77657   done
77658
77659   (set) 2>&1 |
77660     case $as_nl`(ac_space=' '; set) 2>&1` in #(
77661     *${as_nl}ac_space=\ *)
77662       # `set' does not quote correctly, so add quotes: double-quote
77663       # substitution turns \\\\ into \\, and sed turns \\ into \.
77664       sed -n \
77665         "s/'/'\\\\''/g;
77666           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
77667       ;; #(
77668     *)
77669       # `set' quotes correctly as required by POSIX, so do not add quotes.
77670       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
77671       ;;
77672     esac |
77673     sort
77674 ) |
77675   sed '
77676      /^ac_cv_env_/b end
77677      t clear
77678      :clear
77679      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
77680      t end
77681      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
77682      :end' >>confcache
77683 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
77684   if test -w "$cache_file"; then
77685     if test "x$cache_file" != "x/dev/null"; then
77686       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
77687 $as_echo "$as_me: updating cache $cache_file" >&6;}
77688       if test ! -f "$cache_file" || test -h "$cache_file"; then
77689         cat confcache >"$cache_file"
77690       else
77691         case $cache_file in #(
77692         */* | ?:*)
77693           mv -f confcache "$cache_file"$$ &&
77694           mv -f "$cache_file"$$ "$cache_file" ;; #(
77695         *)
77696           mv -f confcache "$cache_file" ;;
77697         esac
77698       fi
77699     fi
77700   else
77701     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
77702 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
77703   fi
77704 fi
77705 rm -f confcache
77706
77707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
77708 # Let make expand exec_prefix.
77709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
77710
77711 DEFS=-DHAVE_CONFIG_H
77712
77713 ac_libobjs=
77714 ac_ltlibobjs=
77715 U=
77716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
77717   # 1. Remove the extension, and $U if already installed.
77718   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
77719   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
77720   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
77721   #    will be set to the directory where LIBOBJS objects are built.
77722   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
77723   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
77724 done
77725 LIBOBJS=$ac_libobjs
77726
77727 LTLIBOBJS=$ac_ltlibobjs
77728
77729
77730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
77731 $as_echo_n "checking that generated files are newer than configure... " >&6; }
77732    if test -n "$am_sleep_pid"; then
77733      # Hide warnings about reused PIDs.
77734      wait $am_sleep_pid 2>/dev/null
77735    fi
77736    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
77737 $as_echo "done" >&6; }
77738  if test -n "$EXEEXT"; then
77739   am__EXEEXT_TRUE=
77740   am__EXEEXT_FALSE='#'
77741 else
77742   am__EXEEXT_TRUE='#'
77743   am__EXEEXT_FALSE=
77744 fi
77745
77746 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
77747   as_fn_error $? "conditional \"AMDEP\" was never defined.
77748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77749 fi
77750 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
77751   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
77752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77753 fi
77754 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
77755   as_fn_error $? "conditional \"WOE32\" was never defined.
77756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77757 fi
77758 if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
77759   as_fn_error $? "conditional \"OS2\" was never defined.
77760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77761 fi
77762 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
77763   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
77764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77765 fi
77766 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
77767   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
77768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77769 fi
77770 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
77771   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
77772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77773 fi
77774 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
77775   as_fn_error $? "conditional \"ANSICXX\" was never defined.
77776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77777 fi
77778 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
77779   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
77780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77781 fi
77782 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
77783   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
77784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77785 fi
77786 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
77787   as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
77788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77789 fi
77790 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
77791   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
77792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77793 fi
77794 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
77795   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
77796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77797 fi
77798 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
77799   as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
77800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77801 fi
77802 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
77803   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
77804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77805 fi
77806 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
77807   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
77808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77809 fi
77810
77811
77812 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
77813   as_fn_error $? "conditional \"INCLUDED_LIBGLIB\" was never defined.
77814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77815 fi
77816 if test -z "${INCLUDED_LIBCROCO_TRUE}" && test -z "${INCLUDED_LIBCROCO_FALSE}"; then
77817   as_fn_error $? "conditional \"INCLUDED_LIBCROCO\" was never defined.
77818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77819 fi
77820 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
77821   as_fn_error $? "conditional \"INCLUDED_LIBGLIB\" was never defined.
77822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77823 fi
77824 if test -z "${INCLUDED_LIBXML_TRUE}" && test -z "${INCLUDED_LIBXML_FALSE}"; then
77825   as_fn_error $? "conditional \"INCLUDED_LIBXML\" was never defined.
77826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77827 fi
77828 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
77829   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
77830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77831 fi
77832 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
77833   as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
77834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77835 fi
77836 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
77837   as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
77838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77839 fi
77840 if test -z "${GL_GENERATE_SCHED_H_TRUE}" && test -z "${GL_GENERATE_SCHED_H_FALSE}"; then
77841   as_fn_error $? "conditional \"GL_GENERATE_SCHED_H\" was never defined.
77842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77843 fi
77844 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
77845   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
77846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77847 fi
77848 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
77849   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
77850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77851 fi
77852 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
77853   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
77854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77855 fi
77856 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
77857   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
77858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77859 fi
77860 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
77861   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
77862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77863 fi
77864 if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE}"; then
77865   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE\" was never defined.
77866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77867 fi
77868 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
77869   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
77870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77871 fi
77872 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
77873   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
77874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77875 fi
77876 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
77877   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
77878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77879 fi
77880 if test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE}"; then
77881   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINAME_UNINAME\" was never defined.
77882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77883 fi
77884 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
77885   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
77886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77887 fi
77888 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
77889   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
77890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77891 fi
77892 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
77893   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
77894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77895 fi
77896 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
77897   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
77898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77899 fi
77900 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
77901   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
77902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77903 fi
77904 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
77905   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
77906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77907 fi
77908 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
77909   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
77910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77911 fi
77912 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
77913   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
77914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77915 fi
77916 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
77917   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
77918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77919 fi
77920
77921     gl_libobjs=
77922     gl_ltlibobjs=
77923     if test -n "$gl_LIBOBJS"; then
77924       # Remove the extension.
77925       sed_drop_objext='s/\.o$//;s/\.obj$//'
77926       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77927         gl_libobjs="$gl_libobjs $i.$ac_objext"
77928         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
77929       done
77930     fi
77931     gl_LIBOBJS=$gl_libobjs
77932
77933     gl_LTLIBOBJS=$gl_ltlibobjs
77934
77935
77936
77937
77938
77939
77940 if test -z "${POSIX_SPAWN_PORTED_TRUE}" && test -z "${POSIX_SPAWN_PORTED_FALSE}"; then
77941   as_fn_error $? "conditional \"POSIX_SPAWN_PORTED\" was never defined.
77942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77943 fi
77944 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
77945   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
77946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77947 fi
77948 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE}"; then
77949   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CMP\" was never defined.
77950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77951 fi
77952 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE}"; then
77953   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN\" was never defined.
77954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77955 fi
77956
77957     gltests_libobjs=
77958     gltests_ltlibobjs=
77959     if test -n "$gltests_LIBOBJS"; then
77960       # Remove the extension.
77961       sed_drop_objext='s/\.o$//;s/\.obj$//'
77962       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77963         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
77964         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
77965       done
77966     fi
77967     gltests_LIBOBJS=$gltests_libobjs
77968
77969     gltests_LTLIBOBJS=$gltests_ltlibobjs
77970
77971
77972 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
77973   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
77974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77975 fi
77976
77977     grgl_libobjs=
77978     grgl_ltlibobjs=
77979     if test -n "$grgl_LIBOBJS"; then
77980       # Remove the extension.
77981       sed_drop_objext='s/\.o$//;s/\.obj$//'
77982       for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77983         grgl_libobjs="$grgl_libobjs $i.$ac_objext"
77984         grgl_ltlibobjs="$grgl_ltlibobjs $i.lo"
77985       done
77986     fi
77987     grgl_LIBOBJS=$grgl_libobjs
77988
77989     grgl_LTLIBOBJS=$grgl_ltlibobjs
77990
77991
77992
77993     grgltests_libobjs=
77994     grgltests_ltlibobjs=
77995     if test -n "$grgltests_LIBOBJS"; then
77996       # Remove the extension.
77997       sed_drop_objext='s/\.o$//;s/\.obj$//'
77998       for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77999         grgltests_libobjs="$grgltests_libobjs $i.$ac_objext"
78000         grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo"
78001       done
78002     fi
78003     grgltests_LIBOBJS=$grgltests_libobjs
78004
78005     grgltests_LTLIBOBJS=$grgltests_ltlibobjs
78006
78007
78008 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
78009   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
78010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78011 fi
78012 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
78013   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
78014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78015 fi
78016 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
78017   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
78018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78019 fi
78020 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
78021   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
78022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78023 fi
78024 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
78025   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
78026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78027 fi
78028 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
78029   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
78030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78031 fi
78032 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
78033   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
78034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78035 fi
78036 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
78037   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
78038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78039 fi
78040 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
78041   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
78042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78043 fi
78044 if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_FALSE}"; then
78045   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA\" was never defined.
78046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78047 fi
78048 if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE}"; then
78049   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE\" was never defined.
78050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78051 fi
78052 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
78053   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
78054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78055 fi
78056 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
78057   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
78058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78059 fi
78060 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
78061   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
78062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78063 fi
78064 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
78065   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
78066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78067 fi
78068 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
78069   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
78070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78071 fi
78072 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
78073   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
78074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78075 fi
78076 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
78077   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
78078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78079 fi
78080 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
78081   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
78082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78083 fi
78084 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
78085   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
78086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78087 fi
78088 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_FALSE}"; then
78089   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_NEXT\" was never defined.
78090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78091 fi
78092 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
78093   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
78094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78095 fi
78096 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE}"; then
78097   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC\" was never defined.
78098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78099 fi
78100 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
78101   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
78102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78103 fi
78104 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
78105   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
78106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78107 fi
78108
78109     gtpo_libobjs=
78110     gtpo_ltlibobjs=
78111     if test -n "$gtpo_LIBOBJS"; then
78112       # Remove the extension.
78113       sed_drop_objext='s/\.o$//;s/\.obj$//'
78114       for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
78115         gtpo_libobjs="$gtpo_libobjs $i.$ac_objext"
78116         gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo"
78117       done
78118     fi
78119     gtpo_LIBOBJS=$gtpo_libobjs
78120
78121     gtpo_LTLIBOBJS=$gtpo_ltlibobjs
78122
78123
78124
78125     gtpotests_libobjs=
78126     gtpotests_ltlibobjs=
78127     if test -n "$gtpotests_LIBOBJS"; then
78128       # Remove the extension.
78129       sed_drop_objext='s/\.o$//;s/\.obj$//'
78130       for i in `for i in $gtpotests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
78131         gtpotests_libobjs="$gtpotests_libobjs $i.$ac_objext"
78132         gtpotests_ltlibobjs="$gtpotests_ltlibobjs $i.lo"
78133       done
78134     fi
78135     gtpotests_LIBOBJS=$gtpotests_libobjs
78136
78137     gtpotests_LTLIBOBJS=$gtpotests_ltlibobjs
78138
78139
78140 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
78141   as_fn_error $? "conditional \"WOE32DLL\" was never defined.
78142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78143 fi
78144 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
78145   as_fn_error $? "conditional \"ANSICXX\" was never defined.
78146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78147 fi
78148 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
78149   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
78150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78151 fi
78152 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
78153   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
78154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78155 fi
78156 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
78157   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
78158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
78159 fi
78160
78161 : "${CONFIG_STATUS=./config.status}"
78162 ac_write_fail=0
78163 ac_clean_files_save=$ac_clean_files
78164 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
78165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
78166 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
78167 as_write_fail=0
78168 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
78169 #! $SHELL
78170 # Generated by $as_me.
78171 # Run this file to recreate the current configuration.
78172 # Compiler output produced by configure, useful for debugging
78173 # configure, is in config.log if it exists.
78174
78175 debug=false
78176 ac_cs_recheck=false
78177 ac_cs_silent=false
78178
78179 SHELL=\${CONFIG_SHELL-$SHELL}
78180 export SHELL
78181 _ASEOF
78182 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
78183 ## -------------------- ##
78184 ## M4sh Initialization. ##
78185 ## -------------------- ##
78186
78187 # Be more Bourne compatible
78188 DUALCASE=1; export DUALCASE # for MKS sh
78189 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
78190   emulate sh
78191   NULLCMD=:
78192   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
78193   # is contrary to our usage.  Disable this feature.
78194   alias -g '${1+"$@"}'='"$@"'
78195   setopt NO_GLOB_SUBST
78196 else
78197   case `(set -o) 2>/dev/null` in #(
78198   *posix*) :
78199     set -o posix ;; #(
78200   *) :
78201      ;;
78202 esac
78203 fi
78204
78205
78206 as_nl='
78207 '
78208 export as_nl
78209 # Printing a long string crashes Solaris 7 /usr/bin/printf.
78210 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
78211 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
78212 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
78213 # Prefer a ksh shell builtin over an external printf program on Solaris,
78214 # but without wasting forks for bash or zsh.
78215 if test -z "$BASH_VERSION$ZSH_VERSION" \
78216     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
78217   as_echo='print -r --'
78218   as_echo_n='print -rn --'
78219 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
78220   as_echo='printf %s\n'
78221   as_echo_n='printf %s'
78222 else
78223   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
78224     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
78225     as_echo_n='/usr/ucb/echo -n'
78226   else
78227     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
78228     as_echo_n_body='eval
78229       arg=$1;
78230       case $arg in #(
78231       *"$as_nl"*)
78232         expr "X$arg" : "X\\(.*\\)$as_nl";
78233         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
78234       esac;
78235       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
78236     '
78237     export as_echo_n_body
78238     as_echo_n='sh -c $as_echo_n_body as_echo'
78239   fi
78240   export as_echo_body
78241   as_echo='sh -c $as_echo_body as_echo'
78242 fi
78243
78244 # The user is always right.
78245 if test "${PATH_SEPARATOR+set}" != set; then
78246   PATH_SEPARATOR=:
78247   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78248     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78249       PATH_SEPARATOR=';'
78250   }
78251 fi
78252
78253
78254 # IFS
78255 # We need space, tab and new line, in precisely that order.  Quoting is
78256 # there to prevent editors from complaining about space-tab.
78257 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
78258 # splitting by setting IFS to empty value.)
78259 IFS=" ""        $as_nl"
78260
78261 # Find who we are.  Look in the path if we contain no directory separator.
78262 as_myself=
78263 case $0 in #((
78264   *[\\/]* ) as_myself=$0 ;;
78265   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78266 for as_dir in $PATH
78267 do
78268   IFS=$as_save_IFS
78269   test -z "$as_dir" && as_dir=.
78270     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78271   done
78272 IFS=$as_save_IFS
78273
78274      ;;
78275 esac
78276 # We did not find ourselves, most probably we were run as `sh COMMAND'
78277 # in which case we are not to be found in the path.
78278 if test "x$as_myself" = x; then
78279   as_myself=$0
78280 fi
78281 if test ! -f "$as_myself"; then
78282   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
78283   exit 1
78284 fi
78285
78286 # Unset variables that we do not need and which cause bugs (e.g. in
78287 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
78288 # suppresses any "Segmentation fault" message there.  '((' could
78289 # trigger a bug in pdksh 5.2.14.
78290 for as_var in BASH_ENV ENV MAIL MAILPATH
78291 do eval test x\${$as_var+set} = xset \
78292   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
78293 done
78294 PS1='$ '
78295 PS2='> '
78296 PS4='+ '
78297
78298 # NLS nuisances.
78299 LC_ALL=C
78300 export LC_ALL
78301 LANGUAGE=C
78302 export LANGUAGE
78303
78304 # CDPATH.
78305 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
78306
78307
78308 # as_fn_error STATUS ERROR [LINENO LOG_FD]
78309 # ----------------------------------------
78310 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
78311 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
78312 # script with STATUS, using 1 if that was 0.
78313 as_fn_error ()
78314 {
78315   as_status=$1; test $as_status -eq 0 && as_status=1
78316   if test "$4"; then
78317     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
78318     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
78319   fi
78320   $as_echo "$as_me: error: $2" >&2
78321   as_fn_exit $as_status
78322 } # as_fn_error
78323
78324
78325 # as_fn_set_status STATUS
78326 # -----------------------
78327 # Set $? to STATUS, without forking.
78328 as_fn_set_status ()
78329 {
78330   return $1
78331 } # as_fn_set_status
78332
78333 # as_fn_exit STATUS
78334 # -----------------
78335 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
78336 as_fn_exit ()
78337 {
78338   set +e
78339   as_fn_set_status $1
78340   exit $1
78341 } # as_fn_exit
78342
78343 # as_fn_unset VAR
78344 # ---------------
78345 # Portably unset VAR.
78346 as_fn_unset ()
78347 {
78348   { eval $1=; unset $1;}
78349 }
78350 as_unset=as_fn_unset
78351 # as_fn_append VAR VALUE
78352 # ----------------------
78353 # Append the text in VALUE to the end of the definition contained in VAR. Take
78354 # advantage of any shell optimizations that allow amortized linear growth over
78355 # repeated appends, instead of the typical quadratic growth present in naive
78356 # implementations.
78357 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
78358   eval 'as_fn_append ()
78359   {
78360     eval $1+=\$2
78361   }'
78362 else
78363   as_fn_append ()
78364   {
78365     eval $1=\$$1\$2
78366   }
78367 fi # as_fn_append
78368
78369 # as_fn_arith ARG...
78370 # ------------------
78371 # Perform arithmetic evaluation on the ARGs, and store the result in the
78372 # global $as_val. Take advantage of shells that can avoid forks. The arguments
78373 # must be portable across $(()) and expr.
78374 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
78375   eval 'as_fn_arith ()
78376   {
78377     as_val=$(( $* ))
78378   }'
78379 else
78380   as_fn_arith ()
78381   {
78382     as_val=`expr "$@" || test $? -eq 1`
78383   }
78384 fi # as_fn_arith
78385
78386
78387 if expr a : '\(a\)' >/dev/null 2>&1 &&
78388    test "X`expr 00001 : '.*\(...\)'`" = X001; then
78389   as_expr=expr
78390 else
78391   as_expr=false
78392 fi
78393
78394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
78395   as_basename=basename
78396 else
78397   as_basename=false
78398 fi
78399
78400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
78401   as_dirname=dirname
78402 else
78403   as_dirname=false
78404 fi
78405
78406 as_me=`$as_basename -- "$0" ||
78407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
78408          X"$0" : 'X\(//\)$' \| \
78409          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
78410 $as_echo X/"$0" |
78411     sed '/^.*\/\([^/][^/]*\)\/*$/{
78412             s//\1/
78413             q
78414           }
78415           /^X\/\(\/\/\)$/{
78416             s//\1/
78417             q
78418           }
78419           /^X\/\(\/\).*/{
78420             s//\1/
78421             q
78422           }
78423           s/.*/./; q'`
78424
78425 # Avoid depending upon Character Ranges.
78426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
78428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
78429 as_cr_digits='0123456789'
78430 as_cr_alnum=$as_cr_Letters$as_cr_digits
78431
78432 ECHO_C= ECHO_N= ECHO_T=
78433 case `echo -n x` in #(((((
78434 -n*)
78435   case `echo 'xy\c'` in
78436   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
78437   xy)  ECHO_C='\c';;
78438   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
78439        ECHO_T=' ';;
78440   esac;;
78441 *)
78442   ECHO_N='-n';;
78443 esac
78444
78445 rm -f conf$$ conf$$.exe conf$$.file
78446 if test -d conf$$.dir; then
78447   rm -f conf$$.dir/conf$$.file
78448 else
78449   rm -f conf$$.dir
78450   mkdir conf$$.dir 2>/dev/null
78451 fi
78452 if (echo >conf$$.file) 2>/dev/null; then
78453   if ln -s conf$$.file conf$$ 2>/dev/null; then
78454     as_ln_s='ln -s'
78455     # ... but there are two gotchas:
78456     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
78457     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
78458     # In both cases, we have to default to `cp -pR'.
78459     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
78460       as_ln_s='cp -pR'
78461   elif ln conf$$.file conf$$ 2>/dev/null; then
78462     as_ln_s=ln
78463   else
78464     as_ln_s='cp -pR'
78465   fi
78466 else
78467   as_ln_s='cp -pR'
78468 fi
78469 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
78470 rmdir conf$$.dir 2>/dev/null
78471
78472
78473 # as_fn_mkdir_p
78474 # -------------
78475 # Create "$as_dir" as a directory, including parents if necessary.
78476 as_fn_mkdir_p ()
78477 {
78478
78479   case $as_dir in #(
78480   -*) as_dir=./$as_dir;;
78481   esac
78482   test -d "$as_dir" || eval $as_mkdir_p || {
78483     as_dirs=
78484     while :; do
78485       case $as_dir in #(
78486       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
78487       *) as_qdir=$as_dir;;
78488       esac
78489       as_dirs="'$as_qdir' $as_dirs"
78490       as_dir=`$as_dirname -- "$as_dir" ||
78491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
78492          X"$as_dir" : 'X\(//\)[^/]' \| \
78493          X"$as_dir" : 'X\(//\)$' \| \
78494          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
78495 $as_echo X"$as_dir" |
78496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
78497             s//\1/
78498             q
78499           }
78500           /^X\(\/\/\)[^/].*/{
78501             s//\1/
78502             q
78503           }
78504           /^X\(\/\/\)$/{
78505             s//\1/
78506             q
78507           }
78508           /^X\(\/\).*/{
78509             s//\1/
78510             q
78511           }
78512           s/.*/./; q'`
78513       test -d "$as_dir" && break
78514     done
78515     test -z "$as_dirs" || eval "mkdir $as_dirs"
78516   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
78517
78518
78519 } # as_fn_mkdir_p
78520 if mkdir -p . 2>/dev/null; then
78521   as_mkdir_p='mkdir -p "$as_dir"'
78522 else
78523   test -d ./-p && rmdir ./-p
78524   as_mkdir_p=false
78525 fi
78526
78527
78528 # as_fn_executable_p FILE
78529 # -----------------------
78530 # Test if FILE is an executable regular file.
78531 as_fn_executable_p ()
78532 {
78533   test -f "$1" && test -x "$1"
78534 } # as_fn_executable_p
78535 as_test_x='test -x'
78536 as_executable_p=as_fn_executable_p
78537
78538 # Sed expression to map a string onto a valid CPP name.
78539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
78540
78541 # Sed expression to map a string onto a valid variable name.
78542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
78543
78544
78545 exec 6>&1
78546 ## ----------------------------------- ##
78547 ## Main body of $CONFIG_STATUS script. ##
78548 ## ----------------------------------- ##
78549 _ASEOF
78550 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
78551
78552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78553 # Save the log message, to keep $0 and so on meaningful, and to
78554 # report actual input values of CONFIG_FILES etc. instead of their
78555 # values after options handling.
78556 ac_log="
78557 This file was extended by gettext-tools $as_me 0.19.8, which was
78558 generated by GNU Autoconf 2.69.  Invocation command line was
78559
78560   CONFIG_FILES    = $CONFIG_FILES
78561   CONFIG_HEADERS  = $CONFIG_HEADERS
78562   CONFIG_LINKS    = $CONFIG_LINKS
78563   CONFIG_COMMANDS = $CONFIG_COMMANDS
78564   $ $0 $@
78565
78566 on `(hostname || uname -n) 2>/dev/null | sed 1q`
78567 "
78568
78569 _ACEOF
78570
78571 case $ac_config_files in *"
78572 "*) set x $ac_config_files; shift; ac_config_files=$*;;
78573 esac
78574
78575 case $ac_config_headers in *"
78576 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
78577 esac
78578
78579
78580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78581 # Files that config.status was made for.
78582 config_files="$ac_config_files"
78583 config_headers="$ac_config_headers"
78584 config_commands="$ac_config_commands"
78585
78586 _ACEOF
78587
78588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78589 ac_cs_usage="\
78590 \`$as_me' instantiates files and other configuration actions
78591 from templates according to the current configuration.  Unless the files
78592 and actions are specified as TAGs, all are instantiated by default.
78593
78594 Usage: $0 [OPTION]... [TAG]...
78595
78596   -h, --help       print this help, then exit
78597   -V, --version    print version number and configuration settings, then exit
78598       --config     print configuration, then exit
78599   -q, --quiet, --silent
78600                    do not print progress messages
78601   -d, --debug      don't remove temporary files
78602       --recheck    update $as_me by reconfiguring in the same conditions
78603       --file=FILE[:TEMPLATE]
78604                    instantiate the configuration file FILE
78605       --header=FILE[:TEMPLATE]
78606                    instantiate the configuration header FILE
78607
78608 Configuration files:
78609 $config_files
78610
78611 Configuration headers:
78612 $config_headers
78613
78614 Configuration commands:
78615 $config_commands
78616
78617 Report bugs to <bug-gnu-gettext@gnu.org>."
78618
78619 _ACEOF
78620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78621 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
78622 ac_cs_version="\\
78623 gettext-tools config.status 0.19.8
78624 configured by $0, generated by GNU Autoconf 2.69,
78625   with options \\"\$ac_cs_config\\"
78626
78627 Copyright (C) 2012 Free Software Foundation, Inc.
78628 This config.status script is free software; the Free Software Foundation
78629 gives unlimited permission to copy, distribute and modify it."
78630
78631 ac_pwd='$ac_pwd'
78632 srcdir='$srcdir'
78633 INSTALL='$INSTALL'
78634 MKDIR_P='$MKDIR_P'
78635 AWK='$AWK'
78636 test -n "\$AWK" || AWK=awk
78637 _ACEOF
78638
78639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78640 # The default lists apply if the user does not specify any file.
78641 ac_need_defaults=:
78642 while test $# != 0
78643 do
78644   case $1 in
78645   --*=?*)
78646     ac_option=`expr "X$1" : 'X\([^=]*\)='`
78647     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
78648     ac_shift=:
78649     ;;
78650   --*=)
78651     ac_option=`expr "X$1" : 'X\([^=]*\)='`
78652     ac_optarg=
78653     ac_shift=:
78654     ;;
78655   *)
78656     ac_option=$1
78657     ac_optarg=$2
78658     ac_shift=shift
78659     ;;
78660   esac
78661
78662   case $ac_option in
78663   # Handling of the options.
78664   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
78665     ac_cs_recheck=: ;;
78666   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
78667     $as_echo "$ac_cs_version"; exit ;;
78668   --config | --confi | --conf | --con | --co | --c )
78669     $as_echo "$ac_cs_config"; exit ;;
78670   --debug | --debu | --deb | --de | --d | -d )
78671     debug=: ;;
78672   --file | --fil | --fi | --f )
78673     $ac_shift
78674     case $ac_optarg in
78675     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
78676     '') as_fn_error $? "missing file argument" ;;
78677     esac
78678     as_fn_append CONFIG_FILES " '$ac_optarg'"
78679     ac_need_defaults=false;;
78680   --header | --heade | --head | --hea )
78681     $ac_shift
78682     case $ac_optarg in
78683     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
78684     esac
78685     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
78686     ac_need_defaults=false;;
78687   --he | --h)
78688     # Conflict between --help and --header
78689     as_fn_error $? "ambiguous option: \`$1'
78690 Try \`$0 --help' for more information.";;
78691   --help | --hel | -h )
78692     $as_echo "$ac_cs_usage"; exit ;;
78693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
78694   | -silent | --silent | --silen | --sile | --sil | --si | --s)
78695     ac_cs_silent=: ;;
78696
78697   # This is an error.
78698   -*) as_fn_error $? "unrecognized option: \`$1'
78699 Try \`$0 --help' for more information." ;;
78700
78701   *) as_fn_append ac_config_targets " $1"
78702      ac_need_defaults=false ;;
78703
78704   esac
78705   shift
78706 done
78707
78708 ac_configure_extra_args=
78709
78710 if $ac_cs_silent; then
78711   exec 6>/dev/null
78712   ac_configure_extra_args="$ac_configure_extra_args --silent"
78713 fi
78714
78715 _ACEOF
78716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78717 if \$ac_cs_recheck; then
78718   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
78719   shift
78720   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
78721   CONFIG_SHELL='$SHELL'
78722   export CONFIG_SHELL
78723   exec "\$@"
78724 fi
78725
78726 _ACEOF
78727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78728 exec 5>>config.log
78729 {
78730   echo
78731   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
78732 ## Running $as_me. ##
78733 _ASBOX
78734   $as_echo "$ac_log"
78735 } >&5
78736
78737 _ACEOF
78738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78739 #
78740 # INIT-COMMANDS
78741 #
78742 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
78743
78744
78745 # The HP-UX ksh and POSIX shell print the target directory to stdout
78746 # if CDPATH is set.
78747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
78748
78749 sed_quote_subst='$sed_quote_subst'
78750 double_quote_subst='$double_quote_subst'
78751 delay_variable_subst='$delay_variable_subst'
78752 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
78753 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
78754 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
78755 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
78756 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
78757 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
78758 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
78759 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
78760 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
78761 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
78762 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
78763 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
78764 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
78765 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
78766 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
78767 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
78768 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
78769 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
78770 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
78771 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
78772 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
78773 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
78774 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
78775 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
78776 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
78777 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
78778 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
78779 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
78780 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
78781 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
78782 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
78783 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
78784 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
78785 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
78786 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
78787 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
78788 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
78789 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
78790 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
78791 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
78792 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
78793 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
78794 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
78795 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
78796 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
78797 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
78798 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
78799 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
78800 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
78801 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
78802 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
78803 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
78804 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
78805 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
78806 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
78807 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
78808 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
78809 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
78810 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
78811 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"`'
78812 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
78813 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
78814 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
78815 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
78816 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
78817 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
78818 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
78819 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
78820 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
78821 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
78822 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
78823 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
78824 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
78825 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
78826 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
78827 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
78828 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
78829 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
78830 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
78831 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
78832 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
78833 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
78834 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
78835 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
78836 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
78837 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
78838 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
78839 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
78840 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
78841 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
78842 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
78843 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
78844 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
78845 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
78846 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
78847 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
78848 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
78849 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
78850 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
78851 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
78852 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
78853 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
78854 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
78855 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
78856 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
78857 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
78858 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
78859 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
78860 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
78861 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
78862 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
78863 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
78864 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
78865 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
78866 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
78867 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
78868 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
78869 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
78870 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
78871 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
78872 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
78873 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
78874 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
78875 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
78876 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
78877 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
78878 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
78879 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
78880 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
78881 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
78882 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
78883 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
78884 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
78885 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
78886 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
78887 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
78888 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
78889 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
78890 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
78891 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
78892 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
78893 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
78894 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
78895 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
78896 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
78897 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
78898 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
78899 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78900 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
78901 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78902 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
78903 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
78904 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
78905 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
78906 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
78907 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
78908 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
78909 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
78910 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
78911 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
78912 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
78913 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
78914 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
78915 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
78916 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
78917 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
78918 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
78919 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
78920 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
78921 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
78922 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
78923 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
78924 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
78925 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
78926 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
78927 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78928 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
78929 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78930 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
78931 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78932 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
78933 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78934 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
78935 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78936 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
78937 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78938 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
78939 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
78940 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
78941 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
78942 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
78943 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
78944 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
78945 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
78946 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
78947 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
78948 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
78949 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
78950 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
78951 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
78952 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
78953 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
78954 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
78955 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
78956 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
78957 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
78958 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
78959 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
78960 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
78961 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
78962 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
78963 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
78964 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
78965 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78966 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
78967 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
78968 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
78969 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
78970 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
78971 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78972 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
78973 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78974 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
78975 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
78976 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
78977 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
78978 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
78979 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
78980 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
78981 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
78982 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
78983 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
78984 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
78985 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
78986 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
78987 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
78988 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
78989 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
78990
78991 LTCC='$LTCC'
78992 LTCFLAGS='$LTCFLAGS'
78993 compiler='$compiler_DEFAULT'
78994
78995 # A function that is used when there is no print builtin or printf.
78996 func_fallback_echo ()
78997 {
78998   eval 'cat <<_LTECHO_EOF
78999 \$1
79000 _LTECHO_EOF'
79001 }
79002
79003 # Quote evaled strings.
79004 for var in AS \
79005 DLLTOOL \
79006 OBJDUMP \
79007 SHELL \
79008 ECHO \
79009 PATH_SEPARATOR \
79010 SED \
79011 GREP \
79012 EGREP \
79013 FGREP \
79014 LD \
79015 NM \
79016 LN_S \
79017 lt_SP2NL \
79018 lt_NL2SP \
79019 reload_flag \
79020 deplibs_check_method \
79021 file_magic_cmd \
79022 file_magic_glob \
79023 want_nocaseglob \
79024 sharedlib_from_linklib_cmd \
79025 AR \
79026 AR_FLAGS \
79027 archiver_list_spec \
79028 STRIP \
79029 RANLIB \
79030 CC \
79031 CFLAGS \
79032 compiler \
79033 lt_cv_sys_global_symbol_pipe \
79034 lt_cv_sys_global_symbol_to_cdecl \
79035 lt_cv_sys_global_symbol_to_import \
79036 lt_cv_sys_global_symbol_to_c_name_address \
79037 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
79038 lt_cv_nm_interface \
79039 nm_file_list_spec \
79040 lt_cv_truncate_bin \
79041 lt_prog_compiler_no_builtin_flag \
79042 lt_prog_compiler_pic \
79043 lt_prog_compiler_wl \
79044 lt_prog_compiler_static \
79045 lt_cv_prog_compiler_c_o \
79046 need_locks \
79047 MANIFEST_TOOL \
79048 DSYMUTIL \
79049 NMEDIT \
79050 LIPO \
79051 OTOOL \
79052 OTOOL64 \
79053 shrext_cmds \
79054 export_dynamic_flag_spec \
79055 whole_archive_flag_spec \
79056 compiler_needs_object \
79057 with_gnu_ld \
79058 allow_undefined_flag \
79059 no_undefined_flag \
79060 hardcode_libdir_flag_spec \
79061 hardcode_libdir_separator \
79062 exclude_expsyms \
79063 include_expsyms \
79064 file_list_spec \
79065 variables_saved_for_relink \
79066 libname_spec \
79067 library_names_spec \
79068 soname_spec \
79069 install_override_mode \
79070 finish_eval \
79071 old_striplib \
79072 striplib \
79073 compiler_lib_search_dirs \
79074 predep_objects \
79075 postdep_objects \
79076 predeps \
79077 postdeps \
79078 compiler_lib_search_path \
79079 LD_RC \
79080 LD_CXX \
79081 reload_flag_RC \
79082 reload_flag_CXX \
79083 compiler_RC \
79084 compiler_CXX \
79085 lt_prog_compiler_no_builtin_flag_RC \
79086 lt_prog_compiler_no_builtin_flag_CXX \
79087 lt_prog_compiler_pic_RC \
79088 lt_prog_compiler_pic_CXX \
79089 lt_prog_compiler_wl_RC \
79090 lt_prog_compiler_wl_CXX \
79091 lt_prog_compiler_static_RC \
79092 lt_prog_compiler_static_CXX \
79093 lt_cv_prog_compiler_c_o_RC \
79094 lt_cv_prog_compiler_c_o_CXX \
79095 export_dynamic_flag_spec_RC \
79096 export_dynamic_flag_spec_CXX \
79097 whole_archive_flag_spec_RC \
79098 whole_archive_flag_spec_CXX \
79099 compiler_needs_object_RC \
79100 compiler_needs_object_CXX \
79101 with_gnu_ld_RC \
79102 with_gnu_ld_CXX \
79103 allow_undefined_flag_RC \
79104 allow_undefined_flag_CXX \
79105 no_undefined_flag_RC \
79106 no_undefined_flag_CXX \
79107 hardcode_libdir_flag_spec_RC \
79108 hardcode_libdir_flag_spec_CXX \
79109 hardcode_libdir_separator_RC \
79110 hardcode_libdir_separator_CXX \
79111 exclude_expsyms_RC \
79112 exclude_expsyms_CXX \
79113 include_expsyms_RC \
79114 include_expsyms_CXX \
79115 file_list_spec_RC \
79116 file_list_spec_CXX \
79117 compiler_lib_search_dirs_RC \
79118 compiler_lib_search_dirs_CXX \
79119 predep_objects_RC \
79120 predep_objects_CXX \
79121 postdep_objects_RC \
79122 postdep_objects_CXX \
79123 predeps_RC \
79124 predeps_CXX \
79125 postdeps_RC \
79126 postdeps_CXX \
79127 compiler_lib_search_path_RC \
79128 compiler_lib_search_path_CXX; do
79129     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
79130     *[\\\\\\\`\\"\\\$]*)
79131       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
79132       ;;
79133     *)
79134       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
79135       ;;
79136     esac
79137 done
79138
79139 # Double-quote double-evaled strings.
79140 for var in reload_cmds \
79141 old_postinstall_cmds \
79142 old_postuninstall_cmds \
79143 old_archive_cmds \
79144 extract_expsyms_cmds \
79145 old_archive_from_new_cmds \
79146 old_archive_from_expsyms_cmds \
79147 archive_cmds \
79148 archive_expsym_cmds \
79149 module_cmds \
79150 module_expsym_cmds \
79151 export_symbols_cmds \
79152 prelink_cmds \
79153 postlink_cmds \
79154 postinstall_cmds \
79155 postuninstall_cmds \
79156 finish_cmds \
79157 sys_lib_search_path_spec \
79158 configure_time_dlsearch_path \
79159 configure_time_lt_sys_library_path \
79160 reload_cmds_RC \
79161 reload_cmds_CXX \
79162 old_archive_cmds_RC \
79163 old_archive_cmds_CXX \
79164 old_archive_from_new_cmds_RC \
79165 old_archive_from_new_cmds_CXX \
79166 old_archive_from_expsyms_cmds_RC \
79167 old_archive_from_expsyms_cmds_CXX \
79168 archive_cmds_RC \
79169 archive_cmds_CXX \
79170 archive_expsym_cmds_RC \
79171 archive_expsym_cmds_CXX \
79172 module_cmds_RC \
79173 module_cmds_CXX \
79174 module_expsym_cmds_RC \
79175 module_expsym_cmds_CXX \
79176 export_symbols_cmds_RC \
79177 export_symbols_cmds_CXX \
79178 prelink_cmds_RC \
79179 prelink_cmds_CXX \
79180 postlink_cmds_RC \
79181 postlink_cmds_CXX; do
79182     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
79183     *[\\\\\\\`\\"\\\$]*)
79184       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
79185       ;;
79186     *)
79187       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
79188       ;;
79189     esac
79190 done
79191
79192 ac_aux_dir='$ac_aux_dir'
79193
79194 # See if we are running on zsh, and set the options that allow our
79195 # commands through without removal of \ escapes INIT.
79196 if test -n "\${ZSH_VERSION+set}"; then
79197    setopt NO_GLOB_SUBST
79198 fi
79199
79200
79201     PACKAGE='$PACKAGE'
79202     VERSION='$VERSION'
79203     RM='$RM'
79204     ofile='$ofile'
79205
79206
79207
79208
79209
79210
79211
79212 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
79213     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
79214     # from automake < 1.5.
79215     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
79216     # Capture the value of LINGUAS because we need it to compute CATALOGS.
79217     LINGUAS="${LINGUAS-%UNSET%}"
79218
79219
79220 _ACEOF
79221
79222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79223
79224 # Handling of arguments.
79225 for ac_config_target in $ac_config_targets
79226 do
79227   case $ac_config_target in
79228     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
79229     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
79230     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
79231     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
79232     "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
79233     "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:../build-aux/csharpexec.sh.in" ;;
79234     "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
79235     "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:../build-aux/javaexec.sh.in" ;;
79236     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
79237     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
79238     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;;
79239     "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
79240     "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
79241     "libgrep/Makefile") CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;;
79242     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
79243     "src/user-email") CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;;
79244     "libgettextpo/Makefile") CONFIG_FILES="$CONFIG_FILES libgettextpo/Makefile" ;;
79245     "libgettextpo/exported.sh") CONFIG_FILES="$CONFIG_FILES libgettextpo/exported.sh" ;;
79246     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
79247     "projects/Makefile") CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;;
79248     "styles/Makefile") CONFIG_FILES="$CONFIG_FILES styles/Makefile" ;;
79249     "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
79250     "misc/gettextize") CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;;
79251     "misc/autopoint") CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;;
79252     "misc/convert-archive") CONFIG_FILES="$CONFIG_FILES misc/convert-archive" ;;
79253     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
79254     "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
79255     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
79256     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
79257     "tests/init-env") CONFIG_FILES="$CONFIG_FILES tests/init-env" ;;
79258     "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;;
79259
79260   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
79261   esac
79262 done
79263
79264
79265 # If the user did not use the arguments to specify the items to instantiate,
79266 # then the envvar interface is used.  Set only those that are not.
79267 # We use the long form for the default assignment because of an extremely
79268 # bizarre bug on SunOS 4.1.3.
79269 if $ac_need_defaults; then
79270   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
79271   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
79272   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
79273 fi
79274
79275 # Have a temporary directory for convenience.  Make it in the build tree
79276 # simply because there is no reason against having it here, and in addition,
79277 # creating and moving files from /tmp can sometimes cause problems.
79278 # Hook for its removal unless debugging.
79279 # Note that there is a small window in which the directory will not be cleaned:
79280 # after its creation but before its name has been assigned to `$tmp'.
79281 $debug ||
79282 {
79283   tmp= ac_tmp=
79284   trap 'exit_status=$?
79285   : "${ac_tmp:=$tmp}"
79286   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
79287 ' 0
79288   trap 'as_fn_exit 1' 1 2 13 15
79289 }
79290 # Create a (secure) tmp directory for tmp files.
79291
79292 {
79293   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
79294   test -d "$tmp"
79295 }  ||
79296 {
79297   tmp=./conf$$-$RANDOM
79298   (umask 077 && mkdir "$tmp")
79299 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
79300 ac_tmp=$tmp
79301
79302 # Set up the scripts for CONFIG_FILES section.
79303 # No need to generate them if there are no CONFIG_FILES.
79304 # This happens for instance with `./config.status config.h'.
79305 if test -n "$CONFIG_FILES"; then
79306
79307 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
79308   ac_cs_awk_getline=:
79309   ac_cs_awk_pipe_init=
79310   ac_cs_awk_read_file='
79311       while ((getline aline < (F[key])) > 0)
79312         print(aline)
79313       close(F[key])'
79314   ac_cs_awk_pipe_fini=
79315 else
79316   ac_cs_awk_getline=false
79317   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
79318   ac_cs_awk_read_file='
79319       print "|#_!!_#|"
79320       print "cat " F[key] " &&"
79321       '$ac_cs_awk_pipe_init
79322   # The final `:' finishes the AND list.
79323   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
79324 fi
79325 ac_cr=`echo X | tr X '\015'`
79326 # On cygwin, bash can eat \r inside `` if the user requested igncr.
79327 # But we know of no other shell where ac_cr would be empty at this
79328 # point, so we can use a bashism as a fallback.
79329 if test "x$ac_cr" = x; then
79330   eval ac_cr=\$\'\\r\'
79331 fi
79332 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
79333 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
79334   ac_cs_awk_cr='\\r'
79335 else
79336   ac_cs_awk_cr=$ac_cr
79337 fi
79338
79339 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
79340 _ACEOF
79341
79342 # Create commands to substitute file output variables.
79343 {
79344   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
79345   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
79346   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
79347   echo "_ACAWK" &&
79348   echo "_ACEOF"
79349 } >conf$$files.sh &&
79350 . ./conf$$files.sh ||
79351   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
79352 rm -f conf$$files.sh
79353
79354 {
79355   echo "cat >conf$$subs.awk <<_ACEOF" &&
79356   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
79357   echo "_ACEOF"
79358 } >conf$$subs.sh ||
79359   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
79360 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
79361 ac_delim='%!_!# '
79362 for ac_last_try in false false false false false :; do
79363   . ./conf$$subs.sh ||
79364     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
79365
79366   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
79367   if test $ac_delim_n = $ac_delim_num; then
79368     break
79369   elif $ac_last_try; then
79370     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
79371   else
79372     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
79373   fi
79374 done
79375 rm -f conf$$subs.sh
79376
79377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79378 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
79379 _ACEOF
79380 sed -n '
79381 h
79382 s/^/S["/; s/!.*/"]=/
79383 p
79384 g
79385 s/^[^!]*!//
79386 :repl
79387 t repl
79388 s/'"$ac_delim"'$//
79389 t delim
79390 :nl
79391 h
79392 s/\(.\{148\}\)..*/\1/
79393 t more1
79394 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
79395 p
79396 n
79397 b repl
79398 :more1
79399 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
79400 p
79401 g
79402 s/.\{148\}//
79403 t nl
79404 :delim
79405 h
79406 s/\(.\{148\}\)..*/\1/
79407 t more2
79408 s/["\\]/\\&/g; s/^/"/; s/$/"/
79409 p
79410 b
79411 :more2
79412 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
79413 p
79414 g
79415 s/.\{148\}//
79416 t delim
79417 ' <conf$$subs.awk | sed '
79418 /^[^""]/{
79419   N
79420   s/\n//
79421 }
79422 ' >>$CONFIG_STATUS || ac_write_fail=1
79423 rm -f conf$$subs.awk
79424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79425 _ACAWK
79426 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
79427   for (key in S) S_is_set[key] = 1
79428   FS = "\a"
79429   \$ac_cs_awk_pipe_init
79430 }
79431 {
79432   line = $ 0
79433   nfields = split(line, field, "@")
79434   substed = 0
79435   len = length(field[1])
79436   for (i = 2; i < nfields; i++) {
79437     key = field[i]
79438     keylen = length(key)
79439     if (S_is_set[key]) {
79440       value = S[key]
79441       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
79442       len += length(value) + length(field[++i])
79443       substed = 1
79444     } else
79445       len += 1 + keylen
79446   }
79447   if (nfields == 3 && !substed) {
79448     key = field[2]
79449     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
79450       \$ac_cs_awk_read_file
79451       next
79452     }
79453   }
79454   print line
79455 }
79456 \$ac_cs_awk_pipe_fini
79457 _ACAWK
79458 _ACEOF
79459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79460 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
79461   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
79462 else
79463   cat
79464 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
79465   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
79466 _ACEOF
79467
79468 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
79469 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
79470 # trailing colons and then remove the whole line if VPATH becomes empty
79471 # (actually we leave an empty line to preserve line numbers).
79472 if test "x$srcdir" = x.; then
79473   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
79474 h
79475 s///
79476 s/^/:/
79477 s/[      ]*$/:/
79478 s/:\$(srcdir):/:/g
79479 s/:\${srcdir}:/:/g
79480 s/:@srcdir@:/:/g
79481 s/^:*//
79482 s/:*$//
79483 x
79484 s/\(=[   ]*\).*/\1/
79485 G
79486 s/\n//
79487 s/^[^=]*=[       ]*$//
79488 }'
79489 fi
79490
79491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79492 fi # test -n "$CONFIG_FILES"
79493
79494 # Set up the scripts for CONFIG_HEADERS section.
79495 # No need to generate them if there are no CONFIG_HEADERS.
79496 # This happens for instance with `./config.status Makefile'.
79497 if test -n "$CONFIG_HEADERS"; then
79498 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
79499 BEGIN {
79500 _ACEOF
79501
79502 # Transform confdefs.h into an awk script `defines.awk', embedded as
79503 # here-document in config.status, that substitutes the proper values into
79504 # config.h.in to produce config.h.
79505
79506 # Create a delimiter string that does not exist in confdefs.h, to ease
79507 # handling of long lines.
79508 ac_delim='%!_!# '
79509 for ac_last_try in false false :; do
79510   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
79511   if test -z "$ac_tt"; then
79512     break
79513   elif $ac_last_try; then
79514     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
79515   else
79516     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
79517   fi
79518 done
79519
79520 # For the awk script, D is an array of macro values keyed by name,
79521 # likewise P contains macro parameters if any.  Preserve backslash
79522 # newline sequences.
79523
79524 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
79525 sed -n '
79526 s/.\{148\}/&'"$ac_delim"'/g
79527 t rset
79528 :rset
79529 s/^[     ]*#[    ]*define[       ][      ]*/ /
79530 t def
79531 d
79532 :def
79533 s/\\$//
79534 t bsnl
79535 s/["\\]/\\&/g
79536 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
79537 D["\1"]=" \3"/p
79538 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
79539 d
79540 :bsnl
79541 s/["\\]/\\&/g
79542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
79543 D["\1"]=" \3\\\\\\n"\\/p
79544 t cont
79545 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
79546 t cont
79547 d
79548 :cont
79549 n
79550 s/.\{148\}/&'"$ac_delim"'/g
79551 t clear
79552 :clear
79553 s/\\$//
79554 t bsnlc
79555 s/["\\]/\\&/g; s/^/"/; s/$/"/p
79556 d
79557 :bsnlc
79558 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
79559 b cont
79560 ' <confdefs.h | sed '
79561 s/'"$ac_delim"'/"\\\
79562 "/g' >>$CONFIG_STATUS || ac_write_fail=1
79563
79564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79565   for (key in D) D_is_set[key] = 1
79566   FS = "\a"
79567 }
79568 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
79569   line = \$ 0
79570   split(line, arg, " ")
79571   if (arg[1] == "#") {
79572     defundef = arg[2]
79573     mac1 = arg[3]
79574   } else {
79575     defundef = substr(arg[1], 2)
79576     mac1 = arg[2]
79577   }
79578   split(mac1, mac2, "(") #)
79579   macro = mac2[1]
79580   prefix = substr(line, 1, index(line, defundef) - 1)
79581   if (D_is_set[macro]) {
79582     # Preserve the white space surrounding the "#".
79583     print prefix "define", macro P[macro] D[macro]
79584     next
79585   } else {
79586     # Replace #undef with comments.  This is necessary, for example,
79587     # in the case of _POSIX_SOURCE, which is predefined and required
79588     # on some systems where configure will not decide to define it.
79589     if (defundef == "undef") {
79590       print "/*", prefix defundef, macro, "*/"
79591       next
79592     }
79593   }
79594 }
79595 { print }
79596 _ACAWK
79597 _ACEOF
79598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79599   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
79600 fi # test -n "$CONFIG_HEADERS"
79601
79602
79603 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
79604 shift
79605 for ac_tag
79606 do
79607   case $ac_tag in
79608   :[FHLC]) ac_mode=$ac_tag; continue;;
79609   esac
79610   case $ac_mode$ac_tag in
79611   :[FHL]*:*);;
79612   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
79613   :[FH]-) ac_tag=-:-;;
79614   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
79615   esac
79616   ac_save_IFS=$IFS
79617   IFS=:
79618   set x $ac_tag
79619   IFS=$ac_save_IFS
79620   shift
79621   ac_file=$1
79622   shift
79623
79624   case $ac_mode in
79625   :L) ac_source=$1;;
79626   :[FH])
79627     ac_file_inputs=
79628     for ac_f
79629     do
79630       case $ac_f in
79631       -) ac_f="$ac_tmp/stdin";;
79632       *) # Look for the file first in the build tree, then in the source tree
79633          # (if the path is not absolute).  The absolute path cannot be DOS-style,
79634          # because $ac_f cannot contain `:'.
79635          test -f "$ac_f" ||
79636            case $ac_f in
79637            [\\/$]*) false;;
79638            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
79639            esac ||
79640            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
79641       esac
79642       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
79643       as_fn_append ac_file_inputs " '$ac_f'"
79644     done
79645
79646     # Let's still pretend it is `configure' which instantiates (i.e., don't
79647     # use $as_me), people would be surprised to read:
79648     #    /* config.h.  Generated by config.status.  */
79649     configure_input='Generated from '`
79650           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
79651         `' by configure.'
79652     if test x"$ac_file" != x-; then
79653       configure_input="$ac_file.  $configure_input"
79654       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
79655 $as_echo "$as_me: creating $ac_file" >&6;}
79656     fi
79657     # Neutralize special characters interpreted by sed in replacement strings.
79658     case $configure_input in #(
79659     *\&* | *\|* | *\\* )
79660        ac_sed_conf_input=`$as_echo "$configure_input" |
79661        sed 's/[\\\\&|]/\\\\&/g'`;; #(
79662     *) ac_sed_conf_input=$configure_input;;
79663     esac
79664
79665     case $ac_tag in
79666     *:-:* | *:-) cat >"$ac_tmp/stdin" \
79667       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
79668     esac
79669     ;;
79670   esac
79671
79672   ac_dir=`$as_dirname -- "$ac_file" ||
79673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
79674          X"$ac_file" : 'X\(//\)[^/]' \| \
79675          X"$ac_file" : 'X\(//\)$' \| \
79676          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
79677 $as_echo X"$ac_file" |
79678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79679             s//\1/
79680             q
79681           }
79682           /^X\(\/\/\)[^/].*/{
79683             s//\1/
79684             q
79685           }
79686           /^X\(\/\/\)$/{
79687             s//\1/
79688             q
79689           }
79690           /^X\(\/\).*/{
79691             s//\1/
79692             q
79693           }
79694           s/.*/./; q'`
79695   as_dir="$ac_dir"; as_fn_mkdir_p
79696   ac_builddir=.
79697
79698 case "$ac_dir" in
79699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
79700 *)
79701   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
79702   # A ".." for each directory in $ac_dir_suffix.
79703   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
79704   case $ac_top_builddir_sub in
79705   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
79706   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
79707   esac ;;
79708 esac
79709 ac_abs_top_builddir=$ac_pwd
79710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
79711 # for backward compatibility:
79712 ac_top_builddir=$ac_top_build_prefix
79713
79714 case $srcdir in
79715   .)  # We are building in place.
79716     ac_srcdir=.
79717     ac_top_srcdir=$ac_top_builddir_sub
79718     ac_abs_top_srcdir=$ac_pwd ;;
79719   [\\/]* | ?:[\\/]* )  # Absolute name.
79720     ac_srcdir=$srcdir$ac_dir_suffix;
79721     ac_top_srcdir=$srcdir
79722     ac_abs_top_srcdir=$srcdir ;;
79723   *) # Relative name.
79724     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
79725     ac_top_srcdir=$ac_top_build_prefix$srcdir
79726     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
79727 esac
79728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
79729
79730
79731   case $ac_mode in
79732   :F)
79733   #
79734   # CONFIG_FILE
79735   #
79736
79737   case $INSTALL in
79738   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
79739   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
79740   esac
79741   ac_MKDIR_P=$MKDIR_P
79742   case $MKDIR_P in
79743   [\\/$]* | ?:[\\/]* ) ;;
79744   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
79745   esac
79746 _ACEOF
79747
79748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79749 # If the template does not know about datarootdir, expand it.
79750 # FIXME: This hack should be removed a few years after 2.60.
79751 ac_datarootdir_hack=; ac_datarootdir_seen=
79752 ac_sed_dataroot='
79753 /datarootdir/ {
79754   p
79755   q
79756 }
79757 /@datadir@/p
79758 /@docdir@/p
79759 /@infodir@/p
79760 /@localedir@/p
79761 /@mandir@/p'
79762 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
79763 *datarootdir*) ac_datarootdir_seen=yes;;
79764 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
79765   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
79766 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
79767 _ACEOF
79768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79769   ac_datarootdir_hack='
79770   s&@datadir@&$datadir&g
79771   s&@docdir@&$docdir&g
79772   s&@infodir@&$infodir&g
79773   s&@localedir@&$localedir&g
79774   s&@mandir@&$mandir&g
79775   s&\\\${datarootdir}&$datarootdir&g' ;;
79776 esac
79777 _ACEOF
79778
79779 # Neutralize VPATH when `$srcdir' = `.'.
79780 # Shell code in configure.ac might set extrasub.
79781 # FIXME: do we really want to maintain this feature?
79782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79783 ac_sed_extra="$ac_vpsub
79784 $extrasub
79785 _ACEOF
79786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79787 :t
79788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
79789 s|@configure_input@|$ac_sed_conf_input|;t t
79790 s&@top_builddir@&$ac_top_builddir_sub&;t t
79791 s&@top_build_prefix@&$ac_top_build_prefix&;t t
79792 s&@srcdir@&$ac_srcdir&;t t
79793 s&@abs_srcdir@&$ac_abs_srcdir&;t t
79794 s&@top_srcdir@&$ac_top_srcdir&;t t
79795 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
79796 s&@builddir@&$ac_builddir&;t t
79797 s&@abs_builddir@&$ac_abs_builddir&;t t
79798 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
79799 s&@INSTALL@&$ac_INSTALL&;t t
79800 s&@MKDIR_P@&$ac_MKDIR_P&;t t
79801 $ac_datarootdir_hack
79802 "
79803 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
79804 if $ac_cs_awk_getline; then
79805   $AWK -f "$ac_tmp/subs.awk"
79806 else
79807   $AWK -f "$ac_tmp/subs.awk" | $SHELL
79808 fi \
79809   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
79810
79811 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
79812   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
79813   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
79814       "$ac_tmp/out"`; test -z "$ac_out"; } &&
79815   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
79816 which seems to be undefined.  Please make sure it is defined" >&5
79817 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
79818 which seems to be undefined.  Please make sure it is defined" >&2;}
79819
79820   rm -f "$ac_tmp/stdin"
79821   case $ac_file in
79822   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
79823   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
79824   esac \
79825   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
79826  ;;
79827   :H)
79828   #
79829   # CONFIG_HEADER
79830   #
79831   if test x"$ac_file" != x-; then
79832     {
79833       $as_echo "/* $configure_input  */" \
79834       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
79835     } >"$ac_tmp/config.h" \
79836       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
79837     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
79838       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
79839 $as_echo "$as_me: $ac_file is unchanged" >&6;}
79840     else
79841       rm -f "$ac_file"
79842       mv "$ac_tmp/config.h" "$ac_file" \
79843         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
79844     fi
79845   else
79846     $as_echo "/* $configure_input  */" \
79847       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
79848       || as_fn_error $? "could not create -" "$LINENO" 5
79849   fi
79850 # Compute "$ac_file"'s index in $config_headers.
79851 _am_arg="$ac_file"
79852 _am_stamp_count=1
79853 for _am_header in $config_headers :; do
79854   case $_am_header in
79855     $_am_arg | $_am_arg:* )
79856       break ;;
79857     * )
79858       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
79859   esac
79860 done
79861 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
79862 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
79863          X"$_am_arg" : 'X\(//\)[^/]' \| \
79864          X"$_am_arg" : 'X\(//\)$' \| \
79865          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
79866 $as_echo X"$_am_arg" |
79867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79868             s//\1/
79869             q
79870           }
79871           /^X\(\/\/\)[^/].*/{
79872             s//\1/
79873             q
79874           }
79875           /^X\(\/\/\)$/{
79876             s//\1/
79877             q
79878           }
79879           /^X\(\/\).*/{
79880             s//\1/
79881             q
79882           }
79883           s/.*/./; q'`/stamp-h$_am_stamp_count
79884  ;;
79885
79886   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
79887 $as_echo "$as_me: executing $ac_file commands" >&6;}
79888  ;;
79889   esac
79890
79891
79892   case $ac_file$ac_mode in
79893     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
79894   # Older Autoconf quotes --file arguments for eval, but not when files
79895   # are listed without --file.  Let's play safe and only enable the eval
79896   # if we detect the quoting.
79897   case $CONFIG_FILES in
79898   *\'*) eval set x "$CONFIG_FILES" ;;
79899   *)   set x $CONFIG_FILES ;;
79900   esac
79901   shift
79902   for mf
79903   do
79904     # Strip MF so we end up with the name of the file.
79905     mf=`echo "$mf" | sed -e 's/:.*$//'`
79906     # Check whether this is an Automake generated Makefile or not.
79907     # We used to match only the files named 'Makefile.in', but
79908     # some people rename them; so instead we look at the file content.
79909     # Grep'ing the first line is not enough: some people post-process
79910     # each Makefile.in and add a new line on top of each file to say so.
79911     # Grep'ing the whole file is not good either: AIX grep has a line
79912     # limit of 2048, but all sed's we know have understand at least 4000.
79913     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
79914       dirpart=`$as_dirname -- "$mf" ||
79915 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
79916          X"$mf" : 'X\(//\)[^/]' \| \
79917          X"$mf" : 'X\(//\)$' \| \
79918          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
79919 $as_echo X"$mf" |
79920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79921             s//\1/
79922             q
79923           }
79924           /^X\(\/\/\)[^/].*/{
79925             s//\1/
79926             q
79927           }
79928           /^X\(\/\/\)$/{
79929             s//\1/
79930             q
79931           }
79932           /^X\(\/\).*/{
79933             s//\1/
79934             q
79935           }
79936           s/.*/./; q'`
79937     else
79938       continue
79939     fi
79940     # Extract the definition of DEPDIR, am__include, and am__quote
79941     # from the Makefile without running 'make'.
79942     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
79943     test -z "$DEPDIR" && continue
79944     am__include=`sed -n 's/^am__include = //p' < "$mf"`
79945     test -z "$am__include" && continue
79946     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
79947     # Find all dependency output files, they are included files with
79948     # $(DEPDIR) in their names.  We invoke sed twice because it is the
79949     # simplest approach to changing $(DEPDIR) to its actual value in the
79950     # expansion.
79951     for file in `sed -n "
79952       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
79953          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
79954       # Make sure the directory exists.
79955       test -f "$dirpart/$file" && continue
79956       fdir=`$as_dirname -- "$file" ||
79957 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
79958          X"$file" : 'X\(//\)[^/]' \| \
79959          X"$file" : 'X\(//\)$' \| \
79960          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
79961 $as_echo X"$file" |
79962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79963             s//\1/
79964             q
79965           }
79966           /^X\(\/\/\)[^/].*/{
79967             s//\1/
79968             q
79969           }
79970           /^X\(\/\/\)$/{
79971             s//\1/
79972             q
79973           }
79974           /^X\(\/\).*/{
79975             s//\1/
79976             q
79977           }
79978           s/.*/./; q'`
79979       as_dir=$dirpart/$fdir; as_fn_mkdir_p
79980       # echo "creating $dirpart/$file"
79981       echo '# dummy' > "$dirpart/$file"
79982     done
79983   done
79984 }
79985  ;;
79986     "libtool":C)
79987
79988     # See if we are running on zsh, and set the options that allow our
79989     # commands through without removal of \ escapes.
79990     if test -n "${ZSH_VERSION+set}"; then
79991       setopt NO_GLOB_SUBST
79992     fi
79993
79994     cfgfile=${ofile}T
79995     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
79996     $RM "$cfgfile"
79997
79998     cat <<_LT_EOF >> "$cfgfile"
79999 #! $SHELL
80000 # Generated automatically by $as_me ($PACKAGE) $VERSION
80001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
80002 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
80003
80004 # Provide generalized library-building support services.
80005 # Written by Gordon Matzigkeit, 1996
80006
80007 # Copyright (C) 2014 Free Software Foundation, Inc.
80008 # This is free software; see the source for copying conditions.  There is NO
80009 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
80010
80011 # GNU Libtool is free software; you can redistribute it and/or modify
80012 # it under the terms of the GNU General Public License as published by
80013 # the Free Software Foundation; either version 2 of of the License, or
80014 # (at your option) any later version.
80015 #
80016 # As a special exception to the GNU General Public License, if you
80017 # distribute this file as part of a program or library that is built
80018 # using GNU Libtool, you may include this file under the  same
80019 # distribution terms that you use for the rest of that program.
80020 #
80021 # GNU Libtool is distributed in the hope that it will be useful, but
80022 # WITHOUT ANY WARRANTY; without even the implied warranty of
80023 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
80024 # GNU General Public License for more details.
80025 #
80026 # You should have received a copy of the GNU General Public License
80027 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
80028
80029
80030 # The names of the tagged configurations supported by this script.
80031 available_tags='RC CXX '
80032
80033 # Configured defaults for sys_lib_dlsearch_path munging.
80034 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
80035
80036 # ### BEGIN LIBTOOL CONFIG
80037
80038 # Which release of libtool.m4 was used?
80039 macro_version=$macro_version
80040 macro_revision=$macro_revision
80041
80042 # Assembler program.
80043 AS=$lt_AS
80044
80045 # DLL creation program.
80046 DLLTOOL=$lt_DLLTOOL
80047
80048 # Object dumper program.
80049 OBJDUMP=$lt_OBJDUMP
80050
80051 # Whether or not to build shared libraries.
80052 build_libtool_libs=$enable_shared
80053
80054 # Whether or not to build static libraries.
80055 build_old_libs=$enable_static
80056
80057 # What type of objects to build.
80058 pic_mode=$pic_mode
80059
80060 # Whether or not to optimize for fast installation.
80061 fast_install=$enable_fast_install
80062
80063 # Shared archive member basename,for filename based shared library versioning on AIX.
80064 shared_archive_member_spec=$shared_archive_member_spec
80065
80066 # Shell to use when invoking shell scripts.
80067 SHELL=$lt_SHELL
80068
80069 # An echo program that protects backslashes.
80070 ECHO=$lt_ECHO
80071
80072 # The PATH separator for the build system.
80073 PATH_SEPARATOR=$lt_PATH_SEPARATOR
80074
80075 # The host system.
80076 host_alias=$host_alias
80077 host=$host
80078 host_os=$host_os
80079
80080 # The build system.
80081 build_alias=$build_alias
80082 build=$build
80083 build_os=$build_os
80084
80085 # A sed program that does not truncate output.
80086 SED=$lt_SED
80087
80088 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
80089 Xsed="\$SED -e 1s/^X//"
80090
80091 # A grep program that handles long lines.
80092 GREP=$lt_GREP
80093
80094 # An ERE matcher.
80095 EGREP=$lt_EGREP
80096
80097 # A literal string matcher.
80098 FGREP=$lt_FGREP
80099
80100 # A BSD- or MS-compatible name lister.
80101 NM=$lt_NM
80102
80103 # Whether we need soft or hard links.
80104 LN_S=$lt_LN_S
80105
80106 # What is the maximum length of a command?
80107 max_cmd_len=$max_cmd_len
80108
80109 # Object file suffix (normally "o").
80110 objext=$ac_objext
80111
80112 # Executable file suffix (normally "").
80113 exeext=$exeext
80114
80115 # whether the shell understands "unset".
80116 lt_unset=$lt_unset
80117
80118 # turn spaces into newlines.
80119 SP2NL=$lt_lt_SP2NL
80120
80121 # turn newlines into spaces.
80122 NL2SP=$lt_lt_NL2SP
80123
80124 # convert \$build file names to \$host format.
80125 to_host_file_cmd=$lt_cv_to_host_file_cmd
80126
80127 # convert \$build files to toolchain format.
80128 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
80129
80130 # Method to check whether dependent libraries are shared objects.
80131 deplibs_check_method=$lt_deplibs_check_method
80132
80133 # Command to use when deplibs_check_method = "file_magic".
80134 file_magic_cmd=$lt_file_magic_cmd
80135
80136 # How to find potential files when deplibs_check_method = "file_magic".
80137 file_magic_glob=$lt_file_magic_glob
80138
80139 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
80140 want_nocaseglob=$lt_want_nocaseglob
80141
80142 # Command to associate shared and link libraries.
80143 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
80144
80145 # The archiver.
80146 AR=$lt_AR
80147
80148 # Flags to create an archive.
80149 AR_FLAGS=$lt_AR_FLAGS
80150
80151 # How to feed a file listing to the archiver.
80152 archiver_list_spec=$lt_archiver_list_spec
80153
80154 # A symbol stripping program.
80155 STRIP=$lt_STRIP
80156
80157 # Commands used to install an old-style archive.
80158 RANLIB=$lt_RANLIB
80159 old_postinstall_cmds=$lt_old_postinstall_cmds
80160 old_postuninstall_cmds=$lt_old_postuninstall_cmds
80161
80162 # Whether to use a lock for old archive extraction.
80163 lock_old_archive_extraction=$lock_old_archive_extraction
80164
80165 # A C compiler.
80166 LTCC=$lt_CC
80167
80168 # LTCC compiler flags.
80169 LTCFLAGS=$lt_CFLAGS
80170
80171 # Take the output of nm and produce a listing of raw symbols and C names.
80172 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
80173
80174 # Transform the output of nm in a proper C declaration.
80175 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
80176
80177 # Transform the output of nm into a list of symbols to manually relocate.
80178 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
80179
80180 # Transform the output of nm in a C name address pair.
80181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
80182
80183 # Transform the output of nm in a C name address pair when lib prefix is needed.
80184 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
80185
80186 # The name lister interface.
80187 nm_interface=$lt_lt_cv_nm_interface
80188
80189 # Specify filename containing input files for \$NM.
80190 nm_file_list_spec=$lt_nm_file_list_spec
80191
80192 # The root where to search for dependent libraries,and where our libraries should be installed.
80193 lt_sysroot=$lt_sysroot
80194
80195 # Command to truncate a binary pipe.
80196 lt_truncate_bin=$lt_lt_cv_truncate_bin
80197
80198 # The name of the directory that contains temporary libtool files.
80199 objdir=$objdir
80200
80201 # Used to examine libraries when file_magic_cmd begins with "file".
80202 MAGIC_CMD=$MAGIC_CMD
80203
80204 # Must we lock files when doing compilation?
80205 need_locks=$lt_need_locks
80206
80207 # Manifest tool.
80208 MANIFEST_TOOL=$lt_MANIFEST_TOOL
80209
80210 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
80211 DSYMUTIL=$lt_DSYMUTIL
80212
80213 # Tool to change global to local symbols on Mac OS X.
80214 NMEDIT=$lt_NMEDIT
80215
80216 # Tool to manipulate fat objects and archives on Mac OS X.
80217 LIPO=$lt_LIPO
80218
80219 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
80220 OTOOL=$lt_OTOOL
80221
80222 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
80223 OTOOL64=$lt_OTOOL64
80224
80225 # Old archive suffix (normally "a").
80226 libext=$libext
80227
80228 # Shared library suffix (normally ".so").
80229 shrext_cmds=$lt_shrext_cmds
80230
80231 # The commands to extract the exported symbol list from a shared archive.
80232 extract_expsyms_cmds=$lt_extract_expsyms_cmds
80233
80234 # Variables whose values should be saved in libtool wrapper scripts and
80235 # restored at link time.
80236 variables_saved_for_relink=$lt_variables_saved_for_relink
80237
80238 # Do we need the "lib" prefix for modules?
80239 need_lib_prefix=$need_lib_prefix
80240
80241 # Do we need a version for libraries?
80242 need_version=$need_version
80243
80244 # Library versioning type.
80245 version_type=$version_type
80246
80247 # Shared library runtime path variable.
80248 runpath_var=$runpath_var
80249
80250 # Shared library path variable.
80251 shlibpath_var=$shlibpath_var
80252
80253 # Is shlibpath searched before the hard-coded library search path?
80254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
80255
80256 # Format of library name prefix.
80257 libname_spec=$lt_libname_spec
80258
80259 # List of archive names.  First name is the real one, the rest are links.
80260 # The last name is the one that the linker finds with -lNAME
80261 library_names_spec=$lt_library_names_spec
80262
80263 # The coded name of the library, if different from the real name.
80264 soname_spec=$lt_soname_spec
80265
80266 # Permission mode override for installation of shared libraries.
80267 install_override_mode=$lt_install_override_mode
80268
80269 # Command to use after installation of a shared archive.
80270 postinstall_cmds=$lt_postinstall_cmds
80271
80272 # Command to use after uninstallation of a shared archive.
80273 postuninstall_cmds=$lt_postuninstall_cmds
80274
80275 # Commands used to finish a libtool library installation in a directory.
80276 finish_cmds=$lt_finish_cmds
80277
80278 # As "finish_cmds", except a single script fragment to be evaled but
80279 # not shown.
80280 finish_eval=$lt_finish_eval
80281
80282 # Whether we should hardcode library paths into libraries.
80283 hardcode_into_libs=$hardcode_into_libs
80284
80285 # Compile-time system search path for libraries.
80286 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
80287
80288 # Detected run-time system search path for libraries.
80289 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
80290
80291 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
80292 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
80293
80294 # Whether dlopen is supported.
80295 dlopen_support=$enable_dlopen
80296
80297 # Whether dlopen of programs is supported.
80298 dlopen_self=$enable_dlopen_self
80299
80300 # Whether dlopen of statically linked programs is supported.
80301 dlopen_self_static=$enable_dlopen_self_static
80302
80303 # Commands to strip libraries.
80304 old_striplib=$lt_old_striplib
80305 striplib=$lt_striplib
80306
80307
80308 # The linker used to build libraries.
80309 LD=$lt_LD
80310
80311 # How to create reloadable object files.
80312 reload_flag=$lt_reload_flag
80313 reload_cmds=$lt_reload_cmds
80314
80315 # Commands used to build an old-style archive.
80316 old_archive_cmds=$lt_old_archive_cmds
80317
80318 # A language specific compiler.
80319 CC=$lt_compiler
80320
80321 # Is the compiler the GNU compiler?
80322 with_gcc=$GCC
80323
80324 # Compiler flag to turn off builtin functions.
80325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
80326
80327 # Additional compiler flags for building library objects.
80328 pic_flag=$lt_lt_prog_compiler_pic
80329
80330 # How to pass a linker flag through the compiler.
80331 wl=$lt_lt_prog_compiler_wl
80332
80333 # Compiler flag to prevent dynamic linking.
80334 link_static_flag=$lt_lt_prog_compiler_static
80335
80336 # Does compiler simultaneously support -c and -o options?
80337 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
80338
80339 # Whether or not to add -lc for building shared libraries.
80340 build_libtool_need_lc=$archive_cmds_need_lc
80341
80342 # Whether or not to disallow shared libs when runtime libs are static.
80343 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
80344
80345 # Compiler flag to allow reflexive dlopens.
80346 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
80347
80348 # Compiler flag to generate shared objects directly from archives.
80349 whole_archive_flag_spec=$lt_whole_archive_flag_spec
80350
80351 # Whether the compiler copes with passing no objects directly.
80352 compiler_needs_object=$lt_compiler_needs_object
80353
80354 # Create an old-style archive from a shared archive.
80355 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
80356
80357 # Create a temporary old-style archive to link instead of a shared archive.
80358 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
80359
80360 # Commands used to build a shared archive.
80361 archive_cmds=$lt_archive_cmds
80362 archive_expsym_cmds=$lt_archive_expsym_cmds
80363
80364 # Commands used to build a loadable module if different from building
80365 # a shared archive.
80366 module_cmds=$lt_module_cmds
80367 module_expsym_cmds=$lt_module_expsym_cmds
80368
80369 # Whether we are building with GNU ld or not.
80370 with_gnu_ld=$lt_with_gnu_ld
80371
80372 # Flag that allows shared libraries with undefined symbols to be built.
80373 allow_undefined_flag=$lt_allow_undefined_flag
80374
80375 # Flag that enforces no undefined symbols.
80376 no_undefined_flag=$lt_no_undefined_flag
80377
80378 # Flag to hardcode \$libdir into a binary during linking.
80379 # This must work even if \$libdir does not exist
80380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
80381
80382 # Whether we need a single "-rpath" flag with a separated argument.
80383 hardcode_libdir_separator=$lt_hardcode_libdir_separator
80384
80385 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80386 # DIR into the resulting binary.
80387 hardcode_direct=$hardcode_direct
80388
80389 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80390 # DIR into the resulting binary and the resulting library dependency is
80391 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
80392 # library is relocated.
80393 hardcode_direct_absolute=$hardcode_direct_absolute
80394
80395 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
80396 # into the resulting binary.
80397 hardcode_minus_L=$hardcode_minus_L
80398
80399 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
80400 # into the resulting binary.
80401 hardcode_shlibpath_var=$hardcode_shlibpath_var
80402
80403 # Set to "yes" if building a shared library automatically hardcodes DIR
80404 # into the library and all subsequent libraries and executables linked
80405 # against it.
80406 hardcode_automatic=$hardcode_automatic
80407
80408 # Set to yes if linker adds runtime paths of dependent libraries
80409 # to runtime path list.
80410 inherit_rpath=$inherit_rpath
80411
80412 # Whether libtool must link a program against all its dependency libraries.
80413 link_all_deplibs=$link_all_deplibs
80414
80415 # Set to "yes" if exported symbols are required.
80416 always_export_symbols=$always_export_symbols
80417
80418 # The commands to list exported symbols.
80419 export_symbols_cmds=$lt_export_symbols_cmds
80420
80421 # Symbols that should not be listed in the preloaded symbols.
80422 exclude_expsyms=$lt_exclude_expsyms
80423
80424 # Symbols that must always be exported.
80425 include_expsyms=$lt_include_expsyms
80426
80427 # Commands necessary for linking programs (against libraries) with templates.
80428 prelink_cmds=$lt_prelink_cmds
80429
80430 # Commands necessary for finishing linking programs.
80431 postlink_cmds=$lt_postlink_cmds
80432
80433 # Specify filename containing input files.
80434 file_list_spec=$lt_file_list_spec
80435
80436 # How to hardcode a shared library path into an executable.
80437 hardcode_action=$hardcode_action
80438
80439 # The directories searched by this compiler when creating a shared library.
80440 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
80441
80442 # Dependencies to place before and after the objects being linked to
80443 # create a shared library.
80444 predep_objects=$lt_predep_objects
80445 postdep_objects=$lt_postdep_objects
80446 predeps=$lt_predeps
80447 postdeps=$lt_postdeps
80448
80449 # The library search path used internally by the compiler when linking
80450 # a shared library.
80451 compiler_lib_search_path=$lt_compiler_lib_search_path
80452
80453 # ### END LIBTOOL CONFIG
80454
80455 _LT_EOF
80456
80457     cat <<'_LT_EOF' >> "$cfgfile"
80458
80459 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
80460
80461 # func_munge_path_list VARIABLE PATH
80462 # -----------------------------------
80463 # VARIABLE is name of variable containing _space_ separated list of
80464 # directories to be munged by the contents of PATH, which is string
80465 # having a format:
80466 # "DIR[:DIR]:"
80467 #       string "DIR[ DIR]" will be prepended to VARIABLE
80468 # ":DIR[:DIR]"
80469 #       string "DIR[ DIR]" will be appended to VARIABLE
80470 # "DIRP[:DIRP]::[DIRA:]DIRA"
80471 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
80472 #       "DIRA[ DIRA]" will be appended to VARIABLE
80473 # "DIR[:DIR]"
80474 #       VARIABLE will be replaced by "DIR[ DIR]"
80475 func_munge_path_list ()
80476 {
80477     case x$2 in
80478     x)
80479         ;;
80480     *:)
80481         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
80482         ;;
80483     x:*)
80484         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
80485         ;;
80486     *::*)
80487         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
80488         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
80489         ;;
80490     *)
80491         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
80492         ;;
80493     esac
80494 }
80495
80496
80497 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
80498 func_cc_basename ()
80499 {
80500     for cc_temp in $*""; do
80501       case $cc_temp in
80502         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
80503         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
80504         \-*) ;;
80505         *) break;;
80506       esac
80507     done
80508     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
80509 }
80510
80511
80512 # ### END FUNCTIONS SHARED WITH CONFIGURE
80513
80514 _LT_EOF
80515
80516   case $host_os in
80517   aix3*)
80518     cat <<\_LT_EOF >> "$cfgfile"
80519 # AIX sometimes has problems with the GCC collect2 program.  For some
80520 # reason, if we set the COLLECT_NAMES environment variable, the problems
80521 # vanish in a puff of smoke.
80522 if test set != "${COLLECT_NAMES+set}"; then
80523   COLLECT_NAMES=
80524   export COLLECT_NAMES
80525 fi
80526 _LT_EOF
80527     ;;
80528   esac
80529
80530
80531 ltmain=$ac_aux_dir/ltmain.sh
80532
80533
80534   # We use sed instead of cat because bash on DJGPP gets confused if
80535   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
80536   # text mode, it properly converts lines to CR/LF.  This bash problem
80537   # is reportedly fixed, but why not run on old versions too?
80538   sed '$q' "$ltmain" >> "$cfgfile" \
80539      || (rm -f "$cfgfile"; exit 1)
80540
80541    mv -f "$cfgfile" "$ofile" ||
80542     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
80543   chmod +x "$ofile"
80544
80545
80546     cat <<_LT_EOF >> "$ofile"
80547
80548 # ### BEGIN LIBTOOL TAG CONFIG: RC
80549
80550 # The linker used to build libraries.
80551 LD=$lt_LD_RC
80552
80553 # How to create reloadable object files.
80554 reload_flag=$lt_reload_flag_RC
80555 reload_cmds=$lt_reload_cmds_RC
80556
80557 # Commands used to build an old-style archive.
80558 old_archive_cmds=$lt_old_archive_cmds_RC
80559
80560 # A language specific compiler.
80561 CC=$lt_compiler_RC
80562
80563 # Is the compiler the GNU compiler?
80564 with_gcc=$GCC_RC
80565
80566 # Compiler flag to turn off builtin functions.
80567 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
80568
80569 # Additional compiler flags for building library objects.
80570 pic_flag=$lt_lt_prog_compiler_pic_RC
80571
80572 # How to pass a linker flag through the compiler.
80573 wl=$lt_lt_prog_compiler_wl_RC
80574
80575 # Compiler flag to prevent dynamic linking.
80576 link_static_flag=$lt_lt_prog_compiler_static_RC
80577
80578 # Does compiler simultaneously support -c and -o options?
80579 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
80580
80581 # Whether or not to add -lc for building shared libraries.
80582 build_libtool_need_lc=$archive_cmds_need_lc_RC
80583
80584 # Whether or not to disallow shared libs when runtime libs are static.
80585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
80586
80587 # Compiler flag to allow reflexive dlopens.
80588 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
80589
80590 # Compiler flag to generate shared objects directly from archives.
80591 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
80592
80593 # Whether the compiler copes with passing no objects directly.
80594 compiler_needs_object=$lt_compiler_needs_object_RC
80595
80596 # Create an old-style archive from a shared archive.
80597 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
80598
80599 # Create a temporary old-style archive to link instead of a shared archive.
80600 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
80601
80602 # Commands used to build a shared archive.
80603 archive_cmds=$lt_archive_cmds_RC
80604 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
80605
80606 # Commands used to build a loadable module if different from building
80607 # a shared archive.
80608 module_cmds=$lt_module_cmds_RC
80609 module_expsym_cmds=$lt_module_expsym_cmds_RC
80610
80611 # Whether we are building with GNU ld or not.
80612 with_gnu_ld=$lt_with_gnu_ld_RC
80613
80614 # Flag that allows shared libraries with undefined symbols to be built.
80615 allow_undefined_flag=$lt_allow_undefined_flag_RC
80616
80617 # Flag that enforces no undefined symbols.
80618 no_undefined_flag=$lt_no_undefined_flag_RC
80619
80620 # Flag to hardcode \$libdir into a binary during linking.
80621 # This must work even if \$libdir does not exist
80622 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
80623
80624 # Whether we need a single "-rpath" flag with a separated argument.
80625 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
80626
80627 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80628 # DIR into the resulting binary.
80629 hardcode_direct=$hardcode_direct_RC
80630
80631 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80632 # DIR into the resulting binary and the resulting library dependency is
80633 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
80634 # library is relocated.
80635 hardcode_direct_absolute=$hardcode_direct_absolute_RC
80636
80637 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
80638 # into the resulting binary.
80639 hardcode_minus_L=$hardcode_minus_L_RC
80640
80641 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
80642 # into the resulting binary.
80643 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
80644
80645 # Set to "yes" if building a shared library automatically hardcodes DIR
80646 # into the library and all subsequent libraries and executables linked
80647 # against it.
80648 hardcode_automatic=$hardcode_automatic_RC
80649
80650 # Set to yes if linker adds runtime paths of dependent libraries
80651 # to runtime path list.
80652 inherit_rpath=$inherit_rpath_RC
80653
80654 # Whether libtool must link a program against all its dependency libraries.
80655 link_all_deplibs=$link_all_deplibs_RC
80656
80657 # Set to "yes" if exported symbols are required.
80658 always_export_symbols=$always_export_symbols_RC
80659
80660 # The commands to list exported symbols.
80661 export_symbols_cmds=$lt_export_symbols_cmds_RC
80662
80663 # Symbols that should not be listed in the preloaded symbols.
80664 exclude_expsyms=$lt_exclude_expsyms_RC
80665
80666 # Symbols that must always be exported.
80667 include_expsyms=$lt_include_expsyms_RC
80668
80669 # Commands necessary for linking programs (against libraries) with templates.
80670 prelink_cmds=$lt_prelink_cmds_RC
80671
80672 # Commands necessary for finishing linking programs.
80673 postlink_cmds=$lt_postlink_cmds_RC
80674
80675 # Specify filename containing input files.
80676 file_list_spec=$lt_file_list_spec_RC
80677
80678 # How to hardcode a shared library path into an executable.
80679 hardcode_action=$hardcode_action_RC
80680
80681 # The directories searched by this compiler when creating a shared library.
80682 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
80683
80684 # Dependencies to place before and after the objects being linked to
80685 # create a shared library.
80686 predep_objects=$lt_predep_objects_RC
80687 postdep_objects=$lt_postdep_objects_RC
80688 predeps=$lt_predeps_RC
80689 postdeps=$lt_postdeps_RC
80690
80691 # The library search path used internally by the compiler when linking
80692 # a shared library.
80693 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
80694
80695 # ### END LIBTOOL TAG CONFIG: RC
80696 _LT_EOF
80697
80698
80699     cat <<_LT_EOF >> "$ofile"
80700
80701 # ### BEGIN LIBTOOL TAG CONFIG: CXX
80702
80703 # The linker used to build libraries.
80704 LD=$lt_LD_CXX
80705
80706 # How to create reloadable object files.
80707 reload_flag=$lt_reload_flag_CXX
80708 reload_cmds=$lt_reload_cmds_CXX
80709
80710 # Commands used to build an old-style archive.
80711 old_archive_cmds=$lt_old_archive_cmds_CXX
80712
80713 # A language specific compiler.
80714 CC=$lt_compiler_CXX
80715
80716 # Is the compiler the GNU compiler?
80717 with_gcc=$GCC_CXX
80718
80719 # Compiler flag to turn off builtin functions.
80720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
80721
80722 # Additional compiler flags for building library objects.
80723 pic_flag=$lt_lt_prog_compiler_pic_CXX
80724
80725 # How to pass a linker flag through the compiler.
80726 wl=$lt_lt_prog_compiler_wl_CXX
80727
80728 # Compiler flag to prevent dynamic linking.
80729 link_static_flag=$lt_lt_prog_compiler_static_CXX
80730
80731 # Does compiler simultaneously support -c and -o options?
80732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
80733
80734 # Whether or not to add -lc for building shared libraries.
80735 build_libtool_need_lc=$archive_cmds_need_lc_CXX
80736
80737 # Whether or not to disallow shared libs when runtime libs are static.
80738 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
80739
80740 # Compiler flag to allow reflexive dlopens.
80741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
80742
80743 # Compiler flag to generate shared objects directly from archives.
80744 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
80745
80746 # Whether the compiler copes with passing no objects directly.
80747 compiler_needs_object=$lt_compiler_needs_object_CXX
80748
80749 # Create an old-style archive from a shared archive.
80750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
80751
80752 # Create a temporary old-style archive to link instead of a shared archive.
80753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
80754
80755 # Commands used to build a shared archive.
80756 archive_cmds=$lt_archive_cmds_CXX
80757 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
80758
80759 # Commands used to build a loadable module if different from building
80760 # a shared archive.
80761 module_cmds=$lt_module_cmds_CXX
80762 module_expsym_cmds=$lt_module_expsym_cmds_CXX
80763
80764 # Whether we are building with GNU ld or not.
80765 with_gnu_ld=$lt_with_gnu_ld_CXX
80766
80767 # Flag that allows shared libraries with undefined symbols to be built.
80768 allow_undefined_flag=$lt_allow_undefined_flag_CXX
80769
80770 # Flag that enforces no undefined symbols.
80771 no_undefined_flag=$lt_no_undefined_flag_CXX
80772
80773 # Flag to hardcode \$libdir into a binary during linking.
80774 # This must work even if \$libdir does not exist
80775 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
80776
80777 # Whether we need a single "-rpath" flag with a separated argument.
80778 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
80779
80780 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80781 # DIR into the resulting binary.
80782 hardcode_direct=$hardcode_direct_CXX
80783
80784 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80785 # DIR into the resulting binary and the resulting library dependency is
80786 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
80787 # library is relocated.
80788 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
80789
80790 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
80791 # into the resulting binary.
80792 hardcode_minus_L=$hardcode_minus_L_CXX
80793
80794 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
80795 # into the resulting binary.
80796 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
80797
80798 # Set to "yes" if building a shared library automatically hardcodes DIR
80799 # into the library and all subsequent libraries and executables linked
80800 # against it.
80801 hardcode_automatic=$hardcode_automatic_CXX
80802
80803 # Set to yes if linker adds runtime paths of dependent libraries
80804 # to runtime path list.
80805 inherit_rpath=$inherit_rpath_CXX
80806
80807 # Whether libtool must link a program against all its dependency libraries.
80808 link_all_deplibs=$link_all_deplibs_CXX
80809
80810 # Set to "yes" if exported symbols are required.
80811 always_export_symbols=$always_export_symbols_CXX
80812
80813 # The commands to list exported symbols.
80814 export_symbols_cmds=$lt_export_symbols_cmds_CXX
80815
80816 # Symbols that should not be listed in the preloaded symbols.
80817 exclude_expsyms=$lt_exclude_expsyms_CXX
80818
80819 # Symbols that must always be exported.
80820 include_expsyms=$lt_include_expsyms_CXX
80821
80822 # Commands necessary for linking programs (against libraries) with templates.
80823 prelink_cmds=$lt_prelink_cmds_CXX
80824
80825 # Commands necessary for finishing linking programs.
80826 postlink_cmds=$lt_postlink_cmds_CXX
80827
80828 # Specify filename containing input files.
80829 file_list_spec=$lt_file_list_spec_CXX
80830
80831 # How to hardcode a shared library path into an executable.
80832 hardcode_action=$hardcode_action_CXX
80833
80834 # The directories searched by this compiler when creating a shared library.
80835 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
80836
80837 # Dependencies to place before and after the objects being linked to
80838 # create a shared library.
80839 predep_objects=$lt_predep_objects_CXX
80840 postdep_objects=$lt_postdep_objects_CXX
80841 predeps=$lt_predeps_CXX
80842 postdeps=$lt_postdeps_CXX
80843
80844 # The library search path used internally by the compiler when linking
80845 # a shared library.
80846 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
80847
80848 # ### END LIBTOOL TAG CONFIG: CXX
80849 _LT_EOF
80850
80851  ;;
80852     "po-directories":C)
80853     for ac_file in $CONFIG_FILES; do
80854       # Support "outfile[:infile[:infile...]]"
80855       case "$ac_file" in
80856         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
80857       esac
80858       # PO directories have a Makefile.in generated from Makefile.in.in.
80859       case "$ac_file" in */Makefile.in)
80860         # Adjust a relative srcdir.
80861         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
80862         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
80863         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
80864         # In autoconf-2.13 it is called $ac_given_srcdir.
80865         # In autoconf-2.50 it is called $srcdir.
80866         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
80867         case "$ac_given_srcdir" in
80868           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
80869           /*) top_srcdir="$ac_given_srcdir" ;;
80870           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
80871         esac
80872         # Treat a directory as a PO directory if and only if it has a
80873         # POTFILES.in file. This allows packages to have multiple PO
80874         # directories under different names or in different locations.
80875         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
80876           rm -f "$ac_dir/POTFILES"
80877           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
80878           gt_tab=`printf '\t'`
80879           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"
80880           POMAKEFILEDEPS="POTFILES.in"
80881           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
80882           # on $ac_dir but don't depend on user-specified configuration
80883           # parameters.
80884           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
80885             # The LINGUAS file contains the set of available languages.
80886             if test -n "$OBSOLETE_ALL_LINGUAS"; then
80887               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
80888             fi
80889             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
80890             # Hide the ALL_LINGUAS assignment from automake < 1.5.
80891             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
80892             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
80893           else
80894             # The set of available languages was given in configure.in.
80895             # Hide the ALL_LINGUAS assignment from automake < 1.5.
80896             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
80897           fi
80898           # Compute POFILES
80899           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
80900           # Compute UPDATEPOFILES
80901           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
80902           # Compute DUMMYPOFILES
80903           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
80904           # Compute GMOFILES
80905           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
80906           case "$ac_given_srcdir" in
80907             .) srcdirpre= ;;
80908             *) srcdirpre='$(srcdir)/' ;;
80909           esac
80910           POFILES=
80911           UPDATEPOFILES=
80912           DUMMYPOFILES=
80913           GMOFILES=
80914           for lang in $ALL_LINGUAS; do
80915             POFILES="$POFILES $srcdirpre$lang.po"
80916             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
80917             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
80918             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
80919           done
80920           # CATALOGS depends on both $ac_dir and the user's LINGUAS
80921           # environment variable.
80922           INST_LINGUAS=
80923           if test -n "$ALL_LINGUAS"; then
80924             for presentlang in $ALL_LINGUAS; do
80925               useit=no
80926               if test "%UNSET%" != "$LINGUAS"; then
80927                 desiredlanguages="$LINGUAS"
80928               else
80929                 desiredlanguages="$ALL_LINGUAS"
80930               fi
80931               for desiredlang in $desiredlanguages; do
80932                 # Use the presentlang catalog if desiredlang is
80933                 #   a. equal to presentlang, or
80934                 #   b. a variant of presentlang (because in this case,
80935                 #      presentlang can be used as a fallback for messages
80936                 #      which are not translated in the desiredlang catalog).
80937                 case "$desiredlang" in
80938                   "$presentlang"*) useit=yes;;
80939                 esac
80940               done
80941               if test $useit = yes; then
80942                 INST_LINGUAS="$INST_LINGUAS $presentlang"
80943               fi
80944             done
80945           fi
80946           CATALOGS=
80947           if test -n "$INST_LINGUAS"; then
80948             for lang in $INST_LINGUAS; do
80949               CATALOGS="$CATALOGS $lang.gmo"
80950             done
80951           fi
80952           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
80953           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"
80954           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
80955             if test -f "$f"; then
80956               case "$f" in
80957                 *.orig | *.bak | *~) ;;
80958                 *) cat "$f" >> "$ac_dir/Makefile" ;;
80959               esac
80960             fi
80961           done
80962         fi
80963         ;;
80964       esac
80965     done ;;
80966     "intl/Makefile":F)
80967   # Change srcdir variable so that it points to ../gettext-runtime/intl.
80968   # Change PLURAL_OBJECT variable so that pluralx.c is used instead of plural.c.
80969   sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
80970       -e 's|^VPATH =.*$||' \
80971       -e 's|^PLURAL_OBJECT = .*$|PLURAL_OBJECT = pluralx.\$lo|' \
80972     < intl/Makefile > intl/Makefile.tmp
80973   mv intl/Makefile.tmp intl/Makefile
80974    ;;
80975     "misc/gettextize":F) chmod a+x misc/gettextize ;;
80976     "misc/autopoint":F) chmod a+x misc/autopoint ;;
80977     "misc/convert-archive":F) chmod a+x misc/convert-archive ;;
80978     "man/Makefile":F)
80979   sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
80980   mv $ac_file.tmp $ac_file
80981  ;;
80982
80983   esac
80984 done # for ac_tag
80985
80986
80987 as_fn_exit 0
80988 _ACEOF
80989 ac_clean_files=$ac_clean_files_save
80990
80991 test $ac_write_fail = 0 ||
80992   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
80993
80994
80995 # configure is writing to config.log, and then calls config.status.
80996 # config.status does its own redirection, appending to config.log.
80997 # Unfortunately, on DOS this fails, as config.log is still kept open
80998 # by configure, so config.status won't be able to write to it; its
80999 # output is simply discarded.  So we exec the FD to /dev/null,
81000 # effectively closing config.log, so it can be properly (re)opened and
81001 # appended to by config.status.  When coming back to configure, we
81002 # need to make the FD available again.
81003 if test "$no_create" != yes; then
81004   ac_cs_success=:
81005   ac_config_status_args=
81006   test "$silent" = yes &&
81007     ac_config_status_args="$ac_config_status_args --quiet"
81008   exec 5>/dev/null
81009   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
81010   exec 5>>config.log
81011   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
81012   # would make configure fail if this is the last instruction.
81013   $ac_cs_success || as_fn_exit 1
81014 fi
81015
81016 #
81017 # CONFIG_SUBDIRS section.
81018 #
81019 if test "$no_recursion" != yes; then
81020
81021   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
81022   # so they do not pile up.
81023   ac_sub_configure_args=
81024   ac_prev=
81025   eval "set x $ac_configure_args"
81026   shift
81027   for ac_arg
81028   do
81029     if test -n "$ac_prev"; then
81030       ac_prev=
81031       continue
81032     fi
81033     case $ac_arg in
81034     -cache-file | --cache-file | --cache-fil | --cache-fi \
81035     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
81036       ac_prev=cache_file ;;
81037     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
81038     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
81039     | --c=*)
81040       ;;
81041     --config-cache | -C)
81042       ;;
81043     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
81044       ac_prev=srcdir ;;
81045     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
81046       ;;
81047     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
81048       ac_prev=prefix ;;
81049     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
81050       ;;
81051     --disable-option-checking)
81052       ;;
81053     *)
81054       case $ac_arg in
81055       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
81056       esac
81057       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
81058     esac
81059   done
81060
81061   # Always prepend --prefix to ensure using the same prefix
81062   # in subdir configurations.
81063   ac_arg="--prefix=$prefix"
81064   case $ac_arg in
81065   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
81066   esac
81067   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
81068
81069   # Pass --silent
81070   if test "$silent" = yes; then
81071     ac_sub_configure_args="--silent $ac_sub_configure_args"
81072   fi
81073
81074   # Always prepend --disable-option-checking to silence warnings, since
81075   # different subdirs can have different --enable and --with options.
81076   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
81077
81078   ac_popdir=`pwd`
81079   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
81080
81081     # Do not complain, so a configure script can configure whichever
81082     # parts of a large source tree are present.
81083     test -d "$srcdir/$ac_dir" || continue
81084
81085     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
81086     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
81087     $as_echo "$ac_msg" >&6
81088     as_dir="$ac_dir"; as_fn_mkdir_p
81089     ac_builddir=.
81090
81091 case "$ac_dir" in
81092 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
81093 *)
81094   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
81095   # A ".." for each directory in $ac_dir_suffix.
81096   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
81097   case $ac_top_builddir_sub in
81098   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
81099   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
81100   esac ;;
81101 esac
81102 ac_abs_top_builddir=$ac_pwd
81103 ac_abs_builddir=$ac_pwd$ac_dir_suffix
81104 # for backward compatibility:
81105 ac_top_builddir=$ac_top_build_prefix
81106
81107 case $srcdir in
81108   .)  # We are building in place.
81109     ac_srcdir=.
81110     ac_top_srcdir=$ac_top_builddir_sub
81111     ac_abs_top_srcdir=$ac_pwd ;;
81112   [\\/]* | ?:[\\/]* )  # Absolute name.
81113     ac_srcdir=$srcdir$ac_dir_suffix;
81114     ac_top_srcdir=$srcdir
81115     ac_abs_top_srcdir=$srcdir ;;
81116   *) # Relative name.
81117     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
81118     ac_top_srcdir=$ac_top_build_prefix$srcdir
81119     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
81120 esac
81121 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
81122
81123
81124     cd "$ac_dir"
81125
81126     # Check for guested configure; otherwise get Cygnus style configure.
81127     if test -f "$ac_srcdir/configure.gnu"; then
81128       ac_sub_configure=$ac_srcdir/configure.gnu
81129     elif test -f "$ac_srcdir/configure"; then
81130       ac_sub_configure=$ac_srcdir/configure
81131     elif test -f "$ac_srcdir/configure.in"; then
81132       # This should be Cygnus configure.
81133       ac_sub_configure=$ac_aux_dir/configure
81134     else
81135       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
81136 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
81137       ac_sub_configure=
81138     fi
81139
81140     # The recursion is here.
81141     if test -n "$ac_sub_configure"; then
81142       # Make the cache file name correct relative to the subdirectory.
81143       case $cache_file in
81144       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81145       *) # Relative name.
81146         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
81147       esac
81148
81149       { $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
81150 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
81151       # The eval makes quoting arguments work.
81152       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
81153            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
81154         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
81155     fi
81156
81157     cd "$ac_popdir"
81158   done
81159 fi
81160 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
81161   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
81162 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
81163 fi
81164