Imported Upstream version 0.19.7
[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.7.
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.7'
594 PACKAGE_STRING='gettext-tools 0.19.7'
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 lispdir
1612 REPLACE_FDOPENDIR
1613 REPLACE_DIRFD
1614 REPLACE_CLOSEDIR
1615 REPLACE_OPENDIR
1616 HAVE_ALPHASORT
1617 HAVE_SCANDIR
1618 HAVE_FDOPENDIR
1619 HAVE_DECL_FDOPENDIR
1620 HAVE_DECL_DIRFD
1621 HAVE_CLOSEDIR
1622 HAVE_REWINDDIR
1623 HAVE_READDIR
1624 HAVE_OPENDIR
1625 GNULIB_ALPHASORT
1626 GNULIB_SCANDIR
1627 GNULIB_FDOPENDIR
1628 GNULIB_DIRFD
1629 GNULIB_CLOSEDIR
1630 GNULIB_REWINDDIR
1631 GNULIB_READDIR
1632 GNULIB_OPENDIR
1633 HAVE_WINSOCK2_H
1634 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1635 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1636 UNISTD_H_HAVE_WINSOCK2_H
1637 REPLACE_WRITE
1638 REPLACE_USLEEP
1639 REPLACE_UNLINKAT
1640 REPLACE_UNLINK
1641 REPLACE_TTYNAME_R
1642 REPLACE_SYMLINKAT
1643 REPLACE_SYMLINK
1644 REPLACE_SLEEP
1645 REPLACE_RMDIR
1646 REPLACE_READLINKAT
1647 REPLACE_READLINK
1648 REPLACE_READ
1649 REPLACE_PWRITE
1650 REPLACE_PREAD
1651 REPLACE_LSEEK
1652 REPLACE_LINKAT
1653 REPLACE_LINK
1654 REPLACE_LCHOWN
1655 REPLACE_ISATTY
1656 REPLACE_GETPAGESIZE
1657 REPLACE_GETGROUPS
1658 REPLACE_GETLOGIN_R
1659 REPLACE_GETDTABLESIZE
1660 REPLACE_GETDOMAINNAME
1661 REPLACE_GETCWD
1662 REPLACE_FTRUNCATE
1663 REPLACE_FCHOWNAT
1664 REPLACE_DUP2
1665 REPLACE_DUP
1666 REPLACE_CLOSE
1667 REPLACE_CHOWN
1668 HAVE_SYS_PARAM_H
1669 HAVE_OS_H
1670 HAVE_DECL_TTYNAME_R
1671 HAVE_DECL_SETHOSTNAME
1672 HAVE_DECL_GETUSERSHELL
1673 HAVE_DECL_GETPAGESIZE
1674 HAVE_DECL_GETLOGIN_R
1675 HAVE_DECL_GETDOMAINNAME
1676 HAVE_DECL_FDATASYNC
1677 HAVE_DECL_FCHDIR
1678 HAVE_DECL_ENVIRON
1679 HAVE_USLEEP
1680 HAVE_UNLINKAT
1681 HAVE_SYMLINKAT
1682 HAVE_SYMLINK
1683 HAVE_SLEEP
1684 HAVE_SETHOSTNAME
1685 HAVE_READLINKAT
1686 HAVE_READLINK
1687 HAVE_PWRITE
1688 HAVE_PREAD
1689 HAVE_PIPE2
1690 HAVE_PIPE
1691 HAVE_LINKAT
1692 HAVE_LINK
1693 HAVE_LCHOWN
1694 HAVE_GROUP_MEMBER
1695 HAVE_GETPAGESIZE
1696 HAVE_GETLOGIN
1697 HAVE_GETHOSTNAME
1698 HAVE_GETGROUPS
1699 HAVE_GETDTABLESIZE
1700 HAVE_FTRUNCATE
1701 HAVE_FSYNC
1702 HAVE_FDATASYNC
1703 HAVE_FCHOWNAT
1704 HAVE_FCHDIR
1705 HAVE_FACCESSAT
1706 HAVE_EUIDACCESS
1707 HAVE_DUP3
1708 HAVE_DUP2
1709 HAVE_CHOWN
1710 GNULIB_WRITE
1711 GNULIB_USLEEP
1712 GNULIB_UNLINKAT
1713 GNULIB_UNLINK
1714 GNULIB_UNISTD_H_SIGPIPE
1715 GNULIB_UNISTD_H_NONBLOCKING
1716 GNULIB_TTYNAME_R
1717 GNULIB_SYMLINKAT
1718 GNULIB_SYMLINK
1719 GNULIB_SLEEP
1720 GNULIB_SETHOSTNAME
1721 GNULIB_RMDIR
1722 GNULIB_READLINKAT
1723 GNULIB_READLINK
1724 GNULIB_READ
1725 GNULIB_PWRITE
1726 GNULIB_PREAD
1727 GNULIB_PIPE2
1728 GNULIB_PIPE
1729 GNULIB_LSEEK
1730 GNULIB_LINKAT
1731 GNULIB_LINK
1732 GNULIB_LCHOWN
1733 GNULIB_ISATTY
1734 GNULIB_GROUP_MEMBER
1735 GNULIB_GETUSERSHELL
1736 GNULIB_GETPAGESIZE
1737 GNULIB_GETLOGIN_R
1738 GNULIB_GETLOGIN
1739 GNULIB_GETHOSTNAME
1740 GNULIB_GETGROUPS
1741 GNULIB_GETDTABLESIZE
1742 GNULIB_GETDOMAINNAME
1743 GNULIB_GETCWD
1744 GNULIB_FTRUNCATE
1745 GNULIB_FSYNC
1746 GNULIB_FDATASYNC
1747 GNULIB_FCHOWNAT
1748 GNULIB_FCHDIR
1749 GNULIB_FACCESSAT
1750 GNULIB_EUIDACCESS
1751 GNULIB_ENVIRON
1752 GNULIB_DUP3
1753 GNULIB_DUP2
1754 GNULIB_DUP
1755 GNULIB_CLOSE
1756 GNULIB_CHOWN
1757 GNULIB_CHDIR
1758 REPLACE_WCTOMB
1759 REPLACE_UNSETENV
1760 REPLACE_STRTOD
1761 REPLACE_SETENV
1762 REPLACE_REALPATH
1763 REPLACE_REALLOC
1764 REPLACE_RANDOM_R
1765 REPLACE_QSORT_R
1766 REPLACE_PUTENV
1767 REPLACE_PTSNAME_R
1768 REPLACE_PTSNAME
1769 REPLACE_MKSTEMP
1770 REPLACE_MBTOWC
1771 REPLACE_MALLOC
1772 REPLACE_CANONICALIZE_FILE_NAME
1773 REPLACE_CALLOC
1774 HAVE_DECL_UNSETENV
1775 HAVE_UNLOCKPT
1776 HAVE_SYS_LOADAVG_H
1777 HAVE_STRUCT_RANDOM_DATA
1778 HAVE_STRTOULL
1779 HAVE_STRTOLL
1780 HAVE_STRTOD
1781 HAVE_DECL_SETENV
1782 HAVE_SETENV
1783 HAVE_SECURE_GETENV
1784 HAVE_RPMATCH
1785 HAVE_REALPATH
1786 HAVE_RANDOM_R
1787 HAVE_RANDOM_H
1788 HAVE_RANDOM
1789 HAVE_PTSNAME_R
1790 HAVE_PTSNAME
1791 HAVE_POSIX_OPENPT
1792 HAVE_MKSTEMPS
1793 HAVE_MKSTEMP
1794 HAVE_MKOSTEMPS
1795 HAVE_MKOSTEMP
1796 HAVE_MKDTEMP
1797 HAVE_GRANTPT
1798 HAVE_GETSUBOPT
1799 HAVE_DECL_GETLOADAVG
1800 HAVE_CANONICALIZE_FILE_NAME
1801 HAVE_ATOLL
1802 HAVE__EXIT
1803 GNULIB_WCTOMB
1804 GNULIB_UNSETENV
1805 GNULIB_UNLOCKPT
1806 GNULIB_SYSTEM_POSIX
1807 GNULIB_STRTOULL
1808 GNULIB_STRTOLL
1809 GNULIB_STRTOD
1810 GNULIB_SETENV
1811 GNULIB_SECURE_GETENV
1812 GNULIB_RPMATCH
1813 GNULIB_REALPATH
1814 GNULIB_REALLOC_POSIX
1815 GNULIB_RANDOM_R
1816 GNULIB_RANDOM
1817 GNULIB_QSORT_R
1818 GNULIB_PUTENV
1819 GNULIB_PTSNAME_R
1820 GNULIB_PTSNAME
1821 GNULIB_POSIX_OPENPT
1822 GNULIB_MKSTEMPS
1823 GNULIB_MKSTEMP
1824 GNULIB_MKOSTEMPS
1825 GNULIB_MKOSTEMP
1826 GNULIB_MKDTEMP
1827 GNULIB_MBTOWC
1828 GNULIB_MALLOC_POSIX
1829 GNULIB_GRANTPT
1830 GNULIB_GETSUBOPT
1831 GNULIB_GETLOADAVG
1832 GNULIB_CANONICALIZE_FILE_NAME
1833 GNULIB_CALLOC_POSIX
1834 GNULIB_ATOLL
1835 GNULIB__EXIT
1836 GL_GENERATE_BYTESWAP_H_FALSE
1837 GL_GENERATE_BYTESWAP_H_TRUE
1838 BYTESWAP_H
1839 am__fastdepCXX_FALSE
1840 am__fastdepCXX_TRUE
1841 CXXDEPMODE
1842 ANSICXX_FALSE
1843 ANSICXX_TRUE
1844 CXXFLAGS
1845 ac_ct_CXX
1846 CXX
1847 CXX_CHOICE
1848 GL_GENERATE_ALLOCA_H_FALSE
1849 GL_GENERATE_ALLOCA_H_TRUE
1850 ALLOCA_H
1851 USE_ACL
1852 LIB_ACL
1853 GL_COND_LIBTOOL_FALSE
1854 GL_COND_LIBTOOL_TRUE
1855 MSGMERGE_LIBM
1856 BISON_LOCALEDIR
1857 POSUB
1858 LTLIBINTL
1859 LIBINTL
1860 INTLLIBS
1861 INTL_LIBTOOL_SUFFIX_PREFIX
1862 INTLOBJS
1863 GENCAT
1864 INSTOBJEXT
1865 DATADIRNAME
1866 CATOBJEXT
1867 USE_INCLUDED_LIBINTL
1868 BUILD_INCLUDED_LIBINTL
1869 LTLIBC
1870 WINDRES
1871 WOE32
1872 WOE32DLL
1873 HAVE_WPRINTF
1874 HAVE_NEWLOCALE
1875 HAVE_SNPRINTF
1876 HAVE_ASPRINTF
1877 HAVE_POSIX_PRINTF
1878 INTL_DEFAULT_VERBOSITY
1879 INTL_MACOSX_LIBS
1880 GLIBC21
1881 INTLBISON
1882 GL_GENERATE_ICONV_H_FALSE
1883 GL_GENERATE_ICONV_H_TRUE
1884 ICONV_H
1885 REPLACE_ICONV_UTF
1886 REPLACE_ICONV_OPEN
1887 REPLACE_ICONV
1888 ICONV_CONST
1889 GNULIB_ICONV
1890 LTLIBICONV
1891 LIBICONV
1892 LTLIBMULTITHREAD
1893 LIBMULTITHREAD
1894 LTLIBTHREAD
1895 LIBTHREAD
1896 LIBPTH_PREFIX
1897 LTLIBPTH
1898 LIBPTH
1899 PRI_MACROS_BROKEN
1900 ALLOCA
1901 HAVE_VISIBILITY
1902 CFLAG_VISIBILITY
1903 GLIBC2
1904 XGETTEXT_EXTRA_OPTIONS
1905 MSGMERGE
1906 XGETTEXT_015
1907 XGETTEXT
1908 GMSGFMT_015
1909 MSGFMT_015
1910 GMSGFMT
1911 MSGFMT
1912 GETTEXT_MACRO_VERSION
1913 USE_NLS
1914 WOE32_FALSE
1915 WOE32_TRUE
1916 RC
1917 LT_SYS_LIBRARY_PATH
1918 OTOOL64
1919 OTOOL
1920 LIPO
1921 NMEDIT
1922 DSYMUTIL
1923 MANIFEST_TOOL
1924 LN_S
1925 NM
1926 ac_ct_DUMPBIN
1927 DUMPBIN
1928 LD
1929 FGREP
1930 SED
1931 LIBTOOL
1932 OBJDUMP
1933 DLLTOOL
1934 AS
1935 RANLIB
1936 ARFLAGS
1937 ac_ct_AR
1938 AR
1939 host_os
1940 host_vendor
1941 host_cpu
1942 host
1943 build_os
1944 build_vendor
1945 build_cpu
1946 build
1947 TESTCSHARP
1948 HAVE_CLIX
1949 HAVE_MONO
1950 HAVE_ILRUN
1951 CLIX_PATH
1952 CLIX_PATH_VAR
1953 MONO_PATH_SEPARATOR
1954 MONO_PATH
1955 HAVE_CLIX_IN_PATH
1956 HAVE_MONO_IN_PATH
1957 HAVE_ILRUN_IN_PATH
1958 BUILDCSHARP
1959 CSHARPCOMPFLAGS
1960 HAVE_CSC
1961 HAVE_MCS
1962 HAVE_CSCC
1963 HAVE_CSC_IN_PATH
1964 HAVE_MCS_IN_PATH
1965 HAVE_CSCC_IN_PATH
1966 CSHARP_CHOICE
1967 TESTJAVA
1968 BUILDJAVA
1969 JAR
1970 HAVE_JIKES
1971 HAVE_JAVAC
1972 HAVE_GCJ_C
1973 HAVE_JAVAC_ENVVAR
1974 CONF_JAVAC
1975 HAVE_JIKES_IN_PATH
1976 HAVE_JAVAC_IN_PATH
1977 HAVE_GCJ_IN_PATH
1978 HAVE_JVIEW
1979 HAVE_JRE
1980 HAVE_JAVA
1981 HAVE_GIJ
1982 HAVE_JAVA_ENVVAR
1983 CLASSPATH_SEPARATOR
1984 CLASSPATH
1985 CONF_JAVA
1986 HAVE_JVIEW_IN_PATH
1987 HAVE_JRE_IN_PATH
1988 HAVE_JAVA_IN_PATH
1989 HAVE_GIJ_IN_PATH
1990 EGREP
1991 GREP
1992 CPP
1993 BUILDJAVAEXE
1994 HAVE_GCJ
1995 GCJFLAGS
1996 GCJ
1997 JAVA_CHOICE
1998 YFLAGS
1999 YACC
2000 am__fastdepCC_FALSE
2001 am__fastdepCC_TRUE
2002 CCDEPMODE
2003 am__nodep
2004 AMDEPBACKSLASH
2005 AMDEP_FALSE
2006 AMDEP_TRUE
2007 am__quote
2008 am__include
2009 DEPDIR
2010 OBJEXT
2011 EXEEXT
2012 ac_ct_CC
2013 CPPFLAGS
2014 LDFLAGS
2015 CFLAGS
2016 CC
2017 AM_BACKSLASH
2018 AM_DEFAULT_VERBOSITY
2019 AM_DEFAULT_V
2020 AM_V
2021 am__untar
2022 am__tar
2023 AMTAR
2024 am__leading_dot
2025 SET_MAKE
2026 AWK
2027 mkdir_p
2028 MKDIR_P
2029 INSTALL_STRIP_PROGRAM
2030 STRIP
2031 install_sh
2032 MAKEINFO
2033 AUTOHEADER
2034 AUTOMAKE
2035 AUTOCONF
2036 ACLOCAL
2037 VERSION
2038 PACKAGE
2039 CYGPATH_W
2040 am__isrc
2041 INSTALL_DATA
2042 INSTALL_SCRIPT
2043 INSTALL_PROGRAM
2044 target_alias
2045 host_alias
2046 build_alias
2047 LIBS
2048 ECHO_T
2049 ECHO_N
2050 ECHO_C
2051 DEFS
2052 mandir
2053 localedir
2054 libdir
2055 psdir
2056 pdfdir
2057 dvidir
2058 htmldir
2059 infodir
2060 docdir
2061 oldincludedir
2062 includedir
2063 runstatedir
2064 localstatedir
2065 sharedstatedir
2066 sysconfdir
2067 datadir
2068 datarootdir
2069 libexecdir
2070 sbindir
2071 bindir
2072 program_transform_name
2073 prefix
2074 exec_prefix
2075 PACKAGE_URL
2076 PACKAGE_BUGREPORT
2077 PACKAGE_STRING
2078 PACKAGE_VERSION
2079 PACKAGE_TARNAME
2080 PACKAGE_NAME
2081 PATH_SEPARATOR
2082 SHELL'
2083 ac_subst_files='relocatable_sh'
2084 ac_user_opts='
2085 enable_option_checking
2086 enable_silent_rules
2087 enable_dependency_tracking
2088 enable_java
2089 enable_native_java
2090 enable_csharp
2091 enable_largefile
2092 enable_threads
2093 enable_shared
2094 enable_static
2095 with_pic
2096 enable_fast_install
2097 with_aix_soname
2098 with_gnu_ld
2099 with_sysroot
2100 enable_libtool_lock
2101 enable_nls
2102 enable_rpath
2103 with_libpth_prefix
2104 with_libiconv_prefix
2105 with_included_gettext
2106 with_libintl_prefix
2107 enable_acl
2108 enable_c__
2109 with_included_glib
2110 with_libglib_2_0_prefix
2111 with_included_libcroco
2112 with_libcroco_0_6_prefix
2113 with_included_libunistring
2114 with_libunistring_prefix
2115 with_included_libxml
2116 with_libxml2_prefix
2117 enable_openmp
2118 enable_relocatable
2119 enable_curses
2120 with_libncurses_prefix
2121 with_libtermcap_prefix
2122 with_libxcurses_prefix
2123 with_libcurses_prefix
2124 with_included_regex
2125 with_emacs
2126 with_lispdir
2127 with_git
2128 with_cvs
2129 with_bzip2
2130 with_xz
2131 '
2132       ac_precious_vars='build_alias
2133 host_alias
2134 target_alias
2135 CC
2136 CFLAGS
2137 LDFLAGS
2138 LIBS
2139 CPPFLAGS
2140 YACC
2141 YFLAGS
2142 GCJ
2143 GCJFLAGS
2144 CPP
2145 LT_SYS_LIBRARY_PATH
2146 CXX
2147 CXXFLAGS
2148 EMACS
2149 EMACSLOADPATH
2150 CCC
2151 CXXCPP'
2152 ac_subdirs_all='examples'
2153
2154 # Initialize some variables set by options.
2155 ac_init_help=
2156 ac_init_version=false
2157 ac_unrecognized_opts=
2158 ac_unrecognized_sep=
2159 # The variables have the same names as the options, with
2160 # dashes changed to underlines.
2161 cache_file=/dev/null
2162 exec_prefix=NONE
2163 no_create=
2164 no_recursion=
2165 prefix=NONE
2166 program_prefix=NONE
2167 program_suffix=NONE
2168 program_transform_name=s,x,x,
2169 silent=
2170 site=
2171 srcdir=
2172 verbose=
2173 x_includes=NONE
2174 x_libraries=NONE
2175
2176 # Installation directory options.
2177 # These are left unexpanded so users can "make install exec_prefix=/foo"
2178 # and all the variables that are supposed to be based on exec_prefix
2179 # by default will actually change.
2180 # Use braces instead of parens because sh, perl, etc. also accept them.
2181 # (The list follows the same order as the GNU Coding Standards.)
2182 bindir='${exec_prefix}/bin'
2183 sbindir='${exec_prefix}/sbin'
2184 libexecdir='${exec_prefix}/libexec'
2185 datarootdir='${prefix}/share'
2186 datadir='${datarootdir}'
2187 sysconfdir='${prefix}/etc'
2188 sharedstatedir='${prefix}/com'
2189 localstatedir='${prefix}/var'
2190 runstatedir='${localstatedir}/run'
2191 includedir='${prefix}/include'
2192 oldincludedir='/usr/include'
2193 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2194 infodir='${datarootdir}/info'
2195 htmldir='${docdir}'
2196 dvidir='${docdir}'
2197 pdfdir='${docdir}'
2198 psdir='${docdir}'
2199 libdir='${exec_prefix}/lib'
2200 localedir='${datarootdir}/locale'
2201 mandir='${datarootdir}/man'
2202
2203 ac_prev=
2204 ac_dashdash=
2205 for ac_option
2206 do
2207   # If the previous option needs an argument, assign it.
2208   if test -n "$ac_prev"; then
2209     eval $ac_prev=\$ac_option
2210     ac_prev=
2211     continue
2212   fi
2213
2214   case $ac_option in
2215   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2216   *=)   ac_optarg= ;;
2217   *)    ac_optarg=yes ;;
2218   esac
2219
2220   # Accept the important Cygnus configure options, so we can diagnose typos.
2221
2222   case $ac_dashdash$ac_option in
2223   --)
2224     ac_dashdash=yes ;;
2225
2226   -bindir | --bindir | --bindi | --bind | --bin | --bi)
2227     ac_prev=bindir ;;
2228   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2229     bindir=$ac_optarg ;;
2230
2231   -build | --build | --buil | --bui | --bu)
2232     ac_prev=build_alias ;;
2233   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2234     build_alias=$ac_optarg ;;
2235
2236   -cache-file | --cache-file | --cache-fil | --cache-fi \
2237   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2238     ac_prev=cache_file ;;
2239   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2240   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2241     cache_file=$ac_optarg ;;
2242
2243   --config-cache | -C)
2244     cache_file=config.cache ;;
2245
2246   -datadir | --datadir | --datadi | --datad)
2247     ac_prev=datadir ;;
2248   -datadir=* | --datadir=* | --datadi=* | --datad=*)
2249     datadir=$ac_optarg ;;
2250
2251   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2252   | --dataroo | --dataro | --datar)
2253     ac_prev=datarootdir ;;
2254   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2255   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2256     datarootdir=$ac_optarg ;;
2257
2258   -disable-* | --disable-*)
2259     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2260     # Reject names that are not valid shell variable names.
2261     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2262       as_fn_error $? "invalid feature name: $ac_useropt"
2263     ac_useropt_orig=$ac_useropt
2264     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2265     case $ac_user_opts in
2266       *"
2267 "enable_$ac_useropt"
2268 "*) ;;
2269       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2270          ac_unrecognized_sep=', ';;
2271     esac
2272     eval enable_$ac_useropt=no ;;
2273
2274   -docdir | --docdir | --docdi | --doc | --do)
2275     ac_prev=docdir ;;
2276   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2277     docdir=$ac_optarg ;;
2278
2279   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2280     ac_prev=dvidir ;;
2281   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2282     dvidir=$ac_optarg ;;
2283
2284   -enable-* | --enable-*)
2285     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2286     # Reject names that are not valid shell variable names.
2287     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2288       as_fn_error $? "invalid feature name: $ac_useropt"
2289     ac_useropt_orig=$ac_useropt
2290     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2291     case $ac_user_opts in
2292       *"
2293 "enable_$ac_useropt"
2294 "*) ;;
2295       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2296          ac_unrecognized_sep=', ';;
2297     esac
2298     eval enable_$ac_useropt=\$ac_optarg ;;
2299
2300   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2301   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2302   | --exec | --exe | --ex)
2303     ac_prev=exec_prefix ;;
2304   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2305   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2306   | --exec=* | --exe=* | --ex=*)
2307     exec_prefix=$ac_optarg ;;
2308
2309   -gas | --gas | --ga | --g)
2310     # Obsolete; use --with-gas.
2311     with_gas=yes ;;
2312
2313   -help | --help | --hel | --he | -h)
2314     ac_init_help=long ;;
2315   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2316     ac_init_help=recursive ;;
2317   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2318     ac_init_help=short ;;
2319
2320   -host | --host | --hos | --ho)
2321     ac_prev=host_alias ;;
2322   -host=* | --host=* | --hos=* | --ho=*)
2323     host_alias=$ac_optarg ;;
2324
2325   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2326     ac_prev=htmldir ;;
2327   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2328   | --ht=*)
2329     htmldir=$ac_optarg ;;
2330
2331   -includedir | --includedir | --includedi | --included | --include \
2332   | --includ | --inclu | --incl | --inc)
2333     ac_prev=includedir ;;
2334   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2335   | --includ=* | --inclu=* | --incl=* | --inc=*)
2336     includedir=$ac_optarg ;;
2337
2338   -infodir | --infodir | --infodi | --infod | --info | --inf)
2339     ac_prev=infodir ;;
2340   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2341     infodir=$ac_optarg ;;
2342
2343   -libdir | --libdir | --libdi | --libd)
2344     ac_prev=libdir ;;
2345   -libdir=* | --libdir=* | --libdi=* | --libd=*)
2346     libdir=$ac_optarg ;;
2347
2348   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2349   | --libexe | --libex | --libe)
2350     ac_prev=libexecdir ;;
2351   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2352   | --libexe=* | --libex=* | --libe=*)
2353     libexecdir=$ac_optarg ;;
2354
2355   -localedir | --localedir | --localedi | --localed | --locale)
2356     ac_prev=localedir ;;
2357   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2358     localedir=$ac_optarg ;;
2359
2360   -localstatedir | --localstatedir | --localstatedi | --localstated \
2361   | --localstate | --localstat | --localsta | --localst | --locals)
2362     ac_prev=localstatedir ;;
2363   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2364   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2365     localstatedir=$ac_optarg ;;
2366
2367   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2368     ac_prev=mandir ;;
2369   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2370     mandir=$ac_optarg ;;
2371
2372   -nfp | --nfp | --nf)
2373     # Obsolete; use --without-fp.
2374     with_fp=no ;;
2375
2376   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2377   | --no-cr | --no-c | -n)
2378     no_create=yes ;;
2379
2380   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2381   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2382     no_recursion=yes ;;
2383
2384   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2385   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2386   | --oldin | --oldi | --old | --ol | --o)
2387     ac_prev=oldincludedir ;;
2388   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2389   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2390   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2391     oldincludedir=$ac_optarg ;;
2392
2393   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2394     ac_prev=prefix ;;
2395   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2396     prefix=$ac_optarg ;;
2397
2398   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2399   | --program-pre | --program-pr | --program-p)
2400     ac_prev=program_prefix ;;
2401   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2402   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2403     program_prefix=$ac_optarg ;;
2404
2405   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2406   | --program-suf | --program-su | --program-s)
2407     ac_prev=program_suffix ;;
2408   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2409   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2410     program_suffix=$ac_optarg ;;
2411
2412   -program-transform-name | --program-transform-name \
2413   | --program-transform-nam | --program-transform-na \
2414   | --program-transform-n | --program-transform- \
2415   | --program-transform | --program-transfor \
2416   | --program-transfo | --program-transf \
2417   | --program-trans | --program-tran \
2418   | --progr-tra | --program-tr | --program-t)
2419     ac_prev=program_transform_name ;;
2420   -program-transform-name=* | --program-transform-name=* \
2421   | --program-transform-nam=* | --program-transform-na=* \
2422   | --program-transform-n=* | --program-transform-=* \
2423   | --program-transform=* | --program-transfor=* \
2424   | --program-transfo=* | --program-transf=* \
2425   | --program-trans=* | --program-tran=* \
2426   | --progr-tra=* | --program-tr=* | --program-t=*)
2427     program_transform_name=$ac_optarg ;;
2428
2429   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2430     ac_prev=pdfdir ;;
2431   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2432     pdfdir=$ac_optarg ;;
2433
2434   -psdir | --psdir | --psdi | --psd | --ps)
2435     ac_prev=psdir ;;
2436   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2437     psdir=$ac_optarg ;;
2438
2439   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440   | -silent | --silent | --silen | --sile | --sil)
2441     silent=yes ;;
2442
2443   -runstatedir | --runstatedir | --runstatedi | --runstated \
2444   | --runstate | --runstat | --runsta | --runst | --runs \
2445   | --run | --ru | --r)
2446     ac_prev=runstatedir ;;
2447   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2448   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2449   | --run=* | --ru=* | --r=*)
2450     runstatedir=$ac_optarg ;;
2451
2452   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2453     ac_prev=sbindir ;;
2454   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2455   | --sbi=* | --sb=*)
2456     sbindir=$ac_optarg ;;
2457
2458   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2459   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2460   | --sharedst | --shareds | --shared | --share | --shar \
2461   | --sha | --sh)
2462     ac_prev=sharedstatedir ;;
2463   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2464   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2465   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2466   | --sha=* | --sh=*)
2467     sharedstatedir=$ac_optarg ;;
2468
2469   -site | --site | --sit)
2470     ac_prev=site ;;
2471   -site=* | --site=* | --sit=*)
2472     site=$ac_optarg ;;
2473
2474   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2475     ac_prev=srcdir ;;
2476   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2477     srcdir=$ac_optarg ;;
2478
2479   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2480   | --syscon | --sysco | --sysc | --sys | --sy)
2481     ac_prev=sysconfdir ;;
2482   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2483   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2484     sysconfdir=$ac_optarg ;;
2485
2486   -target | --target | --targe | --targ | --tar | --ta | --t)
2487     ac_prev=target_alias ;;
2488   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2489     target_alias=$ac_optarg ;;
2490
2491   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2492     verbose=yes ;;
2493
2494   -version | --version | --versio | --versi | --vers | -V)
2495     ac_init_version=: ;;
2496
2497   -with-* | --with-*)
2498     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2499     # Reject names that are not valid shell variable names.
2500     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2501       as_fn_error $? "invalid package name: $ac_useropt"
2502     ac_useropt_orig=$ac_useropt
2503     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2504     case $ac_user_opts in
2505       *"
2506 "with_$ac_useropt"
2507 "*) ;;
2508       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2509          ac_unrecognized_sep=', ';;
2510     esac
2511     eval with_$ac_useropt=\$ac_optarg ;;
2512
2513   -without-* | --without-*)
2514     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2515     # Reject names that are not valid shell variable names.
2516     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2517       as_fn_error $? "invalid package name: $ac_useropt"
2518     ac_useropt_orig=$ac_useropt
2519     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2520     case $ac_user_opts in
2521       *"
2522 "with_$ac_useropt"
2523 "*) ;;
2524       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2525          ac_unrecognized_sep=', ';;
2526     esac
2527     eval with_$ac_useropt=no ;;
2528
2529   --x)
2530     # Obsolete; use --with-x.
2531     with_x=yes ;;
2532
2533   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2534   | --x-incl | --x-inc | --x-in | --x-i)
2535     ac_prev=x_includes ;;
2536   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2537   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2538     x_includes=$ac_optarg ;;
2539
2540   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2541   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2542     ac_prev=x_libraries ;;
2543   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2544   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2545     x_libraries=$ac_optarg ;;
2546
2547   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2548 Try \`$0 --help' for more information"
2549     ;;
2550
2551   *=*)
2552     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2553     # Reject names that are not valid shell variable names.
2554     case $ac_envvar in #(
2555       '' | [0-9]* | *[!_$as_cr_alnum]* )
2556       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2557     esac
2558     eval $ac_envvar=\$ac_optarg
2559     export $ac_envvar ;;
2560
2561   *)
2562     # FIXME: should be removed in autoconf 3.0.
2563     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2564     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2565       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2566     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2567     ;;
2568
2569   esac
2570 done
2571
2572 if test -n "$ac_prev"; then
2573   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2574   as_fn_error $? "missing argument to $ac_option"
2575 fi
2576
2577 if test -n "$ac_unrecognized_opts"; then
2578   case $enable_option_checking in
2579     no) ;;
2580     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2581     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2582   esac
2583 fi
2584
2585 # Check all directory arguments for consistency.
2586 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2587                 datadir sysconfdir sharedstatedir localstatedir includedir \
2588                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2589                 libdir localedir mandir runstatedir
2590 do
2591   eval ac_val=\$$ac_var
2592   # Remove trailing slashes.
2593   case $ac_val in
2594     */ )
2595       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2596       eval $ac_var=\$ac_val;;
2597   esac
2598   # Be sure to have absolute directory names.
2599   case $ac_val in
2600     [\\/$]* | ?:[\\/]* )  continue;;
2601     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2602   esac
2603   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2604 done
2605
2606 # There might be people who depend on the old broken behavior: `$host'
2607 # used to hold the argument of --host etc.
2608 # FIXME: To remove some day.
2609 build=$build_alias
2610 host=$host_alias
2611 target=$target_alias
2612
2613 # FIXME: To remove some day.
2614 if test "x$host_alias" != x; then
2615   if test "x$build_alias" = x; then
2616     cross_compiling=maybe
2617   elif test "x$build_alias" != "x$host_alias"; then
2618     cross_compiling=yes
2619   fi
2620 fi
2621
2622 ac_tool_prefix=
2623 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2624
2625 test "$silent" = yes && exec 6>/dev/null
2626
2627
2628 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2629 ac_ls_di=`ls -di .` &&
2630 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2631   as_fn_error $? "working directory cannot be determined"
2632 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2633   as_fn_error $? "pwd does not report name of working directory"
2634
2635
2636 # Find the source files, if location was not specified.
2637 if test -z "$srcdir"; then
2638   ac_srcdir_defaulted=yes
2639   # Try the directory containing this script, then the parent directory.
2640   ac_confdir=`$as_dirname -- "$as_myself" ||
2641 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2642          X"$as_myself" : 'X\(//\)[^/]' \| \
2643          X"$as_myself" : 'X\(//\)$' \| \
2644          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2645 $as_echo X"$as_myself" |
2646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2647             s//\1/
2648             q
2649           }
2650           /^X\(\/\/\)[^/].*/{
2651             s//\1/
2652             q
2653           }
2654           /^X\(\/\/\)$/{
2655             s//\1/
2656             q
2657           }
2658           /^X\(\/\).*/{
2659             s//\1/
2660             q
2661           }
2662           s/.*/./; q'`
2663   srcdir=$ac_confdir
2664   if test ! -r "$srcdir/$ac_unique_file"; then
2665     srcdir=..
2666   fi
2667 else
2668   ac_srcdir_defaulted=no
2669 fi
2670 if test ! -r "$srcdir/$ac_unique_file"; then
2671   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2672   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2673 fi
2674 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2675 ac_abs_confdir=`(
2676         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2677         pwd)`
2678 # When building in place, set srcdir=.
2679 if test "$ac_abs_confdir" = "$ac_pwd"; then
2680   srcdir=.
2681 fi
2682 # Remove unnecessary trailing slashes from srcdir.
2683 # Double slashes in file names in object file debugging info
2684 # mess up M-x gdb in Emacs.
2685 case $srcdir in
2686 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2687 esac
2688 for ac_var in $ac_precious_vars; do
2689   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2690   eval ac_env_${ac_var}_value=\$${ac_var}
2691   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2692   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2693 done
2694
2695 #
2696 # Report the --help message.
2697 #
2698 if test "$ac_init_help" = "long"; then
2699   # Omit some internal or obsolete options to make the list less imposing.
2700   # This message is too long to be a string in the A/UX 3.1 sh.
2701   cat <<_ACEOF
2702 \`configure' configures gettext-tools 0.19.7 to adapt to many kinds of systems.
2703
2704 Usage: $0 [OPTION]... [VAR=VALUE]...
2705
2706 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2707 VAR=VALUE.  See below for descriptions of some of the useful variables.
2708
2709 Defaults for the options are specified in brackets.
2710
2711 Configuration:
2712   -h, --help              display this help and exit
2713       --help=short        display options specific to this package
2714       --help=recursive    display the short help of all the included packages
2715   -V, --version           display version information and exit
2716   -q, --quiet, --silent   do not print \`checking ...' messages
2717       --cache-file=FILE   cache test results in FILE [disabled]
2718   -C, --config-cache      alias for \`--cache-file=config.cache'
2719   -n, --no-create         do not create output files
2720       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2721
2722 Installation directories:
2723   --prefix=PREFIX         install architecture-independent files in PREFIX
2724                           [$ac_default_prefix]
2725   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2726                           [PREFIX]
2727
2728 By default, \`make install' will install all the files in
2729 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2730 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2731 for instance \`--prefix=\$HOME'.
2732
2733 For better control, use the options below.
2734
2735 Fine tuning of the installation directories:
2736   --bindir=DIR            user executables [EPREFIX/bin]
2737   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2738   --libexecdir=DIR        program executables [EPREFIX/libexec]
2739   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2740   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2741   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2742   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2743   --libdir=DIR            object code libraries [EPREFIX/lib]
2744   --includedir=DIR        C header files [PREFIX/include]
2745   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2746   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2747   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2748   --infodir=DIR           info documentation [DATAROOTDIR/info]
2749   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2750   --mandir=DIR            man documentation [DATAROOTDIR/man]
2751   --docdir=DIR            documentation root [DATAROOTDIR/doc/gettext-tools]
2752   --htmldir=DIR           html documentation [DOCDIR]
2753   --dvidir=DIR            dvi documentation [DOCDIR]
2754   --pdfdir=DIR            pdf documentation [DOCDIR]
2755   --psdir=DIR             ps documentation [DOCDIR]
2756 _ACEOF
2757
2758   cat <<\_ACEOF
2759
2760 Program names:
2761   --program-prefix=PREFIX            prepend PREFIX to installed program names
2762   --program-suffix=SUFFIX            append SUFFIX to installed program names
2763   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2764
2765 System types:
2766   --build=BUILD     configure for building on BUILD [guessed]
2767   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2768 _ACEOF
2769 fi
2770
2771 if test -n "$ac_init_help"; then
2772   case $ac_init_help in
2773      short | recursive ) echo "Configuration of gettext-tools 0.19.7:";;
2774    esac
2775   cat <<\_ACEOF
2776
2777 Optional Features:
2778   --disable-option-checking  ignore unrecognized --enable/--with options
2779   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2780   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2781   --enable-silent-rules   less verbose build output (undo: "make V=1")
2782   --disable-silent-rules  verbose build output (undo: "make V=0")
2783   --enable-dependency-tracking
2784                           do not reject slow dependency extractors
2785   --disable-dependency-tracking
2786                           speeds up one-time build
2787   --disable-java          do not build Java sources
2788   --disable-native-java   do not compile Java to native executables
2789   --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
2790   --disable-largefile     omit support for large files
2791   --enable-threads={posix|solaris|pth|windows}
2792                           specify multithreading API
2793   --disable-threads       build without multithread safety
2794   --enable-shared[=PKGS]  build shared libraries [default=yes]
2795   --enable-static[=PKGS]  build static libraries [default=yes]
2796   --enable-fast-install[=PKGS]
2797                           optimize for fast installation [default=yes]
2798   --disable-libtool-lock  avoid locking (might break parallel builds)
2799   --disable-nls           do not use Native Language Support
2800   --disable-rpath         do not hardcode runtime library paths
2801   --disable-acl           do not support ACLs
2802   --disable-c++           do not build C++ sources
2803   --disable-openmp        do not use OpenMP
2804   --enable-relocatable    install a package that can be moved in the file
2805                           system
2806   --disable-curses        do not use libncurses, libtermcap even if they exist
2807
2808 Optional Packages:
2809   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2810   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2811   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2812                           both]
2813   --with-aix-soname=aix|svr4|both
2814                           shared library versioning (aka "SONAME") variant to
2815                           provide on AIX, [default=aix].
2816   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2817   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2818                           compiler's sysroot if not specified).
2819   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2820   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2821   --without-libpth-prefix     don't search for libpth in includedir and libdir
2822   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2823   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2824   --with-included-gettext use the GNU gettext library included here
2825   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2826   --without-libintl-prefix     don't search for libintl in includedir and libdir
2827   --with-included-glib    use the glib2 included here
2828   --with-libglib-2.0-prefix[=DIR]  search for libglib-2.0 in DIR/include and DIR/lib
2829   --without-libglib-2.0-prefix     don't search for libglib-2.0 in includedir and libdir
2830   --with-included-libcroco  use the libcroco included here
2831   --with-libcroco-0.6-prefix[=DIR]  search for libcroco-0.6 in DIR/include and DIR/lib
2832   --without-libcroco-0.6-prefix     don't search for libcroco-0.6 in includedir and libdir
2833   --with-included-libunistring  use the libunistring parts included here
2834   --with-libunistring-prefix[=DIR]  search for libunistring in DIR/include and DIR/lib
2835   --without-libunistring-prefix     don't search for libunistring in includedir and libdir
2836   --with-included-libxml  use the libxml2 included here
2837   --with-libxml2-prefix[=DIR]  search for libxml2 in DIR/include and DIR/lib
2838   --without-libxml2-prefix     don't search for libxml2 in includedir and libdir
2839   --with-libncurses-prefix[=DIR]  search for libncurses in DIR/include and DIR/lib
2840   --without-libncurses-prefix     don't search for libncurses in includedir and libdir
2841   --with-libtermcap-prefix[=DIR]  search for libtermcap in DIR/include and DIR/lib
2842   --without-libtermcap-prefix     don't search for libtermcap in includedir and libdir
2843   --with-libxcurses-prefix[=DIR]  search for libxcurses in DIR/include and DIR/lib
2844   --without-libxcurses-prefix     don't search for libxcurses in includedir and libdir
2845   --with-libcurses-prefix[=DIR]  search for libcurses in DIR/include and DIR/lib
2846   --without-libcurses-prefix     don't search for libcurses in includedir and libdir
2847   --without-included-regex
2848                           don't compile regex; this is the default on systems
2849                           with recent-enough versions of the GNU C Library
2850                           (use with caution on other systems).
2851   --without-emacs         do not use Emacs, don't install po-mode
2852   --with-lispdir          override the default lisp directory
2853   --without-git           don't use git to compress the infrastructure archive
2854   --with-cvs              use cvs to compress the infrastructure archive
2855                           (deprecated)
2856   --without-bzip2         don't use bzip2 to compress the infrastructure archive
2857   --without-xz            don't use xz to compress the infrastructure archive
2858
2859 Some influential environment variables:
2860   CC          C compiler command
2861   CFLAGS      C compiler flags
2862   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2863               nonstandard directory <lib dir>
2864   LIBS        libraries to pass to the linker, e.g. -l<library>
2865   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2866               you have headers in a nonstandard directory <include dir>
2867   YACC        The `Yet Another Compiler Compiler' implementation to use.
2868               Defaults to the first program found out of: `bison -y', `byacc',
2869               `yacc'.
2870   YFLAGS      The list of arguments that will be passed by default to $YACC.
2871               This script will default YFLAGS to the empty string to avoid a
2872               default value of `-d' given by some make applications.
2873   GCJ         Java native code compiler command
2874   GCJFLAGS    Java native code compiler flags
2875   CPP         C preprocessor
2876   LT_SYS_LIBRARY_PATH
2877               User-defined run-time library search path.
2878   CXX         C++ compiler command
2879   CXXFLAGS    C++ compiler flags
2880   EMACS       the Emacs editor command
2881   EMACSLOADPATH
2882               the Emacs library search path
2883   CXXCPP      C++ preprocessor
2884
2885 Use these variables to override the choices made by `configure' or to help
2886 it to find libraries and programs with nonstandard names/locations.
2887
2888 Report bugs to <bug-gnu-gettext@gnu.org>.
2889 _ACEOF
2890 ac_status=$?
2891 fi
2892
2893 if test "$ac_init_help" = "recursive"; then
2894   # If there are subdirs, report their specific --help.
2895   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2896     test -d "$ac_dir" ||
2897       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2898       continue
2899     ac_builddir=.
2900
2901 case "$ac_dir" in
2902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2903 *)
2904   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2905   # A ".." for each directory in $ac_dir_suffix.
2906   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2907   case $ac_top_builddir_sub in
2908   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2909   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2910   esac ;;
2911 esac
2912 ac_abs_top_builddir=$ac_pwd
2913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2914 # for backward compatibility:
2915 ac_top_builddir=$ac_top_build_prefix
2916
2917 case $srcdir in
2918   .)  # We are building in place.
2919     ac_srcdir=.
2920     ac_top_srcdir=$ac_top_builddir_sub
2921     ac_abs_top_srcdir=$ac_pwd ;;
2922   [\\/]* | ?:[\\/]* )  # Absolute name.
2923     ac_srcdir=$srcdir$ac_dir_suffix;
2924     ac_top_srcdir=$srcdir
2925     ac_abs_top_srcdir=$srcdir ;;
2926   *) # Relative name.
2927     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2928     ac_top_srcdir=$ac_top_build_prefix$srcdir
2929     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2930 esac
2931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2932
2933     cd "$ac_dir" || { ac_status=$?; continue; }
2934     # Check for guested configure.
2935     if test -f "$ac_srcdir/configure.gnu"; then
2936       echo &&
2937       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2938     elif test -f "$ac_srcdir/configure"; then
2939       echo &&
2940       $SHELL "$ac_srcdir/configure" --help=recursive
2941     else
2942       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2943     fi || ac_status=$?
2944     cd "$ac_pwd" || { ac_status=$?; break; }
2945   done
2946 fi
2947
2948 test -n "$ac_init_help" && exit $ac_status
2949 if $ac_init_version; then
2950   cat <<\_ACEOF
2951 gettext-tools configure 0.19.7
2952 generated by GNU Autoconf 2.69
2953
2954 Copyright (C) 2012 Free Software Foundation, Inc.
2955 This configure script is free software; the Free Software Foundation
2956 gives unlimited permission to copy, distribute and modify it.
2957 _ACEOF
2958   exit
2959 fi
2960
2961 ## ------------------------ ##
2962 ## Autoconf initialization. ##
2963 ## ------------------------ ##
2964
2965 # ac_fn_c_try_compile LINENO
2966 # --------------------------
2967 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2968 ac_fn_c_try_compile ()
2969 {
2970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2971   rm -f conftest.$ac_objext
2972   if { { ac_try="$ac_compile"
2973 case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 $as_echo "$ac_try_echo"; } >&5
2979   (eval "$ac_compile") 2>conftest.err
2980   ac_status=$?
2981   if test -s conftest.err; then
2982     grep -v '^ *+' conftest.err >conftest.er1
2983     cat conftest.er1 >&5
2984     mv -f conftest.er1 conftest.err
2985   fi
2986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987   test $ac_status = 0; } && {
2988          test -z "$ac_c_werror_flag" ||
2989          test ! -s conftest.err
2990        } && test -s conftest.$ac_objext; then :
2991   ac_retval=0
2992 else
2993   $as_echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996         ac_retval=1
2997 fi
2998   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2999   as_fn_set_status $ac_retval
3000
3001 } # ac_fn_c_try_compile
3002
3003 # ac_fn_c_try_cpp LINENO
3004 # ----------------------
3005 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3006 ac_fn_c_try_cpp ()
3007 {
3008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3009   if { { ac_try="$ac_cpp conftest.$ac_ext"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015 $as_echo "$ac_try_echo"; } >&5
3016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3017   ac_status=$?
3018   if test -s conftest.err; then
3019     grep -v '^ *+' conftest.err >conftest.er1
3020     cat conftest.er1 >&5
3021     mv -f conftest.er1 conftest.err
3022   fi
3023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024   test $ac_status = 0; } > conftest.i && {
3025          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3026          test ! -s conftest.err
3027        }; then :
3028   ac_retval=0
3029 else
3030   $as_echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033     ac_retval=1
3034 fi
3035   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3036   as_fn_set_status $ac_retval
3037
3038 } # ac_fn_c_try_cpp
3039
3040 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3041 # -------------------------------------------------------
3042 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
3043 # the include files in INCLUDES and setting the cache variable VAR
3044 # accordingly.
3045 ac_fn_c_check_header_mongrel ()
3046 {
3047   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3048   if eval \${$3+:} false; then :
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3050 $as_echo_n "checking for $2... " >&6; }
3051 if eval \${$3+:} false; then :
3052   $as_echo_n "(cached) " >&6
3053 fi
3054 eval ac_res=\$$3
3055                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3056 $as_echo "$ac_res" >&6; }
3057 else
3058   # Is the header compilable?
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3060 $as_echo_n "checking $2 usability... " >&6; }
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h.  */
3063 $4
3064 #include <$2>
3065 _ACEOF
3066 if ac_fn_c_try_compile "$LINENO"; then :
3067   ac_header_compiler=yes
3068 else
3069   ac_header_compiler=no
3070 fi
3071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3073 $as_echo "$ac_header_compiler" >&6; }
3074
3075 # Is the header present?
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3077 $as_echo_n "checking $2 presence... " >&6; }
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h.  */
3080 #include <$2>
3081 _ACEOF
3082 if ac_fn_c_try_cpp "$LINENO"; then :
3083   ac_header_preproc=yes
3084 else
3085   ac_header_preproc=no
3086 fi
3087 rm -f conftest.err conftest.i conftest.$ac_ext
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3089 $as_echo "$ac_header_preproc" >&6; }
3090
3091 # So?  What about this header?
3092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3093   yes:no: )
3094     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3095 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3096     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3097 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3098     ;;
3099   no:yes:* )
3100     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3101 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3102     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3103 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3104     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3105 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3106     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3107 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3108     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3109 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3110 ( $as_echo "## -------------------------------------- ##
3111 ## Report this to bug-gnu-gettext@gnu.org ##
3112 ## -------------------------------------- ##"
3113      ) | sed "s/^/$as_me: WARNING:     /" >&2
3114     ;;
3115 esac
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3117 $as_echo_n "checking for $2... " >&6; }
3118 if eval \${$3+:} false; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   eval "$3=\$ac_header_compiler"
3122 fi
3123 eval ac_res=\$$3
3124                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3125 $as_echo "$ac_res" >&6; }
3126 fi
3127   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3128
3129 } # ac_fn_c_check_header_mongrel
3130
3131 # ac_fn_c_try_run LINENO
3132 # ----------------------
3133 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3134 # that executables *can* be run.
3135 ac_fn_c_try_run ()
3136 {
3137   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3138   if { { ac_try="$ac_link"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145   (eval "$ac_link") 2>&5
3146   ac_status=$?
3147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3149   { { case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158   test $ac_status = 0; }; }; then :
3159   ac_retval=0
3160 else
3161   $as_echo "$as_me: program exited with status $ac_status" >&5
3162        $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165        ac_retval=$ac_status
3166 fi
3167   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3168   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3169   as_fn_set_status $ac_retval
3170
3171 } # ac_fn_c_try_run
3172
3173 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3174 # -------------------------------------------------------
3175 # Tests whether HEADER exists and can be compiled using the include files in
3176 # INCLUDES, setting the cache variable VAR accordingly.
3177 ac_fn_c_check_header_compile ()
3178 {
3179   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3181 $as_echo_n "checking for $2... " >&6; }
3182 if eval \${$3+:} false; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h.  */
3187 $4
3188 #include <$2>
3189 _ACEOF
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191   eval "$3=yes"
3192 else
3193   eval "$3=no"
3194 fi
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197 eval ac_res=\$$3
3198                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3199 $as_echo "$ac_res" >&6; }
3200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3201
3202 } # ac_fn_c_check_header_compile
3203
3204 # ac_fn_c_try_link LINENO
3205 # -----------------------
3206 # Try to link conftest.$ac_ext, and return whether this succeeded.
3207 ac_fn_c_try_link ()
3208 {
3209   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3210   rm -f conftest.$ac_objext conftest$ac_exeext
3211   if { { ac_try="$ac_link"
3212 case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218   (eval "$ac_link") 2>conftest.err
3219   ac_status=$?
3220   if test -s conftest.err; then
3221     grep -v '^ *+' conftest.err >conftest.er1
3222     cat conftest.er1 >&5
3223     mv -f conftest.er1 conftest.err
3224   fi
3225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226   test $ac_status = 0; } && {
3227          test -z "$ac_c_werror_flag" ||
3228          test ! -s conftest.err
3229        } && test -s conftest$ac_exeext && {
3230          test "$cross_compiling" = yes ||
3231          test -x conftest$ac_exeext
3232        }; then :
3233   ac_retval=0
3234 else
3235   $as_echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238         ac_retval=1
3239 fi
3240   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3241   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3242   # interfere with the next link command; also delete a directory that is
3243   # left behind by Apple's compiler.  We do this before executing the actions.
3244   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3245   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3246   as_fn_set_status $ac_retval
3247
3248 } # ac_fn_c_try_link
3249
3250 # ac_fn_c_check_func LINENO FUNC VAR
3251 # ----------------------------------
3252 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3253 ac_fn_c_check_func ()
3254 {
3255   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3257 $as_echo_n "checking for $2... " >&6; }
3258 if eval \${$3+:} false; then :
3259   $as_echo_n "(cached) " >&6
3260 else
3261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h.  */
3263 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3265 #define $2 innocuous_$2
3266
3267 /* System header to define __stub macros and hopefully few prototypes,
3268     which can conflict with char $2 (); below.
3269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3270     <limits.h> exists even on freestanding compilers.  */
3271
3272 #ifdef __STDC__
3273 # include <limits.h>
3274 #else
3275 # include <assert.h>
3276 #endif
3277
3278 #undef $2
3279
3280 /* Override any GCC internal prototype to avoid an error.
3281    Use char because int might match the return type of a GCC
3282    builtin and then its argument prototype would still apply.  */
3283 #ifdef __cplusplus
3284 extern "C"
3285 #endif
3286 char $2 ();
3287 /* The GNU C library defines this for functions which it implements
3288     to always fail with ENOSYS.  Some functions are actually named
3289     something starting with __ and the normal name is an alias.  */
3290 #if defined __stub_$2 || defined __stub___$2
3291 choke me
3292 #endif
3293
3294 int
3295 main ()
3296 {
3297 return $2 ();
3298   ;
3299   return 0;
3300 }
3301 _ACEOF
3302 if ac_fn_c_try_link "$LINENO"; then :
3303   eval "$3=yes"
3304 else
3305   eval "$3=no"
3306 fi
3307 rm -f core conftest.err conftest.$ac_objext \
3308     conftest$ac_exeext conftest.$ac_ext
3309 fi
3310 eval ac_res=\$$3
3311                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3312 $as_echo "$ac_res" >&6; }
3313   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3314
3315 } # ac_fn_c_check_func
3316
3317 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3318 # -------------------------------------------
3319 # Tests whether TYPE exists after having included INCLUDES, setting cache
3320 # variable VAR accordingly.
3321 ac_fn_c_check_type ()
3322 {
3323   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3325 $as_echo_n "checking for $2... " >&6; }
3326 if eval \${$3+:} false; then :
3327   $as_echo_n "(cached) " >&6
3328 else
3329   eval "$3=no"
3330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h.  */
3332 $4
3333 int
3334 main ()
3335 {
3336 if (sizeof ($2))
3337          return 0;
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h.  */
3345 $4
3346 int
3347 main ()
3348 {
3349 if (sizeof (($2)))
3350             return 0;
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 if ac_fn_c_try_compile "$LINENO"; then :
3356
3357 else
3358   eval "$3=yes"
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 fi
3364 eval ac_res=\$$3
3365                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3366 $as_echo "$ac_res" >&6; }
3367   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3368
3369 } # ac_fn_c_check_type
3370
3371 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3372 # ---------------------------------------------
3373 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3374 # accordingly.
3375 ac_fn_c_check_decl ()
3376 {
3377   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3378   as_decl_name=`echo $2|sed 's/ *(.*//'`
3379   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3381 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3382 if eval \${$3+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h.  */
3387 $4
3388 int
3389 main ()
3390 {
3391 #ifndef $as_decl_name
3392 #ifdef __cplusplus
3393   (void) $as_decl_use;
3394 #else
3395   (void) $as_decl_name;
3396 #endif
3397 #endif
3398
3399   ;
3400   return 0;
3401 }
3402 _ACEOF
3403 if ac_fn_c_try_compile "$LINENO"; then :
3404   eval "$3=yes"
3405 else
3406   eval "$3=no"
3407 fi
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 fi
3410 eval ac_res=\$$3
3411                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3412 $as_echo "$ac_res" >&6; }
3413   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3414
3415 } # ac_fn_c_check_decl
3416
3417 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3418 # --------------------------------------------
3419 # Tries to find the compile-time value of EXPR in a program that includes
3420 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3421 # computed
3422 ac_fn_c_compute_int ()
3423 {
3424   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3425   if test "$cross_compiling" = yes; then
3426     # Depending upon the size, compute the lo and hi bounds.
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h.  */
3429 $4
3430 int
3431 main ()
3432 {
3433 static int test_array [1 - 2 * !(($2) >= 0)];
3434 test_array [0] = 0;
3435 return test_array [0];
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442   ac_lo=0 ac_mid=0
3443   while :; do
3444     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446 $4
3447 int
3448 main ()
3449 {
3450 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3451 test_array [0] = 0;
3452 return test_array [0];
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459   ac_hi=$ac_mid; break
3460 else
3461   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3462                         if test $ac_lo -le $ac_mid; then
3463                           ac_lo= ac_hi=
3464                           break
3465                         fi
3466                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3467 fi
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469   done
3470 else
3471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h.  */
3473 $4
3474 int
3475 main ()
3476 {
3477 static int test_array [1 - 2 * !(($2) < 0)];
3478 test_array [0] = 0;
3479 return test_array [0];
3480
3481   ;
3482   return 0;
3483 }
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"; then :
3486   ac_hi=-1 ac_mid=-1
3487   while :; do
3488     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490 $4
3491 int
3492 main ()
3493 {
3494 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3495 test_array [0] = 0;
3496 return test_array [0];
3497
3498   ;
3499   return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503   ac_lo=$ac_mid; break
3504 else
3505   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3506                         if test $ac_mid -le $ac_hi; then
3507                           ac_lo= ac_hi=
3508                           break
3509                         fi
3510                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513   done
3514 else
3515   ac_lo= ac_hi=
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 # Binary search between lo and hi bounds.
3521 while test "x$ac_lo" != "x$ac_hi"; do
3522   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525 $4
3526 int
3527 main ()
3528 {
3529 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3530 test_array [0] = 0;
3531 return test_array [0];
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538   ac_hi=$ac_mid
3539 else
3540   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3541 fi
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 done
3544 case $ac_lo in #((
3545 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3546 '') ac_retval=1 ;;
3547 esac
3548   else
3549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551 $4
3552 static long int longval () { return $2; }
3553 static unsigned long int ulongval () { return $2; }
3554 #include <stdio.h>
3555 #include <stdlib.h>
3556 int
3557 main ()
3558 {
3559
3560   FILE *f = fopen ("conftest.val", "w");
3561   if (! f)
3562     return 1;
3563   if (($2) < 0)
3564     {
3565       long int i = longval ();
3566       if (i != ($2))
3567         return 1;
3568       fprintf (f, "%ld", i);
3569     }
3570   else
3571     {
3572       unsigned long int i = ulongval ();
3573       if (i != ($2))
3574         return 1;
3575       fprintf (f, "%lu", i);
3576     }
3577   /* Do not output a trailing newline, as this causes \r\n confusion
3578      on some platforms.  */
3579   return ferror (f) || fclose (f) != 0;
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 if ac_fn_c_try_run "$LINENO"; then :
3586   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3587 else
3588   ac_retval=1
3589 fi
3590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3591   conftest.$ac_objext conftest.beam conftest.$ac_ext
3592 rm -f conftest.val
3593
3594   fi
3595   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3596   as_fn_set_status $ac_retval
3597
3598 } # ac_fn_c_compute_int
3599
3600 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3601 # ----------------------------------------------------
3602 # Tries to find if the field MEMBER exists in type AGGR, after including
3603 # INCLUDES, setting cache variable VAR accordingly.
3604 ac_fn_c_check_member ()
3605 {
3606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3608 $as_echo_n "checking for $2.$3... " >&6; }
3609 if eval \${$4+:} false; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h.  */
3614 $5
3615 int
3616 main ()
3617 {
3618 static $2 ac_aggr;
3619 if (ac_aggr.$3)
3620 return 0;
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 if ac_fn_c_try_compile "$LINENO"; then :
3626   eval "$4=yes"
3627 else
3628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h.  */
3630 $5
3631 int
3632 main ()
3633 {
3634 static $2 ac_aggr;
3635 if (sizeof ac_aggr.$3)
3636 return 0;
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642   eval "$4=yes"
3643 else
3644   eval "$4=no"
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 fi
3650 eval ac_res=\$$4
3651                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3652 $as_echo "$ac_res" >&6; }
3653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3654
3655 } # ac_fn_c_check_member
3656
3657 # ac_fn_cxx_try_compile LINENO
3658 # ----------------------------
3659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
3660 ac_fn_cxx_try_compile ()
3661 {
3662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3663   rm -f conftest.$ac_objext
3664   if { { ac_try="$ac_compile"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671   (eval "$ac_compile") 2>conftest.err
3672   ac_status=$?
3673   if test -s conftest.err; then
3674     grep -v '^ *+' conftest.err >conftest.er1
3675     cat conftest.er1 >&5
3676     mv -f conftest.er1 conftest.err
3677   fi
3678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679   test $ac_status = 0; } && {
3680          test -z "$ac_cxx_werror_flag" ||
3681          test ! -s conftest.err
3682        } && test -s conftest.$ac_objext; then :
3683   ac_retval=0
3684 else
3685   $as_echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688         ac_retval=1
3689 fi
3690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3691   as_fn_set_status $ac_retval
3692
3693 } # ac_fn_cxx_try_compile
3694
3695 # ac_fn_cxx_try_cpp LINENO
3696 # ------------------------
3697 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3698 ac_fn_cxx_try_cpp ()
3699 {
3700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3701   if { { ac_try="$ac_cpp conftest.$ac_ext"
3702 case "(($ac_try" in
3703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704   *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707 $as_echo "$ac_try_echo"; } >&5
3708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3709   ac_status=$?
3710   if test -s conftest.err; then
3711     grep -v '^ *+' conftest.err >conftest.er1
3712     cat conftest.er1 >&5
3713     mv -f conftest.er1 conftest.err
3714   fi
3715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716   test $ac_status = 0; } > conftest.i && {
3717          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3718          test ! -s conftest.err
3719        }; then :
3720   ac_retval=0
3721 else
3722   $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725     ac_retval=1
3726 fi
3727   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3728   as_fn_set_status $ac_retval
3729
3730 } # ac_fn_cxx_try_cpp
3731
3732 # ac_fn_cxx_try_link LINENO
3733 # -------------------------
3734 # Try to link conftest.$ac_ext, and return whether this succeeded.
3735 ac_fn_cxx_try_link ()
3736 {
3737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3738   rm -f conftest.$ac_objext conftest$ac_exeext
3739   if { { ac_try="$ac_link"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746   (eval "$ac_link") 2>conftest.err
3747   ac_status=$?
3748   if test -s conftest.err; then
3749     grep -v '^ *+' conftest.err >conftest.er1
3750     cat conftest.er1 >&5
3751     mv -f conftest.er1 conftest.err
3752   fi
3753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754   test $ac_status = 0; } && {
3755          test -z "$ac_cxx_werror_flag" ||
3756          test ! -s conftest.err
3757        } && test -s conftest$ac_exeext && {
3758          test "$cross_compiling" = yes ||
3759          test -x conftest$ac_exeext
3760        }; then :
3761   ac_retval=0
3762 else
3763   $as_echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766         ac_retval=1
3767 fi
3768   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3769   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3770   # interfere with the next link command; also delete a directory that is
3771   # left behind by Apple's compiler.  We do this before executing the actions.
3772   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3773   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3774   as_fn_set_status $ac_retval
3775
3776 } # ac_fn_cxx_try_link
3777 cat >config.log <<_ACEOF
3778 This file contains any messages produced by compilers while
3779 running configure, to aid debugging if configure makes a mistake.
3780
3781 It was created by gettext-tools $as_me 0.19.7, which was
3782 generated by GNU Autoconf 2.69.  Invocation command line was
3783
3784   $ $0 $@
3785
3786 _ACEOF
3787 exec 5>>config.log
3788 {
3789 cat <<_ASUNAME
3790 ## --------- ##
3791 ## Platform. ##
3792 ## --------- ##
3793
3794 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3795 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3796 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3797 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3798 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3799
3800 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3801 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3802
3803 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3804 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3805 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3806 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3807 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3808 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3809 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3810
3811 _ASUNAME
3812
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818     $as_echo "PATH: $as_dir"
3819   done
3820 IFS=$as_save_IFS
3821
3822 } >&5
3823
3824 cat >&5 <<_ACEOF
3825
3826
3827 ## ----------- ##
3828 ## Core tests. ##
3829 ## ----------- ##
3830
3831 _ACEOF
3832
3833
3834 # Keep a trace of the command line.
3835 # Strip out --no-create and --no-recursion so they do not pile up.
3836 # Strip out --silent because we don't want to record it for future runs.
3837 # Also quote any args containing shell meta-characters.
3838 # Make two passes to allow for proper duplicate-argument suppression.
3839 ac_configure_args=
3840 ac_configure_args0=
3841 ac_configure_args1=
3842 ac_must_keep_next=false
3843 for ac_pass in 1 2
3844 do
3845   for ac_arg
3846   do
3847     case $ac_arg in
3848     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3849     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3850     | -silent | --silent | --silen | --sile | --sil)
3851       continue ;;
3852     *\'*)
3853       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3854     esac
3855     case $ac_pass in
3856     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3857     2)
3858       as_fn_append ac_configure_args1 " '$ac_arg'"
3859       if test $ac_must_keep_next = true; then
3860         ac_must_keep_next=false # Got value, back to normal.
3861       else
3862         case $ac_arg in
3863           *=* | --config-cache | -C | -disable-* | --disable-* \
3864           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3865           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3866           | -with-* | --with-* | -without-* | --without-* | --x)
3867             case "$ac_configure_args0 " in
3868               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3869             esac
3870             ;;
3871           -* ) ac_must_keep_next=true ;;
3872         esac
3873       fi
3874       as_fn_append ac_configure_args " '$ac_arg'"
3875       ;;
3876     esac
3877   done
3878 done
3879 { ac_configure_args0=; unset ac_configure_args0;}
3880 { ac_configure_args1=; unset ac_configure_args1;}
3881
3882 # When interrupted or exit'd, cleanup temporary files, and complete
3883 # config.log.  We remove comments because anyway the quotes in there
3884 # would cause problems or look ugly.
3885 # WARNING: Use '\'' to represent an apostrophe within the trap.
3886 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3887 trap 'exit_status=$?
3888   # Save into config.log some information that might help in debugging.
3889   {
3890     echo
3891
3892     $as_echo "## ---------------- ##
3893 ## Cache variables. ##
3894 ## ---------------- ##"
3895     echo
3896     # The following way of writing the cache mishandles newlines in values,
3897 (
3898   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3899     eval ac_val=\$$ac_var
3900     case $ac_val in #(
3901     *${as_nl}*)
3902       case $ac_var in #(
3903       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3904 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3905       esac
3906       case $ac_var in #(
3907       _ | IFS | as_nl) ;; #(
3908       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3909       *) { eval $ac_var=; unset $ac_var;} ;;
3910       esac ;;
3911     esac
3912   done
3913   (set) 2>&1 |
3914     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3915     *${as_nl}ac_space=\ *)
3916       sed -n \
3917         "s/'\''/'\''\\\\'\'''\''/g;
3918           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3919       ;; #(
3920     *)
3921       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3922       ;;
3923     esac |
3924     sort
3925 )
3926     echo
3927
3928     $as_echo "## ----------------- ##
3929 ## Output variables. ##
3930 ## ----------------- ##"
3931     echo
3932     for ac_var in $ac_subst_vars
3933     do
3934       eval ac_val=\$$ac_var
3935       case $ac_val in
3936       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3937       esac
3938       $as_echo "$ac_var='\''$ac_val'\''"
3939     done | sort
3940     echo
3941
3942     if test -n "$ac_subst_files"; then
3943       $as_echo "## ------------------- ##
3944 ## File substitutions. ##
3945 ## ------------------- ##"
3946       echo
3947       for ac_var in $ac_subst_files
3948       do
3949         eval ac_val=\$$ac_var
3950         case $ac_val in
3951         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3952         esac
3953         $as_echo "$ac_var='\''$ac_val'\''"
3954       done | sort
3955       echo
3956     fi
3957
3958     if test -s confdefs.h; then
3959       $as_echo "## ----------- ##
3960 ## confdefs.h. ##
3961 ## ----------- ##"
3962       echo
3963       cat confdefs.h
3964       echo
3965     fi
3966     test "$ac_signal" != 0 &&
3967       $as_echo "$as_me: caught signal $ac_signal"
3968     $as_echo "$as_me: exit $exit_status"
3969   } >&5
3970   rm -f core *.core core.conftest.* &&
3971     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3972     exit $exit_status
3973 ' 0
3974 for ac_signal in 1 2 13 15; do
3975   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3976 done
3977 ac_signal=0
3978
3979 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3980 rm -f -r conftest* confdefs.h
3981
3982 $as_echo "/* confdefs.h */" > confdefs.h
3983
3984 # Predefined preprocessor variables.
3985
3986 cat >>confdefs.h <<_ACEOF
3987 #define PACKAGE_NAME "$PACKAGE_NAME"
3988 _ACEOF
3989
3990 cat >>confdefs.h <<_ACEOF
3991 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3992 _ACEOF
3993
3994 cat >>confdefs.h <<_ACEOF
3995 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3996 _ACEOF
3997
3998 cat >>confdefs.h <<_ACEOF
3999 #define PACKAGE_STRING "$PACKAGE_STRING"
4000 _ACEOF
4001
4002 cat >>confdefs.h <<_ACEOF
4003 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
4004 _ACEOF
4005
4006 cat >>confdefs.h <<_ACEOF
4007 #define PACKAGE_URL "$PACKAGE_URL"
4008 _ACEOF
4009
4010
4011 # Let the site file select an alternate cache file if it wants to.
4012 # Prefer an explicitly selected file to automatically selected ones.
4013 ac_site_file1=NONE
4014 ac_site_file2=NONE
4015 if test -n "$CONFIG_SITE"; then
4016   # We do not want a PATH search for config.site.
4017   case $CONFIG_SITE in #((
4018     -*)  ac_site_file1=./$CONFIG_SITE;;
4019     */*) ac_site_file1=$CONFIG_SITE;;
4020     *)   ac_site_file1=./$CONFIG_SITE;;
4021   esac
4022 elif test "x$prefix" != xNONE; then
4023   ac_site_file1=$prefix/share/config.site
4024   ac_site_file2=$prefix/etc/config.site
4025 else
4026   ac_site_file1=$ac_default_prefix/share/config.site
4027   ac_site_file2=$ac_default_prefix/etc/config.site
4028 fi
4029 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
4030 do
4031   test "x$ac_site_file" = xNONE && continue
4032   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
4033     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
4034 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
4035     sed 's/^/| /' "$ac_site_file" >&5
4036     . "$ac_site_file" \
4037       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "failed to load site script $ac_site_file
4040 See \`config.log' for more details" "$LINENO" 5; }
4041   fi
4042 done
4043
4044 if test -r "$cache_file"; then
4045   # Some versions of bash will fail to source /dev/null (special files
4046   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
4047   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4048     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4049 $as_echo "$as_me: loading cache $cache_file" >&6;}
4050     case $cache_file in
4051       [\\/]* | ?:[\\/]* ) . "$cache_file";;
4052       *)                      . "./$cache_file";;
4053     esac
4054   fi
4055 else
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4057 $as_echo "$as_me: creating cache $cache_file" >&6;}
4058   >$cache_file
4059 fi
4060
4061 gt_needs="$gt_needs need-ngettext"
4062 as_fn_append ac_header_list " stdlib.h"
4063 as_fn_append ac_header_list " unistd.h"
4064 as_fn_append ac_header_list " sys/param.h"
4065 as_fn_append ac_func_list " symlink"
4066 as_fn_append ac_func_list " fchmod"
4067 as_fn_append ac_header_list " string.h"
4068 as_fn_append ac_func_list " canonicalize_file_name"
4069 as_fn_append ac_func_list " getcwd"
4070 as_fn_append ac_func_list " readlink"
4071 as_fn_append ac_func_list " realpath"
4072 as_fn_append ac_func_list " readlinkat"
4073 as_fn_append ac_func_list " _set_invalid_parameter_handler"
4074 as_fn_append ac_header_list " sys/socket.h"
4075 as_fn_append ac_header_list " utime.h"
4076 as_fn_append ac_header_list " dirent.h"
4077 as_fn_append ac_func_list " fcntl"
4078 as_fn_append ac_func_list " btowc"
4079 as_fn_append ac_func_list " isblank"
4080 as_fn_append ac_func_list " iswctype"
4081 as_fn_append ac_func_list " mbsrtowcs"
4082 as_fn_append ac_func_list " mempcpy"
4083 as_fn_append ac_func_list " wmemchr"
4084 as_fn_append ac_func_list " wmemcpy"
4085 as_fn_append ac_func_list " wmempcpy"
4086 as_fn_append ac_header_list " wctype.h"
4087 as_fn_append ac_header_list " sys/stat.h"
4088 as_fn_append ac_func_list " getdelim"
4089 as_fn_append ac_func_list " getdtablesize"
4090 gl_getopt_required=GNU
4091 as_fn_append ac_header_list " getopt.h"
4092 as_fn_append ac_header_list " sys/time.h"
4093 as_fn_append ac_func_list " gettimeofday"
4094 as_fn_append ac_header_list " iconv.h"
4095 as_fn_append ac_func_list " iswcntrl"
4096 as_fn_append ac_func_list " iswblank"
4097 as_fn_append ac_header_list " langinfo.h"
4098 as_fn_append ac_header_list " libcroco-0.6/libcroco/libcroco-config.h"
4099 as_fn_append ac_header_list " libxml2/libxml/xmlexports.h"
4100 as_fn_append ac_header_list " libxml2/libxml/xmlversion.h"
4101 as_fn_append ac_header_list " xlocale.h"
4102 as_fn_append ac_func_list " lstat"
4103 as_fn_append ac_header_list " math.h"
4104 as_fn_append ac_func_list " mbsinit"
4105 as_fn_append ac_func_list " mbrtowc"
4106 as_fn_append ac_func_list " mbslen"
4107 as_fn_append ac_header_list " wchar.h"
4108 as_fn_append ac_func_list " isascii"
4109 as_fn_append ac_header_list " sys/mman.h"
4110 as_fn_append ac_func_list " mprotect"
4111 as_fn_append ac_func_list " select"
4112 as_fn_append ac_func_list " pipe2"
4113 as_fn_append ac_func_list " setenv"
4114 as_fn_append ac_header_list " sched.h"
4115 as_fn_append ac_func_list " secure_getenv"
4116 as_fn_append ac_func_list " sigaction"
4117 as_fn_append ac_func_list " sigaltstack"
4118 as_fn_append ac_func_list " siginterrupt"
4119 as_fn_append ac_func_list " snprintf"
4120 as_fn_append ac_header_list " spawn.h"
4121 as_fn_append ac_header_list " stdint.h"
4122 as_fn_append ac_func_list " stpncpy"
4123 as_fn_append ac_header_list " sys/select.h"
4124 as_fn_append ac_header_list " sys/wait.h"
4125 as_fn_append ac_func_list " pipe"
4126 as_fn_append ac_func_list " vasnprintf"
4127 as_fn_append ac_header_list " features.h"
4128 as_fn_append ac_func_list " wcwidth"
4129 as_fn_append ac_header_list " inttypes.h"
4130 as_fn_append ac_func_list " newlocale"
4131 as_fn_append ac_func_list " sleep"
4132 as_fn_append ac_func_list " wcrtomb"
4133 as_fn_append ac_func_list " wctob"
4134 as_fn_append ac_func_list " mbrlen"
4135 as_fn_append ac_func_list " nl_langinfo"
4136 as_fn_append ac_header_list " malloc.h"
4137 as_fn_append ac_func_list " getrlimit"
4138 as_fn_append ac_func_list " setrlimit"
4139 as_fn_append ac_func_list " uselocale"
4140 # Check that the precious variables saved in the cache have kept the same
4141 # value.
4142 ac_cache_corrupted=false
4143 for ac_var in $ac_precious_vars; do
4144   eval ac_old_set=\$ac_cv_env_${ac_var}_set
4145   eval ac_new_set=\$ac_env_${ac_var}_set
4146   eval ac_old_val=\$ac_cv_env_${ac_var}_value
4147   eval ac_new_val=\$ac_env_${ac_var}_value
4148   case $ac_old_set,$ac_new_set in
4149     set,)
4150       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4151 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4152       ac_cache_corrupted=: ;;
4153     ,set)
4154       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4155 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4156       ac_cache_corrupted=: ;;
4157     ,);;
4158     *)
4159       if test "x$ac_old_val" != "x$ac_new_val"; then
4160         # differences in whitespace do not lead to failure.
4161         ac_old_val_w=`echo x $ac_old_val`
4162         ac_new_val_w=`echo x $ac_new_val`
4163         if test "$ac_old_val_w" != "$ac_new_val_w"; then
4164           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4165 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4166           ac_cache_corrupted=:
4167         else
4168           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4169 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4170           eval $ac_var=\$ac_old_val
4171         fi
4172         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
4173 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
4174         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
4175 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
4176       fi;;
4177   esac
4178   # Pass precious variables to config.status.
4179   if test "$ac_new_set" = set; then
4180     case $ac_new_val in
4181     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4182     *) ac_arg=$ac_var=$ac_new_val ;;
4183     esac
4184     case " $ac_configure_args " in
4185       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
4186       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4187     esac
4188   fi
4189 done
4190 if $ac_cache_corrupted; then
4191   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4194 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
4195   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
4196 fi
4197 ## -------------------- ##
4198 ## Main body of script. ##
4199 ## -------------------- ##
4200
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
4207
4208
4209 ac_aux_dir=
4210 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
4211   if test -f "$ac_dir/install-sh"; then
4212     ac_aux_dir=$ac_dir
4213     ac_install_sh="$ac_aux_dir/install-sh -c"
4214     break
4215   elif test -f "$ac_dir/install.sh"; then
4216     ac_aux_dir=$ac_dir
4217     ac_install_sh="$ac_aux_dir/install.sh -c"
4218     break
4219   elif test -f "$ac_dir/shtool"; then
4220     ac_aux_dir=$ac_dir
4221     ac_install_sh="$ac_aux_dir/shtool install -c"
4222     break
4223   fi
4224 done
4225 if test -z "$ac_aux_dir"; then
4226   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
4227 fi
4228
4229 # These three variables are undocumented and unsupported,
4230 # and are intended to be withdrawn in a future Autoconf release.
4231 # They can cause serious problems if a builder's source tree is in a directory
4232 # whose full name contains unusual characters.
4233 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4234 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4235 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4236
4237
4238 am__api_version='1.15'
4239
4240 # Find a good install program.  We prefer a C program (faster),
4241 # so one script is as good as another.  But avoid the broken or
4242 # incompatible versions:
4243 # SysV /etc/install, /usr/sbin/install
4244 # SunOS /usr/etc/install
4245 # IRIX /sbin/install
4246 # AIX /bin/install
4247 # AmigaOS /C/install, which installs bootblocks on floppy discs
4248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4251 # OS/2's system install, which has a completely different semantic
4252 # ./install, which can be erroneously created by make from ./install.sh.
4253 # Reject install programs that cannot install multiple files.
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4255 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4256 if test -z "$INSTALL"; then
4257 if ${ac_cv_path_install+:} false; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265     # Account for people who put trailing slashes in PATH elements.
4266 case $as_dir/ in #((
4267   ./ | .// | /[cC]/* | \
4268   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4269   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4270   /usr/ucb/* ) ;;
4271   *)
4272     # OSF1 and SCO ODT 3.0 have their own names for install.
4273     # Don't use installbsd from OSF since it installs stuff as root
4274     # by default.
4275     for ac_prog in ginstall scoinst install; do
4276       for ac_exec_ext in '' $ac_executable_extensions; do
4277         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4278           if test $ac_prog = install &&
4279             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4280             # AIX install.  It has an incompatible calling convention.
4281             :
4282           elif test $ac_prog = install &&
4283             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4284             # program-specific install script used by HP pwplus--don't use.
4285             :
4286           else
4287             rm -rf conftest.one conftest.two conftest.dir
4288             echo one > conftest.one
4289             echo two > conftest.two
4290             mkdir conftest.dir
4291             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4292               test -s conftest.one && test -s conftest.two &&
4293               test -s conftest.dir/conftest.one &&
4294               test -s conftest.dir/conftest.two
4295             then
4296               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4297               break 3
4298             fi
4299           fi
4300         fi
4301       done
4302     done
4303     ;;
4304 esac
4305
4306   done
4307 IFS=$as_save_IFS
4308
4309 rm -rf conftest.one conftest.two conftest.dir
4310
4311 fi
4312   if test "${ac_cv_path_install+set}" = set; then
4313     INSTALL=$ac_cv_path_install
4314   else
4315     # As a last resort, use the slow shell script.  Don't cache a
4316     # value for INSTALL within a source directory, because that will
4317     # break other packages using the cache if that directory is
4318     # removed, or if the value is a relative name.
4319     INSTALL=$ac_install_sh
4320   fi
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4323 $as_echo "$INSTALL" >&6; }
4324
4325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4326 # It thinks the first close brace ends the variable substitution.
4327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4328
4329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4330
4331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4334 $as_echo_n "checking whether build environment is sane... " >&6; }
4335 # Reject unsafe characters in $srcdir or the absolute working directory
4336 # name.  Accept space and tab only in the latter.
4337 am_lf='
4338 '
4339 case `pwd` in
4340   *[\\\"\#\$\&\'\`$am_lf]*)
4341     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4342 esac
4343 case $srcdir in
4344   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4345     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4346 esac
4347
4348 # Do 'set' in a subshell so we don't clobber the current shell's
4349 # arguments.  Must try -L first in case configure is actually a
4350 # symlink; some systems play weird games with the mod time of symlinks
4351 # (eg FreeBSD returns the mod time of the symlink's containing
4352 # directory).
4353 if (
4354    am_has_slept=no
4355    for am_try in 1 2; do
4356      echo "timestamp, slept: $am_has_slept" > conftest.file
4357      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4358      if test "$*" = "X"; then
4359         # -L didn't work.
4360         set X `ls -t "$srcdir/configure" conftest.file`
4361      fi
4362      if test "$*" != "X $srcdir/configure conftest.file" \
4363         && test "$*" != "X conftest.file $srcdir/configure"; then
4364
4365         # If neither matched, then we have a broken ls.  This can happen
4366         # if, for instance, CONFIG_SHELL is bash and it inherits a
4367         # broken ls alias from the environment.  This has actually
4368         # happened.  Such a system could not be considered "sane".
4369         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4370   alias in your environment" "$LINENO" 5
4371      fi
4372      if test "$2" = conftest.file || test $am_try -eq 2; then
4373        break
4374      fi
4375      # Just in case.
4376      sleep 1
4377      am_has_slept=yes
4378    done
4379    test "$2" = conftest.file
4380    )
4381 then
4382    # Ok.
4383    :
4384 else
4385    as_fn_error $? "newly created file is older than distributed files!
4386 Check your system clock" "$LINENO" 5
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4389 $as_echo "yes" >&6; }
4390 # If we didn't sleep, we still need to ensure time stamps of config.status and
4391 # generated files are strictly newer.
4392 am_sleep_pid=
4393 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4394   ( sleep 1 ) &
4395   am_sleep_pid=$!
4396 fi
4397
4398 rm -f conftest.file
4399
4400 test "$program_prefix" != NONE &&
4401   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4402 # Use a double $ so make ignores it.
4403 test "$program_suffix" != NONE &&
4404   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4405 # Double any \ or $.
4406 # By default was `s,x,x', remove it if useless.
4407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4409
4410 # Expand $ac_aux_dir to an absolute path.
4411 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4412
4413 if test x"${MISSING+set}" != xset; then
4414   case $am_aux_dir in
4415   *\ * | *\     *)
4416     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4417   *)
4418     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4419   esac
4420 fi
4421 # Use eval to expand $SHELL
4422 if eval "$MISSING --is-lightweight"; then
4423   am_missing_run="$MISSING "
4424 else
4425   am_missing_run=
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4427 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4428 fi
4429
4430 if test x"${install_sh+set}" != xset; then
4431   case $am_aux_dir in
4432   *\ * | *\     *)
4433     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4434   *)
4435     install_sh="\${SHELL} $am_aux_dir/install-sh"
4436   esac
4437 fi
4438
4439 # Installed binaries are usually stripped using 'strip' when the user
4440 # run "make install-strip".  However 'strip' might not be the right
4441 # tool to use in cross-compilation environments, therefore Automake
4442 # will honor the 'STRIP' environment variable to overrule this program.
4443 if test "$cross_compiling" != no; then
4444   if test -n "$ac_tool_prefix"; then
4445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}strip; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if ${ac_cv_prog_STRIP+:} false; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452   if test -n "$STRIP"; then
4453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460     for ac_exec_ext in '' $ac_executable_extensions; do
4461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467   done
4468 IFS=$as_save_IFS
4469
4470 fi
4471 fi
4472 STRIP=$ac_cv_prog_STRIP
4473 if test -n "$STRIP"; then
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4475 $as_echo "$STRIP" >&6; }
4476 else
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480
4481
4482 fi
4483 if test -z "$ac_cv_prog_STRIP"; then
4484   ac_ct_STRIP=$STRIP
4485   # Extract the first word of "strip", so it can be a program name with args.
4486 set dummy strip; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492   if test -n "$ac_ct_STRIP"; then
4493   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498   IFS=$as_save_IFS
4499   test -z "$as_dir" && as_dir=.
4500     for ac_exec_ext in '' $ac_executable_extensions; do
4501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502     ac_cv_prog_ac_ct_STRIP="strip"
4503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504     break 2
4505   fi
4506 done
4507   done
4508 IFS=$as_save_IFS
4509
4510 fi
4511 fi
4512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4513 if test -n "$ac_ct_STRIP"; then
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4515 $as_echo "$ac_ct_STRIP" >&6; }
4516 else
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4519 fi
4520
4521   if test "x$ac_ct_STRIP" = x; then
4522     STRIP=":"
4523   else
4524     case $cross_compiling:$ac_tool_warned in
4525 yes:)
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4528 ac_tool_warned=yes ;;
4529 esac
4530     STRIP=$ac_ct_STRIP
4531   fi
4532 else
4533   STRIP="$ac_cv_prog_STRIP"
4534 fi
4535
4536 fi
4537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4540 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4541 if test -z "$MKDIR_P"; then
4542   if ${ac_cv_path_mkdir+:} false; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550     for ac_prog in mkdir gmkdir; do
4551          for ac_exec_ext in '' $ac_executable_extensions; do
4552            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4553            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4554              'mkdir (GNU coreutils) '* | \
4555              'mkdir (coreutils) '* | \
4556              'mkdir (fileutils) '4.1*)
4557                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4558                break 3;;
4559            esac
4560          done
4561        done
4562   done
4563 IFS=$as_save_IFS
4564
4565 fi
4566
4567   test -d ./--version && rmdir ./--version
4568   if test "${ac_cv_path_mkdir+set}" = set; then
4569     MKDIR_P="$ac_cv_path_mkdir -p"
4570   else
4571     # As a last resort, use the slow shell script.  Don't cache a
4572     # value for MKDIR_P within a source directory, because that will
4573     # break other packages using the cache if that directory is
4574     # removed, or if the value is a relative name.
4575     MKDIR_P="$ac_install_sh -d"
4576   fi
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4579 $as_echo "$MKDIR_P" >&6; }
4580
4581 for ac_prog in gawk mawk nawk awk
4582 do
4583   # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_AWK+:} false; then :
4588   $as_echo_n "(cached) " >&6
4589 else
4590   if test -n "$AWK"; then
4591   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598     for ac_exec_ext in '' $ac_executable_extensions; do
4599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600     ac_cv_prog_AWK="$ac_prog"
4601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602     break 2
4603   fi
4604 done
4605   done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 AWK=$ac_cv_prog_AWK
4611 if test -n "$AWK"; then
4612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4613 $as_echo "$AWK" >&6; }
4614 else
4615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4617 fi
4618
4619
4620   test -n "$AWK" && break
4621 done
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4624 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4625 set x ${MAKE-make}
4626 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4627 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4628   $as_echo_n "(cached) " >&6
4629 else
4630   cat >conftest.make <<\_ACEOF
4631 SHELL = /bin/sh
4632 all:
4633         @echo '@@@%%%=$(MAKE)=@@@%%%'
4634 _ACEOF
4635 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4637   *@@@%%%=?*=@@@%%%*)
4638     eval ac_cv_prog_make_${ac_make}_set=yes;;
4639   *)
4640     eval ac_cv_prog_make_${ac_make}_set=no;;
4641 esac
4642 rm -f conftest.make
4643 fi
4644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4646 $as_echo "yes" >&6; }
4647   SET_MAKE=
4648 else
4649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4651   SET_MAKE="MAKE=${MAKE-make}"
4652 fi
4653
4654 rm -rf .tst 2>/dev/null
4655 mkdir .tst 2>/dev/null
4656 if test -d .tst; then
4657   am__leading_dot=.
4658 else
4659   am__leading_dot=_
4660 fi
4661 rmdir .tst 2>/dev/null
4662
4663 # Check whether --enable-silent-rules was given.
4664 if test "${enable_silent_rules+set}" = set; then :
4665   enableval=$enable_silent_rules;
4666 fi
4667
4668 case $enable_silent_rules in # (((
4669   yes) AM_DEFAULT_VERBOSITY=0;;
4670    no) AM_DEFAULT_VERBOSITY=1;;
4671     *) AM_DEFAULT_VERBOSITY=1;;
4672 esac
4673 am_make=${MAKE-make}
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4675 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4676 if ${am_cv_make_support_nested_variables+:} false; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   if $as_echo 'TRUE=$(BAR$(V))
4680 BAR0=false
4681 BAR1=true
4682 V=1
4683 am__doit:
4684         @$(TRUE)
4685 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4686   am_cv_make_support_nested_variables=yes
4687 else
4688   am_cv_make_support_nested_variables=no
4689 fi
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4692 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4693 if test $am_cv_make_support_nested_variables = yes; then
4694     AM_V='$(V)'
4695   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4696 else
4697   AM_V=$AM_DEFAULT_VERBOSITY
4698   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4699 fi
4700 AM_BACKSLASH='\'
4701
4702 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4703   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4704   # is not polluted with repeated "-I."
4705   am__isrc=' -I$(srcdir)'
4706   # test to see if srcdir already configured
4707   if test -f $srcdir/config.status; then
4708     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4709   fi
4710 fi
4711
4712 # test whether we have cygpath
4713 if test -z "$CYGPATH_W"; then
4714   if (cygpath --version) >/dev/null 2>/dev/null; then
4715     CYGPATH_W='cygpath -w'
4716   else
4717     CYGPATH_W=echo
4718   fi
4719 fi
4720
4721
4722 # Define the identity of the package.
4723  PACKAGE='gettext-tools'
4724  VERSION='0.19.7'
4725
4726
4727 cat >>confdefs.h <<_ACEOF
4728 #define PACKAGE "$PACKAGE"
4729 _ACEOF
4730
4731
4732 cat >>confdefs.h <<_ACEOF
4733 #define VERSION "$VERSION"
4734 _ACEOF
4735
4736 # Some tools Automake needs.
4737
4738 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4739
4740
4741 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4742
4743
4744 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4745
4746
4747 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4748
4749
4750 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4751
4752 # For better backward compatibility.  To be removed once Automake 1.9.x
4753 # dies out for good.  For more background, see:
4754 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4755 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4756 mkdir_p='$(MKDIR_P)'
4757
4758 # We need awk for the "check" target (and possibly the TAP driver).  The
4759 # system "awk" is bad on some platforms.
4760 # Always define AMTAR for backward compatibility.  Yes, it's still used
4761 # in the wild :-(  We should find a proper way to deprecate it ...
4762 AMTAR='$${TAR-tar}'
4763
4764
4765 # We'll loop over all known methods to create a tar archive until one works.
4766 _am_tools='gnutar  pax cpio none'
4767
4768 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4769
4770
4771
4772
4773
4774
4775 # POSIX will say in a future version that running "rm -f" with no argument
4776 # is OK; and we want to be able to make that assumption in our Makefile
4777 # recipes.  So use an aggressive probe to check that the usage we want is
4778 # actually supported "in the wild" to an acceptable degree.
4779 # See automake bug#10828.
4780 # To make any issue more visible, cause the running configure to be aborted
4781 # by default if the 'rm' program in use doesn't match our expectations; the
4782 # user can still override this though.
4783 if rm -f && rm -fr && rm -rf; then : OK; else
4784   cat >&2 <<'END'
4785 Oops!
4786
4787 Your 'rm' program seems unable to run without file operands specified
4788 on the command line, even when the '-f' option is present.  This is contrary
4789 to the behaviour of most rm programs out there, and not conforming with
4790 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4791
4792 Please tell bug-automake@gnu.org about your system, including the value
4793 of your $PATH and any error possibly output before this message.  This
4794 can help us improve future automake versions.
4795
4796 END
4797   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4798     echo 'Configuration will proceed anyway, since you have set the' >&2
4799     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4800     echo >&2
4801   else
4802     cat >&2 <<'END'
4803 Aborting the configuration process, to ensure you take notice of the issue.
4804
4805 You can download and install GNU coreutils to get an 'rm' implementation
4806 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4807
4808 If you want to complete the configuration process using your problematic
4809 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4810 to "yes", and re-run configure.
4811
4812 END
4813     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4814   fi
4815 fi
4816
4817 ac_config_headers="$ac_config_headers config.h"
4818
4819
4820 test "$docdir" != '${datarootdir}/doc/${PACKAGE_TARNAME}' || docdir='${datarootdir}/doc/gettext'
4821
4822 ac_ext=c
4823 ac_cpp='$CPP $CPPFLAGS'
4824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827 if test -n "$ac_tool_prefix"; then
4828   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if ${ac_cv_prog_CC+:} false; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   if test -n "$CC"; then
4836   ac_cv_prog_CC="$CC" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843     for ac_exec_ext in '' $ac_executable_extensions; do
4844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850   done
4851 IFS=$as_save_IFS
4852
4853 fi
4854 fi
4855 CC=$ac_cv_prog_CC
4856 if test -n "$CC"; then
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4858 $as_echo "$CC" >&6; }
4859 else
4860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862 fi
4863
4864
4865 fi
4866 if test -z "$ac_cv_prog_CC"; then
4867   ac_ct_CC=$CC
4868   # Extract the first word of "gcc", so it can be a program name with args.
4869 set dummy gcc; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   if test -n "$ac_ct_CC"; then
4876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881   IFS=$as_save_IFS
4882   test -z "$as_dir" && as_dir=.
4883     for ac_exec_ext in '' $ac_executable_extensions; do
4884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885     ac_cv_prog_ac_ct_CC="gcc"
4886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887     break 2
4888   fi
4889 done
4890   done
4891 IFS=$as_save_IFS
4892
4893 fi
4894 fi
4895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4896 if test -n "$ac_ct_CC"; then
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4898 $as_echo "$ac_ct_CC" >&6; }
4899 else
4900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903
4904   if test "x$ac_ct_CC" = x; then
4905     CC=""
4906   else
4907     case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913     CC=$ac_ct_CC
4914   fi
4915 else
4916   CC="$ac_cv_prog_CC"
4917 fi
4918
4919 if test -z "$CC"; then
4920           if test -n "$ac_tool_prefix"; then
4921     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4922 set dummy ${ac_tool_prefix}cc; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_CC+:} false; then :
4926   $as_echo_n "(cached) " >&6
4927 else
4928   if test -n "$CC"; then
4929   ac_cv_prog_CC="$CC" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936     for ac_exec_ext in '' $ac_executable_extensions; do
4937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938     ac_cv_prog_CC="${ac_tool_prefix}cc"
4939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943   done
4944 IFS=$as_save_IFS
4945
4946 fi
4947 fi
4948 CC=$ac_cv_prog_CC
4949 if test -n "$CC"; then
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4951 $as_echo "$CC" >&6; }
4952 else
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 fi
4956
4957
4958   fi
4959 fi
4960 if test -z "$CC"; then
4961   # Extract the first word of "cc", so it can be a program name with args.
4962 set dummy cc; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_CC+:} false; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   if test -n "$CC"; then
4969   ac_cv_prog_CC="$CC" # Let the user override the test.
4970 else
4971   ac_prog_rejected=no
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977     for ac_exec_ext in '' $ac_executable_extensions; do
4978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4980        ac_prog_rejected=yes
4981        continue
4982      fi
4983     ac_cv_prog_CC="cc"
4984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988   done
4989 IFS=$as_save_IFS
4990
4991 if test $ac_prog_rejected = yes; then
4992   # We found a bogon in the path, so make sure we never use it.
4993   set dummy $ac_cv_prog_CC
4994   shift
4995   if test $# != 0; then
4996     # We chose a different compiler from the bogus one.
4997     # However, it has the same basename, so the bogon will be chosen
4998     # first if we set CC to just the basename; use the full file name.
4999     shift
5000     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5001   fi
5002 fi
5003 fi
5004 fi
5005 CC=$ac_cv_prog_CC
5006 if test -n "$CC"; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5008 $as_echo "$CC" >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014
5015 fi
5016 if test -z "$CC"; then
5017   if test -n "$ac_tool_prefix"; then
5018   for ac_prog in cl.exe
5019   do
5020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_CC+:} false; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   if test -n "$CC"; then
5028   ac_cv_prog_CC="$CC" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035     for ac_exec_ext in '' $ac_executable_extensions; do
5036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042   done
5043 IFS=$as_save_IFS
5044
5045 fi
5046 fi
5047 CC=$ac_cv_prog_CC
5048 if test -n "$CC"; then
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5050 $as_echo "$CC" >&6; }
5051 else
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056
5057     test -n "$CC" && break
5058   done
5059 fi
5060 if test -z "$CC"; then
5061   ac_ct_CC=$CC
5062   for ac_prog in cl.exe
5063 do
5064   # Extract the first word of "$ac_prog", so it can be a program name with args.
5065 set dummy $ac_prog; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   if test -n "$ac_ct_CC"; then
5072   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079     for ac_exec_ext in '' $ac_executable_extensions; do
5080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081     ac_cv_prog_ac_ct_CC="$ac_prog"
5082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086   done
5087 IFS=$as_save_IFS
5088
5089 fi
5090 fi
5091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5092 if test -n "$ac_ct_CC"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5094 $as_echo "$ac_ct_CC" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5099
5100
5101   test -n "$ac_ct_CC" && break
5102 done
5103
5104   if test "x$ac_ct_CC" = x; then
5105     CC=""
5106   else
5107     case $cross_compiling:$ac_tool_warned in
5108 yes:)
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5111 ac_tool_warned=yes ;;
5112 esac
5113     CC=$ac_ct_CC
5114   fi
5115 fi
5116
5117 fi
5118
5119
5120 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 as_fn_error $? "no acceptable C compiler found in \$PATH
5123 See \`config.log' for more details" "$LINENO" 5; }
5124
5125 # Provide some information about the compiler.
5126 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5127 set X $ac_compile
5128 ac_compiler=$2
5129 for ac_option in --version -v -V -qversion; do
5130   { { ac_try="$ac_compiler $ac_option >&5"
5131 case "(($ac_try" in
5132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133   *) ac_try_echo=$ac_try;;
5134 esac
5135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5136 $as_echo "$ac_try_echo"; } >&5
5137   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5138   ac_status=$?
5139   if test -s conftest.err; then
5140     sed '10a\
5141 ... rest of stderr output deleted ...
5142          10q' conftest.err >conftest.er1
5143     cat conftest.er1 >&5
5144   fi
5145   rm -f conftest.er1 conftest.err
5146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5147   test $ac_status = 0; }
5148 done
5149
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h.  */
5152
5153 int
5154 main ()
5155 {
5156
5157   ;
5158   return 0;
5159 }
5160 _ACEOF
5161 ac_clean_files_save=$ac_clean_files
5162 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5163 # Try to create an executable without -o first, disregard a.out.
5164 # It will help us diagnose broken compilers, and finding out an intuition
5165 # of exeext.
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5167 $as_echo_n "checking whether the C compiler works... " >&6; }
5168 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5169
5170 # The possible output files:
5171 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5172
5173 ac_rmfiles=
5174 for ac_file in $ac_files
5175 do
5176   case $ac_file in
5177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5178     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5179   esac
5180 done
5181 rm -f $ac_rmfiles
5182
5183 if { { ac_try="$ac_link_default"
5184 case "(($ac_try" in
5185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186   *) ac_try_echo=$ac_try;;
5187 esac
5188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5189 $as_echo "$ac_try_echo"; } >&5
5190   (eval "$ac_link_default") 2>&5
5191   ac_status=$?
5192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193   test $ac_status = 0; }; then :
5194   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5195 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5196 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5197 # so that the user can short-circuit this test for compilers unknown to
5198 # Autoconf.
5199 for ac_file in $ac_files ''
5200 do
5201   test -f "$ac_file" || continue
5202   case $ac_file in
5203     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5204         ;;
5205     [ab].out )
5206         # We found the default executable, but exeext='' is most
5207         # certainly right.
5208         break;;
5209     *.* )
5210         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5211         then :; else
5212            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5213         fi
5214         # We set ac_cv_exeext here because the later test for it is not
5215         # safe: cross compilers may not add the suffix if given an `-o'
5216         # argument, so we may need to know it at that point already.
5217         # Even if this section looks crufty: it has the advantage of
5218         # actually working.
5219         break;;
5220     * )
5221         break;;
5222   esac
5223 done
5224 test "$ac_cv_exeext" = no && ac_cv_exeext=
5225
5226 else
5227   ac_file=''
5228 fi
5229 if test -z "$ac_file"; then :
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 $as_echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5234
5235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5237 as_fn_error 77 "C compiler cannot create executables
5238 See \`config.log' for more details" "$LINENO" 5; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5241 $as_echo "yes" >&6; }
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5244 $as_echo_n "checking for C compiler default output file name... " >&6; }
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5246 $as_echo "$ac_file" >&6; }
5247 ac_exeext=$ac_cv_exeext
5248
5249 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5250 ac_clean_files=$ac_clean_files_save
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5252 $as_echo_n "checking for suffix of executables... " >&6; }
5253 if { { ac_try="$ac_link"
5254 case "(($ac_try" in
5255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256   *) ac_try_echo=$ac_try;;
5257 esac
5258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5259 $as_echo "$ac_try_echo"; } >&5
5260   (eval "$ac_link") 2>&5
5261   ac_status=$?
5262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5263   test $ac_status = 0; }; then :
5264   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5265 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5266 # work properly (i.e., refer to `conftest.exe'), while it won't with
5267 # `rm'.
5268 for ac_file in conftest.exe conftest conftest.*; do
5269   test -f "$ac_file" || continue
5270   case $ac_file in
5271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5272     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5273           break;;
5274     * ) break;;
5275   esac
5276 done
5277 else
5278   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5280 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5281 See \`config.log' for more details" "$LINENO" 5; }
5282 fi
5283 rm -f conftest conftest$ac_cv_exeext
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5285 $as_echo "$ac_cv_exeext" >&6; }
5286
5287 rm -f conftest.$ac_ext
5288 EXEEXT=$ac_cv_exeext
5289 ac_exeext=$EXEEXT
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h.  */
5292 #include <stdio.h>
5293 int
5294 main ()
5295 {
5296 FILE *f = fopen ("conftest.out", "w");
5297  return ferror (f) || fclose (f) != 0;
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 ac_clean_files="$ac_clean_files conftest.out"
5304 # Check that the compiler produces executables we can run.  If not, either
5305 # the compiler is broken, or we cross compile.
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5307 $as_echo_n "checking whether we are cross compiling... " >&6; }
5308 if test "$cross_compiling" != yes; then
5309   { { ac_try="$ac_link"
5310 case "(($ac_try" in
5311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312   *) ac_try_echo=$ac_try;;
5313 esac
5314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5315 $as_echo "$ac_try_echo"; } >&5
5316   (eval "$ac_link") 2>&5
5317   ac_status=$?
5318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5319   test $ac_status = 0; }
5320   if { ac_try='./conftest$ac_cv_exeext'
5321   { { case "(($ac_try" in
5322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323   *) ac_try_echo=$ac_try;;
5324 esac
5325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5326 $as_echo "$ac_try_echo"; } >&5
5327   (eval "$ac_try") 2>&5
5328   ac_status=$?
5329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5330   test $ac_status = 0; }; }; then
5331     cross_compiling=no
5332   else
5333     if test "$cross_compiling" = maybe; then
5334         cross_compiling=yes
5335     else
5336         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5338 as_fn_error $? "cannot run C compiled programs.
5339 If you meant to cross compile, use \`--host'.
5340 See \`config.log' for more details" "$LINENO" 5; }
5341     fi
5342   fi
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5345 $as_echo "$cross_compiling" >&6; }
5346
5347 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5348 ac_clean_files=$ac_clean_files_save
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5350 $as_echo_n "checking for suffix of object files... " >&6; }
5351 if ${ac_cv_objext+:} false; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h.  */
5356
5357 int
5358 main ()
5359 {
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.o conftest.obj
5366 if { { ac_try="$ac_compile"
5367 case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5372 $as_echo "$ac_try_echo"; } >&5
5373   (eval "$ac_compile") 2>&5
5374   ac_status=$?
5375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5376   test $ac_status = 0; }; then :
5377   for ac_file in conftest.o conftest.obj conftest.*; do
5378   test -f "$ac_file" || continue;
5379   case $ac_file in
5380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5381     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5382        break;;
5383   esac
5384 done
5385 else
5386   $as_echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5391 as_fn_error $? "cannot compute suffix of object files: cannot compile
5392 See \`config.log' for more details" "$LINENO" 5; }
5393 fi
5394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5395 fi
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5397 $as_echo "$ac_cv_objext" >&6; }
5398 OBJEXT=$ac_cv_objext
5399 ac_objext=$OBJEXT
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5401 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5402 if ${ac_cv_c_compiler_gnu+:} false; then :
5403   $as_echo_n "(cached) " >&6
5404 else
5405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h.  */
5407
5408 int
5409 main ()
5410 {
5411 #ifndef __GNUC__
5412        choke me
5413 #endif
5414
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420   ac_compiler_gnu=yes
5421 else
5422   ac_compiler_gnu=no
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5426
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5429 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5430 if test $ac_compiler_gnu = yes; then
5431   GCC=yes
5432 else
5433   GCC=
5434 fi
5435 ac_test_CFLAGS=${CFLAGS+set}
5436 ac_save_CFLAGS=$CFLAGS
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5438 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5439 if ${ac_cv_prog_cc_g+:} false; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   ac_save_c_werror_flag=$ac_c_werror_flag
5443    ac_c_werror_flag=yes
5444    ac_cv_prog_cc_g=no
5445    CFLAGS="-g"
5446    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448
5449 int
5450 main ()
5451 {
5452
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458   ac_cv_prog_cc_g=yes
5459 else
5460   CFLAGS=""
5461       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h.  */
5463
5464 int
5465 main ()
5466 {
5467
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473
5474 else
5475   ac_c_werror_flag=$ac_save_c_werror_flag
5476          CFLAGS="-g"
5477          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h.  */
5479
5480 int
5481 main ()
5482 {
5483
5484   ;
5485   return 0;
5486 }
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489   ac_cv_prog_cc_g=yes
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 fi
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496    ac_c_werror_flag=$ac_save_c_werror_flag
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5499 $as_echo "$ac_cv_prog_cc_g" >&6; }
5500 if test "$ac_test_CFLAGS" = set; then
5501   CFLAGS=$ac_save_CFLAGS
5502 elif test $ac_cv_prog_cc_g = yes; then
5503   if test "$GCC" = yes; then
5504     CFLAGS="-g -O2"
5505   else
5506     CFLAGS="-g"
5507   fi
5508 else
5509   if test "$GCC" = yes; then
5510     CFLAGS="-O2"
5511   else
5512     CFLAGS=
5513   fi
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5516 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5517 if ${ac_cv_prog_cc_c89+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   ac_cv_prog_cc_c89=no
5521 ac_save_CC=$CC
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h.  */
5524 #include <stdarg.h>
5525 #include <stdio.h>
5526 struct stat;
5527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5528 struct buf { int x; };
5529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5530 static char *e (p, i)
5531      char **p;
5532      int i;
5533 {
5534   return p[i];
5535 }
5536 static char *f (char * (*g) (char **, int), char **p, ...)
5537 {
5538   char *s;
5539   va_list v;
5540   va_start (v,p);
5541   s = g (p, va_arg (v,int));
5542   va_end (v);
5543   return s;
5544 }
5545
5546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5547    function prototypes and stuff, but not '\xHH' hex character constants.
5548    These don't provoke an error unfortunately, instead are silently treated
5549    as 'x'.  The following induces an error, until -std is added to get
5550    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5551    array size at least.  It's necessary to write '\x00'==0 to get something
5552    that's true only with -std.  */
5553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5554
5555 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5556    inside strings and character constants.  */
5557 #define FOO(x) 'x'
5558 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5559
5560 int test (int i, double x);
5561 struct s1 {int (*f) (int a);};
5562 struct s2 {int (*f) (double a);};
5563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5564 int argc;
5565 char **argv;
5566 int
5567 main ()
5568 {
5569 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5575         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5576 do
5577   CC="$ac_save_CC $ac_arg"
5578   if ac_fn_c_try_compile "$LINENO"; then :
5579   ac_cv_prog_cc_c89=$ac_arg
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext
5582   test "x$ac_cv_prog_cc_c89" != "xno" && break
5583 done
5584 rm -f conftest.$ac_ext
5585 CC=$ac_save_CC
5586
5587 fi
5588 # AC_CACHE_VAL
5589 case "x$ac_cv_prog_cc_c89" in
5590   x)
5591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5592 $as_echo "none needed" >&6; } ;;
5593   xno)
5594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5595 $as_echo "unsupported" >&6; } ;;
5596   *)
5597     CC="$CC $ac_cv_prog_cc_c89"
5598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5599 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5600 esac
5601 if test "x$ac_cv_prog_cc_c89" != xno; then :
5602
5603 fi
5604
5605 ac_ext=c
5606 ac_cpp='$CPP $CPPFLAGS'
5607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5610
5611 ac_ext=c
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5617 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5618 if ${am_cv_prog_cc_c_o+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h.  */
5623
5624 int
5625 main ()
5626 {
5627
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632   # Make sure it works both with $CC and with simple cc.
5633   # Following AC_PROG_CC_C_O, we do the test twice because some
5634   # compilers refuse to overwrite an existing .o file with -o,
5635   # though they will create one.
5636   am_cv_prog_cc_c_o=yes
5637   for am_i in 1 2; do
5638     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5639    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5640    ac_status=$?
5641    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642    (exit $ac_status); } \
5643          && test -f conftest2.$ac_objext; then
5644       : OK
5645     else
5646       am_cv_prog_cc_c_o=no
5647       break
5648     fi
5649   done
5650   rm -f core conftest*
5651   unset am_i
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5654 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5655 if test "$am_cv_prog_cc_c_o" != yes; then
5656    # Losing compiler, so override with the script.
5657    # FIXME: It is wrong to rewrite CC.
5658    # But if we don't then we get into trouble of one sort or another.
5659    # A longer-term fix would be to have automake use am__CC in this case,
5660    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5661    CC="$am_aux_dir/compile $CC"
5662 fi
5663 ac_ext=c
5664 ac_cpp='$CPP $CPPFLAGS'
5665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5668
5669 DEPDIR="${am__leading_dot}deps"
5670
5671 ac_config_commands="$ac_config_commands depfiles"
5672
5673
5674 am_make=${MAKE-make}
5675 cat > confinc << 'END'
5676 am__doit:
5677         @echo this is the am__doit target
5678 .PHONY: am__doit
5679 END
5680 # If we don't find an include directive, just comment out the code.
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5682 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5683 am__include="#"
5684 am__quote=
5685 _am_result=none
5686 # First try GNU make style include.
5687 echo "include confinc" > confmf
5688 # Ignore all kinds of additional output from 'make'.
5689 case `$am_make -s -f confmf 2> /dev/null` in #(
5690 *the\ am__doit\ target*)
5691   am__include=include
5692   am__quote=
5693   _am_result=GNU
5694   ;;
5695 esac
5696 # Now try BSD make style include.
5697 if test "$am__include" = "#"; then
5698    echo '.include "confinc"' > confmf
5699    case `$am_make -s -f confmf 2> /dev/null` in #(
5700    *the\ am__doit\ target*)
5701      am__include=.include
5702      am__quote="\""
5703      _am_result=BSD
5704      ;;
5705    esac
5706 fi
5707
5708
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5710 $as_echo "$_am_result" >&6; }
5711 rm -f confinc confmf
5712
5713 # Check whether --enable-dependency-tracking was given.
5714 if test "${enable_dependency_tracking+set}" = set; then :
5715   enableval=$enable_dependency_tracking;
5716 fi
5717
5718 if test "x$enable_dependency_tracking" != xno; then
5719   am_depcomp="$ac_aux_dir/depcomp"
5720   AMDEPBACKSLASH='\'
5721   am__nodep='_no'
5722 fi
5723  if test "x$enable_dependency_tracking" != xno; then
5724   AMDEP_TRUE=
5725   AMDEP_FALSE='#'
5726 else
5727   AMDEP_TRUE='#'
5728   AMDEP_FALSE=
5729 fi
5730
5731
5732
5733 depcc="$CC"   am_compiler_list=
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5736 $as_echo_n "checking dependency style of $depcc... " >&6; }
5737 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5738   $as_echo_n "(cached) " >&6
5739 else
5740   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5741   # We make a subdir and do the tests there.  Otherwise we can end up
5742   # making bogus files that we don't know about and never remove.  For
5743   # instance it was reported that on HP-UX the gcc test will end up
5744   # making a dummy file named 'D' -- because '-MD' means "put the output
5745   # in D".
5746   rm -rf conftest.dir
5747   mkdir conftest.dir
5748   # Copy depcomp to subdir because otherwise we won't find it if we're
5749   # using a relative directory.
5750   cp "$am_depcomp" conftest.dir
5751   cd conftest.dir
5752   # We will build objects and dependencies in a subdirectory because
5753   # it helps to detect inapplicable dependency modes.  For instance
5754   # both Tru64's cc and ICC support -MD to output dependencies as a
5755   # side effect of compilation, but ICC will put the dependencies in
5756   # the current directory while Tru64 will put them in the object
5757   # directory.
5758   mkdir sub
5759
5760   am_cv_CC_dependencies_compiler_type=none
5761   if test "$am_compiler_list" = ""; then
5762      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5763   fi
5764   am__universal=false
5765   case " $depcc " in #(
5766      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5767      esac
5768
5769   for depmode in $am_compiler_list; do
5770     # Setup a source with many dependencies, because some compilers
5771     # like to wrap large dependency lists on column 80 (with \), and
5772     # we should not choose a depcomp mode which is confused by this.
5773     #
5774     # We need to recreate these files for each test, as the compiler may
5775     # overwrite some of them when testing with obscure command lines.
5776     # This happens at least with the AIX C compiler.
5777     : > sub/conftest.c
5778     for i in 1 2 3 4 5 6; do
5779       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5780       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5781       # Solaris 10 /bin/sh.
5782       echo '/* dummy */' > sub/conftst$i.h
5783     done
5784     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5785
5786     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5787     # mode.  It turns out that the SunPro C++ compiler does not properly
5788     # handle '-M -o', and we need to detect this.  Also, some Intel
5789     # versions had trouble with output in subdirs.
5790     am__obj=sub/conftest.${OBJEXT-o}
5791     am__minus_obj="-o $am__obj"
5792     case $depmode in
5793     gcc)
5794       # This depmode causes a compiler race in universal mode.
5795       test "$am__universal" = false || continue
5796       ;;
5797     nosideeffect)
5798       # After this tag, mechanisms are not by side-effect, so they'll
5799       # only be used when explicitly requested.
5800       if test "x$enable_dependency_tracking" = xyes; then
5801         continue
5802       else
5803         break
5804       fi
5805       ;;
5806     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5807       # This compiler won't grok '-c -o', but also, the minuso test has
5808       # not run yet.  These depmodes are late enough in the game, and
5809       # so weak that their functioning should not be impacted.
5810       am__obj=conftest.${OBJEXT-o}
5811       am__minus_obj=
5812       ;;
5813     none) break ;;
5814     esac
5815     if depmode=$depmode \
5816        source=sub/conftest.c object=$am__obj \
5817        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5818        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5819          >/dev/null 2>conftest.err &&
5820        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5821        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5822        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5823        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5824       # icc doesn't choke on unknown options, it will just issue warnings
5825       # or remarks (even with -Werror).  So we grep stderr for any message
5826       # that says an option was ignored or not supported.
5827       # When given -MP, icc 7.0 and 7.1 complain thusly:
5828       #   icc: Command line warning: ignoring option '-M'; no argument required
5829       # The diagnosis changed in icc 8.0:
5830       #   icc: Command line remark: option '-MP' not supported
5831       if (grep 'ignoring option' conftest.err ||
5832           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5833         am_cv_CC_dependencies_compiler_type=$depmode
5834         break
5835       fi
5836     fi
5837   done
5838
5839   cd ..
5840   rm -rf conftest.dir
5841 else
5842   am_cv_CC_dependencies_compiler_type=none
5843 fi
5844
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5847 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5848 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5849
5850  if
5851   test "x$enable_dependency_tracking" != xno \
5852   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5853   am__fastdepCC_TRUE=
5854   am__fastdepCC_FALSE='#'
5855 else
5856   am__fastdepCC_TRUE='#'
5857   am__fastdepCC_FALSE=
5858 fi
5859
5860
5861
5862 for ac_prog in 'bison -y' byacc
5863 do
5864   # Extract the first word of "$ac_prog", so it can be a program name with args.
5865 set dummy $ac_prog; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_prog_YACC+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   if test -n "$YACC"; then
5872   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879     for ac_exec_ext in '' $ac_executable_extensions; do
5880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881     ac_cv_prog_YACC="$ac_prog"
5882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883     break 2
5884   fi
5885 done
5886   done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 YACC=$ac_cv_prog_YACC
5892 if test -n "$YACC"; then
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5894 $as_echo "$YACC" >&6; }
5895 else
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899
5900
5901   test -n "$YACC" && break
5902 done
5903 test -n "$YACC" || YACC="yacc"
5904
5905
5906
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
5908 $as_echo_n "checking whether to use Java... " >&6; }
5909   # Check whether --enable-java was given.
5910 if test "${enable_java+set}" = set; then :
5911   enableval=$enable_java; JAVA_CHOICE="$enableval"
5912 else
5913   JAVA_CHOICE=yes
5914 fi
5915
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
5917 $as_echo "$JAVA_CHOICE" >&6; }
5918   if test "$JAVA_CHOICE" = yes; then
5919     # Check whether --enable-native-java was given.
5920 if test "${enable_native_java+set}" = set; then :
5921   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
5922 fi
5923
5924   fi
5925
5926
5927
5928
5929
5930
5931
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
5933 $as_echo_n "checking for Java to native code compiler... " >&6; }
5934   # Search for the gcj command or use the one provided by the user.
5935   if test -z "$GCJ"; then
5936                 if test -n "$ac_tool_prefix"; then
5937   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5939 :
5940 if ${ac_cv_prog_GCJ+:} false; then :
5941   $as_echo_n "(cached) " >&6
5942 else
5943   if test -n "$GCJ"; then
5944   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5945 else
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949   IFS=$as_save_IFS
5950   test -z "$as_dir" && as_dir=.
5951     for ac_exec_ext in '' $ac_executable_extensions; do
5952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955     break 2
5956   fi
5957 done
5958   done
5959 IFS=$as_save_IFS
5960
5961 fi
5962 fi
5963 GCJ=$ac_cv_prog_GCJ
5964 if test -n "$GCJ"; then
5965   :
5966 else
5967   :
5968 fi
5969
5970
5971 fi
5972 if test -z "$ac_cv_prog_GCJ"; then
5973   ac_ct_GCJ=$GCJ
5974   # Extract the first word of "gcj", so it can be a program name with args.
5975 set dummy gcj; ac_word=$2
5976 :
5977 if ${ac_cv_prog_ac_ct_GCJ+:} false; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980   if test -n "$ac_ct_GCJ"; then
5981   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988     for ac_exec_ext in '' $ac_executable_extensions; do
5989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990     ac_cv_prog_ac_ct_GCJ="gcj"
5991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995   done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
6001 if test -n "$ac_ct_GCJ"; then
6002   :
6003 else
6004   :
6005 fi
6006
6007   if test "x$ac_ct_GCJ" = x; then
6008     GCJ="none"
6009   else
6010     case $cross_compiling:$ac_tool_warned in
6011 yes:)
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6014 ac_tool_warned=yes ;;
6015 esac
6016     GCJ=$ac_ct_GCJ
6017   fi
6018 else
6019   GCJ="$ac_cv_prog_GCJ"
6020 fi
6021
6022               fi
6023   # Choose GCJFLAGS or use the one provided by the user.
6024   if test "$GCJ" != none; then
6025     test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
6026   fi
6027   # Check whether the version is ok and it can create executables.
6028   ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
6029   if test "$GCJ" != none \
6030      && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
6031      && (
6032       # See if libgcj.so is well installed and if exception handling works.
6033       cat > conftest.java <<EOF
6034 public class conftest {
6035   public static void main (String[] args) {
6036     try {
6037       java.util.ResourceBundle.getBundle("foobar");
6038     } catch (Exception e) {
6039     }
6040     System.exit(0);
6041   }
6042 }
6043 EOF
6044       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
6045   (eval $ac_gcj_link) 2>&5
6046   ac_status=$?
6047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6048   test $ac_status = 0; }
6049       error=$?
6050       if test $error = 0 && test "$cross_compiling" != yes; then
6051         # Run conftest and catch its exit status, but silently.
6052         error=`./conftest >/dev/null 2>&1; echo $?`
6053         test $error = 0 || error=1
6054         rm -f core conftest.core
6055       fi
6056       rm -f conftest.java conftest$ac_exeext
6057       exit $error
6058      ); then
6059     :
6060   else
6061     GCJ=none
6062   fi
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
6064 $as_echo "$GCJ" >&6; }
6065   if test "$GCJ" != none; then
6066     HAVE_GCJ=1
6067   else
6068     HAVE_GCJ=
6069   fi
6070
6071
6072
6073
6074 if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then
6075   BUILDJAVAEXE=yes
6076 else
6077   BUILDJAVAEXE=no
6078 fi
6079
6080
6081
6082 ac_ext=c
6083 ac_cpp='$CPP $CPPFLAGS'
6084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6088 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6089 # On Suns, sometimes $CPP names a directory.
6090 if test -n "$CPP" && test -d "$CPP"; then
6091   CPP=
6092 fi
6093 if test -z "$CPP"; then
6094   if ${ac_cv_prog_CPP+:} false; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097       # Double quotes because CPP needs to be expanded
6098     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6099     do
6100       ac_preproc_ok=false
6101 for ac_c_preproc_warn_flag in '' yes
6102 do
6103   # Use a header file that comes with gcc, so configuring glibc
6104   # with a fresh cross-compiler works.
6105   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6106   # <limits.h> exists even on freestanding compilers.
6107   # On the NeXT, cc -E runs the code through the compiler's parser,
6108   # not just through cpp. "Syntax error" is here to catch this case.
6109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h.  */
6111 #ifdef __STDC__
6112 # include <limits.h>
6113 #else
6114 # include <assert.h>
6115 #endif
6116                      Syntax error
6117 _ACEOF
6118 if ac_fn_c_try_cpp "$LINENO"; then :
6119
6120 else
6121   # Broken: fails on valid input.
6122 continue
6123 fi
6124 rm -f conftest.err conftest.i conftest.$ac_ext
6125
6126   # OK, works on sane cases.  Now check whether nonexistent headers
6127   # can be detected and how.
6128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h.  */
6130 #include <ac_nonexistent.h>
6131 _ACEOF
6132 if ac_fn_c_try_cpp "$LINENO"; then :
6133   # Broken: success on invalid input.
6134 continue
6135 else
6136   # Passes both tests.
6137 ac_preproc_ok=:
6138 break
6139 fi
6140 rm -f conftest.err conftest.i conftest.$ac_ext
6141
6142 done
6143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6144 rm -f conftest.i conftest.err conftest.$ac_ext
6145 if $ac_preproc_ok; then :
6146   break
6147 fi
6148
6149     done
6150     ac_cv_prog_CPP=$CPP
6151
6152 fi
6153   CPP=$ac_cv_prog_CPP
6154 else
6155   ac_cv_prog_CPP=$CPP
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6158 $as_echo "$CPP" >&6; }
6159 ac_preproc_ok=false
6160 for ac_c_preproc_warn_flag in '' yes
6161 do
6162   # Use a header file that comes with gcc, so configuring glibc
6163   # with a fresh cross-compiler works.
6164   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6165   # <limits.h> exists even on freestanding compilers.
6166   # On the NeXT, cc -E runs the code through the compiler's parser,
6167   # not just through cpp. "Syntax error" is here to catch this case.
6168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h.  */
6170 #ifdef __STDC__
6171 # include <limits.h>
6172 #else
6173 # include <assert.h>
6174 #endif
6175                      Syntax error
6176 _ACEOF
6177 if ac_fn_c_try_cpp "$LINENO"; then :
6178
6179 else
6180   # Broken: fails on valid input.
6181 continue
6182 fi
6183 rm -f conftest.err conftest.i conftest.$ac_ext
6184
6185   # OK, works on sane cases.  Now check whether nonexistent headers
6186   # can be detected and how.
6187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h.  */
6189 #include <ac_nonexistent.h>
6190 _ACEOF
6191 if ac_fn_c_try_cpp "$LINENO"; then :
6192   # Broken: success on invalid input.
6193 continue
6194 else
6195   # Passes both tests.
6196 ac_preproc_ok=:
6197 break
6198 fi
6199 rm -f conftest.err conftest.i conftest.$ac_ext
6200
6201 done
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.i conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then :
6205
6206 else
6207   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6210 See \`config.log' for more details" "$LINENO" 5; }
6211 fi
6212
6213 ac_ext=c
6214 ac_cpp='$CPP $CPPFLAGS'
6215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6222 if ${ac_cv_path_GREP+:} false; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   if test -z "$GREP"; then
6226   ac_path_GREP_found=false
6227   # Loop through the user's path and test for each of PROGNAME-LIST
6228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6230 do
6231   IFS=$as_save_IFS
6232   test -z "$as_dir" && as_dir=.
6233     for ac_prog in grep ggrep; do
6234     for ac_exec_ext in '' $ac_executable_extensions; do
6235       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6236       as_fn_executable_p "$ac_path_GREP" || continue
6237 # Check for GNU ac_path_GREP and select it if it is found.
6238   # Check for GNU $ac_path_GREP
6239 case `"$ac_path_GREP" --version 2>&1` in
6240 *GNU*)
6241   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6242 *)
6243   ac_count=0
6244   $as_echo_n 0123456789 >"conftest.in"
6245   while :
6246   do
6247     cat "conftest.in" "conftest.in" >"conftest.tmp"
6248     mv "conftest.tmp" "conftest.in"
6249     cp "conftest.in" "conftest.nl"
6250     $as_echo 'GREP' >> "conftest.nl"
6251     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6252     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6253     as_fn_arith $ac_count + 1 && ac_count=$as_val
6254     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6255       # Best one so far, save it but keep looking for a better one
6256       ac_cv_path_GREP="$ac_path_GREP"
6257       ac_path_GREP_max=$ac_count
6258     fi
6259     # 10*(2^10) chars as input seems more than enough
6260     test $ac_count -gt 10 && break
6261   done
6262   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6263 esac
6264
6265       $ac_path_GREP_found && break 3
6266     done
6267   done
6268   done
6269 IFS=$as_save_IFS
6270   if test -z "$ac_cv_path_GREP"; then
6271     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6272   fi
6273 else
6274   ac_cv_path_GREP=$GREP
6275 fi
6276
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6279 $as_echo "$ac_cv_path_GREP" >&6; }
6280  GREP="$ac_cv_path_GREP"
6281
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6284 $as_echo_n "checking for egrep... " >&6; }
6285 if ${ac_cv_path_EGREP+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6289    then ac_cv_path_EGREP="$GREP -E"
6290    else
6291      if test -z "$EGREP"; then
6292   ac_path_EGREP_found=false
6293   # Loop through the user's path and test for each of PROGNAME-LIST
6294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299     for ac_prog in egrep; do
6300     for ac_exec_ext in '' $ac_executable_extensions; do
6301       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6302       as_fn_executable_p "$ac_path_EGREP" || continue
6303 # Check for GNU ac_path_EGREP and select it if it is found.
6304   # Check for GNU $ac_path_EGREP
6305 case `"$ac_path_EGREP" --version 2>&1` in
6306 *GNU*)
6307   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6308 *)
6309   ac_count=0
6310   $as_echo_n 0123456789 >"conftest.in"
6311   while :
6312   do
6313     cat "conftest.in" "conftest.in" >"conftest.tmp"
6314     mv "conftest.tmp" "conftest.in"
6315     cp "conftest.in" "conftest.nl"
6316     $as_echo 'EGREP' >> "conftest.nl"
6317     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6318     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6319     as_fn_arith $ac_count + 1 && ac_count=$as_val
6320     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6321       # Best one so far, save it but keep looking for a better one
6322       ac_cv_path_EGREP="$ac_path_EGREP"
6323       ac_path_EGREP_max=$ac_count
6324     fi
6325     # 10*(2^10) chars as input seems more than enough
6326     test $ac_count -gt 10 && break
6327   done
6328   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6329 esac
6330
6331       $ac_path_EGREP_found && break 3
6332     done
6333   done
6334   done
6335 IFS=$as_save_IFS
6336   if test -z "$ac_cv_path_EGREP"; then
6337     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6338   fi
6339 else
6340   ac_cv_path_EGREP=$EGREP
6341 fi
6342
6343    fi
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6346 $as_echo "$ac_cv_path_EGREP" >&6; }
6347  EGREP="$ac_cv_path_EGREP"
6348
6349
6350
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java virtual machine" >&5
6352 $as_echo_n "checking for Java virtual machine... " >&6; }
6353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h.  */
6355
6356 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
6357   yes
6358 #endif
6359
6360 _ACEOF
6361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362   $EGREP "yes" >/dev/null 2>&1; then :
6363   CLASSPATH_SEPARATOR=';'
6364 else
6365   CLASSPATH_SEPARATOR=':'
6366 fi
6367 rm -f conftest*
6368
6369   CONF_JAVA=
6370   HAVE_JAVA_ENVVAR=
6371   HAVE_GIJ=
6372   HAVE_JAVA=
6373   HAVE_JRE=
6374   HAVE_JVIEW=
6375   HAVE_JAVAEXEC=1
6376   if test -n "$JAVA"; then
6377     HAVE_JAVA_ENVVAR=1
6378     CONF_JAVA="$JAVA"
6379   else
6380                 # Extract the first word of "gij", so it can be a program name with args.
6381 set dummy gij; ac_word=$2
6382 :
6383 if ${ac_cv_prog_HAVE_GIJ_IN_PATH+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   if test -n "$HAVE_GIJ_IN_PATH"; then
6387   ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396     ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
6397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401   done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
6407 if test -n "$HAVE_GIJ_IN_PATH"; then
6408   :
6409 else
6410   :
6411 fi
6412
6413
6414     # Extract the first word of "java", so it can be a program name with args.
6415 set dummy java; ac_word=$2
6416 :
6417 if ${ac_cv_prog_HAVE_JAVA_IN_PATH+:} false; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$HAVE_JAVA_IN_PATH"; then
6421   ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430     ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
6431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
6441 if test -n "$HAVE_JAVA_IN_PATH"; then
6442   :
6443 else
6444   :
6445 fi
6446
6447
6448     # Extract the first word of "jre", so it can be a program name with args.
6449 set dummy jre; ac_word=$2
6450 :
6451 if ${ac_cv_prog_HAVE_JRE_IN_PATH+:} false; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454   if test -n "$HAVE_JRE_IN_PATH"; then
6455   ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462     for ac_exec_ext in '' $ac_executable_extensions; do
6463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464     ac_cv_prog_HAVE_JRE_IN_PATH="yes"
6465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469   done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
6475 if test -n "$HAVE_JRE_IN_PATH"; then
6476   :
6477 else
6478   :
6479 fi
6480
6481
6482     # Extract the first word of "jview", so it can be a program name with args.
6483 set dummy jview; ac_word=$2
6484 :
6485 if ${ac_cv_prog_HAVE_JVIEW_IN_PATH+:} false; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   if test -n "$HAVE_JVIEW_IN_PATH"; then
6489   ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494   IFS=$as_save_IFS
6495   test -z "$as_dir" && as_dir=.
6496     for ac_exec_ext in '' $ac_executable_extensions; do
6497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498     ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
6499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500     break 2
6501   fi
6502 done
6503   done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
6509 if test -n "$HAVE_JVIEW_IN_PATH"; then
6510   :
6511 else
6512   :
6513 fi
6514
6515
6516
6517     export CLASSPATH
6518     if test -n "$HAVE_GIJ_IN_PATH" \
6519        && gij --version >/dev/null 2>/dev/null \
6520        ; then
6521       HAVE_GIJ=1
6522       CONF_JAVA="gij"
6523     else
6524       if test -n "$HAVE_JAVA_IN_PATH" \
6525          && java -version >/dev/null 2>/dev/null \
6526          ; then
6527         HAVE_JAVA=1
6528         CONF_JAVA="java"
6529       else
6530         if test -n "$HAVE_JRE_IN_PATH" \
6531            && (jre >/dev/null 2>/dev/null || test $? = 1) \
6532            ; then
6533           HAVE_JRE=1
6534           CONF_JAVA="jre"
6535         else
6536           if test -n "$HAVE_JVIEW_IN_PATH" \
6537              && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
6538              ; then
6539             HAVE_JVIEW=1
6540             CONF_JAVA="jview"
6541           else
6542             HAVE_JAVAEXEC=
6543           fi
6544         fi
6545       fi
6546     fi
6547
6548   fi
6549   if test -n "$HAVE_JAVAEXEC"; then
6550     ac_result="$CONF_JAVA"
6551   else
6552     ac_result="no"
6553   fi
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6555 $as_echo "$ac_result" >&6; }
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h.  */
6569
6570 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
6571   yes
6572 #endif
6573
6574 _ACEOF
6575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6576   $EGREP "yes" >/dev/null 2>&1; then :
6577   CLASSPATH_SEPARATOR=';'
6578 else
6579   CLASSPATH_SEPARATOR=':'
6580 fi
6581 rm -f conftest*
6582
6583   source_version=1.3
6584   test -n "$source_version" || {
6585     as_fn_error $? "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
6586   }
6587   if test -n "$HAVE_JAVAEXEC"; then
6588               cat > conftestver.java <<EOF
6589 public class conftestver {
6590   public static void main (String[] args) {
6591     System.out.println(System.getProperty("java.specification.version"));
6592   }
6593 }
6594 EOF
6595                                                                       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' \
6596          | tr -d '\012\015' \
6597          | 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' \
6598          > conftestver.class
6599        target_version=`{
6600          unset JAVA_HOME
6601          echo "$as_me:6601: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver" >&5
6602          CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver 2>&5
6603        }`
6604        case "$target_version" in
6605          1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;;
6606          null)
6607                       target_version=1.1 ;;
6608          *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&5
6609 $as_echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;}
6610             target_version=1.1 ;;
6611        esac
6612      else
6613        target_version="1.1"
6614      fi
6615
6616   case "$source_version" in
6617     1.3) goodcode='class conftest {}'
6618          failcode='class conftestfail { static { assert(true); } }' ;;
6619     1.4) goodcode='class conftest     { static { assert(true); } }'
6620          failcode='class conftestfail<T> { T foo() { return null; } }' ;;
6621     1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
6622          failcode='class conftestfail syntax error' ;;
6623     *) as_fn_error $? "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
6624   esac
6625   case "$target_version" in
6626     1.1) cfversion=45 ;;
6627     1.2) cfversion=46 ;;
6628     1.3) cfversion=47 ;;
6629     1.4) cfversion=48 ;;
6630     1.5) cfversion=49 ;;
6631     1.6) cfversion=50 ;;
6632     *) as_fn_error $? "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
6633   esac
6634   # Function to output the classfile version of a file (8th byte) in decimal.
6635   if od -A x < /dev/null >/dev/null 2>/dev/null; then
6636     # Use POSIX od.
6637     func_classfile_version ()
6638     {
6639       od -A n -t d1 -j 7 -N 1 "$1"
6640     }
6641   else
6642     # Use BSD hexdump.
6643     func_classfile_version ()
6644     {
6645       dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
6646       echo
6647     }
6648   fi
6649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
6650 $as_echo_n "checking for Java compiler... " >&6; }
6651                                                                                         CONF_JAVAC=
6652   HAVE_JAVAC_ENVVAR=
6653   HAVE_GCJ_C=
6654   HAVE_JAVAC=
6655   HAVE_JIKES=
6656   HAVE_JAVACOMP=
6657   cat > conftestlib.java <<EOF
6658 public class conftestlib {
6659   public static void main (String[] args) {
6660   }
6661 }
6662 EOF
6663   echo "$goodcode" > conftest.java
6664   echo "$failcode" > conftestfail.java
6665         if test -n "$JAVAC"; then
6666         if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
6667             if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6668                         rm -f conftest.class
6669         if { echo "$as_me:6669: $JAVAC -d . conftest.java" >&5
6670              $JAVAC -d . conftest.java >&5 2>&1
6671            } \
6672            && test -f conftest.class \
6673            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6674                     rm -f conftest.class
6675           rm -f conftestfail.class
6676           if { echo "$as_me:6676: $JAVAC -fsource=$source_version -d . conftest.java" >&5
6677                $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
6678              } \
6679              && test -f conftest.class \
6680              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6681              && { echo "$as_me:6681: $JAVAC -d . conftestfail.java" >&5
6682                   $JAVAC -d . conftestfail.java >&5 2>&1
6683                 } \
6684              && test -f conftestfail.class \
6685              && ! { echo "$as_me:6685: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
6686                     $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6687                   }; then
6688             CONF_JAVAC="$JAVAC -fsource=$source_version"
6689             HAVE_JAVAC_ENVVAR=1
6690             HAVE_JAVACOMP=1
6691           else
6692             CONF_JAVAC="$JAVAC"
6693             HAVE_JAVAC_ENVVAR=1
6694             HAVE_JAVACOMP=1
6695           fi
6696         else
6697                     rm -f conftest.class
6698           rm -f conftestfail.class
6699           if { echo "$as_me:6699: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6700                $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6701              } \
6702              && test -f conftest.class \
6703              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6704             CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
6705             HAVE_JAVAC_ENVVAR=1
6706             HAVE_JAVACOMP=1
6707           fi
6708         fi
6709       else
6710                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6711                     rm -f conftest.class
6712           if { echo "$as_me:6712: $JAVAC -d . conftest.java" >&5
6713                $JAVAC -d . conftest.java >&5 2>&1
6714              } \
6715              && test -f conftest.class; then
6716             CONF_JAVAC="$JAVAC"
6717             HAVE_JAVAC_ENVVAR=1
6718             HAVE_JAVACOMP=1
6719           fi
6720         else
6721           if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
6722                                     javac_works=
6723             rm -f conftest.class
6724             if { echo "$as_me:6724: $JAVAC -d . conftest.java" >&5
6725                  $JAVAC -d . conftest.java >&5 2>&1
6726                } \
6727                && test -f conftest.class; then
6728               javac_works=1
6729             fi
6730             javac_noassert_works=
6731             rm -f conftest.class
6732             if { echo "$as_me:6732: $JAVAC -fno-assert -d . conftest.java" >&5
6733                  $JAVAC -fno-assert -d . conftest.java >&5 2>&1
6734                } \
6735                && test -f conftest.class; then
6736               javac_noassert_works=1
6737             fi
6738             if test -n "$javac_works" && test -n "$javac_noassert_works"; then
6739               rm -f conftestfail.class
6740               if { echo "$as_me:6740: $JAVAC -d . conftestfail.java" >&5
6741                    $JAVAC -d . conftestfail.java >&5 2>&1
6742                  } \
6743                  && test -f conftestfail.class \
6744                  && ! { echo "$as_me:6744: $JAVAC -fno-assert -d . conftestfail.java" >&5
6745                         $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
6746                       }; then
6747                                 javac_works=
6748               fi
6749             fi
6750             if test -n "$javac_works"; then
6751               CONF_JAVAC="$JAVAC"
6752               HAVE_JAVAC_ENVVAR=1
6753               HAVE_JAVACOMP=1
6754             else
6755               if test -n "$javac_noassert_works"; then
6756                 CONF_JAVAC="$JAVAC -fno-assert"
6757                 HAVE_JAVAC_ENVVAR=1
6758                 HAVE_JAVACOMP=1
6759               fi
6760             fi
6761           fi
6762         fi
6763       fi
6764     else
6765                   rm -f conftest.class
6766       if { echo "$as_me:6766: $JAVAC -d . conftest.java" >&5
6767            $JAVAC -d . conftest.java >&5 2>&1
6768          } \
6769          && test -f conftest.class \
6770          && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6771                 rm -f conftest.class
6772         rm -f conftestfail.class
6773         if { echo "$as_me:6773: $JAVAC -source $source_version -d . conftest.java" >&5
6774              $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
6775            } \
6776            && test -f conftest.class \
6777            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6778            && { echo "$as_me:6778: $JAVAC -d . conftestfail.java" >&5
6779                 $JAVAC -d . conftestfail.java >&5 2>&1
6780               } \
6781            && test -f conftestfail.class \
6782            && ! { echo "$as_me:6782: $JAVAC -source $source_version -d . conftestfail.java" >&5
6783                   $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
6784                 }; then
6785           CONF_JAVAC="$JAVAC -source $source_version"
6786           HAVE_JAVAC_ENVVAR=1
6787           HAVE_JAVACOMP=1
6788         else
6789           CONF_JAVAC="$JAVAC"
6790           HAVE_JAVAC_ENVVAR=1
6791           HAVE_JAVACOMP=1
6792         fi
6793       else
6794                         rm -f conftest.class
6795         if { echo "$as_me:6795: $JAVAC -target $target_version -d . conftest.java" >&5
6796              $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
6797            } \
6798            && test -f conftest.class \
6799            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6800                     rm -f conftest.class
6801           rm -f conftestfail.class
6802           if { echo "$as_me:6802: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6803                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6804              } \
6805              && test -f conftest.class \
6806              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6807              && { echo "$as_me:6807: $JAVAC -target $target_version -d . conftestfail.java" >&5
6808                   $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
6809                 } \
6810              && test -f conftestfail.class \
6811              && ! { echo "$as_me:6811: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
6812                     $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
6813                   }; then
6814             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6815             HAVE_JAVAC_ENVVAR=1
6816             HAVE_JAVACOMP=1
6817           else
6818             CONF_JAVAC="$JAVAC -target $target_version"
6819             HAVE_JAVAC_ENVVAR=1
6820             HAVE_JAVACOMP=1
6821           fi
6822         else
6823                                         rm -f conftest.class
6824           if { echo "$as_me:6824: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6825                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6826              } \
6827              && test -f conftest.class \
6828              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6829             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6830             HAVE_JAVAC_ENVVAR=1
6831             HAVE_JAVACOMP=1
6832           fi
6833         fi
6834       fi
6835     fi
6836   fi
6837   if test -z "$HAVE_JAVACOMP"; then
6838                 # Extract the first word of "gcj", so it can be a program name with args.
6839 set dummy gcj; ac_word=$2
6840 :
6841 if ${ac_cv_prog_HAVE_GCJ_IN_PATH+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   if test -n "$HAVE_GCJ_IN_PATH"; then
6845   ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850   IFS=$as_save_IFS
6851   test -z "$as_dir" && as_dir=.
6852     for ac_exec_ext in '' $ac_executable_extensions; do
6853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854     ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
6855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859   done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
6865 if test -n "$HAVE_GCJ_IN_PATH"; then
6866   :
6867 else
6868   :
6869 fi
6870
6871
6872     # Extract the first word of "javac", so it can be a program name with args.
6873 set dummy javac; ac_word=$2
6874 :
6875 if ${ac_cv_prog_HAVE_JAVAC_IN_PATH+:} false; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   if test -n "$HAVE_JAVAC_IN_PATH"; then
6879   ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888     ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
6889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893   done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
6899 if test -n "$HAVE_JAVAC_IN_PATH"; then
6900   :
6901 else
6902   :
6903 fi
6904
6905
6906     # Extract the first word of "jikes", so it can be a program name with args.
6907 set dummy jikes; ac_word=$2
6908 :
6909 if ${ac_cv_prog_HAVE_JIKES_IN_PATH+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   if test -n "$HAVE_JIKES_IN_PATH"; then
6913   ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920     for ac_exec_ext in '' $ac_executable_extensions; do
6921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922     ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
6923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927   done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
6933 if test -n "$HAVE_JIKES_IN_PATH"; then
6934   :
6935 else
6936   :
6937 fi
6938
6939
6940                 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
6941             if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
6942                 if { echo "$as_me:6942: gcj -C -d . conftestlib.java" >&5
6943              gcj -C -d . conftestlib.java >&5 2>&1
6944            }; then
6945                     if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6946                                     rm -f conftest.class
6947             if { echo "$as_me:6947: gcj -C -d . conftest.java" >&5
6948                  gcj -C -d . conftest.java >&5 2>&1
6949                } \
6950                && test -f conftest.class \
6951                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6952                             rm -f conftest.class
6953               rm -f conftestfail.class
6954               if { echo "$as_me:6954: gcj -C -fsource=$source_version -d . conftest.java" >&5
6955                    gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
6956                  } \
6957                  && test -f conftest.class \
6958                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6959                  && { echo "$as_me:6959: gcj -C -d . conftestfail.java" >&5
6960                       gcj -C -d . conftestfail.java >&5 2>&1
6961                     } \
6962                  && test -f conftestfail.class \
6963                  && ! { echo "$as_me:6963: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
6964                         gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6965                       }; then
6966                 CONF_JAVAC="gcj -C -fsource=$source_version"
6967                 HAVE_JAVAC_ENVVAR=1
6968                 HAVE_JAVACOMP=1
6969               else
6970                 CONF_JAVAC="gcj -C"
6971                 HAVE_JAVAC_ENVVAR=1
6972                 HAVE_JAVACOMP=1
6973               fi
6974             else
6975                             rm -f conftest.class
6976               rm -f conftestfail.class
6977               if { echo "$as_me:6977: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6978                    gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6979                  } \
6980                  && test -f conftest.class \
6981                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6982                 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
6983                 HAVE_JAVAC_ENVVAR=1
6984                 HAVE_JAVACOMP=1
6985               fi
6986             fi
6987           else
6988                                                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6989               rm -f conftest.class
6990               if { echo "$as_me:6990: gcj -C -d . conftest.java" >&5
6991                    gcj -C -d . conftest.java >&5 2>&1
6992                  } \
6993                  && test -f conftest.class; then
6994                 CONF_JAVAC="gcj -C"
6995                 HAVE_GCJ_C=1
6996                 HAVE_JAVACOMP=1
6997               fi
6998             else
6999               if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
7000                                                 rm -f conftest.class
7001                 if { echo "$as_me:7001: gcj -C -fno-assert -d . conftest.java" >&5
7002                      gcj -C -fno-assert -d . conftest.java >&5 2>&1
7003                    } \
7004                    && test -f conftest.class; then
7005                   CONF_JAVAC="gcj -C -fno-assert"
7006                   HAVE_GCJ_C=1
7007                   HAVE_JAVACOMP=1
7008                 else
7009                   rm -f conftest.class
7010                   if { echo "$as_me:7010: gcj -C -d . conftest.java" >&5
7011                        gcj -C -d . conftest.java >&5 2>&1
7012                      } \
7013                      && test -f conftest.class; then
7014                     CONF_JAVAC="gcj -C"
7015                     HAVE_GCJ_C=1
7016                     HAVE_JAVACOMP=1
7017                   fi
7018                 fi
7019               fi
7020             fi
7021           fi
7022         fi
7023       fi
7024     fi
7025     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
7026             if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
7027          && ( 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
7028                                 rm -f conftest.class
7029         if { echo "$as_me:7029: javac -d . conftest.java" >&5
7030              javac -d . conftest.java >&5 2>&1
7031            } \
7032            && test -f conftest.class \
7033            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
7034                     rm -f conftest.class
7035           rm -f conftestfail.class
7036           if { echo "$as_me:7036: javac -source $source_version -d . conftest.java" >&5
7037                javac -source "$source_version" -d . conftest.java >&5 2>&1
7038              } \
7039              && test -f conftest.class \
7040              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
7041              && { echo "$as_me:7041: javac -d . conftestfail.java" >&5
7042                   javac -d . conftestfail.java >&5 2>&1
7043                 } \
7044              && test -f conftestfail.class \
7045              && ! { echo "$as_me:7045: javac -source $source_version -d . conftestfail.java" >&5
7046                     javac -source "$source_version" -d . conftestfail.java >&5 2>&1
7047                   }; then
7048             CONF_JAVAC="javac -source $source_version"
7049             HAVE_JAVAC=1
7050             HAVE_JAVACOMP=1
7051           else
7052             CONF_JAVAC="javac"
7053             HAVE_JAVAC=1
7054             HAVE_JAVACOMP=1
7055           fi
7056         else
7057                               rm -f conftest.class
7058           if { echo "$as_me:7058: javac -target $target_version -d . conftest.java" >&5
7059                javac -target "$target_version" -d . conftest.java >&5 2>&1
7060              } \
7061              && test -f conftest.class \
7062              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
7063                         rm -f conftest.class
7064             rm -f conftestfail.class
7065             if { echo "$as_me:7065: javac -target $target_version -source $source_version -d . conftest.java" >&5
7066                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
7067                } \
7068                && test -f conftest.class \
7069                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
7070                && { echo "$as_me:7070: javac -target $target_version -d . conftestfail.java" >&5
7071                     javac -target "$target_version" -d . conftestfail.java >&5 2>&1
7072                   } \
7073                && test -f conftestfail.class \
7074                && ! { echo "$as_me:7074: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
7075                       javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
7076                     }; then
7077               CONF_JAVAC="javac -target $target_version -source $source_version"
7078               HAVE_JAVAC=1
7079               HAVE_JAVACOMP=1
7080             else
7081               CONF_JAVAC="javac -target $target_version"
7082               HAVE_JAVAC=1
7083               HAVE_JAVACOMP=1
7084             fi
7085           else
7086                                                 rm -f conftest.class
7087             if { echo "$as_me:7087: javac -target $target_version -source $source_version -d . conftest.java" >&5
7088                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
7089                } \
7090                && test -f conftest.class \
7091                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
7092               CONF_JAVAC="javac -target $target_version -source $source_version"
7093               HAVE_JAVAC=1
7094               HAVE_JAVACOMP=1
7095             fi
7096           fi
7097         fi
7098       fi
7099     fi
7100     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
7101             if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
7102          && (
7103               # See if the existing CLASSPATH is sufficient to make jikes work.
7104               unset JAVA_HOME
7105               jikes conftestlib.java >&5 2>&1
7106               error=$?
7107               rm -f conftestlib.class
7108               exit $error
7109             ); then
7110                                 if test "$source_version" = 1.3; then
7111           CONF_JAVAC="jikes"
7112           HAVE_JIKES=1
7113           HAVE_JAVACOMP=1
7114         fi
7115       fi
7116     fi
7117   fi
7118   rm -f conftest*.java conftest*.class
7119   if test -n "$HAVE_JAVACOMP"; then
7120     ac_result="$CONF_JAVAC"
7121   else
7122     ac_result="no"
7123   fi
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
7125 $as_echo "$ac_result" >&6; }
7126
7127
7128
7129
7130
7131
7132
7133
7134 # Extract the first word of "jar", so it can be a program name with args.
7135 set dummy jar; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_JAR+:} false; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   if test -n "$JAR"; then
7142   ac_cv_prog_JAR="$JAR" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149     for ac_exec_ext in '' $ac_executable_extensions; do
7150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151     ac_cv_prog_JAR="jar"
7152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156   done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 JAR=$ac_cv_prog_JAR
7162 if test -n "$JAR"; then
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
7164 $as_echo "$JAR" >&6; }
7165 else
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170
7171 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
7172   BUILDJAVA=yes
7173 else
7174   BUILDJAVA=no
7175 fi
7176
7177 if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
7178   TESTJAVA=yes
7179 else
7180   TESTJAVA=no
7181 fi
7182
7183
7184
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
7186 $as_echo_n "checking for preferred C# implementation... " >&6; }
7187   # Check whether --enable-csharp was given.
7188 if test "${enable_csharp+set}" = set; then :
7189   enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
7190 else
7191   CSHARP_CHOICE=any
7192 fi
7193
7194
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
7196 $as_echo "$CSHARP_CHOICE" >&6; }
7197   case "$CSHARP_CHOICE" in
7198     pnet)
7199
7200 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
7201
7202       ;;
7203     mono)
7204
7205 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
7206
7207       ;;
7208   esac
7209
7210
7211
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
7213 $as_echo_n "checking for C# compiler... " >&6; }
7214   HAVE_CSHARPCOMP=1
7215         # Extract the first word of "cscc", so it can be a program name with args.
7216 set dummy cscc; ac_word=$2
7217 :
7218 if ${ac_cv_prog_HAVE_CSCC_IN_PATH+:} false; then :
7219   $as_echo_n "(cached) " >&6
7220 else
7221   if test -n "$HAVE_CSCC_IN_PATH"; then
7222   ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229     for ac_exec_ext in '' $ac_executable_extensions; do
7230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231     ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
7232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236   done
7237 IFS=$as_save_IFS
7238
7239 fi
7240 fi
7241 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
7242 if test -n "$HAVE_CSCC_IN_PATH"; then
7243   :
7244 else
7245   :
7246 fi
7247
7248
7249   # Extract the first word of "mcs", so it can be a program name with args.
7250 set dummy mcs; ac_word=$2
7251 :
7252 if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   if test -n "$HAVE_MCS_IN_PATH"; then
7256   ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265     ac_cv_prog_HAVE_MCS_IN_PATH="yes"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270   done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
7276 if test -n "$HAVE_MCS_IN_PATH"; then
7277   :
7278 else
7279   :
7280 fi
7281
7282
7283   # Extract the first word of "csc", so it can be a program name with args.
7284 set dummy csc; ac_word=$2
7285 :
7286 if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then :
7287   $as_echo_n "(cached) " >&6
7288 else
7289   if test -n "$HAVE_CSC_IN_PATH"; then
7290   ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   test -z "$as_dir" && as_dir=.
7297     for ac_exec_ext in '' $ac_executable_extensions; do
7298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299     ac_cv_prog_HAVE_CSC_IN_PATH="yes"
7300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304   done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
7310 if test -n "$HAVE_CSC_IN_PATH"; then
7311   :
7312 else
7313   :
7314 fi
7315
7316
7317         for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
7318     case "$impl" in
7319       pnet)
7320         if test -n "$HAVE_CSCC_IN_PATH" \
7321            && cscc --version >/dev/null 2>/dev/null \
7322            && (
7323              # See if pnetlib is well installed.
7324              echo 'class ConfTest { static void Main() { } }' > conftest.cs
7325              cscc -o conftest.exe conftest.cs 2>/dev/null
7326              error=$?
7327              rm -f conftest.cs conftest.exe
7328              exit $error
7329             ); then
7330           HAVE_CSCC=1
7331           ac_result="cscc"
7332           break
7333         fi
7334         ;;
7335       mono)
7336         if test -n "$HAVE_MCS_IN_PATH" \
7337            && mcs --version >/dev/null 2>/dev/null \
7338            && mcs --version 2>/dev/null | grep Mono >/dev/null; then
7339           HAVE_MCS=1
7340           ac_result="mcs"
7341           break
7342         fi
7343         ;;
7344       sscli)
7345         if test -n "$HAVE_CSC_IN_PATH" \
7346            && csc -help >/dev/null 2>/dev/null \
7347            && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
7348           HAVE_CSC=1
7349           ac_result="csc"
7350           break
7351         fi
7352         ;;
7353       no)
7354         HAVE_CSHARPCOMP=
7355         ac_result="no"
7356         break
7357         ;;
7358     esac
7359   done
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
7361 $as_echo "$ac_result" >&6; }
7362
7363
7364
7365     if test -z "${CSHARPCOMPFLAGS+set}"; then
7366     CSHARPCOMPFLAGS="-O -g"
7367   fi
7368
7369
7370 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
7371   BUILDCSHARP=yes
7372 else
7373   BUILDCSHARP=no
7374 fi
7375
7376
7377
7378
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# program execution engine" >&5
7380 $as_echo_n "checking for C# program execution engine... " >&6; }
7381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h.  */
7383
7384 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
7385   yes
7386 #endif
7387
7388 _ACEOF
7389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7390   $EGREP "yes" >/dev/null 2>&1; then :
7391   MONO_PATH_SEPARATOR=';'
7392 else
7393   MONO_PATH_SEPARATOR=':'
7394 fi
7395 rm -f conftest*
7396
7397   HAVE_CSHARPEXEC=1
7398         # Extract the first word of "ilrun", so it can be a program name with args.
7399 set dummy ilrun; ac_word=$2
7400 :
7401 if ${ac_cv_prog_HAVE_ILRUN_IN_PATH+:} false; then :
7402   $as_echo_n "(cached) " >&6
7403 else
7404   if test -n "$HAVE_ILRUN_IN_PATH"; then
7405   ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410   IFS=$as_save_IFS
7411   test -z "$as_dir" && as_dir=.
7412     for ac_exec_ext in '' $ac_executable_extensions; do
7413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414     ac_cv_prog_HAVE_ILRUN_IN_PATH="yes"
7415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417   fi
7418 done
7419   done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH
7425 if test -n "$HAVE_ILRUN_IN_PATH"; then
7426   :
7427 else
7428   :
7429 fi
7430
7431
7432   # Extract the first word of "mono", so it can be a program name with args.
7433 set dummy mono; ac_word=$2
7434 :
7435 if ${ac_cv_prog_HAVE_MONO_IN_PATH+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   if test -n "$HAVE_MONO_IN_PATH"; then
7439   ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446     for ac_exec_ext in '' $ac_executable_extensions; do
7447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448     ac_cv_prog_HAVE_MONO_IN_PATH="yes"
7449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453   done
7454 IFS=$as_save_IFS
7455
7456 fi
7457 fi
7458 HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH
7459 if test -n "$HAVE_MONO_IN_PATH"; then
7460   :
7461 else
7462   :
7463 fi
7464
7465
7466   # Extract the first word of "clix", so it can be a program name with args.
7467 set dummy clix; ac_word=$2
7468 :
7469 if ${ac_cv_prog_HAVE_CLIX_IN_PATH+:} false; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   if test -n "$HAVE_CLIX_IN_PATH"; then
7473   ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480     for ac_exec_ext in '' $ac_executable_extensions; do
7481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482     ac_cv_prog_HAVE_CLIX_IN_PATH="yes"
7483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487   done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH
7493 if test -n "$HAVE_CLIX_IN_PATH"; then
7494   :
7495 else
7496   :
7497 fi
7498
7499
7500         for impl in "$CSHARP_CHOICE" pnet mono no; do
7501     case "$impl" in
7502       pnet)
7503         if test -n "$HAVE_ILRUN_IN_PATH" \
7504            && ilrun --version >/dev/null 2>/dev/null \
7505            && ilrun $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
7506           HAVE_ILRUN=1
7507           ac_result="ilrun"
7508           break
7509         fi
7510         ;;
7511       mono)
7512         if test -n "$HAVE_MONO_IN_PATH" \
7513            && mono --version >/dev/null 2>/dev/null \
7514            && mono $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
7515           HAVE_MONO=1
7516           ac_result="mono"
7517           break
7518         fi
7519         ;;
7520       sscli)
7521         if test -n "$HAVE_CLIX_IN_PATH" \
7522            && clix $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
7523           HAVE_CLIX=1
7524           case $host_os in
7525             cygwin* | mingw* | pw32*)
7526               CLIX_PATH_VAR=PATH
7527               ;;
7528             darwin* | rhapsody*)
7529               CLIX_PATH_VAR=DYLD_LIBRARY_PATH
7530               ;;
7531             *)
7532               CLIX_PATH_VAR=LD_LIBRARY_PATH
7533               ;;
7534           esac
7535           eval CLIX_PATH=\"\$CLIX_PATH_VAR\"
7536           ac_result="clix"
7537           break
7538         fi
7539         ;;
7540       no)
7541         HAVE_CSHARPEXEC=
7542         ac_result="no"
7543         break
7544         ;;
7545     esac
7546   done
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
7548 $as_echo "$ac_result" >&6; }
7549
7550
7551
7552
7553
7554
7555
7556
7557 if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
7558   TESTCSHARP=yes
7559 else
7560   TESTCSHARP=no
7561 fi
7562
7563
7564 # Make sure we can run config.sub.
7565 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7566   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7569 $as_echo_n "checking build system type... " >&6; }
7570 if ${ac_cv_build+:} false; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   ac_build_alias=$build_alias
7574 test "x$ac_build_alias" = x &&
7575   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7576 test "x$ac_build_alias" = x &&
7577   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7578 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7579   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7580
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7583 $as_echo "$ac_cv_build" >&6; }
7584 case $ac_cv_build in
7585 *-*-*) ;;
7586 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7587 esac
7588 build=$ac_cv_build
7589 ac_save_IFS=$IFS; IFS='-'
7590 set x $ac_cv_build
7591 shift
7592 build_cpu=$1
7593 build_vendor=$2
7594 shift; shift
7595 # Remember, the first character of IFS is used to create $*,
7596 # except with old shells:
7597 build_os=$*
7598 IFS=$ac_save_IFS
7599 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7600
7601
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7603 $as_echo_n "checking host system type... " >&6; }
7604 if ${ac_cv_host+:} false; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   if test "x$host_alias" = x; then
7608   ac_cv_host=$ac_cv_build
7609 else
7610   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7611     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7612 fi
7613
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7616 $as_echo "$ac_cv_host" >&6; }
7617 case $ac_cv_host in
7618 *-*-*) ;;
7619 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7620 esac
7621 host=$ac_cv_host
7622 ac_save_IFS=$IFS; IFS='-'
7623 set x $ac_cv_host
7624 shift
7625 host_cpu=$1
7626 host_vendor=$2
7627 shift; shift
7628 # Remember, the first character of IFS is used to create $*,
7629 # except with old shells:
7630 host_os=$*
7631 IFS=$ac_save_IFS
7632 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7633
7634
7635
7636
7637
7638
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7640 $as_echo_n "checking for ANSI C header files... " >&6; }
7641 if ${ac_cv_header_stdc+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h.  */
7646 #include <stdlib.h>
7647 #include <stdarg.h>
7648 #include <string.h>
7649 #include <float.h>
7650
7651 int
7652 main ()
7653 {
7654
7655   ;
7656   return 0;
7657 }
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"; then :
7660   ac_cv_header_stdc=yes
7661 else
7662   ac_cv_header_stdc=no
7663 fi
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665
7666 if test $ac_cv_header_stdc = yes; then
7667   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h.  */
7670 #include <string.h>
7671
7672 _ACEOF
7673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7674   $EGREP "memchr" >/dev/null 2>&1; then :
7675
7676 else
7677   ac_cv_header_stdc=no
7678 fi
7679 rm -f conftest*
7680
7681 fi
7682
7683 if test $ac_cv_header_stdc = yes; then
7684   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h.  */
7687 #include <stdlib.h>
7688
7689 _ACEOF
7690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7691   $EGREP "free" >/dev/null 2>&1; then :
7692
7693 else
7694   ac_cv_header_stdc=no
7695 fi
7696 rm -f conftest*
7697
7698 fi
7699
7700 if test $ac_cv_header_stdc = yes; then
7701   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7702   if test "$cross_compiling" = yes; then :
7703   :
7704 else
7705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h.  */
7707 #include <ctype.h>
7708 #include <stdlib.h>
7709 #if ((' ' & 0x0FF) == 0x020)
7710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7712 #else
7713 # define ISLOWER(c) \
7714                    (('a' <= (c) && (c) <= 'i') \
7715                      || ('j' <= (c) && (c) <= 'r') \
7716                      || ('s' <= (c) && (c) <= 'z'))
7717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7718 #endif
7719
7720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7721 int
7722 main ()
7723 {
7724   int i;
7725   for (i = 0; i < 256; i++)
7726     if (XOR (islower (i), ISLOWER (i))
7727         || toupper (i) != TOUPPER (i))
7728       return 2;
7729   return 0;
7730 }
7731 _ACEOF
7732 if ac_fn_c_try_run "$LINENO"; then :
7733
7734 else
7735   ac_cv_header_stdc=no
7736 fi
7737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7738   conftest.$ac_objext conftest.beam conftest.$ac_ext
7739 fi
7740
7741 fi
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7744 $as_echo "$ac_cv_header_stdc" >&6; }
7745 if test $ac_cv_header_stdc = yes; then
7746
7747 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7748
7749 fi
7750
7751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7753                   inttypes.h stdint.h unistd.h
7754 do :
7755   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7757 "
7758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7759   cat >>confdefs.h <<_ACEOF
7760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7761 _ACEOF
7762
7763 fi
7764
7765 done
7766
7767
7768
7769   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7770 if test "x$ac_cv_header_minix_config_h" = xyes; then :
7771   MINIX=yes
7772 else
7773   MINIX=
7774 fi
7775
7776
7777   if test "$MINIX" = yes; then
7778
7779 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7780
7781
7782 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7783
7784
7785 $as_echo "#define _MINIX 1" >>confdefs.h
7786
7787
7788 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7789
7790   fi
7791
7792
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7794 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7795 if ${ac_cv_safe_to_define___extensions__+:} false; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h.  */
7800
7801 #         define __EXTENSIONS__ 1
7802           $ac_includes_default
7803 int
7804 main ()
7805 {
7806
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812   ac_cv_safe_to_define___extensions__=yes
7813 else
7814   ac_cv_safe_to_define___extensions__=no
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7819 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7820   test $ac_cv_safe_to_define___extensions__ = yes &&
7821     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7822
7823   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7824
7825   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7826
7827   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7828
7829   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
7830
7831   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7832
7833   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7834
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7836 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7837 if ${ac_cv_should_define__xopen_source+:} false; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   ac_cv_should_define__xopen_source=no
7841      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h.  */
7843
7844           #include <wchar.h>
7845           mbstate_t x;
7846 int
7847 main ()
7848 {
7849
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 if ac_fn_c_try_compile "$LINENO"; then :
7855
7856 else
7857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h.  */
7859
7860              #define _XOPEN_SOURCE 500
7861              #include <wchar.h>
7862              mbstate_t x;
7863 int
7864 main ()
7865 {
7866
7867   ;
7868   return 0;
7869 }
7870 _ACEOF
7871 if ac_fn_c_try_compile "$LINENO"; then :
7872   ac_cv_should_define__xopen_source=yes
7873 fi
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875 fi
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 fi
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7879 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
7880   test $ac_cv_should_define__xopen_source = yes &&
7881     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7894 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
7895 if ${gl_cv_c_amsterdam_compiler+:} false; then :
7896   $as_echo_n "(cached) " >&6
7897 else
7898
7899       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h.  */
7901
7902 #ifdef __ACK__
7903 Amsterdam
7904 #endif
7905
7906 _ACEOF
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908   $EGREP "Amsterdam" >/dev/null 2>&1; then :
7909   gl_cv_c_amsterdam_compiler=yes
7910 else
7911   gl_cv_c_amsterdam_compiler=no
7912 fi
7913 rm -f conftest*
7914
7915
7916 fi
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7918 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
7919
7920       if test $gl_cv_c_amsterdam_compiler = yes; then
7921     if test -z "$AR"; then
7922       AR='cc -c.a'
7923     fi
7924     if test -z "$ARFLAGS"; then
7925       ARFLAGS='-o'
7926     fi
7927   else
7928                                         if test -n "$ac_tool_prefix"; then
7929   for ac_prog in ar lib "link -lib"
7930   do
7931     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if ${ac_cv_prog_AR+:} false; then :
7936   $as_echo_n "(cached) " >&6
7937 else
7938   if test -n "$AR"; then
7939   ac_cv_prog_AR="$AR" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944   IFS=$as_save_IFS
7945   test -z "$as_dir" && as_dir=.
7946     for ac_exec_ext in '' $ac_executable_extensions; do
7947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950     break 2
7951   fi
7952 done
7953   done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 AR=$ac_cv_prog_AR
7959 if test -n "$AR"; then
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7961 $as_echo "$AR" >&6; }
7962 else
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966
7967
7968     test -n "$AR" && break
7969   done
7970 fi
7971 if test -z "$AR"; then
7972   ac_ct_AR=$AR
7973   for ac_prog in ar lib "link -lib"
7974 do
7975   # Extract the first word of "$ac_prog", so it can be a program name with args.
7976 set dummy $ac_prog; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7980   $as_echo_n "(cached) " >&6
7981 else
7982   if test -n "$ac_ct_AR"; then
7983   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988   IFS=$as_save_IFS
7989   test -z "$as_dir" && as_dir=.
7990     for ac_exec_ext in '' $ac_executable_extensions; do
7991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992     ac_cv_prog_ac_ct_AR="$ac_prog"
7993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994     break 2
7995   fi
7996 done
7997   done
7998 IFS=$as_save_IFS
7999
8000 fi
8001 fi
8002 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8003 if test -n "$ac_ct_AR"; then
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8005 $as_echo "$ac_ct_AR" >&6; }
8006 else
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8009 fi
8010
8011
8012   test -n "$ac_ct_AR" && break
8013 done
8014
8015   if test "x$ac_ct_AR" = x; then
8016     AR="false"
8017   else
8018     case $cross_compiling:$ac_tool_warned in
8019 yes:)
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022 ac_tool_warned=yes ;;
8023 esac
8024     AR=$ac_ct_AR
8025   fi
8026 fi
8027
8028 : ${AR=ar}
8029
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8031 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8032 if ${am_cv_ar_interface+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   ac_ext=c
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
8041    am_cv_ar_interface=ar
8042    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h.  */
8044 int some_variable = 0;
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047   am_ar_try='$AR cru libconftest.a 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=ar
8055       else
8056         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8057         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8058   (eval $am_ar_try) 2>&5
8059   ac_status=$?
8060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8061   test $ac_status = 0; }
8062         if test "$ac_status" -eq 0; then
8063           am_cv_ar_interface=lib
8064         else
8065           am_cv_ar_interface=unknown
8066         fi
8067       fi
8068       rm -f conftest.lib libconftest.a
8069
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072    ac_ext=c
8073 ac_cpp='$CPP $CPPFLAGS'
8074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8077
8078 fi
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8080 $as_echo "$am_cv_ar_interface" >&6; }
8081
8082 case $am_cv_ar_interface in
8083 ar)
8084   ;;
8085 lib)
8086   # Microsoft lib, so override with the ar-lib wrapper script.
8087   # FIXME: It is wrong to rewrite AR.
8088   # But if we don't then we get into trouble of one sort or another.
8089   # A longer-term fix would be to have automake use am__AR in this case,
8090   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8091   # similar.
8092   AR="$am_aux_dir/ar-lib $AR"
8093   ;;
8094 unknown)
8095   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8096   ;;
8097 esac
8098
8099   fi
8100
8101         if test -n "$ac_tool_prefix"; then
8102   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8103 set dummy ${ac_tool_prefix}ar; ac_word=$2
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105 $as_echo_n "checking for $ac_word... " >&6; }
8106 if ${ac_cv_prog_AR+:} false; then :
8107   $as_echo_n "(cached) " >&6
8108 else
8109   if test -n "$AR"; then
8110   ac_cv_prog_AR="$AR" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115   IFS=$as_save_IFS
8116   test -z "$as_dir" && as_dir=.
8117     for ac_exec_ext in '' $ac_executable_extensions; do
8118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119     ac_cv_prog_AR="${ac_tool_prefix}ar"
8120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8121     break 2
8122   fi
8123 done
8124   done
8125 IFS=$as_save_IFS
8126
8127 fi
8128 fi
8129 AR=$ac_cv_prog_AR
8130 if test -n "$AR"; then
8131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8132 $as_echo "$AR" >&6; }
8133 else
8134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8136 fi
8137
8138
8139 fi
8140 if test -z "$ac_cv_prog_AR"; then
8141   ac_ct_AR=$AR
8142   # Extract the first word of "ar", so it can be a program name with args.
8143 set dummy ar; ac_word=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 $as_echo_n "checking for $ac_word... " >&6; }
8146 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8147   $as_echo_n "(cached) " >&6
8148 else
8149   if test -n "$ac_ct_AR"; then
8150   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155   IFS=$as_save_IFS
8156   test -z "$as_dir" && as_dir=.
8157     for ac_exec_ext in '' $ac_executable_extensions; do
8158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8159     ac_cv_prog_ac_ct_AR="ar"
8160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161     break 2
8162   fi
8163 done
8164   done
8165 IFS=$as_save_IFS
8166
8167 fi
8168 fi
8169 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8170 if test -n "$ac_ct_AR"; then
8171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8172 $as_echo "$ac_ct_AR" >&6; }
8173 else
8174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8176 fi
8177
8178   if test "x$ac_ct_AR" = x; then
8179     AR="ar"
8180   else
8181     case $cross_compiling:$ac_tool_warned in
8182 yes:)
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8185 ac_tool_warned=yes ;;
8186 esac
8187     AR=$ac_ct_AR
8188   fi
8189 else
8190   AR="$ac_cv_prog_AR"
8191 fi
8192
8193   if test -z "$ARFLAGS"; then
8194     ARFLAGS='cr'
8195   fi
8196
8197
8198
8199   if test -z "$RANLIB"; then
8200     if test $gl_cv_c_amsterdam_compiler = yes; then
8201       RANLIB=':'
8202     else
8203             if test -n "$ac_tool_prefix"; then
8204   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_RANLIB+:} false; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test -n "$RANLIB"; then
8212   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219     for ac_exec_ext in '' $ac_executable_extensions; do
8220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226   done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 RANLIB=$ac_cv_prog_RANLIB
8232 if test -n "$RANLIB"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8234 $as_echo "$RANLIB" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240
8241 fi
8242 if test -z "$ac_cv_prog_RANLIB"; then
8243   ac_ct_RANLIB=$RANLIB
8244   # Extract the first word of "ranlib", so it can be a program name with args.
8245 set dummy ranlib; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8249   $as_echo_n "(cached) " >&6
8250 else
8251   if test -n "$ac_ct_RANLIB"; then
8252   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8256 do
8257   IFS=$as_save_IFS
8258   test -z "$as_dir" && as_dir=.
8259     for ac_exec_ext in '' $ac_executable_extensions; do
8260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8261     ac_cv_prog_ac_ct_RANLIB="ranlib"
8262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263     break 2
8264   fi
8265 done
8266   done
8267 IFS=$as_save_IFS
8268
8269 fi
8270 fi
8271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8272 if test -n "$ac_ct_RANLIB"; then
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8274 $as_echo "$ac_ct_RANLIB" >&6; }
8275 else
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279
8280   if test "x$ac_ct_RANLIB" = x; then
8281     RANLIB=":"
8282   else
8283     case $cross_compiling:$ac_tool_warned in
8284 yes:)
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8287 ac_tool_warned=yes ;;
8288 esac
8289     RANLIB=$ac_ct_RANLIB
8290   fi
8291 else
8292   RANLIB="$ac_cv_prog_RANLIB"
8293 fi
8294
8295     fi
8296   fi
8297
8298
8299
8300
8301
8302
8303   # IEEE behaviour is the default on all CPUs except Alpha and SH
8304   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
8305   # and the GCC 4.1.2 manual).
8306   case "$host_cpu" in
8307     alpha*)
8308       # On Alpha systems, a compiler option provides the behaviour.
8309       # See the ieee(3) manual page, also available at
8310       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
8311       if test -n "$GCC"; then
8312         # GCC has the option -mieee.
8313         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
8314         CPPFLAGS="$CPPFLAGS -mieee"
8315       else
8316         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
8317         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
8318         CPPFLAGS="$CPPFLAGS -ieee"
8319       fi
8320       ;;
8321     sh*)
8322       if test -n "$GCC"; then
8323         # GCC has the option -mieee.
8324         CPPFLAGS="$CPPFLAGS -mieee"
8325       fi
8326       ;;
8327   esac
8328
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8330 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8331 if ${ac_cv_sys_largefile_source+:} false; then :
8332   $as_echo_n "(cached) " >&6
8333 else
8334   while :; do
8335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h.  */
8337 #include <sys/types.h> /* for off_t */
8338      #include <stdio.h>
8339 int
8340 main ()
8341 {
8342 int (*fp) (FILE *, off_t, int) = fseeko;
8343      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8344   ;
8345   return 0;
8346 }
8347 _ACEOF
8348 if ac_fn_c_try_link "$LINENO"; then :
8349   ac_cv_sys_largefile_source=no; break
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352     conftest$ac_exeext conftest.$ac_ext
8353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h.  */
8355 #define _LARGEFILE_SOURCE 1
8356 #include <sys/types.h> /* for off_t */
8357      #include <stdio.h>
8358 int
8359 main ()
8360 {
8361 int (*fp) (FILE *, off_t, int) = fseeko;
8362      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 if ac_fn_c_try_link "$LINENO"; then :
8368   ac_cv_sys_largefile_source=1; break
8369 fi
8370 rm -f core conftest.err conftest.$ac_objext \
8371     conftest$ac_exeext conftest.$ac_ext
8372   ac_cv_sys_largefile_source=unknown
8373   break
8374 done
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8377 $as_echo "$ac_cv_sys_largefile_source" >&6; }
8378 case $ac_cv_sys_largefile_source in #(
8379   no | unknown) ;;
8380   *)
8381 cat >>confdefs.h <<_ACEOF
8382 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8383 _ACEOF
8384 ;;
8385 esac
8386 rm -rf conftest*
8387
8388 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8389 # in glibc 2.1.3, but that breaks too many other things.
8390 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8391 if test $ac_cv_sys_largefile_source != unknown; then
8392
8393 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
8394
8395 fi
8396
8397 # Check whether --enable-largefile was given.
8398 if test "${enable_largefile+set}" = set; then :
8399   enableval=$enable_largefile;
8400 fi
8401
8402 if test "$enable_largefile" != no; then
8403
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8405 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8406 if ${ac_cv_sys_largefile_CC+:} false; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409   ac_cv_sys_largefile_CC=no
8410      if test "$GCC" != yes; then
8411        ac_save_CC=$CC
8412        while :; do
8413          # IRIX 6.2 and later do not support large files by default,
8414          # so use the C compiler's -n32 option if that helps.
8415          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h.  */
8417 #include <sys/types.h>
8418  /* Check that off_t can represent 2**63 - 1 correctly.
8419     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8420     since some C++ compilers masquerading as C compilers
8421     incorrectly reject 9223372036854775807.  */
8422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8423   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8424                        && LARGE_OFF_T % 2147483647 == 1)
8425                       ? 1 : -1];
8426 int
8427 main ()
8428 {
8429
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434          if ac_fn_c_try_compile "$LINENO"; then :
8435   break
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext
8438          CC="$CC -n32"
8439          if ac_fn_c_try_compile "$LINENO"; then :
8440   ac_cv_sys_largefile_CC=' -n32'; break
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext
8443          break
8444        done
8445        CC=$ac_save_CC
8446        rm -f conftest.$ac_ext
8447     fi
8448 fi
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8450 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8451   if test "$ac_cv_sys_largefile_CC" != no; then
8452     CC=$CC$ac_cv_sys_largefile_CC
8453   fi
8454
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8456 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8457 if ${ac_cv_sys_file_offset_bits+:} false; then :
8458   $as_echo_n "(cached) " >&6
8459 else
8460   while :; do
8461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h.  */
8463 #include <sys/types.h>
8464  /* Check that off_t can represent 2**63 - 1 correctly.
8465     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8466     since some C++ compilers masquerading as C compilers
8467     incorrectly reject 9223372036854775807.  */
8468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8469   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8470                        && LARGE_OFF_T % 2147483647 == 1)
8471                       ? 1 : -1];
8472 int
8473 main ()
8474 {
8475
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_compile "$LINENO"; then :
8481   ac_cv_sys_file_offset_bits=no; break
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h.  */
8486 #define _FILE_OFFSET_BITS 64
8487 #include <sys/types.h>
8488  /* Check that off_t can represent 2**63 - 1 correctly.
8489     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8490     since some C++ compilers masquerading as C compilers
8491     incorrectly reject 9223372036854775807.  */
8492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8493   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8494                        && LARGE_OFF_T % 2147483647 == 1)
8495                       ? 1 : -1];
8496 int
8497 main ()
8498 {
8499
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 if ac_fn_c_try_compile "$LINENO"; then :
8505   ac_cv_sys_file_offset_bits=64; break
8506 fi
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508   ac_cv_sys_file_offset_bits=unknown
8509   break
8510 done
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8513 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8514 case $ac_cv_sys_file_offset_bits in #(
8515   no | unknown) ;;
8516   *)
8517 cat >>confdefs.h <<_ACEOF
8518 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8519 _ACEOF
8520 ;;
8521 esac
8522 rm -rf conftest*
8523   if test $ac_cv_sys_file_offset_bits = unknown; then
8524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8525 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8526 if ${ac_cv_sys_large_files+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   while :; do
8530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h.  */
8532 #include <sys/types.h>
8533  /* Check that off_t can represent 2**63 - 1 correctly.
8534     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8535     since some C++ compilers masquerading as C compilers
8536     incorrectly reject 9223372036854775807.  */
8537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8538   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8539                        && LARGE_OFF_T % 2147483647 == 1)
8540                       ? 1 : -1];
8541 int
8542 main ()
8543 {
8544
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550   ac_cv_sys_large_files=no; break
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h.  */
8555 #define _LARGE_FILES 1
8556 #include <sys/types.h>
8557  /* Check that off_t can represent 2**63 - 1 correctly.
8558     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8559     since some C++ compilers masquerading as C compilers
8560     incorrectly reject 9223372036854775807.  */
8561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8562   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8563                        && LARGE_OFF_T % 2147483647 == 1)
8564                       ? 1 : -1];
8565 int
8566 main ()
8567 {
8568
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 if ac_fn_c_try_compile "$LINENO"; then :
8574   ac_cv_sys_large_files=1; break
8575 fi
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577   ac_cv_sys_large_files=unknown
8578   break
8579 done
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8582 $as_echo "$ac_cv_sys_large_files" >&6; }
8583 case $ac_cv_sys_large_files in #(
8584   no | unknown) ;;
8585   *)
8586 cat >>confdefs.h <<_ACEOF
8587 #define _LARGE_FILES $ac_cv_sys_large_files
8588 _ACEOF
8589 ;;
8590 esac
8591 rm -rf conftest*
8592   fi
8593
8594
8595 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
8596
8597 fi
8598
8599    case $ac_cv_prog_cc_stdc in #(
8600   no) :
8601     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
8602   *) :
8603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8604 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
8605 if ${ac_cv_prog_cc_c99+:} false; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   ac_cv_prog_cc_c99=no
8609 ac_save_CC=$CC
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h.  */
8612 #include <stdarg.h>
8613 #include <stdbool.h>
8614 #include <stdlib.h>
8615 #include <wchar.h>
8616 #include <stdio.h>
8617
8618 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
8619 #define debug(...) fprintf (stderr, __VA_ARGS__)
8620 #define showlist(...) puts (#__VA_ARGS__)
8621 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8622 static void
8623 test_varargs_macros (void)
8624 {
8625   int x = 1234;
8626   int y = 5678;
8627   debug ("Flag");
8628   debug ("X = %d\n", x);
8629   showlist (The first, second, and third items.);
8630   report (x>y, "x is %d but y is %d", x, y);
8631 }
8632
8633 // Check long long types.
8634 #define BIG64 18446744073709551615ull
8635 #define BIG32 4294967295ul
8636 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8637 #if !BIG_OK
8638   your preprocessor is broken;
8639 #endif
8640 #if BIG_OK
8641 #else
8642   your preprocessor is broken;
8643 #endif
8644 static long long int bignum = -9223372036854775807LL;
8645 static unsigned long long int ubignum = BIG64;
8646
8647 struct incomplete_array
8648 {
8649   int datasize;
8650   double data[];
8651 };
8652
8653 struct named_init {
8654   int number;
8655   const wchar_t *name;
8656   double average;
8657 };
8658
8659 typedef const char *ccp;
8660
8661 static inline int
8662 test_restrict (ccp restrict text)
8663 {
8664   // See if C++-style comments work.
8665   // Iterate through items via the restricted pointer.
8666   // Also check for declarations in for loops.
8667   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8668     continue;
8669   return 0;
8670 }
8671
8672 // Check varargs and va_copy.
8673 static void
8674 test_varargs (const char *format, ...)
8675 {
8676   va_list args;
8677   va_start (args, format);
8678   va_list args_copy;
8679   va_copy (args_copy, args);
8680
8681   const char *str;
8682   int number;
8683   float fnumber;
8684
8685   while (*format)
8686     {
8687       switch (*format++)
8688         {
8689         case 's': // string
8690           str = va_arg (args_copy, const char *);
8691           break;
8692         case 'd': // int
8693           number = va_arg (args_copy, int);
8694           break;
8695         case 'f': // float
8696           fnumber = va_arg (args_copy, double);
8697           break;
8698         default:
8699           break;
8700         }
8701     }
8702   va_end (args_copy);
8703   va_end (args);
8704 }
8705
8706 int
8707 main ()
8708 {
8709
8710   // Check bool.
8711   _Bool success = false;
8712
8713   // Check restrict.
8714   if (test_restrict ("String literal") == 0)
8715     success = true;
8716   char *restrict newvar = "Another string";
8717
8718   // Check varargs.
8719   test_varargs ("s, d' f .", "string", 65, 34.234);
8720   test_varargs_macros ();
8721
8722   // Check flexible array members.
8723   struct incomplete_array *ia =
8724     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8725   ia->datasize = 10;
8726   for (int i = 0; i < ia->datasize; ++i)
8727     ia->data[i] = i * 1.234;
8728
8729   // Check named initializers.
8730   struct named_init ni = {
8731     .number = 34,
8732     .name = L"Test wide string",
8733     .average = 543.34343,
8734   };
8735
8736   ni.number = 58;
8737
8738   int dynamic_array[ni.number];
8739   dynamic_array[ni.number - 1] = 543;
8740
8741   // work around unused variable warnings
8742   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8743           || dynamic_array[ni.number - 1] != 543);
8744
8745   ;
8746   return 0;
8747 }
8748 _ACEOF
8749 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
8750 do
8751   CC="$ac_save_CC $ac_arg"
8752   if ac_fn_c_try_compile "$LINENO"; then :
8753   ac_cv_prog_cc_c99=$ac_arg
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext
8756   test "x$ac_cv_prog_cc_c99" != "xno" && break
8757 done
8758 rm -f conftest.$ac_ext
8759 CC=$ac_save_CC
8760
8761 fi
8762 # AC_CACHE_VAL
8763 case "x$ac_cv_prog_cc_c99" in
8764   x)
8765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8766 $as_echo "none needed" >&6; } ;;
8767   xno)
8768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8769 $as_echo "unsupported" >&6; } ;;
8770   *)
8771     CC="$CC $ac_cv_prog_cc_c99"
8772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8773 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8774 esac
8775 if test "x$ac_cv_prog_cc_c99" != xno; then :
8776   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
8777 else
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8779 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8780 if ${ac_cv_prog_cc_c89+:} false; then :
8781   $as_echo_n "(cached) " >&6
8782 else
8783   ac_cv_prog_cc_c89=no
8784 ac_save_CC=$CC
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h.  */
8787 #include <stdarg.h>
8788 #include <stdio.h>
8789 struct stat;
8790 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8791 struct buf { int x; };
8792 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8793 static char *e (p, i)
8794      char **p;
8795      int i;
8796 {
8797   return p[i];
8798 }
8799 static char *f (char * (*g) (char **, int), char **p, ...)
8800 {
8801   char *s;
8802   va_list v;
8803   va_start (v,p);
8804   s = g (p, va_arg (v,int));
8805   va_end (v);
8806   return s;
8807 }
8808
8809 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
8810    function prototypes and stuff, but not '\xHH' hex character constants.
8811    These don't provoke an error unfortunately, instead are silently treated
8812    as 'x'.  The following induces an error, until -std is added to get
8813    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
8814    array size at least.  It's necessary to write '\x00'==0 to get something
8815    that's true only with -std.  */
8816 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8817
8818 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8819    inside strings and character constants.  */
8820 #define FOO(x) 'x'
8821 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8822
8823 int test (int i, double x);
8824 struct s1 {int (*f) (int a);};
8825 struct s2 {int (*f) (double a);};
8826 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8827 int argc;
8828 char **argv;
8829 int
8830 main ()
8831 {
8832 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8838         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8839 do
8840   CC="$ac_save_CC $ac_arg"
8841   if ac_fn_c_try_compile "$LINENO"; then :
8842   ac_cv_prog_cc_c89=$ac_arg
8843 fi
8844 rm -f core conftest.err conftest.$ac_objext
8845   test "x$ac_cv_prog_cc_c89" != "xno" && break
8846 done
8847 rm -f conftest.$ac_ext
8848 CC=$ac_save_CC
8849
8850 fi
8851 # AC_CACHE_VAL
8852 case "x$ac_cv_prog_cc_c89" in
8853   x)
8854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8855 $as_echo "none needed" >&6; } ;;
8856   xno)
8857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8858 $as_echo "unsupported" >&6; } ;;
8859   *)
8860     CC="$CC $ac_cv_prog_cc_c89"
8861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8862 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8863 esac
8864 if test "x$ac_cv_prog_cc_c89" != xno; then :
8865   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
8866 else
8867   ac_cv_prog_cc_stdc=no
8868 fi
8869
8870 fi
8871  ;;
8872 esac
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
8874 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
8875   if ${ac_cv_prog_cc_stdc+:} false; then :
8876   $as_echo_n "(cached) " >&6
8877 fi
8878
8879   case $ac_cv_prog_cc_stdc in #(
8880   no) :
8881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8882 $as_echo "unsupported" >&6; } ;; #(
8883   '') :
8884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8885 $as_echo "none needed" >&6; } ;; #(
8886   *) :
8887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
8888 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
8889 esac
8890
8891
8892
8893
8894
8895
8896   # Check whether --enable-threads was given.
8897 if test "${enable_threads+set}" = set; then :
8898   enableval=$enable_threads; gl_use_threads=$enableval
8899 else
8900   if test -n "$gl_use_threads_default"; then
8901        gl_use_threads="$gl_use_threads_default"
8902      else
8903        case "$host_os" in
8904                                                                osf*) gl_use_threads=no ;;
8905          cygwin*)
8906                case `uname -r` in
8907                  1.[0-5].*) gl_use_threads=no ;;
8908                  *)         gl_use_threads=yes ;;
8909                esac
8910                ;;
8911          *)    gl_use_threads=yes ;;
8912        esac
8913      fi
8914
8915 fi
8916
8917   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8918     # For using <pthread.h>:
8919     case "$host_os" in
8920       osf*)
8921         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8922         # groks <pthread.h>. cc also understands the flag -pthread, but
8923         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8924         # 2. putting a flag into CPPFLAGS that has an effect on the linker
8925         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8926         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8927         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8928         ;;
8929     esac
8930     # Some systems optimize for single-threaded programs by default, and
8931     # need special flags to disable these optimizations. For example, the
8932     # definition of 'errno' in <errno.h>.
8933     case "$host_os" in
8934       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8935       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8936     esac
8937   fi
8938
8939
8940
8941   # Pre-early section.
8942
8943
8944
8945
8946   # Code from module absolute-header:
8947   # Code from module acl:
8948   # Code from module acl-permissions:
8949   # Code from module acl-tests:
8950   # Code from module alignof:
8951   # Code from module alignof-tests:
8952   # Code from module alloca-opt:
8953   # Code from module alloca-opt-tests:
8954   # Code from module allocator:
8955   # Code from module ansi-c++-opt:
8956   # Code from module areadlink:
8957   # Code from module areadlink-tests:
8958   # Code from module argmatch:
8959   # Code from module argmatch-tests:
8960   # Code from module array-list:
8961   # Code from module array-list-tests:
8962   # Code from module atexit:
8963   # Code from module atexit-tests:
8964   # Code from module backupfile:
8965   # Code from module basename:
8966   # Code from module binary-io:
8967   # Code from module binary-io-tests:
8968   # Code from module bison-i18n:
8969   # Code from module btowc:
8970   # Code from module btowc-tests:
8971   # Code from module byteswap:
8972   # Code from module byteswap-tests:
8973   # Code from module c-ctype:
8974   # Code from module c-ctype-tests:
8975   # Code from module c-strcase:
8976   # Code from module c-strcase-tests:
8977   # Code from module c-strcaseeq:
8978   # Code from module c-strcasestr:
8979   # Code from module c-strcasestr-tests:
8980   # Code from module c-strstr:
8981   # Code from module c-strstr-tests:
8982   # Code from module canonicalize-lgpl:
8983   # Code from module canonicalize-lgpl-tests:
8984   # Code from module careadlinkat:
8985   # Code from module classpath:
8986   # Code from module clean-temp:
8987   # Code from module cloexec:
8988   # Code from module cloexec-tests:
8989   # Code from module close:
8990   # Code from module close-tests:
8991   # Code from module closedir:
8992   # Code from module closeout:
8993   # Code from module concat-filename:
8994   # Code from module configmake:
8995   # Code from module copy-file:
8996   # Code from module copy-file-tests:
8997   # Code from module csharpcomp:
8998   # Code from module csharpcomp-script:
8999   # Code from module csharpexec:
9000   # Code from module csharpexec-script:
9001   # Code from module ctype:
9002   # Code from module ctype-tests:
9003   # Code from module diffseq:
9004   # Code from module dirent:
9005   # Code from module dirent-tests:
9006   # Code from module dosname:
9007   # Code from module double-slash-root:
9008   # Code from module dup:
9009   # Code from module dup-tests:
9010   # Code from module dup2:
9011   # Code from module dup2-tests:
9012   # Code from module environ:
9013   # Code from module environ-tests:
9014   # Code from module errno:
9015   # Code from module errno-tests:
9016   # Code from module error:
9017   # Code from module error-progname:
9018   # Code from module execute:
9019   # Code from module exitfail:
9020   # Code from module extensions:
9021   # Code from module extern-inline:
9022   # Code from module fabs:
9023   # Code from module fabs-tests:
9024   # Code from module fatal-signal:
9025   # Code from module fcntl:
9026   # Code from module fcntl-h:
9027   # Code from module fcntl-h-tests:
9028   # Code from module fcntl-tests:
9029   # Code from module fd-hook:
9030   # Code from module fd-ostream:
9031   # Code from module fd-safer-flag:
9032   # Code from module fdopen:
9033   # Code from module fdopen-tests:
9034   # Code from module fgetc-tests:
9035   # Code from module file-has-acl:
9036   # Code from module file-has-acl-tests:
9037   # Code from module file-ostream:
9038   # Code from module filename:
9039   # Code from module findprog:
9040   # Code from module float:
9041   # Code from module float-tests:
9042   # Code from module fnmatch:
9043   # Code from module fnmatch-tests:
9044   # Code from module fopen:
9045   # Code from module fopen-tests:
9046   # Code from module fpieee:
9047
9048   # Code from module fpucw:
9049   # Code from module fputc-tests:
9050   # Code from module fread-tests:
9051   # Code from module fstat:
9052   # Code from module fstat-tests:
9053   # Code from module fstrcmp:
9054   # Code from module fstrcmp-tests:
9055   # Code from module ftell:
9056   # Code from module ftell-tests:
9057   # Code from module ftello:
9058
9059   # Code from module ftello-tests:
9060   # Code from module full-write:
9061   # Code from module fwrite-tests:
9062   # Code from module fwriteerror:
9063   # Code from module gcd:
9064   # Code from module gcj:
9065   # Code from module getcwd-lgpl:
9066   # Code from module getcwd-lgpl-tests:
9067   # Code from module getdelim:
9068   # Code from module getdelim-tests:
9069   # Code from module getdtablesize:
9070   # Code from module getdtablesize-tests:
9071   # Code from module getline:
9072   # Code from module getline-tests:
9073   # Code from module getopt-gnu:
9074   # Code from module getopt-posix:
9075   # Code from module getopt-posix-tests:
9076   # Code from module getpagesize:
9077   # Code from module gettext:
9078   # Code from module gettext-h:
9079   # Code from module gettext-tools-misc:
9080   # Code from module gettimeofday:
9081   # Code from module gettimeofday-tests:
9082   # Code from module gperf:
9083   # Code from module hash:
9084   # Code from module havelib:
9085   # Code from module html-ostream:
9086   # Code from module html-styled-ostream:
9087   # Code from module iconv:
9088   # Code from module iconv-h:
9089   # Code from module iconv-h-tests:
9090   # Code from module iconv-tests:
9091   # Code from module iconv_open:
9092   # Code from module ignore-value:
9093   # Code from module ignore-value-tests:
9094   # Code from module include_next:
9095   # Code from module inline:
9096   # Code from module intprops:
9097   # Code from module intprops-tests:
9098   # Code from module inttypes:
9099   # Code from module inttypes-incomplete:
9100   # Code from module inttypes-tests:
9101   # Code from module isinf:
9102   # Code from module isinf-tests:
9103   # Code from module isnan:
9104   # Code from module isnan-tests:
9105   # Code from module isnand:
9106   # Code from module isnand-nolibm:
9107   # Code from module isnand-nolibm-tests:
9108   # Code from module isnand-tests:
9109   # Code from module isnanf:
9110   # Code from module isnanf-nolibm:
9111   # Code from module isnanf-nolibm-tests:
9112   # Code from module isnanf-tests:
9113   # Code from module isnanl:
9114   # Code from module isnanl-nolibm:
9115   # Code from module isnanl-nolibm-tests:
9116   # Code from module isnanl-tests:
9117   # Code from module iswblank:
9118   # Code from module iswblank-tests:
9119   # Code from module java:
9120   # Code from module javacomp:
9121   # Code from module javacomp-script:
9122   # Code from module javaexec:
9123   # Code from module javaexec-script:
9124   # Code from module javaversion:
9125   # Code from module langinfo:
9126   # Code from module langinfo-tests:
9127   # Code from module largefile:
9128
9129   # Code from module libcroco:
9130   # Code from module libglib:
9131   # Code from module libunistring-optional:
9132   # Code from module libxml:
9133   # Code from module linkedhash-list:
9134   # Code from module linkedhash-list-tests:
9135   # Code from module list:
9136   # Code from module localcharset:
9137   # Code from module locale:
9138   # Code from module locale-tests:
9139   # Code from module localename:
9140   # Code from module localename-tests:
9141   # Code from module lock:
9142   # Code from module lock-tests:
9143   # Code from module log10:
9144   # Code from module log10-tests:
9145   # Code from module lseek:
9146   # Code from module lseek-tests:
9147   # Code from module lstat:
9148   # Code from module lstat-tests:
9149   # Code from module malloc-posix:
9150   # Code from module malloca:
9151   # Code from module malloca-tests:
9152   # Code from module math:
9153   # Code from module math-tests:
9154   # Code from module mbchar:
9155   # Code from module mbiter:
9156   # Code from module mbrtowc:
9157   # Code from module mbrtowc-tests:
9158   # Code from module mbsinit:
9159   # Code from module mbsinit-tests:
9160   # Code from module mbslen:
9161   # Code from module mbsrtowcs:
9162   # Code from module mbsrtowcs-tests:
9163   # Code from module mbsstr:
9164   # Code from module mbsstr-tests:
9165   # Code from module mbswidth:
9166   # Code from module mbtowc:
9167   # Code from module mbuiter:
9168   # Code from module memchr:
9169   # Code from module memchr-tests:
9170   # Code from module memmove:
9171   # Code from module memset:
9172   # Code from module minmax:
9173   # Code from module mkdtemp:
9174   # Code from module moo:
9175   # Code from module moo-tests:
9176   # Code from module msvc-inval:
9177   # Code from module msvc-nothrow:
9178   # Code from module multiarch:
9179   # Code from module no-c++:
9180   # Code from module nocrash:
9181   # Code from module obstack:
9182   # Code from module open:
9183   # Code from module open-tests:
9184   # Code from module opendir:
9185   # Code from module openmp:
9186   # Code from module ostream:
9187   # Code from module pathmax:
9188   # Code from module pathmax-tests:
9189   # Code from module pipe-filter-ii:
9190   # Code from module pipe-filter-ii-tests:
9191   # Code from module pipe2:
9192   # Code from module pipe2-safer:
9193   # Code from module pipe2-tests:
9194   # Code from module posix_spawn-internal:
9195   # Code from module posix_spawn_file_actions_addclose:
9196   # Code from module posix_spawn_file_actions_addclose-tests:
9197   # Code from module posix_spawn_file_actions_adddup2:
9198   # Code from module posix_spawn_file_actions_adddup2-tests:
9199   # Code from module posix_spawn_file_actions_addopen:
9200   # Code from module posix_spawn_file_actions_addopen-tests:
9201   # Code from module posix_spawn_file_actions_destroy:
9202   # Code from module posix_spawn_file_actions_init:
9203   # Code from module posix_spawnattr_destroy:
9204   # Code from module posix_spawnattr_init:
9205   # Code from module posix_spawnattr_setflags:
9206   # Code from module posix_spawnattr_setsigmask:
9207   # Code from module posix_spawnp:
9208   # Code from module posix_spawnp-tests:
9209   # Code from module pow:
9210   # Code from module pow-tests:
9211   # Code from module progname:
9212   # Code from module propername:
9213   # Code from module putenv:
9214   # Code from module qcopy-acl:
9215   # Code from module qset-acl:
9216   # Code from module quote:
9217   # Code from module quotearg:
9218   # Code from module quotearg-simple:
9219   # Code from module quotearg-simple-tests:
9220   # Code from module raise:
9221   # Code from module raise-tests:
9222   # Code from module rawmemchr:
9223   # Code from module rawmemchr-tests:
9224   # Code from module read:
9225   # Code from module read-file:
9226   # Code from module read-file-tests:
9227   # Code from module read-tests:
9228   # Code from module readdir:
9229   # Code from module readlink:
9230   # Code from module readlink-tests:
9231   # Code from module realloc-posix:
9232   # Code from module relocatable-prog:
9233   # Code from module relocatable-prog-wrapper:
9234   # Code from module relocatable-script:
9235   # Code from module rmdir:
9236   # Code from module rmdir-tests:
9237   # Code from module safe-read:
9238   # Code from module safe-write:
9239   # Code from module same-inode:
9240   # Code from module sched:
9241   # Code from module sched-tests:
9242   # Code from module secure_getenv:
9243   # Code from module setenv:
9244   # Code from module setenv-tests:
9245   # Code from module setlocale:
9246   # Code from module setlocale-tests:
9247   # Code from module sh-quote:
9248   # Code from module sh-quote-tests:
9249   # Code from module sigaction:
9250   # Code from module sigaction-tests:
9251   # Code from module signal-h:
9252   # Code from module signal-h-tests:
9253   # Code from module signbit:
9254   # Code from module signbit-tests:
9255   # Code from module sigpipe:
9256   # Code from module sigpipe-tests:
9257   # Code from module sigprocmask:
9258   # Code from module sigprocmask-tests:
9259   # Code from module size_max:
9260   # Code from module sleep:
9261   # Code from module sleep-tests:
9262   # Code from module snippet/_Noreturn:
9263   # Code from module snippet/arg-nonnull:
9264   # Code from module snippet/c++defs:
9265   # Code from module snippet/unused-parameter:
9266   # Code from module snippet/warn-on-use:
9267   # Code from module snprintf:
9268   # Code from module snprintf-tests:
9269   # Code from module spawn:
9270   # Code from module spawn-pipe:
9271   # Code from module spawn-pipe-tests:
9272   # Code from module spawn-tests:
9273   # Code from module ssize_t:
9274   # Code from module stat:
9275   # Code from module stat-tests:
9276   # Code from module stdalign:
9277   # Code from module stdalign-tests:
9278   # Code from module stdarg:
9279
9280
9281
9282   # Code from module stdbool:
9283   # Code from module stdbool-tests:
9284   # Code from module stddef:
9285   # Code from module stddef-tests:
9286   # Code from module stdint:
9287   # Code from module stdint-tests:
9288   # Code from module stdio:
9289   # Code from module stdio-tests:
9290   # Code from module stdlib:
9291   # Code from module stdlib-tests:
9292   # Code from module stpcpy:
9293   # Code from module stpncpy:
9294   # Code from module strchrnul:
9295   # Code from module strchrnul-tests:
9296   # Code from module strcspn:
9297   # Code from module streq:
9298   # Code from module strerror:
9299   # Code from module strerror-override:
9300   # Code from module strerror-tests:
9301   # Code from module striconv:
9302   # Code from module striconv-tests:
9303   # Code from module striconveh:
9304   # Code from module striconveh-tests:
9305   # Code from module striconveha:
9306   # Code from module striconveha-tests:
9307   # Code from module string:
9308   # Code from module string-tests:
9309   # Code from module strnlen:
9310   # Code from module strnlen-tests:
9311   # Code from module strnlen1:
9312   # Code from module strpbrk:
9313   # Code from module strstr:
9314   # Code from module strstr-simple:
9315   # Code from module strstr-tests:
9316   # Code from module strtol:
9317   # Code from module strtol-tests:
9318   # Code from module strtoul:
9319   # Code from module strtoul-tests:
9320   # Code from module styled-ostream:
9321   # Code from module symlink:
9322   # Code from module symlink-tests:
9323   # Code from module sys_select:
9324   # Code from module sys_select-tests:
9325   # Code from module sys_stat:
9326   # Code from module sys_stat-tests:
9327   # Code from module sys_time:
9328   # Code from module sys_time-tests:
9329   # Code from module sys_types:
9330   # Code from module sys_types-tests:
9331   # Code from module sys_wait:
9332   # Code from module sys_wait-tests:
9333   # Code from module tempname:
9334   # Code from module term-ostream:
9335   # Code from module term-ostream-tests:
9336   # Code from module term-styled-ostream:
9337   # Code from module terminfo:
9338   # Code from module terminfo-h:
9339   # Code from module test-framework-sh:
9340   # Code from module test-framework-sh-tests:
9341   # Code from module thread:
9342   # Code from module thread-tests:
9343   # Code from module threadlib:
9344
9345
9346
9347   # Code from module time:
9348   # Code from module time-tests:
9349   # Code from module tls:
9350   # Code from module tls-tests:
9351   # Code from module tmpdir:
9352   # Code from module trim:
9353   # Code from module uniconv/base:
9354   # Code from module uniconv/u8-conv-from-enc:
9355   # Code from module uniconv/u8-conv-from-enc-tests:
9356   # Code from module unictype/base:
9357   # Code from module unictype/ctype-space:
9358   # Code from module unictype/ctype-space-tests:
9359   # Code from module unilbrk/base:
9360   # Code from module unilbrk/tables:
9361   # Code from module unilbrk/u8-possible-linebreaks:
9362   # Code from module unilbrk/u8-width-linebreaks:
9363   # Code from module unilbrk/u8-width-linebreaks-tests:
9364   # Code from module unilbrk/ulc-common:
9365   # Code from module unilbrk/ulc-width-linebreaks:
9366   # Code from module uniname/base:
9367   # Code from module uniname/uniname:
9368   # Code from module uniname/uniname-tests:
9369   # Code from module unistd:
9370   # Code from module unistd-safer:
9371   # Code from module unistd-safer-tests:
9372   # Code from module unistd-tests:
9373   # Code from module unistr/base:
9374   # Code from module unistr/u16-mbtouc:
9375   # Code from module unistr/u16-mbtouc-tests:
9376   # Code from module unistr/u8-check:
9377   # Code from module unistr/u8-check-tests:
9378   # Code from module unistr/u8-cmp:
9379   # Code from module unistr/u8-cmp-tests:
9380   # Code from module unistr/u8-mblen:
9381   # Code from module unistr/u8-mblen-tests:
9382   # Code from module unistr/u8-mbtouc:
9383   # Code from module unistr/u8-mbtouc-unsafe:
9384   # Code from module unistr/u8-mbtoucr:
9385   # Code from module unistr/u8-mbtoucr-tests:
9386   # Code from module unistr/u8-prev:
9387   # Code from module unistr/u8-prev-tests:
9388   # Code from module unistr/u8-strlen:
9389   # Code from module unistr/u8-strlen-tests:
9390   # Code from module unistr/u8-uctomb:
9391   # Code from module unistr/u8-uctomb-tests:
9392   # Code from module unitypes:
9393   # Code from module uniwidth/base:
9394   # Code from module uniwidth/width:
9395   # Code from module unlocked-io:
9396   # Code from module unsetenv:
9397   # Code from module unsetenv-tests:
9398   # Code from module vasnprintf:
9399   # Code from module vasnprintf-tests:
9400   # Code from module vasprintf:
9401   # Code from module vasprintf-tests:
9402   # Code from module verify:
9403   # Code from module verify-tests:
9404   # Code from module vsnprintf:
9405   # Code from module vsnprintf-tests:
9406   # Code from module wait-process:
9407   # Code from module waitpid:
9408   # Code from module wchar:
9409   # Code from module wchar-tests:
9410   # Code from module wcrtomb:
9411   # Code from module wcrtomb-tests:
9412   # Code from module wctob:
9413   # Code from module wctomb:
9414   # Code from module wctype-h:
9415   # Code from module wctype-h-tests:
9416   # Code from module wcwidth:
9417   # Code from module wcwidth-tests:
9418   # Code from module write:
9419   # Code from module write-tests:
9420   # Code from module xalloc:
9421   # Code from module xalloc-die:
9422   # Code from module xalloc-die-tests:
9423   # Code from module xconcat-filename:
9424   # Code from module xerror:
9425   # Code from module xlist:
9426   # Code from module xmalloca:
9427   # Code from module xreadlink:
9428   # Code from module xsetenv:
9429   # Code from module xsize:
9430   # Code from module xstriconv:
9431   # Code from module xstriconveh:
9432   # Code from module xvasprintf:
9433   # Code from module xvasprintf-tests:
9434   # Code from module yield:
9435
9436
9437
9438   # Pre-early section.
9439
9440
9441
9442   # Code from module btowc:
9443   # Code from module havelib:
9444   # Code from module langinfo:
9445   # Code from module localeconv:
9446   # Code from module lock:
9447   # Code from module mbrlen:
9448   # Code from module mbtowc:
9449   # Code from module nl_langinfo:
9450   # Code from module regex:
9451   # Code from module snippet/c++defs:
9452   # Code from module snippet/warn-on-use:
9453   # Code from module threadlib:
9454
9455
9456
9457   # Code from module wcrtomb:
9458
9459
9460
9461   # Pre-early section.
9462
9463
9464
9465
9466   # Code from module absolute-header:
9467   # Code from module alignof:
9468   # Code from module alloca-opt:
9469   # Code from module basename:
9470   # Code from module c-ctype:
9471   # Code from module c-strcase:
9472   # Code from module c-strcaseeq:
9473   # Code from module c-strstr:
9474   # Code from module close:
9475   # Code from module concat-filename:
9476   # Code from module configmake:
9477   # Code from module diffseq:
9478   # Code from module dosname:
9479   # Code from module errno:
9480   # Code from module error:
9481   # Code from module error-progname:
9482   # Code from module exitfail:
9483   # Code from module extensions:
9484   # Code from module extern-inline:
9485   # Code from module fcntl-h:
9486   # Code from module fd-hook:
9487   # Code from module file-ostream:
9488   # Code from module filename:
9489   # Code from module float:
9490   # Code from module fopen:
9491   # Code from module fstat:
9492   # Code from module fstrcmp:
9493   # Code from module fwriteerror:
9494   # Code from module gcd:
9495   # Code from module getdelim:
9496   # Code from module getline:
9497   # Code from module gettext-h:
9498   # Code from module gettimeofday:
9499   # Code from module gperf:
9500   # Code from module hash:
9501   # Code from module havelib:
9502   # Code from module iconv:
9503   # Code from module iconv-h:
9504   # Code from module iconv_open:
9505   # Code from module include_next:
9506   # Code from module inline:
9507   # Code from module intprops:
9508   # Code from module largefile:
9509
9510   # Code from module libunistring-optional:
9511   # Code from module linked-list:
9512   # Code from module list:
9513   # Code from module localcharset:
9514   # Code from module lock:
9515   # Code from module malloc-posix:
9516   # Code from module malloca:
9517   # Code from module markup:
9518   # Code from module mbrtowc:
9519   # Code from module mbsinit:
9520   # Code from module mbswidth:
9521   # Code from module memchr:
9522   # Code from module minmax:
9523   # Code from module moo:
9524   # Code from module msvc-inval:
9525   # Code from module msvc-nothrow:
9526   # Code from module multiarch:
9527   # Code from module obstack:
9528   # Code from module open:
9529   # Code from module ostream:
9530   # Code from module pathmax:
9531   # Code from module progname:
9532   # Code from module raise:
9533   # Code from module rawmemchr:
9534   # Code from module realloc-posix:
9535   # Code from module relocatable-lib:
9536   # Code from module signal-h:
9537   # Code from module sigpipe:
9538   # Code from module sigprocmask:
9539   # Code from module size_max:
9540   # Code from module snippet/_Noreturn:
9541   # Code from module snippet/arg-nonnull:
9542   # Code from module snippet/c++defs:
9543   # Code from module snippet/unused-parameter:
9544   # Code from module snippet/warn-on-use:
9545   # Code from module ssize_t:
9546   # Code from module stat:
9547   # Code from module stdarg:
9548
9549
9550
9551   # Code from module stdbool:
9552   # Code from module stddef:
9553   # Code from module stdint:
9554   # Code from module stdio:
9555   # Code from module stdlib:
9556   # Code from module stpcpy:
9557   # Code from module stpncpy:
9558   # Code from module strchrnul:
9559   # Code from module streq:
9560   # Code from module strerror:
9561   # Code from module strerror-override:
9562   # Code from module striconv:
9563   # Code from module striconveh:
9564   # Code from module striconveha:
9565   # Code from module string:
9566   # Code from module strstr:
9567   # Code from module strstr-simple:
9568   # Code from module sys_stat:
9569   # Code from module sys_time:
9570   # Code from module sys_types:
9571   # Code from module threadlib:
9572
9573
9574
9575   # Code from module time:
9576   # Code from module tls:
9577   # Code from module uniconv/base:
9578   # Code from module uniconv/u8-conv-from-enc:
9579   # Code from module unictype/base:
9580   # Code from module unictype/ctype-alpha:
9581   # Code from module unictype/ctype-space:
9582   # Code from module unilbrk/base:
9583   # Code from module unilbrk/tables:
9584   # Code from module unilbrk/u8-possible-linebreaks:
9585   # Code from module unilbrk/u8-width-linebreaks:
9586   # Code from module unilbrk/ulc-common:
9587   # Code from module unilbrk/ulc-width-linebreaks:
9588   # Code from module unistd:
9589   # Code from module unistr/base:
9590   # Code from module unistr/u16-mbtouc:
9591   # Code from module unistr/u8-check:
9592   # Code from module unistr/u8-mblen:
9593   # Code from module unistr/u8-mbtouc:
9594   # Code from module unistr/u8-mbtouc-unsafe:
9595   # Code from module unistr/u8-mbtoucr:
9596   # Code from module unistr/u8-next:
9597   # Code from module unistr/u8-prev:
9598   # Code from module unistr/u8-strmbtouc:
9599   # Code from module unistr/u8-uctomb:
9600   # Code from module unitypes:
9601   # Code from module uniwidth/base:
9602   # Code from module uniwidth/width:
9603   # Code from module unlocked-io:
9604   # Code from module vasnprintf:
9605   # Code from module vasprintf:
9606   # Code from module verify:
9607   # Code from module wchar:
9608   # Code from module wctype-h:
9609   # Code from module wcwidth:
9610   # Code from module xalloc:
9611   # Code from module xalloc-die:
9612   # Code from module xconcat-filename:
9613   # Code from module xerror:
9614   # Code from module xlist:
9615   # Code from module xmalloca:
9616   # Code from module xsize:
9617   # Code from module xstriconv:
9618   # Code from module xvasprintf:
9619
9620
9621
9622
9623
9624   case "$host_os" in
9625     mingw* | cygwin*)
9626       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
9627 $as_echo_n "checking for auto-import of symbols... " >&6; }
9628       if ${gl_cv_ld_autoimport+:} false; then :
9629   $as_echo_n "(cached) " >&6
9630 else
9631
9632         gl_save_LDFLAGS="$LDFLAGS"
9633         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
9634         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h.  */
9636
9637 int
9638 main ()
9639 {
9640
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 if ac_fn_c_try_link "$LINENO"; then :
9646   gl_cv_ld_autoimport=yes
9647 else
9648   gl_cv_ld_autoimport=no
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext \
9651     conftest$ac_exeext conftest.$ac_ext
9652         LDFLAGS="$gl_save_LDFLAGS"
9653 fi
9654
9655       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
9656 $as_echo "$gl_cv_ld_autoimport" >&6; }
9657       if test $gl_cv_ld_autoimport = yes; then
9658         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
9659       fi
9660       ;;
9661   esac
9662
9663
9664 case `pwd` in
9665   *\ * | *\     *)
9666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9667 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9668 esac
9669
9670
9671
9672 macro_version='2.4.6'
9673 macro_revision='2.4.6'
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687 ltmain=$ac_aux_dir/ltmain.sh
9688
9689 # Backslashify metacharacters that are still active within
9690 # double-quoted strings.
9691 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9692
9693 # Same as above, but do not quote variable references.
9694 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9695
9696 # Sed substitution to delay expansion of an escaped shell variable in a
9697 # double_quote_subst'ed string.
9698 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9699
9700 # Sed substitution to delay expansion of an escaped single quote.
9701 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9702
9703 # Sed substitution to avoid accidental globbing in evaled expressions
9704 no_glob_subst='s/\*/\\\*/g'
9705
9706 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9707 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9708 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9709
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9711 $as_echo_n "checking how to print strings... " >&6; }
9712 # Test print first, because it will be a builtin if present.
9713 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9714    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9715   ECHO='print -r --'
9716 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9717   ECHO='printf %s\n'
9718 else
9719   # Use this function as a fallback that always works.
9720   func_fallback_echo ()
9721   {
9722     eval 'cat <<_LTECHO_EOF
9723 $1
9724 _LTECHO_EOF'
9725   }
9726   ECHO='func_fallback_echo'
9727 fi
9728
9729 # func_echo_all arg...
9730 # Invoke $ECHO with all args, space-separated.
9731 func_echo_all ()
9732 {
9733     $ECHO ""
9734 }
9735
9736 case $ECHO in
9737   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9738 $as_echo "printf" >&6; } ;;
9739   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9740 $as_echo "print -r" >&6; } ;;
9741   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9742 $as_echo "cat" >&6; } ;;
9743 esac
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9759 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9760 if ${ac_cv_path_SED+:} false; then :
9761   $as_echo_n "(cached) " >&6
9762 else
9763             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9764      for ac_i in 1 2 3 4 5 6 7; do
9765        ac_script="$ac_script$as_nl$ac_script"
9766      done
9767      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9768      { ac_script=; unset ac_script;}
9769      if test -z "$SED"; then
9770   ac_path_SED_found=false
9771   # Loop through the user's path and test for each of PROGNAME-LIST
9772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775   IFS=$as_save_IFS
9776   test -z "$as_dir" && as_dir=.
9777     for ac_prog in sed gsed; do
9778     for ac_exec_ext in '' $ac_executable_extensions; do
9779       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9780       as_fn_executable_p "$ac_path_SED" || continue
9781 # Check for GNU ac_path_SED and select it if it is found.
9782   # Check for GNU $ac_path_SED
9783 case `"$ac_path_SED" --version 2>&1` in
9784 *GNU*)
9785   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9786 *)
9787   ac_count=0
9788   $as_echo_n 0123456789 >"conftest.in"
9789   while :
9790   do
9791     cat "conftest.in" "conftest.in" >"conftest.tmp"
9792     mv "conftest.tmp" "conftest.in"
9793     cp "conftest.in" "conftest.nl"
9794     $as_echo '' >> "conftest.nl"
9795     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9796     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9797     as_fn_arith $ac_count + 1 && ac_count=$as_val
9798     if test $ac_count -gt ${ac_path_SED_max-0}; then
9799       # Best one so far, save it but keep looking for a better one
9800       ac_cv_path_SED="$ac_path_SED"
9801       ac_path_SED_max=$ac_count
9802     fi
9803     # 10*(2^10) chars as input seems more than enough
9804     test $ac_count -gt 10 && break
9805   done
9806   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9807 esac
9808
9809       $ac_path_SED_found && break 3
9810     done
9811   done
9812   done
9813 IFS=$as_save_IFS
9814   if test -z "$ac_cv_path_SED"; then
9815     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9816   fi
9817 else
9818   ac_cv_path_SED=$SED
9819 fi
9820
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9823 $as_echo "$ac_cv_path_SED" >&6; }
9824  SED="$ac_cv_path_SED"
9825   rm -f conftest.sed
9826
9827 test -z "$SED" && SED=sed
9828 Xsed="$SED -e 1s/^X//"
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9841 $as_echo_n "checking for fgrep... " >&6; }
9842 if ${ac_cv_path_FGREP+:} false; then :
9843   $as_echo_n "(cached) " >&6
9844 else
9845   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9846    then ac_cv_path_FGREP="$GREP -F"
9847    else
9848      if test -z "$FGREP"; then
9849   ac_path_FGREP_found=false
9850   # Loop through the user's path and test for each of PROGNAME-LIST
9851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9853 do
9854   IFS=$as_save_IFS
9855   test -z "$as_dir" && as_dir=.
9856     for ac_prog in fgrep; do
9857     for ac_exec_ext in '' $ac_executable_extensions; do
9858       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9859       as_fn_executable_p "$ac_path_FGREP" || continue
9860 # Check for GNU ac_path_FGREP and select it if it is found.
9861   # Check for GNU $ac_path_FGREP
9862 case `"$ac_path_FGREP" --version 2>&1` in
9863 *GNU*)
9864   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9865 *)
9866   ac_count=0
9867   $as_echo_n 0123456789 >"conftest.in"
9868   while :
9869   do
9870     cat "conftest.in" "conftest.in" >"conftest.tmp"
9871     mv "conftest.tmp" "conftest.in"
9872     cp "conftest.in" "conftest.nl"
9873     $as_echo 'FGREP' >> "conftest.nl"
9874     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9875     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9876     as_fn_arith $ac_count + 1 && ac_count=$as_val
9877     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9878       # Best one so far, save it but keep looking for a better one
9879       ac_cv_path_FGREP="$ac_path_FGREP"
9880       ac_path_FGREP_max=$ac_count
9881     fi
9882     # 10*(2^10) chars as input seems more than enough
9883     test $ac_count -gt 10 && break
9884   done
9885   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9886 esac
9887
9888       $ac_path_FGREP_found && break 3
9889     done
9890   done
9891   done
9892 IFS=$as_save_IFS
9893   if test -z "$ac_cv_path_FGREP"; then
9894     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9895   fi
9896 else
9897   ac_cv_path_FGREP=$FGREP
9898 fi
9899
9900    fi
9901 fi
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9903 $as_echo "$ac_cv_path_FGREP" >&6; }
9904  FGREP="$ac_cv_path_FGREP"
9905
9906
9907 test -z "$GREP" && GREP=grep
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927 # Check whether --with-gnu-ld was given.
9928 if test "${with_gnu_ld+set}" = set; then :
9929   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9930 else
9931   with_gnu_ld=no
9932 fi
9933
9934 ac_prog=ld
9935 if test yes = "$GCC"; then
9936   # Check if gcc -print-prog-name=ld gives a path.
9937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9938 $as_echo_n "checking for ld used by $CC... " >&6; }
9939   case $host in
9940   *-*-mingw*)
9941     # gcc leaves a trailing carriage return, which upsets mingw
9942     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9943   *)
9944     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9945   esac
9946   case $ac_prog in
9947     # Accept absolute paths.
9948     [\\/]* | ?:[\\/]*)
9949       re_direlt='/[^/][^/]*/\.\./'
9950       # Canonicalize the pathname of ld
9951       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9952       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9953         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9954       done
9955       test -z "$LD" && LD=$ac_prog
9956       ;;
9957   "")
9958     # If it fails, then pretend we aren't using GCC.
9959     ac_prog=ld
9960     ;;
9961   *)
9962     # If it is relative, then search for the first ld in PATH.
9963     with_gnu_ld=unknown
9964     ;;
9965   esac
9966 elif test yes = "$with_gnu_ld"; then
9967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9968 $as_echo_n "checking for GNU ld... " >&6; }
9969 else
9970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9971 $as_echo_n "checking for non-GNU ld... " >&6; }
9972 fi
9973 if ${lt_cv_path_LD+:} false; then :
9974   $as_echo_n "(cached) " >&6
9975 else
9976   if test -z "$LD"; then
9977   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9978   for ac_dir in $PATH; do
9979     IFS=$lt_save_ifs
9980     test -z "$ac_dir" && ac_dir=.
9981     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9982       lt_cv_path_LD=$ac_dir/$ac_prog
9983       # Check to see if the program is GNU ld.  I'd rather use --version,
9984       # but apparently some variants of GNU ld only accept -v.
9985       # Break only if it was the GNU/non-GNU ld that we prefer.
9986       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9987       *GNU* | *'with BFD'*)
9988         test no != "$with_gnu_ld" && break
9989         ;;
9990       *)
9991         test yes != "$with_gnu_ld" && break
9992         ;;
9993       esac
9994     fi
9995   done
9996   IFS=$lt_save_ifs
9997 else
9998   lt_cv_path_LD=$LD # Let the user override the test with a path.
9999 fi
10000 fi
10001
10002 LD=$lt_cv_path_LD
10003 if test -n "$LD"; then
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10005 $as_echo "$LD" >&6; }
10006 else
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10009 fi
10010 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10012 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10013 if ${lt_cv_prog_gnu_ld+:} false; then :
10014   $as_echo_n "(cached) " >&6
10015 else
10016   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10017 case `$LD -v 2>&1 </dev/null` in
10018 *GNU* | *'with BFD'*)
10019   lt_cv_prog_gnu_ld=yes
10020   ;;
10021 *)
10022   lt_cv_prog_gnu_ld=no
10023   ;;
10024 esac
10025 fi
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10027 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10028 with_gnu_ld=$lt_cv_prog_gnu_ld
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10039 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10040 if ${lt_cv_path_NM+:} false; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043   if test -n "$NM"; then
10044   # Let the user override the test.
10045   lt_cv_path_NM=$NM
10046 else
10047   lt_nm_to_check=${ac_tool_prefix}nm
10048   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10049     lt_nm_to_check="$lt_nm_to_check nm"
10050   fi
10051   for lt_tmp_nm in $lt_nm_to_check; do
10052     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10053     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10054       IFS=$lt_save_ifs
10055       test -z "$ac_dir" && ac_dir=.
10056       tmp_nm=$ac_dir/$lt_tmp_nm
10057       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
10058         # Check to see if the nm accepts a BSD-compat flag.
10059         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
10060         #   nm: unknown option "B" ignored
10061         # Tru64's nm complains that /dev/null is an invalid object file
10062         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
10063         case $build_os in
10064         mingw*) lt_bad_file=conftest.nm/nofile ;;
10065         *) lt_bad_file=/dev/null ;;
10066         esac
10067         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
10068         *$lt_bad_file* | *'Invalid file or object type'*)
10069           lt_cv_path_NM="$tmp_nm -B"
10070           break 2
10071           ;;
10072         *)
10073           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10074           */dev/null*)
10075             lt_cv_path_NM="$tmp_nm -p"
10076             break 2
10077             ;;
10078           *)
10079             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10080             continue # so that we can try to find one that supports BSD flags
10081             ;;
10082           esac
10083           ;;
10084         esac
10085       fi
10086     done
10087     IFS=$lt_save_ifs
10088   done
10089   : ${lt_cv_path_NM=no}
10090 fi
10091 fi
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10093 $as_echo "$lt_cv_path_NM" >&6; }
10094 if test no != "$lt_cv_path_NM"; then
10095   NM=$lt_cv_path_NM
10096 else
10097   # Didn't find any BSD compatible name lister, look for dumpbin.
10098   if test -n "$DUMPBIN"; then :
10099     # Let the user override the test.
10100   else
10101     if test -n "$ac_tool_prefix"; then
10102   for ac_prog in dumpbin "link -dump"
10103   do
10104     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107 $as_echo_n "checking for $ac_word... " >&6; }
10108 if ${ac_cv_prog_DUMPBIN+:} false; then :
10109   $as_echo_n "(cached) " >&6
10110 else
10111   if test -n "$DUMPBIN"; then
10112   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10113 else
10114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115 for as_dir in $PATH
10116 do
10117   IFS=$as_save_IFS
10118   test -z "$as_dir" && as_dir=.
10119     for ac_exec_ext in '' $ac_executable_extensions; do
10120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10121     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123     break 2
10124   fi
10125 done
10126   done
10127 IFS=$as_save_IFS
10128
10129 fi
10130 fi
10131 DUMPBIN=$ac_cv_prog_DUMPBIN
10132 if test -n "$DUMPBIN"; then
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10134 $as_echo "$DUMPBIN" >&6; }
10135 else
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 fi
10139
10140
10141     test -n "$DUMPBIN" && break
10142   done
10143 fi
10144 if test -z "$DUMPBIN"; then
10145   ac_ct_DUMPBIN=$DUMPBIN
10146   for ac_prog in dumpbin "link -dump"
10147 do
10148   # Extract the first word of "$ac_prog", so it can be a program name with args.
10149 set dummy $ac_prog; ac_word=$2
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 $as_echo_n "checking for $ac_word... " >&6; }
10152 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
10153   $as_echo_n "(cached) " >&6
10154 else
10155   if test -n "$ac_ct_DUMPBIN"; then
10156   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10157 else
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10160 do
10161   IFS=$as_save_IFS
10162   test -z "$as_dir" && as_dir=.
10163     for ac_exec_ext in '' $ac_executable_extensions; do
10164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10165     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167     break 2
10168   fi
10169 done
10170   done
10171 IFS=$as_save_IFS
10172
10173 fi
10174 fi
10175 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10176 if test -n "$ac_ct_DUMPBIN"; then
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10178 $as_echo "$ac_ct_DUMPBIN" >&6; }
10179 else
10180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10182 fi
10183
10184
10185   test -n "$ac_ct_DUMPBIN" && break
10186 done
10187
10188   if test "x$ac_ct_DUMPBIN" = x; then
10189     DUMPBIN=":"
10190   else
10191     case $cross_compiling:$ac_tool_warned in
10192 yes:)
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10195 ac_tool_warned=yes ;;
10196 esac
10197     DUMPBIN=$ac_ct_DUMPBIN
10198   fi
10199 fi
10200
10201     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
10202     *COFF*)
10203       DUMPBIN="$DUMPBIN -symbols -headers"
10204       ;;
10205     *)
10206       DUMPBIN=:
10207       ;;
10208     esac
10209   fi
10210
10211   if test : != "$DUMPBIN"; then
10212     NM=$DUMPBIN
10213   fi
10214 fi
10215 test -z "$NM" && NM=nm
10216
10217
10218
10219
10220
10221
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10223 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
10224 if ${lt_cv_nm_interface+:} false; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   lt_cv_nm_interface="BSD nm"
10228   echo "int some_variable = 0;" > conftest.$ac_ext
10229   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10230   (eval "$ac_compile" 2>conftest.err)
10231   cat conftest.err >&5
10232   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10233   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10234   cat conftest.err >&5
10235   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10236   cat conftest.out >&5
10237   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10238     lt_cv_nm_interface="MS dumpbin"
10239   fi
10240   rm -f conftest*
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10243 $as_echo "$lt_cv_nm_interface" >&6; }
10244
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10246 $as_echo_n "checking whether ln -s works... " >&6; }
10247 LN_S=$as_ln_s
10248 if test "$LN_S" = "ln -s"; then
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10250 $as_echo "yes" >&6; }
10251 else
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10253 $as_echo "no, using $LN_S" >&6; }
10254 fi
10255
10256 # find the maximum length of command line arguments
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10258 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
10259 if ${lt_cv_sys_max_cmd_len+:} false; then :
10260   $as_echo_n "(cached) " >&6
10261 else
10262     i=0
10263   teststring=ABCD
10264
10265   case $build_os in
10266   msdosdjgpp*)
10267     # On DJGPP, this test can blow up pretty badly due to problems in libc
10268     # (any single argument exceeding 2000 bytes causes a buffer overrun
10269     # during glob expansion).  Even if it were fixed, the result of this
10270     # check would be larger than it should be.
10271     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10272     ;;
10273
10274   gnu*)
10275     # Under GNU Hurd, this test is not required because there is
10276     # no limit to the length of command line arguments.
10277     # Libtool will interpret -1 as no limit whatsoever
10278     lt_cv_sys_max_cmd_len=-1;
10279     ;;
10280
10281   cygwin* | mingw* | cegcc*)
10282     # On Win9x/ME, this test blows up -- it succeeds, but takes
10283     # about 5 minutes as the teststring grows exponentially.
10284     # Worse, since 9x/ME are not pre-emptively multitasking,
10285     # you end up with a "frozen" computer, even though with patience
10286     # the test eventually succeeds (with a max line length of 256k).
10287     # Instead, let's just punt: use the minimum linelength reported by
10288     # all of the supported platforms: 8192 (on NT/2K/XP).
10289     lt_cv_sys_max_cmd_len=8192;
10290     ;;
10291
10292   mint*)
10293     # On MiNT this can take a long time and run out of memory.
10294     lt_cv_sys_max_cmd_len=8192;
10295     ;;
10296
10297   amigaos*)
10298     # On AmigaOS with pdksh, this test takes hours, literally.
10299     # So we just punt and use a minimum line length of 8192.
10300     lt_cv_sys_max_cmd_len=8192;
10301     ;;
10302
10303   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
10304     # This has been around since 386BSD, at least.  Likely further.
10305     if test -x /sbin/sysctl; then
10306       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10307     elif test -x /usr/sbin/sysctl; then
10308       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10309     else
10310       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
10311     fi
10312     # And add a safety zone
10313     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10314     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10315     ;;
10316
10317   interix*)
10318     # We know the value 262144 and hardcode it with a safety zone (like BSD)
10319     lt_cv_sys_max_cmd_len=196608
10320     ;;
10321
10322   os2*)
10323     # The test takes a long time on OS/2.
10324     lt_cv_sys_max_cmd_len=8192
10325     ;;
10326
10327   osf*)
10328     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10329     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10330     # nice to cause kernel panics so lets avoid the loop below.
10331     # First set a reasonable default.
10332     lt_cv_sys_max_cmd_len=16384
10333     #
10334     if test -x /sbin/sysconfig; then
10335       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10336         *1*) lt_cv_sys_max_cmd_len=-1 ;;
10337       esac
10338     fi
10339     ;;
10340   sco3.2v5*)
10341     lt_cv_sys_max_cmd_len=102400
10342     ;;
10343   sysv5* | sco5v6* | sysv4.2uw2*)
10344     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10345     if test -n "$kargmax"; then
10346       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
10347     else
10348       lt_cv_sys_max_cmd_len=32768
10349     fi
10350     ;;
10351   *)
10352     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10353     if test -n "$lt_cv_sys_max_cmd_len" && \
10354        test undefined != "$lt_cv_sys_max_cmd_len"; then
10355       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10356       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10357     else
10358       # Make teststring a little bigger before we do anything with it.
10359       # a 1K string should be a reasonable start.
10360       for i in 1 2 3 4 5 6 7 8; do
10361         teststring=$teststring$teststring
10362       done
10363       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10364       # If test is not a shell built-in, we'll probably end up computing a
10365       # maximum length that is only half of the actual maximum length, but
10366       # we can't tell.
10367       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
10368                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10369               test 17 != "$i" # 1/2 MB should be enough
10370       do
10371         i=`expr $i + 1`
10372         teststring=$teststring$teststring
10373       done
10374       # Only check the string length outside the loop.
10375       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10376       teststring=
10377       # Add a significant safety factor because C++ compilers can tack on
10378       # massive amounts of additional arguments before passing them to the
10379       # linker.  It appears as though 1/2 is a usable value.
10380       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10381     fi
10382     ;;
10383   esac
10384
10385 fi
10386
10387 if test -n "$lt_cv_sys_max_cmd_len"; then
10388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10389 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10390 else
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10392 $as_echo "none" >&6; }
10393 fi
10394 max_cmd_len=$lt_cv_sys_max_cmd_len
10395
10396
10397
10398
10399
10400
10401 : ${CP="cp -f"}
10402 : ${MV="mv -f"}
10403 : ${RM="rm -f"}
10404
10405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10406   lt_unset=unset
10407 else
10408   lt_unset=false
10409 fi
10410
10411
10412
10413
10414
10415 # test EBCDIC or ASCII
10416 case `echo X|tr X '\101'` in
10417  A) # ASCII based system
10418     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10419   lt_SP2NL='tr \040 \012'
10420   lt_NL2SP='tr \015\012 \040\040'
10421   ;;
10422  *) # EBCDIC based system
10423   lt_SP2NL='tr \100 \n'
10424   lt_NL2SP='tr \r\n \100\100'
10425   ;;
10426 esac
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10437 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10438 if ${lt_cv_to_host_file_cmd+:} false; then :
10439   $as_echo_n "(cached) " >&6
10440 else
10441   case $host in
10442   *-*-mingw* )
10443     case $build in
10444       *-*-mingw* ) # actually msys
10445         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10446         ;;
10447       *-*-cygwin* )
10448         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10449         ;;
10450       * ) # otherwise, assume *nix
10451         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10452         ;;
10453     esac
10454     ;;
10455   *-*-cygwin* )
10456     case $build in
10457       *-*-mingw* ) # actually msys
10458         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10459         ;;
10460       *-*-cygwin* )
10461         lt_cv_to_host_file_cmd=func_convert_file_noop
10462         ;;
10463       * ) # otherwise, assume *nix
10464         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10465         ;;
10466     esac
10467     ;;
10468   * ) # unhandled hosts (and "normal" native builds)
10469     lt_cv_to_host_file_cmd=func_convert_file_noop
10470     ;;
10471 esac
10472
10473 fi
10474
10475 to_host_file_cmd=$lt_cv_to_host_file_cmd
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10477 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10478
10479
10480
10481
10482
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10484 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10485 if ${lt_cv_to_tool_file_cmd+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   #assume ordinary cross tools, or native build.
10489 lt_cv_to_tool_file_cmd=func_convert_file_noop
10490 case $host in
10491   *-*-mingw* )
10492     case $build in
10493       *-*-mingw* ) # actually msys
10494         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10495         ;;
10496     esac
10497     ;;
10498 esac
10499
10500 fi
10501
10502 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10504 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10505
10506
10507
10508
10509
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10511 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10512 if ${lt_cv_ld_reload_flag+:} false; then :
10513   $as_echo_n "(cached) " >&6
10514 else
10515   lt_cv_ld_reload_flag='-r'
10516 fi
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10518 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10519 reload_flag=$lt_cv_ld_reload_flag
10520 case $reload_flag in
10521 "" | " "*) ;;
10522 *) reload_flag=" $reload_flag" ;;
10523 esac
10524 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10525 case $host_os in
10526   cygwin* | mingw* | pw32* | cegcc*)
10527     if test yes != "$GCC"; then
10528       reload_cmds=false
10529     fi
10530     ;;
10531   darwin*)
10532     if test yes = "$GCC"; then
10533       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
10534     else
10535       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10536     fi
10537     ;;
10538 esac
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548 if test -n "$ac_tool_prefix"; then
10549   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10550 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552 $as_echo_n "checking for $ac_word... " >&6; }
10553 if ${ac_cv_prog_OBJDUMP+:} false; then :
10554   $as_echo_n "(cached) " >&6
10555 else
10556   if test -n "$OBJDUMP"; then
10557   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10558 else
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10561 do
10562   IFS=$as_save_IFS
10563   test -z "$as_dir" && as_dir=.
10564     for ac_exec_ext in '' $ac_executable_extensions; do
10565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10566     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568     break 2
10569   fi
10570 done
10571   done
10572 IFS=$as_save_IFS
10573
10574 fi
10575 fi
10576 OBJDUMP=$ac_cv_prog_OBJDUMP
10577 if test -n "$OBJDUMP"; then
10578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10579 $as_echo "$OBJDUMP" >&6; }
10580 else
10581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; }
10583 fi
10584
10585
10586 fi
10587 if test -z "$ac_cv_prog_OBJDUMP"; then
10588   ac_ct_OBJDUMP=$OBJDUMP
10589   # Extract the first word of "objdump", so it can be a program name with args.
10590 set dummy objdump; ac_word=$2
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592 $as_echo_n "checking for $ac_word... " >&6; }
10593 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10594   $as_echo_n "(cached) " >&6
10595 else
10596   if test -n "$ac_ct_OBJDUMP"; then
10597   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10598 else
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10601 do
10602   IFS=$as_save_IFS
10603   test -z "$as_dir" && as_dir=.
10604     for ac_exec_ext in '' $ac_executable_extensions; do
10605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10606     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608     break 2
10609   fi
10610 done
10611   done
10612 IFS=$as_save_IFS
10613
10614 fi
10615 fi
10616 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10617 if test -n "$ac_ct_OBJDUMP"; then
10618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10619 $as_echo "$ac_ct_OBJDUMP" >&6; }
10620 else
10621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10623 fi
10624
10625   if test "x$ac_ct_OBJDUMP" = x; then
10626     OBJDUMP="false"
10627   else
10628     case $cross_compiling:$ac_tool_warned in
10629 yes:)
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10632 ac_tool_warned=yes ;;
10633 esac
10634     OBJDUMP=$ac_ct_OBJDUMP
10635   fi
10636 else
10637   OBJDUMP="$ac_cv_prog_OBJDUMP"
10638 fi
10639
10640 test -z "$OBJDUMP" && OBJDUMP=objdump
10641
10642
10643
10644
10645
10646
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10648 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10649 if ${lt_cv_deplibs_check_method+:} false; then :
10650   $as_echo_n "(cached) " >&6
10651 else
10652   lt_cv_file_magic_cmd='$MAGIC_CMD'
10653 lt_cv_file_magic_test_file=
10654 lt_cv_deplibs_check_method='unknown'
10655 # Need to set the preceding variable on all platforms that support
10656 # interlibrary dependencies.
10657 # 'none' -- dependencies not supported.
10658 # 'unknown' -- same as none, but documents that we really don't know.
10659 # 'pass_all' -- all dependencies passed with no checks.
10660 # 'test_compile' -- check by making test program.
10661 # 'file_magic [[regex]]' -- check by looking for files in library path
10662 # that responds to the $file_magic_cmd with a given extended regex.
10663 # If you have 'file' or equivalent on your system and you're not sure
10664 # whether 'pass_all' will *always* work, you probably want this one.
10665
10666 case $host_os in
10667 aix[4-9]*)
10668   lt_cv_deplibs_check_method=pass_all
10669   ;;
10670
10671 beos*)
10672   lt_cv_deplibs_check_method=pass_all
10673   ;;
10674
10675 bsdi[45]*)
10676   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10677   lt_cv_file_magic_cmd='/usr/bin/file -L'
10678   lt_cv_file_magic_test_file=/shlib/libc.so
10679   ;;
10680
10681 cygwin*)
10682   # func_win32_libid is a shell function defined in ltmain.sh
10683   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10684   lt_cv_file_magic_cmd='func_win32_libid'
10685   ;;
10686
10687 mingw* | pw32*)
10688   # Base MSYS/MinGW do not provide the 'file' command needed by
10689   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10690   # unless we find 'file', for example because we are cross-compiling.
10691   if ( file / ) >/dev/null 2>&1; then
10692     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10693     lt_cv_file_magic_cmd='func_win32_libid'
10694   else
10695     # Keep this pattern in sync with the one in func_win32_libid.
10696     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10697     lt_cv_file_magic_cmd='$OBJDUMP -f'
10698   fi
10699   ;;
10700
10701 cegcc*)
10702   # use the weaker test based on 'objdump'. See mingw*.
10703   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10704   lt_cv_file_magic_cmd='$OBJDUMP -f'
10705   ;;
10706
10707 darwin* | rhapsody*)
10708   lt_cv_deplibs_check_method=pass_all
10709   ;;
10710
10711 freebsd* | dragonfly*)
10712   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10713     case $host_cpu in
10714     i*86 )
10715       # Not sure whether the presence of OpenBSD here was a mistake.
10716       # Let's accept both of them until this is cleared up.
10717       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10718       lt_cv_file_magic_cmd=/usr/bin/file
10719       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10720       ;;
10721     esac
10722   else
10723     lt_cv_deplibs_check_method=pass_all
10724   fi
10725   ;;
10726
10727 haiku*)
10728   lt_cv_deplibs_check_method=pass_all
10729   ;;
10730
10731 hpux10.20* | hpux11*)
10732   lt_cv_file_magic_cmd=/usr/bin/file
10733   case $host_cpu in
10734   ia64*)
10735     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10736     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10737     ;;
10738   hppa*64*)
10739     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]'
10740     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10741     ;;
10742   *)
10743     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10744     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10745     ;;
10746   esac
10747   ;;
10748
10749 interix[3-9]*)
10750   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10751   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10752   ;;
10753
10754 irix5* | irix6* | nonstopux*)
10755   case $LD in
10756   *-32|*"-32 ") libmagic=32-bit;;
10757   *-n32|*"-n32 ") libmagic=N32;;
10758   *-64|*"-64 ") libmagic=64-bit;;
10759   *) libmagic=never-match;;
10760   esac
10761   lt_cv_deplibs_check_method=pass_all
10762   ;;
10763
10764 # This must be glibc/ELF.
10765 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10766   lt_cv_deplibs_check_method=pass_all
10767   ;;
10768
10769 netbsd*)
10770   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10771     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10772   else
10773     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10774   fi
10775   ;;
10776
10777 newos6*)
10778   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10779   lt_cv_file_magic_cmd=/usr/bin/file
10780   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10781   ;;
10782
10783 *nto* | *qnx*)
10784   lt_cv_deplibs_check_method=pass_all
10785   ;;
10786
10787 openbsd* | bitrig*)
10788   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10789     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10790   else
10791     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10792   fi
10793   ;;
10794
10795 osf3* | osf4* | osf5*)
10796   lt_cv_deplibs_check_method=pass_all
10797   ;;
10798
10799 rdos*)
10800   lt_cv_deplibs_check_method=pass_all
10801   ;;
10802
10803 solaris*)
10804   lt_cv_deplibs_check_method=pass_all
10805   ;;
10806
10807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10808   lt_cv_deplibs_check_method=pass_all
10809   ;;
10810
10811 sysv4 | sysv4.3*)
10812   case $host_vendor in
10813   motorola)
10814     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]'
10815     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10816     ;;
10817   ncr)
10818     lt_cv_deplibs_check_method=pass_all
10819     ;;
10820   sequent)
10821     lt_cv_file_magic_cmd='/bin/file'
10822     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10823     ;;
10824   sni)
10825     lt_cv_file_magic_cmd='/bin/file'
10826     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10827     lt_cv_file_magic_test_file=/lib/libc.so
10828     ;;
10829   siemens)
10830     lt_cv_deplibs_check_method=pass_all
10831     ;;
10832   pc)
10833     lt_cv_deplibs_check_method=pass_all
10834     ;;
10835   esac
10836   ;;
10837
10838 tpf*)
10839   lt_cv_deplibs_check_method=pass_all
10840   ;;
10841 os2*)
10842   lt_cv_deplibs_check_method=pass_all
10843   ;;
10844 esac
10845
10846 fi
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10848 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10849
10850 file_magic_glob=
10851 want_nocaseglob=no
10852 if test "$build" = "$host"; then
10853   case $host_os in
10854   mingw* | pw32*)
10855     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10856       want_nocaseglob=yes
10857     else
10858       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10859     fi
10860     ;;
10861   esac
10862 fi
10863
10864 file_magic_cmd=$lt_cv_file_magic_cmd
10865 deplibs_check_method=$lt_cv_deplibs_check_method
10866 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889 if test -n "$ac_tool_prefix"; then
10890   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10891 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if ${ac_cv_prog_DLLTOOL+:} false; then :
10895   $as_echo_n "(cached) " >&6
10896 else
10897   if test -n "$DLLTOOL"; then
10898   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10899 else
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10902 do
10903   IFS=$as_save_IFS
10904   test -z "$as_dir" && as_dir=.
10905     for ac_exec_ext in '' $ac_executable_extensions; do
10906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909     break 2
10910   fi
10911 done
10912   done
10913 IFS=$as_save_IFS
10914
10915 fi
10916 fi
10917 DLLTOOL=$ac_cv_prog_DLLTOOL
10918 if test -n "$DLLTOOL"; then
10919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10920 $as_echo "$DLLTOOL" >&6; }
10921 else
10922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10924 fi
10925
10926
10927 fi
10928 if test -z "$ac_cv_prog_DLLTOOL"; then
10929   ac_ct_DLLTOOL=$DLLTOOL
10930   # Extract the first word of "dlltool", so it can be a program name with args.
10931 set dummy dlltool; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933 $as_echo_n "checking for $ac_word... " >&6; }
10934 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10935   $as_echo_n "(cached) " >&6
10936 else
10937   if test -n "$ac_ct_DLLTOOL"; then
10938   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10939 else
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10942 do
10943   IFS=$as_save_IFS
10944   test -z "$as_dir" && as_dir=.
10945     for ac_exec_ext in '' $ac_executable_extensions; do
10946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949     break 2
10950   fi
10951 done
10952   done
10953 IFS=$as_save_IFS
10954
10955 fi
10956 fi
10957 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10958 if test -n "$ac_ct_DLLTOOL"; then
10959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10960 $as_echo "$ac_ct_DLLTOOL" >&6; }
10961 else
10962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10964 fi
10965
10966   if test "x$ac_ct_DLLTOOL" = x; then
10967     DLLTOOL="false"
10968   else
10969     case $cross_compiling:$ac_tool_warned in
10970 yes:)
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10973 ac_tool_warned=yes ;;
10974 esac
10975     DLLTOOL=$ac_ct_DLLTOOL
10976   fi
10977 else
10978   DLLTOOL="$ac_cv_prog_DLLTOOL"
10979 fi
10980
10981 test -z "$DLLTOOL" && DLLTOOL=dlltool
10982
10983
10984
10985
10986
10987
10988
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10990 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10991 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10992   $as_echo_n "(cached) " >&6
10993 else
10994   lt_cv_sharedlib_from_linklib_cmd='unknown'
10995
10996 case $host_os in
10997 cygwin* | mingw* | pw32* | cegcc*)
10998   # two different shell functions defined in ltmain.sh;
10999   # decide which one to use based on capabilities of $DLLTOOL
11000   case `$DLLTOOL --help 2>&1` in
11001   *--identify-strict*)
11002     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11003     ;;
11004   *)
11005     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11006     ;;
11007   esac
11008   ;;
11009 *)
11010   # fallback: assume linklib IS sharedlib
11011   lt_cv_sharedlib_from_linklib_cmd=$ECHO
11012   ;;
11013 esac
11014
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11017 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11018 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11019 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11020
11021
11022
11023
11024
11025
11026
11027 if test -n "$ac_tool_prefix"; then
11028   for ac_prog in ar
11029   do
11030     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if ${ac_cv_prog_AR+:} false; then :
11035   $as_echo_n "(cached) " >&6
11036 else
11037   if test -n "$AR"; then
11038   ac_cv_prog_AR="$AR" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043   IFS=$as_save_IFS
11044   test -z "$as_dir" && as_dir=.
11045     for ac_exec_ext in '' $ac_executable_extensions; do
11046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11047     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049     break 2
11050   fi
11051 done
11052   done
11053 IFS=$as_save_IFS
11054
11055 fi
11056 fi
11057 AR=$ac_cv_prog_AR
11058 if test -n "$AR"; then
11059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11060 $as_echo "$AR" >&6; }
11061 else
11062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11064 fi
11065
11066
11067     test -n "$AR" && break
11068   done
11069 fi
11070 if test -z "$AR"; then
11071   ac_ct_AR=$AR
11072   for ac_prog in ar
11073 do
11074   # Extract the first word of "$ac_prog", so it can be a program name with args.
11075 set dummy $ac_prog; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 $as_echo_n "checking for $ac_word... " >&6; }
11078 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   if test -n "$ac_ct_AR"; then
11082   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11083 else
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11086 do
11087   IFS=$as_save_IFS
11088   test -z "$as_dir" && as_dir=.
11089     for ac_exec_ext in '' $ac_executable_extensions; do
11090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11091     ac_cv_prog_ac_ct_AR="$ac_prog"
11092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093     break 2
11094   fi
11095 done
11096   done
11097 IFS=$as_save_IFS
11098
11099 fi
11100 fi
11101 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11102 if test -n "$ac_ct_AR"; then
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11104 $as_echo "$ac_ct_AR" >&6; }
11105 else
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 fi
11109
11110
11111   test -n "$ac_ct_AR" && break
11112 done
11113
11114   if test "x$ac_ct_AR" = x; then
11115     AR="false"
11116   else
11117     case $cross_compiling:$ac_tool_warned in
11118 yes:)
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11121 ac_tool_warned=yes ;;
11122 esac
11123     AR=$ac_ct_AR
11124   fi
11125 fi
11126
11127 : ${AR=ar}
11128 : ${AR_FLAGS=cru}
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11141 $as_echo_n "checking for archiver @FILE support... " >&6; }
11142 if ${lt_cv_ar_at_file+:} false; then :
11143   $as_echo_n "(cached) " >&6
11144 else
11145   lt_cv_ar_at_file=no
11146    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h.  */
11148
11149 int
11150 main ()
11151 {
11152
11153   ;
11154   return 0;
11155 }
11156 _ACEOF
11157 if ac_fn_c_try_compile "$LINENO"; then :
11158   echo conftest.$ac_objext > conftest.lst
11159       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11160       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11161   (eval $lt_ar_try) 2>&5
11162   ac_status=$?
11163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11164   test $ac_status = 0; }
11165       if test 0 -eq "$ac_status"; then
11166         # Ensure the archiver fails upon bogus file names.
11167         rm -f conftest.$ac_objext libconftest.a
11168         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11169   (eval $lt_ar_try) 2>&5
11170   ac_status=$?
11171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11172   test $ac_status = 0; }
11173         if test 0 -ne "$ac_status"; then
11174           lt_cv_ar_at_file=@
11175         fi
11176       fi
11177       rm -f conftest.* libconftest.a
11178
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11181
11182 fi
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11184 $as_echo "$lt_cv_ar_at_file" >&6; }
11185
11186 if test no = "$lt_cv_ar_at_file"; then
11187   archiver_list_spec=
11188 else
11189   archiver_list_spec=$lt_cv_ar_at_file
11190 fi
11191
11192
11193
11194
11195
11196
11197
11198 if test -n "$ac_tool_prefix"; then
11199   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11200 set dummy ${ac_tool_prefix}strip; ac_word=$2
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202 $as_echo_n "checking for $ac_word... " >&6; }
11203 if ${ac_cv_prog_STRIP+:} false; then :
11204   $as_echo_n "(cached) " >&6
11205 else
11206   if test -n "$STRIP"; then
11207   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11208 else
11209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210 for as_dir in $PATH
11211 do
11212   IFS=$as_save_IFS
11213   test -z "$as_dir" && as_dir=.
11214     for ac_exec_ext in '' $ac_executable_extensions; do
11215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11216     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11218     break 2
11219   fi
11220 done
11221   done
11222 IFS=$as_save_IFS
11223
11224 fi
11225 fi
11226 STRIP=$ac_cv_prog_STRIP
11227 if test -n "$STRIP"; then
11228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11229 $as_echo "$STRIP" >&6; }
11230 else
11231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11233 fi
11234
11235
11236 fi
11237 if test -z "$ac_cv_prog_STRIP"; then
11238   ac_ct_STRIP=$STRIP
11239   # Extract the first word of "strip", so it can be a program name with args.
11240 set dummy strip; ac_word=$2
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242 $as_echo_n "checking for $ac_word... " >&6; }
11243 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11244   $as_echo_n "(cached) " >&6
11245 else
11246   if test -n "$ac_ct_STRIP"; then
11247   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11248 else
11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250 for as_dir in $PATH
11251 do
11252   IFS=$as_save_IFS
11253   test -z "$as_dir" && as_dir=.
11254     for ac_exec_ext in '' $ac_executable_extensions; do
11255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11256     ac_cv_prog_ac_ct_STRIP="strip"
11257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258     break 2
11259   fi
11260 done
11261   done
11262 IFS=$as_save_IFS
11263
11264 fi
11265 fi
11266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11267 if test -n "$ac_ct_STRIP"; then
11268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11269 $as_echo "$ac_ct_STRIP" >&6; }
11270 else
11271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11273 fi
11274
11275   if test "x$ac_ct_STRIP" = x; then
11276     STRIP=":"
11277   else
11278     case $cross_compiling:$ac_tool_warned in
11279 yes:)
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11282 ac_tool_warned=yes ;;
11283 esac
11284     STRIP=$ac_ct_STRIP
11285   fi
11286 else
11287   STRIP="$ac_cv_prog_STRIP"
11288 fi
11289
11290 test -z "$STRIP" && STRIP=:
11291
11292
11293
11294
11295
11296
11297 if test -n "$ac_tool_prefix"; then
11298   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301 $as_echo_n "checking for $ac_word... " >&6; }
11302 if ${ac_cv_prog_RANLIB+:} false; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   if test -n "$RANLIB"; then
11306   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11307 else
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11310 do
11311   IFS=$as_save_IFS
11312   test -z "$as_dir" && as_dir=.
11313     for ac_exec_ext in '' $ac_executable_extensions; do
11314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11317     break 2
11318   fi
11319 done
11320   done
11321 IFS=$as_save_IFS
11322
11323 fi
11324 fi
11325 RANLIB=$ac_cv_prog_RANLIB
11326 if test -n "$RANLIB"; then
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11328 $as_echo "$RANLIB" >&6; }
11329 else
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11332 fi
11333
11334
11335 fi
11336 if test -z "$ac_cv_prog_RANLIB"; then
11337   ac_ct_RANLIB=$RANLIB
11338   # Extract the first word of "ranlib", so it can be a program name with args.
11339 set dummy ranlib; ac_word=$2
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11343   $as_echo_n "(cached) " >&6
11344 else
11345   if test -n "$ac_ct_RANLIB"; then
11346   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11347 else
11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349 for as_dir in $PATH
11350 do
11351   IFS=$as_save_IFS
11352   test -z "$as_dir" && as_dir=.
11353     for ac_exec_ext in '' $ac_executable_extensions; do
11354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11355     ac_cv_prog_ac_ct_RANLIB="ranlib"
11356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11357     break 2
11358   fi
11359 done
11360   done
11361 IFS=$as_save_IFS
11362
11363 fi
11364 fi
11365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11366 if test -n "$ac_ct_RANLIB"; then
11367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11368 $as_echo "$ac_ct_RANLIB" >&6; }
11369 else
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11372 fi
11373
11374   if test "x$ac_ct_RANLIB" = x; then
11375     RANLIB=":"
11376   else
11377     case $cross_compiling:$ac_tool_warned in
11378 yes:)
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11381 ac_tool_warned=yes ;;
11382 esac
11383     RANLIB=$ac_ct_RANLIB
11384   fi
11385 else
11386   RANLIB="$ac_cv_prog_RANLIB"
11387 fi
11388
11389 test -z "$RANLIB" && RANLIB=:
11390
11391
11392
11393
11394
11395
11396 # Determine commands to create old-style static archives.
11397 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11398 old_postinstall_cmds='chmod 644 $oldlib'
11399 old_postuninstall_cmds=
11400
11401 if test -n "$RANLIB"; then
11402   case $host_os in
11403   bitrig* | openbsd*)
11404     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11405     ;;
11406   *)
11407     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11408     ;;
11409   esac
11410   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11411 fi
11412
11413 case $host_os in
11414   darwin*)
11415     lock_old_archive_extraction=yes ;;
11416   *)
11417     lock_old_archive_extraction=no ;;
11418 esac
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
11455
11456
11457
11458 # If no C compiler was specified, use CC.
11459 LTCC=${LTCC-"$CC"}
11460
11461 # If no C compiler flags were specified, use CFLAGS.
11462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11463
11464 # Allow CC to be a program name with arguments.
11465 compiler=$CC
11466
11467
11468 # Check for command to grab the raw symbol name followed by C symbol from nm.
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11470 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11471 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11472   $as_echo_n "(cached) " >&6
11473 else
11474
11475 # These are sane defaults that work on at least a few old systems.
11476 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11477
11478 # Character class describing NM global symbol codes.
11479 symcode='[BCDEGRST]'
11480
11481 # Regexp to match symbols that can be accessed directly from C.
11482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11483
11484 # Define system-specific variables.
11485 case $host_os in
11486 aix*)
11487   symcode='[BCDT]'
11488   ;;
11489 cygwin* | mingw* | pw32* | cegcc*)
11490   symcode='[ABCDGISTW]'
11491   ;;
11492 hpux*)
11493   if test ia64 = "$host_cpu"; then
11494     symcode='[ABCDEGRST]'
11495   fi
11496   ;;
11497 irix* | nonstopux*)
11498   symcode='[BCDEGRST]'
11499   ;;
11500 osf*)
11501   symcode='[BCDEGQRST]'
11502   ;;
11503 solaris*)
11504   symcode='[BDRT]'
11505   ;;
11506 sco3.2v5*)
11507   symcode='[DT]'
11508   ;;
11509 sysv4.2uw2*)
11510   symcode='[DT]'
11511   ;;
11512 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11513   symcode='[ABDT]'
11514   ;;
11515 sysv4)
11516   symcode='[DFNSTU]'
11517   ;;
11518 esac
11519
11520 # If we're using GNU nm, then use its standard symbol codes.
11521 case `$NM -V 2>&1` in
11522 *GNU* | *'with BFD'*)
11523   symcode='[ABCDGIRSTW]' ;;
11524 esac
11525
11526 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11527   # Gets list of data symbols to import.
11528   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
11529   # Adjust the below global symbol transforms to fixup imported variables.
11530   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
11531   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
11532   lt_c_name_lib_hook="\
11533   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
11534   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
11535 else
11536   # Disable hooks by default.
11537   lt_cv_sys_global_symbol_to_import=
11538   lt_cdecl_hook=
11539   lt_c_name_hook=
11540   lt_c_name_lib_hook=
11541 fi
11542
11543 # Transform an extracted symbol line into a proper C declaration.
11544 # Some systems (esp. on ia64) link data and code symbols differently,
11545 # so use this general approach.
11546 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
11547 $lt_cdecl_hook\
11548 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11549 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11550
11551 # Transform an extracted symbol line into symbol name and symbol address
11552 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
11553 $lt_c_name_hook\
11554 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
11555 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
11556
11557 # Transform an extracted symbol line into symbol name with lib prefix and
11558 # symbol address.
11559 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
11560 $lt_c_name_lib_hook\
11561 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
11562 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
11563 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
11564
11565 # Handle CRLF in mingw tool chain
11566 opt_cr=
11567 case $build_os in
11568 mingw*)
11569   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11570   ;;
11571 esac
11572
11573 # Try without a prefix underscore, then with it.
11574 for ac_symprfx in "" "_"; do
11575
11576   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11577   symxfrm="\\1 $ac_symprfx\\2 \\2"
11578
11579   # Write the raw and C identifiers.
11580   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11581     # Fake it for dumpbin and say T for any non-static function,
11582     # D for any global variable and I for any imported variable.
11583     # Also find C++ and __fastcall symbols from MSVC++,
11584     # which start with @ or ?.
11585     lt_cv_sys_global_symbol_pipe="$AWK '"\
11586 "     {last_section=section; section=\$ 3};"\
11587 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11588 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11589 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11590 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11591 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11592 "     \$ 0!~/External *\|/{next};"\
11593 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11594 "     {if(hide[section]) next};"\
11595 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11596 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11597 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11598 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11599 "     ' prfx=^$ac_symprfx"
11600   else
11601     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11602   fi
11603   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11604
11605   # Check to see that the pipe works correctly.
11606   pipe_works=no
11607
11608   rm -f conftest*
11609   cat > conftest.$ac_ext <<_LT_EOF
11610 #ifdef __cplusplus
11611 extern "C" {
11612 #endif
11613 char nm_test_var;
11614 void nm_test_func(void);
11615 void nm_test_func(void){}
11616 #ifdef __cplusplus
11617 }
11618 #endif
11619 int main(){nm_test_var='a';nm_test_func();return(0);}
11620 _LT_EOF
11621
11622   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11623   (eval $ac_compile) 2>&5
11624   ac_status=$?
11625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626   test $ac_status = 0; }; then
11627     # Now try to grab the symbols.
11628     nlist=conftest.nm
11629     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11630   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11631   ac_status=$?
11632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11633   test $ac_status = 0; } && test -s "$nlist"; then
11634       # Try sorting and uniquifying the output.
11635       if sort "$nlist" | uniq > "$nlist"T; then
11636         mv -f "$nlist"T "$nlist"
11637       else
11638         rm -f "$nlist"T
11639       fi
11640
11641       # Make sure that we snagged all the symbols we need.
11642       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11643         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11644           cat <<_LT_EOF > conftest.$ac_ext
11645 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11646 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11647 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11648    relocations are performed -- see ld's documentation on pseudo-relocs.  */
11649 # define LT_DLSYM_CONST
11650 #elif defined __osf__
11651 /* This system does not cope well with relocations in const data.  */
11652 # define LT_DLSYM_CONST
11653 #else
11654 # define LT_DLSYM_CONST const
11655 #endif
11656
11657 #ifdef __cplusplus
11658 extern "C" {
11659 #endif
11660
11661 _LT_EOF
11662           # Now generate the symbol file.
11663           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11664
11665           cat <<_LT_EOF >> conftest.$ac_ext
11666
11667 /* The mapping between symbol names and symbols.  */
11668 LT_DLSYM_CONST struct {
11669   const char *name;
11670   void       *address;
11671 }
11672 lt__PROGRAM__LTX_preloaded_symbols[] =
11673 {
11674   { "@PROGRAM@", (void *) 0 },
11675 _LT_EOF
11676           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11677           cat <<\_LT_EOF >> conftest.$ac_ext
11678   {0, (void *) 0}
11679 };
11680
11681 /* This works around a problem in FreeBSD linker */
11682 #ifdef FREEBSD_WORKAROUND
11683 static const void *lt_preloaded_setup() {
11684   return lt__PROGRAM__LTX_preloaded_symbols;
11685 }
11686 #endif
11687
11688 #ifdef __cplusplus
11689 }
11690 #endif
11691 _LT_EOF
11692           # Now try linking the two files.
11693           mv conftest.$ac_objext conftstm.$ac_objext
11694           lt_globsym_save_LIBS=$LIBS
11695           lt_globsym_save_CFLAGS=$CFLAGS
11696           LIBS=conftstm.$ac_objext
11697           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11698           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11699   (eval $ac_link) 2>&5
11700   ac_status=$?
11701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702   test $ac_status = 0; } && test -s conftest$ac_exeext; then
11703             pipe_works=yes
11704           fi
11705           LIBS=$lt_globsym_save_LIBS
11706           CFLAGS=$lt_globsym_save_CFLAGS
11707         else
11708           echo "cannot find nm_test_func in $nlist" >&5
11709         fi
11710       else
11711         echo "cannot find nm_test_var in $nlist" >&5
11712       fi
11713     else
11714       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11715     fi
11716   else
11717     echo "$progname: failed program was:" >&5
11718     cat conftest.$ac_ext >&5
11719   fi
11720   rm -rf conftest* conftst*
11721
11722   # Do not use the global_symbol_pipe unless it works.
11723   if test yes = "$pipe_works"; then
11724     break
11725   else
11726     lt_cv_sys_global_symbol_pipe=
11727   fi
11728 done
11729
11730 fi
11731
11732 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11733   lt_cv_sys_global_symbol_to_cdecl=
11734 fi
11735 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11737 $as_echo "failed" >&6; }
11738 else
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11740 $as_echo "ok" >&6; }
11741 fi
11742
11743 # Response file support.
11744 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11745   nm_file_list_spec='@'
11746 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11747   nm_file_list_spec='@'
11748 fi
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
11783
11784
11785
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11787 $as_echo_n "checking for sysroot... " >&6; }
11788
11789 # Check whether --with-sysroot was given.
11790 if test "${with_sysroot+set}" = set; then :
11791   withval=$with_sysroot;
11792 else
11793   with_sysroot=no
11794 fi
11795
11796
11797 lt_sysroot=
11798 case $with_sysroot in #(
11799  yes)
11800    if test yes = "$GCC"; then
11801      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11802    fi
11803    ;; #(
11804  /*)
11805    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11806    ;; #(
11807  no|'')
11808    ;; #(
11809  *)
11810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11811 $as_echo "$with_sysroot" >&6; }
11812    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11813    ;;
11814 esac
11815
11816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11817 $as_echo "${lt_sysroot:-no}" >&6; }
11818
11819
11820
11821
11822
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11824 $as_echo_n "checking for a working dd... " >&6; }
11825 if ${ac_cv_path_lt_DD+:} false; then :
11826   $as_echo_n "(cached) " >&6
11827 else
11828   printf 0123456789abcdef0123456789abcdef >conftest.i
11829 cat conftest.i conftest.i >conftest2.i
11830 : ${lt_DD:=$DD}
11831 if test -z "$lt_DD"; then
11832   ac_path_lt_DD_found=false
11833   # Loop through the user's path and test for each of PROGNAME-LIST
11834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $PATH
11836 do
11837   IFS=$as_save_IFS
11838   test -z "$as_dir" && as_dir=.
11839     for ac_prog in dd; do
11840     for ac_exec_ext in '' $ac_executable_extensions; do
11841       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
11842       as_fn_executable_p "$ac_path_lt_DD" || continue
11843 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11844   cmp -s conftest.i conftest.out \
11845   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11846 fi
11847       $ac_path_lt_DD_found && break 3
11848     done
11849   done
11850   done
11851 IFS=$as_save_IFS
11852   if test -z "$ac_cv_path_lt_DD"; then
11853     :
11854   fi
11855 else
11856   ac_cv_path_lt_DD=$lt_DD
11857 fi
11858
11859 rm -f conftest.i conftest2.i conftest.out
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11862 $as_echo "$ac_cv_path_lt_DD" >&6; }
11863
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11866 $as_echo_n "checking how to truncate binary pipes... " >&6; }
11867 if ${lt_cv_truncate_bin+:} false; then :
11868   $as_echo_n "(cached) " >&6
11869 else
11870   printf 0123456789abcdef0123456789abcdef >conftest.i
11871 cat conftest.i conftest.i >conftest2.i
11872 lt_cv_truncate_bin=
11873 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11874   cmp -s conftest.i conftest.out \
11875   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11876 fi
11877 rm -f conftest.i conftest2.i conftest.out
11878 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11881 $as_echo "$lt_cv_truncate_bin" >&6; }
11882
11883
11884
11885
11886
11887
11888
11889 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
11890 func_cc_basename ()
11891 {
11892     for cc_temp in $*""; do
11893       case $cc_temp in
11894         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11895         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11896         \-*) ;;
11897         *) break;;
11898       esac
11899     done
11900     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11901 }
11902
11903 # Check whether --enable-libtool-lock was given.
11904 if test "${enable_libtool_lock+set}" = set; then :
11905   enableval=$enable_libtool_lock;
11906 fi
11907
11908 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11909
11910 # Some flags need to be propagated to the compiler or linker for good
11911 # libtool support.
11912 case $host in
11913 ia64-*-hpux*)
11914   # Find out what ABI is being produced by ac_compile, and set mode
11915   # options accordingly.
11916   echo 'int i;' > conftest.$ac_ext
11917   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11918   (eval $ac_compile) 2>&5
11919   ac_status=$?
11920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11921   test $ac_status = 0; }; then
11922     case `/usr/bin/file conftest.$ac_objext` in
11923       *ELF-32*)
11924         HPUX_IA64_MODE=32
11925         ;;
11926       *ELF-64*)
11927         HPUX_IA64_MODE=64
11928         ;;
11929     esac
11930   fi
11931   rm -rf conftest*
11932   ;;
11933 *-*-irix6*)
11934   # Find out what ABI is being produced by ac_compile, and set linker
11935   # options accordingly.
11936   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11937   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11938   (eval $ac_compile) 2>&5
11939   ac_status=$?
11940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941   test $ac_status = 0; }; then
11942     if test yes = "$lt_cv_prog_gnu_ld"; then
11943       case `/usr/bin/file conftest.$ac_objext` in
11944         *32-bit*)
11945           LD="${LD-ld} -melf32bsmip"
11946           ;;
11947         *N32*)
11948           LD="${LD-ld} -melf32bmipn32"
11949           ;;
11950         *64-bit*)
11951           LD="${LD-ld} -melf64bmip"
11952         ;;
11953       esac
11954     else
11955       case `/usr/bin/file conftest.$ac_objext` in
11956         *32-bit*)
11957           LD="${LD-ld} -32"
11958           ;;
11959         *N32*)
11960           LD="${LD-ld} -n32"
11961           ;;
11962         *64-bit*)
11963           LD="${LD-ld} -64"
11964           ;;
11965       esac
11966     fi
11967   fi
11968   rm -rf conftest*
11969   ;;
11970
11971 mips64*-*linux*)
11972   # Find out what ABI is being produced by ac_compile, and set linker
11973   # options accordingly.
11974   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11975   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11976   (eval $ac_compile) 2>&5
11977   ac_status=$?
11978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11979   test $ac_status = 0; }; then
11980     emul=elf
11981     case `/usr/bin/file conftest.$ac_objext` in
11982       *32-bit*)
11983         emul="${emul}32"
11984         ;;
11985       *64-bit*)
11986         emul="${emul}64"
11987         ;;
11988     esac
11989     case `/usr/bin/file conftest.$ac_objext` in
11990       *MSB*)
11991         emul="${emul}btsmip"
11992         ;;
11993       *LSB*)
11994         emul="${emul}ltsmip"
11995         ;;
11996     esac
11997     case `/usr/bin/file conftest.$ac_objext` in
11998       *N32*)
11999         emul="${emul}n32"
12000         ;;
12001     esac
12002     LD="${LD-ld} -m $emul"
12003   fi
12004   rm -rf conftest*
12005   ;;
12006
12007 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12008 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12009   # Find out what ABI is being produced by ac_compile, and set linker
12010   # options accordingly.  Note that the listed cases only cover the
12011   # situations where additional linker options are needed (such as when
12012   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
12013   # vice versa); the common cases where no linker options are needed do
12014   # not appear in the list.
12015   echo 'int i;' > conftest.$ac_ext
12016   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12017   (eval $ac_compile) 2>&5
12018   ac_status=$?
12019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020   test $ac_status = 0; }; then
12021     case `/usr/bin/file conftest.o` in
12022       *32-bit*)
12023         case $host in
12024           x86_64-*kfreebsd*-gnu)
12025             LD="${LD-ld} -m elf_i386_fbsd"
12026             ;;
12027           x86_64-*linux*)
12028             case `/usr/bin/file conftest.o` in
12029               *x86-64*)
12030                 LD="${LD-ld} -m elf32_x86_64"
12031                 ;;
12032               *)
12033                 LD="${LD-ld} -m elf_i386"
12034                 ;;
12035             esac
12036             ;;
12037           powerpc64le-*linux*)
12038             LD="${LD-ld} -m elf32lppclinux"
12039             ;;
12040           powerpc64-*linux*)
12041             LD="${LD-ld} -m elf32ppclinux"
12042             ;;
12043           s390x-*linux*)
12044             LD="${LD-ld} -m elf_s390"
12045             ;;
12046           sparc64-*linux*)
12047             LD="${LD-ld} -m elf32_sparc"
12048             ;;
12049         esac
12050         ;;
12051       *64-bit*)
12052         case $host in
12053           x86_64-*kfreebsd*-gnu)
12054             LD="${LD-ld} -m elf_x86_64_fbsd"
12055             ;;
12056           x86_64-*linux*)
12057             LD="${LD-ld} -m elf_x86_64"
12058             ;;
12059           powerpcle-*linux*)
12060             LD="${LD-ld} -m elf64lppc"
12061             ;;
12062           powerpc-*linux*)
12063             LD="${LD-ld} -m elf64ppc"
12064             ;;
12065           s390*-*linux*|s390*-*tpf*)
12066             LD="${LD-ld} -m elf64_s390"
12067             ;;
12068           sparc*-*linux*)
12069             LD="${LD-ld} -m elf64_sparc"
12070             ;;
12071         esac
12072         ;;
12073     esac
12074   fi
12075   rm -rf conftest*
12076   ;;
12077
12078 *-*-sco3.2v5*)
12079   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12080   SAVE_CFLAGS=$CFLAGS
12081   CFLAGS="$CFLAGS -belf"
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12083 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12084 if ${lt_cv_cc_needs_belf+:} false; then :
12085   $as_echo_n "(cached) " >&6
12086 else
12087   ac_ext=c
12088 ac_cpp='$CPP $CPPFLAGS'
12089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12092
12093      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h.  */
12095
12096 int
12097 main ()
12098 {
12099
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 if ac_fn_c_try_link "$LINENO"; then :
12105   lt_cv_cc_needs_belf=yes
12106 else
12107   lt_cv_cc_needs_belf=no
12108 fi
12109 rm -f core conftest.err conftest.$ac_objext \
12110     conftest$ac_exeext conftest.$ac_ext
12111      ac_ext=c
12112 ac_cpp='$CPP $CPPFLAGS'
12113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12116
12117 fi
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12119 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12120   if test yes != "$lt_cv_cc_needs_belf"; then
12121     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12122     CFLAGS=$SAVE_CFLAGS
12123   fi
12124   ;;
12125 *-*solaris*)
12126   # Find out what ABI is being produced by ac_compile, and set linker
12127   # options accordingly.
12128   echo 'int i;' > conftest.$ac_ext
12129   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12130   (eval $ac_compile) 2>&5
12131   ac_status=$?
12132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12133   test $ac_status = 0; }; then
12134     case `/usr/bin/file conftest.o` in
12135     *64-bit*)
12136       case $lt_cv_prog_gnu_ld in
12137       yes*)
12138         case $host in
12139         i?86-*-solaris*|x86_64-*-solaris*)
12140           LD="${LD-ld} -m elf_x86_64"
12141           ;;
12142         sparc*-*-solaris*)
12143           LD="${LD-ld} -m elf64_sparc"
12144           ;;
12145         esac
12146         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12147         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12148           LD=${LD-ld}_sol2
12149         fi
12150         ;;
12151       *)
12152         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12153           LD="${LD-ld} -64"
12154         fi
12155         ;;
12156       esac
12157       ;;
12158     esac
12159   fi
12160   rm -rf conftest*
12161   ;;
12162 esac
12163
12164 need_locks=$enable_libtool_lock
12165
12166 if test -n "$ac_tool_prefix"; then
12167   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12168 set dummy ${ac_tool_prefix}mt; ac_word=$2
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170 $as_echo_n "checking for $ac_word... " >&6; }
12171 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12172   $as_echo_n "(cached) " >&6
12173 else
12174   if test -n "$MANIFEST_TOOL"; then
12175   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12176 else
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12179 do
12180   IFS=$as_save_IFS
12181   test -z "$as_dir" && as_dir=.
12182     for ac_exec_ext in '' $ac_executable_extensions; do
12183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186     break 2
12187   fi
12188 done
12189   done
12190 IFS=$as_save_IFS
12191
12192 fi
12193 fi
12194 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12195 if test -n "$MANIFEST_TOOL"; then
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12197 $as_echo "$MANIFEST_TOOL" >&6; }
12198 else
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12201 fi
12202
12203
12204 fi
12205 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12206   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12207   # Extract the first word of "mt", so it can be a program name with args.
12208 set dummy mt; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12212   $as_echo_n "(cached) " >&6
12213 else
12214   if test -n "$ac_ct_MANIFEST_TOOL"; then
12215   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12216 else
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12219 do
12220   IFS=$as_save_IFS
12221   test -z "$as_dir" && as_dir=.
12222     for ac_exec_ext in '' $ac_executable_extensions; do
12223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12224     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226     break 2
12227   fi
12228 done
12229   done
12230 IFS=$as_save_IFS
12231
12232 fi
12233 fi
12234 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12235 if test -n "$ac_ct_MANIFEST_TOOL"; then
12236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12237 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12238 else
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12241 fi
12242
12243   if test "x$ac_ct_MANIFEST_TOOL" = x; then
12244     MANIFEST_TOOL=":"
12245   else
12246     case $cross_compiling:$ac_tool_warned in
12247 yes:)
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12250 ac_tool_warned=yes ;;
12251 esac
12252     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12253   fi
12254 else
12255   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12256 fi
12257
12258 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12260 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12261 if ${lt_cv_path_mainfest_tool+:} false; then :
12262   $as_echo_n "(cached) " >&6
12263 else
12264   lt_cv_path_mainfest_tool=no
12265   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12266   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12267   cat conftest.err >&5
12268   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12269     lt_cv_path_mainfest_tool=yes
12270   fi
12271   rm -f conftest*
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12274 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
12275 if test yes != "$lt_cv_path_mainfest_tool"; then
12276   MANIFEST_TOOL=:
12277 fi
12278
12279
12280
12281
12282
12283
12284   case $host_os in
12285     rhapsody* | darwin*)
12286     if test -n "$ac_tool_prefix"; then
12287   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12288 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12290 $as_echo_n "checking for $ac_word... " >&6; }
12291 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12292   $as_echo_n "(cached) " >&6
12293 else
12294   if test -n "$DSYMUTIL"; then
12295   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12296 else
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12299 do
12300   IFS=$as_save_IFS
12301   test -z "$as_dir" && as_dir=.
12302     for ac_exec_ext in '' $ac_executable_extensions; do
12303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12304     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12306     break 2
12307   fi
12308 done
12309   done
12310 IFS=$as_save_IFS
12311
12312 fi
12313 fi
12314 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12315 if test -n "$DSYMUTIL"; then
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12317 $as_echo "$DSYMUTIL" >&6; }
12318 else
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12321 fi
12322
12323
12324 fi
12325 if test -z "$ac_cv_prog_DSYMUTIL"; then
12326   ac_ct_DSYMUTIL=$DSYMUTIL
12327   # Extract the first word of "dsymutil", so it can be a program name with args.
12328 set dummy dsymutil; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   if test -n "$ac_ct_DSYMUTIL"; then
12335   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12336 else
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12339 do
12340   IFS=$as_save_IFS
12341   test -z "$as_dir" && as_dir=.
12342     for ac_exec_ext in '' $ac_executable_extensions; do
12343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346     break 2
12347   fi
12348 done
12349   done
12350 IFS=$as_save_IFS
12351
12352 fi
12353 fi
12354 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12355 if test -n "$ac_ct_DSYMUTIL"; then
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12357 $as_echo "$ac_ct_DSYMUTIL" >&6; }
12358 else
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12361 fi
12362
12363   if test "x$ac_ct_DSYMUTIL" = x; then
12364     DSYMUTIL=":"
12365   else
12366     case $cross_compiling:$ac_tool_warned in
12367 yes:)
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12370 ac_tool_warned=yes ;;
12371 esac
12372     DSYMUTIL=$ac_ct_DSYMUTIL
12373   fi
12374 else
12375   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12376 fi
12377
12378     if test -n "$ac_tool_prefix"; then
12379   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12380 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382 $as_echo_n "checking for $ac_word... " >&6; }
12383 if ${ac_cv_prog_NMEDIT+:} false; then :
12384   $as_echo_n "(cached) " >&6
12385 else
12386   if test -n "$NMEDIT"; then
12387   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12388 else
12389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390 for as_dir in $PATH
12391 do
12392   IFS=$as_save_IFS
12393   test -z "$as_dir" && as_dir=.
12394     for ac_exec_ext in '' $ac_executable_extensions; do
12395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12396     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12398     break 2
12399   fi
12400 done
12401   done
12402 IFS=$as_save_IFS
12403
12404 fi
12405 fi
12406 NMEDIT=$ac_cv_prog_NMEDIT
12407 if test -n "$NMEDIT"; then
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12409 $as_echo "$NMEDIT" >&6; }
12410 else
12411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12413 fi
12414
12415
12416 fi
12417 if test -z "$ac_cv_prog_NMEDIT"; then
12418   ac_ct_NMEDIT=$NMEDIT
12419   # Extract the first word of "nmedit", so it can be a program name with args.
12420 set dummy nmedit; ac_word=$2
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12422 $as_echo_n "checking for $ac_word... " >&6; }
12423 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
12424   $as_echo_n "(cached) " >&6
12425 else
12426   if test -n "$ac_ct_NMEDIT"; then
12427   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12428 else
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12431 do
12432   IFS=$as_save_IFS
12433   test -z "$as_dir" && as_dir=.
12434     for ac_exec_ext in '' $ac_executable_extensions; do
12435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12436     ac_cv_prog_ac_ct_NMEDIT="nmedit"
12437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438     break 2
12439   fi
12440 done
12441   done
12442 IFS=$as_save_IFS
12443
12444 fi
12445 fi
12446 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12447 if test -n "$ac_ct_NMEDIT"; then
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12449 $as_echo "$ac_ct_NMEDIT" >&6; }
12450 else
12451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454
12455   if test "x$ac_ct_NMEDIT" = x; then
12456     NMEDIT=":"
12457   else
12458     case $cross_compiling:$ac_tool_warned in
12459 yes:)
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12462 ac_tool_warned=yes ;;
12463 esac
12464     NMEDIT=$ac_ct_NMEDIT
12465   fi
12466 else
12467   NMEDIT="$ac_cv_prog_NMEDIT"
12468 fi
12469
12470     if test -n "$ac_tool_prefix"; then
12471   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12472 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if ${ac_cv_prog_LIPO+:} false; then :
12476   $as_echo_n "(cached) " >&6
12477 else
12478   if test -n "$LIPO"; then
12479   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12480 else
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12483 do
12484   IFS=$as_save_IFS
12485   test -z "$as_dir" && as_dir=.
12486     for ac_exec_ext in '' $ac_executable_extensions; do
12487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490     break 2
12491   fi
12492 done
12493   done
12494 IFS=$as_save_IFS
12495
12496 fi
12497 fi
12498 LIPO=$ac_cv_prog_LIPO
12499 if test -n "$LIPO"; then
12500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12501 $as_echo "$LIPO" >&6; }
12502 else
12503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504 $as_echo "no" >&6; }
12505 fi
12506
12507
12508 fi
12509 if test -z "$ac_cv_prog_LIPO"; then
12510   ac_ct_LIPO=$LIPO
12511   # Extract the first word of "lipo", so it can be a program name with args.
12512 set dummy lipo; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12516   $as_echo_n "(cached) " >&6
12517 else
12518   if test -n "$ac_ct_LIPO"; then
12519   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12520 else
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12523 do
12524   IFS=$as_save_IFS
12525   test -z "$as_dir" && as_dir=.
12526     for ac_exec_ext in '' $ac_executable_extensions; do
12527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528     ac_cv_prog_ac_ct_LIPO="lipo"
12529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530     break 2
12531   fi
12532 done
12533   done
12534 IFS=$as_save_IFS
12535
12536 fi
12537 fi
12538 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12539 if test -n "$ac_ct_LIPO"; then
12540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12541 $as_echo "$ac_ct_LIPO" >&6; }
12542 else
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546
12547   if test "x$ac_ct_LIPO" = x; then
12548     LIPO=":"
12549   else
12550     case $cross_compiling:$ac_tool_warned in
12551 yes:)
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12554 ac_tool_warned=yes ;;
12555 esac
12556     LIPO=$ac_ct_LIPO
12557   fi
12558 else
12559   LIPO="$ac_cv_prog_LIPO"
12560 fi
12561
12562     if test -n "$ac_tool_prefix"; then
12563   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12564 set dummy ${ac_tool_prefix}otool; ac_word=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if ${ac_cv_prog_OTOOL+:} false; then :
12568   $as_echo_n "(cached) " >&6
12569 else
12570   if test -n "$OTOOL"; then
12571   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12572 else
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12575 do
12576   IFS=$as_save_IFS
12577   test -z "$as_dir" && as_dir=.
12578     for ac_exec_ext in '' $ac_executable_extensions; do
12579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12580     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582     break 2
12583   fi
12584 done
12585   done
12586 IFS=$as_save_IFS
12587
12588 fi
12589 fi
12590 OTOOL=$ac_cv_prog_OTOOL
12591 if test -n "$OTOOL"; then
12592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12593 $as_echo "$OTOOL" >&6; }
12594 else
12595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12597 fi
12598
12599
12600 fi
12601 if test -z "$ac_cv_prog_OTOOL"; then
12602   ac_ct_OTOOL=$OTOOL
12603   # Extract the first word of "otool", so it can be a program name with args.
12604 set dummy otool; ac_word=$2
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606 $as_echo_n "checking for $ac_word... " >&6; }
12607 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12608   $as_echo_n "(cached) " >&6
12609 else
12610   if test -n "$ac_ct_OTOOL"; then
12611   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12612 else
12613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614 for as_dir in $PATH
12615 do
12616   IFS=$as_save_IFS
12617   test -z "$as_dir" && as_dir=.
12618     for ac_exec_ext in '' $ac_executable_extensions; do
12619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12620     ac_cv_prog_ac_ct_OTOOL="otool"
12621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622     break 2
12623   fi
12624 done
12625   done
12626 IFS=$as_save_IFS
12627
12628 fi
12629 fi
12630 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12631 if test -n "$ac_ct_OTOOL"; then
12632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12633 $as_echo "$ac_ct_OTOOL" >&6; }
12634 else
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637 fi
12638
12639   if test "x$ac_ct_OTOOL" = x; then
12640     OTOOL=":"
12641   else
12642     case $cross_compiling:$ac_tool_warned in
12643 yes:)
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12646 ac_tool_warned=yes ;;
12647 esac
12648     OTOOL=$ac_ct_OTOOL
12649   fi
12650 else
12651   OTOOL="$ac_cv_prog_OTOOL"
12652 fi
12653
12654     if test -n "$ac_tool_prefix"; then
12655   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12656 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658 $as_echo_n "checking for $ac_word... " >&6; }
12659 if ${ac_cv_prog_OTOOL64+:} false; then :
12660   $as_echo_n "(cached) " >&6
12661 else
12662   if test -n "$OTOOL64"; then
12663   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12664 else
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $PATH
12667 do
12668   IFS=$as_save_IFS
12669   test -z "$as_dir" && as_dir=.
12670     for ac_exec_ext in '' $ac_executable_extensions; do
12671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12672     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674     break 2
12675   fi
12676 done
12677   done
12678 IFS=$as_save_IFS
12679
12680 fi
12681 fi
12682 OTOOL64=$ac_cv_prog_OTOOL64
12683 if test -n "$OTOOL64"; then
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12685 $as_echo "$OTOOL64" >&6; }
12686 else
12687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12689 fi
12690
12691
12692 fi
12693 if test -z "$ac_cv_prog_OTOOL64"; then
12694   ac_ct_OTOOL64=$OTOOL64
12695   # Extract the first word of "otool64", so it can be a program name with args.
12696 set dummy otool64; ac_word=$2
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698 $as_echo_n "checking for $ac_word... " >&6; }
12699 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12700   $as_echo_n "(cached) " >&6
12701 else
12702   if test -n "$ac_ct_OTOOL64"; then
12703   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12704 else
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12707 do
12708   IFS=$as_save_IFS
12709   test -z "$as_dir" && as_dir=.
12710     for ac_exec_ext in '' $ac_executable_extensions; do
12711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12712     ac_cv_prog_ac_ct_OTOOL64="otool64"
12713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714     break 2
12715   fi
12716 done
12717   done
12718 IFS=$as_save_IFS
12719
12720 fi
12721 fi
12722 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12723 if test -n "$ac_ct_OTOOL64"; then
12724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12725 $as_echo "$ac_ct_OTOOL64" >&6; }
12726 else
12727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12729 fi
12730
12731   if test "x$ac_ct_OTOOL64" = x; then
12732     OTOOL64=":"
12733   else
12734     case $cross_compiling:$ac_tool_warned in
12735 yes:)
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12738 ac_tool_warned=yes ;;
12739 esac
12740     OTOOL64=$ac_ct_OTOOL64
12741   fi
12742 else
12743   OTOOL64="$ac_cv_prog_OTOOL64"
12744 fi
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12773 $as_echo_n "checking for -single_module linker flag... " >&6; }
12774 if ${lt_cv_apple_cc_single_mod+:} false; then :
12775   $as_echo_n "(cached) " >&6
12776 else
12777   lt_cv_apple_cc_single_mod=no
12778       if test -z "$LT_MULTI_MODULE"; then
12779         # By default we will add the -single_module flag. You can override
12780         # by either setting the environment variable LT_MULTI_MODULE
12781         # non-empty at configure time, or by adding -multi_module to the
12782         # link flags.
12783         rm -rf libconftest.dylib*
12784         echo "int foo(void){return 1;}" > conftest.c
12785         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12786 -dynamiclib -Wl,-single_module conftest.c" >&5
12787         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12788           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12789         _lt_result=$?
12790         # If there is a non-empty error log, and "single_module"
12791         # appears in it, assume the flag caused a linker warning
12792         if test -s conftest.err && $GREP single_module conftest.err; then
12793           cat conftest.err >&5
12794         # Otherwise, if the output was created with a 0 exit code from
12795         # the compiler, it worked.
12796         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12797           lt_cv_apple_cc_single_mod=yes
12798         else
12799           cat conftest.err >&5
12800         fi
12801         rm -rf libconftest.dylib*
12802         rm -f conftest.*
12803       fi
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12806 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12807
12808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12809 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12810 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12811   $as_echo_n "(cached) " >&6
12812 else
12813   lt_cv_ld_exported_symbols_list=no
12814       save_LDFLAGS=$LDFLAGS
12815       echo "_main" > conftest.sym
12816       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h.  */
12819
12820 int
12821 main ()
12822 {
12823
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 if ac_fn_c_try_link "$LINENO"; then :
12829   lt_cv_ld_exported_symbols_list=yes
12830 else
12831   lt_cv_ld_exported_symbols_list=no
12832 fi
12833 rm -f core conftest.err conftest.$ac_objext \
12834     conftest$ac_exeext conftest.$ac_ext
12835         LDFLAGS=$save_LDFLAGS
12836
12837 fi
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12839 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12840
12841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12842 $as_echo_n "checking for -force_load linker flag... " >&6; }
12843 if ${lt_cv_ld_force_load+:} false; then :
12844   $as_echo_n "(cached) " >&6
12845 else
12846   lt_cv_ld_force_load=no
12847       cat > conftest.c << _LT_EOF
12848 int forced_loaded() { return 2;}
12849 _LT_EOF
12850       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12851       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12852       echo "$AR cru libconftest.a conftest.o" >&5
12853       $AR cru libconftest.a conftest.o 2>&5
12854       echo "$RANLIB libconftest.a" >&5
12855       $RANLIB libconftest.a 2>&5
12856       cat > conftest.c << _LT_EOF
12857 int main() { return 0;}
12858 _LT_EOF
12859       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12860       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12861       _lt_result=$?
12862       if test -s conftest.err && $GREP force_load conftest.err; then
12863         cat conftest.err >&5
12864       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12865         lt_cv_ld_force_load=yes
12866       else
12867         cat conftest.err >&5
12868       fi
12869         rm -f conftest.err libconftest.a conftest conftest.c
12870         rm -rf conftest.dSYM
12871
12872 fi
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12874 $as_echo "$lt_cv_ld_force_load" >&6; }
12875     case $host_os in
12876     rhapsody* | darwin1.[012])
12877       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12878     darwin1.*)
12879       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12880     darwin*) # darwin 5.x on
12881       # if running on 10.5 or later, the deployment target defaults
12882       # to the OS version, if on x86, and 10.4, the deployment
12883       # target defaults to 10.4. Don't you love it?
12884       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12885         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12886           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12887         10.[012][,.]*)
12888           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12889         10.*)
12890           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12891       esac
12892     ;;
12893   esac
12894     if test yes = "$lt_cv_apple_cc_single_mod"; then
12895       _lt_dar_single_mod='$single_module'
12896     fi
12897     if test yes = "$lt_cv_ld_exported_symbols_list"; then
12898       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12899     else
12900       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12901     fi
12902     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12903       _lt_dsymutil='~$DSYMUTIL $lib || :'
12904     else
12905       _lt_dsymutil=
12906     fi
12907     ;;
12908   esac
12909
12910 # func_munge_path_list VARIABLE PATH
12911 # -----------------------------------
12912 # VARIABLE is name of variable containing _space_ separated list of
12913 # directories to be munged by the contents of PATH, which is string
12914 # having a format:
12915 # "DIR[:DIR]:"
12916 #       string "DIR[ DIR]" will be prepended to VARIABLE
12917 # ":DIR[:DIR]"
12918 #       string "DIR[ DIR]" will be appended to VARIABLE
12919 # "DIRP[:DIRP]::[DIRA:]DIRA"
12920 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12921 #       "DIRA[ DIRA]" will be appended to VARIABLE
12922 # "DIR[:DIR]"
12923 #       VARIABLE will be replaced by "DIR[ DIR]"
12924 func_munge_path_list ()
12925 {
12926     case x$2 in
12927     x)
12928         ;;
12929     *:)
12930         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12931         ;;
12932     x:*)
12933         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12934         ;;
12935     *::*)
12936         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12937         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12938         ;;
12939     *)
12940         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12941         ;;
12942     esac
12943 }
12944
12945 for ac_header in dlfcn.h
12946 do :
12947   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12948 "
12949 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12950   cat >>confdefs.h <<_ACEOF
12951 #define HAVE_DLFCN_H 1
12952 _ACEOF
12953
12954 fi
12955
12956 done
12957
12958
12959
12960
12961
12962 # Set options
12963 enable_win32_dll=yes
12964
12965 case $host in
12966 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12967   if test -n "$ac_tool_prefix"; then
12968   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12969 set dummy ${ac_tool_prefix}as; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if ${ac_cv_prog_AS+:} false; then :
12973   $as_echo_n "(cached) " >&6
12974 else
12975   if test -n "$AS"; then
12976   ac_cv_prog_AS="$AS" # Let the user override the test.
12977 else
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12980 do
12981   IFS=$as_save_IFS
12982   test -z "$as_dir" && as_dir=.
12983     for ac_exec_ext in '' $ac_executable_extensions; do
12984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12985     ac_cv_prog_AS="${ac_tool_prefix}as"
12986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987     break 2
12988   fi
12989 done
12990   done
12991 IFS=$as_save_IFS
12992
12993 fi
12994 fi
12995 AS=$ac_cv_prog_AS
12996 if test -n "$AS"; then
12997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12998 $as_echo "$AS" >&6; }
12999 else
13000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13002 fi
13003
13004
13005 fi
13006 if test -z "$ac_cv_prog_AS"; then
13007   ac_ct_AS=$AS
13008   # Extract the first word of "as", so it can be a program name with args.
13009 set dummy as; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if ${ac_cv_prog_ac_ct_AS+:} false; then :
13013   $as_echo_n "(cached) " >&6
13014 else
13015   if test -n "$ac_ct_AS"; then
13016   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13017 else
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021   IFS=$as_save_IFS
13022   test -z "$as_dir" && as_dir=.
13023     for ac_exec_ext in '' $ac_executable_extensions; do
13024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025     ac_cv_prog_ac_ct_AS="as"
13026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027     break 2
13028   fi
13029 done
13030   done
13031 IFS=$as_save_IFS
13032
13033 fi
13034 fi
13035 ac_ct_AS=$ac_cv_prog_ac_ct_AS
13036 if test -n "$ac_ct_AS"; then
13037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13038 $as_echo "$ac_ct_AS" >&6; }
13039 else
13040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042 fi
13043
13044   if test "x$ac_ct_AS" = x; then
13045     AS="false"
13046   else
13047     case $cross_compiling:$ac_tool_warned in
13048 yes:)
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13051 ac_tool_warned=yes ;;
13052 esac
13053     AS=$ac_ct_AS
13054   fi
13055 else
13056   AS="$ac_cv_prog_AS"
13057 fi
13058
13059   if test -n "$ac_tool_prefix"; then
13060   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13061 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13063 $as_echo_n "checking for $ac_word... " >&6; }
13064 if ${ac_cv_prog_DLLTOOL+:} false; then :
13065   $as_echo_n "(cached) " >&6
13066 else
13067   if test -n "$DLLTOOL"; then
13068   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13069 else
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13072 do
13073   IFS=$as_save_IFS
13074   test -z "$as_dir" && as_dir=.
13075     for ac_exec_ext in '' $ac_executable_extensions; do
13076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079     break 2
13080   fi
13081 done
13082   done
13083 IFS=$as_save_IFS
13084
13085 fi
13086 fi
13087 DLLTOOL=$ac_cv_prog_DLLTOOL
13088 if test -n "$DLLTOOL"; then
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13090 $as_echo "$DLLTOOL" >&6; }
13091 else
13092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13094 fi
13095
13096
13097 fi
13098 if test -z "$ac_cv_prog_DLLTOOL"; then
13099   ac_ct_DLLTOOL=$DLLTOOL
13100   # Extract the first word of "dlltool", so it can be a program name with args.
13101 set dummy dlltool; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13105   $as_echo_n "(cached) " >&6
13106 else
13107   if test -n "$ac_ct_DLLTOOL"; then
13108   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13109 else
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13112 do
13113   IFS=$as_save_IFS
13114   test -z "$as_dir" && as_dir=.
13115     for ac_exec_ext in '' $ac_executable_extensions; do
13116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119     break 2
13120   fi
13121 done
13122   done
13123 IFS=$as_save_IFS
13124
13125 fi
13126 fi
13127 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13128 if test -n "$ac_ct_DLLTOOL"; then
13129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13130 $as_echo "$ac_ct_DLLTOOL" >&6; }
13131 else
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13134 fi
13135
13136   if test "x$ac_ct_DLLTOOL" = x; then
13137     DLLTOOL="false"
13138   else
13139     case $cross_compiling:$ac_tool_warned in
13140 yes:)
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13143 ac_tool_warned=yes ;;
13144 esac
13145     DLLTOOL=$ac_ct_DLLTOOL
13146   fi
13147 else
13148   DLLTOOL="$ac_cv_prog_DLLTOOL"
13149 fi
13150
13151   if test -n "$ac_tool_prefix"; then
13152   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13153 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155 $as_echo_n "checking for $ac_word... " >&6; }
13156 if ${ac_cv_prog_OBJDUMP+:} false; then :
13157   $as_echo_n "(cached) " >&6
13158 else
13159   if test -n "$OBJDUMP"; then
13160   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13161 else
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $PATH
13164 do
13165   IFS=$as_save_IFS
13166   test -z "$as_dir" && as_dir=.
13167     for ac_exec_ext in '' $ac_executable_extensions; do
13168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13169     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171     break 2
13172   fi
13173 done
13174   done
13175 IFS=$as_save_IFS
13176
13177 fi
13178 fi
13179 OBJDUMP=$ac_cv_prog_OBJDUMP
13180 if test -n "$OBJDUMP"; then
13181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13182 $as_echo "$OBJDUMP" >&6; }
13183 else
13184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13186 fi
13187
13188
13189 fi
13190 if test -z "$ac_cv_prog_OBJDUMP"; then
13191   ac_ct_OBJDUMP=$OBJDUMP
13192   # Extract the first word of "objdump", so it can be a program name with args.
13193 set dummy objdump; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13197   $as_echo_n "(cached) " >&6
13198 else
13199   if test -n "$ac_ct_OBJDUMP"; then
13200   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13201 else
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205   IFS=$as_save_IFS
13206   test -z "$as_dir" && as_dir=.
13207     for ac_exec_ext in '' $ac_executable_extensions; do
13208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13209     ac_cv_prog_ac_ct_OBJDUMP="objdump"
13210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211     break 2
13212   fi
13213 done
13214   done
13215 IFS=$as_save_IFS
13216
13217 fi
13218 fi
13219 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13220 if test -n "$ac_ct_OBJDUMP"; then
13221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13222 $as_echo "$ac_ct_OBJDUMP" >&6; }
13223 else
13224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13226 fi
13227
13228   if test "x$ac_ct_OBJDUMP" = x; then
13229     OBJDUMP="false"
13230   else
13231     case $cross_compiling:$ac_tool_warned in
13232 yes:)
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13235 ac_tool_warned=yes ;;
13236 esac
13237     OBJDUMP=$ac_ct_OBJDUMP
13238   fi
13239 else
13240   OBJDUMP="$ac_cv_prog_OBJDUMP"
13241 fi
13242
13243   ;;
13244 esac
13245
13246 test -z "$AS" && AS=as
13247
13248
13249
13250
13251
13252 test -z "$DLLTOOL" && DLLTOOL=dlltool
13253
13254
13255
13256
13257
13258 test -z "$OBJDUMP" && OBJDUMP=objdump
13259
13260
13261
13262
13263
13264
13265
13266         enable_dlopen=no
13267
13268
13269
13270             # Check whether --enable-shared was given.
13271 if test "${enable_shared+set}" = set; then :
13272   enableval=$enable_shared; p=${PACKAGE-default}
13273     case $enableval in
13274     yes) enable_shared=yes ;;
13275     no) enable_shared=no ;;
13276     *)
13277       enable_shared=no
13278       # Look at the argument we got.  We use all the common list separators.
13279       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13280       for pkg in $enableval; do
13281         IFS=$lt_save_ifs
13282         if test "X$pkg" = "X$p"; then
13283           enable_shared=yes
13284         fi
13285       done
13286       IFS=$lt_save_ifs
13287       ;;
13288     esac
13289 else
13290   enable_shared=yes
13291 fi
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301   # Check whether --enable-static was given.
13302 if test "${enable_static+set}" = set; then :
13303   enableval=$enable_static; p=${PACKAGE-default}
13304     case $enableval in
13305     yes) enable_static=yes ;;
13306     no) enable_static=no ;;
13307     *)
13308      enable_static=no
13309       # Look at the argument we got.  We use all the common list separators.
13310       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13311       for pkg in $enableval; do
13312         IFS=$lt_save_ifs
13313         if test "X$pkg" = "X$p"; then
13314           enable_static=yes
13315         fi
13316       done
13317       IFS=$lt_save_ifs
13318       ;;
13319     esac
13320 else
13321   enable_static=yes
13322 fi
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333 # Check whether --with-pic was given.
13334 if test "${with_pic+set}" = set; then :
13335   withval=$with_pic; lt_p=${PACKAGE-default}
13336     case $withval in
13337     yes|no) pic_mode=$withval ;;
13338     *)
13339       pic_mode=default
13340       # Look at the argument we got.  We use all the common list separators.
13341       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13342       for lt_pkg in $withval; do
13343         IFS=$lt_save_ifs
13344         if test "X$lt_pkg" = "X$lt_p"; then
13345           pic_mode=yes
13346         fi
13347       done
13348       IFS=$lt_save_ifs
13349       ;;
13350     esac
13351 else
13352   pic_mode=default
13353 fi
13354
13355
13356
13357
13358
13359
13360
13361
13362   # Check whether --enable-fast-install was given.
13363 if test "${enable_fast_install+set}" = set; then :
13364   enableval=$enable_fast_install; p=${PACKAGE-default}
13365     case $enableval in
13366     yes) enable_fast_install=yes ;;
13367     no) enable_fast_install=no ;;
13368     *)
13369       enable_fast_install=no
13370       # Look at the argument we got.  We use all the common list separators.
13371       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13372       for pkg in $enableval; do
13373         IFS=$lt_save_ifs
13374         if test "X$pkg" = "X$p"; then
13375           enable_fast_install=yes
13376         fi
13377       done
13378       IFS=$lt_save_ifs
13379       ;;
13380     esac
13381 else
13382   enable_fast_install=yes
13383 fi
13384
13385
13386
13387
13388
13389
13390
13391
13392   shared_archive_member_spec=
13393 case $host,$enable_shared in
13394 power*-*-aix[5-9]*,yes)
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
13396 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
13397
13398 # Check whether --with-aix-soname was given.
13399 if test "${with_aix_soname+set}" = set; then :
13400   withval=$with_aix_soname; case $withval in
13401     aix|svr4|both)
13402       ;;
13403     *)
13404       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
13405       ;;
13406     esac
13407     lt_cv_with_aix_soname=$with_aix_soname
13408 else
13409   if ${lt_cv_with_aix_soname+:} false; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   lt_cv_with_aix_soname=aix
13413 fi
13414
13415     with_aix_soname=$lt_cv_with_aix_soname
13416 fi
13417
13418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
13419 $as_echo "$with_aix_soname" >&6; }
13420   if test aix != "$with_aix_soname"; then
13421     # For the AIX way of multilib, we name the shared archive member
13422     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
13423     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
13424     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
13425     # the AIX toolchain works better with OBJECT_MODE set (default 32).
13426     if test 64 = "${OBJECT_MODE-32}"; then
13427       shared_archive_member_spec=shr_64
13428     else
13429       shared_archive_member_spec=shr
13430     fi
13431   fi
13432   ;;
13433 *)
13434   with_aix_soname=aix
13435   ;;
13436 esac
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447 # This can be used to rebuild libtool when needed
13448 LIBTOOL_DEPS=$ltmain
13449
13450 # Always use our own libtool.
13451 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
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
13479
13480
13481
13482 test -z "$LN_S" && LN_S="ln -s"
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497 if test -n "${ZSH_VERSION+set}"; then
13498    setopt NO_GLOB_SUBST
13499 fi
13500
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13502 $as_echo_n "checking for objdir... " >&6; }
13503 if ${lt_cv_objdir+:} false; then :
13504   $as_echo_n "(cached) " >&6
13505 else
13506   rm -f .libs 2>/dev/null
13507 mkdir .libs 2>/dev/null
13508 if test -d .libs; then
13509   lt_cv_objdir=.libs
13510 else
13511   # MS-DOS does not allow filenames that begin with a dot.
13512   lt_cv_objdir=_libs
13513 fi
13514 rmdir .libs 2>/dev/null
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13517 $as_echo "$lt_cv_objdir" >&6; }
13518 objdir=$lt_cv_objdir
13519
13520
13521
13522
13523
13524 cat >>confdefs.h <<_ACEOF
13525 #define LT_OBJDIR "$lt_cv_objdir/"
13526 _ACEOF
13527
13528
13529
13530
13531 case $host_os in
13532 aix3*)
13533   # AIX sometimes has problems with the GCC collect2 program.  For some
13534   # reason, if we set the COLLECT_NAMES environment variable, the problems
13535   # vanish in a puff of smoke.
13536   if test set != "${COLLECT_NAMES+set}"; then
13537     COLLECT_NAMES=
13538     export COLLECT_NAMES
13539   fi
13540   ;;
13541 esac
13542
13543 # Global variables:
13544 ofile=libtool
13545 can_build_shared=yes
13546
13547 # All known linkers require a '.a' archive for static linking (except MSVC,
13548 # which needs '.lib').
13549 libext=a
13550
13551 with_gnu_ld=$lt_cv_prog_gnu_ld
13552
13553 old_CC=$CC
13554 old_CFLAGS=$CFLAGS
13555
13556 # Set sane defaults for various variables
13557 test -z "$CC" && CC=cc
13558 test -z "$LTCC" && LTCC=$CC
13559 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13560 test -z "$LD" && LD=ld
13561 test -z "$ac_objext" && ac_objext=o
13562
13563 func_cc_basename $compiler
13564 cc_basename=$func_cc_basename_result
13565
13566
13567 # Only perform the check for file, if the check method requires it
13568 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13569 case $deplibs_check_method in
13570 file_magic*)
13571   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13573 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13574 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13575   $as_echo_n "(cached) " >&6
13576 else
13577   case $MAGIC_CMD in
13578 [\\/*] |  ?:[\\/]*)
13579   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13580   ;;
13581 *)
13582   lt_save_MAGIC_CMD=$MAGIC_CMD
13583   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13584   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13585   for ac_dir in $ac_dummy; do
13586     IFS=$lt_save_ifs
13587     test -z "$ac_dir" && ac_dir=.
13588     if test -f "$ac_dir/${ac_tool_prefix}file"; then
13589       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13590       if test -n "$file_magic_test_file"; then
13591         case $deplibs_check_method in
13592         "file_magic "*)
13593           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13594           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13595           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13596             $EGREP "$file_magic_regex" > /dev/null; then
13597             :
13598           else
13599             cat <<_LT_EOF 1>&2
13600
13601 *** Warning: the command libtool uses to detect shared libraries,
13602 *** $file_magic_cmd, produces output that libtool cannot recognize.
13603 *** The result is that libtool may fail to recognize shared libraries
13604 *** as such.  This will affect the creation of libtool libraries that
13605 *** depend on shared libraries, but programs linked with such libtool
13606 *** libraries will work regardless of this problem.  Nevertheless, you
13607 *** may want to report the problem to your system manager and/or to
13608 *** bug-libtool@gnu.org
13609
13610 _LT_EOF
13611           fi ;;
13612         esac
13613       fi
13614       break
13615     fi
13616   done
13617   IFS=$lt_save_ifs
13618   MAGIC_CMD=$lt_save_MAGIC_CMD
13619   ;;
13620 esac
13621 fi
13622
13623 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13624 if test -n "$MAGIC_CMD"; then
13625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13626 $as_echo "$MAGIC_CMD" >&6; }
13627 else
13628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13630 fi
13631
13632
13633
13634
13635
13636 if test -z "$lt_cv_path_MAGIC_CMD"; then
13637   if test -n "$ac_tool_prefix"; then
13638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13639 $as_echo_n "checking for file... " >&6; }
13640 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13641   $as_echo_n "(cached) " >&6
13642 else
13643   case $MAGIC_CMD in
13644 [\\/*] |  ?:[\\/]*)
13645   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13646   ;;
13647 *)
13648   lt_save_MAGIC_CMD=$MAGIC_CMD
13649   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13650   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13651   for ac_dir in $ac_dummy; do
13652     IFS=$lt_save_ifs
13653     test -z "$ac_dir" && ac_dir=.
13654     if test -f "$ac_dir/file"; then
13655       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13656       if test -n "$file_magic_test_file"; then
13657         case $deplibs_check_method in
13658         "file_magic "*)
13659           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13660           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13661           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13662             $EGREP "$file_magic_regex" > /dev/null; then
13663             :
13664           else
13665             cat <<_LT_EOF 1>&2
13666
13667 *** Warning: the command libtool uses to detect shared libraries,
13668 *** $file_magic_cmd, produces output that libtool cannot recognize.
13669 *** The result is that libtool may fail to recognize shared libraries
13670 *** as such.  This will affect the creation of libtool libraries that
13671 *** depend on shared libraries, but programs linked with such libtool
13672 *** libraries will work regardless of this problem.  Nevertheless, you
13673 *** may want to report the problem to your system manager and/or to
13674 *** bug-libtool@gnu.org
13675
13676 _LT_EOF
13677           fi ;;
13678         esac
13679       fi
13680       break
13681     fi
13682   done
13683   IFS=$lt_save_ifs
13684   MAGIC_CMD=$lt_save_MAGIC_CMD
13685   ;;
13686 esac
13687 fi
13688
13689 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13690 if test -n "$MAGIC_CMD"; then
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13692 $as_echo "$MAGIC_CMD" >&6; }
13693 else
13694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13696 fi
13697
13698
13699   else
13700     MAGIC_CMD=:
13701   fi
13702 fi
13703
13704   fi
13705   ;;
13706 esac
13707
13708 # Use C for the default configuration in the libtool script
13709
13710 lt_save_CC=$CC
13711 ac_ext=c
13712 ac_cpp='$CPP $CPPFLAGS'
13713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13716
13717
13718 # Source file extension for C test sources.
13719 ac_ext=c
13720
13721 # Object file extension for compiled C test sources.
13722 objext=o
13723 objext=$objext
13724
13725 # Code to be used in simple compile tests
13726 lt_simple_compile_test_code="int some_variable = 0;"
13727
13728 # Code to be used in simple link tests
13729 lt_simple_link_test_code='int main(){return(0);}'
13730
13731
13732
13733
13734
13735
13736
13737 # If no C compiler was specified, use CC.
13738 LTCC=${LTCC-"$CC"}
13739
13740 # If no C compiler flags were specified, use CFLAGS.
13741 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13742
13743 # Allow CC to be a program name with arguments.
13744 compiler=$CC
13745
13746 # Save the default compiler, since it gets overwritten when the other
13747 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13748 compiler_DEFAULT=$CC
13749
13750 # save warnings/boilerplate of simple test code
13751 ac_outfile=conftest.$ac_objext
13752 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13753 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13754 _lt_compiler_boilerplate=`cat conftest.err`
13755 $RM conftest*
13756
13757 ac_outfile=conftest.$ac_objext
13758 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13759 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13760 _lt_linker_boilerplate=`cat conftest.err`
13761 $RM -r conftest*
13762
13763
13764 ## CAVEAT EMPTOR:
13765 ## There is no encapsulation within the following macros, do not change
13766 ## the running order or otherwise move them around unless you know exactly
13767 ## what you are doing...
13768 if test -n "$compiler"; then
13769
13770 lt_prog_compiler_no_builtin_flag=
13771
13772 if test yes = "$GCC"; then
13773   case $cc_basename in
13774   nvcc*)
13775     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13776   *)
13777     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13778   esac
13779
13780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13781 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13782 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13783   $as_echo_n "(cached) " >&6
13784 else
13785   lt_cv_prog_compiler_rtti_exceptions=no
13786    ac_outfile=conftest.$ac_objext
13787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13788    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
13789    # Insert the option either (1) after the last *FLAGS variable, or
13790    # (2) before a word containing "conftest.", or (3) at the end.
13791    # Note that $ac_compile itself does not contain backslashes and begins
13792    # with a dollar sign (not a hyphen), so the echo should work correctly.
13793    # The option is referenced via a variable to avoid confusing sed.
13794    lt_compile=`echo "$ac_compile" | $SED \
13795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13797    -e 's:$: $lt_compiler_flag:'`
13798    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13799    (eval "$lt_compile" 2>conftest.err)
13800    ac_status=$?
13801    cat conftest.err >&5
13802    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803    if (exit $ac_status) && test -s "$ac_outfile"; then
13804      # The compiler can only warn and ignore the option if not recognized
13805      # So say no if there are warnings other than the usual output.
13806      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13807      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13808      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13809        lt_cv_prog_compiler_rtti_exceptions=yes
13810      fi
13811    fi
13812    $RM conftest*
13813
13814 fi
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13816 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13817
13818 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13819     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13820 else
13821     :
13822 fi
13823
13824 fi
13825
13826
13827
13828
13829
13830
13831   lt_prog_compiler_wl=
13832 lt_prog_compiler_pic=
13833 lt_prog_compiler_static=
13834
13835
13836   if test yes = "$GCC"; then
13837     lt_prog_compiler_wl='-Wl,'
13838     lt_prog_compiler_static='-static'
13839
13840     case $host_os in
13841       aix*)
13842       # All AIX code is PIC.
13843       if test ia64 = "$host_cpu"; then
13844         # AIX 5 now supports IA64 processor
13845         lt_prog_compiler_static='-Bstatic'
13846       fi
13847       lt_prog_compiler_pic='-fPIC'
13848       ;;
13849
13850     amigaos*)
13851       case $host_cpu in
13852       powerpc)
13853             # see comment about AmigaOS4 .so support
13854             lt_prog_compiler_pic='-fPIC'
13855         ;;
13856       m68k)
13857             # FIXME: we need at least 68020 code to build shared libraries, but
13858             # adding the '-m68020' flag to GCC prevents building anything better,
13859             # like '-m68040'.
13860             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13861         ;;
13862       esac
13863       ;;
13864
13865     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13866       # PIC is the default for these OSes.
13867       ;;
13868
13869     mingw* | cygwin* | pw32* | os2* | cegcc*)
13870       # This hack is so that the source file can tell whether it is being
13871       # built for inclusion in a dll (and should export symbols for example).
13872       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13873       # (--disable-auto-import) libraries
13874       lt_prog_compiler_pic='-DDLL_EXPORT'
13875       case $host_os in
13876       os2*)
13877         lt_prog_compiler_static='$wl-static'
13878         ;;
13879       esac
13880       ;;
13881
13882     darwin* | rhapsody*)
13883       # PIC is the default on this platform
13884       # Common symbols not allowed in MH_DYLIB files
13885       lt_prog_compiler_pic='-fno-common'
13886       ;;
13887
13888     haiku*)
13889       # PIC is the default for Haiku.
13890       # The "-static" flag exists, but is broken.
13891       lt_prog_compiler_static=
13892       ;;
13893
13894     hpux*)
13895       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13896       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13897       # sets the default TLS model and affects inlining.
13898       case $host_cpu in
13899       hppa*64*)
13900         # +Z the default
13901         ;;
13902       *)
13903         lt_prog_compiler_pic='-fPIC'
13904         ;;
13905       esac
13906       ;;
13907
13908     interix[3-9]*)
13909       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13910       # Instead, we relocate shared libraries at runtime.
13911       ;;
13912
13913     msdosdjgpp*)
13914       # Just because we use GCC doesn't mean we suddenly get shared libraries
13915       # on systems that don't support them.
13916       lt_prog_compiler_can_build_shared=no
13917       enable_shared=no
13918       ;;
13919
13920     *nto* | *qnx*)
13921       # QNX uses GNU C++, but need to define -shared option too, otherwise
13922       # it will coredump.
13923       lt_prog_compiler_pic='-fPIC -shared'
13924       ;;
13925
13926     sysv4*MP*)
13927       if test -d /usr/nec; then
13928         lt_prog_compiler_pic=-Kconform_pic
13929       fi
13930       ;;
13931
13932     *)
13933       lt_prog_compiler_pic='-fPIC'
13934       ;;
13935     esac
13936
13937     case $cc_basename in
13938     nvcc*) # Cuda Compiler Driver 2.2
13939       lt_prog_compiler_wl='-Xlinker '
13940       if test -n "$lt_prog_compiler_pic"; then
13941         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13942       fi
13943       ;;
13944     esac
13945   else
13946     # PORTME Check for flag to pass linker flags through the system compiler.
13947     case $host_os in
13948     aix*)
13949       lt_prog_compiler_wl='-Wl,'
13950       if test ia64 = "$host_cpu"; then
13951         # AIX 5 now supports IA64 processor
13952         lt_prog_compiler_static='-Bstatic'
13953       else
13954         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13955       fi
13956       ;;
13957
13958     darwin* | rhapsody*)
13959       # PIC is the default on this platform
13960       # Common symbols not allowed in MH_DYLIB files
13961       lt_prog_compiler_pic='-fno-common'
13962       case $cc_basename in
13963       nagfor*)
13964         # NAG Fortran compiler
13965         lt_prog_compiler_wl='-Wl,-Wl,,'
13966         lt_prog_compiler_pic='-PIC'
13967         lt_prog_compiler_static='-Bstatic'
13968         ;;
13969       esac
13970       ;;
13971
13972     mingw* | cygwin* | pw32* | os2* | cegcc*)
13973       # This hack is so that the source file can tell whether it is being
13974       # built for inclusion in a dll (and should export symbols for example).
13975       lt_prog_compiler_pic='-DDLL_EXPORT'
13976       case $host_os in
13977       os2*)
13978         lt_prog_compiler_static='$wl-static'
13979         ;;
13980       esac
13981       ;;
13982
13983     hpux9* | hpux10* | hpux11*)
13984       lt_prog_compiler_wl='-Wl,'
13985       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13986       # not for PA HP-UX.
13987       case $host_cpu in
13988       hppa*64*|ia64*)
13989         # +Z the default
13990         ;;
13991       *)
13992         lt_prog_compiler_pic='+Z'
13993         ;;
13994       esac
13995       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13996       lt_prog_compiler_static='$wl-a ${wl}archive'
13997       ;;
13998
13999     irix5* | irix6* | nonstopux*)
14000       lt_prog_compiler_wl='-Wl,'
14001       # PIC (with -KPIC) is the default.
14002       lt_prog_compiler_static='-non_shared'
14003       ;;
14004
14005     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14006       case $cc_basename in
14007       # old Intel for x86_64, which still supported -KPIC.
14008       ecc*)
14009         lt_prog_compiler_wl='-Wl,'
14010         lt_prog_compiler_pic='-KPIC'
14011         lt_prog_compiler_static='-static'
14012         ;;
14013       # icc used to be incompatible with GCC.
14014       # ICC 10 doesn't accept -KPIC any more.
14015       icc* | ifort*)
14016         lt_prog_compiler_wl='-Wl,'
14017         lt_prog_compiler_pic='-fPIC'
14018         lt_prog_compiler_static='-static'
14019         ;;
14020       # Lahey Fortran 8.1.
14021       lf95*)
14022         lt_prog_compiler_wl='-Wl,'
14023         lt_prog_compiler_pic='--shared'
14024         lt_prog_compiler_static='--static'
14025         ;;
14026       nagfor*)
14027         # NAG Fortran compiler
14028         lt_prog_compiler_wl='-Wl,-Wl,,'
14029         lt_prog_compiler_pic='-PIC'
14030         lt_prog_compiler_static='-Bstatic'
14031         ;;
14032       tcc*)
14033         # Fabrice Bellard et al's Tiny C Compiler
14034         lt_prog_compiler_wl='-Wl,'
14035         lt_prog_compiler_pic='-fPIC'
14036         lt_prog_compiler_static='-static'
14037         ;;
14038       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14039         # Portland Group compilers (*not* the Pentium gcc compiler,
14040         # which looks to be a dead project)
14041         lt_prog_compiler_wl='-Wl,'
14042         lt_prog_compiler_pic='-fpic'
14043         lt_prog_compiler_static='-Bstatic'
14044         ;;
14045       ccc*)
14046         lt_prog_compiler_wl='-Wl,'
14047         # All Alpha code is PIC.
14048         lt_prog_compiler_static='-non_shared'
14049         ;;
14050       xl* | bgxl* | bgf* | mpixl*)
14051         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14052         lt_prog_compiler_wl='-Wl,'
14053         lt_prog_compiler_pic='-qpic'
14054         lt_prog_compiler_static='-qstaticlink'
14055         ;;
14056       *)
14057         case `$CC -V 2>&1 | sed 5q` in
14058         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14059           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14060           lt_prog_compiler_pic='-KPIC'
14061           lt_prog_compiler_static='-Bstatic'
14062           lt_prog_compiler_wl=''
14063           ;;
14064         *Sun\ F* | *Sun*Fortran*)
14065           lt_prog_compiler_pic='-KPIC'
14066           lt_prog_compiler_static='-Bstatic'
14067           lt_prog_compiler_wl='-Qoption ld '
14068           ;;
14069         *Sun\ C*)
14070           # Sun C 5.9
14071           lt_prog_compiler_pic='-KPIC'
14072           lt_prog_compiler_static='-Bstatic'
14073           lt_prog_compiler_wl='-Wl,'
14074           ;;
14075         *Intel*\ [CF]*Compiler*)
14076           lt_prog_compiler_wl='-Wl,'
14077           lt_prog_compiler_pic='-fPIC'
14078           lt_prog_compiler_static='-static'
14079           ;;
14080         *Portland\ Group*)
14081           lt_prog_compiler_wl='-Wl,'
14082           lt_prog_compiler_pic='-fpic'
14083           lt_prog_compiler_static='-Bstatic'
14084           ;;
14085         esac
14086         ;;
14087       esac
14088       ;;
14089
14090     newsos6)
14091       lt_prog_compiler_pic='-KPIC'
14092       lt_prog_compiler_static='-Bstatic'
14093       ;;
14094
14095     *nto* | *qnx*)
14096       # QNX uses GNU C++, but need to define -shared option too, otherwise
14097       # it will coredump.
14098       lt_prog_compiler_pic='-fPIC -shared'
14099       ;;
14100
14101     osf3* | osf4* | osf5*)
14102       lt_prog_compiler_wl='-Wl,'
14103       # All OSF/1 code is PIC.
14104       lt_prog_compiler_static='-non_shared'
14105       ;;
14106
14107     rdos*)
14108       lt_prog_compiler_static='-non_shared'
14109       ;;
14110
14111     solaris*)
14112       lt_prog_compiler_pic='-KPIC'
14113       lt_prog_compiler_static='-Bstatic'
14114       case $cc_basename in
14115       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14116         lt_prog_compiler_wl='-Qoption ld ';;
14117       *)
14118         lt_prog_compiler_wl='-Wl,';;
14119       esac
14120       ;;
14121
14122     sunos4*)
14123       lt_prog_compiler_wl='-Qoption ld '
14124       lt_prog_compiler_pic='-PIC'
14125       lt_prog_compiler_static='-Bstatic'
14126       ;;
14127
14128     sysv4 | sysv4.2uw2* | sysv4.3*)
14129       lt_prog_compiler_wl='-Wl,'
14130       lt_prog_compiler_pic='-KPIC'
14131       lt_prog_compiler_static='-Bstatic'
14132       ;;
14133
14134     sysv4*MP*)
14135       if test -d /usr/nec; then
14136         lt_prog_compiler_pic='-Kconform_pic'
14137         lt_prog_compiler_static='-Bstatic'
14138       fi
14139       ;;
14140
14141     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14142       lt_prog_compiler_wl='-Wl,'
14143       lt_prog_compiler_pic='-KPIC'
14144       lt_prog_compiler_static='-Bstatic'
14145       ;;
14146
14147     unicos*)
14148       lt_prog_compiler_wl='-Wl,'
14149       lt_prog_compiler_can_build_shared=no
14150       ;;
14151
14152     uts4*)
14153       lt_prog_compiler_pic='-pic'
14154       lt_prog_compiler_static='-Bstatic'
14155       ;;
14156
14157     *)
14158       lt_prog_compiler_can_build_shared=no
14159       ;;
14160     esac
14161   fi
14162
14163 case $host_os in
14164   # For platforms that do not support PIC, -DPIC is meaningless:
14165   *djgpp*)
14166     lt_prog_compiler_pic=
14167     ;;
14168   *)
14169     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14170     ;;
14171 esac
14172
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14174 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14175 if ${lt_cv_prog_compiler_pic+:} false; then :
14176   $as_echo_n "(cached) " >&6
14177 else
14178   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14181 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14182 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14183
14184 #
14185 # Check to make sure the PIC flag actually works.
14186 #
14187 if test -n "$lt_prog_compiler_pic"; then
14188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14189 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14190 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14191   $as_echo_n "(cached) " >&6
14192 else
14193   lt_cv_prog_compiler_pic_works=no
14194    ac_outfile=conftest.$ac_objext
14195    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14196    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14197    # Insert the option either (1) after the last *FLAGS variable, or
14198    # (2) before a word containing "conftest.", or (3) at the end.
14199    # Note that $ac_compile itself does not contain backslashes and begins
14200    # with a dollar sign (not a hyphen), so the echo should work correctly.
14201    # The option is referenced via a variable to avoid confusing sed.
14202    lt_compile=`echo "$ac_compile" | $SED \
14203    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14204    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14205    -e 's:$: $lt_compiler_flag:'`
14206    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14207    (eval "$lt_compile" 2>conftest.err)
14208    ac_status=$?
14209    cat conftest.err >&5
14210    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211    if (exit $ac_status) && test -s "$ac_outfile"; then
14212      # The compiler can only warn and ignore the option if not recognized
14213      # So say no if there are warnings other than the usual output.
14214      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14215      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14216      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14217        lt_cv_prog_compiler_pic_works=yes
14218      fi
14219    fi
14220    $RM conftest*
14221
14222 fi
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14224 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14225
14226 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14227     case $lt_prog_compiler_pic in
14228      "" | " "*) ;;
14229      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14230      esac
14231 else
14232     lt_prog_compiler_pic=
14233      lt_prog_compiler_can_build_shared=no
14234 fi
14235
14236 fi
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248 #
14249 # Check to make sure the static flag actually works.
14250 #
14251 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14253 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14254 if ${lt_cv_prog_compiler_static_works+:} false; then :
14255   $as_echo_n "(cached) " >&6
14256 else
14257   lt_cv_prog_compiler_static_works=no
14258    save_LDFLAGS=$LDFLAGS
14259    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14260    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14261    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14262      # The linker can only warn and ignore the option if not recognized
14263      # So say no if there are warnings
14264      if test -s conftest.err; then
14265        # Append any errors to the config.log.
14266        cat conftest.err 1>&5
14267        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14268        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14269        if diff conftest.exp conftest.er2 >/dev/null; then
14270          lt_cv_prog_compiler_static_works=yes
14271        fi
14272      else
14273        lt_cv_prog_compiler_static_works=yes
14274      fi
14275    fi
14276    $RM -r conftest*
14277    LDFLAGS=$save_LDFLAGS
14278
14279 fi
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14281 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14282
14283 if test yes = "$lt_cv_prog_compiler_static_works"; then
14284     :
14285 else
14286     lt_prog_compiler_static=
14287 fi
14288
14289
14290
14291
14292
14293
14294
14295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14296 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14297 if ${lt_cv_prog_compiler_c_o+:} false; then :
14298   $as_echo_n "(cached) " >&6
14299 else
14300   lt_cv_prog_compiler_c_o=no
14301    $RM -r conftest 2>/dev/null
14302    mkdir conftest
14303    cd conftest
14304    mkdir out
14305    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14306
14307    lt_compiler_flag="-o out/conftest2.$ac_objext"
14308    # Insert the option either (1) after the last *FLAGS variable, or
14309    # (2) before a word containing "conftest.", or (3) at the end.
14310    # Note that $ac_compile itself does not contain backslashes and begins
14311    # with a dollar sign (not a hyphen), so the echo should work correctly.
14312    lt_compile=`echo "$ac_compile" | $SED \
14313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315    -e 's:$: $lt_compiler_flag:'`
14316    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14317    (eval "$lt_compile" 2>out/conftest.err)
14318    ac_status=$?
14319    cat out/conftest.err >&5
14320    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14322    then
14323      # The compiler can only warn and ignore the option if not recognized
14324      # So say no if there are warnings
14325      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14326      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14327      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14328        lt_cv_prog_compiler_c_o=yes
14329      fi
14330    fi
14331    chmod u+w . 2>&5
14332    $RM conftest*
14333    # SGI C++ compiler will create directory out/ii_files/ for
14334    # template instantiation
14335    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14336    $RM out/* && rmdir out
14337    cd ..
14338    $RM -r conftest
14339    $RM conftest*
14340
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14343 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14344
14345
14346
14347
14348
14349
14350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14351 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14352 if ${lt_cv_prog_compiler_c_o+:} false; then :
14353   $as_echo_n "(cached) " >&6
14354 else
14355   lt_cv_prog_compiler_c_o=no
14356    $RM -r conftest 2>/dev/null
14357    mkdir conftest
14358    cd conftest
14359    mkdir out
14360    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14361
14362    lt_compiler_flag="-o out/conftest2.$ac_objext"
14363    # Insert the option either (1) after the last *FLAGS variable, or
14364    # (2) before a word containing "conftest.", or (3) at the end.
14365    # Note that $ac_compile itself does not contain backslashes and begins
14366    # with a dollar sign (not a hyphen), so the echo should work correctly.
14367    lt_compile=`echo "$ac_compile" | $SED \
14368    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14369    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14370    -e 's:$: $lt_compiler_flag:'`
14371    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14372    (eval "$lt_compile" 2>out/conftest.err)
14373    ac_status=$?
14374    cat out/conftest.err >&5
14375    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14377    then
14378      # The compiler can only warn and ignore the option if not recognized
14379      # So say no if there are warnings
14380      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14381      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14382      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14383        lt_cv_prog_compiler_c_o=yes
14384      fi
14385    fi
14386    chmod u+w . 2>&5
14387    $RM conftest*
14388    # SGI C++ compiler will create directory out/ii_files/ for
14389    # template instantiation
14390    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14391    $RM out/* && rmdir out
14392    cd ..
14393    $RM -r conftest
14394    $RM conftest*
14395
14396 fi
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14398 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14399
14400
14401
14402
14403 hard_links=nottested
14404 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
14405   # do not overwrite the value of need_locks provided by the user
14406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14407 $as_echo_n "checking if we can lock with hard links... " >&6; }
14408   hard_links=yes
14409   $RM conftest*
14410   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14411   touch conftest.a
14412   ln conftest.a conftest.b 2>&5 || hard_links=no
14413   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14415 $as_echo "$hard_links" >&6; }
14416   if test no = "$hard_links"; then
14417     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14418 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14419     need_locks=warn
14420   fi
14421 else
14422   need_locks=no
14423 fi
14424
14425
14426
14427
14428
14429
14430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14431 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14432
14433   runpath_var=
14434   allow_undefined_flag=
14435   always_export_symbols=no
14436   archive_cmds=
14437   archive_expsym_cmds=
14438   compiler_needs_object=no
14439   enable_shared_with_static_runtimes=no
14440   export_dynamic_flag_spec=
14441   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14442   hardcode_automatic=no
14443   hardcode_direct=no
14444   hardcode_direct_absolute=no
14445   hardcode_libdir_flag_spec=
14446   hardcode_libdir_separator=
14447   hardcode_minus_L=no
14448   hardcode_shlibpath_var=unsupported
14449   inherit_rpath=no
14450   link_all_deplibs=unknown
14451   module_cmds=
14452   module_expsym_cmds=
14453   old_archive_from_new_cmds=
14454   old_archive_from_expsyms_cmds=
14455   thread_safe_flag_spec=
14456   whole_archive_flag_spec=
14457   # include_expsyms should be a list of space-separated symbols to be *always*
14458   # included in the symbol list
14459   include_expsyms=
14460   # exclude_expsyms can be an extended regexp of symbols to exclude
14461   # it will be wrapped by ' (' and ')$', so one must not match beginning or
14462   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14463   # as well as any symbol that contains 'd'.
14464   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14465   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14466   # platforms (ab)use it in PIC code, but their linkers get confused if
14467   # the symbol is explicitly referenced.  Since portable code cannot
14468   # rely on this symbol name, it's probably fine to never include it in
14469   # preloaded symbol tables.
14470   # Exclude shared library initialization/finalization symbols.
14471   extract_expsyms_cmds=
14472
14473   case $host_os in
14474   cygwin* | mingw* | pw32* | cegcc*)
14475     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14476     # When not using gcc, we currently assume that we are using
14477     # Microsoft Visual C++.
14478     if test yes != "$GCC"; then
14479       with_gnu_ld=no
14480     fi
14481     ;;
14482   interix*)
14483     # we just hope/assume this is gcc and not c89 (= MSVC++)
14484     with_gnu_ld=yes
14485     ;;
14486   openbsd* | bitrig*)
14487     with_gnu_ld=no
14488     ;;
14489   esac
14490
14491   ld_shlibs=yes
14492
14493   # On some targets, GNU ld is compatible enough with the native linker
14494   # that we're better off using the native interface for both.
14495   lt_use_gnu_ld_interface=no
14496   if test yes = "$with_gnu_ld"; then
14497     case $host_os in
14498       aix*)
14499         # The AIX port of GNU ld has always aspired to compatibility
14500         # with the native linker.  However, as the warning in the GNU ld
14501         # block says, versions before 2.19.5* couldn't really create working
14502         # shared libraries, regardless of the interface used.
14503         case `$LD -v 2>&1` in
14504           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14505           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14506           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14507           *)
14508             lt_use_gnu_ld_interface=yes
14509             ;;
14510         esac
14511         ;;
14512       *)
14513         lt_use_gnu_ld_interface=yes
14514         ;;
14515     esac
14516   fi
14517
14518   if test yes = "$lt_use_gnu_ld_interface"; then
14519     # If archive_cmds runs LD, not CC, wlarc should be empty
14520     wlarc='$wl'
14521
14522     # Set some defaults for GNU ld with shared library support. These
14523     # are reset later if shared libraries are not supported. Putting them
14524     # here allows them to be overridden if necessary.
14525     runpath_var=LD_RUN_PATH
14526     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14527     export_dynamic_flag_spec='$wl--export-dynamic'
14528     # ancient GNU ld didn't support --whole-archive et. al.
14529     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14530       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14531     else
14532       whole_archive_flag_spec=
14533     fi
14534     supports_anon_versioning=no
14535     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
14536       *GNU\ gold*) supports_anon_versioning=yes ;;
14537       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14538       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14539       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14540       *\ 2.11.*) ;; # other 2.11 versions
14541       *) supports_anon_versioning=yes ;;
14542     esac
14543
14544     # See if GNU ld supports shared libraries.
14545     case $host_os in
14546     aix[3-9]*)
14547       # On AIX/PPC, the GNU linker is very broken
14548       if test ia64 != "$host_cpu"; then
14549         ld_shlibs=no
14550         cat <<_LT_EOF 1>&2
14551
14552 *** Warning: the GNU linker, at least up to release 2.19, is reported
14553 *** to be unable to reliably create shared libraries on AIX.
14554 *** Therefore, libtool is disabling shared libraries support.  If you
14555 *** really care for shared libraries, you may want to install binutils
14556 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14557 *** You will then need to restart the configuration process.
14558
14559 _LT_EOF
14560       fi
14561       ;;
14562
14563     amigaos*)
14564       case $host_cpu in
14565       powerpc)
14566             # see comment about AmigaOS4 .so support
14567             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14568             archive_expsym_cmds=''
14569         ;;
14570       m68k)
14571             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)'
14572             hardcode_libdir_flag_spec='-L$libdir'
14573             hardcode_minus_L=yes
14574         ;;
14575       esac
14576       ;;
14577
14578     beos*)
14579       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14580         allow_undefined_flag=unsupported
14581         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14582         # support --undefined.  This deserves some investigation.  FIXME
14583         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14584       else
14585         ld_shlibs=no
14586       fi
14587       ;;
14588
14589     cygwin* | mingw* | pw32* | cegcc*)
14590       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14591       # as there is no search path for DLLs.
14592       hardcode_libdir_flag_spec='-L$libdir'
14593       export_dynamic_flag_spec='$wl--export-all-symbols'
14594       allow_undefined_flag=unsupported
14595       always_export_symbols=no
14596       enable_shared_with_static_runtimes=yes
14597       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'
14598       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14599
14600       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14601         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14602         # If the export-symbols file already is a .def file, use it as
14603         # is; otherwise, prepend EXPORTS...
14604         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14605           cp $export_symbols $output_objdir/$soname.def;
14606         else
14607           echo EXPORTS > $output_objdir/$soname.def;
14608           cat $export_symbols >> $output_objdir/$soname.def;
14609         fi~
14610         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14611       else
14612         ld_shlibs=no
14613       fi
14614       ;;
14615
14616     haiku*)
14617       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14618       link_all_deplibs=yes
14619       ;;
14620
14621     os2*)
14622       hardcode_libdir_flag_spec='-L$libdir'
14623       hardcode_minus_L=yes
14624       allow_undefined_flag=unsupported
14625       shrext_cmds=.dll
14626       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14627         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14628         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14629         $ECHO EXPORTS >> $output_objdir/$libname.def~
14630         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14631         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14632         emximp -o $lib $output_objdir/$libname.def'
14633       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14634         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14635         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14636         $ECHO EXPORTS >> $output_objdir/$libname.def~
14637         prefix_cmds="$SED"~
14638         if test EXPORTS = "`$SED 1q $export_symbols`"; then
14639           prefix_cmds="$prefix_cmds -e 1d";
14640         fi~
14641         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14642         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14643         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14644         emximp -o $lib $output_objdir/$libname.def'
14645       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14646       enable_shared_with_static_runtimes=yes
14647       ;;
14648
14649     interix[3-9]*)
14650       hardcode_direct=no
14651       hardcode_shlibpath_var=no
14652       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14653       export_dynamic_flag_spec='$wl-E'
14654       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14655       # Instead, shared libraries are loaded at an image base (0x10000000 by
14656       # default) and relocated if they conflict, which is a slow very memory
14657       # consuming and fragmenting process.  To avoid this, we pick a random,
14658       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14659       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14660       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14661       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'
14662       ;;
14663
14664     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14665       tmp_diet=no
14666       if test linux-dietlibc = "$host_os"; then
14667         case $cc_basename in
14668           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14669         esac
14670       fi
14671       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14672          && test no = "$tmp_diet"
14673       then
14674         tmp_addflag=' $pic_flag'
14675         tmp_sharedflag='-shared'
14676         case $cc_basename,$host_cpu in
14677         pgcc*)                          # Portland Group C compiler
14678           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'
14679           tmp_addflag=' $pic_flag'
14680           ;;
14681         pgf77* | pgf90* | pgf95* | pgfortran*)
14682                                         # Portland Group f77 and f90 compilers
14683           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'
14684           tmp_addflag=' $pic_flag -Mnomain' ;;
14685         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14686           tmp_addflag=' -i_dynamic' ;;
14687         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14688           tmp_addflag=' -i_dynamic -nofor_main' ;;
14689         ifc* | ifort*)                  # Intel Fortran compiler
14690           tmp_addflag=' -nofor_main' ;;
14691         lf95*)                          # Lahey Fortran 8.1
14692           whole_archive_flag_spec=
14693           tmp_sharedflag='--shared' ;;
14694         nagfor*)                        # NAGFOR 5.3
14695           tmp_sharedflag='-Wl,-shared' ;;
14696         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14697           tmp_sharedflag='-qmkshrobj'
14698           tmp_addflag= ;;
14699         nvcc*)  # Cuda Compiler Driver 2.2
14700           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'
14701           compiler_needs_object=yes
14702           ;;
14703         esac
14704         case `$CC -V 2>&1 | sed 5q` in
14705         *Sun\ C*)                       # Sun C 5.9
14706           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'
14707           compiler_needs_object=yes
14708           tmp_sharedflag='-G' ;;
14709         *Sun\ F*)                       # Sun Fortran 8.3
14710           tmp_sharedflag='-G' ;;
14711         esac
14712         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14713
14714         if test yes = "$supports_anon_versioning"; then
14715           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14716             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14717             echo "local: *; };" >> $output_objdir/$libname.ver~
14718             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14719         fi
14720
14721         case $cc_basename in
14722         tcc*)
14723           export_dynamic_flag_spec='-rdynamic'
14724           ;;
14725         xlf* | bgf* | bgxlf* | mpixlf*)
14726           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14727           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14728           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14729           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14730           if test yes = "$supports_anon_versioning"; then
14731             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14732               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14733               echo "local: *; };" >> $output_objdir/$libname.ver~
14734               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14735           fi
14736           ;;
14737         esac
14738       else
14739         ld_shlibs=no
14740       fi
14741       ;;
14742
14743     netbsd*)
14744       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14745         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14746         wlarc=
14747       else
14748         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14749         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14750       fi
14751       ;;
14752
14753     solaris*)
14754       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14755         ld_shlibs=no
14756         cat <<_LT_EOF 1>&2
14757
14758 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14759 *** create shared libraries on Solaris systems.  Therefore, libtool
14760 *** is disabling shared libraries support.  We urge you to upgrade GNU
14761 *** binutils to release 2.9.1 or newer.  Another option is to modify
14762 *** your PATH or compiler configuration so that the native linker is
14763 *** used, and then restart.
14764
14765 _LT_EOF
14766       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14767         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14768         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14769       else
14770         ld_shlibs=no
14771       fi
14772       ;;
14773
14774     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14775       case `$LD -v 2>&1` in
14776         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14777         ld_shlibs=no
14778         cat <<_LT_EOF 1>&2
14779
14780 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14781 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14782 *** is disabling shared libraries support.  We urge you to upgrade GNU
14783 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14784 *** your PATH or compiler configuration so that the native linker is
14785 *** used, and then restart.
14786
14787 _LT_EOF
14788         ;;
14789         *)
14790           # For security reasons, it is highly recommended that you always
14791           # use absolute paths for naming shared libraries, and exclude the
14792           # DT_RUNPATH tag from executables and libraries.  But doing so
14793           # requires that you compile everything twice, which is a pain.
14794           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14795             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14796             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14797             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14798           else
14799             ld_shlibs=no
14800           fi
14801         ;;
14802       esac
14803       ;;
14804
14805     sunos4*)
14806       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14807       wlarc=
14808       hardcode_direct=yes
14809       hardcode_shlibpath_var=no
14810       ;;
14811
14812     *)
14813       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14814         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14815         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14816       else
14817         ld_shlibs=no
14818       fi
14819       ;;
14820     esac
14821
14822     if test no = "$ld_shlibs"; then
14823       runpath_var=
14824       hardcode_libdir_flag_spec=
14825       export_dynamic_flag_spec=
14826       whole_archive_flag_spec=
14827     fi
14828   else
14829     # PORTME fill in a description of your system's linker (not GNU ld)
14830     case $host_os in
14831     aix3*)
14832       allow_undefined_flag=unsupported
14833       always_export_symbols=yes
14834       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'
14835       # Note: this linker hardcodes the directories in LIBPATH if there
14836       # are no directories specified by -L.
14837       hardcode_minus_L=yes
14838       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14839         # Neither direct hardcoding nor static linking is supported with a
14840         # broken collect2.
14841         hardcode_direct=unsupported
14842       fi
14843       ;;
14844
14845     aix[4-9]*)
14846       if test ia64 = "$host_cpu"; then
14847         # On IA64, the linker does run time linking by default, so we don't
14848         # have to do anything special.
14849         aix_use_runtimelinking=no
14850         exp_sym_flag='-Bexport'
14851         no_entry_flag=
14852       else
14853         # If we're using GNU nm, then we don't want the "-C" option.
14854         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14855         # Without the "-l" option, or with the "-B" option, AIX nm treats
14856         # weak defined symbols like other global defined symbols, whereas
14857         # GNU nm marks them as "W".
14858         # While the 'weak' keyword is ignored in the Export File, we need
14859         # it in the Import File for the 'aix-soname' feature, so we have
14860         # to replace the "-B" option with "-P" for AIX nm.
14861         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14862           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'
14863         else
14864           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'
14865         fi
14866         aix_use_runtimelinking=no
14867
14868         # Test if we are trying to use run time linking or normal
14869         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14870         # have runtime linking enabled, and use it for executables.
14871         # For shared libraries, we enable/disable runtime linking
14872         # depending on the kind of the shared library created -
14873         # when "with_aix_soname,aix_use_runtimelinking" is:
14874         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14875         # "aix,yes"  lib.so          shared, rtl:yes, for executables
14876         #            lib.a           static archive
14877         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14878         #            lib.a(lib.so.V) shared, rtl:no,  for executables
14879         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14880         #            lib.a(lib.so.V) shared, rtl:no
14881         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14882         #            lib.a           static archive
14883         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14884           for ld_flag in $LDFLAGS; do
14885           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14886             aix_use_runtimelinking=yes
14887             break
14888           fi
14889           done
14890           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14891             # With aix-soname=svr4, we create the lib.so.V shared archives only,
14892             # so we don't have lib.a shared libs to link our executables.
14893             # We have to force runtime linking in this case.
14894             aix_use_runtimelinking=yes
14895             LDFLAGS="$LDFLAGS -Wl,-brtl"
14896           fi
14897           ;;
14898         esac
14899
14900         exp_sym_flag='-bexport'
14901         no_entry_flag='-bnoentry'
14902       fi
14903
14904       # When large executables or shared objects are built, AIX ld can
14905       # have problems creating the table of contents.  If linking a library
14906       # or program results in "error TOC overflow" add -mminimal-toc to
14907       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14908       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14909
14910       archive_cmds=''
14911       hardcode_direct=yes
14912       hardcode_direct_absolute=yes
14913       hardcode_libdir_separator=':'
14914       link_all_deplibs=yes
14915       file_list_spec='$wl-f,'
14916       case $with_aix_soname,$aix_use_runtimelinking in
14917       aix,*) ;; # traditional, no import file
14918       svr4,* | *,yes) # use import file
14919         # The Import File defines what to hardcode.
14920         hardcode_direct=no
14921         hardcode_direct_absolute=no
14922         ;;
14923       esac
14924
14925       if test yes = "$GCC"; then
14926         case $host_os in aix4.[012]|aix4.[012].*)
14927         # We only want to do this on AIX 4.2 and lower, the check
14928         # below for broken collect2 doesn't work under 4.3+
14929           collect2name=`$CC -print-prog-name=collect2`
14930           if test -f "$collect2name" &&
14931            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14932           then
14933           # We have reworked collect2
14934           :
14935           else
14936           # We have old collect2
14937           hardcode_direct=unsupported
14938           # It fails to find uninstalled libraries when the uninstalled
14939           # path is not listed in the libpath.  Setting hardcode_minus_L
14940           # to unsupported forces relinking
14941           hardcode_minus_L=yes
14942           hardcode_libdir_flag_spec='-L$libdir'
14943           hardcode_libdir_separator=
14944           fi
14945           ;;
14946         esac
14947         shared_flag='-shared'
14948         if test yes = "$aix_use_runtimelinking"; then
14949           shared_flag="$shared_flag "'$wl-G'
14950         fi
14951         # Need to ensure runtime linking is disabled for the traditional
14952         # shared library, or the linker may eventually find shared libraries
14953         # /with/ Import File - we do not want to mix them.
14954         shared_flag_aix='-shared'
14955         shared_flag_svr4='-shared $wl-G'
14956       else
14957         # not using gcc
14958         if test ia64 = "$host_cpu"; then
14959         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14960         # chokes on -Wl,-G. The following line is correct:
14961           shared_flag='-G'
14962         else
14963           if test yes = "$aix_use_runtimelinking"; then
14964             shared_flag='$wl-G'
14965           else
14966             shared_flag='$wl-bM:SRE'
14967           fi
14968           shared_flag_aix='$wl-bM:SRE'
14969           shared_flag_svr4='$wl-G'
14970         fi
14971       fi
14972
14973       export_dynamic_flag_spec='$wl-bexpall'
14974       # It seems that -bexpall does not export symbols beginning with
14975       # underscore (_), so it is better to generate a list of symbols to export.
14976       always_export_symbols=yes
14977       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14978         # Warning - without using the other runtime loading flags (-brtl),
14979         # -berok will link without error, but may produce a broken library.
14980         allow_undefined_flag='-berok'
14981         # Determine the default libpath from the value encoded in an
14982         # empty executable.
14983         if test set = "${lt_cv_aix_libpath+set}"; then
14984   aix_libpath=$lt_cv_aix_libpath
14985 else
14986   if ${lt_cv_aix_libpath_+:} false; then :
14987   $as_echo_n "(cached) " >&6
14988 else
14989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h.  */
14991
14992 int
14993 main ()
14994 {
14995
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 if ac_fn_c_try_link "$LINENO"; then :
15001
15002   lt_aix_libpath_sed='
15003       /Import File Strings/,/^$/ {
15004           /^0/ {
15005               s/^0  *\([^ ]*\) *$/\1/
15006               p
15007           }
15008       }'
15009   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15010   # Check for a 64-bit object if we didn't find anything.
15011   if test -z "$lt_cv_aix_libpath_"; then
15012     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15013   fi
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext \
15016     conftest$ac_exeext conftest.$ac_ext
15017   if test -z "$lt_cv_aix_libpath_"; then
15018     lt_cv_aix_libpath_=/usr/lib:/lib
15019   fi
15020
15021 fi
15022
15023   aix_libpath=$lt_cv_aix_libpath_
15024 fi
15025
15026         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15027         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
15028       else
15029         if test ia64 = "$host_cpu"; then
15030           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15031           allow_undefined_flag="-z nodefs"
15032           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"
15033         else
15034          # Determine the default libpath from the value encoded in an
15035          # empty executable.
15036          if test set = "${lt_cv_aix_libpath+set}"; then
15037   aix_libpath=$lt_cv_aix_libpath
15038 else
15039   if ${lt_cv_aix_libpath_+:} false; then :
15040   $as_echo_n "(cached) " >&6
15041 else
15042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h.  */
15044
15045 int
15046 main ()
15047 {
15048
15049   ;
15050   return 0;
15051 }
15052 _ACEOF
15053 if ac_fn_c_try_link "$LINENO"; then :
15054
15055   lt_aix_libpath_sed='
15056       /Import File Strings/,/^$/ {
15057           /^0/ {
15058               s/^0  *\([^ ]*\) *$/\1/
15059               p
15060           }
15061       }'
15062   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15063   # Check for a 64-bit object if we didn't find anything.
15064   if test -z "$lt_cv_aix_libpath_"; then
15065     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15066   fi
15067 fi
15068 rm -f core conftest.err conftest.$ac_objext \
15069     conftest$ac_exeext conftest.$ac_ext
15070   if test -z "$lt_cv_aix_libpath_"; then
15071     lt_cv_aix_libpath_=/usr/lib:/lib
15072   fi
15073
15074 fi
15075
15076   aix_libpath=$lt_cv_aix_libpath_
15077 fi
15078
15079          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15080           # Warning - without using the other run time loading flags,
15081           # -berok will link without error, but may produce a broken library.
15082           no_undefined_flag=' $wl-bernotok'
15083           allow_undefined_flag=' $wl-berok'
15084           if test yes = "$with_gnu_ld"; then
15085             # We only use this code for GNU lds that support --whole-archive.
15086             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15087           else
15088             # Exported symbols can be pulled into shared objects from archives
15089             whole_archive_flag_spec='$convenience'
15090           fi
15091           archive_cmds_need_lc=yes
15092           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15093           # -brtl affects multiple linker settings, -berok does not and is overridden later
15094           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15095           if test svr4 != "$with_aix_soname"; then
15096             # This is similar to how AIX traditionally builds its shared libraries.
15097             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'
15098           fi
15099           if test aix != "$with_aix_soname"; then
15100             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'
15101           else
15102             # used by -dlpreopen to get the symbols
15103             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15104           fi
15105           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15106         fi
15107       fi
15108       ;;
15109
15110     amigaos*)
15111       case $host_cpu in
15112       powerpc)
15113             # see comment about AmigaOS4 .so support
15114             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15115             archive_expsym_cmds=''
15116         ;;
15117       m68k)
15118             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)'
15119             hardcode_libdir_flag_spec='-L$libdir'
15120             hardcode_minus_L=yes
15121         ;;
15122       esac
15123       ;;
15124
15125     bsdi[45]*)
15126       export_dynamic_flag_spec=-rdynamic
15127       ;;
15128
15129     cygwin* | mingw* | pw32* | cegcc*)
15130       # When not using gcc, we currently assume that we are using
15131       # Microsoft Visual C++.
15132       # hardcode_libdir_flag_spec is actually meaningless, as there is
15133       # no search path for DLLs.
15134       case $cc_basename in
15135       cl*)
15136         # Native MSVC
15137         hardcode_libdir_flag_spec=' '
15138         allow_undefined_flag=unsupported
15139         always_export_symbols=yes
15140         file_list_spec='@'
15141         # Tell ltmain to make .lib files, not .a files.
15142         libext=lib
15143         # Tell ltmain to make .dll files, not .so files.
15144         shrext_cmds=.dll
15145         # FIXME: Setting linknames here is a bad hack.
15146         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15147         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15148             cp "$export_symbols" "$output_objdir/$soname.def";
15149             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15150           else
15151             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15152           fi~
15153           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15154           linknames='
15155         # The linker will not automatically build a static lib if we build a DLL.
15156         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15157         enable_shared_with_static_runtimes=yes
15158         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15159         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15160         # Don't use ranlib
15161         old_postinstall_cmds='chmod 644 $oldlib'
15162         postlink_cmds='lt_outputfile="@OUTPUT@"~
15163           lt_tool_outputfile="@TOOL_OUTPUT@"~
15164           case $lt_outputfile in
15165             *.exe|*.EXE) ;;
15166             *)
15167               lt_outputfile=$lt_outputfile.exe
15168               lt_tool_outputfile=$lt_tool_outputfile.exe
15169               ;;
15170           esac~
15171           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15172             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15173             $RM "$lt_outputfile.manifest";
15174           fi'
15175         ;;
15176       *)
15177         # Assume MSVC wrapper
15178         hardcode_libdir_flag_spec=' '
15179         allow_undefined_flag=unsupported
15180         # Tell ltmain to make .lib files, not .a files.
15181         libext=lib
15182         # Tell ltmain to make .dll files, not .so files.
15183         shrext_cmds=.dll
15184         # FIXME: Setting linknames here is a bad hack.
15185         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15186         # The linker will automatically build a .lib file if we build a DLL.
15187         old_archive_from_new_cmds='true'
15188         # FIXME: Should let the user specify the lib program.
15189         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15190         enable_shared_with_static_runtimes=yes
15191         ;;
15192       esac
15193       ;;
15194
15195     darwin* | rhapsody*)
15196
15197
15198   archive_cmds_need_lc=no
15199   hardcode_direct=no
15200   hardcode_automatic=yes
15201   hardcode_shlibpath_var=unsupported
15202   if test yes = "$lt_cv_ld_force_load"; then
15203     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\"`'
15204
15205   else
15206     whole_archive_flag_spec=''
15207   fi
15208   link_all_deplibs=yes
15209   allow_undefined_flag=$_lt_dar_allow_undefined
15210   case $cc_basename in
15211      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15212      *) _lt_dar_can_shared=$GCC ;;
15213   esac
15214   if test yes = "$_lt_dar_can_shared"; then
15215     output_verbose_link_cmd=func_echo_all
15216     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15217     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15218     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"
15219     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"
15220
15221   else
15222   ld_shlibs=no
15223   fi
15224
15225       ;;
15226
15227     dgux*)
15228       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15229       hardcode_libdir_flag_spec='-L$libdir'
15230       hardcode_shlibpath_var=no
15231       ;;
15232
15233     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15234     # support.  Future versions do this automatically, but an explicit c++rt0.o
15235     # does not break anything, and helps significantly (at the cost of a little
15236     # extra space).
15237     freebsd2.2*)
15238       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15239       hardcode_libdir_flag_spec='-R$libdir'
15240       hardcode_direct=yes
15241       hardcode_shlibpath_var=no
15242       ;;
15243
15244     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15245     freebsd2.*)
15246       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15247       hardcode_direct=yes
15248       hardcode_minus_L=yes
15249       hardcode_shlibpath_var=no
15250       ;;
15251
15252     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15253     freebsd* | dragonfly*)
15254       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15255       hardcode_libdir_flag_spec='-R$libdir'
15256       hardcode_direct=yes
15257       hardcode_shlibpath_var=no
15258       ;;
15259
15260     hpux9*)
15261       if test yes = "$GCC"; then
15262         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'
15263       else
15264         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'
15265       fi
15266       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15267       hardcode_libdir_separator=:
15268       hardcode_direct=yes
15269
15270       # hardcode_minus_L: Not really in the search PATH,
15271       # but as the default location of the library.
15272       hardcode_minus_L=yes
15273       export_dynamic_flag_spec='$wl-E'
15274       ;;
15275
15276     hpux10*)
15277       if test yes,no = "$GCC,$with_gnu_ld"; then
15278         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15279       else
15280         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15281       fi
15282       if test no = "$with_gnu_ld"; then
15283         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15284         hardcode_libdir_separator=:
15285         hardcode_direct=yes
15286         hardcode_direct_absolute=yes
15287         export_dynamic_flag_spec='$wl-E'
15288         # hardcode_minus_L: Not really in the search PATH,
15289         # but as the default location of the library.
15290         hardcode_minus_L=yes
15291       fi
15292       ;;
15293
15294     hpux11*)
15295       if test yes,no = "$GCC,$with_gnu_ld"; then
15296         case $host_cpu in
15297         hppa*64*)
15298           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15299           ;;
15300         ia64*)
15301           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15302           ;;
15303         *)
15304           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15305           ;;
15306         esac
15307       else
15308         case $host_cpu in
15309         hppa*64*)
15310           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15311           ;;
15312         ia64*)
15313           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15314           ;;
15315         *)
15316
15317           # Older versions of the 11.00 compiler do not understand -b yet
15318           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15319           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15320 $as_echo_n "checking if $CC understands -b... " >&6; }
15321 if ${lt_cv_prog_compiler__b+:} false; then :
15322   $as_echo_n "(cached) " >&6
15323 else
15324   lt_cv_prog_compiler__b=no
15325    save_LDFLAGS=$LDFLAGS
15326    LDFLAGS="$LDFLAGS -b"
15327    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15328    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15329      # The linker can only warn and ignore the option if not recognized
15330      # So say no if there are warnings
15331      if test -s conftest.err; then
15332        # Append any errors to the config.log.
15333        cat conftest.err 1>&5
15334        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15335        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15336        if diff conftest.exp conftest.er2 >/dev/null; then
15337          lt_cv_prog_compiler__b=yes
15338        fi
15339      else
15340        lt_cv_prog_compiler__b=yes
15341      fi
15342    fi
15343    $RM -r conftest*
15344    LDFLAGS=$save_LDFLAGS
15345
15346 fi
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15348 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15349
15350 if test yes = "$lt_cv_prog_compiler__b"; then
15351     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15352 else
15353     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15354 fi
15355
15356           ;;
15357         esac
15358       fi
15359       if test no = "$with_gnu_ld"; then
15360         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15361         hardcode_libdir_separator=:
15362
15363         case $host_cpu in
15364         hppa*64*|ia64*)
15365           hardcode_direct=no
15366           hardcode_shlibpath_var=no
15367           ;;
15368         *)
15369           hardcode_direct=yes
15370           hardcode_direct_absolute=yes
15371           export_dynamic_flag_spec='$wl-E'
15372
15373           # hardcode_minus_L: Not really in the search PATH,
15374           # but as the default location of the library.
15375           hardcode_minus_L=yes
15376           ;;
15377         esac
15378       fi
15379       ;;
15380
15381     irix5* | irix6* | nonstopux*)
15382       if test yes = "$GCC"; then
15383         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'
15384         # Try to use the -exported_symbol ld option, if it does not
15385         # work, assume that -exports_file does not work either and
15386         # implicitly export all symbols.
15387         # This should be the same for all languages, so no per-tag cache variable.
15388         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15389 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15390 if ${lt_cv_irix_exported_symbol+:} false; then :
15391   $as_echo_n "(cached) " >&6
15392 else
15393   save_LDFLAGS=$LDFLAGS
15394            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
15395            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h.  */
15397 int foo (void) { return 0; }
15398 _ACEOF
15399 if ac_fn_c_try_link "$LINENO"; then :
15400   lt_cv_irix_exported_symbol=yes
15401 else
15402   lt_cv_irix_exported_symbol=no
15403 fi
15404 rm -f core conftest.err conftest.$ac_objext \
15405     conftest$ac_exeext conftest.$ac_ext
15406            LDFLAGS=$save_LDFLAGS
15407 fi
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15409 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15410         if test yes = "$lt_cv_irix_exported_symbol"; then
15411           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'
15412         fi
15413       else
15414         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'
15415         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'
15416       fi
15417       archive_cmds_need_lc='no'
15418       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15419       hardcode_libdir_separator=:
15420       inherit_rpath=yes
15421       link_all_deplibs=yes
15422       ;;
15423
15424     linux*)
15425       case $cc_basename in
15426       tcc*)
15427         # Fabrice Bellard et al's Tiny C Compiler
15428         ld_shlibs=yes
15429         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15430         ;;
15431       esac
15432       ;;
15433
15434     netbsd*)
15435       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15436         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15437       else
15438         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15439       fi
15440       hardcode_libdir_flag_spec='-R$libdir'
15441       hardcode_direct=yes
15442       hardcode_shlibpath_var=no
15443       ;;
15444
15445     newsos6)
15446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15447       hardcode_direct=yes
15448       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15449       hardcode_libdir_separator=:
15450       hardcode_shlibpath_var=no
15451       ;;
15452
15453     *nto* | *qnx*)
15454       ;;
15455
15456     openbsd* | bitrig*)
15457       if test -f /usr/libexec/ld.so; then
15458         hardcode_direct=yes
15459         hardcode_shlibpath_var=no
15460         hardcode_direct_absolute=yes
15461         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15462           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15463           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15464           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15465           export_dynamic_flag_spec='$wl-E'
15466         else
15467           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15468           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15469         fi
15470       else
15471         ld_shlibs=no
15472       fi
15473       ;;
15474
15475     os2*)
15476       hardcode_libdir_flag_spec='-L$libdir'
15477       hardcode_minus_L=yes
15478       allow_undefined_flag=unsupported
15479       shrext_cmds=.dll
15480       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15481         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15482         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15483         $ECHO EXPORTS >> $output_objdir/$libname.def~
15484         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15485         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15486         emximp -o $lib $output_objdir/$libname.def'
15487       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15488         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15489         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15490         $ECHO EXPORTS >> $output_objdir/$libname.def~
15491         prefix_cmds="$SED"~
15492         if test EXPORTS = "`$SED 1q $export_symbols`"; then
15493           prefix_cmds="$prefix_cmds -e 1d";
15494         fi~
15495         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15496         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15497         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15498         emximp -o $lib $output_objdir/$libname.def'
15499       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15500       enable_shared_with_static_runtimes=yes
15501       ;;
15502
15503     osf3*)
15504       if test yes = "$GCC"; then
15505         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15506         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'
15507       else
15508         allow_undefined_flag=' -expect_unresolved \*'
15509         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'
15510       fi
15511       archive_cmds_need_lc='no'
15512       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15513       hardcode_libdir_separator=:
15514       ;;
15515
15516     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15517       if test yes = "$GCC"; then
15518         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15519         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'
15520         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15521       else
15522         allow_undefined_flag=' -expect_unresolved \*'
15523         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'
15524         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~
15525           $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'
15526
15527         # Both c and cxx compiler support -rpath directly
15528         hardcode_libdir_flag_spec='-rpath $libdir'
15529       fi
15530       archive_cmds_need_lc='no'
15531       hardcode_libdir_separator=:
15532       ;;
15533
15534     solaris*)
15535       no_undefined_flag=' -z defs'
15536       if test yes = "$GCC"; then
15537         wlarc='$wl'
15538         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15539         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15540           $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'
15541       else
15542         case `$CC -V 2>&1` in
15543         *"Compilers 5.0"*)
15544           wlarc=''
15545           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15547             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15548           ;;
15549         *)
15550           wlarc='$wl'
15551           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15552           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15553             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15554           ;;
15555         esac
15556       fi
15557       hardcode_libdir_flag_spec='-R$libdir'
15558       hardcode_shlibpath_var=no
15559       case $host_os in
15560       solaris2.[0-5] | solaris2.[0-5].*) ;;
15561       *)
15562         # The compiler driver will combine and reorder linker options,
15563         # but understands '-z linker_flag'.  GCC discards it without '$wl',
15564         # but is careful enough not to reorder.
15565         # Supported since Solaris 2.6 (maybe 2.5.1?)
15566         if test yes = "$GCC"; then
15567           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15568         else
15569           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15570         fi
15571         ;;
15572       esac
15573       link_all_deplibs=yes
15574       ;;
15575
15576     sunos4*)
15577       if test sequent = "$host_vendor"; then
15578         # Use $CC to link under sequent, because it throws in some extra .o
15579         # files that make .init and .fini sections work.
15580         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15581       else
15582         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15583       fi
15584       hardcode_libdir_flag_spec='-L$libdir'
15585       hardcode_direct=yes
15586       hardcode_minus_L=yes
15587       hardcode_shlibpath_var=no
15588       ;;
15589
15590     sysv4)
15591       case $host_vendor in
15592         sni)
15593           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15594           hardcode_direct=yes # is this really true???
15595         ;;
15596         siemens)
15597           ## LD is ld it makes a PLAMLIB
15598           ## CC just makes a GrossModule.
15599           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15600           reload_cmds='$CC -r -o $output$reload_objs'
15601           hardcode_direct=no
15602         ;;
15603         motorola)
15604           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15606         ;;
15607       esac
15608       runpath_var='LD_RUN_PATH'
15609       hardcode_shlibpath_var=no
15610       ;;
15611
15612     sysv4.3*)
15613       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614       hardcode_shlibpath_var=no
15615       export_dynamic_flag_spec='-Bexport'
15616       ;;
15617
15618     sysv4*MP*)
15619       if test -d /usr/nec; then
15620         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621         hardcode_shlibpath_var=no
15622         runpath_var=LD_RUN_PATH
15623         hardcode_runpath_var=yes
15624         ld_shlibs=yes
15625       fi
15626       ;;
15627
15628     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15629       no_undefined_flag='$wl-z,text'
15630       archive_cmds_need_lc=no
15631       hardcode_shlibpath_var=no
15632       runpath_var='LD_RUN_PATH'
15633
15634       if test yes = "$GCC"; then
15635         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15636         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637       else
15638         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15639         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640       fi
15641       ;;
15642
15643     sysv5* | sco3.2v5* | sco5v6*)
15644       # Note: We CANNOT use -z defs as we might desire, because we do not
15645       # link with -lc, and that would cause any symbols used from libc to
15646       # always be unresolved, which means just about no library would
15647       # ever link correctly.  If we're not using GNU ld we use -z text
15648       # though, which does catch some bad symbols but isn't as heavy-handed
15649       # as -z defs.
15650       no_undefined_flag='$wl-z,text'
15651       allow_undefined_flag='$wl-z,nodefs'
15652       archive_cmds_need_lc=no
15653       hardcode_shlibpath_var=no
15654       hardcode_libdir_flag_spec='$wl-R,$libdir'
15655       hardcode_libdir_separator=':'
15656       link_all_deplibs=yes
15657       export_dynamic_flag_spec='$wl-Bexport'
15658       runpath_var='LD_RUN_PATH'
15659
15660       if test yes = "$GCC"; then
15661         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15662         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663       else
15664         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15665         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666       fi
15667       ;;
15668
15669     uts4*)
15670       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15671       hardcode_libdir_flag_spec='-L$libdir'
15672       hardcode_shlibpath_var=no
15673       ;;
15674
15675     *)
15676       ld_shlibs=no
15677       ;;
15678     esac
15679
15680     if test sni = "$host_vendor"; then
15681       case $host in
15682       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15683         export_dynamic_flag_spec='$wl-Blargedynsym'
15684         ;;
15685       esac
15686     fi
15687   fi
15688
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15690 $as_echo "$ld_shlibs" >&6; }
15691 test no = "$ld_shlibs" && can_build_shared=no
15692
15693 with_gnu_ld=$with_gnu_ld
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709 #
15710 # Do we need to explicitly link libc?
15711 #
15712 case "x$archive_cmds_need_lc" in
15713 x|xyes)
15714   # Assume -lc should be added
15715   archive_cmds_need_lc=yes
15716
15717   if test yes,yes = "$GCC,$enable_shared"; then
15718     case $archive_cmds in
15719     *'~'*)
15720       # FIXME: we may have to deal with multi-command sequences.
15721       ;;
15722     '$CC '*)
15723       # Test whether the compiler implicitly links with -lc since on some
15724       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15725       # to ld, don't add -lc before -lgcc.
15726       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15727 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15728 if ${lt_cv_archive_cmds_need_lc+:} false; then :
15729   $as_echo_n "(cached) " >&6
15730 else
15731   $RM conftest*
15732         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15733
15734         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15735   (eval $ac_compile) 2>&5
15736   ac_status=$?
15737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15738   test $ac_status = 0; } 2>conftest.err; then
15739           soname=conftest
15740           lib=conftest
15741           libobjs=conftest.$ac_objext
15742           deplibs=
15743           wl=$lt_prog_compiler_wl
15744           pic_flag=$lt_prog_compiler_pic
15745           compiler_flags=-v
15746           linker_flags=-v
15747           verstring=
15748           output_objdir=.
15749           libname=conftest
15750           lt_save_allow_undefined_flag=$allow_undefined_flag
15751           allow_undefined_flag=
15752           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15753   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15754   ac_status=$?
15755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15756   test $ac_status = 0; }
15757           then
15758             lt_cv_archive_cmds_need_lc=no
15759           else
15760             lt_cv_archive_cmds_need_lc=yes
15761           fi
15762           allow_undefined_flag=$lt_save_allow_undefined_flag
15763         else
15764           cat conftest.err 1>&5
15765         fi
15766         $RM conftest*
15767
15768 fi
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15770 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15771       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15772       ;;
15773     esac
15774   fi
15775   ;;
15776 esac
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
15926
15927
15928
15929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15930 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15931
15932 if test yes = "$GCC"; then
15933   case $host_os in
15934     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15935     *) lt_awk_arg='/^libraries:/' ;;
15936   esac
15937   case $host_os in
15938     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15939     *) lt_sed_strip_eq='s|=/|/|g' ;;
15940   esac
15941   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15942   case $lt_search_path_spec in
15943   *\;*)
15944     # if the path contains ";" then we assume it to be the separator
15945     # otherwise default to the standard path separator (i.e. ":") - it is
15946     # assumed that no part of a normal pathname contains ";" but that should
15947     # okay in the real world where ";" in dirpaths is itself problematic.
15948     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15949     ;;
15950   *)
15951     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15952     ;;
15953   esac
15954   # Ok, now we have the path, separated by spaces, we can step through it
15955   # and add multilib dir if necessary...
15956   lt_tmp_lt_search_path_spec=
15957   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15958   # ...but if some path component already ends with the multilib dir we assume
15959   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15960   case "$lt_multi_os_dir; $lt_search_path_spec " in
15961   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15962     lt_multi_os_dir=
15963     ;;
15964   esac
15965   for lt_sys_path in $lt_search_path_spec; do
15966     if test -d "$lt_sys_path$lt_multi_os_dir"; then
15967       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15968     elif test -n "$lt_multi_os_dir"; then
15969       test -d "$lt_sys_path" && \
15970         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15971     fi
15972   done
15973   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15974 BEGIN {RS = " "; FS = "/|\n";} {
15975   lt_foo = "";
15976   lt_count = 0;
15977   for (lt_i = NF; lt_i > 0; lt_i--) {
15978     if ($lt_i != "" && $lt_i != ".") {
15979       if ($lt_i == "..") {
15980         lt_count++;
15981       } else {
15982         if (lt_count == 0) {
15983           lt_foo = "/" $lt_i lt_foo;
15984         } else {
15985           lt_count--;
15986         }
15987       }
15988     }
15989   }
15990   if (lt_foo != "") { lt_freq[lt_foo]++; }
15991   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15992 }'`
15993   # AWK program above erroneously prepends '/' to C:/dos/paths
15994   # for these hosts.
15995   case $host_os in
15996     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15997       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15998   esac
15999   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16000 else
16001   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16002 fi
16003 library_names_spec=
16004 libname_spec='lib$name'
16005 soname_spec=
16006 shrext_cmds=.so
16007 postinstall_cmds=
16008 postuninstall_cmds=
16009 finish_cmds=
16010 finish_eval=
16011 shlibpath_var=
16012 shlibpath_overrides_runpath=unknown
16013 version_type=none
16014 dynamic_linker="$host_os ld.so"
16015 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16016 need_lib_prefix=unknown
16017 hardcode_into_libs=no
16018
16019 # when you set need_version to no, make sure it does not cause -set_version
16020 # flags to be left without arguments
16021 need_version=unknown
16022
16023
16024
16025 case $host_os in
16026 aix3*)
16027   version_type=linux # correct to gnu/linux during the next big refactor
16028   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16029   shlibpath_var=LIBPATH
16030
16031   # AIX 3 has no versioning support, so we append a major version to the name.
16032   soname_spec='$libname$release$shared_ext$major'
16033   ;;
16034
16035 aix[4-9]*)
16036   version_type=linux # correct to gnu/linux during the next big refactor
16037   need_lib_prefix=no
16038   need_version=no
16039   hardcode_into_libs=yes
16040   if test ia64 = "$host_cpu"; then
16041     # AIX 5 supports IA64
16042     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16043     shlibpath_var=LD_LIBRARY_PATH
16044   else
16045     # With GCC up to 2.95.x, collect2 would create an import file
16046     # for dependence libraries.  The import file would start with
16047     # the line '#! .'.  This would cause the generated library to
16048     # depend on '.', always an invalid library.  This was fixed in
16049     # development snapshots of GCC prior to 3.0.
16050     case $host_os in
16051       aix4 | aix4.[01] | aix4.[01].*)
16052       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16053            echo ' yes '
16054            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16055         :
16056       else
16057         can_build_shared=no
16058       fi
16059       ;;
16060     esac
16061     # Using Import Files as archive members, it is possible to support
16062     # filename-based versioning of shared library archives on AIX. While
16063     # this would work for both with and without runtime linking, it will
16064     # prevent static linking of such archives. So we do filename-based
16065     # shared library versioning with .so extension only, which is used
16066     # when both runtime linking and shared linking is enabled.
16067     # Unfortunately, runtime linking may impact performance, so we do
16068     # not want this to be the default eventually. Also, we use the
16069     # versioned .so libs for executables only if there is the -brtl
16070     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16071     # To allow for filename-based versioning support, we need to create
16072     # libNAME.so.V as an archive file, containing:
16073     # *) an Import File, referring to the versioned filename of the
16074     #    archive as well as the shared archive member, telling the
16075     #    bitwidth (32 or 64) of that shared object, and providing the
16076     #    list of exported symbols of that shared object, eventually
16077     #    decorated with the 'weak' keyword
16078     # *) the shared object with the F_LOADONLY flag set, to really avoid
16079     #    it being seen by the linker.
16080     # At run time we better use the real file rather than another symlink,
16081     # but for link time we create the symlink libNAME.so -> libNAME.so.V
16082
16083     case $with_aix_soname,$aix_use_runtimelinking in
16084     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16085     # soname into executable. Probably we can add versioning support to
16086     # collect2, so additional links can be useful in future.
16087     aix,yes) # traditional libtool
16088       dynamic_linker='AIX unversionable lib.so'
16089       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16090       # instead of lib<name>.a to let people know that these are not
16091       # typical AIX shared libraries.
16092       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16093       ;;
16094     aix,no) # traditional AIX only
16095       dynamic_linker='AIX lib.a(lib.so.V)'
16096       # We preserve .a as extension for shared libraries through AIX4.2
16097       # and later when we are not doing run time linking.
16098       library_names_spec='$libname$release.a $libname.a'
16099       soname_spec='$libname$release$shared_ext$major'
16100       ;;
16101     svr4,*) # full svr4 only
16102       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16103       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16104       # We do not specify a path in Import Files, so LIBPATH fires.
16105       shlibpath_overrides_runpath=yes
16106       ;;
16107     *,yes) # both, prefer svr4
16108       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16109       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16110       # unpreferred sharedlib libNAME.a needs extra handling
16111       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"'
16112       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"'
16113       # We do not specify a path in Import Files, so LIBPATH fires.
16114       shlibpath_overrides_runpath=yes
16115       ;;
16116     *,no) # both, prefer aix
16117       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16118       library_names_spec='$libname$release.a $libname.a'
16119       soname_spec='$libname$release$shared_ext$major'
16120       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16121       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)'
16122       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"'
16123       ;;
16124     esac
16125     shlibpath_var=LIBPATH
16126   fi
16127   ;;
16128
16129 amigaos*)
16130   case $host_cpu in
16131   powerpc)
16132     # Since July 2007 AmigaOS4 officially supports .so libraries.
16133     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16134     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16135     ;;
16136   m68k)
16137     library_names_spec='$libname.ixlibrary $libname.a'
16138     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16139     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'
16140     ;;
16141   esac
16142   ;;
16143
16144 beos*)
16145   library_names_spec='$libname$shared_ext'
16146   dynamic_linker="$host_os ld.so"
16147   shlibpath_var=LIBRARY_PATH
16148   ;;
16149
16150 bsdi[45]*)
16151   version_type=linux # correct to gnu/linux during the next big refactor
16152   need_version=no
16153   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16154   soname_spec='$libname$release$shared_ext$major'
16155   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16158   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16159   # the default ld.so.conf also contains /usr/contrib/lib and
16160   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16161   # libtool to hard-code these into programs
16162   ;;
16163
16164 cygwin* | mingw* | pw32* | cegcc*)
16165   version_type=windows
16166   shrext_cmds=.dll
16167   need_version=no
16168   need_lib_prefix=no
16169
16170   case $GCC,$cc_basename in
16171   yes,*)
16172     # gcc
16173     library_names_spec='$libname.dll.a'
16174     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16175     postinstall_cmds='base_file=`basename \$file`~
16176       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16177       dldir=$destdir/`dirname \$dlpath`~
16178       test -d \$dldir || mkdir -p \$dldir~
16179       $install_prog $dir/$dlname \$dldir/$dlname~
16180       chmod a+x \$dldir/$dlname~
16181       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16182         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16183       fi'
16184     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16185       dlpath=$dir/\$dldll~
16186        $RM \$dlpath'
16187     shlibpath_overrides_runpath=yes
16188
16189     case $host_os in
16190     cygwin*)
16191       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16192       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16193
16194       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16195       ;;
16196     mingw* | cegcc*)
16197       # MinGW DLLs use traditional 'lib' prefix
16198       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16199       ;;
16200     pw32*)
16201       # pw32 DLLs use 'pw' prefix rather than 'lib'
16202       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16203       ;;
16204     esac
16205     dynamic_linker='Win32 ld.exe'
16206     ;;
16207
16208   *,cl*)
16209     # Native MSVC
16210     libname_spec='$name'
16211     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16212     library_names_spec='$libname.dll.lib'
16213
16214     case $build_os in
16215     mingw*)
16216       sys_lib_search_path_spec=
16217       lt_save_ifs=$IFS
16218       IFS=';'
16219       for lt_path in $LIB
16220       do
16221         IFS=$lt_save_ifs
16222         # Let DOS variable expansion print the short 8.3 style file name.
16223         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16224         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16225       done
16226       IFS=$lt_save_ifs
16227       # Convert to MSYS style.
16228       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16229       ;;
16230     cygwin*)
16231       # Convert to unix form, then to dos form, then back to unix form
16232       # but this time dos style (no spaces!) so that the unix form looks
16233       # like /cygdrive/c/PROGRA~1:/cygdr...
16234       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16235       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16236       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16237       ;;
16238     *)
16239       sys_lib_search_path_spec=$LIB
16240       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16241         # It is most probably a Windows format PATH.
16242         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16243       else
16244         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16245       fi
16246       # FIXME: find the short name or the path components, as spaces are
16247       # common. (e.g. "Program Files" -> "PROGRA~1")
16248       ;;
16249     esac
16250
16251     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16252     postinstall_cmds='base_file=`basename \$file`~
16253       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16254       dldir=$destdir/`dirname \$dlpath`~
16255       test -d \$dldir || mkdir -p \$dldir~
16256       $install_prog $dir/$dlname \$dldir/$dlname'
16257     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16258       dlpath=$dir/\$dldll~
16259        $RM \$dlpath'
16260     shlibpath_overrides_runpath=yes
16261     dynamic_linker='Win32 link.exe'
16262     ;;
16263
16264   *)
16265     # Assume MSVC wrapper
16266     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16267     dynamic_linker='Win32 ld.exe'
16268     ;;
16269   esac
16270   # FIXME: first we should search . and the directory the executable is in
16271   shlibpath_var=PATH
16272   ;;
16273
16274 darwin* | rhapsody*)
16275   dynamic_linker="$host_os dyld"
16276   version_type=darwin
16277   need_lib_prefix=no
16278   need_version=no
16279   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16280   soname_spec='$libname$release$major$shared_ext'
16281   shlibpath_overrides_runpath=yes
16282   shlibpath_var=DYLD_LIBRARY_PATH
16283   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16284
16285   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16286   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16287   ;;
16288
16289 dgux*)
16290   version_type=linux # correct to gnu/linux during the next big refactor
16291   need_lib_prefix=no
16292   need_version=no
16293   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16294   soname_spec='$libname$release$shared_ext$major'
16295   shlibpath_var=LD_LIBRARY_PATH
16296   ;;
16297
16298 freebsd* | dragonfly*)
16299   # DragonFly does not have aout.  When/if they implement a new
16300   # versioning mechanism, adjust this.
16301   if test -x /usr/bin/objformat; then
16302     objformat=`/usr/bin/objformat`
16303   else
16304     case $host_os in
16305     freebsd[23].*) objformat=aout ;;
16306     *) objformat=elf ;;
16307     esac
16308   fi
16309   version_type=freebsd-$objformat
16310   case $version_type in
16311     freebsd-elf*)
16312       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16313       soname_spec='$libname$release$shared_ext$major'
16314       need_version=no
16315       need_lib_prefix=no
16316       ;;
16317     freebsd-*)
16318       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16319       need_version=yes
16320       ;;
16321   esac
16322   shlibpath_var=LD_LIBRARY_PATH
16323   case $host_os in
16324   freebsd2.*)
16325     shlibpath_overrides_runpath=yes
16326     ;;
16327   freebsd3.[01]* | freebsdelf3.[01]*)
16328     shlibpath_overrides_runpath=yes
16329     hardcode_into_libs=yes
16330     ;;
16331   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16332   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16333     shlibpath_overrides_runpath=no
16334     hardcode_into_libs=yes
16335     ;;
16336   *) # from 4.6 on, and DragonFly
16337     shlibpath_overrides_runpath=yes
16338     hardcode_into_libs=yes
16339     ;;
16340   esac
16341   ;;
16342
16343 haiku*)
16344   version_type=linux # correct to gnu/linux during the next big refactor
16345   need_lib_prefix=no
16346   need_version=no
16347   dynamic_linker="$host_os runtime_loader"
16348   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16349   soname_spec='$libname$release$shared_ext$major'
16350   shlibpath_var=LIBRARY_PATH
16351   shlibpath_overrides_runpath=no
16352   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16353   hardcode_into_libs=yes
16354   ;;
16355
16356 hpux9* | hpux10* | hpux11*)
16357   # Give a soname corresponding to the major version so that dld.sl refuses to
16358   # link against other versions.
16359   version_type=sunos
16360   need_lib_prefix=no
16361   need_version=no
16362   case $host_cpu in
16363   ia64*)
16364     shrext_cmds='.so'
16365     hardcode_into_libs=yes
16366     dynamic_linker="$host_os dld.so"
16367     shlibpath_var=LD_LIBRARY_PATH
16368     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16369     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16370     soname_spec='$libname$release$shared_ext$major'
16371     if test 32 = "$HPUX_IA64_MODE"; then
16372       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16373       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16374     else
16375       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16376       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16377     fi
16378     ;;
16379   hppa*64*)
16380     shrext_cmds='.sl'
16381     hardcode_into_libs=yes
16382     dynamic_linker="$host_os dld.sl"
16383     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16384     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16385     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16386     soname_spec='$libname$release$shared_ext$major'
16387     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16388     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16389     ;;
16390   *)
16391     shrext_cmds='.sl'
16392     dynamic_linker="$host_os dld.sl"
16393     shlibpath_var=SHLIB_PATH
16394     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16395     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16396     soname_spec='$libname$release$shared_ext$major'
16397     ;;
16398   esac
16399   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16400   postinstall_cmds='chmod 555 $lib'
16401   # or fails outright, so override atomically:
16402   install_override_mode=555
16403   ;;
16404
16405 interix[3-9]*)
16406   version_type=linux # correct to gnu/linux during the next big refactor
16407   need_lib_prefix=no
16408   need_version=no
16409   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16410   soname_spec='$libname$release$shared_ext$major'
16411   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16412   shlibpath_var=LD_LIBRARY_PATH
16413   shlibpath_overrides_runpath=no
16414   hardcode_into_libs=yes
16415   ;;
16416
16417 irix5* | irix6* | nonstopux*)
16418   case $host_os in
16419     nonstopux*) version_type=nonstopux ;;
16420     *)
16421         if test yes = "$lt_cv_prog_gnu_ld"; then
16422                 version_type=linux # correct to gnu/linux during the next big refactor
16423         else
16424                 version_type=irix
16425         fi ;;
16426   esac
16427   need_lib_prefix=no
16428   need_version=no
16429   soname_spec='$libname$release$shared_ext$major'
16430   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16431   case $host_os in
16432   irix5* | nonstopux*)
16433     libsuff= shlibsuff=
16434     ;;
16435   *)
16436     case $LD in # libtool.m4 will add one of these switches to LD
16437     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16438       libsuff= shlibsuff= libmagic=32-bit;;
16439     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16440       libsuff=32 shlibsuff=N32 libmagic=N32;;
16441     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16442       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16443     *) libsuff= shlibsuff= libmagic=never-match;;
16444     esac
16445     ;;
16446   esac
16447   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16448   shlibpath_overrides_runpath=no
16449   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16450   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16451   hardcode_into_libs=yes
16452   ;;
16453
16454 # No shared lib support for Linux oldld, aout, or coff.
16455 linux*oldld* | linux*aout* | linux*coff*)
16456   dynamic_linker=no
16457   ;;
16458
16459 linux*android*)
16460   version_type=none # Android doesn't support versioned libraries.
16461   need_lib_prefix=no
16462   need_version=no
16463   library_names_spec='$libname$release$shared_ext'
16464   soname_spec='$libname$release$shared_ext'
16465   finish_cmds=
16466   shlibpath_var=LD_LIBRARY_PATH
16467   shlibpath_overrides_runpath=yes
16468
16469   # This implies no fast_install, which is unacceptable.
16470   # Some rework will be needed to allow for fast_install
16471   # before this can be enabled.
16472   hardcode_into_libs=yes
16473
16474   dynamic_linker='Android linker'
16475   # Don't embed -rpath directories since the linker doesn't support them.
16476   hardcode_libdir_flag_spec='-L$libdir'
16477   ;;
16478
16479 # This must be glibc/ELF.
16480 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16481   version_type=linux # correct to gnu/linux during the next big refactor
16482   need_lib_prefix=no
16483   need_version=no
16484   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16485   soname_spec='$libname$release$shared_ext$major'
16486   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16487   shlibpath_var=LD_LIBRARY_PATH
16488   shlibpath_overrides_runpath=no
16489
16490   # Some binutils ld are patched to set DT_RUNPATH
16491   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16492   $as_echo_n "(cached) " >&6
16493 else
16494   lt_cv_shlibpath_overrides_runpath=no
16495     save_LDFLAGS=$LDFLAGS
16496     save_libdir=$libdir
16497     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16498          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16499     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h.  */
16501
16502 int
16503 main ()
16504 {
16505
16506   ;
16507   return 0;
16508 }
16509 _ACEOF
16510 if ac_fn_c_try_link "$LINENO"; then :
16511   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16512   lt_cv_shlibpath_overrides_runpath=yes
16513 fi
16514 fi
16515 rm -f core conftest.err conftest.$ac_objext \
16516     conftest$ac_exeext conftest.$ac_ext
16517     LDFLAGS=$save_LDFLAGS
16518     libdir=$save_libdir
16519
16520 fi
16521
16522   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16523
16524   # This implies no fast_install, which is unacceptable.
16525   # Some rework will be needed to allow for fast_install
16526   # before this can be enabled.
16527   hardcode_into_libs=yes
16528
16529   # Ideally, we could use ldconfig to report *all* directores which are
16530   # searched for libraries, however this is still not possible.  Aside from not
16531   # being certain /sbin/ldconfig is available, command
16532   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16533   # even though it is searched at run-time.  Try to do the best guess by
16534   # appending ld.so.conf contents (and includes) to the search path.
16535   if test -f /etc/ld.so.conf; then
16536     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' ' '`
16537     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16538   fi
16539
16540   # We used to test for /lib/ld.so.1 and disable shared libraries on
16541   # powerpc, because MkLinux only supported shared libraries with the
16542   # GNU dynamic linker.  Since this was broken with cross compilers,
16543   # most powerpc-linux boxes support dynamic linking these days and
16544   # people can always --disable-shared, the test was removed, and we
16545   # assume the GNU/Linux dynamic linker is in use.
16546   dynamic_linker='GNU/Linux ld.so'
16547   ;;
16548
16549 netbsd*)
16550   version_type=sunos
16551   need_lib_prefix=no
16552   need_version=no
16553   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16554     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16555     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16556     dynamic_linker='NetBSD (a.out) ld.so'
16557   else
16558     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16559     soname_spec='$libname$release$shared_ext$major'
16560     dynamic_linker='NetBSD ld.elf_so'
16561   fi
16562   shlibpath_var=LD_LIBRARY_PATH
16563   shlibpath_overrides_runpath=yes
16564   hardcode_into_libs=yes
16565   ;;
16566
16567 newsos6)
16568   version_type=linux # correct to gnu/linux during the next big refactor
16569   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16570   shlibpath_var=LD_LIBRARY_PATH
16571   shlibpath_overrides_runpath=yes
16572   ;;
16573
16574 *nto* | *qnx*)
16575   version_type=qnx
16576   need_lib_prefix=no
16577   need_version=no
16578   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16579   soname_spec='$libname$release$shared_ext$major'
16580   shlibpath_var=LD_LIBRARY_PATH
16581   shlibpath_overrides_runpath=no
16582   hardcode_into_libs=yes
16583   dynamic_linker='ldqnx.so'
16584   ;;
16585
16586 openbsd* | bitrig*)
16587   version_type=sunos
16588   sys_lib_dlsearch_path_spec=/usr/lib
16589   need_lib_prefix=no
16590   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16591     need_version=no
16592   else
16593     need_version=yes
16594   fi
16595   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16596   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16597   shlibpath_var=LD_LIBRARY_PATH
16598   shlibpath_overrides_runpath=yes
16599   ;;
16600
16601 os2*)
16602   libname_spec='$name'
16603   version_type=windows
16604   shrext_cmds=.dll
16605   need_version=no
16606   need_lib_prefix=no
16607   # OS/2 can only load a DLL with a base name of 8 characters or less.
16608   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16609     v=$($ECHO $release$versuffix | tr -d .-);
16610     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16611     $ECHO $n$v`$shared_ext'
16612   library_names_spec='${libname}_dll.$libext'
16613   dynamic_linker='OS/2 ld.exe'
16614   shlibpath_var=BEGINLIBPATH
16615   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16616   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16617   postinstall_cmds='base_file=`basename \$file`~
16618     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16619     dldir=$destdir/`dirname \$dlpath`~
16620     test -d \$dldir || mkdir -p \$dldir~
16621     $install_prog $dir/$dlname \$dldir/$dlname~
16622     chmod a+x \$dldir/$dlname~
16623     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16624       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16625     fi'
16626   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16627     dlpath=$dir/\$dldll~
16628     $RM \$dlpath'
16629   ;;
16630
16631 osf3* | osf4* | osf5*)
16632   version_type=osf
16633   need_lib_prefix=no
16634   need_version=no
16635   soname_spec='$libname$release$shared_ext$major'
16636   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16637   shlibpath_var=LD_LIBRARY_PATH
16638   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16639   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16640   ;;
16641
16642 rdos*)
16643   dynamic_linker=no
16644   ;;
16645
16646 solaris*)
16647   version_type=linux # correct to gnu/linux during the next big refactor
16648   need_lib_prefix=no
16649   need_version=no
16650   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16651   soname_spec='$libname$release$shared_ext$major'
16652   shlibpath_var=LD_LIBRARY_PATH
16653   shlibpath_overrides_runpath=yes
16654   hardcode_into_libs=yes
16655   # ldd complains unless libraries are executable
16656   postinstall_cmds='chmod +x $lib'
16657   ;;
16658
16659 sunos4*)
16660   version_type=sunos
16661   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16662   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16663   shlibpath_var=LD_LIBRARY_PATH
16664   shlibpath_overrides_runpath=yes
16665   if test yes = "$with_gnu_ld"; then
16666     need_lib_prefix=no
16667   fi
16668   need_version=yes
16669   ;;
16670
16671 sysv4 | sysv4.3*)
16672   version_type=linux # correct to gnu/linux during the next big refactor
16673   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16674   soname_spec='$libname$release$shared_ext$major'
16675   shlibpath_var=LD_LIBRARY_PATH
16676   case $host_vendor in
16677     sni)
16678       shlibpath_overrides_runpath=no
16679       need_lib_prefix=no
16680       runpath_var=LD_RUN_PATH
16681       ;;
16682     siemens)
16683       need_lib_prefix=no
16684       ;;
16685     motorola)
16686       need_lib_prefix=no
16687       need_version=no
16688       shlibpath_overrides_runpath=no
16689       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16690       ;;
16691   esac
16692   ;;
16693
16694 sysv4*MP*)
16695   if test -d /usr/nec; then
16696     version_type=linux # correct to gnu/linux during the next big refactor
16697     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16698     soname_spec='$libname$shared_ext.$major'
16699     shlibpath_var=LD_LIBRARY_PATH
16700   fi
16701   ;;
16702
16703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16704   version_type=sco
16705   need_lib_prefix=no
16706   need_version=no
16707   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16708   soname_spec='$libname$release$shared_ext$major'
16709   shlibpath_var=LD_LIBRARY_PATH
16710   shlibpath_overrides_runpath=yes
16711   hardcode_into_libs=yes
16712   if test yes = "$with_gnu_ld"; then
16713     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16714   else
16715     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16716     case $host_os in
16717       sco3.2v5*)
16718         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16719         ;;
16720     esac
16721   fi
16722   sys_lib_dlsearch_path_spec='/usr/lib'
16723   ;;
16724
16725 tpf*)
16726   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16727   version_type=linux # correct to gnu/linux during the next big refactor
16728   need_lib_prefix=no
16729   need_version=no
16730   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16731   shlibpath_var=LD_LIBRARY_PATH
16732   shlibpath_overrides_runpath=no
16733   hardcode_into_libs=yes
16734   ;;
16735
16736 uts4*)
16737   version_type=linux # correct to gnu/linux during the next big refactor
16738   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16739   soname_spec='$libname$release$shared_ext$major'
16740   shlibpath_var=LD_LIBRARY_PATH
16741   ;;
16742
16743 *)
16744   dynamic_linker=no
16745   ;;
16746 esac
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16748 $as_echo "$dynamic_linker" >&6; }
16749 test no = "$dynamic_linker" && can_build_shared=no
16750
16751 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16752 if test yes = "$GCC"; then
16753   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16754 fi
16755
16756 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16757   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16758 fi
16759
16760 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16761   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16762 fi
16763
16764 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16765 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16766
16767 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16768 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16769
16770 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16771 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
16866
16867
16868
16869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16870 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16871 hardcode_action=
16872 if test -n "$hardcode_libdir_flag_spec" ||
16873    test -n "$runpath_var" ||
16874    test yes = "$hardcode_automatic"; then
16875
16876   # We can hardcode non-existent directories.
16877   if test no != "$hardcode_direct" &&
16878      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16879      # have to relink, otherwise we might link with an installed library
16880      # when we should be linking with a yet-to-be-installed one
16881      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16882      test no != "$hardcode_minus_L"; then
16883     # Linking always hardcodes the temporary library directory.
16884     hardcode_action=relink
16885   else
16886     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16887     hardcode_action=immediate
16888   fi
16889 else
16890   # We cannot hardcode anything, or else we can only hardcode existing
16891   # directories.
16892   hardcode_action=unsupported
16893 fi
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16895 $as_echo "$hardcode_action" >&6; }
16896
16897 if test relink = "$hardcode_action" ||
16898    test yes = "$inherit_rpath"; then
16899   # Fast installation is not supported
16900   enable_fast_install=no
16901 elif test yes = "$shlibpath_overrides_runpath" ||
16902      test no = "$enable_shared"; then
16903   # Fast installation is not necessary
16904   enable_fast_install=needless
16905 fi
16906
16907
16908
16909
16910
16911
16912   if test yes != "$enable_dlopen"; then
16913   enable_dlopen=unknown
16914   enable_dlopen_self=unknown
16915   enable_dlopen_self_static=unknown
16916 else
16917   lt_cv_dlopen=no
16918   lt_cv_dlopen_libs=
16919
16920   case $host_os in
16921   beos*)
16922     lt_cv_dlopen=load_add_on
16923     lt_cv_dlopen_libs=
16924     lt_cv_dlopen_self=yes
16925     ;;
16926
16927   mingw* | pw32* | cegcc*)
16928     lt_cv_dlopen=LoadLibrary
16929     lt_cv_dlopen_libs=
16930     ;;
16931
16932   cygwin*)
16933     lt_cv_dlopen=dlopen
16934     lt_cv_dlopen_libs=
16935     ;;
16936
16937   darwin*)
16938     # if libdl is installed we need to link against it
16939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16941 if ${ac_cv_lib_dl_dlopen+:} false; then :
16942   $as_echo_n "(cached) " >&6
16943 else
16944   ac_check_lib_save_LIBS=$LIBS
16945 LIBS="-ldl  $LIBS"
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h.  */
16948
16949 /* Override any GCC internal prototype to avoid an error.
16950    Use char because int might match the return type of a GCC
16951    builtin and then its argument prototype would still apply.  */
16952 #ifdef __cplusplus
16953 extern "C"
16954 #endif
16955 char dlopen ();
16956 int
16957 main ()
16958 {
16959 return dlopen ();
16960   ;
16961   return 0;
16962 }
16963 _ACEOF
16964 if ac_fn_c_try_link "$LINENO"; then :
16965   ac_cv_lib_dl_dlopen=yes
16966 else
16967   ac_cv_lib_dl_dlopen=no
16968 fi
16969 rm -f core conftest.err conftest.$ac_objext \
16970     conftest$ac_exeext conftest.$ac_ext
16971 LIBS=$ac_check_lib_save_LIBS
16972 fi
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16975 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16976   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16977 else
16978
16979     lt_cv_dlopen=dyld
16980     lt_cv_dlopen_libs=
16981     lt_cv_dlopen_self=yes
16982
16983 fi
16984
16985     ;;
16986
16987   tpf*)
16988     # Don't try to run any link tests for TPF.  We know it's impossible
16989     # because TPF is a cross-compiler, and we know how we open DSOs.
16990     lt_cv_dlopen=dlopen
16991     lt_cv_dlopen_libs=
16992     lt_cv_dlopen_self=no
16993     ;;
16994
16995   *)
16996     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16997 if test "x$ac_cv_func_shl_load" = xyes; then :
16998   lt_cv_dlopen=shl_load
16999 else
17000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17001 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17002 if ${ac_cv_lib_dld_shl_load+:} false; then :
17003   $as_echo_n "(cached) " >&6
17004 else
17005   ac_check_lib_save_LIBS=$LIBS
17006 LIBS="-ldld  $LIBS"
17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h.  */
17009
17010 /* Override any GCC internal prototype to avoid an error.
17011    Use char because int might match the return type of a GCC
17012    builtin and then its argument prototype would still apply.  */
17013 #ifdef __cplusplus
17014 extern "C"
17015 #endif
17016 char shl_load ();
17017 int
17018 main ()
17019 {
17020 return shl_load ();
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 if ac_fn_c_try_link "$LINENO"; then :
17026   ac_cv_lib_dld_shl_load=yes
17027 else
17028   ac_cv_lib_dld_shl_load=no
17029 fi
17030 rm -f core conftest.err conftest.$ac_objext \
17031     conftest$ac_exeext conftest.$ac_ext
17032 LIBS=$ac_check_lib_save_LIBS
17033 fi
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17035 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17036 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17037   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17038 else
17039   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17040 if test "x$ac_cv_func_dlopen" = xyes; then :
17041   lt_cv_dlopen=dlopen
17042 else
17043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17044 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17045 if ${ac_cv_lib_dl_dlopen+:} false; then :
17046   $as_echo_n "(cached) " >&6
17047 else
17048   ac_check_lib_save_LIBS=$LIBS
17049 LIBS="-ldl  $LIBS"
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h.  */
17052
17053 /* Override any GCC internal prototype to avoid an error.
17054    Use char because int might match the return type of a GCC
17055    builtin and then its argument prototype would still apply.  */
17056 #ifdef __cplusplus
17057 extern "C"
17058 #endif
17059 char dlopen ();
17060 int
17061 main ()
17062 {
17063 return dlopen ();
17064   ;
17065   return 0;
17066 }
17067 _ACEOF
17068 if ac_fn_c_try_link "$LINENO"; then :
17069   ac_cv_lib_dl_dlopen=yes
17070 else
17071   ac_cv_lib_dl_dlopen=no
17072 fi
17073 rm -f core conftest.err conftest.$ac_objext \
17074     conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17076 fi
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17078 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17079 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17080   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17081 else
17082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17083 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17084 if ${ac_cv_lib_svld_dlopen+:} false; then :
17085   $as_echo_n "(cached) " >&6
17086 else
17087   ac_check_lib_save_LIBS=$LIBS
17088 LIBS="-lsvld  $LIBS"
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h.  */
17091
17092 /* Override any GCC internal prototype to avoid an error.
17093    Use char because int might match the return type of a GCC
17094    builtin and then its argument prototype would still apply.  */
17095 #ifdef __cplusplus
17096 extern "C"
17097 #endif
17098 char dlopen ();
17099 int
17100 main ()
17101 {
17102 return dlopen ();
17103   ;
17104   return 0;
17105 }
17106 _ACEOF
17107 if ac_fn_c_try_link "$LINENO"; then :
17108   ac_cv_lib_svld_dlopen=yes
17109 else
17110   ac_cv_lib_svld_dlopen=no
17111 fi
17112 rm -f core conftest.err conftest.$ac_objext \
17113     conftest$ac_exeext conftest.$ac_ext
17114 LIBS=$ac_check_lib_save_LIBS
17115 fi
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17117 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17118 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17119   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17120 else
17121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17122 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17123 if ${ac_cv_lib_dld_dld_link+:} false; then :
17124   $as_echo_n "(cached) " >&6
17125 else
17126   ac_check_lib_save_LIBS=$LIBS
17127 LIBS="-ldld  $LIBS"
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h.  */
17130
17131 /* Override any GCC internal prototype to avoid an error.
17132    Use char because int might match the return type of a GCC
17133    builtin and then its argument prototype would still apply.  */
17134 #ifdef __cplusplus
17135 extern "C"
17136 #endif
17137 char dld_link ();
17138 int
17139 main ()
17140 {
17141 return dld_link ();
17142   ;
17143   return 0;
17144 }
17145 _ACEOF
17146 if ac_fn_c_try_link "$LINENO"; then :
17147   ac_cv_lib_dld_dld_link=yes
17148 else
17149   ac_cv_lib_dld_dld_link=no
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152     conftest$ac_exeext conftest.$ac_ext
17153 LIBS=$ac_check_lib_save_LIBS
17154 fi
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17156 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17157 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17158   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17159 fi
17160
17161
17162 fi
17163
17164
17165 fi
17166
17167
17168 fi
17169
17170
17171 fi
17172
17173
17174 fi
17175
17176     ;;
17177   esac
17178
17179   if test no = "$lt_cv_dlopen"; then
17180     enable_dlopen=no
17181   else
17182     enable_dlopen=yes
17183   fi
17184
17185   case $lt_cv_dlopen in
17186   dlopen)
17187     save_CPPFLAGS=$CPPFLAGS
17188     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17189
17190     save_LDFLAGS=$LDFLAGS
17191     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17192
17193     save_LIBS=$LIBS
17194     LIBS="$lt_cv_dlopen_libs $LIBS"
17195
17196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17197 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17198 if ${lt_cv_dlopen_self+:} false; then :
17199   $as_echo_n "(cached) " >&6
17200 else
17201           if test yes = "$cross_compiling"; then :
17202   lt_cv_dlopen_self=cross
17203 else
17204   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17205   lt_status=$lt_dlunknown
17206   cat > conftest.$ac_ext <<_LT_EOF
17207 #line $LINENO "configure"
17208 #include "confdefs.h"
17209
17210 #if HAVE_DLFCN_H
17211 #include <dlfcn.h>
17212 #endif
17213
17214 #include <stdio.h>
17215
17216 #ifdef RTLD_GLOBAL
17217 #  define LT_DLGLOBAL           RTLD_GLOBAL
17218 #else
17219 #  ifdef DL_GLOBAL
17220 #    define LT_DLGLOBAL         DL_GLOBAL
17221 #  else
17222 #    define LT_DLGLOBAL         0
17223 #  endif
17224 #endif
17225
17226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17227    find out it does not work in some platform. */
17228 #ifndef LT_DLLAZY_OR_NOW
17229 #  ifdef RTLD_LAZY
17230 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17231 #  else
17232 #    ifdef DL_LAZY
17233 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17234 #    else
17235 #      ifdef RTLD_NOW
17236 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17237 #      else
17238 #        ifdef DL_NOW
17239 #          define LT_DLLAZY_OR_NOW      DL_NOW
17240 #        else
17241 #          define LT_DLLAZY_OR_NOW      0
17242 #        endif
17243 #      endif
17244 #    endif
17245 #  endif
17246 #endif
17247
17248 /* When -fvisibility=hidden is used, assume the code has been annotated
17249    correspondingly for the symbols needed.  */
17250 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17251 int fnord () __attribute__((visibility("default")));
17252 #endif
17253
17254 int fnord () { return 42; }
17255 int main ()
17256 {
17257   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17258   int status = $lt_dlunknown;
17259
17260   if (self)
17261     {
17262       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17263       else
17264         {
17265           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17266           else puts (dlerror ());
17267         }
17268       /* dlclose (self); */
17269     }
17270   else
17271     puts (dlerror ());
17272
17273   return status;
17274 }
17275 _LT_EOF
17276   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17277   (eval $ac_link) 2>&5
17278   ac_status=$?
17279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17280   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17281     (./conftest; exit; ) >&5 2>/dev/null
17282     lt_status=$?
17283     case x$lt_status in
17284       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17285       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17286       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17287     esac
17288   else :
17289     # compilation failed
17290     lt_cv_dlopen_self=no
17291   fi
17292 fi
17293 rm -fr conftest*
17294
17295
17296 fi
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17298 $as_echo "$lt_cv_dlopen_self" >&6; }
17299
17300     if test yes = "$lt_cv_dlopen_self"; then
17301       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17302       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17303 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17304 if ${lt_cv_dlopen_self_static+:} false; then :
17305   $as_echo_n "(cached) " >&6
17306 else
17307           if test yes = "$cross_compiling"; then :
17308   lt_cv_dlopen_self_static=cross
17309 else
17310   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17311   lt_status=$lt_dlunknown
17312   cat > conftest.$ac_ext <<_LT_EOF
17313 #line $LINENO "configure"
17314 #include "confdefs.h"
17315
17316 #if HAVE_DLFCN_H
17317 #include <dlfcn.h>
17318 #endif
17319
17320 #include <stdio.h>
17321
17322 #ifdef RTLD_GLOBAL
17323 #  define LT_DLGLOBAL           RTLD_GLOBAL
17324 #else
17325 #  ifdef DL_GLOBAL
17326 #    define LT_DLGLOBAL         DL_GLOBAL
17327 #  else
17328 #    define LT_DLGLOBAL         0
17329 #  endif
17330 #endif
17331
17332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17333    find out it does not work in some platform. */
17334 #ifndef LT_DLLAZY_OR_NOW
17335 #  ifdef RTLD_LAZY
17336 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17337 #  else
17338 #    ifdef DL_LAZY
17339 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17340 #    else
17341 #      ifdef RTLD_NOW
17342 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17343 #      else
17344 #        ifdef DL_NOW
17345 #          define LT_DLLAZY_OR_NOW      DL_NOW
17346 #        else
17347 #          define LT_DLLAZY_OR_NOW      0
17348 #        endif
17349 #      endif
17350 #    endif
17351 #  endif
17352 #endif
17353
17354 /* When -fvisibility=hidden is used, assume the code has been annotated
17355    correspondingly for the symbols needed.  */
17356 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17357 int fnord () __attribute__((visibility("default")));
17358 #endif
17359
17360 int fnord () { return 42; }
17361 int main ()
17362 {
17363   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17364   int status = $lt_dlunknown;
17365
17366   if (self)
17367     {
17368       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17369       else
17370         {
17371           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17372           else puts (dlerror ());
17373         }
17374       /* dlclose (self); */
17375     }
17376   else
17377     puts (dlerror ());
17378
17379   return status;
17380 }
17381 _LT_EOF
17382   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17383   (eval $ac_link) 2>&5
17384   ac_status=$?
17385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17386   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17387     (./conftest; exit; ) >&5 2>/dev/null
17388     lt_status=$?
17389     case x$lt_status in
17390       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17391       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17392       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17393     esac
17394   else :
17395     # compilation failed
17396     lt_cv_dlopen_self_static=no
17397   fi
17398 fi
17399 rm -fr conftest*
17400
17401
17402 fi
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17404 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17405     fi
17406
17407     CPPFLAGS=$save_CPPFLAGS
17408     LDFLAGS=$save_LDFLAGS
17409     LIBS=$save_LIBS
17410     ;;
17411   esac
17412
17413   case $lt_cv_dlopen_self in
17414   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17415   *) enable_dlopen_self=unknown ;;
17416   esac
17417
17418   case $lt_cv_dlopen_self_static in
17419   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17420   *) enable_dlopen_self_static=unknown ;;
17421   esac
17422 fi
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440 striplib=
17441 old_striplib=
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17443 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17444 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17445   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17446   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17448 $as_echo "yes" >&6; }
17449 else
17450 # FIXME - insert some real tests, host_os isn't really good enough
17451   case $host_os in
17452   darwin*)
17453     if test -n "$STRIP"; then
17454       striplib="$STRIP -x"
17455       old_striplib="$STRIP -S"
17456       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17457 $as_echo "yes" >&6; }
17458     else
17459       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17460 $as_echo "no" >&6; }
17461     fi
17462     ;;
17463   *)
17464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17465 $as_echo "no" >&6; }
17466     ;;
17467   esac
17468 fi
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481   # Report what library types will actually be built
17482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17483 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17485 $as_echo "$can_build_shared" >&6; }
17486
17487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17488 $as_echo_n "checking whether to build shared libraries... " >&6; }
17489   test no = "$can_build_shared" && enable_shared=no
17490
17491   # On AIX, shared libraries and static libraries use the same namespace, and
17492   # are all built from PIC.
17493   case $host_os in
17494   aix3*)
17495     test yes = "$enable_shared" && enable_static=no
17496     if test -n "$RANLIB"; then
17497       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17498       postinstall_cmds='$RANLIB $lib'
17499     fi
17500     ;;
17501
17502   aix[4-9]*)
17503     if test ia64 != "$host_cpu"; then
17504       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17505       yes,aix,yes) ;;                   # shared object as lib.so file only
17506       yes,svr4,*) ;;                    # shared object as lib.so archive member only
17507       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
17508       esac
17509     fi
17510     ;;
17511   esac
17512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17513 $as_echo "$enable_shared" >&6; }
17514
17515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17516 $as_echo_n "checking whether to build static libraries... " >&6; }
17517   # Make sure either enable_shared or enable_static is yes.
17518   test yes = "$enable_shared" || enable_static=yes
17519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17520 $as_echo "$enable_static" >&6; }
17521
17522
17523
17524
17525 fi
17526 ac_ext=c
17527 ac_cpp='$CPP $CPPFLAGS'
17528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17531
17532 CC=$lt_save_CC
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548         ac_config_commands="$ac_config_commands libtool"
17549
17550
17551
17552
17553 # Only expand once:
17554
17555
17556
17557 if test -n "$ac_tool_prefix"; then
17558   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17559 set dummy ${ac_tool_prefix}windres; ac_word=$2
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17561 $as_echo_n "checking for $ac_word... " >&6; }
17562 if ${ac_cv_prog_RC+:} false; then :
17563   $as_echo_n "(cached) " >&6
17564 else
17565   if test -n "$RC"; then
17566   ac_cv_prog_RC="$RC" # Let the user override the test.
17567 else
17568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17569 for as_dir in $PATH
17570 do
17571   IFS=$as_save_IFS
17572   test -z "$as_dir" && as_dir=.
17573     for ac_exec_ext in '' $ac_executable_extensions; do
17574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17575     ac_cv_prog_RC="${ac_tool_prefix}windres"
17576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17577     break 2
17578   fi
17579 done
17580   done
17581 IFS=$as_save_IFS
17582
17583 fi
17584 fi
17585 RC=$ac_cv_prog_RC
17586 if test -n "$RC"; then
17587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17588 $as_echo "$RC" >&6; }
17589 else
17590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17591 $as_echo "no" >&6; }
17592 fi
17593
17594
17595 fi
17596 if test -z "$ac_cv_prog_RC"; then
17597   ac_ct_RC=$RC
17598   # Extract the first word of "windres", so it can be a program name with args.
17599 set dummy windres; ac_word=$2
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17601 $as_echo_n "checking for $ac_word... " >&6; }
17602 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17603   $as_echo_n "(cached) " >&6
17604 else
17605   if test -n "$ac_ct_RC"; then
17606   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17607 else
17608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17609 for as_dir in $PATH
17610 do
17611   IFS=$as_save_IFS
17612   test -z "$as_dir" && as_dir=.
17613     for ac_exec_ext in '' $ac_executable_extensions; do
17614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17615     ac_cv_prog_ac_ct_RC="windres"
17616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17617     break 2
17618   fi
17619 done
17620   done
17621 IFS=$as_save_IFS
17622
17623 fi
17624 fi
17625 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17626 if test -n "$ac_ct_RC"; then
17627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17628 $as_echo "$ac_ct_RC" >&6; }
17629 else
17630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17631 $as_echo "no" >&6; }
17632 fi
17633
17634   if test "x$ac_ct_RC" = x; then
17635     RC=""
17636   else
17637     case $cross_compiling:$ac_tool_warned in
17638 yes:)
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17641 ac_tool_warned=yes ;;
17642 esac
17643     RC=$ac_ct_RC
17644   fi
17645 else
17646   RC="$ac_cv_prog_RC"
17647 fi
17648
17649
17650
17651
17652 # Source file extension for RC test sources.
17653 ac_ext=rc
17654
17655 # Object file extension for compiled RC test sources.
17656 objext=o
17657 objext_RC=$objext
17658
17659 # Code to be used in simple compile tests
17660 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17661
17662 # Code to be used in simple link tests
17663 lt_simple_link_test_code=$lt_simple_compile_test_code
17664
17665 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17666
17667
17668
17669
17670
17671
17672 # If no C compiler was specified, use CC.
17673 LTCC=${LTCC-"$CC"}
17674
17675 # If no C compiler flags were specified, use CFLAGS.
17676 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17677
17678 # Allow CC to be a program name with arguments.
17679 compiler=$CC
17680
17681
17682 # save warnings/boilerplate of simple test code
17683 ac_outfile=conftest.$ac_objext
17684 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17686 _lt_compiler_boilerplate=`cat conftest.err`
17687 $RM conftest*
17688
17689 ac_outfile=conftest.$ac_objext
17690 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17692 _lt_linker_boilerplate=`cat conftest.err`
17693 $RM -r conftest*
17694
17695
17696 # Allow CC to be a program name with arguments.
17697 lt_save_CC=$CC
17698 lt_save_CFLAGS=$CFLAGS
17699 lt_save_GCC=$GCC
17700 GCC=
17701 CC=${RC-"windres"}
17702 CFLAGS=
17703 compiler=$CC
17704 compiler_RC=$CC
17705 func_cc_basename $compiler
17706 cc_basename=$func_cc_basename_result
17707
17708 lt_cv_prog_compiler_c_o_RC=yes
17709
17710 if test -n "$compiler"; then
17711   :
17712
17713
17714
17715 fi
17716
17717 GCC=$lt_save_GCC
17718 ac_ext=c
17719 ac_cpp='$CPP $CPPFLAGS'
17720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17723
17724 CC=$lt_save_CC
17725 CFLAGS=$lt_save_CFLAGS
17726
17727
17728 case "$host_os" in
17729   mingw* | cygwin*) is_woe32=yes ;;
17730   *) is_woe32=no ;;
17731 esac
17732  if test $is_woe32 = yes; then
17733   WOE32_TRUE=
17734   WOE32_FALSE='#'
17735 else
17736   WOE32_TRUE='#'
17737   WOE32_FALSE=
17738 fi
17739
17740
17741 case "$host_os" in
17742   cygwin*) ac_cv_lib_error_at_line=no ;;
17743 esac
17744
17745
17746
17747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17748 $as_echo_n "checking whether NLS is requested... " >&6; }
17749     # Check whether --enable-nls was given.
17750 if test "${enable_nls+set}" = set; then :
17751   enableval=$enable_nls; USE_NLS=$enableval
17752 else
17753   USE_NLS=yes
17754 fi
17755
17756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17757 $as_echo "$USE_NLS" >&6; }
17758
17759
17760
17761
17762       GETTEXT_MACRO_VERSION=0.19
17763
17764
17765
17766
17767 # Prepare PATH_SEPARATOR.
17768 # The user is always right.
17769 if test "${PATH_SEPARATOR+set}" != set; then
17770   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17771   # contains only /bin. Note that ksh looks also at the FPATH variable,
17772   # so we have to set that as well for the test.
17773   PATH_SEPARATOR=:
17774   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17775     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17776            || PATH_SEPARATOR=';'
17777        }
17778 fi
17779
17780 # Find out how to test for executable files. Don't use a zero-byte file,
17781 # as systems may use methods other than mode bits to determine executability.
17782 cat >conf$$.file <<_ASEOF
17783 #! /bin/sh
17784 exit 0
17785 _ASEOF
17786 chmod +x conf$$.file
17787 if test -x conf$$.file >/dev/null 2>&1; then
17788   ac_executable_p="test -x"
17789 else
17790   ac_executable_p="test -f"
17791 fi
17792 rm -f conf$$.file
17793
17794 # Extract the first word of "msgfmt", so it can be a program name with args.
17795 set dummy msgfmt; ac_word=$2
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17797 $as_echo_n "checking for $ac_word... " >&6; }
17798 if ${ac_cv_path_MSGFMT+:} false; then :
17799   $as_echo_n "(cached) " >&6
17800 else
17801   case "$MSGFMT" in
17802   [\\/]* | ?:[\\/]*)
17803     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17804     ;;
17805   *)
17806     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17807     for ac_dir in $PATH; do
17808       IFS="$ac_save_IFS"
17809       test -z "$ac_dir" && ac_dir=.
17810       for ac_exec_ext in '' $ac_executable_extensions; do
17811         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17812           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17813           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17814      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17815             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17816             break 2
17817           fi
17818         fi
17819       done
17820     done
17821     IFS="$ac_save_IFS"
17822   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17823     ;;
17824 esac
17825 fi
17826 MSGFMT="$ac_cv_path_MSGFMT"
17827 if test "$MSGFMT" != ":"; then
17828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17829 $as_echo "$MSGFMT" >&6; }
17830 else
17831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832 $as_echo "no" >&6; }
17833 fi
17834
17835   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17836 set dummy gmsgfmt; ac_word=$2
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17838 $as_echo_n "checking for $ac_word... " >&6; }
17839 if ${ac_cv_path_GMSGFMT+:} false; then :
17840   $as_echo_n "(cached) " >&6
17841 else
17842   case $GMSGFMT in
17843   [\\/]* | ?:[\\/]*)
17844   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17845   ;;
17846   *)
17847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17848 for as_dir in $PATH
17849 do
17850   IFS=$as_save_IFS
17851   test -z "$as_dir" && as_dir=.
17852     for ac_exec_ext in '' $ac_executable_extensions; do
17853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17854     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17856     break 2
17857   fi
17858 done
17859   done
17860 IFS=$as_save_IFS
17861
17862   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17863   ;;
17864 esac
17865 fi
17866 GMSGFMT=$ac_cv_path_GMSGFMT
17867 if test -n "$GMSGFMT"; then
17868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17869 $as_echo "$GMSGFMT" >&6; }
17870 else
17871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17872 $as_echo "no" >&6; }
17873 fi
17874
17875
17876
17877     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17878     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
17879     *) MSGFMT_015=$MSGFMT ;;
17880   esac
17881
17882   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17883     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
17884     *) GMSGFMT_015=$GMSGFMT ;;
17885   esac
17886
17887
17888
17889 # Prepare PATH_SEPARATOR.
17890 # The user is always right.
17891 if test "${PATH_SEPARATOR+set}" != set; then
17892   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17893   # contains only /bin. Note that ksh looks also at the FPATH variable,
17894   # so we have to set that as well for the test.
17895   PATH_SEPARATOR=:
17896   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17897     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17898            || PATH_SEPARATOR=';'
17899        }
17900 fi
17901
17902 # Find out how to test for executable files. Don't use a zero-byte file,
17903 # as systems may use methods other than mode bits to determine executability.
17904 cat >conf$$.file <<_ASEOF
17905 #! /bin/sh
17906 exit 0
17907 _ASEOF
17908 chmod +x conf$$.file
17909 if test -x conf$$.file >/dev/null 2>&1; then
17910   ac_executable_p="test -x"
17911 else
17912   ac_executable_p="test -f"
17913 fi
17914 rm -f conf$$.file
17915
17916 # Extract the first word of "xgettext", so it can be a program name with args.
17917 set dummy xgettext; ac_word=$2
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17919 $as_echo_n "checking for $ac_word... " >&6; }
17920 if ${ac_cv_path_XGETTEXT+:} false; then :
17921   $as_echo_n "(cached) " >&6
17922 else
17923   case "$XGETTEXT" in
17924   [\\/]* | ?:[\\/]*)
17925     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17926     ;;
17927   *)
17928     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17929     for ac_dir in $PATH; do
17930       IFS="$ac_save_IFS"
17931       test -z "$ac_dir" && ac_dir=.
17932       for ac_exec_ext in '' $ac_executable_extensions; do
17933         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17934           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17935           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17936      (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
17937             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17938             break 2
17939           fi
17940         fi
17941       done
17942     done
17943     IFS="$ac_save_IFS"
17944   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17945     ;;
17946 esac
17947 fi
17948 XGETTEXT="$ac_cv_path_XGETTEXT"
17949 if test "$XGETTEXT" != ":"; then
17950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17951 $as_echo "$XGETTEXT" >&6; }
17952 else
17953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17954 $as_echo "no" >&6; }
17955 fi
17956
17957     rm -f messages.po
17958
17959     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17960     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
17961     *) XGETTEXT_015=$XGETTEXT ;;
17962   esac
17963
17964
17965
17966 # Prepare PATH_SEPARATOR.
17967 # The user is always right.
17968 if test "${PATH_SEPARATOR+set}" != set; then
17969   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17970   # contains only /bin. Note that ksh looks also at the FPATH variable,
17971   # so we have to set that as well for the test.
17972   PATH_SEPARATOR=:
17973   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17974     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17975            || PATH_SEPARATOR=';'
17976        }
17977 fi
17978
17979 # Find out how to test for executable files. Don't use a zero-byte file,
17980 # as systems may use methods other than mode bits to determine executability.
17981 cat >conf$$.file <<_ASEOF
17982 #! /bin/sh
17983 exit 0
17984 _ASEOF
17985 chmod +x conf$$.file
17986 if test -x conf$$.file >/dev/null 2>&1; then
17987   ac_executable_p="test -x"
17988 else
17989   ac_executable_p="test -f"
17990 fi
17991 rm -f conf$$.file
17992
17993 # Extract the first word of "msgmerge", so it can be a program name with args.
17994 set dummy msgmerge; ac_word=$2
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17996 $as_echo_n "checking for $ac_word... " >&6; }
17997 if ${ac_cv_path_MSGMERGE+:} false; then :
17998   $as_echo_n "(cached) " >&6
17999 else
18000   case "$MSGMERGE" in
18001   [\\/]* | ?:[\\/]*)
18002     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18003     ;;
18004   *)
18005     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18006     for ac_dir in $PATH; do
18007       IFS="$ac_save_IFS"
18008       test -z "$ac_dir" && ac_dir=.
18009       for ac_exec_ext in '' $ac_executable_extensions; do
18010         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18011           echo "$as_me: trying $ac_dir/$ac_word..." >&5
18012           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
18013             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18014             break 2
18015           fi
18016         fi
18017       done
18018     done
18019     IFS="$ac_save_IFS"
18020   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18021     ;;
18022 esac
18023 fi
18024 MSGMERGE="$ac_cv_path_MSGMERGE"
18025 if test "$MSGMERGE" != ":"; then
18026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18027 $as_echo "$MSGMERGE" >&6; }
18028 else
18029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030 $as_echo "no" >&6; }
18031 fi
18032
18033
18034         test -n "$localedir" || localedir='${datadir}/locale'
18035
18036
18037     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
18038
18039
18040   ac_config_commands="$ac_config_commands po-directories"
18041
18042
18043
18044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18045 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18046 if ${ac_cv_gnu_library_2+:} false; then :
18047   $as_echo_n "(cached) " >&6
18048 else
18049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h.  */
18051
18052 #include <features.h>
18053 #ifdef __GNU_LIBRARY__
18054  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
18055   Lucky GNU user
18056  #endif
18057 #endif
18058
18059 _ACEOF
18060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18061   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18062   ac_cv_gnu_library_2=yes
18063 else
18064   ac_cv_gnu_library_2=no
18065 fi
18066 rm -f conftest*
18067
18068
18069
18070 fi
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18072 $as_echo "$ac_cv_gnu_library_2" >&6; }
18073
18074     GLIBC2="$ac_cv_gnu_library_2"
18075
18076
18077
18078
18079   CFLAG_VISIBILITY=
18080   HAVE_VISIBILITY=0
18081   if test -n "$GCC"; then
18082                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
18083 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
18084     if ${gl_cv_cc_vis_werror+:} false; then :
18085   $as_echo_n "(cached) " >&6
18086 else
18087
18088       gl_save_CFLAGS="$CFLAGS"
18089       CFLAGS="$CFLAGS -Werror"
18090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h.  */
18092
18093 int
18094 main ()
18095 {
18096
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 if ac_fn_c_try_compile "$LINENO"; then :
18102   gl_cv_cc_vis_werror=yes
18103 else
18104   gl_cv_cc_vis_werror=no
18105 fi
18106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18107       CFLAGS="$gl_save_CFLAGS"
18108 fi
18109
18110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
18111 $as_echo "$gl_cv_cc_vis_werror" >&6; }
18112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
18113 $as_echo_n "checking for simple visibility declarations... " >&6; }
18114     if ${gl_cv_cc_visibility+:} false; then :
18115   $as_echo_n "(cached) " >&6
18116 else
18117
18118       gl_save_CFLAGS="$CFLAGS"
18119       CFLAGS="$CFLAGS -fvisibility=hidden"
18120                                     if test $gl_cv_cc_vis_werror = yes; then
18121         CFLAGS="$CFLAGS -Werror"
18122       fi
18123       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124 /* end confdefs.h.  */
18125 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
18126              extern __attribute__((__visibility__("default"))) int exportedvar;
18127              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
18128              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
18129              void dummyfunc (void) {}
18130
18131 int
18132 main ()
18133 {
18134
18135   ;
18136   return 0;
18137 }
18138 _ACEOF
18139 if ac_fn_c_try_compile "$LINENO"; then :
18140   gl_cv_cc_visibility=yes
18141 else
18142   gl_cv_cc_visibility=no
18143 fi
18144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145       CFLAGS="$gl_save_CFLAGS"
18146 fi
18147
18148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
18149 $as_echo "$gl_cv_cc_visibility" >&6; }
18150     if test $gl_cv_cc_visibility = yes; then
18151       CFLAG_VISIBILITY="-fvisibility=hidden"
18152       HAVE_VISIBILITY=1
18153     fi
18154   fi
18155
18156
18157
18158 cat >>confdefs.h <<_ACEOF
18159 #define HAVE_VISIBILITY $HAVE_VISIBILITY
18160 _ACEOF
18161
18162
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18164 $as_echo_n "checking for inline... " >&6; }
18165 if ${ac_cv_c_inline+:} false; then :
18166   $as_echo_n "(cached) " >&6
18167 else
18168   ac_cv_c_inline=no
18169 for ac_kw in inline __inline__ __inline; do
18170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h.  */
18172 #ifndef __cplusplus
18173 typedef int foo_t;
18174 static $ac_kw foo_t static_foo () {return 0; }
18175 $ac_kw foo_t foo () {return 0; }
18176 #endif
18177
18178 _ACEOF
18179 if ac_fn_c_try_compile "$LINENO"; then :
18180   ac_cv_c_inline=$ac_kw
18181 fi
18182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18183   test "$ac_cv_c_inline" != no && break
18184 done
18185
18186 fi
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18188 $as_echo "$ac_cv_c_inline" >&6; }
18189
18190 case $ac_cv_c_inline in
18191   inline | yes) ;;
18192   *)
18193     case $ac_cv_c_inline in
18194       no) ac_val=;;
18195       *) ac_val=$ac_cv_c_inline;;
18196     esac
18197     cat >>confdefs.h <<_ACEOF
18198 #ifndef __cplusplus
18199 #define inline $ac_val
18200 #endif
18201 _ACEOF
18202     ;;
18203 esac
18204
18205 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18206 if test "x$ac_cv_type_size_t" = xyes; then :
18207
18208 else
18209
18210 cat >>confdefs.h <<_ACEOF
18211 #define size_t unsigned int
18212 _ACEOF
18213
18214 fi
18215
18216
18217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18218 $as_echo_n "checking for stdint.h... " >&6; }
18219 if ${gl_cv_header_stdint_h+:} false; then :
18220   $as_echo_n "(cached) " >&6
18221 else
18222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h.  */
18224 #include <sys/types.h>
18225             #include <stdint.h>
18226 int
18227 main ()
18228 {
18229 uintmax_t i = (uintmax_t) -1; return !i;
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 if ac_fn_c_try_compile "$LINENO"; then :
18235   gl_cv_header_stdint_h=yes
18236 else
18237   gl_cv_header_stdint_h=no
18238 fi
18239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18240 fi
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18242 $as_echo "$gl_cv_header_stdint_h" >&6; }
18243   if test $gl_cv_header_stdint_h = yes; then
18244
18245 cat >>confdefs.h <<_ACEOF
18246 #define HAVE_STDINT_H_WITH_UINTMAX 1
18247 _ACEOF
18248
18249   fi
18250
18251 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18252 # for constant arguments.  Useless!
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18254 $as_echo_n "checking for working alloca.h... " >&6; }
18255 if ${ac_cv_working_alloca_h+:} false; then :
18256   $as_echo_n "(cached) " >&6
18257 else
18258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h.  */
18260 #include <alloca.h>
18261 int
18262 main ()
18263 {
18264 char *p = (char *) alloca (2 * sizeof (int));
18265                           if (p) return 0;
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 if ac_fn_c_try_link "$LINENO"; then :
18271   ac_cv_working_alloca_h=yes
18272 else
18273   ac_cv_working_alloca_h=no
18274 fi
18275 rm -f core conftest.err conftest.$ac_objext \
18276     conftest$ac_exeext conftest.$ac_ext
18277 fi
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18279 $as_echo "$ac_cv_working_alloca_h" >&6; }
18280 if test $ac_cv_working_alloca_h = yes; then
18281
18282 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18283
18284 fi
18285
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18287 $as_echo_n "checking for alloca... " >&6; }
18288 if ${ac_cv_func_alloca_works+:} false; then :
18289   $as_echo_n "(cached) " >&6
18290 else
18291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292 /* end confdefs.h.  */
18293 #ifdef __GNUC__
18294 # define alloca __builtin_alloca
18295 #else
18296 # ifdef _MSC_VER
18297 #  include <malloc.h>
18298 #  define alloca _alloca
18299 # else
18300 #  ifdef HAVE_ALLOCA_H
18301 #   include <alloca.h>
18302 #  else
18303 #   ifdef _AIX
18304  #pragma alloca
18305 #   else
18306 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18307 void *alloca (size_t);
18308 #    endif
18309 #   endif
18310 #  endif
18311 # endif
18312 #endif
18313
18314 int
18315 main ()
18316 {
18317 char *p = (char *) alloca (1);
18318                                     if (p) return 0;
18319   ;
18320   return 0;
18321 }
18322 _ACEOF
18323 if ac_fn_c_try_link "$LINENO"; then :
18324   ac_cv_func_alloca_works=yes
18325 else
18326   ac_cv_func_alloca_works=no
18327 fi
18328 rm -f core conftest.err conftest.$ac_objext \
18329     conftest$ac_exeext conftest.$ac_ext
18330 fi
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18332 $as_echo "$ac_cv_func_alloca_works" >&6; }
18333
18334 if test $ac_cv_func_alloca_works = yes; then
18335
18336 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18337
18338 else
18339   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18340 # that cause trouble.  Some versions do not even contain alloca or
18341 # contain a buggy version.  If you still want to use their alloca,
18342 # use ar to extract alloca.o from them instead of compiling alloca.c.
18343
18344 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18345
18346 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18347
18348
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18350 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18351 if ${ac_cv_os_cray+:} false; then :
18352   $as_echo_n "(cached) " >&6
18353 else
18354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355 /* end confdefs.h.  */
18356 #if defined CRAY && ! defined CRAY2
18357 webecray
18358 #else
18359 wenotbecray
18360 #endif
18361
18362 _ACEOF
18363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18364   $EGREP "webecray" >/dev/null 2>&1; then :
18365   ac_cv_os_cray=yes
18366 else
18367   ac_cv_os_cray=no
18368 fi
18369 rm -f conftest*
18370
18371 fi
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18373 $as_echo "$ac_cv_os_cray" >&6; }
18374 if test $ac_cv_os_cray = yes; then
18375   for ac_func in _getb67 GETB67 getb67; do
18376     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18379
18380 cat >>confdefs.h <<_ACEOF
18381 #define CRAY_STACKSEG_END $ac_func
18382 _ACEOF
18383
18384     break
18385 fi
18386
18387   done
18388 fi
18389
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18391 $as_echo_n "checking stack direction for C alloca... " >&6; }
18392 if ${ac_cv_c_stack_direction+:} false; then :
18393   $as_echo_n "(cached) " >&6
18394 else
18395   if test "$cross_compiling" = yes; then :
18396   ac_cv_c_stack_direction=0
18397 else
18398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h.  */
18400 $ac_includes_default
18401 int
18402 find_stack_direction (int *addr, int depth)
18403 {
18404   int dir, dummy = 0;
18405   if (! addr)
18406     addr = &dummy;
18407   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18408   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18409   return dir + dummy;
18410 }
18411
18412 int
18413 main (int argc, char **argv)
18414 {
18415   return find_stack_direction (0, argc + !argv + 20) < 0;
18416 }
18417 _ACEOF
18418 if ac_fn_c_try_run "$LINENO"; then :
18419   ac_cv_c_stack_direction=1
18420 else
18421   ac_cv_c_stack_direction=-1
18422 fi
18423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18424   conftest.$ac_objext conftest.beam conftest.$ac_ext
18425 fi
18426
18427 fi
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18429 $as_echo "$ac_cv_c_stack_direction" >&6; }
18430 cat >>confdefs.h <<_ACEOF
18431 #define STACK_DIRECTION $ac_cv_c_stack_direction
18432 _ACEOF
18433
18434
18435 fi
18436
18437
18438
18439
18440   for ac_header in $ac_header_list
18441 do :
18442   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18443 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18444 "
18445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18446   cat >>confdefs.h <<_ACEOF
18447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18448 _ACEOF
18449
18450 fi
18451
18452 done
18453
18454
18455
18456
18457
18458
18459
18460
18461 for ac_func in getpagesize
18462 do :
18463   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18464 if test "x$ac_cv_func_getpagesize" = xyes; then :
18465   cat >>confdefs.h <<_ACEOF
18466 #define HAVE_GETPAGESIZE 1
18467 _ACEOF
18468
18469 fi
18470 done
18471
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18473 $as_echo_n "checking for working mmap... " >&6; }
18474 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18475   $as_echo_n "(cached) " >&6
18476 else
18477   if test "$cross_compiling" = yes; then :
18478   ac_cv_func_mmap_fixed_mapped=no
18479 else
18480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h.  */
18482 $ac_includes_default
18483 /* malloc might have been renamed as rpl_malloc. */
18484 #undef malloc
18485
18486 /* Thanks to Mike Haertel and Jim Avera for this test.
18487    Here is a matrix of mmap possibilities:
18488         mmap private not fixed
18489         mmap private fixed at somewhere currently unmapped
18490         mmap private fixed at somewhere already mapped
18491         mmap shared not fixed
18492         mmap shared fixed at somewhere currently unmapped
18493         mmap shared fixed at somewhere already mapped
18494    For private mappings, we should verify that changes cannot be read()
18495    back from the file, nor mmap's back from the file at a different
18496    address.  (There have been systems where private was not correctly
18497    implemented like the infamous i386 svr4.0, and systems where the
18498    VM page cache was not coherent with the file system buffer cache
18499    like early versions of FreeBSD and possibly contemporary NetBSD.)
18500    For shared mappings, we should conversely verify that changes get
18501    propagated back to all the places they're supposed to be.
18502
18503    Grep wants private fixed already mapped.
18504    The main things grep needs to know about mmap are:
18505    * does it exist and is it safe to write into the mmap'd area
18506    * how to use it (BSD variants)  */
18507
18508 #include <fcntl.h>
18509 #include <sys/mman.h>
18510
18511 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18512 char *malloc ();
18513 #endif
18514
18515 /* This mess was copied from the GNU getpagesize.h.  */
18516 #ifndef HAVE_GETPAGESIZE
18517 # ifdef _SC_PAGESIZE
18518 #  define getpagesize() sysconf(_SC_PAGESIZE)
18519 # else /* no _SC_PAGESIZE */
18520 #  ifdef HAVE_SYS_PARAM_H
18521 #   include <sys/param.h>
18522 #   ifdef EXEC_PAGESIZE
18523 #    define getpagesize() EXEC_PAGESIZE
18524 #   else /* no EXEC_PAGESIZE */
18525 #    ifdef NBPG
18526 #     define getpagesize() NBPG * CLSIZE
18527 #     ifndef CLSIZE
18528 #      define CLSIZE 1
18529 #     endif /* no CLSIZE */
18530 #    else /* no NBPG */
18531 #     ifdef NBPC
18532 #      define getpagesize() NBPC
18533 #     else /* no NBPC */
18534 #      ifdef PAGESIZE
18535 #       define getpagesize() PAGESIZE
18536 #      endif /* PAGESIZE */
18537 #     endif /* no NBPC */
18538 #    endif /* no NBPG */
18539 #   endif /* no EXEC_PAGESIZE */
18540 #  else /* no HAVE_SYS_PARAM_H */
18541 #   define getpagesize() 8192   /* punt totally */
18542 #  endif /* no HAVE_SYS_PARAM_H */
18543 # endif /* no _SC_PAGESIZE */
18544
18545 #endif /* no HAVE_GETPAGESIZE */
18546
18547 int
18548 main ()
18549 {
18550   char *data, *data2, *data3;
18551   const char *cdata2;
18552   int i, pagesize;
18553   int fd, fd2;
18554
18555   pagesize = getpagesize ();
18556
18557   /* First, make a file with some known garbage in it. */
18558   data = (char *) malloc (pagesize);
18559   if (!data)
18560     return 1;
18561   for (i = 0; i < pagesize; ++i)
18562     *(data + i) = rand ();
18563   umask (0);
18564   fd = creat ("conftest.mmap", 0600);
18565   if (fd < 0)
18566     return 2;
18567   if (write (fd, data, pagesize) != pagesize)
18568     return 3;
18569   close (fd);
18570
18571   /* Next, check that the tail of a page is zero-filled.  File must have
18572      non-zero length, otherwise we risk SIGBUS for entire page.  */
18573   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18574   if (fd2 < 0)
18575     return 4;
18576   cdata2 = "";
18577   if (write (fd2, cdata2, 1) != 1)
18578     return 5;
18579   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18580   if (data2 == MAP_FAILED)
18581     return 6;
18582   for (i = 0; i < pagesize; ++i)
18583     if (*(data2 + i))
18584       return 7;
18585   close (fd2);
18586   if (munmap (data2, pagesize))
18587     return 8;
18588
18589   /* Next, try to mmap the file at a fixed address which already has
18590      something else allocated at it.  If we can, also make sure that
18591      we see the same garbage.  */
18592   fd = open ("conftest.mmap", O_RDWR);
18593   if (fd < 0)
18594     return 9;
18595   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18596                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18597     return 10;
18598   for (i = 0; i < pagesize; ++i)
18599     if (*(data + i) != *(data2 + i))
18600       return 11;
18601
18602   /* Finally, make sure that changes to the mapped area do not
18603      percolate back to the file as seen by read().  (This is a bug on
18604      some variants of i386 svr4.0.)  */
18605   for (i = 0; i < pagesize; ++i)
18606     *(data2 + i) = *(data2 + i) + 1;
18607   data3 = (char *) malloc (pagesize);
18608   if (!data3)
18609     return 12;
18610   if (read (fd, data3, pagesize) != pagesize)
18611     return 13;
18612   for (i = 0; i < pagesize; ++i)
18613     if (*(data + i) != *(data3 + i))
18614       return 14;
18615   close (fd);
18616   return 0;
18617 }
18618 _ACEOF
18619 if ac_fn_c_try_run "$LINENO"; then :
18620   ac_cv_func_mmap_fixed_mapped=yes
18621 else
18622   ac_cv_func_mmap_fixed_mapped=no
18623 fi
18624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18625   conftest.$ac_objext conftest.beam conftest.$ac_ext
18626 fi
18627
18628 fi
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18630 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18631 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18632
18633 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18634
18635 fi
18636 rm -f conftest.mmap conftest.txt
18637
18638
18639
18640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18641 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18642 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
18643   $as_echo_n "(cached) " >&6
18644 else
18645
18646       gt_cv_int_divbyzero_sigfpe=
18647       case "$host_os" in
18648         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
18649           # On Mac OS X 10.2 or newer, just assume the same as when cross-
18650           # compiling. If we were to perform the real test, 1 Crash Report
18651           # dialog window would pop up.
18652           case "$host_cpu" in
18653             i[34567]86 | x86_64)
18654               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
18655           esac
18656           ;;
18657       esac
18658       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
18659         if test "$cross_compiling" = yes; then :
18660
18661             # Guess based on the CPU.
18662             case "$host_cpu" in
18663               alpha* | i[34567]86 | x86_64 | m68k | s390*)
18664                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18665               *)
18666                 gt_cv_int_divbyzero_sigfpe="guessing no";;
18667             esac
18668
18669 else
18670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h.  */
18672
18673 #include <stdlib.h>
18674 #include <signal.h>
18675
18676 static void
18677 sigfpe_handler (int sig)
18678 {
18679   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18680   exit (sig != SIGFPE);
18681 }
18682
18683 int x = 1;
18684 int y = 0;
18685 int z;
18686 int nan;
18687
18688 int main ()
18689 {
18690   signal (SIGFPE, sigfpe_handler);
18691 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18692 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18693   signal (SIGTRAP, sigfpe_handler);
18694 #endif
18695 /* Linux/SPARC yields signal SIGILL.  */
18696 #if defined (__sparc__) && defined (__linux__)
18697   signal (SIGILL, sigfpe_handler);
18698 #endif
18699
18700   z = x / y;
18701   nan = y / y;
18702   exit (2);
18703 }
18704
18705 _ACEOF
18706 if ac_fn_c_try_run "$LINENO"; then :
18707   gt_cv_int_divbyzero_sigfpe=yes
18708 else
18709   gt_cv_int_divbyzero_sigfpe=no
18710 fi
18711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18712   conftest.$ac_objext conftest.beam conftest.$ac_ext
18713 fi
18714
18715       fi
18716
18717 fi
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18719 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18720   case "$gt_cv_int_divbyzero_sigfpe" in
18721     *yes) value=1;;
18722     *) value=0;;
18723   esac
18724
18725 cat >>confdefs.h <<_ACEOF
18726 #define INTDIV0_RAISES_SIGFPE $value
18727 _ACEOF
18728
18729
18730
18731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18732 $as_echo_n "checking for inttypes.h... " >&6; }
18733 if ${gl_cv_header_inttypes_h+:} false; then :
18734   $as_echo_n "(cached) " >&6
18735 else
18736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18737 /* end confdefs.h.  */
18738
18739 #include <sys/types.h>
18740 #include <inttypes.h>
18741
18742 int
18743 main ()
18744 {
18745 uintmax_t i = (uintmax_t) -1; return !i;
18746   ;
18747   return 0;
18748 }
18749 _ACEOF
18750 if ac_fn_c_try_compile "$LINENO"; then :
18751   gl_cv_header_inttypes_h=yes
18752 else
18753   gl_cv_header_inttypes_h=no
18754 fi
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756 fi
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18758 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18759   if test $gl_cv_header_inttypes_h = yes; then
18760
18761 cat >>confdefs.h <<_ACEOF
18762 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18763 _ACEOF
18764
18765   fi
18766
18767
18768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18769 $as_echo_n "checking for unsigned long long int... " >&6; }
18770 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18771   $as_echo_n "(cached) " >&6
18772 else
18773   ac_cv_type_unsigned_long_long_int=yes
18774      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18775        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h.  */
18777
18778   /* For now, do not test the preprocessor; as of 2007 there are too many
18779          implementations with broken preprocessors.  Perhaps this can
18780          be revisited in 2012.  In the meantime, code should not expect
18781          #if to work with literals wider than 32 bits.  */
18782       /* Test literals.  */
18783       long long int ll = 9223372036854775807ll;
18784       long long int nll = -9223372036854775807LL;
18785       unsigned long long int ull = 18446744073709551615ULL;
18786       /* Test constant expressions.   */
18787       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18788                      ? 1 : -1)];
18789       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18790                      ? 1 : -1)];
18791       int i = 63;
18792 int
18793 main ()
18794 {
18795 /* Test availability of runtime routines for shift and division.  */
18796       long long int llmax = 9223372036854775807ll;
18797       unsigned long long int ullmax = 18446744073709551615ull;
18798       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18799               | (llmax / ll) | (llmax % ll)
18800               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18801               | (ullmax / ull) | (ullmax % ull));
18802   ;
18803   return 0;
18804 }
18805
18806 _ACEOF
18807 if ac_fn_c_try_link "$LINENO"; then :
18808
18809 else
18810   ac_cv_type_unsigned_long_long_int=no
18811 fi
18812 rm -f core conftest.err conftest.$ac_objext \
18813     conftest$ac_exeext conftest.$ac_ext
18814      fi
18815 fi
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18817 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18818   if test $ac_cv_type_unsigned_long_long_int = yes; then
18819
18820 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18821
18822   fi
18823
18824
18825
18826
18827   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
18828
18829     test $ac_cv_type_unsigned_long_long_int = yes \
18830       && ac_type='unsigned long long' \
18831       || ac_type='unsigned long'
18832
18833 cat >>confdefs.h <<_ACEOF
18834 #define uintmax_t $ac_type
18835 _ACEOF
18836
18837   else
18838
18839 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
18840
18841   fi
18842
18843
18844   for ac_header in inttypes.h
18845 do :
18846   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18847 if test "x$ac_cv_header_inttypes_h" = xyes; then :
18848   cat >>confdefs.h <<_ACEOF
18849 #define HAVE_INTTYPES_H 1
18850 _ACEOF
18851
18852 fi
18853
18854 done
18855
18856   if test $ac_cv_header_inttypes_h = yes; then
18857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
18858 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18859 if ${gt_cv_inttypes_pri_broken+:} false; then :
18860   $as_echo_n "(cached) " >&6
18861 else
18862
18863         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h.  */
18865
18866 #include <inttypes.h>
18867 #ifdef PRId32
18868 char *p = PRId32;
18869 #endif
18870
18871 int
18872 main ()
18873 {
18874
18875   ;
18876   return 0;
18877 }
18878 _ACEOF
18879 if ac_fn_c_try_compile "$LINENO"; then :
18880   gt_cv_inttypes_pri_broken=no
18881 else
18882   gt_cv_inttypes_pri_broken=yes
18883 fi
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885
18886 fi
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
18888 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18889   fi
18890   if test "$gt_cv_inttypes_pri_broken" = yes; then
18891
18892 cat >>confdefs.h <<_ACEOF
18893 #define PRI_MACROS_BROKEN 1
18894 _ACEOF
18895
18896     PRI_MACROS_BROKEN=1
18897   else
18898     PRI_MACROS_BROKEN=0
18899   fi
18900
18901
18902
18903       if test "X$prefix" = "XNONE"; then
18904     acl_final_prefix="$ac_default_prefix"
18905   else
18906     acl_final_prefix="$prefix"
18907   fi
18908   if test "X$exec_prefix" = "XNONE"; then
18909     acl_final_exec_prefix='${prefix}'
18910   else
18911     acl_final_exec_prefix="$exec_prefix"
18912   fi
18913   acl_save_prefix="$prefix"
18914   prefix="$acl_final_prefix"
18915   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18916   prefix="$acl_save_prefix"
18917
18918
18919
18920 # Check whether --with-gnu-ld was given.
18921 if test "${with_gnu_ld+set}" = set; then :
18922   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18923 else
18924   with_gnu_ld=no
18925 fi
18926
18927 # Prepare PATH_SEPARATOR.
18928 # The user is always right.
18929 if test "${PATH_SEPARATOR+set}" != set; then
18930   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18931   # contains only /bin. Note that ksh looks also at the FPATH variable,
18932   # so we have to set that as well for the test.
18933   PATH_SEPARATOR=:
18934   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18935     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18936            || PATH_SEPARATOR=';'
18937        }
18938 fi
18939
18940 ac_prog=ld
18941 if test "$GCC" = yes; then
18942   # Check if gcc -print-prog-name=ld gives a path.
18943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18944 $as_echo_n "checking for ld used by $CC... " >&6; }
18945   case $host in
18946   *-*-mingw*)
18947     # gcc leaves a trailing carriage return which upsets mingw
18948     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18949   *)
18950     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18951   esac
18952   case $ac_prog in
18953     # Accept absolute paths.
18954     [\\/]* | ?:[\\/]*)
18955       re_direlt='/[^/][^/]*/\.\./'
18956       # Canonicalize the pathname of ld
18957       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
18958       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
18959         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18960       done
18961       test -z "$LD" && LD="$ac_prog"
18962       ;;
18963   "")
18964     # If it fails, then pretend we aren't using GCC.
18965     ac_prog=ld
18966     ;;
18967   *)
18968     # If it is relative, then search for the first ld in PATH.
18969     with_gnu_ld=unknown
18970     ;;
18971   esac
18972 elif test "$with_gnu_ld" = yes; then
18973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18974 $as_echo_n "checking for GNU ld... " >&6; }
18975 else
18976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18977 $as_echo_n "checking for non-GNU ld... " >&6; }
18978 fi
18979 if ${acl_cv_path_LD+:} false; then :
18980   $as_echo_n "(cached) " >&6
18981 else
18982   if test -z "$LD"; then
18983   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18984   for ac_dir in $PATH; do
18985     IFS="$acl_save_ifs"
18986     test -z "$ac_dir" && ac_dir=.
18987     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18988       acl_cv_path_LD="$ac_dir/$ac_prog"
18989       # Check to see if the program is GNU ld.  I'd rather use --version,
18990       # but apparently some variants of GNU ld only accept -v.
18991       # Break only if it was the GNU/non-GNU ld that we prefer.
18992       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18993       *GNU* | *'with BFD'*)
18994         test "$with_gnu_ld" != no && break
18995         ;;
18996       *)
18997         test "$with_gnu_ld" != yes && break
18998         ;;
18999       esac
19000     fi
19001   done
19002   IFS="$acl_save_ifs"
19003 else
19004   acl_cv_path_LD="$LD" # Let the user override the test with a path.
19005 fi
19006 fi
19007
19008 LD="$acl_cv_path_LD"
19009 if test -n "$LD"; then
19010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19011 $as_echo "$LD" >&6; }
19012 else
19013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19014 $as_echo "no" >&6; }
19015 fi
19016 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19018 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19019 if ${acl_cv_prog_gnu_ld+:} false; then :
19020   $as_echo_n "(cached) " >&6
19021 else
19022   # I'd rather use --version here, but apparently some GNU lds only accept -v.
19023 case `$LD -v 2>&1 </dev/null` in
19024 *GNU* | *'with BFD'*)
19025   acl_cv_prog_gnu_ld=yes
19026   ;;
19027 *)
19028   acl_cv_prog_gnu_ld=no
19029   ;;
19030 esac
19031 fi
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19033 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19034 with_gnu_ld=$acl_cv_prog_gnu_ld
19035
19036
19037
19038
19039                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19040 $as_echo_n "checking for shared library run path origin... " >&6; }
19041 if ${acl_cv_rpath+:} false; then :
19042   $as_echo_n "(cached) " >&6
19043 else
19044
19045     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19046     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19047     . ./conftest.sh
19048     rm -f ./conftest.sh
19049     acl_cv_rpath=done
19050
19051 fi
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19053 $as_echo "$acl_cv_rpath" >&6; }
19054   wl="$acl_cv_wl"
19055   acl_libext="$acl_cv_libext"
19056   acl_shlibext="$acl_cv_shlibext"
19057   acl_libname_spec="$acl_cv_libname_spec"
19058   acl_library_names_spec="$acl_cv_library_names_spec"
19059   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19060   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19061   acl_hardcode_direct="$acl_cv_hardcode_direct"
19062   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
19063     # Check whether --enable-rpath was given.
19064 if test "${enable_rpath+set}" = set; then :
19065   enableval=$enable_rpath; :
19066 else
19067   enable_rpath=yes
19068 fi
19069
19070
19071
19072
19073   acl_libdirstem=lib
19074   acl_libdirstem2=
19075   case "$host_os" in
19076     solaris*)
19077                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
19078 $as_echo_n "checking for 64-bit host... " >&6; }
19079 if ${gl_cv_solaris_64bit+:} false; then :
19080   $as_echo_n "(cached) " >&6
19081 else
19082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h.  */
19084
19085 #ifdef _LP64
19086 sixtyfour bits
19087 #endif
19088
19089 _ACEOF
19090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19091   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
19092   gl_cv_solaris_64bit=yes
19093 else
19094   gl_cv_solaris_64bit=no
19095 fi
19096 rm -f conftest*
19097
19098
19099 fi
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
19101 $as_echo "$gl_cv_solaris_64bit" >&6; }
19102       if test $gl_cv_solaris_64bit = yes; then
19103         acl_libdirstem=lib/64
19104         case "$host_cpu" in
19105           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
19106           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
19107         esac
19108       fi
19109       ;;
19110     *)
19111       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19112       if test -n "$searchpath"; then
19113         acl_save_IFS="${IFS=    }"; IFS=":"
19114         for searchdir in $searchpath; do
19115           if test -d "$searchdir"; then
19116             case "$searchdir" in
19117               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
19118               */../ | */.. )
19119                 # Better ignore directories of this form. They are misleading.
19120                 ;;
19121               *) searchdir=`cd "$searchdir" && pwd`
19122                  case "$searchdir" in
19123                    */lib64 ) acl_libdirstem=lib64 ;;
19124                  esac ;;
19125             esac
19126           fi
19127         done
19128         IFS="$acl_save_IFS"
19129       fi
19130       ;;
19131   esac
19132   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
19133
19134
19135
19136   gl_threads_api=none
19137   LIBTHREAD=
19138   LTLIBTHREAD=
19139   LIBMULTITHREAD=
19140   LTLIBMULTITHREAD=
19141   if test "$gl_use_threads" != no; then
19142         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
19143 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
19144 if ${gl_cv_have_weak+:} false; then :
19145   $as_echo_n "(cached) " >&6
19146 else
19147   gl_cv_have_weak=no
19148               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h.  */
19150 extern void xyzzy ();
19151 #pragma weak xyzzy
19152 int
19153 main ()
19154 {
19155 xyzzy();
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 if ac_fn_c_try_link "$LINENO"; then :
19161   gl_cv_have_weak=maybe
19162 fi
19163 rm -f core conftest.err conftest.$ac_objext \
19164     conftest$ac_exeext conftest.$ac_ext
19165        if test $gl_cv_have_weak = maybe; then
19166                            if test "$cross_compiling" = yes; then :
19167                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h.  */
19169 #ifdef __ELF__
19170                Extensible Linking Format
19171                #endif
19172
19173 _ACEOF
19174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19175   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
19176   gl_cv_have_weak="guessing yes"
19177 else
19178   gl_cv_have_weak="guessing no"
19179 fi
19180 rm -f conftest*
19181
19182
19183 else
19184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h.  */
19186
19187 #include <stdio.h>
19188 #pragma weak fputs
19189 int main ()
19190 {
19191   return (fputs == NULL);
19192 }
19193 _ACEOF
19194 if ac_fn_c_try_run "$LINENO"; then :
19195   gl_cv_have_weak=yes
19196 else
19197   gl_cv_have_weak=no
19198 fi
19199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19200   conftest.$ac_objext conftest.beam conftest.$ac_ext
19201 fi
19202
19203        fi
19204
19205 fi
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
19207 $as_echo "$gl_cv_have_weak" >&6; }
19208     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
19209       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
19210       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
19211       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19212 if test "x$ac_cv_header_pthread_h" = xyes; then :
19213   gl_have_pthread_h=yes
19214 else
19215   gl_have_pthread_h=no
19216 fi
19217
19218
19219       if test "$gl_have_pthread_h" = yes; then
19220         # Other possible tests:
19221         #   -lpthreads (FSU threads, PCthreads)
19222         #   -lgthreads
19223         gl_have_pthread=
19224         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
19225         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
19226         # the second one only in libpthread, and lock.c needs it.
19227         #
19228         # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
19229         # needs -pthread for some reason.  See:
19230         # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
19231         save_LIBS=$LIBS
19232         for gl_pthread in '' '-pthread'; do
19233           LIBS="$LIBS $gl_pthread"
19234           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235 /* end confdefs.h.  */
19236 #include <pthread.h>
19237                  pthread_mutex_t m;
19238                  pthread_mutexattr_t ma;
19239
19240 int
19241 main ()
19242 {
19243 pthread_mutex_lock (&m);
19244                  pthread_mutexattr_init (&ma);
19245   ;
19246   return 0;
19247 }
19248 _ACEOF
19249 if ac_fn_c_try_link "$LINENO"; then :
19250   gl_have_pthread=yes
19251              LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
19252              LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
19253 fi
19254 rm -f core conftest.err conftest.$ac_objext \
19255     conftest$ac_exeext conftest.$ac_ext
19256           LIBS=$save_LIBS
19257           test -n "$gl_have_pthread" && break
19258         done
19259
19260         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
19261         # since it is defined as a macro on OSF/1.)
19262         if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
19263           # The program links fine without libpthread. But it may actually
19264           # need to link with libpthread in order to create multiple threads.
19265           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19266 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
19267 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
19268   $as_echo_n "(cached) " >&6
19269 else
19270   ac_check_lib_save_LIBS=$LIBS
19271 LIBS="-lpthread  $LIBS"
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h.  */
19274
19275 /* Override any GCC internal prototype to avoid an error.
19276    Use char because int might match the return type of a GCC
19277    builtin and then its argument prototype would still apply.  */
19278 #ifdef __cplusplus
19279 extern "C"
19280 #endif
19281 char pthread_kill ();
19282 int
19283 main ()
19284 {
19285 return pthread_kill ();
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 if ac_fn_c_try_link "$LINENO"; then :
19291   ac_cv_lib_pthread_pthread_kill=yes
19292 else
19293   ac_cv_lib_pthread_pthread_kill=no
19294 fi
19295 rm -f core conftest.err conftest.$ac_objext \
19296     conftest$ac_exeext conftest.$ac_ext
19297 LIBS=$ac_check_lib_save_LIBS
19298 fi
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19300 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
19301 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
19302   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
19303              # On Solaris and HP-UX, most pthread functions exist also in libc.
19304              # Therefore pthread_in_use() needs to actually try to create a
19305              # thread: pthread_create from libc will fail, whereas
19306              # pthread_create will actually create a thread.
19307              case "$host_os" in
19308                solaris* | hpux*)
19309
19310 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
19311
19312              esac
19313
19314 fi
19315
19316         elif test -z "$gl_have_pthread"; then
19317           # Some library is needed. Try libpthread and libc_r.
19318           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19319 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
19320 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
19321   $as_echo_n "(cached) " >&6
19322 else
19323   ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lpthread  $LIBS"
19325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19326 /* end confdefs.h.  */
19327
19328 /* Override any GCC internal prototype to avoid an error.
19329    Use char because int might match the return type of a GCC
19330    builtin and then its argument prototype would still apply.  */
19331 #ifdef __cplusplus
19332 extern "C"
19333 #endif
19334 char pthread_kill ();
19335 int
19336 main ()
19337 {
19338 return pthread_kill ();
19339   ;
19340   return 0;
19341 }
19342 _ACEOF
19343 if ac_fn_c_try_link "$LINENO"; then :
19344   ac_cv_lib_pthread_pthread_kill=yes
19345 else
19346   ac_cv_lib_pthread_pthread_kill=no
19347 fi
19348 rm -f core conftest.err conftest.$ac_objext \
19349     conftest$ac_exeext conftest.$ac_ext
19350 LIBS=$ac_check_lib_save_LIBS
19351 fi
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19353 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
19354 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
19355   gl_have_pthread=yes
19356              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
19357              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
19358 fi
19359
19360           if test -z "$gl_have_pthread"; then
19361             # For FreeBSD 4.
19362             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
19363 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
19364 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
19365   $as_echo_n "(cached) " >&6
19366 else
19367   ac_check_lib_save_LIBS=$LIBS
19368 LIBS="-lc_r  $LIBS"
19369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h.  */
19371
19372 /* Override any GCC internal prototype to avoid an error.
19373    Use char because int might match the return type of a GCC
19374    builtin and then its argument prototype would still apply.  */
19375 #ifdef __cplusplus
19376 extern "C"
19377 #endif
19378 char pthread_kill ();
19379 int
19380 main ()
19381 {
19382 return pthread_kill ();
19383   ;
19384   return 0;
19385 }
19386 _ACEOF
19387 if ac_fn_c_try_link "$LINENO"; then :
19388   ac_cv_lib_c_r_pthread_kill=yes
19389 else
19390   ac_cv_lib_c_r_pthread_kill=no
19391 fi
19392 rm -f core conftest.err conftest.$ac_objext \
19393     conftest$ac_exeext conftest.$ac_ext
19394 LIBS=$ac_check_lib_save_LIBS
19395 fi
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
19397 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
19398 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
19399   gl_have_pthread=yes
19400                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
19401                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
19402 fi
19403
19404           fi
19405         fi
19406         if test -n "$gl_have_pthread"; then
19407           gl_threads_api=posix
19408
19409 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
19410
19411           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19412             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19413
19414 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
19415
19416               LIBTHREAD=
19417               LTLIBTHREAD=
19418             fi
19419           fi
19420         fi
19421       fi
19422     fi
19423     if test -z "$gl_have_pthread"; then
19424       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
19425         gl_have_solaristhread=
19426         gl_save_LIBS="$LIBS"
19427         LIBS="$LIBS -lthread"
19428         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h.  */
19430
19431 #include <thread.h>
19432 #include <synch.h>
19433
19434 int
19435 main ()
19436 {
19437 thr_self();
19438   ;
19439   return 0;
19440 }
19441 _ACEOF
19442 if ac_fn_c_try_link "$LINENO"; then :
19443   gl_have_solaristhread=yes
19444 fi
19445 rm -f core conftest.err conftest.$ac_objext \
19446     conftest$ac_exeext conftest.$ac_ext
19447         LIBS="$gl_save_LIBS"
19448         if test -n "$gl_have_solaristhread"; then
19449           gl_threads_api=solaris
19450           LIBTHREAD=-lthread
19451           LTLIBTHREAD=-lthread
19452           LIBMULTITHREAD="$LIBTHREAD"
19453           LTLIBMULTITHREAD="$LTLIBTHREAD"
19454
19455 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
19456
19457           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19458
19459 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
19460
19461             LIBTHREAD=
19462             LTLIBTHREAD=
19463           fi
19464         fi
19465       fi
19466     fi
19467     if test "$gl_use_threads" = pth; then
19468       gl_save_CPPFLAGS="$CPPFLAGS"
19469
19470
19471
19472
19473
19474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
19475 $as_echo_n "checking how to link with libpth... " >&6; }
19476 if ${ac_cv_libpth_libs+:} false; then :
19477   $as_echo_n "(cached) " >&6
19478 else
19479
19480
19481
19482
19483
19484
19485
19486
19487     use_additional=yes
19488
19489   acl_save_prefix="$prefix"
19490   prefix="$acl_final_prefix"
19491   acl_save_exec_prefix="$exec_prefix"
19492   exec_prefix="$acl_final_exec_prefix"
19493
19494     eval additional_includedir=\"$includedir\"
19495     eval additional_libdir=\"$libdir\"
19496
19497   exec_prefix="$acl_save_exec_prefix"
19498   prefix="$acl_save_prefix"
19499
19500
19501 # Check whether --with-libpth-prefix was given.
19502 if test "${with_libpth_prefix+set}" = set; then :
19503   withval=$with_libpth_prefix;
19504     if test "X$withval" = "Xno"; then
19505       use_additional=no
19506     else
19507       if test "X$withval" = "X"; then
19508
19509   acl_save_prefix="$prefix"
19510   prefix="$acl_final_prefix"
19511   acl_save_exec_prefix="$exec_prefix"
19512   exec_prefix="$acl_final_exec_prefix"
19513
19514           eval additional_includedir=\"$includedir\"
19515           eval additional_libdir=\"$libdir\"
19516
19517   exec_prefix="$acl_save_exec_prefix"
19518   prefix="$acl_save_prefix"
19519
19520       else
19521         additional_includedir="$withval/include"
19522         additional_libdir="$withval/$acl_libdirstem"
19523         if test "$acl_libdirstem2" != "$acl_libdirstem" \
19524            && ! test -d "$withval/$acl_libdirstem"; then
19525           additional_libdir="$withval/$acl_libdirstem2"
19526         fi
19527       fi
19528     fi
19529
19530 fi
19531
19532       LIBPTH=
19533   LTLIBPTH=
19534   INCPTH=
19535   LIBPTH_PREFIX=
19536       HAVE_LIBPTH=
19537   rpathdirs=
19538   ltrpathdirs=
19539   names_already_handled=
19540   names_next_round='pth '
19541   while test -n "$names_next_round"; do
19542     names_this_round="$names_next_round"
19543     names_next_round=
19544     for name in $names_this_round; do
19545       already_handled=
19546       for n in $names_already_handled; do
19547         if test "$n" = "$name"; then
19548           already_handled=yes
19549           break
19550         fi
19551       done
19552       if test -z "$already_handled"; then
19553         names_already_handled="$names_already_handled $name"
19554                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19555         eval value=\"\$HAVE_LIB$uppername\"
19556         if test -n "$value"; then
19557           if test "$value" = yes; then
19558             eval value=\"\$LIB$uppername\"
19559             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
19560             eval value=\"\$LTLIB$uppername\"
19561             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
19562           else
19563                                     :
19564           fi
19565         else
19566                               found_dir=
19567           found_la=
19568           found_so=
19569           found_a=
19570           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19571           if test -n "$acl_shlibext"; then
19572             shrext=".$acl_shlibext"             # typically: shrext=.so
19573           else
19574             shrext=
19575           fi
19576           if test $use_additional = yes; then
19577             dir="$additional_libdir"
19578                                     if test -n "$acl_shlibext"; then
19579               if test -f "$dir/$libname$shrext"; then
19580                 found_dir="$dir"
19581                 found_so="$dir/$libname$shrext"
19582               else
19583                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19584                   ver=`(cd "$dir" && \
19585                         for f in "$libname$shrext".*; do echo "$f"; done \
19586                         | sed -e "s,^$libname$shrext\\\\.,," \
19587                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19588                         | sed 1q ) 2>/dev/null`
19589                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19590                     found_dir="$dir"
19591                     found_so="$dir/$libname$shrext.$ver"
19592                   fi
19593                 else
19594                   eval library_names=\"$acl_library_names_spec\"
19595                   for f in $library_names; do
19596                     if test -f "$dir/$f"; then
19597                       found_dir="$dir"
19598                       found_so="$dir/$f"
19599                       break
19600                     fi
19601                   done
19602                 fi
19603               fi
19604             fi
19605                         if test "X$found_dir" = "X"; then
19606               if test -f "$dir/$libname.$acl_libext"; then
19607                 found_dir="$dir"
19608                 found_a="$dir/$libname.$acl_libext"
19609               fi
19610             fi
19611             if test "X$found_dir" != "X"; then
19612               if test -f "$dir/$libname.la"; then
19613                 found_la="$dir/$libname.la"
19614               fi
19615             fi
19616           fi
19617           if test "X$found_dir" = "X"; then
19618             for x in $LDFLAGS $LTLIBPTH; do
19619
19620   acl_save_prefix="$prefix"
19621   prefix="$acl_final_prefix"
19622   acl_save_exec_prefix="$exec_prefix"
19623   exec_prefix="$acl_final_exec_prefix"
19624   eval x=\"$x\"
19625   exec_prefix="$acl_save_exec_prefix"
19626   prefix="$acl_save_prefix"
19627
19628               case "$x" in
19629                 -L*)
19630                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19631                                     if test -n "$acl_shlibext"; then
19632                     if test -f "$dir/$libname$shrext"; then
19633                       found_dir="$dir"
19634                       found_so="$dir/$libname$shrext"
19635                     else
19636                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19637                         ver=`(cd "$dir" && \
19638                               for f in "$libname$shrext".*; do echo "$f"; done \
19639                               | sed -e "s,^$libname$shrext\\\\.,," \
19640                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19641                               | sed 1q ) 2>/dev/null`
19642                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19643                           found_dir="$dir"
19644                           found_so="$dir/$libname$shrext.$ver"
19645                         fi
19646                       else
19647                         eval library_names=\"$acl_library_names_spec\"
19648                         for f in $library_names; do
19649                           if test -f "$dir/$f"; then
19650                             found_dir="$dir"
19651                             found_so="$dir/$f"
19652                             break
19653                           fi
19654                         done
19655                       fi
19656                     fi
19657                   fi
19658                                     if test "X$found_dir" = "X"; then
19659                     if test -f "$dir/$libname.$acl_libext"; then
19660                       found_dir="$dir"
19661                       found_a="$dir/$libname.$acl_libext"
19662                     fi
19663                   fi
19664                   if test "X$found_dir" != "X"; then
19665                     if test -f "$dir/$libname.la"; then
19666                       found_la="$dir/$libname.la"
19667                     fi
19668                   fi
19669                   ;;
19670               esac
19671               if test "X$found_dir" != "X"; then
19672                 break
19673               fi
19674             done
19675           fi
19676           if test "X$found_dir" != "X"; then
19677                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
19678             if test "X$found_so" != "X"; then
19679                                                         if test "$enable_rpath" = no \
19680                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19681                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19682                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19683               else
19684                                                                                 haveit=
19685                 for x in $ltrpathdirs; do
19686                   if test "X$x" = "X$found_dir"; then
19687                     haveit=yes
19688                     break
19689                   fi
19690                 done
19691                 if test -z "$haveit"; then
19692                   ltrpathdirs="$ltrpathdirs $found_dir"
19693                 fi
19694                                 if test "$acl_hardcode_direct" = yes; then
19695                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19696                 else
19697                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19698                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19699                                                             haveit=
19700                     for x in $rpathdirs; do
19701                       if test "X$x" = "X$found_dir"; then
19702                         haveit=yes
19703                         break
19704                       fi
19705                     done
19706                     if test -z "$haveit"; then
19707                       rpathdirs="$rpathdirs $found_dir"
19708                     fi
19709                   else
19710                                                                                 haveit=
19711                     for x in $LDFLAGS $LIBPTH; do
19712
19713   acl_save_prefix="$prefix"
19714   prefix="$acl_final_prefix"
19715   acl_save_exec_prefix="$exec_prefix"
19716   exec_prefix="$acl_final_exec_prefix"
19717   eval x=\"$x\"
19718   exec_prefix="$acl_save_exec_prefix"
19719   prefix="$acl_save_prefix"
19720
19721                       if test "X$x" = "X-L$found_dir"; then
19722                         haveit=yes
19723                         break
19724                       fi
19725                     done
19726                     if test -z "$haveit"; then
19727                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
19728                     fi
19729                     if test "$acl_hardcode_minus_L" != no; then
19730                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19731                     else
19732                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19733                     fi
19734                   fi
19735                 fi
19736               fi
19737             else
19738               if test "X$found_a" != "X"; then
19739                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
19740               else
19741                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
19742               fi
19743             fi
19744                         additional_includedir=
19745             case "$found_dir" in
19746               */$acl_libdirstem | */$acl_libdirstem/)
19747                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19748                 if test "$name" = 'pth'; then
19749                   LIBPTH_PREFIX="$basedir"
19750                 fi
19751                 additional_includedir="$basedir/include"
19752                 ;;
19753               */$acl_libdirstem2 | */$acl_libdirstem2/)
19754                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19755                 if test "$name" = 'pth'; then
19756                   LIBPTH_PREFIX="$basedir"
19757                 fi
19758                 additional_includedir="$basedir/include"
19759                 ;;
19760             esac
19761             if test "X$additional_includedir" != "X"; then
19762                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
19763                 haveit=
19764                 if test "X$additional_includedir" = "X/usr/local/include"; then
19765                   if test -n "$GCC"; then
19766                     case $host_os in
19767                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19768                     esac
19769                   fi
19770                 fi
19771                 if test -z "$haveit"; then
19772                   for x in $CPPFLAGS $INCPTH; do
19773
19774   acl_save_prefix="$prefix"
19775   prefix="$acl_final_prefix"
19776   acl_save_exec_prefix="$exec_prefix"
19777   exec_prefix="$acl_final_exec_prefix"
19778   eval x=\"$x\"
19779   exec_prefix="$acl_save_exec_prefix"
19780   prefix="$acl_save_prefix"
19781
19782                     if test "X$x" = "X-I$additional_includedir"; then
19783                       haveit=yes
19784                       break
19785                     fi
19786                   done
19787                   if test -z "$haveit"; then
19788                     if test -d "$additional_includedir"; then
19789                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
19790                     fi
19791                   fi
19792                 fi
19793               fi
19794             fi
19795                         if test -n "$found_la"; then
19796                                                         save_libdir="$libdir"
19797               case "$found_la" in
19798                 */* | *\\*) . "$found_la" ;;
19799                 *) . "./$found_la" ;;
19800               esac
19801               libdir="$save_libdir"
19802                             for dep in $dependency_libs; do
19803                 case "$dep" in
19804                   -L*)
19805                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19806                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19807                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19808                       haveit=
19809                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19810                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19811                         if test -n "$GCC"; then
19812                           case $host_os in
19813                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19814                           esac
19815                         fi
19816                       fi
19817                       if test -z "$haveit"; then
19818                         haveit=
19819                         for x in $LDFLAGS $LIBPTH; do
19820
19821   acl_save_prefix="$prefix"
19822   prefix="$acl_final_prefix"
19823   acl_save_exec_prefix="$exec_prefix"
19824   exec_prefix="$acl_final_exec_prefix"
19825   eval x=\"$x\"
19826   exec_prefix="$acl_save_exec_prefix"
19827   prefix="$acl_save_prefix"
19828
19829                           if test "X$x" = "X-L$additional_libdir"; then
19830                             haveit=yes
19831                             break
19832                           fi
19833                         done
19834                         if test -z "$haveit"; then
19835                           if test -d "$additional_libdir"; then
19836                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
19837                           fi
19838                         fi
19839                         haveit=
19840                         for x in $LDFLAGS $LTLIBPTH; do
19841
19842   acl_save_prefix="$prefix"
19843   prefix="$acl_final_prefix"
19844   acl_save_exec_prefix="$exec_prefix"
19845   exec_prefix="$acl_final_exec_prefix"
19846   eval x=\"$x\"
19847   exec_prefix="$acl_save_exec_prefix"
19848   prefix="$acl_save_prefix"
19849
19850                           if test "X$x" = "X-L$additional_libdir"; then
19851                             haveit=yes
19852                             break
19853                           fi
19854                         done
19855                         if test -z "$haveit"; then
19856                           if test -d "$additional_libdir"; then
19857                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
19858                           fi
19859                         fi
19860                       fi
19861                     fi
19862                     ;;
19863                   -R*)
19864                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
19865                     if test "$enable_rpath" != no; then
19866                                                                   haveit=
19867                       for x in $rpathdirs; do
19868                         if test "X$x" = "X$dir"; then
19869                           haveit=yes
19870                           break
19871                         fi
19872                       done
19873                       if test -z "$haveit"; then
19874                         rpathdirs="$rpathdirs $dir"
19875                       fi
19876                                                                   haveit=
19877                       for x in $ltrpathdirs; do
19878                         if test "X$x" = "X$dir"; then
19879                           haveit=yes
19880                           break
19881                         fi
19882                       done
19883                       if test -z "$haveit"; then
19884                         ltrpathdirs="$ltrpathdirs $dir"
19885                       fi
19886                     fi
19887                     ;;
19888                   -l*)
19889                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19890                     ;;
19891                   *.la)
19892                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19893                     ;;
19894                   *)
19895                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
19896                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
19897                     ;;
19898                 esac
19899               done
19900             fi
19901           else
19902                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19903             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
19904           fi
19905         fi
19906       fi
19907     done
19908   done
19909   if test "X$rpathdirs" != "X"; then
19910     if test -n "$acl_hardcode_libdir_separator"; then
19911                         alldirs=
19912       for found_dir in $rpathdirs; do
19913         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19914       done
19915             acl_save_libdir="$libdir"
19916       libdir="$alldirs"
19917       eval flag=\"$acl_hardcode_libdir_flag_spec\"
19918       libdir="$acl_save_libdir"
19919       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19920     else
19921             for found_dir in $rpathdirs; do
19922         acl_save_libdir="$libdir"
19923         libdir="$found_dir"
19924         eval flag=\"$acl_hardcode_libdir_flag_spec\"
19925         libdir="$acl_save_libdir"
19926         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19927       done
19928     fi
19929   fi
19930   if test "X$ltrpathdirs" != "X"; then
19931             for found_dir in $ltrpathdirs; do
19932       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
19933     done
19934   fi
19935
19936
19937
19938
19939
19940
19941     ac_cv_libpth_libs="$LIBPTH"
19942     ac_cv_libpth_ltlibs="$LTLIBPTH"
19943     ac_cv_libpth_cppflags="$INCPTH"
19944     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
19945
19946 fi
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
19948 $as_echo "$ac_cv_libpth_libs" >&6; }
19949   LIBPTH="$ac_cv_libpth_libs"
19950   LTLIBPTH="$ac_cv_libpth_ltlibs"
19951   INCPTH="$ac_cv_libpth_cppflags"
19952   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
19953
19954   for element in $INCPTH; do
19955     haveit=
19956     for x in $CPPFLAGS; do
19957
19958   acl_save_prefix="$prefix"
19959   prefix="$acl_final_prefix"
19960   acl_save_exec_prefix="$exec_prefix"
19961   exec_prefix="$acl_final_exec_prefix"
19962   eval x=\"$x\"
19963   exec_prefix="$acl_save_exec_prefix"
19964   prefix="$acl_save_prefix"
19965
19966       if test "X$x" = "X$element"; then
19967         haveit=yes
19968         break
19969       fi
19970     done
19971     if test -z "$haveit"; then
19972       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19973     fi
19974   done
19975
19976
19977
19978
19979       HAVE_LIBPTH=yes
19980
19981
19982
19983       gl_have_pth=
19984       gl_save_LIBS="$LIBS"
19985       LIBS="$LIBS $LIBPTH"
19986       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h.  */
19988 #include <pth.h>
19989 int
19990 main ()
19991 {
19992 pth_self();
19993   ;
19994   return 0;
19995 }
19996 _ACEOF
19997 if ac_fn_c_try_link "$LINENO"; then :
19998   gl_have_pth=yes
19999 fi
20000 rm -f core conftest.err conftest.$ac_objext \
20001     conftest$ac_exeext conftest.$ac_ext
20002       LIBS="$gl_save_LIBS"
20003       if test -n "$gl_have_pth"; then
20004         gl_threads_api=pth
20005         LIBTHREAD="$LIBPTH"
20006         LTLIBTHREAD="$LTLIBPTH"
20007         LIBMULTITHREAD="$LIBTHREAD"
20008         LTLIBMULTITHREAD="$LTLIBTHREAD"
20009
20010 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
20011
20012         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
20013           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
20014
20015 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
20016
20017             LIBTHREAD=
20018             LTLIBTHREAD=
20019           fi
20020         fi
20021       else
20022         CPPFLAGS="$gl_save_CPPFLAGS"
20023       fi
20024     fi
20025     if test -z "$gl_have_pthread"; then
20026       case "$gl_use_threads" in
20027         yes | windows | win32) # The 'win32' is for backward compatibility.
20028           if { case "$host_os" in
20029                  mingw*) true;;
20030                  *) false;;
20031                esac
20032              }; then
20033             gl_threads_api=windows
20034
20035 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
20036
20037           fi
20038           ;;
20039       esac
20040     fi
20041   fi
20042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
20043 $as_echo_n "checking for multithread API to use... " >&6; }
20044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
20045 $as_echo "$gl_threads_api" >&6; }
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057   if test "$gl_threads_api" = posix; then
20058     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
20059     # pthread_rwlock_* functions.
20060     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
20061 "
20062 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
20063
20064 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
20065
20066 fi
20067
20068     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
20069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h.  */
20071
20072       #include <pthread.h>
20073 int
20074 main ()
20075 {
20076
20077 #if __FreeBSD__ == 4
20078 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
20079 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
20080        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
20081 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
20082 #else
20083 int x = (int)PTHREAD_MUTEX_RECURSIVE;
20084 return !x;
20085 #endif
20086
20087   ;
20088   return 0;
20089 }
20090 _ACEOF
20091 if ac_fn_c_try_compile "$LINENO"; then :
20092
20093 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
20094
20095 fi
20096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097   fi
20098   :
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111     use_additional=yes
20112
20113   acl_save_prefix="$prefix"
20114   prefix="$acl_final_prefix"
20115   acl_save_exec_prefix="$exec_prefix"
20116   exec_prefix="$acl_final_exec_prefix"
20117
20118     eval additional_includedir=\"$includedir\"
20119     eval additional_libdir=\"$libdir\"
20120
20121   exec_prefix="$acl_save_exec_prefix"
20122   prefix="$acl_save_prefix"
20123
20124
20125 # Check whether --with-libiconv-prefix was given.
20126 if test "${with_libiconv_prefix+set}" = set; then :
20127   withval=$with_libiconv_prefix;
20128     if test "X$withval" = "Xno"; then
20129       use_additional=no
20130     else
20131       if test "X$withval" = "X"; then
20132
20133   acl_save_prefix="$prefix"
20134   prefix="$acl_final_prefix"
20135   acl_save_exec_prefix="$exec_prefix"
20136   exec_prefix="$acl_final_exec_prefix"
20137
20138           eval additional_includedir=\"$includedir\"
20139           eval additional_libdir=\"$libdir\"
20140
20141   exec_prefix="$acl_save_exec_prefix"
20142   prefix="$acl_save_prefix"
20143
20144       else
20145         additional_includedir="$withval/include"
20146         additional_libdir="$withval/$acl_libdirstem"
20147         if test "$acl_libdirstem2" != "$acl_libdirstem" \
20148            && ! test -d "$withval/$acl_libdirstem"; then
20149           additional_libdir="$withval/$acl_libdirstem2"
20150         fi
20151       fi
20152     fi
20153
20154 fi
20155
20156       LIBICONV=
20157   LTLIBICONV=
20158   INCICONV=
20159   LIBICONV_PREFIX=
20160       HAVE_LIBICONV=
20161   rpathdirs=
20162   ltrpathdirs=
20163   names_already_handled=
20164   names_next_round='iconv '
20165   while test -n "$names_next_round"; do
20166     names_this_round="$names_next_round"
20167     names_next_round=
20168     for name in $names_this_round; do
20169       already_handled=
20170       for n in $names_already_handled; do
20171         if test "$n" = "$name"; then
20172           already_handled=yes
20173           break
20174         fi
20175       done
20176       if test -z "$already_handled"; then
20177         names_already_handled="$names_already_handled $name"
20178                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20179         eval value=\"\$HAVE_LIB$uppername\"
20180         if test -n "$value"; then
20181           if test "$value" = yes; then
20182             eval value=\"\$LIB$uppername\"
20183             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20184             eval value=\"\$LTLIB$uppername\"
20185             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20186           else
20187                                     :
20188           fi
20189         else
20190                               found_dir=
20191           found_la=
20192           found_so=
20193           found_a=
20194           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
20195           if test -n "$acl_shlibext"; then
20196             shrext=".$acl_shlibext"             # typically: shrext=.so
20197           else
20198             shrext=
20199           fi
20200           if test $use_additional = yes; then
20201             dir="$additional_libdir"
20202                                     if test -n "$acl_shlibext"; then
20203               if test -f "$dir/$libname$shrext"; then
20204                 found_dir="$dir"
20205                 found_so="$dir/$libname$shrext"
20206               else
20207                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20208                   ver=`(cd "$dir" && \
20209                         for f in "$libname$shrext".*; do echo "$f"; done \
20210                         | sed -e "s,^$libname$shrext\\\\.,," \
20211                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20212                         | sed 1q ) 2>/dev/null`
20213                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20214                     found_dir="$dir"
20215                     found_so="$dir/$libname$shrext.$ver"
20216                   fi
20217                 else
20218                   eval library_names=\"$acl_library_names_spec\"
20219                   for f in $library_names; do
20220                     if test -f "$dir/$f"; then
20221                       found_dir="$dir"
20222                       found_so="$dir/$f"
20223                       break
20224                     fi
20225                   done
20226                 fi
20227               fi
20228             fi
20229                         if test "X$found_dir" = "X"; then
20230               if test -f "$dir/$libname.$acl_libext"; then
20231                 found_dir="$dir"
20232                 found_a="$dir/$libname.$acl_libext"
20233               fi
20234             fi
20235             if test "X$found_dir" != "X"; then
20236               if test -f "$dir/$libname.la"; then
20237                 found_la="$dir/$libname.la"
20238               fi
20239             fi
20240           fi
20241           if test "X$found_dir" = "X"; then
20242             for x in $LDFLAGS $LTLIBICONV; do
20243
20244   acl_save_prefix="$prefix"
20245   prefix="$acl_final_prefix"
20246   acl_save_exec_prefix="$exec_prefix"
20247   exec_prefix="$acl_final_exec_prefix"
20248   eval x=\"$x\"
20249   exec_prefix="$acl_save_exec_prefix"
20250   prefix="$acl_save_prefix"
20251
20252               case "$x" in
20253                 -L*)
20254                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20255                                     if test -n "$acl_shlibext"; then
20256                     if test -f "$dir/$libname$shrext"; then
20257                       found_dir="$dir"
20258                       found_so="$dir/$libname$shrext"
20259                     else
20260                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20261                         ver=`(cd "$dir" && \
20262                               for f in "$libname$shrext".*; do echo "$f"; done \
20263                               | sed -e "s,^$libname$shrext\\\\.,," \
20264                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20265                               | sed 1q ) 2>/dev/null`
20266                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20267                           found_dir="$dir"
20268                           found_so="$dir/$libname$shrext.$ver"
20269                         fi
20270                       else
20271                         eval library_names=\"$acl_library_names_spec\"
20272                         for f in $library_names; do
20273                           if test -f "$dir/$f"; then
20274                             found_dir="$dir"
20275                             found_so="$dir/$f"
20276                             break
20277                           fi
20278                         done
20279                       fi
20280                     fi
20281                   fi
20282                                     if test "X$found_dir" = "X"; then
20283                     if test -f "$dir/$libname.$acl_libext"; then
20284                       found_dir="$dir"
20285                       found_a="$dir/$libname.$acl_libext"
20286                     fi
20287                   fi
20288                   if test "X$found_dir" != "X"; then
20289                     if test -f "$dir/$libname.la"; then
20290                       found_la="$dir/$libname.la"
20291                     fi
20292                   fi
20293                   ;;
20294               esac
20295               if test "X$found_dir" != "X"; then
20296                 break
20297               fi
20298             done
20299           fi
20300           if test "X$found_dir" != "X"; then
20301                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20302             if test "X$found_so" != "X"; then
20303                                                         if test "$enable_rpath" = no \
20304                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20305                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20306                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20307               else
20308                                                                                 haveit=
20309                 for x in $ltrpathdirs; do
20310                   if test "X$x" = "X$found_dir"; then
20311                     haveit=yes
20312                     break
20313                   fi
20314                 done
20315                 if test -z "$haveit"; then
20316                   ltrpathdirs="$ltrpathdirs $found_dir"
20317                 fi
20318                                 if test "$acl_hardcode_direct" = yes; then
20319                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20320                 else
20321                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20322                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20323                                                             haveit=
20324                     for x in $rpathdirs; do
20325                       if test "X$x" = "X$found_dir"; then
20326                         haveit=yes
20327                         break
20328                       fi
20329                     done
20330                     if test -z "$haveit"; then
20331                       rpathdirs="$rpathdirs $found_dir"
20332                     fi
20333                   else
20334                                                                                 haveit=
20335                     for x in $LDFLAGS $LIBICONV; do
20336
20337   acl_save_prefix="$prefix"
20338   prefix="$acl_final_prefix"
20339   acl_save_exec_prefix="$exec_prefix"
20340   exec_prefix="$acl_final_exec_prefix"
20341   eval x=\"$x\"
20342   exec_prefix="$acl_save_exec_prefix"
20343   prefix="$acl_save_prefix"
20344
20345                       if test "X$x" = "X-L$found_dir"; then
20346                         haveit=yes
20347                         break
20348                       fi
20349                     done
20350                     if test -z "$haveit"; then
20351                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20352                     fi
20353                     if test "$acl_hardcode_minus_L" != no; then
20354                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20355                     else
20356                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20357                     fi
20358                   fi
20359                 fi
20360               fi
20361             else
20362               if test "X$found_a" != "X"; then
20363                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20364               else
20365                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20366               fi
20367             fi
20368                         additional_includedir=
20369             case "$found_dir" in
20370               */$acl_libdirstem | */$acl_libdirstem/)
20371                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20372                 if test "$name" = 'iconv'; then
20373                   LIBICONV_PREFIX="$basedir"
20374                 fi
20375                 additional_includedir="$basedir/include"
20376                 ;;
20377               */$acl_libdirstem2 | */$acl_libdirstem2/)
20378                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20379                 if test "$name" = 'iconv'; then
20380                   LIBICONV_PREFIX="$basedir"
20381                 fi
20382                 additional_includedir="$basedir/include"
20383                 ;;
20384             esac
20385             if test "X$additional_includedir" != "X"; then
20386                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20387                 haveit=
20388                 if test "X$additional_includedir" = "X/usr/local/include"; then
20389                   if test -n "$GCC"; then
20390                     case $host_os in
20391                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20392                     esac
20393                   fi
20394                 fi
20395                 if test -z "$haveit"; then
20396                   for x in $CPPFLAGS $INCICONV; do
20397
20398   acl_save_prefix="$prefix"
20399   prefix="$acl_final_prefix"
20400   acl_save_exec_prefix="$exec_prefix"
20401   exec_prefix="$acl_final_exec_prefix"
20402   eval x=\"$x\"
20403   exec_prefix="$acl_save_exec_prefix"
20404   prefix="$acl_save_prefix"
20405
20406                     if test "X$x" = "X-I$additional_includedir"; then
20407                       haveit=yes
20408                       break
20409                     fi
20410                   done
20411                   if test -z "$haveit"; then
20412                     if test -d "$additional_includedir"; then
20413                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20414                     fi
20415                   fi
20416                 fi
20417               fi
20418             fi
20419                         if test -n "$found_la"; then
20420                                                         save_libdir="$libdir"
20421               case "$found_la" in
20422                 */* | *\\*) . "$found_la" ;;
20423                 *) . "./$found_la" ;;
20424               esac
20425               libdir="$save_libdir"
20426                             for dep in $dependency_libs; do
20427                 case "$dep" in
20428                   -L*)
20429                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20430                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20431                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20432                       haveit=
20433                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20434                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20435                         if test -n "$GCC"; then
20436                           case $host_os in
20437                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20438                           esac
20439                         fi
20440                       fi
20441                       if test -z "$haveit"; then
20442                         haveit=
20443                         for x in $LDFLAGS $LIBICONV; do
20444
20445   acl_save_prefix="$prefix"
20446   prefix="$acl_final_prefix"
20447   acl_save_exec_prefix="$exec_prefix"
20448   exec_prefix="$acl_final_exec_prefix"
20449   eval x=\"$x\"
20450   exec_prefix="$acl_save_exec_prefix"
20451   prefix="$acl_save_prefix"
20452
20453                           if test "X$x" = "X-L$additional_libdir"; then
20454                             haveit=yes
20455                             break
20456                           fi
20457                         done
20458                         if test -z "$haveit"; then
20459                           if test -d "$additional_libdir"; then
20460                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20461                           fi
20462                         fi
20463                         haveit=
20464                         for x in $LDFLAGS $LTLIBICONV; do
20465
20466   acl_save_prefix="$prefix"
20467   prefix="$acl_final_prefix"
20468   acl_save_exec_prefix="$exec_prefix"
20469   exec_prefix="$acl_final_exec_prefix"
20470   eval x=\"$x\"
20471   exec_prefix="$acl_save_exec_prefix"
20472   prefix="$acl_save_prefix"
20473
20474                           if test "X$x" = "X-L$additional_libdir"; then
20475                             haveit=yes
20476                             break
20477                           fi
20478                         done
20479                         if test -z "$haveit"; then
20480                           if test -d "$additional_libdir"; then
20481                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20482                           fi
20483                         fi
20484                       fi
20485                     fi
20486                     ;;
20487                   -R*)
20488                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20489                     if test "$enable_rpath" != no; then
20490                                                                   haveit=
20491                       for x in $rpathdirs; do
20492                         if test "X$x" = "X$dir"; then
20493                           haveit=yes
20494                           break
20495                         fi
20496                       done
20497                       if test -z "$haveit"; then
20498                         rpathdirs="$rpathdirs $dir"
20499                       fi
20500                                                                   haveit=
20501                       for x in $ltrpathdirs; do
20502                         if test "X$x" = "X$dir"; then
20503                           haveit=yes
20504                           break
20505                         fi
20506                       done
20507                       if test -z "$haveit"; then
20508                         ltrpathdirs="$ltrpathdirs $dir"
20509                       fi
20510                     fi
20511                     ;;
20512                   -l*)
20513                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20514                     ;;
20515                   *.la)
20516                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20517                     ;;
20518                   *)
20519                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20520                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20521                     ;;
20522                 esac
20523               done
20524             fi
20525           else
20526                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20527             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20528           fi
20529         fi
20530       fi
20531     done
20532   done
20533   if test "X$rpathdirs" != "X"; then
20534     if test -n "$acl_hardcode_libdir_separator"; then
20535                         alldirs=
20536       for found_dir in $rpathdirs; do
20537         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20538       done
20539             acl_save_libdir="$libdir"
20540       libdir="$alldirs"
20541       eval flag=\"$acl_hardcode_libdir_flag_spec\"
20542       libdir="$acl_save_libdir"
20543       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20544     else
20545             for found_dir in $rpathdirs; do
20546         acl_save_libdir="$libdir"
20547         libdir="$found_dir"
20548         eval flag=\"$acl_hardcode_libdir_flag_spec\"
20549         libdir="$acl_save_libdir"
20550         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20551       done
20552     fi
20553   fi
20554   if test "X$ltrpathdirs" != "X"; then
20555             for found_dir in $ltrpathdirs; do
20556       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20557     done
20558   fi
20559
20560
20561
20562
20563
20564
20565
20566
20567   GNULIB_ICONV=0;
20568     ICONV_CONST=;
20569   REPLACE_ICONV=0;
20570   REPLACE_ICONV_OPEN=0;
20571   REPLACE_ICONV_UTF=0;
20572   ICONV_H='';
20573    if test -n "$ICONV_H"; then
20574   GL_GENERATE_ICONV_H_TRUE=
20575   GL_GENERATE_ICONV_H_FALSE='#'
20576 else
20577   GL_GENERATE_ICONV_H_TRUE='#'
20578   GL_GENERATE_ICONV_H_FALSE=
20579 fi
20580
20581
20582
20583
20584
20585
20586
20587           am_save_CPPFLAGS="$CPPFLAGS"
20588
20589   for element in $INCICONV; do
20590     haveit=
20591     for x in $CPPFLAGS; do
20592
20593   acl_save_prefix="$prefix"
20594   prefix="$acl_final_prefix"
20595   acl_save_exec_prefix="$exec_prefix"
20596   exec_prefix="$acl_final_exec_prefix"
20597   eval x=\"$x\"
20598   exec_prefix="$acl_save_exec_prefix"
20599   prefix="$acl_save_prefix"
20600
20601       if test "X$x" = "X$element"; then
20602         haveit=yes
20603         break
20604       fi
20605     done
20606     if test -z "$haveit"; then
20607       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20608     fi
20609   done
20610
20611
20612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20613 $as_echo_n "checking for iconv... " >&6; }
20614 if ${am_cv_func_iconv+:} false; then :
20615   $as_echo_n "(cached) " >&6
20616 else
20617
20618     am_cv_func_iconv="no, consider installing GNU libiconv"
20619     am_cv_lib_iconv=no
20620     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20621 /* end confdefs.h.  */
20622
20623 #include <stdlib.h>
20624 #include <iconv.h>
20625
20626 int
20627 main ()
20628 {
20629 iconv_t cd = iconv_open("","");
20630            iconv(cd,NULL,NULL,NULL,NULL);
20631            iconv_close(cd);
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 if ac_fn_c_try_link "$LINENO"; then :
20637   am_cv_func_iconv=yes
20638 fi
20639 rm -f core conftest.err conftest.$ac_objext \
20640     conftest$ac_exeext conftest.$ac_ext
20641     if test "$am_cv_func_iconv" != yes; then
20642       am_save_LIBS="$LIBS"
20643       LIBS="$LIBS $LIBICONV"
20644       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h.  */
20646
20647 #include <stdlib.h>
20648 #include <iconv.h>
20649
20650 int
20651 main ()
20652 {
20653 iconv_t cd = iconv_open("","");
20654              iconv(cd,NULL,NULL,NULL,NULL);
20655              iconv_close(cd);
20656   ;
20657   return 0;
20658 }
20659 _ACEOF
20660 if ac_fn_c_try_link "$LINENO"; then :
20661   am_cv_lib_iconv=yes
20662         am_cv_func_iconv=yes
20663 fi
20664 rm -f core conftest.err conftest.$ac_objext \
20665     conftest$ac_exeext conftest.$ac_ext
20666       LIBS="$am_save_LIBS"
20667     fi
20668
20669 fi
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20671 $as_echo "$am_cv_func_iconv" >&6; }
20672   if test "$am_cv_func_iconv" = yes; then
20673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20674 $as_echo_n "checking for working iconv... " >&6; }
20675 if ${am_cv_func_iconv_works+:} false; then :
20676   $as_echo_n "(cached) " >&6
20677 else
20678
20679                   am_save_LIBS="$LIBS"
20680       if test $am_cv_lib_iconv = yes; then
20681         LIBS="$LIBS $LIBICONV"
20682       fi
20683       am_cv_func_iconv_works=no
20684       for ac_iconv_const in '' 'const'; do
20685         if test "$cross_compiling" = yes; then :
20686   case "$host_os" in
20687              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20688              *)            am_cv_func_iconv_works="guessing yes" ;;
20689            esac
20690 else
20691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20692 /* end confdefs.h.  */
20693
20694 #include <iconv.h>
20695 #include <string.h>
20696
20697 #ifndef ICONV_CONST
20698 # define ICONV_CONST $ac_iconv_const
20699 #endif
20700
20701 int
20702 main ()
20703 {
20704 int result = 0;
20705   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20706      returns.  */
20707   {
20708     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20709     if (cd_utf8_to_88591 != (iconv_t)(-1))
20710       {
20711         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
20712         char buf[10];
20713         ICONV_CONST char *inptr = input;
20714         size_t inbytesleft = strlen (input);
20715         char *outptr = buf;
20716         size_t outbytesleft = sizeof (buf);
20717         size_t res = iconv (cd_utf8_to_88591,
20718                             &inptr, &inbytesleft,
20719                             &outptr, &outbytesleft);
20720         if (res == 0)
20721           result |= 1;
20722         iconv_close (cd_utf8_to_88591);
20723       }
20724   }
20725   /* Test against Solaris 10 bug: Failures are not distinguishable from
20726      successful returns.  */
20727   {
20728     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20729     if (cd_ascii_to_88591 != (iconv_t)(-1))
20730       {
20731         static ICONV_CONST char input[] = "\263";
20732         char buf[10];
20733         ICONV_CONST char *inptr = input;
20734         size_t inbytesleft = strlen (input);
20735         char *outptr = buf;
20736         size_t outbytesleft = sizeof (buf);
20737         size_t res = iconv (cd_ascii_to_88591,
20738                             &inptr, &inbytesleft,
20739                             &outptr, &outbytesleft);
20740         if (res == 0)
20741           result |= 2;
20742         iconv_close (cd_ascii_to_88591);
20743       }
20744   }
20745   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
20746   {
20747     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20748     if (cd_88591_to_utf8 != (iconv_t)(-1))
20749       {
20750         static ICONV_CONST char input[] = "\304";
20751         static char buf[2] = { (char)0xDE, (char)0xAD };
20752         ICONV_CONST char *inptr = input;
20753         size_t inbytesleft = 1;
20754         char *outptr = buf;
20755         size_t outbytesleft = 1;
20756         size_t res = iconv (cd_88591_to_utf8,
20757                             &inptr, &inbytesleft,
20758                             &outptr, &outbytesleft);
20759         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20760           result |= 4;
20761         iconv_close (cd_88591_to_utf8);
20762       }
20763   }
20764 #if 0 /* This bug could be worked around by the caller.  */
20765   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
20766   {
20767     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20768     if (cd_88591_to_utf8 != (iconv_t)(-1))
20769       {
20770         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20771         char buf[50];
20772         ICONV_CONST char *inptr = input;
20773         size_t inbytesleft = strlen (input);
20774         char *outptr = buf;
20775         size_t outbytesleft = sizeof (buf);
20776         size_t res = iconv (cd_88591_to_utf8,
20777                             &inptr, &inbytesleft,
20778                             &outptr, &outbytesleft);
20779         if ((int)res > 0)
20780           result |= 8;
20781         iconv_close (cd_88591_to_utf8);
20782       }
20783   }
20784 #endif
20785   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20786      provided.  */
20787   if (/* Try standardized names.  */
20788       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20789       /* Try IRIX, OSF/1 names.  */
20790       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20791       /* Try AIX names.  */
20792       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20793       /* Try HP-UX names.  */
20794       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
20795     result |= 16;
20796   return result;
20797
20798   ;
20799   return 0;
20800 }
20801 _ACEOF
20802 if ac_fn_c_try_run "$LINENO"; then :
20803   am_cv_func_iconv_works=yes
20804 fi
20805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20806   conftest.$ac_objext conftest.beam conftest.$ac_ext
20807 fi
20808
20809         test "$am_cv_func_iconv_works" = no || break
20810       done
20811       LIBS="$am_save_LIBS"
20812
20813 fi
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20815 $as_echo "$am_cv_func_iconv_works" >&6; }
20816     case "$am_cv_func_iconv_works" in
20817       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20818       *)   am_func_iconv=yes ;;
20819     esac
20820   else
20821     am_func_iconv=no am_cv_lib_iconv=no
20822   fi
20823   if test "$am_func_iconv" = yes; then
20824
20825 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20826
20827   fi
20828   if test "$am_cv_lib_iconv" = yes; then
20829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20830 $as_echo_n "checking how to link with libiconv... " >&6; }
20831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20832 $as_echo "$LIBICONV" >&6; }
20833   else
20834             CPPFLAGS="$am_save_CPPFLAGS"
20835     LIBICONV=
20836     LTLIBICONV=
20837   fi
20838
20839
20840
20841   if test "$am_cv_func_iconv" = yes; then
20842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20843 $as_echo_n "checking for iconv declaration... " >&6; }
20844     if ${am_cv_proto_iconv+:} false; then :
20845   $as_echo_n "(cached) " >&6
20846 else
20847
20848       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20849 /* end confdefs.h.  */
20850
20851 #include <stdlib.h>
20852 #include <iconv.h>
20853 extern
20854 #ifdef __cplusplus
20855 "C"
20856 #endif
20857 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
20858 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20859 #else
20860 size_t iconv();
20861 #endif
20862
20863 int
20864 main ()
20865 {
20866
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 if ac_fn_c_try_compile "$LINENO"; then :
20872   am_cv_proto_iconv_arg1=""
20873 else
20874   am_cv_proto_iconv_arg1="const"
20875 fi
20876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877       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);"
20878 fi
20879
20880     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20881     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20882          $am_cv_proto_iconv" >&5
20883 $as_echo "
20884          $am_cv_proto_iconv" >&6; }
20885
20886 cat >>confdefs.h <<_ACEOF
20887 #define ICONV_CONST $am_cv_proto_iconv_arg1
20888 _ACEOF
20889
20890
20891        if test -n "$am_cv_proto_iconv_arg1"; then
20892          ICONV_CONST="const"
20893        fi
20894
20895   fi
20896
20897
20898
20899
20900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h.  */
20902 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
20903 int
20904 main ()
20905 {
20906
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 if ac_fn_c_try_link "$LINENO"; then :
20912
20913 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
20914
20915 fi
20916 rm -f core conftest.err conftest.$ac_objext \
20917     conftest$ac_exeext conftest.$ac_ext
20918
20919   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
20920 do :
20921   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20922 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20923 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20924   cat >>confdefs.h <<_ACEOF
20925 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20926 _ACEOF
20927
20928 fi
20929
20930 done
20931
20932   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
20933     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
20934     argz_stringify argz_next __fsetlocking
20935 do :
20936   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20937 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20938 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20939   cat >>confdefs.h <<_ACEOF
20940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20941 _ACEOF
20942
20943 fi
20944 done
20945
20946
20947       if test $ac_cv_func_uselocale = yes; then
20948     for ac_func in getlocalename_l
20949 do :
20950   ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
20951 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
20952   cat >>confdefs.h <<_ACEOF
20953 #define HAVE_GETLOCALENAME_L 1
20954 _ACEOF
20955
20956 fi
20957 done
20958
20959   fi
20960
20961           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
20962 "
20963 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
20964   ac_have_decl=1
20965 else
20966   ac_have_decl=0
20967 fi
20968
20969 cat >>confdefs.h <<_ACEOF
20970 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
20971 _ACEOF
20972 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
20973 "
20974 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
20975   ac_have_decl=1
20976 else
20977   ac_have_decl=0
20978 fi
20979
20980 cat >>confdefs.h <<_ACEOF
20981 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
20982 _ACEOF
20983
20984
20985
20986
20987                     for ac_prog in bison
20988 do
20989   # Extract the first word of "$ac_prog", so it can be a program name with args.
20990 set dummy $ac_prog; ac_word=$2
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20992 $as_echo_n "checking for $ac_word... " >&6; }
20993 if ${ac_cv_prog_INTLBISON+:} false; then :
20994   $as_echo_n "(cached) " >&6
20995 else
20996   if test -n "$INTLBISON"; then
20997   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20998 else
20999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21000 for as_dir in $PATH
21001 do
21002   IFS=$as_save_IFS
21003   test -z "$as_dir" && as_dir=.
21004     for ac_exec_ext in '' $ac_executable_extensions; do
21005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21006     ac_cv_prog_INTLBISON="$ac_prog"
21007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21008     break 2
21009   fi
21010 done
21011   done
21012 IFS=$as_save_IFS
21013
21014 fi
21015 fi
21016 INTLBISON=$ac_cv_prog_INTLBISON
21017 if test -n "$INTLBISON"; then
21018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
21019 $as_echo "$INTLBISON" >&6; }
21020 else
21021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21022 $as_echo "no" >&6; }
21023 fi
21024
21025
21026   test -n "$INTLBISON" && break
21027 done
21028
21029   if test -z "$INTLBISON"; then
21030     ac_verc_fail=yes
21031   else
21032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
21033 $as_echo_n "checking version of bison... " >&6; }
21034     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21035     case $ac_prog_version in
21036       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21037       2.[7-9]* | [3-9].*)
21038          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21039       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21040     esac
21041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21042 $as_echo "$ac_prog_version" >&6; }
21043   fi
21044   if test $ac_verc_fail = yes; then
21045     INTLBISON=:
21046   fi
21047
21048
21049
21050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
21051 $as_echo_n "checking for long long int... " >&6; }
21052 if ${ac_cv_type_long_long_int+:} false; then :
21053   $as_echo_n "(cached) " >&6
21054 else
21055   ac_cv_type_long_long_int=yes
21056       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
21057         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
21058         if test $ac_cv_type_long_long_int = yes; then
21059                                         if test "$cross_compiling" = yes; then :
21060   :
21061 else
21062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h.  */
21064 #include <limits.h>
21065                  #ifndef LLONG_MAX
21066                  # define HALF \
21067                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
21068                  # define LLONG_MAX (HALF - 1 + HALF)
21069                  #endif
21070 int
21071 main ()
21072 {
21073 long long int n = 1;
21074                  int i;
21075                  for (i = 0; ; i++)
21076                    {
21077                      long long int m = n << i;
21078                      if (m >> i != n)
21079                        return 1;
21080                      if (LLONG_MAX / 2 < m)
21081                        break;
21082                    }
21083                  return 0;
21084   ;
21085   return 0;
21086 }
21087 _ACEOF
21088 if ac_fn_c_try_run "$LINENO"; then :
21089
21090 else
21091   ac_cv_type_long_long_int=no
21092 fi
21093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21094   conftest.$ac_objext conftest.beam conftest.$ac_ext
21095 fi
21096
21097         fi
21098       fi
21099 fi
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
21101 $as_echo "$ac_cv_type_long_long_int" >&6; }
21102   if test $ac_cv_type_long_long_int = yes; then
21103
21104 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
21105
21106   fi
21107
21108
21109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21110 $as_echo_n "checking for wchar_t... " >&6; }
21111 if ${gt_cv_c_wchar_t+:} false; then :
21112   $as_echo_n "(cached) " >&6
21113 else
21114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h.  */
21116 #include <stddef.h>
21117             wchar_t foo = (wchar_t)'\0';
21118 int
21119 main ()
21120 {
21121
21122   ;
21123   return 0;
21124 }
21125 _ACEOF
21126 if ac_fn_c_try_compile "$LINENO"; then :
21127   gt_cv_c_wchar_t=yes
21128 else
21129   gt_cv_c_wchar_t=no
21130 fi
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 fi
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21134 $as_echo "$gt_cv_c_wchar_t" >&6; }
21135   if test $gt_cv_c_wchar_t = yes; then
21136
21137 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21138
21139   fi
21140
21141
21142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
21143 $as_echo_n "checking for wint_t... " >&6; }
21144 if ${gt_cv_c_wint_t+:} false; then :
21145   $as_echo_n "(cached) " >&6
21146 else
21147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21148 /* end confdefs.h.  */
21149
21150 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21151    <wchar.h>.
21152    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
21153    before <wchar.h>.  */
21154 #include <stddef.h>
21155 #include <stdio.h>
21156 #include <time.h>
21157 #include <wchar.h>
21158             wint_t foo = (wchar_t)'\0';
21159 int
21160 main ()
21161 {
21162
21163   ;
21164   return 0;
21165 }
21166 _ACEOF
21167 if ac_fn_c_try_compile "$LINENO"; then :
21168   gt_cv_c_wint_t=yes
21169 else
21170   gt_cv_c_wint_t=no
21171 fi
21172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21173 fi
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
21175 $as_echo "$gt_cv_c_wint_t" >&6; }
21176   if test $gt_cv_c_wint_t = yes; then
21177
21178 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
21179
21180   fi
21181
21182
21183
21184
21185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
21186 $as_echo_n "checking for intmax_t... " >&6; }
21187 if ${gt_cv_c_intmax_t+:} false; then :
21188   $as_echo_n "(cached) " >&6
21189 else
21190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21191 /* end confdefs.h.  */
21192
21193 #include <stddef.h>
21194 #include <stdlib.h>
21195 #if HAVE_STDINT_H_WITH_UINTMAX
21196 #include <stdint.h>
21197 #endif
21198 #if HAVE_INTTYPES_H_WITH_UINTMAX
21199 #include <inttypes.h>
21200 #endif
21201
21202 int
21203 main ()
21204 {
21205 intmax_t x = -1;
21206             return !x;
21207   ;
21208   return 0;
21209 }
21210 _ACEOF
21211 if ac_fn_c_try_compile "$LINENO"; then :
21212   gt_cv_c_intmax_t=yes
21213 else
21214   gt_cv_c_intmax_t=no
21215 fi
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217 fi
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
21219 $as_echo "$gt_cv_c_intmax_t" >&6; }
21220   if test $gt_cv_c_intmax_t = yes; then
21221
21222 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
21223
21224   fi
21225
21226
21227
21228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
21229 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
21230 if ${gt_cv_func_printf_posix+:} false; then :
21231   $as_echo_n "(cached) " >&6
21232 else
21233
21234       if test "$cross_compiling" = yes; then :
21235
21236           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21237 /* end confdefs.h.  */
21238
21239 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
21240   notposix
21241 #endif
21242
21243 _ACEOF
21244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21245   $EGREP "notposix" >/dev/null 2>&1; then :
21246   gt_cv_func_printf_posix="guessing no"
21247 else
21248   gt_cv_func_printf_posix="guessing yes"
21249 fi
21250 rm -f conftest*
21251
21252
21253 else
21254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h.  */
21256
21257 #include <stdio.h>
21258 #include <string.h>
21259 /* The string "%2$d %1$d", with dollar characters protected from the shell's
21260    dollar expansion (possibly an autoconf bug).  */
21261 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21262 static char buf[100];
21263 int main ()
21264 {
21265   sprintf (buf, format, 33, 55);
21266   return (strcmp (buf, "55 33") != 0);
21267 }
21268 _ACEOF
21269 if ac_fn_c_try_run "$LINENO"; then :
21270   gt_cv_func_printf_posix=yes
21271 else
21272   gt_cv_func_printf_posix=no
21273 fi
21274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21275   conftest.$ac_objext conftest.beam conftest.$ac_ext
21276 fi
21277
21278
21279 fi
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
21281 $as_echo "$gt_cv_func_printf_posix" >&6; }
21282   case $gt_cv_func_printf_posix in
21283     *yes)
21284
21285 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
21286
21287       ;;
21288   esac
21289
21290
21291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
21292 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
21293 if ${ac_cv_gnu_library_2_1+:} false; then :
21294   $as_echo_n "(cached) " >&6
21295 else
21296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21297 /* end confdefs.h.  */
21298
21299 #include <features.h>
21300 #ifdef __GNU_LIBRARY__
21301  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
21302   Lucky GNU user
21303  #endif
21304 #endif
21305 #ifdef __UCLIBC__
21306  Lucky user
21307 #endif
21308
21309 _ACEOF
21310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21311   $EGREP "Lucky" >/dev/null 2>&1; then :
21312   ac_cv_gnu_library_2_1=yes
21313 else
21314   ac_cv_gnu_library_2_1=no
21315 fi
21316 rm -f conftest*
21317
21318
21319
21320 fi
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
21322 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
21323
21324     GLIBC21="$ac_cv_gnu_library_2_1"
21325
21326
21327
21328   for ac_header in stdint.h
21329 do :
21330   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21331 if test "x$ac_cv_header_stdint_h" = xyes; then :
21332   cat >>confdefs.h <<_ACEOF
21333 #define HAVE_STDINT_H 1
21334 _ACEOF
21335
21336 fi
21337
21338 done
21339
21340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
21341 $as_echo_n "checking for SIZE_MAX... " >&6; }
21342 if ${gl_cv_size_max+:} false; then :
21343   $as_echo_n "(cached) " >&6
21344 else
21345
21346     gl_cv_size_max=
21347     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h.  */
21349
21350 #include <limits.h>
21351 #if HAVE_STDINT_H
21352 #include <stdint.h>
21353 #endif
21354 #ifdef SIZE_MAX
21355 Found it
21356 #endif
21357
21358 _ACEOF
21359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21360   $EGREP "Found it" >/dev/null 2>&1; then :
21361   gl_cv_size_max=yes
21362 fi
21363 rm -f conftest*
21364
21365     if test -z "$gl_cv_size_max"; then
21366                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
21367 #include <limits.h>"; then :
21368
21369 else
21370   size_t_bits_minus_1=
21371 fi
21372
21373       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
21374
21375 else
21376   fits_in_uint=
21377 fi
21378
21379       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
21380         if test $fits_in_uint = 1; then
21381                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21382 /* end confdefs.h.  */
21383 #include <stddef.h>
21384                  extern size_t foo;
21385                  extern unsigned long foo;
21386
21387 int
21388 main ()
21389 {
21390
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 if ac_fn_c_try_compile "$LINENO"; then :
21396   fits_in_uint=0
21397 fi
21398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21399         fi
21400                                 if test $fits_in_uint = 1; then
21401           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
21402         else
21403           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
21404         fi
21405       else
21406                 gl_cv_size_max='((size_t)~(size_t)0)'
21407       fi
21408     fi
21409
21410 fi
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
21412 $as_echo "$gl_cv_size_max" >&6; }
21413   if test "$gl_cv_size_max" != yes; then
21414
21415 cat >>confdefs.h <<_ACEOF
21416 #define SIZE_MAX $gl_cv_size_max
21417 _ACEOF
21418
21419   fi
21420
21421
21422
21423
21424   for ac_header in stdint.h
21425 do :
21426   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21427 if test "x$ac_cv_header_stdint_h" = xyes; then :
21428   cat >>confdefs.h <<_ACEOF
21429 #define HAVE_STDINT_H 1
21430 _ACEOF
21431
21432 fi
21433
21434 done
21435
21436
21437
21438
21439
21440   for ac_func in $ac_func_list
21441 do :
21442   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21443 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21444 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21445   cat >>confdefs.h <<_ACEOF
21446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21447 _ACEOF
21448
21449 fi
21450 done
21451
21452
21453
21454
21455
21456
21457
21458
21459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
21460 $as_echo_n "checking for working fcntl.h... " >&6; }
21461 if ${gl_cv_header_working_fcntl_h+:} false; then :
21462   $as_echo_n "(cached) " >&6
21463 else
21464   if test "$cross_compiling" = yes; then :
21465   gl_cv_header_working_fcntl_h=cross-compiling
21466 else
21467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468 /* end confdefs.h.  */
21469 #include <sys/types.h>
21470            #include <sys/stat.h>
21471            #if HAVE_UNISTD_H
21472            # include <unistd.h>
21473            #else /* on Windows with MSVC */
21474            # include <io.h>
21475            # include <stdlib.h>
21476            # defined sleep(n) _sleep ((n) * 1000)
21477            #endif
21478            #include <fcntl.h>
21479            #ifndef O_NOATIME
21480             #define O_NOATIME 0
21481            #endif
21482            #ifndef O_NOFOLLOW
21483             #define O_NOFOLLOW 0
21484            #endif
21485            static int const constants[] =
21486             {
21487               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
21488               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
21489             };
21490
21491 int
21492 main ()
21493 {
21494
21495             int result = !constants;
21496             #if HAVE_SYMLINK
21497             {
21498               static char const sym[] = "conftest.sym";
21499               if (symlink ("/dev/null", sym) != 0)
21500                 result |= 2;
21501               else
21502                 {
21503                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
21504                   if (fd >= 0)
21505                     {
21506                       close (fd);
21507                       result |= 4;
21508                     }
21509                 }
21510               if (unlink (sym) != 0 || symlink (".", sym) != 0)
21511                 result |= 2;
21512               else
21513                 {
21514                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
21515                   if (fd >= 0)
21516                     {
21517                       close (fd);
21518                       result |= 4;
21519                     }
21520                 }
21521               unlink (sym);
21522             }
21523             #endif
21524             {
21525               static char const file[] = "confdefs.h";
21526               int fd = open (file, O_RDONLY | O_NOATIME);
21527               if (fd < 0)
21528                 result |= 8;
21529               else
21530                 {
21531                   struct stat st0;
21532                   if (fstat (fd, &st0) != 0)
21533                     result |= 16;
21534                   else
21535                     {
21536                       char c;
21537                       sleep (1);
21538                       if (read (fd, &c, 1) != 1)
21539                         result |= 24;
21540                       else
21541                         {
21542                           if (close (fd) != 0)
21543                             result |= 32;
21544                           else
21545                             {
21546                               struct stat st1;
21547                               if (stat (file, &st1) != 0)
21548                                 result |= 40;
21549                               else
21550                                 if (st0.st_atime != st1.st_atime)
21551                                   result |= 64;
21552                             }
21553                         }
21554                     }
21555                 }
21556             }
21557             return result;
21558   ;
21559   return 0;
21560 }
21561 _ACEOF
21562 if ac_fn_c_try_run "$LINENO"; then :
21563   gl_cv_header_working_fcntl_h=yes
21564 else
21565   case $? in #(
21566         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
21567         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
21568         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
21569          *) gl_cv_header_working_fcntl_h='no';;
21570         esac
21571 fi
21572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21573   conftest.$ac_objext conftest.beam conftest.$ac_ext
21574 fi
21575
21576 fi
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
21578 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
21579
21580   case $gl_cv_header_working_fcntl_h in #(
21581   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
21582   *) ac_val=1;;
21583   esac
21584
21585 cat >>confdefs.h <<_ACEOF
21586 #define HAVE_WORKING_O_NOATIME $ac_val
21587 _ACEOF
21588
21589
21590   case $gl_cv_header_working_fcntl_h in #(
21591   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
21592   *) ac_val=1;;
21593   esac
21594
21595 cat >>confdefs.h <<_ACEOF
21596 #define HAVE_WORKING_O_NOFOLLOW $ac_val
21597 _ACEOF
21598
21599
21600
21601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21602 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21603 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21604   $as_echo_n "(cached) " >&6
21605 else
21606   gt_save_LIBS="$LIBS"
21607      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21608      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609 /* end confdefs.h.  */
21610 #include <CoreFoundation/CFPreferences.h>
21611 int
21612 main ()
21613 {
21614 CFPreferencesCopyAppValue(NULL, NULL)
21615   ;
21616   return 0;
21617 }
21618 _ACEOF
21619 if ac_fn_c_try_link "$LINENO"; then :
21620   gt_cv_func_CFPreferencesCopyAppValue=yes
21621 else
21622   gt_cv_func_CFPreferencesCopyAppValue=no
21623 fi
21624 rm -f core conftest.err conftest.$ac_objext \
21625     conftest$ac_exeext conftest.$ac_ext
21626      LIBS="$gt_save_LIBS"
21627 fi
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21629 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21630   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21631
21632 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21633
21634   fi
21635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21636 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21637 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21638   $as_echo_n "(cached) " >&6
21639 else
21640   gt_save_LIBS="$LIBS"
21641      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21642      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21643 /* end confdefs.h.  */
21644 #include <CoreFoundation/CFLocale.h>
21645 int
21646 main ()
21647 {
21648 CFLocaleCopyCurrent();
21649   ;
21650   return 0;
21651 }
21652 _ACEOF
21653 if ac_fn_c_try_link "$LINENO"; then :
21654   gt_cv_func_CFLocaleCopyCurrent=yes
21655 else
21656   gt_cv_func_CFLocaleCopyCurrent=no
21657 fi
21658 rm -f core conftest.err conftest.$ac_objext \
21659     conftest$ac_exeext conftest.$ac_ext
21660      LIBS="$gt_save_LIBS"
21661 fi
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21663 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21664   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21665
21666 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21667
21668   fi
21669   INTL_MACOSX_LIBS=
21670   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21671     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21672   fi
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685     case "$enable_silent_rules" in
21686     yes) INTL_DEFAULT_VERBOSITY=0;;
21687     no)  INTL_DEFAULT_VERBOSITY=1;;
21688     *)   INTL_DEFAULT_VERBOSITY=1;;
21689   esac
21690
21691
21692   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
21693 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
21694
21695 else
21696
21697 $as_echo "#define ptrdiff_t long" >>confdefs.h
21698
21699
21700 fi
21701
21702   for ac_header in features.h stddef.h stdlib.h string.h
21703 do :
21704   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21705 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21707   cat >>confdefs.h <<_ACEOF
21708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21709 _ACEOF
21710
21711 fi
21712
21713 done
21714
21715   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
21716     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
21717 do :
21718   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21719 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21720 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21721   cat >>confdefs.h <<_ACEOF
21722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21723 _ACEOF
21724
21725 fi
21726 done
21727
21728
21729       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
21730 "
21731 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
21732   ac_have_decl=1
21733 else
21734   ac_have_decl=0
21735 fi
21736
21737 cat >>confdefs.h <<_ACEOF
21738 #define HAVE_DECL__SNPRINTF $ac_have_decl
21739 _ACEOF
21740 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
21741 "
21742 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
21743   ac_have_decl=1
21744 else
21745   ac_have_decl=0
21746 fi
21747
21748 cat >>confdefs.h <<_ACEOF
21749 #define HAVE_DECL__SNWPRINTF $ac_have_decl
21750 _ACEOF
21751
21752
21753           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
21754 "
21755 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
21756   ac_have_decl=1
21757 else
21758   ac_have_decl=0
21759 fi
21760
21761 cat >>confdefs.h <<_ACEOF
21762 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
21763 _ACEOF
21764
21765
21766   case $gt_cv_func_printf_posix in
21767     *yes) HAVE_POSIX_PRINTF=1 ;;
21768     *) HAVE_POSIX_PRINTF=0 ;;
21769   esac
21770
21771   if test "$ac_cv_func_asprintf" = yes; then
21772     HAVE_ASPRINTF=1
21773   else
21774     HAVE_ASPRINTF=0
21775   fi
21776
21777   if test "$ac_cv_func_snprintf" = yes; then
21778     HAVE_SNPRINTF=1
21779   else
21780     HAVE_SNPRINTF=0
21781   fi
21782
21783   if test "$ac_cv_func_newlocale" = yes; then
21784     HAVE_NEWLOCALE=1
21785   else
21786     HAVE_NEWLOCALE=0
21787   fi
21788
21789   if test "$ac_cv_func_wprintf" = yes; then
21790     HAVE_WPRINTF=1
21791   else
21792     HAVE_WPRINTF=0
21793   fi
21794
21795
21796
21797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
21798 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
21799 if ${am_cv_langinfo_codeset+:} false; then :
21800   $as_echo_n "(cached) " >&6
21801 else
21802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21803 /* end confdefs.h.  */
21804 #include <langinfo.h>
21805 int
21806 main ()
21807 {
21808 char* cs = nl_langinfo(CODESET); return !cs;
21809   ;
21810   return 0;
21811 }
21812 _ACEOF
21813 if ac_fn_c_try_link "$LINENO"; then :
21814   am_cv_langinfo_codeset=yes
21815 else
21816   am_cv_langinfo_codeset=no
21817 fi
21818 rm -f core conftest.err conftest.$ac_objext \
21819     conftest$ac_exeext conftest.$ac_ext
21820
21821 fi
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
21823 $as_echo "$am_cv_langinfo_codeset" >&6; }
21824   if test $am_cv_langinfo_codeset = yes; then
21825
21826 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
21827
21828   fi
21829
21830
21831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21832 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21833 if ${gt_cv_val_LC_MESSAGES+:} false; then :
21834   $as_echo_n "(cached) " >&6
21835 else
21836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837 /* end confdefs.h.  */
21838 #include <locale.h>
21839 int
21840 main ()
21841 {
21842 return LC_MESSAGES
21843   ;
21844   return 0;
21845 }
21846 _ACEOF
21847 if ac_fn_c_try_link "$LINENO"; then :
21848   gt_cv_val_LC_MESSAGES=yes
21849 else
21850   gt_cv_val_LC_MESSAGES=no
21851 fi
21852 rm -f core conftest.err conftest.$ac_objext \
21853     conftest$ac_exeext conftest.$ac_ext
21854 fi
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
21856 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
21857   if test $gt_cv_val_LC_MESSAGES = yes; then
21858
21859 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21860
21861   fi
21862
21863
21864                 if test "$enable_shared" = yes; then
21865     case "$host_os" in
21866       mingw* | cygwin*) is_woe32dll=yes ;;
21867       *) is_woe32dll=no ;;
21868     esac
21869   else
21870     is_woe32dll=no
21871   fi
21872   WOE32DLL=$is_woe32dll
21873
21874
21875       case "$host_os" in
21876     mingw* | cygwin*) is_woe32=yes ;;
21877     *) is_woe32=no ;;
21878   esac
21879   WOE32=$is_woe32
21880
21881   if test $WOE32 = yes; then
21882         if test -n "$ac_tool_prefix"; then
21883   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
21884 set dummy ${ac_tool_prefix}windres; ac_word=$2
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21886 $as_echo_n "checking for $ac_word... " >&6; }
21887 if ${ac_cv_prog_WINDRES+:} false; then :
21888   $as_echo_n "(cached) " >&6
21889 else
21890   if test -n "$WINDRES"; then
21891   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
21892 else
21893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21894 for as_dir in $PATH
21895 do
21896   IFS=$as_save_IFS
21897   test -z "$as_dir" && as_dir=.
21898     for ac_exec_ext in '' $ac_executable_extensions; do
21899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21900     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
21901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21902     break 2
21903   fi
21904 done
21905   done
21906 IFS=$as_save_IFS
21907
21908 fi
21909 fi
21910 WINDRES=$ac_cv_prog_WINDRES
21911 if test -n "$WINDRES"; then
21912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
21913 $as_echo "$WINDRES" >&6; }
21914 else
21915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21916 $as_echo "no" >&6; }
21917 fi
21918
21919
21920 fi
21921 if test -z "$ac_cv_prog_WINDRES"; then
21922   ac_ct_WINDRES=$WINDRES
21923   # Extract the first word of "windres", so it can be a program name with args.
21924 set dummy windres; ac_word=$2
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21926 $as_echo_n "checking for $ac_word... " >&6; }
21927 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
21928   $as_echo_n "(cached) " >&6
21929 else
21930   if test -n "$ac_ct_WINDRES"; then
21931   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
21932 else
21933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21934 for as_dir in $PATH
21935 do
21936   IFS=$as_save_IFS
21937   test -z "$as_dir" && as_dir=.
21938     for ac_exec_ext in '' $ac_executable_extensions; do
21939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21940     ac_cv_prog_ac_ct_WINDRES="windres"
21941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21942     break 2
21943   fi
21944 done
21945   done
21946 IFS=$as_save_IFS
21947
21948 fi
21949 fi
21950 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
21951 if test -n "$ac_ct_WINDRES"; then
21952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
21953 $as_echo "$ac_ct_WINDRES" >&6; }
21954 else
21955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21956 $as_echo "no" >&6; }
21957 fi
21958
21959   if test "x$ac_ct_WINDRES" = x; then
21960     WINDRES=""
21961   else
21962     case $cross_compiling:$ac_tool_warned in
21963 yes:)
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21966 ac_tool_warned=yes ;;
21967 esac
21968     WINDRES=$ac_ct_WINDRES
21969   fi
21970 else
21971   WINDRES="$ac_cv_prog_WINDRES"
21972 fi
21973
21974   fi
21975
21976               case "$host_os" in
21977     hpux*) LTLIBC="" ;;
21978     *)     LTLIBC="-lc" ;;
21979   esac
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
22008 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
22009 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
22010   $as_echo_n "(cached) " >&6
22011 else
22012   gt_save_LIBS="$LIBS"
22013      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22014      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h.  */
22016 #include <CoreFoundation/CFPreferences.h>
22017 int
22018 main ()
22019 {
22020 CFPreferencesCopyAppValue(NULL, NULL)
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 if ac_fn_c_try_link "$LINENO"; then :
22026   gt_cv_func_CFPreferencesCopyAppValue=yes
22027 else
22028   gt_cv_func_CFPreferencesCopyAppValue=no
22029 fi
22030 rm -f core conftest.err conftest.$ac_objext \
22031     conftest$ac_exeext conftest.$ac_ext
22032      LIBS="$gt_save_LIBS"
22033 fi
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22035 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22036   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22037
22038 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
22039
22040   fi
22041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
22042 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
22043 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
22044   $as_echo_n "(cached) " >&6
22045 else
22046   gt_save_LIBS="$LIBS"
22047      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22048      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22049 /* end confdefs.h.  */
22050 #include <CoreFoundation/CFLocale.h>
22051 int
22052 main ()
22053 {
22054 CFLocaleCopyCurrent();
22055   ;
22056   return 0;
22057 }
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060   gt_cv_func_CFLocaleCopyCurrent=yes
22061 else
22062   gt_cv_func_CFLocaleCopyCurrent=no
22063 fi
22064 rm -f core conftest.err conftest.$ac_objext \
22065     conftest$ac_exeext conftest.$ac_ext
22066      LIBS="$gt_save_LIBS"
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
22069 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
22070   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22071
22072 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
22073
22074   fi
22075   INTL_MACOSX_LIBS=
22076   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22077     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
22078   fi
22079
22080
22081
22082
22083
22084
22085     BUILD_INCLUDED_LIBINTL=no
22086     USE_INCLUDED_LIBINTL=no
22087
22088   LIBINTL=
22089   LTLIBINTL=
22090   POSUB=
22091
22092     case " $gt_needs " in
22093     *" need-formatstring-macros "*) gt_api_version=3 ;;
22094     *" need-ngettext "*) gt_api_version=2 ;;
22095     *) gt_api_version=1 ;;
22096   esac
22097   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
22098   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
22099
22100     if test "$USE_NLS" = "yes"; then
22101     gt_use_preinstalled_gnugettext=no
22102
22103       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
22104 $as_echo_n "checking whether included gettext is requested... " >&6; }
22105
22106 # Check whether --with-included-gettext was given.
22107 if test "${with_included_gettext+set}" = set; then :
22108   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
22109 else
22110   nls_cv_force_use_gnu_gettext=no
22111 fi
22112
22113       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
22114 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
22115
22116       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
22117       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
22118
22119
22120         if test $gt_api_version -ge 3; then
22121           gt_revision_test_code='
22122 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
22123 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
22124 #endif
22125 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
22126 '
22127         else
22128           gt_revision_test_code=
22129         fi
22130         if test $gt_api_version -ge 2; then
22131           gt_expression_test_code=' + * ngettext ("", "", 0)'
22132         else
22133           gt_expression_test_code=
22134         fi
22135
22136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
22137 $as_echo_n "checking for GNU gettext in libc... " >&6; }
22138 if eval \${$gt_func_gnugettext_libc+:} false; then :
22139   $as_echo_n "(cached) " >&6
22140 else
22141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22142 /* end confdefs.h.  */
22143
22144 #include <libintl.h>
22145 $gt_revision_test_code
22146 extern int _nl_msg_cat_cntr;
22147 extern int *_nl_domain_bindings;
22148
22149 int
22150 main ()
22151 {
22152
22153 bindtextdomain ("", "");
22154 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
22155
22156   ;
22157   return 0;
22158 }
22159 _ACEOF
22160 if ac_fn_c_try_link "$LINENO"; then :
22161   eval "$gt_func_gnugettext_libc=yes"
22162 else
22163   eval "$gt_func_gnugettext_libc=no"
22164 fi
22165 rm -f core conftest.err conftest.$ac_objext \
22166     conftest$ac_exeext conftest.$ac_ext
22167 fi
22168 eval ac_res=\$$gt_func_gnugettext_libc
22169                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22170 $as_echo "$ac_res" >&6; }
22171
22172         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
22173
22174
22175
22176
22177
22178
22179
22180
22181     use_additional=yes
22182
22183   acl_save_prefix="$prefix"
22184   prefix="$acl_final_prefix"
22185   acl_save_exec_prefix="$exec_prefix"
22186   exec_prefix="$acl_final_exec_prefix"
22187
22188     eval additional_includedir=\"$includedir\"
22189     eval additional_libdir=\"$libdir\"
22190
22191   exec_prefix="$acl_save_exec_prefix"
22192   prefix="$acl_save_prefix"
22193
22194
22195 # Check whether --with-libintl-prefix was given.
22196 if test "${with_libintl_prefix+set}" = set; then :
22197   withval=$with_libintl_prefix;
22198     if test "X$withval" = "Xno"; then
22199       use_additional=no
22200     else
22201       if test "X$withval" = "X"; then
22202
22203   acl_save_prefix="$prefix"
22204   prefix="$acl_final_prefix"
22205   acl_save_exec_prefix="$exec_prefix"
22206   exec_prefix="$acl_final_exec_prefix"
22207
22208           eval additional_includedir=\"$includedir\"
22209           eval additional_libdir=\"$libdir\"
22210
22211   exec_prefix="$acl_save_exec_prefix"
22212   prefix="$acl_save_prefix"
22213
22214       else
22215         additional_includedir="$withval/include"
22216         additional_libdir="$withval/$acl_libdirstem"
22217         if test "$acl_libdirstem2" != "$acl_libdirstem" \
22218            && ! test -d "$withval/$acl_libdirstem"; then
22219           additional_libdir="$withval/$acl_libdirstem2"
22220         fi
22221       fi
22222     fi
22223
22224 fi
22225
22226       LIBINTL=
22227   LTLIBINTL=
22228   INCINTL=
22229   LIBINTL_PREFIX=
22230       HAVE_LIBINTL=
22231   rpathdirs=
22232   ltrpathdirs=
22233   names_already_handled=
22234   names_next_round='intl '
22235   while test -n "$names_next_round"; do
22236     names_this_round="$names_next_round"
22237     names_next_round=
22238     for name in $names_this_round; do
22239       already_handled=
22240       for n in $names_already_handled; do
22241         if test "$n" = "$name"; then
22242           already_handled=yes
22243           break
22244         fi
22245       done
22246       if test -z "$already_handled"; then
22247         names_already_handled="$names_already_handled $name"
22248                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
22249         eval value=\"\$HAVE_LIB$uppername\"
22250         if test -n "$value"; then
22251           if test "$value" = yes; then
22252             eval value=\"\$LIB$uppername\"
22253             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
22254             eval value=\"\$LTLIB$uppername\"
22255             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
22256           else
22257                                     :
22258           fi
22259         else
22260                               found_dir=
22261           found_la=
22262           found_so=
22263           found_a=
22264           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
22265           if test -n "$acl_shlibext"; then
22266             shrext=".$acl_shlibext"             # typically: shrext=.so
22267           else
22268             shrext=
22269           fi
22270           if test $use_additional = yes; then
22271             dir="$additional_libdir"
22272                                     if test -n "$acl_shlibext"; then
22273               if test -f "$dir/$libname$shrext"; then
22274                 found_dir="$dir"
22275                 found_so="$dir/$libname$shrext"
22276               else
22277                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22278                   ver=`(cd "$dir" && \
22279                         for f in "$libname$shrext".*; do echo "$f"; done \
22280                         | sed -e "s,^$libname$shrext\\\\.,," \
22281                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22282                         | sed 1q ) 2>/dev/null`
22283                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22284                     found_dir="$dir"
22285                     found_so="$dir/$libname$shrext.$ver"
22286                   fi
22287                 else
22288                   eval library_names=\"$acl_library_names_spec\"
22289                   for f in $library_names; do
22290                     if test -f "$dir/$f"; then
22291                       found_dir="$dir"
22292                       found_so="$dir/$f"
22293                       break
22294                     fi
22295                   done
22296                 fi
22297               fi
22298             fi
22299                         if test "X$found_dir" = "X"; then
22300               if test -f "$dir/$libname.$acl_libext"; then
22301                 found_dir="$dir"
22302                 found_a="$dir/$libname.$acl_libext"
22303               fi
22304             fi
22305             if test "X$found_dir" != "X"; then
22306               if test -f "$dir/$libname.la"; then
22307                 found_la="$dir/$libname.la"
22308               fi
22309             fi
22310           fi
22311           if test "X$found_dir" = "X"; then
22312             for x in $LDFLAGS $LTLIBINTL; do
22313
22314   acl_save_prefix="$prefix"
22315   prefix="$acl_final_prefix"
22316   acl_save_exec_prefix="$exec_prefix"
22317   exec_prefix="$acl_final_exec_prefix"
22318   eval x=\"$x\"
22319   exec_prefix="$acl_save_exec_prefix"
22320   prefix="$acl_save_prefix"
22321
22322               case "$x" in
22323                 -L*)
22324                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22325                                     if test -n "$acl_shlibext"; then
22326                     if test -f "$dir/$libname$shrext"; then
22327                       found_dir="$dir"
22328                       found_so="$dir/$libname$shrext"
22329                     else
22330                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22331                         ver=`(cd "$dir" && \
22332                               for f in "$libname$shrext".*; do echo "$f"; done \
22333                               | sed -e "s,^$libname$shrext\\\\.,," \
22334                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22335                               | sed 1q ) 2>/dev/null`
22336                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22337                           found_dir="$dir"
22338                           found_so="$dir/$libname$shrext.$ver"
22339                         fi
22340                       else
22341                         eval library_names=\"$acl_library_names_spec\"
22342                         for f in $library_names; do
22343                           if test -f "$dir/$f"; then
22344                             found_dir="$dir"
22345                             found_so="$dir/$f"
22346                             break
22347                           fi
22348                         done
22349                       fi
22350                     fi
22351                   fi
22352                                     if test "X$found_dir" = "X"; then
22353                     if test -f "$dir/$libname.$acl_libext"; then
22354                       found_dir="$dir"
22355                       found_a="$dir/$libname.$acl_libext"
22356                     fi
22357                   fi
22358                   if test "X$found_dir" != "X"; then
22359                     if test -f "$dir/$libname.la"; then
22360                       found_la="$dir/$libname.la"
22361                     fi
22362                   fi
22363                   ;;
22364               esac
22365               if test "X$found_dir" != "X"; then
22366                 break
22367               fi
22368             done
22369           fi
22370           if test "X$found_dir" != "X"; then
22371                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
22372             if test "X$found_so" != "X"; then
22373                                                         if test "$enable_rpath" = no \
22374                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22375                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
22376                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22377               else
22378                                                                                 haveit=
22379                 for x in $ltrpathdirs; do
22380                   if test "X$x" = "X$found_dir"; then
22381                     haveit=yes
22382                     break
22383                   fi
22384                 done
22385                 if test -z "$haveit"; then
22386                   ltrpathdirs="$ltrpathdirs $found_dir"
22387                 fi
22388                                 if test "$acl_hardcode_direct" = yes; then
22389                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22390                 else
22391                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22392                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22393                                                             haveit=
22394                     for x in $rpathdirs; do
22395                       if test "X$x" = "X$found_dir"; then
22396                         haveit=yes
22397                         break
22398                       fi
22399                     done
22400                     if test -z "$haveit"; then
22401                       rpathdirs="$rpathdirs $found_dir"
22402                     fi
22403                   else
22404                                                                                 haveit=
22405                     for x in $LDFLAGS $LIBINTL; do
22406
22407   acl_save_prefix="$prefix"
22408   prefix="$acl_final_prefix"
22409   acl_save_exec_prefix="$exec_prefix"
22410   exec_prefix="$acl_final_exec_prefix"
22411   eval x=\"$x\"
22412   exec_prefix="$acl_save_exec_prefix"
22413   prefix="$acl_save_prefix"
22414
22415                       if test "X$x" = "X-L$found_dir"; then
22416                         haveit=yes
22417                         break
22418                       fi
22419                     done
22420                     if test -z "$haveit"; then
22421                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
22422                     fi
22423                     if test "$acl_hardcode_minus_L" != no; then
22424                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22425                     else
22426                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22427                     fi
22428                   fi
22429                 fi
22430               fi
22431             else
22432               if test "X$found_a" != "X"; then
22433                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
22434               else
22435                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
22436               fi
22437             fi
22438                         additional_includedir=
22439             case "$found_dir" in
22440               */$acl_libdirstem | */$acl_libdirstem/)
22441                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22442                 if test "$name" = 'intl'; then
22443                   LIBINTL_PREFIX="$basedir"
22444                 fi
22445                 additional_includedir="$basedir/include"
22446                 ;;
22447               */$acl_libdirstem2 | */$acl_libdirstem2/)
22448                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
22449                 if test "$name" = 'intl'; then
22450                   LIBINTL_PREFIX="$basedir"
22451                 fi
22452                 additional_includedir="$basedir/include"
22453                 ;;
22454             esac
22455             if test "X$additional_includedir" != "X"; then
22456                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22457                 haveit=
22458                 if test "X$additional_includedir" = "X/usr/local/include"; then
22459                   if test -n "$GCC"; then
22460                     case $host_os in
22461                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22462                     esac
22463                   fi
22464                 fi
22465                 if test -z "$haveit"; then
22466                   for x in $CPPFLAGS $INCINTL; do
22467
22468   acl_save_prefix="$prefix"
22469   prefix="$acl_final_prefix"
22470   acl_save_exec_prefix="$exec_prefix"
22471   exec_prefix="$acl_final_exec_prefix"
22472   eval x=\"$x\"
22473   exec_prefix="$acl_save_exec_prefix"
22474   prefix="$acl_save_prefix"
22475
22476                     if test "X$x" = "X-I$additional_includedir"; then
22477                       haveit=yes
22478                       break
22479                     fi
22480                   done
22481                   if test -z "$haveit"; then
22482                     if test -d "$additional_includedir"; then
22483                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
22484                     fi
22485                   fi
22486                 fi
22487               fi
22488             fi
22489                         if test -n "$found_la"; then
22490                                                         save_libdir="$libdir"
22491               case "$found_la" in
22492                 */* | *\\*) . "$found_la" ;;
22493                 *) . "./$found_la" ;;
22494               esac
22495               libdir="$save_libdir"
22496                             for dep in $dependency_libs; do
22497                 case "$dep" in
22498                   -L*)
22499                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22500                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
22501                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
22502                       haveit=
22503                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
22504                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
22505                         if test -n "$GCC"; then
22506                           case $host_os in
22507                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22508                           esac
22509                         fi
22510                       fi
22511                       if test -z "$haveit"; then
22512                         haveit=
22513                         for x in $LDFLAGS $LIBINTL; do
22514
22515   acl_save_prefix="$prefix"
22516   prefix="$acl_final_prefix"
22517   acl_save_exec_prefix="$exec_prefix"
22518   exec_prefix="$acl_final_exec_prefix"
22519   eval x=\"$x\"
22520   exec_prefix="$acl_save_exec_prefix"
22521   prefix="$acl_save_prefix"
22522
22523                           if test "X$x" = "X-L$additional_libdir"; then
22524                             haveit=yes
22525                             break
22526                           fi
22527                         done
22528                         if test -z "$haveit"; then
22529                           if test -d "$additional_libdir"; then
22530                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
22531                           fi
22532                         fi
22533                         haveit=
22534                         for x in $LDFLAGS $LTLIBINTL; do
22535
22536   acl_save_prefix="$prefix"
22537   prefix="$acl_final_prefix"
22538   acl_save_exec_prefix="$exec_prefix"
22539   exec_prefix="$acl_final_exec_prefix"
22540   eval x=\"$x\"
22541   exec_prefix="$acl_save_exec_prefix"
22542   prefix="$acl_save_prefix"
22543
22544                           if test "X$x" = "X-L$additional_libdir"; then
22545                             haveit=yes
22546                             break
22547                           fi
22548                         done
22549                         if test -z "$haveit"; then
22550                           if test -d "$additional_libdir"; then
22551                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
22552                           fi
22553                         fi
22554                       fi
22555                     fi
22556                     ;;
22557                   -R*)
22558                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22559                     if test "$enable_rpath" != no; then
22560                                                                   haveit=
22561                       for x in $rpathdirs; do
22562                         if test "X$x" = "X$dir"; then
22563                           haveit=yes
22564                           break
22565                         fi
22566                       done
22567                       if test -z "$haveit"; then
22568                         rpathdirs="$rpathdirs $dir"
22569                       fi
22570                                                                   haveit=
22571                       for x in $ltrpathdirs; 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                         ltrpathdirs="$ltrpathdirs $dir"
22579                       fi
22580                     fi
22581                     ;;
22582                   -l*)
22583                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22584                     ;;
22585                   *.la)
22586                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22587                     ;;
22588                   *)
22589                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
22590                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
22591                     ;;
22592                 esac
22593               done
22594             fi
22595           else
22596                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22597             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
22598           fi
22599         fi
22600       fi
22601     done
22602   done
22603   if test "X$rpathdirs" != "X"; then
22604     if test -n "$acl_hardcode_libdir_separator"; then
22605                         alldirs=
22606       for found_dir in $rpathdirs; do
22607         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22608       done
22609             acl_save_libdir="$libdir"
22610       libdir="$alldirs"
22611       eval flag=\"$acl_hardcode_libdir_flag_spec\"
22612       libdir="$acl_save_libdir"
22613       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22614     else
22615             for found_dir in $rpathdirs; do
22616         acl_save_libdir="$libdir"
22617         libdir="$found_dir"
22618         eval flag=\"$acl_hardcode_libdir_flag_spec\"
22619         libdir="$acl_save_libdir"
22620         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22621       done
22622     fi
22623   fi
22624   if test "X$ltrpathdirs" != "X"; then
22625             for found_dir in $ltrpathdirs; do
22626       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
22627     done
22628   fi
22629
22630
22631
22632
22633
22634
22635           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
22636 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
22637 if eval \${$gt_func_gnugettext_libintl+:} false; then :
22638   $as_echo_n "(cached) " >&6
22639 else
22640   gt_save_CPPFLAGS="$CPPFLAGS"
22641             CPPFLAGS="$CPPFLAGS $INCINTL"
22642             gt_save_LIBS="$LIBS"
22643             LIBS="$LIBS $LIBINTL"
22644                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645 /* end confdefs.h.  */
22646
22647 #include <libintl.h>
22648 $gt_revision_test_code
22649 extern int _nl_msg_cat_cntr;
22650 extern
22651 #ifdef __cplusplus
22652 "C"
22653 #endif
22654 const char *_nl_expand_alias (const char *);
22655
22656 int
22657 main ()
22658 {
22659
22660 bindtextdomain ("", "");
22661 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22662
22663   ;
22664   return 0;
22665 }
22666 _ACEOF
22667 if ac_fn_c_try_link "$LINENO"; then :
22668   eval "$gt_func_gnugettext_libintl=yes"
22669 else
22670   eval "$gt_func_gnugettext_libintl=no"
22671 fi
22672 rm -f core conftest.err conftest.$ac_objext \
22673     conftest$ac_exeext conftest.$ac_ext
22674                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
22675               LIBS="$LIBS $LIBICONV"
22676               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h.  */
22678
22679 #include <libintl.h>
22680 $gt_revision_test_code
22681 extern int _nl_msg_cat_cntr;
22682 extern
22683 #ifdef __cplusplus
22684 "C"
22685 #endif
22686 const char *_nl_expand_alias (const char *);
22687
22688 int
22689 main ()
22690 {
22691
22692 bindtextdomain ("", "");
22693 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22694
22695   ;
22696   return 0;
22697 }
22698 _ACEOF
22699 if ac_fn_c_try_link "$LINENO"; then :
22700   LIBINTL="$LIBINTL $LIBICONV"
22701                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22702                  eval "$gt_func_gnugettext_libintl=yes"
22703
22704 fi
22705 rm -f core conftest.err conftest.$ac_objext \
22706     conftest$ac_exeext conftest.$ac_ext
22707             fi
22708             CPPFLAGS="$gt_save_CPPFLAGS"
22709             LIBS="$gt_save_LIBS"
22710 fi
22711 eval ac_res=\$$gt_func_gnugettext_libintl
22712                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22713 $as_echo "$ac_res" >&6; }
22714         fi
22715
22716                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
22717            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
22718                 && test "$PACKAGE" != gettext-runtime \
22719                 && test "$PACKAGE" != gettext-tools; }; then
22720           gt_use_preinstalled_gnugettext=yes
22721         else
22722                     LIBINTL=
22723           LTLIBINTL=
22724           INCINTL=
22725         fi
22726
22727
22728         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
22729                               nls_cv_use_gnu_gettext=yes
22730         fi
22731       fi
22732
22733       if test "$nls_cv_use_gnu_gettext" = "yes"; then
22734                 BUILD_INCLUDED_LIBINTL=yes
22735         USE_INCLUDED_LIBINTL=yes
22736         LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
22737         LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
22738         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
22739       fi
22740
22741       CATOBJEXT=
22742       if test "$gt_use_preinstalled_gnugettext" = "yes" \
22743          || test "$nls_cv_use_gnu_gettext" = "yes"; then
22744                 CATOBJEXT=.gmo
22745       fi
22746
22747
22748     if test -n "$INTL_MACOSX_LIBS"; then
22749       if test "$gt_use_preinstalled_gnugettext" = "yes" \
22750          || test "$nls_cv_use_gnu_gettext" = "yes"; then
22751                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
22752         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
22753       fi
22754     fi
22755
22756     if test "$gt_use_preinstalled_gnugettext" = "yes" \
22757        || test "$nls_cv_use_gnu_gettext" = "yes"; then
22758
22759 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
22760
22761     else
22762       USE_NLS=no
22763     fi
22764   fi
22765
22766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
22767 $as_echo_n "checking whether to use NLS... " >&6; }
22768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
22769 $as_echo "$USE_NLS" >&6; }
22770   if test "$USE_NLS" = "yes"; then
22771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
22772 $as_echo_n "checking where the gettext function comes from... " >&6; }
22773     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22774       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22775         gt_source="external libintl"
22776       else
22777         gt_source="libc"
22778       fi
22779     else
22780       gt_source="included intl directory"
22781     fi
22782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
22783 $as_echo "$gt_source" >&6; }
22784   fi
22785
22786   if test "$USE_NLS" = "yes"; then
22787
22788     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22789       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
22791 $as_echo_n "checking how to link with libintl... " >&6; }
22792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
22793 $as_echo "$LIBINTL" >&6; }
22794
22795   for element in $INCINTL; do
22796     haveit=
22797     for x in $CPPFLAGS; do
22798
22799   acl_save_prefix="$prefix"
22800   prefix="$acl_final_prefix"
22801   acl_save_exec_prefix="$exec_prefix"
22802   exec_prefix="$acl_final_exec_prefix"
22803   eval x=\"$x\"
22804   exec_prefix="$acl_save_exec_prefix"
22805   prefix="$acl_save_prefix"
22806
22807       if test "X$x" = "X$element"; then
22808         haveit=yes
22809         break
22810       fi
22811     done
22812     if test -z "$haveit"; then
22813       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22814     fi
22815   done
22816
22817       fi
22818
22819
22820 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
22821
22822
22823 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
22824
22825     fi
22826
22827         POSUB=po
22828   fi
22829
22830
22831             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
22832       BUILD_INCLUDED_LIBINTL=yes
22833     fi
22834
22835
22836
22837
22838
22839         nls_cv_header_intl=
22840     nls_cv_header_libgt=
22841
22842         DATADIRNAME=share
22843
22844
22845         INSTOBJEXT=.mo
22846
22847
22848         GENCAT=gencat
22849
22850
22851         INTLOBJS=
22852     if test "$USE_INCLUDED_LIBINTL" = yes; then
22853       INTLOBJS="\$(GETTOBJS)"
22854     fi
22855
22856
22857         INTL_LIBTOOL_SUFFIX_PREFIX=l
22858
22859
22860
22861     INTLLIBS="$LIBINTL"
22862
22863
22864
22865
22866
22867
22868
22869
22870   if test -z "$USE_NLS"; then
22871     echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
22872     exit 1
22873   fi
22874   BISON_LOCALEDIR=
22875   BISON_USE_NLS=no
22876   if test "$USE_NLS" = yes; then
22877                         if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
22878       BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
22879     fi
22880
22881     if test -n "$BISON_LOCALEDIR"; then
22882                               USER_LINGUAS="${LINGUAS-%UNSET%}"
22883       if test -n "$USER_LINGUAS"; then
22884         BISON_USE_NLS=yes
22885       fi
22886     fi
22887   fi
22888   if test $BISON_USE_NLS = yes; then
22889
22890 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
22891
22892   fi
22893
22894
22895 MSGMERGE_LIBM=?
22896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h.  */
22898
22899    #ifndef __NO_MATH_INLINES
22900    # define __NO_MATH_INLINES 1 /* for glibc */
22901    #endif
22902    #include <math.h>
22903    double x;
22904 int
22905 main ()
22906 {
22907 x = ceil(x); x = sqrt(x);
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 if ac_fn_c_try_link "$LINENO"; then :
22913   MSGMERGE_LIBM=
22914 fi
22915 rm -f core conftest.err conftest.$ac_objext \
22916     conftest$ac_exeext conftest.$ac_ext
22917 if test "$MSGMERGE_LIBM" = "?"; then
22918   save_LIBS="$LIBS"
22919   LIBS="$LIBS -lm"
22920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22921 /* end confdefs.h.  */
22922
22923      #ifndef __NO_MATH_INLINES
22924      # define __NO_MATH_INLINES 1 /* for glibc */
22925      #endif
22926      #include <math.h>
22927      double x;
22928 int
22929 main ()
22930 {
22931 x = ceil(x); x = sqrt(x);
22932   ;
22933   return 0;
22934 }
22935 _ACEOF
22936 if ac_fn_c_try_link "$LINENO"; then :
22937   MSGMERGE_LIBM="-lm"
22938 fi
22939 rm -f core conftest.err conftest.$ac_objext \
22940     conftest$ac_exeext conftest.$ac_ext
22941   LIBS="$save_LIBS"
22942 fi
22943 if test "$MSGMERGE_LIBM" = "?"; then
22944   MSGMERGE_LIBM=
22945 fi
22946
22947
22948
22949
22950
22951
22952
22953           LIBC_FATAL_STDERR_=1
22954   export LIBC_FATAL_STDERR_
22955
22956
22957   gl_need_lib_has_acl=
22958   # Check whether --enable-acl was given.
22959 if test "${enable_acl+set}" = set; then :
22960   enableval=$enable_acl;
22961 else
22962   enable_acl=auto
22963 fi
22964
22965
22966
22967
22968
22969
22970
22971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
22972 $as_echo_n "checking whether to use C++... " >&6; }
22973     # Check whether --enable-c++ was given.
22974 if test "${enable_c__+set}" = set; then :
22975   enableval=$enable_c__; CXX_CHOICE="$enableval"
22976 else
22977   CXX_CHOICE=yes
22978 fi
22979
22980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_CHOICE" >&5
22981 $as_echo "$CXX_CHOICE" >&6; }
22982
22983
22984
22985   GNULIB__EXIT=0;
22986   GNULIB_ATOLL=0;
22987   GNULIB_CALLOC_POSIX=0;
22988   GNULIB_CANONICALIZE_FILE_NAME=0;
22989   GNULIB_GETLOADAVG=0;
22990   GNULIB_GETSUBOPT=0;
22991   GNULIB_GRANTPT=0;
22992   GNULIB_MALLOC_POSIX=0;
22993   GNULIB_MBTOWC=0;
22994   GNULIB_MKDTEMP=0;
22995   GNULIB_MKOSTEMP=0;
22996   GNULIB_MKOSTEMPS=0;
22997   GNULIB_MKSTEMP=0;
22998   GNULIB_MKSTEMPS=0;
22999   GNULIB_POSIX_OPENPT=0;
23000   GNULIB_PTSNAME=0;
23001   GNULIB_PTSNAME_R=0;
23002   GNULIB_PUTENV=0;
23003   GNULIB_QSORT_R=0;
23004   GNULIB_RANDOM=0;
23005   GNULIB_RANDOM_R=0;
23006   GNULIB_REALLOC_POSIX=0;
23007   GNULIB_REALPATH=0;
23008   GNULIB_RPMATCH=0;
23009   GNULIB_SECURE_GETENV=0;
23010   GNULIB_SETENV=0;
23011   GNULIB_STRTOD=0;
23012   GNULIB_STRTOLL=0;
23013   GNULIB_STRTOULL=0;
23014   GNULIB_SYSTEM_POSIX=0;
23015   GNULIB_UNLOCKPT=0;
23016   GNULIB_UNSETENV=0;
23017   GNULIB_WCTOMB=0;
23018     HAVE__EXIT=1;
23019   HAVE_ATOLL=1;
23020   HAVE_CANONICALIZE_FILE_NAME=1;
23021   HAVE_DECL_GETLOADAVG=1;
23022   HAVE_GETSUBOPT=1;
23023   HAVE_GRANTPT=1;
23024   HAVE_MKDTEMP=1;
23025   HAVE_MKOSTEMP=1;
23026   HAVE_MKOSTEMPS=1;
23027   HAVE_MKSTEMP=1;
23028   HAVE_MKSTEMPS=1;
23029   HAVE_POSIX_OPENPT=1;
23030   HAVE_PTSNAME=1;
23031   HAVE_PTSNAME_R=1;
23032   HAVE_RANDOM=1;
23033   HAVE_RANDOM_H=1;
23034   HAVE_RANDOM_R=1;
23035   HAVE_REALPATH=1;
23036   HAVE_RPMATCH=1;
23037   HAVE_SECURE_GETENV=1;
23038   HAVE_SETENV=1;
23039   HAVE_DECL_SETENV=1;
23040   HAVE_STRTOD=1;
23041   HAVE_STRTOLL=1;
23042   HAVE_STRTOULL=1;
23043   HAVE_STRUCT_RANDOM_DATA=1;
23044   HAVE_SYS_LOADAVG_H=0;
23045   HAVE_UNLOCKPT=1;
23046   HAVE_DECL_UNSETENV=1;
23047   REPLACE_CALLOC=0;
23048   REPLACE_CANONICALIZE_FILE_NAME=0;
23049   REPLACE_MALLOC=0;
23050   REPLACE_MBTOWC=0;
23051   REPLACE_MKSTEMP=0;
23052   REPLACE_PTSNAME=0;
23053   REPLACE_PTSNAME_R=0;
23054   REPLACE_PUTENV=0;
23055   REPLACE_QSORT_R=0;
23056   REPLACE_RANDOM_R=0;
23057   REPLACE_REALLOC=0;
23058   REPLACE_REALPATH=0;
23059   REPLACE_SETENV=0;
23060   REPLACE_STRTOD=0;
23061   REPLACE_UNSETENV=0;
23062   REPLACE_WCTOMB=0;
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
23073 $as_echo_n "checking whether // is distinct from /... " >&6; }
23074 if ${gl_cv_double_slash_root+:} false; then :
23075   $as_echo_n "(cached) " >&6
23076 else
23077    if test x"$cross_compiling" = xyes ; then
23078         # When cross-compiling, there is no way to tell whether // is special
23079         # short of a list of hosts.  However, the only known hosts to date
23080         # that have a distinct // are Apollo DomainOS (too old to port to),
23081         # Cygwin, and z/OS.  If anyone knows of another system for which // has
23082         # special semantics and is distinct from /, please report it to
23083         # <bug-gnulib@gnu.org>.
23084         case $host in
23085           *-cygwin | i370-ibm-openedition)
23086             gl_cv_double_slash_root=yes ;;
23087           *)
23088             # Be optimistic and assume that / and // are the same when we
23089             # don't know.
23090             gl_cv_double_slash_root='unknown, assuming no' ;;
23091         esac
23092       else
23093         set x `ls -di / // 2>/dev/null`
23094         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
23095           gl_cv_double_slash_root=no
23096         else
23097           gl_cv_double_slash_root=yes
23098         fi
23099       fi
23100 fi
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
23102 $as_echo "$gl_cv_double_slash_root" >&6; }
23103   if test "$gl_cv_double_slash_root" = yes; then
23104
23105 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
23106
23107   fi
23108
23109
23110
23111
23112
23113      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
23114 $as_echo_n "checking whether realpath works... " >&6; }
23115 if ${gl_cv_func_realpath_works+:} false; then :
23116   $as_echo_n "(cached) " >&6
23117 else
23118
23119     touch conftest.a
23120     mkdir conftest.d
23121     if test "$cross_compiling" = yes; then :
23122   case "$host_os" in
23123                        # Guess yes on glibc systems.
23124         *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
23125                        # If we don't know, assume the worst.
23126         *)             gl_cv_func_realpath_works="guessing no" ;;
23127       esac
23128
23129 else
23130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23131 /* end confdefs.h.  */
23132
23133
23134
23135 #include <stdlib.h>
23136 #if defined __MACH__ && defined __APPLE__
23137 /* Avoid a crash on Mac OS X.  */
23138 #include <mach/mach.h>
23139 #include <mach/mach_error.h>
23140 #include <mach/thread_status.h>
23141 #include <mach/exception.h>
23142 #include <mach/task.h>
23143 #include <pthread.h>
23144 /* The exception port on which our thread listens.  */
23145 static mach_port_t our_exception_port;
23146 /* The main function of the thread listening for exceptions of type
23147    EXC_BAD_ACCESS.  */
23148 static void *
23149 mach_exception_thread (void *arg)
23150 {
23151   /* Buffer for a message to be received.  */
23152   struct {
23153     mach_msg_header_t head;
23154     mach_msg_body_t msgh_body;
23155     char data[1024];
23156   } msg;
23157   mach_msg_return_t retval;
23158   /* Wait for a message on the exception port.  */
23159   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
23160                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
23161   if (retval != MACH_MSG_SUCCESS)
23162     abort ();
23163   exit (1);
23164 }
23165 static void
23166 nocrash_init (void)
23167 {
23168   mach_port_t self = mach_task_self ();
23169   /* Allocate a port on which the thread shall listen for exceptions.  */
23170   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
23171       == KERN_SUCCESS) {
23172     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
23173     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
23174                                 MACH_MSG_TYPE_MAKE_SEND)
23175         == KERN_SUCCESS) {
23176       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
23177          for us.  */
23178       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
23179       /* Create the thread listening on the exception port.  */
23180       pthread_attr_t attr;
23181       pthread_t thread;
23182       if (pthread_attr_init (&attr) == 0
23183           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
23184           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
23185         pthread_attr_destroy (&attr);
23186         /* Replace the exception port info for these exceptions with our own.
23187            Note that we replace the exception port for the entire task, not only
23188            for a particular thread.  This has the effect that when our exception
23189            port gets the message, the thread specific exception port has already
23190            been asked, and we don't need to bother about it.
23191            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
23192         task_set_exception_ports (self, mask, our_exception_port,
23193                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
23194       }
23195     }
23196   }
23197 }
23198 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23199 /* Avoid a crash on native Windows.  */
23200 #define WIN32_LEAN_AND_MEAN
23201 #include <windows.h>
23202 #include <winerror.h>
23203 static LONG WINAPI
23204 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
23205 {
23206   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
23207     {
23208     case EXCEPTION_ACCESS_VIOLATION:
23209     case EXCEPTION_IN_PAGE_ERROR:
23210     case EXCEPTION_STACK_OVERFLOW:
23211     case EXCEPTION_GUARD_PAGE:
23212     case EXCEPTION_PRIV_INSTRUCTION:
23213     case EXCEPTION_ILLEGAL_INSTRUCTION:
23214     case EXCEPTION_DATATYPE_MISALIGNMENT:
23215     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
23216     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
23217       exit (1);
23218     }
23219   return EXCEPTION_CONTINUE_SEARCH;
23220 }
23221 static void
23222 nocrash_init (void)
23223 {
23224   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
23225 }
23226 #else
23227 /* Avoid a crash on POSIX systems.  */
23228 #include <signal.h>
23229 /* A POSIX signal handler.  */
23230 static void
23231 exception_handler (int sig)
23232 {
23233   exit (1);
23234 }
23235 static void
23236 nocrash_init (void)
23237 {
23238 #ifdef SIGSEGV
23239   signal (SIGSEGV, exception_handler);
23240 #endif
23241 #ifdef SIGBUS
23242   signal (SIGBUS, exception_handler);
23243 #endif
23244 }
23245 #endif
23246
23247         #include <stdlib.h>
23248         #include <string.h>
23249
23250 int
23251 main ()
23252 {
23253
23254         int result = 0;
23255         {
23256           char *name = realpath ("conftest.a", NULL);
23257           if (!(name && *name == '/'))
23258             result |= 1;
23259         }
23260         {
23261           char *name = realpath ("conftest.b/../conftest.a", NULL);
23262           if (name != NULL)
23263             result |= 2;
23264         }
23265         {
23266           char *name = realpath ("conftest.a/", NULL);
23267           if (name != NULL)
23268             result |= 4;
23269         }
23270         {
23271           char *name1 = realpath (".", NULL);
23272           char *name2 = realpath ("conftest.d//./..", NULL);
23273           if (strcmp (name1, name2) != 0)
23274             result |= 8;
23275         }
23276         return result;
23277
23278   ;
23279   return 0;
23280 }
23281
23282 _ACEOF
23283 if ac_fn_c_try_run "$LINENO"; then :
23284   gl_cv_func_realpath_works=yes
23285 else
23286   gl_cv_func_realpath_works=no
23287 fi
23288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23289   conftest.$ac_objext conftest.beam conftest.$ac_ext
23290 fi
23291
23292     rm -rf conftest.a conftest.d
23293
23294 fi
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
23296 $as_echo "$gl_cv_func_realpath_works" >&6; }
23297   case "$gl_cv_func_realpath_works" in
23298     *yes)
23299
23300 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
23301
23302       ;;
23303   esac
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315   GNULIB_CHDIR=0;
23316   GNULIB_CHOWN=0;
23317   GNULIB_CLOSE=0;
23318   GNULIB_DUP=0;
23319   GNULIB_DUP2=0;
23320   GNULIB_DUP3=0;
23321   GNULIB_ENVIRON=0;
23322   GNULIB_EUIDACCESS=0;
23323   GNULIB_FACCESSAT=0;
23324   GNULIB_FCHDIR=0;
23325   GNULIB_FCHOWNAT=0;
23326   GNULIB_FDATASYNC=0;
23327   GNULIB_FSYNC=0;
23328   GNULIB_FTRUNCATE=0;
23329   GNULIB_GETCWD=0;
23330   GNULIB_GETDOMAINNAME=0;
23331   GNULIB_GETDTABLESIZE=0;
23332   GNULIB_GETGROUPS=0;
23333   GNULIB_GETHOSTNAME=0;
23334   GNULIB_GETLOGIN=0;
23335   GNULIB_GETLOGIN_R=0;
23336   GNULIB_GETPAGESIZE=0;
23337   GNULIB_GETUSERSHELL=0;
23338   GNULIB_GROUP_MEMBER=0;
23339   GNULIB_ISATTY=0;
23340   GNULIB_LCHOWN=0;
23341   GNULIB_LINK=0;
23342   GNULIB_LINKAT=0;
23343   GNULIB_LSEEK=0;
23344   GNULIB_PIPE=0;
23345   GNULIB_PIPE2=0;
23346   GNULIB_PREAD=0;
23347   GNULIB_PWRITE=0;
23348   GNULIB_READ=0;
23349   GNULIB_READLINK=0;
23350   GNULIB_READLINKAT=0;
23351   GNULIB_RMDIR=0;
23352   GNULIB_SETHOSTNAME=0;
23353   GNULIB_SLEEP=0;
23354   GNULIB_SYMLINK=0;
23355   GNULIB_SYMLINKAT=0;
23356   GNULIB_TTYNAME_R=0;
23357   GNULIB_UNISTD_H_NONBLOCKING=0;
23358   GNULIB_UNISTD_H_SIGPIPE=0;
23359   GNULIB_UNLINK=0;
23360   GNULIB_UNLINKAT=0;
23361   GNULIB_USLEEP=0;
23362   GNULIB_WRITE=0;
23363     HAVE_CHOWN=1;
23364   HAVE_DUP2=1;
23365   HAVE_DUP3=1;
23366   HAVE_EUIDACCESS=1;
23367   HAVE_FACCESSAT=1;
23368   HAVE_FCHDIR=1;
23369   HAVE_FCHOWNAT=1;
23370   HAVE_FDATASYNC=1;
23371   HAVE_FSYNC=1;
23372   HAVE_FTRUNCATE=1;
23373   HAVE_GETDTABLESIZE=1;
23374   HAVE_GETGROUPS=1;
23375   HAVE_GETHOSTNAME=1;
23376   HAVE_GETLOGIN=1;
23377   HAVE_GETPAGESIZE=1;
23378   HAVE_GROUP_MEMBER=1;
23379   HAVE_LCHOWN=1;
23380   HAVE_LINK=1;
23381   HAVE_LINKAT=1;
23382   HAVE_PIPE=1;
23383   HAVE_PIPE2=1;
23384   HAVE_PREAD=1;
23385   HAVE_PWRITE=1;
23386   HAVE_READLINK=1;
23387   HAVE_READLINKAT=1;
23388   HAVE_SETHOSTNAME=1;
23389   HAVE_SLEEP=1;
23390   HAVE_SYMLINK=1;
23391   HAVE_SYMLINKAT=1;
23392   HAVE_UNLINKAT=1;
23393   HAVE_USLEEP=1;
23394   HAVE_DECL_ENVIRON=1;
23395   HAVE_DECL_FCHDIR=1;
23396   HAVE_DECL_FDATASYNC=1;
23397   HAVE_DECL_GETDOMAINNAME=1;
23398   HAVE_DECL_GETLOGIN_R=1;
23399   HAVE_DECL_GETPAGESIZE=1;
23400   HAVE_DECL_GETUSERSHELL=1;
23401   HAVE_DECL_SETHOSTNAME=1;
23402   HAVE_DECL_TTYNAME_R=1;
23403   HAVE_OS_H=0;
23404   HAVE_SYS_PARAM_H=0;
23405   REPLACE_CHOWN=0;
23406   REPLACE_CLOSE=0;
23407   REPLACE_DUP=0;
23408   REPLACE_DUP2=0;
23409   REPLACE_FCHOWNAT=0;
23410   REPLACE_FTRUNCATE=0;
23411   REPLACE_GETCWD=0;
23412   REPLACE_GETDOMAINNAME=0;
23413   REPLACE_GETDTABLESIZE=0;
23414   REPLACE_GETLOGIN_R=0;
23415   REPLACE_GETGROUPS=0;
23416   REPLACE_GETPAGESIZE=0;
23417   REPLACE_ISATTY=0;
23418   REPLACE_LCHOWN=0;
23419   REPLACE_LINK=0;
23420   REPLACE_LINKAT=0;
23421   REPLACE_LSEEK=0;
23422   REPLACE_PREAD=0;
23423   REPLACE_PWRITE=0;
23424   REPLACE_READ=0;
23425   REPLACE_READLINK=0;
23426   REPLACE_READLINKAT=0;
23427   REPLACE_RMDIR=0;
23428   REPLACE_SLEEP=0;
23429   REPLACE_SYMLINK=0;
23430   REPLACE_SYMLINKAT=0;
23431   REPLACE_TTYNAME_R=0;
23432   REPLACE_UNLINK=0;
23433   REPLACE_UNLINKAT=0;
23434   REPLACE_USLEEP=0;
23435   REPLACE_WRITE=0;
23436   UNISTD_H_HAVE_WINSOCK2_H=0;
23437   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
23438
23439
23440
23441
23442
23443
23444   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
23445     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
23446
23447 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
23448
23449   else
23450     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
23451   fi
23452
23453
23454
23455
23456
23457      GNULIB_OPENDIR=0;
23458   GNULIB_READDIR=0;
23459   GNULIB_REWINDDIR=0;
23460   GNULIB_CLOSEDIR=0;
23461   GNULIB_DIRFD=0;
23462   GNULIB_FDOPENDIR=0;
23463   GNULIB_SCANDIR=0;
23464   GNULIB_ALPHASORT=0;
23465     HAVE_OPENDIR=1;
23466   HAVE_READDIR=1;
23467   HAVE_REWINDDIR=1;
23468   HAVE_CLOSEDIR=1;
23469   HAVE_DECL_DIRFD=1;
23470   HAVE_DECL_FDOPENDIR=1;
23471   HAVE_FDOPENDIR=1;
23472   HAVE_SCANDIR=1;
23473   HAVE_ALPHASORT=1;
23474   REPLACE_OPENDIR=0;
23475   REPLACE_CLOSEDIR=0;
23476   REPLACE_DIRFD=0;
23477   REPLACE_FDOPENDIR=0;
23478
23479
23480
23481
23482
23483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
23484 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
23485 if ${gl_cv_have_include_next+:} false; then :
23486   $as_echo_n "(cached) " >&6
23487 else
23488   rm -rf conftestd1a conftestd1b conftestd2
23489      mkdir conftestd1a conftestd1b conftestd2
23490                                                   cat <<EOF > conftestd1a/conftest.h
23491 #define DEFINED_IN_CONFTESTD1
23492 #include_next <conftest.h>
23493 #ifdef DEFINED_IN_CONFTESTD2
23494 int foo;
23495 #else
23496 #error "include_next doesn't work"
23497 #endif
23498 EOF
23499      cat <<EOF > conftestd1b/conftest.h
23500 #define DEFINED_IN_CONFTESTD1
23501 #include <stdio.h>
23502 #include_next <conftest.h>
23503 #ifdef DEFINED_IN_CONFTESTD2
23504 int foo;
23505 #else
23506 #error "include_next doesn't work"
23507 #endif
23508 EOF
23509      cat <<EOF > conftestd2/conftest.h
23510 #ifndef DEFINED_IN_CONFTESTD1
23511 #error "include_next test doesn't work"
23512 #endif
23513 #define DEFINED_IN_CONFTESTD2
23514 EOF
23515      gl_save_CPPFLAGS="$CPPFLAGS"
23516      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
23517      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23518 /* end confdefs.h.  */
23519 #include <conftest.h>
23520 _ACEOF
23521 if ac_fn_c_try_compile "$LINENO"; then :
23522   gl_cv_have_include_next=yes
23523 else
23524   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
23525         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23526 /* end confdefs.h.  */
23527 #include <conftest.h>
23528 _ACEOF
23529 if ac_fn_c_try_compile "$LINENO"; then :
23530   gl_cv_have_include_next=buggy
23531 else
23532   gl_cv_have_include_next=no
23533 fi
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535
23536 fi
23537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23538      CPPFLAGS="$gl_save_CPPFLAGS"
23539      rm -rf conftestd1a conftestd1b conftestd2
23540
23541 fi
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
23543 $as_echo "$gl_cv_have_include_next" >&6; }
23544   PRAGMA_SYSTEM_HEADER=
23545   if test $gl_cv_have_include_next = yes; then
23546     INCLUDE_NEXT=include_next
23547     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
23548     if test -n "$GCC"; then
23549       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
23550     fi
23551   else
23552     if test $gl_cv_have_include_next = buggy; then
23553       INCLUDE_NEXT=include
23554       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
23555     else
23556       INCLUDE_NEXT=include
23557       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
23558     fi
23559   fi
23560
23561
23562
23563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
23564 $as_echo_n "checking whether system header files limit the line length... " >&6; }
23565 if ${gl_cv_pragma_columns+:} false; then :
23566   $as_echo_n "(cached) " >&6
23567 else
23568        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569 /* end confdefs.h.  */
23570
23571 #ifdef __TANDEM
23572 choke me
23573 #endif
23574
23575 _ACEOF
23576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23577   $EGREP "choke me" >/dev/null 2>&1; then :
23578   gl_cv_pragma_columns=yes
23579 else
23580   gl_cv_pragma_columns=no
23581 fi
23582 rm -f conftest*
23583
23584
23585 fi
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
23587 $as_echo "$gl_cv_pragma_columns" >&6; }
23588   if test $gl_cv_pragma_columns = yes; then
23589     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
23590   else
23591     PRAGMA_COLUMNS=
23592   fi
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
23605 $as_echo_n "checking if environ is properly declared... " >&6; }
23606   if ${gt_cv_var_environ_declaration+:} false; then :
23607   $as_echo_n "(cached) " >&6
23608 else
23609
23610     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23611 /* end confdefs.h.  */
23612 #if HAVE_UNISTD_H
23613      #include <unistd.h>
23614      #endif
23615      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
23616      #include <stdlib.h>
23617
23618            extern struct { int foo; } environ;
23619 int
23620 main ()
23621 {
23622 environ.foo = 1;
23623   ;
23624   return 0;
23625 }
23626 _ACEOF
23627 if ac_fn_c_try_compile "$LINENO"; then :
23628   gt_cv_var_environ_declaration=no
23629 else
23630   gt_cv_var_environ_declaration=yes
23631 fi
23632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633 fi
23634
23635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
23636 $as_echo "$gt_cv_var_environ_declaration" >&6; }
23637   if test $gt_cv_var_environ_declaration = yes; then
23638
23639 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
23640
23641   fi
23642
23643
23644   if test $gt_cv_var_environ_declaration != yes; then
23645     HAVE_DECL_ENVIRON=0
23646   fi
23647
23648
23649
23650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
23651 $as_echo_n "checking for complete errno.h... " >&6; }
23652 if ${gl_cv_header_errno_h_complete+:} false; then :
23653   $as_echo_n "(cached) " >&6
23654 else
23655
23656     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23657 /* end confdefs.h.  */
23658
23659 #include <errno.h>
23660 #if !defined ETXTBSY
23661 booboo
23662 #endif
23663 #if !defined ENOMSG
23664 booboo
23665 #endif
23666 #if !defined EIDRM
23667 booboo
23668 #endif
23669 #if !defined ENOLINK
23670 booboo
23671 #endif
23672 #if !defined EPROTO
23673 booboo
23674 #endif
23675 #if !defined EMULTIHOP
23676 booboo
23677 #endif
23678 #if !defined EBADMSG
23679 booboo
23680 #endif
23681 #if !defined EOVERFLOW
23682 booboo
23683 #endif
23684 #if !defined ENOTSUP
23685 booboo
23686 #endif
23687 #if !defined ENETRESET
23688 booboo
23689 #endif
23690 #if !defined ECONNABORTED
23691 booboo
23692 #endif
23693 #if !defined ESTALE
23694 booboo
23695 #endif
23696 #if !defined EDQUOT
23697 booboo
23698 #endif
23699 #if !defined ECANCELED
23700 booboo
23701 #endif
23702 #if !defined EOWNERDEAD
23703 booboo
23704 #endif
23705 #if !defined ENOTRECOVERABLE
23706 booboo
23707 #endif
23708 #if !defined EILSEQ
23709 booboo
23710 #endif
23711
23712 _ACEOF
23713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23714   $EGREP "booboo" >/dev/null 2>&1; then :
23715   gl_cv_header_errno_h_complete=no
23716 else
23717   gl_cv_header_errno_h_complete=yes
23718 fi
23719 rm -f conftest*
23720
23721
23722 fi
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
23724 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
23725   if test $gl_cv_header_errno_h_complete = yes; then
23726     ERRNO_H=''
23727   else
23728
23729
23730
23731
23732
23733
23734
23735
23736      if test $gl_cv_have_include_next = yes; then
23737        gl_cv_next_errno_h='<'errno.h'>'
23738      else
23739        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
23740 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
23741 if ${gl_cv_next_errno_h+:} false; then :
23742   $as_echo_n "(cached) " >&6
23743 else
23744
23745
23746
23747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23748 /* end confdefs.h.  */
23749 #include <errno.h>
23750 _ACEOF
23751                 case "$host_os" in
23752     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23753     *)    gl_absname_cpp="$ac_cpp" ;;
23754   esac
23755
23756   case "$host_os" in
23757     mingw*)
23758                                           gl_dirsep_regex='[/\\]'
23759       ;;
23760     *)
23761       gl_dirsep_regex='\/'
23762       ;;
23763   esac
23764       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23765   gl_header_literal_regex=`echo 'errno.h' \
23766                            | sed -e "$gl_make_literal_regex_sed"`
23767   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23768       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23769       s|^/[^/]|//&|
23770       p
23771       q
23772     }'
23773
23774         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23775   sed -n "$gl_absolute_header_sed"`
23776
23777            gl_header=$gl_cv_absolute_errno_h
23778            gl_cv_next_errno_h='"'$gl_header'"'
23779
23780
23781 fi
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
23783 $as_echo "$gl_cv_next_errno_h" >&6; }
23784      fi
23785      NEXT_ERRNO_H=$gl_cv_next_errno_h
23786
23787      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23788        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23789        gl_next_as_first_directive='<'errno.h'>'
23790      else
23791        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23792        gl_next_as_first_directive=$gl_cv_next_errno_h
23793      fi
23794      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
23795
23796
23797
23798
23799     ERRNO_H='errno.h'
23800   fi
23801
23802    if test -n "$ERRNO_H"; then
23803   GL_GENERATE_ERRNO_H_TRUE=
23804   GL_GENERATE_ERRNO_H_FALSE='#'
23805 else
23806   GL_GENERATE_ERRNO_H_TRUE='#'
23807   GL_GENERATE_ERRNO_H_FALSE=
23808 fi
23809
23810
23811   if test -n "$ERRNO_H"; then
23812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
23813 $as_echo_n "checking for EMULTIHOP value... " >&6; }
23814 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
23815   $as_echo_n "(cached) " >&6
23816 else
23817
23818       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h.  */
23820
23821 #include <errno.h>
23822 #ifdef EMULTIHOP
23823 yes
23824 #endif
23825
23826 _ACEOF
23827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23828   $EGREP "yes" >/dev/null 2>&1; then :
23829   gl_cv_header_errno_h_EMULTIHOP=yes
23830 else
23831   gl_cv_header_errno_h_EMULTIHOP=no
23832 fi
23833 rm -f conftest*
23834
23835       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
23836         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837 /* end confdefs.h.  */
23838
23839 #define _XOPEN_SOURCE_EXTENDED 1
23840 #include <errno.h>
23841 #ifdef EMULTIHOP
23842 yes
23843 #endif
23844
23845 _ACEOF
23846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23847   $EGREP "yes" >/dev/null 2>&1; then :
23848   gl_cv_header_errno_h_EMULTIHOP=hidden
23849 fi
23850 rm -f conftest*
23851
23852         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
23853                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
23854 #define _XOPEN_SOURCE_EXTENDED 1
23855 #include <errno.h>
23856 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
23857 #include <stdio.h>
23858 #include <stdlib.h>
23859 "; then :
23860
23861 fi
23862
23863         fi
23864       fi
23865
23866 fi
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
23868 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
23869     case $gl_cv_header_errno_h_EMULTIHOP in
23870       yes | no)
23871         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
23872         ;;
23873       *)
23874         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
23875         ;;
23876     esac
23877
23878
23879   fi
23880
23881
23882   if test -n "$ERRNO_H"; then
23883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
23884 $as_echo_n "checking for ENOLINK value... " >&6; }
23885 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
23886   $as_echo_n "(cached) " >&6
23887 else
23888
23889       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23890 /* end confdefs.h.  */
23891
23892 #include <errno.h>
23893 #ifdef ENOLINK
23894 yes
23895 #endif
23896
23897 _ACEOF
23898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23899   $EGREP "yes" >/dev/null 2>&1; then :
23900   gl_cv_header_errno_h_ENOLINK=yes
23901 else
23902   gl_cv_header_errno_h_ENOLINK=no
23903 fi
23904 rm -f conftest*
23905
23906       if test $gl_cv_header_errno_h_ENOLINK = no; then
23907         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908 /* end confdefs.h.  */
23909
23910 #define _XOPEN_SOURCE_EXTENDED 1
23911 #include <errno.h>
23912 #ifdef ENOLINK
23913 yes
23914 #endif
23915
23916 _ACEOF
23917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23918   $EGREP "yes" >/dev/null 2>&1; then :
23919   gl_cv_header_errno_h_ENOLINK=hidden
23920 fi
23921 rm -f conftest*
23922
23923         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
23924                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
23925 #define _XOPEN_SOURCE_EXTENDED 1
23926 #include <errno.h>
23927 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
23928 #include <stdio.h>
23929 #include <stdlib.h>
23930 "; then :
23931
23932 fi
23933
23934         fi
23935       fi
23936
23937 fi
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
23939 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
23940     case $gl_cv_header_errno_h_ENOLINK in
23941       yes | no)
23942         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
23943         ;;
23944       *)
23945         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
23946         ;;
23947     esac
23948
23949
23950   fi
23951
23952
23953   if test -n "$ERRNO_H"; then
23954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
23955 $as_echo_n "checking for EOVERFLOW value... " >&6; }
23956 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
23957   $as_echo_n "(cached) " >&6
23958 else
23959
23960       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23961 /* end confdefs.h.  */
23962
23963 #include <errno.h>
23964 #ifdef EOVERFLOW
23965 yes
23966 #endif
23967
23968 _ACEOF
23969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23970   $EGREP "yes" >/dev/null 2>&1; then :
23971   gl_cv_header_errno_h_EOVERFLOW=yes
23972 else
23973   gl_cv_header_errno_h_EOVERFLOW=no
23974 fi
23975 rm -f conftest*
23976
23977       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
23978         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979 /* end confdefs.h.  */
23980
23981 #define _XOPEN_SOURCE_EXTENDED 1
23982 #include <errno.h>
23983 #ifdef EOVERFLOW
23984 yes
23985 #endif
23986
23987 _ACEOF
23988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23989   $EGREP "yes" >/dev/null 2>&1; then :
23990   gl_cv_header_errno_h_EOVERFLOW=hidden
23991 fi
23992 rm -f conftest*
23993
23994         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
23995                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
23996 #define _XOPEN_SOURCE_EXTENDED 1
23997 #include <errno.h>
23998 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
23999 #include <stdio.h>
24000 #include <stdlib.h>
24001 "; then :
24002
24003 fi
24004
24005         fi
24006       fi
24007
24008 fi
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
24010 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
24011     case $gl_cv_header_errno_h_EOVERFLOW in
24012       yes | no)
24013         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
24014         ;;
24015       *)
24016         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
24017         ;;
24018     esac
24019
24020
24021   fi
24022
24023
24024 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24025 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24026   ac_have_decl=1
24027 else
24028   ac_have_decl=0
24029 fi
24030
24031 cat >>confdefs.h <<_ACEOF
24032 #define HAVE_DECL_STRERROR_R $ac_have_decl
24033 _ACEOF
24034
24035 for ac_func in strerror_r
24036 do :
24037   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24038 if test "x$ac_cv_func_strerror_r" = xyes; then :
24039   cat >>confdefs.h <<_ACEOF
24040 #define HAVE_STRERROR_R 1
24041 _ACEOF
24042
24043 fi
24044 done
24045
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24047 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
24048 if ${ac_cv_func_strerror_r_char_p+:} false; then :
24049   $as_echo_n "(cached) " >&6
24050 else
24051
24052     ac_cv_func_strerror_r_char_p=no
24053     if test $ac_cv_have_decl_strerror_r = yes; then
24054       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24055 /* end confdefs.h.  */
24056 $ac_includes_default
24057 int
24058 main ()
24059 {
24060
24061           char buf[100];
24062           char x = *strerror_r (0, buf, sizeof buf);
24063           char *p = strerror_r (0, buf, sizeof buf);
24064           return !p || x;
24065
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 if ac_fn_c_try_compile "$LINENO"; then :
24071   ac_cv_func_strerror_r_char_p=yes
24072 fi
24073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074     else
24075       # strerror_r is not declared.  Choose between
24076       # systems that have relatively inaccessible declarations for the
24077       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
24078       # former has a strerror_r that returns char*, while the latter
24079       # has a strerror_r that returns `int'.
24080       # This test should segfault on the DEC system.
24081       if test "$cross_compiling" = yes; then :
24082   :
24083 else
24084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24085 /* end confdefs.h.  */
24086 $ac_includes_default
24087         extern char *strerror_r ();
24088 int
24089 main ()
24090 {
24091 char buf[100];
24092           char x = *strerror_r (0, buf, sizeof buf);
24093           return ! isalpha (x);
24094   ;
24095   return 0;
24096 }
24097 _ACEOF
24098 if ac_fn_c_try_run "$LINENO"; then :
24099   ac_cv_func_strerror_r_char_p=yes
24100 fi
24101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24102   conftest.$ac_objext conftest.beam conftest.$ac_ext
24103 fi
24104
24105     fi
24106
24107 fi
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24109 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24110 if test $ac_cv_func_strerror_r_char_p = yes; then
24111
24112 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24113
24114 fi
24115
24116
24117   XGETTEXT_EXTRA_OPTIONS=
24118
24119 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24120 if test "x$ac_cv_type_mode_t" = xyes; then :
24121
24122 else
24123
24124 cat >>confdefs.h <<_ACEOF
24125 #define mode_t int
24126 _ACEOF
24127
24128 fi
24129
24130
24131   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
24132 "
24133 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
24134
24135 cat >>confdefs.h <<_ACEOF
24136 #define HAVE_SIG_ATOMIC_T 1
24137 _ACEOF
24138
24139
24140 else
24141
24142 $as_echo "#define sig_atomic_t int" >>confdefs.h
24143
24144 fi
24145
24146
24147
24148   GNULIB_FCNTL=0;
24149   GNULIB_NONBLOCKING=0;
24150   GNULIB_OPEN=0;
24151   GNULIB_OPENAT=0;
24152     HAVE_FCNTL=1;
24153   HAVE_OPENAT=1;
24154   REPLACE_FCNTL=0;
24155   REPLACE_OPEN=0;
24156   REPLACE_OPENAT=0;
24157
24158
24159
24160 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24161 if test "x$ac_cv_type_pid_t" = xyes; then :
24162
24163 else
24164
24165 cat >>confdefs.h <<_ACEOF
24166 #define pid_t int
24167 _ACEOF
24168
24169 fi
24170
24171
24172   ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
24173 if test "x$ac_cv_func_eaccess" = xyes; then :
24174
24175 else
24176
24177 $as_echo "#define eaccess access" >>confdefs.h
24178
24179 fi
24180
24181
24182
24183
24184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
24185 $as_echo_n "checking for mbstate_t... " >&6; }
24186 if ${ac_cv_type_mbstate_t+:} false; then :
24187   $as_echo_n "(cached) " >&6
24188 else
24189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24190 /* end confdefs.h.  */
24191 $ac_includes_default
24192 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24193    <wchar.h>.
24194    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24195    included before <wchar.h>.  */
24196 #include <stddef.h>
24197 #include <stdio.h>
24198 #include <time.h>
24199 #include <wchar.h>
24200 int
24201 main ()
24202 {
24203 mbstate_t x; return sizeof x;
24204   ;
24205   return 0;
24206 }
24207 _ACEOF
24208 if ac_fn_c_try_compile "$LINENO"; then :
24209   ac_cv_type_mbstate_t=yes
24210 else
24211   ac_cv_type_mbstate_t=no
24212 fi
24213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24214 fi
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
24216 $as_echo "$ac_cv_type_mbstate_t" >&6; }
24217    if test $ac_cv_type_mbstate_t = yes; then
24218
24219 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
24220
24221    else
24222
24223 $as_echo "#define mbstate_t int" >>confdefs.h
24224
24225    fi
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246   GNULIB_DPRINTF=0;
24247   GNULIB_FCLOSE=0;
24248   GNULIB_FDOPEN=0;
24249   GNULIB_FFLUSH=0;
24250   GNULIB_FGETC=0;
24251   GNULIB_FGETS=0;
24252   GNULIB_FOPEN=0;
24253   GNULIB_FPRINTF=0;
24254   GNULIB_FPRINTF_POSIX=0;
24255   GNULIB_FPURGE=0;
24256   GNULIB_FPUTC=0;
24257   GNULIB_FPUTS=0;
24258   GNULIB_FREAD=0;
24259   GNULIB_FREOPEN=0;
24260   GNULIB_FSCANF=0;
24261   GNULIB_FSEEK=0;
24262   GNULIB_FSEEKO=0;
24263   GNULIB_FTELL=0;
24264   GNULIB_FTELLO=0;
24265   GNULIB_FWRITE=0;
24266   GNULIB_GETC=0;
24267   GNULIB_GETCHAR=0;
24268   GNULIB_GETDELIM=0;
24269   GNULIB_GETLINE=0;
24270   GNULIB_OBSTACK_PRINTF=0;
24271   GNULIB_OBSTACK_PRINTF_POSIX=0;
24272   GNULIB_PCLOSE=0;
24273   GNULIB_PERROR=0;
24274   GNULIB_POPEN=0;
24275   GNULIB_PRINTF=0;
24276   GNULIB_PRINTF_POSIX=0;
24277   GNULIB_PUTC=0;
24278   GNULIB_PUTCHAR=0;
24279   GNULIB_PUTS=0;
24280   GNULIB_REMOVE=0;
24281   GNULIB_RENAME=0;
24282   GNULIB_RENAMEAT=0;
24283   GNULIB_SCANF=0;
24284   GNULIB_SNPRINTF=0;
24285   GNULIB_SPRINTF_POSIX=0;
24286   GNULIB_STDIO_H_NONBLOCKING=0;
24287   GNULIB_STDIO_H_SIGPIPE=0;
24288   GNULIB_TMPFILE=0;
24289   GNULIB_VASPRINTF=0;
24290   GNULIB_VFSCANF=0;
24291   GNULIB_VSCANF=0;
24292   GNULIB_VDPRINTF=0;
24293   GNULIB_VFPRINTF=0;
24294   GNULIB_VFPRINTF_POSIX=0;
24295   GNULIB_VPRINTF=0;
24296   GNULIB_VPRINTF_POSIX=0;
24297   GNULIB_VSNPRINTF=0;
24298   GNULIB_VSPRINTF_POSIX=0;
24299     HAVE_DECL_FPURGE=1;
24300   HAVE_DECL_FSEEKO=1;
24301   HAVE_DECL_FTELLO=1;
24302   HAVE_DECL_GETDELIM=1;
24303   HAVE_DECL_GETLINE=1;
24304   HAVE_DECL_OBSTACK_PRINTF=1;
24305   HAVE_DECL_SNPRINTF=1;
24306   HAVE_DECL_VSNPRINTF=1;
24307   HAVE_DPRINTF=1;
24308   HAVE_FSEEKO=1;
24309   HAVE_FTELLO=1;
24310   HAVE_PCLOSE=1;
24311   HAVE_POPEN=1;
24312   HAVE_RENAMEAT=1;
24313   HAVE_VASPRINTF=1;
24314   HAVE_VDPRINTF=1;
24315   REPLACE_DPRINTF=0;
24316   REPLACE_FCLOSE=0;
24317   REPLACE_FDOPEN=0;
24318   REPLACE_FFLUSH=0;
24319   REPLACE_FOPEN=0;
24320   REPLACE_FPRINTF=0;
24321   REPLACE_FPURGE=0;
24322   REPLACE_FREOPEN=0;
24323   REPLACE_FSEEK=0;
24324   REPLACE_FSEEKO=0;
24325   REPLACE_FTELL=0;
24326   REPLACE_FTELLO=0;
24327   REPLACE_GETDELIM=0;
24328   REPLACE_GETLINE=0;
24329   REPLACE_OBSTACK_PRINTF=0;
24330   REPLACE_PERROR=0;
24331   REPLACE_POPEN=0;
24332   REPLACE_PRINTF=0;
24333   REPLACE_REMOVE=0;
24334   REPLACE_RENAME=0;
24335   REPLACE_RENAMEAT=0;
24336   REPLACE_SNPRINTF=0;
24337   REPLACE_SPRINTF=0;
24338   REPLACE_STDIO_READ_FUNCS=0;
24339   REPLACE_STDIO_WRITE_FUNCS=0;
24340   REPLACE_TMPFILE=0;
24341   REPLACE_VASPRINTF=0;
24342   REPLACE_VDPRINTF=0;
24343   REPLACE_VFPRINTF=0;
24344   REPLACE_VPRINTF=0;
24345   REPLACE_VSNPRINTF=0;
24346   REPLACE_VSPRINTF=0;
24347
24348
24349      GNULIB_FCHMODAT=0;
24350   GNULIB_FSTAT=0;
24351   GNULIB_FSTATAT=0;
24352   GNULIB_FUTIMENS=0;
24353   GNULIB_LCHMOD=0;
24354   GNULIB_LSTAT=0;
24355   GNULIB_MKDIRAT=0;
24356   GNULIB_MKFIFO=0;
24357   GNULIB_MKFIFOAT=0;
24358   GNULIB_MKNOD=0;
24359   GNULIB_MKNODAT=0;
24360   GNULIB_STAT=0;
24361   GNULIB_UTIMENSAT=0;
24362     HAVE_FCHMODAT=1;
24363   HAVE_FSTATAT=1;
24364   HAVE_FUTIMENS=1;
24365   HAVE_LCHMOD=1;
24366   HAVE_LSTAT=1;
24367   HAVE_MKDIRAT=1;
24368   HAVE_MKFIFO=1;
24369   HAVE_MKFIFOAT=1;
24370   HAVE_MKNOD=1;
24371   HAVE_MKNODAT=1;
24372   HAVE_UTIMENSAT=1;
24373   REPLACE_FSTAT=0;
24374   REPLACE_FSTATAT=0;
24375   REPLACE_FUTIMENS=0;
24376   REPLACE_LSTAT=0;
24377   REPLACE_MKDIR=0;
24378   REPLACE_MKFIFO=0;
24379   REPLACE_MKNOD=0;
24380   REPLACE_STAT=0;
24381   REPLACE_UTIMENSAT=0;
24382
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
24384 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
24385 if ${ac_cv_header_stat_broken+:} false; then :
24386   $as_echo_n "(cached) " >&6
24387 else
24388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24389 /* end confdefs.h.  */
24390 #include <sys/types.h>
24391 #include <sys/stat.h>
24392
24393 #if defined S_ISBLK && defined S_IFDIR
24394 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
24395 #endif
24396
24397 #if defined S_ISBLK && defined S_IFCHR
24398 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
24399 #endif
24400
24401 #if defined S_ISLNK && defined S_IFREG
24402 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
24403 #endif
24404
24405 #if defined S_ISSOCK && defined S_IFREG
24406 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
24407 #endif
24408
24409 _ACEOF
24410 if ac_fn_c_try_compile "$LINENO"; then :
24411   ac_cv_header_stat_broken=no
24412 else
24413   ac_cv_header_stat_broken=yes
24414 fi
24415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24416 fi
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
24418 $as_echo "$ac_cv_header_stat_broken" >&6; }
24419 if test $ac_cv_header_stat_broken = yes; then
24420
24421 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
24422
24423 fi
24424
24425
24426
24427
24428
24429   case "$host_os" in
24430     mingw*)
24431                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
24432 $as_echo_n "checking for 64-bit off_t... " >&6; }
24433 if ${gl_cv_type_off_t_64+:} false; then :
24434   $as_echo_n "(cached) " >&6
24435 else
24436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h.  */
24438 #include <sys/types.h>
24439                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
24440
24441 int
24442 main ()
24443 {
24444
24445   ;
24446   return 0;
24447 }
24448 _ACEOF
24449 if ac_fn_c_try_compile "$LINENO"; then :
24450   gl_cv_type_off_t_64=yes
24451 else
24452   gl_cv_type_off_t_64=no
24453 fi
24454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24455
24456 fi
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
24458 $as_echo "$gl_cv_type_off_t_64" >&6; }
24459       if test $gl_cv_type_off_t_64 = no; then
24460         WINDOWS_64_BIT_OFF_T=1
24461       else
24462         WINDOWS_64_BIT_OFF_T=0
24463       fi
24464                   WINDOWS_64_BIT_ST_SIZE=1
24465       ;;
24466     *)
24467                                                       WINDOWS_64_BIT_OFF_T=0
24468       WINDOWS_64_BIT_ST_SIZE=0
24469       ;;
24470   esac
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486      if test $gl_cv_have_include_next = yes; then
24487        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24488      else
24489        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24490 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24491 if ${gl_cv_next_sys_stat_h+:} false; then :
24492   $as_echo_n "(cached) " >&6
24493 else
24494
24495              if test $ac_cv_header_sys_stat_h = yes; then
24496
24497
24498
24499
24500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24501 /* end confdefs.h.  */
24502 #include <sys/stat.h>
24503 _ACEOF
24504                 case "$host_os" in
24505     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24506     *)    gl_absname_cpp="$ac_cpp" ;;
24507   esac
24508
24509   case "$host_os" in
24510     mingw*)
24511                                           gl_dirsep_regex='[/\\]'
24512       ;;
24513     *)
24514       gl_dirsep_regex='\/'
24515       ;;
24516   esac
24517       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24518   gl_header_literal_regex=`echo 'sys/stat.h' \
24519                            | sed -e "$gl_make_literal_regex_sed"`
24520   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24521       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24522       s|^/[^/]|//&|
24523       p
24524       q
24525     }'
24526
24527         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24528   sed -n "$gl_absolute_header_sed"`
24529
24530            gl_header=$gl_cv_absolute_sys_stat_h
24531            gl_cv_next_sys_stat_h='"'$gl_header'"'
24532           else
24533                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24534              fi
24535
24536
24537 fi
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24539 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24540      fi
24541      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24542
24543      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24544        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24545        gl_next_as_first_directive='<'sys/stat.h'>'
24546      else
24547        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24548        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24549      fi
24550      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24563
24564 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24565
24566   fi
24567
24568       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24569      #include <sys/stat.h>
24570 "
24571 if test "x$ac_cv_type_nlink_t" = xyes; then :
24572
24573 else
24574
24575 $as_echo "#define nlink_t int" >>confdefs.h
24576
24577 fi
24578
24579
24580
24581     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
24582     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24584 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24585 if eval \${$as_gl_Symbol+:} false; then :
24586   $as_echo_n "(cached) " >&6
24587 else
24588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24589 /* end confdefs.h.  */
24590 #include <sys/stat.h>
24591
24592 int
24593 main ()
24594 {
24595 #undef $gl_func
24596   (void) $gl_func;
24597   ;
24598   return 0;
24599 }
24600 _ACEOF
24601 if ac_fn_c_try_compile "$LINENO"; then :
24602   eval "$as_gl_Symbol=yes"
24603 else
24604   eval "$as_gl_Symbol=no"
24605 fi
24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607 fi
24608 eval ac_res=\$$as_gl_Symbol
24609                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24610 $as_echo "$ac_res" >&6; }
24611     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24612   cat >>confdefs.h <<_ACEOF
24613 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24614 _ACEOF
24615
24616                      eval ac_cv_have_decl_$gl_func=yes
24617 fi
24618       done
24619
24620
24621 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
24622 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
24623   ac_have_decl=1
24624 else
24625   ac_have_decl=0
24626 fi
24627
24628 cat >>confdefs.h <<_ACEOF
24629 #define HAVE_DECL_GETDELIM $ac_have_decl
24630 _ACEOF
24631
24632
24633
24634
24635
24636 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
24637 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
24638   ac_have_decl=1
24639 else
24640   ac_have_decl=0
24641 fi
24642
24643 cat >>confdefs.h <<_ACEOF
24644 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
24645 _ACEOF
24646
24647 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
24648 if test "x$ac_cv_have_decl_getline" = 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_GETLINE $ac_have_decl
24656 _ACEOF
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673      if test $gl_cv_have_include_next = yes; then
24674        gl_cv_next_getopt_h='<'getopt.h'>'
24675      else
24676        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
24677 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
24678 if ${gl_cv_next_getopt_h+:} false; then :
24679   $as_echo_n "(cached) " >&6
24680 else
24681
24682              if test $ac_cv_header_getopt_h = yes; then
24683
24684
24685
24686
24687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24688 /* end confdefs.h.  */
24689 #include <getopt.h>
24690 _ACEOF
24691                 case "$host_os" in
24692     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24693     *)    gl_absname_cpp="$ac_cpp" ;;
24694   esac
24695
24696   case "$host_os" in
24697     mingw*)
24698                                           gl_dirsep_regex='[/\\]'
24699       ;;
24700     *)
24701       gl_dirsep_regex='\/'
24702       ;;
24703   esac
24704       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24705   gl_header_literal_regex=`echo 'getopt.h' \
24706                            | sed -e "$gl_make_literal_regex_sed"`
24707   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24708       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24709       s|^/[^/]|//&|
24710       p
24711       q
24712     }'
24713
24714         gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24715   sed -n "$gl_absolute_header_sed"`
24716
24717            gl_header=$gl_cv_absolute_getopt_h
24718            gl_cv_next_getopt_h='"'$gl_header'"'
24719           else
24720                gl_cv_next_getopt_h='<'getopt.h'>'
24721              fi
24722
24723
24724 fi
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
24726 $as_echo "$gl_cv_next_getopt_h" >&6; }
24727      fi
24728      NEXT_GETOPT_H=$gl_cv_next_getopt_h
24729
24730      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24731        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24732        gl_next_as_first_directive='<'getopt.h'>'
24733      else
24734        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24735        gl_next_as_first_directive=$gl_cv_next_getopt_h
24736      fi
24737      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
24738
24739
24740
24741
24742   if test $ac_cv_header_getopt_h = yes; then
24743     HAVE_GETOPT_H=1
24744   else
24745     HAVE_GETOPT_H=0
24746   fi
24747
24748
24749   gl_replace_getopt=
24750
24751     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
24752     for ac_header in getopt.h
24753 do :
24754   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
24755 if test "x$ac_cv_header_getopt_h" = xyes; then :
24756   cat >>confdefs.h <<_ACEOF
24757 #define HAVE_GETOPT_H 1
24758 _ACEOF
24759
24760 else
24761   gl_replace_getopt=yes
24762 fi
24763
24764 done
24765
24766   fi
24767
24768     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
24769     for ac_func in getopt_long_only
24770 do :
24771   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
24772 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
24773   cat >>confdefs.h <<_ACEOF
24774 #define HAVE_GETOPT_LONG_ONLY 1
24775 _ACEOF
24776
24777 else
24778   gl_replace_getopt=yes
24779 fi
24780 done
24781
24782   fi
24783
24784           if test -z "$gl_replace_getopt"; then
24785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
24786 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
24787 if ${gl_cv_func_getopt_posix+:} false; then :
24788   $as_echo_n "(cached) " >&6
24789 else
24790
24791                                                 if test $cross_compiling = no; then
24792                               if test "$cross_compiling" = yes; then :
24793   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24795 as_fn_error $? "cannot run test program while cross compiling
24796 See \`config.log' for more details" "$LINENO" 5; }
24797 else
24798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24799 /* end confdefs.h.  */
24800
24801 #include <unistd.h>
24802 #include <stdlib.h>
24803 #include <string.h>
24804
24805 int
24806 main ()
24807 {
24808   static char program[] = "program";
24809   static char a[] = "-a";
24810   static char foo[] = "foo";
24811   static char bar[] = "bar";
24812   char *argv[] = { program, a, foo, bar, NULL };
24813   int c;
24814
24815   c = getopt (4, argv, "ab");
24816   if (!(c == 'a'))
24817     return 1;
24818   c = getopt (4, argv, "ab");
24819   if (!(c == -1))
24820     return 2;
24821   if (!(optind == 2))
24822     return 3;
24823   return 0;
24824 }
24825
24826 _ACEOF
24827 if ac_fn_c_try_run "$LINENO"; then :
24828   gl_cv_func_getopt_posix=maybe
24829 else
24830   gl_cv_func_getopt_posix=no
24831 fi
24832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24833   conftest.$ac_objext conftest.beam conftest.$ac_ext
24834 fi
24835
24836           if test $gl_cv_func_getopt_posix = maybe; then
24837                                     if test "$cross_compiling" = yes; then :
24838   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24840 as_fn_error $? "cannot run test program while cross compiling
24841 See \`config.log' for more details" "$LINENO" 5; }
24842 else
24843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24844 /* end confdefs.h.  */
24845
24846 #include <unistd.h>
24847 #include <stdlib.h>
24848 #include <string.h>
24849
24850 int
24851 main ()
24852 {
24853   static char program[] = "program";
24854   static char donald[] = "donald";
24855   static char p[] = "-p";
24856   static char billy[] = "billy";
24857   static char duck[] = "duck";
24858   static char a[] = "-a";
24859   static char bar[] = "bar";
24860   char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
24861   int c;
24862
24863   c = getopt (7, argv, "+abp:q:");
24864   if (!(c == -1))
24865     return 4;
24866   if (!(strcmp (argv[0], "program") == 0))
24867     return 5;
24868   if (!(strcmp (argv[1], "donald") == 0))
24869     return 6;
24870   if (!(strcmp (argv[2], "-p") == 0))
24871     return 7;
24872   if (!(strcmp (argv[3], "billy") == 0))
24873     return 8;
24874   if (!(strcmp (argv[4], "duck") == 0))
24875     return 9;
24876   if (!(strcmp (argv[5], "-a") == 0))
24877     return 10;
24878   if (!(strcmp (argv[6], "bar") == 0))
24879     return 11;
24880   if (!(optind == 1))
24881     return 12;
24882   return 0;
24883 }
24884
24885 _ACEOF
24886 if ac_fn_c_try_run "$LINENO"; then :
24887   gl_cv_func_getopt_posix=maybe
24888 else
24889   gl_cv_func_getopt_posix=no
24890 fi
24891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24892   conftest.$ac_objext conftest.beam conftest.$ac_ext
24893 fi
24894
24895           fi
24896           if test $gl_cv_func_getopt_posix = maybe; then
24897                         if test "$cross_compiling" = yes; then :
24898   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24900 as_fn_error $? "cannot run test program while cross compiling
24901 See \`config.log' for more details" "$LINENO" 5; }
24902 else
24903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24904 /* end confdefs.h.  */
24905
24906 #include <unistd.h>
24907 #include <stdlib.h>
24908 #include <string.h>
24909
24910 int
24911 main ()
24912 {
24913   static char program[] = "program";
24914   static char ab[] = "-ab";
24915   char *argv[3] = { program, ab, NULL };
24916   if (getopt (2, argv, "ab:") != 'a')
24917     return 13;
24918   if (getopt (2, argv, "ab:") != '?')
24919     return 14;
24920   if (optopt != 'b')
24921     return 15;
24922   if (optind != 2)
24923     return 16;
24924   return 0;
24925 }
24926
24927 _ACEOF
24928 if ac_fn_c_try_run "$LINENO"; then :
24929   gl_cv_func_getopt_posix=yes
24930 else
24931   gl_cv_func_getopt_posix=no
24932 fi
24933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24934   conftest.$ac_objext conftest.beam conftest.$ac_ext
24935 fi
24936
24937           fi
24938         else
24939           case "$host_os" in
24940             darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
24941             *)                       gl_cv_func_getopt_posix="guessing yes";;
24942           esac
24943         fi
24944
24945 fi
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
24947 $as_echo "$gl_cv_func_getopt_posix" >&6; }
24948     case "$gl_cv_func_getopt_posix" in
24949       *no) gl_replace_getopt=yes ;;
24950     esac
24951   fi
24952
24953   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
24954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
24955 $as_echo_n "checking for working GNU getopt function... " >&6; }
24956 if ${gl_cv_func_getopt_gnu+:} false; then :
24957   $as_echo_n "(cached) " >&6
24958 else
24959   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
24960        # optstring is necessary for programs like m4 that have POSIX-mandated
24961        # semantics for supporting options interspersed with files.
24962        # Also, since getopt_long is a GNU extension, we require optind=0.
24963        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
24964        # so take care to revert to the correct (non-)export state.
24965        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
24966        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
24967          xx) gl_had_POSIXLY_CORRECT=exported ;;
24968          x)  gl_had_POSIXLY_CORRECT=yes      ;;
24969          *)  gl_had_POSIXLY_CORRECT=         ;;
24970        esac
24971        POSIXLY_CORRECT=1
24972        export POSIXLY_CORRECT
24973        if test "$cross_compiling" = yes; then :
24974            gl_cv_func_getopt_gnu="guessing no"
24975
24976 else
24977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24978 /* end confdefs.h.  */
24979 #include <getopt.h>
24980                            #include <stddef.h>
24981                            #include <string.h>
24982
24983 #include <stdlib.h>
24984 #if defined __MACH__ && defined __APPLE__
24985 /* Avoid a crash on Mac OS X.  */
24986 #include <mach/mach.h>
24987 #include <mach/mach_error.h>
24988 #include <mach/thread_status.h>
24989 #include <mach/exception.h>
24990 #include <mach/task.h>
24991 #include <pthread.h>
24992 /* The exception port on which our thread listens.  */
24993 static mach_port_t our_exception_port;
24994 /* The main function of the thread listening for exceptions of type
24995    EXC_BAD_ACCESS.  */
24996 static void *
24997 mach_exception_thread (void *arg)
24998 {
24999   /* Buffer for a message to be received.  */
25000   struct {
25001     mach_msg_header_t head;
25002     mach_msg_body_t msgh_body;
25003     char data[1024];
25004   } msg;
25005   mach_msg_return_t retval;
25006   /* Wait for a message on the exception port.  */
25007   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
25008                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
25009   if (retval != MACH_MSG_SUCCESS)
25010     abort ();
25011   exit (1);
25012 }
25013 static void
25014 nocrash_init (void)
25015 {
25016   mach_port_t self = mach_task_self ();
25017   /* Allocate a port on which the thread shall listen for exceptions.  */
25018   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
25019       == KERN_SUCCESS) {
25020     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
25021     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
25022                                 MACH_MSG_TYPE_MAKE_SEND)
25023         == KERN_SUCCESS) {
25024       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
25025          for us.  */
25026       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
25027       /* Create the thread listening on the exception port.  */
25028       pthread_attr_t attr;
25029       pthread_t thread;
25030       if (pthread_attr_init (&attr) == 0
25031           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
25032           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
25033         pthread_attr_destroy (&attr);
25034         /* Replace the exception port info for these exceptions with our own.
25035            Note that we replace the exception port for the entire task, not only
25036            for a particular thread.  This has the effect that when our exception
25037            port gets the message, the thread specific exception port has already
25038            been asked, and we don't need to bother about it.
25039            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
25040         task_set_exception_ports (self, mask, our_exception_port,
25041                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
25042       }
25043     }
25044   }
25045 }
25046 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25047 /* Avoid a crash on native Windows.  */
25048 #define WIN32_LEAN_AND_MEAN
25049 #include <windows.h>
25050 #include <winerror.h>
25051 static LONG WINAPI
25052 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
25053 {
25054   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
25055     {
25056     case EXCEPTION_ACCESS_VIOLATION:
25057     case EXCEPTION_IN_PAGE_ERROR:
25058     case EXCEPTION_STACK_OVERFLOW:
25059     case EXCEPTION_GUARD_PAGE:
25060     case EXCEPTION_PRIV_INSTRUCTION:
25061     case EXCEPTION_ILLEGAL_INSTRUCTION:
25062     case EXCEPTION_DATATYPE_MISALIGNMENT:
25063     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
25064     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
25065       exit (1);
25066     }
25067   return EXCEPTION_CONTINUE_SEARCH;
25068 }
25069 static void
25070 nocrash_init (void)
25071 {
25072   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
25073 }
25074 #else
25075 /* Avoid a crash on POSIX systems.  */
25076 #include <signal.h>
25077 /* A POSIX signal handler.  */
25078 static void
25079 exception_handler (int sig)
25080 {
25081   exit (1);
25082 }
25083 static void
25084 nocrash_init (void)
25085 {
25086 #ifdef SIGSEGV
25087   signal (SIGSEGV, exception_handler);
25088 #endif
25089 #ifdef SIGBUS
25090   signal (SIGBUS, exception_handler);
25091 #endif
25092 }
25093 #endif
25094
25095
25096 int
25097 main ()
25098 {
25099
25100              int result = 0;
25101
25102              nocrash_init();
25103
25104              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
25105                 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
25106                 OSF/1 5.1, Solaris 10.  */
25107              {
25108                static char conftest[] = "conftest";
25109                static char plus[] = "-+";
25110                char *argv[3] = { conftest, plus, NULL };
25111                opterr = 0;
25112                if (getopt (2, argv, "+a") != '?')
25113                  result |= 1;
25114              }
25115              /* This code succeeds on glibc 2.8, mingw,
25116                 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
25117                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
25118              {
25119                static char program[] = "program";
25120                static char p[] = "-p";
25121                static char foo[] = "foo";
25122                static char bar[] = "bar";
25123                char *argv[] = { program, p, foo, bar, NULL };
25124
25125                optind = 1;
25126                if (getopt (4, argv, "p::") != 'p')
25127                  result |= 2;
25128                else if (optarg != NULL)
25129                  result |= 4;
25130                else if (getopt (4, argv, "p::") != -1)
25131                  result |= 6;
25132                else if (optind != 2)
25133                  result |= 8;
25134              }
25135              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
25136              {
25137                static char program[] = "program";
25138                static char foo[] = "foo";
25139                static char p[] = "-p";
25140                char *argv[] = { program, foo, p, NULL };
25141                optind = 0;
25142                if (getopt (3, argv, "-p") != 1)
25143                  result |= 16;
25144                else if (getopt (3, argv, "-p") != 'p')
25145                  result |= 16;
25146              }
25147              /* This code fails on glibc 2.11.  */
25148              {
25149                static char program[] = "program";
25150                static char b[] = "-b";
25151                static char a[] = "-a";
25152                char *argv[] = { program, b, a, NULL };
25153                optind = opterr = 0;
25154                if (getopt (3, argv, "+:a:b") != 'b')
25155                  result |= 32;
25156                else if (getopt (3, argv, "+:a:b") != ':')
25157                  result |= 32;
25158              }
25159              /* This code dumps core on glibc 2.14.  */
25160              {
25161                static char program[] = "program";
25162                static char w[] = "-W";
25163                static char dummy[] = "dummy";
25164                char *argv[] = { program, w, dummy, NULL };
25165                optind = opterr = 1;
25166                if (getopt (3, argv, "W;") != 'W')
25167                  result |= 64;
25168              }
25169              return result;
25170
25171   ;
25172   return 0;
25173 }
25174 _ACEOF
25175 if ac_fn_c_try_run "$LINENO"; then :
25176   gl_cv_func_getopt_gnu=yes
25177 else
25178   gl_cv_func_getopt_gnu=no
25179 fi
25180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25181   conftest.$ac_objext conftest.beam conftest.$ac_ext
25182 fi
25183
25184        case $gl_had_POSIXLY_CORRECT in
25185          exported) ;;
25186          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
25187          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
25188        esac
25189
25190 fi
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
25192 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
25193     if test "$gl_cv_func_getopt_gnu" != yes; then
25194       gl_replace_getopt=yes
25195     else
25196       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
25197 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
25198 if ${gl_cv_func_getopt_long_gnu+:} false; then :
25199   $as_echo_n "(cached) " >&6
25200 else
25201   if test "$cross_compiling" = yes; then :
25202               case "$host_os" in
25203               openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
25204               *)        gl_cv_func_getopt_long_gnu="guessing yes";;
25205             esac
25206
25207 else
25208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25209 /* end confdefs.h.  */
25210 #include <getopt.h>
25211                 #include <stddef.h>
25212                 #include <string.h>
25213
25214 int
25215 main ()
25216 {
25217 static const struct option long_options[] =
25218                   {
25219                     { "xtremely-",no_argument,       NULL, 1003 },
25220                     { "xtra",     no_argument,       NULL, 1001 },
25221                     { "xtreme",   no_argument,       NULL, 1002 },
25222                     { "xtremely", no_argument,       NULL, 1003 },
25223                     { NULL,       0,                 NULL, 0 }
25224                   };
25225                 /* This code fails on OpenBSD 5.0.  */
25226                 {
25227                   static char program[] = "program";
25228                   static char xtremel[] = "--xtremel";
25229                   char *argv[] = { program, xtremel, NULL };
25230                   int option_index;
25231                   optind = 1; opterr = 0;
25232                   if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
25233                     return 1;
25234                 }
25235                 return 0;
25236
25237   ;
25238   return 0;
25239 }
25240 _ACEOF
25241 if ac_fn_c_try_run "$LINENO"; then :
25242   gl_cv_func_getopt_long_gnu=yes
25243 else
25244   gl_cv_func_getopt_long_gnu=no
25245 fi
25246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25247   conftest.$ac_objext conftest.beam conftest.$ac_ext
25248 fi
25249
25250
25251 fi
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
25253 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
25254       case "$gl_cv_func_getopt_long_gnu" in
25255         *yes) ;;
25256         *) gl_replace_getopt=yes ;;
25257       esac
25258     fi
25259   fi
25260
25261
25262
25263
25264
25265
25266     REPLACE_GETOPT=0
25267     if test -n "$gl_replace_getopt"; then
25268       REPLACE_GETOPT=1
25269     fi
25270
25271   if test $REPLACE_GETOPT = 1; then
25272
25273   GETOPT_H=getopt.h
25274
25275 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
25276
25277
25278
25279   fi
25280
25281 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
25282 if test "x$ac_cv_have_decl_getenv" = xyes; then :
25283   ac_have_decl=1
25284 else
25285   ac_have_decl=0
25286 fi
25287
25288 cat >>confdefs.h <<_ACEOF
25289 #define HAVE_DECL_GETENV $ac_have_decl
25290 _ACEOF
25291
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
25293 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
25294 if ${ac_cv_c_restrict+:} false; then :
25295   $as_echo_n "(cached) " >&6
25296 else
25297   ac_cv_c_restrict=no
25298    # The order here caters to the fact that C++ does not require restrict.
25299    for ac_kw in __restrict __restrict__ _Restrict restrict; do
25300      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25301 /* end confdefs.h.  */
25302 typedef int *int_ptr;
25303            int foo (int_ptr $ac_kw ip) { return ip[0]; }
25304            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
25305            int bar (int ip[$ac_kw]) { return ip[0]; }
25306
25307 int
25308 main ()
25309 {
25310 int s[1];
25311            int *$ac_kw t = s;
25312            t[0] = 0;
25313            return foo (t) + bar (t);
25314
25315   ;
25316   return 0;
25317 }
25318 _ACEOF
25319 if ac_fn_c_try_compile "$LINENO"; then :
25320   ac_cv_c_restrict=$ac_kw
25321 fi
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25323      test "$ac_cv_c_restrict" != no && break
25324    done
25325
25326 fi
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
25328 $as_echo "$ac_cv_c_restrict" >&6; }
25329
25330  case $ac_cv_c_restrict in
25331    restrict) ;;
25332    no) $as_echo "#define restrict /**/" >>confdefs.h
25333  ;;
25334    *)  cat >>confdefs.h <<_ACEOF
25335 #define restrict $ac_cv_c_restrict
25336 _ACEOF
25337  ;;
25338  esac
25339
25340
25341   GNULIB_GETTIMEOFDAY=0;
25342     HAVE_GETTIMEOFDAY=1;
25343   HAVE_STRUCT_TIMEVAL=1;
25344   HAVE_SYS_TIME_H=1;
25345   HAVE_TIMEZONE_T=0;
25346   REPLACE_GETTIMEOFDAY=0;
25347   REPLACE_STRUCT_TIMEVAL=0;
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364      if test $gl_cv_have_include_next = yes; then
25365        gl_cv_next_sys_time_h='<'sys/time.h'>'
25366      else
25367        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
25368 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
25369 if ${gl_cv_next_sys_time_h+:} false; then :
25370   $as_echo_n "(cached) " >&6
25371 else
25372
25373              if test $ac_cv_header_sys_time_h = yes; then
25374
25375
25376
25377
25378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25379 /* end confdefs.h.  */
25380 #include <sys/time.h>
25381 _ACEOF
25382                 case "$host_os" in
25383     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25384     *)    gl_absname_cpp="$ac_cpp" ;;
25385   esac
25386
25387   case "$host_os" in
25388     mingw*)
25389                                           gl_dirsep_regex='[/\\]'
25390       ;;
25391     *)
25392       gl_dirsep_regex='\/'
25393       ;;
25394   esac
25395       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25396   gl_header_literal_regex=`echo 'sys/time.h' \
25397                            | sed -e "$gl_make_literal_regex_sed"`
25398   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25399       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25400       s|^/[^/]|//&|
25401       p
25402       q
25403     }'
25404
25405         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25406   sed -n "$gl_absolute_header_sed"`
25407
25408            gl_header=$gl_cv_absolute_sys_time_h
25409            gl_cv_next_sys_time_h='"'$gl_header'"'
25410           else
25411                gl_cv_next_sys_time_h='<'sys/time.h'>'
25412              fi
25413
25414
25415 fi
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
25417 $as_echo "$gl_cv_next_sys_time_h" >&6; }
25418      fi
25419      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
25420
25421      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25422        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25423        gl_next_as_first_directive='<'sys/time.h'>'
25424      else
25425        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25426        gl_next_as_first_directive=$gl_cv_next_sys_time_h
25427      fi
25428      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
25429
25430
25431
25432
25433
25434   if test $ac_cv_header_sys_time_h != yes; then
25435     HAVE_SYS_TIME_H=0
25436   fi
25437
25438
25439
25440
25441
25442   if test $ac_cv_header_sys_socket_h != yes; then
25443                     for ac_header in winsock2.h
25444 do :
25445   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25446 if test "x$ac_cv_header_winsock2_h" = xyes; then :
25447   cat >>confdefs.h <<_ACEOF
25448 #define HAVE_WINSOCK2_H 1
25449 _ACEOF
25450
25451 fi
25452
25453 done
25454
25455   fi
25456   if test "$ac_cv_header_winsock2_h" = yes; then
25457     HAVE_WINSOCK2_H=1
25458     UNISTD_H_HAVE_WINSOCK2_H=1
25459     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25460   else
25461     HAVE_WINSOCK2_H=0
25462   fi
25463
25464
25465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
25466 $as_echo_n "checking for struct timeval... " >&6; }
25467 if ${gl_cv_sys_struct_timeval+:} false; then :
25468   $as_echo_n "(cached) " >&6
25469 else
25470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h.  */
25472 #if HAVE_SYS_TIME_H
25473              #include <sys/time.h>
25474             #endif
25475             #include <time.h>
25476             #if HAVE_WINSOCK2_H
25477             # include <winsock2.h>
25478             #endif
25479
25480 int
25481 main ()
25482 {
25483 static struct timeval x; x.tv_sec = x.tv_usec;
25484   ;
25485   return 0;
25486 }
25487 _ACEOF
25488 if ac_fn_c_try_compile "$LINENO"; then :
25489   gl_cv_sys_struct_timeval=yes
25490 else
25491   gl_cv_sys_struct_timeval=no
25492 fi
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494
25495 fi
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
25497 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
25498   if test $gl_cv_sys_struct_timeval != yes; then
25499     HAVE_STRUCT_TIMEVAL=0
25500   else
25501                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
25502 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
25503 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
25504   $as_echo_n "(cached) " >&6
25505 else
25506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25507 /* end confdefs.h.  */
25508 #if HAVE_SYS_TIME_H
25509                #include <sys/time.h>
25510               #endif
25511               #include <time.h>
25512               #if HAVE_WINSOCK2_H
25513               # include <winsock2.h>
25514               #endif
25515
25516 int
25517 main ()
25518 {
25519 static struct timeval x;
25520               typedef int verify_tv_sec_type[
25521                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
25522               ];
25523
25524   ;
25525   return 0;
25526 }
25527 _ACEOF
25528 if ac_fn_c_try_compile "$LINENO"; then :
25529   gl_cv_sys_struct_timeval_tv_sec=yes
25530 else
25531   gl_cv_sys_struct_timeval_tv_sec=no
25532 fi
25533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534
25535 fi
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
25537 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
25538     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
25539       REPLACE_STRUCT_TIMEVAL=1
25540     fi
25541   fi
25542
25543
25544     for gl_func in gettimeofday; do
25545     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25547 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25548 if eval \${$as_gl_Symbol+:} false; then :
25549   $as_echo_n "(cached) " >&6
25550 else
25551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25552 /* end confdefs.h.  */
25553
25554 #if HAVE_SYS_TIME_H
25555 # include <sys/time.h>
25556 #endif
25557 #include <time.h>
25558
25559 int
25560 main ()
25561 {
25562 #undef $gl_func
25563   (void) $gl_func;
25564   ;
25565   return 0;
25566 }
25567 _ACEOF
25568 if ac_fn_c_try_compile "$LINENO"; then :
25569   eval "$as_gl_Symbol=yes"
25570 else
25571   eval "$as_gl_Symbol=no"
25572 fi
25573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25574 fi
25575 eval ac_res=\$$as_gl_Symbol
25576                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25577 $as_echo "$ac_res" >&6; }
25578     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25579   cat >>confdefs.h <<_ACEOF
25580 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25581 _ACEOF
25582
25583                      eval ac_cv_have_decl_$gl_func=yes
25584 fi
25585       done
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596   GNULIB_ACOSF=0;
25597   GNULIB_ACOSL=0;
25598   GNULIB_ASINF=0;
25599   GNULIB_ASINL=0;
25600   GNULIB_ATANF=0;
25601   GNULIB_ATANL=0;
25602   GNULIB_ATAN2F=0;
25603   GNULIB_CBRT=0;
25604   GNULIB_CBRTF=0;
25605   GNULIB_CBRTL=0;
25606   GNULIB_CEIL=0;
25607   GNULIB_CEILF=0;
25608   GNULIB_CEILL=0;
25609   GNULIB_COPYSIGN=0;
25610   GNULIB_COPYSIGNF=0;
25611   GNULIB_COPYSIGNL=0;
25612   GNULIB_COSF=0;
25613   GNULIB_COSL=0;
25614   GNULIB_COSHF=0;
25615   GNULIB_EXPF=0;
25616   GNULIB_EXPL=0;
25617   GNULIB_EXP2=0;
25618   GNULIB_EXP2F=0;
25619   GNULIB_EXP2L=0;
25620   GNULIB_EXPM1=0;
25621   GNULIB_EXPM1F=0;
25622   GNULIB_EXPM1L=0;
25623   GNULIB_FABSF=0;
25624   GNULIB_FABSL=0;
25625   GNULIB_FLOOR=0;
25626   GNULIB_FLOORF=0;
25627   GNULIB_FLOORL=0;
25628   GNULIB_FMA=0;
25629   GNULIB_FMAF=0;
25630   GNULIB_FMAL=0;
25631   GNULIB_FMOD=0;
25632   GNULIB_FMODF=0;
25633   GNULIB_FMODL=0;
25634   GNULIB_FREXPF=0;
25635   GNULIB_FREXP=0;
25636   GNULIB_FREXPL=0;
25637   GNULIB_HYPOT=0;
25638   GNULIB_HYPOTF=0;
25639   GNULIB_HYPOTL=0;
25640   GNULIB_ILOGB=0;
25641   GNULIB_ILOGBF=0;
25642   GNULIB_ILOGBL=0;
25643   GNULIB_ISFINITE=0;
25644   GNULIB_ISINF=0;
25645   GNULIB_ISNAN=0;
25646   GNULIB_ISNANF=0;
25647   GNULIB_ISNAND=0;
25648   GNULIB_ISNANL=0;
25649   GNULIB_LDEXPF=0;
25650   GNULIB_LDEXPL=0;
25651   GNULIB_LOG=0;
25652   GNULIB_LOGF=0;
25653   GNULIB_LOGL=0;
25654   GNULIB_LOG10=0;
25655   GNULIB_LOG10F=0;
25656   GNULIB_LOG10L=0;
25657   GNULIB_LOG1P=0;
25658   GNULIB_LOG1PF=0;
25659   GNULIB_LOG1PL=0;
25660   GNULIB_LOG2=0;
25661   GNULIB_LOG2F=0;
25662   GNULIB_LOG2L=0;
25663   GNULIB_LOGB=0;
25664   GNULIB_LOGBF=0;
25665   GNULIB_LOGBL=0;
25666   GNULIB_MODF=0;
25667   GNULIB_MODFF=0;
25668   GNULIB_MODFL=0;
25669   GNULIB_POWF=0;
25670   GNULIB_REMAINDER=0;
25671   GNULIB_REMAINDERF=0;
25672   GNULIB_REMAINDERL=0;
25673   GNULIB_RINT=0;
25674   GNULIB_RINTF=0;
25675   GNULIB_RINTL=0;
25676   GNULIB_ROUND=0;
25677   GNULIB_ROUNDF=0;
25678   GNULIB_ROUNDL=0;
25679   GNULIB_SIGNBIT=0;
25680   GNULIB_SINF=0;
25681   GNULIB_SINL=0;
25682   GNULIB_SINHF=0;
25683   GNULIB_SQRTF=0;
25684   GNULIB_SQRTL=0;
25685   GNULIB_TANF=0;
25686   GNULIB_TANL=0;
25687   GNULIB_TANHF=0;
25688   GNULIB_TRUNC=0;
25689   GNULIB_TRUNCF=0;
25690   GNULIB_TRUNCL=0;
25691     HAVE_ACOSF=1;
25692   HAVE_ACOSL=1;
25693   HAVE_ASINF=1;
25694   HAVE_ASINL=1;
25695   HAVE_ATANF=1;
25696   HAVE_ATANL=1;
25697   HAVE_ATAN2F=1;
25698   HAVE_CBRT=1;
25699   HAVE_CBRTF=1;
25700   HAVE_CBRTL=1;
25701   HAVE_COPYSIGN=1;
25702   HAVE_COPYSIGNL=1;
25703   HAVE_COSF=1;
25704   HAVE_COSL=1;
25705   HAVE_COSHF=1;
25706   HAVE_EXPF=1;
25707   HAVE_EXPL=1;
25708   HAVE_EXPM1=1;
25709   HAVE_EXPM1F=1;
25710   HAVE_FABSF=1;
25711   HAVE_FABSL=1;
25712   HAVE_FMA=1;
25713   HAVE_FMAF=1;
25714   HAVE_FMAL=1;
25715   HAVE_FMODF=1;
25716   HAVE_FMODL=1;
25717   HAVE_FREXPF=1;
25718   HAVE_HYPOTF=1;
25719   HAVE_HYPOTL=1;
25720   HAVE_ILOGB=1;
25721   HAVE_ILOGBF=1;
25722   HAVE_ILOGBL=1;
25723   HAVE_ISNANF=1;
25724   HAVE_ISNAND=1;
25725   HAVE_ISNANL=1;
25726   HAVE_LDEXPF=1;
25727   HAVE_LOGF=1;
25728   HAVE_LOGL=1;
25729   HAVE_LOG10F=1;
25730   HAVE_LOG10L=1;
25731   HAVE_LOG1P=1;
25732   HAVE_LOG1PF=1;
25733   HAVE_LOG1PL=1;
25734   HAVE_LOGBF=1;
25735   HAVE_LOGBL=1;
25736   HAVE_MODFF=1;
25737   HAVE_MODFL=1;
25738   HAVE_POWF=1;
25739   HAVE_REMAINDER=1;
25740   HAVE_REMAINDERF=1;
25741   HAVE_RINT=1;
25742   HAVE_RINTL=1;
25743   HAVE_SINF=1;
25744   HAVE_SINL=1;
25745   HAVE_SINHF=1;
25746   HAVE_SQRTF=1;
25747   HAVE_SQRTL=1;
25748   HAVE_TANF=1;
25749   HAVE_TANL=1;
25750   HAVE_TANHF=1;
25751   HAVE_DECL_ACOSL=1;
25752   HAVE_DECL_ASINL=1;
25753   HAVE_DECL_ATANL=1;
25754   HAVE_DECL_CBRTF=1;
25755   HAVE_DECL_CBRTL=1;
25756   HAVE_DECL_CEILF=1;
25757   HAVE_DECL_CEILL=1;
25758   HAVE_DECL_COPYSIGNF=1;
25759   HAVE_DECL_COSL=1;
25760   HAVE_DECL_EXPL=1;
25761   HAVE_DECL_EXP2=1;
25762   HAVE_DECL_EXP2F=1;
25763   HAVE_DECL_EXP2L=1;
25764   HAVE_DECL_EXPM1L=1;
25765   HAVE_DECL_FLOORF=1;
25766   HAVE_DECL_FLOORL=1;
25767   HAVE_DECL_FREXPL=1;
25768   HAVE_DECL_LDEXPL=1;
25769   HAVE_DECL_LOGL=1;
25770   HAVE_DECL_LOG10L=1;
25771   HAVE_DECL_LOG2=1;
25772   HAVE_DECL_LOG2F=1;
25773   HAVE_DECL_LOG2L=1;
25774   HAVE_DECL_LOGB=1;
25775   HAVE_DECL_REMAINDER=1;
25776   HAVE_DECL_REMAINDERL=1;
25777   HAVE_DECL_RINTF=1;
25778   HAVE_DECL_ROUND=1;
25779   HAVE_DECL_ROUNDF=1;
25780   HAVE_DECL_ROUNDL=1;
25781   HAVE_DECL_SINL=1;
25782   HAVE_DECL_SQRTL=1;
25783   HAVE_DECL_TANL=1;
25784   HAVE_DECL_TRUNC=1;
25785   HAVE_DECL_TRUNCF=1;
25786   HAVE_DECL_TRUNCL=1;
25787   REPLACE_CBRTF=0;
25788   REPLACE_CBRTL=0;
25789   REPLACE_CEIL=0;
25790   REPLACE_CEILF=0;
25791   REPLACE_CEILL=0;
25792   REPLACE_EXPM1=0;
25793   REPLACE_EXPM1F=0;
25794   REPLACE_EXP2=0;
25795   REPLACE_EXP2L=0;
25796   REPLACE_FABSL=0;
25797   REPLACE_FLOOR=0;
25798   REPLACE_FLOORF=0;
25799   REPLACE_FLOORL=0;
25800   REPLACE_FMA=0;
25801   REPLACE_FMAF=0;
25802   REPLACE_FMAL=0;
25803   REPLACE_FMOD=0;
25804   REPLACE_FMODF=0;
25805   REPLACE_FMODL=0;
25806   REPLACE_FREXPF=0;
25807   REPLACE_FREXP=0;
25808   REPLACE_FREXPL=0;
25809   REPLACE_HUGE_VAL=0;
25810   REPLACE_HYPOT=0;
25811   REPLACE_HYPOTF=0;
25812   REPLACE_HYPOTL=0;
25813   REPLACE_ILOGB=0;
25814   REPLACE_ILOGBF=0;
25815   REPLACE_ISFINITE=0;
25816   REPLACE_ISINF=0;
25817   REPLACE_ISNAN=0;
25818   REPLACE_LDEXPL=0;
25819   REPLACE_LOG=0;
25820   REPLACE_LOGF=0;
25821   REPLACE_LOGL=0;
25822   REPLACE_LOG10=0;
25823   REPLACE_LOG10F=0;
25824   REPLACE_LOG10L=0;
25825   REPLACE_LOG1P=0;
25826   REPLACE_LOG1PF=0;
25827   REPLACE_LOG1PL=0;
25828   REPLACE_LOG2=0;
25829   REPLACE_LOG2F=0;
25830   REPLACE_LOG2L=0;
25831   REPLACE_LOGB=0;
25832   REPLACE_LOGBF=0;
25833   REPLACE_LOGBL=0;
25834   REPLACE_MODF=0;
25835   REPLACE_MODFF=0;
25836   REPLACE_MODFL=0;
25837   REPLACE_NAN=0;
25838   REPLACE_REMAINDER=0;
25839   REPLACE_REMAINDERF=0;
25840   REPLACE_REMAINDERL=0;
25841   REPLACE_ROUND=0;
25842   REPLACE_ROUNDF=0;
25843   REPLACE_ROUNDL=0;
25844   REPLACE_SIGNBIT=0;
25845   REPLACE_SIGNBIT_USING_GCC=0;
25846   REPLACE_SQRTL=0;
25847   REPLACE_TRUNC=0;
25848   REPLACE_TRUNCF=0;
25849   REPLACE_TRUNCL=0;
25850
25851
25852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25853 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25854 if ${ac_cv_c_bigendian+:} false; then :
25855   $as_echo_n "(cached) " >&6
25856 else
25857   ac_cv_c_bigendian=unknown
25858     # See if we're dealing with a universal compiler.
25859     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25860 /* end confdefs.h.  */
25861 #ifndef __APPLE_CC__
25862                not a universal capable compiler
25863              #endif
25864              typedef int dummy;
25865
25866 _ACEOF
25867 if ac_fn_c_try_compile "$LINENO"; then :
25868
25869         # Check for potential -arch flags.  It is not universal unless
25870         # there are at least two -arch flags with different values.
25871         ac_arch=
25872         ac_prev=
25873         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25874          if test -n "$ac_prev"; then
25875            case $ac_word in
25876              i?86 | x86_64 | ppc | ppc64)
25877                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25878                  ac_arch=$ac_word
25879                else
25880                  ac_cv_c_bigendian=universal
25881                  break
25882                fi
25883                ;;
25884            esac
25885            ac_prev=
25886          elif test "x$ac_word" = "x-arch"; then
25887            ac_prev=arch
25888          fi
25889        done
25890 fi
25891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25892     if test $ac_cv_c_bigendian = unknown; then
25893       # See if sys/param.h defines the BYTE_ORDER macro.
25894       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25895 /* end confdefs.h.  */
25896 #include <sys/types.h>
25897              #include <sys/param.h>
25898
25899 int
25900 main ()
25901 {
25902 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25903                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25904                      && LITTLE_ENDIAN)
25905               bogus endian macros
25906              #endif
25907
25908   ;
25909   return 0;
25910 }
25911 _ACEOF
25912 if ac_fn_c_try_compile "$LINENO"; then :
25913   # It does; now see whether it defined to BIG_ENDIAN or not.
25914          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h.  */
25916 #include <sys/types.h>
25917                 #include <sys/param.h>
25918
25919 int
25920 main ()
25921 {
25922 #if BYTE_ORDER != BIG_ENDIAN
25923                  not big endian
25924                 #endif
25925
25926   ;
25927   return 0;
25928 }
25929 _ACEOF
25930 if ac_fn_c_try_compile "$LINENO"; then :
25931   ac_cv_c_bigendian=yes
25932 else
25933   ac_cv_c_bigendian=no
25934 fi
25935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25936 fi
25937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25938     fi
25939     if test $ac_cv_c_bigendian = unknown; then
25940       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25941       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25942 /* end confdefs.h.  */
25943 #include <limits.h>
25944
25945 int
25946 main ()
25947 {
25948 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25949               bogus endian macros
25950              #endif
25951
25952   ;
25953   return 0;
25954 }
25955 _ACEOF
25956 if ac_fn_c_try_compile "$LINENO"; then :
25957   # It does; now see whether it defined to _BIG_ENDIAN or not.
25958          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h.  */
25960 #include <limits.h>
25961
25962 int
25963 main ()
25964 {
25965 #ifndef _BIG_ENDIAN
25966                  not big endian
25967                 #endif
25968
25969   ;
25970   return 0;
25971 }
25972 _ACEOF
25973 if ac_fn_c_try_compile "$LINENO"; then :
25974   ac_cv_c_bigendian=yes
25975 else
25976   ac_cv_c_bigendian=no
25977 fi
25978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25979 fi
25980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25981     fi
25982     if test $ac_cv_c_bigendian = unknown; then
25983       # Compile a test program.
25984       if test "$cross_compiling" = yes; then :
25985   # Try to guess by grepping values from an object file.
25986          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25987 /* end confdefs.h.  */
25988 short int ascii_mm[] =
25989                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25990                 short int ascii_ii[] =
25991                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25992                 int use_ascii (int i) {
25993                   return ascii_mm[i] + ascii_ii[i];
25994                 }
25995                 short int ebcdic_ii[] =
25996                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25997                 short int ebcdic_mm[] =
25998                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25999                 int use_ebcdic (int i) {
26000                   return ebcdic_mm[i] + ebcdic_ii[i];
26001                 }
26002                 extern int foo;
26003
26004 int
26005 main ()
26006 {
26007 return use_ascii (foo) == use_ebcdic (foo);
26008   ;
26009   return 0;
26010 }
26011 _ACEOF
26012 if ac_fn_c_try_compile "$LINENO"; then :
26013   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26014               ac_cv_c_bigendian=yes
26015             fi
26016             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26017               if test "$ac_cv_c_bigendian" = unknown; then
26018                 ac_cv_c_bigendian=no
26019               else
26020                 # finding both strings is unlikely to happen, but who knows?
26021                 ac_cv_c_bigendian=unknown
26022               fi
26023             fi
26024 fi
26025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26026 else
26027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26028 /* end confdefs.h.  */
26029 $ac_includes_default
26030 int
26031 main ()
26032 {
26033
26034              /* Are we little or big endian?  From Harbison&Steele.  */
26035              union
26036              {
26037                long int l;
26038                char c[sizeof (long int)];
26039              } u;
26040              u.l = 1;
26041              return u.c[sizeof (long int) - 1] == 1;
26042
26043   ;
26044   return 0;
26045 }
26046 _ACEOF
26047 if ac_fn_c_try_run "$LINENO"; then :
26048   ac_cv_c_bigendian=no
26049 else
26050   ac_cv_c_bigendian=yes
26051 fi
26052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26053   conftest.$ac_objext conftest.beam conftest.$ac_ext
26054 fi
26055
26056     fi
26057 fi
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26059 $as_echo "$ac_cv_c_bigendian" >&6; }
26060  case $ac_cv_c_bigendian in #(
26061    yes)
26062      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
26063 ;; #(
26064    no)
26065       ;; #(
26066    universal)
26067
26068 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26069
26070      ;; #(
26071    *)
26072      as_fn_error $? "unknown endianness
26073  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26074  esac
26075
26076
26077
26078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
26079 $as_echo_n "checking whether long double and double are the same... " >&6; }
26080 if ${gl_cv_long_double_equals_double+:} false; then :
26081   $as_echo_n "(cached) " >&6
26082 else
26083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26084 /* end confdefs.h.  */
26085 #include <float.h>
26086 int
26087 main ()
26088 {
26089 typedef int check[sizeof (long double) == sizeof (double)
26090                               && LDBL_MANT_DIG == DBL_MANT_DIG
26091                               && LDBL_MAX_EXP == DBL_MAX_EXP
26092                               && LDBL_MIN_EXP == DBL_MIN_EXP
26093                               ? 1 : -1];
26094
26095   ;
26096   return 0;
26097 }
26098 _ACEOF
26099 if ac_fn_c_try_compile "$LINENO"; then :
26100   gl_cv_long_double_equals_double=yes
26101 else
26102   gl_cv_long_double_equals_double=no
26103 fi
26104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26105
26106 fi
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
26108 $as_echo "$gl_cv_long_double_equals_double" >&6; }
26109   if test $gl_cv_long_double_equals_double = yes; then
26110
26111 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
26112
26113     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
26114   else
26115     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
26116   fi
26117
26118
26119
26120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
26121 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
26122 if ${gl_cv_cc_float_expbit0+:} false; then :
26123   $as_echo_n "(cached) " >&6
26124 else
26125
26126       if test "$cross_compiling" = yes; then :
26127   gl_cv_cc_float_expbit0="word 0 bit 23"
26128 else
26129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26130 /* end confdefs.h.  */
26131
26132 #include <float.h>
26133 #include <stddef.h>
26134 #include <stdio.h>
26135 #include <string.h>
26136 #define NWORDS \
26137   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
26138 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
26139 static unsigned int ored_words[NWORDS];
26140 static unsigned int anded_words[NWORDS];
26141 static void add_to_ored_words (float x)
26142 {
26143   memory_float m;
26144   size_t i;
26145   /* Clear it first, in case
26146      sizeof (float) < sizeof (memory_float).  */
26147   memset (&m, 0, sizeof (memory_float));
26148   m.value = x;
26149   for (i = 0; i < NWORDS; i++)
26150     {
26151       ored_words[i] |= m.word[i];
26152       anded_words[i] &= m.word[i];
26153     }
26154 }
26155 int main ()
26156 {
26157   size_t j;
26158   FILE *fp = fopen ("conftest.out", "w");
26159   if (fp == NULL)
26160     return 1;
26161   for (j = 0; j < NWORDS; j++)
26162     anded_words[j] = ~ (unsigned int) 0;
26163   add_to_ored_words (0.25f);
26164   add_to_ored_words (0.5f);
26165   add_to_ored_words (1.0f);
26166   add_to_ored_words (2.0f);
26167   add_to_ored_words (4.0f);
26168   /* Remove bits that are common (e.g. if representation of the first mantissa
26169      bit is explicit).  */
26170   for (j = 0; j < NWORDS; j++)
26171     ored_words[j] &= ~anded_words[j];
26172   /* Now find the nonzero word.  */
26173   for (j = 0; j < NWORDS; j++)
26174     if (ored_words[j] != 0)
26175       break;
26176   if (j < NWORDS)
26177     {
26178       size_t i;
26179       for (i = j + 1; i < NWORDS; i++)
26180         if (ored_words[i] != 0)
26181           {
26182             fprintf (fp, "unknown");
26183             return (fclose (fp) != 0);
26184           }
26185       for (i = 0; ; i++)
26186         if ((ored_words[j] >> i) & 1)
26187           {
26188             fprintf (fp, "word %d bit %d", (int) j, (int) i);
26189             return (fclose (fp) != 0);
26190           }
26191     }
26192   fprintf (fp, "unknown");
26193   return (fclose (fp) != 0);
26194 }
26195
26196 _ACEOF
26197 if ac_fn_c_try_run "$LINENO"; then :
26198   gl_cv_cc_float_expbit0=`cat conftest.out`
26199 else
26200   gl_cv_cc_float_expbit0="unknown"
26201 fi
26202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26203   conftest.$ac_objext conftest.beam conftest.$ac_ext
26204 fi
26205
26206       rm -f conftest.out
26207
26208 fi
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
26210 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
26211   case "$gl_cv_cc_float_expbit0" in
26212     word*bit*)
26213       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
26214       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
26215
26216 cat >>confdefs.h <<_ACEOF
26217 #define FLT_EXPBIT0_WORD $word
26218 _ACEOF
26219
26220
26221 cat >>confdefs.h <<_ACEOF
26222 #define FLT_EXPBIT0_BIT $bit
26223 _ACEOF
26224
26225       ;;
26226   esac
26227
26228
26229
26230   ISNANF_LIBM=
26231
26232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
26233 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
26234 if ${gl_cv_func_isnanf_no_libm+:} false; then :
26235   $as_echo_n "(cached) " >&6
26236 else
26237
26238       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26239 /* end confdefs.h.  */
26240 #include <math.h>
26241              #if __GNUC__ >= 4
26242              # undef isnanf
26243              # define isnanf(x) __builtin_isnanf ((float)(x))
26244              #elif defined isnan
26245              # undef isnanf
26246              # define isnanf(x) isnan ((float)(x))
26247              #endif
26248              float x;
26249 int
26250 main ()
26251 {
26252 return isnanf (x);
26253   ;
26254   return 0;
26255 }
26256 _ACEOF
26257 if ac_fn_c_try_link "$LINENO"; then :
26258   gl_cv_func_isnanf_no_libm=yes
26259 else
26260   gl_cv_func_isnanf_no_libm=no
26261 fi
26262 rm -f core conftest.err conftest.$ac_objext \
26263     conftest$ac_exeext conftest.$ac_ext
26264
26265 fi
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
26267 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
26268
26269   if test $gl_cv_func_isnanf_no_libm = no; then
26270
26271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
26272 $as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
26273 if ${gl_cv_func_isnanf_in_libm+:} false; then :
26274   $as_echo_n "(cached) " >&6
26275 else
26276
26277       save_LIBS="$LIBS"
26278       LIBS="$LIBS -lm"
26279       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26280 /* end confdefs.h.  */
26281 #include <math.h>
26282              #if __GNUC__ >= 4
26283              # undef isnanf
26284              # define isnanf(x) __builtin_isnanf ((float)(x))
26285              #elif defined isnan
26286              # undef isnanf
26287              # define isnanf(x) isnan ((float)(x))
26288              #endif
26289              float x;
26290 int
26291 main ()
26292 {
26293 return isnanf (x);
26294   ;
26295   return 0;
26296 }
26297 _ACEOF
26298 if ac_fn_c_try_link "$LINENO"; then :
26299   gl_cv_func_isnanf_in_libm=yes
26300 else
26301   gl_cv_func_isnanf_in_libm=no
26302 fi
26303 rm -f core conftest.err conftest.$ac_objext \
26304     conftest$ac_exeext conftest.$ac_ext
26305       LIBS="$save_LIBS"
26306
26307 fi
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
26309 $as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
26310
26311     if test $gl_cv_func_isnanf_in_libm = yes; then
26312       ISNANF_LIBM=-lm
26313     fi
26314   fi
26315     if test $gl_cv_func_isnanf_no_libm = yes \
26316      || test $gl_cv_func_isnanf_in_libm = yes; then
26317     save_LIBS="$LIBS"
26318     LIBS="$LIBS $ISNANF_LIBM"
26319
26320
26321
26322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
26323 $as_echo_n "checking whether isnan(float) works... " >&6; }
26324 if ${gl_cv_func_isnanf_works+:} false; then :
26325   $as_echo_n "(cached) " >&6
26326 else
26327
26328       if test "$cross_compiling" = yes; then :
26329   case "$host_os" in
26330            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
26331            *)                gl_cv_func_isnanf_works="guessing yes";;
26332          esac
26333
26334 else
26335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26336 /* end confdefs.h.  */
26337
26338 #include <math.h>
26339 #if __GNUC__ >= 4
26340 # undef isnanf
26341 # define isnanf(x) __builtin_isnanf ((float)(x))
26342 #elif defined isnan
26343 # undef isnanf
26344 # define isnanf(x) isnan ((float)(x))
26345 #endif
26346 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
26347 #ifdef __DECC
26348 static float
26349 NaN ()
26350 {
26351   static float zero = 0.0f;
26352   return zero / zero;
26353 }
26354 #else
26355 # define NaN() (0.0f / 0.0f)
26356 #endif
26357 #define NWORDS \
26358   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
26359 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
26360 int main()
26361 {
26362   int result = 0;
26363
26364   if (isnanf (1.0f / 0.0f))
26365     result |= 1;
26366
26367   if (!isnanf (NaN ()))
26368     result |= 2;
26369
26370 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
26371   /* The isnanf function should be immune against changes in the sign bit and
26372      in the mantissa bits.  The xor operation twiddles a bit that can only be
26373      a sign bit or a mantissa bit.  */
26374   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
26375     {
26376       memory_float m;
26377
26378       m.value = NaN ();
26379       /* Set the bits below the exponent to 01111...111.  */
26380       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
26381       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
26382       if (!isnanf (m.value))
26383         result |= 4;
26384     }
26385 #endif
26386
26387   return result;
26388 }
26389 _ACEOF
26390 if ac_fn_c_try_run "$LINENO"; then :
26391   gl_cv_func_isnanf_works=yes
26392 else
26393   gl_cv_func_isnanf_works=no
26394 fi
26395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26396   conftest.$ac_objext conftest.beam conftest.$ac_ext
26397 fi
26398
26399
26400 fi
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
26402 $as_echo "$gl_cv_func_isnanf_works" >&6; }
26403
26404     LIBS="$save_LIBS"
26405     case "$gl_cv_func_isnanf_works" in
26406       *yes) gl_func_isnanf=yes ;;
26407       *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
26408     esac
26409   else
26410     gl_func_isnanf=no
26411   fi
26412   if test $gl_func_isnanf != yes; then
26413     HAVE_ISNANF=0
26414   fi
26415
26416
26417
26418
26419   ISNAND_LIBM=
26420
26421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
26422 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
26423 if ${gl_cv_func_isnand_no_libm+:} false; then :
26424   $as_echo_n "(cached) " >&6
26425 else
26426
26427       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h.  */
26429 #include <math.h>
26430              #if __GNUC__ >= 4
26431              # undef isnand
26432              # define isnand(x) __builtin_isnan ((double)(x))
26433              #else
26434              # undef isnand
26435              # define isnand(x) isnan ((double)(x))
26436              #endif
26437              double x;
26438 int
26439 main ()
26440 {
26441 return isnand (x);
26442   ;
26443   return 0;
26444 }
26445 _ACEOF
26446 if ac_fn_c_try_link "$LINENO"; then :
26447   gl_cv_func_isnand_no_libm=yes
26448 else
26449   gl_cv_func_isnand_no_libm=no
26450 fi
26451 rm -f core conftest.err conftest.$ac_objext \
26452     conftest$ac_exeext conftest.$ac_ext
26453
26454 fi
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
26456 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
26457
26458   if test $gl_cv_func_isnand_no_libm = no; then
26459
26460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
26461 $as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
26462 if ${gl_cv_func_isnand_in_libm+:} false; then :
26463   $as_echo_n "(cached) " >&6
26464 else
26465
26466       save_LIBS="$LIBS"
26467       LIBS="$LIBS -lm"
26468       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26469 /* end confdefs.h.  */
26470 #include <math.h>
26471              #if __GNUC__ >= 4
26472              # undef isnand
26473              # define isnand(x) __builtin_isnan ((double)(x))
26474              #elif defined isnan
26475              # undef isnand
26476              # define isnand(x) isnan ((double)(x))
26477              #endif
26478              double x;
26479 int
26480 main ()
26481 {
26482 return isnand (x);
26483   ;
26484   return 0;
26485 }
26486 _ACEOF
26487 if ac_fn_c_try_link "$LINENO"; then :
26488   gl_cv_func_isnand_in_libm=yes
26489 else
26490   gl_cv_func_isnand_in_libm=no
26491 fi
26492 rm -f core conftest.err conftest.$ac_objext \
26493     conftest$ac_exeext conftest.$ac_ext
26494       LIBS="$save_LIBS"
26495
26496 fi
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
26498 $as_echo "$gl_cv_func_isnand_in_libm" >&6; }
26499
26500     if test $gl_cv_func_isnand_in_libm = yes; then
26501       ISNAND_LIBM=-lm
26502     fi
26503   fi
26504     if test $gl_cv_func_isnand_no_libm = yes \
26505      || test $gl_cv_func_isnand_in_libm = yes; then
26506     gl_func_isnand=yes
26507   else
26508     gl_func_isnand=no
26509     HAVE_ISNAND=0
26510   fi
26511
26512
26513
26514
26515   ISNANL_LIBM=
26516
26517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
26518 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
26519 if ${gl_cv_func_isnanl_no_libm+:} false; then :
26520   $as_echo_n "(cached) " >&6
26521 else
26522
26523       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26524 /* end confdefs.h.  */
26525 #include <math.h>
26526              #if __GNUC__ >= 4
26527              # undef isnanl
26528              # define isnanl(x) __builtin_isnanl ((long double)(x))
26529              #elif defined isnan
26530              # undef isnanl
26531              # define isnanl(x) isnan ((long double)(x))
26532              #endif
26533              long double x;
26534 int
26535 main ()
26536 {
26537 return isnanl (x);
26538   ;
26539   return 0;
26540 }
26541 _ACEOF
26542 if ac_fn_c_try_link "$LINENO"; then :
26543   gl_cv_func_isnanl_no_libm=yes
26544 else
26545   gl_cv_func_isnanl_no_libm=no
26546 fi
26547 rm -f core conftest.err conftest.$ac_objext \
26548     conftest$ac_exeext conftest.$ac_ext
26549
26550 fi
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
26552 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
26553
26554   if test $gl_cv_func_isnanl_no_libm = no; then
26555
26556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
26557 $as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
26558 if ${gl_cv_func_isnanl_in_libm+:} false; then :
26559   $as_echo_n "(cached) " >&6
26560 else
26561
26562       save_LIBS="$LIBS"
26563       LIBS="$LIBS -lm"
26564       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26565 /* end confdefs.h.  */
26566 #include <math.h>
26567              #if __GNUC__ >= 4
26568              # undef isnanl
26569              # define isnanl(x) __builtin_isnanl ((long double)(x))
26570              #elif defined isnan
26571              # undef isnanl
26572              # define isnanl(x) isnan ((long double)(x))
26573              #endif
26574              long double x;
26575 int
26576 main ()
26577 {
26578 return isnanl (x);
26579   ;
26580   return 0;
26581 }
26582 _ACEOF
26583 if ac_fn_c_try_link "$LINENO"; then :
26584   gl_cv_func_isnanl_in_libm=yes
26585 else
26586   gl_cv_func_isnanl_in_libm=no
26587 fi
26588 rm -f core conftest.err conftest.$ac_objext \
26589     conftest$ac_exeext conftest.$ac_ext
26590       LIBS="$save_LIBS"
26591
26592 fi
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
26594 $as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
26595
26596     if test $gl_cv_func_isnanl_in_libm = yes; then
26597       ISNANL_LIBM=-lm
26598     fi
26599   fi
26600     if test $gl_cv_func_isnanl_no_libm = yes \
26601      || test $gl_cv_func_isnanl_in_libm = yes; then
26602     save_LIBS="$LIBS"
26603     LIBS="$LIBS $ISNANL_LIBM"
26604
26605
26606
26607
26608      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
26609 $as_echo_n "checking whether isnanl works... " >&6; }
26610 if ${gl_cv_func_isnanl_works+:} false; then :
26611   $as_echo_n "(cached) " >&6
26612 else
26613
26614       if test "$cross_compiling" = yes; then :
26615   gl_cv_func_isnanl_works="guessing yes"
26616 else
26617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26618 /* end confdefs.h.  */
26619
26620 #include <float.h>
26621 #include <limits.h>
26622 #include <math.h>
26623 #if __GNUC__ >= 4
26624 # undef isnanl
26625 # define isnanl(x) __builtin_isnanl ((long double)(x))
26626 #elif defined isnan
26627 # undef isnanl
26628 # define isnanl(x) isnan ((long double)(x))
26629 #endif
26630 #define NWORDS \
26631   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
26632 typedef union { unsigned int word[NWORDS]; long double value; }
26633         memory_long_double;
26634 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
26635    runtime type conversion.  */
26636 #ifdef __sgi
26637 static long double NaNl ()
26638 {
26639   double zero = 0.0;
26640   return zero / zero;
26641 }
26642 #else
26643 # define NaNl() (0.0L / 0.0L)
26644 #endif
26645 int main ()
26646 {
26647   int result = 0;
26648
26649   if (!isnanl (NaNl ()))
26650     result |= 1;
26651
26652   {
26653     memory_long_double m;
26654     unsigned int i;
26655
26656     /* The isnanl function should be immune against changes in the sign bit and
26657        in the mantissa bits.  The xor operation twiddles a bit that can only be
26658        a sign bit or a mantissa bit (since the exponent never extends to
26659        bit 31).  */
26660     m.value = NaNl ();
26661     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
26662     for (i = 0; i < NWORDS; i++)
26663       m.word[i] |= 1;
26664     if (!isnanl (m.value))
26665       result |= 1;
26666   }
26667
26668 #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
26669 /* Representation of an 80-bit 'long double' as an initializer for a sequence
26670    of 'unsigned int' words.  */
26671 # ifdef WORDS_BIGENDIAN
26672 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
26673      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
26674        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
26675        (unsigned int) (mantlo) << 16                                        \
26676      }
26677 # else
26678 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
26679      { mantlo, manthi, exponent }
26680 # endif
26681   { /* Quiet NaN.  */
26682     static memory_long_double x =
26683       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
26684     if (!isnanl (x.value))
26685       result |= 2;
26686   }
26687   {
26688     /* Signalling NaN.  */
26689     static memory_long_double x =
26690       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
26691     if (!isnanl (x.value))
26692       result |= 2;
26693   }
26694   /* isnanl should return something even for noncanonical values.  */
26695   { /* Pseudo-NaN.  */
26696     static memory_long_double x =
26697       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
26698     if (isnanl (x.value) && !isnanl (x.value))
26699       result |= 4;
26700   }
26701   { /* Pseudo-Infinity.  */
26702     static memory_long_double x =
26703       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
26704     if (isnanl (x.value) && !isnanl (x.value))
26705       result |= 8;
26706   }
26707   { /* Pseudo-Zero.  */
26708     static memory_long_double x =
26709       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
26710     if (isnanl (x.value) && !isnanl (x.value))
26711       result |= 16;
26712   }
26713   { /* Unnormalized number.  */
26714     static memory_long_double x =
26715       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
26716     if (isnanl (x.value) && !isnanl (x.value))
26717       result |= 32;
26718   }
26719   { /* Pseudo-Denormal.  */
26720     static memory_long_double x =
26721       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
26722     if (isnanl (x.value) && !isnanl (x.value))
26723       result |= 64;
26724   }
26725 #endif
26726
26727   return result;
26728 }
26729 _ACEOF
26730 if ac_fn_c_try_run "$LINENO"; then :
26731   gl_cv_func_isnanl_works=yes
26732 else
26733   gl_cv_func_isnanl_works=no
26734 fi
26735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26736   conftest.$ac_objext conftest.beam conftest.$ac_ext
26737 fi
26738
26739
26740 fi
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
26742 $as_echo "$gl_cv_func_isnanl_works" >&6; }
26743
26744     LIBS="$save_LIBS"
26745     case "$gl_cv_func_isnanl_works" in
26746       *yes) gl_func_isnanl=yes ;;
26747       *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
26748     esac
26749   else
26750     gl_func_isnanl=no
26751   fi
26752   if test $gl_func_isnanl != yes; then
26753     HAVE_ISNANL=0
26754   fi
26755
26756
26757
26758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
26759 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
26760 if ${gl_cv_cc_double_expbit0+:} false; then :
26761   $as_echo_n "(cached) " >&6
26762 else
26763
26764       if test "$cross_compiling" = yes; then :
26765
26766                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26767 /* end confdefs.h.  */
26768
26769 #if defined arm || defined __arm || defined __arm__
26770   mixed_endianness
26771 #endif
26772
26773 _ACEOF
26774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26775   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
26776   gl_cv_cc_double_expbit0="unknown"
26777 else
26778
26779                                                          :
26780 if ${ac_cv_c_bigendian+:} false; then :
26781   $as_echo_n "(cached) " >&6
26782 else
26783   ac_cv_c_bigendian=unknown
26784     # See if we're dealing with a universal compiler.
26785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26786 /* end confdefs.h.  */
26787 #ifndef __APPLE_CC__
26788                not a universal capable compiler
26789              #endif
26790              typedef int dummy;
26791
26792 _ACEOF
26793 if ac_fn_c_try_compile "$LINENO"; then :
26794
26795         # Check for potential -arch flags.  It is not universal unless
26796         # there are at least two -arch flags with different values.
26797         ac_arch=
26798         ac_prev=
26799         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26800          if test -n "$ac_prev"; then
26801            case $ac_word in
26802              i?86 | x86_64 | ppc | ppc64)
26803                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26804                  ac_arch=$ac_word
26805                else
26806                  ac_cv_c_bigendian=universal
26807                  break
26808                fi
26809                ;;
26810            esac
26811            ac_prev=
26812          elif test "x$ac_word" = "x-arch"; then
26813            ac_prev=arch
26814          fi
26815        done
26816 fi
26817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26818     if test $ac_cv_c_bigendian = unknown; then
26819       # See if sys/param.h defines the BYTE_ORDER macro.
26820       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26821 /* end confdefs.h.  */
26822 #include <sys/types.h>
26823              #include <sys/param.h>
26824
26825 int
26826 main ()
26827 {
26828 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26829                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26830                      && LITTLE_ENDIAN)
26831               bogus endian macros
26832              #endif
26833
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 if ac_fn_c_try_compile "$LINENO"; then :
26839   # It does; now see whether it defined to BIG_ENDIAN or not.
26840          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26841 /* end confdefs.h.  */
26842 #include <sys/types.h>
26843                 #include <sys/param.h>
26844
26845 int
26846 main ()
26847 {
26848 #if BYTE_ORDER != BIG_ENDIAN
26849                  not big endian
26850                 #endif
26851
26852   ;
26853   return 0;
26854 }
26855 _ACEOF
26856 if ac_fn_c_try_compile "$LINENO"; then :
26857   ac_cv_c_bigendian=yes
26858 else
26859   ac_cv_c_bigendian=no
26860 fi
26861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26862 fi
26863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26864     fi
26865     if test $ac_cv_c_bigendian = unknown; then
26866       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26868 /* end confdefs.h.  */
26869 #include <limits.h>
26870
26871 int
26872 main ()
26873 {
26874 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26875               bogus endian macros
26876              #endif
26877
26878   ;
26879   return 0;
26880 }
26881 _ACEOF
26882 if ac_fn_c_try_compile "$LINENO"; then :
26883   # It does; now see whether it defined to _BIG_ENDIAN or not.
26884          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26885 /* end confdefs.h.  */
26886 #include <limits.h>
26887
26888 int
26889 main ()
26890 {
26891 #ifndef _BIG_ENDIAN
26892                  not big endian
26893                 #endif
26894
26895   ;
26896   return 0;
26897 }
26898 _ACEOF
26899 if ac_fn_c_try_compile "$LINENO"; then :
26900   ac_cv_c_bigendian=yes
26901 else
26902   ac_cv_c_bigendian=no
26903 fi
26904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26905 fi
26906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26907     fi
26908     if test $ac_cv_c_bigendian = unknown; then
26909       # Compile a test program.
26910       if test "$cross_compiling" = yes; then :
26911   # Try to guess by grepping values from an object file.
26912          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26913 /* end confdefs.h.  */
26914 short int ascii_mm[] =
26915                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26916                 short int ascii_ii[] =
26917                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26918                 int use_ascii (int i) {
26919                   return ascii_mm[i] + ascii_ii[i];
26920                 }
26921                 short int ebcdic_ii[] =
26922                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26923                 short int ebcdic_mm[] =
26924                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26925                 int use_ebcdic (int i) {
26926                   return ebcdic_mm[i] + ebcdic_ii[i];
26927                 }
26928                 extern int foo;
26929
26930 int
26931 main ()
26932 {
26933 return use_ascii (foo) == use_ebcdic (foo);
26934   ;
26935   return 0;
26936 }
26937 _ACEOF
26938 if ac_fn_c_try_compile "$LINENO"; then :
26939   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26940               ac_cv_c_bigendian=yes
26941             fi
26942             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26943               if test "$ac_cv_c_bigendian" = unknown; then
26944                 ac_cv_c_bigendian=no
26945               else
26946                 # finding both strings is unlikely to happen, but who knows?
26947                 ac_cv_c_bigendian=unknown
26948               fi
26949             fi
26950 fi
26951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26952 else
26953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26954 /* end confdefs.h.  */
26955 $ac_includes_default
26956 int
26957 main ()
26958 {
26959
26960              /* Are we little or big endian?  From Harbison&Steele.  */
26961              union
26962              {
26963                long int l;
26964                char c[sizeof (long int)];
26965              } u;
26966              u.l = 1;
26967              return u.c[sizeof (long int) - 1] == 1;
26968
26969   ;
26970   return 0;
26971 }
26972 _ACEOF
26973 if ac_fn_c_try_run "$LINENO"; then :
26974   ac_cv_c_bigendian=no
26975 else
26976   ac_cv_c_bigendian=yes
26977 fi
26978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26979   conftest.$ac_objext conftest.beam conftest.$ac_ext
26980 fi
26981
26982     fi
26983 fi
26984 :
26985  case $ac_cv_c_bigendian in #(
26986    yes)
26987      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
26988    no)
26989      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
26990    universal)
26991
26992 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26993
26994      ;; #(
26995    *)
26996      gl_cv_cc_double_expbit0="unknown" ;;
26997  esac
26998
26999
27000 fi
27001 rm -f conftest*
27002
27003
27004 else
27005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27006 /* end confdefs.h.  */
27007
27008 #include <float.h>
27009 #include <stddef.h>
27010 #include <stdio.h>
27011 #include <string.h>
27012 #define NWORDS \
27013   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
27014 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
27015 static unsigned int ored_words[NWORDS];
27016 static unsigned int anded_words[NWORDS];
27017 static void add_to_ored_words (double x)
27018 {
27019   memory_double m;
27020   size_t i;
27021   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
27022   memset (&m, 0, sizeof (memory_double));
27023   m.value = x;
27024   for (i = 0; i < NWORDS; i++)
27025     {
27026       ored_words[i] |= m.word[i];
27027       anded_words[i] &= m.word[i];
27028     }
27029 }
27030 int main ()
27031 {
27032   size_t j;
27033   FILE *fp = fopen ("conftest.out", "w");
27034   if (fp == NULL)
27035     return 1;
27036   for (j = 0; j < NWORDS; j++)
27037     anded_words[j] = ~ (unsigned int) 0;
27038   add_to_ored_words (0.25);
27039   add_to_ored_words (0.5);
27040   add_to_ored_words (1.0);
27041   add_to_ored_words (2.0);
27042   add_to_ored_words (4.0);
27043   /* Remove bits that are common (e.g. if representation of the first mantissa
27044      bit is explicit).  */
27045   for (j = 0; j < NWORDS; j++)
27046     ored_words[j] &= ~anded_words[j];
27047   /* Now find the nonzero word.  */
27048   for (j = 0; j < NWORDS; j++)
27049     if (ored_words[j] != 0)
27050       break;
27051   if (j < NWORDS)
27052     {
27053       size_t i;
27054       for (i = j + 1; i < NWORDS; i++)
27055         if (ored_words[i] != 0)
27056           {
27057             fprintf (fp, "unknown");
27058             return (fclose (fp) != 0);
27059           }
27060       for (i = 0; ; i++)
27061         if ((ored_words[j] >> i) & 1)
27062           {
27063             fprintf (fp, "word %d bit %d", (int) j, (int) i);
27064             return (fclose (fp) != 0);
27065           }
27066     }
27067   fprintf (fp, "unknown");
27068   return (fclose (fp) != 0);
27069 }
27070
27071 _ACEOF
27072 if ac_fn_c_try_run "$LINENO"; then :
27073   gl_cv_cc_double_expbit0=`cat conftest.out`
27074 else
27075   gl_cv_cc_double_expbit0="unknown"
27076 fi
27077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27078   conftest.$ac_objext conftest.beam conftest.$ac_ext
27079 fi
27080
27081       rm -f conftest.out
27082
27083 fi
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
27085 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
27086   case "$gl_cv_cc_double_expbit0" in
27087     word*bit*)
27088       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
27089       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
27090
27091 cat >>confdefs.h <<_ACEOF
27092 #define DBL_EXPBIT0_WORD $word
27093 _ACEOF
27094
27095
27096 cat >>confdefs.h <<_ACEOF
27097 #define DBL_EXPBIT0_BIT $bit
27098 _ACEOF
27099
27100       ;;
27101   esac
27102
27103
27104   GNULIB_ISWBLANK=0;
27105   GNULIB_WCTYPE=0;
27106   GNULIB_ISWCTYPE=0;
27107   GNULIB_WCTRANS=0;
27108   GNULIB_TOWCTRANS=0;
27109     HAVE_ISWBLANK=1;
27110   HAVE_WCTYPE_T=1;
27111   HAVE_WCTRANS_T=1;
27112   REPLACE_ISWBLANK=0;
27113
27114
27115
27116
27117
27118
27119
27120
27121   if test $ac_cv_func_iswcntrl = yes; then
27122     HAVE_ISWCNTRL=1
27123   else
27124     HAVE_ISWCNTRL=0
27125   fi
27126
27127
27128
27129   if test $gt_cv_c_wint_t = yes; then
27130     HAVE_WINT_T=1
27131   else
27132     HAVE_WINT_T=0
27133   fi
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145      if test $gl_cv_have_include_next = yes; then
27146        gl_cv_next_wctype_h='<'wctype.h'>'
27147      else
27148        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
27149 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
27150 if ${gl_cv_next_wctype_h+:} false; then :
27151   $as_echo_n "(cached) " >&6
27152 else
27153
27154              if test $ac_cv_header_wctype_h = yes; then
27155
27156
27157
27158
27159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27160 /* end confdefs.h.  */
27161 #include <wctype.h>
27162 _ACEOF
27163                 case "$host_os" in
27164     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27165     *)    gl_absname_cpp="$ac_cpp" ;;
27166   esac
27167
27168   case "$host_os" in
27169     mingw*)
27170                                           gl_dirsep_regex='[/\\]'
27171       ;;
27172     *)
27173       gl_dirsep_regex='\/'
27174       ;;
27175   esac
27176       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27177   gl_header_literal_regex=`echo 'wctype.h' \
27178                            | sed -e "$gl_make_literal_regex_sed"`
27179   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27180       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27181       s|^/[^/]|//&|
27182       p
27183       q
27184     }'
27185
27186         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27187   sed -n "$gl_absolute_header_sed"`
27188
27189            gl_header=$gl_cv_absolute_wctype_h
27190            gl_cv_next_wctype_h='"'$gl_header'"'
27191           else
27192                gl_cv_next_wctype_h='<'wctype.h'>'
27193              fi
27194
27195
27196 fi
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
27198 $as_echo "$gl_cv_next_wctype_h" >&6; }
27199      fi
27200      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
27201
27202      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27203        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27204        gl_next_as_first_directive='<'wctype.h'>'
27205      else
27206        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27207        gl_next_as_first_directive=$gl_cv_next_wctype_h
27208      fi
27209      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
27210
27211
27212
27213
27214   if test $ac_cv_header_wctype_h = yes; then
27215     if test $ac_cv_func_iswcntrl = yes; then
27216                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
27217 $as_echo_n "checking whether iswcntrl works... " >&6; }
27218 if ${gl_cv_func_iswcntrl_works+:} false; then :
27219   $as_echo_n "(cached) " >&6
27220 else
27221
27222           if test "$cross_compiling" = yes; then :
27223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27224 /* end confdefs.h.  */
27225 #include <stdlib.h>
27226                           #if __GNU_LIBRARY__ == 1
27227                           Linux libc5 i18n is broken.
27228                           #endif
27229 int
27230 main ()
27231 {
27232
27233   ;
27234   return 0;
27235 }
27236 _ACEOF
27237 if ac_fn_c_try_compile "$LINENO"; then :
27238   gl_cv_func_iswcntrl_works="guessing yes"
27239 else
27240   gl_cv_func_iswcntrl_works="guessing no"
27241 fi
27242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27243
27244 else
27245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27246 /* end confdefs.h.  */
27247
27248                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27249                   included before <wchar.h>.
27250                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27251                   must be included before <wchar.h>.  */
27252                #include <stddef.h>
27253                #include <stdio.h>
27254                #include <time.h>
27255                #include <wchar.h>
27256                #include <wctype.h>
27257                int main () { return iswprint ('x') == 0; }
27258
27259 _ACEOF
27260 if ac_fn_c_try_run "$LINENO"; then :
27261   gl_cv_func_iswcntrl_works=yes
27262 else
27263   gl_cv_func_iswcntrl_works=no
27264 fi
27265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27266   conftest.$ac_objext conftest.beam conftest.$ac_ext
27267 fi
27268
27269
27270 fi
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
27272 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
27273     fi
27274     HAVE_WCTYPE_H=1
27275   else
27276     HAVE_WCTYPE_H=0
27277   fi
27278
27279
27280   case "$gl_cv_func_iswcntrl_works" in
27281     *yes) REPLACE_ISWCNTRL=0 ;;
27282     *)    REPLACE_ISWCNTRL=1 ;;
27283   esac
27284
27285
27286   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
27287         :
27288   fi
27289
27290   if test $REPLACE_ISWCNTRL = 1; then
27291     REPLACE_TOWLOWER=1
27292   else
27293     for ac_func in towlower
27294 do :
27295   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
27296 if test "x$ac_cv_func_towlower" = xyes; then :
27297   cat >>confdefs.h <<_ACEOF
27298 #define HAVE_TOWLOWER 1
27299 _ACEOF
27300
27301 fi
27302 done
27303
27304     if test $ac_cv_func_towlower = yes; then
27305       REPLACE_TOWLOWER=0
27306     else
27307       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27308              included before <wchar.h>.
27309              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27310              must be included before <wchar.h>.  */
27311           #include <stddef.h>
27312           #include <stdio.h>
27313           #include <time.h>
27314           #include <wchar.h>
27315           #if HAVE_WCTYPE_H
27316           # include <wctype.h>
27317           #endif
27318
27319 "
27320 if test "x$ac_cv_have_decl_towlower" = xyes; then :
27321   ac_have_decl=1
27322 else
27323   ac_have_decl=0
27324 fi
27325
27326 cat >>confdefs.h <<_ACEOF
27327 #define HAVE_DECL_TOWLOWER $ac_have_decl
27328 _ACEOF
27329
27330       if test $ac_cv_have_decl_towlower = yes; then
27331                                 REPLACE_TOWLOWER=1
27332       else
27333         REPLACE_TOWLOWER=0
27334       fi
27335     fi
27336   fi
27337
27338
27339   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
27340         :
27341   fi
27342
27343           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
27344 $as_echo_n "checking for wctype_t... " >&6; }
27345 if ${gl_cv_type_wctype_t+:} false; then :
27346   $as_echo_n "(cached) " >&6
27347 else
27348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27349 /* end confdefs.h.  */
27350 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27351                included before <wchar.h>.
27352                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27353                must be included before <wchar.h>.  */
27354             #include <stddef.h>
27355             #include <stdio.h>
27356             #include <time.h>
27357             #include <wchar.h>
27358             #if HAVE_WCTYPE_H
27359             # include <wctype.h>
27360             #endif
27361             wctype_t a;
27362
27363 int
27364 main ()
27365 {
27366
27367   ;
27368   return 0;
27369 }
27370 _ACEOF
27371 if ac_fn_c_try_compile "$LINENO"; then :
27372   gl_cv_type_wctype_t=yes
27373 else
27374   gl_cv_type_wctype_t=no
27375 fi
27376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27377
27378 fi
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
27380 $as_echo "$gl_cv_type_wctype_t" >&6; }
27381   if test $gl_cv_type_wctype_t = no; then
27382     HAVE_WCTYPE_T=0
27383   fi
27384
27385       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
27386 $as_echo_n "checking for wctrans_t... " >&6; }
27387 if ${gl_cv_type_wctrans_t+:} false; then :
27388   $as_echo_n "(cached) " >&6
27389 else
27390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27391 /* end confdefs.h.  */
27392 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27393                included before <wchar.h>.
27394                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27395                must be included before <wchar.h>.  */
27396             #include <stddef.h>
27397             #include <stdio.h>
27398             #include <time.h>
27399             #include <wchar.h>
27400             #include <wctype.h>
27401             wctrans_t a;
27402
27403 int
27404 main ()
27405 {
27406
27407   ;
27408   return 0;
27409 }
27410 _ACEOF
27411 if ac_fn_c_try_compile "$LINENO"; then :
27412   gl_cv_type_wctrans_t=yes
27413 else
27414   gl_cv_type_wctrans_t=no
27415 fi
27416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27417
27418 fi
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
27420 $as_echo "$gl_cv_type_wctrans_t" >&6; }
27421   if test $gl_cv_type_wctrans_t = no; then
27422     HAVE_WCTRANS_T=0
27423   fi
27424
27425
27426     for gl_func in wctype iswctype wctrans towctrans     ; do
27427     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27429 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27430 if eval \${$as_gl_Symbol+:} false; then :
27431   $as_echo_n "(cached) " >&6
27432 else
27433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27434 /* end confdefs.h.  */
27435
27436 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27437    <wchar.h>.
27438    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27439    included before <wchar.h>.  */
27440 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27441 # include <stddef.h>
27442 # include <stdio.h>
27443 # include <time.h>
27444 # include <wchar.h>
27445 #endif
27446 #include <wctype.h>
27447
27448 int
27449 main ()
27450 {
27451 #undef $gl_func
27452   (void) $gl_func;
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 if ac_fn_c_try_compile "$LINENO"; then :
27458   eval "$as_gl_Symbol=yes"
27459 else
27460   eval "$as_gl_Symbol=no"
27461 fi
27462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27463 fi
27464 eval ac_res=\$$as_gl_Symbol
27465                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27466 $as_echo "$ac_res" >&6; }
27467     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27468   cat >>confdefs.h <<_ACEOF
27469 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27470 _ACEOF
27471
27472                      eval ac_cv_have_decl_$gl_func=yes
27473 fi
27474       done
27475
27476
27477
27478
27479
27480   GNULIB_NL_LANGINFO=0;
27481     HAVE_NL_LANGINFO=1;
27482   REPLACE_NL_LANGINFO=0;
27483
27484
27485
27486
27487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
27488 $as_echo_n "checking whether included glib is requested... " >&6; }
27489
27490 # Check whether --with-included-glib was given.
27491 if test "${with_included_glib+set}" = set; then :
27492   withval=$with_included_glib; gl_cv_libglib_force_included=$withval
27493 else
27494   gl_cv_libglib_force_included=no
27495 fi
27496
27497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
27498 $as_echo "$gl_cv_libglib_force_included" >&6; }
27499
27500   gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
27501   LIBGLIB=
27502   LTLIBGLIB=
27503   INCGLIB=
27504   if test "$gl_cv_libglib_use_included" != yes; then
27505             if ${gl_cv_libglib+:} false; then :
27506   $as_echo_n "(cached) " >&6
27507 else
27508
27509       gl_cv_libglib=no
27510       gl_cv_LIBGLIB=
27511       gl_cv_LTLIBGLIB=
27512       gl_cv_INCGLIB=
27513       gl_save_LIBS="$LIBS"
27514
27515
27516
27517
27518
27519
27520
27521     use_additional=yes
27522
27523   acl_save_prefix="$prefix"
27524   prefix="$acl_final_prefix"
27525   acl_save_exec_prefix="$exec_prefix"
27526   exec_prefix="$acl_final_exec_prefix"
27527
27528     eval additional_includedir=\"$includedir\"
27529     eval additional_libdir=\"$libdir\"
27530
27531   exec_prefix="$acl_save_exec_prefix"
27532   prefix="$acl_save_prefix"
27533
27534
27535 # Check whether --with-libglib-2.0-prefix was given.
27536 if test "${with_libglib_2_0_prefix+set}" = set; then :
27537   withval=$with_libglib_2_0_prefix;
27538     if test "X$withval" = "Xno"; then
27539       use_additional=no
27540     else
27541       if test "X$withval" = "X"; then
27542
27543   acl_save_prefix="$prefix"
27544   prefix="$acl_final_prefix"
27545   acl_save_exec_prefix="$exec_prefix"
27546   exec_prefix="$acl_final_exec_prefix"
27547
27548           eval additional_includedir=\"$includedir\"
27549           eval additional_libdir=\"$libdir\"
27550
27551   exec_prefix="$acl_save_exec_prefix"
27552   prefix="$acl_save_prefix"
27553
27554       else
27555         additional_includedir="$withval/include"
27556         additional_libdir="$withval/$acl_libdirstem"
27557         if test "$acl_libdirstem2" != "$acl_libdirstem" \
27558            && ! test -d "$withval/$acl_libdirstem"; then
27559           additional_libdir="$withval/$acl_libdirstem2"
27560         fi
27561       fi
27562     fi
27563
27564 fi
27565
27566       LIBGLIB_2_0=
27567   LTLIBGLIB_2_0=
27568   INCGLIB_2_0=
27569   LIBGLIB_2_0_PREFIX=
27570       HAVE_LIBGLIB_2_0=
27571   rpathdirs=
27572   ltrpathdirs=
27573   names_already_handled=
27574   names_next_round='glib-2.0 '
27575   while test -n "$names_next_round"; do
27576     names_this_round="$names_next_round"
27577     names_next_round=
27578     for name in $names_this_round; do
27579       already_handled=
27580       for n in $names_already_handled; do
27581         if test "$n" = "$name"; then
27582           already_handled=yes
27583           break
27584         fi
27585       done
27586       if test -z "$already_handled"; then
27587         names_already_handled="$names_already_handled $name"
27588                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
27589         eval value=\"\$HAVE_LIB$uppername\"
27590         if test -n "$value"; then
27591           if test "$value" = yes; then
27592             eval value=\"\$LIB$uppername\"
27593             test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
27594             eval value=\"\$LTLIB$uppername\"
27595             test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
27596           else
27597                                     :
27598           fi
27599         else
27600                               found_dir=
27601           found_la=
27602           found_so=
27603           found_a=
27604           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
27605           if test -n "$acl_shlibext"; then
27606             shrext=".$acl_shlibext"             # typically: shrext=.so
27607           else
27608             shrext=
27609           fi
27610           if test $use_additional = yes; then
27611             dir="$additional_libdir"
27612                                     if test -n "$acl_shlibext"; then
27613               if test -f "$dir/$libname$shrext"; then
27614                 found_dir="$dir"
27615                 found_so="$dir/$libname$shrext"
27616               else
27617                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27618                   ver=`(cd "$dir" && \
27619                         for f in "$libname$shrext".*; do echo "$f"; done \
27620                         | sed -e "s,^$libname$shrext\\\\.,," \
27621                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27622                         | sed 1q ) 2>/dev/null`
27623                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27624                     found_dir="$dir"
27625                     found_so="$dir/$libname$shrext.$ver"
27626                   fi
27627                 else
27628                   eval library_names=\"$acl_library_names_spec\"
27629                   for f in $library_names; do
27630                     if test -f "$dir/$f"; then
27631                       found_dir="$dir"
27632                       found_so="$dir/$f"
27633                       break
27634                     fi
27635                   done
27636                 fi
27637               fi
27638             fi
27639                         if test "X$found_dir" = "X"; then
27640               if test -f "$dir/$libname.$acl_libext"; then
27641                 found_dir="$dir"
27642                 found_a="$dir/$libname.$acl_libext"
27643               fi
27644             fi
27645             if test "X$found_dir" != "X"; then
27646               if test -f "$dir/$libname.la"; then
27647                 found_la="$dir/$libname.la"
27648               fi
27649             fi
27650           fi
27651           if test "X$found_dir" = "X"; then
27652             for x in $LDFLAGS $LTLIBGLIB_2_0; do
27653
27654   acl_save_prefix="$prefix"
27655   prefix="$acl_final_prefix"
27656   acl_save_exec_prefix="$exec_prefix"
27657   exec_prefix="$acl_final_exec_prefix"
27658   eval x=\"$x\"
27659   exec_prefix="$acl_save_exec_prefix"
27660   prefix="$acl_save_prefix"
27661
27662               case "$x" in
27663                 -L*)
27664                   dir=`echo "X$x" | sed -e 's/^X-L//'`
27665                                     if test -n "$acl_shlibext"; then
27666                     if test -f "$dir/$libname$shrext"; then
27667                       found_dir="$dir"
27668                       found_so="$dir/$libname$shrext"
27669                     else
27670                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27671                         ver=`(cd "$dir" && \
27672                               for f in "$libname$shrext".*; do echo "$f"; done \
27673                               | sed -e "s,^$libname$shrext\\\\.,," \
27674                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27675                               | sed 1q ) 2>/dev/null`
27676                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27677                           found_dir="$dir"
27678                           found_so="$dir/$libname$shrext.$ver"
27679                         fi
27680                       else
27681                         eval library_names=\"$acl_library_names_spec\"
27682                         for f in $library_names; do
27683                           if test -f "$dir/$f"; then
27684                             found_dir="$dir"
27685                             found_so="$dir/$f"
27686                             break
27687                           fi
27688                         done
27689                       fi
27690                     fi
27691                   fi
27692                                     if test "X$found_dir" = "X"; then
27693                     if test -f "$dir/$libname.$acl_libext"; then
27694                       found_dir="$dir"
27695                       found_a="$dir/$libname.$acl_libext"
27696                     fi
27697                   fi
27698                   if test "X$found_dir" != "X"; then
27699                     if test -f "$dir/$libname.la"; then
27700                       found_la="$dir/$libname.la"
27701                     fi
27702                   fi
27703                   ;;
27704               esac
27705               if test "X$found_dir" != "X"; then
27706                 break
27707               fi
27708             done
27709           fi
27710           if test "X$found_dir" != "X"; then
27711                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
27712             if test "X$found_so" != "X"; then
27713                                                         if test "$enable_rpath" = no \
27714                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
27715                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
27716                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
27717               else
27718                                                                                 haveit=
27719                 for x in $ltrpathdirs; do
27720                   if test "X$x" = "X$found_dir"; then
27721                     haveit=yes
27722                     break
27723                   fi
27724                 done
27725                 if test -z "$haveit"; then
27726                   ltrpathdirs="$ltrpathdirs $found_dir"
27727                 fi
27728                                 if test "$acl_hardcode_direct" = yes; then
27729                                                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
27730                 else
27731                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
27732                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
27733                                                             haveit=
27734                     for x in $rpathdirs; do
27735                       if test "X$x" = "X$found_dir"; then
27736                         haveit=yes
27737                         break
27738                       fi
27739                     done
27740                     if test -z "$haveit"; then
27741                       rpathdirs="$rpathdirs $found_dir"
27742                     fi
27743                   else
27744                                                                                 haveit=
27745                     for x in $LDFLAGS $LIBGLIB_2_0; do
27746
27747   acl_save_prefix="$prefix"
27748   prefix="$acl_final_prefix"
27749   acl_save_exec_prefix="$exec_prefix"
27750   exec_prefix="$acl_final_exec_prefix"
27751   eval x=\"$x\"
27752   exec_prefix="$acl_save_exec_prefix"
27753   prefix="$acl_save_prefix"
27754
27755                       if test "X$x" = "X-L$found_dir"; then
27756                         haveit=yes
27757                         break
27758                       fi
27759                     done
27760                     if test -z "$haveit"; then
27761                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
27762                     fi
27763                     if test "$acl_hardcode_minus_L" != no; then
27764                                                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
27765                     else
27766                                                                                                                                                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
27767                     fi
27768                   fi
27769                 fi
27770               fi
27771             else
27772               if test "X$found_a" != "X"; then
27773                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
27774               else
27775                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
27776               fi
27777             fi
27778                         additional_includedir=
27779             case "$found_dir" in
27780               */$acl_libdirstem | */$acl_libdirstem/)
27781                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27782                 if test "$name" = 'glib-2.0'; then
27783                   LIBGLIB_2_0_PREFIX="$basedir"
27784                 fi
27785                 additional_includedir="$basedir/include"
27786                 ;;
27787               */$acl_libdirstem2 | */$acl_libdirstem2/)
27788                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
27789                 if test "$name" = 'glib-2.0'; then
27790                   LIBGLIB_2_0_PREFIX="$basedir"
27791                 fi
27792                 additional_includedir="$basedir/include"
27793                 ;;
27794             esac
27795             if test "X$additional_includedir" != "X"; then
27796                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
27797                 haveit=
27798                 if test "X$additional_includedir" = "X/usr/local/include"; then
27799                   if test -n "$GCC"; then
27800                     case $host_os in
27801                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27802                     esac
27803                   fi
27804                 fi
27805                 if test -z "$haveit"; then
27806                   for x in $CPPFLAGS $INCGLIB_2_0; do
27807
27808   acl_save_prefix="$prefix"
27809   prefix="$acl_final_prefix"
27810   acl_save_exec_prefix="$exec_prefix"
27811   exec_prefix="$acl_final_exec_prefix"
27812   eval x=\"$x\"
27813   exec_prefix="$acl_save_exec_prefix"
27814   prefix="$acl_save_prefix"
27815
27816                     if test "X$x" = "X-I$additional_includedir"; then
27817                       haveit=yes
27818                       break
27819                     fi
27820                   done
27821                   if test -z "$haveit"; then
27822                     if test -d "$additional_includedir"; then
27823                                             INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
27824                     fi
27825                   fi
27826                 fi
27827               fi
27828             fi
27829                         if test -n "$found_la"; then
27830                                                         save_libdir="$libdir"
27831               case "$found_la" in
27832                 */* | *\\*) . "$found_la" ;;
27833                 *) . "./$found_la" ;;
27834               esac
27835               libdir="$save_libdir"
27836                             for dep in $dependency_libs; do
27837                 case "$dep" in
27838                   -L*)
27839                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27840                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
27841                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
27842                       haveit=
27843                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
27844                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
27845                         if test -n "$GCC"; then
27846                           case $host_os in
27847                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27848                           esac
27849                         fi
27850                       fi
27851                       if test -z "$haveit"; then
27852                         haveit=
27853                         for x in $LDFLAGS $LIBGLIB_2_0; do
27854
27855   acl_save_prefix="$prefix"
27856   prefix="$acl_final_prefix"
27857   acl_save_exec_prefix="$exec_prefix"
27858   exec_prefix="$acl_final_exec_prefix"
27859   eval x=\"$x\"
27860   exec_prefix="$acl_save_exec_prefix"
27861   prefix="$acl_save_prefix"
27862
27863                           if test "X$x" = "X-L$additional_libdir"; then
27864                             haveit=yes
27865                             break
27866                           fi
27867                         done
27868                         if test -z "$haveit"; then
27869                           if test -d "$additional_libdir"; then
27870                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
27871                           fi
27872                         fi
27873                         haveit=
27874                         for x in $LDFLAGS $LTLIBGLIB_2_0; do
27875
27876   acl_save_prefix="$prefix"
27877   prefix="$acl_final_prefix"
27878   acl_save_exec_prefix="$exec_prefix"
27879   exec_prefix="$acl_final_exec_prefix"
27880   eval x=\"$x\"
27881   exec_prefix="$acl_save_exec_prefix"
27882   prefix="$acl_save_prefix"
27883
27884                           if test "X$x" = "X-L$additional_libdir"; then
27885                             haveit=yes
27886                             break
27887                           fi
27888                         done
27889                         if test -z "$haveit"; then
27890                           if test -d "$additional_libdir"; then
27891                                                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
27892                           fi
27893                         fi
27894                       fi
27895                     fi
27896                     ;;
27897                   -R*)
27898                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
27899                     if test "$enable_rpath" != no; then
27900                                                                   haveit=
27901                       for x in $rpathdirs; do
27902                         if test "X$x" = "X$dir"; then
27903                           haveit=yes
27904                           break
27905                         fi
27906                       done
27907                       if test -z "$haveit"; then
27908                         rpathdirs="$rpathdirs $dir"
27909                       fi
27910                                                                   haveit=
27911                       for x in $ltrpathdirs; do
27912                         if test "X$x" = "X$dir"; then
27913                           haveit=yes
27914                           break
27915                         fi
27916                       done
27917                       if test -z "$haveit"; then
27918                         ltrpathdirs="$ltrpathdirs $dir"
27919                       fi
27920                     fi
27921                     ;;
27922                   -l*)
27923                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27924                     ;;
27925                   *.la)
27926                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27927                     ;;
27928                   *)
27929                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
27930                     LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
27931                     ;;
27932                 esac
27933               done
27934             fi
27935           else
27936                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
27937             LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
27938           fi
27939         fi
27940       fi
27941     done
27942   done
27943   if test "X$rpathdirs" != "X"; then
27944     if test -n "$acl_hardcode_libdir_separator"; then
27945                         alldirs=
27946       for found_dir in $rpathdirs; do
27947         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27948       done
27949             acl_save_libdir="$libdir"
27950       libdir="$alldirs"
27951       eval flag=\"$acl_hardcode_libdir_flag_spec\"
27952       libdir="$acl_save_libdir"
27953       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
27954     else
27955             for found_dir in $rpathdirs; do
27956         acl_save_libdir="$libdir"
27957         libdir="$found_dir"
27958         eval flag=\"$acl_hardcode_libdir_flag_spec\"
27959         libdir="$acl_save_libdir"
27960         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
27961       done
27962     fi
27963   fi
27964   if test "X$ltrpathdirs" != "X"; then
27965             for found_dir in $ltrpathdirs; do
27966       LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
27967     done
27968   fi
27969
27970
27971
27972
27973
27974
27975       LIBS="$gl_save_LIBS $LIBGLIB_2_0"
27976       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27977 /* end confdefs.h.  */
27978 #include <glib.h>
27979 #ifndef G_BEGIN_DECLS
27980 error this glib.h includes a glibconfig.h from a glib version 1.x
27981 #endif
27982
27983 int
27984 main ()
27985 {
27986 g_string_new ("foo");
27987   ;
27988   return 0;
27989 }
27990 _ACEOF
27991 if ac_fn_c_try_link "$LINENO"; then :
27992   gl_cv_libglib=yes
27993          gl_cv_LIBGLIB="$LIBGLIB_2_0"
27994          gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
27995
27996 fi
27997 rm -f core conftest.err conftest.$ac_objext \
27998     conftest$ac_exeext conftest.$ac_ext
27999       if test "$gl_cv_libglib" != yes; then
28000         gl_save_CPPFLAGS="$CPPFLAGS"
28001         CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
28002         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28003 /* end confdefs.h.  */
28004 #include <glib.h>
28005 #ifndef G_BEGIN_DECLS
28006 error this glib.h includes a glibconfig.h from a glib version 1.x
28007 #endif
28008
28009 int
28010 main ()
28011 {
28012 g_string_new ("foo");
28013   ;
28014   return 0;
28015 }
28016 _ACEOF
28017 if ac_fn_c_try_link "$LINENO"; then :
28018   gl_cv_libglib=yes
28019            gl_cv_LIBGLIB="$LIBGLIB_2_0"
28020            gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
28021            gl_cv_INCGLIB="$INCGLIB_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                               if test -n "$LIBGLIB_2_0_PREFIX"; then
28028             CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
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="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
28049
28050 fi
28051 rm -f core conftest.err conftest.$ac_objext \
28052     conftest$ac_exeext conftest.$ac_ext
28053           fi
28054         fi
28055         CPPFLAGS="$gl_save_CPPFLAGS"
28056       fi
28057       LIBS="$gl_save_LIBS"
28058
28059 fi
28060
28061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
28062 $as_echo_n "checking for glib... " >&6; }
28063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
28064 $as_echo "$gl_cv_libglib" >&6; }
28065     if test $gl_cv_libglib = yes; then
28066       LIBGLIB="$gl_cv_LIBGLIB"
28067       LTLIBGLIB="$gl_cv_LTLIBGLIB"
28068       INCGLIB="$gl_cv_INCGLIB"
28069     else
28070       gl_cv_libglib_use_included=yes
28071     fi
28072   fi
28073
28074
28075
28076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
28077 $as_echo_n "checking whether to use the included glib... " >&6; }
28078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
28079 $as_echo "$gl_cv_libglib_use_included" >&6; }
28080
28081   if test "$gl_cv_libglib_use_included" = yes; then
28082     LIBGLIB_H=
28083     LIBGLIB_H="$LIBGLIB_H glib.h"
28084     LIBGLIB_H="$LIBGLIB_H glibconfig.h"
28085     LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
28086     LIBGLIB_H="$LIBGLIB_H glib/glist.h"
28087     LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
28088     LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
28089     LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
28090     LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
28091
28092     for ac_header in unistd.h
28093 do :
28094   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
28095 if test "x$ac_cv_header_unistd_h" = xyes; then :
28096   cat >>confdefs.h <<_ACEOF
28097 #define HAVE_UNISTD_H 1
28098 _ACEOF
28099
28100 fi
28101
28102 done
28103
28104       else
28105     LIBGLIB_H=
28106   fi
28107
28108
28109    if test "$gl_cv_libglib_use_included" = yes; then
28110   INCLUDED_LIBGLIB_TRUE=
28111   INCLUDED_LIBGLIB_FALSE='#'
28112 else
28113   INCLUDED_LIBGLIB_TRUE='#'
28114   INCLUDED_LIBGLIB_FALSE=
28115 fi
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libunistring is requested" >&5
28127 $as_echo_n "checking whether included libunistring is requested... " >&6; }
28128
28129 # Check whether --with-included-libunistring was given.
28130 if test "${with_included_libunistring+set}" = set; then :
28131   withval=$with_included_libunistring; gl_libunistring_force_included=$withval
28132 else
28133   gl_libunistring_force_included=no
28134 fi
28135
28136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_force_included" >&5
28137 $as_echo "$gl_libunistring_force_included" >&6; }
28138       gl_libunistring_use_included="$gl_libunistring_force_included"
28139       if test "$gl_libunistring_use_included" = yes; then
28140                         if test -z "$HAVE_LIBUNISTRING"; then
28141           HAVE_LIBUNISTRING=no
28142         fi
28143         LIBUNISTRING=
28144         LTLIBUNISTRING=
28145       else
28146
28147
28148   if test -n "$LIBICONV"; then
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162     use_additional=yes
28163
28164   acl_save_prefix="$prefix"
28165   prefix="$acl_final_prefix"
28166   acl_save_exec_prefix="$exec_prefix"
28167   exec_prefix="$acl_final_exec_prefix"
28168
28169     eval additional_includedir=\"$includedir\"
28170     eval additional_libdir=\"$libdir\"
28171
28172   exec_prefix="$acl_save_exec_prefix"
28173   prefix="$acl_save_prefix"
28174
28175
28176 # Check whether --with-libunistring-prefix was given.
28177 if test "${with_libunistring_prefix+set}" = set; then :
28178   withval=$with_libunistring_prefix;
28179     if test "X$withval" = "Xno"; then
28180       use_additional=no
28181     else
28182       if test "X$withval" = "X"; then
28183
28184   acl_save_prefix="$prefix"
28185   prefix="$acl_final_prefix"
28186   acl_save_exec_prefix="$exec_prefix"
28187   exec_prefix="$acl_final_exec_prefix"
28188
28189           eval additional_includedir=\"$includedir\"
28190           eval additional_libdir=\"$libdir\"
28191
28192   exec_prefix="$acl_save_exec_prefix"
28193   prefix="$acl_save_prefix"
28194
28195       else
28196         additional_includedir="$withval/include"
28197         additional_libdir="$withval/$acl_libdirstem"
28198         if test "$acl_libdirstem2" != "$acl_libdirstem" \
28199            && ! test -d "$withval/$acl_libdirstem"; then
28200           additional_libdir="$withval/$acl_libdirstem2"
28201         fi
28202       fi
28203     fi
28204
28205 fi
28206
28207       LIBUNISTRING=
28208   LTLIBUNISTRING=
28209   INCUNISTRING=
28210   LIBUNISTRING_PREFIX=
28211       HAVE_LIBUNISTRING=
28212   rpathdirs=
28213   ltrpathdirs=
28214   names_already_handled=
28215   names_next_round='unistring '
28216   while test -n "$names_next_round"; do
28217     names_this_round="$names_next_round"
28218     names_next_round=
28219     for name in $names_this_round; do
28220       already_handled=
28221       for n in $names_already_handled; do
28222         if test "$n" = "$name"; then
28223           already_handled=yes
28224           break
28225         fi
28226       done
28227       if test -z "$already_handled"; then
28228         names_already_handled="$names_already_handled $name"
28229                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
28230         eval value=\"\$HAVE_LIB$uppername\"
28231         if test -n "$value"; then
28232           if test "$value" = yes; then
28233             eval value=\"\$LIB$uppername\"
28234             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
28235             eval value=\"\$LTLIB$uppername\"
28236             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
28237           else
28238                                     :
28239           fi
28240         else
28241                               found_dir=
28242           found_la=
28243           found_so=
28244           found_a=
28245           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
28246           if test -n "$acl_shlibext"; then
28247             shrext=".$acl_shlibext"             # typically: shrext=.so
28248           else
28249             shrext=
28250           fi
28251           if test $use_additional = yes; then
28252             dir="$additional_libdir"
28253                                     if test -n "$acl_shlibext"; then
28254               if test -f "$dir/$libname$shrext"; then
28255                 found_dir="$dir"
28256                 found_so="$dir/$libname$shrext"
28257               else
28258                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28259                   ver=`(cd "$dir" && \
28260                         for f in "$libname$shrext".*; do echo "$f"; done \
28261                         | sed -e "s,^$libname$shrext\\\\.,," \
28262                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28263                         | sed 1q ) 2>/dev/null`
28264                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28265                     found_dir="$dir"
28266                     found_so="$dir/$libname$shrext.$ver"
28267                   fi
28268                 else
28269                   eval library_names=\"$acl_library_names_spec\"
28270                   for f in $library_names; do
28271                     if test -f "$dir/$f"; then
28272                       found_dir="$dir"
28273                       found_so="$dir/$f"
28274                       break
28275                     fi
28276                   done
28277                 fi
28278               fi
28279             fi
28280                         if test "X$found_dir" = "X"; then
28281               if test -f "$dir/$libname.$acl_libext"; then
28282                 found_dir="$dir"
28283                 found_a="$dir/$libname.$acl_libext"
28284               fi
28285             fi
28286             if test "X$found_dir" != "X"; then
28287               if test -f "$dir/$libname.la"; then
28288                 found_la="$dir/$libname.la"
28289               fi
28290             fi
28291           fi
28292           if test "X$found_dir" = "X"; then
28293             for x in $LDFLAGS $LTLIBUNISTRING; do
28294
28295   acl_save_prefix="$prefix"
28296   prefix="$acl_final_prefix"
28297   acl_save_exec_prefix="$exec_prefix"
28298   exec_prefix="$acl_final_exec_prefix"
28299   eval x=\"$x\"
28300   exec_prefix="$acl_save_exec_prefix"
28301   prefix="$acl_save_prefix"
28302
28303               case "$x" in
28304                 -L*)
28305                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28306                                     if test -n "$acl_shlibext"; then
28307                     if test -f "$dir/$libname$shrext"; then
28308                       found_dir="$dir"
28309                       found_so="$dir/$libname$shrext"
28310                     else
28311                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28312                         ver=`(cd "$dir" && \
28313                               for f in "$libname$shrext".*; do echo "$f"; done \
28314                               | sed -e "s,^$libname$shrext\\\\.,," \
28315                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28316                               | sed 1q ) 2>/dev/null`
28317                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28318                           found_dir="$dir"
28319                           found_so="$dir/$libname$shrext.$ver"
28320                         fi
28321                       else
28322                         eval library_names=\"$acl_library_names_spec\"
28323                         for f in $library_names; do
28324                           if test -f "$dir/$f"; then
28325                             found_dir="$dir"
28326                             found_so="$dir/$f"
28327                             break
28328                           fi
28329                         done
28330                       fi
28331                     fi
28332                   fi
28333                                     if test "X$found_dir" = "X"; then
28334                     if test -f "$dir/$libname.$acl_libext"; then
28335                       found_dir="$dir"
28336                       found_a="$dir/$libname.$acl_libext"
28337                     fi
28338                   fi
28339                   if test "X$found_dir" != "X"; then
28340                     if test -f "$dir/$libname.la"; then
28341                       found_la="$dir/$libname.la"
28342                     fi
28343                   fi
28344                   ;;
28345               esac
28346               if test "X$found_dir" != "X"; then
28347                 break
28348               fi
28349             done
28350           fi
28351           if test "X$found_dir" != "X"; then
28352                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
28353             if test "X$found_so" != "X"; then
28354                                                         if test "$enable_rpath" = no \
28355                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
28356                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
28357                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28358               else
28359                                                                                 haveit=
28360                 for x in $ltrpathdirs; do
28361                   if test "X$x" = "X$found_dir"; then
28362                     haveit=yes
28363                     break
28364                   fi
28365                 done
28366                 if test -z "$haveit"; then
28367                   ltrpathdirs="$ltrpathdirs $found_dir"
28368                 fi
28369                                 if test "$acl_hardcode_direct" = yes; then
28370                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28371                 else
28372                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28373                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28374                                                             haveit=
28375                     for x in $rpathdirs; do
28376                       if test "X$x" = "X$found_dir"; then
28377                         haveit=yes
28378                         break
28379                       fi
28380                     done
28381                     if test -z "$haveit"; then
28382                       rpathdirs="$rpathdirs $found_dir"
28383                     fi
28384                   else
28385                                                                                 haveit=
28386                     for x in $LDFLAGS $LIBUNISTRING; do
28387
28388   acl_save_prefix="$prefix"
28389   prefix="$acl_final_prefix"
28390   acl_save_exec_prefix="$exec_prefix"
28391   exec_prefix="$acl_final_exec_prefix"
28392   eval x=\"$x\"
28393   exec_prefix="$acl_save_exec_prefix"
28394   prefix="$acl_save_prefix"
28395
28396                       if test "X$x" = "X-L$found_dir"; then
28397                         haveit=yes
28398                         break
28399                       fi
28400                     done
28401                     if test -z "$haveit"; then
28402                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
28403                     fi
28404                     if test "$acl_hardcode_minus_L" != no; then
28405                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28406                     else
28407                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
28408                     fi
28409                   fi
28410                 fi
28411               fi
28412             else
28413               if test "X$found_a" != "X"; then
28414                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
28415               else
28416                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
28417               fi
28418             fi
28419                         additional_includedir=
28420             case "$found_dir" in
28421               */$acl_libdirstem | */$acl_libdirstem/)
28422                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28423                 if test "$name" = 'unistring'; then
28424                   LIBUNISTRING_PREFIX="$basedir"
28425                 fi
28426                 additional_includedir="$basedir/include"
28427                 ;;
28428               */$acl_libdirstem2 | */$acl_libdirstem2/)
28429                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
28430                 if test "$name" = 'unistring'; then
28431                   LIBUNISTRING_PREFIX="$basedir"
28432                 fi
28433                 additional_includedir="$basedir/include"
28434                 ;;
28435             esac
28436             if test "X$additional_includedir" != "X"; then
28437                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28438                 haveit=
28439                 if test "X$additional_includedir" = "X/usr/local/include"; then
28440                   if test -n "$GCC"; then
28441                     case $host_os in
28442                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28443                     esac
28444                   fi
28445                 fi
28446                 if test -z "$haveit"; then
28447                   for x in $CPPFLAGS $INCUNISTRING; do
28448
28449   acl_save_prefix="$prefix"
28450   prefix="$acl_final_prefix"
28451   acl_save_exec_prefix="$exec_prefix"
28452   exec_prefix="$acl_final_exec_prefix"
28453   eval x=\"$x\"
28454   exec_prefix="$acl_save_exec_prefix"
28455   prefix="$acl_save_prefix"
28456
28457                     if test "X$x" = "X-I$additional_includedir"; then
28458                       haveit=yes
28459                       break
28460                     fi
28461                   done
28462                   if test -z "$haveit"; then
28463                     if test -d "$additional_includedir"; then
28464                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
28465                     fi
28466                   fi
28467                 fi
28468               fi
28469             fi
28470                         if test -n "$found_la"; then
28471                                                         save_libdir="$libdir"
28472               case "$found_la" in
28473                 */* | *\\*) . "$found_la" ;;
28474                 *) . "./$found_la" ;;
28475               esac
28476               libdir="$save_libdir"
28477                             for dep in $dependency_libs; do
28478                 case "$dep" in
28479                   -L*)
28480                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28481                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
28482                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
28483                       haveit=
28484                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
28485                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
28486                         if test -n "$GCC"; then
28487                           case $host_os in
28488                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28489                           esac
28490                         fi
28491                       fi
28492                       if test -z "$haveit"; then
28493                         haveit=
28494                         for x in $LDFLAGS $LIBUNISTRING; do
28495
28496   acl_save_prefix="$prefix"
28497   prefix="$acl_final_prefix"
28498   acl_save_exec_prefix="$exec_prefix"
28499   exec_prefix="$acl_final_exec_prefix"
28500   eval x=\"$x\"
28501   exec_prefix="$acl_save_exec_prefix"
28502   prefix="$acl_save_prefix"
28503
28504                           if test "X$x" = "X-L$additional_libdir"; then
28505                             haveit=yes
28506                             break
28507                           fi
28508                         done
28509                         if test -z "$haveit"; then
28510                           if test -d "$additional_libdir"; then
28511                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
28512                           fi
28513                         fi
28514                         haveit=
28515                         for x in $LDFLAGS $LTLIBUNISTRING; do
28516
28517   acl_save_prefix="$prefix"
28518   prefix="$acl_final_prefix"
28519   acl_save_exec_prefix="$exec_prefix"
28520   exec_prefix="$acl_final_exec_prefix"
28521   eval x=\"$x\"
28522   exec_prefix="$acl_save_exec_prefix"
28523   prefix="$acl_save_prefix"
28524
28525                           if test "X$x" = "X-L$additional_libdir"; then
28526                             haveit=yes
28527                             break
28528                           fi
28529                         done
28530                         if test -z "$haveit"; then
28531                           if test -d "$additional_libdir"; then
28532                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
28533                           fi
28534                         fi
28535                       fi
28536                     fi
28537                     ;;
28538                   -R*)
28539                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
28540                     if test "$enable_rpath" != no; then
28541                                                                   haveit=
28542                       for x in $rpathdirs; do
28543                         if test "X$x" = "X$dir"; then
28544                           haveit=yes
28545                           break
28546                         fi
28547                       done
28548                       if test -z "$haveit"; then
28549                         rpathdirs="$rpathdirs $dir"
28550                       fi
28551                                                                   haveit=
28552                       for x in $ltrpathdirs; do
28553                         if test "X$x" = "X$dir"; then
28554                           haveit=yes
28555                           break
28556                         fi
28557                       done
28558                       if test -z "$haveit"; then
28559                         ltrpathdirs="$ltrpathdirs $dir"
28560                       fi
28561                     fi
28562                     ;;
28563                   -l*)
28564                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28565                     ;;
28566                   *.la)
28567                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28568                     ;;
28569                   *)
28570                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
28571                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
28572                     ;;
28573                 esac
28574               done
28575             fi
28576           else
28577                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
28578             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
28579           fi
28580         fi
28581       fi
28582     done
28583   done
28584   if test "X$rpathdirs" != "X"; then
28585     if test -n "$acl_hardcode_libdir_separator"; then
28586                         alldirs=
28587       for found_dir in $rpathdirs; do
28588         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
28589       done
28590             acl_save_libdir="$libdir"
28591       libdir="$alldirs"
28592       eval flag=\"$acl_hardcode_libdir_flag_spec\"
28593       libdir="$acl_save_libdir"
28594       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
28595     else
28596             for found_dir in $rpathdirs; do
28597         acl_save_libdir="$libdir"
28598         libdir="$found_dir"
28599         eval flag=\"$acl_hardcode_libdir_flag_spec\"
28600         libdir="$acl_save_libdir"
28601         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
28602       done
28603     fi
28604   fi
28605   if test "X$ltrpathdirs" != "X"; then
28606             for found_dir in $ltrpathdirs; do
28607       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
28608     done
28609   fi
28610
28611
28612
28613
28614
28615
28616
28617         ac_save_CPPFLAGS="$CPPFLAGS"
28618
28619   for element in $INCUNISTRING; do
28620     haveit=
28621     for x in $CPPFLAGS; do
28622
28623   acl_save_prefix="$prefix"
28624   prefix="$acl_final_prefix"
28625   acl_save_exec_prefix="$exec_prefix"
28626   exec_prefix="$acl_final_exec_prefix"
28627   eval x=\"$x\"
28628   exec_prefix="$acl_save_exec_prefix"
28629   prefix="$acl_save_prefix"
28630
28631       if test "X$x" = "X$element"; then
28632         haveit=yes
28633         break
28634       fi
28635     done
28636     if test -z "$haveit"; then
28637       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28638     fi
28639   done
28640
28641
28642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
28643 $as_echo_n "checking for libunistring... " >&6; }
28644 if ${ac_cv_libunistring+:} false; then :
28645   $as_echo_n "(cached) " >&6
28646 else
28647
28648     ac_save_LIBS="$LIBS"
28649                                 case " $LIBUNISTRING" in
28650       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
28651       *)       LIBS="$LIBUNISTRING $LIBS" ;;
28652     esac
28653     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28654 /* end confdefs.h.  */
28655 #include <uniconv.h>
28656 int
28657 main ()
28658 {
28659 u8_strconv_from_locale((char*)0);
28660   ;
28661   return 0;
28662 }
28663 _ACEOF
28664 if ac_fn_c_try_link "$LINENO"; then :
28665   ac_cv_libunistring=yes
28666 else
28667   ac_cv_libunistring='no, trying again together with libiconv'
28668 fi
28669 rm -f core conftest.err conftest.$ac_objext \
28670     conftest$ac_exeext conftest.$ac_ext
28671     LIBS="$ac_save_LIBS"
28672
28673 fi
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
28675 $as_echo "$ac_cv_libunistring" >&6; }
28676   if test "$ac_cv_libunistring" = yes; then
28677     HAVE_LIBUNISTRING=yes
28678
28679 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
28680
28681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
28682 $as_echo_n "checking how to link with libunistring... " >&6; }
28683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
28684 $as_echo "$LIBUNISTRING" >&6; }
28685   else
28686     HAVE_LIBUNISTRING=no
28687             CPPFLAGS="$ac_save_CPPFLAGS"
28688     LIBUNISTRING=
28689     LTLIBUNISTRING=
28690     LIBUNISTRING_PREFIX=
28691   fi
28692
28693
28694
28695
28696
28697
28698
28699     if test "$ac_cv_libunistring" != yes; then
28700                         unset ac_cv_libunistring
28701       glus_save_LIBS="$LIBS"
28702       LIBS="$LIBS $LIBICONV"
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716     use_additional=yes
28717
28718   acl_save_prefix="$prefix"
28719   prefix="$acl_final_prefix"
28720   acl_save_exec_prefix="$exec_prefix"
28721   exec_prefix="$acl_final_exec_prefix"
28722
28723     eval additional_includedir=\"$includedir\"
28724     eval additional_libdir=\"$libdir\"
28725
28726   exec_prefix="$acl_save_exec_prefix"
28727   prefix="$acl_save_prefix"
28728
28729
28730 # Check whether --with-libunistring-prefix was given.
28731 if test "${with_libunistring_prefix+set}" = set; then :
28732   withval=$with_libunistring_prefix;
28733     if test "X$withval" = "Xno"; then
28734       use_additional=no
28735     else
28736       if test "X$withval" = "X"; then
28737
28738   acl_save_prefix="$prefix"
28739   prefix="$acl_final_prefix"
28740   acl_save_exec_prefix="$exec_prefix"
28741   exec_prefix="$acl_final_exec_prefix"
28742
28743           eval additional_includedir=\"$includedir\"
28744           eval additional_libdir=\"$libdir\"
28745
28746   exec_prefix="$acl_save_exec_prefix"
28747   prefix="$acl_save_prefix"
28748
28749       else
28750         additional_includedir="$withval/include"
28751         additional_libdir="$withval/$acl_libdirstem"
28752         if test "$acl_libdirstem2" != "$acl_libdirstem" \
28753            && ! test -d "$withval/$acl_libdirstem"; then
28754           additional_libdir="$withval/$acl_libdirstem2"
28755         fi
28756       fi
28757     fi
28758
28759 fi
28760
28761       LIBUNISTRING=
28762   LTLIBUNISTRING=
28763   INCUNISTRING=
28764   LIBUNISTRING_PREFIX=
28765       HAVE_LIBUNISTRING=
28766   rpathdirs=
28767   ltrpathdirs=
28768   names_already_handled=
28769   names_next_round='unistring '
28770   while test -n "$names_next_round"; do
28771     names_this_round="$names_next_round"
28772     names_next_round=
28773     for name in $names_this_round; do
28774       already_handled=
28775       for n in $names_already_handled; do
28776         if test "$n" = "$name"; then
28777           already_handled=yes
28778           break
28779         fi
28780       done
28781       if test -z "$already_handled"; then
28782         names_already_handled="$names_already_handled $name"
28783                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
28784         eval value=\"\$HAVE_LIB$uppername\"
28785         if test -n "$value"; then
28786           if test "$value" = yes; then
28787             eval value=\"\$LIB$uppername\"
28788             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
28789             eval value=\"\$LTLIB$uppername\"
28790             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
28791           else
28792                                     :
28793           fi
28794         else
28795                               found_dir=
28796           found_la=
28797           found_so=
28798           found_a=
28799           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
28800           if test -n "$acl_shlibext"; then
28801             shrext=".$acl_shlibext"             # typically: shrext=.so
28802           else
28803             shrext=
28804           fi
28805           if test $use_additional = yes; then
28806             dir="$additional_libdir"
28807                                     if test -n "$acl_shlibext"; then
28808               if test -f "$dir/$libname$shrext"; then
28809                 found_dir="$dir"
28810                 found_so="$dir/$libname$shrext"
28811               else
28812                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28813                   ver=`(cd "$dir" && \
28814                         for f in "$libname$shrext".*; do echo "$f"; done \
28815                         | sed -e "s,^$libname$shrext\\\\.,," \
28816                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28817                         | sed 1q ) 2>/dev/null`
28818                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28819                     found_dir="$dir"
28820                     found_so="$dir/$libname$shrext.$ver"
28821                   fi
28822                 else
28823                   eval library_names=\"$acl_library_names_spec\"
28824                   for f in $library_names; do
28825                     if test -f "$dir/$f"; then
28826                       found_dir="$dir"
28827                       found_so="$dir/$f"
28828                       break
28829                     fi
28830                   done
28831                 fi
28832               fi
28833             fi
28834                         if test "X$found_dir" = "X"; then
28835               if test -f "$dir/$libname.$acl_libext"; then
28836                 found_dir="$dir"
28837                 found_a="$dir/$libname.$acl_libext"
28838               fi
28839             fi
28840             if test "X$found_dir" != "X"; then
28841               if test -f "$dir/$libname.la"; then
28842                 found_la="$dir/$libname.la"
28843               fi
28844             fi
28845           fi
28846           if test "X$found_dir" = "X"; then
28847             for x in $LDFLAGS $LTLIBUNISTRING; do
28848
28849   acl_save_prefix="$prefix"
28850   prefix="$acl_final_prefix"
28851   acl_save_exec_prefix="$exec_prefix"
28852   exec_prefix="$acl_final_exec_prefix"
28853   eval x=\"$x\"
28854   exec_prefix="$acl_save_exec_prefix"
28855   prefix="$acl_save_prefix"
28856
28857               case "$x" in
28858                 -L*)
28859                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28860                                     if test -n "$acl_shlibext"; then
28861                     if test -f "$dir/$libname$shrext"; then
28862                       found_dir="$dir"
28863                       found_so="$dir/$libname$shrext"
28864                     else
28865                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28866                         ver=`(cd "$dir" && \
28867                               for f in "$libname$shrext".*; do echo "$f"; done \
28868                               | sed -e "s,^$libname$shrext\\\\.,," \
28869                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28870                               | sed 1q ) 2>/dev/null`
28871                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28872                           found_dir="$dir"
28873                           found_so="$dir/$libname$shrext.$ver"
28874                         fi
28875                       else
28876                         eval library_names=\"$acl_library_names_spec\"
28877                         for f in $library_names; do
28878                           if test -f "$dir/$f"; then
28879                             found_dir="$dir"
28880                             found_so="$dir/$f"
28881                             break
28882                           fi
28883                         done
28884                       fi
28885                     fi
28886                   fi
28887                                     if test "X$found_dir" = "X"; then
28888                     if test -f "$dir/$libname.$acl_libext"; then
28889                       found_dir="$dir"
28890                       found_a="$dir/$libname.$acl_libext"
28891                     fi
28892                   fi
28893                   if test "X$found_dir" != "X"; then
28894                     if test -f "$dir/$libname.la"; then
28895                       found_la="$dir/$libname.la"
28896                     fi
28897                   fi
28898                   ;;
28899               esac
28900               if test "X$found_dir" != "X"; then
28901                 break
28902               fi
28903             done
28904           fi
28905           if test "X$found_dir" != "X"; then
28906                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
28907             if test "X$found_so" != "X"; then
28908                                                         if test "$enable_rpath" = no \
28909                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
28910                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
28911                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28912               else
28913                                                                                 haveit=
28914                 for x in $ltrpathdirs; do
28915                   if test "X$x" = "X$found_dir"; then
28916                     haveit=yes
28917                     break
28918                   fi
28919                 done
28920                 if test -z "$haveit"; then
28921                   ltrpathdirs="$ltrpathdirs $found_dir"
28922                 fi
28923                                 if test "$acl_hardcode_direct" = yes; then
28924                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28925                 else
28926                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28927                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28928                                                             haveit=
28929                     for x in $rpathdirs; do
28930                       if test "X$x" = "X$found_dir"; then
28931                         haveit=yes
28932                         break
28933                       fi
28934                     done
28935                     if test -z "$haveit"; then
28936                       rpathdirs="$rpathdirs $found_dir"
28937                     fi
28938                   else
28939                                                                                 haveit=
28940                     for x in $LDFLAGS $LIBUNISTRING; do
28941
28942   acl_save_prefix="$prefix"
28943   prefix="$acl_final_prefix"
28944   acl_save_exec_prefix="$exec_prefix"
28945   exec_prefix="$acl_final_exec_prefix"
28946   eval x=\"$x\"
28947   exec_prefix="$acl_save_exec_prefix"
28948   prefix="$acl_save_prefix"
28949
28950                       if test "X$x" = "X-L$found_dir"; then
28951                         haveit=yes
28952                         break
28953                       fi
28954                     done
28955                     if test -z "$haveit"; then
28956                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
28957                     fi
28958                     if test "$acl_hardcode_minus_L" != no; then
28959                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
28960                     else
28961                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
28962                     fi
28963                   fi
28964                 fi
28965               fi
28966             else
28967               if test "X$found_a" != "X"; then
28968                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
28969               else
28970                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
28971               fi
28972             fi
28973                         additional_includedir=
28974             case "$found_dir" in
28975               */$acl_libdirstem | */$acl_libdirstem/)
28976                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28977                 if test "$name" = 'unistring'; then
28978                   LIBUNISTRING_PREFIX="$basedir"
28979                 fi
28980                 additional_includedir="$basedir/include"
28981                 ;;
28982               */$acl_libdirstem2 | */$acl_libdirstem2/)
28983                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
28984                 if test "$name" = 'unistring'; then
28985                   LIBUNISTRING_PREFIX="$basedir"
28986                 fi
28987                 additional_includedir="$basedir/include"
28988                 ;;
28989             esac
28990             if test "X$additional_includedir" != "X"; then
28991                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28992                 haveit=
28993                 if test "X$additional_includedir" = "X/usr/local/include"; then
28994                   if test -n "$GCC"; then
28995                     case $host_os in
28996                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28997                     esac
28998                   fi
28999                 fi
29000                 if test -z "$haveit"; then
29001                   for x in $CPPFLAGS $INCUNISTRING; do
29002
29003   acl_save_prefix="$prefix"
29004   prefix="$acl_final_prefix"
29005   acl_save_exec_prefix="$exec_prefix"
29006   exec_prefix="$acl_final_exec_prefix"
29007   eval x=\"$x\"
29008   exec_prefix="$acl_save_exec_prefix"
29009   prefix="$acl_save_prefix"
29010
29011                     if test "X$x" = "X-I$additional_includedir"; then
29012                       haveit=yes
29013                       break
29014                     fi
29015                   done
29016                   if test -z "$haveit"; then
29017                     if test -d "$additional_includedir"; then
29018                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
29019                     fi
29020                   fi
29021                 fi
29022               fi
29023             fi
29024                         if test -n "$found_la"; then
29025                                                         save_libdir="$libdir"
29026               case "$found_la" in
29027                 */* | *\\*) . "$found_la" ;;
29028                 *) . "./$found_la" ;;
29029               esac
29030               libdir="$save_libdir"
29031                             for dep in $dependency_libs; do
29032                 case "$dep" in
29033                   -L*)
29034                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29035                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
29036                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
29037                       haveit=
29038                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
29039                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
29040                         if test -n "$GCC"; then
29041                           case $host_os in
29042                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29043                           esac
29044                         fi
29045                       fi
29046                       if test -z "$haveit"; then
29047                         haveit=
29048                         for x in $LDFLAGS $LIBUNISTRING; do
29049
29050   acl_save_prefix="$prefix"
29051   prefix="$acl_final_prefix"
29052   acl_save_exec_prefix="$exec_prefix"
29053   exec_prefix="$acl_final_exec_prefix"
29054   eval x=\"$x\"
29055   exec_prefix="$acl_save_exec_prefix"
29056   prefix="$acl_save_prefix"
29057
29058                           if test "X$x" = "X-L$additional_libdir"; then
29059                             haveit=yes
29060                             break
29061                           fi
29062                         done
29063                         if test -z "$haveit"; then
29064                           if test -d "$additional_libdir"; then
29065                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
29066                           fi
29067                         fi
29068                         haveit=
29069                         for x in $LDFLAGS $LTLIBUNISTRING; do
29070
29071   acl_save_prefix="$prefix"
29072   prefix="$acl_final_prefix"
29073   acl_save_exec_prefix="$exec_prefix"
29074   exec_prefix="$acl_final_exec_prefix"
29075   eval x=\"$x\"
29076   exec_prefix="$acl_save_exec_prefix"
29077   prefix="$acl_save_prefix"
29078
29079                           if test "X$x" = "X-L$additional_libdir"; then
29080                             haveit=yes
29081                             break
29082                           fi
29083                         done
29084                         if test -z "$haveit"; then
29085                           if test -d "$additional_libdir"; then
29086                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
29087                           fi
29088                         fi
29089                       fi
29090                     fi
29091                     ;;
29092                   -R*)
29093                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
29094                     if test "$enable_rpath" != no; then
29095                                                                   haveit=
29096                       for x in $rpathdirs; do
29097                         if test "X$x" = "X$dir"; then
29098                           haveit=yes
29099                           break
29100                         fi
29101                       done
29102                       if test -z "$haveit"; then
29103                         rpathdirs="$rpathdirs $dir"
29104                       fi
29105                                                                   haveit=
29106                       for x in $ltrpathdirs; do
29107                         if test "X$x" = "X$dir"; then
29108                           haveit=yes
29109                           break
29110                         fi
29111                       done
29112                       if test -z "$haveit"; then
29113                         ltrpathdirs="$ltrpathdirs $dir"
29114                       fi
29115                     fi
29116                     ;;
29117                   -l*)
29118                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29119                     ;;
29120                   *.la)
29121                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29122                     ;;
29123                   *)
29124                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
29125                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
29126                     ;;
29127                 esac
29128               done
29129             fi
29130           else
29131                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
29132             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
29133           fi
29134         fi
29135       fi
29136     done
29137   done
29138   if test "X$rpathdirs" != "X"; then
29139     if test -n "$acl_hardcode_libdir_separator"; then
29140                         alldirs=
29141       for found_dir in $rpathdirs; do
29142         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
29143       done
29144             acl_save_libdir="$libdir"
29145       libdir="$alldirs"
29146       eval flag=\"$acl_hardcode_libdir_flag_spec\"
29147       libdir="$acl_save_libdir"
29148       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
29149     else
29150             for found_dir in $rpathdirs; do
29151         acl_save_libdir="$libdir"
29152         libdir="$found_dir"
29153         eval flag=\"$acl_hardcode_libdir_flag_spec\"
29154         libdir="$acl_save_libdir"
29155         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
29156       done
29157     fi
29158   fi
29159   if test "X$ltrpathdirs" != "X"; then
29160             for found_dir in $ltrpathdirs; do
29161       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
29162     done
29163   fi
29164
29165
29166
29167
29168
29169
29170
29171         ac_save_CPPFLAGS="$CPPFLAGS"
29172
29173   for element in $INCUNISTRING; do
29174     haveit=
29175     for x in $CPPFLAGS; do
29176
29177   acl_save_prefix="$prefix"
29178   prefix="$acl_final_prefix"
29179   acl_save_exec_prefix="$exec_prefix"
29180   exec_prefix="$acl_final_exec_prefix"
29181   eval x=\"$x\"
29182   exec_prefix="$acl_save_exec_prefix"
29183   prefix="$acl_save_prefix"
29184
29185       if test "X$x" = "X$element"; then
29186         haveit=yes
29187         break
29188       fi
29189     done
29190     if test -z "$haveit"; then
29191       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29192     fi
29193   done
29194
29195
29196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
29197 $as_echo_n "checking for libunistring... " >&6; }
29198 if ${ac_cv_libunistring+:} false; then :
29199   $as_echo_n "(cached) " >&6
29200 else
29201
29202     ac_save_LIBS="$LIBS"
29203                                 case " $LIBUNISTRING" in
29204       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
29205       *)       LIBS="$LIBUNISTRING $LIBS" ;;
29206     esac
29207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29208 /* end confdefs.h.  */
29209 #include <uniconv.h>
29210 int
29211 main ()
29212 {
29213 u8_strconv_from_locale((char*)0);
29214   ;
29215   return 0;
29216 }
29217 _ACEOF
29218 if ac_fn_c_try_link "$LINENO"; then :
29219   ac_cv_libunistring=yes
29220 else
29221   ac_cv_libunistring='no, consider installing GNU libunistring'
29222 fi
29223 rm -f core conftest.err conftest.$ac_objext \
29224     conftest$ac_exeext conftest.$ac_ext
29225     LIBS="$ac_save_LIBS"
29226
29227 fi
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
29229 $as_echo "$ac_cv_libunistring" >&6; }
29230   if test "$ac_cv_libunistring" = yes; then
29231     HAVE_LIBUNISTRING=yes
29232
29233 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
29234
29235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
29236 $as_echo_n "checking how to link with libunistring... " >&6; }
29237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
29238 $as_echo "$LIBUNISTRING" >&6; }
29239   else
29240     HAVE_LIBUNISTRING=no
29241             CPPFLAGS="$ac_save_CPPFLAGS"
29242     LIBUNISTRING=
29243     LTLIBUNISTRING=
29244     LIBUNISTRING_PREFIX=
29245   fi
29246
29247
29248
29249
29250
29251
29252
29253       if test -n "$LIBUNISTRING"; then
29254         LIBUNISTRING="$LIBUNISTRING $LIBICONV"
29255         LTLIBUNISTRING="$LTLIBUNISTRING $LTLIBICONV"
29256       fi
29257       LIBS="$glus_save_LIBS"
29258     fi
29259   else
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273     use_additional=yes
29274
29275   acl_save_prefix="$prefix"
29276   prefix="$acl_final_prefix"
29277   acl_save_exec_prefix="$exec_prefix"
29278   exec_prefix="$acl_final_exec_prefix"
29279
29280     eval additional_includedir=\"$includedir\"
29281     eval additional_libdir=\"$libdir\"
29282
29283   exec_prefix="$acl_save_exec_prefix"
29284   prefix="$acl_save_prefix"
29285
29286
29287 # Check whether --with-libunistring-prefix was given.
29288 if test "${with_libunistring_prefix+set}" = set; then :
29289   withval=$with_libunistring_prefix;
29290     if test "X$withval" = "Xno"; then
29291       use_additional=no
29292     else
29293       if test "X$withval" = "X"; then
29294
29295   acl_save_prefix="$prefix"
29296   prefix="$acl_final_prefix"
29297   acl_save_exec_prefix="$exec_prefix"
29298   exec_prefix="$acl_final_exec_prefix"
29299
29300           eval additional_includedir=\"$includedir\"
29301           eval additional_libdir=\"$libdir\"
29302
29303   exec_prefix="$acl_save_exec_prefix"
29304   prefix="$acl_save_prefix"
29305
29306       else
29307         additional_includedir="$withval/include"
29308         additional_libdir="$withval/$acl_libdirstem"
29309         if test "$acl_libdirstem2" != "$acl_libdirstem" \
29310            && ! test -d "$withval/$acl_libdirstem"; then
29311           additional_libdir="$withval/$acl_libdirstem2"
29312         fi
29313       fi
29314     fi
29315
29316 fi
29317
29318       LIBUNISTRING=
29319   LTLIBUNISTRING=
29320   INCUNISTRING=
29321   LIBUNISTRING_PREFIX=
29322       HAVE_LIBUNISTRING=
29323   rpathdirs=
29324   ltrpathdirs=
29325   names_already_handled=
29326   names_next_round='unistring '
29327   while test -n "$names_next_round"; do
29328     names_this_round="$names_next_round"
29329     names_next_round=
29330     for name in $names_this_round; do
29331       already_handled=
29332       for n in $names_already_handled; do
29333         if test "$n" = "$name"; then
29334           already_handled=yes
29335           break
29336         fi
29337       done
29338       if test -z "$already_handled"; then
29339         names_already_handled="$names_already_handled $name"
29340                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
29341         eval value=\"\$HAVE_LIB$uppername\"
29342         if test -n "$value"; then
29343           if test "$value" = yes; then
29344             eval value=\"\$LIB$uppername\"
29345             test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
29346             eval value=\"\$LTLIB$uppername\"
29347             test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
29348           else
29349                                     :
29350           fi
29351         else
29352                               found_dir=
29353           found_la=
29354           found_so=
29355           found_a=
29356           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
29357           if test -n "$acl_shlibext"; then
29358             shrext=".$acl_shlibext"             # typically: shrext=.so
29359           else
29360             shrext=
29361           fi
29362           if test $use_additional = yes; then
29363             dir="$additional_libdir"
29364                                     if test -n "$acl_shlibext"; then
29365               if test -f "$dir/$libname$shrext"; then
29366                 found_dir="$dir"
29367                 found_so="$dir/$libname$shrext"
29368               else
29369                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
29370                   ver=`(cd "$dir" && \
29371                         for f in "$libname$shrext".*; do echo "$f"; done \
29372                         | sed -e "s,^$libname$shrext\\\\.,," \
29373                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
29374                         | sed 1q ) 2>/dev/null`
29375                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
29376                     found_dir="$dir"
29377                     found_so="$dir/$libname$shrext.$ver"
29378                   fi
29379                 else
29380                   eval library_names=\"$acl_library_names_spec\"
29381                   for f in $library_names; do
29382                     if test -f "$dir/$f"; then
29383                       found_dir="$dir"
29384                       found_so="$dir/$f"
29385                       break
29386                     fi
29387                   done
29388                 fi
29389               fi
29390             fi
29391                         if test "X$found_dir" = "X"; then
29392               if test -f "$dir/$libname.$acl_libext"; then
29393                 found_dir="$dir"
29394                 found_a="$dir/$libname.$acl_libext"
29395               fi
29396             fi
29397             if test "X$found_dir" != "X"; then
29398               if test -f "$dir/$libname.la"; then
29399                 found_la="$dir/$libname.la"
29400               fi
29401             fi
29402           fi
29403           if test "X$found_dir" = "X"; then
29404             for x in $LDFLAGS $LTLIBUNISTRING; do
29405
29406   acl_save_prefix="$prefix"
29407   prefix="$acl_final_prefix"
29408   acl_save_exec_prefix="$exec_prefix"
29409   exec_prefix="$acl_final_exec_prefix"
29410   eval x=\"$x\"
29411   exec_prefix="$acl_save_exec_prefix"
29412   prefix="$acl_save_prefix"
29413
29414               case "$x" in
29415                 -L*)
29416                   dir=`echo "X$x" | sed -e 's/^X-L//'`
29417                                     if test -n "$acl_shlibext"; then
29418                     if test -f "$dir/$libname$shrext"; then
29419                       found_dir="$dir"
29420                       found_so="$dir/$libname$shrext"
29421                     else
29422                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
29423                         ver=`(cd "$dir" && \
29424                               for f in "$libname$shrext".*; do echo "$f"; done \
29425                               | sed -e "s,^$libname$shrext\\\\.,," \
29426                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
29427                               | sed 1q ) 2>/dev/null`
29428                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
29429                           found_dir="$dir"
29430                           found_so="$dir/$libname$shrext.$ver"
29431                         fi
29432                       else
29433                         eval library_names=\"$acl_library_names_spec\"
29434                         for f in $library_names; do
29435                           if test -f "$dir/$f"; then
29436                             found_dir="$dir"
29437                             found_so="$dir/$f"
29438                             break
29439                           fi
29440                         done
29441                       fi
29442                     fi
29443                   fi
29444                                     if test "X$found_dir" = "X"; then
29445                     if test -f "$dir/$libname.$acl_libext"; then
29446                       found_dir="$dir"
29447                       found_a="$dir/$libname.$acl_libext"
29448                     fi
29449                   fi
29450                   if test "X$found_dir" != "X"; then
29451                     if test -f "$dir/$libname.la"; then
29452                       found_la="$dir/$libname.la"
29453                     fi
29454                   fi
29455                   ;;
29456               esac
29457               if test "X$found_dir" != "X"; then
29458                 break
29459               fi
29460             done
29461           fi
29462           if test "X$found_dir" != "X"; then
29463                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
29464             if test "X$found_so" != "X"; then
29465                                                         if test "$enable_rpath" = no \
29466                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
29467                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
29468                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
29469               else
29470                                                                                 haveit=
29471                 for x in $ltrpathdirs; do
29472                   if test "X$x" = "X$found_dir"; then
29473                     haveit=yes
29474                     break
29475                   fi
29476                 done
29477                 if test -z "$haveit"; then
29478                   ltrpathdirs="$ltrpathdirs $found_dir"
29479                 fi
29480                                 if test "$acl_hardcode_direct" = yes; then
29481                                                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
29482                 else
29483                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
29484                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
29485                                                             haveit=
29486                     for x in $rpathdirs; do
29487                       if test "X$x" = "X$found_dir"; then
29488                         haveit=yes
29489                         break
29490                       fi
29491                     done
29492                     if test -z "$haveit"; then
29493                       rpathdirs="$rpathdirs $found_dir"
29494                     fi
29495                   else
29496                                                                                 haveit=
29497                     for x in $LDFLAGS $LIBUNISTRING; do
29498
29499   acl_save_prefix="$prefix"
29500   prefix="$acl_final_prefix"
29501   acl_save_exec_prefix="$exec_prefix"
29502   exec_prefix="$acl_final_exec_prefix"
29503   eval x=\"$x\"
29504   exec_prefix="$acl_save_exec_prefix"
29505   prefix="$acl_save_prefix"
29506
29507                       if test "X$x" = "X-L$found_dir"; then
29508                         haveit=yes
29509                         break
29510                       fi
29511                     done
29512                     if test -z "$haveit"; then
29513                       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
29514                     fi
29515                     if test "$acl_hardcode_minus_L" != no; then
29516                                                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
29517                     else
29518                                                                                                                                                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
29519                     fi
29520                   fi
29521                 fi
29522               fi
29523             else
29524               if test "X$found_a" != "X"; then
29525                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
29526               else
29527                                                 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
29528               fi
29529             fi
29530                         additional_includedir=
29531             case "$found_dir" in
29532               */$acl_libdirstem | */$acl_libdirstem/)
29533                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
29534                 if test "$name" = 'unistring'; then
29535                   LIBUNISTRING_PREFIX="$basedir"
29536                 fi
29537                 additional_includedir="$basedir/include"
29538                 ;;
29539               */$acl_libdirstem2 | */$acl_libdirstem2/)
29540                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
29541                 if test "$name" = 'unistring'; then
29542                   LIBUNISTRING_PREFIX="$basedir"
29543                 fi
29544                 additional_includedir="$basedir/include"
29545                 ;;
29546             esac
29547             if test "X$additional_includedir" != "X"; then
29548                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
29549                 haveit=
29550                 if test "X$additional_includedir" = "X/usr/local/include"; then
29551                   if test -n "$GCC"; then
29552                     case $host_os in
29553                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29554                     esac
29555                   fi
29556                 fi
29557                 if test -z "$haveit"; then
29558                   for x in $CPPFLAGS $INCUNISTRING; do
29559
29560   acl_save_prefix="$prefix"
29561   prefix="$acl_final_prefix"
29562   acl_save_exec_prefix="$exec_prefix"
29563   exec_prefix="$acl_final_exec_prefix"
29564   eval x=\"$x\"
29565   exec_prefix="$acl_save_exec_prefix"
29566   prefix="$acl_save_prefix"
29567
29568                     if test "X$x" = "X-I$additional_includedir"; then
29569                       haveit=yes
29570                       break
29571                     fi
29572                   done
29573                   if test -z "$haveit"; then
29574                     if test -d "$additional_includedir"; then
29575                                             INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
29576                     fi
29577                   fi
29578                 fi
29579               fi
29580             fi
29581                         if test -n "$found_la"; then
29582                                                         save_libdir="$libdir"
29583               case "$found_la" in
29584                 */* | *\\*) . "$found_la" ;;
29585                 *) . "./$found_la" ;;
29586               esac
29587               libdir="$save_libdir"
29588                             for dep in $dependency_libs; do
29589                 case "$dep" in
29590                   -L*)
29591                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29592                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
29593                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
29594                       haveit=
29595                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
29596                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
29597                         if test -n "$GCC"; then
29598                           case $host_os in
29599                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29600                           esac
29601                         fi
29602                       fi
29603                       if test -z "$haveit"; then
29604                         haveit=
29605                         for x in $LDFLAGS $LIBUNISTRING; do
29606
29607   acl_save_prefix="$prefix"
29608   prefix="$acl_final_prefix"
29609   acl_save_exec_prefix="$exec_prefix"
29610   exec_prefix="$acl_final_exec_prefix"
29611   eval x=\"$x\"
29612   exec_prefix="$acl_save_exec_prefix"
29613   prefix="$acl_save_prefix"
29614
29615                           if test "X$x" = "X-L$additional_libdir"; then
29616                             haveit=yes
29617                             break
29618                           fi
29619                         done
29620                         if test -z "$haveit"; then
29621                           if test -d "$additional_libdir"; then
29622                                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
29623                           fi
29624                         fi
29625                         haveit=
29626                         for x in $LDFLAGS $LTLIBUNISTRING; do
29627
29628   acl_save_prefix="$prefix"
29629   prefix="$acl_final_prefix"
29630   acl_save_exec_prefix="$exec_prefix"
29631   exec_prefix="$acl_final_exec_prefix"
29632   eval x=\"$x\"
29633   exec_prefix="$acl_save_exec_prefix"
29634   prefix="$acl_save_prefix"
29635
29636                           if test "X$x" = "X-L$additional_libdir"; then
29637                             haveit=yes
29638                             break
29639                           fi
29640                         done
29641                         if test -z "$haveit"; then
29642                           if test -d "$additional_libdir"; then
29643                                                         LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
29644                           fi
29645                         fi
29646                       fi
29647                     fi
29648                     ;;
29649                   -R*)
29650                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
29651                     if test "$enable_rpath" != no; then
29652                                                                   haveit=
29653                       for x in $rpathdirs; do
29654                         if test "X$x" = "X$dir"; then
29655                           haveit=yes
29656                           break
29657                         fi
29658                       done
29659                       if test -z "$haveit"; then
29660                         rpathdirs="$rpathdirs $dir"
29661                       fi
29662                                                                   haveit=
29663                       for x in $ltrpathdirs; do
29664                         if test "X$x" = "X$dir"; then
29665                           haveit=yes
29666                           break
29667                         fi
29668                       done
29669                       if test -z "$haveit"; then
29670                         ltrpathdirs="$ltrpathdirs $dir"
29671                       fi
29672                     fi
29673                     ;;
29674                   -l*)
29675                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29676                     ;;
29677                   *.la)
29678                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29679                     ;;
29680                   *)
29681                                         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
29682                     LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
29683                     ;;
29684                 esac
29685               done
29686             fi
29687           else
29688                                                             LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
29689             LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
29690           fi
29691         fi
29692       fi
29693     done
29694   done
29695   if test "X$rpathdirs" != "X"; then
29696     if test -n "$acl_hardcode_libdir_separator"; then
29697                         alldirs=
29698       for found_dir in $rpathdirs; do
29699         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
29700       done
29701             acl_save_libdir="$libdir"
29702       libdir="$alldirs"
29703       eval flag=\"$acl_hardcode_libdir_flag_spec\"
29704       libdir="$acl_save_libdir"
29705       LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
29706     else
29707             for found_dir in $rpathdirs; do
29708         acl_save_libdir="$libdir"
29709         libdir="$found_dir"
29710         eval flag=\"$acl_hardcode_libdir_flag_spec\"
29711         libdir="$acl_save_libdir"
29712         LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
29713       done
29714     fi
29715   fi
29716   if test "X$ltrpathdirs" != "X"; then
29717             for found_dir in $ltrpathdirs; do
29718       LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
29719     done
29720   fi
29721
29722
29723
29724
29725
29726
29727
29728         ac_save_CPPFLAGS="$CPPFLAGS"
29729
29730   for element in $INCUNISTRING; do
29731     haveit=
29732     for x in $CPPFLAGS; do
29733
29734   acl_save_prefix="$prefix"
29735   prefix="$acl_final_prefix"
29736   acl_save_exec_prefix="$exec_prefix"
29737   exec_prefix="$acl_final_exec_prefix"
29738   eval x=\"$x\"
29739   exec_prefix="$acl_save_exec_prefix"
29740   prefix="$acl_save_prefix"
29741
29742       if test "X$x" = "X$element"; then
29743         haveit=yes
29744         break
29745       fi
29746     done
29747     if test -z "$haveit"; then
29748       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29749     fi
29750   done
29751
29752
29753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
29754 $as_echo_n "checking for libunistring... " >&6; }
29755 if ${ac_cv_libunistring+:} false; then :
29756   $as_echo_n "(cached) " >&6
29757 else
29758
29759     ac_save_LIBS="$LIBS"
29760                                 case " $LIBUNISTRING" in
29761       *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
29762       *)       LIBS="$LIBUNISTRING $LIBS" ;;
29763     esac
29764     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29765 /* end confdefs.h.  */
29766 #include <uniconv.h>
29767 int
29768 main ()
29769 {
29770 u8_strconv_from_locale((char*)0);
29771   ;
29772   return 0;
29773 }
29774 _ACEOF
29775 if ac_fn_c_try_link "$LINENO"; then :
29776   ac_cv_libunistring=yes
29777 else
29778   ac_cv_libunistring='no, consider installing GNU libunistring'
29779 fi
29780 rm -f core conftest.err conftest.$ac_objext \
29781     conftest$ac_exeext conftest.$ac_ext
29782     LIBS="$ac_save_LIBS"
29783
29784 fi
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
29786 $as_echo "$ac_cv_libunistring" >&6; }
29787   if test "$ac_cv_libunistring" = yes; then
29788     HAVE_LIBUNISTRING=yes
29789
29790 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
29791
29792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
29793 $as_echo_n "checking how to link with libunistring... " >&6; }
29794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
29795 $as_echo "$LIBUNISTRING" >&6; }
29796   else
29797     HAVE_LIBUNISTRING=no
29798             CPPFLAGS="$ac_save_CPPFLAGS"
29799     LIBUNISTRING=
29800     LTLIBUNISTRING=
29801     LIBUNISTRING_PREFIX=
29802   fi
29803
29804
29805
29806
29807
29808
29809
29810   fi
29811   if test $HAVE_LIBUNISTRING = yes; then
29812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring version" >&5
29813 $as_echo_n "checking for libunistring version... " >&6; }
29814 if ${gl_cv_libunistring_version+:} false; then :
29815   $as_echo_n "(cached) " >&6
29816 else
29817   if ac_fn_c_compute_int "$LINENO" "_LIBUNISTRING_VERSION" "gl_libunistring_hexversion"        "#include <unistring/version.h>"; then :
29818
29819 fi
29820
29821                      if test $gl_libunistring_hexversion = 9; then
29822                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29823 /* end confdefs.h.  */
29824 #include <unistring/cdefs.h>
29825 int
29826 main ()
29827 {
29828
29829   ;
29830   return 0;
29831 }
29832 _ACEOF
29833 if ac_fn_c_try_compile "$LINENO"; then :
29834   gl_cv_libunistring_version092=true
29835 else
29836   gl_cv_libunistring_version092=false
29837 fi
29838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29839          if $gl_cv_libunistring_version092; then
29840
29841
29842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29843 /* end confdefs.h.  */
29844 #include <unistr.h>
29845 _ACEOF
29846                 case "$host_os" in
29847     aix*) gl_absname_cpp="$ac_cpp -C" ;;
29848     *)    gl_absname_cpp="$ac_cpp" ;;
29849   esac
29850
29851   case "$host_os" in
29852     mingw*)
29853                                           gl_dirsep_regex='[/\\]'
29854       ;;
29855     *)
29856       gl_dirsep_regex='\/'
29857       ;;
29858   esac
29859       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29860   gl_header_literal_regex=`echo 'unistr.h' \
29861                            | sed -e "$gl_make_literal_regex_sed"`
29862   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29863       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29864       s|^/[^/]|//&|
29865       p
29866       q
29867     }'
29868
29869         gl_cv_absolute_unistr_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29870   sed -n "$gl_absolute_header_sed"`
29871
29872            if test -n "$gl_cv_absolute_unistr_h" \
29873               && grep 'Copy no more than N units of SRC to DEST.  Return a pointer' $gl_cv_absolute_unistr_h > /dev/null; then
29874                           gl_libunistring_hexversion=2307
29875            else
29876                           gl_libunistring_hexversion=2306
29877            fi
29878          else
29879                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29880 /* end confdefs.h.  */
29881 #include <unicase.h>
29882                   casing_suffix_context_t ct;
29883 int
29884 main ()
29885 {
29886
29887   ;
29888   return 0;
29889 }
29890 _ACEOF
29891 if ac_fn_c_try_compile "$LINENO"; then :
29892   gl_cv_libunistring_version091=true
29893 else
29894   gl_cv_libunistring_version091=false
29895 fi
29896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29897            if $gl_cv_libunistring_version091; then
29898                           gl_libunistring_hexversion=2305
29899            else
29900                           gl_libunistring_hexversion=2304
29901            fi
29902          fi
29903        fi
29904               gl_libunistring_major=`expr $gl_libunistring_hexversion / 65536`
29905        gl_libunistring_minor=`expr $gl_libunistring_hexversion / 256 % 256`
29906        gl_libunistring_subminor=`expr $gl_libunistring_hexversion % 256`
29907        gl_cv_libunistring_version="$gl_libunistring_major.$gl_libunistring_minor.$gl_libunistring_subminor"
29908
29909 fi
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libunistring_version" >&5
29911 $as_echo "$gl_cv_libunistring_version" >&6; }
29912     LIBUNISTRING_VERSION="$gl_cv_libunistring_version"
29913   fi
29914
29915         if test $HAVE_LIBUNISTRING = no; then
29916           gl_libunistring_use_included=yes
29917           LIBUNISTRING=
29918           LTLIBUNISTRING=
29919         fi
29920       fi
29921
29922
29923
29924
29925
29926
29927 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
29928 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
29929   ac_have_decl=1
29930 else
29931   ac_have_decl=0
29932 fi
29933
29934 cat >>confdefs.h <<_ACEOF
29935 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
29936 _ACEOF
29937
29938
29939   GNULIB_LOCALECONV=0;
29940   GNULIB_SETLOCALE=0;
29941   GNULIB_DUPLOCALE=0;
29942     HAVE_DUPLOCALE=1;
29943   REPLACE_LOCALECONV=0;
29944   REPLACE_SETLOCALE=0;
29945   REPLACE_DUPLOCALE=0;
29946   REPLACE_STRUCT_LCONV=0;
29947
29948
29949     REPLACE_NULL=0;
29950   HAVE_MAX_ALIGN_T=1;
29951   HAVE_WCHAR_T=1;
29952
29953
29954
29955
29956   STDDEF_H=
29957   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
29958
29959 "
29960 if test "x$ac_cv_type_max_align_t" = xyes; then :
29961
29962 else
29963   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
29964 fi
29965
29966   if test $gt_cv_c_wchar_t = no; then
29967     HAVE_WCHAR_T=0
29968     STDDEF_H=stddef.h
29969   fi
29970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
29971 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
29972 if ${gl_cv_decl_null_works+:} false; then :
29973   $as_echo_n "(cached) " >&6
29974 else
29975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29976 /* end confdefs.h.  */
29977 #include <stddef.h>
29978       int test[2 * (sizeof NULL == sizeof (void *)) -1];
29979
29980 int
29981 main ()
29982 {
29983
29984   ;
29985   return 0;
29986 }
29987 _ACEOF
29988 if ac_fn_c_try_compile "$LINENO"; then :
29989   gl_cv_decl_null_works=yes
29990 else
29991   gl_cv_decl_null_works=no
29992 fi
29993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29994 fi
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
29996 $as_echo "$gl_cv_decl_null_works" >&6; }
29997   if test $gl_cv_decl_null_works = no; then
29998     REPLACE_NULL=1
29999     STDDEF_H=stddef.h
30000   fi
30001
30002    if test -n "$STDDEF_H"; then
30003   GL_GENERATE_STDDEF_H_TRUE=
30004   GL_GENERATE_STDDEF_H_FALSE='#'
30005 else
30006   GL_GENERATE_STDDEF_H_TRUE='#'
30007   GL_GENERATE_STDDEF_H_FALSE=
30008 fi
30009
30010   if test -n "$STDDEF_H"; then
30011
30012
30013
30014
30015
30016
30017
30018
30019      if test $gl_cv_have_include_next = yes; then
30020        gl_cv_next_stddef_h='<'stddef.h'>'
30021      else
30022        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
30023 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
30024 if ${gl_cv_next_stddef_h+:} false; then :
30025   $as_echo_n "(cached) " >&6
30026 else
30027
30028
30029
30030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30031 /* end confdefs.h.  */
30032 #include <stddef.h>
30033 _ACEOF
30034                 case "$host_os" in
30035     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30036     *)    gl_absname_cpp="$ac_cpp" ;;
30037   esac
30038
30039   case "$host_os" in
30040     mingw*)
30041                                           gl_dirsep_regex='[/\\]'
30042       ;;
30043     *)
30044       gl_dirsep_regex='\/'
30045       ;;
30046   esac
30047       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30048   gl_header_literal_regex=`echo 'stddef.h' \
30049                            | sed -e "$gl_make_literal_regex_sed"`
30050   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30051       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30052       s|^/[^/]|//&|
30053       p
30054       q
30055     }'
30056
30057         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30058   sed -n "$gl_absolute_header_sed"`
30059
30060            gl_header=$gl_cv_absolute_stddef_h
30061            gl_cv_next_stddef_h='"'$gl_header'"'
30062
30063
30064 fi
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
30066 $as_echo "$gl_cv_next_stddef_h" >&6; }
30067      fi
30068      NEXT_STDDEF_H=$gl_cv_next_stddef_h
30069
30070      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30071        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30072        gl_next_as_first_directive='<'stddef.h'>'
30073      else
30074        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30075        gl_next_as_first_directive=$gl_cv_next_stddef_h
30076      fi
30077      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
30078
30079
30080
30081
30082   fi
30083
30084
30085
30086
30087
30088
30089
30090
30091   POW_LIBM=
30092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pow can be used without linking with libm" >&5
30093 $as_echo_n "checking whether pow can be used without linking with libm... " >&6; }
30094 if ${gl_cv_func_pow_no_libm+:} false; then :
30095   $as_echo_n "(cached) " >&6
30096 else
30097
30098       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30099 /* end confdefs.h.  */
30100 #ifndef __NO_MATH_INLINES
30101              # define __NO_MATH_INLINES 1 /* for glibc */
30102              #endif
30103              #include <math.h>
30104
30105              double (*funcptr) (double, double) = pow;
30106              int i_ret;
30107              float f_ret;
30108              double d_ret;
30109              long double l_ret;
30110 int
30111 main ()
30112 {
30113 double y = funcptr (1.6180339887, 1.6180339887) + pow (1.6180339887, 1.6180339887);
30114
30115              return y < 0.3 || y > 1.7;
30116
30117   ;
30118   return 0;
30119 }
30120 _ACEOF
30121 if ac_fn_c_try_link "$LINENO"; then :
30122   gl_cv_func_pow_no_libm=yes
30123 else
30124   gl_cv_func_pow_no_libm=no
30125 fi
30126 rm -f core conftest.err conftest.$ac_objext \
30127     conftest$ac_exeext conftest.$ac_ext
30128
30129 fi
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pow_no_libm" >&5
30131 $as_echo "$gl_cv_func_pow_no_libm" >&6; }
30132   if test $gl_cv_func_pow_no_libm = no; then
30133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pow can be used with libm" >&5
30134 $as_echo_n "checking whether pow can be used with libm... " >&6; }
30135 if ${gl_cv_func_pow_in_libm+:} false; then :
30136   $as_echo_n "(cached) " >&6
30137 else
30138
30139         save_LIBS="$LIBS"
30140         LIBS="$LIBS -lm"
30141         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30142 /* end confdefs.h.  */
30143 #ifndef __NO_MATH_INLINES
30144                # define __NO_MATH_INLINES 1 /* for glibc */
30145                #endif
30146                #include <math.h>
30147
30148                double (*funcptr) (double, double) = pow;
30149                int i_ret;
30150                float f_ret;
30151                double d_ret;
30152                long double l_ret;
30153 int
30154 main ()
30155 {
30156 double y = funcptr (1.6180339887, 1.6180339887) + pow (1.6180339887, 1.6180339887);
30157
30158                return y < 0.3 || y > 1.7;
30159
30160   ;
30161   return 0;
30162 }
30163 _ACEOF
30164 if ac_fn_c_try_link "$LINENO"; then :
30165   gl_cv_func_pow_in_libm=yes
30166 else
30167   gl_cv_func_pow_in_libm=no
30168 fi
30169 rm -f core conftest.err conftest.$ac_objext \
30170     conftest$ac_exeext conftest.$ac_ext
30171         LIBS="$save_LIBS"
30172
30173 fi
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pow_in_libm" >&5
30175 $as_echo "$gl_cv_func_pow_in_libm" >&6; }
30176     if test $gl_cv_func_pow_in_libm = yes; then
30177       POW_LIBM=-lm
30178     fi
30179   fi
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
30190 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
30191 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
30192   $as_echo_n "(cached) " >&6
30193 else
30194   rm -f conftest.sym conftest.file
30195      echo >conftest.file
30196      if test "$cross_compiling" = yes; then :
30197   case "$host_os" in
30198           *-gnu*)
30199             # Guess yes on glibc systems.
30200             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
30201           *)
30202             # If we don't know, assume the worst.
30203             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
30204         esac
30205
30206 else
30207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30208 /* end confdefs.h.  */
30209 $ac_includes_default
30210 int
30211 main ()
30212 {
30213 struct stat sbuf;
30214             if (symlink ("conftest.file", "conftest.sym") != 0)
30215               return 1;
30216             /* Linux will dereference the symlink and fail, as required by
30217                POSIX.  That is better in the sense that it means we will not
30218                have to compile and use the lstat wrapper.  */
30219             return lstat ("conftest.sym/", &sbuf) == 0;
30220
30221   ;
30222   return 0;
30223 }
30224 _ACEOF
30225 if ac_fn_c_try_run "$LINENO"; then :
30226   gl_cv_func_lstat_dereferences_slashed_symlink=yes
30227 else
30228   gl_cv_func_lstat_dereferences_slashed_symlink=no
30229 fi
30230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30231   conftest.$ac_objext conftest.beam conftest.$ac_ext
30232 fi
30233
30234      rm -f conftest.sym conftest.file
30235
30236 fi
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
30238 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
30239   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
30240     *yes)
30241
30242 cat >>confdefs.h <<_ACEOF
30243 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
30244 _ACEOF
30245
30246       ;;
30247   esac
30248
30249
30250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
30251 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
30252 if ${gl_cv_func_malloc_posix+:} false; then :
30253   $as_echo_n "(cached) " >&6
30254 else
30255
30256                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30257 /* end confdefs.h.  */
30258
30259 int
30260 main ()
30261 {
30262 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
30263              choke me
30264              #endif
30265
30266   ;
30267   return 0;
30268 }
30269 _ACEOF
30270 if ac_fn_c_try_compile "$LINENO"; then :
30271   gl_cv_func_malloc_posix=yes
30272 else
30273   gl_cv_func_malloc_posix=no
30274 fi
30275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30276
30277 fi
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
30279 $as_echo "$gl_cv_func_malloc_posix" >&6; }
30280
30281
30282
30283       for ac_header in stdlib.h
30284 do :
30285   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
30286 if test "x$ac_cv_header_stdlib_h" = xyes; then :
30287   cat >>confdefs.h <<_ACEOF
30288 #define HAVE_STDLIB_H 1
30289 _ACEOF
30290
30291 fi
30292
30293 done
30294
30295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
30296 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
30297 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
30298   $as_echo_n "(cached) " >&6
30299 else
30300   if test "$cross_compiling" = yes; then :
30301   case "$host_os" in
30302           # Guess yes on platforms where we know the result.
30303           *-gnu* | freebsd* | netbsd* | openbsd* \
30304           | hpux* | solaris* | cygwin* | mingw*)
30305             ac_cv_func_malloc_0_nonnull=yes ;;
30306           # If we don't know, assume the worst.
30307           *) ac_cv_func_malloc_0_nonnull=no ;;
30308         esac
30309
30310 else
30311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30312 /* end confdefs.h.  */
30313 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
30314             # include <stdlib.h>
30315             #else
30316             char *malloc ();
30317             #endif
30318
30319 int
30320 main ()
30321 {
30322 return ! malloc (0);
30323   ;
30324   return 0;
30325 }
30326
30327 _ACEOF
30328 if ac_fn_c_try_run "$LINENO"; then :
30329   ac_cv_func_malloc_0_nonnull=yes
30330 else
30331   ac_cv_func_malloc_0_nonnull=no
30332 fi
30333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30334   conftest.$ac_objext conftest.beam conftest.$ac_ext
30335 fi
30336
30337
30338 fi
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
30340 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
30341   if test $ac_cv_func_malloc_0_nonnull = yes; then :
30342   gl_cv_func_malloc_0_nonnull=1
30343 else
30344   gl_cv_func_malloc_0_nonnull=0
30345 fi
30346
30347
30348 cat >>confdefs.h <<_ACEOF
30349 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
30350 _ACEOF
30351
30352
30353
30354
30355
30356   GNULIB_BTOWC=0;
30357   GNULIB_WCTOB=0;
30358   GNULIB_MBSINIT=0;
30359   GNULIB_MBRTOWC=0;
30360   GNULIB_MBRLEN=0;
30361   GNULIB_MBSRTOWCS=0;
30362   GNULIB_MBSNRTOWCS=0;
30363   GNULIB_WCRTOMB=0;
30364   GNULIB_WCSRTOMBS=0;
30365   GNULIB_WCSNRTOMBS=0;
30366   GNULIB_WCWIDTH=0;
30367   GNULIB_WMEMCHR=0;
30368   GNULIB_WMEMCMP=0;
30369   GNULIB_WMEMCPY=0;
30370   GNULIB_WMEMMOVE=0;
30371   GNULIB_WMEMSET=0;
30372   GNULIB_WCSLEN=0;
30373   GNULIB_WCSNLEN=0;
30374   GNULIB_WCSCPY=0;
30375   GNULIB_WCPCPY=0;
30376   GNULIB_WCSNCPY=0;
30377   GNULIB_WCPNCPY=0;
30378   GNULIB_WCSCAT=0;
30379   GNULIB_WCSNCAT=0;
30380   GNULIB_WCSCMP=0;
30381   GNULIB_WCSNCMP=0;
30382   GNULIB_WCSCASECMP=0;
30383   GNULIB_WCSNCASECMP=0;
30384   GNULIB_WCSCOLL=0;
30385   GNULIB_WCSXFRM=0;
30386   GNULIB_WCSDUP=0;
30387   GNULIB_WCSCHR=0;
30388   GNULIB_WCSRCHR=0;
30389   GNULIB_WCSCSPN=0;
30390   GNULIB_WCSSPN=0;
30391   GNULIB_WCSPBRK=0;
30392   GNULIB_WCSSTR=0;
30393   GNULIB_WCSTOK=0;
30394   GNULIB_WCSWIDTH=0;
30395     HAVE_BTOWC=1;
30396   HAVE_MBSINIT=1;
30397   HAVE_MBRTOWC=1;
30398   HAVE_MBRLEN=1;
30399   HAVE_MBSRTOWCS=1;
30400   HAVE_MBSNRTOWCS=1;
30401   HAVE_WCRTOMB=1;
30402   HAVE_WCSRTOMBS=1;
30403   HAVE_WCSNRTOMBS=1;
30404   HAVE_WMEMCHR=1;
30405   HAVE_WMEMCMP=1;
30406   HAVE_WMEMCPY=1;
30407   HAVE_WMEMMOVE=1;
30408   HAVE_WMEMSET=1;
30409   HAVE_WCSLEN=1;
30410   HAVE_WCSNLEN=1;
30411   HAVE_WCSCPY=1;
30412   HAVE_WCPCPY=1;
30413   HAVE_WCSNCPY=1;
30414   HAVE_WCPNCPY=1;
30415   HAVE_WCSCAT=1;
30416   HAVE_WCSNCAT=1;
30417   HAVE_WCSCMP=1;
30418   HAVE_WCSNCMP=1;
30419   HAVE_WCSCASECMP=1;
30420   HAVE_WCSNCASECMP=1;
30421   HAVE_WCSCOLL=1;
30422   HAVE_WCSXFRM=1;
30423   HAVE_WCSDUP=1;
30424   HAVE_WCSCHR=1;
30425   HAVE_WCSRCHR=1;
30426   HAVE_WCSCSPN=1;
30427   HAVE_WCSSPN=1;
30428   HAVE_WCSPBRK=1;
30429   HAVE_WCSSTR=1;
30430   HAVE_WCSTOK=1;
30431   HAVE_WCSWIDTH=1;
30432   HAVE_DECL_WCTOB=1;
30433   HAVE_DECL_WCWIDTH=1;
30434   REPLACE_MBSTATE_T=0;
30435   REPLACE_BTOWC=0;
30436   REPLACE_WCTOB=0;
30437   REPLACE_MBSINIT=0;
30438   REPLACE_MBRTOWC=0;
30439   REPLACE_MBRLEN=0;
30440   REPLACE_MBSRTOWCS=0;
30441   REPLACE_MBSNRTOWCS=0;
30442   REPLACE_WCRTOMB=0;
30443   REPLACE_WCSRTOMBS=0;
30444   REPLACE_WCSNRTOMBS=0;
30445   REPLACE_WCWIDTH=0;
30446   REPLACE_WCSWIDTH=0;
30447
30448
30449
30450
30451
30452
30453
30454
30455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
30456 $as_echo_n "checking for a traditional japanese locale... " >&6; }
30457 if ${gt_cv_locale_ja+:} false; then :
30458   $as_echo_n "(cached) " >&6
30459 else
30460
30461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30462 /* end confdefs.h.  */
30463
30464 #include <locale.h>
30465 #include <time.h>
30466 #if HAVE_LANGINFO_CODESET
30467 # include <langinfo.h>
30468 #endif
30469 #include <stdlib.h>
30470 #include <string.h>
30471 struct tm t;
30472 char buf[16];
30473 int main ()
30474 {
30475   const char *p;
30476   /* Check whether the given locale name is recognized by the system.  */
30477 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
30478   /* On native Windows, setlocale(category, "") looks at the system settings,
30479      not at the environment variables.  Also, when an encoding suffix such
30480      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30481      category of the locale to "C".  */
30482   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30483       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30484     return 1;
30485 #else
30486   if (setlocale (LC_ALL, "") == NULL) return 1;
30487 #endif
30488   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30489      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30490      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30491      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30492      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30493      some unit tests fail.
30494      On MirBSD 10, when an unsupported locale is specified, setlocale()
30495      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
30496 #if HAVE_LANGINFO_CODESET
30497   {
30498     const char *cs = nl_langinfo (CODESET);
30499     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
30500         || strcmp (cs, "UTF-8") == 0)
30501       return 1;
30502   }
30503 #endif
30504 #ifdef __CYGWIN__
30505   /* On Cygwin, avoid locale names without encoding suffix, because the
30506      locale_charset() function relies on the encoding suffix.  Note that
30507      LC_ALL is set on the command line.  */
30508   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30509 #endif
30510   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
30511      on Cygwin 1.5.x.  */
30512   if (MB_CUR_MAX == 1)
30513     return 1;
30514   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
30515      This excludes the UTF-8 encoding (except on MirBSD).  */
30516   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30517   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
30518   for (p = buf; *p != '\0'; p++)
30519     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
30520       return 1;
30521   return 0;
30522 }
30523
30524 _ACEOF
30525     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30526   (eval $ac_link) 2>&5
30527   ac_status=$?
30528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30529   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30530       case "$host_os" in
30531         # Handle native Windows specially, because there setlocale() interprets
30532         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
30533         # "fr" or "fra" as "French" or "French_France.1252",
30534         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
30535         # "ja" as "Japanese" or "Japanese_Japan.932",
30536         # and similar.
30537         mingw*)
30538           # Note that on native Windows, the Japanese locale is
30539           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
30540           # cannot use it here.
30541           gt_cv_locale_ja=none
30542           ;;
30543         *)
30544           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30545           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
30546           # configure script would override the LC_ALL setting. Likewise for
30547           # LC_CTYPE, which is also set at the beginning of the configure script.
30548           # Test for the AIX locale name.
30549           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30550             gt_cv_locale_ja=ja_JP
30551           else
30552             # Test for the locale name with explicit encoding suffix.
30553             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30554               gt_cv_locale_ja=ja_JP.EUC-JP
30555             else
30556               # Test for the HP-UX, OSF/1, NetBSD locale name.
30557               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30558                 gt_cv_locale_ja=ja_JP.eucJP
30559               else
30560                 # Test for the IRIX, FreeBSD locale name.
30561                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30562                   gt_cv_locale_ja=ja_JP.EUC
30563                 else
30564                   # Test for the Solaris 7 locale name.
30565                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30566                     gt_cv_locale_ja=ja
30567                   else
30568                     # Special test for NetBSD 1.6.
30569                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
30570                       gt_cv_locale_ja=ja_JP.eucJP
30571                     else
30572                       # None found.
30573                       gt_cv_locale_ja=none
30574                     fi
30575                   fi
30576                 fi
30577               fi
30578             fi
30579           fi
30580           ;;
30581       esac
30582     fi
30583     rm -fr conftest*
30584
30585 fi
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
30587 $as_echo "$gt_cv_locale_ja" >&6; }
30588   LOCALE_JA=$gt_cv_locale_ja
30589
30590
30591
30592
30593
30594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
30595 $as_echo_n "checking for a transitional chinese locale... " >&6; }
30596 if ${gt_cv_locale_zh_CN+:} false; then :
30597   $as_echo_n "(cached) " >&6
30598 else
30599
30600     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30601 /* end confdefs.h.  */
30602
30603 #include <locale.h>
30604 #include <stdlib.h>
30605 #include <time.h>
30606 #if HAVE_LANGINFO_CODESET
30607 # include <langinfo.h>
30608 #endif
30609 #include <stdlib.h>
30610 #include <string.h>
30611 struct tm t;
30612 char buf[16];
30613 int main ()
30614 {
30615   const char *p;
30616   /* Check whether the given locale name is recognized by the system.  */
30617 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
30618   /* On native Windows, setlocale(category, "") looks at the system settings,
30619      not at the environment variables.  Also, when an encoding suffix such
30620      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30621      category of the locale to "C".  */
30622   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30623       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30624     return 1;
30625 #else
30626   if (setlocale (LC_ALL, "") == NULL) return 1;
30627 #endif
30628   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30629      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30630      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30631      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30632      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30633      some unit tests fail.
30634      On MirBSD 10, when an unsupported locale is specified, setlocale()
30635      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
30636 #if HAVE_LANGINFO_CODESET
30637   {
30638     const char *cs = nl_langinfo (CODESET);
30639     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
30640         || strcmp (cs, "UTF-8") == 0)
30641       return 1;
30642   }
30643 #endif
30644 #ifdef __CYGWIN__
30645   /* On Cygwin, avoid locale names without encoding suffix, because the
30646      locale_charset() function relies on the encoding suffix.  Note that
30647      LC_ALL is set on the command line.  */
30648   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30649 #endif
30650   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
30651      This excludes the UTF-8 encoding (except on MirBSD).  */
30652   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30653   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
30654   for (p = buf; *p != '\0'; p++)
30655     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
30656       return 1;
30657   /* Check whether a typical GB18030 multibyte sequence is recognized as a
30658      single wide character.  This excludes the GB2312 and GBK encodings.  */
30659   if (mblen ("\203\062\332\066", 5) != 4)
30660     return 1;
30661   return 0;
30662 }
30663
30664 _ACEOF
30665     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30666   (eval $ac_link) 2>&5
30667   ac_status=$?
30668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30669   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30670       case "$host_os" in
30671         # Handle native Windows specially, because there setlocale() interprets
30672         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
30673         # "fr" or "fra" as "French" or "French_France.1252",
30674         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
30675         # "ja" as "Japanese" or "Japanese_Japan.932",
30676         # and similar.
30677         mingw*)
30678           # Test for the hypothetical native Windows locale name.
30679           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30680             gt_cv_locale_zh_CN=Chinese_China.54936
30681           else
30682             # None found.
30683             gt_cv_locale_zh_CN=none
30684           fi
30685           ;;
30686         solaris2.8)
30687           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
30688           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
30689           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
30690           gt_cv_locale_zh_CN=none
30691           ;;
30692         *)
30693           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30694           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
30695           # configure script would override the LC_ALL setting. Likewise for
30696           # LC_CTYPE, which is also set at the beginning of the configure script.
30697           # Test for the locale name without encoding suffix.
30698           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30699             gt_cv_locale_zh_CN=zh_CN
30700           else
30701             # Test for the locale name with explicit encoding suffix.
30702             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30703               gt_cv_locale_zh_CN=zh_CN.GB18030
30704             else
30705               # None found.
30706               gt_cv_locale_zh_CN=none
30707             fi
30708           fi
30709           ;;
30710       esac
30711     else
30712       # If there was a link error, due to mblen(), the system is so old that
30713       # it certainly doesn't have a chinese locale.
30714       gt_cv_locale_zh_CN=none
30715     fi
30716     rm -fr conftest*
30717
30718 fi
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
30720 $as_echo "$gt_cv_locale_zh_CN" >&6; }
30721   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
30722
30723
30724
30725
30726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
30727 $as_echo_n "checking for a french Unicode locale... " >&6; }
30728 if ${gt_cv_locale_fr_utf8+:} false; then :
30729   $as_echo_n "(cached) " >&6
30730 else
30731
30732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30733 /* end confdefs.h.  */
30734
30735 #include <locale.h>
30736 #include <time.h>
30737 #if HAVE_LANGINFO_CODESET
30738 # include <langinfo.h>
30739 #endif
30740 #include <stdlib.h>
30741 #include <string.h>
30742 struct tm t;
30743 char buf[16];
30744 int main () {
30745   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
30746      imitates locale dependent behaviour by looking at the environment
30747      variables, and all locales use the UTF-8 encoding.  */
30748 #if !(defined __BEOS__ || defined __HAIKU__)
30749   /* Check whether the given locale name is recognized by the system.  */
30750 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
30751   /* On native Windows, setlocale(category, "") looks at the system settings,
30752      not at the environment variables.  Also, when an encoding suffix such
30753      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30754      category of the locale to "C".  */
30755   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30756       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30757     return 1;
30758 # else
30759   if (setlocale (LC_ALL, "") == NULL) return 1;
30760 # endif
30761   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30762      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30763      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30764      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30765      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30766      some unit tests fail.  */
30767 # if HAVE_LANGINFO_CODESET
30768   {
30769     const char *cs = nl_langinfo (CODESET);
30770     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
30771       return 1;
30772   }
30773 # endif
30774 # ifdef __CYGWIN__
30775   /* On Cygwin, avoid locale names without encoding suffix, because the
30776      locale_charset() function relies on the encoding suffix.  Note that
30777      LC_ALL is set on the command line.  */
30778   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30779 # endif
30780   /* Check whether in the abbreviation of the second month, the second
30781      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
30782      two bytes long, with UTF-8 encoding.  */
30783   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30784   if (strftime (buf, sizeof (buf), "%b", &t) < 4
30785       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
30786     return 1;
30787 #endif
30788 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
30789   /* Check whether the decimal separator is a comma.
30790      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30791      are nl_langinfo(RADIXCHAR) are both ".".  */
30792   if (localeconv () ->decimal_point[0] != ',') return 1;
30793 #endif
30794   return 0;
30795 }
30796
30797 _ACEOF
30798     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30799   (eval $ac_link) 2>&5
30800   ac_status=$?
30801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30802   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30803       case "$host_os" in
30804         # Handle native Windows specially, because there setlocale() interprets
30805         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
30806         # "fr" or "fra" as "French" or "French_France.1252",
30807         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
30808         # "ja" as "Japanese" or "Japanese_Japan.932",
30809         # and similar.
30810         mingw*)
30811           # Test for the hypothetical native Windows locale name.
30812           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30813             gt_cv_locale_fr_utf8=French_France.65001
30814           else
30815             # None found.
30816             gt_cv_locale_fr_utf8=none
30817           fi
30818           ;;
30819         *)
30820           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
30821           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
30822           # configure script would override the LC_ALL setting. Likewise for
30823           # LC_CTYPE, which is also set at the beginning of the configure script.
30824           # Test for the usual locale name.
30825           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30826             gt_cv_locale_fr_utf8=fr_FR
30827           else
30828             # Test for the locale name with explicit encoding suffix.
30829             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30830               gt_cv_locale_fr_utf8=fr_FR.UTF-8
30831             else
30832               # Test for the Solaris 7 locale name.
30833               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
30834                 gt_cv_locale_fr_utf8=fr.UTF-8
30835               else
30836                 # None found.
30837                 gt_cv_locale_fr_utf8=none
30838               fi
30839             fi
30840           fi
30841           ;;
30842       esac
30843     fi
30844     rm -fr conftest*
30845
30846 fi
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
30848 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
30849   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
30850
30851
30852
30853   GNULIB_FFSL=0;
30854   GNULIB_FFSLL=0;
30855   GNULIB_MEMCHR=0;
30856   GNULIB_MEMMEM=0;
30857   GNULIB_MEMPCPY=0;
30858   GNULIB_MEMRCHR=0;
30859   GNULIB_RAWMEMCHR=0;
30860   GNULIB_STPCPY=0;
30861   GNULIB_STPNCPY=0;
30862   GNULIB_STRCHRNUL=0;
30863   GNULIB_STRDUP=0;
30864   GNULIB_STRNCAT=0;
30865   GNULIB_STRNDUP=0;
30866   GNULIB_STRNLEN=0;
30867   GNULIB_STRPBRK=0;
30868   GNULIB_STRSEP=0;
30869   GNULIB_STRSTR=0;
30870   GNULIB_STRCASESTR=0;
30871   GNULIB_STRTOK_R=0;
30872   GNULIB_MBSLEN=0;
30873   GNULIB_MBSNLEN=0;
30874   GNULIB_MBSCHR=0;
30875   GNULIB_MBSRCHR=0;
30876   GNULIB_MBSSTR=0;
30877   GNULIB_MBSCASECMP=0;
30878   GNULIB_MBSNCASECMP=0;
30879   GNULIB_MBSPCASECMP=0;
30880   GNULIB_MBSCASESTR=0;
30881   GNULIB_MBSCSPN=0;
30882   GNULIB_MBSPBRK=0;
30883   GNULIB_MBSSPN=0;
30884   GNULIB_MBSSEP=0;
30885   GNULIB_MBSTOK_R=0;
30886   GNULIB_STRERROR=0;
30887   GNULIB_STRERROR_R=0;
30888   GNULIB_STRSIGNAL=0;
30889   GNULIB_STRVERSCMP=0;
30890   HAVE_MBSLEN=0;
30891     HAVE_FFSL=1;
30892   HAVE_FFSLL=1;
30893   HAVE_MEMCHR=1;
30894   HAVE_DECL_MEMMEM=1;
30895   HAVE_MEMPCPY=1;
30896   HAVE_DECL_MEMRCHR=1;
30897   HAVE_RAWMEMCHR=1;
30898   HAVE_STPCPY=1;
30899   HAVE_STPNCPY=1;
30900   HAVE_STRCHRNUL=1;
30901   HAVE_DECL_STRDUP=1;
30902   HAVE_DECL_STRNDUP=1;
30903   HAVE_DECL_STRNLEN=1;
30904   HAVE_STRPBRK=1;
30905   HAVE_STRSEP=1;
30906   HAVE_STRCASESTR=1;
30907   HAVE_DECL_STRTOK_R=1;
30908   HAVE_DECL_STRERROR_R=1;
30909   HAVE_DECL_STRSIGNAL=1;
30910   HAVE_STRVERSCMP=1;
30911   REPLACE_MEMCHR=0;
30912   REPLACE_MEMMEM=0;
30913   REPLACE_STPNCPY=0;
30914   REPLACE_STRDUP=0;
30915   REPLACE_STRSTR=0;
30916   REPLACE_STRCASESTR=0;
30917   REPLACE_STRCHRNUL=0;
30918   REPLACE_STRERROR=0;
30919   REPLACE_STRERROR_R=0;
30920   REPLACE_STRNCAT=0;
30921   REPLACE_STRNDUP=0;
30922   REPLACE_STRNLEN=0;
30923   REPLACE_STRSIGNAL=0;
30924   REPLACE_STRTOK_R=0;
30925   UNDEFINE_STRTOK_R=0;
30926
30927
30928
30929
30930
30931
30932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
30933 $as_echo_n "checking for a traditional french locale... " >&6; }
30934 if ${gt_cv_locale_fr+:} false; then :
30935   $as_echo_n "(cached) " >&6
30936 else
30937
30938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30939 /* end confdefs.h.  */
30940
30941 #include <locale.h>
30942 #include <time.h>
30943 #if HAVE_LANGINFO_CODESET
30944 # include <langinfo.h>
30945 #endif
30946 #include <stdlib.h>
30947 #include <string.h>
30948 struct tm t;
30949 char buf[16];
30950 int main () {
30951   /* Check whether the given locale name is recognized by the system.  */
30952 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
30953   /* On native Windows, setlocale(category, "") looks at the system settings,
30954      not at the environment variables.  Also, when an encoding suffix such
30955      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
30956      category of the locale to "C".  */
30957   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
30958       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
30959     return 1;
30960 #else
30961   if (setlocale (LC_ALL, "") == NULL) return 1;
30962 #endif
30963   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
30964      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
30965      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
30966      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
30967      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
30968      some unit tests fail.
30969      On MirBSD 10, when an unsupported locale is specified, setlocale()
30970      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
30971 #if HAVE_LANGINFO_CODESET
30972   {
30973     const char *cs = nl_langinfo (CODESET);
30974     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
30975         || strcmp (cs, "UTF-8") == 0)
30976       return 1;
30977   }
30978 #endif
30979 #ifdef __CYGWIN__
30980   /* On Cygwin, avoid locale names without encoding suffix, because the
30981      locale_charset() function relies on the encoding suffix.  Note that
30982      LC_ALL is set on the command line.  */
30983   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
30984 #endif
30985   /* Check whether in the abbreviation of the second month, the second
30986      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
30987      one byte long. This excludes the UTF-8 encoding.  */
30988   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
30989   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
30990 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
30991   /* Check whether the decimal separator is a comma.
30992      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
30993      are nl_langinfo(RADIXCHAR) are both ".".  */
30994   if (localeconv () ->decimal_point[0] != ',') return 1;
30995 #endif
30996   return 0;
30997 }
30998
30999 _ACEOF
31000     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31001   (eval $ac_link) 2>&5
31002   ac_status=$?
31003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31004   test $ac_status = 0; } && test -s conftest$ac_exeext; then
31005       case "$host_os" in
31006         # Handle native Windows specially, because there setlocale() interprets
31007         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
31008         # "fr" or "fra" as "French" or "French_France.1252",
31009         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
31010         # "ja" as "Japanese" or "Japanese_Japan.932",
31011         # and similar.
31012         mingw*)
31013           # Test for the native Windows locale name.
31014           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31015             gt_cv_locale_fr=French_France.1252
31016           else
31017             # None found.
31018             gt_cv_locale_fr=none
31019           fi
31020           ;;
31021         *)
31022           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
31023           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
31024           # configure script would override the LC_ALL setting. Likewise for
31025           # LC_CTYPE, which is also set at the beginning of the configure script.
31026           # Test for the usual locale name.
31027           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31028             gt_cv_locale_fr=fr_FR
31029           else
31030             # Test for the locale name with explicit encoding suffix.
31031             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31032               gt_cv_locale_fr=fr_FR.ISO-8859-1
31033             else
31034               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
31035               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31036                 gt_cv_locale_fr=fr_FR.ISO8859-1
31037               else
31038                 # Test for the HP-UX locale name.
31039                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31040                   gt_cv_locale_fr=fr_FR.iso88591
31041                 else
31042                   # Test for the Solaris 7 locale name.
31043                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
31044                     gt_cv_locale_fr=fr
31045                   else
31046                     # None found.
31047                     gt_cv_locale_fr=none
31048                   fi
31049                 fi
31050               fi
31051             fi
31052           fi
31053           ;;
31054       esac
31055     fi
31056     rm -fr conftest*
31057
31058 fi
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
31060 $as_echo "$gt_cv_locale_fr" >&6; }
31061   LOCALE_FR=$gt_cv_locale_fr
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
31077   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
31078   # irrelevant for anonymous mappings.
31079   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31080 if test "x$ac_cv_func_mmap" = xyes; then :
31081   gl_have_mmap=yes
31082 else
31083   gl_have_mmap=no
31084 fi
31085
31086
31087   # Try to allow MAP_ANONYMOUS.
31088   gl_have_mmap_anonymous=no
31089   if test $gl_have_mmap = yes; then
31090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
31091 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
31092     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31093 /* end confdefs.h.  */
31094
31095 #include <sys/mman.h>
31096 #ifdef MAP_ANONYMOUS
31097     I cannot identify this map
31098 #endif
31099
31100 _ACEOF
31101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31102   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
31103   gl_have_mmap_anonymous=yes
31104 fi
31105 rm -f conftest*
31106
31107     if test $gl_have_mmap_anonymous != yes; then
31108       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31109 /* end confdefs.h.  */
31110
31111 #include <sys/mman.h>
31112 #ifdef MAP_ANON
31113     I cannot identify this map
31114 #endif
31115
31116 _ACEOF
31117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31118   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
31119
31120 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
31121
31122          gl_have_mmap_anonymous=yes
31123 fi
31124 rm -f conftest*
31125
31126     fi
31127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
31128 $as_echo "$gl_have_mmap_anonymous" >&6; }
31129     if test $gl_have_mmap_anonymous = yes; then
31130
31131 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
31132
31133     fi
31134   fi
31135
31136
31137
31138
31139
31140
31141   if test $HAVE_MEMCHR = 1; then
31142     # Detect platform-specific bugs in some versions of glibc:
31143     # memchr should not dereference anything with length 0
31144     #   http://bugzilla.redhat.com/499689
31145     # memchr should not dereference overestimated length after a match
31146     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
31147     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
31148     # Assume that memchr works on platforms that lack mprotect.
31149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
31150 $as_echo_n "checking whether memchr works... " >&6; }
31151 if ${gl_cv_func_memchr_works+:} false; then :
31152   $as_echo_n "(cached) " >&6
31153 else
31154   if test "$cross_compiling" = yes; then :
31155          gl_cv_func_memchr_works="guessing no"
31156 else
31157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31158 /* end confdefs.h.  */
31159
31160 #include <string.h>
31161 #if HAVE_SYS_MMAN_H
31162 # include <fcntl.h>
31163 # include <unistd.h>
31164 # include <sys/types.h>
31165 # include <sys/mman.h>
31166 # ifndef MAP_FILE
31167 #  define MAP_FILE 0
31168 # endif
31169 #endif
31170
31171 int
31172 main ()
31173 {
31174
31175   int result = 0;
31176   char *fence = NULL;
31177 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
31178 # if HAVE_MAP_ANONYMOUS
31179   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
31180   const int fd = -1;
31181 # else /* !HAVE_MAP_ANONYMOUS */
31182   const int flags = MAP_FILE | MAP_PRIVATE;
31183   int fd = open ("/dev/zero", O_RDONLY, 0666);
31184   if (fd >= 0)
31185 # endif
31186     {
31187       int pagesize = getpagesize ();
31188       char *two_pages =
31189         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
31190                        flags, fd, 0);
31191       if (two_pages != (char *)(-1)
31192           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
31193         fence = two_pages + pagesize;
31194     }
31195 #endif
31196   if (fence)
31197     {
31198       if (memchr (fence, 0, 0))
31199         result |= 1;
31200       strcpy (fence - 9, "12345678");
31201       if (memchr (fence - 9, 0, 79) != fence - 1)
31202         result |= 2;
31203       if (memchr (fence - 1, 0, 3) != fence - 1)
31204         result |= 4;
31205     }
31206   return result;
31207
31208   ;
31209   return 0;
31210 }
31211 _ACEOF
31212 if ac_fn_c_try_run "$LINENO"; then :
31213   gl_cv_func_memchr_works=yes
31214 else
31215   gl_cv_func_memchr_works=no
31216 fi
31217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31218   conftest.$ac_objext conftest.beam conftest.$ac_ext
31219 fi
31220
31221 fi
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
31223 $as_echo "$gl_cv_func_memchr_works" >&6; }
31224     if test "$gl_cv_func_memchr_works" != yes; then
31225       REPLACE_MEMCHR=1
31226     fi
31227   fi
31228
31229
31230
31231
31232
31233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
31234 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
31235 if ${gl_cv_minmax_in_limits_h+:} false; then :
31236   $as_echo_n "(cached) " >&6
31237 else
31238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31239 /* end confdefs.h.  */
31240 #include <limits.h>
31241             int x = MIN (42, 17);
31242 int
31243 main ()
31244 {
31245
31246   ;
31247   return 0;
31248 }
31249 _ACEOF
31250 if ac_fn_c_try_compile "$LINENO"; then :
31251   gl_cv_minmax_in_limits_h=yes
31252 else
31253   gl_cv_minmax_in_limits_h=no
31254 fi
31255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31256 fi
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
31258 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
31259   if test $gl_cv_minmax_in_limits_h = yes; then
31260
31261 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
31262
31263   fi
31264
31265
31266
31267
31268
31269
31270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
31271 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
31272 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
31273   $as_echo_n "(cached) " >&6
31274 else
31275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31276 /* end confdefs.h.  */
31277 #include <sys/param.h>
31278             int x = MIN (42, 17);
31279 int
31280 main ()
31281 {
31282
31283   ;
31284   return 0;
31285 }
31286 _ACEOF
31287 if ac_fn_c_try_compile "$LINENO"; then :
31288   gl_cv_minmax_in_sys_param_h=yes
31289 else
31290   gl_cv_minmax_in_sys_param_h=no
31291 fi
31292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31293 fi
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
31295 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
31296   if test $gl_cv_minmax_in_sys_param_h = yes; then
31297
31298 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
31299
31300   fi
31301
31302
31303
31304
31305
31306     gl_cv_c_multiarch=no
31307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31308 /* end confdefs.h.  */
31309 #ifndef __APPLE_CC__
31310          not a universal capable compiler
31311         #endif
31312         typedef int dummy;
31313
31314 _ACEOF
31315 if ac_fn_c_try_compile "$LINENO"; then :
31316
31317                arch=
31318      prev=
31319      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
31320        if test -n "$prev"; then
31321          case $word in
31322            i?86 | x86_64 | ppc | ppc64)
31323              if test -z "$arch" || test "$arch" = "$word"; then
31324                arch="$word"
31325              else
31326                gl_cv_c_multiarch=yes
31327              fi
31328              ;;
31329          esac
31330          prev=
31331        else
31332          if test "x$word" = "x-arch"; then
31333            prev=arch
31334          fi
31335        fi
31336      done
31337
31338 fi
31339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340   if test $gl_cv_c_multiarch = yes; then
31341     APPLE_UNIVERSAL_BUILD=1
31342   else
31343     APPLE_UNIVERSAL_BUILD=0
31344   fi
31345
31346
31347
31348
31349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
31350 $as_echo_n "checking for promoted mode_t type... " >&6; }
31351 if ${gl_cv_promoted_mode_t+:} false; then :
31352   $as_echo_n "(cached) " >&6
31353 else
31354
31355                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31356 /* end confdefs.h.  */
31357 #include <sys/types.h>
31358 int
31359 main ()
31360 {
31361 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
31362   ;
31363   return 0;
31364 }
31365 _ACEOF
31366 if ac_fn_c_try_compile "$LINENO"; then :
31367   gl_cv_promoted_mode_t='int'
31368 else
31369   gl_cv_promoted_mode_t='mode_t'
31370 fi
31371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31372
31373 fi
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
31375 $as_echo "$gl_cv_promoted_mode_t" >&6; }
31376
31377 cat >>confdefs.h <<_ACEOF
31378 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
31379 _ACEOF
31380
31381
31382
31383
31384
31385
31386
31387   GNULIB_POSIX_SPAWN=0;
31388   GNULIB_POSIX_SPAWNP=0;
31389   GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=0;
31390   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
31391   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
31392   GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
31393   GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=0;
31394   GNULIB_POSIX_SPAWNATTR_INIT=0;
31395   GNULIB_POSIX_SPAWNATTR_GETFLAGS=0;
31396   GNULIB_POSIX_SPAWNATTR_SETFLAGS=0;
31397   GNULIB_POSIX_SPAWNATTR_GETPGROUP=0;
31398   GNULIB_POSIX_SPAWNATTR_SETPGROUP=0;
31399   GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM=0;
31400   GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM=0;
31401   GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY=0;
31402   GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY=0;
31403   GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT=0;
31404   GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT=0;
31405   GNULIB_POSIX_SPAWNATTR_GETSIGMASK=0;
31406   GNULIB_POSIX_SPAWNATTR_SETSIGMASK=0;
31407   GNULIB_POSIX_SPAWNATTR_DESTROY=0;
31408     HAVE_POSIX_SPAWN=1;
31409   HAVE_POSIX_SPAWNATTR_T=1;
31410   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=1;
31411
31412   REPLACE_POSIX_SPAWN=0;
31413   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
31414
31415   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
31416
31417   REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
31418
31419
31420
31421
31422
31423   LIB_POSIX_SPAWN=
31424
31425   gl_saved_libs=$LIBS
31426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing posix_spawn" >&5
31427 $as_echo_n "checking for library containing posix_spawn... " >&6; }
31428 if ${ac_cv_search_posix_spawn+:} false; then :
31429   $as_echo_n "(cached) " >&6
31430 else
31431   ac_func_search_save_LIBS=$LIBS
31432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31433 /* end confdefs.h.  */
31434
31435 /* Override any GCC internal prototype to avoid an error.
31436    Use char because int might match the return type of a GCC
31437    builtin and then its argument prototype would still apply.  */
31438 #ifdef __cplusplus
31439 extern "C"
31440 #endif
31441 char posix_spawn ();
31442 int
31443 main ()
31444 {
31445 return posix_spawn ();
31446   ;
31447   return 0;
31448 }
31449 _ACEOF
31450 for ac_lib in '' rt; do
31451   if test -z "$ac_lib"; then
31452     ac_res="none required"
31453   else
31454     ac_res=-l$ac_lib
31455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31456   fi
31457   if ac_fn_c_try_link "$LINENO"; then :
31458   ac_cv_search_posix_spawn=$ac_res
31459 fi
31460 rm -f core conftest.err conftest.$ac_objext \
31461     conftest$ac_exeext
31462   if ${ac_cv_search_posix_spawn+:} false; then :
31463   break
31464 fi
31465 done
31466 if ${ac_cv_search_posix_spawn+:} false; then :
31467
31468 else
31469   ac_cv_search_posix_spawn=no
31470 fi
31471 rm conftest.$ac_ext
31472 LIBS=$ac_func_search_save_LIBS
31473 fi
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_posix_spawn" >&5
31475 $as_echo "$ac_cv_search_posix_spawn" >&6; }
31476 ac_res=$ac_cv_search_posix_spawn
31477 if test "$ac_res" != no; then :
31478   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31479   test "$ac_cv_search_posix_spawn" = "none required" ||
31480                     LIB_POSIX_SPAWN=$ac_cv_search_posix_spawn
31481 fi
31482
31483     for ac_func in posix_spawn
31484 do :
31485   ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
31486 if test "x$ac_cv_func_posix_spawn" = xyes; then :
31487   cat >>confdefs.h <<_ACEOF
31488 #define HAVE_POSIX_SPAWN 1
31489 _ACEOF
31490
31491 fi
31492 done
31493
31494   LIBS=$gl_saved_libs
31495
31496   if test $ac_cv_func_posix_spawn != yes; then
31497     HAVE_POSIX_SPAWN=0
31498   fi
31499
31500
31501
31502
31503                                       if test $ac_cv_func_posix_spawn = yes; then
31504
31505
31506      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn works" >&5
31507 $as_echo_n "checking whether posix_spawn works... " >&6; }
31508 if ${gl_cv_func_posix_spawn_works+:} false; then :
31509   $as_echo_n "(cached) " >&6
31510 else
31511   if test $cross_compiling = no; then
31512        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31513 /* end confdefs.h.  */
31514
31515 #include <errno.h>
31516 #include <fcntl.h>
31517 #include <signal.h>
31518 #include <spawn.h>
31519 #include <stdbool.h>
31520 #include <stdio.h>
31521 #include <stdlib.h>
31522 #include <string.h>
31523 #include <unistd.h>
31524 #include <sys/types.h>
31525 #include <sys/wait.h>
31526
31527 extern char **environ;
31528
31529 #ifndef STDIN_FILENO
31530 # define STDIN_FILENO 0
31531 #endif
31532 #ifndef STDOUT_FILENO
31533 # define STDOUT_FILENO 1
31534 #endif
31535 #ifndef STDERR_FILENO
31536 # define STDERR_FILENO 2
31537 #endif
31538
31539 #ifndef WTERMSIG
31540 # define WTERMSIG(x) ((x) & 0x7f)
31541 #endif
31542 #ifndef WIFEXITED
31543 # define WIFEXITED(x) (WTERMSIG (x) == 0)
31544 #endif
31545 #ifndef WEXITSTATUS
31546 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
31547 #endif
31548
31549 #define CHILD_PROGRAM_FILENAME "/non/exist/ent"
31550
31551 static int
31552 fd_safer (int fd)
31553 {
31554   if (0 <= fd && fd <= 2)
31555     {
31556       int f = fd_safer (dup (fd));
31557       int e = errno;
31558       close (fd);
31559       errno = e;
31560       fd = f;
31561     }
31562
31563   return fd;
31564 }
31565
31566 int
31567 main ()
31568 {
31569   char *argv[2] = { CHILD_PROGRAM_FILENAME, NULL };
31570   int ofd[2];
31571   sigset_t blocked_signals;
31572   sigset_t fatal_signal_set;
31573   posix_spawn_file_actions_t actions;
31574   bool actions_allocated;
31575   posix_spawnattr_t attrs;
31576   bool attrs_allocated;
31577   int err;
31578   pid_t child;
31579   int status;
31580   int exitstatus;
31581
31582   setvbuf (stdout, NULL, _IOFBF, 0);
31583   puts ("This should be seen only once.");
31584   if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0)
31585     {
31586       perror ("cannot create pipe");
31587       exit (1);
31588     }
31589   sigprocmask (SIG_SETMASK, NULL, &blocked_signals);
31590   sigemptyset (&fatal_signal_set);
31591   sigaddset (&fatal_signal_set, SIGINT);
31592   sigaddset (&fatal_signal_set, SIGTERM);
31593   sigaddset (&fatal_signal_set, SIGHUP);
31594   sigaddset (&fatal_signal_set, SIGPIPE);
31595   sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL);
31596   actions_allocated = false;
31597   attrs_allocated = false;
31598   if ((err = posix_spawn_file_actions_init (&actions)) != 0
31599       || (actions_allocated = true,
31600           (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0
31601           || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0
31602           || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0
31603           || (err = posix_spawnattr_init (&attrs)) != 0
31604           || (attrs_allocated = true,
31605               (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0
31606               || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0)
31607           || (err = posix_spawnp (&child, CHILD_PROGRAM_FILENAME, &actions, &attrs, argv, environ)) != 0))
31608     {
31609       if (actions_allocated)
31610         posix_spawn_file_actions_destroy (&actions);
31611       if (attrs_allocated)
31612         posix_spawnattr_destroy (&attrs);
31613       sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
31614       if (err == ENOENT)
31615         return 0;
31616       else
31617         {
31618           errno = err;
31619           perror ("subprocess failed");
31620           exit (1);
31621         }
31622     }
31623   posix_spawn_file_actions_destroy (&actions);
31624   posix_spawnattr_destroy (&attrs);
31625   sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
31626   close (ofd[0]);
31627   close (ofd[1]);
31628   status = 0;
31629   while (waitpid (child, &status, 0) != child)
31630     ;
31631   if (!WIFEXITED (status))
31632     {
31633       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
31634       exit (1);
31635     }
31636   exitstatus = WEXITSTATUS (status);
31637   if (exitstatus != 127)
31638     {
31639       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
31640       exit (1);
31641     }
31642   return 0;
31643 }
31644
31645 _ACEOF
31646 if ac_fn_c_try_link "$LINENO"; then :
31647   if test -s conftest$ac_exeext \
31648              && ./conftest$ac_exeext > conftest.out \
31649              && echo 'This should be seen only once.' > conftest.ok \
31650              && cmp conftest.out conftest.ok > /dev/null; then
31651             gl_cv_func_posix_spawn_works=yes
31652           else
31653             gl_cv_func_posix_spawn_works=no
31654           fi
31655 else
31656   gl_cv_func_posix_spawn_works=no
31657 fi
31658 rm -f core conftest.err conftest.$ac_objext \
31659     conftest$ac_exeext conftest.$ac_ext
31660        if test $gl_cv_func_posix_spawn_works = yes; then
31661          if test "$cross_compiling" = yes; then :
31662   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31664 as_fn_error $? "cannot run test program while cross compiling
31665 See \`config.log' for more details" "$LINENO" 5; }
31666 else
31667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31668 /* end confdefs.h.  */
31669
31670 /* Test whether posix_spawn_file_actions_addopen supports filename arguments
31671    that contain special characters such as '*'.  */
31672
31673 #include <errno.h>
31674 #include <fcntl.h>
31675 #include <signal.h>
31676 #include <spawn.h>
31677 #include <stdbool.h>
31678 #include <stdio.h>
31679 #include <string.h>
31680 #include <unistd.h>
31681 #include <sys/types.h>
31682 #include <sys/wait.h>
31683
31684 extern char **environ;
31685
31686 #ifndef STDIN_FILENO
31687 # define STDIN_FILENO 0
31688 #endif
31689 #ifndef STDOUT_FILENO
31690 # define STDOUT_FILENO 1
31691 #endif
31692 #ifndef STDERR_FILENO
31693 # define STDERR_FILENO 2
31694 #endif
31695
31696 #ifndef WTERMSIG
31697 # define WTERMSIG(x) ((x) & 0x7f)
31698 #endif
31699 #ifndef WIFEXITED
31700 # define WIFEXITED(x) (WTERMSIG (x) == 0)
31701 #endif
31702 #ifndef WEXITSTATUS
31703 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
31704 #endif
31705
31706 #define CHILD_PROGRAM_FILENAME "conftest"
31707 #define DATA_FILENAME "conftest%=*#?"
31708
31709 static int
31710 parent_main (void)
31711 {
31712   FILE *fp;
31713   char *argv[3] = { CHILD_PROGRAM_FILENAME, "-child", NULL };
31714   posix_spawn_file_actions_t actions;
31715   bool actions_allocated;
31716   int err;
31717   pid_t child;
31718   int status;
31719   int exitstatus;
31720
31721   /* Create a data file with specific contents.  */
31722   fp = fopen (DATA_FILENAME, "wb");
31723   if (fp == NULL)
31724     {
31725       perror ("cannot create data file");
31726       return 1;
31727     }
31728   fwrite ("Halle Potta", 1, 11, fp);
31729   if (fflush (fp) || fclose (fp))
31730     {
31731       perror ("cannot prepare data file");
31732       return 2;
31733     }
31734
31735   /* Avoid reading from our stdin, as it could block.  */
31736   freopen ("/dev/null", "rb", stdin);
31737
31738   /* Test whether posix_spawn_file_actions_addopen with this file name
31739      actually works, but spawning a child that reads from this file.  */
31740   actions_allocated = false;
31741   if ((err = posix_spawn_file_actions_init (&actions)) != 0
31742       || (actions_allocated = true,
31743           (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) != 0
31744           || (err = posix_spawn (&child, CHILD_PROGRAM_FILENAME, &actions, NULL, argv, environ)) != 0))
31745     {
31746       if (actions_allocated)
31747         posix_spawn_file_actions_destroy (&actions);
31748       errno = err;
31749       perror ("subprocess failed");
31750       return 3;
31751     }
31752   posix_spawn_file_actions_destroy (&actions);
31753   status = 0;
31754   while (waitpid (child, &status, 0) != child)
31755     ;
31756   if (!WIFEXITED (status))
31757     {
31758       fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
31759       return 4;
31760     }
31761   exitstatus = WEXITSTATUS (status);
31762   if (exitstatus != 0)
31763     {
31764       fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
31765       return 5;
31766     }
31767   return 0;
31768 }
31769
31770 static int
31771 child_main (void)
31772 {
31773   char buf[1024];
31774
31775   /* See if reading from STDIN_FILENO yields the expected contents.  */
31776   if (fread (buf, 1, sizeof (buf), stdin) == 11
31777       && memcmp (buf, "Halle Potta", 11) == 0)
31778     return 0;
31779   else
31780     return 8;
31781 }
31782
31783 static void
31784 cleanup_then_die (int sig)
31785 {
31786   /* Clean up data file.  */
31787   unlink (DATA_FILENAME);
31788
31789   /* Re-raise the signal and die from it.  */
31790   signal (sig, SIG_DFL);
31791   raise (sig);
31792 }
31793
31794 int
31795 main (int argc, char *argv[])
31796 {
31797   int exitstatus;
31798
31799   if (!(argc > 1 && strcmp (argv[1], "-child") == 0))
31800     {
31801       /* This is the parent process.  */
31802       signal (SIGINT, cleanup_then_die);
31803       signal (SIGTERM, cleanup_then_die);
31804       #ifdef SIGHUP
31805       signal (SIGHUP, cleanup_then_die);
31806       #endif
31807
31808       exitstatus = parent_main ();
31809     }
31810   else
31811     {
31812       /* This is the child process.  */
31813
31814       exitstatus = child_main ();
31815     }
31816   unlink (DATA_FILENAME);
31817   return exitstatus;
31818 }
31819
31820 _ACEOF
31821 if ac_fn_c_try_run "$LINENO"; then :
31822
31823 else
31824   gl_cv_func_posix_spawn_works=no
31825 fi
31826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31827   conftest.$ac_objext conftest.beam conftest.$ac_ext
31828 fi
31829
31830        fi
31831      else
31832        case "$host_os" in
31833          aix*) gl_cv_func_posix_spawn_works="guessing no";;
31834          *)    gl_cv_func_posix_spawn_works="guessing yes";;
31835        esac
31836      fi
31837
31838 fi
31839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_works" >&5
31840 $as_echo "$gl_cv_func_posix_spawn_works" >&6; }
31841
31842     case "$gl_cv_func_posix_spawn_works" in
31843       *yes)
31844
31845 $as_echo "#define HAVE_WORKING_POSIX_SPAWN 1" >>confdefs.h
31846
31847                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedpolicy is supported" >&5
31848 $as_echo_n "checking whether posix_spawnattr_setschedpolicy is supported... " >&6; }
31849 if ${gl_cv_func_spawnattr_setschedpolicy+:} false; then :
31850   $as_echo_n "(cached) " >&6
31851 else
31852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31853 /* end confdefs.h.  */
31854
31855 #include <spawn.h>
31856 #if POSIX_SPAWN_SETSCHEDULER
31857  POSIX scheduling supported
31858 #endif
31859
31860 _ACEOF
31861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31862   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
31863   gl_cv_func_spawnattr_setschedpolicy=yes
31864 else
31865   gl_cv_func_spawnattr_setschedpolicy=no
31866 fi
31867 rm -f conftest*
31868
31869
31870 fi
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedpolicy" >&5
31872 $as_echo "$gl_cv_func_spawnattr_setschedpolicy" >&6; }
31873                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedparam is supported" >&5
31874 $as_echo_n "checking whether posix_spawnattr_setschedparam is supported... " >&6; }
31875 if ${gl_cv_func_spawnattr_setschedparam+:} false; then :
31876   $as_echo_n "(cached) " >&6
31877 else
31878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31879 /* end confdefs.h.  */
31880
31881 #include <spawn.h>
31882 #if POSIX_SPAWN_SETSCHEDPARAM
31883  POSIX scheduling supported
31884 #endif
31885
31886 _ACEOF
31887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31888   $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
31889   gl_cv_func_spawnattr_setschedparam=yes
31890 else
31891   gl_cv_func_spawnattr_setschedparam=no
31892 fi
31893 rm -f conftest*
31894
31895
31896 fi
31897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedparam" >&5
31898 $as_echo "$gl_cv_func_spawnattr_setschedparam" >&6; }
31899         ;;
31900       *) REPLACE_POSIX_SPAWN=1 ;;
31901     esac
31902   fi
31903
31904
31905   GNULIB_PTHREAD_SIGMASK=0;
31906   GNULIB_RAISE=0;
31907   GNULIB_SIGNAL_H_SIGPIPE=0;
31908   GNULIB_SIGPROCMASK=0;
31909   GNULIB_SIGACTION=0;
31910     HAVE_POSIX_SIGNALBLOCKING=1;
31911   HAVE_PTHREAD_SIGMASK=1;
31912   HAVE_RAISE=1;
31913   HAVE_SIGSET_T=1;
31914   HAVE_SIGINFO_T=1;
31915   HAVE_SIGACTION=1;
31916   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
31917
31918   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
31919
31920   HAVE_SIGHANDLER_T=1;
31921   REPLACE_PTHREAD_SIGMASK=0;
31922   REPLACE_RAISE=0;
31923
31924
31925   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
31926       #include <signal.h>
31927       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
31928       #include <sys/types.h>
31929
31930 "
31931 if test "x$ac_cv_type_sigset_t" = xyes; then :
31932
31933 cat >>confdefs.h <<_ACEOF
31934 #define HAVE_SIGSET_T 1
31935 _ACEOF
31936
31937 gl_cv_type_sigset_t=yes
31938 else
31939   gl_cv_type_sigset_t=no
31940 fi
31941
31942   if test $gl_cv_type_sigset_t != yes; then
31943     HAVE_SIGSET_T=0
31944   fi
31945
31946
31947
31948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
31949 $as_echo_n "checking for SIGPIPE... " >&6; }
31950 if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
31951   $as_echo_n "(cached) " >&6
31952 else
31953
31954     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31955 /* end confdefs.h.  */
31956
31957 #include <signal.h>
31958 #if !defined SIGPIPE
31959 booboo
31960 #endif
31961
31962 _ACEOF
31963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31964   $EGREP "booboo" >/dev/null 2>&1; then :
31965   gl_cv_header_signal_h_SIGPIPE=no
31966 else
31967   gl_cv_header_signal_h_SIGPIPE=yes
31968 fi
31969 rm -f conftest*
31970
31971
31972 fi
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
31974 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
31975
31976
31977                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
31978 $as_echo_n "checking for shared library path variable... " >&6; }
31979 if ${acl_cv_libpath+:} false; then :
31980   $as_echo_n "(cached) " >&6
31981 else
31982
31983     LD="$LD" \
31984     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
31985     . ./conftest.sh
31986     rm -f ./conftest.sh
31987     acl_cv_libpath=${acl_cv_shlibpath_var:-none}
31988
31989 fi
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
31991 $as_echo "$acl_cv_libpath" >&6; }
31992   shlibpath_var="$acl_cv_shlibpath_var"
31993
31994
31995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
31996 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
31997   # Check whether --enable-relocatable was given.
31998 if test "${enable_relocatable+set}" = set; then :
31999   enableval=$enable_relocatable; if test "$enableval" != no; then
32000        RELOCATABLE=yes
32001      else
32002        RELOCATABLE=no
32003      fi
32004
32005 else
32006   RELOCATABLE=no
32007 fi
32008
32009
32010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
32011 $as_echo "$RELOCATABLE" >&6; }
32012
32013
32014
32015     if test "X$prefix" = "XNONE"; then
32016     reloc_final_prefix="$ac_default_prefix"
32017   else
32018     reloc_final_prefix="$prefix"
32019   fi
32020
32021 cat >>confdefs.h <<_ACEOF
32022 #define INSTALLPREFIX "${reloc_final_prefix}"
32023 _ACEOF
32024
32025   if test $RELOCATABLE = yes; then
32026
32027 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
32028
32029   fi
32030
32031
32032
32033
32034
32035
32036   is_noop=no
32037   use_elf_origin_trick=no
32038   use_wrapper=no
32039   if test $RELOCATABLE = yes; then
32040     # --enable-relocatable implies --disable-rpath
32041     enable_rpath=no
32042     for ac_header in mach-o/dyld.h
32043 do :
32044   ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
32045 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
32046   cat >>confdefs.h <<_ACEOF
32047 #define HAVE_MACH_O_DYLD_H 1
32048 _ACEOF
32049
32050 fi
32051
32052 done
32053
32054     for ac_func in _NSGetExecutablePath
32055 do :
32056   ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
32057 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
32058   cat >>confdefs.h <<_ACEOF
32059 #define HAVE__NSGETEXECUTABLEPATH 1
32060 _ACEOF
32061
32062 fi
32063 done
32064
32065     case "$host_os" in
32066       mingw*) is_noop=yes ;;
32067       linux* | kfreebsd*) use_elf_origin_trick=yes ;;
32068     esac
32069     if test $is_noop = yes; then
32070       RELOCATABLE_LDFLAGS=:
32071
32072     else
32073       if test $use_elf_origin_trick = yes; then
32074                 case "$ac_aux_dir" in
32075           /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
32076           *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
32077         esac
32078         RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
32079
32080       else
32081         use_wrapper=yes
32082                                         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\""
32083
32084         case "$ac_aux_dir" in
32085           /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
32086           *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
32087         esac
32088       fi
32089     fi
32090   fi
32091    if test $is_noop = yes || test $use_elf_origin_trick = yes; then
32092   RELOCATABLE_VIA_LD_TRUE=
32093   RELOCATABLE_VIA_LD_FALSE='#'
32094 else
32095   RELOCATABLE_VIA_LD_TRUE='#'
32096   RELOCATABLE_VIA_LD_FALSE=
32097 fi
32098
32099    if test $use_wrapper = yes; then
32100   RELOCATABLE_VIA_WRAPPER_TRUE=
32101   RELOCATABLE_VIA_WRAPPER_FALSE='#'
32102 else
32103   RELOCATABLE_VIA_WRAPPER_TRUE='#'
32104   RELOCATABLE_VIA_WRAPPER_FALSE=
32105 fi
32106
32107
32108
32109
32110
32111
32112
32113
32114       RELOCATABLE_STRIP=':'
32115
32116
32117 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
32118 if test "x$ac_cv_have_decl_setenv" = xyes; then :
32119   ac_have_decl=1
32120 else
32121   ac_have_decl=0
32122 fi
32123
32124 cat >>confdefs.h <<_ACEOF
32125 #define HAVE_DECL_SETENV $ac_have_decl
32126 _ACEOF
32127
32128
32129
32130
32131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
32132 $as_echo_n "checking for ssize_t... " >&6; }
32133 if ${gt_cv_ssize_t+:} false; then :
32134   $as_echo_n "(cached) " >&6
32135 else
32136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32137 /* end confdefs.h.  */
32138 #include <sys/types.h>
32139 int
32140 main ()
32141 {
32142 int x = sizeof (ssize_t *) + sizeof (ssize_t);
32143             return !x;
32144   ;
32145   return 0;
32146 }
32147 _ACEOF
32148 if ac_fn_c_try_compile "$LINENO"; then :
32149   gt_cv_ssize_t=yes
32150 else
32151   gt_cv_ssize_t=no
32152 fi
32153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32154 fi
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
32156 $as_echo "$gt_cv_ssize_t" >&6; }
32157   if test $gt_cv_ssize_t = no; then
32158
32159 $as_echo "#define ssize_t int" >>confdefs.h
32160
32161   fi
32162
32163
32164
32165
32166
32167
32168
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
32170 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
32171 if ${ac_cv_type_uid_t+:} false; then :
32172   $as_echo_n "(cached) " >&6
32173 else
32174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32175 /* end confdefs.h.  */
32176 #include <sys/types.h>
32177
32178 _ACEOF
32179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32180   $EGREP "uid_t" >/dev/null 2>&1; then :
32181   ac_cv_type_uid_t=yes
32182 else
32183   ac_cv_type_uid_t=no
32184 fi
32185 rm -f conftest*
32186
32187 fi
32188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
32189 $as_echo "$ac_cv_type_uid_t" >&6; }
32190 if test $ac_cv_type_uid_t = no; then
32191
32192 $as_echo "#define uid_t int" >>confdefs.h
32193
32194
32195 $as_echo "#define gid_t int" >>confdefs.h
32196
32197 fi
32198
32199
32200
32201
32202
32203
32204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32205 /* end confdefs.h.  */
32206
32207 #ifdef _MSC_VER
32208 MicrosoftCompiler
32209 #endif
32210
32211 _ACEOF
32212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32213   $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
32214   gl_asmext='asm'
32215      gl_c_asm_opt='-c -Fa'
32216
32217 else
32218   gl_asmext='s'
32219      gl_c_asm_opt='-S'
32220
32221 fi
32222 rm -f conftest*
32223
32224
32225
32226
32227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
32228 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
32229 if ${gl_cv_prog_as_underscore+:} false; then :
32230   $as_echo_n "(cached) " >&6
32231 else
32232   cat > conftest.c <<EOF
32233 #ifdef __cplusplus
32234 extern "C" int foo (void);
32235 #endif
32236 int foo(void) { return 0; }
32237 EOF
32238      # Look for the assembly language name in the .s file.
32239      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
32240   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32241   (eval $ac_try) 2>&5
32242   ac_status=$?
32243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32244   test $ac_status = 0; }; } >/dev/null 2>&1
32245      if grep _foo conftest.$gl_asmext >/dev/null ; then
32246        gl_cv_prog_as_underscore=yes
32247      else
32248        gl_cv_prog_as_underscore=no
32249      fi
32250      rm -f conftest*
32251
32252 fi
32253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
32254 $as_echo "$gl_cv_prog_as_underscore" >&6; }
32255   if test $gl_cv_prog_as_underscore = yes; then
32256     USER_LABEL_PREFIX=_
32257   else
32258     USER_LABEL_PREFIX=
32259   fi
32260
32261 cat >>confdefs.h <<_ACEOF
32262 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
32263 _ACEOF
32264
32265   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
32266
32267
32268
32269
32270
32271
32272
32273
32274
32275
32276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
32277 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
32278 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
32279   $as_echo_n "(cached) " >&6
32280 else
32281
32282       if test "$cross_compiling" = yes; then :
32283
32284          case "$host_os" in
32285                                  # Guess yes on glibc systems.
32286            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
32287                                  # Guess yes on FreeBSD >= 5.
32288            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
32289            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
32290                                  # Guess yes on Mac OS X >= 10.3.
32291            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
32292            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
32293                                  # Guess yes on OpenBSD >= 3.9.
32294            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
32295                                  gl_cv_func_snprintf_retval_c99="guessing no";;
32296            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
32297                                  # Guess yes on Solaris >= 2.10.
32298            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
32299            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
32300                                  # Guess yes on AIX >= 4.
32301            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
32302            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
32303                                  # Guess yes on NetBSD >= 3.
32304            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
32305                                  gl_cv_func_snprintf_retval_c99="guessing no";;
32306            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
32307                                  # Guess yes on BeOS.
32308            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
32309                                  # If we don't know, assume the worst.
32310            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
32311          esac
32312
32313 else
32314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32315 /* end confdefs.h.  */
32316
32317 #include <stdio.h>
32318 #include <string.h>
32319 #if HAVE_SNPRINTF
32320 # define my_snprintf snprintf
32321 #else
32322 # include <stdarg.h>
32323 static int my_snprintf (char *buf, int size, const char *format, ...)
32324 {
32325   va_list args;
32326   int ret;
32327   va_start (args, format);
32328   ret = vsnprintf (buf, size, format, args);
32329   va_end (args);
32330   return ret;
32331 }
32332 #endif
32333 static char buf[100];
32334 int main ()
32335 {
32336   strcpy (buf, "ABCDEF");
32337   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
32338     return 1;
32339   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
32340     return 2;
32341   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
32342     return 3;
32343   return 0;
32344 }
32345 _ACEOF
32346 if ac_fn_c_try_run "$LINENO"; then :
32347   gl_cv_func_snprintf_retval_c99=yes
32348 else
32349   gl_cv_func_snprintf_retval_c99=no
32350 fi
32351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32352   conftest.$ac_objext conftest.beam conftest.$ac_ext
32353 fi
32354
32355
32356 fi
32357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
32358 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
32359
32360 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
32361 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
32362   ac_have_decl=1
32363 else
32364   ac_have_decl=0
32365 fi
32366
32367 cat >>confdefs.h <<_ACEOF
32368 #define HAVE_DECL_SNPRINTF $ac_have_decl
32369 _ACEOF
32370
32371
32372
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
32374 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
32375 if ${ac_cv_header_stdbool_h+:} false; then :
32376   $as_echo_n "(cached) " >&6
32377 else
32378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32379 /* end confdefs.h.  */
32380
32381              #include <stdbool.h>
32382              #ifndef bool
32383               "error: bool is not defined"
32384              #endif
32385              #ifndef false
32386               "error: false is not defined"
32387              #endif
32388              #if false
32389               "error: false is not 0"
32390              #endif
32391              #ifndef true
32392               "error: true is not defined"
32393              #endif
32394              #if true != 1
32395               "error: true is not 1"
32396              #endif
32397              #ifndef __bool_true_false_are_defined
32398               "error: __bool_true_false_are_defined is not defined"
32399              #endif
32400
32401              struct s { _Bool s: 1; _Bool t; } s;
32402
32403              char a[true == 1 ? 1 : -1];
32404              char b[false == 0 ? 1 : -1];
32405              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
32406              char d[(bool) 0.5 == true ? 1 : -1];
32407              /* See body of main program for 'e'.  */
32408              char f[(_Bool) 0.0 == false ? 1 : -1];
32409              char g[true];
32410              char h[sizeof (_Bool)];
32411              char i[sizeof s.t];
32412              enum { j = false, k = true, l = false * true, m = true * 256 };
32413              /* The following fails for
32414                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
32415              _Bool n[m];
32416              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
32417              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
32418              /* Catch a bug in an HP-UX C compiler.  See
32419                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
32420                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
32421               */
32422              _Bool q = true;
32423              _Bool *pq = &q;
32424
32425 int
32426 main ()
32427 {
32428
32429              bool e = &s;
32430              *pq |= q;
32431              *pq |= ! q;
32432              /* Refer to every declared value, to avoid compiler optimizations.  */
32433              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
32434                      + !m + !n + !o + !p + !q + !pq);
32435
32436   ;
32437   return 0;
32438 }
32439 _ACEOF
32440 if ac_fn_c_try_compile "$LINENO"; then :
32441   ac_cv_header_stdbool_h=yes
32442 else
32443   ac_cv_header_stdbool_h=no
32444 fi
32445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32446 fi
32447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
32448 $as_echo "$ac_cv_header_stdbool_h" >&6; }
32449    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
32450 if test "x$ac_cv_type__Bool" = xyes; then :
32451
32452 cat >>confdefs.h <<_ACEOF
32453 #define HAVE__BOOL 1
32454 _ACEOF
32455
32456
32457 fi
32458
32459
32460
32461
32462
32463
32464
32465   if test $ac_cv_type_long_long_int = yes; then
32466     HAVE_LONG_LONG_INT=1
32467   else
32468     HAVE_LONG_LONG_INT=0
32469   fi
32470
32471
32472   if test $ac_cv_type_unsigned_long_long_int = yes; then
32473     HAVE_UNSIGNED_LONG_LONG_INT=1
32474   else
32475     HAVE_UNSIGNED_LONG_LONG_INT=0
32476   fi
32477
32478
32479
32480   if test $ac_cv_header_wchar_h = yes; then
32481     HAVE_WCHAR_H=1
32482   else
32483     HAVE_WCHAR_H=0
32484   fi
32485
32486
32487       if test $ac_cv_header_inttypes_h = yes; then
32488     HAVE_INTTYPES_H=1
32489   else
32490     HAVE_INTTYPES_H=0
32491   fi
32492
32493
32494       if test $ac_cv_header_sys_types_h = yes; then
32495     HAVE_SYS_TYPES_H=1
32496   else
32497     HAVE_SYS_TYPES_H=0
32498   fi
32499
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510      if test $gl_cv_have_include_next = yes; then
32511        gl_cv_next_stdint_h='<'stdint.h'>'
32512      else
32513        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
32514 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
32515 if ${gl_cv_next_stdint_h+:} false; then :
32516   $as_echo_n "(cached) " >&6
32517 else
32518
32519              if test $ac_cv_header_stdint_h = yes; then
32520
32521
32522
32523
32524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32525 /* end confdefs.h.  */
32526 #include <stdint.h>
32527 _ACEOF
32528                 case "$host_os" in
32529     aix*) gl_absname_cpp="$ac_cpp -C" ;;
32530     *)    gl_absname_cpp="$ac_cpp" ;;
32531   esac
32532
32533   case "$host_os" in
32534     mingw*)
32535                                           gl_dirsep_regex='[/\\]'
32536       ;;
32537     *)
32538       gl_dirsep_regex='\/'
32539       ;;
32540   esac
32541       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32542   gl_header_literal_regex=`echo 'stdint.h' \
32543                            | sed -e "$gl_make_literal_regex_sed"`
32544   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32545       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32546       s|^/[^/]|//&|
32547       p
32548       q
32549     }'
32550
32551         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32552   sed -n "$gl_absolute_header_sed"`
32553
32554            gl_header=$gl_cv_absolute_stdint_h
32555            gl_cv_next_stdint_h='"'$gl_header'"'
32556           else
32557                gl_cv_next_stdint_h='<'stdint.h'>'
32558              fi
32559
32560
32561 fi
32562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
32563 $as_echo "$gl_cv_next_stdint_h" >&6; }
32564      fi
32565      NEXT_STDINT_H=$gl_cv_next_stdint_h
32566
32567      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32568        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32569        gl_next_as_first_directive='<'stdint.h'>'
32570      else
32571        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32572        gl_next_as_first_directive=$gl_cv_next_stdint_h
32573      fi
32574      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
32575
32576
32577
32578
32579   if test $ac_cv_header_stdint_h = yes; then
32580     HAVE_STDINT_H=1
32581   else
32582     HAVE_STDINT_H=0
32583   fi
32584
32585
32586     if test $ac_cv_header_stdint_h = yes; then
32587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
32588 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
32589 if ${gl_cv_header_working_stdint_h+:} false; then :
32590   $as_echo_n "(cached) " >&6
32591 else
32592   gl_cv_header_working_stdint_h=no
32593        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32594 /* end confdefs.h.  */
32595
32596
32597 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
32598 #include <stdint.h>
32599 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
32600 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
32601 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
32602 #endif
32603
32604
32605   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32606      included before <wchar.h>.  */
32607   #include <stddef.h>
32608   #include <signal.h>
32609   #if HAVE_WCHAR_H
32610   # include <stdio.h>
32611   # include <time.h>
32612   # include <wchar.h>
32613   #endif
32614
32615
32616 #ifdef INT8_MAX
32617 int8_t a1 = INT8_MAX;
32618 int8_t a1min = INT8_MIN;
32619 #endif
32620 #ifdef INT16_MAX
32621 int16_t a2 = INT16_MAX;
32622 int16_t a2min = INT16_MIN;
32623 #endif
32624 #ifdef INT32_MAX
32625 int32_t a3 = INT32_MAX;
32626 int32_t a3min = INT32_MIN;
32627 #endif
32628 #ifdef INT64_MAX
32629 int64_t a4 = INT64_MAX;
32630 int64_t a4min = INT64_MIN;
32631 #endif
32632 #ifdef UINT8_MAX
32633 uint8_t b1 = UINT8_MAX;
32634 #else
32635 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
32636 #endif
32637 #ifdef UINT16_MAX
32638 uint16_t b2 = UINT16_MAX;
32639 #endif
32640 #ifdef UINT32_MAX
32641 uint32_t b3 = UINT32_MAX;
32642 #endif
32643 #ifdef UINT64_MAX
32644 uint64_t b4 = UINT64_MAX;
32645 #endif
32646 int_least8_t c1 = INT8_C (0x7f);
32647 int_least8_t c1max = INT_LEAST8_MAX;
32648 int_least8_t c1min = INT_LEAST8_MIN;
32649 int_least16_t c2 = INT16_C (0x7fff);
32650 int_least16_t c2max = INT_LEAST16_MAX;
32651 int_least16_t c2min = INT_LEAST16_MIN;
32652 int_least32_t c3 = INT32_C (0x7fffffff);
32653 int_least32_t c3max = INT_LEAST32_MAX;
32654 int_least32_t c3min = INT_LEAST32_MIN;
32655 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
32656 int_least64_t c4max = INT_LEAST64_MAX;
32657 int_least64_t c4min = INT_LEAST64_MIN;
32658 uint_least8_t d1 = UINT8_C (0xff);
32659 uint_least8_t d1max = UINT_LEAST8_MAX;
32660 uint_least16_t d2 = UINT16_C (0xffff);
32661 uint_least16_t d2max = UINT_LEAST16_MAX;
32662 uint_least32_t d3 = UINT32_C (0xffffffff);
32663 uint_least32_t d3max = UINT_LEAST32_MAX;
32664 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
32665 uint_least64_t d4max = UINT_LEAST64_MAX;
32666 int_fast8_t e1 = INT_FAST8_MAX;
32667 int_fast8_t e1min = INT_FAST8_MIN;
32668 int_fast16_t e2 = INT_FAST16_MAX;
32669 int_fast16_t e2min = INT_FAST16_MIN;
32670 int_fast32_t e3 = INT_FAST32_MAX;
32671 int_fast32_t e3min = INT_FAST32_MIN;
32672 int_fast64_t e4 = INT_FAST64_MAX;
32673 int_fast64_t e4min = INT_FAST64_MIN;
32674 uint_fast8_t f1 = UINT_FAST8_MAX;
32675 uint_fast16_t f2 = UINT_FAST16_MAX;
32676 uint_fast32_t f3 = UINT_FAST32_MAX;
32677 uint_fast64_t f4 = UINT_FAST64_MAX;
32678 #ifdef INTPTR_MAX
32679 intptr_t g = INTPTR_MAX;
32680 intptr_t gmin = INTPTR_MIN;
32681 #endif
32682 #ifdef UINTPTR_MAX
32683 uintptr_t h = UINTPTR_MAX;
32684 #endif
32685 intmax_t i = INTMAX_MAX;
32686 uintmax_t j = UINTMAX_MAX;
32687
32688 #include <limits.h> /* for CHAR_BIT */
32689 #define TYPE_MINIMUM(t) \
32690   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
32691 #define TYPE_MAXIMUM(t) \
32692   ((t) ((t) 0 < (t) -1 \
32693         ? (t) -1 \
32694         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
32695 struct s {
32696   int check_PTRDIFF:
32697       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
32698       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
32699       ? 1 : -1;
32700   /* Detect bug in FreeBSD 6.0 / ia64.  */
32701   int check_SIG_ATOMIC:
32702       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
32703       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
32704       ? 1 : -1;
32705   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
32706   int check_WCHAR:
32707       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
32708       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
32709       ? 1 : -1;
32710   /* Detect bug in mingw.  */
32711   int check_WINT:
32712       WINT_MIN == TYPE_MINIMUM (wint_t)
32713       && WINT_MAX == TYPE_MAXIMUM (wint_t)
32714       ? 1 : -1;
32715
32716   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
32717   int check_UINT8_C:
32718         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
32719   int check_UINT16_C:
32720         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
32721
32722   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
32723 #ifdef UINT8_MAX
32724   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
32725 #endif
32726 #ifdef UINT16_MAX
32727   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
32728 #endif
32729 #ifdef UINT32_MAX
32730   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
32731 #endif
32732 #ifdef UINT64_MAX
32733   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
32734 #endif
32735   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
32736   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
32737   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
32738   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
32739   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
32740   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
32741   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
32742   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
32743   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
32744   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
32745   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
32746 };
32747
32748 int
32749 main ()
32750 {
32751
32752   ;
32753   return 0;
32754 }
32755 _ACEOF
32756 if ac_fn_c_try_compile "$LINENO"; then :
32757                                                     if test "$cross_compiling" = yes; then :
32758                  gl_cv_header_working_stdint_h=yes
32759
32760 else
32761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32762 /* end confdefs.h.  */
32763
32764
32765 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
32766 #include <stdint.h>
32767
32768
32769   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32770      included before <wchar.h>.  */
32771   #include <stddef.h>
32772   #include <signal.h>
32773   #if HAVE_WCHAR_H
32774   # include <stdio.h>
32775   # include <time.h>
32776   # include <wchar.h>
32777   #endif
32778
32779
32780 #include <stdio.h>
32781 #include <string.h>
32782 #define MVAL(macro) MVAL1(macro)
32783 #define MVAL1(expression) #expression
32784 static const char *macro_values[] =
32785   {
32786 #ifdef INT8_MAX
32787     MVAL (INT8_MAX),
32788 #endif
32789 #ifdef INT16_MAX
32790     MVAL (INT16_MAX),
32791 #endif
32792 #ifdef INT32_MAX
32793     MVAL (INT32_MAX),
32794 #endif
32795 #ifdef INT64_MAX
32796     MVAL (INT64_MAX),
32797 #endif
32798 #ifdef UINT8_MAX
32799     MVAL (UINT8_MAX),
32800 #endif
32801 #ifdef UINT16_MAX
32802     MVAL (UINT16_MAX),
32803 #endif
32804 #ifdef UINT32_MAX
32805     MVAL (UINT32_MAX),
32806 #endif
32807 #ifdef UINT64_MAX
32808     MVAL (UINT64_MAX),
32809 #endif
32810     NULL
32811   };
32812
32813 int
32814 main ()
32815 {
32816
32817   const char **mv;
32818   for (mv = macro_values; *mv != NULL; mv++)
32819     {
32820       const char *value = *mv;
32821       /* Test whether it looks like a cast expression.  */
32822       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
32823           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
32824           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
32825           || strncmp (value, "((int)"/*)*/, 6) == 0
32826           || strncmp (value, "((signed short)"/*)*/, 15) == 0
32827           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
32828         return mv - macro_values + 1;
32829     }
32830   return 0;
32831
32832   ;
32833   return 0;
32834 }
32835 _ACEOF
32836 if ac_fn_c_try_run "$LINENO"; then :
32837   gl_cv_header_working_stdint_h=yes
32838 fi
32839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32840   conftest.$ac_objext conftest.beam conftest.$ac_ext
32841 fi
32842
32843
32844 fi
32845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32846
32847 fi
32848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
32849 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
32850   fi
32851   if test "$gl_cv_header_working_stdint_h" = yes; then
32852     STDINT_H=
32853   else
32854             for ac_header in sys/inttypes.h sys/bitypes.h
32855 do :
32856   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32857 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32858 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32859   cat >>confdefs.h <<_ACEOF
32860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32861 _ACEOF
32862
32863 fi
32864
32865 done
32866
32867     if test $ac_cv_header_sys_inttypes_h = yes; then
32868       HAVE_SYS_INTTYPES_H=1
32869     else
32870       HAVE_SYS_INTTYPES_H=0
32871     fi
32872
32873     if test $ac_cv_header_sys_bitypes_h = yes; then
32874       HAVE_SYS_BITYPES_H=1
32875     else
32876       HAVE_SYS_BITYPES_H=0
32877     fi
32878
32879
32880
32881
32882   if test $APPLE_UNIVERSAL_BUILD = 0; then
32883
32884
32885   for gltype in ptrdiff_t size_t ; do
32886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
32887 $as_echo_n "checking for bit size of $gltype... " >&6; }
32888 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
32889   $as_echo_n "(cached) " >&6
32890 else
32891   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
32892   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32893      included before <wchar.h>.  */
32894   #include <stddef.h>
32895   #include <signal.h>
32896   #if HAVE_WCHAR_H
32897   # include <stdio.h>
32898   # include <time.h>
32899   # include <wchar.h>
32900   #endif
32901
32902 #include <limits.h>"; then :
32903
32904 else
32905   result=unknown
32906 fi
32907
32908        eval gl_cv_bitsizeof_${gltype}=\$result
32909
32910 fi
32911 eval ac_res=\$gl_cv_bitsizeof_${gltype}
32912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32913 $as_echo "$ac_res" >&6; }
32914     eval result=\$gl_cv_bitsizeof_${gltype}
32915     if test $result = unknown; then
32916                                                 result=0
32917     fi
32918     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32919     cat >>confdefs.h <<_ACEOF
32920 #define BITSIZEOF_${GLTYPE} $result
32921 _ACEOF
32922
32923     eval BITSIZEOF_${GLTYPE}=\$result
32924   done
32925
32926
32927   fi
32928
32929
32930   for gltype in sig_atomic_t wchar_t wint_t ; do
32931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
32932 $as_echo_n "checking for bit size of $gltype... " >&6; }
32933 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
32934   $as_echo_n "(cached) " >&6
32935 else
32936   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
32937   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32938      included before <wchar.h>.  */
32939   #include <stddef.h>
32940   #include <signal.h>
32941   #if HAVE_WCHAR_H
32942   # include <stdio.h>
32943   # include <time.h>
32944   # include <wchar.h>
32945   #endif
32946
32947 #include <limits.h>"; then :
32948
32949 else
32950   result=unknown
32951 fi
32952
32953        eval gl_cv_bitsizeof_${gltype}=\$result
32954
32955 fi
32956 eval ac_res=\$gl_cv_bitsizeof_${gltype}
32957                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32958 $as_echo "$ac_res" >&6; }
32959     eval result=\$gl_cv_bitsizeof_${gltype}
32960     if test $result = unknown; then
32961                                                 result=0
32962     fi
32963     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32964     cat >>confdefs.h <<_ACEOF
32965 #define BITSIZEOF_${GLTYPE} $result
32966 _ACEOF
32967
32968     eval BITSIZEOF_${GLTYPE}=\$result
32969   done
32970
32971
32972
32973
32974   for gltype in sig_atomic_t wchar_t wint_t ; do
32975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
32976 $as_echo_n "checking whether $gltype is signed... " >&6; }
32977 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
32978   $as_echo_n "(cached) " >&6
32979 else
32980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32981 /* end confdefs.h.  */
32982
32983   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
32984      included before <wchar.h>.  */
32985   #include <stddef.h>
32986   #include <signal.h>
32987   #if HAVE_WCHAR_H
32988   # include <stdio.h>
32989   # include <time.h>
32990   # include <wchar.h>
32991   #endif
32992
32993             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
32994 int
32995 main ()
32996 {
32997
32998   ;
32999   return 0;
33000 }
33001 _ACEOF
33002 if ac_fn_c_try_compile "$LINENO"; then :
33003   result=yes
33004 else
33005   result=no
33006 fi
33007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33008        eval gl_cv_type_${gltype}_signed=\$result
33009
33010 fi
33011 eval ac_res=\$gl_cv_type_${gltype}_signed
33012                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33013 $as_echo "$ac_res" >&6; }
33014     eval result=\$gl_cv_type_${gltype}_signed
33015     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
33016     if test "$result" = yes; then
33017       cat >>confdefs.h <<_ACEOF
33018 #define HAVE_SIGNED_${GLTYPE} 1
33019 _ACEOF
33020
33021       eval HAVE_SIGNED_${GLTYPE}=1
33022     else
33023       eval HAVE_SIGNED_${GLTYPE}=0
33024     fi
33025   done
33026
33027
33028   gl_cv_type_ptrdiff_t_signed=yes
33029   gl_cv_type_size_t_signed=no
33030   if test $APPLE_UNIVERSAL_BUILD = 0; then
33031
33032
33033   for gltype in ptrdiff_t size_t ; do
33034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
33035 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
33036 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
33037   $as_echo_n "(cached) " >&6
33038 else
33039   eval gl_cv_type_${gltype}_suffix=no
33040        eval result=\$gl_cv_type_${gltype}_signed
33041        if test "$result" = yes; then
33042          glsufu=
33043        else
33044          glsufu=u
33045        fi
33046        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
33047          case $glsuf in
33048            '')  gltype1='int';;
33049            l)   gltype1='long int';;
33050            ll)  gltype1='long long int';;
33051            i64) gltype1='__int64';;
33052            u)   gltype1='unsigned int';;
33053            ul)  gltype1='unsigned long int';;
33054            ull) gltype1='unsigned long long int';;
33055            ui64)gltype1='unsigned __int64';;
33056          esac
33057          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33058 /* end confdefs.h.  */
33059
33060   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33061      included before <wchar.h>.  */
33062   #include <stddef.h>
33063   #include <signal.h>
33064   #if HAVE_WCHAR_H
33065   # include <stdio.h>
33066   # include <time.h>
33067   # include <wchar.h>
33068   #endif
33069
33070               extern $gltype foo;
33071               extern $gltype1 foo;
33072 int
33073 main ()
33074 {
33075
33076   ;
33077   return 0;
33078 }
33079 _ACEOF
33080 if ac_fn_c_try_compile "$LINENO"; then :
33081   eval gl_cv_type_${gltype}_suffix=\$glsuf
33082 fi
33083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33084          eval result=\$gl_cv_type_${gltype}_suffix
33085          test "$result" != no && break
33086        done
33087 fi
33088 eval ac_res=\$gl_cv_type_${gltype}_suffix
33089                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33090 $as_echo "$ac_res" >&6; }
33091     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
33092     eval result=\$gl_cv_type_${gltype}_suffix
33093     test "$result" = no && result=
33094     eval ${GLTYPE}_SUFFIX=\$result
33095     cat >>confdefs.h <<_ACEOF
33096 #define ${GLTYPE}_SUFFIX $result
33097 _ACEOF
33098
33099   done
33100
33101
33102   fi
33103
33104
33105   for gltype in sig_atomic_t wchar_t wint_t ; do
33106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
33107 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
33108 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
33109   $as_echo_n "(cached) " >&6
33110 else
33111   eval gl_cv_type_${gltype}_suffix=no
33112        eval result=\$gl_cv_type_${gltype}_signed
33113        if test "$result" = yes; then
33114          glsufu=
33115        else
33116          glsufu=u
33117        fi
33118        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
33119          case $glsuf in
33120            '')  gltype1='int';;
33121            l)   gltype1='long int';;
33122            ll)  gltype1='long long int';;
33123            i64) gltype1='__int64';;
33124            u)   gltype1='unsigned int';;
33125            ul)  gltype1='unsigned long int';;
33126            ull) gltype1='unsigned long long int';;
33127            ui64)gltype1='unsigned __int64';;
33128          esac
33129          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33130 /* end confdefs.h.  */
33131
33132   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33133      included before <wchar.h>.  */
33134   #include <stddef.h>
33135   #include <signal.h>
33136   #if HAVE_WCHAR_H
33137   # include <stdio.h>
33138   # include <time.h>
33139   # include <wchar.h>
33140   #endif
33141
33142               extern $gltype foo;
33143               extern $gltype1 foo;
33144 int
33145 main ()
33146 {
33147
33148   ;
33149   return 0;
33150 }
33151 _ACEOF
33152 if ac_fn_c_try_compile "$LINENO"; then :
33153   eval gl_cv_type_${gltype}_suffix=\$glsuf
33154 fi
33155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33156          eval result=\$gl_cv_type_${gltype}_suffix
33157          test "$result" != no && break
33158        done
33159 fi
33160 eval ac_res=\$gl_cv_type_${gltype}_suffix
33161                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33162 $as_echo "$ac_res" >&6; }
33163     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
33164     eval result=\$gl_cv_type_${gltype}_suffix
33165     test "$result" = no && result=
33166     eval ${GLTYPE}_SUFFIX=\$result
33167     cat >>confdefs.h <<_ACEOF
33168 #define ${GLTYPE}_SUFFIX $result
33169 _ACEOF
33170
33171   done
33172
33173
33174
33175           if test $BITSIZEOF_WINT_T -lt 32; then
33176     BITSIZEOF_WINT_T=32
33177   fi
33178
33179     STDINT_H=stdint.h
33180   fi
33181
33182    if test -n "$STDINT_H"; then
33183   GL_GENERATE_STDINT_H_TRUE=
33184   GL_GENERATE_STDINT_H_FALSE='#'
33185 else
33186   GL_GENERATE_STDINT_H_TRUE='#'
33187   GL_GENERATE_STDINT_H_FALSE=
33188 fi
33189
33190
33191 ac_fn_c_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default"
33192 if test "x$ac_cv_have_decl_stpncpy" = xyes; then :
33193   ac_have_decl=1
33194 else
33195   ac_have_decl=0
33196 fi
33197
33198 cat >>confdefs.h <<_ACEOF
33199 #define HAVE_DECL_STPNCPY $ac_have_decl
33200 _ACEOF
33201
33202
33203
33204
33205      REPLACE_STRERROR_0=0
33206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
33207 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
33208 if ${gl_cv_func_strerror_0_works+:} false; then :
33209   $as_echo_n "(cached) " >&6
33210 else
33211   if test "$cross_compiling" = yes; then :
33212   case "$host_os" in
33213                  # Guess yes on glibc systems.
33214          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
33215                  # If we don't know, assume the worst.
33216          *)      gl_cv_func_strerror_0_works="guessing no" ;;
33217        esac
33218
33219 else
33220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33221 /* end confdefs.h.  */
33222 #include <string.h>
33223            #include <errno.h>
33224
33225 int
33226 main ()
33227 {
33228 int result = 0;
33229            char *str;
33230            errno = 0;
33231            str = strerror (0);
33232            if (!*str) result |= 1;
33233            if (errno) result |= 2;
33234            if (strstr (str, "nknown") || strstr (str, "ndefined"))
33235              result |= 4;
33236            return result;
33237   ;
33238   return 0;
33239 }
33240 _ACEOF
33241 if ac_fn_c_try_run "$LINENO"; then :
33242   gl_cv_func_strerror_0_works=yes
33243 else
33244   gl_cv_func_strerror_0_works=no
33245 fi
33246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33247   conftest.$ac_objext conftest.beam conftest.$ac_ext
33248 fi
33249
33250
33251 fi
33252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
33253 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
33254   case "$gl_cv_func_strerror_0_works" in
33255     *yes) ;;
33256     *)
33257       REPLACE_STRERROR_0=1
33258
33259 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
33260
33261       ;;
33262   esac
33263
33264
33265
33266
33267
33268
33269
33270
33271
33272
33273
33274
33275      if test $gl_cv_have_include_next = yes; then
33276        gl_cv_next_string_h='<'string.h'>'
33277      else
33278        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
33279 $as_echo_n "checking absolute name of <string.h>... " >&6; }
33280 if ${gl_cv_next_string_h+:} false; then :
33281   $as_echo_n "(cached) " >&6
33282 else
33283
33284
33285
33286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33287 /* end confdefs.h.  */
33288 #include <string.h>
33289 _ACEOF
33290                 case "$host_os" in
33291     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33292     *)    gl_absname_cpp="$ac_cpp" ;;
33293   esac
33294
33295   case "$host_os" in
33296     mingw*)
33297                                           gl_dirsep_regex='[/\\]'
33298       ;;
33299     *)
33300       gl_dirsep_regex='\/'
33301       ;;
33302   esac
33303       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33304   gl_header_literal_regex=`echo 'string.h' \
33305                            | sed -e "$gl_make_literal_regex_sed"`
33306   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33307       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33308       s|^/[^/]|//&|
33309       p
33310       q
33311     }'
33312
33313         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33314   sed -n "$gl_absolute_header_sed"`
33315
33316            gl_header=$gl_cv_absolute_string_h
33317            gl_cv_next_string_h='"'$gl_header'"'
33318
33319
33320 fi
33321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
33322 $as_echo "$gl_cv_next_string_h" >&6; }
33323      fi
33324      NEXT_STRING_H=$gl_cv_next_string_h
33325
33326      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33327        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33328        gl_next_as_first_directive='<'string.h'>'
33329      else
33330        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33331        gl_next_as_first_directive=$gl_cv_next_string_h
33332      fi
33333      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
33334
33335
33336
33337
33338
33339
33340     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
33341     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33343 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33344 if eval \${$as_gl_Symbol+:} false; then :
33345   $as_echo_n "(cached) " >&6
33346 else
33347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33348 /* end confdefs.h.  */
33349 #include <string.h>
33350
33351 int
33352 main ()
33353 {
33354 #undef $gl_func
33355   (void) $gl_func;
33356   ;
33357   return 0;
33358 }
33359 _ACEOF
33360 if ac_fn_c_try_compile "$LINENO"; then :
33361   eval "$as_gl_Symbol=yes"
33362 else
33363   eval "$as_gl_Symbol=no"
33364 fi
33365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33366 fi
33367 eval ac_res=\$$as_gl_Symbol
33368                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33369 $as_echo "$ac_res" >&6; }
33370     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33371   cat >>confdefs.h <<_ACEOF
33372 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33373 _ACEOF
33374
33375                      eval ac_cv_have_decl_$gl_func=yes
33376 fi
33377       done
33378
33379
33380 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
33381 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
33382   ac_have_decl=1
33383 else
33384   ac_have_decl=0
33385 fi
33386
33387 cat >>confdefs.h <<_ACEOF
33388 #define HAVE_DECL_STRNLEN $ac_have_decl
33389 _ACEOF
33390
33391
33392
33393
33394   if test "$gl_cv_func_memchr_works" != yes; then
33395     REPLACE_STRSTR=1
33396   else
33397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
33398 $as_echo_n "checking whether strstr works... " >&6; }
33399 if ${gl_cv_func_strstr_works_always+:} false; then :
33400   $as_echo_n "(cached) " >&6
33401 else
33402   if test "$cross_compiling" = yes; then :
33403                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33404 /* end confdefs.h.  */
33405
33406 #ifdef __GNU_LIBRARY__
33407  #include <features.h>
33408  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
33409      || defined __UCLIBC__
33410   Lucky user
33411  #endif
33412 #elif defined __CYGWIN__
33413  #include <cygwin/version.h>
33414  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
33415   Lucky user
33416  #endif
33417 #else
33418   Lucky user
33419 #endif
33420
33421 _ACEOF
33422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33423   $EGREP "Lucky user" >/dev/null 2>&1; then :
33424   gl_cv_func_strstr_works_always="guessing yes"
33425 else
33426   gl_cv_func_strstr_works_always="guessing no"
33427 fi
33428 rm -f conftest*
33429
33430
33431 else
33432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33433 /* end confdefs.h.  */
33434
33435 #include <string.h> /* for strstr */
33436 #define P "_EF_BF_BD"
33437 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
33438 #define NEEDLE P P P P P
33439
33440 int
33441 main ()
33442 {
33443 return !!strstr (HAYSTACK, NEEDLE);
33444
33445   ;
33446   return 0;
33447 }
33448 _ACEOF
33449 if ac_fn_c_try_run "$LINENO"; then :
33450   gl_cv_func_strstr_works_always=yes
33451 else
33452   gl_cv_func_strstr_works_always=no
33453 fi
33454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33455   conftest.$ac_objext conftest.beam conftest.$ac_ext
33456 fi
33457
33458
33459 fi
33460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
33461 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
33462     case "$gl_cv_func_strstr_works_always" in
33463       *yes) ;;
33464       *)
33465         REPLACE_STRSTR=1
33466         ;;
33467     esac
33468   fi
33469
33470
33471   GNULIB_PSELECT=0;
33472   GNULIB_SELECT=0;
33473     HAVE_PSELECT=1;
33474   REPLACE_PSELECT=0;
33475   REPLACE_SELECT=0;
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489
33490
33491
33492
33493
33494
33495
33496
33497      if test $gl_cv_have_include_next = yes; then
33498        gl_cv_next_sys_types_h='<'sys/types.h'>'
33499      else
33500        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
33501 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
33502 if ${gl_cv_next_sys_types_h+:} false; then :
33503   $as_echo_n "(cached) " >&6
33504 else
33505
33506
33507
33508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33509 /* end confdefs.h.  */
33510 #include <sys/types.h>
33511 _ACEOF
33512                 case "$host_os" in
33513     aix*) gl_absname_cpp="$ac_cpp -C" ;;
33514     *)    gl_absname_cpp="$ac_cpp" ;;
33515   esac
33516
33517   case "$host_os" in
33518     mingw*)
33519                                           gl_dirsep_regex='[/\\]'
33520       ;;
33521     *)
33522       gl_dirsep_regex='\/'
33523       ;;
33524   esac
33525       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33526   gl_header_literal_regex=`echo 'sys/types.h' \
33527                            | sed -e "$gl_make_literal_regex_sed"`
33528   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33529       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33530       s|^/[^/]|//&|
33531       p
33532       q
33533     }'
33534
33535         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33536   sed -n "$gl_absolute_header_sed"`
33537
33538            gl_header=$gl_cv_absolute_sys_types_h
33539            gl_cv_next_sys_types_h='"'$gl_header'"'
33540
33541
33542 fi
33543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
33544 $as_echo "$gl_cv_next_sys_types_h" >&6; }
33545      fi
33546      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
33547
33548      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33549        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33550        gl_next_as_first_directive='<'sys/types.h'>'
33551      else
33552        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33553        gl_next_as_first_directive=$gl_cv_next_sys_types_h
33554      fi
33555      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
33556
33557
33558
33559
33560
33561
33562
33563
33564
33565
33566
33567
33568   GNULIB_WAITPID=0;
33569
33570
33571
33572
33573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether curses libraries may be used" >&5
33574 $as_echo_n "checking whether curses libraries may be used... " >&6; }
33575   # Check whether --enable-curses was given.
33576 if test "${enable_curses+set}" = set; then :
33577   enableval=$enable_curses; gl_curses_allowed="$enableval"
33578 else
33579   gl_curses_allowed=yes
33580 fi
33581
33582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_curses_allowed" >&5
33583 $as_echo "$gl_curses_allowed" >&6; }
33584
33585
33586
33587
33588
33589
33590
33591
33592   if test "$gl_curses_allowed" != no; then
33593
33594
33595
33596
33597
33598
33599
33600
33601     use_additional=yes
33602
33603   acl_save_prefix="$prefix"
33604   prefix="$acl_final_prefix"
33605   acl_save_exec_prefix="$exec_prefix"
33606   exec_prefix="$acl_final_exec_prefix"
33607
33608     eval additional_includedir=\"$includedir\"
33609     eval additional_libdir=\"$libdir\"
33610
33611   exec_prefix="$acl_save_exec_prefix"
33612   prefix="$acl_save_prefix"
33613
33614
33615 # Check whether --with-libncurses-prefix was given.
33616 if test "${with_libncurses_prefix+set}" = set; then :
33617   withval=$with_libncurses_prefix;
33618     if test "X$withval" = "Xno"; then
33619       use_additional=no
33620     else
33621       if test "X$withval" = "X"; then
33622
33623   acl_save_prefix="$prefix"
33624   prefix="$acl_final_prefix"
33625   acl_save_exec_prefix="$exec_prefix"
33626   exec_prefix="$acl_final_exec_prefix"
33627
33628           eval additional_includedir=\"$includedir\"
33629           eval additional_libdir=\"$libdir\"
33630
33631   exec_prefix="$acl_save_exec_prefix"
33632   prefix="$acl_save_prefix"
33633
33634       else
33635         additional_includedir="$withval/include"
33636         additional_libdir="$withval/$acl_libdirstem"
33637         if test "$acl_libdirstem2" != "$acl_libdirstem" \
33638            && ! test -d "$withval/$acl_libdirstem"; then
33639           additional_libdir="$withval/$acl_libdirstem2"
33640         fi
33641       fi
33642     fi
33643
33644 fi
33645
33646       LIBNCURSES=
33647   LTLIBNCURSES=
33648   INCNCURSES=
33649   LIBNCURSES_PREFIX=
33650       HAVE_LIBNCURSES=
33651   rpathdirs=
33652   ltrpathdirs=
33653   names_already_handled=
33654   names_next_round='ncurses '
33655   while test -n "$names_next_round"; do
33656     names_this_round="$names_next_round"
33657     names_next_round=
33658     for name in $names_this_round; do
33659       already_handled=
33660       for n in $names_already_handled; do
33661         if test "$n" = "$name"; then
33662           already_handled=yes
33663           break
33664         fi
33665       done
33666       if test -z "$already_handled"; then
33667         names_already_handled="$names_already_handled $name"
33668                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
33669         eval value=\"\$HAVE_LIB$uppername\"
33670         if test -n "$value"; then
33671           if test "$value" = yes; then
33672             eval value=\"\$LIB$uppername\"
33673             test -z "$value" || LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$value"
33674             eval value=\"\$LTLIB$uppername\"
33675             test -z "$value" || LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$value"
33676           else
33677                                     :
33678           fi
33679         else
33680                               found_dir=
33681           found_la=
33682           found_so=
33683           found_a=
33684           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
33685           if test -n "$acl_shlibext"; then
33686             shrext=".$acl_shlibext"             # typically: shrext=.so
33687           else
33688             shrext=
33689           fi
33690           if test $use_additional = yes; then
33691             dir="$additional_libdir"
33692                                     if test -n "$acl_shlibext"; then
33693               if test -f "$dir/$libname$shrext"; then
33694                 found_dir="$dir"
33695                 found_so="$dir/$libname$shrext"
33696               else
33697                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33698                   ver=`(cd "$dir" && \
33699                         for f in "$libname$shrext".*; do echo "$f"; done \
33700                         | sed -e "s,^$libname$shrext\\\\.,," \
33701                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33702                         | sed 1q ) 2>/dev/null`
33703                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33704                     found_dir="$dir"
33705                     found_so="$dir/$libname$shrext.$ver"
33706                   fi
33707                 else
33708                   eval library_names=\"$acl_library_names_spec\"
33709                   for f in $library_names; do
33710                     if test -f "$dir/$f"; then
33711                       found_dir="$dir"
33712                       found_so="$dir/$f"
33713                       break
33714                     fi
33715                   done
33716                 fi
33717               fi
33718             fi
33719                         if test "X$found_dir" = "X"; then
33720               if test -f "$dir/$libname.$acl_libext"; then
33721                 found_dir="$dir"
33722                 found_a="$dir/$libname.$acl_libext"
33723               fi
33724             fi
33725             if test "X$found_dir" != "X"; then
33726               if test -f "$dir/$libname.la"; then
33727                 found_la="$dir/$libname.la"
33728               fi
33729             fi
33730           fi
33731           if test "X$found_dir" = "X"; then
33732             for x in $LDFLAGS $LTLIBNCURSES; do
33733
33734   acl_save_prefix="$prefix"
33735   prefix="$acl_final_prefix"
33736   acl_save_exec_prefix="$exec_prefix"
33737   exec_prefix="$acl_final_exec_prefix"
33738   eval x=\"$x\"
33739   exec_prefix="$acl_save_exec_prefix"
33740   prefix="$acl_save_prefix"
33741
33742               case "$x" in
33743                 -L*)
33744                   dir=`echo "X$x" | sed -e 's/^X-L//'`
33745                                     if test -n "$acl_shlibext"; then
33746                     if test -f "$dir/$libname$shrext"; then
33747                       found_dir="$dir"
33748                       found_so="$dir/$libname$shrext"
33749                     else
33750                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33751                         ver=`(cd "$dir" && \
33752                               for f in "$libname$shrext".*; do echo "$f"; done \
33753                               | sed -e "s,^$libname$shrext\\\\.,," \
33754                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33755                               | sed 1q ) 2>/dev/null`
33756                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33757                           found_dir="$dir"
33758                           found_so="$dir/$libname$shrext.$ver"
33759                         fi
33760                       else
33761                         eval library_names=\"$acl_library_names_spec\"
33762                         for f in $library_names; do
33763                           if test -f "$dir/$f"; then
33764                             found_dir="$dir"
33765                             found_so="$dir/$f"
33766                             break
33767                           fi
33768                         done
33769                       fi
33770                     fi
33771                   fi
33772                                     if test "X$found_dir" = "X"; then
33773                     if test -f "$dir/$libname.$acl_libext"; then
33774                       found_dir="$dir"
33775                       found_a="$dir/$libname.$acl_libext"
33776                     fi
33777                   fi
33778                   if test "X$found_dir" != "X"; then
33779                     if test -f "$dir/$libname.la"; then
33780                       found_la="$dir/$libname.la"
33781                     fi
33782                   fi
33783                   ;;
33784               esac
33785               if test "X$found_dir" != "X"; then
33786                 break
33787               fi
33788             done
33789           fi
33790           if test "X$found_dir" != "X"; then
33791                         LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$found_dir -l$name"
33792             if test "X$found_so" != "X"; then
33793                                                         if test "$enable_rpath" = no \
33794                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
33795                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
33796                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
33797               else
33798                                                                                 haveit=
33799                 for x in $ltrpathdirs; do
33800                   if test "X$x" = "X$found_dir"; then
33801                     haveit=yes
33802                     break
33803                   fi
33804                 done
33805                 if test -z "$haveit"; then
33806                   ltrpathdirs="$ltrpathdirs $found_dir"
33807                 fi
33808                                 if test "$acl_hardcode_direct" = yes; then
33809                                                       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
33810                 else
33811                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
33812                                                             LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
33813                                                             haveit=
33814                     for x in $rpathdirs; do
33815                       if test "X$x" = "X$found_dir"; then
33816                         haveit=yes
33817                         break
33818                       fi
33819                     done
33820                     if test -z "$haveit"; then
33821                       rpathdirs="$rpathdirs $found_dir"
33822                     fi
33823                   else
33824                                                                                 haveit=
33825                     for x in $LDFLAGS $LIBNCURSES; do
33826
33827   acl_save_prefix="$prefix"
33828   prefix="$acl_final_prefix"
33829   acl_save_exec_prefix="$exec_prefix"
33830   exec_prefix="$acl_final_exec_prefix"
33831   eval x=\"$x\"
33832   exec_prefix="$acl_save_exec_prefix"
33833   prefix="$acl_save_prefix"
33834
33835                       if test "X$x" = "X-L$found_dir"; then
33836                         haveit=yes
33837                         break
33838                       fi
33839                     done
33840                     if test -z "$haveit"; then
33841                       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir"
33842                     fi
33843                     if test "$acl_hardcode_minus_L" != no; then
33844                                                                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
33845                     else
33846                                                                                                                                                                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
33847                     fi
33848                   fi
33849                 fi
33850               fi
33851             else
33852               if test "X$found_a" != "X"; then
33853                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_a"
33854               else
33855                                                 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir -l$name"
33856               fi
33857             fi
33858                         additional_includedir=
33859             case "$found_dir" in
33860               */$acl_libdirstem | */$acl_libdirstem/)
33861                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
33862                 if test "$name" = 'ncurses'; then
33863                   LIBNCURSES_PREFIX="$basedir"
33864                 fi
33865                 additional_includedir="$basedir/include"
33866                 ;;
33867               */$acl_libdirstem2 | */$acl_libdirstem2/)
33868                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
33869                 if test "$name" = 'ncurses'; then
33870                   LIBNCURSES_PREFIX="$basedir"
33871                 fi
33872                 additional_includedir="$basedir/include"
33873                 ;;
33874             esac
33875             if test "X$additional_includedir" != "X"; then
33876                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
33877                 haveit=
33878                 if test "X$additional_includedir" = "X/usr/local/include"; then
33879                   if test -n "$GCC"; then
33880                     case $host_os in
33881                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33882                     esac
33883                   fi
33884                 fi
33885                 if test -z "$haveit"; then
33886                   for x in $CPPFLAGS $INCNCURSES; do
33887
33888   acl_save_prefix="$prefix"
33889   prefix="$acl_final_prefix"
33890   acl_save_exec_prefix="$exec_prefix"
33891   exec_prefix="$acl_final_exec_prefix"
33892   eval x=\"$x\"
33893   exec_prefix="$acl_save_exec_prefix"
33894   prefix="$acl_save_prefix"
33895
33896                     if test "X$x" = "X-I$additional_includedir"; then
33897                       haveit=yes
33898                       break
33899                     fi
33900                   done
33901                   if test -z "$haveit"; then
33902                     if test -d "$additional_includedir"; then
33903                                             INCNCURSES="${INCNCURSES}${INCNCURSES:+ }-I$additional_includedir"
33904                     fi
33905                   fi
33906                 fi
33907               fi
33908             fi
33909                         if test -n "$found_la"; then
33910                                                         save_libdir="$libdir"
33911               case "$found_la" in
33912                 */* | *\\*) . "$found_la" ;;
33913                 *) . "./$found_la" ;;
33914               esac
33915               libdir="$save_libdir"
33916                             for dep in $dependency_libs; do
33917                 case "$dep" in
33918                   -L*)
33919                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33920                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
33921                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
33922                       haveit=
33923                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
33924                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
33925                         if test -n "$GCC"; then
33926                           case $host_os in
33927                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33928                           esac
33929                         fi
33930                       fi
33931                       if test -z "$haveit"; then
33932                         haveit=
33933                         for x in $LDFLAGS $LIBNCURSES; do
33934
33935   acl_save_prefix="$prefix"
33936   prefix="$acl_final_prefix"
33937   acl_save_exec_prefix="$exec_prefix"
33938   exec_prefix="$acl_final_exec_prefix"
33939   eval x=\"$x\"
33940   exec_prefix="$acl_save_exec_prefix"
33941   prefix="$acl_save_prefix"
33942
33943                           if test "X$x" = "X-L$additional_libdir"; then
33944                             haveit=yes
33945                             break
33946                           fi
33947                         done
33948                         if test -z "$haveit"; then
33949                           if test -d "$additional_libdir"; then
33950                                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$additional_libdir"
33951                           fi
33952                         fi
33953                         haveit=
33954                         for x in $LDFLAGS $LTLIBNCURSES; do
33955
33956   acl_save_prefix="$prefix"
33957   prefix="$acl_final_prefix"
33958   acl_save_exec_prefix="$exec_prefix"
33959   exec_prefix="$acl_final_exec_prefix"
33960   eval x=\"$x\"
33961   exec_prefix="$acl_save_exec_prefix"
33962   prefix="$acl_save_prefix"
33963
33964                           if test "X$x" = "X-L$additional_libdir"; then
33965                             haveit=yes
33966                             break
33967                           fi
33968                         done
33969                         if test -z "$haveit"; then
33970                           if test -d "$additional_libdir"; then
33971                                                         LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$additional_libdir"
33972                           fi
33973                         fi
33974                       fi
33975                     fi
33976                     ;;
33977                   -R*)
33978                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
33979                     if test "$enable_rpath" != no; then
33980                                                                   haveit=
33981                       for x in $rpathdirs; do
33982                         if test "X$x" = "X$dir"; then
33983                           haveit=yes
33984                           break
33985                         fi
33986                       done
33987                       if test -z "$haveit"; then
33988                         rpathdirs="$rpathdirs $dir"
33989                       fi
33990                                                                   haveit=
33991                       for x in $ltrpathdirs; do
33992                         if test "X$x" = "X$dir"; then
33993                           haveit=yes
33994                           break
33995                         fi
33996                       done
33997                       if test -z "$haveit"; then
33998                         ltrpathdirs="$ltrpathdirs $dir"
33999                       fi
34000                     fi
34001                     ;;
34002                   -l*)
34003                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34004                     ;;
34005                   *.la)
34006                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34007                     ;;
34008                   *)
34009                                         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$dep"
34010                     LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$dep"
34011                     ;;
34012                 esac
34013               done
34014             fi
34015           else
34016                                                             LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
34017             LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-l$name"
34018           fi
34019         fi
34020       fi
34021     done
34022   done
34023   if test "X$rpathdirs" != "X"; then
34024     if test -n "$acl_hardcode_libdir_separator"; then
34025                         alldirs=
34026       for found_dir in $rpathdirs; do
34027         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
34028       done
34029             acl_save_libdir="$libdir"
34030       libdir="$alldirs"
34031       eval flag=\"$acl_hardcode_libdir_flag_spec\"
34032       libdir="$acl_save_libdir"
34033       LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
34034     else
34035             for found_dir in $rpathdirs; do
34036         acl_save_libdir="$libdir"
34037         libdir="$found_dir"
34038         eval flag=\"$acl_hardcode_libdir_flag_spec\"
34039         libdir="$acl_save_libdir"
34040         LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
34041       done
34042     fi
34043   fi
34044   if test "X$ltrpathdirs" != "X"; then
34045             for found_dir in $ltrpathdirs; do
34046       LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-R$found_dir"
34047     done
34048   fi
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063     use_additional=yes
34064
34065   acl_save_prefix="$prefix"
34066   prefix="$acl_final_prefix"
34067   acl_save_exec_prefix="$exec_prefix"
34068   exec_prefix="$acl_final_exec_prefix"
34069
34070     eval additional_includedir=\"$includedir\"
34071     eval additional_libdir=\"$libdir\"
34072
34073   exec_prefix="$acl_save_exec_prefix"
34074   prefix="$acl_save_prefix"
34075
34076
34077 # Check whether --with-libtermcap-prefix was given.
34078 if test "${with_libtermcap_prefix+set}" = set; then :
34079   withval=$with_libtermcap_prefix;
34080     if test "X$withval" = "Xno"; then
34081       use_additional=no
34082     else
34083       if test "X$withval" = "X"; then
34084
34085   acl_save_prefix="$prefix"
34086   prefix="$acl_final_prefix"
34087   acl_save_exec_prefix="$exec_prefix"
34088   exec_prefix="$acl_final_exec_prefix"
34089
34090           eval additional_includedir=\"$includedir\"
34091           eval additional_libdir=\"$libdir\"
34092
34093   exec_prefix="$acl_save_exec_prefix"
34094   prefix="$acl_save_prefix"
34095
34096       else
34097         additional_includedir="$withval/include"
34098         additional_libdir="$withval/$acl_libdirstem"
34099         if test "$acl_libdirstem2" != "$acl_libdirstem" \
34100            && ! test -d "$withval/$acl_libdirstem"; then
34101           additional_libdir="$withval/$acl_libdirstem2"
34102         fi
34103       fi
34104     fi
34105
34106 fi
34107
34108       LIBTERMCAP=
34109   LTLIBTERMCAP=
34110   INCTERMCAP=
34111   LIBTERMCAP_PREFIX=
34112       HAVE_LIBTERMCAP=
34113   rpathdirs=
34114   ltrpathdirs=
34115   names_already_handled=
34116   names_next_round='termcap '
34117   while test -n "$names_next_round"; do
34118     names_this_round="$names_next_round"
34119     names_next_round=
34120     for name in $names_this_round; do
34121       already_handled=
34122       for n in $names_already_handled; do
34123         if test "$n" = "$name"; then
34124           already_handled=yes
34125           break
34126         fi
34127       done
34128       if test -z "$already_handled"; then
34129         names_already_handled="$names_already_handled $name"
34130                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
34131         eval value=\"\$HAVE_LIB$uppername\"
34132         if test -n "$value"; then
34133           if test "$value" = yes; then
34134             eval value=\"\$LIB$uppername\"
34135             test -z "$value" || LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$value"
34136             eval value=\"\$LTLIB$uppername\"
34137             test -z "$value" || LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$value"
34138           else
34139                                     :
34140           fi
34141         else
34142                               found_dir=
34143           found_la=
34144           found_so=
34145           found_a=
34146           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
34147           if test -n "$acl_shlibext"; then
34148             shrext=".$acl_shlibext"             # typically: shrext=.so
34149           else
34150             shrext=
34151           fi
34152           if test $use_additional = yes; then
34153             dir="$additional_libdir"
34154                                     if test -n "$acl_shlibext"; then
34155               if test -f "$dir/$libname$shrext"; then
34156                 found_dir="$dir"
34157                 found_so="$dir/$libname$shrext"
34158               else
34159                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34160                   ver=`(cd "$dir" && \
34161                         for f in "$libname$shrext".*; do echo "$f"; done \
34162                         | sed -e "s,^$libname$shrext\\\\.,," \
34163                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34164                         | sed 1q ) 2>/dev/null`
34165                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34166                     found_dir="$dir"
34167                     found_so="$dir/$libname$shrext.$ver"
34168                   fi
34169                 else
34170                   eval library_names=\"$acl_library_names_spec\"
34171                   for f in $library_names; do
34172                     if test -f "$dir/$f"; then
34173                       found_dir="$dir"
34174                       found_so="$dir/$f"
34175                       break
34176                     fi
34177                   done
34178                 fi
34179               fi
34180             fi
34181                         if test "X$found_dir" = "X"; then
34182               if test -f "$dir/$libname.$acl_libext"; then
34183                 found_dir="$dir"
34184                 found_a="$dir/$libname.$acl_libext"
34185               fi
34186             fi
34187             if test "X$found_dir" != "X"; then
34188               if test -f "$dir/$libname.la"; then
34189                 found_la="$dir/$libname.la"
34190               fi
34191             fi
34192           fi
34193           if test "X$found_dir" = "X"; then
34194             for x in $LDFLAGS $LTLIBTERMCAP; do
34195
34196   acl_save_prefix="$prefix"
34197   prefix="$acl_final_prefix"
34198   acl_save_exec_prefix="$exec_prefix"
34199   exec_prefix="$acl_final_exec_prefix"
34200   eval x=\"$x\"
34201   exec_prefix="$acl_save_exec_prefix"
34202   prefix="$acl_save_prefix"
34203
34204               case "$x" in
34205                 -L*)
34206                   dir=`echo "X$x" | sed -e 's/^X-L//'`
34207                                     if test -n "$acl_shlibext"; then
34208                     if test -f "$dir/$libname$shrext"; then
34209                       found_dir="$dir"
34210                       found_so="$dir/$libname$shrext"
34211                     else
34212                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34213                         ver=`(cd "$dir" && \
34214                               for f in "$libname$shrext".*; do echo "$f"; done \
34215                               | sed -e "s,^$libname$shrext\\\\.,," \
34216                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34217                               | sed 1q ) 2>/dev/null`
34218                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34219                           found_dir="$dir"
34220                           found_so="$dir/$libname$shrext.$ver"
34221                         fi
34222                       else
34223                         eval library_names=\"$acl_library_names_spec\"
34224                         for f in $library_names; do
34225                           if test -f "$dir/$f"; then
34226                             found_dir="$dir"
34227                             found_so="$dir/$f"
34228                             break
34229                           fi
34230                         done
34231                       fi
34232                     fi
34233                   fi
34234                                     if test "X$found_dir" = "X"; then
34235                     if test -f "$dir/$libname.$acl_libext"; then
34236                       found_dir="$dir"
34237                       found_a="$dir/$libname.$acl_libext"
34238                     fi
34239                   fi
34240                   if test "X$found_dir" != "X"; then
34241                     if test -f "$dir/$libname.la"; then
34242                       found_la="$dir/$libname.la"
34243                     fi
34244                   fi
34245                   ;;
34246               esac
34247               if test "X$found_dir" != "X"; then
34248                 break
34249               fi
34250             done
34251           fi
34252           if test "X$found_dir" != "X"; then
34253                         LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$found_dir -l$name"
34254             if test "X$found_so" != "X"; then
34255                                                         if test "$enable_rpath" = no \
34256                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
34257                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
34258                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
34259               else
34260                                                                                 haveit=
34261                 for x in $ltrpathdirs; do
34262                   if test "X$x" = "X$found_dir"; then
34263                     haveit=yes
34264                     break
34265                   fi
34266                 done
34267                 if test -z "$haveit"; then
34268                   ltrpathdirs="$ltrpathdirs $found_dir"
34269                 fi
34270                                 if test "$acl_hardcode_direct" = yes; then
34271                                                       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
34272                 else
34273                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
34274                                                             LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
34275                                                             haveit=
34276                     for x in $rpathdirs; do
34277                       if test "X$x" = "X$found_dir"; then
34278                         haveit=yes
34279                         break
34280                       fi
34281                     done
34282                     if test -z "$haveit"; then
34283                       rpathdirs="$rpathdirs $found_dir"
34284                     fi
34285                   else
34286                                                                                 haveit=
34287                     for x in $LDFLAGS $LIBTERMCAP; do
34288
34289   acl_save_prefix="$prefix"
34290   prefix="$acl_final_prefix"
34291   acl_save_exec_prefix="$exec_prefix"
34292   exec_prefix="$acl_final_exec_prefix"
34293   eval x=\"$x\"
34294   exec_prefix="$acl_save_exec_prefix"
34295   prefix="$acl_save_prefix"
34296
34297                       if test "X$x" = "X-L$found_dir"; then
34298                         haveit=yes
34299                         break
34300                       fi
34301                     done
34302                     if test -z "$haveit"; then
34303                       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir"
34304                     fi
34305                     if test "$acl_hardcode_minus_L" != no; then
34306                                                                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
34307                     else
34308                                                                                                                                                                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
34309                     fi
34310                   fi
34311                 fi
34312               fi
34313             else
34314               if test "X$found_a" != "X"; then
34315                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_a"
34316               else
34317                                                 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir -l$name"
34318               fi
34319             fi
34320                         additional_includedir=
34321             case "$found_dir" in
34322               */$acl_libdirstem | */$acl_libdirstem/)
34323                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34324                 if test "$name" = 'termcap'; then
34325                   LIBTERMCAP_PREFIX="$basedir"
34326                 fi
34327                 additional_includedir="$basedir/include"
34328                 ;;
34329               */$acl_libdirstem2 | */$acl_libdirstem2/)
34330                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
34331                 if test "$name" = 'termcap'; then
34332                   LIBTERMCAP_PREFIX="$basedir"
34333                 fi
34334                 additional_includedir="$basedir/include"
34335                 ;;
34336             esac
34337             if test "X$additional_includedir" != "X"; then
34338                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
34339                 haveit=
34340                 if test "X$additional_includedir" = "X/usr/local/include"; then
34341                   if test -n "$GCC"; then
34342                     case $host_os in
34343                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34344                     esac
34345                   fi
34346                 fi
34347                 if test -z "$haveit"; then
34348                   for x in $CPPFLAGS $INCTERMCAP; do
34349
34350   acl_save_prefix="$prefix"
34351   prefix="$acl_final_prefix"
34352   acl_save_exec_prefix="$exec_prefix"
34353   exec_prefix="$acl_final_exec_prefix"
34354   eval x=\"$x\"
34355   exec_prefix="$acl_save_exec_prefix"
34356   prefix="$acl_save_prefix"
34357
34358                     if test "X$x" = "X-I$additional_includedir"; then
34359                       haveit=yes
34360                       break
34361                     fi
34362                   done
34363                   if test -z "$haveit"; then
34364                     if test -d "$additional_includedir"; then
34365                                             INCTERMCAP="${INCTERMCAP}${INCTERMCAP:+ }-I$additional_includedir"
34366                     fi
34367                   fi
34368                 fi
34369               fi
34370             fi
34371                         if test -n "$found_la"; then
34372                                                         save_libdir="$libdir"
34373               case "$found_la" in
34374                 */* | *\\*) . "$found_la" ;;
34375                 *) . "./$found_la" ;;
34376               esac
34377               libdir="$save_libdir"
34378                             for dep in $dependency_libs; do
34379                 case "$dep" in
34380                   -L*)
34381                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34382                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
34383                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
34384                       haveit=
34385                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
34386                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
34387                         if test -n "$GCC"; then
34388                           case $host_os in
34389                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34390                           esac
34391                         fi
34392                       fi
34393                       if test -z "$haveit"; then
34394                         haveit=
34395                         for x in $LDFLAGS $LIBTERMCAP; do
34396
34397   acl_save_prefix="$prefix"
34398   prefix="$acl_final_prefix"
34399   acl_save_exec_prefix="$exec_prefix"
34400   exec_prefix="$acl_final_exec_prefix"
34401   eval x=\"$x\"
34402   exec_prefix="$acl_save_exec_prefix"
34403   prefix="$acl_save_prefix"
34404
34405                           if test "X$x" = "X-L$additional_libdir"; then
34406                             haveit=yes
34407                             break
34408                           fi
34409                         done
34410                         if test -z "$haveit"; then
34411                           if test -d "$additional_libdir"; then
34412                                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$additional_libdir"
34413                           fi
34414                         fi
34415                         haveit=
34416                         for x in $LDFLAGS $LTLIBTERMCAP; do
34417
34418   acl_save_prefix="$prefix"
34419   prefix="$acl_final_prefix"
34420   acl_save_exec_prefix="$exec_prefix"
34421   exec_prefix="$acl_final_exec_prefix"
34422   eval x=\"$x\"
34423   exec_prefix="$acl_save_exec_prefix"
34424   prefix="$acl_save_prefix"
34425
34426                           if test "X$x" = "X-L$additional_libdir"; then
34427                             haveit=yes
34428                             break
34429                           fi
34430                         done
34431                         if test -z "$haveit"; then
34432                           if test -d "$additional_libdir"; then
34433                                                         LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$additional_libdir"
34434                           fi
34435                         fi
34436                       fi
34437                     fi
34438                     ;;
34439                   -R*)
34440                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
34441                     if test "$enable_rpath" != no; then
34442                                                                   haveit=
34443                       for x in $rpathdirs; do
34444                         if test "X$x" = "X$dir"; then
34445                           haveit=yes
34446                           break
34447                         fi
34448                       done
34449                       if test -z "$haveit"; then
34450                         rpathdirs="$rpathdirs $dir"
34451                       fi
34452                                                                   haveit=
34453                       for x in $ltrpathdirs; do
34454                         if test "X$x" = "X$dir"; then
34455                           haveit=yes
34456                           break
34457                         fi
34458                       done
34459                       if test -z "$haveit"; then
34460                         ltrpathdirs="$ltrpathdirs $dir"
34461                       fi
34462                     fi
34463                     ;;
34464                   -l*)
34465                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34466                     ;;
34467                   *.la)
34468                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34469                     ;;
34470                   *)
34471                                         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$dep"
34472                     LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$dep"
34473                     ;;
34474                 esac
34475               done
34476             fi
34477           else
34478                                                             LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
34479             LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-l$name"
34480           fi
34481         fi
34482       fi
34483     done
34484   done
34485   if test "X$rpathdirs" != "X"; then
34486     if test -n "$acl_hardcode_libdir_separator"; then
34487                         alldirs=
34488       for found_dir in $rpathdirs; do
34489         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
34490       done
34491             acl_save_libdir="$libdir"
34492       libdir="$alldirs"
34493       eval flag=\"$acl_hardcode_libdir_flag_spec\"
34494       libdir="$acl_save_libdir"
34495       LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
34496     else
34497             for found_dir in $rpathdirs; do
34498         acl_save_libdir="$libdir"
34499         libdir="$found_dir"
34500         eval flag=\"$acl_hardcode_libdir_flag_spec\"
34501         libdir="$acl_save_libdir"
34502         LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
34503       done
34504     fi
34505   fi
34506   if test "X$ltrpathdirs" != "X"; then
34507             for found_dir in $ltrpathdirs; do
34508       LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-R$found_dir"
34509     done
34510   fi
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525     use_additional=yes
34526
34527   acl_save_prefix="$prefix"
34528   prefix="$acl_final_prefix"
34529   acl_save_exec_prefix="$exec_prefix"
34530   exec_prefix="$acl_final_exec_prefix"
34531
34532     eval additional_includedir=\"$includedir\"
34533     eval additional_libdir=\"$libdir\"
34534
34535   exec_prefix="$acl_save_exec_prefix"
34536   prefix="$acl_save_prefix"
34537
34538
34539 # Check whether --with-libxcurses-prefix was given.
34540 if test "${with_libxcurses_prefix+set}" = set; then :
34541   withval=$with_libxcurses_prefix;
34542     if test "X$withval" = "Xno"; then
34543       use_additional=no
34544     else
34545       if test "X$withval" = "X"; then
34546
34547   acl_save_prefix="$prefix"
34548   prefix="$acl_final_prefix"
34549   acl_save_exec_prefix="$exec_prefix"
34550   exec_prefix="$acl_final_exec_prefix"
34551
34552           eval additional_includedir=\"$includedir\"
34553           eval additional_libdir=\"$libdir\"
34554
34555   exec_prefix="$acl_save_exec_prefix"
34556   prefix="$acl_save_prefix"
34557
34558       else
34559         additional_includedir="$withval/include"
34560         additional_libdir="$withval/$acl_libdirstem"
34561         if test "$acl_libdirstem2" != "$acl_libdirstem" \
34562            && ! test -d "$withval/$acl_libdirstem"; then
34563           additional_libdir="$withval/$acl_libdirstem2"
34564         fi
34565       fi
34566     fi
34567
34568 fi
34569
34570       LIBXCURSES=
34571   LTLIBXCURSES=
34572   INCXCURSES=
34573   LIBXCURSES_PREFIX=
34574       HAVE_LIBXCURSES=
34575   rpathdirs=
34576   ltrpathdirs=
34577   names_already_handled=
34578   names_next_round='xcurses '
34579   while test -n "$names_next_round"; do
34580     names_this_round="$names_next_round"
34581     names_next_round=
34582     for name in $names_this_round; do
34583       already_handled=
34584       for n in $names_already_handled; do
34585         if test "$n" = "$name"; then
34586           already_handled=yes
34587           break
34588         fi
34589       done
34590       if test -z "$already_handled"; then
34591         names_already_handled="$names_already_handled $name"
34592                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
34593         eval value=\"\$HAVE_LIB$uppername\"
34594         if test -n "$value"; then
34595           if test "$value" = yes; then
34596             eval value=\"\$LIB$uppername\"
34597             test -z "$value" || LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$value"
34598             eval value=\"\$LTLIB$uppername\"
34599             test -z "$value" || LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$value"
34600           else
34601                                     :
34602           fi
34603         else
34604                               found_dir=
34605           found_la=
34606           found_so=
34607           found_a=
34608           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
34609           if test -n "$acl_shlibext"; then
34610             shrext=".$acl_shlibext"             # typically: shrext=.so
34611           else
34612             shrext=
34613           fi
34614           if test $use_additional = yes; then
34615             dir="$additional_libdir"
34616                                     if test -n "$acl_shlibext"; then
34617               if test -f "$dir/$libname$shrext"; then
34618                 found_dir="$dir"
34619                 found_so="$dir/$libname$shrext"
34620               else
34621                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34622                   ver=`(cd "$dir" && \
34623                         for f in "$libname$shrext".*; do echo "$f"; done \
34624                         | sed -e "s,^$libname$shrext\\\\.,," \
34625                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34626                         | sed 1q ) 2>/dev/null`
34627                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34628                     found_dir="$dir"
34629                     found_so="$dir/$libname$shrext.$ver"
34630                   fi
34631                 else
34632                   eval library_names=\"$acl_library_names_spec\"
34633                   for f in $library_names; do
34634                     if test -f "$dir/$f"; then
34635                       found_dir="$dir"
34636                       found_so="$dir/$f"
34637                       break
34638                     fi
34639                   done
34640                 fi
34641               fi
34642             fi
34643                         if test "X$found_dir" = "X"; then
34644               if test -f "$dir/$libname.$acl_libext"; then
34645                 found_dir="$dir"
34646                 found_a="$dir/$libname.$acl_libext"
34647               fi
34648             fi
34649             if test "X$found_dir" != "X"; then
34650               if test -f "$dir/$libname.la"; then
34651                 found_la="$dir/$libname.la"
34652               fi
34653             fi
34654           fi
34655           if test "X$found_dir" = "X"; then
34656             for x in $LDFLAGS $LTLIBXCURSES; do
34657
34658   acl_save_prefix="$prefix"
34659   prefix="$acl_final_prefix"
34660   acl_save_exec_prefix="$exec_prefix"
34661   exec_prefix="$acl_final_exec_prefix"
34662   eval x=\"$x\"
34663   exec_prefix="$acl_save_exec_prefix"
34664   prefix="$acl_save_prefix"
34665
34666               case "$x" in
34667                 -L*)
34668                   dir=`echo "X$x" | sed -e 's/^X-L//'`
34669                                     if test -n "$acl_shlibext"; then
34670                     if test -f "$dir/$libname$shrext"; then
34671                       found_dir="$dir"
34672                       found_so="$dir/$libname$shrext"
34673                     else
34674                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34675                         ver=`(cd "$dir" && \
34676                               for f in "$libname$shrext".*; do echo "$f"; done \
34677                               | sed -e "s,^$libname$shrext\\\\.,," \
34678                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34679                               | sed 1q ) 2>/dev/null`
34680                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34681                           found_dir="$dir"
34682                           found_so="$dir/$libname$shrext.$ver"
34683                         fi
34684                       else
34685                         eval library_names=\"$acl_library_names_spec\"
34686                         for f in $library_names; do
34687                           if test -f "$dir/$f"; then
34688                             found_dir="$dir"
34689                             found_so="$dir/$f"
34690                             break
34691                           fi
34692                         done
34693                       fi
34694                     fi
34695                   fi
34696                                     if test "X$found_dir" = "X"; then
34697                     if test -f "$dir/$libname.$acl_libext"; then
34698                       found_dir="$dir"
34699                       found_a="$dir/$libname.$acl_libext"
34700                     fi
34701                   fi
34702                   if test "X$found_dir" != "X"; then
34703                     if test -f "$dir/$libname.la"; then
34704                       found_la="$dir/$libname.la"
34705                     fi
34706                   fi
34707                   ;;
34708               esac
34709               if test "X$found_dir" != "X"; then
34710                 break
34711               fi
34712             done
34713           fi
34714           if test "X$found_dir" != "X"; then
34715                         LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$found_dir -l$name"
34716             if test "X$found_so" != "X"; then
34717                                                         if test "$enable_rpath" = no \
34718                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
34719                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
34720                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
34721               else
34722                                                                                 haveit=
34723                 for x in $ltrpathdirs; do
34724                   if test "X$x" = "X$found_dir"; then
34725                     haveit=yes
34726                     break
34727                   fi
34728                 done
34729                 if test -z "$haveit"; then
34730                   ltrpathdirs="$ltrpathdirs $found_dir"
34731                 fi
34732                                 if test "$acl_hardcode_direct" = yes; then
34733                                                       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
34734                 else
34735                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
34736                                                             LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
34737                                                             haveit=
34738                     for x in $rpathdirs; do
34739                       if test "X$x" = "X$found_dir"; then
34740                         haveit=yes
34741                         break
34742                       fi
34743                     done
34744                     if test -z "$haveit"; then
34745                       rpathdirs="$rpathdirs $found_dir"
34746                     fi
34747                   else
34748                                                                                 haveit=
34749                     for x in $LDFLAGS $LIBXCURSES; do
34750
34751   acl_save_prefix="$prefix"
34752   prefix="$acl_final_prefix"
34753   acl_save_exec_prefix="$exec_prefix"
34754   exec_prefix="$acl_final_exec_prefix"
34755   eval x=\"$x\"
34756   exec_prefix="$acl_save_exec_prefix"
34757   prefix="$acl_save_prefix"
34758
34759                       if test "X$x" = "X-L$found_dir"; then
34760                         haveit=yes
34761                         break
34762                       fi
34763                     done
34764                     if test -z "$haveit"; then
34765                       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir"
34766                     fi
34767                     if test "$acl_hardcode_minus_L" != no; then
34768                                                                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
34769                     else
34770                                                                                                                                                                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
34771                     fi
34772                   fi
34773                 fi
34774               fi
34775             else
34776               if test "X$found_a" != "X"; then
34777                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_a"
34778               else
34779                                                 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir -l$name"
34780               fi
34781             fi
34782                         additional_includedir=
34783             case "$found_dir" in
34784               */$acl_libdirstem | */$acl_libdirstem/)
34785                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34786                 if test "$name" = 'xcurses'; then
34787                   LIBXCURSES_PREFIX="$basedir"
34788                 fi
34789                 additional_includedir="$basedir/include"
34790                 ;;
34791               */$acl_libdirstem2 | */$acl_libdirstem2/)
34792                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
34793                 if test "$name" = 'xcurses'; then
34794                   LIBXCURSES_PREFIX="$basedir"
34795                 fi
34796                 additional_includedir="$basedir/include"
34797                 ;;
34798             esac
34799             if test "X$additional_includedir" != "X"; then
34800                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
34801                 haveit=
34802                 if test "X$additional_includedir" = "X/usr/local/include"; then
34803                   if test -n "$GCC"; then
34804                     case $host_os in
34805                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34806                     esac
34807                   fi
34808                 fi
34809                 if test -z "$haveit"; then
34810                   for x in $CPPFLAGS $INCXCURSES; do
34811
34812   acl_save_prefix="$prefix"
34813   prefix="$acl_final_prefix"
34814   acl_save_exec_prefix="$exec_prefix"
34815   exec_prefix="$acl_final_exec_prefix"
34816   eval x=\"$x\"
34817   exec_prefix="$acl_save_exec_prefix"
34818   prefix="$acl_save_prefix"
34819
34820                     if test "X$x" = "X-I$additional_includedir"; then
34821                       haveit=yes
34822                       break
34823                     fi
34824                   done
34825                   if test -z "$haveit"; then
34826                     if test -d "$additional_includedir"; then
34827                                             INCXCURSES="${INCXCURSES}${INCXCURSES:+ }-I$additional_includedir"
34828                     fi
34829                   fi
34830                 fi
34831               fi
34832             fi
34833                         if test -n "$found_la"; then
34834                                                         save_libdir="$libdir"
34835               case "$found_la" in
34836                 */* | *\\*) . "$found_la" ;;
34837                 *) . "./$found_la" ;;
34838               esac
34839               libdir="$save_libdir"
34840                             for dep in $dependency_libs; do
34841                 case "$dep" in
34842                   -L*)
34843                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34844                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
34845                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
34846                       haveit=
34847                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
34848                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
34849                         if test -n "$GCC"; then
34850                           case $host_os in
34851                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34852                           esac
34853                         fi
34854                       fi
34855                       if test -z "$haveit"; then
34856                         haveit=
34857                         for x in $LDFLAGS $LIBXCURSES; do
34858
34859   acl_save_prefix="$prefix"
34860   prefix="$acl_final_prefix"
34861   acl_save_exec_prefix="$exec_prefix"
34862   exec_prefix="$acl_final_exec_prefix"
34863   eval x=\"$x\"
34864   exec_prefix="$acl_save_exec_prefix"
34865   prefix="$acl_save_prefix"
34866
34867                           if test "X$x" = "X-L$additional_libdir"; then
34868                             haveit=yes
34869                             break
34870                           fi
34871                         done
34872                         if test -z "$haveit"; then
34873                           if test -d "$additional_libdir"; then
34874                                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$additional_libdir"
34875                           fi
34876                         fi
34877                         haveit=
34878                         for x in $LDFLAGS $LTLIBXCURSES; do
34879
34880   acl_save_prefix="$prefix"
34881   prefix="$acl_final_prefix"
34882   acl_save_exec_prefix="$exec_prefix"
34883   exec_prefix="$acl_final_exec_prefix"
34884   eval x=\"$x\"
34885   exec_prefix="$acl_save_exec_prefix"
34886   prefix="$acl_save_prefix"
34887
34888                           if test "X$x" = "X-L$additional_libdir"; then
34889                             haveit=yes
34890                             break
34891                           fi
34892                         done
34893                         if test -z "$haveit"; then
34894                           if test -d "$additional_libdir"; then
34895                                                         LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$additional_libdir"
34896                           fi
34897                         fi
34898                       fi
34899                     fi
34900                     ;;
34901                   -R*)
34902                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
34903                     if test "$enable_rpath" != no; then
34904                                                                   haveit=
34905                       for x in $rpathdirs; do
34906                         if test "X$x" = "X$dir"; then
34907                           haveit=yes
34908                           break
34909                         fi
34910                       done
34911                       if test -z "$haveit"; then
34912                         rpathdirs="$rpathdirs $dir"
34913                       fi
34914                                                                   haveit=
34915                       for x in $ltrpathdirs; do
34916                         if test "X$x" = "X$dir"; then
34917                           haveit=yes
34918                           break
34919                         fi
34920                       done
34921                       if test -z "$haveit"; then
34922                         ltrpathdirs="$ltrpathdirs $dir"
34923                       fi
34924                     fi
34925                     ;;
34926                   -l*)
34927                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34928                     ;;
34929                   *.la)
34930                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34931                     ;;
34932                   *)
34933                                         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$dep"
34934                     LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$dep"
34935                     ;;
34936                 esac
34937               done
34938             fi
34939           else
34940                                                             LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
34941             LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-l$name"
34942           fi
34943         fi
34944       fi
34945     done
34946   done
34947   if test "X$rpathdirs" != "X"; then
34948     if test -n "$acl_hardcode_libdir_separator"; then
34949                         alldirs=
34950       for found_dir in $rpathdirs; do
34951         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
34952       done
34953             acl_save_libdir="$libdir"
34954       libdir="$alldirs"
34955       eval flag=\"$acl_hardcode_libdir_flag_spec\"
34956       libdir="$acl_save_libdir"
34957       LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
34958     else
34959             for found_dir in $rpathdirs; do
34960         acl_save_libdir="$libdir"
34961         libdir="$found_dir"
34962         eval flag=\"$acl_hardcode_libdir_flag_spec\"
34963         libdir="$acl_save_libdir"
34964         LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
34965       done
34966     fi
34967   fi
34968   if test "X$ltrpathdirs" != "X"; then
34969             for found_dir in $ltrpathdirs; do
34970       LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-R$found_dir"
34971     done
34972   fi
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987     use_additional=yes
34988
34989   acl_save_prefix="$prefix"
34990   prefix="$acl_final_prefix"
34991   acl_save_exec_prefix="$exec_prefix"
34992   exec_prefix="$acl_final_exec_prefix"
34993
34994     eval additional_includedir=\"$includedir\"
34995     eval additional_libdir=\"$libdir\"
34996
34997   exec_prefix="$acl_save_exec_prefix"
34998   prefix="$acl_save_prefix"
34999
35000
35001 # Check whether --with-libcurses-prefix was given.
35002 if test "${with_libcurses_prefix+set}" = set; then :
35003   withval=$with_libcurses_prefix;
35004     if test "X$withval" = "Xno"; then
35005       use_additional=no
35006     else
35007       if test "X$withval" = "X"; then
35008
35009   acl_save_prefix="$prefix"
35010   prefix="$acl_final_prefix"
35011   acl_save_exec_prefix="$exec_prefix"
35012   exec_prefix="$acl_final_exec_prefix"
35013
35014           eval additional_includedir=\"$includedir\"
35015           eval additional_libdir=\"$libdir\"
35016
35017   exec_prefix="$acl_save_exec_prefix"
35018   prefix="$acl_save_prefix"
35019
35020       else
35021         additional_includedir="$withval/include"
35022         additional_libdir="$withval/$acl_libdirstem"
35023         if test "$acl_libdirstem2" != "$acl_libdirstem" \
35024            && ! test -d "$withval/$acl_libdirstem"; then
35025           additional_libdir="$withval/$acl_libdirstem2"
35026         fi
35027       fi
35028     fi
35029
35030 fi
35031
35032       LIBCURSES=
35033   LTLIBCURSES=
35034   INCCURSES=
35035   LIBCURSES_PREFIX=
35036       HAVE_LIBCURSES=
35037   rpathdirs=
35038   ltrpathdirs=
35039   names_already_handled=
35040   names_next_round='curses '
35041   while test -n "$names_next_round"; do
35042     names_this_round="$names_next_round"
35043     names_next_round=
35044     for name in $names_this_round; do
35045       already_handled=
35046       for n in $names_already_handled; do
35047         if test "$n" = "$name"; then
35048           already_handled=yes
35049           break
35050         fi
35051       done
35052       if test -z "$already_handled"; then
35053         names_already_handled="$names_already_handled $name"
35054                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
35055         eval value=\"\$HAVE_LIB$uppername\"
35056         if test -n "$value"; then
35057           if test "$value" = yes; then
35058             eval value=\"\$LIB$uppername\"
35059             test -z "$value" || LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$value"
35060             eval value=\"\$LTLIB$uppername\"
35061             test -z "$value" || LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$value"
35062           else
35063                                     :
35064           fi
35065         else
35066                               found_dir=
35067           found_la=
35068           found_so=
35069           found_a=
35070           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
35071           if test -n "$acl_shlibext"; then
35072             shrext=".$acl_shlibext"             # typically: shrext=.so
35073           else
35074             shrext=
35075           fi
35076           if test $use_additional = yes; then
35077             dir="$additional_libdir"
35078                                     if test -n "$acl_shlibext"; then
35079               if test -f "$dir/$libname$shrext"; then
35080                 found_dir="$dir"
35081                 found_so="$dir/$libname$shrext"
35082               else
35083                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
35084                   ver=`(cd "$dir" && \
35085                         for f in "$libname$shrext".*; do echo "$f"; done \
35086                         | sed -e "s,^$libname$shrext\\\\.,," \
35087                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
35088                         | sed 1q ) 2>/dev/null`
35089                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
35090                     found_dir="$dir"
35091                     found_so="$dir/$libname$shrext.$ver"
35092                   fi
35093                 else
35094                   eval library_names=\"$acl_library_names_spec\"
35095                   for f in $library_names; do
35096                     if test -f "$dir/$f"; then
35097                       found_dir="$dir"
35098                       found_so="$dir/$f"
35099                       break
35100                     fi
35101                   done
35102                 fi
35103               fi
35104             fi
35105                         if test "X$found_dir" = "X"; then
35106               if test -f "$dir/$libname.$acl_libext"; then
35107                 found_dir="$dir"
35108                 found_a="$dir/$libname.$acl_libext"
35109               fi
35110             fi
35111             if test "X$found_dir" != "X"; then
35112               if test -f "$dir/$libname.la"; then
35113                 found_la="$dir/$libname.la"
35114               fi
35115             fi
35116           fi
35117           if test "X$found_dir" = "X"; then
35118             for x in $LDFLAGS $LTLIBCURSES; do
35119
35120   acl_save_prefix="$prefix"
35121   prefix="$acl_final_prefix"
35122   acl_save_exec_prefix="$exec_prefix"
35123   exec_prefix="$acl_final_exec_prefix"
35124   eval x=\"$x\"
35125   exec_prefix="$acl_save_exec_prefix"
35126   prefix="$acl_save_prefix"
35127
35128               case "$x" in
35129                 -L*)
35130                   dir=`echo "X$x" | sed -e 's/^X-L//'`
35131                                     if test -n "$acl_shlibext"; then
35132                     if test -f "$dir/$libname$shrext"; then
35133                       found_dir="$dir"
35134                       found_so="$dir/$libname$shrext"
35135                     else
35136                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
35137                         ver=`(cd "$dir" && \
35138                               for f in "$libname$shrext".*; do echo "$f"; done \
35139                               | sed -e "s,^$libname$shrext\\\\.,," \
35140                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
35141                               | sed 1q ) 2>/dev/null`
35142                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
35143                           found_dir="$dir"
35144                           found_so="$dir/$libname$shrext.$ver"
35145                         fi
35146                       else
35147                         eval library_names=\"$acl_library_names_spec\"
35148                         for f in $library_names; do
35149                           if test -f "$dir/$f"; then
35150                             found_dir="$dir"
35151                             found_so="$dir/$f"
35152                             break
35153                           fi
35154                         done
35155                       fi
35156                     fi
35157                   fi
35158                                     if test "X$found_dir" = "X"; then
35159                     if test -f "$dir/$libname.$acl_libext"; then
35160                       found_dir="$dir"
35161                       found_a="$dir/$libname.$acl_libext"
35162                     fi
35163                   fi
35164                   if test "X$found_dir" != "X"; then
35165                     if test -f "$dir/$libname.la"; then
35166                       found_la="$dir/$libname.la"
35167                     fi
35168                   fi
35169                   ;;
35170               esac
35171               if test "X$found_dir" != "X"; then
35172                 break
35173               fi
35174             done
35175           fi
35176           if test "X$found_dir" != "X"; then
35177                         LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$found_dir -l$name"
35178             if test "X$found_so" != "X"; then
35179                                                         if test "$enable_rpath" = no \
35180                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
35181                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
35182                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
35183               else
35184                                                                                 haveit=
35185                 for x in $ltrpathdirs; do
35186                   if test "X$x" = "X$found_dir"; then
35187                     haveit=yes
35188                     break
35189                   fi
35190                 done
35191                 if test -z "$haveit"; then
35192                   ltrpathdirs="$ltrpathdirs $found_dir"
35193                 fi
35194                                 if test "$acl_hardcode_direct" = yes; then
35195                                                       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
35196                 else
35197                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
35198                                                             LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
35199                                                             haveit=
35200                     for x in $rpathdirs; do
35201                       if test "X$x" = "X$found_dir"; then
35202                         haveit=yes
35203                         break
35204                       fi
35205                     done
35206                     if test -z "$haveit"; then
35207                       rpathdirs="$rpathdirs $found_dir"
35208                     fi
35209                   else
35210                                                                                 haveit=
35211                     for x in $LDFLAGS $LIBCURSES; do
35212
35213   acl_save_prefix="$prefix"
35214   prefix="$acl_final_prefix"
35215   acl_save_exec_prefix="$exec_prefix"
35216   exec_prefix="$acl_final_exec_prefix"
35217   eval x=\"$x\"
35218   exec_prefix="$acl_save_exec_prefix"
35219   prefix="$acl_save_prefix"
35220
35221                       if test "X$x" = "X-L$found_dir"; then
35222                         haveit=yes
35223                         break
35224                       fi
35225                     done
35226                     if test -z "$haveit"; then
35227                       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir"
35228                     fi
35229                     if test "$acl_hardcode_minus_L" != no; then
35230                                                                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
35231                     else
35232                                                                                                                                                                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
35233                     fi
35234                   fi
35235                 fi
35236               fi
35237             else
35238               if test "X$found_a" != "X"; then
35239                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_a"
35240               else
35241                                                 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir -l$name"
35242               fi
35243             fi
35244                         additional_includedir=
35245             case "$found_dir" in
35246               */$acl_libdirstem | */$acl_libdirstem/)
35247                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
35248                 if test "$name" = 'curses'; then
35249                   LIBCURSES_PREFIX="$basedir"
35250                 fi
35251                 additional_includedir="$basedir/include"
35252                 ;;
35253               */$acl_libdirstem2 | */$acl_libdirstem2/)
35254                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
35255                 if test "$name" = 'curses'; then
35256                   LIBCURSES_PREFIX="$basedir"
35257                 fi
35258                 additional_includedir="$basedir/include"
35259                 ;;
35260             esac
35261             if test "X$additional_includedir" != "X"; then
35262                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
35263                 haveit=
35264                 if test "X$additional_includedir" = "X/usr/local/include"; then
35265                   if test -n "$GCC"; then
35266                     case $host_os in
35267                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35268                     esac
35269                   fi
35270                 fi
35271                 if test -z "$haveit"; then
35272                   for x in $CPPFLAGS $INCCURSES; do
35273
35274   acl_save_prefix="$prefix"
35275   prefix="$acl_final_prefix"
35276   acl_save_exec_prefix="$exec_prefix"
35277   exec_prefix="$acl_final_exec_prefix"
35278   eval x=\"$x\"
35279   exec_prefix="$acl_save_exec_prefix"
35280   prefix="$acl_save_prefix"
35281
35282                     if test "X$x" = "X-I$additional_includedir"; then
35283                       haveit=yes
35284                       break
35285                     fi
35286                   done
35287                   if test -z "$haveit"; then
35288                     if test -d "$additional_includedir"; then
35289                                             INCCURSES="${INCCURSES}${INCCURSES:+ }-I$additional_includedir"
35290                     fi
35291                   fi
35292                 fi
35293               fi
35294             fi
35295                         if test -n "$found_la"; then
35296                                                         save_libdir="$libdir"
35297               case "$found_la" in
35298                 */* | *\\*) . "$found_la" ;;
35299                 *) . "./$found_la" ;;
35300               esac
35301               libdir="$save_libdir"
35302                             for dep in $dependency_libs; do
35303                 case "$dep" in
35304                   -L*)
35305                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
35306                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
35307                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
35308                       haveit=
35309                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
35310                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
35311                         if test -n "$GCC"; then
35312                           case $host_os in
35313                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
35314                           esac
35315                         fi
35316                       fi
35317                       if test -z "$haveit"; then
35318                         haveit=
35319                         for x in $LDFLAGS $LIBCURSES; do
35320
35321   acl_save_prefix="$prefix"
35322   prefix="$acl_final_prefix"
35323   acl_save_exec_prefix="$exec_prefix"
35324   exec_prefix="$acl_final_exec_prefix"
35325   eval x=\"$x\"
35326   exec_prefix="$acl_save_exec_prefix"
35327   prefix="$acl_save_prefix"
35328
35329                           if test "X$x" = "X-L$additional_libdir"; then
35330                             haveit=yes
35331                             break
35332                           fi
35333                         done
35334                         if test -z "$haveit"; then
35335                           if test -d "$additional_libdir"; then
35336                                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$additional_libdir"
35337                           fi
35338                         fi
35339                         haveit=
35340                         for x in $LDFLAGS $LTLIBCURSES; do
35341
35342   acl_save_prefix="$prefix"
35343   prefix="$acl_final_prefix"
35344   acl_save_exec_prefix="$exec_prefix"
35345   exec_prefix="$acl_final_exec_prefix"
35346   eval x=\"$x\"
35347   exec_prefix="$acl_save_exec_prefix"
35348   prefix="$acl_save_prefix"
35349
35350                           if test "X$x" = "X-L$additional_libdir"; then
35351                             haveit=yes
35352                             break
35353                           fi
35354                         done
35355                         if test -z "$haveit"; then
35356                           if test -d "$additional_libdir"; then
35357                                                         LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$additional_libdir"
35358                           fi
35359                         fi
35360                       fi
35361                     fi
35362                     ;;
35363                   -R*)
35364                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
35365                     if test "$enable_rpath" != no; then
35366                                                                   haveit=
35367                       for x in $rpathdirs; do
35368                         if test "X$x" = "X$dir"; then
35369                           haveit=yes
35370                           break
35371                         fi
35372                       done
35373                       if test -z "$haveit"; then
35374                         rpathdirs="$rpathdirs $dir"
35375                       fi
35376                                                                   haveit=
35377                       for x in $ltrpathdirs; do
35378                         if test "X$x" = "X$dir"; then
35379                           haveit=yes
35380                           break
35381                         fi
35382                       done
35383                       if test -z "$haveit"; then
35384                         ltrpathdirs="$ltrpathdirs $dir"
35385                       fi
35386                     fi
35387                     ;;
35388                   -l*)
35389                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
35390                     ;;
35391                   *.la)
35392                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
35393                     ;;
35394                   *)
35395                                         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$dep"
35396                     LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$dep"
35397                     ;;
35398                 esac
35399               done
35400             fi
35401           else
35402                                                             LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
35403             LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-l$name"
35404           fi
35405         fi
35406       fi
35407     done
35408   done
35409   if test "X$rpathdirs" != "X"; then
35410     if test -n "$acl_hardcode_libdir_separator"; then
35411                         alldirs=
35412       for found_dir in $rpathdirs; do
35413         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
35414       done
35415             acl_save_libdir="$libdir"
35416       libdir="$alldirs"
35417       eval flag=\"$acl_hardcode_libdir_flag_spec\"
35418       libdir="$acl_save_libdir"
35419       LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
35420     else
35421             for found_dir in $rpathdirs; do
35422         acl_save_libdir="$libdir"
35423         libdir="$found_dir"
35424         eval flag=\"$acl_hardcode_libdir_flag_spec\"
35425         libdir="$acl_save_libdir"
35426         LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
35427       done
35428     fi
35429   fi
35430   if test "X$ltrpathdirs" != "X"; then
35431             for found_dir in $ltrpathdirs; do
35432       LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-R$found_dir"
35433     done
35434   fi
35435
35436
35437
35438
35439
35440
35441
35442   else
35443
35444     LIBNCURSES=
35445     LTLIBNCURSES=
35446     INCNCURSES=
35447
35448     LIBTERMCAP=
35449     LTLIBTERMCAP=
35450     INCTERMCAP=
35451
35452     LIBXCURSES=
35453     LTLIBXCURSES=
35454     INCXCURSES=
35455
35456     LIBCURSES=
35457     LTLIBCURSES=
35458     INCCURSES=
35459
35460   fi
35461
35462       { $as_echo "$as_me:${as_lineno-$LINENO}: checking where terminfo library functions come from" >&5
35463 $as_echo_n "checking where terminfo library functions come from... " >&6; }
35464 if ${gl_cv_terminfo+:} false; then :
35465   $as_echo_n "(cached) " >&6
35466 else
35467
35468     gl_cv_terminfo="not found, consider installing GNU ncurses"
35469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35470 /* end confdefs.h.  */
35471 extern
35472       #ifdef __cplusplus
35473       "C"
35474       #endif
35475       int setupterm (const char *, int, int *);
35476       extern
35477       #ifdef __cplusplus
35478       "C"
35479       #endif
35480       int tigetnum (const char *);
35481       extern
35482       #ifdef __cplusplus
35483       "C"
35484       #endif
35485       int tigetflag (const char *);
35486       extern
35487       #ifdef __cplusplus
35488       "C"
35489       #endif
35490       const char * tigetstr (const char *);
35491
35492 int
35493 main ()
35494 {
35495 return setupterm ("xterm", 0, (int *)0)
35496                  + tigetnum ("colors")
35497                  + tigetflag ("hc") + * tigetstr("oc");
35498   ;
35499   return 0;
35500 }
35501 _ACEOF
35502 if ac_fn_c_try_link "$LINENO"; then :
35503   gl_cv_terminfo=libc
35504 fi
35505 rm -f core conftest.err conftest.$ac_objext \
35506     conftest$ac_exeext conftest.$ac_ext
35507     if test "$gl_cv_terminfo" != libc; then
35508       gl_save_LIBS="$LIBS"
35509       LIBS="$LIBS $LIBNCURSES"
35510       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35511 /* end confdefs.h.  */
35512 extern
35513         #ifdef __cplusplus
35514         "C"
35515         #endif
35516         int setupterm (const char *, int, int *);
35517         extern
35518         #ifdef __cplusplus
35519         "C"
35520         #endif
35521         int tigetnum (const char *);
35522         extern
35523         #ifdef __cplusplus
35524         "C"
35525         #endif
35526         int tigetflag (const char *);
35527         extern
35528         #ifdef __cplusplus
35529         "C"
35530         #endif
35531         const char * tigetstr (const char *);
35532
35533 int
35534 main ()
35535 {
35536 return setupterm ("xterm", 0, (int *)0)
35537                    + tigetnum ("colors")
35538                    + tigetflag ("hc") + * tigetstr("oc");
35539   ;
35540   return 0;
35541 }
35542 _ACEOF
35543 if ac_fn_c_try_link "$LINENO"; then :
35544   gl_cv_terminfo=libncurses
35545 fi
35546 rm -f core conftest.err conftest.$ac_objext \
35547     conftest$ac_exeext conftest.$ac_ext
35548       LIBS="$gl_save_LIBS"
35549       if test "$gl_cv_terminfo" != libncurses; then
35550         gl_save_LIBS="$LIBS"
35551         LIBS="$LIBS $LIBTERMCAP"
35552         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35553 /* end confdefs.h.  */
35554 extern
35555           #ifdef __cplusplus
35556           "C"
35557           #endif
35558           int setupterm (const char *, int, int *);
35559           extern
35560           #ifdef __cplusplus
35561           "C"
35562           #endif
35563           int tigetnum (const char *);
35564           extern
35565           #ifdef __cplusplus
35566           "C"
35567           #endif
35568           int tigetflag (const char *);
35569           extern
35570           #ifdef __cplusplus
35571           "C"
35572           #endif
35573           const char * tigetstr (const char *);
35574
35575 int
35576 main ()
35577 {
35578 return setupterm ("xterm", 0, (int *)0)
35579                      + tigetnum ("colors")
35580                      + tigetflag ("hc") + * tigetstr("oc");
35581   ;
35582   return 0;
35583 }
35584 _ACEOF
35585 if ac_fn_c_try_link "$LINENO"; then :
35586   gl_cv_terminfo=libtermcap
35587 fi
35588 rm -f core conftest.err conftest.$ac_objext \
35589     conftest$ac_exeext conftest.$ac_ext
35590         LIBS="$gl_save_LIBS"
35591         if test "$gl_cv_terminfo" != libtermcap; then
35592           gl_save_LIBS="$LIBS"
35593           LIBS="$LIBS $LIBXCURSES"
35594           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35595 /* end confdefs.h.  */
35596 extern
35597             #ifdef __cplusplus
35598             "C"
35599             #endif
35600             int setupterm (const char *, int, int *);
35601             extern
35602             #ifdef __cplusplus
35603             "C"
35604             #endif
35605             int tigetnum (const char *);
35606             extern
35607             #ifdef __cplusplus
35608             "C"
35609             #endif
35610             int tigetflag (const char *);
35611             extern
35612             #ifdef __cplusplus
35613             "C"
35614             #endif
35615             const char * tigetstr (const char *);
35616
35617 int
35618 main ()
35619 {
35620 return setupterm ("xterm", 0, (int *)0)
35621                        + tigetnum ("colors")
35622                        + tigetflag ("hc") + * tigetstr("oc");
35623   ;
35624   return 0;
35625 }
35626 _ACEOF
35627 if ac_fn_c_try_link "$LINENO"; then :
35628   gl_cv_terminfo=libxcurses
35629 fi
35630 rm -f core conftest.err conftest.$ac_objext \
35631     conftest$ac_exeext conftest.$ac_ext
35632           LIBS="$gl_save_LIBS"
35633           if test "$gl_cv_terminfo" != libxcurses; then
35634             gl_save_LIBS="$LIBS"
35635             LIBS="$LIBS $LIBCURSES"
35636             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35637 /* end confdefs.h.  */
35638 extern
35639               #ifdef __cplusplus
35640               "C"
35641               #endif
35642               int setupterm (const char *, int, int *);
35643               extern
35644               #ifdef __cplusplus
35645               "C"
35646               #endif
35647               int tigetnum (const char *);
35648               extern
35649               #ifdef __cplusplus
35650               "C"
35651               #endif
35652               int tigetflag (const char *);
35653               extern
35654               #ifdef __cplusplus
35655               "C"
35656               #endif
35657               const char * tigetstr (const char *);
35658
35659 int
35660 main ()
35661 {
35662 return setupterm ("xterm", 0, (int *)0)
35663                          + tigetnum ("colors")
35664                          + tigetflag ("hc") + * tigetstr("oc");
35665   ;
35666   return 0;
35667 }
35668 _ACEOF
35669 if ac_fn_c_try_link "$LINENO"; then :
35670   gl_cv_terminfo=libcurses
35671 fi
35672 rm -f core conftest.err conftest.$ac_objext \
35673     conftest$ac_exeext conftest.$ac_ext
35674             LIBS="$gl_save_LIBS"
35675           fi
35676         fi
35677       fi
35678     fi
35679
35680 fi
35681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo" >&5
35682 $as_echo "$gl_cv_terminfo" >&6; }
35683   case "$gl_cv_terminfo" in
35684     libc)
35685       LIBTERMINFO=
35686       LTLIBTERMINFO=
35687       INCTERMINFO=
35688       ;;
35689     libncurses)
35690       LIBTERMINFO="$LIBNCURSES"
35691       LTLIBTERMINFO="$LTLIBNCURSES"
35692       INCTERMINFO="$INCNCURSES"
35693       ;;
35694     libtermcap)
35695       LIBTERMINFO="$LIBTERMCAP"
35696       LTLIBTERMINFO="$LTLIBTERMCAP"
35697       INCTERMINFO="$INCTERMCAP"
35698       ;;
35699     libxcurses)
35700       LIBTERMINFO="$LIBXCURSES"
35701       LTLIBTERMINFO="$LTLIBXCURSES"
35702       INCTERMINFO="$INCXCURSES"
35703       ;;
35704     libcurses)
35705       LIBTERMINFO="$LIBCURSES"
35706       LTLIBTERMINFO="$LTLIBCURSES"
35707       INCTERMINFO="$INCCURSES"
35708       ;;
35709   esac
35710   case "$gl_cv_terminfo" in
35711     libc | libncurses | libtermcap | libxcurses | libcurses)
35712
35713 $as_echo "#define HAVE_TERMINFO 1" >>confdefs.h
35714
35715       ;;
35716     *)
35717             { $as_echo "$as_me:${as_lineno-$LINENO}: checking where termcap library functions come from" >&5
35718 $as_echo_n "checking where termcap library functions come from... " >&6; }
35719 if ${gl_cv_termcap+:} false; then :
35720   $as_echo_n "(cached) " >&6
35721 else
35722
35723         gl_cv_termcap="not found, consider installing GNU ncurses"
35724         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35725 /* end confdefs.h.  */
35726 extern
35727           #ifdef __cplusplus
35728           "C"
35729           #endif
35730           int tgetent (char *, const char *);
35731
35732 int
35733 main ()
35734 {
35735 return tgetent ((char *) 0, "xterm");
35736   ;
35737   return 0;
35738 }
35739 _ACEOF
35740 if ac_fn_c_try_link "$LINENO"; then :
35741   gl_cv_termcap=libc
35742 fi
35743 rm -f core conftest.err conftest.$ac_objext \
35744     conftest$ac_exeext conftest.$ac_ext
35745         if test "$gl_cv_termcap" != libc; then
35746           gl_save_LIBS="$LIBS"
35747           LIBS="$LIBS $LIBNCURSES"
35748           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35749 /* end confdefs.h.  */
35750 extern
35751             #ifdef __cplusplus
35752             "C"
35753             #endif
35754             int tgetent (char *, const char *);
35755
35756 int
35757 main ()
35758 {
35759 return tgetent ((char *) 0, "xterm");
35760   ;
35761   return 0;
35762 }
35763 _ACEOF
35764 if ac_fn_c_try_link "$LINENO"; then :
35765   gl_cv_termcap=libncurses
35766 fi
35767 rm -f core conftest.err conftest.$ac_objext \
35768     conftest$ac_exeext conftest.$ac_ext
35769           LIBS="$gl_save_LIBS"
35770           if test "$gl_cv_termcap" != libncurses; then
35771             gl_save_LIBS="$LIBS"
35772             LIBS="$LIBS $LIBTERMCAP"
35773             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35774 /* end confdefs.h.  */
35775 extern
35776               #ifdef __cplusplus
35777               "C"
35778               #endif
35779               int tgetent (char *, const char *);
35780
35781 int
35782 main ()
35783 {
35784 return tgetent ((char *) 0, "xterm");
35785   ;
35786   return 0;
35787 }
35788 _ACEOF
35789 if ac_fn_c_try_link "$LINENO"; then :
35790   gl_cv_termcap=libtermcap
35791 fi
35792 rm -f core conftest.err conftest.$ac_objext \
35793     conftest$ac_exeext conftest.$ac_ext
35794             LIBS="$gl_save_LIBS"
35795           fi
35796         fi
35797
35798 fi
35799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_termcap" >&5
35800 $as_echo "$gl_cv_termcap" >&6; }
35801       case "$gl_cv_termcap" in
35802         libc)
35803           LIBTERMINFO=
35804           LTLIBTERMINFO=
35805           INCTERMINFO=
35806           ;;
35807         libncurses)
35808           LIBTERMINFO="$LIBNCURSES"
35809           LTLIBTERMINFO="$LTLIBNCURSES"
35810           INCTERMINFO="$INCNCURSES"
35811           ;;
35812         libtermcap)
35813           LIBTERMINFO="$LIBTERMCAP"
35814           LTLIBTERMINFO="$LTLIBTERMCAP"
35815           INCTERMINFO="$INCTERMCAP"
35816           ;;
35817       esac
35818       case "$gl_cv_termcap" in
35819         libc | libncurses | libtermcap)
35820
35821 $as_echo "#define HAVE_TERMCAP 1" >>confdefs.h
35822
35823           ;;
35824       esac
35825       ;;
35826   esac
35827
35828
35829
35830
35831       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparam" >&5
35832 $as_echo_n "checking for tparam... " >&6; }
35833 if ${gl_cv_terminfo_tparam+:} false; then :
35834   $as_echo_n "(cached) " >&6
35835 else
35836
35837     gl_save_LIBS="$LIBS"
35838     LIBS="$LIBS $LIBTERMINFO"
35839     gl_save_CPPFLAGS="$CPPFLAGS"
35840     CPPFLAGS="$CPPFLAGS $INCTERMINFO"
35841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35842 /* end confdefs.h.  */
35843 extern
35844       #ifdef __cplusplus
35845       "C"
35846       #endif
35847       char * tparam (const char *, void *, int, ...);
35848       char buf;
35849
35850 int
35851 main ()
35852 {
35853 return tparam ("\033\133%dm", &buf, 1, 8);
35854   ;
35855   return 0;
35856 }
35857 _ACEOF
35858 if ac_fn_c_try_link "$LINENO"; then :
35859   gl_cv_terminfo_tparam=yes
35860 else
35861   gl_cv_terminfo_tparam=no
35862 fi
35863 rm -f core conftest.err conftest.$ac_objext \
35864     conftest$ac_exeext conftest.$ac_ext
35865     CPPFLAGS="$gl_save_CPPFLAGS"
35866     LIBS="$gl_save_LIBS"
35867
35868 fi
35869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparam" >&5
35870 $as_echo "$gl_cv_terminfo_tparam" >&6; }
35871   if test $gl_cv_terminfo_tparam = yes; then
35872
35873 $as_echo "#define HAVE_TPARAM 1" >>confdefs.h
35874
35875   else
35876             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm" >&5
35877 $as_echo_n "checking for tparm... " >&6; }
35878 if ${gl_cv_terminfo_tparm+:} false; then :
35879   $as_echo_n "(cached) " >&6
35880 else
35881
35882       gl_save_LIBS="$LIBS"
35883       LIBS="$LIBS $LIBTERMINFO"
35884       gl_save_CPPFLAGS="$CPPFLAGS"
35885       CPPFLAGS="$CPPFLAGS $INCTERMINFO"
35886       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35887 /* end confdefs.h.  */
35888 extern
35889         #ifdef __cplusplus
35890         "C"
35891         #endif
35892         char * tparm (const char *, ...);
35893
35894 int
35895 main ()
35896 {
35897 return tparm ("\033\133%dm", 8);
35898   ;
35899   return 0;
35900 }
35901 _ACEOF
35902 if ac_fn_c_try_link "$LINENO"; then :
35903   gl_cv_terminfo_tparm=yes
35904 else
35905   gl_cv_terminfo_tparm=no
35906 fi
35907 rm -f core conftest.err conftest.$ac_objext \
35908     conftest$ac_exeext conftest.$ac_ext
35909       CPPFLAGS="$gl_save_CPPFLAGS"
35910       LIBS="$gl_save_LIBS"
35911
35912 fi
35913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparm" >&5
35914 $as_echo "$gl_cv_terminfo_tparm" >&6; }
35915   fi
35916
35917
35918   GNULIB_MKTIME=0;
35919   GNULIB_NANOSLEEP=0;
35920   GNULIB_STRPTIME=0;
35921   GNULIB_TIMEGM=0;
35922   GNULIB_TIME_R=0;
35923   GNULIB_TIME_RZ=0;
35924     HAVE_DECL_LOCALTIME_R=1;
35925   HAVE_NANOSLEEP=1;
35926   HAVE_STRPTIME=1;
35927   HAVE_TIMEGM=1;
35928         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
35929   REPLACE_MKTIME=GNULIB_PORTCHECK;
35930   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
35931   REPLACE_TIMEGM=GNULIB_PORTCHECK;
35932
35933       : ${GNULIB_GETTIMEOFDAY=0};
35934         REPLACE_GMTIME=0;
35935   REPLACE_LOCALTIME=0;
35936
35937
35938
35939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
35940 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
35941 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
35942   $as_echo_n "(cached) " >&6
35943 else
35944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35945 /* end confdefs.h.  */
35946 #include <time.h>
35947
35948 int
35949 main ()
35950 {
35951 static struct timespec x; x.tv_sec = x.tv_nsec;
35952   ;
35953   return 0;
35954 }
35955 _ACEOF
35956 if ac_fn_c_try_compile "$LINENO"; then :
35957   gl_cv_sys_struct_timespec_in_time_h=yes
35958 else
35959   gl_cv_sys_struct_timespec_in_time_h=no
35960 fi
35961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35962 fi
35963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
35964 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
35965
35966   TIME_H_DEFINES_STRUCT_TIMESPEC=0
35967   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
35968   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
35969   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
35970   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
35971     TIME_H_DEFINES_STRUCT_TIMESPEC=1
35972   else
35973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
35974 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
35975 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
35976   $as_echo_n "(cached) " >&6
35977 else
35978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35979 /* end confdefs.h.  */
35980 #include <sys/time.h>
35981
35982 int
35983 main ()
35984 {
35985 static struct timespec x; x.tv_sec = x.tv_nsec;
35986   ;
35987   return 0;
35988 }
35989 _ACEOF
35990 if ac_fn_c_try_compile "$LINENO"; then :
35991   gl_cv_sys_struct_timespec_in_sys_time_h=yes
35992 else
35993   gl_cv_sys_struct_timespec_in_sys_time_h=no
35994 fi
35995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35996 fi
35997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
35998 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
35999     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
36000       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
36001     else
36002       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
36003 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
36004 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
36005   $as_echo_n "(cached) " >&6
36006 else
36007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36008 /* end confdefs.h.  */
36009 #include <pthread.h>
36010
36011 int
36012 main ()
36013 {
36014 static struct timespec x; x.tv_sec = x.tv_nsec;
36015   ;
36016   return 0;
36017 }
36018 _ACEOF
36019 if ac_fn_c_try_compile "$LINENO"; then :
36020   gl_cv_sys_struct_timespec_in_pthread_h=yes
36021 else
36022   gl_cv_sys_struct_timespec_in_pthread_h=no
36023 fi
36024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36025 fi
36026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
36027 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
36028       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
36029         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
36030       else
36031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
36032 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
36033 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
36034   $as_echo_n "(cached) " >&6
36035 else
36036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36037 /* end confdefs.h.  */
36038 #include <unistd.h>
36039
36040 int
36041 main ()
36042 {
36043 static struct timespec x; x.tv_sec = x.tv_nsec;
36044   ;
36045   return 0;
36046 }
36047 _ACEOF
36048 if ac_fn_c_try_compile "$LINENO"; then :
36049   gl_cv_sys_struct_timespec_in_unistd_h=yes
36050 else
36051   gl_cv_sys_struct_timespec_in_unistd_h=no
36052 fi
36053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36054 fi
36055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
36056 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
36057         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
36058           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
36059         fi
36060       fi
36061     fi
36062   fi
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079      if test $gl_cv_have_include_next = yes; then
36080        gl_cv_next_time_h='<'time.h'>'
36081      else
36082        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
36083 $as_echo_n "checking absolute name of <time.h>... " >&6; }
36084 if ${gl_cv_next_time_h+:} false; then :
36085   $as_echo_n "(cached) " >&6
36086 else
36087
36088
36089
36090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36091 /* end confdefs.h.  */
36092 #include <time.h>
36093 _ACEOF
36094                 case "$host_os" in
36095     aix*) gl_absname_cpp="$ac_cpp -C" ;;
36096     *)    gl_absname_cpp="$ac_cpp" ;;
36097   esac
36098
36099   case "$host_os" in
36100     mingw*)
36101                                           gl_dirsep_regex='[/\\]'
36102       ;;
36103     *)
36104       gl_dirsep_regex='\/'
36105       ;;
36106   esac
36107       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36108   gl_header_literal_regex=`echo 'time.h' \
36109                            | sed -e "$gl_make_literal_regex_sed"`
36110   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36111       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36112       s|^/[^/]|//&|
36113       p
36114       q
36115     }'
36116
36117         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36118   sed -n "$gl_absolute_header_sed"`
36119
36120            gl_header=$gl_cv_absolute_time_h
36121            gl_cv_next_time_h='"'$gl_header'"'
36122
36123
36124 fi
36125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
36126 $as_echo "$gl_cv_next_time_h" >&6; }
36127      fi
36128      NEXT_TIME_H=$gl_cv_next_time_h
36129
36130      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36131        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36132        gl_next_as_first_directive='<'time.h'>'
36133      else
36134        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36135        gl_next_as_first_directive=$gl_cv_next_time_h
36136      fi
36137      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
36151 i\
36152 0
36153 q
36154 '
36155 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
36156 i\
36157 0
36158 q
36159 '
36160 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;}
36161 i\
36162 0
36163 q
36164 '
36165
36166
36167   if test "$HAVE_LIBUNISTRING" = yes; then
36168     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
36169     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
36170     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
36171   fi
36172
36173
36174
36175 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
36176 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
36177   ac_have_decl=1
36178 else
36179   ac_have_decl=0
36180 fi
36181
36182 cat >>confdefs.h <<_ACEOF
36183 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
36184 _ACEOF
36185
36186 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
36187 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
36188   ac_have_decl=1
36189 else
36190   ac_have_decl=0
36191 fi
36192
36193 cat >>confdefs.h <<_ACEOF
36194 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
36195 _ACEOF
36196
36197 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
36198 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
36199   ac_have_decl=1
36200 else
36201   ac_have_decl=0
36202 fi
36203
36204 cat >>confdefs.h <<_ACEOF
36205 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
36206 _ACEOF
36207
36208 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
36209 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
36210   ac_have_decl=1
36211 else
36212   ac_have_decl=0
36213 fi
36214
36215 cat >>confdefs.h <<_ACEOF
36216 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
36217 _ACEOF
36218
36219 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
36220 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
36221   ac_have_decl=1
36222 else
36223   ac_have_decl=0
36224 fi
36225
36226 cat >>confdefs.h <<_ACEOF
36227 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
36228 _ACEOF
36229
36230 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
36231 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
36232   ac_have_decl=1
36233 else
36234   ac_have_decl=0
36235 fi
36236
36237 cat >>confdefs.h <<_ACEOF
36238 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
36239 _ACEOF
36240
36241 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
36242 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
36243   ac_have_decl=1
36244 else
36245   ac_have_decl=0
36246 fi
36247
36248 cat >>confdefs.h <<_ACEOF
36249 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
36250 _ACEOF
36251
36252 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
36253 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
36254   ac_have_decl=1
36255 else
36256   ac_have_decl=0
36257 fi
36258
36259 cat >>confdefs.h <<_ACEOF
36260 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
36261 _ACEOF
36262
36263 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
36264 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
36265   ac_have_decl=1
36266 else
36267   ac_have_decl=0
36268 fi
36269
36270 cat >>confdefs.h <<_ACEOF
36271 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
36272 _ACEOF
36273
36274 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
36275 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
36276   ac_have_decl=1
36277 else
36278   ac_have_decl=0
36279 fi
36280
36281 cat >>confdefs.h <<_ACEOF
36282 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
36283 _ACEOF
36284
36285 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
36286 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
36287   ac_have_decl=1
36288 else
36289   ac_have_decl=0
36290 fi
36291
36292 cat >>confdefs.h <<_ACEOF
36293 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
36294 _ACEOF
36295
36296 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
36297 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
36298   ac_have_decl=1
36299 else
36300   ac_have_decl=0
36301 fi
36302
36303 cat >>confdefs.h <<_ACEOF
36304 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
36305 _ACEOF
36306
36307 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
36308 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
36309   ac_have_decl=1
36310 else
36311   ac_have_decl=0
36312 fi
36313
36314 cat >>confdefs.h <<_ACEOF
36315 #define HAVE_DECL_UNSETENV $ac_have_decl
36316 _ACEOF
36317
36318
36319
36320
36321
36322
36323
36324   if test $ac_cv_header_features_h = yes; then
36325     HAVE_FEATURES_H=1
36326   else
36327     HAVE_FEATURES_H=0
36328   fi
36329
36330
36331
36332
36333
36334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
36335 $as_echo_n "checking for intmax_t... " >&6; }
36336 if ${gt_cv_c_intmax_t+:} false; then :
36337   $as_echo_n "(cached) " >&6
36338 else
36339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36340 /* end confdefs.h.  */
36341
36342 #include <stddef.h>
36343 #include <stdlib.h>
36344 #if HAVE_STDINT_H_WITH_UINTMAX
36345 #include <stdint.h>
36346 #endif
36347 #if HAVE_INTTYPES_H_WITH_UINTMAX
36348 #include <inttypes.h>
36349 #endif
36350
36351 int
36352 main ()
36353 {
36354 intmax_t x = -1; return !x;
36355   ;
36356   return 0;
36357 }
36358 _ACEOF
36359 if ac_fn_c_try_compile "$LINENO"; then :
36360   gt_cv_c_intmax_t=yes
36361 else
36362   gt_cv_c_intmax_t=no
36363 fi
36364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36365 fi
36366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
36367 $as_echo "$gt_cv_c_intmax_t" >&6; }
36368   if test $gt_cv_c_intmax_t = yes; then
36369
36370 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
36371
36372   else
36373
36374     test $ac_cv_type_long_long_int = yes \
36375       && ac_type='long long' \
36376       || ac_type='long'
36377
36378 cat >>confdefs.h <<_ACEOF
36379 #define intmax_t $ac_type
36380 _ACEOF
36381
36382   fi
36383
36384
36385
36386
36387
36388
36389   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
36390 do :
36391   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
36393 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
36394   cat >>confdefs.h <<_ACEOF
36395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36396 _ACEOF
36397
36398 fi
36399 done
36400
36401       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
36402 "
36403 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
36404   ac_have_decl=1
36405 else
36406   ac_have_decl=0
36407 fi
36408
36409 cat >>confdefs.h <<_ACEOF
36410 #define HAVE_DECL__SNPRINTF $ac_have_decl
36411 _ACEOF
36412
36413
36414
36415   case "$gl_cv_func_snprintf_retval_c99" in
36416     *yes)
36417
36418 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
36419
36420       ;;
36421   esac
36422
36423 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
36424 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
36425   ac_have_decl=1
36426 else
36427   ac_have_decl=0
36428 fi
36429
36430 cat >>confdefs.h <<_ACEOF
36431 #define HAVE_DECL_VSNPRINTF $ac_have_decl
36432 _ACEOF
36433
36434
36435             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
36436 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
36437 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
36438   $as_echo_n "(cached) " >&6
36439 else
36440   gl_cv_header_wchar_h_correct_inline=yes
36441      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36442 /* end confdefs.h.  */
36443
36444        #define wcstod renamed_wcstod
36445 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
36446    <wchar.h>.
36447    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36448    included before <wchar.h>.  */
36449 #include <stddef.h>
36450 #include <stdio.h>
36451 #include <time.h>
36452 #include <wchar.h>
36453 extern int zero (void);
36454 int main () { return zero(); }
36455
36456 _ACEOF
36457      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
36458   (eval $ac_compile) 2>&5
36459   ac_status=$?
36460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36461   test $ac_status = 0; }; then
36462        mv conftest.$ac_objext conftest1.$ac_objext
36463        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36464 /* end confdefs.h.  */
36465
36466          #define wcstod renamed_wcstod
36467 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
36468    <wchar.h>.
36469    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36470    included before <wchar.h>.  */
36471 #include <stddef.h>
36472 #include <stdio.h>
36473 #include <time.h>
36474 #include <wchar.h>
36475 int zero (void) { return 0; }
36476
36477 _ACEOF
36478        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
36479   (eval $ac_compile) 2>&5
36480   ac_status=$?
36481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36482   test $ac_status = 0; }; then
36483          mv conftest.$ac_objext conftest2.$ac_objext
36484          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
36485            :
36486          else
36487            gl_cv_header_wchar_h_correct_inline=no
36488          fi
36489        fi
36490      fi
36491      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
36492
36493 fi
36494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
36495 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
36496   if test $gl_cv_header_wchar_h_correct_inline = no; then
36497     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
36498 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
36499 C99 mode. You have four options:
36500   - Add the flag -fgnu89-inline to CC and reconfigure, or
36501   - Fix your include files, using parts of
36502     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
36503   - Use a gcc version older than 4.3, or
36504   - Don't use the flags -std=c99 or -std=gnu99.
36505 Configuration aborted." "$LINENO" 5
36506   fi
36507
36508
36509
36510
36511   GNULIB_ISBLANK=0;
36512     HAVE_ISBLANK=1;
36513
36514 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
36515 if test "x$ac_cv_have_decl_alarm" = xyes; then :
36516   ac_have_decl=1
36517 else
36518   ac_have_decl=0
36519 fi
36520
36521 cat >>confdefs.h <<_ACEOF
36522 #define HAVE_DECL_ALARM $ac_have_decl
36523 _ACEOF
36524
36525
36526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
36527 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
36528 if ${gl_cv_var_stdin_large_offset+:} false; then :
36529   $as_echo_n "(cached) " >&6
36530 else
36531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36532 /* end confdefs.h.  */
36533 #include <stdio.h>
36534 int
36535 main ()
36536 {
36537 #if defined __SL64 && defined __SCLE /* cygwin */
36538   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
36539      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
36540      it is easier to do a version check than building a runtime test.  */
36541 # include <cygwin/version.h>
36542 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
36543   choke me
36544 # endif
36545 #endif
36546   ;
36547   return 0;
36548 }
36549 _ACEOF
36550 if ac_fn_c_try_link "$LINENO"; then :
36551   gl_cv_var_stdin_large_offset=yes
36552 else
36553   gl_cv_var_stdin_large_offset=no
36554 fi
36555 rm -f core conftest.err conftest.$ac_objext \
36556     conftest$ac_exeext conftest.$ac_ext
36557 fi
36558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
36559 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
36560
36561 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
36562 if test "x$ac_cv_have_decl_ftello" = xyes; then :
36563   ac_have_decl=1
36564 else
36565   ac_have_decl=0
36566 fi
36567
36568 cat >>confdefs.h <<_ACEOF
36569 #define HAVE_DECL_FTELLO $ac_have_decl
36570 _ACEOF
36571
36572
36573
36574
36575
36576
36577
36578
36579
36580
36581   if test $ac_cv_have_decl_ftello = no; then
36582     HAVE_DECL_FTELLO=0
36583   fi
36584
36585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
36586 $as_echo_n "checking for ftello... " >&6; }
36587 if ${gl_cv_func_ftello+:} false; then :
36588   $as_echo_n "(cached) " >&6
36589 else
36590
36591       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36592 /* end confdefs.h.  */
36593 #include <stdio.h>
36594 int
36595 main ()
36596 {
36597 ftello (stdin);
36598   ;
36599   return 0;
36600 }
36601 _ACEOF
36602 if ac_fn_c_try_link "$LINENO"; then :
36603   gl_cv_func_ftello=yes
36604 else
36605   gl_cv_func_ftello=no
36606 fi
36607 rm -f core conftest.err conftest.$ac_objext \
36608     conftest$ac_exeext conftest.$ac_ext
36609
36610 fi
36611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
36612 $as_echo "$gl_cv_func_ftello" >&6; }
36613   if test $gl_cv_func_ftello = no; then
36614     HAVE_FTELLO=0
36615   else
36616     if test $WINDOWS_64_BIT_OFF_T = 1; then
36617       REPLACE_FTELLO=1
36618     fi
36619     if test $gl_cv_var_stdin_large_offset = no; then
36620       REPLACE_FTELLO=1
36621     fi
36622     if test $REPLACE_FTELLO = 0; then
36623
36624       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
36625 $as_echo_n "checking whether ftello works... " >&6; }
36626 if ${gl_cv_func_ftello_works+:} false; then :
36627   $as_echo_n "(cached) " >&6
36628 else
36629
36630                               case "$host_os" in
36631                       # Guess no on Solaris.
36632             solaris*) gl_cv_func_ftello_works="guessing no" ;;
36633                       # Guess yes otherwise.
36634             *)        gl_cv_func_ftello_works="guessing yes" ;;
36635           esac
36636           if test "$cross_compiling" = yes; then :
36637   :
36638 else
36639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36640 /* end confdefs.h.  */
36641
36642 #include <stdio.h>
36643 #include <stdlib.h>
36644 #include <string.h>
36645 #define TESTFILE "conftest.tmp"
36646 int
36647 main (void)
36648 {
36649   FILE *fp;
36650
36651   /* Create a file with some contents.  */
36652   fp = fopen (TESTFILE, "w");
36653   if (fp == NULL)
36654     return 70;
36655   if (fwrite ("foogarsh", 1, 8, fp) < 8)
36656     return 71;
36657   if (fclose (fp))
36658     return 72;
36659
36660   /* The file's contents is now "foogarsh".  */
36661
36662   /* Try writing after reading to EOF.  */
36663   fp = fopen (TESTFILE, "r+");
36664   if (fp == NULL)
36665     return 73;
36666   if (fseek (fp, -1, SEEK_END))
36667     return 74;
36668   if (!(getc (fp) == 'h'))
36669     return 1;
36670   if (!(getc (fp) == EOF))
36671     return 2;
36672   if (!(ftell (fp) == 8))
36673     return 3;
36674   if (!(ftell (fp) == 8))
36675     return 4;
36676   if (!(putc ('!', fp) == '!'))
36677     return 5;
36678   if (!(ftell (fp) == 9))
36679     return 6;
36680   if (!(fclose (fp) == 0))
36681     return 7;
36682   fp = fopen (TESTFILE, "r");
36683   if (fp == NULL)
36684     return 75;
36685   {
36686     char buf[10];
36687     if (!(fread (buf, 1, 10, fp) == 9))
36688       return 10;
36689     if (!(memcmp (buf, "foogarsh!", 9) == 0))
36690       return 11;
36691   }
36692   if (!(fclose (fp) == 0))
36693     return 12;
36694
36695   /* The file's contents is now "foogarsh!".  */
36696
36697   return 0;
36698 }
36699 _ACEOF
36700 if ac_fn_c_try_run "$LINENO"; then :
36701   gl_cv_func_ftello_works=yes
36702 else
36703   gl_cv_func_ftello_works=no
36704 fi
36705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36706   conftest.$ac_objext conftest.beam conftest.$ac_ext
36707 fi
36708
36709
36710 fi
36711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
36712 $as_echo "$gl_cv_func_ftello_works" >&6; }
36713       case "$gl_cv_func_ftello_works" in
36714         *yes) ;;
36715         *)
36716           REPLACE_FTELLO=1
36717
36718 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
36719
36720           ;;
36721       esac
36722     fi
36723   fi
36724
36725
36726
36727
36728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
36729 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
36730 if ${gl_cv_func_ungetc_works+:} false; then :
36731   $as_echo_n "(cached) " >&6
36732 else
36733   if test "$cross_compiling" = yes; then :
36734   case "$host_os" in
36735                    # Guess yes on glibc and bionic systems.
36736            *-gnu*|*-android*)
36737                    gl_cv_func_ungetc_works="guessing yes" ;;
36738                    # If we don't know, assume the worst.
36739            *)      gl_cv_func_ungetc_works="guessing no" ;;
36740          esac
36741
36742 else
36743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36744 /* end confdefs.h.  */
36745
36746 #include <stdio.h>
36747
36748 int
36749 main ()
36750 {
36751 FILE *f;
36752            if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
36753            if (fputs ("abc", f) < 0) return 2;
36754            rewind (f);
36755            if (fgetc (f) != 'a') return 3;
36756            if (fgetc (f) != 'b') return 4;
36757            if (ungetc ('d', f) != 'd') return 5;
36758            if (ftell (f) != 1) return 6;
36759            if (fgetc (f) != 'd') return 7;
36760            if (ftell (f) != 2) return 8;
36761            if (fseek (f, 0, SEEK_CUR) != 0) return 9;
36762            if (ftell (f) != 2) return 10;
36763            if (fgetc (f) != 'c') return 11;
36764            fclose (f); remove ("conftest.tmp");
36765   ;
36766   return 0;
36767 }
36768 _ACEOF
36769 if ac_fn_c_try_run "$LINENO"; then :
36770   gl_cv_func_ungetc_works=yes
36771 else
36772   gl_cv_func_ungetc_works=no
36773 fi
36774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36775   conftest.$ac_objext conftest.beam conftest.$ac_ext
36776 fi
36777
36778
36779 fi
36780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
36781 $as_echo "$gl_cv_func_ungetc_works" >&6; }
36782   case "$gl_cv_func_ungetc_works" in
36783     *yes) ;;
36784     *)
36785
36786 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
36787
36788       ;;
36789   esac
36790
36791
36792
36793    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
36794 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
36795 if ${gl_cv_func_getcwd_null+:} false; then :
36796   $as_echo_n "(cached) " >&6
36797 else
36798   if test "$cross_compiling" = yes; then :
36799   case "$host_os" in
36800                      # Guess yes on glibc systems.
36801             *-gnu*)  gl_cv_func_getcwd_null="guessing yes";;
36802                      # Guess yes on Cygwin.
36803             cygwin*) gl_cv_func_getcwd_null="guessing yes";;
36804                      # If we don't know, assume the worst.
36805             *)       gl_cv_func_getcwd_null="guessing no";;
36806           esac
36807
36808 else
36809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36810 /* end confdefs.h.  */
36811
36812 #        if HAVE_UNISTD_H
36813 #         include <unistd.h>
36814 #        else /* on Windows with MSVC */
36815 #         include <direct.h>
36816 #        endif
36817 #        ifndef getcwd
36818          char *getcwd ();
36819 #        endif
36820
36821 int
36822 main ()
36823 {
36824
36825 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
36826 /* mingw cwd does not start with '/', but getcwd does allocate.
36827    However, mingw fails to honor non-zero size.  */
36828 #else
36829            if (chdir ("/") != 0)
36830              return 1;
36831            else
36832              {
36833                char *f = getcwd (NULL, 0);
36834                if (! f)
36835                  return 2;
36836                if (f[0] != '/')
36837                  return 3;
36838                if (f[1] != '\0')
36839                  return 4;
36840                return 0;
36841              }
36842 #endif
36843
36844   ;
36845   return 0;
36846 }
36847 _ACEOF
36848 if ac_fn_c_try_run "$LINENO"; then :
36849   gl_cv_func_getcwd_null=yes
36850 else
36851   gl_cv_func_getcwd_null=no
36852 fi
36853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36854   conftest.$ac_objext conftest.beam conftest.$ac_ext
36855 fi
36856
36857 fi
36858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
36859 $as_echo "$gl_cv_func_getcwd_null" >&6; }
36860
36861
36862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
36863 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
36864 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
36865   $as_echo_n "(cached) " >&6
36866 else
36867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36868 /* end confdefs.h.  */
36869 #include <unistd.h>
36870 int
36871 main ()
36872 {
36873 extern
36874            #ifdef __cplusplus
36875            "C"
36876            #endif
36877            char *getcwd (char *, size_t);
36878
36879   ;
36880   return 0;
36881 }
36882
36883 _ACEOF
36884 if ac_fn_c_try_compile "$LINENO"; then :
36885   gl_cv_func_getcwd_posix_signature=yes
36886 else
36887   gl_cv_func_getcwd_posix_signature=no
36888 fi
36889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36890
36891 fi
36892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
36893 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
36894
36895
36896
36897
36898   GNULIB_IMAXABS=0;
36899   GNULIB_IMAXDIV=0;
36900   GNULIB_STRTOIMAX=0;
36901   GNULIB_STRTOUMAX=0;
36902     HAVE_DECL_IMAXABS=1;
36903   HAVE_DECL_IMAXDIV=1;
36904   HAVE_DECL_STRTOIMAX=1;
36905   HAVE_DECL_STRTOUMAX=1;
36906   REPLACE_STRTOIMAX=0;
36907   REPLACE_STRTOUMAX=0;
36908   INT32_MAX_LT_INTMAX_MAX=1;
36909   INT64_MAX_EQ_LONG_MAX='defined _LP64';
36910   PRI_MACROS_BROKEN=0;
36911   PRIPTR_PREFIX=__PRIPTR_PREFIX;
36912   UINT32_MAX_LT_UINTMAX_MAX=1;
36913   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
36914
36915
36916
36917
36918
36919
36920
36921
36922
36923
36924
36925
36926
36927
36928
36929      if test $gl_cv_have_include_next = yes; then
36930        gl_cv_next_inttypes_h='<'inttypes.h'>'
36931      else
36932        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
36933 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
36934 if ${gl_cv_next_inttypes_h+:} false; then :
36935   $as_echo_n "(cached) " >&6
36936 else
36937
36938              if test $ac_cv_header_inttypes_h = yes; then
36939
36940
36941
36942
36943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36944 /* end confdefs.h.  */
36945 #include <inttypes.h>
36946 _ACEOF
36947                 case "$host_os" in
36948     aix*) gl_absname_cpp="$ac_cpp -C" ;;
36949     *)    gl_absname_cpp="$ac_cpp" ;;
36950   esac
36951
36952   case "$host_os" in
36953     mingw*)
36954                                           gl_dirsep_regex='[/\\]'
36955       ;;
36956     *)
36957       gl_dirsep_regex='\/'
36958       ;;
36959   esac
36960       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36961   gl_header_literal_regex=`echo 'inttypes.h' \
36962                            | sed -e "$gl_make_literal_regex_sed"`
36963   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36964       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36965       s|^/[^/]|//&|
36966       p
36967       q
36968     }'
36969
36970         gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36971   sed -n "$gl_absolute_header_sed"`
36972
36973            gl_header=$gl_cv_absolute_inttypes_h
36974            gl_cv_next_inttypes_h='"'$gl_header'"'
36975           else
36976                gl_cv_next_inttypes_h='<'inttypes.h'>'
36977              fi
36978
36979
36980 fi
36981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
36982 $as_echo "$gl_cv_next_inttypes_h" >&6; }
36983      fi
36984      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
36985
36986      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36987        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36988        gl_next_as_first_directive='<'inttypes.h'>'
36989      else
36990        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36991        gl_next_as_first_directive=$gl_cv_next_inttypes_h
36992      fi
36993      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
36994
36995
36996
36997
36998
36999
37000
37001
37002     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
37003     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
37004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
37005 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
37006 if eval \${$as_gl_Symbol+:} false; then :
37007   $as_echo_n "(cached) " >&6
37008 else
37009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37010 /* end confdefs.h.  */
37011 #include <inttypes.h>
37012
37013 int
37014 main ()
37015 {
37016 #undef $gl_func
37017   (void) $gl_func;
37018   ;
37019   return 0;
37020 }
37021 _ACEOF
37022 if ac_fn_c_try_compile "$LINENO"; then :
37023   eval "$as_gl_Symbol=yes"
37024 else
37025   eval "$as_gl_Symbol=no"
37026 fi
37027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37028 fi
37029 eval ac_res=\$$as_gl_Symbol
37030                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
37031 $as_echo "$ac_res" >&6; }
37032     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
37033   cat >>confdefs.h <<_ACEOF
37034 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
37035 _ACEOF
37036
37037                      eval ac_cv_have_decl_$gl_func=yes
37038 fi
37039       done
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051    if true; then
37052   GL_COND_LIBTOOL_TRUE=
37053   GL_COND_LIBTOOL_FALSE='#'
37054 else
37055   GL_COND_LIBTOOL_TRUE='#'
37056   GL_COND_LIBTOOL_FALSE=
37057 fi
37058
37059   gl_cond_libtool=true
37060   gl_m4_base='gnulib-m4'
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070   gl_source_base='gnulib-lib'
37071
37072
37073
37074   LIB_ACL=
37075   use_acl=0
37076   if test "$enable_acl" != no; then
37077         for ac_header in sys/acl.h
37078 do :
37079   ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
37080 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
37081   cat >>confdefs.h <<_ACEOF
37082 #define HAVE_SYS_ACL_H 1
37083 _ACEOF
37084
37085 fi
37086
37087 done
37088
37089     if test $ac_cv_header_sys_acl_h = yes; then
37090       ac_save_LIBS=$LIBS
37091
37092                   if test $use_acl = 0; then
37093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
37094 $as_echo_n "checking for library containing acl_get_file... " >&6; }
37095 if ${ac_cv_search_acl_get_file+:} false; then :
37096   $as_echo_n "(cached) " >&6
37097 else
37098   ac_func_search_save_LIBS=$LIBS
37099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37100 /* end confdefs.h.  */
37101
37102 /* Override any GCC internal prototype to avoid an error.
37103    Use char because int might match the return type of a GCC
37104    builtin and then its argument prototype would still apply.  */
37105 #ifdef __cplusplus
37106 extern "C"
37107 #endif
37108 char acl_get_file ();
37109 int
37110 main ()
37111 {
37112 return acl_get_file ();
37113   ;
37114   return 0;
37115 }
37116 _ACEOF
37117 for ac_lib in '' acl pacl; do
37118   if test -z "$ac_lib"; then
37119     ac_res="none required"
37120   else
37121     ac_res=-l$ac_lib
37122     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37123   fi
37124   if ac_fn_c_try_link "$LINENO"; then :
37125   ac_cv_search_acl_get_file=$ac_res
37126 fi
37127 rm -f core conftest.err conftest.$ac_objext \
37128     conftest$ac_exeext
37129   if ${ac_cv_search_acl_get_file+:} false; then :
37130   break
37131 fi
37132 done
37133 if ${ac_cv_search_acl_get_file+:} false; then :
37134
37135 else
37136   ac_cv_search_acl_get_file=no
37137 fi
37138 rm conftest.$ac_ext
37139 LIBS=$ac_func_search_save_LIBS
37140 fi
37141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
37142 $as_echo "$ac_cv_search_acl_get_file" >&6; }
37143 ac_res=$ac_cv_search_acl_get_file
37144 if test "$ac_res" != no; then :
37145   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37146   if test "$ac_cv_search_acl_get_file" != "none required"; then
37147              LIB_ACL=$ac_cv_search_acl_get_file
37148            fi
37149            for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
37150               acl_free acl_from_mode acl_from_text \
37151               acl_delete_def_file acl_extended_file \
37152               acl_delete_fd_np acl_delete_file_np \
37153               acl_copy_ext_native acl_create_entry_np \
37154               acl_to_short_text acl_free_text
37155 do :
37156   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37158 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37159   cat >>confdefs.h <<_ACEOF
37160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37161 _ACEOF
37162
37163 fi
37164 done
37165
37166            # If the acl_get_file bug is detected, don't enable the ACL support.
37167
37168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
37169 $as_echo_n "checking for working acl_get_file... " >&6; }
37170 if ${gl_cv_func_working_acl_get_file+:} false; then :
37171   $as_echo_n "(cached) " >&6
37172 else
37173   gl_cv_func_working_acl_get_file=no
37174      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37175 /* end confdefs.h.  */
37176 #include <sys/types.h>
37177            #include <sys/acl.h>
37178            #include <errno.h>
37179
37180 int
37181 main ()
37182 {
37183 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
37184               return 1;
37185             return 0;
37186
37187   ;
37188   return 0;
37189 }
37190 _ACEOF
37191 if ac_fn_c_try_link "$LINENO"; then :
37192   if test $cross_compiling = yes; then
37193           gl_cv_func_working_acl_get_file="guessing yes"
37194         elif ./conftest$ac_exeext; then
37195           gl_cv_func_working_acl_get_file=yes
37196         fi
37197 fi
37198 rm -f core conftest.err conftest.$ac_objext \
37199     conftest$ac_exeext conftest.$ac_ext
37200 fi
37201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
37202 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
37203   if test "$gl_cv_func_working_acl_get_file" != no; then :
37204   use_acl=1
37205 fi
37206
37207            if test $use_acl = 1; then
37208                           for ac_header in acl/libacl.h
37209 do :
37210   ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
37211 if test "x$ac_cv_header_acl_libacl_h" = xyes; then :
37212   cat >>confdefs.h <<_ACEOF
37213 #define HAVE_ACL_LIBACL_H 1
37214 _ACEOF
37215
37216 fi
37217
37218 done
37219
37220
37221
37222
37223
37224
37225
37226
37227
37228   for ac_func in acl_entries
37229 do :
37230   ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
37231 if test "x$ac_cv_func_acl_entries" = xyes; then :
37232   cat >>confdefs.h <<_ACEOF
37233 #define HAVE_ACL_ENTRIES 1
37234 _ACEOF
37235
37236 else
37237
37238     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37239
37240 fi
37241 done
37242
37243
37244              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
37245 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
37246 if ${gl_cv_acl_ACL_FIRST_ENTRY+:} false; then :
37247   $as_echo_n "(cached) " >&6
37248 else
37249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37250 /* end confdefs.h.  */
37251 #include <sys/types.h>
37252 #include <sys/acl.h>
37253 int type = ACL_FIRST_ENTRY;
37254 int
37255 main ()
37256 {
37257
37258   ;
37259   return 0;
37260 }
37261 _ACEOF
37262 if ac_fn_c_try_compile "$LINENO"; then :
37263   gl_cv_acl_ACL_FIRST_ENTRY=yes
37264 else
37265   gl_cv_acl_ACL_FIRST_ENTRY=no
37266 fi
37267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37268 fi
37269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
37270 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
37271              if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
37272
37273 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
37274
37275              fi
37276                           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
37277 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
37278 if ${gl_cv_acl_ACL_TYPE_EXTENDED+:} false; then :
37279   $as_echo_n "(cached) " >&6
37280 else
37281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37282 /* end confdefs.h.  */
37283 #include <sys/types.h>
37284 #include <sys/acl.h>
37285 int type = ACL_TYPE_EXTENDED;
37286 int
37287 main ()
37288 {
37289
37290   ;
37291   return 0;
37292 }
37293 _ACEOF
37294 if ac_fn_c_try_compile "$LINENO"; then :
37295   gl_cv_acl_ACL_TYPE_EXTENDED=yes
37296 else
37297   gl_cv_acl_ACL_TYPE_EXTENDED=no
37298 fi
37299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37300 fi
37301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
37302 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
37303              if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
37304
37305 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
37306
37307              fi
37308            else
37309              LIB_ACL=
37310            fi
37311
37312 fi
37313
37314       fi
37315
37316             if test $use_acl = 0; then
37317         for ac_func in facl
37318 do :
37319   ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
37320 if test "x$ac_cv_func_facl" = xyes; then :
37321   cat >>confdefs.h <<_ACEOF
37322 #define HAVE_FACL 1
37323 _ACEOF
37324
37325 fi
37326 done
37327
37328         if test $ac_cv_func_facl = yes; then
37329           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
37330 $as_echo_n "checking for library containing acl_trivial... " >&6; }
37331 if ${ac_cv_search_acl_trivial+:} false; then :
37332   $as_echo_n "(cached) " >&6
37333 else
37334   ac_func_search_save_LIBS=$LIBS
37335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37336 /* end confdefs.h.  */
37337
37338 /* Override any GCC internal prototype to avoid an error.
37339    Use char because int might match the return type of a GCC
37340    builtin and then its argument prototype would still apply.  */
37341 #ifdef __cplusplus
37342 extern "C"
37343 #endif
37344 char acl_trivial ();
37345 int
37346 main ()
37347 {
37348 return acl_trivial ();
37349   ;
37350   return 0;
37351 }
37352 _ACEOF
37353 for ac_lib in '' sec; do
37354   if test -z "$ac_lib"; then
37355     ac_res="none required"
37356   else
37357     ac_res=-l$ac_lib
37358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37359   fi
37360   if ac_fn_c_try_link "$LINENO"; then :
37361   ac_cv_search_acl_trivial=$ac_res
37362 fi
37363 rm -f core conftest.err conftest.$ac_objext \
37364     conftest$ac_exeext
37365   if ${ac_cv_search_acl_trivial+:} false; then :
37366   break
37367 fi
37368 done
37369 if ${ac_cv_search_acl_trivial+:} false; then :
37370
37371 else
37372   ac_cv_search_acl_trivial=no
37373 fi
37374 rm conftest.$ac_ext
37375 LIBS=$ac_func_search_save_LIBS
37376 fi
37377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
37378 $as_echo "$ac_cv_search_acl_trivial" >&6; }
37379 ac_res=$ac_cv_search_acl_trivial
37380 if test "$ac_res" != no; then :
37381   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37382   if test "$ac_cv_search_acl_trivial" != "none required"; then
37383                LIB_ACL=$ac_cv_search_acl_trivial
37384              fi
37385
37386 fi
37387
37388           for ac_func in acl_trivial
37389 do :
37390   ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
37391 if test "x$ac_cv_func_acl_trivial" = xyes; then :
37392   cat >>confdefs.h <<_ACEOF
37393 #define HAVE_ACL_TRIVIAL 1
37394 _ACEOF
37395
37396 fi
37397 done
37398
37399           use_acl=1
37400         fi
37401       fi
37402
37403             if test $use_acl = 0; then
37404         for ac_func in getacl
37405 do :
37406   ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
37407 if test "x$ac_cv_func_getacl" = xyes; then :
37408   cat >>confdefs.h <<_ACEOF
37409 #define HAVE_GETACL 1
37410 _ACEOF
37411
37412 fi
37413 done
37414
37415         if test $ac_cv_func_getacl = yes; then
37416           use_acl=1
37417         fi
37418                 for ac_header in aclv.h
37419 do :
37420   ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
37421 "
37422 if test "x$ac_cv_header_aclv_h" = xyes; then :
37423   cat >>confdefs.h <<_ACEOF
37424 #define HAVE_ACLV_H 1
37425 _ACEOF
37426
37427 fi
37428
37429 done
37430
37431       fi
37432
37433             if test $use_acl = 0; then
37434         for ac_func in aclx_get
37435 do :
37436   ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
37437 if test "x$ac_cv_func_aclx_get" = xyes; then :
37438   cat >>confdefs.h <<_ACEOF
37439 #define HAVE_ACLX_GET 1
37440 _ACEOF
37441
37442 fi
37443 done
37444
37445         if test $ac_cv_func_aclx_get = yes; then
37446           use_acl=1
37447         fi
37448       fi
37449
37450             if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
37451         for ac_func in statacl
37452 do :
37453   ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
37454 if test "x$ac_cv_func_statacl" = xyes; then :
37455   cat >>confdefs.h <<_ACEOF
37456 #define HAVE_STATACL 1
37457 _ACEOF
37458
37459 fi
37460 done
37461
37462         if test $ac_cv_func_statacl = yes; then
37463           use_acl=1
37464         fi
37465       fi
37466
37467             if test $use_acl = 0; then
37468         for ac_func in aclsort
37469 do :
37470   ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
37471 if test "x$ac_cv_func_aclsort" = xyes; then :
37472   cat >>confdefs.h <<_ACEOF
37473 #define HAVE_ACLSORT 1
37474 _ACEOF
37475
37476 fi
37477 done
37478
37479         if test $ac_cv_func_aclsort = yes; then
37480           use_acl=1
37481         fi
37482       fi
37483
37484       LIBS=$ac_save_LIBS
37485     fi
37486
37487     if test "$enable_acl$use_acl" = yes0; then
37488       as_fn_error $? "ACLs enabled but support not detected" "$LINENO" 5
37489     elif test "$enable_acl$use_acl" = auto0; then
37490       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
37491 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
37492       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gettext-tools will be built without ACL support." >&5
37493 $as_echo "$as_me: WARNING: gettext-tools will be built without ACL support." >&2;}
37494     fi
37495   fi
37496   test $gl_need_lib_has_acl && LIB_HAS_ACL=$LIB_ACL
37497
37498
37499 cat >>confdefs.h <<_ACEOF
37500 #define USE_ACL $use_acl
37501 _ACEOF
37502
37503   USE_ACL=$use_acl
37504
37505
37506
37507
37508
37509
37510
37511   if test $ac_cv_func_alloca_works = no; then
37512
37513
37514   :
37515
37516   fi
37517
37518   # Define an additional variable used in the Makefile substitution.
37519
37520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37521 /* end confdefs.h.  */
37522
37523 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
37524   Need own alloca
37525 #endif
37526
37527 _ACEOF
37528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37529   $EGREP "Need own alloca" >/dev/null 2>&1; then :
37530   ALLOCA_H=alloca.h
37531 else
37532   ALLOCA_H=
37533 fi
37534 rm -f conftest*
37535
37536
37537    if test -n "$ALLOCA_H"; then
37538   GL_GENERATE_ALLOCA_H_TRUE=
37539   GL_GENERATE_ALLOCA_H_FALSE='#'
37540 else
37541   GL_GENERATE_ALLOCA_H_TRUE='#'
37542   GL_GENERATE_ALLOCA_H_FALSE=
37543 fi
37544
37545
37546
37547
37548
37549   if test "$CXX_CHOICE" = no; then
37550     CXX=no
37551   fi
37552   if test -z "$CXX"; then
37553     if test -n "$CCC"; then
37554       CXX="$CCC"
37555     else
37556       if test -n "$ac_tool_prefix"; then
37557   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
37558   do
37559     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37562 $as_echo_n "checking for $ac_word... " >&6; }
37563 if ${ac_cv_prog_CXX+:} false; then :
37564   $as_echo_n "(cached) " >&6
37565 else
37566   if test -n "$CXX"; then
37567   ac_cv_prog_CXX="$CXX" # Let the user override the test.
37568 else
37569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37570 for as_dir in $PATH
37571 do
37572   IFS=$as_save_IFS
37573   test -z "$as_dir" && as_dir=.
37574     for ac_exec_ext in '' $ac_executable_extensions; do
37575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37576     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
37577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37578     break 2
37579   fi
37580 done
37581   done
37582 IFS=$as_save_IFS
37583
37584 fi
37585 fi
37586 CXX=$ac_cv_prog_CXX
37587 if test -n "$CXX"; then
37588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
37589 $as_echo "$CXX" >&6; }
37590 else
37591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37592 $as_echo "no" >&6; }
37593 fi
37594
37595
37596     test -n "$CXX" && break
37597   done
37598 fi
37599 if test -z "$CXX"; then
37600   ac_ct_CXX=$CXX
37601   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
37602 do
37603   # Extract the first word of "$ac_prog", so it can be a program name with args.
37604 set dummy $ac_prog; ac_word=$2
37605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37606 $as_echo_n "checking for $ac_word... " >&6; }
37607 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
37608   $as_echo_n "(cached) " >&6
37609 else
37610   if test -n "$ac_ct_CXX"; then
37611   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
37612 else
37613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37614 for as_dir in $PATH
37615 do
37616   IFS=$as_save_IFS
37617   test -z "$as_dir" && as_dir=.
37618     for ac_exec_ext in '' $ac_executable_extensions; do
37619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37620     ac_cv_prog_ac_ct_CXX="$ac_prog"
37621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37622     break 2
37623   fi
37624 done
37625   done
37626 IFS=$as_save_IFS
37627
37628 fi
37629 fi
37630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
37631 if test -n "$ac_ct_CXX"; then
37632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
37633 $as_echo "$ac_ct_CXX" >&6; }
37634 else
37635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37636 $as_echo "no" >&6; }
37637 fi
37638
37639
37640   test -n "$ac_ct_CXX" && break
37641 done
37642
37643   if test "x$ac_ct_CXX" = x; then
37644     CXX=":"
37645   else
37646     case $cross_compiling:$ac_tool_warned in
37647 yes:)
37648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37650 ac_tool_warned=yes ;;
37651 esac
37652     CXX=$ac_ct_CXX
37653   fi
37654 fi
37655
37656     fi
37657   fi
37658   if test "$CXX" != no; then
37659             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
37660 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
37661     ac_ext=cpp
37662 ac_cpp='$CXXCPP $CPPFLAGS'
37663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37666
37667
37668
37669     echo 'int main () { return 0; }' > conftest.$ac_ext
37670     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
37671   (eval $ac_link) 2>&5
37672   ac_status=$?
37673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37674   test $ac_status = 0; } && test -s conftest$ac_exeext; then
37675       gl_cv_prog_ansicxx_works=yes
37676       if (./conftest; exit) 2>/dev/null; then
37677         gl_cv_prog_ansicxx_cross=no
37678       else
37679         gl_cv_prog_ansicxx_cross=yes
37680       fi
37681     else
37682       gl_cv_prog_ansicxx_works=no
37683     fi
37684     rm -fr conftest*
37685     ac_ext=c
37686 ac_cpp='$CPP $CPPFLAGS'
37687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37690
37691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
37692 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
37693     if test $gl_cv_prog_ansicxx_works = no; then
37694       CXX=no
37695     else
37696                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
37697 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
37698       ac_ext=cpp
37699 ac_cpp='$CXXCPP $CPPFLAGS'
37700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37703
37704       cat <<EOF > conftest.$ac_ext
37705 #include <iostream>
37706 namespace test { using namespace std; }
37707 std::ostream* ptr;
37708 int main () { return 0; }
37709 EOF
37710       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
37711   (eval $ac_link) 2>&5
37712   ac_status=$?
37713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37714   test $ac_status = 0; } && test -s conftest$ac_exeext; then
37715         gl_cv_prog_ansicxx_namespaces=yes
37716       else
37717         gl_cv_prog_ansicxx_namespaces=no
37718       fi
37719       rm -fr conftest*
37720       ac_ext=c
37721 ac_cpp='$CPP $CPPFLAGS'
37722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37725
37726       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
37727 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
37728       if test $gl_cv_prog_ansicxx_namespaces = no; then
37729         CXX=no
37730       fi
37731     fi
37732   fi
37733
37734
37735
37736    if test "$CXX" != no; then
37737   ANSICXX_TRUE=
37738   ANSICXX_FALSE='#'
37739 else
37740   ANSICXX_TRUE='#'
37741   ANSICXX_FALSE=
37742 fi
37743
37744
37745   if test "$CXX" != no; then
37746
37747 depcc="$CXX"  am_compiler_list=
37748
37749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
37750 $as_echo_n "checking dependency style of $depcc... " >&6; }
37751 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
37752   $as_echo_n "(cached) " >&6
37753 else
37754   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
37755   # We make a subdir and do the tests there.  Otherwise we can end up
37756   # making bogus files that we don't know about and never remove.  For
37757   # instance it was reported that on HP-UX the gcc test will end up
37758   # making a dummy file named 'D' -- because '-MD' means "put the output
37759   # in D".
37760   rm -rf conftest.dir
37761   mkdir conftest.dir
37762   # Copy depcomp to subdir because otherwise we won't find it if we're
37763   # using a relative directory.
37764   cp "$am_depcomp" conftest.dir
37765   cd conftest.dir
37766   # We will build objects and dependencies in a subdirectory because
37767   # it helps to detect inapplicable dependency modes.  For instance
37768   # both Tru64's cc and ICC support -MD to output dependencies as a
37769   # side effect of compilation, but ICC will put the dependencies in
37770   # the current directory while Tru64 will put them in the object
37771   # directory.
37772   mkdir sub
37773
37774   am_cv_CXX_dependencies_compiler_type=none
37775   if test "$am_compiler_list" = ""; then
37776      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
37777   fi
37778   am__universal=false
37779   case " $depcc " in #(
37780      *\ -arch\ *\ -arch\ *) am__universal=true ;;
37781      esac
37782
37783   for depmode in $am_compiler_list; do
37784     # Setup a source with many dependencies, because some compilers
37785     # like to wrap large dependency lists on column 80 (with \), and
37786     # we should not choose a depcomp mode which is confused by this.
37787     #
37788     # We need to recreate these files for each test, as the compiler may
37789     # overwrite some of them when testing with obscure command lines.
37790     # This happens at least with the AIX C compiler.
37791     : > sub/conftest.c
37792     for i in 1 2 3 4 5 6; do
37793       echo '#include "conftst'$i'.h"' >> sub/conftest.c
37794       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
37795       # Solaris 10 /bin/sh.
37796       echo '/* dummy */' > sub/conftst$i.h
37797     done
37798     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
37799
37800     # We check with '-c' and '-o' for the sake of the "dashmstdout"
37801     # mode.  It turns out that the SunPro C++ compiler does not properly
37802     # handle '-M -o', and we need to detect this.  Also, some Intel
37803     # versions had trouble with output in subdirs.
37804     am__obj=sub/conftest.${OBJEXT-o}
37805     am__minus_obj="-o $am__obj"
37806     case $depmode in
37807     gcc)
37808       # This depmode causes a compiler race in universal mode.
37809       test "$am__universal" = false || continue
37810       ;;
37811     nosideeffect)
37812       # After this tag, mechanisms are not by side-effect, so they'll
37813       # only be used when explicitly requested.
37814       if test "x$enable_dependency_tracking" = xyes; then
37815         continue
37816       else
37817         break
37818       fi
37819       ;;
37820     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
37821       # This compiler won't grok '-c -o', but also, the minuso test has
37822       # not run yet.  These depmodes are late enough in the game, and
37823       # so weak that their functioning should not be impacted.
37824       am__obj=conftest.${OBJEXT-o}
37825       am__minus_obj=
37826       ;;
37827     none) break ;;
37828     esac
37829     if depmode=$depmode \
37830        source=sub/conftest.c object=$am__obj \
37831        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
37832        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
37833          >/dev/null 2>conftest.err &&
37834        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
37835        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
37836        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
37837        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
37838       # icc doesn't choke on unknown options, it will just issue warnings
37839       # or remarks (even with -Werror).  So we grep stderr for any message
37840       # that says an option was ignored or not supported.
37841       # When given -MP, icc 7.0 and 7.1 complain thusly:
37842       #   icc: Command line warning: ignoring option '-M'; no argument required
37843       # The diagnosis changed in icc 8.0:
37844       #   icc: Command line remark: option '-MP' not supported
37845       if (grep 'ignoring option' conftest.err ||
37846           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
37847         am_cv_CXX_dependencies_compiler_type=$depmode
37848         break
37849       fi
37850     fi
37851   done
37852
37853   cd ..
37854   rm -rf conftest.dir
37855 else
37856   am_cv_CXX_dependencies_compiler_type=none
37857 fi
37858
37859 fi
37860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
37861 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
37862 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
37863
37864  if
37865   test "x$enable_dependency_tracking" != xno \
37866   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
37867   am__fastdepCXX_TRUE=
37868   am__fastdepCXX_FALSE='#'
37869 else
37870   am__fastdepCXX_TRUE='#'
37871   am__fastdepCXX_FALSE=
37872 fi
37873
37874
37875   else
37876      if false; then
37877   am__fastdepCXX_TRUE=
37878   am__fastdepCXX_FALSE='#'
37879 else
37880   am__fastdepCXX_TRUE='#'
37881   am__fastdepCXX_FALSE=
37882 fi
37883
37884   fi
37885
37886
37887   for ac_func in atexit
37888 do :
37889   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
37890 if test "x$ac_cv_func_atexit" = xyes; then :
37891   cat >>confdefs.h <<_ACEOF
37892 #define HAVE_ATEXIT 1
37893 _ACEOF
37894
37895 fi
37896 done
37897
37898
37899   if test $ac_cv_func_atexit = no; then
37900
37901
37902
37903
37904
37905
37906
37907
37908   gl_LIBOBJS="$gl_LIBOBJS atexit.$ac_objext"
37909
37910
37911   :
37912
37913   fi
37914
37915     for ac_header in dirent.h string.h
37916 do :
37917   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37918 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37920   cat >>confdefs.h <<_ACEOF
37921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37922 _ACEOF
37923
37924 fi
37925
37926 done
37927
37928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
37929 $as_echo_n "checking for long file names... " >&6; }
37930 if ${ac_cv_sys_long_file_names+:} false; then :
37931   $as_echo_n "(cached) " >&6
37932 else
37933   ac_cv_sys_long_file_names=yes
37934 # Test for long file names in all the places we know might matter:
37935 #      .                the current directory, where building will happen
37936 #      $prefix/lib      where we will be installing things
37937 #      $exec_prefix/lib likewise
37938 #      $TMPDIR          if set, where it might want to write temporary files
37939 #      /tmp             where it might want to write temporary files
37940 #      /var/tmp         likewise
37941 #      /usr/tmp         likewise
37942 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
37943   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
37944   # in the usual case where exec_prefix is '${prefix}'.
37945   case $ac_dir in #(
37946     . | /* | ?:[\\/]*) ;; #(
37947     *) continue;;
37948   esac
37949   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
37950   ac_xdir=$ac_dir/cf$$
37951   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
37952   ac_tf1=$ac_xdir/conftest9012345
37953   ac_tf2=$ac_xdir/conftest9012346
37954   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
37955     ac_cv_sys_long_file_names=no
37956   rm -f -r "$ac_xdir" 2>/dev/null
37957   test $ac_cv_sys_long_file_names = no && break
37958 done
37959 fi
37960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
37961 $as_echo "$ac_cv_sys_long_file_names" >&6; }
37962 if test $ac_cv_sys_long_file_names = yes; then
37963
37964 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
37965
37966 fi
37967
37968   for ac_func in pathconf
37969 do :
37970   ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
37971 if test "x$ac_cv_func_pathconf" = xyes; then :
37972   cat >>confdefs.h <<_ACEOF
37973 #define HAVE_PATHCONF 1
37974 _ACEOF
37975
37976 fi
37977 done
37978
37979   for ac_header in string.h unistd.h
37980 do :
37981   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37982 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37983 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37984   cat >>confdefs.h <<_ACEOF
37985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37986 _ACEOF
37987
37988 fi
37989
37990 done
37991
37992
37993
37994   if test -z "$USE_NLS"; then
37995     echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
37996     exit 1
37997   fi
37998   BISON_LOCALEDIR=
37999   BISON_USE_NLS=no
38000   if test "$USE_NLS" = yes; then
38001                         if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
38002       BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
38003     fi
38004
38005     if test -n "$BISON_LOCALEDIR"; then
38006                               USER_LINGUAS="${LINGUAS-%UNSET%}"
38007       if test -n "$USER_LINGUAS"; then
38008         BISON_USE_NLS=yes
38009       fi
38010     fi
38011   fi
38012   if test $BISON_USE_NLS = yes; then
38013
38014 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
38015
38016   fi
38017
38018
38019     for ac_header in byteswap.h
38020 do :
38021   ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
38022 if test "x$ac_cv_header_byteswap_h" = xyes; then :
38023   cat >>confdefs.h <<_ACEOF
38024 #define HAVE_BYTESWAP_H 1
38025 _ACEOF
38026
38027     BYTESWAP_H=''
38028
38029 else
38030
38031     BYTESWAP_H='byteswap.h'
38032
38033 fi
38034
38035 done
38036
38037
38038    if test -n "$BYTESWAP_H"; then
38039   GL_GENERATE_BYTESWAP_H_TRUE=
38040   GL_GENERATE_BYTESWAP_H_FALSE='#'
38041 else
38042   GL_GENERATE_BYTESWAP_H_TRUE='#'
38043   GL_GENERATE_BYTESWAP_H_FALSE=
38044 fi
38045
38046
38047
38048
38049
38050   if test $ac_cv_func_canonicalize_file_name = no; then
38051     HAVE_CANONICALIZE_FILE_NAME=0
38052     if test $ac_cv_func_realpath = no; then
38053       HAVE_REALPATH=0
38054     else
38055       case "$gl_cv_func_realpath_works" in
38056         *yes) ;;
38057         *)    REPLACE_REALPATH=1 ;;
38058       esac
38059     fi
38060   else
38061     case "$gl_cv_func_realpath_works" in
38062       *yes)
38063         ;;
38064       *)
38065         REPLACE_CANONICALIZE_FILE_NAME=1
38066         REPLACE_REALPATH=1
38067         ;;
38068     esac
38069   fi
38070
38071   if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
38072
38073
38074
38075
38076
38077
38078
38079
38080   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
38081
38082   fi
38083
38084
38085 cat >>confdefs.h <<_ACEOF
38086 #define GNULIB_CANONICALIZE_LGPL 1
38087 _ACEOF
38088
38089
38090
38091
38092
38093
38094
38095           GNULIB_CANONICALIZE_FILE_NAME=1
38096
38097
38098
38099
38100
38101 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
38102
38103
38104
38105
38106
38107
38108
38109
38110           GNULIB_REALPATH=1
38111
38112
38113
38114
38115
38116 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
38117
38118
38119
38120
38121
38122 $as_echo "#define SIGNAL_SAFE_LIST 1" >>confdefs.h
38123
38124
38125
38126 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
38127
38128
38129
38130
38131
38132   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
38133     REPLACE_CLOSE=1
38134   fi
38135
38136
38137
38138
38139
38140   if test $ac_cv_header_sys_socket_h != yes; then
38141                     for ac_header in winsock2.h
38142 do :
38143   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
38144 if test "x$ac_cv_header_winsock2_h" = xyes; then :
38145   cat >>confdefs.h <<_ACEOF
38146 #define HAVE_WINSOCK2_H 1
38147 _ACEOF
38148
38149 fi
38150
38151 done
38152
38153   fi
38154   if test "$ac_cv_header_winsock2_h" = yes; then
38155     HAVE_WINSOCK2_H=1
38156     UNISTD_H_HAVE_WINSOCK2_H=1
38157     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
38158   else
38159     HAVE_WINSOCK2_H=0
38160   fi
38161
38162
38163     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
38164                         REPLACE_CLOSE=1
38165     fi
38166
38167
38168
38169   if test $REPLACE_CLOSE = 1; then
38170
38171
38172
38173
38174
38175
38176
38177
38178   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
38179
38180   fi
38181
38182
38183
38184
38185
38186           GNULIB_CLOSE=1
38187
38188
38189
38190
38191
38192 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
38193
38194
38195
38196
38197
38198
38199   for ac_func in closedir
38200 do :
38201   ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
38202 if test "x$ac_cv_func_closedir" = xyes; then :
38203   cat >>confdefs.h <<_ACEOF
38204 #define HAVE_CLOSEDIR 1
38205 _ACEOF
38206
38207 fi
38208 done
38209
38210   if test $ac_cv_func_closedir = no; then
38211     HAVE_CLOSEDIR=0
38212   fi
38213
38214
38215   if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
38216
38217
38218
38219
38220
38221
38222
38223
38224   gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
38225
38226   fi
38227
38228
38229
38230
38231
38232           GNULIB_CLOSEDIR=1
38233
38234
38235
38236
38237
38238 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
38239
38240
38241
38242
38243           if test "x$datarootdir" = x; then
38244     datarootdir='${datadir}'
38245
38246   fi
38247     if test "x$docdir" = x; then
38248     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
38249
38250   fi
38251     if test "x$htmldir" = x; then
38252     htmldir='${docdir}'
38253
38254   fi
38255   if test "x$dvidir" = x; then
38256     dvidir='${docdir}'
38257
38258   fi
38259   if test "x$pdfdir" = x; then
38260     pdfdir='${docdir}'
38261
38262   fi
38263   if test "x$psdir" = x; then
38264     psdir='${docdir}'
38265
38266   fi
38267   if test "x$lispdir" = x; then
38268     lispdir='${datarootdir}/emacs/site-lisp'
38269
38270   fi
38271   if test "x$localedir" = x; then
38272     localedir='${datarootdir}/locale'
38273
38274   fi
38275     if test "x$runstatedir" = x; then
38276     runstatedir='${localstatedir}/run'
38277
38278   fi
38279
38280       pkglibexecdir='${libexecdir}/${PACKAGE}'
38281
38282
38283
38284
38285   for ac_func in chown utime utimes
38286 do :
38287   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38288 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38289 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38290   cat >>confdefs.h <<_ACEOF
38291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38292 _ACEOF
38293
38294 fi
38295 done
38296
38297
38298
38299   ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
38300
38301   # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments.
38302   ac_config_files="$ac_config_files csharpexec.sh:../build-aux/csharpexec.sh.in"
38303
38304
38305
38306
38307
38308
38309
38310
38311
38312
38313
38314
38315
38316      if test $gl_cv_have_include_next = yes; then
38317        gl_cv_next_dirent_h='<'dirent.h'>'
38318      else
38319        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
38320 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
38321 if ${gl_cv_next_dirent_h+:} false; then :
38322   $as_echo_n "(cached) " >&6
38323 else
38324
38325              if test $ac_cv_header_dirent_h = yes; then
38326
38327
38328
38329
38330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38331 /* end confdefs.h.  */
38332 #include <dirent.h>
38333 _ACEOF
38334                 case "$host_os" in
38335     aix*) gl_absname_cpp="$ac_cpp -C" ;;
38336     *)    gl_absname_cpp="$ac_cpp" ;;
38337   esac
38338
38339   case "$host_os" in
38340     mingw*)
38341                                           gl_dirsep_regex='[/\\]'
38342       ;;
38343     *)
38344       gl_dirsep_regex='\/'
38345       ;;
38346   esac
38347       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
38348   gl_header_literal_regex=`echo 'dirent.h' \
38349                            | sed -e "$gl_make_literal_regex_sed"`
38350   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
38351       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
38352       s|^/[^/]|//&|
38353       p
38354       q
38355     }'
38356
38357         gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38358   sed -n "$gl_absolute_header_sed"`
38359
38360            gl_header=$gl_cv_absolute_dirent_h
38361            gl_cv_next_dirent_h='"'$gl_header'"'
38362           else
38363                gl_cv_next_dirent_h='<'dirent.h'>'
38364              fi
38365
38366
38367 fi
38368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
38369 $as_echo "$gl_cv_next_dirent_h" >&6; }
38370      fi
38371      NEXT_DIRENT_H=$gl_cv_next_dirent_h
38372
38373      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38374        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38375        gl_next_as_first_directive='<'dirent.h'>'
38376      else
38377        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38378        gl_next_as_first_directive=$gl_cv_next_dirent_h
38379      fi
38380      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
38381
38382
38383
38384
38385   if test $ac_cv_header_dirent_h = yes; then
38386     HAVE_DIRENT_H=1
38387   else
38388     HAVE_DIRENT_H=0
38389   fi
38390
38391
38392
38393     for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
38394     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
38395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
38396 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
38397 if eval \${$as_gl_Symbol+:} false; then :
38398   $as_echo_n "(cached) " >&6
38399 else
38400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38401 /* end confdefs.h.  */
38402 #include <dirent.h>
38403
38404 int
38405 main ()
38406 {
38407 #undef $gl_func
38408   (void) $gl_func;
38409   ;
38410   return 0;
38411 }
38412 _ACEOF
38413 if ac_fn_c_try_compile "$LINENO"; then :
38414   eval "$as_gl_Symbol=yes"
38415 else
38416   eval "$as_gl_Symbol=no"
38417 fi
38418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38419 fi
38420 eval ac_res=\$$as_gl_Symbol
38421                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
38422 $as_echo "$ac_res" >&6; }
38423     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
38424   cat >>confdefs.h <<_ACEOF
38425 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
38426 _ACEOF
38427
38428                      eval ac_cv_have_decl_$gl_func=yes
38429 fi
38430       done
38431
38432
38433
38434
38435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
38436 $as_echo_n "checking whether // is distinct from /... " >&6; }
38437 if ${gl_cv_double_slash_root+:} false; then :
38438   $as_echo_n "(cached) " >&6
38439 else
38440    if test x"$cross_compiling" = xyes ; then
38441         # When cross-compiling, there is no way to tell whether // is special
38442         # short of a list of hosts.  However, the only known hosts to date
38443         # that have a distinct // are Apollo DomainOS (too old to port to),
38444         # Cygwin, and z/OS.  If anyone knows of another system for which // has
38445         # special semantics and is distinct from /, please report it to
38446         # <bug-gnulib@gnu.org>.
38447         case $host in
38448           *-cygwin | i370-ibm-openedition)
38449             gl_cv_double_slash_root=yes ;;
38450           *)
38451             # Be optimistic and assume that / and // are the same when we
38452             # don't know.
38453             gl_cv_double_slash_root='unknown, assuming no' ;;
38454         esac
38455       else
38456         set x `ls -di / // 2>/dev/null`
38457         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
38458           gl_cv_double_slash_root=no
38459         else
38460           gl_cv_double_slash_root=yes
38461         fi
38462       fi
38463 fi
38464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
38465 $as_echo "$gl_cv_double_slash_root" >&6; }
38466   if test "$gl_cv_double_slash_root" = yes; then
38467
38468 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
38469
38470   fi
38471
38472
38473
38474
38475
38476
38477 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
38478
38479
38480   if test $HAVE_DUP2 = 1; then
38481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
38482 $as_echo_n "checking whether dup2 works... " >&6; }
38483 if ${gl_cv_func_dup2_works+:} false; then :
38484   $as_echo_n "(cached) " >&6
38485 else
38486   if test "$cross_compiling" = yes; then :
38487   case "$host_os" in
38488            mingw*) # on this platform, dup2 always returns 0 for success
38489              gl_cv_func_dup2_works="guessing no" ;;
38490            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
38491              gl_cv_func_dup2_works="guessing no" ;;
38492            aix* | freebsd*)
38493                    # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
38494                    # not EBADF.
38495              gl_cv_func_dup2_works="guessing no" ;;
38496            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
38497              gl_cv_func_dup2_works="guessing no" ;;
38498            *-android*) # implemented using dup3(), which fails if oldfd == newfd
38499              gl_cv_func_dup2_works="guessing no" ;;
38500            *) gl_cv_func_dup2_works="guessing yes" ;;
38501          esac
38502 else
38503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38504 /* end confdefs.h.  */
38505
38506          #include <errno.h>
38507              #include <fcntl.h>
38508              #include <limits.h>
38509              #include <sys/resource.h>
38510              #include <unistd.h>
38511              #ifndef RLIM_SAVED_CUR
38512              # define RLIM_SAVED_CUR RLIM_INFINITY
38513              #endif
38514              #ifndef RLIM_SAVED_MAX
38515              # define RLIM_SAVED_MAX RLIM_INFINITY
38516              #endif
38517
38518 int
38519 main ()
38520 {
38521 int result = 0;
38522              int bad_fd = INT_MAX;
38523              struct rlimit rlim;
38524              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
38525                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
38526                  && rlim.rlim_cur != RLIM_INFINITY
38527                  && rlim.rlim_cur != RLIM_SAVED_MAX
38528                  && rlim.rlim_cur != RLIM_SAVED_CUR)
38529                bad_fd = rlim.rlim_cur;
38530              #ifdef FD_CLOEXEC
38531                if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
38532                  result |= 1;
38533              #endif
38534              if (dup2 (1, 1) != 1)
38535                result |= 2;
38536              #ifdef FD_CLOEXEC
38537                if (fcntl (1, F_GETFD) != FD_CLOEXEC)
38538                  result |= 4;
38539              #endif
38540              close (0);
38541              if (dup2 (0, 0) != -1)
38542                result |= 8;
38543              /* Many gnulib modules require POSIX conformance of EBADF.  */
38544              if (dup2 (2, bad_fd) == -1 && errno != EBADF)
38545                result |= 16;
38546              /* Flush out some cygwin core dumps.  */
38547              if (dup2 (2, -1) != -1 || errno != EBADF)
38548                result |= 32;
38549              dup2 (2, 255);
38550              dup2 (2, 256);
38551              return result;
38552   ;
38553   return 0;
38554 }
38555
38556 _ACEOF
38557 if ac_fn_c_try_run "$LINENO"; then :
38558   gl_cv_func_dup2_works=yes
38559 else
38560   gl_cv_func_dup2_works=no
38561 fi
38562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38563   conftest.$ac_objext conftest.beam conftest.$ac_ext
38564 fi
38565
38566
38567 fi
38568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
38569 $as_echo "$gl_cv_func_dup2_works" >&6; }
38570     case "$gl_cv_func_dup2_works" in
38571       *yes) ;;
38572       *)
38573         REPLACE_DUP2=1
38574         for ac_func in setdtablesize
38575 do :
38576   ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
38577 if test "x$ac_cv_func_setdtablesize" = xyes; then :
38578   cat >>confdefs.h <<_ACEOF
38579 #define HAVE_SETDTABLESIZE 1
38580 _ACEOF
38581
38582 fi
38583 done
38584
38585         ;;
38586     esac
38587   fi
38588
38589
38590   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
38591
38592
38593
38594
38595
38596
38597
38598
38599   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
38600
38601
38602   fi
38603
38604
38605
38606
38607
38608           GNULIB_DUP2=1
38609
38610
38611
38612
38613
38614 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624           GNULIB_ENVIRON=1
38625
38626
38627
38628
38629
38630 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
38631
38632
38633
38634
38635
38636       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
38637 $as_echo_n "checking for error_at_line... " >&6; }
38638 if ${ac_cv_lib_error_at_line+:} false; then :
38639   $as_echo_n "(cached) " >&6
38640 else
38641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38642 /* end confdefs.h.  */
38643 #include <error.h>
38644 int
38645 main ()
38646 {
38647 error_at_line (0, 0, "", 0, "an error occurred");
38648   ;
38649   return 0;
38650 }
38651 _ACEOF
38652 if ac_fn_c_try_link "$LINENO"; then :
38653   ac_cv_lib_error_at_line=yes
38654 else
38655   ac_cv_lib_error_at_line=no
38656 fi
38657 rm -f core conftest.err conftest.$ac_objext \
38658     conftest$ac_exeext conftest.$ac_ext
38659 fi
38660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
38661 $as_echo "$ac_cv_lib_error_at_line" >&6; }
38662
38663   if test $ac_cv_lib_error_at_line = no; then
38664
38665
38666
38667
38668
38669
38670
38671
38672   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
38673
38674
38675
38676   :
38677
38678   fi
38679
38680
38681   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
38682
38683
38684
38685   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
38686
38687
38688
38689
38690
38691
38692
38693
38694
38695
38696   FABS_LIBM=
38697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fabs can be used without linking with libm" >&5
38698 $as_echo_n "checking whether fabs can be used without linking with libm... " >&6; }
38699 if ${gl_cv_func_fabs_no_libm+:} false; then :
38700   $as_echo_n "(cached) " >&6
38701 else
38702
38703       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38704 /* end confdefs.h.  */
38705 #ifndef __NO_MATH_INLINES
38706              # define __NO_MATH_INLINES 1 /* for glibc */
38707              #endif
38708              #include <math.h>
38709
38710              double (*funcptr) (double) = fabs;
38711              int i_ret;
38712              float f_ret;
38713              double d_ret;
38714              long double l_ret;
38715 int
38716 main ()
38717 {
38718 double y = funcptr (1.6180339887) + fabs (1.6180339887);
38719
38720              return y < 0.3 || y > 1.7;
38721
38722   ;
38723   return 0;
38724 }
38725 _ACEOF
38726 if ac_fn_c_try_link "$LINENO"; then :
38727   gl_cv_func_fabs_no_libm=yes
38728 else
38729   gl_cv_func_fabs_no_libm=no
38730 fi
38731 rm -f core conftest.err conftest.$ac_objext \
38732     conftest$ac_exeext conftest.$ac_ext
38733
38734 fi
38735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fabs_no_libm" >&5
38736 $as_echo "$gl_cv_func_fabs_no_libm" >&6; }
38737   if test $gl_cv_func_fabs_no_libm = no; then
38738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fabs can be used with libm" >&5
38739 $as_echo_n "checking whether fabs can be used with libm... " >&6; }
38740 if ${gl_cv_func_fabs_in_libm+:} false; then :
38741   $as_echo_n "(cached) " >&6
38742 else
38743
38744         save_LIBS="$LIBS"
38745         LIBS="$LIBS -lm"
38746         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38747 /* end confdefs.h.  */
38748 #ifndef __NO_MATH_INLINES
38749                # define __NO_MATH_INLINES 1 /* for glibc */
38750                #endif
38751                #include <math.h>
38752
38753                double (*funcptr) (double) = fabs;
38754                int i_ret;
38755                float f_ret;
38756                double d_ret;
38757                long double l_ret;
38758 int
38759 main ()
38760 {
38761 double y = funcptr (1.6180339887) + fabs (1.6180339887);
38762
38763                return y < 0.3 || y > 1.7;
38764
38765   ;
38766   return 0;
38767 }
38768 _ACEOF
38769 if ac_fn_c_try_link "$LINENO"; then :
38770   gl_cv_func_fabs_in_libm=yes
38771 else
38772   gl_cv_func_fabs_in_libm=no
38773 fi
38774 rm -f core conftest.err conftest.$ac_objext \
38775     conftest$ac_exeext conftest.$ac_ext
38776         LIBS="$save_LIBS"
38777
38778 fi
38779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fabs_in_libm" >&5
38780 $as_echo "$gl_cv_func_fabs_in_libm" >&6; }
38781     if test $gl_cv_func_fabs_in_libm = yes; then
38782       FABS_LIBM=-lm
38783     fi
38784   fi
38785
38786
38787
38788
38789
38790
38791
38792
38793
38794   :
38795
38796
38797
38798
38799
38800
38801   if test $ac_cv_func_fcntl = no; then
38802
38803
38804
38805   if test $ac_cv_func_fcntl = no; then
38806     HAVE_FCNTL=0
38807   else
38808     REPLACE_FCNTL=1
38809   fi
38810
38811   else
38812             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
38813 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
38814 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
38815   $as_echo_n "(cached) " >&6
38816 else
38817   if test "$cross_compiling" = yes; then :
38818   case $host_os in
38819             aix* | cygwin* | haiku*)
38820                gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
38821             *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
38822           esac
38823 else
38824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38825 /* end confdefs.h.  */
38826 #include <errno.h>
38827               #include <fcntl.h>
38828               #include <limits.h>
38829               #include <sys/resource.h>
38830               #include <unistd.h>
38831               #ifndef RLIM_SAVED_CUR
38832               # define RLIM_SAVED_CUR RLIM_INFINITY
38833               #endif
38834               #ifndef RLIM_SAVED_MAX
38835               # define RLIM_SAVED_MAX RLIM_INFINITY
38836               #endif
38837
38838 int
38839 main ()
38840 {
38841 int result = 0;
38842               int bad_fd = INT_MAX;
38843               struct rlimit rlim;
38844               if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
38845                   && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
38846                   && rlim.rlim_cur != RLIM_INFINITY
38847                   && rlim.rlim_cur != RLIM_SAVED_MAX
38848                   && rlim.rlim_cur != RLIM_SAVED_CUR)
38849                 bad_fd = rlim.rlim_cur;
38850               if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
38851               if (errno != EINVAL) result |= 2;
38852               if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
38853               if (errno != EINVAL) result |= 8;
38854               return result;
38855   ;
38856   return 0;
38857 }
38858 _ACEOF
38859 if ac_fn_c_try_run "$LINENO"; then :
38860   gl_cv_func_fcntl_f_dupfd_works=yes
38861 else
38862   gl_cv_func_fcntl_f_dupfd_works=no
38863 fi
38864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38865   conftest.$ac_objext conftest.beam conftest.$ac_ext
38866 fi
38867
38868 fi
38869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
38870 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
38871     case $gl_cv_func_fcntl_f_dupfd_works in
38872       *yes) ;;
38873       *)
38874
38875
38876   if test $ac_cv_func_fcntl = no; then
38877     HAVE_FCNTL=0
38878   else
38879     REPLACE_FCNTL=1
38880   fi
38881
38882
38883 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
38884  ;;
38885     esac
38886
38887         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
38888 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
38889 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
38890   $as_echo_n "(cached) " >&6
38891 else
38892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38893 /* end confdefs.h.  */
38894
38895 #include <fcntl.h>
38896 #ifndef F_DUPFD_CLOEXEC
38897 choke me
38898 #endif
38899
38900 int
38901 main ()
38902 {
38903
38904   ;
38905   return 0;
38906 }
38907 _ACEOF
38908 if ac_fn_c_try_compile "$LINENO"; then :
38909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38910 /* end confdefs.h.  */
38911
38912 #ifdef __linux__
38913 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
38914    it to support the semantics on older kernels that failed with EINVAL.  */
38915 choke me
38916 #endif
38917
38918 int
38919 main ()
38920 {
38921
38922   ;
38923   return 0;
38924 }
38925 _ACEOF
38926 if ac_fn_c_try_compile "$LINENO"; then :
38927   gl_cv_func_fcntl_f_dupfd_cloexec=yes
38928 else
38929   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
38930 fi
38931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38932 else
38933   gl_cv_func_fcntl_f_dupfd_cloexec=no
38934 fi
38935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38936 fi
38937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
38938 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
38939     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
38940
38941
38942
38943   if test $ac_cv_func_fcntl = no; then
38944     HAVE_FCNTL=0
38945   else
38946     REPLACE_FCNTL=1
38947   fi
38948
38949           fi
38950   fi
38951
38952
38953   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
38954
38955
38956
38957
38958
38959
38960
38961
38962   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
38963
38964   fi
38965
38966
38967
38968
38969
38970           GNULIB_FCNTL=1
38971
38972
38973
38974
38975
38976 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991      if test $gl_cv_have_include_next = yes; then
38992        gl_cv_next_fcntl_h='<'fcntl.h'>'
38993      else
38994        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
38995 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
38996 if ${gl_cv_next_fcntl_h+:} false; then :
38997   $as_echo_n "(cached) " >&6
38998 else
38999
39000
39001
39002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39003 /* end confdefs.h.  */
39004 #include <fcntl.h>
39005 _ACEOF
39006                 case "$host_os" in
39007     aix*) gl_absname_cpp="$ac_cpp -C" ;;
39008     *)    gl_absname_cpp="$ac_cpp" ;;
39009   esac
39010
39011   case "$host_os" in
39012     mingw*)
39013                                           gl_dirsep_regex='[/\\]'
39014       ;;
39015     *)
39016       gl_dirsep_regex='\/'
39017       ;;
39018   esac
39019       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39020   gl_header_literal_regex=`echo 'fcntl.h' \
39021                            | sed -e "$gl_make_literal_regex_sed"`
39022   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39023       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39024       s|^/[^/]|//&|
39025       p
39026       q
39027     }'
39028
39029         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39030   sed -n "$gl_absolute_header_sed"`
39031
39032            gl_header=$gl_cv_absolute_fcntl_h
39033            gl_cv_next_fcntl_h='"'$gl_header'"'
39034
39035
39036 fi
39037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
39038 $as_echo "$gl_cv_next_fcntl_h" >&6; }
39039      fi
39040      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
39041
39042      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39043        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39044        gl_next_as_first_directive='<'fcntl.h'>'
39045      else
39046        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39047        gl_next_as_first_directive=$gl_cv_next_fcntl_h
39048      fi
39049      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059
39060     for gl_func in fcntl openat; do
39061     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
39062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
39063 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
39064 if eval \${$as_gl_Symbol+:} false; then :
39065   $as_echo_n "(cached) " >&6
39066 else
39067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39068 /* end confdefs.h.  */
39069 #include <fcntl.h>
39070
39071 int
39072 main ()
39073 {
39074 #undef $gl_func
39075   (void) $gl_func;
39076   ;
39077   return 0;
39078 }
39079 _ACEOF
39080 if ac_fn_c_try_compile "$LINENO"; then :
39081   eval "$as_gl_Symbol=yes"
39082 else
39083   eval "$as_gl_Symbol=no"
39084 fi
39085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39086 fi
39087 eval ac_res=\$$as_gl_Symbol
39088                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39089 $as_echo "$ac_res" >&6; }
39090     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
39091   cat >>confdefs.h <<_ACEOF
39092 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
39093 _ACEOF
39094
39095                      eval ac_cv_have_decl_$gl_func=yes
39096 fi
39097       done
39098
39099
39100
39101
39102 cat >>confdefs.h <<_ACEOF
39103 #define GNULIB_FD_SAFER_FLAG 1
39104 _ACEOF
39105
39106
39107
39108
39109
39110
39111
39112
39113
39114   FLOAT_H=
39115   REPLACE_FLOAT_LDBL=0
39116   case "$host_os" in
39117     aix* | beos* | openbsd* | mirbsd* | irix*)
39118       FLOAT_H=float.h
39119       ;;
39120     freebsd*)
39121       case "$host_cpu" in
39122         i[34567]86 )
39123           FLOAT_H=float.h
39124           ;;
39125         x86_64 )
39126           # On x86_64 systems, the C compiler may still be generating
39127           # 32-bit code.
39128           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39129 /* end confdefs.h.  */
39130 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
39131              yes
39132              #endif
39133 _ACEOF
39134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39135   $EGREP "yes" >/dev/null 2>&1; then :
39136
39137 else
39138   FLOAT_H=float.h
39139 fi
39140 rm -f conftest*
39141
39142           ;;
39143       esac
39144       ;;
39145     linux*)
39146       case "$host_cpu" in
39147         powerpc*)
39148           FLOAT_H=float.h
39149           ;;
39150       esac
39151       ;;
39152   esac
39153   case "$host_os" in
39154     aix* | freebsd* | linux*)
39155       if test -n "$FLOAT_H"; then
39156         REPLACE_FLOAT_LDBL=1
39157       fi
39158       ;;
39159   esac
39160
39161     REPLACE_ITOLD=0
39162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
39163 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
39164 if ${gl_cv_func_itold_works+:} false; then :
39165   $as_echo_n "(cached) " >&6
39166 else
39167
39168       if test "$cross_compiling" = yes; then :
39169   case "$host" in
39170            sparc*-*-linux*)
39171              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39172 /* end confdefs.h.  */
39173 #if defined __LP64__ || defined __arch64__
39174                 yes
39175                 #endif
39176 _ACEOF
39177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39178   $EGREP "yes" >/dev/null 2>&1; then :
39179   gl_cv_func_itold_works="guessing no"
39180 else
39181   gl_cv_func_itold_works="guessing yes"
39182 fi
39183 rm -f conftest*
39184
39185              ;;
39186            *) gl_cv_func_itold_works="guessing yes" ;;
39187          esac
39188
39189 else
39190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39191 /* end confdefs.h.  */
39192
39193 int i = -1;
39194 volatile long double ld;
39195 int main ()
39196 {
39197   ld += i * 1.0L;
39198   if (ld > 0)
39199     return 1;
39200   return 0;
39201 }
39202 _ACEOF
39203 if ac_fn_c_try_run "$LINENO"; then :
39204   gl_cv_func_itold_works=yes
39205 else
39206   gl_cv_func_itold_works=no
39207 fi
39208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39209   conftest.$ac_objext conftest.beam conftest.$ac_ext
39210 fi
39211
39212
39213 fi
39214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
39215 $as_echo "$gl_cv_func_itold_works" >&6; }
39216   case "$gl_cv_func_itold_works" in
39217     *no)
39218       REPLACE_ITOLD=1
39219                   FLOAT_H=float.h
39220       ;;
39221   esac
39222
39223   if test -n "$FLOAT_H"; then
39224
39225
39226
39227
39228
39229
39230
39231
39232      if test $gl_cv_have_include_next = yes; then
39233        gl_cv_next_float_h='<'float.h'>'
39234      else
39235        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
39236 $as_echo_n "checking absolute name of <float.h>... " >&6; }
39237 if ${gl_cv_next_float_h+:} false; then :
39238   $as_echo_n "(cached) " >&6
39239 else
39240
39241
39242
39243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39244 /* end confdefs.h.  */
39245 #include <float.h>
39246 _ACEOF
39247                 case "$host_os" in
39248     aix*) gl_absname_cpp="$ac_cpp -C" ;;
39249     *)    gl_absname_cpp="$ac_cpp" ;;
39250   esac
39251
39252   case "$host_os" in
39253     mingw*)
39254                                           gl_dirsep_regex='[/\\]'
39255       ;;
39256     *)
39257       gl_dirsep_regex='\/'
39258       ;;
39259   esac
39260       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39261   gl_header_literal_regex=`echo 'float.h' \
39262                            | sed -e "$gl_make_literal_regex_sed"`
39263   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39264       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39265       s|^/[^/]|//&|
39266       p
39267       q
39268     }'
39269
39270         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39271   sed -n "$gl_absolute_header_sed"`
39272
39273            gl_header=$gl_cv_absolute_float_h
39274            gl_cv_next_float_h='"'$gl_header'"'
39275
39276
39277 fi
39278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
39279 $as_echo "$gl_cv_next_float_h" >&6; }
39280      fi
39281      NEXT_FLOAT_H=$gl_cv_next_float_h
39282
39283      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39284        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39285        gl_next_as_first_directive='<'float.h'>'
39286      else
39287        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39288        gl_next_as_first_directive=$gl_cv_next_float_h
39289      fi
39290      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
39291
39292
39293
39294
39295   fi
39296
39297    if test -n "$FLOAT_H"; then
39298   GL_GENERATE_FLOAT_H_TRUE=
39299   GL_GENERATE_FLOAT_H_FALSE='#'
39300 else
39301   GL_GENERATE_FLOAT_H_TRUE='#'
39302   GL_GENERATE_FLOAT_H_FALSE=
39303 fi
39304
39305
39306
39307   if test $REPLACE_FLOAT_LDBL = 1; then
39308
39309
39310
39311
39312
39313
39314
39315
39316   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
39317
39318   fi
39319   if test $REPLACE_ITOLD = 1; then
39320
39321
39322
39323
39324
39325
39326
39327
39328   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
39329
39330   fi
39331
39332
39333
39334
39335
39336   FNMATCH_H=
39337   gl_fnmatch_required_lowercase=`
39338     echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
39339   `
39340   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
39341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
39342 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
39343 if eval \${$gl_fnmatch_cache_var+:} false; then :
39344   $as_echo_n "(cached) " >&6
39345 else
39346                            if test $gl_fnmatch_required = GNU; then
39347        gl_fnmatch_gnu_start=
39348        gl_fnmatch_gnu_end=
39349      else
39350        gl_fnmatch_gnu_start='#if 0'
39351        gl_fnmatch_gnu_end='#endif'
39352      fi
39353      if test "$cross_compiling" = yes; then :
39354   eval "$gl_fnmatch_cache_var=\"guessing no\""
39355 else
39356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39357 /* end confdefs.h.  */
39358 #include <fnmatch.h>
39359             static int
39360             y (char const *pattern, char const *string, int flags)
39361             {
39362               return fnmatch (pattern, string, flags) == 0;
39363             }
39364             static int
39365             n (char const *pattern, char const *string, int flags)
39366             {
39367               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
39368             }
39369
39370 int
39371 main ()
39372 {
39373 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
39374             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
39375             static char const A_1[] = { 'A' - 1, 0 };
39376             static char const A01[] = { 'A' + 1, 0 };
39377             static char const a_1[] = { 'a' - 1, 0 };
39378             static char const a01[] = { 'a' + 1, 0 };
39379             static char const bs_1[] = { '\\\\' - 1, 0 };
39380             static char const bs01[] = { '\\\\' + 1, 0 };
39381             int result = 0;
39382             if (!n ("a*", "", 0))
39383               return 1;
39384             if (!y ("a*", "abc", 0))
39385               return 1;
39386             if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
39387               return 1;
39388             if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
39389               return 2;
39390             if (!y ("a\\\\bc", "abc", 0))
39391               return 3;
39392             if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
39393               return 3;
39394             if (!y ("*x", ".x", 0))
39395               return 4;
39396             if (!n ("*x", ".x", FNM_PERIOD))
39397               return 4;
39398             if (!y (Apat, "\\\\", 0))
39399               return 5;
39400             if (!y (Apat, "A", 0))
39401               return 5;
39402             if (!y (apat, "\\\\", 0))
39403               return 5;
39404             if (!y (apat, "a", 0))
39405               return 5;
39406             if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
39407               return 5;
39408             if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
39409               return 5;
39410             if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
39411               return 5;
39412             if (!(y (apat, a01, 0) == ('a' < '\\\\')))
39413               return 5;
39414             if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
39415               return 5;
39416             if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
39417               return 5;
39418             if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
39419               return 5;
39420             if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
39421               return 5;
39422             $gl_fnmatch_gnu_start
39423             if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
39424               result |= 8;
39425             if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
39426               result |= 16;
39427             if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
39428               result |= 32;
39429             if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
39430               result |= 64;
39431             if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
39432               result |= 64;
39433             if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
39434               result |= 64;
39435             $gl_fnmatch_gnu_end
39436             return result;
39437
39438   ;
39439   return 0;
39440 }
39441 _ACEOF
39442 if ac_fn_c_try_run "$LINENO"; then :
39443   eval "$gl_fnmatch_cache_var=yes"
39444 else
39445   eval "$gl_fnmatch_cache_var=no"
39446 fi
39447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39448   conftest.$ac_objext conftest.beam conftest.$ac_ext
39449 fi
39450
39451
39452 fi
39453 eval ac_res=\$$gl_fnmatch_cache_var
39454                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39455 $as_echo "$ac_res" >&6; }
39456   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
39457   if test "$gl_fnmatch_result" = yes; then
39458             rm -f "$gl_source_base/fnmatch.h"
39459   else
39460     FNMATCH_H=fnmatch.h
39461   fi
39462
39463    if test -n "$FNMATCH_H"; then
39464   GL_GENERATE_FNMATCH_H_TRUE=
39465   GL_GENERATE_FNMATCH_H_FALSE='#'
39466 else
39467   GL_GENERATE_FNMATCH_H_TRUE='#'
39468   GL_GENERATE_FNMATCH_H_FALSE=
39469 fi
39470
39471
39472   if test -n "$FNMATCH_H"; then
39473
39474
39475
39476
39477
39478
39479
39480
39481   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
39482
39483
39484
39485 cat >>confdefs.h <<_ACEOF
39486 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
39487 _ACEOF
39488
39489
39490   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
39491 "
39492 if test "x$ac_cv_have_decl_isblank" = xyes; then :
39493   ac_have_decl=1
39494 else
39495   ac_have_decl=0
39496 fi
39497
39498 cat >>confdefs.h <<_ACEOF
39499 #define HAVE_DECL_ISBLANK $ac_have_decl
39500 _ACEOF
39501
39502
39503
39504
39505   fi
39506
39507
39508
39509   case "$host_os" in
39510     mingw* | pw*)
39511             REPLACE_FOPEN=1
39512             gl_cv_func_fopen_slash="guessing no"
39513       ;;
39514     *)
39515                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
39516 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
39517 if ${gl_cv_func_fopen_slash+:} false; then :
39518   $as_echo_n "(cached) " >&6
39519 else
39520
39521           if test "$cross_compiling" = yes; then :
39522
39523              case "$host_os" in
39524                aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
39525                  gl_cv_func_fopen_slash="guessing no" ;;
39526                *)
39527                  gl_cv_func_fopen_slash="guessing yes" ;;
39528              esac
39529
39530 else
39531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39532 /* end confdefs.h.  */
39533
39534 #include <stddef.h>
39535 #include <stdio.h>
39536 int main ()
39537 {
39538   return fopen ("conftest.sl/", "w") != NULL;
39539 }
39540 _ACEOF
39541 if ac_fn_c_try_run "$LINENO"; then :
39542   gl_cv_func_fopen_slash=yes
39543 else
39544   gl_cv_func_fopen_slash=no
39545 fi
39546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39547   conftest.$ac_objext conftest.beam conftest.$ac_ext
39548 fi
39549
39550           rm -f conftest.sl
39551
39552 fi
39553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
39554 $as_echo "$gl_cv_func_fopen_slash" >&6; }
39555       ;;
39556   esac
39557   case "$gl_cv_func_fopen_slash" in
39558     *no)
39559
39560 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
39561
39562       REPLACE_FOPEN=1
39563       ;;
39564   esac
39565
39566   if test $REPLACE_FOPEN = 1; then
39567
39568
39569
39570
39571
39572
39573
39574
39575   gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
39576
39577     :
39578   fi
39579
39580
39581
39582
39583
39584           GNULIB_FOPEN=1
39585
39586
39587
39588
39589
39590 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
39591
39592
39593
39594
39595
39596
39597
39598   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
39599     REPLACE_FSTAT=1
39600   fi
39601
39602
39603   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
39604     REPLACE_FSTAT=1
39605   fi
39606
39607
39608
39609   if test $REPLACE_FSTAT = 1; then
39610
39611
39612
39613
39614
39615
39616
39617
39618   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
39619
39620     :
39621   fi
39622
39623
39624
39625
39626
39627           GNULIB_FSTAT=1
39628
39629
39630
39631
39632
39633 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
39634
39635
39636
39637
39638
39639 cat >>confdefs.h <<_ACEOF
39640 #define GNULIB_FWRITEERROR 1
39641 _ACEOF
39642
39643
39644
39645
39646
39647
39648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
39649 $as_echo_n "checking for Java to native code compiler... " >&6; }
39650   # Search for the gcj command or use the one provided by the user.
39651   if test -z "$GCJ"; then
39652                 if test -n "$ac_tool_prefix"; then
39653   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
39654 set dummy ${ac_tool_prefix}gcj; ac_word=$2
39655 :
39656 if ${ac_cv_prog_GCJ+:} false; then :
39657   $as_echo_n "(cached) " >&6
39658 else
39659   if test -n "$GCJ"; then
39660   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
39661 else
39662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39663 for as_dir in $PATH
39664 do
39665   IFS=$as_save_IFS
39666   test -z "$as_dir" && as_dir=.
39667     for ac_exec_ext in '' $ac_executable_extensions; do
39668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39669     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
39670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39671     break 2
39672   fi
39673 done
39674   done
39675 IFS=$as_save_IFS
39676
39677 fi
39678 fi
39679 GCJ=$ac_cv_prog_GCJ
39680 if test -n "$GCJ"; then
39681   :
39682 else
39683   :
39684 fi
39685
39686
39687 fi
39688 if test -z "$ac_cv_prog_GCJ"; then
39689   ac_ct_GCJ=$GCJ
39690   # Extract the first word of "gcj", so it can be a program name with args.
39691 set dummy gcj; ac_word=$2
39692 :
39693 if ${ac_cv_prog_ac_ct_GCJ+:} false; then :
39694   $as_echo_n "(cached) " >&6
39695 else
39696   if test -n "$ac_ct_GCJ"; then
39697   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
39698 else
39699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39700 for as_dir in $PATH
39701 do
39702   IFS=$as_save_IFS
39703   test -z "$as_dir" && as_dir=.
39704     for ac_exec_ext in '' $ac_executable_extensions; do
39705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39706     ac_cv_prog_ac_ct_GCJ="gcj"
39707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39708     break 2
39709   fi
39710 done
39711   done
39712 IFS=$as_save_IFS
39713
39714 fi
39715 fi
39716 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
39717 if test -n "$ac_ct_GCJ"; then
39718   :
39719 else
39720   :
39721 fi
39722
39723   if test "x$ac_ct_GCJ" = x; then
39724     GCJ="none"
39725   else
39726     case $cross_compiling:$ac_tool_warned in
39727 yes:)
39728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39730 ac_tool_warned=yes ;;
39731 esac
39732     GCJ=$ac_ct_GCJ
39733   fi
39734 else
39735   GCJ="$ac_cv_prog_GCJ"
39736 fi
39737
39738               fi
39739   # Choose GCJFLAGS or use the one provided by the user.
39740   if test "$GCJ" != none; then
39741     test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
39742   fi
39743   # Check whether the version is ok and it can create executables.
39744   ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
39745   if test "$GCJ" != none \
39746      && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
39747      && (
39748       # See if libgcj.so is well installed and if exception handling works.
39749       cat > conftest.java <<EOF
39750 public class conftest {
39751   public static void main (String[] args) {
39752     try {
39753       java.util.ResourceBundle.getBundle("foobar");
39754     } catch (Exception e) {
39755     }
39756     System.exit(0);
39757   }
39758 }
39759 EOF
39760       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
39761   (eval $ac_gcj_link) 2>&5
39762   ac_status=$?
39763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39764   test $ac_status = 0; }
39765       error=$?
39766       if test $error = 0 && test "$cross_compiling" != yes; then
39767         # Run conftest and catch its exit status, but silently.
39768         error=`./conftest >/dev/null 2>&1; echo $?`
39769         test $error = 0 || error=1
39770         rm -f core conftest.core
39771       fi
39772       rm -f conftest.java conftest$ac_exeext
39773       exit $error
39774      ); then
39775     :
39776   else
39777     GCJ=none
39778   fi
39779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
39780 $as_echo "$GCJ" >&6; }
39781   if test "$GCJ" != none; then
39782     HAVE_GCJ=1
39783   else
39784     HAVE_GCJ=
39785   fi
39786
39787
39788
39789
39790
39791
39792
39793
39794
39795
39796
39797
39798   if test $ac_cv_func_getdelim = yes; then
39799     HAVE_GETDELIM=1
39800         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
39801 $as_echo_n "checking for working getdelim function... " >&6; }
39802 if ${gl_cv_func_working_getdelim+:} false; then :
39803   $as_echo_n "(cached) " >&6
39804 else
39805   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
39806     if test "$cross_compiling" = yes; then :
39807         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39808 /* end confdefs.h.  */
39809
39810 #include <features.h>
39811 #ifdef __GNU_LIBRARY__
39812  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
39813   Lucky GNU user
39814  #endif
39815 #endif
39816
39817 _ACEOF
39818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39819   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
39820   gl_cv_func_working_getdelim="guessing yes"
39821 else
39822   gl_cv_func_working_getdelim="guessing no"
39823 fi
39824 rm -f conftest*
39825
39826
39827 else
39828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39829 /* end confdefs.h.  */
39830
39831 #    include <stdio.h>
39832 #    include <stdlib.h>
39833 #    include <string.h>
39834     int main ()
39835     {
39836       FILE *in = fopen ("./conftest.data", "r");
39837       if (!in)
39838         return 1;
39839       {
39840         /* Test result for a NULL buffer and a zero size.
39841            Based on a test program from Karl Heuer.  */
39842         char *line = NULL;
39843         size_t siz = 0;
39844         int len = getdelim (&line, &siz, '\n', in);
39845         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
39846           return 2;
39847       }
39848       {
39849         /* Test result for a NULL buffer and a non-zero size.
39850            This crashes on FreeBSD 8.0.  */
39851         char *line = NULL;
39852         size_t siz = (size_t)(~0) / 4;
39853         if (getdelim (&line, &siz, '\n', in) == -1)
39854           return 3;
39855       }
39856       return 0;
39857     }
39858
39859 _ACEOF
39860 if ac_fn_c_try_run "$LINENO"; then :
39861   gl_cv_func_working_getdelim=yes
39862 else
39863   gl_cv_func_working_getdelim=no
39864 fi
39865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39866   conftest.$ac_objext conftest.beam conftest.$ac_ext
39867 fi
39868
39869 fi
39870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
39871 $as_echo "$gl_cv_func_working_getdelim" >&6; }
39872     case "$gl_cv_func_working_getdelim" in
39873       *no)
39874         REPLACE_GETDELIM=1
39875         ;;
39876     esac
39877   else
39878     HAVE_GETDELIM=0
39879   fi
39880
39881   if test $ac_cv_have_decl_getdelim = no; then
39882     HAVE_DECL_GETDELIM=0
39883   fi
39884
39885   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
39886
39887
39888
39889
39890
39891
39892
39893
39894   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
39895
39896
39897   for ac_func in flockfile funlockfile
39898 do :
39899   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39900 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39901 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39902   cat >>confdefs.h <<_ACEOF
39903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39904 _ACEOF
39905
39906 fi
39907 done
39908
39909   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
39910 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
39911   ac_have_decl=1
39912 else
39913   ac_have_decl=0
39914 fi
39915
39916 cat >>confdefs.h <<_ACEOF
39917 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
39918 _ACEOF
39919
39920
39921   fi
39922
39923
39924
39925
39926
39927           GNULIB_GETDELIM=1
39928
39929
39930
39931
39932
39933 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
39934
39935
39936
39937
39938
39939
39940
39941
39942   if test $ac_cv_func_getdtablesize = yes &&
39943      test $ac_cv_have_decl_getdtablesize = yes; then
39944     # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
39945     # up to an unchangeable hard limit; all other platforms correctly
39946     # require setrlimit before getdtablesize() can report a larger value.
39947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
39948 $as_echo_n "checking whether getdtablesize works... " >&6; }
39949 if ${gl_cv_func_getdtablesize_works+:} false; then :
39950   $as_echo_n "(cached) " >&6
39951 else
39952   if test "$cross_compiling" = yes; then :
39953   case "$host_os" in
39954           cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
39955             gl_cv_func_getdtablesize_works="guessing no" ;;
39956           *) gl_cv_func_getdtablesize_works="guessing yes" ;;
39957          esac
39958 else
39959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39960 /* end confdefs.h.  */
39961
39962         #include <unistd.h>
39963 int
39964 main ()
39965 {
39966 int size = getdtablesize();
39967            if (dup2 (0, getdtablesize()) != -1)
39968              return 1;
39969            if (size != getdtablesize())
39970              return 2;
39971
39972   ;
39973   return 0;
39974 }
39975 _ACEOF
39976 if ac_fn_c_try_run "$LINENO"; then :
39977   gl_cv_func_getdtablesize_works=yes
39978 else
39979   gl_cv_func_getdtablesize_works=no
39980 fi
39981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39982   conftest.$ac_objext conftest.beam conftest.$ac_ext
39983 fi
39984
39985
39986 fi
39987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
39988 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
39989     case "$gl_cv_func_getdtablesize_works" in
39990       *yes) ;;
39991       *) REPLACE_GETDTABLESIZE=1 ;;
39992     esac
39993   else
39994     HAVE_GETDTABLESIZE=0
39995   fi
39996
39997   if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
39998
39999
40000
40001
40002
40003
40004
40005
40006   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
40007
40008     :
40009   fi
40010
40011
40012
40013
40014
40015           GNULIB_GETDTABLESIZE=1
40016
40017
40018
40019
40020
40021 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
40022
40023
40024
40025
40026
40027
40028
40029
40030
40031
40032   gl_getline_needs_run_time_check=no
40033   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
40034 if test "x$ac_cv_func_getline" = xyes; then :
40035                    gl_getline_needs_run_time_check=yes
40036 else
40037   am_cv_func_working_getline=no
40038 fi
40039
40040   if test $gl_getline_needs_run_time_check = yes; then
40041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
40042 $as_echo_n "checking for working getline function... " >&6; }
40043 if ${am_cv_func_working_getline+:} false; then :
40044   $as_echo_n "(cached) " >&6
40045 else
40046   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
40047     if test "$cross_compiling" = yes; then :
40048         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40049 /* end confdefs.h.  */
40050
40051 #include <features.h>
40052 #ifdef __GNU_LIBRARY__
40053  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
40054   Lucky GNU user
40055  #endif
40056 #endif
40057
40058 _ACEOF
40059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40060   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
40061   am_cv_func_working_getline="guessing yes"
40062 else
40063   am_cv_func_working_getline="guessing no"
40064 fi
40065 rm -f conftest*
40066
40067
40068 else
40069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40070 /* end confdefs.h.  */
40071
40072 #    include <stdio.h>
40073 #    include <stdlib.h>
40074 #    include <string.h>
40075     int main ()
40076     {
40077       FILE *in = fopen ("./conftest.data", "r");
40078       if (!in)
40079         return 1;
40080       {
40081         /* Test result for a NULL buffer and a zero size.
40082            Based on a test program from Karl Heuer.  */
40083         char *line = NULL;
40084         size_t siz = 0;
40085         int len = getline (&line, &siz, in);
40086         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
40087           return 2;
40088       }
40089       {
40090         /* Test result for a NULL buffer and a non-zero size.
40091            This crashes on FreeBSD 8.0.  */
40092         char *line = NULL;
40093         size_t siz = (size_t)(~0) / 4;
40094         if (getline (&line, &siz, in) == -1)
40095           return 3;
40096       }
40097       return 0;
40098     }
40099
40100 _ACEOF
40101 if ac_fn_c_try_run "$LINENO"; then :
40102   am_cv_func_working_getline=yes
40103 else
40104   am_cv_func_working_getline=no
40105 fi
40106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40107   conftest.$ac_objext conftest.beam conftest.$ac_ext
40108 fi
40109
40110 fi
40111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
40112 $as_echo "$am_cv_func_working_getline" >&6; }
40113   fi
40114
40115   if test $ac_cv_have_decl_getline = no; then
40116     HAVE_DECL_GETLINE=0
40117   fi
40118
40119   case "$am_cv_func_working_getline" in
40120     *no)
40121                         REPLACE_GETLINE=1
40122       ;;
40123   esac
40124
40125   if test $REPLACE_GETLINE = 1; then
40126
40127
40128
40129
40130
40131
40132
40133
40134   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
40135
40136
40137   :
40138
40139   fi
40140
40141
40142
40143
40144
40145           GNULIB_GETLINE=1
40146
40147
40148
40149
40150
40151 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
40152
40153
40154
40155
40156
40157
40158
40159
40160   if test $REPLACE_GETOPT = 1; then
40161
40162
40163
40164
40165
40166
40167
40168
40169   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
40170
40171
40172
40173
40174
40175
40176
40177
40178
40179   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
40180
40181
40182
40183
40184         GNULIB_GL_UNISTD_H_GETOPT=1
40185   fi
40186
40187
40188
40189 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
40190
40191
40192
40193
40194
40195
40196
40197     REPLACE_GETOPT=0
40198     if test -n "$gl_replace_getopt"; then
40199       REPLACE_GETOPT=1
40200     fi
40201
40202   if test $REPLACE_GETOPT = 1; then
40203
40204   GETOPT_H=getopt.h
40205
40206 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
40207
40208
40209
40210   fi
40211
40212   if test $REPLACE_GETOPT = 1; then
40213
40214
40215
40216
40217
40218
40219
40220
40221   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
40222
40223
40224
40225
40226
40227
40228
40229
40230
40231   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
40232
40233
40234
40235
40236         GNULIB_GL_UNISTD_H_GETOPT=1
40237   fi
40238
40239
40240
40241
40242
40243
40244
40245
40246
40247
40248   gl_gettimeofday_timezone=void
40249   if test $ac_cv_func_gettimeofday != yes; then
40250     HAVE_GETTIMEOFDAY=0
40251   else
40252
40253
40254
40255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
40256 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
40257 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
40258   $as_echo_n "(cached) " >&6
40259 else
40260   if test "$cross_compiling" = yes; then :
40261   # When cross-compiling:
40262       case "$host_os" in
40263                 # Guess all is fine on glibc systems.
40264         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
40265                 # If we don't know, assume the worst.
40266         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
40267       esac
40268
40269 else
40270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40271 /* end confdefs.h.  */
40272 #include <string.h>
40273           #include <sys/time.h>
40274           #include <time.h>
40275           #include <stdlib.h>
40276
40277 int
40278 main ()
40279 {
40280
40281           time_t t = 0;
40282           struct tm *lt;
40283           struct tm saved_lt;
40284           struct timeval tv;
40285           lt = localtime (&t);
40286           saved_lt = *lt;
40287           gettimeofday (&tv, NULL);
40288           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
40289
40290   ;
40291   return 0;
40292 }
40293 _ACEOF
40294 if ac_fn_c_try_run "$LINENO"; then :
40295   gl_cv_func_gettimeofday_clobber=no
40296 else
40297   gl_cv_func_gettimeofday_clobber=yes
40298 fi
40299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40300   conftest.$ac_objext conftest.beam conftest.$ac_ext
40301 fi
40302
40303 fi
40304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
40305 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
40306
40307  case "$gl_cv_func_gettimeofday_clobber" in
40308    *yes)
40309      REPLACE_GETTIMEOFDAY=1
40310
40311   REPLACE_GMTIME=1
40312   REPLACE_LOCALTIME=1
40313
40314
40315 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
40316
40317      ;;
40318  esac
40319
40320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
40321 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
40322 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
40323   $as_echo_n "(cached) " >&6
40324 else
40325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40326 /* end confdefs.h.  */
40327 #include <sys/time.h>
40328               struct timeval c;
40329               int gettimeofday (struct timeval *restrict, void *restrict);
40330
40331 int
40332 main ()
40333 {
40334 /* glibc uses struct timezone * rather than the POSIX void *
40335                  if _GNU_SOURCE is defined.  However, since the only portable
40336                  use of gettimeofday uses NULL as the second parameter, and
40337                  since the glibc definition is actually more typesafe, it is
40338                  not worth wrapping this to get a compliant signature.  */
40339               int (*f) (struct timeval *restrict, void *restrict)
40340                 = gettimeofday;
40341               int x = f (&c, 0);
40342               return !(x | c.tv_sec | c.tv_usec);
40343
40344   ;
40345   return 0;
40346 }
40347 _ACEOF
40348 if ac_fn_c_try_compile "$LINENO"; then :
40349   gl_cv_func_gettimeofday_posix_signature=yes
40350 else
40351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40352 /* end confdefs.h.  */
40353 #include <sys/time.h>
40354 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
40355
40356 int
40357 main ()
40358 {
40359
40360   ;
40361   return 0;
40362 }
40363 _ACEOF
40364 if ac_fn_c_try_compile "$LINENO"; then :
40365   gl_cv_func_gettimeofday_posix_signature=almost
40366 else
40367   gl_cv_func_gettimeofday_posix_signature=no
40368 fi
40369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40370 fi
40371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40372 fi
40373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
40374 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
40375     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
40376       gl_gettimeofday_timezone='struct timezone'
40377     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
40378       REPLACE_GETTIMEOFDAY=1
40379     fi
40380         if test $REPLACE_STRUCT_TIMEVAL = 1; then
40381       REPLACE_GETTIMEOFDAY=1
40382     fi
40383
40384   fi
40385
40386 cat >>confdefs.h <<_ACEOF
40387 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
40388 _ACEOF
40389
40390
40391   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
40392
40393
40394
40395
40396
40397
40398
40399
40400   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
40401
40402
40403   for ac_header in sys/timeb.h
40404 do :
40405   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
40406 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
40407   cat >>confdefs.h <<_ACEOF
40408 #define HAVE_SYS_TIMEB_H 1
40409 _ACEOF
40410
40411 fi
40412
40413 done
40414
40415   for ac_func in _ftime
40416 do :
40417   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
40418 if test "x$ac_cv_func__ftime" = xyes; then :
40419   cat >>confdefs.h <<_ACEOF
40420 #define HAVE__FTIME 1
40421 _ACEOF
40422
40423 fi
40424 done
40425
40426
40427   fi
40428
40429
40430
40431
40432
40433           GNULIB_GETTIMEOFDAY=1
40434
40435
40436
40437
40438
40439 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
40440
40441
40442
40443
40444
40445
40446
40447
40448
40449           GNULIB_ICONV=1
40450
40451
40452
40453
40454
40455
40456
40457
40458
40459
40460
40461
40462
40463
40464
40465
40466      if test $gl_cv_have_include_next = yes; then
40467        gl_cv_next_iconv_h='<'iconv.h'>'
40468      else
40469        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
40470 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
40471 if ${gl_cv_next_iconv_h+:} false; then :
40472   $as_echo_n "(cached) " >&6
40473 else
40474
40475              if test $ac_cv_header_iconv_h = yes; then
40476
40477
40478
40479
40480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40481 /* end confdefs.h.  */
40482 #include <iconv.h>
40483 _ACEOF
40484                 case "$host_os" in
40485     aix*) gl_absname_cpp="$ac_cpp -C" ;;
40486     *)    gl_absname_cpp="$ac_cpp" ;;
40487   esac
40488
40489   case "$host_os" in
40490     mingw*)
40491                                           gl_dirsep_regex='[/\\]'
40492       ;;
40493     *)
40494       gl_dirsep_regex='\/'
40495       ;;
40496   esac
40497       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
40498   gl_header_literal_regex=`echo 'iconv.h' \
40499                            | sed -e "$gl_make_literal_regex_sed"`
40500   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
40501       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
40502       s|^/[^/]|//&|
40503       p
40504       q
40505     }'
40506
40507         gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40508   sed -n "$gl_absolute_header_sed"`
40509
40510            gl_header=$gl_cv_absolute_iconv_h
40511            gl_cv_next_iconv_h='"'$gl_header'"'
40512           else
40513                gl_cv_next_iconv_h='<'iconv.h'>'
40514              fi
40515
40516
40517 fi
40518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
40519 $as_echo "$gl_cv_next_iconv_h" >&6; }
40520      fi
40521      NEXT_ICONV_H=$gl_cv_next_iconv_h
40522
40523      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40524        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40525        gl_next_as_first_directive='<'iconv.h'>'
40526      else
40527        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40528        gl_next_as_first_directive=$gl_cv_next_iconv_h
40529      fi
40530      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
40531
40532
40533
40534
40535
40536
40537
40538
40539
40540   if test "$am_cv_func_iconv" = yes; then
40541
40542
40543   ICONV_H='iconv.h'
40544    if test -n "$ICONV_H"; then
40545   GL_GENERATE_ICONV_H_TRUE=
40546   GL_GENERATE_ICONV_H_FALSE='#'
40547 else
40548   GL_GENERATE_ICONV_H_TRUE='#'
40549   GL_GENERATE_ICONV_H_FALSE=
40550 fi
40551
40552
40553             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40554 /* end confdefs.h.  */
40555
40556       #include <iconv.h>
40557       #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
40558        gnu_iconv
40559       #endif
40560
40561 _ACEOF
40562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40563   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
40564   gl_func_iconv_gnu=yes
40565 else
40566   gl_func_iconv_gnu=no
40567 fi
40568 rm -f conftest*
40569
40570     if test $gl_func_iconv_gnu = no; then
40571       iconv_flavor=
40572       case "$host_os" in
40573         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
40574         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
40575         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
40576         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
40577         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
40578       esac
40579       if test -n "$iconv_flavor"; then
40580
40581 cat >>confdefs.h <<_ACEOF
40582 #define ICONV_FLAVOR $iconv_flavor
40583 _ACEOF
40584
40585
40586
40587
40588   ICONV_H='iconv.h'
40589    if test -n "$ICONV_H"; then
40590   GL_GENERATE_ICONV_H_TRUE=
40591   GL_GENERATE_ICONV_H_FALSE='#'
40592 else
40593   GL_GENERATE_ICONV_H_TRUE='#'
40594   GL_GENERATE_ICONV_H_FALSE=
40595 fi
40596
40597
40598   REPLACE_ICONV_OPEN=1
40599
40600       fi
40601     fi
40602
40603   fi
40604
40605   if test $REPLACE_ICONV_OPEN = 1; then
40606
40607
40608
40609
40610
40611
40612
40613
40614   gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
40615
40616   fi
40617   if test $REPLACE_ICONV = 1; then
40618
40619
40620
40621
40622
40623
40624
40625
40626   gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext"
40627
40628
40629
40630
40631
40632
40633
40634
40635
40636   gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext"
40637
40638   fi
40639
40640
40641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
40642 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
40643 if ${gl_cv_c_inline_effective+:} false; then :
40644   $as_echo_n "(cached) " >&6
40645 else
40646   if test $ac_cv_c_inline = no; then
40647        gl_cv_c_inline_effective=no
40648      else
40649                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40650 /* end confdefs.h.  */
40651
40652 int
40653 main ()
40654 {
40655 #ifdef __NO_INLINE__
40656                #error "inline is not effective"
40657              #endif
40658   ;
40659   return 0;
40660 }
40661 _ACEOF
40662 if ac_fn_c_try_compile "$LINENO"; then :
40663   gl_cv_c_inline_effective=yes
40664 else
40665   gl_cv_c_inline_effective=no
40666 fi
40667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40668      fi
40669
40670 fi
40671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
40672 $as_echo "$gl_cv_c_inline_effective" >&6; }
40673   if test $gl_cv_c_inline_effective = yes; then
40674
40675 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
40676
40677   fi
40678
40679
40680
40681
40682   ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
40683       #ifndef isinf
40684       #error \"isinf must be a macro, not a function\"
40685       #endif
40686
40687 "
40688 if test "x$ac_cv_have_decl_isinf" = xyes; then :
40689   ac_have_decl=1
40690 else
40691   ac_have_decl=0
40692 fi
40693
40694 cat >>confdefs.h <<_ACEOF
40695 #define HAVE_DECL_ISINF $ac_have_decl
40696 _ACEOF
40697
40698   if test "$ac_cv_have_decl_isinf" = yes; then
40699
40700   save_LIBS=$LIBS
40701   ISINF_LIBM=missing
40702   for libm in "" "-lm"; do
40703     LIBS="$save_LIBS $libm"
40704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40705 /* end confdefs.h.  */
40706
40707          #ifndef __NO_MATH_INLINES
40708          # define __NO_MATH_INLINES 1 /* for glibc */
40709          #endif
40710          #include <math.h>
40711
40712          double x;
40713 int
40714 main ()
40715 {
40716 x = isinf (x) + isinf ((float) x);
40717   ;
40718   return 0;
40719 }
40720 _ACEOF
40721 if ac_fn_c_try_link "$LINENO"; then :
40722   ISINF_LIBM=$libm
40723 break
40724 fi
40725 rm -f core conftest.err conftest.$ac_objext \
40726     conftest$ac_exeext conftest.$ac_ext
40727   done
40728   LIBS=$save_LIBS
40729
40730     if test "$ISINF_LIBM" != missing; then
40731
40732
40733
40734
40735      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isinf(long double) works" >&5
40736 $as_echo_n "checking whether isinf(long double) works... " >&6; }
40737 if ${gl_cv_func_isinfl_works+:} false; then :
40738   $as_echo_n "(cached) " >&6
40739 else
40740
40741       if test "$cross_compiling" = yes; then :
40742   gl_cv_func_isinfl_works="guessing yes"
40743 else
40744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40745 /* end confdefs.h.  */
40746
40747 #include <float.h>
40748 #include <limits.h>
40749 #include <math.h>
40750 #define NWORDS \
40751   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
40752 typedef union { unsigned int word[NWORDS]; long double value; }
40753         memory_long_double;
40754 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
40755    runtime type conversion.  */
40756 #ifdef __sgi
40757 static long double NaNl ()
40758 {
40759   double zero = 0.0;
40760   return zero / zero;
40761 }
40762 #else
40763 # define NaNl() (0.0L / 0.0L)
40764 #endif
40765 int main ()
40766 {
40767   int result = 0;
40768
40769   if (isinf (LDBL_MAX))
40770     result |= 1;
40771
40772   {
40773     memory_long_double m;
40774     unsigned int i;
40775
40776     /* The isinf macro should be immune against changes in the sign bit and
40777        in the mantissa bits.  The xor operation twiddles a bit that can only be
40778        a sign bit or a mantissa bit (since the exponent never extends to
40779        bit 31).  */
40780     m.value = NaNl ();
40781     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
40782     for (i = 0; i < NWORDS; i++)
40783       m.word[i] |= 1;
40784     if (isinf (m.value))
40785       result |= 2;
40786   }
40787
40788 #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
40789 /* Representation of an 80-bit 'long double' as an initializer for a sequence
40790    of 'unsigned int' words.  */
40791 # ifdef WORDS_BIGENDIAN
40792 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
40793      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
40794        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
40795        (unsigned int) (mantlo) << 16                                        \
40796      }
40797 # else
40798 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
40799      { mantlo, manthi, exponent }
40800 # endif
40801   { /* Quiet NaN.  */
40802     static memory_long_double x =
40803       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
40804     if (isinf (x.value))
40805       result |= 2;
40806   }
40807   {
40808     /* Signalling NaN.  */
40809     static memory_long_double x =
40810       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
40811     if (isinf (x.value))
40812       result |= 2;
40813   }
40814   /* isinf should return something even for noncanonical values.  */
40815   { /* Pseudo-NaN.  */
40816     static memory_long_double x =
40817       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
40818     if (isinf (x.value) && !isinf (x.value))
40819       result |= 4;
40820   }
40821   { /* Pseudo-Infinity.  */
40822     static memory_long_double x =
40823       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
40824     if (isinf (x.value) && !isinf (x.value))
40825       result |= 8;
40826   }
40827   { /* Pseudo-Zero.  */
40828     static memory_long_double x =
40829       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
40830     if (isinf (x.value) && !isinf (x.value))
40831       result |= 16;
40832   }
40833   { /* Unnormalized number.  */
40834     static memory_long_double x =
40835       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
40836     if (isinf (x.value) && !isinf (x.value))
40837       result |= 32;
40838   }
40839   { /* Pseudo-Denormal.  */
40840     static memory_long_double x =
40841       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
40842     if (isinf (x.value) && !isinf (x.value))
40843       result |= 64;
40844   }
40845 #endif
40846
40847   return result;
40848 }
40849 _ACEOF
40850 if ac_fn_c_try_run "$LINENO"; then :
40851   gl_cv_func_isinfl_works=yes
40852 else
40853   gl_cv_func_isinfl_works=no
40854 fi
40855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40856   conftest.$ac_objext conftest.beam conftest.$ac_ext
40857 fi
40858
40859
40860 fi
40861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isinfl_works" >&5
40862 $as_echo "$gl_cv_func_isinfl_works" >&6; }
40863
40864       case "$gl_cv_func_isinfl_works" in
40865         *yes) ;;
40866         *)    ISINF_LIBM=missing;;
40867       esac
40868     fi
40869   fi
40870   if test "$ac_cv_have_decl_isinf" != yes ||
40871      test "$ISINF_LIBM" = missing; then
40872     REPLACE_ISINF=1
40873         ISINF_LIBM=
40874   fi
40875
40876
40877   if test $REPLACE_ISINF = 1; then
40878
40879
40880
40881
40882
40883
40884
40885
40886   gl_LIBOBJS="$gl_LIBOBJS isinf.$ac_objext"
40887
40888   fi
40889
40890
40891
40892
40893
40894           GNULIB_ISINF=1
40895
40896
40897
40898
40899
40900 $as_echo "#define GNULIB_TEST_ISINF 1" >>confdefs.h
40901
40902
40903
40904
40905
40906
40907
40908
40909
40910   # If we replaced any of the underlying isnan* functions, replace
40911   # the isnan macro; it undoubtedly suffers from the same flaws.
40912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan macro works" >&5
40913 $as_echo_n "checking whether isnan macro works... " >&6; }
40914   if test $gl_func_isnanf = yes \
40915      && test $gl_func_isnand = yes \
40916      && test $gl_func_isnanl = yes; then
40917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40918 $as_echo "yes" >&6; }
40919     ISNAN_LIBM=
40920         case " $ISNAN_LIBM " in
40921       *" $ISNANF_LIBM "*) ;;
40922       *) ISNAN_LIBM="$ISNAN_LIBM $ISNANF_LIBM" ;;
40923     esac
40924         case " $ISNAN_LIBM " in
40925       *" $ISNAND_LIBM "*) ;;
40926       *) ISNAN_LIBM="$ISNAN_LIBM $ISNAND_LIBM" ;;
40927     esac
40928         case " $ISNAN_LIBM " in
40929       *" $ISNANL_LIBM "*) ;;
40930       *) ISNAN_LIBM="$ISNAN_LIBM $ISNANL_LIBM" ;;
40931     esac
40932   else
40933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40934 $as_echo "no" >&6; }
40935         REPLACE_ISNAN=1
40936     ISNAN_LIBM=
40937   fi
40938
40939
40940
40941
40942
40943
40944
40945           GNULIB_ISNAN=1
40946
40947
40948
40949
40950
40951 $as_echo "#define GNULIB_TEST_ISNAN 1" >>confdefs.h
40952
40953
40954
40955
40956
40957   ISNAND_LIBM=
40958
40959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
40960 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
40961 if ${gl_cv_func_isnand_no_libm+:} false; then :
40962   $as_echo_n "(cached) " >&6
40963 else
40964
40965       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40966 /* end confdefs.h.  */
40967 #include <math.h>
40968              #if __GNUC__ >= 4
40969              # undef isnand
40970              # define isnand(x) __builtin_isnan ((double)(x))
40971              #else
40972              # undef isnand
40973              # define isnand(x) isnan ((double)(x))
40974              #endif
40975              double x;
40976 int
40977 main ()
40978 {
40979 return isnand (x);
40980   ;
40981   return 0;
40982 }
40983 _ACEOF
40984 if ac_fn_c_try_link "$LINENO"; then :
40985   gl_cv_func_isnand_no_libm=yes
40986 else
40987   gl_cv_func_isnand_no_libm=no
40988 fi
40989 rm -f core conftest.err conftest.$ac_objext \
40990     conftest$ac_exeext conftest.$ac_ext
40991
40992 fi
40993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
40994 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
40995
40996   if test $gl_cv_func_isnand_no_libm = no; then
40997
40998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5
40999 $as_echo_n "checking whether isnan(double) can be used with libm... " >&6; }
41000 if ${gl_cv_func_isnand_in_libm+:} false; then :
41001   $as_echo_n "(cached) " >&6
41002 else
41003
41004       save_LIBS="$LIBS"
41005       LIBS="$LIBS -lm"
41006       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41007 /* end confdefs.h.  */
41008 #include <math.h>
41009              #if __GNUC__ >= 4
41010              # undef isnand
41011              # define isnand(x) __builtin_isnan ((double)(x))
41012              #elif defined isnan
41013              # undef isnand
41014              # define isnand(x) isnan ((double)(x))
41015              #endif
41016              double x;
41017 int
41018 main ()
41019 {
41020 return isnand (x);
41021   ;
41022   return 0;
41023 }
41024 _ACEOF
41025 if ac_fn_c_try_link "$LINENO"; then :
41026   gl_cv_func_isnand_in_libm=yes
41027 else
41028   gl_cv_func_isnand_in_libm=no
41029 fi
41030 rm -f core conftest.err conftest.$ac_objext \
41031     conftest$ac_exeext conftest.$ac_ext
41032       LIBS="$save_LIBS"
41033
41034 fi
41035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5
41036 $as_echo "$gl_cv_func_isnand_in_libm" >&6; }
41037
41038     if test $gl_cv_func_isnand_in_libm = yes; then
41039       ISNAND_LIBM=-lm
41040     fi
41041   fi
41042     if test $gl_cv_func_isnand_no_libm = yes \
41043      || test $gl_cv_func_isnand_in_libm = yes; then
41044     gl_func_isnand=yes
41045   else
41046     gl_func_isnand=no
41047     HAVE_ISNAND=0
41048   fi
41049
41050
41051
41052
41053
41054   if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
41055
41056
41057
41058
41059
41060
41061
41062
41063   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
41064
41065
41066
41067
41068   fi
41069
41070
41071
41072
41073
41074           GNULIB_ISNAND=1
41075
41076
41077
41078
41079
41080 $as_echo "#define GNULIB_TEST_ISNAND 1" >>confdefs.h
41081
41082
41083
41084
41085
41086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
41087 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
41088 if ${gl_cv_func_isnand_no_libm+:} false; then :
41089   $as_echo_n "(cached) " >&6
41090 else
41091
41092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41093 /* end confdefs.h.  */
41094 #include <math.h>
41095              #if __GNUC__ >= 4
41096              # undef isnand
41097              # define isnand(x) __builtin_isnan ((double)(x))
41098              #else
41099              # undef isnand
41100              # define isnand(x) isnan ((double)(x))
41101              #endif
41102              double x;
41103 int
41104 main ()
41105 {
41106 return isnand (x);
41107   ;
41108   return 0;
41109 }
41110 _ACEOF
41111 if ac_fn_c_try_link "$LINENO"; then :
41112   gl_cv_func_isnand_no_libm=yes
41113 else
41114   gl_cv_func_isnand_no_libm=no
41115 fi
41116 rm -f core conftest.err conftest.$ac_objext \
41117     conftest$ac_exeext conftest.$ac_ext
41118
41119 fi
41120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
41121 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
41122
41123   gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
41124   if test $gl_cv_func_isnand_no_libm = yes; then
41125
41126 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
41127
41128   fi
41129
41130   if test $gl_func_isnand_no_libm != yes; then
41131
41132
41133
41134
41135
41136
41137
41138
41139   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
41140
41141
41142
41143
41144   fi
41145
41146
41147   ISNANF_LIBM=
41148
41149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
41150 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
41151 if ${gl_cv_func_isnanf_no_libm+:} false; then :
41152   $as_echo_n "(cached) " >&6
41153 else
41154
41155       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41156 /* end confdefs.h.  */
41157 #include <math.h>
41158              #if __GNUC__ >= 4
41159              # undef isnanf
41160              # define isnanf(x) __builtin_isnanf ((float)(x))
41161              #elif defined isnan
41162              # undef isnanf
41163              # define isnanf(x) isnan ((float)(x))
41164              #endif
41165              float x;
41166 int
41167 main ()
41168 {
41169 return isnanf (x);
41170   ;
41171   return 0;
41172 }
41173 _ACEOF
41174 if ac_fn_c_try_link "$LINENO"; then :
41175   gl_cv_func_isnanf_no_libm=yes
41176 else
41177   gl_cv_func_isnanf_no_libm=no
41178 fi
41179 rm -f core conftest.err conftest.$ac_objext \
41180     conftest$ac_exeext conftest.$ac_ext
41181
41182 fi
41183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
41184 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
41185
41186   if test $gl_cv_func_isnanf_no_libm = no; then
41187
41188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5
41189 $as_echo_n "checking whether isnan(float) can be used with libm... " >&6; }
41190 if ${gl_cv_func_isnanf_in_libm+:} false; then :
41191   $as_echo_n "(cached) " >&6
41192 else
41193
41194       save_LIBS="$LIBS"
41195       LIBS="$LIBS -lm"
41196       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41197 /* end confdefs.h.  */
41198 #include <math.h>
41199              #if __GNUC__ >= 4
41200              # undef isnanf
41201              # define isnanf(x) __builtin_isnanf ((float)(x))
41202              #elif defined isnan
41203              # undef isnanf
41204              # define isnanf(x) isnan ((float)(x))
41205              #endif
41206              float x;
41207 int
41208 main ()
41209 {
41210 return isnanf (x);
41211   ;
41212   return 0;
41213 }
41214 _ACEOF
41215 if ac_fn_c_try_link "$LINENO"; then :
41216   gl_cv_func_isnanf_in_libm=yes
41217 else
41218   gl_cv_func_isnanf_in_libm=no
41219 fi
41220 rm -f core conftest.err conftest.$ac_objext \
41221     conftest$ac_exeext conftest.$ac_ext
41222       LIBS="$save_LIBS"
41223
41224 fi
41225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5
41226 $as_echo "$gl_cv_func_isnanf_in_libm" >&6; }
41227
41228     if test $gl_cv_func_isnanf_in_libm = yes; then
41229       ISNANF_LIBM=-lm
41230     fi
41231   fi
41232     if test $gl_cv_func_isnanf_no_libm = yes \
41233      || test $gl_cv_func_isnanf_in_libm = yes; then
41234     save_LIBS="$LIBS"
41235     LIBS="$LIBS $ISNANF_LIBM"
41236
41237
41238
41239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
41240 $as_echo_n "checking whether isnan(float) works... " >&6; }
41241 if ${gl_cv_func_isnanf_works+:} false; then :
41242   $as_echo_n "(cached) " >&6
41243 else
41244
41245       if test "$cross_compiling" = yes; then :
41246   case "$host_os" in
41247            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
41248            *)                gl_cv_func_isnanf_works="guessing yes";;
41249          esac
41250
41251 else
41252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41253 /* end confdefs.h.  */
41254
41255 #include <math.h>
41256 #if __GNUC__ >= 4
41257 # undef isnanf
41258 # define isnanf(x) __builtin_isnanf ((float)(x))
41259 #elif defined isnan
41260 # undef isnanf
41261 # define isnanf(x) isnan ((float)(x))
41262 #endif
41263 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
41264 #ifdef __DECC
41265 static float
41266 NaN ()
41267 {
41268   static float zero = 0.0f;
41269   return zero / zero;
41270 }
41271 #else
41272 # define NaN() (0.0f / 0.0f)
41273 #endif
41274 #define NWORDS \
41275   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41276 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
41277 int main()
41278 {
41279   int result = 0;
41280
41281   if (isnanf (1.0f / 0.0f))
41282     result |= 1;
41283
41284   if (!isnanf (NaN ()))
41285     result |= 2;
41286
41287 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
41288   /* The isnanf function should be immune against changes in the sign bit and
41289      in the mantissa bits.  The xor operation twiddles a bit that can only be
41290      a sign bit or a mantissa bit.  */
41291   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
41292     {
41293       memory_float m;
41294
41295       m.value = NaN ();
41296       /* Set the bits below the exponent to 01111...111.  */
41297       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
41298       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
41299       if (!isnanf (m.value))
41300         result |= 4;
41301     }
41302 #endif
41303
41304   return result;
41305 }
41306 _ACEOF
41307 if ac_fn_c_try_run "$LINENO"; then :
41308   gl_cv_func_isnanf_works=yes
41309 else
41310   gl_cv_func_isnanf_works=no
41311 fi
41312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41313   conftest.$ac_objext conftest.beam conftest.$ac_ext
41314 fi
41315
41316
41317 fi
41318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
41319 $as_echo "$gl_cv_func_isnanf_works" >&6; }
41320
41321     LIBS="$save_LIBS"
41322     case "$gl_cv_func_isnanf_works" in
41323       *yes) gl_func_isnanf=yes ;;
41324       *)    gl_func_isnanf=no; ISNANF_LIBM= ;;
41325     esac
41326   else
41327     gl_func_isnanf=no
41328   fi
41329   if test $gl_func_isnanf != yes; then
41330     HAVE_ISNANF=0
41331   fi
41332
41333
41334
41335
41336
41337   if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
41338
41339
41340
41341
41342
41343
41344
41345
41346   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
41347
41348
41349
41350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
41351 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
41352 if ${gl_cv_cc_float_expbit0+:} false; then :
41353   $as_echo_n "(cached) " >&6
41354 else
41355
41356       if test "$cross_compiling" = yes; then :
41357   gl_cv_cc_float_expbit0="word 0 bit 23"
41358 else
41359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41360 /* end confdefs.h.  */
41361
41362 #include <float.h>
41363 #include <stddef.h>
41364 #include <stdio.h>
41365 #include <string.h>
41366 #define NWORDS \
41367   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41368 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
41369 static unsigned int ored_words[NWORDS];
41370 static unsigned int anded_words[NWORDS];
41371 static void add_to_ored_words (float x)
41372 {
41373   memory_float m;
41374   size_t i;
41375   /* Clear it first, in case
41376      sizeof (float) < sizeof (memory_float).  */
41377   memset (&m, 0, sizeof (memory_float));
41378   m.value = x;
41379   for (i = 0; i < NWORDS; i++)
41380     {
41381       ored_words[i] |= m.word[i];
41382       anded_words[i] &= m.word[i];
41383     }
41384 }
41385 int main ()
41386 {
41387   size_t j;
41388   FILE *fp = fopen ("conftest.out", "w");
41389   if (fp == NULL)
41390     return 1;
41391   for (j = 0; j < NWORDS; j++)
41392     anded_words[j] = ~ (unsigned int) 0;
41393   add_to_ored_words (0.25f);
41394   add_to_ored_words (0.5f);
41395   add_to_ored_words (1.0f);
41396   add_to_ored_words (2.0f);
41397   add_to_ored_words (4.0f);
41398   /* Remove bits that are common (e.g. if representation of the first mantissa
41399      bit is explicit).  */
41400   for (j = 0; j < NWORDS; j++)
41401     ored_words[j] &= ~anded_words[j];
41402   /* Now find the nonzero word.  */
41403   for (j = 0; j < NWORDS; j++)
41404     if (ored_words[j] != 0)
41405       break;
41406   if (j < NWORDS)
41407     {
41408       size_t i;
41409       for (i = j + 1; i < NWORDS; i++)
41410         if (ored_words[i] != 0)
41411           {
41412             fprintf (fp, "unknown");
41413             return (fclose (fp) != 0);
41414           }
41415       for (i = 0; ; i++)
41416         if ((ored_words[j] >> i) & 1)
41417           {
41418             fprintf (fp, "word %d bit %d", (int) j, (int) i);
41419             return (fclose (fp) != 0);
41420           }
41421     }
41422   fprintf (fp, "unknown");
41423   return (fclose (fp) != 0);
41424 }
41425
41426 _ACEOF
41427 if ac_fn_c_try_run "$LINENO"; then :
41428   gl_cv_cc_float_expbit0=`cat conftest.out`
41429 else
41430   gl_cv_cc_float_expbit0="unknown"
41431 fi
41432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41433   conftest.$ac_objext conftest.beam conftest.$ac_ext
41434 fi
41435
41436       rm -f conftest.out
41437
41438 fi
41439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
41440 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
41441   case "$gl_cv_cc_float_expbit0" in
41442     word*bit*)
41443       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
41444       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
41445
41446 cat >>confdefs.h <<_ACEOF
41447 #define FLT_EXPBIT0_WORD $word
41448 _ACEOF
41449
41450
41451 cat >>confdefs.h <<_ACEOF
41452 #define FLT_EXPBIT0_BIT $bit
41453 _ACEOF
41454
41455       ;;
41456   esac
41457
41458
41459   fi
41460
41461
41462
41463
41464
41465           GNULIB_ISNANF=1
41466
41467
41468
41469
41470
41471 $as_echo "#define GNULIB_TEST_ISNANF 1" >>confdefs.h
41472
41473
41474
41475
41476
41477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
41478 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
41479 if ${gl_cv_func_isnanf_no_libm+:} false; then :
41480   $as_echo_n "(cached) " >&6
41481 else
41482
41483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41484 /* end confdefs.h.  */
41485 #include <math.h>
41486              #if __GNUC__ >= 4
41487              # undef isnanf
41488              # define isnanf(x) __builtin_isnanf ((float)(x))
41489              #elif defined isnan
41490              # undef isnanf
41491              # define isnanf(x) isnan ((float)(x))
41492              #endif
41493              float x;
41494 int
41495 main ()
41496 {
41497 return isnanf (x);
41498   ;
41499   return 0;
41500 }
41501 _ACEOF
41502 if ac_fn_c_try_link "$LINENO"; then :
41503   gl_cv_func_isnanf_no_libm=yes
41504 else
41505   gl_cv_func_isnanf_no_libm=no
41506 fi
41507 rm -f core conftest.err conftest.$ac_objext \
41508     conftest$ac_exeext conftest.$ac_ext
41509
41510 fi
41511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
41512 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
41513
41514   if test $gl_cv_func_isnanf_no_libm = yes; then
41515
41516
41517
41518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
41519 $as_echo_n "checking whether isnan(float) works... " >&6; }
41520 if ${gl_cv_func_isnanf_works+:} false; then :
41521   $as_echo_n "(cached) " >&6
41522 else
41523
41524       if test "$cross_compiling" = yes; then :
41525   case "$host_os" in
41526            irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
41527            *)                gl_cv_func_isnanf_works="guessing yes";;
41528          esac
41529
41530 else
41531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41532 /* end confdefs.h.  */
41533
41534 #include <math.h>
41535 #if __GNUC__ >= 4
41536 # undef isnanf
41537 # define isnanf(x) __builtin_isnanf ((float)(x))
41538 #elif defined isnan
41539 # undef isnanf
41540 # define isnanf(x) isnan ((float)(x))
41541 #endif
41542 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
41543 #ifdef __DECC
41544 static float
41545 NaN ()
41546 {
41547   static float zero = 0.0f;
41548   return zero / zero;
41549 }
41550 #else
41551 # define NaN() (0.0f / 0.0f)
41552 #endif
41553 #define NWORDS \
41554   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41555 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
41556 int main()
41557 {
41558   int result = 0;
41559
41560   if (isnanf (1.0f / 0.0f))
41561     result |= 1;
41562
41563   if (!isnanf (NaN ()))
41564     result |= 2;
41565
41566 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
41567   /* The isnanf function should be immune against changes in the sign bit and
41568      in the mantissa bits.  The xor operation twiddles a bit that can only be
41569      a sign bit or a mantissa bit.  */
41570   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
41571     {
41572       memory_float m;
41573
41574       m.value = NaN ();
41575       /* Set the bits below the exponent to 01111...111.  */
41576       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
41577       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
41578       if (!isnanf (m.value))
41579         result |= 4;
41580     }
41581 #endif
41582
41583   return result;
41584 }
41585 _ACEOF
41586 if ac_fn_c_try_run "$LINENO"; then :
41587   gl_cv_func_isnanf_works=yes
41588 else
41589   gl_cv_func_isnanf_works=no
41590 fi
41591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41592   conftest.$ac_objext conftest.beam conftest.$ac_ext
41593 fi
41594
41595
41596 fi
41597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
41598 $as_echo "$gl_cv_func_isnanf_works" >&6; }
41599
41600   fi
41601   if test $gl_cv_func_isnanf_no_libm = yes \
41602      && { case "$gl_cv_func_isnanf_works" in
41603             *yes) true;;
41604             *) false;;
41605           esac
41606         }; then
41607     gl_func_isnanf_no_libm=yes
41608
41609 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
41610
41611   else
41612     gl_func_isnanf_no_libm=no
41613   fi
41614
41615   if test $gl_func_isnanf_no_libm != yes; then
41616
41617
41618
41619
41620
41621
41622
41623
41624   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
41625
41626
41627
41628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
41629 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
41630 if ${gl_cv_cc_float_expbit0+:} false; then :
41631   $as_echo_n "(cached) " >&6
41632 else
41633
41634       if test "$cross_compiling" = yes; then :
41635   gl_cv_cc_float_expbit0="word 0 bit 23"
41636 else
41637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41638 /* end confdefs.h.  */
41639
41640 #include <float.h>
41641 #include <stddef.h>
41642 #include <stdio.h>
41643 #include <string.h>
41644 #define NWORDS \
41645   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41646 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
41647 static unsigned int ored_words[NWORDS];
41648 static unsigned int anded_words[NWORDS];
41649 static void add_to_ored_words (float x)
41650 {
41651   memory_float m;
41652   size_t i;
41653   /* Clear it first, in case
41654      sizeof (float) < sizeof (memory_float).  */
41655   memset (&m, 0, sizeof (memory_float));
41656   m.value = x;
41657   for (i = 0; i < NWORDS; i++)
41658     {
41659       ored_words[i] |= m.word[i];
41660       anded_words[i] &= m.word[i];
41661     }
41662 }
41663 int main ()
41664 {
41665   size_t j;
41666   FILE *fp = fopen ("conftest.out", "w");
41667   if (fp == NULL)
41668     return 1;
41669   for (j = 0; j < NWORDS; j++)
41670     anded_words[j] = ~ (unsigned int) 0;
41671   add_to_ored_words (0.25f);
41672   add_to_ored_words (0.5f);
41673   add_to_ored_words (1.0f);
41674   add_to_ored_words (2.0f);
41675   add_to_ored_words (4.0f);
41676   /* Remove bits that are common (e.g. if representation of the first mantissa
41677      bit is explicit).  */
41678   for (j = 0; j < NWORDS; j++)
41679     ored_words[j] &= ~anded_words[j];
41680   /* Now find the nonzero word.  */
41681   for (j = 0; j < NWORDS; j++)
41682     if (ored_words[j] != 0)
41683       break;
41684   if (j < NWORDS)
41685     {
41686       size_t i;
41687       for (i = j + 1; i < NWORDS; i++)
41688         if (ored_words[i] != 0)
41689           {
41690             fprintf (fp, "unknown");
41691             return (fclose (fp) != 0);
41692           }
41693       for (i = 0; ; i++)
41694         if ((ored_words[j] >> i) & 1)
41695           {
41696             fprintf (fp, "word %d bit %d", (int) j, (int) i);
41697             return (fclose (fp) != 0);
41698           }
41699     }
41700   fprintf (fp, "unknown");
41701   return (fclose (fp) != 0);
41702 }
41703
41704 _ACEOF
41705 if ac_fn_c_try_run "$LINENO"; then :
41706   gl_cv_cc_float_expbit0=`cat conftest.out`
41707 else
41708   gl_cv_cc_float_expbit0="unknown"
41709 fi
41710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41711   conftest.$ac_objext conftest.beam conftest.$ac_ext
41712 fi
41713
41714       rm -f conftest.out
41715
41716 fi
41717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
41718 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
41719   case "$gl_cv_cc_float_expbit0" in
41720     word*bit*)
41721       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
41722       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
41723
41724 cat >>confdefs.h <<_ACEOF
41725 #define FLT_EXPBIT0_WORD $word
41726 _ACEOF
41727
41728
41729 cat >>confdefs.h <<_ACEOF
41730 #define FLT_EXPBIT0_BIT $bit
41731 _ACEOF
41732
41733       ;;
41734   esac
41735
41736
41737   fi
41738
41739
41740   ISNANL_LIBM=
41741
41742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
41743 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
41744 if ${gl_cv_func_isnanl_no_libm+:} false; then :
41745   $as_echo_n "(cached) " >&6
41746 else
41747
41748       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41749 /* end confdefs.h.  */
41750 #include <math.h>
41751              #if __GNUC__ >= 4
41752              # undef isnanl
41753              # define isnanl(x) __builtin_isnanl ((long double)(x))
41754              #elif defined isnan
41755              # undef isnanl
41756              # define isnanl(x) isnan ((long double)(x))
41757              #endif
41758              long double x;
41759 int
41760 main ()
41761 {
41762 return isnanl (x);
41763   ;
41764   return 0;
41765 }
41766 _ACEOF
41767 if ac_fn_c_try_link "$LINENO"; then :
41768   gl_cv_func_isnanl_no_libm=yes
41769 else
41770   gl_cv_func_isnanl_no_libm=no
41771 fi
41772 rm -f core conftest.err conftest.$ac_objext \
41773     conftest$ac_exeext conftest.$ac_ext
41774
41775 fi
41776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
41777 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
41778
41779   if test $gl_cv_func_isnanl_no_libm = no; then
41780
41781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5
41782 $as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; }
41783 if ${gl_cv_func_isnanl_in_libm+:} false; then :
41784   $as_echo_n "(cached) " >&6
41785 else
41786
41787       save_LIBS="$LIBS"
41788       LIBS="$LIBS -lm"
41789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41790 /* end confdefs.h.  */
41791 #include <math.h>
41792              #if __GNUC__ >= 4
41793              # undef isnanl
41794              # define isnanl(x) __builtin_isnanl ((long double)(x))
41795              #elif defined isnan
41796              # undef isnanl
41797              # define isnanl(x) isnan ((long double)(x))
41798              #endif
41799              long double x;
41800 int
41801 main ()
41802 {
41803 return isnanl (x);
41804   ;
41805   return 0;
41806 }
41807 _ACEOF
41808 if ac_fn_c_try_link "$LINENO"; then :
41809   gl_cv_func_isnanl_in_libm=yes
41810 else
41811   gl_cv_func_isnanl_in_libm=no
41812 fi
41813 rm -f core conftest.err conftest.$ac_objext \
41814     conftest$ac_exeext conftest.$ac_ext
41815       LIBS="$save_LIBS"
41816
41817 fi
41818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5
41819 $as_echo "$gl_cv_func_isnanl_in_libm" >&6; }
41820
41821     if test $gl_cv_func_isnanl_in_libm = yes; then
41822       ISNANL_LIBM=-lm
41823     fi
41824   fi
41825     if test $gl_cv_func_isnanl_no_libm = yes \
41826      || test $gl_cv_func_isnanl_in_libm = yes; then
41827     save_LIBS="$LIBS"
41828     LIBS="$LIBS $ISNANL_LIBM"
41829
41830
41831
41832
41833      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
41834 $as_echo_n "checking whether isnanl works... " >&6; }
41835 if ${gl_cv_func_isnanl_works+:} false; then :
41836   $as_echo_n "(cached) " >&6
41837 else
41838
41839       if test "$cross_compiling" = yes; then :
41840   gl_cv_func_isnanl_works="guessing yes"
41841 else
41842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41843 /* end confdefs.h.  */
41844
41845 #include <float.h>
41846 #include <limits.h>
41847 #include <math.h>
41848 #if __GNUC__ >= 4
41849 # undef isnanl
41850 # define isnanl(x) __builtin_isnanl ((long double)(x))
41851 #elif defined isnan
41852 # undef isnanl
41853 # define isnanl(x) isnan ((long double)(x))
41854 #endif
41855 #define NWORDS \
41856   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
41857 typedef union { unsigned int word[NWORDS]; long double value; }
41858         memory_long_double;
41859 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
41860    runtime type conversion.  */
41861 #ifdef __sgi
41862 static long double NaNl ()
41863 {
41864   double zero = 0.0;
41865   return zero / zero;
41866 }
41867 #else
41868 # define NaNl() (0.0L / 0.0L)
41869 #endif
41870 int main ()
41871 {
41872   int result = 0;
41873
41874   if (!isnanl (NaNl ()))
41875     result |= 1;
41876
41877   {
41878     memory_long_double m;
41879     unsigned int i;
41880
41881     /* The isnanl function should be immune against changes in the sign bit and
41882        in the mantissa bits.  The xor operation twiddles a bit that can only be
41883        a sign bit or a mantissa bit (since the exponent never extends to
41884        bit 31).  */
41885     m.value = NaNl ();
41886     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
41887     for (i = 0; i < NWORDS; i++)
41888       m.word[i] |= 1;
41889     if (!isnanl (m.value))
41890       result |= 1;
41891   }
41892
41893 #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
41894 /* Representation of an 80-bit 'long double' as an initializer for a sequence
41895    of 'unsigned int' words.  */
41896 # ifdef WORDS_BIGENDIAN
41897 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
41898      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
41899        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
41900        (unsigned int) (mantlo) << 16                                        \
41901      }
41902 # else
41903 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
41904      { mantlo, manthi, exponent }
41905 # endif
41906   { /* Quiet NaN.  */
41907     static memory_long_double x =
41908       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
41909     if (!isnanl (x.value))
41910       result |= 2;
41911   }
41912   {
41913     /* Signalling NaN.  */
41914     static memory_long_double x =
41915       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
41916     if (!isnanl (x.value))
41917       result |= 2;
41918   }
41919   /* isnanl should return something even for noncanonical values.  */
41920   { /* Pseudo-NaN.  */
41921     static memory_long_double x =
41922       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
41923     if (isnanl (x.value) && !isnanl (x.value))
41924       result |= 4;
41925   }
41926   { /* Pseudo-Infinity.  */
41927     static memory_long_double x =
41928       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
41929     if (isnanl (x.value) && !isnanl (x.value))
41930       result |= 8;
41931   }
41932   { /* Pseudo-Zero.  */
41933     static memory_long_double x =
41934       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
41935     if (isnanl (x.value) && !isnanl (x.value))
41936       result |= 16;
41937   }
41938   { /* Unnormalized number.  */
41939     static memory_long_double x =
41940       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
41941     if (isnanl (x.value) && !isnanl (x.value))
41942       result |= 32;
41943   }
41944   { /* Pseudo-Denormal.  */
41945     static memory_long_double x =
41946       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
41947     if (isnanl (x.value) && !isnanl (x.value))
41948       result |= 64;
41949   }
41950 #endif
41951
41952   return result;
41953 }
41954 _ACEOF
41955 if ac_fn_c_try_run "$LINENO"; then :
41956   gl_cv_func_isnanl_works=yes
41957 else
41958   gl_cv_func_isnanl_works=no
41959 fi
41960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41961   conftest.$ac_objext conftest.beam conftest.$ac_ext
41962 fi
41963
41964
41965 fi
41966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
41967 $as_echo "$gl_cv_func_isnanl_works" >&6; }
41968
41969     LIBS="$save_LIBS"
41970     case "$gl_cv_func_isnanl_works" in
41971       *yes) gl_func_isnanl=yes ;;
41972       *)    gl_func_isnanl=no; ISNANL_LIBM= ;;
41973     esac
41974   else
41975     gl_func_isnanl=no
41976   fi
41977   if test $gl_func_isnanl != yes; then
41978     HAVE_ISNANL=0
41979   fi
41980
41981
41982
41983
41984
41985   if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
41986
41987
41988
41989
41990
41991
41992
41993
41994   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
41995
41996
41997
41998
41999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
42000 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
42001 if ${gl_cv_cc_long_double_expbit0+:} false; then :
42002   $as_echo_n "(cached) " >&6
42003 else
42004
42005       if test "$cross_compiling" = yes; then :
42006
42007                               gl_cv_cc_long_double_expbit0="unknown"
42008
42009 else
42010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42011 /* end confdefs.h.  */
42012
42013 #include <float.h>
42014 #include <stddef.h>
42015 #include <stdio.h>
42016 #include <string.h>
42017 #define NWORDS \
42018   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42019 typedef union { long double value; unsigned int word[NWORDS]; }
42020         memory_long_double;
42021 static unsigned int ored_words[NWORDS];
42022 static unsigned int anded_words[NWORDS];
42023 static void add_to_ored_words (long double x)
42024 {
42025   memory_long_double m;
42026   size_t i;
42027   /* Clear it first, in case
42028      sizeof (long double) < sizeof (memory_long_double).  */
42029   memset (&m, 0, sizeof (memory_long_double));
42030   m.value = x;
42031   for (i = 0; i < NWORDS; i++)
42032     {
42033       ored_words[i] |= m.word[i];
42034       anded_words[i] &= m.word[i];
42035     }
42036 }
42037 int main ()
42038 {
42039   size_t j;
42040   FILE *fp = fopen ("conftest.out", "w");
42041   if (fp == NULL)
42042     return 1;
42043   for (j = 0; j < NWORDS; j++)
42044     anded_words[j] = ~ (unsigned int) 0;
42045   add_to_ored_words (0.25L);
42046   add_to_ored_words (0.5L);
42047   add_to_ored_words (1.0L);
42048   add_to_ored_words (2.0L);
42049   add_to_ored_words (4.0L);
42050   /* Remove bits that are common (e.g. if representation of the first mantissa
42051      bit is explicit).  */
42052   for (j = 0; j < NWORDS; j++)
42053     ored_words[j] &= ~anded_words[j];
42054   /* Now find the nonzero word.  */
42055   for (j = 0; j < NWORDS; j++)
42056     if (ored_words[j] != 0)
42057       break;
42058   if (j < NWORDS)
42059     {
42060       size_t i;
42061       for (i = j + 1; i < NWORDS; i++)
42062         if (ored_words[i] != 0)
42063           {
42064             fprintf (fp, "unknown");
42065             return (fclose (fp) != 0);
42066           }
42067       for (i = 0; ; i++)
42068         if ((ored_words[j] >> i) & 1)
42069           {
42070             fprintf (fp, "word %d bit %d", (int) j, (int) i);
42071             return (fclose (fp) != 0);
42072           }
42073     }
42074   fprintf (fp, "unknown");
42075   return (fclose (fp) != 0);
42076 }
42077
42078 _ACEOF
42079 if ac_fn_c_try_run "$LINENO"; then :
42080   gl_cv_cc_long_double_expbit0=`cat conftest.out`
42081 else
42082   gl_cv_cc_long_double_expbit0="unknown"
42083 fi
42084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42085   conftest.$ac_objext conftest.beam conftest.$ac_ext
42086 fi
42087
42088       rm -f conftest.out
42089
42090 fi
42091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
42092 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
42093   case "$gl_cv_cc_long_double_expbit0" in
42094     word*bit*)
42095       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
42096       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
42097
42098 cat >>confdefs.h <<_ACEOF
42099 #define LDBL_EXPBIT0_WORD $word
42100 _ACEOF
42101
42102
42103 cat >>confdefs.h <<_ACEOF
42104 #define LDBL_EXPBIT0_BIT $bit
42105 _ACEOF
42106
42107       ;;
42108   esac
42109
42110
42111
42112   fi
42113
42114
42115
42116
42117
42118           GNULIB_ISNANL=1
42119
42120
42121
42122
42123
42124 $as_echo "#define GNULIB_TEST_ISNANL 1" >>confdefs.h
42125
42126
42127
42128
42129
42130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
42131 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
42132 if ${gl_cv_func_isnanl_no_libm+:} false; then :
42133   $as_echo_n "(cached) " >&6
42134 else
42135
42136       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42137 /* end confdefs.h.  */
42138 #include <math.h>
42139              #if __GNUC__ >= 4
42140              # undef isnanl
42141              # define isnanl(x) __builtin_isnanl ((long double)(x))
42142              #elif defined isnan
42143              # undef isnanl
42144              # define isnanl(x) isnan ((long double)(x))
42145              #endif
42146              long double x;
42147 int
42148 main ()
42149 {
42150 return isnanl (x);
42151   ;
42152   return 0;
42153 }
42154 _ACEOF
42155 if ac_fn_c_try_link "$LINENO"; then :
42156   gl_cv_func_isnanl_no_libm=yes
42157 else
42158   gl_cv_func_isnanl_no_libm=no
42159 fi
42160 rm -f core conftest.err conftest.$ac_objext \
42161     conftest$ac_exeext conftest.$ac_ext
42162
42163 fi
42164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
42165 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
42166
42167   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
42168   if test $gl_func_isnanl_no_libm = yes; then
42169
42170
42171
42172
42173      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
42174 $as_echo_n "checking whether isnanl works... " >&6; }
42175 if ${gl_cv_func_isnanl_works+:} false; then :
42176   $as_echo_n "(cached) " >&6
42177 else
42178
42179       if test "$cross_compiling" = yes; then :
42180   gl_cv_func_isnanl_works="guessing yes"
42181 else
42182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42183 /* end confdefs.h.  */
42184
42185 #include <float.h>
42186 #include <limits.h>
42187 #include <math.h>
42188 #if __GNUC__ >= 4
42189 # undef isnanl
42190 # define isnanl(x) __builtin_isnanl ((long double)(x))
42191 #elif defined isnan
42192 # undef isnanl
42193 # define isnanl(x) isnan ((long double)(x))
42194 #endif
42195 #define NWORDS \
42196   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42197 typedef union { unsigned int word[NWORDS]; long double value; }
42198         memory_long_double;
42199 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
42200    runtime type conversion.  */
42201 #ifdef __sgi
42202 static long double NaNl ()
42203 {
42204   double zero = 0.0;
42205   return zero / zero;
42206 }
42207 #else
42208 # define NaNl() (0.0L / 0.0L)
42209 #endif
42210 int main ()
42211 {
42212   int result = 0;
42213
42214   if (!isnanl (NaNl ()))
42215     result |= 1;
42216
42217   {
42218     memory_long_double m;
42219     unsigned int i;
42220
42221     /* The isnanl function should be immune against changes in the sign bit and
42222        in the mantissa bits.  The xor operation twiddles a bit that can only be
42223        a sign bit or a mantissa bit (since the exponent never extends to
42224        bit 31).  */
42225     m.value = NaNl ();
42226     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
42227     for (i = 0; i < NWORDS; i++)
42228       m.word[i] |= 1;
42229     if (!isnanl (m.value))
42230       result |= 1;
42231   }
42232
42233 #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
42234 /* Representation of an 80-bit 'long double' as an initializer for a sequence
42235    of 'unsigned int' words.  */
42236 # ifdef WORDS_BIGENDIAN
42237 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
42238      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
42239        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
42240        (unsigned int) (mantlo) << 16                                        \
42241      }
42242 # else
42243 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
42244      { mantlo, manthi, exponent }
42245 # endif
42246   { /* Quiet NaN.  */
42247     static memory_long_double x =
42248       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
42249     if (!isnanl (x.value))
42250       result |= 2;
42251   }
42252   {
42253     /* Signalling NaN.  */
42254     static memory_long_double x =
42255       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
42256     if (!isnanl (x.value))
42257       result |= 2;
42258   }
42259   /* isnanl should return something even for noncanonical values.  */
42260   { /* Pseudo-NaN.  */
42261     static memory_long_double x =
42262       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
42263     if (isnanl (x.value) && !isnanl (x.value))
42264       result |= 4;
42265   }
42266   { /* Pseudo-Infinity.  */
42267     static memory_long_double x =
42268       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
42269     if (isnanl (x.value) && !isnanl (x.value))
42270       result |= 8;
42271   }
42272   { /* Pseudo-Zero.  */
42273     static memory_long_double x =
42274       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
42275     if (isnanl (x.value) && !isnanl (x.value))
42276       result |= 16;
42277   }
42278   { /* Unnormalized number.  */
42279     static memory_long_double x =
42280       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
42281     if (isnanl (x.value) && !isnanl (x.value))
42282       result |= 32;
42283   }
42284   { /* Pseudo-Denormal.  */
42285     static memory_long_double x =
42286       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
42287     if (isnanl (x.value) && !isnanl (x.value))
42288       result |= 64;
42289   }
42290 #endif
42291
42292   return result;
42293 }
42294 _ACEOF
42295 if ac_fn_c_try_run "$LINENO"; then :
42296   gl_cv_func_isnanl_works=yes
42297 else
42298   gl_cv_func_isnanl_works=no
42299 fi
42300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42301   conftest.$ac_objext conftest.beam conftest.$ac_ext
42302 fi
42303
42304
42305 fi
42306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
42307 $as_echo "$gl_cv_func_isnanl_works" >&6; }
42308
42309     case "$gl_cv_func_isnanl_works" in
42310       *yes) ;;
42311       *)    gl_func_isnanl_no_libm=no ;;
42312     esac
42313   fi
42314   if test $gl_func_isnanl_no_libm = yes; then
42315
42316 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
42317
42318   fi
42319
42320   if test $gl_func_isnanl_no_libm != yes; then
42321
42322
42323
42324
42325
42326
42327
42328
42329   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
42330
42331
42332
42333
42334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
42335 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
42336 if ${gl_cv_cc_long_double_expbit0+:} false; then :
42337   $as_echo_n "(cached) " >&6
42338 else
42339
42340       if test "$cross_compiling" = yes; then :
42341
42342                               gl_cv_cc_long_double_expbit0="unknown"
42343
42344 else
42345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42346 /* end confdefs.h.  */
42347
42348 #include <float.h>
42349 #include <stddef.h>
42350 #include <stdio.h>
42351 #include <string.h>
42352 #define NWORDS \
42353   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
42354 typedef union { long double value; unsigned int word[NWORDS]; }
42355         memory_long_double;
42356 static unsigned int ored_words[NWORDS];
42357 static unsigned int anded_words[NWORDS];
42358 static void add_to_ored_words (long double x)
42359 {
42360   memory_long_double m;
42361   size_t i;
42362   /* Clear it first, in case
42363      sizeof (long double) < sizeof (memory_long_double).  */
42364   memset (&m, 0, sizeof (memory_long_double));
42365   m.value = x;
42366   for (i = 0; i < NWORDS; i++)
42367     {
42368       ored_words[i] |= m.word[i];
42369       anded_words[i] &= m.word[i];
42370     }
42371 }
42372 int main ()
42373 {
42374   size_t j;
42375   FILE *fp = fopen ("conftest.out", "w");
42376   if (fp == NULL)
42377     return 1;
42378   for (j = 0; j < NWORDS; j++)
42379     anded_words[j] = ~ (unsigned int) 0;
42380   add_to_ored_words (0.25L);
42381   add_to_ored_words (0.5L);
42382   add_to_ored_words (1.0L);
42383   add_to_ored_words (2.0L);
42384   add_to_ored_words (4.0L);
42385   /* Remove bits that are common (e.g. if representation of the first mantissa
42386      bit is explicit).  */
42387   for (j = 0; j < NWORDS; j++)
42388     ored_words[j] &= ~anded_words[j];
42389   /* Now find the nonzero word.  */
42390   for (j = 0; j < NWORDS; j++)
42391     if (ored_words[j] != 0)
42392       break;
42393   if (j < NWORDS)
42394     {
42395       size_t i;
42396       for (i = j + 1; i < NWORDS; i++)
42397         if (ored_words[i] != 0)
42398           {
42399             fprintf (fp, "unknown");
42400             return (fclose (fp) != 0);
42401           }
42402       for (i = 0; ; i++)
42403         if ((ored_words[j] >> i) & 1)
42404           {
42405             fprintf (fp, "word %d bit %d", (int) j, (int) i);
42406             return (fclose (fp) != 0);
42407           }
42408     }
42409   fprintf (fp, "unknown");
42410   return (fclose (fp) != 0);
42411 }
42412
42413 _ACEOF
42414 if ac_fn_c_try_run "$LINENO"; then :
42415   gl_cv_cc_long_double_expbit0=`cat conftest.out`
42416 else
42417   gl_cv_cc_long_double_expbit0="unknown"
42418 fi
42419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42420   conftest.$ac_objext conftest.beam conftest.$ac_ext
42421 fi
42422
42423       rm -f conftest.out
42424
42425 fi
42426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
42427 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
42428   case "$gl_cv_cc_long_double_expbit0" in
42429     word*bit*)
42430       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
42431       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
42432
42433 cat >>confdefs.h <<_ACEOF
42434 #define LDBL_EXPBIT0_WORD $word
42435 _ACEOF
42436
42437
42438 cat >>confdefs.h <<_ACEOF
42439 #define LDBL_EXPBIT0_BIT $bit
42440 _ACEOF
42441
42442       ;;
42443   esac
42444
42445
42446
42447   fi
42448
42449
42450
42451
42452
42453   ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
42454 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
42455    <wchar.h>.
42456    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
42457    before <wchar.h>.  */
42458 #include <stddef.h>
42459 #include <stdio.h>
42460 #include <time.h>
42461 #include <wchar.h>
42462 #include <wctype.h>
42463
42464 "
42465 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
42466   ac_have_decl=1
42467 else
42468   ac_have_decl=0
42469 fi
42470
42471 cat >>confdefs.h <<_ACEOF
42472 #define HAVE_DECL_ISWBLANK $ac_have_decl
42473 _ACEOF
42474
42475   if test $ac_cv_func_iswblank = no; then
42476     HAVE_ISWBLANK=0
42477     if test $ac_cv_have_decl_iswblank = yes; then
42478       REPLACE_ISWBLANK=1
42479     fi
42480   fi
42481   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42482         :
42483   else
42484     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
42485             :
42486     fi
42487   fi
42488
42489
42490   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
42491     :
42492   else
42493     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
42494
42495
42496
42497
42498
42499
42500
42501
42502   gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
42503
42504     fi
42505   fi
42506
42507
42508
42509
42510
42511           GNULIB_ISWBLANK=1
42512
42513
42514
42515
42516
42517 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
42518
42519
42520
42521
42522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
42523 $as_echo_n "checking whether to use Java... " >&6; }
42524   # Check whether --enable-java was given.
42525 if test "${enable_java+set}" = set; then :
42526   enableval=$enable_java; JAVA_CHOICE="$enableval"
42527 else
42528   JAVA_CHOICE=yes
42529 fi
42530
42531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
42532 $as_echo "$JAVA_CHOICE" >&6; }
42533   if test "$JAVA_CHOICE" = yes; then
42534     # Check whether --enable-native-java was given.
42535 if test "${enable_native_java+set}" = set; then :
42536   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
42537 fi
42538
42539   fi
42540
42541
42542   # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
42543   ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
42544
42545   # You need to invoke gt_JAVAEXEC yourself, possibly with arguments.
42546   ac_config_files="$ac_config_files javaexec.sh:../build-aux/javaexec.sh.in"
42547
42548
42549
42550
42551
42552
42553
42554
42555
42556
42557
42558
42559
42560
42561
42562      if test $gl_cv_have_include_next = yes; then
42563        gl_cv_next_langinfo_h='<'langinfo.h'>'
42564      else
42565        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
42566 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
42567 if ${gl_cv_next_langinfo_h+:} false; then :
42568   $as_echo_n "(cached) " >&6
42569 else
42570
42571              if test $ac_cv_header_langinfo_h = yes; then
42572
42573
42574
42575
42576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42577 /* end confdefs.h.  */
42578 #include <langinfo.h>
42579 _ACEOF
42580                 case "$host_os" in
42581     aix*) gl_absname_cpp="$ac_cpp -C" ;;
42582     *)    gl_absname_cpp="$ac_cpp" ;;
42583   esac
42584
42585   case "$host_os" in
42586     mingw*)
42587                                           gl_dirsep_regex='[/\\]'
42588       ;;
42589     *)
42590       gl_dirsep_regex='\/'
42591       ;;
42592   esac
42593       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42594   gl_header_literal_regex=`echo 'langinfo.h' \
42595                            | sed -e "$gl_make_literal_regex_sed"`
42596   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42597       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42598       s|^/[^/]|//&|
42599       p
42600       q
42601     }'
42602
42603         gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42604   sed -n "$gl_absolute_header_sed"`
42605
42606            gl_header=$gl_cv_absolute_langinfo_h
42607            gl_cv_next_langinfo_h='"'$gl_header'"'
42608           else
42609                gl_cv_next_langinfo_h='<'langinfo.h'>'
42610              fi
42611
42612
42613 fi
42614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
42615 $as_echo "$gl_cv_next_langinfo_h" >&6; }
42616      fi
42617      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
42618
42619      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42620        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42621        gl_next_as_first_directive='<'langinfo.h'>'
42622      else
42623        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42624        gl_next_as_first_directive=$gl_cv_next_langinfo_h
42625      fi
42626      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
42627
42628
42629
42630
42631
42632     HAVE_LANGINFO_CODESET=0
42633   HAVE_LANGINFO_T_FMT_AMPM=0
42634   HAVE_LANGINFO_ERA=0
42635   HAVE_LANGINFO_YESEXPR=0
42636
42637   if test $ac_cv_header_langinfo_h = yes; then
42638     HAVE_LANGINFO_H=1
42639             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
42640 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
42641 if ${gl_cv_header_langinfo_codeset+:} false; then :
42642   $as_echo_n "(cached) " >&6
42643 else
42644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42645 /* end confdefs.h.  */
42646 #include <langinfo.h>
42647 int a = CODESET;
42648
42649 int
42650 main ()
42651 {
42652
42653   ;
42654   return 0;
42655 }
42656 _ACEOF
42657 if ac_fn_c_try_compile "$LINENO"; then :
42658   gl_cv_header_langinfo_codeset=yes
42659 else
42660   gl_cv_header_langinfo_codeset=no
42661 fi
42662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42663
42664 fi
42665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
42666 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
42667     if test $gl_cv_header_langinfo_codeset = yes; then
42668       HAVE_LANGINFO_CODESET=1
42669     fi
42670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
42671 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
42672 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
42673   $as_echo_n "(cached) " >&6
42674 else
42675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42676 /* end confdefs.h.  */
42677 #include <langinfo.h>
42678 int a = T_FMT_AMPM;
42679
42680 int
42681 main ()
42682 {
42683
42684   ;
42685   return 0;
42686 }
42687 _ACEOF
42688 if ac_fn_c_try_compile "$LINENO"; then :
42689   gl_cv_header_langinfo_t_fmt_ampm=yes
42690 else
42691   gl_cv_header_langinfo_t_fmt_ampm=no
42692 fi
42693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42694
42695 fi
42696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
42697 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
42698     if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
42699       HAVE_LANGINFO_T_FMT_AMPM=1
42700     fi
42701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
42702 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
42703 if ${gl_cv_header_langinfo_era+:} false; then :
42704   $as_echo_n "(cached) " >&6
42705 else
42706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42707 /* end confdefs.h.  */
42708 #include <langinfo.h>
42709 int a = ERA;
42710
42711 int
42712 main ()
42713 {
42714
42715   ;
42716   return 0;
42717 }
42718 _ACEOF
42719 if ac_fn_c_try_compile "$LINENO"; then :
42720   gl_cv_header_langinfo_era=yes
42721 else
42722   gl_cv_header_langinfo_era=no
42723 fi
42724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42725
42726 fi
42727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
42728 $as_echo "$gl_cv_header_langinfo_era" >&6; }
42729     if test $gl_cv_header_langinfo_era = yes; then
42730       HAVE_LANGINFO_ERA=1
42731     fi
42732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
42733 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
42734 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
42735   $as_echo_n "(cached) " >&6
42736 else
42737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42738 /* end confdefs.h.  */
42739 #include <langinfo.h>
42740 int a = YESEXPR;
42741
42742 int
42743 main ()
42744 {
42745
42746   ;
42747   return 0;
42748 }
42749 _ACEOF
42750 if ac_fn_c_try_compile "$LINENO"; then :
42751   gl_cv_header_langinfo_yesexpr=yes
42752 else
42753   gl_cv_header_langinfo_yesexpr=no
42754 fi
42755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42756
42757 fi
42758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
42759 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
42760     if test $gl_cv_header_langinfo_yesexpr = yes; then
42761       HAVE_LANGINFO_YESEXPR=1
42762     fi
42763   else
42764     HAVE_LANGINFO_H=0
42765   fi
42766
42767
42768
42769
42770
42771
42772
42773     for gl_func in nl_langinfo; do
42774     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
42775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
42776 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
42777 if eval \${$as_gl_Symbol+:} false; then :
42778   $as_echo_n "(cached) " >&6
42779 else
42780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42781 /* end confdefs.h.  */
42782 #include <langinfo.h>
42783
42784 int
42785 main ()
42786 {
42787 #undef $gl_func
42788   (void) $gl_func;
42789   ;
42790   return 0;
42791 }
42792 _ACEOF
42793 if ac_fn_c_try_compile "$LINENO"; then :
42794   eval "$as_gl_Symbol=yes"
42795 else
42796   eval "$as_gl_Symbol=no"
42797 fi
42798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42799 fi
42800 eval ac_res=\$$as_gl_Symbol
42801                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42802 $as_echo "$ac_res" >&6; }
42803     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
42804   cat >>confdefs.h <<_ACEOF
42805 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
42806 _ACEOF
42807
42808                      eval ac_cv_have_decl_$gl_func=yes
42809 fi
42810       done
42811
42812
42813
42814
42815
42816
42817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libcroco is requested" >&5
42818 $as_echo_n "checking whether included libcroco is requested... " >&6; }
42819
42820 # Check whether --with-included-libcroco was given.
42821 if test "${with_included_libcroco+set}" = set; then :
42822   withval=$with_included_libcroco; gl_cv_libcroco_force_included=$withval
42823 else
42824   gl_cv_libcroco_force_included=no
42825 fi
42826
42827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_force_included" >&5
42828 $as_echo "$gl_cv_libcroco_force_included" >&6; }
42829
42830   gl_cv_libcroco_use_included="$gl_cv_libcroco_force_included"
42831   LIBCROCO=
42832   LTLIBCROCO=
42833   INCCROCO=
42834   if test "$gl_cv_libcroco_use_included" != yes; then
42835             if ${gl_cv_libcroco+:} false; then :
42836   $as_echo_n "(cached) " >&6
42837 else
42838
42839       gl_cv_libcroco=no
42840       gl_cv_LIBCROCO=
42841       gl_cv_LTLIBCROCO=
42842       gl_cv_INCCROCO=
42843       gl_save_LIBS="$LIBS"
42844
42845
42846
42847
42848
42849
42850
42851     use_additional=yes
42852
42853   acl_save_prefix="$prefix"
42854   prefix="$acl_final_prefix"
42855   acl_save_exec_prefix="$exec_prefix"
42856   exec_prefix="$acl_final_exec_prefix"
42857
42858     eval additional_includedir=\"$includedir\"
42859     eval additional_libdir=\"$libdir\"
42860
42861   exec_prefix="$acl_save_exec_prefix"
42862   prefix="$acl_save_prefix"
42863
42864
42865 # Check whether --with-libcroco-0.6-prefix was given.
42866 if test "${with_libcroco_0_6_prefix+set}" = set; then :
42867   withval=$with_libcroco_0_6_prefix;
42868     if test "X$withval" = "Xno"; then
42869       use_additional=no
42870     else
42871       if test "X$withval" = "X"; then
42872
42873   acl_save_prefix="$prefix"
42874   prefix="$acl_final_prefix"
42875   acl_save_exec_prefix="$exec_prefix"
42876   exec_prefix="$acl_final_exec_prefix"
42877
42878           eval additional_includedir=\"$includedir\"
42879           eval additional_libdir=\"$libdir\"
42880
42881   exec_prefix="$acl_save_exec_prefix"
42882   prefix="$acl_save_prefix"
42883
42884       else
42885         additional_includedir="$withval/include"
42886         additional_libdir="$withval/$acl_libdirstem"
42887         if test "$acl_libdirstem2" != "$acl_libdirstem" \
42888            && ! test -d "$withval/$acl_libdirstem"; then
42889           additional_libdir="$withval/$acl_libdirstem2"
42890         fi
42891       fi
42892     fi
42893
42894 fi
42895
42896       LIBCROCO_0_6=
42897   LTLIBCROCO_0_6=
42898   INCCROCO_0_6=
42899   LIBCROCO_0_6_PREFIX=
42900       HAVE_LIBCROCO_0_6=
42901   rpathdirs=
42902   ltrpathdirs=
42903   names_already_handled=
42904   names_next_round='croco-0.6 glib-2.0'
42905   while test -n "$names_next_round"; do
42906     names_this_round="$names_next_round"
42907     names_next_round=
42908     for name in $names_this_round; do
42909       already_handled=
42910       for n in $names_already_handled; do
42911         if test "$n" = "$name"; then
42912           already_handled=yes
42913           break
42914         fi
42915       done
42916       if test -z "$already_handled"; then
42917         names_already_handled="$names_already_handled $name"
42918                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
42919         eval value=\"\$HAVE_LIB$uppername\"
42920         if test -n "$value"; then
42921           if test "$value" = yes; then
42922             eval value=\"\$LIB$uppername\"
42923             test -z "$value" || LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$value"
42924             eval value=\"\$LTLIB$uppername\"
42925             test -z "$value" || LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$value"
42926           else
42927                                     :
42928           fi
42929         else
42930                               found_dir=
42931           found_la=
42932           found_so=
42933           found_a=
42934           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
42935           if test -n "$acl_shlibext"; then
42936             shrext=".$acl_shlibext"             # typically: shrext=.so
42937           else
42938             shrext=
42939           fi
42940           if test $use_additional = yes; then
42941             dir="$additional_libdir"
42942                                     if test -n "$acl_shlibext"; then
42943               if test -f "$dir/$libname$shrext"; then
42944                 found_dir="$dir"
42945                 found_so="$dir/$libname$shrext"
42946               else
42947                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
42948                   ver=`(cd "$dir" && \
42949                         for f in "$libname$shrext".*; do echo "$f"; done \
42950                         | sed -e "s,^$libname$shrext\\\\.,," \
42951                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
42952                         | sed 1q ) 2>/dev/null`
42953                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
42954                     found_dir="$dir"
42955                     found_so="$dir/$libname$shrext.$ver"
42956                   fi
42957                 else
42958                   eval library_names=\"$acl_library_names_spec\"
42959                   for f in $library_names; do
42960                     if test -f "$dir/$f"; then
42961                       found_dir="$dir"
42962                       found_so="$dir/$f"
42963                       break
42964                     fi
42965                   done
42966                 fi
42967               fi
42968             fi
42969                         if test "X$found_dir" = "X"; then
42970               if test -f "$dir/$libname.$acl_libext"; then
42971                 found_dir="$dir"
42972                 found_a="$dir/$libname.$acl_libext"
42973               fi
42974             fi
42975             if test "X$found_dir" != "X"; then
42976               if test -f "$dir/$libname.la"; then
42977                 found_la="$dir/$libname.la"
42978               fi
42979             fi
42980           fi
42981           if test "X$found_dir" = "X"; then
42982             for x in $LDFLAGS $LTLIBCROCO_0_6; do
42983
42984   acl_save_prefix="$prefix"
42985   prefix="$acl_final_prefix"
42986   acl_save_exec_prefix="$exec_prefix"
42987   exec_prefix="$acl_final_exec_prefix"
42988   eval x=\"$x\"
42989   exec_prefix="$acl_save_exec_prefix"
42990   prefix="$acl_save_prefix"
42991
42992               case "$x" in
42993                 -L*)
42994                   dir=`echo "X$x" | sed -e 's/^X-L//'`
42995                                     if test -n "$acl_shlibext"; then
42996                     if test -f "$dir/$libname$shrext"; then
42997                       found_dir="$dir"
42998                       found_so="$dir/$libname$shrext"
42999                     else
43000                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
43001                         ver=`(cd "$dir" && \
43002                               for f in "$libname$shrext".*; do echo "$f"; done \
43003                               | sed -e "s,^$libname$shrext\\\\.,," \
43004                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
43005                               | sed 1q ) 2>/dev/null`
43006                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
43007                           found_dir="$dir"
43008                           found_so="$dir/$libname$shrext.$ver"
43009                         fi
43010                       else
43011                         eval library_names=\"$acl_library_names_spec\"
43012                         for f in $library_names; do
43013                           if test -f "$dir/$f"; then
43014                             found_dir="$dir"
43015                             found_so="$dir/$f"
43016                             break
43017                           fi
43018                         done
43019                       fi
43020                     fi
43021                   fi
43022                                     if test "X$found_dir" = "X"; then
43023                     if test -f "$dir/$libname.$acl_libext"; then
43024                       found_dir="$dir"
43025                       found_a="$dir/$libname.$acl_libext"
43026                     fi
43027                   fi
43028                   if test "X$found_dir" != "X"; then
43029                     if test -f "$dir/$libname.la"; then
43030                       found_la="$dir/$libname.la"
43031                     fi
43032                   fi
43033                   ;;
43034               esac
43035               if test "X$found_dir" != "X"; then
43036                 break
43037               fi
43038             done
43039           fi
43040           if test "X$found_dir" != "X"; then
43041                         LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$found_dir -l$name"
43042             if test "X$found_so" != "X"; then
43043                                                         if test "$enable_rpath" = no \
43044                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
43045                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
43046                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
43047               else
43048                                                                                 haveit=
43049                 for x in $ltrpathdirs; do
43050                   if test "X$x" = "X$found_dir"; then
43051                     haveit=yes
43052                     break
43053                   fi
43054                 done
43055                 if test -z "$haveit"; then
43056                   ltrpathdirs="$ltrpathdirs $found_dir"
43057                 fi
43058                                 if test "$acl_hardcode_direct" = yes; then
43059                                                       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
43060                 else
43061                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
43062                                                             LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
43063                                                             haveit=
43064                     for x in $rpathdirs; do
43065                       if test "X$x" = "X$found_dir"; then
43066                         haveit=yes
43067                         break
43068                       fi
43069                     done
43070                     if test -z "$haveit"; then
43071                       rpathdirs="$rpathdirs $found_dir"
43072                     fi
43073                   else
43074                                                                                 haveit=
43075                     for x in $LDFLAGS $LIBCROCO_0_6; do
43076
43077   acl_save_prefix="$prefix"
43078   prefix="$acl_final_prefix"
43079   acl_save_exec_prefix="$exec_prefix"
43080   exec_prefix="$acl_final_exec_prefix"
43081   eval x=\"$x\"
43082   exec_prefix="$acl_save_exec_prefix"
43083   prefix="$acl_save_prefix"
43084
43085                       if test "X$x" = "X-L$found_dir"; then
43086                         haveit=yes
43087                         break
43088                       fi
43089                     done
43090                     if test -z "$haveit"; then
43091                       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir"
43092                     fi
43093                     if test "$acl_hardcode_minus_L" != no; then
43094                                                                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
43095                     else
43096                                                                                                                                                                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
43097                     fi
43098                   fi
43099                 fi
43100               fi
43101             else
43102               if test "X$found_a" != "X"; then
43103                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_a"
43104               else
43105                                                 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir -l$name"
43106               fi
43107             fi
43108                         additional_includedir=
43109             case "$found_dir" in
43110               */$acl_libdirstem | */$acl_libdirstem/)
43111                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
43112                 if test "$name" = 'croco-0.6'; then
43113                   LIBCROCO_0_6_PREFIX="$basedir"
43114                 fi
43115                 additional_includedir="$basedir/include"
43116                 ;;
43117               */$acl_libdirstem2 | */$acl_libdirstem2/)
43118                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
43119                 if test "$name" = 'croco-0.6'; then
43120                   LIBCROCO_0_6_PREFIX="$basedir"
43121                 fi
43122                 additional_includedir="$basedir/include"
43123                 ;;
43124             esac
43125             if test "X$additional_includedir" != "X"; then
43126                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
43127                 haveit=
43128                 if test "X$additional_includedir" = "X/usr/local/include"; then
43129                   if test -n "$GCC"; then
43130                     case $host_os in
43131                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
43132                     esac
43133                   fi
43134                 fi
43135                 if test -z "$haveit"; then
43136                   for x in $CPPFLAGS $INCCROCO_0_6; do
43137
43138   acl_save_prefix="$prefix"
43139   prefix="$acl_final_prefix"
43140   acl_save_exec_prefix="$exec_prefix"
43141   exec_prefix="$acl_final_exec_prefix"
43142   eval x=\"$x\"
43143   exec_prefix="$acl_save_exec_prefix"
43144   prefix="$acl_save_prefix"
43145
43146                     if test "X$x" = "X-I$additional_includedir"; then
43147                       haveit=yes
43148                       break
43149                     fi
43150                   done
43151                   if test -z "$haveit"; then
43152                     if test -d "$additional_includedir"; then
43153                                             INCCROCO_0_6="${INCCROCO_0_6}${INCCROCO_0_6:+ }-I$additional_includedir"
43154                     fi
43155                   fi
43156                 fi
43157               fi
43158             fi
43159                         if test -n "$found_la"; then
43160                                                         save_libdir="$libdir"
43161               case "$found_la" in
43162                 */* | *\\*) . "$found_la" ;;
43163                 *) . "./$found_la" ;;
43164               esac
43165               libdir="$save_libdir"
43166                             for dep in $dependency_libs; do
43167                 case "$dep" in
43168                   -L*)
43169                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
43170                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
43171                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
43172                       haveit=
43173                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
43174                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
43175                         if test -n "$GCC"; then
43176                           case $host_os in
43177                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
43178                           esac
43179                         fi
43180                       fi
43181                       if test -z "$haveit"; then
43182                         haveit=
43183                         for x in $LDFLAGS $LIBCROCO_0_6; do
43184
43185   acl_save_prefix="$prefix"
43186   prefix="$acl_final_prefix"
43187   acl_save_exec_prefix="$exec_prefix"
43188   exec_prefix="$acl_final_exec_prefix"
43189   eval x=\"$x\"
43190   exec_prefix="$acl_save_exec_prefix"
43191   prefix="$acl_save_prefix"
43192
43193                           if test "X$x" = "X-L$additional_libdir"; then
43194                             haveit=yes
43195                             break
43196                           fi
43197                         done
43198                         if test -z "$haveit"; then
43199                           if test -d "$additional_libdir"; then
43200                                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$additional_libdir"
43201                           fi
43202                         fi
43203                         haveit=
43204                         for x in $LDFLAGS $LTLIBCROCO_0_6; do
43205
43206   acl_save_prefix="$prefix"
43207   prefix="$acl_final_prefix"
43208   acl_save_exec_prefix="$exec_prefix"
43209   exec_prefix="$acl_final_exec_prefix"
43210   eval x=\"$x\"
43211   exec_prefix="$acl_save_exec_prefix"
43212   prefix="$acl_save_prefix"
43213
43214                           if test "X$x" = "X-L$additional_libdir"; then
43215                             haveit=yes
43216                             break
43217                           fi
43218                         done
43219                         if test -z "$haveit"; then
43220                           if test -d "$additional_libdir"; then
43221                                                         LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$additional_libdir"
43222                           fi
43223                         fi
43224                       fi
43225                     fi
43226                     ;;
43227                   -R*)
43228                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
43229                     if test "$enable_rpath" != no; then
43230                                                                   haveit=
43231                       for x in $rpathdirs; do
43232                         if test "X$x" = "X$dir"; then
43233                           haveit=yes
43234                           break
43235                         fi
43236                       done
43237                       if test -z "$haveit"; then
43238                         rpathdirs="$rpathdirs $dir"
43239                       fi
43240                                                                   haveit=
43241                       for x in $ltrpathdirs; do
43242                         if test "X$x" = "X$dir"; then
43243                           haveit=yes
43244                           break
43245                         fi
43246                       done
43247                       if test -z "$haveit"; then
43248                         ltrpathdirs="$ltrpathdirs $dir"
43249                       fi
43250                     fi
43251                     ;;
43252                   -l*)
43253                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
43254                     ;;
43255                   *.la)
43256                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
43257                     ;;
43258                   *)
43259                                         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$dep"
43260                     LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$dep"
43261                     ;;
43262                 esac
43263               done
43264             fi
43265           else
43266                                                             LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
43267             LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-l$name"
43268           fi
43269         fi
43270       fi
43271     done
43272   done
43273   if test "X$rpathdirs" != "X"; then
43274     if test -n "$acl_hardcode_libdir_separator"; then
43275                         alldirs=
43276       for found_dir in $rpathdirs; do
43277         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
43278       done
43279             acl_save_libdir="$libdir"
43280       libdir="$alldirs"
43281       eval flag=\"$acl_hardcode_libdir_flag_spec\"
43282       libdir="$acl_save_libdir"
43283       LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
43284     else
43285             for found_dir in $rpathdirs; do
43286         acl_save_libdir="$libdir"
43287         libdir="$found_dir"
43288         eval flag=\"$acl_hardcode_libdir_flag_spec\"
43289         libdir="$acl_save_libdir"
43290         LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
43291       done
43292     fi
43293   fi
43294   if test "X$ltrpathdirs" != "X"; then
43295             for found_dir in $ltrpathdirs; do
43296       LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-R$found_dir"
43297     done
43298   fi
43299
43300
43301
43302
43303
43304
43305       LIBS="$gl_save_LIBS $LIBCROCO_0_6"
43306       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43307 /* end confdefs.h.  */
43308 #include <libcroco-config.h>
43309 int
43310 main ()
43311 {
43312 const char *version = LIBCROCO_VERSION; return !version;
43313   ;
43314   return 0;
43315 }
43316 _ACEOF
43317 if ac_fn_c_try_link "$LINENO"; then :
43318   gl_cv_libcroco=yes
43319          gl_cv_LIBCROCO="$LIBCROCO_0_6"
43320          gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
43321
43322 fi
43323 rm -f core conftest.err conftest.$ac_objext \
43324     conftest$ac_exeext conftest.$ac_ext
43325       if test "$gl_cv_libcroco" != yes; then
43326         gl_save_CPPFLAGS="$CPPFLAGS"
43327         CPPFLAGS="$CPPFLAGS $INCCROCO_0_6"
43328         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43329 /* end confdefs.h.  */
43330 #include <libcroco-config.h>
43331 int
43332 main ()
43333 {
43334 const char *version = LIBCROCO_VERSION; return !version;
43335   ;
43336   return 0;
43337 }
43338 _ACEOF
43339 if ac_fn_c_try_link "$LINENO"; then :
43340   gl_cv_libcroco=yes
43341            gl_cv_LIBCROCO="$LIBCROCO_0_6"
43342            gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
43343            gl_cv_INCCROCO="$INCCROCO_0_6"
43344
43345 fi
43346 rm -f core conftest.err conftest.$ac_objext \
43347     conftest$ac_exeext conftest.$ac_ext
43348         if test "$gl_cv_libcroco" != yes; then
43349                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43350 /* end confdefs.h.  */
43351 #include <libcroco-0.6/libcroco/libcroco-config.h>
43352 int
43353 main ()
43354 {
43355 const char *version = LIBCROCO_VERSION; return !version;
43356   ;
43357   return 0;
43358 }
43359 _ACEOF
43360 if ac_fn_c_try_link "$LINENO"; then :
43361
43362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>" >&5
43363 $as_echo_n "checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>... " >&6; }
43364 if ${gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h+:} false; then :
43365   $as_echo_n "(cached) " >&6
43366 else
43367           if test $ac_cv_header_libcroco_0_6_libcroco_libcroco_config_h = yes; then
43368
43369
43370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43371 /* end confdefs.h.  */
43372 #include <libcroco-0.6/libcroco/libcroco-config.h>
43373 _ACEOF
43374                 case "$host_os" in
43375     aix*) gl_absname_cpp="$ac_cpp -C" ;;
43376     *)    gl_absname_cpp="$ac_cpp" ;;
43377   esac
43378
43379   case "$host_os" in
43380     mingw*)
43381                                           gl_dirsep_regex='[/\\]'
43382       ;;
43383     *)
43384       gl_dirsep_regex='\/'
43385       ;;
43386   esac
43387       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43388   gl_header_literal_regex=`echo 'libcroco-0.6/libcroco/libcroco-config.h' \
43389                            | sed -e "$gl_make_literal_regex_sed"`
43390   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43391       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43392       s|^/[^/]|//&|
43393       p
43394       q
43395     }'
43396
43397         gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43398   sed -n "$gl_absolute_header_sed"`
43399
43400     fi
43401
43402 fi
43403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&5
43404 $as_echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&6; }
43405 cat >>confdefs.h <<_ACEOF
43406 #define ABSOLUTE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h"
43407 _ACEOF
43408
43409
43410              libcroco_include_dir=`echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" | sed -e 's,.libcroco-config\.h$,,'`
43411              if test -d "$libcroco_include_dir"; then
43412                gl_cv_libcroco=yes
43413                gl_cv_LIBCROCO="$LIBCROCO_0_6"
43414                gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
43415                gl_cv_INCCROCO="-I$libcroco_include_dir"
43416              fi
43417
43418 fi
43419 rm -f core conftest.err conftest.$ac_objext \
43420     conftest$ac_exeext conftest.$ac_ext
43421         fi
43422         CPPFLAGS="$gl_save_CPPFLAGS"
43423       fi
43424       LIBS="$gl_save_LIBS"
43425
43426 fi
43427
43428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcroco" >&5
43429 $as_echo_n "checking for libcroco... " >&6; }
43430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco" >&5
43431 $as_echo "$gl_cv_libcroco" >&6; }
43432     if test $gl_cv_libcroco = yes; then
43433       LIBCROCO="$gl_cv_LIBCROCO"
43434       LTLIBCROCO="$gl_cv_LTLIBCROCO"
43435       INCCROCO="$gl_cv_INCCROCO"
43436     else
43437       gl_cv_libcroco_use_included=yes
43438     fi
43439   fi
43440
43441
43442
43443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libcroco" >&5
43444 $as_echo_n "checking whether to use the included libcroco... " >&6; }
43445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_use_included" >&5
43446 $as_echo "$gl_cv_libcroco_use_included" >&6; }
43447
43448    if test "$gl_cv_libcroco_use_included" = yes; then
43449   INCLUDED_LIBCROCO_TRUE=
43450   INCLUDED_LIBCROCO_FALSE='#'
43451 else
43452   INCLUDED_LIBCROCO_TRUE='#'
43453   INCLUDED_LIBCROCO_FALSE=
43454 fi
43455
43456
43457
43458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
43459 $as_echo_n "checking whether included glib is requested... " >&6; }
43460
43461 # Check whether --with-included-glib was given.
43462 if test "${with_included_glib+set}" = set; then :
43463   withval=$with_included_glib; gl_cv_libglib_force_included=$withval
43464 else
43465   gl_cv_libglib_force_included=no
43466 fi
43467
43468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
43469 $as_echo "$gl_cv_libglib_force_included" >&6; }
43470
43471   gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
43472   LIBGLIB=
43473   LTLIBGLIB=
43474   INCGLIB=
43475   if test "$gl_cv_libglib_use_included" != yes; then
43476             if ${gl_cv_libglib+:} false; then :
43477   $as_echo_n "(cached) " >&6
43478 else
43479
43480       gl_cv_libglib=no
43481       gl_cv_LIBGLIB=
43482       gl_cv_LTLIBGLIB=
43483       gl_cv_INCGLIB=
43484       gl_save_LIBS="$LIBS"
43485
43486
43487
43488
43489
43490
43491
43492     use_additional=yes
43493
43494   acl_save_prefix="$prefix"
43495   prefix="$acl_final_prefix"
43496   acl_save_exec_prefix="$exec_prefix"
43497   exec_prefix="$acl_final_exec_prefix"
43498
43499     eval additional_includedir=\"$includedir\"
43500     eval additional_libdir=\"$libdir\"
43501
43502   exec_prefix="$acl_save_exec_prefix"
43503   prefix="$acl_save_prefix"
43504
43505
43506 # Check whether --with-libglib-2.0-prefix was given.
43507 if test "${with_libglib_2_0_prefix+set}" = set; then :
43508   withval=$with_libglib_2_0_prefix;
43509     if test "X$withval" = "Xno"; then
43510       use_additional=no
43511     else
43512       if test "X$withval" = "X"; then
43513
43514   acl_save_prefix="$prefix"
43515   prefix="$acl_final_prefix"
43516   acl_save_exec_prefix="$exec_prefix"
43517   exec_prefix="$acl_final_exec_prefix"
43518
43519           eval additional_includedir=\"$includedir\"
43520           eval additional_libdir=\"$libdir\"
43521
43522   exec_prefix="$acl_save_exec_prefix"
43523   prefix="$acl_save_prefix"
43524
43525       else
43526         additional_includedir="$withval/include"
43527         additional_libdir="$withval/$acl_libdirstem"
43528         if test "$acl_libdirstem2" != "$acl_libdirstem" \
43529            && ! test -d "$withval/$acl_libdirstem"; then
43530           additional_libdir="$withval/$acl_libdirstem2"
43531         fi
43532       fi
43533     fi
43534
43535 fi
43536
43537       LIBGLIB_2_0=
43538   LTLIBGLIB_2_0=
43539   INCGLIB_2_0=
43540   LIBGLIB_2_0_PREFIX=
43541       HAVE_LIBGLIB_2_0=
43542   rpathdirs=
43543   ltrpathdirs=
43544   names_already_handled=
43545   names_next_round='glib-2.0 '
43546   while test -n "$names_next_round"; do
43547     names_this_round="$names_next_round"
43548     names_next_round=
43549     for name in $names_this_round; do
43550       already_handled=
43551       for n in $names_already_handled; do
43552         if test "$n" = "$name"; then
43553           already_handled=yes
43554           break
43555         fi
43556       done
43557       if test -z "$already_handled"; then
43558         names_already_handled="$names_already_handled $name"
43559                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
43560         eval value=\"\$HAVE_LIB$uppername\"
43561         if test -n "$value"; then
43562           if test "$value" = yes; then
43563             eval value=\"\$LIB$uppername\"
43564             test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
43565             eval value=\"\$LTLIB$uppername\"
43566             test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
43567           else
43568                                     :
43569           fi
43570         else
43571                               found_dir=
43572           found_la=
43573           found_so=
43574           found_a=
43575           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
43576           if test -n "$acl_shlibext"; then
43577             shrext=".$acl_shlibext"             # typically: shrext=.so
43578           else
43579             shrext=
43580           fi
43581           if test $use_additional = yes; then
43582             dir="$additional_libdir"
43583                                     if test -n "$acl_shlibext"; then
43584               if test -f "$dir/$libname$shrext"; then
43585                 found_dir="$dir"
43586                 found_so="$dir/$libname$shrext"
43587               else
43588                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
43589                   ver=`(cd "$dir" && \
43590                         for f in "$libname$shrext".*; do echo "$f"; done \
43591                         | sed -e "s,^$libname$shrext\\\\.,," \
43592                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
43593                         | sed 1q ) 2>/dev/null`
43594                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
43595                     found_dir="$dir"
43596                     found_so="$dir/$libname$shrext.$ver"
43597                   fi
43598                 else
43599                   eval library_names=\"$acl_library_names_spec\"
43600                   for f in $library_names; do
43601                     if test -f "$dir/$f"; then
43602                       found_dir="$dir"
43603                       found_so="$dir/$f"
43604                       break
43605                     fi
43606                   done
43607                 fi
43608               fi
43609             fi
43610                         if test "X$found_dir" = "X"; then
43611               if test -f "$dir/$libname.$acl_libext"; then
43612                 found_dir="$dir"
43613                 found_a="$dir/$libname.$acl_libext"
43614               fi
43615             fi
43616             if test "X$found_dir" != "X"; then
43617               if test -f "$dir/$libname.la"; then
43618                 found_la="$dir/$libname.la"
43619               fi
43620             fi
43621           fi
43622           if test "X$found_dir" = "X"; then
43623             for x in $LDFLAGS $LTLIBGLIB_2_0; do
43624
43625   acl_save_prefix="$prefix"
43626   prefix="$acl_final_prefix"
43627   acl_save_exec_prefix="$exec_prefix"
43628   exec_prefix="$acl_final_exec_prefix"
43629   eval x=\"$x\"
43630   exec_prefix="$acl_save_exec_prefix"
43631   prefix="$acl_save_prefix"
43632
43633               case "$x" in
43634                 -L*)
43635                   dir=`echo "X$x" | sed -e 's/^X-L//'`
43636                                     if test -n "$acl_shlibext"; then
43637                     if test -f "$dir/$libname$shrext"; then
43638                       found_dir="$dir"
43639                       found_so="$dir/$libname$shrext"
43640                     else
43641                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
43642                         ver=`(cd "$dir" && \
43643                               for f in "$libname$shrext".*; do echo "$f"; done \
43644                               | sed -e "s,^$libname$shrext\\\\.,," \
43645                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
43646                               | sed 1q ) 2>/dev/null`
43647                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
43648                           found_dir="$dir"
43649                           found_so="$dir/$libname$shrext.$ver"
43650                         fi
43651                       else
43652                         eval library_names=\"$acl_library_names_spec\"
43653                         for f in $library_names; do
43654                           if test -f "$dir/$f"; then
43655                             found_dir="$dir"
43656                             found_so="$dir/$f"
43657                             break
43658                           fi
43659                         done
43660                       fi
43661                     fi
43662                   fi
43663                                     if test "X$found_dir" = "X"; then
43664                     if test -f "$dir/$libname.$acl_libext"; then
43665                       found_dir="$dir"
43666                       found_a="$dir/$libname.$acl_libext"
43667                     fi
43668                   fi
43669                   if test "X$found_dir" != "X"; then
43670                     if test -f "$dir/$libname.la"; then
43671                       found_la="$dir/$libname.la"
43672                     fi
43673                   fi
43674                   ;;
43675               esac
43676               if test "X$found_dir" != "X"; then
43677                 break
43678               fi
43679             done
43680           fi
43681           if test "X$found_dir" != "X"; then
43682                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
43683             if test "X$found_so" != "X"; then
43684                                                         if test "$enable_rpath" = no \
43685                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
43686                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
43687                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
43688               else
43689                                                                                 haveit=
43690                 for x in $ltrpathdirs; do
43691                   if test "X$x" = "X$found_dir"; then
43692                     haveit=yes
43693                     break
43694                   fi
43695                 done
43696                 if test -z "$haveit"; then
43697                   ltrpathdirs="$ltrpathdirs $found_dir"
43698                 fi
43699                                 if test "$acl_hardcode_direct" = yes; then
43700                                                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
43701                 else
43702                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
43703                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
43704                                                             haveit=
43705                     for x in $rpathdirs; do
43706                       if test "X$x" = "X$found_dir"; then
43707                         haveit=yes
43708                         break
43709                       fi
43710                     done
43711                     if test -z "$haveit"; then
43712                       rpathdirs="$rpathdirs $found_dir"
43713                     fi
43714                   else
43715                                                                                 haveit=
43716                     for x in $LDFLAGS $LIBGLIB_2_0; do
43717
43718   acl_save_prefix="$prefix"
43719   prefix="$acl_final_prefix"
43720   acl_save_exec_prefix="$exec_prefix"
43721   exec_prefix="$acl_final_exec_prefix"
43722   eval x=\"$x\"
43723   exec_prefix="$acl_save_exec_prefix"
43724   prefix="$acl_save_prefix"
43725
43726                       if test "X$x" = "X-L$found_dir"; then
43727                         haveit=yes
43728                         break
43729                       fi
43730                     done
43731                     if test -z "$haveit"; then
43732                       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
43733                     fi
43734                     if test "$acl_hardcode_minus_L" != no; then
43735                                                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
43736                     else
43737                                                                                                                                                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
43738                     fi
43739                   fi
43740                 fi
43741               fi
43742             else
43743               if test "X$found_a" != "X"; then
43744                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
43745               else
43746                                                 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
43747               fi
43748             fi
43749                         additional_includedir=
43750             case "$found_dir" in
43751               */$acl_libdirstem | */$acl_libdirstem/)
43752                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
43753                 if test "$name" = 'glib-2.0'; then
43754                   LIBGLIB_2_0_PREFIX="$basedir"
43755                 fi
43756                 additional_includedir="$basedir/include"
43757                 ;;
43758               */$acl_libdirstem2 | */$acl_libdirstem2/)
43759                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
43760                 if test "$name" = 'glib-2.0'; then
43761                   LIBGLIB_2_0_PREFIX="$basedir"
43762                 fi
43763                 additional_includedir="$basedir/include"
43764                 ;;
43765             esac
43766             if test "X$additional_includedir" != "X"; then
43767                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
43768                 haveit=
43769                 if test "X$additional_includedir" = "X/usr/local/include"; then
43770                   if test -n "$GCC"; then
43771                     case $host_os in
43772                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
43773                     esac
43774                   fi
43775                 fi
43776                 if test -z "$haveit"; then
43777                   for x in $CPPFLAGS $INCGLIB_2_0; do
43778
43779   acl_save_prefix="$prefix"
43780   prefix="$acl_final_prefix"
43781   acl_save_exec_prefix="$exec_prefix"
43782   exec_prefix="$acl_final_exec_prefix"
43783   eval x=\"$x\"
43784   exec_prefix="$acl_save_exec_prefix"
43785   prefix="$acl_save_prefix"
43786
43787                     if test "X$x" = "X-I$additional_includedir"; then
43788                       haveit=yes
43789                       break
43790                     fi
43791                   done
43792                   if test -z "$haveit"; then
43793                     if test -d "$additional_includedir"; then
43794                                             INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
43795                     fi
43796                   fi
43797                 fi
43798               fi
43799             fi
43800                         if test -n "$found_la"; then
43801                                                         save_libdir="$libdir"
43802               case "$found_la" in
43803                 */* | *\\*) . "$found_la" ;;
43804                 *) . "./$found_la" ;;
43805               esac
43806               libdir="$save_libdir"
43807                             for dep in $dependency_libs; do
43808                 case "$dep" in
43809                   -L*)
43810                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
43811                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
43812                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
43813                       haveit=
43814                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
43815                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
43816                         if test -n "$GCC"; then
43817                           case $host_os in
43818                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
43819                           esac
43820                         fi
43821                       fi
43822                       if test -z "$haveit"; then
43823                         haveit=
43824                         for x in $LDFLAGS $LIBGLIB_2_0; do
43825
43826   acl_save_prefix="$prefix"
43827   prefix="$acl_final_prefix"
43828   acl_save_exec_prefix="$exec_prefix"
43829   exec_prefix="$acl_final_exec_prefix"
43830   eval x=\"$x\"
43831   exec_prefix="$acl_save_exec_prefix"
43832   prefix="$acl_save_prefix"
43833
43834                           if test "X$x" = "X-L$additional_libdir"; then
43835                             haveit=yes
43836                             break
43837                           fi
43838                         done
43839                         if test -z "$haveit"; then
43840                           if test -d "$additional_libdir"; then
43841                                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
43842                           fi
43843                         fi
43844                         haveit=
43845                         for x in $LDFLAGS $LTLIBGLIB_2_0; do
43846
43847   acl_save_prefix="$prefix"
43848   prefix="$acl_final_prefix"
43849   acl_save_exec_prefix="$exec_prefix"
43850   exec_prefix="$acl_final_exec_prefix"
43851   eval x=\"$x\"
43852   exec_prefix="$acl_save_exec_prefix"
43853   prefix="$acl_save_prefix"
43854
43855                           if test "X$x" = "X-L$additional_libdir"; then
43856                             haveit=yes
43857                             break
43858                           fi
43859                         done
43860                         if test -z "$haveit"; then
43861                           if test -d "$additional_libdir"; then
43862                                                         LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
43863                           fi
43864                         fi
43865                       fi
43866                     fi
43867                     ;;
43868                   -R*)
43869                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
43870                     if test "$enable_rpath" != no; then
43871                                                                   haveit=
43872                       for x in $rpathdirs; do
43873                         if test "X$x" = "X$dir"; then
43874                           haveit=yes
43875                           break
43876                         fi
43877                       done
43878                       if test -z "$haveit"; then
43879                         rpathdirs="$rpathdirs $dir"
43880                       fi
43881                                                                   haveit=
43882                       for x in $ltrpathdirs; do
43883                         if test "X$x" = "X$dir"; then
43884                           haveit=yes
43885                           break
43886                         fi
43887                       done
43888                       if test -z "$haveit"; then
43889                         ltrpathdirs="$ltrpathdirs $dir"
43890                       fi
43891                     fi
43892                     ;;
43893                   -l*)
43894                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
43895                     ;;
43896                   *.la)
43897                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
43898                     ;;
43899                   *)
43900                                         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
43901                     LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
43902                     ;;
43903                 esac
43904               done
43905             fi
43906           else
43907                                                             LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
43908             LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
43909           fi
43910         fi
43911       fi
43912     done
43913   done
43914   if test "X$rpathdirs" != "X"; then
43915     if test -n "$acl_hardcode_libdir_separator"; then
43916                         alldirs=
43917       for found_dir in $rpathdirs; do
43918         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
43919       done
43920             acl_save_libdir="$libdir"
43921       libdir="$alldirs"
43922       eval flag=\"$acl_hardcode_libdir_flag_spec\"
43923       libdir="$acl_save_libdir"
43924       LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
43925     else
43926             for found_dir in $rpathdirs; do
43927         acl_save_libdir="$libdir"
43928         libdir="$found_dir"
43929         eval flag=\"$acl_hardcode_libdir_flag_spec\"
43930         libdir="$acl_save_libdir"
43931         LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
43932       done
43933     fi
43934   fi
43935   if test "X$ltrpathdirs" != "X"; then
43936             for found_dir in $ltrpathdirs; do
43937       LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
43938     done
43939   fi
43940
43941
43942
43943
43944
43945
43946       LIBS="$gl_save_LIBS $LIBGLIB_2_0"
43947       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43948 /* end confdefs.h.  */
43949 #include <glib.h>
43950 #ifndef G_BEGIN_DECLS
43951 error this glib.h includes a glibconfig.h from a glib version 1.x
43952 #endif
43953
43954 int
43955 main ()
43956 {
43957 g_string_new ("foo");
43958   ;
43959   return 0;
43960 }
43961 _ACEOF
43962 if ac_fn_c_try_link "$LINENO"; then :
43963   gl_cv_libglib=yes
43964          gl_cv_LIBGLIB="$LIBGLIB_2_0"
43965          gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
43966
43967 fi
43968 rm -f core conftest.err conftest.$ac_objext \
43969     conftest$ac_exeext conftest.$ac_ext
43970       if test "$gl_cv_libglib" != yes; then
43971         gl_save_CPPFLAGS="$CPPFLAGS"
43972         CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
43973         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43974 /* end confdefs.h.  */
43975 #include <glib.h>
43976 #ifndef G_BEGIN_DECLS
43977 error this glib.h includes a glibconfig.h from a glib version 1.x
43978 #endif
43979
43980 int
43981 main ()
43982 {
43983 g_string_new ("foo");
43984   ;
43985   return 0;
43986 }
43987 _ACEOF
43988 if ac_fn_c_try_link "$LINENO"; then :
43989   gl_cv_libglib=yes
43990            gl_cv_LIBGLIB="$LIBGLIB_2_0"
43991            gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
43992            gl_cv_INCGLIB="$INCGLIB_2_0"
43993
43994 fi
43995 rm -f core conftest.err conftest.$ac_objext \
43996     conftest$ac_exeext conftest.$ac_ext
43997         if test "$gl_cv_libglib" != yes; then
43998                               if test -n "$LIBGLIB_2_0_PREFIX"; then
43999             CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
44000             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44001 /* end confdefs.h.  */
44002 #include <glib.h>
44003 #ifndef G_BEGIN_DECLS
44004 error this glib.h includes a glibconfig.h from a glib version 1.x
44005 #endif
44006
44007 int
44008 main ()
44009 {
44010 g_string_new ("foo");
44011   ;
44012   return 0;
44013 }
44014 _ACEOF
44015 if ac_fn_c_try_link "$LINENO"; then :
44016   gl_cv_libglib=yes
44017                gl_cv_LIBGLIB="$LIBGLIB_2_0"
44018                gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
44019                gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
44020
44021 fi
44022 rm -f core conftest.err conftest.$ac_objext \
44023     conftest$ac_exeext conftest.$ac_ext
44024           fi
44025         fi
44026         CPPFLAGS="$gl_save_CPPFLAGS"
44027       fi
44028       LIBS="$gl_save_LIBS"
44029
44030 fi
44031
44032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
44033 $as_echo_n "checking for glib... " >&6; }
44034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
44035 $as_echo "$gl_cv_libglib" >&6; }
44036     if test $gl_cv_libglib = yes; then
44037       LIBGLIB="$gl_cv_LIBGLIB"
44038       LTLIBGLIB="$gl_cv_LTLIBGLIB"
44039       INCGLIB="$gl_cv_INCGLIB"
44040     else
44041       gl_cv_libglib_use_included=yes
44042     fi
44043   fi
44044
44045
44046
44047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
44048 $as_echo_n "checking whether to use the included glib... " >&6; }
44049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
44050 $as_echo "$gl_cv_libglib_use_included" >&6; }
44051
44052   if test "$gl_cv_libglib_use_included" = yes; then
44053     LIBGLIB_H=
44054     LIBGLIB_H="$LIBGLIB_H glib.h"
44055     LIBGLIB_H="$LIBGLIB_H glibconfig.h"
44056     LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
44057     LIBGLIB_H="$LIBGLIB_H glib/glist.h"
44058     LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
44059     LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
44060     LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
44061     LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
44062
44063     for ac_header in unistd.h
44064 do :
44065   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
44066 if test "x$ac_cv_header_unistd_h" = xyes; then :
44067   cat >>confdefs.h <<_ACEOF
44068 #define HAVE_UNISTD_H 1
44069 _ACEOF
44070
44071 fi
44072
44073 done
44074
44075       else
44076     LIBGLIB_H=
44077   fi
44078
44079
44080    if test "$gl_cv_libglib_use_included" = yes; then
44081   INCLUDED_LIBGLIB_TRUE=
44082   INCLUDED_LIBGLIB_FALSE='#'
44083 else
44084   INCLUDED_LIBGLIB_TRUE='#'
44085   INCLUDED_LIBGLIB_FALSE=
44086 fi
44087
44088
44089
44090
44091
44092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
44093 $as_echo_n "checking whether to use the included libunistring... " >&6; }
44094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
44095 $as_echo "$gl_libunistring_use_included" >&6; }
44096
44097
44098
44099
44100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libxml is requested" >&5
44101 $as_echo_n "checking whether included libxml is requested... " >&6; }
44102
44103 # Check whether --with-included-libxml was given.
44104 if test "${with_included_libxml+set}" = set; then :
44105   withval=$with_included_libxml; gl_cv_libxml_force_included=$withval
44106 else
44107   gl_cv_libxml_force_included=no
44108 fi
44109
44110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_force_included" >&5
44111 $as_echo "$gl_cv_libxml_force_included" >&6; }
44112
44113   gl_cv_libxml_use_included="$gl_cv_libxml_force_included"
44114   LIBXML=
44115   LTLIBXML=
44116   INCXML=
44117   if test "$gl_cv_libxml_use_included" != yes; then
44118             if ${gl_cv_libxml+:} false; then :
44119   $as_echo_n "(cached) " >&6
44120 else
44121
44122       gl_cv_libxml=no
44123       gl_cv_LIBXML=
44124       gl_cv_LTLIBXML=
44125       gl_cv_INCXML=
44126       gl_save_LIBS="$LIBS"
44127       LIBS="$LIBS $LIBICONV"
44128
44129
44130
44131
44132
44133
44134
44135     use_additional=yes
44136
44137   acl_save_prefix="$prefix"
44138   prefix="$acl_final_prefix"
44139   acl_save_exec_prefix="$exec_prefix"
44140   exec_prefix="$acl_final_exec_prefix"
44141
44142     eval additional_includedir=\"$includedir\"
44143     eval additional_libdir=\"$libdir\"
44144
44145   exec_prefix="$acl_save_exec_prefix"
44146   prefix="$acl_save_prefix"
44147
44148
44149 # Check whether --with-libxml2-prefix was given.
44150 if test "${with_libxml2_prefix+set}" = set; then :
44151   withval=$with_libxml2_prefix;
44152     if test "X$withval" = "Xno"; then
44153       use_additional=no
44154     else
44155       if test "X$withval" = "X"; then
44156
44157   acl_save_prefix="$prefix"
44158   prefix="$acl_final_prefix"
44159   acl_save_exec_prefix="$exec_prefix"
44160   exec_prefix="$acl_final_exec_prefix"
44161
44162           eval additional_includedir=\"$includedir\"
44163           eval additional_libdir=\"$libdir\"
44164
44165   exec_prefix="$acl_save_exec_prefix"
44166   prefix="$acl_save_prefix"
44167
44168       else
44169         additional_includedir="$withval/include"
44170         additional_libdir="$withval/$acl_libdirstem"
44171         if test "$acl_libdirstem2" != "$acl_libdirstem" \
44172            && ! test -d "$withval/$acl_libdirstem"; then
44173           additional_libdir="$withval/$acl_libdirstem2"
44174         fi
44175       fi
44176     fi
44177
44178 fi
44179
44180       LIBXML2=
44181   LTLIBXML2=
44182   INCXML2=
44183   LIBXML2_PREFIX=
44184       HAVE_LIBXML2=
44185   rpathdirs=
44186   ltrpathdirs=
44187   names_already_handled=
44188   names_next_round='xml2 '
44189   while test -n "$names_next_round"; do
44190     names_this_round="$names_next_round"
44191     names_next_round=
44192     for name in $names_this_round; do
44193       already_handled=
44194       for n in $names_already_handled; do
44195         if test "$n" = "$name"; then
44196           already_handled=yes
44197           break
44198         fi
44199       done
44200       if test -z "$already_handled"; then
44201         names_already_handled="$names_already_handled $name"
44202                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
44203         eval value=\"\$HAVE_LIB$uppername\"
44204         if test -n "$value"; then
44205           if test "$value" = yes; then
44206             eval value=\"\$LIB$uppername\"
44207             test -z "$value" || LIBXML2="${LIBXML2}${LIBXML2:+ }$value"
44208             eval value=\"\$LTLIB$uppername\"
44209             test -z "$value" || LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$value"
44210           else
44211                                     :
44212           fi
44213         else
44214                               found_dir=
44215           found_la=
44216           found_so=
44217           found_a=
44218           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
44219           if test -n "$acl_shlibext"; then
44220             shrext=".$acl_shlibext"             # typically: shrext=.so
44221           else
44222             shrext=
44223           fi
44224           if test $use_additional = yes; then
44225             dir="$additional_libdir"
44226                                     if test -n "$acl_shlibext"; then
44227               if test -f "$dir/$libname$shrext"; then
44228                 found_dir="$dir"
44229                 found_so="$dir/$libname$shrext"
44230               else
44231                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
44232                   ver=`(cd "$dir" && \
44233                         for f in "$libname$shrext".*; do echo "$f"; done \
44234                         | sed -e "s,^$libname$shrext\\\\.,," \
44235                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
44236                         | sed 1q ) 2>/dev/null`
44237                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
44238                     found_dir="$dir"
44239                     found_so="$dir/$libname$shrext.$ver"
44240                   fi
44241                 else
44242                   eval library_names=\"$acl_library_names_spec\"
44243                   for f in $library_names; do
44244                     if test -f "$dir/$f"; then
44245                       found_dir="$dir"
44246                       found_so="$dir/$f"
44247                       break
44248                     fi
44249                   done
44250                 fi
44251               fi
44252             fi
44253                         if test "X$found_dir" = "X"; then
44254               if test -f "$dir/$libname.$acl_libext"; then
44255                 found_dir="$dir"
44256                 found_a="$dir/$libname.$acl_libext"
44257               fi
44258             fi
44259             if test "X$found_dir" != "X"; then
44260               if test -f "$dir/$libname.la"; then
44261                 found_la="$dir/$libname.la"
44262               fi
44263             fi
44264           fi
44265           if test "X$found_dir" = "X"; then
44266             for x in $LDFLAGS $LTLIBXML2; do
44267
44268   acl_save_prefix="$prefix"
44269   prefix="$acl_final_prefix"
44270   acl_save_exec_prefix="$exec_prefix"
44271   exec_prefix="$acl_final_exec_prefix"
44272   eval x=\"$x\"
44273   exec_prefix="$acl_save_exec_prefix"
44274   prefix="$acl_save_prefix"
44275
44276               case "$x" in
44277                 -L*)
44278                   dir=`echo "X$x" | sed -e 's/^X-L//'`
44279                                     if test -n "$acl_shlibext"; then
44280                     if test -f "$dir/$libname$shrext"; then
44281                       found_dir="$dir"
44282                       found_so="$dir/$libname$shrext"
44283                     else
44284                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
44285                         ver=`(cd "$dir" && \
44286                               for f in "$libname$shrext".*; do echo "$f"; done \
44287                               | sed -e "s,^$libname$shrext\\\\.,," \
44288                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
44289                               | sed 1q ) 2>/dev/null`
44290                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
44291                           found_dir="$dir"
44292                           found_so="$dir/$libname$shrext.$ver"
44293                         fi
44294                       else
44295                         eval library_names=\"$acl_library_names_spec\"
44296                         for f in $library_names; do
44297                           if test -f "$dir/$f"; then
44298                             found_dir="$dir"
44299                             found_so="$dir/$f"
44300                             break
44301                           fi
44302                         done
44303                       fi
44304                     fi
44305                   fi
44306                                     if test "X$found_dir" = "X"; then
44307                     if test -f "$dir/$libname.$acl_libext"; then
44308                       found_dir="$dir"
44309                       found_a="$dir/$libname.$acl_libext"
44310                     fi
44311                   fi
44312                   if test "X$found_dir" != "X"; then
44313                     if test -f "$dir/$libname.la"; then
44314                       found_la="$dir/$libname.la"
44315                     fi
44316                   fi
44317                   ;;
44318               esac
44319               if test "X$found_dir" != "X"; then
44320                 break
44321               fi
44322             done
44323           fi
44324           if test "X$found_dir" != "X"; then
44325                         LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$found_dir -l$name"
44326             if test "X$found_so" != "X"; then
44327                                                         if test "$enable_rpath" = no \
44328                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
44329                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
44330                                 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
44331               else
44332                                                                                 haveit=
44333                 for x in $ltrpathdirs; do
44334                   if test "X$x" = "X$found_dir"; then
44335                     haveit=yes
44336                     break
44337                   fi
44338                 done
44339                 if test -z "$haveit"; then
44340                   ltrpathdirs="$ltrpathdirs $found_dir"
44341                 fi
44342                                 if test "$acl_hardcode_direct" = yes; then
44343                                                       LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
44344                 else
44345                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
44346                                                             LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
44347                                                             haveit=
44348                     for x in $rpathdirs; do
44349                       if test "X$x" = "X$found_dir"; then
44350                         haveit=yes
44351                         break
44352                       fi
44353                     done
44354                     if test -z "$haveit"; then
44355                       rpathdirs="$rpathdirs $found_dir"
44356                     fi
44357                   else
44358                                                                                 haveit=
44359                     for x in $LDFLAGS $LIBXML2; do
44360
44361   acl_save_prefix="$prefix"
44362   prefix="$acl_final_prefix"
44363   acl_save_exec_prefix="$exec_prefix"
44364   exec_prefix="$acl_final_exec_prefix"
44365   eval x=\"$x\"
44366   exec_prefix="$acl_save_exec_prefix"
44367   prefix="$acl_save_prefix"
44368
44369                       if test "X$x" = "X-L$found_dir"; then
44370                         haveit=yes
44371                         break
44372                       fi
44373                     done
44374                     if test -z "$haveit"; then
44375                       LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir"
44376                     fi
44377                     if test "$acl_hardcode_minus_L" != no; then
44378                                                                                         LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
44379                     else
44380                                                                                                                                                                                 LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
44381                     fi
44382                   fi
44383                 fi
44384               fi
44385             else
44386               if test "X$found_a" != "X"; then
44387                                 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_a"
44388               else
44389                                                 LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir -l$name"
44390               fi
44391             fi
44392                         additional_includedir=
44393             case "$found_dir" in
44394               */$acl_libdirstem | */$acl_libdirstem/)
44395                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
44396                 if test "$name" = 'xml2'; then
44397                   LIBXML2_PREFIX="$basedir"
44398                 fi
44399                 additional_includedir="$basedir/include"
44400                 ;;
44401               */$acl_libdirstem2 | */$acl_libdirstem2/)
44402                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
44403                 if test "$name" = 'xml2'; then
44404                   LIBXML2_PREFIX="$basedir"
44405                 fi
44406                 additional_includedir="$basedir/include"
44407                 ;;
44408             esac
44409             if test "X$additional_includedir" != "X"; then
44410                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
44411                 haveit=
44412                 if test "X$additional_includedir" = "X/usr/local/include"; then
44413                   if test -n "$GCC"; then
44414                     case $host_os in
44415                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44416                     esac
44417                   fi
44418                 fi
44419                 if test -z "$haveit"; then
44420                   for x in $CPPFLAGS $INCXML2; do
44421
44422   acl_save_prefix="$prefix"
44423   prefix="$acl_final_prefix"
44424   acl_save_exec_prefix="$exec_prefix"
44425   exec_prefix="$acl_final_exec_prefix"
44426   eval x=\"$x\"
44427   exec_prefix="$acl_save_exec_prefix"
44428   prefix="$acl_save_prefix"
44429
44430                     if test "X$x" = "X-I$additional_includedir"; then
44431                       haveit=yes
44432                       break
44433                     fi
44434                   done
44435                   if test -z "$haveit"; then
44436                     if test -d "$additional_includedir"; then
44437                                             INCXML2="${INCXML2}${INCXML2:+ }-I$additional_includedir"
44438                     fi
44439                   fi
44440                 fi
44441               fi
44442             fi
44443                         if test -n "$found_la"; then
44444                                                         save_libdir="$libdir"
44445               case "$found_la" in
44446                 */* | *\\*) . "$found_la" ;;
44447                 *) . "./$found_la" ;;
44448               esac
44449               libdir="$save_libdir"
44450                             for dep in $dependency_libs; do
44451                 case "$dep" in
44452                   -L*)
44453                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
44454                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
44455                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
44456                       haveit=
44457                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
44458                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
44459                         if test -n "$GCC"; then
44460                           case $host_os in
44461                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44462                           esac
44463                         fi
44464                       fi
44465                       if test -z "$haveit"; then
44466                         haveit=
44467                         for x in $LDFLAGS $LIBXML2; do
44468
44469   acl_save_prefix="$prefix"
44470   prefix="$acl_final_prefix"
44471   acl_save_exec_prefix="$exec_prefix"
44472   exec_prefix="$acl_final_exec_prefix"
44473   eval x=\"$x\"
44474   exec_prefix="$acl_save_exec_prefix"
44475   prefix="$acl_save_prefix"
44476
44477                           if test "X$x" = "X-L$additional_libdir"; then
44478                             haveit=yes
44479                             break
44480                           fi
44481                         done
44482                         if test -z "$haveit"; then
44483                           if test -d "$additional_libdir"; then
44484                                                         LIBXML2="${LIBXML2}${LIBXML2:+ }-L$additional_libdir"
44485                           fi
44486                         fi
44487                         haveit=
44488                         for x in $LDFLAGS $LTLIBXML2; do
44489
44490   acl_save_prefix="$prefix"
44491   prefix="$acl_final_prefix"
44492   acl_save_exec_prefix="$exec_prefix"
44493   exec_prefix="$acl_final_exec_prefix"
44494   eval x=\"$x\"
44495   exec_prefix="$acl_save_exec_prefix"
44496   prefix="$acl_save_prefix"
44497
44498                           if test "X$x" = "X-L$additional_libdir"; then
44499                             haveit=yes
44500                             break
44501                           fi
44502                         done
44503                         if test -z "$haveit"; then
44504                           if test -d "$additional_libdir"; then
44505                                                         LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$additional_libdir"
44506                           fi
44507                         fi
44508                       fi
44509                     fi
44510                     ;;
44511                   -R*)
44512                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
44513                     if test "$enable_rpath" != no; then
44514                                                                   haveit=
44515                       for x in $rpathdirs; do
44516                         if test "X$x" = "X$dir"; then
44517                           haveit=yes
44518                           break
44519                         fi
44520                       done
44521                       if test -z "$haveit"; then
44522                         rpathdirs="$rpathdirs $dir"
44523                       fi
44524                                                                   haveit=
44525                       for x in $ltrpathdirs; do
44526                         if test "X$x" = "X$dir"; then
44527                           haveit=yes
44528                           break
44529                         fi
44530                       done
44531                       if test -z "$haveit"; then
44532                         ltrpathdirs="$ltrpathdirs $dir"
44533                       fi
44534                     fi
44535                     ;;
44536                   -l*)
44537                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
44538                     ;;
44539                   *.la)
44540                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
44541                     ;;
44542                   *)
44543                                         LIBXML2="${LIBXML2}${LIBXML2:+ }$dep"
44544                     LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$dep"
44545                     ;;
44546                 esac
44547               done
44548             fi
44549           else
44550                                                             LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
44551             LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-l$name"
44552           fi
44553         fi
44554       fi
44555     done
44556   done
44557   if test "X$rpathdirs" != "X"; then
44558     if test -n "$acl_hardcode_libdir_separator"; then
44559                         alldirs=
44560       for found_dir in $rpathdirs; do
44561         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
44562       done
44563             acl_save_libdir="$libdir"
44564       libdir="$alldirs"
44565       eval flag=\"$acl_hardcode_libdir_flag_spec\"
44566       libdir="$acl_save_libdir"
44567       LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
44568     else
44569             for found_dir in $rpathdirs; do
44570         acl_save_libdir="$libdir"
44571         libdir="$found_dir"
44572         eval flag=\"$acl_hardcode_libdir_flag_spec\"
44573         libdir="$acl_save_libdir"
44574         LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
44575       done
44576     fi
44577   fi
44578   if test "X$ltrpathdirs" != "X"; then
44579             for found_dir in $ltrpathdirs; do
44580       LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-R$found_dir"
44581     done
44582   fi
44583
44584
44585
44586
44587
44588
44589       LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV"
44590       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44591 /* end confdefs.h.  */
44592 #include <libxml/xmlversion.h>
44593                    #include <libxml/xmlmemory.h>
44594
44595 int
44596 main ()
44597 {
44598 xmlCheckVersion (0); xmlFree ((void *) 0);
44599   ;
44600   return 0;
44601 }
44602 _ACEOF
44603 if ac_fn_c_try_link "$LINENO"; then :
44604   gl_cv_libxml=yes
44605          gl_cv_LIBXML="$LIBXML2 $LIBICONV"
44606          gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
44607
44608 fi
44609 rm -f core conftest.err conftest.$ac_objext \
44610     conftest$ac_exeext conftest.$ac_ext
44611       if test "$gl_cv_libxml" != yes; then
44612         gl_save_CPPFLAGS="$CPPFLAGS"
44613         CPPFLAGS="$CPPFLAGS $INCXML2"
44614         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44615 /* end confdefs.h.  */
44616 #include <libxml/xmlversion.h>
44617                      #include <libxml/xmlmemory.h>
44618
44619 int
44620 main ()
44621 {
44622 xmlCheckVersion (0); xmlFree ((void *) 0);
44623   ;
44624   return 0;
44625 }
44626 _ACEOF
44627 if ac_fn_c_try_link "$LINENO"; then :
44628   gl_cv_libxml=yes
44629            gl_cv_LIBXML="$LIBXML2 $LIBICONV"
44630            gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
44631            gl_cv_INCXML="$INCXML2"
44632
44633 fi
44634 rm -f core conftest.err conftest.$ac_objext \
44635     conftest$ac_exeext conftest.$ac_ext
44636         if test "$gl_cv_libxml" != yes; then
44637                                                   libxml2_include_dir=
44638           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44639 /* end confdefs.h.  */
44640 #include <libxml2/libxml/xmlexports.h>
44641 _ACEOF
44642 if ac_fn_c_try_cpp "$LINENO"; then :
44643
44644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlexports.h>" >&5
44645 $as_echo_n "checking absolute name of <libxml2/libxml/xmlexports.h>... " >&6; }
44646 if ${gl_cv_absolute_libxml2_libxml_xmlexports_h+:} false; then :
44647   $as_echo_n "(cached) " >&6
44648 else
44649           if test $ac_cv_header_libxml2_libxml_xmlexports_h = yes; then
44650
44651
44652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44653 /* end confdefs.h.  */
44654 #include <libxml2/libxml/xmlexports.h>
44655 _ACEOF
44656                 case "$host_os" in
44657     aix*) gl_absname_cpp="$ac_cpp -C" ;;
44658     *)    gl_absname_cpp="$ac_cpp" ;;
44659   esac
44660
44661   case "$host_os" in
44662     mingw*)
44663                                           gl_dirsep_regex='[/\\]'
44664       ;;
44665     *)
44666       gl_dirsep_regex='\/'
44667       ;;
44668   esac
44669       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
44670   gl_header_literal_regex=`echo 'libxml2/libxml/xmlexports.h' \
44671                            | sed -e "$gl_make_literal_regex_sed"`
44672   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
44673       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
44674       s|^/[^/]|//&|
44675       p
44676       q
44677     }'
44678
44679         gl_cv_absolute_libxml2_libxml_xmlexports_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
44680   sed -n "$gl_absolute_header_sed"`
44681
44682     fi
44683
44684 fi
44685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlexports_h" >&5
44686 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" >&6; }
44687 cat >>confdefs.h <<_ACEOF
44688 #define ABSOLUTE_LIBXML2_LIBXML_XMLEXPORTS_H "$gl_cv_absolute_libxml2_libxml_xmlexports_h"
44689 _ACEOF
44690
44691
44692              libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" | sed -e 's,.libxml.xmlexports\.h$,,'`
44693
44694 fi
44695 rm -f conftest.err conftest.i conftest.$ac_ext
44696           if test -z "$libxml2_include_dir"; then
44697             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44698 /* end confdefs.h.  */
44699 #include <libxml2/libxml/xmlversion.h>
44700 _ACEOF
44701 if ac_fn_c_try_cpp "$LINENO"; then :
44702
44703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlversion.h>" >&5
44704 $as_echo_n "checking absolute name of <libxml2/libxml/xmlversion.h>... " >&6; }
44705 if ${gl_cv_absolute_libxml2_libxml_xmlversion_h+:} false; then :
44706   $as_echo_n "(cached) " >&6
44707 else
44708           if test $ac_cv_header_libxml2_libxml_xmlversion_h = yes; then
44709
44710
44711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44712 /* end confdefs.h.  */
44713 #include <libxml2/libxml/xmlversion.h>
44714 _ACEOF
44715                 case "$host_os" in
44716     aix*) gl_absname_cpp="$ac_cpp -C" ;;
44717     *)    gl_absname_cpp="$ac_cpp" ;;
44718   esac
44719
44720   case "$host_os" in
44721     mingw*)
44722                                           gl_dirsep_regex='[/\\]'
44723       ;;
44724     *)
44725       gl_dirsep_regex='\/'
44726       ;;
44727   esac
44728       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
44729   gl_header_literal_regex=`echo 'libxml2/libxml/xmlversion.h' \
44730                            | sed -e "$gl_make_literal_regex_sed"`
44731   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
44732       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
44733       s|^/[^/]|//&|
44734       p
44735       q
44736     }'
44737
44738         gl_cv_absolute_libxml2_libxml_xmlversion_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
44739   sed -n "$gl_absolute_header_sed"`
44740
44741     fi
44742
44743 fi
44744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlversion_h" >&5
44745 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" >&6; }
44746 cat >>confdefs.h <<_ACEOF
44747 #define ABSOLUTE_LIBXML2_LIBXML_XMLVERSION_H "$gl_cv_absolute_libxml2_libxml_xmlversion_h"
44748 _ACEOF
44749
44750
44751                libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'`
44752
44753 fi
44754 rm -f conftest.err conftest.i conftest.$ac_ext
44755           fi
44756           if test -n "$libxml2_include_dir" && test -d "$libxml2_include_dir"; then
44757             CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir"
44758             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44759 /* end confdefs.h.  */
44760 #include <libxml/xmlversion.h>
44761                          #include <libxml/xmlmemory.h>
44762
44763 int
44764 main ()
44765 {
44766 xmlCheckVersion (0); xmlFree ((void *) 0);
44767   ;
44768   return 0;
44769 }
44770 _ACEOF
44771 if ac_fn_c_try_link "$LINENO"; then :
44772   gl_cv_libxml=yes
44773                gl_cv_LIBXML="$LIBXML2 $LIBICONV"
44774                gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
44775                gl_cv_INCXML="-I$libxml2_include_dir"
44776
44777 fi
44778 rm -f core conftest.err conftest.$ac_objext \
44779     conftest$ac_exeext conftest.$ac_ext
44780           fi
44781         fi
44782         CPPFLAGS="$gl_save_CPPFLAGS"
44783       fi
44784       LIBS="$gl_save_LIBS"
44785
44786 fi
44787
44788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml" >&5
44789 $as_echo_n "checking for libxml... " >&6; }
44790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml" >&5
44791 $as_echo "$gl_cv_libxml" >&6; }
44792     if test $gl_cv_libxml = yes; then
44793       LIBXML="$gl_cv_LIBXML"
44794       LTLIBXML="$gl_cv_LTLIBXML"
44795       INCXML="$gl_cv_INCXML"
44796     else
44797       gl_cv_libxml_use_included=yes
44798     fi
44799   fi
44800
44801
44802
44803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libxml" >&5
44804 $as_echo_n "checking whether to use the included libxml... " >&6; }
44805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_use_included" >&5
44806 $as_echo "$gl_cv_libxml_use_included" >&6; }
44807
44808   if test "$gl_cv_libxml_use_included" = yes; then
44809     LIBXML_H=
44810     LIBXML_H="$LIBXML_H libxml/DOCBparser.h"
44811     LIBXML_H="$LIBXML_H libxml/HTMLparser.h"
44812     LIBXML_H="$LIBXML_H libxml/HTMLtree.h"
44813     LIBXML_H="$LIBXML_H libxml/SAX2.h"
44814     LIBXML_H="$LIBXML_H libxml/SAX.h"
44815     LIBXML_H="$LIBXML_H libxml/c14n.h"
44816     LIBXML_H="$LIBXML_H libxml/catalog.h"
44817     LIBXML_H="$LIBXML_H libxml/chvalid.h"
44818     LIBXML_H="$LIBXML_H libxml/debugXML.h"
44819     LIBXML_H="$LIBXML_H libxml/dict.h"
44820     LIBXML_H="$LIBXML_H libxml/encoding.h"
44821     LIBXML_H="$LIBXML_H libxml/entities.h"
44822     LIBXML_H="$LIBXML_H libxml/globals.h"
44823     LIBXML_H="$LIBXML_H libxml/hash.h"
44824     LIBXML_H="$LIBXML_H libxml/list.h"
44825     LIBXML_H="$LIBXML_H libxml/nanoftp.h"
44826     LIBXML_H="$LIBXML_H libxml/nanohttp.h"
44827     LIBXML_H="$LIBXML_H libxml/parser.h"
44828     LIBXML_H="$LIBXML_H libxml/parserInternals.h"
44829     LIBXML_H="$LIBXML_H libxml/pattern.h"
44830     LIBXML_H="$LIBXML_H libxml/relaxng.h"
44831     LIBXML_H="$LIBXML_H libxml/schemasInternals.h"
44832     LIBXML_H="$LIBXML_H libxml/schematron.h"
44833     LIBXML_H="$LIBXML_H libxml/threads.h"
44834     LIBXML_H="$LIBXML_H libxml/tree.h"
44835     LIBXML_H="$LIBXML_H libxml/uri.h"
44836     LIBXML_H="$LIBXML_H libxml/valid.h"
44837     LIBXML_H="$LIBXML_H libxml/xinclude.h"
44838     LIBXML_H="$LIBXML_H libxml/xlink.h"
44839     LIBXML_H="$LIBXML_H libxml/xmlIO.h"
44840     LIBXML_H="$LIBXML_H libxml/xmlautomata.h"
44841     LIBXML_H="$LIBXML_H libxml/xmlerror.h"
44842     LIBXML_H="$LIBXML_H libxml/xmlexports.h"
44843     LIBXML_H="$LIBXML_H libxml/xmlmemory.h"
44844     LIBXML_H="$LIBXML_H libxml/xmlmodule.h"
44845     LIBXML_H="$LIBXML_H libxml/xmlreader.h"
44846     LIBXML_H="$LIBXML_H libxml/xmlregexp.h"
44847     LIBXML_H="$LIBXML_H libxml/xmlsave.h"
44848     LIBXML_H="$LIBXML_H libxml/xmlschemas.h"
44849     LIBXML_H="$LIBXML_H libxml/xmlschemastypes.h"
44850     LIBXML_H="$LIBXML_H libxml/xmlstring.h"
44851     LIBXML_H="$LIBXML_H libxml/xmlunicode.h"
44852     LIBXML_H="$LIBXML_H libxml/xmlversion.h"
44853     LIBXML_H="$LIBXML_H libxml/xmlwriter.h"
44854     LIBXML_H="$LIBXML_H libxml/xpath.h"
44855     LIBXML_H="$LIBXML_H libxml/xpathInternals.h"
44856     LIBXML_H="$LIBXML_H libxml/xpointer.h"
44857     for ac_header in arpa/inet.h ctype.h dlfcn.h dl.h errno.h \
44858                       fcntl.h float.h limits.h malloc.h math.h netdb.h \
44859                       netinet/in.h signal.h stdlib.h string.h \
44860                       strings.h sys/select.h sys/socket.h sys/stat.h \
44861                       sys/time.h sys/types.h time.h unistd.h
44862 do :
44863   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44864 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44865 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44866   cat >>confdefs.h <<_ACEOF
44867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44868 _ACEOF
44869
44870 fi
44871
44872 done
44873
44874     for ac_header in arpa/nameser.h
44875 do :
44876   ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
44877       #if HAVE_SYS_TYPES_H
44878       # include <sys/types.h>
44879       #endif
44880
44881 "
44882 if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
44883   cat >>confdefs.h <<_ACEOF
44884 #define HAVE_ARPA_NAMESER_H 1
44885 _ACEOF
44886
44887 fi
44888
44889 done
44890
44891     for ac_header in resolv.h
44892 do :
44893   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
44894       #if HAVE_SYS_TYPES_H
44895       # include <sys/types.h>
44896       #endif
44897       #if HAVE_NETINET_IN_H
44898       # include <netinet/in.h>
44899       #endif
44900       #if HAVE_ARPA_NAMESER_H
44901       # include <arpa/nameser.h>
44902       #endif
44903
44904 "
44905 if test "x$ac_cv_header_resolv_h" = xyes; then :
44906   cat >>confdefs.h <<_ACEOF
44907 #define HAVE_RESOLV_H 1
44908 _ACEOF
44909
44910 fi
44911
44912 done
44913
44914     for ac_func in dlopen getaddrinfo localtime shlload stat _stat strftime
44915 do :
44916   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44917 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44918 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44919   cat >>confdefs.h <<_ACEOF
44920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44921 _ACEOF
44922
44923 fi
44924 done
44925
44926
44927 $as_echo "#define VA_COPY va_copy" >>confdefs.h
44928
44929           else
44930     LIBXML_H=
44931   fi
44932
44933
44934    if test "$gl_cv_libxml_use_included" = yes; then
44935   INCLUDED_LIBXML_TRUE=
44936   INCLUDED_LIBXML_FALSE='#'
44937 else
44938   INCLUDED_LIBXML_TRUE='#'
44939   INCLUDED_LIBXML_FALSE=
44940 fi
44941
44942
44943
44944
44945
44946
44947
44948
44949
44950
44951   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
44952
44953
44954
44955
44956
44957
44958
44959
44960
44961   case "$host_os" in
44962     solaris*)
44963
44964 $as_echo "#define _LCONV_C99 1" >>confdefs.h
44965
44966       ;;
44967   esac
44968
44969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
44970 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
44971 if ${gl_cv_header_locale_h_posix2001+:} false; then :
44972   $as_echo_n "(cached) " >&6
44973 else
44974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44975 /* end confdefs.h.  */
44976 #include <locale.h>
44977             int x = LC_MESSAGES;
44978             int y = sizeof (((struct lconv *) 0)->decimal_point);
44979 int
44980 main ()
44981 {
44982
44983   ;
44984   return 0;
44985 }
44986 _ACEOF
44987 if ac_fn_c_try_compile "$LINENO"; then :
44988   gl_cv_header_locale_h_posix2001=yes
44989 else
44990   gl_cv_header_locale_h_posix2001=no
44991 fi
44992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44993 fi
44994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
44995 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
44996
44997
44998   if test $ac_cv_header_xlocale_h = yes; then
44999     HAVE_XLOCALE_H=1
45000                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
45001 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
45002 if ${gl_cv_header_locale_has_locale_t+:} false; then :
45003   $as_echo_n "(cached) " >&6
45004 else
45005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45006 /* end confdefs.h.  */
45007 #include <locale.h>
45008               locale_t x;
45009 int
45010 main ()
45011 {
45012
45013   ;
45014   return 0;
45015 }
45016 _ACEOF
45017 if ac_fn_c_try_compile "$LINENO"; then :
45018   gl_cv_header_locale_has_locale_t=yes
45019 else
45020   gl_cv_header_locale_has_locale_t=no
45021 fi
45022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45023
45024 fi
45025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
45026 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
45027     if test $gl_cv_header_locale_has_locale_t = yes; then
45028       gl_cv_header_locale_h_needs_xlocale_h=no
45029     else
45030       gl_cv_header_locale_h_needs_xlocale_h=yes
45031     fi
45032   else
45033     HAVE_XLOCALE_H=0
45034     gl_cv_header_locale_h_needs_xlocale_h=no
45035   fi
45036
45037
45038           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
45039 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
45040 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
45041   $as_echo_n "(cached) " >&6
45042 else
45043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45044 /* end confdefs.h.  */
45045 #include <locale.h>
45046             struct lconv l;
45047             int x = sizeof (l.decimal_point);
45048             int y = sizeof (l.int_p_cs_precedes);
45049 int
45050 main ()
45051 {
45052
45053   ;
45054   return 0;
45055 }
45056 _ACEOF
45057 if ac_fn_c_try_compile "$LINENO"; then :
45058   gl_cv_sys_struct_lconv_ok=yes
45059 else
45060   gl_cv_sys_struct_lconv_ok=no
45061 fi
45062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45063
45064 fi
45065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
45066 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
45067   if test $gl_cv_sys_struct_lconv_ok = no; then
45068     REPLACE_STRUCT_LCONV=1
45069   fi
45070
45071
45072
45073
45074
45075
45076
45077
45078
45079      if test $gl_cv_have_include_next = yes; then
45080        gl_cv_next_locale_h='<'locale.h'>'
45081      else
45082        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
45083 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
45084 if ${gl_cv_next_locale_h+:} false; then :
45085   $as_echo_n "(cached) " >&6
45086 else
45087
45088
45089
45090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45091 /* end confdefs.h.  */
45092 #include <locale.h>
45093 _ACEOF
45094                 case "$host_os" in
45095     aix*) gl_absname_cpp="$ac_cpp -C" ;;
45096     *)    gl_absname_cpp="$ac_cpp" ;;
45097   esac
45098
45099   case "$host_os" in
45100     mingw*)
45101                                           gl_dirsep_regex='[/\\]'
45102       ;;
45103     *)
45104       gl_dirsep_regex='\/'
45105       ;;
45106   esac
45107       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
45108   gl_header_literal_regex=`echo 'locale.h' \
45109                            | sed -e "$gl_make_literal_regex_sed"`
45110   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
45111       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
45112       s|^/[^/]|//&|
45113       p
45114       q
45115     }'
45116
45117         gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45118   sed -n "$gl_absolute_header_sed"`
45119
45120            gl_header=$gl_cv_absolute_locale_h
45121            gl_cv_next_locale_h='"'$gl_header'"'
45122
45123
45124 fi
45125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
45126 $as_echo "$gl_cv_next_locale_h" >&6; }
45127      fi
45128      NEXT_LOCALE_H=$gl_cv_next_locale_h
45129
45130      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45131        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45132        gl_next_as_first_directive='<'locale.h'>'
45133      else
45134        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45135        gl_next_as_first_directive=$gl_cv_next_locale_h
45136      fi
45137      NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
45138
45139
45140
45141
45142
45143
45144     for gl_func in setlocale duplocale; do
45145     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
45147 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45148 if eval \${$as_gl_Symbol+:} false; then :
45149   $as_echo_n "(cached) " >&6
45150 else
45151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45152 /* end confdefs.h.  */
45153 #include <locale.h>
45154 /* Some systems provide declarations in a non-standard header.  */
45155 #if HAVE_XLOCALE_H
45156 # include <xlocale.h>
45157 #endif
45158
45159 int
45160 main ()
45161 {
45162 #undef $gl_func
45163   (void) $gl_func;
45164   ;
45165   return 0;
45166 }
45167 _ACEOF
45168 if ac_fn_c_try_compile "$LINENO"; then :
45169   eval "$as_gl_Symbol=yes"
45170 else
45171   eval "$as_gl_Symbol=no"
45172 fi
45173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45174 fi
45175 eval ac_res=\$$as_gl_Symbol
45176                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45177 $as_echo "$ac_res" >&6; }
45178     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
45179   cat >>confdefs.h <<_ACEOF
45180 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45181 _ACEOF
45182
45183                      eval ac_cv_have_decl_$gl_func=yes
45184 fi
45185       done
45186
45187
45188
45189
45190
45191   for ac_func in setlocale uselocale
45192 do :
45193   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45194 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
45195 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
45196   cat >>confdefs.h <<_ACEOF
45197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45198 _ACEOF
45199
45200 fi
45201 done
45202
45203       if test $ac_cv_func_uselocale = yes; then
45204     for ac_func in getlocalename_l
45205 do :
45206   ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
45207 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
45208   cat >>confdefs.h <<_ACEOF
45209 #define HAVE_GETLOCALENAME_L 1
45210 _ACEOF
45211
45212 fi
45213 done
45214
45215   fi
45216
45217
45218
45219   if test "$gl_threads_api" = posix; then
45220     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
45221     # pthread_rwlock_* functions.
45222     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
45223 "
45224 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
45225
45226 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
45227
45228 fi
45229
45230     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
45231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45232 /* end confdefs.h.  */
45233
45234       #include <pthread.h>
45235 int
45236 main ()
45237 {
45238
45239 #if __FreeBSD__ == 4
45240 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
45241 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
45242        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
45243 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
45244 #else
45245 int x = (int)PTHREAD_MUTEX_RECURSIVE;
45246 return !x;
45247 #endif
45248
45249   ;
45250   return 0;
45251 }
45252 _ACEOF
45253 if ac_fn_c_try_compile "$LINENO"; then :
45254
45255 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
45256
45257 fi
45258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45259   fi
45260   :
45261
45262
45263
45264 cat >>confdefs.h <<_ACEOF
45265 #define GNULIB_LOCK 1
45266 _ACEOF
45267
45268
45269
45270
45271
45272
45273
45274
45275
45276   LOG10_LIBM="$POW_LIBM"
45277
45278
45279
45280
45281   save_LIBS="$LIBS"
45282   LIBS="$LIBS $LOG10_LIBM"
45283
45284
45285      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log10 works" >&5
45286 $as_echo_n "checking whether log10 works... " >&6; }
45287 if ${gl_cv_func_log10_works+:} false; then :
45288   $as_echo_n "(cached) " >&6
45289 else
45290
45291       if test "$cross_compiling" = yes; then :
45292   case "$host_os" in
45293            osf*) gl_cv_func_log10_works="guessing no";;
45294            *)    gl_cv_func_log10_works="guessing yes";;
45295          esac
45296
45297 else
45298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45299 /* end confdefs.h.  */
45300
45301 #include <math.h>
45302 volatile double x;
45303 double y;
45304 int main ()
45305 {
45306   x = -0.0;
45307   y = log10 (x);
45308   if (!(y + y == y))
45309     return 1;
45310   return 0;
45311 }
45312
45313 _ACEOF
45314 if ac_fn_c_try_run "$LINENO"; then :
45315   gl_cv_func_log10_works=yes
45316 else
45317   gl_cv_func_log10_works=no
45318 fi
45319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45320   conftest.$ac_objext conftest.beam conftest.$ac_ext
45321 fi
45322
45323
45324 fi
45325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_log10_works" >&5
45326 $as_echo "$gl_cv_func_log10_works" >&6; }
45327
45328   LIBS="$save_LIBS"
45329   case "$gl_cv_func_log10_works" in
45330     *yes) ;;
45331     *) REPLACE_LOG10=1 ;;
45332   esac
45333
45334
45335
45336   if test $REPLACE_LOG10 = 1; then
45337
45338
45339
45340
45341
45342
45343
45344
45345   gl_LIBOBJS="$gl_LIBOBJS log10.$ac_objext"
45346
45347   fi
45348
45349
45350
45351
45352
45353           GNULIB_LOG10=1
45354
45355
45356
45357
45358
45359 $as_echo "#define GNULIB_TEST_LOG10 1" >>confdefs.h
45360
45361
45362
45363
45364
45365
45366   if test $ac_cv_func_lstat = yes; then
45367
45368     case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
45369       *no)
45370         REPLACE_LSTAT=1
45371         ;;
45372     esac
45373   else
45374     HAVE_LSTAT=0
45375   fi
45376
45377   if test $REPLACE_LSTAT = 1; then
45378
45379
45380
45381
45382
45383
45384
45385
45386   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
45387
45388     :
45389   fi
45390
45391
45392
45393
45394
45395           GNULIB_LSTAT=1
45396
45397
45398
45399
45400
45401 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
45402
45403
45404
45405
45406
45407
45408   if test $gl_cv_func_malloc_posix = yes; then
45409
45410 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
45411
45412   else
45413     REPLACE_MALLOC=1
45414   fi
45415
45416   if test $REPLACE_MALLOC = 1; then
45417
45418
45419
45420
45421
45422
45423
45424
45425   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
45426
45427   fi
45428
45429
45430
45431
45432
45433           GNULIB_MALLOC_POSIX=1
45434
45435
45436
45437
45438
45439 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
45440
45441
45442
45443
45444
45445
45446
45447
45448
45449
45450
45451
45452
45453
45454
45455
45456
45457
45458      if test $gl_cv_have_include_next = yes; then
45459        gl_cv_next_math_h='<'math.h'>'
45460      else
45461        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
45462 $as_echo_n "checking absolute name of <math.h>... " >&6; }
45463 if ${gl_cv_next_math_h+:} false; then :
45464   $as_echo_n "(cached) " >&6
45465 else
45466
45467              if test $ac_cv_header_math_h = yes; then
45468
45469
45470
45471
45472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45473 /* end confdefs.h.  */
45474 #include <math.h>
45475 _ACEOF
45476                 case "$host_os" in
45477     aix*) gl_absname_cpp="$ac_cpp -C" ;;
45478     *)    gl_absname_cpp="$ac_cpp" ;;
45479   esac
45480
45481   case "$host_os" in
45482     mingw*)
45483                                           gl_dirsep_regex='[/\\]'
45484       ;;
45485     *)
45486       gl_dirsep_regex='\/'
45487       ;;
45488   esac
45489       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
45490   gl_header_literal_regex=`echo 'math.h' \
45491                            | sed -e "$gl_make_literal_regex_sed"`
45492   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
45493       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
45494       s|^/[^/]|//&|
45495       p
45496       q
45497     }'
45498
45499         gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45500   sed -n "$gl_absolute_header_sed"`
45501
45502            gl_header=$gl_cv_absolute_math_h
45503            gl_cv_next_math_h='"'$gl_header'"'
45504           else
45505                gl_cv_next_math_h='<'math.h'>'
45506              fi
45507
45508
45509 fi
45510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
45511 $as_echo "$gl_cv_next_math_h" >&6; }
45512      fi
45513      NEXT_MATH_H=$gl_cv_next_math_h
45514
45515      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45516        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45517        gl_next_as_first_directive='<'math.h'>'
45518      else
45519        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45520        gl_next_as_first_directive=$gl_cv_next_math_h
45521      fi
45522      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
45523
45524
45525
45526
45527
45528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
45529 $as_echo_n "checking whether NAN macro works... " >&6; }
45530 if ${gl_cv_header_math_nan_works+:} false; then :
45531   $as_echo_n "(cached) " >&6
45532 else
45533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45534 /* end confdefs.h.  */
45535 #include <math.h>
45536 int
45537 main ()
45538 {
45539 /* Solaris 10 has a broken definition of NAN.  Other platforms
45540         fail to provide NAN, or provide it only in C99 mode; this
45541         test only needs to fail when NAN is provided but wrong.  */
45542          float f = 1.0f;
45543 #ifdef NAN
45544          f = NAN;
45545 #endif
45546          return f == 0;
45547   ;
45548   return 0;
45549 }
45550 _ACEOF
45551 if ac_fn_c_try_compile "$LINENO"; then :
45552   gl_cv_header_math_nan_works=yes
45553 else
45554   gl_cv_header_math_nan_works=no
45555 fi
45556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45557 fi
45558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
45559 $as_echo "$gl_cv_header_math_nan_works" >&6; }
45560   if test $gl_cv_header_math_nan_works = no; then
45561     REPLACE_NAN=1
45562   fi
45563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
45564 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
45565 if ${gl_cv_header_math_huge_val_works+:} false; then :
45566   $as_echo_n "(cached) " >&6
45567 else
45568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45569 /* end confdefs.h.  */
45570 #include <math.h>
45571 int
45572 main ()
45573 {
45574 /* Solaris 10 has a broken definition of HUGE_VAL.  */
45575          double d = HUGE_VAL;
45576          return d == 0;
45577   ;
45578   return 0;
45579 }
45580 _ACEOF
45581 if ac_fn_c_try_compile "$LINENO"; then :
45582   gl_cv_header_math_huge_val_works=yes
45583 else
45584   gl_cv_header_math_huge_val_works=no
45585 fi
45586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45587 fi
45588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
45589 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
45590   if test $gl_cv_header_math_huge_val_works = no; then
45591     REPLACE_HUGE_VAL=1
45592   fi
45593
45594
45595     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
45596     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
45598 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45599 if eval \${$as_gl_Symbol+:} false; then :
45600   $as_echo_n "(cached) " >&6
45601 else
45602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45603 /* end confdefs.h.  */
45604 #include <math.h>
45605 int
45606 main ()
45607 {
45608 #undef $gl_func
45609   (void) $gl_func;
45610   ;
45611   return 0;
45612 }
45613 _ACEOF
45614 if ac_fn_c_try_compile "$LINENO"; then :
45615   eval "$as_gl_Symbol=yes"
45616 else
45617   eval "$as_gl_Symbol=no"
45618 fi
45619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45620 fi
45621 eval ac_res=\$$as_gl_Symbol
45622                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45623 $as_echo "$ac_res" >&6; }
45624     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
45625   cat >>confdefs.h <<_ACEOF
45626 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45627 _ACEOF
45628
45629                      eval ac_cv_have_decl_$gl_func=yes
45630 fi
45631       done
45632
45633
45634
45635
45636
45637
45638
45639   :
45640
45641
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
45652
45653
45654
45655      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
45656 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
45657 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
45658   $as_echo_n "(cached) " >&6
45659 else
45660
45661                   case "$host_os" in
45662                      # Guess no on AIX and OSF/1.
45663         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
45664                      # Guess yes otherwise.
45665         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
45666       esac
45667       if test $LOCALE_JA != none; then
45668         if test "$cross_compiling" = yes; then :
45669   :
45670 else
45671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45672 /* end confdefs.h.  */
45673
45674 #include <locale.h>
45675 #include <string.h>
45676 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45677    <wchar.h>.
45678    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45679    included before <wchar.h>.  */
45680 #include <stddef.h>
45681 #include <stdio.h>
45682 #include <time.h>
45683 #include <wchar.h>
45684 int main ()
45685 {
45686   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
45687     {
45688       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
45689       mbstate_t state;
45690       wchar_t wc;
45691
45692       memset (&state, '\0', sizeof (mbstate_t));
45693       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
45694         if (mbsinit (&state))
45695           return 1;
45696     }
45697   return 0;
45698 }
45699 _ACEOF
45700 if ac_fn_c_try_run "$LINENO"; then :
45701   gl_cv_func_mbrtowc_incomplete_state=yes
45702 else
45703   gl_cv_func_mbrtowc_incomplete_state=no
45704 fi
45705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45706   conftest.$ac_objext conftest.beam conftest.$ac_ext
45707 fi
45708
45709       fi
45710
45711 fi
45712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
45713 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
45714
45715
45716
45717
45718      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
45719 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
45720 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
45721   $as_echo_n "(cached) " >&6
45722 else
45723
45724                   case "$host_os" in
45725                     # Guess no on Solaris 8.
45726         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
45727                     # Guess yes otherwise.
45728         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
45729       esac
45730       if test $LOCALE_ZH_CN != none; then
45731         if test "$cross_compiling" = yes; then :
45732   :
45733 else
45734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45735 /* end confdefs.h.  */
45736
45737 #include <locale.h>
45738 #include <stdlib.h>
45739 #include <string.h>
45740 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45741    <wchar.h>.
45742    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45743    included before <wchar.h>.  */
45744 #include <stddef.h>
45745 #include <stdio.h>
45746 #include <time.h>
45747 #include <wchar.h>
45748 int main ()
45749 {
45750   /* This fails on Solaris 8:
45751      mbrtowc returns 2, and sets wc to 0x00F0.
45752      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
45753   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
45754     {
45755       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
45756       mbstate_t state;
45757       wchar_t wc;
45758
45759       memset (&state, '\0', sizeof (mbstate_t));
45760       if (mbrtowc (&wc, input + 3, 6, &state) != 4
45761           && mbtowc (&wc, input + 3, 6) == 4)
45762         return 1;
45763     }
45764   return 0;
45765 }
45766 _ACEOF
45767 if ac_fn_c_try_run "$LINENO"; then :
45768   gl_cv_func_mbrtowc_sanitycheck=yes
45769 else
45770   gl_cv_func_mbrtowc_sanitycheck=no
45771 fi
45772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45773   conftest.$ac_objext conftest.beam conftest.$ac_ext
45774 fi
45775
45776       fi
45777
45778 fi
45779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
45780 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
45781
45782     REPLACE_MBSTATE_T=0
45783     case "$gl_cv_func_mbrtowc_incomplete_state" in
45784       *yes) ;;
45785       *) REPLACE_MBSTATE_T=1 ;;
45786     esac
45787     case "$gl_cv_func_mbrtowc_sanitycheck" in
45788       *yes) ;;
45789       *) REPLACE_MBSTATE_T=1 ;;
45790     esac
45791   else
45792     REPLACE_MBSTATE_T=1
45793   fi
45794
45795
45796
45797   if test $ac_cv_func_mbrtowc = no; then
45798     HAVE_MBRTOWC=0
45799     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
45800 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45801    <wchar.h>.
45802    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45803    included before <wchar.h>.  */
45804 #include <stddef.h>
45805 #include <stdio.h>
45806 #include <time.h>
45807 #include <wchar.h>
45808
45809 "
45810 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
45811   ac_have_decl=1
45812 else
45813   ac_have_decl=0
45814 fi
45815
45816 cat >>confdefs.h <<_ACEOF
45817 #define HAVE_DECL_MBRTOWC $ac_have_decl
45818 _ACEOF
45819
45820     if test $ac_cv_have_decl_mbrtowc = yes; then
45821                         REPLACE_MBRTOWC=1
45822     fi
45823   else
45824     if test $REPLACE_MBSTATE_T = 1; then
45825       REPLACE_MBRTOWC=1
45826     else
45827
45828
45829
45830      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
45831 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
45832 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
45833   $as_echo_n "(cached) " >&6
45834 else
45835
45836                   case "$host_os" in
45837                   # Guess no on Solaris.
45838         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
45839                   # Guess yes otherwise.
45840         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
45841       esac
45842       if test $LOCALE_FR_UTF8 != none; then
45843         if test "$cross_compiling" = yes; then :
45844   :
45845 else
45846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45847 /* end confdefs.h.  */
45848
45849 #include <locale.h>
45850 #include <stdlib.h>
45851 #include <string.h>
45852 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45853    <wchar.h>.
45854    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45855    included before <wchar.h>.  */
45856 #include <stddef.h>
45857 #include <stdio.h>
45858 #include <time.h>
45859 #include <wchar.h>
45860 int main ()
45861 {
45862   int result = 0;
45863
45864   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
45865     {
45866       char input[] = "\303\237er";
45867       mbstate_t state;
45868       wchar_t wc;
45869       size_t ret;
45870
45871       memset (&state, '\0', sizeof (mbstate_t));
45872       wc = (wchar_t) 0xBADFACE;
45873       ret = mbrtowc (&wc, input, 5, &state);
45874       if (ret != 2)
45875         result |= 1;
45876       if (!mbsinit (&state))
45877         result |= 2;
45878
45879       memset (&state, '\0', sizeof (mbstate_t));
45880       ret = mbrtowc (NULL, input, 5, &state);
45881       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
45882         result |= 4;
45883       if (!mbsinit (&state))
45884         result |= 8;
45885     }
45886   return result;
45887 }
45888 _ACEOF
45889 if ac_fn_c_try_run "$LINENO"; then :
45890   gl_cv_func_mbrtowc_null_arg1=yes
45891 else
45892   gl_cv_func_mbrtowc_null_arg1=no
45893 fi
45894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45895   conftest.$ac_objext conftest.beam conftest.$ac_ext
45896 fi
45897
45898       fi
45899
45900 fi
45901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
45902 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
45903
45904
45905
45906
45907      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
45908 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
45909 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
45910   $as_echo_n "(cached) " >&6
45911 else
45912
45913                   case "$host_os" in
45914               # Guess no on OSF/1.
45915         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
45916               # Guess yes otherwise.
45917         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
45918       esac
45919       if test $LOCALE_FR_UTF8 != none; then
45920         if test "$cross_compiling" = yes; then :
45921   :
45922 else
45923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45924 /* end confdefs.h.  */
45925
45926 #include <locale.h>
45927 #include <string.h>
45928 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45929    <wchar.h>.
45930    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45931    included before <wchar.h>.  */
45932 #include <stddef.h>
45933 #include <stdio.h>
45934 #include <time.h>
45935 #include <wchar.h>
45936 int main ()
45937 {
45938   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
45939     {
45940       mbstate_t state;
45941       wchar_t wc;
45942       int ret;
45943
45944       memset (&state, '\0', sizeof (mbstate_t));
45945       wc = (wchar_t) 0xBADFACE;
45946       mbrtowc (&wc, NULL, 5, &state);
45947       /* Check that wc was not modified.  */
45948       if (wc != (wchar_t) 0xBADFACE)
45949         return 1;
45950     }
45951   return 0;
45952 }
45953 _ACEOF
45954 if ac_fn_c_try_run "$LINENO"; then :
45955   gl_cv_func_mbrtowc_null_arg2=yes
45956 else
45957   gl_cv_func_mbrtowc_null_arg2=no
45958 fi
45959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45960   conftest.$ac_objext conftest.beam conftest.$ac_ext
45961 fi
45962
45963       fi
45964
45965 fi
45966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
45967 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
45968
45969
45970
45971
45972
45973
45974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
45975 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
45976 if ${gl_cv_func_mbrtowc_retval+:} false; then :
45977   $as_echo_n "(cached) " >&6
45978 else
45979
45980                   case "$host_os" in
45981                                    # Guess no on HP-UX, Solaris, native Windows.
45982         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
45983                                    # Guess yes otherwise.
45984         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
45985       esac
45986       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
45987          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
45988         if test "$cross_compiling" = yes; then :
45989   :
45990 else
45991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45992 /* end confdefs.h.  */
45993
45994 #include <locale.h>
45995 #include <string.h>
45996 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45997    <wchar.h>.
45998    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
45999    included before <wchar.h>.  */
46000 #include <stddef.h>
46001 #include <stdio.h>
46002 #include <time.h>
46003 #include <wchar.h>
46004 int main ()
46005 {
46006   int result = 0;
46007   int found_some_locale = 0;
46008   /* This fails on Solaris.  */
46009   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
46010     {
46011       char input[] = "B\303\274\303\237er"; /* "Büßer" */
46012       mbstate_t state;
46013       wchar_t wc;
46014
46015       memset (&state, '\0', sizeof (mbstate_t));
46016       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46017         {
46018           input[1] = '\0';
46019           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
46020             result |= 1;
46021         }
46022       found_some_locale = 1;
46023     }
46024   /* This fails on HP-UX 11.11.  */
46025   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
46026     {
46027       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
46028       mbstate_t state;
46029       wchar_t wc;
46030
46031       memset (&state, '\0', sizeof (mbstate_t));
46032       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46033         {
46034           input[1] = '\0';
46035           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
46036             result |= 2;
46037         }
46038       found_some_locale = 1;
46039     }
46040   /* This fails on native Windows.  */
46041   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
46042     {
46043       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
46044       mbstate_t state;
46045       wchar_t wc;
46046
46047       memset (&state, '\0', sizeof (mbstate_t));
46048       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
46049         {
46050           input[3] = '\0';
46051           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
46052             result |= 4;
46053         }
46054       found_some_locale = 1;
46055     }
46056   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
46057     {
46058       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
46059       mbstate_t state;
46060       wchar_t wc;
46061
46062       memset (&state, '\0', sizeof (mbstate_t));
46063       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
46064         {
46065           input[3] = '\0';
46066           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
46067             result |= 8;
46068         }
46069       found_some_locale = 1;
46070     }
46071   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
46072     {
46073       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
46074       mbstate_t state;
46075       wchar_t wc;
46076
46077       memset (&state, '\0', sizeof (mbstate_t));
46078       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
46079         {
46080           input[3] = '\0';
46081           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
46082             result |= 16;
46083         }
46084       found_some_locale = 1;
46085     }
46086   return (found_some_locale ? result : 77);
46087 }
46088 _ACEOF
46089 if ac_fn_c_try_run "$LINENO"; then :
46090   gl_cv_func_mbrtowc_retval=yes
46091 else
46092   if test $? != 77; then
46093              gl_cv_func_mbrtowc_retval=no
46094            fi
46095
46096 fi
46097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46098   conftest.$ac_objext conftest.beam conftest.$ac_ext
46099 fi
46100
46101       fi
46102
46103 fi
46104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
46105 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
46106
46107
46108
46109
46110      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
46111 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
46112 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
46113   $as_echo_n "(cached) " >&6
46114 else
46115
46116                   case "$host_os" in
46117                        # Guess no on Solaris 8 and 9.
46118         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
46119                        # Guess yes otherwise.
46120         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
46121       esac
46122       if test $LOCALE_ZH_CN != none; then
46123         if test "$cross_compiling" = yes; then :
46124   :
46125 else
46126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46127 /* end confdefs.h.  */
46128
46129 #include <locale.h>
46130 #include <string.h>
46131 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46132    <wchar.h>.
46133    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46134    included before <wchar.h>.  */
46135 #include <stddef.h>
46136 #include <stdio.h>
46137 #include <time.h>
46138 #include <wchar.h>
46139 int main ()
46140 {
46141   /* This fails on Solaris 8 and 9.  */
46142   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46143     {
46144       mbstate_t state;
46145       wchar_t wc;
46146
46147       memset (&state, '\0', sizeof (mbstate_t));
46148       if (mbrtowc (&wc, "", 1, &state) != 0)
46149         return 1;
46150     }
46151   return 0;
46152 }
46153 _ACEOF
46154 if ac_fn_c_try_run "$LINENO"; then :
46155   gl_cv_func_mbrtowc_nul_retval=yes
46156 else
46157   gl_cv_func_mbrtowc_nul_retval=no
46158 fi
46159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46160   conftest.$ac_objext conftest.beam conftest.$ac_ext
46161 fi
46162
46163       fi
46164
46165 fi
46166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
46167 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
46168
46169
46170
46171      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
46172 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
46173 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
46174   $as_echo_n "(cached) " >&6
46175 else
46176
46177                   case "$host_os" in
46178                      # Guess no on AIX and glibc systems.
46179         aix* | *-gnu*)
46180                     gl_cv_func_mbrtowc_empty_input="guessing no" ;;
46181         *)          gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
46182       esac
46183       if test "$cross_compiling" = yes; then :
46184   :
46185 else
46186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46187 /* end confdefs.h.  */
46188
46189            #include <wchar.h>
46190            static wchar_t wc;
46191            static mbstate_t mbs;
46192            int
46193            main (void)
46194            {
46195              return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
46196            }
46197 _ACEOF
46198 if ac_fn_c_try_run "$LINENO"; then :
46199   gl_cv_func_mbrtowc_empty_input=yes
46200 else
46201   gl_cv_func_mbrtowc_empty_input=no
46202 fi
46203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46204   conftest.$ac_objext conftest.beam conftest.$ac_ext
46205 fi
46206
46207
46208 fi
46209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
46210 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
46211
46212       case "$gl_cv_func_mbrtowc_null_arg1" in
46213         *yes) ;;
46214         *)
46215 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
46216
46217            REPLACE_MBRTOWC=1
46218            ;;
46219       esac
46220       case "$gl_cv_func_mbrtowc_null_arg2" in
46221         *yes) ;;
46222         *)
46223 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
46224
46225            REPLACE_MBRTOWC=1
46226            ;;
46227       esac
46228       case "$gl_cv_func_mbrtowc_retval" in
46229         *yes) ;;
46230         *)
46231 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
46232
46233            REPLACE_MBRTOWC=1
46234            ;;
46235       esac
46236       case "$gl_cv_func_mbrtowc_nul_retval" in
46237         *yes) ;;
46238         *)
46239 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
46240
46241            REPLACE_MBRTOWC=1
46242            ;;
46243       esac
46244       case "$gl_cv_func_mbrtowc_empty_input" in
46245         *yes) ;;
46246         *)
46247 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
46248
46249            REPLACE_MBRTOWC=1
46250            ;;
46251       esac
46252     fi
46253   fi
46254
46255   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
46256
46257
46258
46259
46260
46261
46262
46263
46264   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
46265
46266
46267   :
46268
46269   fi
46270
46271
46272
46273
46274
46275           GNULIB_MBRTOWC=1
46276
46277
46278
46279
46280
46281 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
46282
46283
46284
46285
46286
46287
46288
46289
46290
46291
46292
46293
46294
46295
46296   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
46297
46298
46299
46300      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
46301 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
46302 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
46303   $as_echo_n "(cached) " >&6
46304 else
46305
46306                   case "$host_os" in
46307                      # Guess no on AIX and OSF/1.
46308         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
46309                      # Guess yes otherwise.
46310         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
46311       esac
46312       if test $LOCALE_JA != none; then
46313         if test "$cross_compiling" = yes; then :
46314   :
46315 else
46316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46317 /* end confdefs.h.  */
46318
46319 #include <locale.h>
46320 #include <string.h>
46321 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46322    <wchar.h>.
46323    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46324    included before <wchar.h>.  */
46325 #include <stddef.h>
46326 #include <stdio.h>
46327 #include <time.h>
46328 #include <wchar.h>
46329 int main ()
46330 {
46331   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
46332     {
46333       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
46334       mbstate_t state;
46335       wchar_t wc;
46336
46337       memset (&state, '\0', sizeof (mbstate_t));
46338       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46339         if (mbsinit (&state))
46340           return 1;
46341     }
46342   return 0;
46343 }
46344 _ACEOF
46345 if ac_fn_c_try_run "$LINENO"; then :
46346   gl_cv_func_mbrtowc_incomplete_state=yes
46347 else
46348   gl_cv_func_mbrtowc_incomplete_state=no
46349 fi
46350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46351   conftest.$ac_objext conftest.beam conftest.$ac_ext
46352 fi
46353
46354       fi
46355
46356 fi
46357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
46358 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
46359
46360
46361
46362
46363      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
46364 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
46365 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
46366   $as_echo_n "(cached) " >&6
46367 else
46368
46369                   case "$host_os" in
46370                     # Guess no on Solaris 8.
46371         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
46372                     # Guess yes otherwise.
46373         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
46374       esac
46375       if test $LOCALE_ZH_CN != none; then
46376         if test "$cross_compiling" = yes; then :
46377   :
46378 else
46379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46380 /* end confdefs.h.  */
46381
46382 #include <locale.h>
46383 #include <stdlib.h>
46384 #include <string.h>
46385 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46386    <wchar.h>.
46387    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46388    included before <wchar.h>.  */
46389 #include <stddef.h>
46390 #include <stdio.h>
46391 #include <time.h>
46392 #include <wchar.h>
46393 int main ()
46394 {
46395   /* This fails on Solaris 8:
46396      mbrtowc returns 2, and sets wc to 0x00F0.
46397      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
46398   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46399     {
46400       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
46401       mbstate_t state;
46402       wchar_t wc;
46403
46404       memset (&state, '\0', sizeof (mbstate_t));
46405       if (mbrtowc (&wc, input + 3, 6, &state) != 4
46406           && mbtowc (&wc, input + 3, 6) == 4)
46407         return 1;
46408     }
46409   return 0;
46410 }
46411 _ACEOF
46412 if ac_fn_c_try_run "$LINENO"; then :
46413   gl_cv_func_mbrtowc_sanitycheck=yes
46414 else
46415   gl_cv_func_mbrtowc_sanitycheck=no
46416 fi
46417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46418   conftest.$ac_objext conftest.beam conftest.$ac_ext
46419 fi
46420
46421       fi
46422
46423 fi
46424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
46425 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
46426
46427     REPLACE_MBSTATE_T=0
46428     case "$gl_cv_func_mbrtowc_incomplete_state" in
46429       *yes) ;;
46430       *) REPLACE_MBSTATE_T=1 ;;
46431     esac
46432     case "$gl_cv_func_mbrtowc_sanitycheck" in
46433       *yes) ;;
46434       *) REPLACE_MBSTATE_T=1 ;;
46435     esac
46436   else
46437     REPLACE_MBSTATE_T=1
46438   fi
46439
46440
46441
46442   if test $ac_cv_func_mbsinit = no; then
46443     HAVE_MBSINIT=0
46444     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
46445 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46446    <wchar.h>.
46447    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46448    included before <wchar.h>.  */
46449 #include <stddef.h>
46450 #include <stdio.h>
46451 #include <time.h>
46452 #include <wchar.h>
46453
46454 "
46455 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
46456   ac_have_decl=1
46457 else
46458   ac_have_decl=0
46459 fi
46460
46461 cat >>confdefs.h <<_ACEOF
46462 #define HAVE_DECL_MBSINIT $ac_have_decl
46463 _ACEOF
46464
46465     if test $ac_cv_have_decl_mbsinit = yes; then
46466                         REPLACE_MBSINIT=1
46467     fi
46468   else
46469     if test $REPLACE_MBSTATE_T = 1; then
46470       REPLACE_MBSINIT=1
46471     else
46472                         case "$host_os" in
46473         mingw*) REPLACE_MBSINIT=1 ;;
46474       esac
46475     fi
46476   fi
46477
46478   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
46479
46480
46481
46482
46483
46484
46485
46486
46487   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
46488
46489
46490   :
46491
46492   fi
46493
46494
46495
46496
46497
46498           GNULIB_MBSINIT=1
46499
46500
46501
46502
46503
46504 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
46505
46506
46507
46508
46509
46510
46511   if test $ac_cv_func_mbslen = yes; then
46512     HAVE_MBSLEN=1
46513   else
46514     HAVE_MBSLEN=0
46515   fi
46516
46517
46518
46519
46520
46521
46522           GNULIB_MBSLEN=1
46523
46524
46525
46526
46527
46528 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
46529
46530
46531
46532
46533
46534
46535
46536
46537
46538
46539
46540
46541
46542   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
46543
46544
46545
46546      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
46547 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
46548 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
46549   $as_echo_n "(cached) " >&6
46550 else
46551
46552                   case "$host_os" in
46553                      # Guess no on AIX and OSF/1.
46554         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
46555                      # Guess yes otherwise.
46556         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
46557       esac
46558       if test $LOCALE_JA != none; then
46559         if test "$cross_compiling" = yes; then :
46560   :
46561 else
46562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46563 /* end confdefs.h.  */
46564
46565 #include <locale.h>
46566 #include <string.h>
46567 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46568    <wchar.h>.
46569    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46570    included before <wchar.h>.  */
46571 #include <stddef.h>
46572 #include <stdio.h>
46573 #include <time.h>
46574 #include <wchar.h>
46575 int main ()
46576 {
46577   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
46578     {
46579       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
46580       mbstate_t state;
46581       wchar_t wc;
46582
46583       memset (&state, '\0', sizeof (mbstate_t));
46584       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46585         if (mbsinit (&state))
46586           return 1;
46587     }
46588   return 0;
46589 }
46590 _ACEOF
46591 if ac_fn_c_try_run "$LINENO"; then :
46592   gl_cv_func_mbrtowc_incomplete_state=yes
46593 else
46594   gl_cv_func_mbrtowc_incomplete_state=no
46595 fi
46596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46597   conftest.$ac_objext conftest.beam conftest.$ac_ext
46598 fi
46599
46600       fi
46601
46602 fi
46603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
46604 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
46605
46606
46607
46608
46609      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
46610 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
46611 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
46612   $as_echo_n "(cached) " >&6
46613 else
46614
46615                   case "$host_os" in
46616                     # Guess no on Solaris 8.
46617         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
46618                     # Guess yes otherwise.
46619         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
46620       esac
46621       if test $LOCALE_ZH_CN != none; then
46622         if test "$cross_compiling" = yes; then :
46623   :
46624 else
46625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46626 /* end confdefs.h.  */
46627
46628 #include <locale.h>
46629 #include <stdlib.h>
46630 #include <string.h>
46631 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46632    <wchar.h>.
46633    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46634    included before <wchar.h>.  */
46635 #include <stddef.h>
46636 #include <stdio.h>
46637 #include <time.h>
46638 #include <wchar.h>
46639 int main ()
46640 {
46641   /* This fails on Solaris 8:
46642      mbrtowc returns 2, and sets wc to 0x00F0.
46643      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
46644   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46645     {
46646       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
46647       mbstate_t state;
46648       wchar_t wc;
46649
46650       memset (&state, '\0', sizeof (mbstate_t));
46651       if (mbrtowc (&wc, input + 3, 6, &state) != 4
46652           && mbtowc (&wc, input + 3, 6) == 4)
46653         return 1;
46654     }
46655   return 0;
46656 }
46657 _ACEOF
46658 if ac_fn_c_try_run "$LINENO"; then :
46659   gl_cv_func_mbrtowc_sanitycheck=yes
46660 else
46661   gl_cv_func_mbrtowc_sanitycheck=no
46662 fi
46663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46664   conftest.$ac_objext conftest.beam conftest.$ac_ext
46665 fi
46666
46667       fi
46668
46669 fi
46670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
46671 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
46672
46673     REPLACE_MBSTATE_T=0
46674     case "$gl_cv_func_mbrtowc_incomplete_state" in
46675       *yes) ;;
46676       *) REPLACE_MBSTATE_T=1 ;;
46677     esac
46678     case "$gl_cv_func_mbrtowc_sanitycheck" in
46679       *yes) ;;
46680       *) REPLACE_MBSTATE_T=1 ;;
46681     esac
46682   else
46683     REPLACE_MBSTATE_T=1
46684   fi
46685
46686
46687
46688   if test $ac_cv_func_mbsrtowcs = no; then
46689     HAVE_MBSRTOWCS=0
46690     ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
46691 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46692    <wchar.h>.
46693    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46694    included before <wchar.h>.  */
46695 #include <stddef.h>
46696 #include <stdio.h>
46697 #include <time.h>
46698 #include <wchar.h>
46699
46700 "
46701 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
46702   ac_have_decl=1
46703 else
46704   ac_have_decl=0
46705 fi
46706
46707 cat >>confdefs.h <<_ACEOF
46708 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
46709 _ACEOF
46710
46711     if test $ac_cv_have_decl_mbsrtowcs = yes; then
46712                         REPLACE_MBSRTOWCS=1
46713     fi
46714   else
46715     if test $REPLACE_MBSTATE_T = 1; then
46716       REPLACE_MBSRTOWCS=1
46717     else
46718
46719
46720
46721
46722
46723
46724      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
46725 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
46726 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
46727   $as_echo_n "(cached) " >&6
46728 else
46729
46730                   case "$host_os" in
46731                                    # Guess no on HP-UX, Solaris, mingw.
46732         hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
46733                                    # Guess yes otherwise.
46734         *)                         gl_cv_func_mbsrtowcs_works="guessing yes" ;;
46735       esac
46736       if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
46737         if test "$cross_compiling" = yes; then :
46738   :
46739 else
46740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46741 /* end confdefs.h.  */
46742
46743 #include <locale.h>
46744 #include <string.h>
46745 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46746    <wchar.h>.
46747    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46748    included before <wchar.h>.  */
46749 #include <stddef.h>
46750 #include <stdio.h>
46751 #include <time.h>
46752 #include <wchar.h>
46753 int main ()
46754 {
46755   int result = 0;
46756   /* Test whether the function supports a NULL destination argument.
46757      This fails on native Windows.  */
46758   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
46759     {
46760       const char input[] = "\337er";
46761       const char *src = input;
46762       mbstate_t state;
46763
46764       memset (&state, '\0', sizeof (mbstate_t));
46765       if (mbsrtowcs (NULL, &src, 1, &state) != 3
46766           || src != input)
46767         result |= 1;
46768     }
46769   /* Test whether the function works when started with a conversion state
46770      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
46771   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
46772     {
46773       const char input[] = "B\303\274\303\237er";
46774       mbstate_t state;
46775
46776       memset (&state, '\0', sizeof (mbstate_t));
46777       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
46778         if (!mbsinit (&state))
46779           {
46780             const char *src = input + 2;
46781             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
46782               result |= 2;
46783           }
46784     }
46785   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
46786     {
46787       const char input[] = "<\306\374\313\334\270\354>";
46788       mbstate_t state;
46789
46790       memset (&state, '\0', sizeof (mbstate_t));
46791       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
46792         if (!mbsinit (&state))
46793           {
46794             const char *src = input + 4;
46795             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
46796               result |= 4;
46797           }
46798     }
46799   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46800     {
46801       const char input[] = "B\250\271\201\060\211\070er";
46802       mbstate_t state;
46803
46804       memset (&state, '\0', sizeof (mbstate_t));
46805       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
46806         if (!mbsinit (&state))
46807           {
46808             const char *src = input + 2;
46809             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
46810               result |= 8;
46811           }
46812     }
46813   return result;
46814 }
46815 _ACEOF
46816 if ac_fn_c_try_run "$LINENO"; then :
46817   gl_cv_func_mbsrtowcs_works=yes
46818 else
46819   gl_cv_func_mbsrtowcs_works=no
46820 fi
46821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46822   conftest.$ac_objext conftest.beam conftest.$ac_ext
46823 fi
46824
46825       fi
46826
46827 fi
46828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
46829 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
46830
46831       case "$gl_cv_func_mbsrtowcs_works" in
46832         *yes) ;;
46833         *) REPLACE_MBSRTOWCS=1 ;;
46834       esac
46835     fi
46836   fi
46837
46838   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
46839
46840
46841
46842
46843
46844
46845
46846
46847   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
46848
46849
46850
46851
46852
46853
46854
46855
46856
46857   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
46858
46859
46860   :
46861
46862   fi
46863
46864
46865
46866
46867
46868           GNULIB_MBSRTOWCS=1
46869
46870
46871
46872
46873
46874 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
46875
46876
46877
46878
46879
46880
46881
46882
46883           GNULIB_MBSSTR=1
46884
46885
46886
46887
46888
46889 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
46890
46891
46892
46893
46894
46895
46896
46897       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
46898 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
46899 if ${ac_cv_have_decl_mbswidth+:} false; then :
46900   $as_echo_n "(cached) " >&6
46901 else
46902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46903 /* end confdefs.h.  */
46904
46905 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46906    <wchar.h>.
46907    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
46908    before <wchar.h>.  */
46909 #include <stddef.h>
46910 #include <stdio.h>
46911 #include <time.h>
46912 #include <wchar.h>
46913
46914 int
46915 main ()
46916 {
46917
46918   char *p = (char *) mbswidth;
46919   return !p;
46920
46921   ;
46922   return 0;
46923 }
46924 _ACEOF
46925 if ac_fn_c_try_compile "$LINENO"; then :
46926   ac_cv_have_decl_mbswidth=yes
46927 else
46928   ac_cv_have_decl_mbswidth=no
46929 fi
46930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46931 fi
46932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
46933 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
46934   if test $ac_cv_have_decl_mbswidth = yes; then
46935     ac_val=1
46936   else
46937     ac_val=0
46938   fi
46939
46940 cat >>confdefs.h <<_ACEOF
46941 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
46942 _ACEOF
46943
46944
46945
46946
46947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
46948 $as_echo_n "checking for mbstate_t... " >&6; }
46949 if ${ac_cv_type_mbstate_t+:} false; then :
46950   $as_echo_n "(cached) " >&6
46951 else
46952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46953 /* end confdefs.h.  */
46954 $ac_includes_default
46955 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46956    <wchar.h>.
46957    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
46958    included before <wchar.h>.  */
46959 #include <stddef.h>
46960 #include <stdio.h>
46961 #include <time.h>
46962 #include <wchar.h>
46963 int
46964 main ()
46965 {
46966 mbstate_t x; return sizeof x;
46967   ;
46968   return 0;
46969 }
46970 _ACEOF
46971 if ac_fn_c_try_compile "$LINENO"; then :
46972   ac_cv_type_mbstate_t=yes
46973 else
46974   ac_cv_type_mbstate_t=no
46975 fi
46976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46977 fi
46978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
46979 $as_echo "$ac_cv_type_mbstate_t" >&6; }
46980    if test $ac_cv_type_mbstate_t = yes; then
46981
46982 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
46983
46984    else
46985
46986 $as_echo "#define mbstate_t int" >>confdefs.h
46987
46988    fi
46989
46990
46991
46992
46993   :
46994
46995
46996   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
46997
46998
46999
47000
47001
47002
47003
47004
47005   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
47006
47007
47008   for ac_header in bp-sym.h
47009 do :
47010   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
47011 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
47012   cat >>confdefs.h <<_ACEOF
47013 #define HAVE_BP_SYM_H 1
47014 _ACEOF
47015
47016 fi
47017
47018 done
47019
47020
47021   fi
47022
47023
47024
47025
47026
47027           GNULIB_MEMCHR=1
47028
47029
47030
47031
47032
47033 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
47034
47035
47036
47037
47038   for ac_func in memmove
47039 do :
47040   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
47041 if test "x$ac_cv_func_memmove" = xyes; then :
47042   cat >>confdefs.h <<_ACEOF
47043 #define HAVE_MEMMOVE 1
47044 _ACEOF
47045
47046 fi
47047 done
47048
47049
47050   if test $ac_cv_func_memmove = no; then
47051
47052
47053
47054
47055
47056
47057
47058
47059   gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext"
47060
47061
47062   :
47063
47064   fi
47065
47066   for ac_func in memset
47067 do :
47068   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
47069 if test "x$ac_cv_func_memset" = xyes; then :
47070   cat >>confdefs.h <<_ACEOF
47071 #define HAVE_MEMSET 1
47072 _ACEOF
47073
47074 fi
47075 done
47076
47077
47078   if test $ac_cv_func_memset = no; then
47079
47080
47081
47082
47083
47084
47085
47086
47087   gl_LIBOBJS="$gl_LIBOBJS memset.$ac_objext"
47088
47089
47090   :
47091
47092   fi
47093
47094
47095
47096
47097
47098   for ac_func in mkdtemp
47099 do :
47100   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
47101 if test "x$ac_cv_func_mkdtemp" = xyes; then :
47102   cat >>confdefs.h <<_ACEOF
47103 #define HAVE_MKDTEMP 1
47104 _ACEOF
47105
47106 fi
47107 done
47108
47109   if test $ac_cv_func_mkdtemp = no; then
47110     HAVE_MKDTEMP=0
47111   fi
47112
47113   if test $HAVE_MKDTEMP = 0; then
47114
47115
47116
47117
47118
47119
47120
47121
47122   gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
47123
47124     :
47125
47126   fi
47127
47128
47129
47130
47131
47132           GNULIB_MKDTEMP=1
47133
47134
47135
47136
47137
47138 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
47139
47140
47141
47142
47143
47144           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
47145 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
47146 if ${gl_cv_c_cplusplus+:} false; then :
47147   $as_echo_n "(cached) " >&6
47148 else
47149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47150 /* end confdefs.h.  */
47151
47152 #ifdef __cplusplus
47153   Is c++
47154 #endif
47155
47156 _ACEOF
47157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47158   $EGREP "Is c++" >/dev/null 2>&1; then :
47159   gl_cv_c_cplusplus=yes
47160 else
47161   gl_cv_c_cplusplus=no
47162 fi
47163 rm -f conftest*
47164
47165 fi
47166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
47167 $as_echo "$gl_cv_c_cplusplus" >&6; }
47168   if test $gl_cv_c_cplusplus = yes; then
47169
47170 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
47171
47172   fi
47173
47174
47175
47176   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
47177     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
47178
47179 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
47180
47181   else
47182     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
47183   fi
47184
47185
47186   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
47187
47188
47189
47190
47191
47192
47193
47194
47195   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
47196
47197   fi
47198
47199
47200
47201   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
47202
47203
47204
47205
47206
47207
47208
47209
47210   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
47211
47212   fi
47213
47214
47215   NO_CXX=
47216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47217 /* end confdefs.h.  */
47218
47219 #if defined __GNUC__ && defined __cplusplus
47220   Is g++
47221 #endif
47222
47223 _ACEOF
47224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47225   $EGREP "Is g++" >/dev/null 2>&1; then :
47226   NO_CXX="-x c"
47227 fi
47228 rm -f conftest*
47229
47230
47231
47232
47233
47234
47235
47236
47237
47238
47239
47240
47241
47242
47243
47244    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5
47245 $as_echo_n "checking for obstacks that work with any size object... " >&6; }
47246 if ${ac_cv_func_obstack+:} false; then :
47247   $as_echo_n "(cached) " >&6
47248 else
47249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47250 /* end confdefs.h.  */
47251 #include "obstack.h"
47252              void *obstack_chunk_alloc (size_t n) { return 0; }
47253              void obstack_chunk_free (void *p) { }
47254              /* Check that an internal function returns size_t, not int.  */
47255              size_t _obstack_memory_used (struct obstack *);
47256
47257 int
47258 main ()
47259 {
47260 struct obstack mem;
47261              obstack_init (&mem);
47262              obstack_free (&mem, 0);
47263
47264   ;
47265   return 0;
47266 }
47267 _ACEOF
47268 if ac_fn_c_try_link "$LINENO"; then :
47269   ac_cv_func_obstack=yes
47270 else
47271   ac_cv_func_obstack=no
47272 fi
47273 rm -f core conftest.err conftest.$ac_objext \
47274     conftest$ac_exeext conftest.$ac_ext
47275 fi
47276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
47277 $as_echo "$ac_cv_func_obstack" >&6; }
47278    if test "$ac_cv_func_obstack" = yes; then
47279
47280 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
47281
47282    else
47283
47284
47285
47286
47287
47288
47289
47290
47291   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
47292
47293    fi
47294
47295
47296
47297   case "$host_os" in
47298     mingw* | pw*)
47299       REPLACE_OPEN=1
47300       ;;
47301     *)
47302
47303       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
47304 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
47305 if ${gl_cv_func_open_slash+:} false; then :
47306   $as_echo_n "(cached) " >&6
47307 else
47308   # Assume that if we have lstat, we can also check symlinks.
47309           if test $ac_cv_func_lstat = yes; then
47310             touch conftest.tmp
47311             ln -s conftest.tmp conftest.lnk
47312           fi
47313           if test "$cross_compiling" = yes; then :
47314
47315              case "$host_os" in
47316                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
47317                  gl_cv_func_open_slash="guessing no" ;;
47318                *)
47319                  gl_cv_func_open_slash="guessing yes" ;;
47320              esac
47321
47322 else
47323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47324 /* end confdefs.h.  */
47325
47326 #include <fcntl.h>
47327 #if HAVE_UNISTD_H
47328 # include <unistd.h>
47329 #endif
47330 int main ()
47331 {
47332   int result = 0;
47333 #if HAVE_LSTAT
47334   if (open ("conftest.lnk/", O_RDONLY) != -1)
47335     result |= 1;
47336 #endif
47337   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
47338     result |= 2;
47339   return result;
47340 }
47341 _ACEOF
47342 if ac_fn_c_try_run "$LINENO"; then :
47343   gl_cv_func_open_slash=yes
47344 else
47345   gl_cv_func_open_slash=no
47346 fi
47347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47348   conftest.$ac_objext conftest.beam conftest.$ac_ext
47349 fi
47350
47351           rm -f conftest.sl conftest.tmp conftest.lnk
47352
47353 fi
47354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
47355 $as_echo "$gl_cv_func_open_slash" >&6; }
47356       case "$gl_cv_func_open_slash" in
47357         *no)
47358
47359 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
47360
47361           REPLACE_OPEN=1
47362           ;;
47363       esac
47364       ;;
47365   esac
47366
47367
47368
47369   if test $REPLACE_OPEN = 1; then
47370
47371
47372
47373
47374
47375
47376
47377
47378   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
47379
47380
47381
47382   :
47383
47384   fi
47385
47386
47387
47388
47389
47390           GNULIB_OPEN=1
47391
47392
47393
47394
47395
47396 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
47397
47398
47399
47400
47401
47402
47403   for ac_func in opendir
47404 do :
47405   ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
47406 if test "x$ac_cv_func_opendir" = xyes; then :
47407   cat >>confdefs.h <<_ACEOF
47408 #define HAVE_OPENDIR 1
47409 _ACEOF
47410
47411 fi
47412 done
47413
47414   if test $ac_cv_func_opendir = no; then
47415     HAVE_OPENDIR=0
47416   fi
47417
47418
47419   if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
47420
47421
47422
47423
47424
47425
47426
47427
47428   gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
47429
47430   fi
47431
47432
47433
47434
47435
47436           GNULIB_OPENDIR=1
47437
47438
47439
47440
47441
47442 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
47443
47444
47445
47446
47447   OPENMP_CFLAGS=
47448   # Check whether --enable-openmp was given.
47449 if test "${enable_openmp+set}" = set; then :
47450   enableval=$enable_openmp;
47451 fi
47452
47453   if test "$enable_openmp" != no; then
47454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
47455 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
47456 if ${ac_cv_prog_c_openmp+:} false; then :
47457   $as_echo_n "(cached) " >&6
47458 else
47459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47460 /* end confdefs.h.  */
47461
47462 #ifndef _OPENMP
47463  choke me
47464 #endif
47465 #include <omp.h>
47466 int main () { return omp_get_num_threads (); }
47467
47468 _ACEOF
47469 if ac_fn_c_try_link "$LINENO"; then :
47470   ac_cv_prog_c_openmp='none needed'
47471 else
47472   ac_cv_prog_c_openmp='unsupported'
47473                                                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
47474                            -Popenmp --openmp; do
47475             ac_save_CFLAGS=$CFLAGS
47476             CFLAGS="$CFLAGS $ac_option"
47477             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47478 /* end confdefs.h.  */
47479
47480 #ifndef _OPENMP
47481  choke me
47482 #endif
47483 #include <omp.h>
47484 int main () { return omp_get_num_threads (); }
47485
47486 _ACEOF
47487 if ac_fn_c_try_link "$LINENO"; then :
47488   ac_cv_prog_c_openmp=$ac_option
47489 fi
47490 rm -f core conftest.err conftest.$ac_objext \
47491     conftest$ac_exeext conftest.$ac_ext
47492             CFLAGS=$ac_save_CFLAGS
47493             if test "$ac_cv_prog_c_openmp" != unsupported; then
47494               break
47495             fi
47496           done
47497 fi
47498 rm -f core conftest.err conftest.$ac_objext \
47499     conftest$ac_exeext conftest.$ac_ext
47500 fi
47501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
47502 $as_echo "$ac_cv_prog_c_openmp" >&6; }
47503     case $ac_cv_prog_c_openmp in #(
47504       "none needed" | unsupported)
47505         ;; #(
47506       *)
47507         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
47508     esac
47509   fi
47510
47511
47512
47513
47514
47515
47516
47517
47518
47519
47520
47521
47522   if test $ac_cv_func_pipe2 != yes; then
47523     HAVE_PIPE2=0
47524   fi
47525
47526
47527
47528
47529
47530
47531           GNULIB_PIPE2=1
47532
47533
47534
47535
47536
47537 $as_echo "#define GNULIB_TEST_PIPE2 1" >>confdefs.h
47538
47539
47540
47541
47542
47543 cat >>confdefs.h <<_ACEOF
47544 #define GNULIB_PIPE2_SAFER 1
47545 _ACEOF
47546
47547
47548
47549
47550
47551
47552
47553
47554   if test $REPLACE_POSIX_SPAWN = 1; then
47555     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
47556   else
47557             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_addclose works" >&5
47558 $as_echo_n "checking whether posix_spawn_file_actions_addclose works... " >&6; }
47559 if ${gl_cv_func_posix_spawn_file_actions_addclose_works+:} false; then :
47560   $as_echo_n "(cached) " >&6
47561 else
47562   if test "$cross_compiling" = yes; then :
47563   # Guess no on Solaris, yes otherwise.
47564           case "$host_os" in
47565             solaris*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no";;
47566             *)        gl_cv_func_posix_spawn_file_actions_addclose_works="guessing yes";;
47567           esac
47568
47569 else
47570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47571 /* end confdefs.h.  */
47572
47573 #include <spawn.h>
47574 int main ()
47575 {
47576   posix_spawn_file_actions_t actions;
47577   if (posix_spawn_file_actions_init (&actions) != 0)
47578     return 1;
47579   if (posix_spawn_file_actions_addclose (&actions, 10000000) == 0)
47580     return 2;
47581   return 0;
47582 }
47583 _ACEOF
47584 if ac_fn_c_try_run "$LINENO"; then :
47585   gl_cv_func_posix_spawn_file_actions_addclose_works=yes
47586 else
47587   gl_cv_func_posix_spawn_file_actions_addclose_works=no
47588 fi
47589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47590   conftest.$ac_objext conftest.beam conftest.$ac_ext
47591 fi
47592
47593
47594 fi
47595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_addclose_works" >&5
47596 $as_echo "$gl_cv_func_posix_spawn_file_actions_addclose_works" >&6; }
47597     case "$gl_cv_func_posix_spawn_file_actions_addclose_works" in
47598       *yes) ;;
47599       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1 ;;
47600     esac
47601   fi
47602
47603   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
47604
47605
47606
47607
47608
47609
47610
47611
47612   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addclose.$ac_objext"
47613
47614   fi
47615
47616
47617
47618
47619
47620           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
47621
47622
47623
47624
47625
47626 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 1" >>confdefs.h
47627
47628
47629
47630
47631
47632
47633
47634
47635
47636   if test $REPLACE_POSIX_SPAWN = 1; then
47637     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
47638   else
47639             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_adddup2 works" >&5
47640 $as_echo_n "checking whether posix_spawn_file_actions_adddup2 works... " >&6; }
47641 if ${gl_cv_func_posix_spawn_file_actions_adddup2_works+:} false; then :
47642   $as_echo_n "(cached) " >&6
47643 else
47644   if test "$cross_compiling" = yes; then :
47645   # Guess no on Solaris, yes otherwise.
47646           case "$host_os" in
47647             solaris*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no";;
47648             *)        gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing yes";;
47649           esac
47650
47651 else
47652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47653 /* end confdefs.h.  */
47654
47655 #include <spawn.h>
47656 int main ()
47657 {
47658   posix_spawn_file_actions_t actions;
47659   if (posix_spawn_file_actions_init (&actions) != 0)
47660     return 1;
47661   if (posix_spawn_file_actions_adddup2 (&actions, 10000000, 2) == 0)
47662     return 2;
47663   return 0;
47664 }
47665 _ACEOF
47666 if ac_fn_c_try_run "$LINENO"; then :
47667   gl_cv_func_posix_spawn_file_actions_adddup2_works=yes
47668 else
47669   gl_cv_func_posix_spawn_file_actions_adddup2_works=no
47670 fi
47671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47672   conftest.$ac_objext conftest.beam conftest.$ac_ext
47673 fi
47674
47675
47676 fi
47677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_adddup2_works" >&5
47678 $as_echo "$gl_cv_func_posix_spawn_file_actions_adddup2_works" >&6; }
47679     case "$gl_cv_func_posix_spawn_file_actions_adddup2_works" in
47680       *yes) ;;
47681       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1 ;;
47682     esac
47683   fi
47684
47685   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
47686
47687
47688
47689
47690
47691
47692
47693
47694   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_adddup2.$ac_objext"
47695
47696   fi
47697
47698
47699
47700
47701
47702           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
47703
47704
47705
47706
47707
47708 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1" >>confdefs.h
47709
47710
47711
47712
47713
47714
47715
47716
47717
47718   if test $REPLACE_POSIX_SPAWN = 1; then
47719     REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
47720   else
47721             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn_file_actions_addopen works" >&5
47722 $as_echo_n "checking whether posix_spawn_file_actions_addopen works... " >&6; }
47723 if ${gl_cv_func_posix_spawn_file_actions_addopen_works+:} false; then :
47724   $as_echo_n "(cached) " >&6
47725 else
47726   if test "$cross_compiling" = yes; then :
47727   # Guess no on Solaris, yes otherwise.
47728           case "$host_os" in
47729             solaris*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no";;
47730             *)        gl_cv_func_posix_spawn_file_actions_addopen_works="guessing yes";;
47731           esac
47732
47733 else
47734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47735 /* end confdefs.h.  */
47736
47737 #include <spawn.h>
47738 #include <fcntl.h>
47739 int main ()
47740 {
47741   posix_spawn_file_actions_t actions;
47742   if (posix_spawn_file_actions_init (&actions) != 0)
47743     return 1;
47744   if (posix_spawn_file_actions_addopen (&actions, 10000000, "foo", 0, O_RDONLY)
47745       == 0)
47746     return 2;
47747   return 0;
47748 }
47749 _ACEOF
47750 if ac_fn_c_try_run "$LINENO"; then :
47751   gl_cv_func_posix_spawn_file_actions_addopen_works=yes
47752 else
47753   gl_cv_func_posix_spawn_file_actions_addopen_works=no
47754 fi
47755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47756   conftest.$ac_objext conftest.beam conftest.$ac_ext
47757 fi
47758
47759
47760 fi
47761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_file_actions_addopen_works" >&5
47762 $as_echo "$gl_cv_func_posix_spawn_file_actions_addopen_works" >&6; }
47763     case "$gl_cv_func_posix_spawn_file_actions_addopen_works" in
47764       *yes) ;;
47765       *) REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1 ;;
47766     esac
47767   fi
47768
47769   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
47770
47771
47772
47773
47774
47775
47776
47777
47778   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addopen.$ac_objext"
47779
47780   fi
47781
47782
47783
47784
47785
47786           GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
47787
47788
47789
47790
47791
47792 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 1" >>confdefs.h
47793
47794
47795
47796
47797
47798
47799   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
47800
47801
47802
47803
47804
47805
47806
47807
47808   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_destroy.$ac_objext"
47809
47810   fi
47811
47812
47813
47814
47815
47816           GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=1
47817
47818
47819
47820
47821
47822 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_DESTROY 1" >>confdefs.h
47823
47824
47825
47826
47827
47828
47829   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
47830
47831
47832
47833
47834
47835
47836
47837
47838   gl_LIBOBJS="$gl_LIBOBJS spawn_faction_init.$ac_objext"
47839
47840   fi
47841
47842
47843
47844
47845
47846           GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=1
47847
47848
47849
47850
47851
47852 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_INIT 1" >>confdefs.h
47853
47854
47855
47856
47857
47858
47859   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
47860
47861
47862
47863
47864
47865
47866
47867
47868   gl_LIBOBJS="$gl_LIBOBJS spawnattr_destroy.$ac_objext"
47869
47870   fi
47871
47872
47873
47874
47875
47876           GNULIB_POSIX_SPAWNATTR_DESTROY=1
47877
47878
47879
47880
47881
47882 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_DESTROY 1" >>confdefs.h
47883
47884
47885
47886
47887
47888
47889   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
47890
47891
47892
47893
47894
47895
47896
47897
47898   gl_LIBOBJS="$gl_LIBOBJS spawnattr_init.$ac_objext"
47899
47900   fi
47901
47902
47903
47904
47905
47906           GNULIB_POSIX_SPAWNATTR_INIT=1
47907
47908
47909
47910
47911
47912 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_INIT 1" >>confdefs.h
47913
47914
47915
47916
47917
47918
47919   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
47920
47921
47922
47923
47924
47925
47926
47927
47928   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setflags.$ac_objext"
47929
47930   fi
47931
47932
47933
47934
47935
47936           GNULIB_POSIX_SPAWNATTR_SETFLAGS=1
47937
47938
47939
47940
47941
47942 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETFLAGS 1" >>confdefs.h
47943
47944
47945
47946
47947
47948
47949   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
47950
47951
47952
47953
47954
47955
47956
47957
47958   gl_LIBOBJS="$gl_LIBOBJS spawnattr_setsigmask.$ac_objext"
47959
47960   fi
47961
47962
47963
47964
47965
47966           GNULIB_POSIX_SPAWNATTR_SETSIGMASK=1
47967
47968
47969
47970
47971
47972 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h
47973
47974
47975
47976
47977
47978
47979   if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
47980
47981
47982
47983
47984
47985
47986
47987
47988   gl_LIBOBJS="$gl_LIBOBJS spawnp.$ac_objext"
47989
47990
47991
47992
47993
47994
47995
47996
47997
47998   gl_LIBOBJS="$gl_LIBOBJS spawni.$ac_objext"
47999
48000
48001   for ac_header in paths.h
48002 do :
48003   ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
48004 if test "x$ac_cv_header_paths_h" = xyes; then :
48005   cat >>confdefs.h <<_ACEOF
48006 #define HAVE_PATHS_H 1
48007 _ACEOF
48008
48009 fi
48010
48011 done
48012
48013   for ac_func in confstr sched_setparam sched_setscheduler setegid seteuid vfork
48014 do :
48015   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48016 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
48017 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
48018   cat >>confdefs.h <<_ACEOF
48019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48020 _ACEOF
48021
48022 fi
48023 done
48024
48025
48026   fi
48027
48028
48029
48030
48031
48032           GNULIB_POSIX_SPAWNP=1
48033
48034
48035
48036
48037
48038 $as_echo "#define GNULIB_TEST_POSIX_SPAWNP 1" >>confdefs.h
48039
48040
48041
48042
48043
48044
48045
48046   POW_LIBM="$POW_LIBM"
48047
48048
48049
48050
48051   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
48052 "
48053 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
48054   ac_have_decl=1
48055 else
48056   ac_have_decl=0
48057 fi
48058
48059 cat >>confdefs.h <<_ACEOF
48060 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
48061 _ACEOF
48062
48063   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
48064 "
48065 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
48066   ac_have_decl=1
48067 else
48068   ac_have_decl=0
48069 fi
48070
48071 cat >>confdefs.h <<_ACEOF
48072 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
48073 _ACEOF
48074
48075
48076
48077   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
48078
48079
48080
48081   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
48082
48083
48084       :
48085
48086
48087   :
48088
48089
48090
48091
48092
48093   for ac_func in raise
48094 do :
48095   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
48096 if test "x$ac_cv_func_raise" = xyes; then :
48097   cat >>confdefs.h <<_ACEOF
48098 #define HAVE_RAISE 1
48099 _ACEOF
48100
48101 fi
48102 done
48103
48104   if test $ac_cv_func_raise = no; then
48105     HAVE_RAISE=0
48106   else
48107     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
48108       REPLACE_RAISE=1
48109     fi
48110
48111
48112
48113
48114   if test $gl_cv_type_sigset_t = yes; then
48115     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
48116 if test "x$ac_cv_func_sigprocmask" = xyes; then :
48117   gl_cv_func_sigprocmask=1
48118 fi
48119
48120   fi
48121   if test -z "$gl_cv_func_sigprocmask"; then
48122     HAVE_POSIX_SIGNALBLOCKING=0
48123   fi
48124
48125       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
48126
48127
48128
48129
48130           if test $gl_cv_header_signal_h_SIGPIPE != yes; then
48131             REPLACE_RAISE=1
48132           fi
48133
48134       fi
48135
48136   fi
48137
48138   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
48139
48140
48141
48142
48143
48144
48145
48146
48147   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
48148
48149     :
48150   fi
48151
48152
48153
48154
48155
48156           GNULIB_RAISE=1
48157
48158
48159
48160
48161
48162 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
48163
48164
48165
48166
48167
48168
48169
48170   for ac_func in rawmemchr
48171 do :
48172   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
48173 if test "x$ac_cv_func_rawmemchr" = xyes; then :
48174   cat >>confdefs.h <<_ACEOF
48175 #define HAVE_RAWMEMCHR 1
48176 _ACEOF
48177
48178 fi
48179 done
48180
48181   if test $ac_cv_func_rawmemchr = no; then
48182     HAVE_RAWMEMCHR=0
48183   fi
48184
48185   if test $HAVE_RAWMEMCHR = 0; then
48186
48187
48188
48189
48190
48191
48192
48193
48194   gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
48195
48196     :
48197   fi
48198
48199
48200
48201
48202
48203           GNULIB_RAWMEMCHR=1
48204
48205
48206
48207
48208
48209 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
48210
48211
48212
48213
48214
48215
48216   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
48217     REPLACE_READ=1
48218   fi
48219
48220
48221   if test $REPLACE_READ = 1; then
48222
48223
48224
48225
48226
48227
48228
48229
48230   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
48231
48232     :
48233   fi
48234
48235
48236
48237
48238
48239           GNULIB_READ=1
48240
48241
48242
48243
48244
48245 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
48246
48247
48248
48249
48250
48251
48252   for ac_func in readdir
48253 do :
48254   ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
48255 if test "x$ac_cv_func_readdir" = xyes; then :
48256   cat >>confdefs.h <<_ACEOF
48257 #define HAVE_READDIR 1
48258 _ACEOF
48259
48260 fi
48261 done
48262
48263   if test $ac_cv_func_readdir = no; then
48264     HAVE_READDIR=0
48265   fi
48266
48267   if test $HAVE_READDIR = 0; then
48268
48269
48270
48271
48272
48273
48274
48275
48276   gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
48277
48278   fi
48279
48280
48281
48282
48283
48284           GNULIB_READDIR=1
48285
48286
48287
48288
48289
48290 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
48291
48292
48293
48294
48295
48296
48297   if test $ac_cv_func_readlink = no; then
48298     HAVE_READLINK=0
48299   else
48300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
48301 $as_echo_n "checking whether readlink signature is correct... " >&6; }
48302 if ${gl_cv_decl_readlink_works+:} false; then :
48303   $as_echo_n "(cached) " >&6
48304 else
48305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48306 /* end confdefs.h.  */
48307 #include <unistd.h>
48308       /* Cause compilation failure if original declaration has wrong type.  */
48309       ssize_t readlink (const char *, char *, size_t);
48310 int
48311 main ()
48312 {
48313
48314   ;
48315   return 0;
48316 }
48317 _ACEOF
48318 if ac_fn_c_try_compile "$LINENO"; then :
48319   gl_cv_decl_readlink_works=yes
48320 else
48321   gl_cv_decl_readlink_works=no
48322 fi
48323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48324 fi
48325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
48326 $as_echo "$gl_cv_decl_readlink_works" >&6; }
48327             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
48328 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
48329 if ${gl_cv_func_readlink_works+:} false; then :
48330   $as_echo_n "(cached) " >&6
48331 else
48332   # We have readlink, so assume ln -s works.
48333        ln -s conftest.no-such conftest.link
48334        ln -s conftest.link conftest.lnk2
48335        if test "$cross_compiling" = yes; then :
48336   case "$host_os" in
48337                     # Guess yes on glibc systems.
48338             *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
48339                     # If we don't know, assume the worst.
48340             *)      gl_cv_func_readlink_works="guessing no" ;;
48341           esac
48342
48343 else
48344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48345 /* end confdefs.h.  */
48346 #include <unistd.h>
48347
48348 int
48349 main ()
48350 {
48351 char buf[20];
48352       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
48353   ;
48354   return 0;
48355 }
48356 _ACEOF
48357 if ac_fn_c_try_run "$LINENO"; then :
48358   gl_cv_func_readlink_works=yes
48359 else
48360   gl_cv_func_readlink_works=no
48361 fi
48362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48363   conftest.$ac_objext conftest.beam conftest.$ac_ext
48364 fi
48365
48366       rm -f conftest.link conftest.lnk2
48367 fi
48368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
48369 $as_echo "$gl_cv_func_readlink_works" >&6; }
48370     case "$gl_cv_func_readlink_works" in
48371       *yes)
48372         if test "$gl_cv_decl_readlink_works" != yes; then
48373           REPLACE_READLINK=1
48374         fi
48375         ;;
48376       *)
48377
48378 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
48379
48380         REPLACE_READLINK=1
48381         ;;
48382     esac
48383   fi
48384
48385   if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
48386
48387
48388
48389
48390
48391
48392
48393
48394   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
48395
48396
48397   :
48398
48399   fi
48400
48401
48402
48403
48404
48405           GNULIB_READLINK=1
48406
48407
48408
48409
48410
48411 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
48412
48413
48414
48415
48416
48417
48418   if test $gl_cv_func_malloc_posix = yes; then
48419
48420 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
48421
48422   else
48423     REPLACE_REALLOC=1
48424   fi
48425
48426   if test $REPLACE_REALLOC = 1; then
48427
48428
48429
48430
48431
48432
48433
48434
48435   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
48436
48437   fi
48438
48439
48440
48441
48442
48443           GNULIB_REALLOC_POSIX=1
48444
48445
48446
48447
48448
48449 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
48450
48451
48452
48453
48454
48455
48456
48457
48458   : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
48459   RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
48460   RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
48461
48462   if test $RELOCATABLE = yes; then
48463
48464
48465
48466
48467
48468
48469
48470
48471   gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
48472
48473
48474
48475
48476
48477
48478
48479
48480
48481   gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
48482
48483   fi
48484
48485
48486
48487   :
48488
48489
48490
48491
48492
48493
48494
48495
48496
48497
48498
48499
48500
48501
48502
48503
48504
48505
48506
48507   if test $ac_cv_have_decl_setenv = no; then
48508     HAVE_DECL_SETENV=0
48509   fi
48510
48511
48512
48513
48514
48515   for ac_header in search.h
48516 do :
48517   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
48518 if test "x$ac_cv_header_search_h" = xyes; then :
48519   cat >>confdefs.h <<_ACEOF
48520 #define HAVE_SEARCH_H 1
48521 _ACEOF
48522
48523 fi
48524
48525 done
48526
48527   for ac_func in tsearch
48528 do :
48529   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
48530 if test "x$ac_cv_func_tsearch" = xyes; then :
48531   cat >>confdefs.h <<_ACEOF
48532 #define HAVE_TSEARCH 1
48533 _ACEOF
48534
48535 fi
48536 done
48537
48538
48539
48540
48541   relocatable_sh=$ac_aux_dir/relocatable.sh.in
48542
48543
48544
48545
48546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
48547 $as_echo_n "checking whether rmdir works... " >&6; }
48548 if ${gl_cv_func_rmdir_works+:} false; then :
48549   $as_echo_n "(cached) " >&6
48550 else
48551   mkdir conftest.dir
48552      touch conftest.file
48553      if test "$cross_compiling" = yes; then :
48554   case "$host_os" in
48555                   # Guess yes on glibc systems.
48556           *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
48557                   # If we don't know, assume the worst.
48558           *)      gl_cv_func_rmdir_works="guessing no" ;;
48559         esac
48560
48561 else
48562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48563 /* end confdefs.h.  */
48564 #include <stdio.h>
48565            #include <errno.h>
48566            #if HAVE_UNISTD_H
48567            # include <unistd.h>
48568            #else /* on Windows with MSVC */
48569            # include <direct.h>
48570            #endif
48571
48572 int
48573 main ()
48574 {
48575 int result = 0;
48576       if (!rmdir ("conftest.file/"))
48577         result |= 1;
48578       else if (errno != ENOTDIR)
48579         result |= 2;
48580       if (!rmdir ("conftest.dir/./"))
48581         result |= 4;
48582       return result;
48583
48584   ;
48585   return 0;
48586 }
48587 _ACEOF
48588 if ac_fn_c_try_run "$LINENO"; then :
48589   gl_cv_func_rmdir_works=yes
48590 else
48591   gl_cv_func_rmdir_works=no
48592 fi
48593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48594   conftest.$ac_objext conftest.beam conftest.$ac_ext
48595 fi
48596
48597      rm -rf conftest.dir conftest.file
48598 fi
48599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
48600 $as_echo "$gl_cv_func_rmdir_works" >&6; }
48601   case "$gl_cv_func_rmdir_works" in
48602     *yes) ;;
48603     *)
48604       REPLACE_RMDIR=1
48605       ;;
48606   esac
48607
48608   if test $REPLACE_RMDIR = 1; then
48609
48610
48611
48612
48613
48614
48615
48616
48617   gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
48618
48619   fi
48620
48621
48622
48623
48624
48625           GNULIB_RMDIR=1
48626
48627
48628
48629
48630
48631 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
48632
48633
48634
48635
48636
48637
48638
48639
48640
48641
48642
48643
48644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48645 /* end confdefs.h.  */
48646
48647        #include <sched.h>
48648        struct sched_param a;
48649        int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
48650        pid_t t1;
48651
48652 int
48653 main ()
48654 {
48655
48656   ;
48657   return 0;
48658 }
48659 _ACEOF
48660 if ac_fn_c_try_compile "$LINENO"; then :
48661   SCHED_H=''
48662 else
48663   SCHED_H='sched.h'
48664
48665
48666
48667
48668
48669
48670
48671
48672
48673
48674      if test $gl_cv_have_include_next = yes; then
48675        gl_cv_next_sched_h='<'sched.h'>'
48676      else
48677        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
48678 $as_echo_n "checking absolute name of <sched.h>... " >&6; }
48679 if ${gl_cv_next_sched_h+:} false; then :
48680   $as_echo_n "(cached) " >&6
48681 else
48682
48683              if test $ac_cv_header_sched_h = yes; then
48684
48685
48686
48687
48688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48689 /* end confdefs.h.  */
48690 #include <sched.h>
48691 _ACEOF
48692                 case "$host_os" in
48693     aix*) gl_absname_cpp="$ac_cpp -C" ;;
48694     *)    gl_absname_cpp="$ac_cpp" ;;
48695   esac
48696
48697   case "$host_os" in
48698     mingw*)
48699                                           gl_dirsep_regex='[/\\]'
48700       ;;
48701     *)
48702       gl_dirsep_regex='\/'
48703       ;;
48704   esac
48705       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
48706   gl_header_literal_regex=`echo 'sched.h' \
48707                            | sed -e "$gl_make_literal_regex_sed"`
48708   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
48709       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
48710       s|^/[^/]|//&|
48711       p
48712       q
48713     }'
48714
48715         gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48716   sed -n "$gl_absolute_header_sed"`
48717
48718            gl_header=$gl_cv_absolute_sched_h
48719            gl_cv_next_sched_h='"'$gl_header'"'
48720           else
48721                gl_cv_next_sched_h='<'sched.h'>'
48722              fi
48723
48724
48725 fi
48726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
48727 $as_echo "$gl_cv_next_sched_h" >&6; }
48728      fi
48729      NEXT_SCHED_H=$gl_cv_next_sched_h
48730
48731      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48732        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48733        gl_next_as_first_directive='<'sched.h'>'
48734      else
48735        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48736        gl_next_as_first_directive=$gl_cv_next_sched_h
48737      fi
48738      NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
48739
48740
48741
48742
48743
48744      if test $ac_cv_header_sched_h = yes; then
48745        HAVE_SCHED_H=1
48746      else
48747        HAVE_SCHED_H=0
48748      fi
48749
48750
48751      if test "$HAVE_SCHED_H" = 1; then
48752        ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <sched.h>
48753 "
48754 if test "x$ac_cv_type_struct_sched_param" = xyes; then :
48755   HAVE_STRUCT_SCHED_PARAM=1
48756 else
48757   HAVE_STRUCT_SCHED_PARAM=0
48758 fi
48759
48760      else
48761               ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h>
48762 "
48763 if test "x$ac_cv_type_struct_sched_param" = xyes; then :
48764   HAVE_STRUCT_SCHED_PARAM=1
48765 else
48766   HAVE_STRUCT_SCHED_PARAM=0
48767 fi
48768
48769      fi
48770
48771
48772
48773
48774 fi
48775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48776
48777    if test -n "$SCHED_H"; then
48778   GL_GENERATE_SCHED_H_TRUE=
48779   GL_GENERATE_SCHED_H_FALSE='#'
48780 else
48781   GL_GENERATE_SCHED_H_TRUE='#'
48782   GL_GENERATE_SCHED_H_FALSE=
48783 fi
48784
48785
48786
48787
48788
48789
48790
48791   if test $ac_cv_func_secure_getenv = no; then
48792     HAVE_SECURE_GETENV=0
48793   fi
48794
48795   if test $HAVE_SECURE_GETENV = 0; then
48796
48797
48798
48799
48800
48801
48802
48803
48804   gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
48805
48806
48807   for ac_func in __secure_getenv
48808 do :
48809   ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
48810 if test "x$ac_cv_func___secure_getenv" = xyes; then :
48811   cat >>confdefs.h <<_ACEOF
48812 #define HAVE___SECURE_GETENV 1
48813 _ACEOF
48814
48815 fi
48816 done
48817
48818   if test $ac_cv_func___secure_getenv = no; then
48819     for ac_func in issetugid
48820 do :
48821   ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
48822 if test "x$ac_cv_func_issetugid" = xyes; then :
48823   cat >>confdefs.h <<_ACEOF
48824 #define HAVE_ISSETUGID 1
48825 _ACEOF
48826
48827 fi
48828 done
48829
48830   fi
48831
48832   fi
48833
48834
48835
48836
48837
48838           GNULIB_SECURE_GETENV=1
48839
48840
48841
48842
48843
48844 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
48845
48846
48847
48848
48849
48850      if test $ac_cv_func_setenv = no; then
48851     HAVE_SETENV=0
48852   else
48853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
48854 $as_echo_n "checking whether setenv validates arguments... " >&6; }
48855 if ${gl_cv_func_setenv_works+:} false; then :
48856   $as_echo_n "(cached) " >&6
48857 else
48858   if test "$cross_compiling" = yes; then :
48859   case "$host_os" in
48860                  # Guess yes on glibc systems.
48861          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
48862                  # If we don't know, assume the worst.
48863          *)      gl_cv_func_setenv_works="guessing no" ;;
48864        esac
48865
48866 else
48867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48868 /* end confdefs.h.  */
48869
48870        #include <stdlib.h>
48871        #include <errno.h>
48872        #include <string.h>
48873
48874 int
48875 main ()
48876 {
48877
48878        int result = 0;
48879        {
48880          if (setenv ("", "", 0) != -1)
48881            result |= 1;
48882          else if (errno != EINVAL)
48883            result |= 2;
48884        }
48885        {
48886          if (setenv ("a", "=", 1) != 0)
48887            result |= 4;
48888          else if (strcmp (getenv ("a"), "=") != 0)
48889            result |= 8;
48890        }
48891        return result;
48892
48893   ;
48894   return 0;
48895 }
48896 _ACEOF
48897 if ac_fn_c_try_run "$LINENO"; then :
48898   gl_cv_func_setenv_works=yes
48899 else
48900   gl_cv_func_setenv_works=no
48901 fi
48902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48903   conftest.$ac_objext conftest.beam conftest.$ac_ext
48904 fi
48905
48906 fi
48907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
48908 $as_echo "$gl_cv_func_setenv_works" >&6; }
48909     case "$gl_cv_func_setenv_works" in
48910       *yes) ;;
48911       *)
48912         REPLACE_SETENV=1
48913         ;;
48914     esac
48915   fi
48916
48917   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
48918
48919
48920
48921
48922
48923
48924
48925
48926   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
48927
48928   fi
48929
48930
48931
48932
48933
48934           GNULIB_SETENV=1
48935
48936
48937
48938
48939
48940 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
48941
48942
48943
48944
48945
48946
48947   case "$host_os" in
48948             mingw*) REPLACE_SETLOCALE=1 ;;
48949             cygwin*)
48950       case `uname -r` in
48951         1.5.*) REPLACE_SETLOCALE=1 ;;
48952       esac
48953       ;;
48954   esac
48955
48956   if test $REPLACE_SETLOCALE = 1; then
48957
48958
48959
48960
48961
48962
48963
48964
48965   gl_LIBOBJS="$gl_LIBOBJS setlocale.$ac_objext"
48966
48967
48968   :
48969
48970   fi
48971
48972
48973
48974
48975
48976           GNULIB_SETLOCALE=1
48977
48978
48979
48980
48981
48982 $as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
48983
48984
48985
48986
48987
48988
48989   if test $ac_cv_func_sigaction = yes; then
48990     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
48991 "
48992 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
48993
48994 cat >>confdefs.h <<_ACEOF
48995 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
48996 _ACEOF
48997
48998
48999 fi
49000
49001     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
49002       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
49003     fi
49004   else
49005     HAVE_SIGACTION=0
49006   fi
49007
49008   if test $HAVE_SIGACTION = 0; then
49009
49010
49011
49012
49013
49014
49015
49016
49017   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
49018
49019
49020
49021
49022
49023
49024
49025   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
49026 #include <signal.h>
49027
49028 "
49029 if test "x$ac_cv_type_siginfo_t" = xyes; then :
49030
49031 cat >>confdefs.h <<_ACEOF
49032 #define HAVE_SIGINFO_T 1
49033 _ACEOF
49034
49035
49036 fi
49037
49038   if test $ac_cv_type_siginfo_t = no; then
49039     HAVE_SIGINFO_T=0
49040   fi
49041
49042   fi
49043
49044
49045
49046
49047
49048           GNULIB_SIGACTION=1
49049
49050
49051
49052
49053
49054 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
49055
49056
49057
49058
49059
49060
49061
49062
49063
49064
49065
49066
49067
49068
49069      if test $gl_cv_have_include_next = yes; then
49070        gl_cv_next_signal_h='<'signal.h'>'
49071      else
49072        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
49073 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
49074 if ${gl_cv_next_signal_h+:} false; then :
49075   $as_echo_n "(cached) " >&6
49076 else
49077
49078
49079
49080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49081 /* end confdefs.h.  */
49082 #include <signal.h>
49083 _ACEOF
49084                 case "$host_os" in
49085     aix*) gl_absname_cpp="$ac_cpp -C" ;;
49086     *)    gl_absname_cpp="$ac_cpp" ;;
49087   esac
49088
49089   case "$host_os" in
49090     mingw*)
49091                                           gl_dirsep_regex='[/\\]'
49092       ;;
49093     *)
49094       gl_dirsep_regex='\/'
49095       ;;
49096   esac
49097       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
49098   gl_header_literal_regex=`echo 'signal.h' \
49099                            | sed -e "$gl_make_literal_regex_sed"`
49100   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
49101       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
49102       s|^/[^/]|//&|
49103       p
49104       q
49105     }'
49106
49107         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49108   sed -n "$gl_absolute_header_sed"`
49109
49110            gl_header=$gl_cv_absolute_signal_h
49111            gl_cv_next_signal_h='"'$gl_header'"'
49112
49113
49114 fi
49115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
49116 $as_echo "$gl_cv_next_signal_h" >&6; }
49117      fi
49118      NEXT_SIGNAL_H=$gl_cv_next_signal_h
49119
49120      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49121        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49122        gl_next_as_first_directive='<'signal.h'>'
49123      else
49124        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49125        gl_next_as_first_directive=$gl_cv_next_signal_h
49126      fi
49127      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
49128
49129
49130
49131
49132
49133 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
49134 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
49135   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
49136 #include <signal.h>
49137
49138 "
49139 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
49140
49141 else
49142   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
49143 fi
49144
49145
49146
49147
49148
49149
49150
49151   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
49152 #include <signal.h>
49153
49154 "
49155 if test "x$ac_cv_type_sighandler_t" = xyes; then :
49156
49157 else
49158   HAVE_SIGHANDLER_T=0
49159 fi
49160
49161
49162
49163     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
49164     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
49165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
49166 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
49167 if eval \${$as_gl_Symbol+:} false; then :
49168   $as_echo_n "(cached) " >&6
49169 else
49170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49171 /* end confdefs.h.  */
49172 #include <signal.h>
49173
49174 int
49175 main ()
49176 {
49177 #undef $gl_func
49178   (void) $gl_func;
49179   ;
49180   return 0;
49181 }
49182 _ACEOF
49183 if ac_fn_c_try_compile "$LINENO"; then :
49184   eval "$as_gl_Symbol=yes"
49185 else
49186   eval "$as_gl_Symbol=no"
49187 fi
49188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49189 fi
49190 eval ac_res=\$$as_gl_Symbol
49191                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
49192 $as_echo "$ac_res" >&6; }
49193     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
49194   cat >>confdefs.h <<_ACEOF
49195 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
49196 _ACEOF
49197
49198                      eval ac_cv_have_decl_$gl_func=yes
49199 fi
49200       done
49201
49202
49203
49204
49205      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
49206 $as_echo_n "checking for signbit macro... " >&6; }
49207 if ${gl_cv_func_signbit+:} false; then :
49208   $as_echo_n "(cached) " >&6
49209 else
49210
49211       if test "$cross_compiling" = yes; then :
49212   case "$host_os" in
49213                    # Guess yes on glibc systems.
49214            *-gnu*) gl_cv_func_signbit="guessing yes" ;;
49215                    # If we don't know, assume the worst.
49216            *)      gl_cv_func_signbit="guessing no" ;;
49217          esac
49218
49219 else
49220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49221 /* end confdefs.h.  */
49222
49223 #include <math.h>
49224 /* If signbit is defined as a function, don't use it, since calling it for
49225    'float' or 'long double' arguments would involve conversions.
49226    If signbit is not declared at all but exists as a library function, don't
49227    use it, since the prototype may not match.
49228    If signbit is not declared at all but exists as a compiler built-in, don't
49229    use it, since it's preferable to use __builtin_signbit* (no warnings,
49230    no conversions).  */
49231 #ifndef signbit
49232 # error "signbit should be a macro"
49233 #endif
49234 #include <string.h>
49235
49236 /* Global variables.
49237    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
49238    but cannot constant-fold            __builtin_signbitl (variable).  */
49239 float vf;
49240 double vd;
49241 long double vl;
49242 int main ()
49243 {
49244 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
49245    So we use -p0f and -p0d instead.  */
49246 float p0f = 0.0f;
49247 float m0f = -p0f;
49248 double p0d = 0.0;
49249 double m0d = -p0d;
49250 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
49251    So we use another constant expression instead.
49252    But that expression does not work on other platforms, such as when
49253    cross-compiling to PowerPC on Mac OS X 10.5.  */
49254 long double p0l = 0.0L;
49255 #if defined __hpux || defined __sgi
49256 long double m0l = -LDBL_MIN * LDBL_MIN;
49257 #else
49258 long double m0l = -p0l;
49259 #endif
49260   int result = 0;
49261   if (signbit (vf)) /* link check */
49262     vf++;
49263   {
49264     float plus_inf = 1.0f / p0f;
49265     float minus_inf = -1.0f / p0f;
49266     if (!(!signbit (255.0f)
49267           && signbit (-255.0f)
49268           && !signbit (p0f)
49269           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
49270           && !signbit (plus_inf)
49271           && signbit (minus_inf)))
49272       result |= 1;
49273   }
49274   if (signbit (vd)) /* link check */
49275     vd++;
49276   {
49277     double plus_inf = 1.0 / p0d;
49278     double minus_inf = -1.0 / p0d;
49279     if (!(!signbit (255.0)
49280           && signbit (-255.0)
49281           && !signbit (p0d)
49282           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
49283           && !signbit (plus_inf)
49284           && signbit (minus_inf)))
49285       result |= 2;
49286   }
49287   if (signbit (vl)) /* link check */
49288     vl++;
49289   {
49290     long double plus_inf = 1.0L / p0l;
49291     long double minus_inf = -1.0L / p0l;
49292     if (signbit (255.0L))
49293       result |= 4;
49294     if (!signbit (-255.0L))
49295       result |= 4;
49296     if (signbit (p0l))
49297       result |= 8;
49298     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
49299       result |= 16;
49300     if (signbit (plus_inf))
49301       result |= 32;
49302     if (!signbit (minus_inf))
49303       result |= 64;
49304   }
49305   return result;
49306 }
49307
49308
49309 _ACEOF
49310 if ac_fn_c_try_run "$LINENO"; then :
49311   gl_cv_func_signbit=yes
49312 else
49313   gl_cv_func_signbit=no
49314 fi
49315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49316   conftest.$ac_objext conftest.beam conftest.$ac_ext
49317 fi
49318
49319
49320 fi
49321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
49322 $as_echo "$gl_cv_func_signbit" >&6; }
49323           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
49324 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
49325 if ${gl_cv_func_signbit_gcc+:} false; then :
49326   $as_echo_n "(cached) " >&6
49327 else
49328
49329       if test "$cross_compiling" = yes; then :
49330   case "$host_os" in
49331                    # Guess yes on glibc systems.
49332            *-gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
49333                    # If we don't know, assume the worst.
49334            *)      gl_cv_func_signbit_gcc="guessing no" ;;
49335          esac
49336
49337 else
49338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49339 /* end confdefs.h.  */
49340
49341 #if __GNUC__ >= 4
49342 # define signbit(x) \
49343    (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
49344     sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
49345     __builtin_signbitf (x))
49346 #else
49347 # error "signbit should be three compiler built-ins"
49348 #endif
49349 #include <string.h>
49350
49351 /* Global variables.
49352    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
49353    but cannot constant-fold            __builtin_signbitl (variable).  */
49354 float vf;
49355 double vd;
49356 long double vl;
49357 int main ()
49358 {
49359 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
49360    So we use -p0f and -p0d instead.  */
49361 float p0f = 0.0f;
49362 float m0f = -p0f;
49363 double p0d = 0.0;
49364 double m0d = -p0d;
49365 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
49366    So we use another constant expression instead.
49367    But that expression does not work on other platforms, such as when
49368    cross-compiling to PowerPC on Mac OS X 10.5.  */
49369 long double p0l = 0.0L;
49370 #if defined __hpux || defined __sgi
49371 long double m0l = -LDBL_MIN * LDBL_MIN;
49372 #else
49373 long double m0l = -p0l;
49374 #endif
49375   int result = 0;
49376   if (signbit (vf)) /* link check */
49377     vf++;
49378   {
49379     float plus_inf = 1.0f / p0f;
49380     float minus_inf = -1.0f / p0f;
49381     if (!(!signbit (255.0f)
49382           && signbit (-255.0f)
49383           && !signbit (p0f)
49384           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
49385           && !signbit (plus_inf)
49386           && signbit (minus_inf)))
49387       result |= 1;
49388   }
49389   if (signbit (vd)) /* link check */
49390     vd++;
49391   {
49392     double plus_inf = 1.0 / p0d;
49393     double minus_inf = -1.0 / p0d;
49394     if (!(!signbit (255.0)
49395           && signbit (-255.0)
49396           && !signbit (p0d)
49397           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
49398           && !signbit (plus_inf)
49399           && signbit (minus_inf)))
49400       result |= 2;
49401   }
49402   if (signbit (vl)) /* link check */
49403     vl++;
49404   {
49405     long double plus_inf = 1.0L / p0l;
49406     long double minus_inf = -1.0L / p0l;
49407     if (signbit (255.0L))
49408       result |= 4;
49409     if (!signbit (-255.0L))
49410       result |= 4;
49411     if (signbit (p0l))
49412       result |= 8;
49413     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
49414       result |= 16;
49415     if (signbit (plus_inf))
49416       result |= 32;
49417     if (!signbit (minus_inf))
49418       result |= 64;
49419   }
49420   return result;
49421 }
49422
49423
49424 _ACEOF
49425 if ac_fn_c_try_run "$LINENO"; then :
49426   gl_cv_func_signbit_gcc=yes
49427 else
49428   gl_cv_func_signbit_gcc=no
49429 fi
49430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49431   conftest.$ac_objext conftest.beam conftest.$ac_ext
49432 fi
49433
49434
49435 fi
49436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
49437 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
49438       case "$gl_cv_func_signbit_gcc" in
49439     *yes)
49440       REPLACE_SIGNBIT_USING_GCC=1
49441       ;;
49442     *)
49443       case "$gl_cv_func_signbit" in
49444         *yes) ;;
49445         *)
49446                     REPLACE_SIGNBIT=1
49447
49448
49449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
49450 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
49451 if ${gl_cv_cc_float_signbit+:} false; then :
49452   $as_echo_n "(cached) " >&6
49453 else
49454
49455       if test "$cross_compiling" = yes; then :
49456
49457                               gl_cv_cc_float_signbit="unknown"
49458
49459 else
49460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49461 /* end confdefs.h.  */
49462
49463 #include <stddef.h>
49464 #include <stdio.h>
49465 #define NWORDS \
49466   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
49467 typedef union { float value; unsigned int word[NWORDS]; }
49468         memory_float;
49469 static memory_float plus = { 1.0f };
49470 static memory_float minus = { -1.0f };
49471 int main ()
49472 {
49473   size_t j, k, i;
49474   unsigned int m;
49475   FILE *fp = fopen ("conftest.out", "w");
49476   if (fp == NULL)
49477     return 1;
49478   /* Find the different bit.  */
49479   k = 0; m = 0;
49480   for (j = 0; j < NWORDS; j++)
49481     {
49482       unsigned int x = plus.word[j] ^ minus.word[j];
49483       if ((x & (x - 1)) || (x && m))
49484         {
49485           /* More than one bit difference.  */
49486           fprintf (fp, "unknown");
49487           return 2;
49488         }
49489       if (x)
49490         {
49491           k = j;
49492           m = x;
49493         }
49494     }
49495   if (m == 0)
49496     {
49497       /* No difference.  */
49498       fprintf (fp, "unknown");
49499       return 3;
49500     }
49501   /* Now m = plus.word[k] ^ ~minus.word[k].  */
49502   if (plus.word[k] & ~minus.word[k])
49503     {
49504       /* Oh? The sign bit is set in the positive and cleared in the negative
49505          numbers?  */
49506       fprintf (fp, "unknown");
49507       return 4;
49508     }
49509   for (i = 0; ; i++)
49510     if ((m >> i) & 1)
49511       break;
49512   fprintf (fp, "word %d bit %d", (int) k, (int) i);
49513   if (fclose (fp) != 0)
49514     return 5;
49515   return 0;
49516 }
49517
49518 _ACEOF
49519 if ac_fn_c_try_run "$LINENO"; then :
49520   gl_cv_cc_float_signbit=`cat conftest.out`
49521 else
49522   gl_cv_cc_float_signbit="unknown"
49523 fi
49524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49525   conftest.$ac_objext conftest.beam conftest.$ac_ext
49526 fi
49527
49528       rm -f conftest.out
49529
49530 fi
49531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
49532 $as_echo "$gl_cv_cc_float_signbit" >&6; }
49533   case "$gl_cv_cc_float_signbit" in
49534     word*bit*)
49535       word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
49536       bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
49537
49538 cat >>confdefs.h <<_ACEOF
49539 #define FLT_SIGNBIT_WORD $word
49540 _ACEOF
49541
49542
49543 cat >>confdefs.h <<_ACEOF
49544 #define FLT_SIGNBIT_BIT $bit
49545 _ACEOF
49546
49547       ;;
49548   esac
49549
49550
49551
49552
49553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
49554 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
49555 if ${gl_cv_cc_double_signbit+:} false; then :
49556   $as_echo_n "(cached) " >&6
49557 else
49558
49559       if test "$cross_compiling" = yes; then :
49560
49561                               gl_cv_cc_double_signbit="unknown"
49562
49563 else
49564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49565 /* end confdefs.h.  */
49566
49567 #include <stddef.h>
49568 #include <stdio.h>
49569 #define NWORDS \
49570   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
49571 typedef union { double value; unsigned int word[NWORDS]; }
49572         memory_float;
49573 static memory_float plus = { 1.0 };
49574 static memory_float minus = { -1.0 };
49575 int main ()
49576 {
49577   size_t j, k, i;
49578   unsigned int m;
49579   FILE *fp = fopen ("conftest.out", "w");
49580   if (fp == NULL)
49581     return 1;
49582   /* Find the different bit.  */
49583   k = 0; m = 0;
49584   for (j = 0; j < NWORDS; j++)
49585     {
49586       unsigned int x = plus.word[j] ^ minus.word[j];
49587       if ((x & (x - 1)) || (x && m))
49588         {
49589           /* More than one bit difference.  */
49590           fprintf (fp, "unknown");
49591           return 2;
49592         }
49593       if (x)
49594         {
49595           k = j;
49596           m = x;
49597         }
49598     }
49599   if (m == 0)
49600     {
49601       /* No difference.  */
49602       fprintf (fp, "unknown");
49603       return 3;
49604     }
49605   /* Now m = plus.word[k] ^ ~minus.word[k].  */
49606   if (plus.word[k] & ~minus.word[k])
49607     {
49608       /* Oh? The sign bit is set in the positive and cleared in the negative
49609          numbers?  */
49610       fprintf (fp, "unknown");
49611       return 4;
49612     }
49613   for (i = 0; ; i++)
49614     if ((m >> i) & 1)
49615       break;
49616   fprintf (fp, "word %d bit %d", (int) k, (int) i);
49617   if (fclose (fp) != 0)
49618     return 5;
49619   return 0;
49620 }
49621
49622 _ACEOF
49623 if ac_fn_c_try_run "$LINENO"; then :
49624   gl_cv_cc_double_signbit=`cat conftest.out`
49625 else
49626   gl_cv_cc_double_signbit="unknown"
49627 fi
49628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49629   conftest.$ac_objext conftest.beam conftest.$ac_ext
49630 fi
49631
49632       rm -f conftest.out
49633
49634 fi
49635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
49636 $as_echo "$gl_cv_cc_double_signbit" >&6; }
49637   case "$gl_cv_cc_double_signbit" in
49638     word*bit*)
49639       word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
49640       bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
49641
49642 cat >>confdefs.h <<_ACEOF
49643 #define DBL_SIGNBIT_WORD $word
49644 _ACEOF
49645
49646
49647 cat >>confdefs.h <<_ACEOF
49648 #define DBL_SIGNBIT_BIT $bit
49649 _ACEOF
49650
49651       ;;
49652   esac
49653
49654
49655
49656
49657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
49658 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
49659 if ${gl_cv_cc_long_double_signbit+:} false; then :
49660   $as_echo_n "(cached) " >&6
49661 else
49662
49663       if test "$cross_compiling" = yes; then :
49664
49665                               gl_cv_cc_long_double_signbit="unknown"
49666
49667 else
49668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49669 /* end confdefs.h.  */
49670
49671 #include <stddef.h>
49672 #include <stdio.h>
49673 #define NWORDS \
49674   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
49675 typedef union { long double value; unsigned int word[NWORDS]; }
49676         memory_float;
49677 static memory_float plus = { 1.0L };
49678 static memory_float minus = { -1.0L };
49679 int main ()
49680 {
49681   size_t j, k, i;
49682   unsigned int m;
49683   FILE *fp = fopen ("conftest.out", "w");
49684   if (fp == NULL)
49685     return 1;
49686   /* Find the different bit.  */
49687   k = 0; m = 0;
49688   for (j = 0; j < NWORDS; j++)
49689     {
49690       unsigned int x = plus.word[j] ^ minus.word[j];
49691       if ((x & (x - 1)) || (x && m))
49692         {
49693           /* More than one bit difference.  */
49694           fprintf (fp, "unknown");
49695           return 2;
49696         }
49697       if (x)
49698         {
49699           k = j;
49700           m = x;
49701         }
49702     }
49703   if (m == 0)
49704     {
49705       /* No difference.  */
49706       fprintf (fp, "unknown");
49707       return 3;
49708     }
49709   /* Now m = plus.word[k] ^ ~minus.word[k].  */
49710   if (plus.word[k] & ~minus.word[k])
49711     {
49712       /* Oh? The sign bit is set in the positive and cleared in the negative
49713          numbers?  */
49714       fprintf (fp, "unknown");
49715       return 4;
49716     }
49717   for (i = 0; ; i++)
49718     if ((m >> i) & 1)
49719       break;
49720   fprintf (fp, "word %d bit %d", (int) k, (int) i);
49721   if (fclose (fp) != 0)
49722     return 5;
49723   return 0;
49724 }
49725
49726 _ACEOF
49727 if ac_fn_c_try_run "$LINENO"; then :
49728   gl_cv_cc_long_double_signbit=`cat conftest.out`
49729 else
49730   gl_cv_cc_long_double_signbit="unknown"
49731 fi
49732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49733   conftest.$ac_objext conftest.beam conftest.$ac_ext
49734 fi
49735
49736       rm -f conftest.out
49737
49738 fi
49739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
49740 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
49741   case "$gl_cv_cc_long_double_signbit" in
49742     word*bit*)
49743       word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
49744       bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
49745
49746 cat >>confdefs.h <<_ACEOF
49747 #define LDBL_SIGNBIT_WORD $word
49748 _ACEOF
49749
49750
49751 cat >>confdefs.h <<_ACEOF
49752 #define LDBL_SIGNBIT_BIT $bit
49753 _ACEOF
49754
49755       ;;
49756   esac
49757
49758
49759           if test "$gl_cv_cc_float_signbit" = unknown; then
49760                         ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
49761 "
49762 if test "x$ac_cv_have_decl_copysignf" = xyes; then :
49763   ac_have_decl=1
49764 else
49765   ac_have_decl=0
49766 fi
49767
49768 cat >>confdefs.h <<_ACEOF
49769 #define HAVE_DECL_COPYSIGNF $ac_have_decl
49770 _ACEOF
49771
49772             if test "$ac_cv_have_decl_copysignf" = yes; then
49773                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
49774 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
49775 if ${gl_cv_func_copysignf_no_libm+:} false; then :
49776   $as_echo_n "(cached) " >&6
49777 else
49778
49779                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49780 /* end confdefs.h.  */
49781 #include <math.h>
49782                          float x, y;
49783 int
49784 main ()
49785 {
49786 return copysignf (x, y) < 0;
49787   ;
49788   return 0;
49789 }
49790 _ACEOF
49791 if ac_fn_c_try_link "$LINENO"; then :
49792   gl_cv_func_copysignf_no_libm=yes
49793 else
49794   gl_cv_func_copysignf_no_libm=no
49795 fi
49796 rm -f core conftest.err conftest.$ac_objext \
49797     conftest$ac_exeext conftest.$ac_ext
49798
49799 fi
49800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
49801 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
49802               if test $gl_cv_func_copysignf_no_libm = yes; then
49803
49804 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
49805
49806               fi
49807             fi
49808           fi
49809           if test "$gl_cv_cc_double_signbit" = unknown; then
49810                         ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
49811 "
49812 if test "x$ac_cv_have_decl_copysign" = xyes; then :
49813   ac_have_decl=1
49814 else
49815   ac_have_decl=0
49816 fi
49817
49818 cat >>confdefs.h <<_ACEOF
49819 #define HAVE_DECL_COPYSIGN $ac_have_decl
49820 _ACEOF
49821
49822             if test "$ac_cv_have_decl_copysign" = yes; then
49823                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
49824 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
49825 if ${gl_cv_func_copysign_no_libm+:} false; then :
49826   $as_echo_n "(cached) " >&6
49827 else
49828
49829                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49830 /* end confdefs.h.  */
49831 #include <math.h>
49832                          double x, y;
49833 int
49834 main ()
49835 {
49836 return copysign (x, y) < 0;
49837   ;
49838   return 0;
49839 }
49840 _ACEOF
49841 if ac_fn_c_try_link "$LINENO"; then :
49842   gl_cv_func_copysign_no_libm=yes
49843 else
49844   gl_cv_func_copysign_no_libm=no
49845 fi
49846 rm -f core conftest.err conftest.$ac_objext \
49847     conftest$ac_exeext conftest.$ac_ext
49848
49849 fi
49850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
49851 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
49852               if test $gl_cv_func_copysign_no_libm = yes; then
49853
49854 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
49855
49856               fi
49857             fi
49858           fi
49859           if test "$gl_cv_cc_long_double_signbit" = unknown; then
49860                         ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
49861 "
49862 if test "x$ac_cv_have_decl_copysignl" = xyes; then :
49863   ac_have_decl=1
49864 else
49865   ac_have_decl=0
49866 fi
49867
49868 cat >>confdefs.h <<_ACEOF
49869 #define HAVE_DECL_COPYSIGNL $ac_have_decl
49870 _ACEOF
49871
49872             if test "$ac_cv_have_decl_copysignl" = yes; then
49873                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
49874 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
49875 if ${gl_cv_func_copysignl_no_libm+:} false; then :
49876   $as_echo_n "(cached) " >&6
49877 else
49878
49879                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49880 /* end confdefs.h.  */
49881 #include <math.h>
49882                          long double x, y;
49883 int
49884 main ()
49885 {
49886 return copysignl (x, y) < 0;
49887   ;
49888   return 0;
49889 }
49890 _ACEOF
49891 if ac_fn_c_try_link "$LINENO"; then :
49892   gl_cv_func_copysignl_no_libm=yes
49893 else
49894   gl_cv_func_copysignl_no_libm=no
49895 fi
49896 rm -f core conftest.err conftest.$ac_objext \
49897     conftest$ac_exeext conftest.$ac_ext
49898
49899 fi
49900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
49901 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
49902               if test $gl_cv_func_copysignl_no_libm = yes; then
49903
49904 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
49905
49906               fi
49907             fi
49908           fi
49909           ;;
49910       esac
49911       ;;
49912   esac
49913
49914   if test $REPLACE_SIGNBIT = 1; then
49915
49916
49917
49918
49919
49920
49921
49922
49923   gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
49924
49925
49926
49927
49928
49929
49930
49931
49932
49933   gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
49934
49935
49936
49937
49938
49939
49940
49941
49942
49943   gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
49944
49945   fi
49946
49947
49948
49949
49950
49951           GNULIB_SIGNBIT=1
49952
49953
49954
49955
49956
49957 $as_echo "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
49958
49959
49960
49961
49962
49963
49964
49965
49966 cat >>confdefs.h <<_ACEOF
49967 #define GNULIB_SIGPIPE 1
49968 _ACEOF
49969
49970
49971
49972   GNULIB_SIGNAL_H_SIGPIPE=1
49973
49974
49975   GNULIB_STDIO_H_SIGPIPE=1
49976
49977   GNULIB_UNISTD_H_SIGPIPE=1
49978
49979
49980
49981   if test $gl_cv_type_sigset_t = yes; then
49982     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
49983 if test "x$ac_cv_func_sigprocmask" = xyes; then :
49984   gl_cv_func_sigprocmask=1
49985 fi
49986
49987   fi
49988   if test -z "$gl_cv_func_sigprocmask"; then
49989     HAVE_POSIX_SIGNALBLOCKING=0
49990   fi
49991
49992   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
49993
49994
49995
49996
49997
49998
49999
50000
50001   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
50002
50003     :
50004   fi
50005
50006
50007
50008
50009
50010           GNULIB_SIGPROCMASK=1
50011
50012
50013
50014
50015
50016 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
50017
50018
50019
50020
50021   for ac_header in stdint.h
50022 do :
50023   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
50024 if test "x$ac_cv_header_stdint_h" = xyes; then :
50025   cat >>confdefs.h <<_ACEOF
50026 #define HAVE_STDINT_H 1
50027 _ACEOF
50028
50029 fi
50030
50031 done
50032
50033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
50034 $as_echo_n "checking for SIZE_MAX... " >&6; }
50035 if ${gl_cv_size_max+:} false; then :
50036   $as_echo_n "(cached) " >&6
50037 else
50038
50039     gl_cv_size_max=
50040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50041 /* end confdefs.h.  */
50042
50043 #include <limits.h>
50044 #if HAVE_STDINT_H
50045 #include <stdint.h>
50046 #endif
50047 #ifdef SIZE_MAX
50048 Found it
50049 #endif
50050
50051 _ACEOF
50052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50053   $EGREP "Found it" >/dev/null 2>&1; then :
50054   gl_cv_size_max=yes
50055 fi
50056 rm -f conftest*
50057
50058     if test -z "$gl_cv_size_max"; then
50059                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
50060 #include <limits.h>"; then :
50061
50062 else
50063   size_t_bits_minus_1=
50064 fi
50065
50066       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
50067
50068 else
50069   fits_in_uint=
50070 fi
50071
50072       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
50073         if test $fits_in_uint = 1; then
50074                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50075 /* end confdefs.h.  */
50076 #include <stddef.h>
50077                  extern size_t foo;
50078                  extern unsigned long foo;
50079
50080 int
50081 main ()
50082 {
50083
50084   ;
50085   return 0;
50086 }
50087 _ACEOF
50088 if ac_fn_c_try_compile "$LINENO"; then :
50089   fits_in_uint=0
50090 fi
50091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50092         fi
50093                                 if test $fits_in_uint = 1; then
50094           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
50095         else
50096           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
50097         fi
50098       else
50099                 gl_cv_size_max='((size_t)~(size_t)0)'
50100       fi
50101     fi
50102
50103 fi
50104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
50105 $as_echo "$gl_cv_size_max" >&6; }
50106   if test "$gl_cv_size_max" != yes; then
50107
50108 cat >>confdefs.h <<_ACEOF
50109 #define SIZE_MAX $gl_cv_size_max
50110 _ACEOF
50111
50112   fi
50113
50114
50115
50116
50117   gl_cv_func_snprintf_usable=no
50118   for ac_func in snprintf
50119 do :
50120   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
50121 if test "x$ac_cv_func_snprintf" = xyes; then :
50122   cat >>confdefs.h <<_ACEOF
50123 #define HAVE_SNPRINTF 1
50124 _ACEOF
50125
50126 fi
50127 done
50128
50129   if test $ac_cv_func_snprintf = yes; then
50130
50131
50132
50133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
50134 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
50135 if ${gl_cv_func_snprintf_size1+:} false; then :
50136   $as_echo_n "(cached) " >&6
50137 else
50138
50139       if test "$cross_compiling" = yes; then :
50140   gl_cv_func_snprintf_size1="guessing yes"
50141 else
50142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50143 /* end confdefs.h.  */
50144
50145 #include <stdio.h>
50146 #if HAVE_SNPRINTF
50147 # define my_snprintf snprintf
50148 #else
50149 # include <stdarg.h>
50150 static int my_snprintf (char *buf, int size, const char *format, ...)
50151 {
50152   va_list args;
50153   int ret;
50154   va_start (args, format);
50155   ret = vsnprintf (buf, size, format, args);
50156   va_end (args);
50157   return ret;
50158 }
50159 #endif
50160 int main()
50161 {
50162   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
50163   my_snprintf (buf, 1, "%d", 12345);
50164   return buf[1] != 'E';
50165 }
50166 _ACEOF
50167 if ac_fn_c_try_run "$LINENO"; then :
50168   gl_cv_func_snprintf_size1=yes
50169 else
50170   gl_cv_func_snprintf_size1=no
50171 fi
50172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50173   conftest.$ac_objext conftest.beam conftest.$ac_ext
50174 fi
50175
50176
50177 fi
50178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
50179 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
50180
50181     case "$gl_cv_func_snprintf_size1" in
50182       *yes)
50183
50184         case "$gl_cv_func_snprintf_retval_c99" in
50185           *yes)
50186
50187
50188      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
50189 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
50190 if ${gl_cv_func_printf_positions+:} false; then :
50191   $as_echo_n "(cached) " >&6
50192 else
50193
50194       if test "$cross_compiling" = yes; then :
50195
50196          case "$host_os" in
50197            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
50198                          gl_cv_func_printf_positions="guessing no";;
50199            beos*)        gl_cv_func_printf_positions="guessing no";;
50200            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
50201            *)            gl_cv_func_printf_positions="guessing yes";;
50202          esac
50203
50204 else
50205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50206 /* end confdefs.h.  */
50207
50208 #include <stdio.h>
50209 #include <string.h>
50210 /* The string "%2$d %1$d", with dollar characters protected from the shell's
50211    dollar expansion (possibly an autoconf bug).  */
50212 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
50213 static char buf[100];
50214 int main ()
50215 {
50216   sprintf (buf, format, 33, 55);
50217   return (strcmp (buf, "55 33") != 0);
50218 }
50219 _ACEOF
50220 if ac_fn_c_try_run "$LINENO"; then :
50221   gl_cv_func_printf_positions=yes
50222 else
50223   gl_cv_func_printf_positions=no
50224 fi
50225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50226   conftest.$ac_objext conftest.beam conftest.$ac_ext
50227 fi
50228
50229
50230 fi
50231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
50232 $as_echo "$gl_cv_func_printf_positions" >&6; }
50233
50234             case "$gl_cv_func_printf_positions" in
50235               *yes)
50236                 gl_cv_func_snprintf_usable=yes
50237                 ;;
50238             esac
50239             ;;
50240         esac
50241         ;;
50242     esac
50243   fi
50244   if test $gl_cv_func_snprintf_usable = no; then
50245
50246
50247
50248
50249
50250
50251
50252
50253
50254
50255   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
50256
50257   if test $ac_cv_func_snprintf = yes; then
50258     REPLACE_SNPRINTF=1
50259   fi
50260   :
50261
50262   fi
50263
50264   if test $ac_cv_have_decl_snprintf = no; then
50265     HAVE_DECL_SNPRINTF=0
50266   fi
50267
50268
50269
50270
50271
50272
50273           GNULIB_SNPRINTF=1
50274
50275
50276
50277
50278
50279 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
50280
50281
50282
50283
50284
50285 cat >>confdefs.h <<_ACEOF
50286 #define GNULIB_SNPRINTF 1
50287 _ACEOF
50288
50289
50290
50291
50292
50293
50294
50295
50296
50297
50298
50299
50300
50301
50302      if test $gl_cv_have_include_next = yes; then
50303        gl_cv_next_spawn_h='<'spawn.h'>'
50304      else
50305        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <spawn.h>" >&5
50306 $as_echo_n "checking absolute name of <spawn.h>... " >&6; }
50307 if ${gl_cv_next_spawn_h+:} false; then :
50308   $as_echo_n "(cached) " >&6
50309 else
50310
50311              if test $ac_cv_header_spawn_h = yes; then
50312
50313
50314
50315
50316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50317 /* end confdefs.h.  */
50318 #include <spawn.h>
50319 _ACEOF
50320                 case "$host_os" in
50321     aix*) gl_absname_cpp="$ac_cpp -C" ;;
50322     *)    gl_absname_cpp="$ac_cpp" ;;
50323   esac
50324
50325   case "$host_os" in
50326     mingw*)
50327                                           gl_dirsep_regex='[/\\]'
50328       ;;
50329     *)
50330       gl_dirsep_regex='\/'
50331       ;;
50332   esac
50333       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
50334   gl_header_literal_regex=`echo 'spawn.h' \
50335                            | sed -e "$gl_make_literal_regex_sed"`
50336   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
50337       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
50338       s|^/[^/]|//&|
50339       p
50340       q
50341     }'
50342
50343         gl_cv_absolute_spawn_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50344   sed -n "$gl_absolute_header_sed"`
50345
50346            gl_header=$gl_cv_absolute_spawn_h
50347            gl_cv_next_spawn_h='"'$gl_header'"'
50348           else
50349                gl_cv_next_spawn_h='<'spawn.h'>'
50350              fi
50351
50352
50353 fi
50354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_spawn_h" >&5
50355 $as_echo "$gl_cv_next_spawn_h" >&6; }
50356      fi
50357      NEXT_SPAWN_H=$gl_cv_next_spawn_h
50358
50359      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50360        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50361        gl_next_as_first_directive='<'spawn.h'>'
50362      else
50363        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50364        gl_next_as_first_directive=$gl_cv_next_spawn_h
50365      fi
50366      NEXT_AS_FIRST_DIRECTIVE_SPAWN_H=$gl_next_as_first_directive
50367
50368
50369
50370
50371
50372   if test $ac_cv_header_spawn_h = yes; then
50373     HAVE_SPAWN_H=1
50374     ac_fn_c_check_type "$LINENO" "posix_spawnattr_t" "ac_cv_type_posix_spawnattr_t" "
50375 #include <spawn.h>
50376
50377 "
50378 if test "x$ac_cv_type_posix_spawnattr_t" = xyes; then :
50379
50380 cat >>confdefs.h <<_ACEOF
50381 #define HAVE_POSIX_SPAWNATTR_T 1
50382 _ACEOF
50383
50384
50385 else
50386   HAVE_POSIX_SPAWNATTR_T=0
50387 fi
50388
50389     ac_fn_c_check_type "$LINENO" "posix_spawn_file_actions_t" "ac_cv_type_posix_spawn_file_actions_t" "
50390 #include <spawn.h>
50391
50392 "
50393 if test "x$ac_cv_type_posix_spawn_file_actions_t" = xyes; then :
50394
50395 cat >>confdefs.h <<_ACEOF
50396 #define HAVE_POSIX_SPAWN_FILE_ACTIONS_T 1
50397 _ACEOF
50398
50399
50400 else
50401   HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
50402 fi
50403
50404   else
50405     HAVE_SPAWN_H=0
50406     HAVE_POSIX_SPAWNATTR_T=0
50407     HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
50408   fi
50409
50410
50411
50412
50413
50414
50415
50416
50417
50418
50419
50420     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
50421     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
50423 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50424 if eval \${$as_gl_Symbol+:} false; then :
50425   $as_echo_n "(cached) " >&6
50426 else
50427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50428 /* end confdefs.h.  */
50429 #include <spawn.h>
50430
50431 int
50432 main ()
50433 {
50434 #undef $gl_func
50435   (void) $gl_func;
50436   ;
50437   return 0;
50438 }
50439 _ACEOF
50440 if ac_fn_c_try_compile "$LINENO"; then :
50441   eval "$as_gl_Symbol=yes"
50442 else
50443   eval "$as_gl_Symbol=no"
50444 fi
50445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50446 fi
50447 eval ac_res=\$$as_gl_Symbol
50448                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50449 $as_echo "$ac_res" >&6; }
50450     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
50451   cat >>confdefs.h <<_ACEOF
50452 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
50453 _ACEOF
50454
50455                      eval ac_cv_have_decl_$gl_func=yes
50456 fi
50457       done
50458
50459
50460
50461
50462
50463
50464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
50465 $as_echo_n "checking for ssize_t... " >&6; }
50466 if ${gt_cv_ssize_t+:} false; then :
50467   $as_echo_n "(cached) " >&6
50468 else
50469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50470 /* end confdefs.h.  */
50471 #include <sys/types.h>
50472 int
50473 main ()
50474 {
50475 int x = sizeof (ssize_t *) + sizeof (ssize_t);
50476             return !x;
50477   ;
50478   return 0;
50479 }
50480 _ACEOF
50481 if ac_fn_c_try_compile "$LINENO"; then :
50482   gt_cv_ssize_t=yes
50483 else
50484   gt_cv_ssize_t=no
50485 fi
50486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50487 fi
50488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
50489 $as_echo "$gt_cv_ssize_t" >&6; }
50490   if test $gt_cv_ssize_t = no; then
50491
50492 $as_echo "#define ssize_t int" >>confdefs.h
50493
50494   fi
50495
50496
50497
50498
50499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
50500 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
50501 if ${gl_cv_func_stat_dir_slash+:} false; then :
50502   $as_echo_n "(cached) " >&6
50503 else
50504   if test "$cross_compiling" = yes; then :
50505   case $host_os in
50506             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
50507             *) gl_cv_func_stat_dir_slash="guessing yes";;
50508           esac
50509 else
50510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50511 /* end confdefs.h.  */
50512 #include <sys/stat.h>
50513
50514 int
50515 main ()
50516 {
50517 struct stat st; return stat (".", &st) != stat ("./", &st);
50518   ;
50519   return 0;
50520 }
50521 _ACEOF
50522 if ac_fn_c_try_run "$LINENO"; then :
50523   gl_cv_func_stat_dir_slash=yes
50524 else
50525   gl_cv_func_stat_dir_slash=no
50526 fi
50527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50528   conftest.$ac_objext conftest.beam conftest.$ac_ext
50529 fi
50530
50531 fi
50532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
50533 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
50534         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
50535 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
50536 if ${gl_cv_func_stat_file_slash+:} false; then :
50537   $as_echo_n "(cached) " >&6
50538 else
50539   touch conftest.tmp
50540        # Assume that if we have lstat, we can also check symlinks.
50541        if test $ac_cv_func_lstat = yes; then
50542          ln -s conftest.tmp conftest.lnk
50543        fi
50544        if test "$cross_compiling" = yes; then :
50545   case "$host_os" in
50546                     # Guess yes on glibc systems.
50547             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
50548                     # If we don't know, assume the worst.
50549             *)      gl_cv_func_stat_file_slash="guessing no" ;;
50550           esac
50551
50552 else
50553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50554 /* end confdefs.h.  */
50555 #include <sys/stat.h>
50556
50557 int
50558 main ()
50559 {
50560 int result = 0;
50561       struct stat st;
50562       if (!stat ("conftest.tmp/", &st))
50563         result |= 1;
50564 #if HAVE_LSTAT
50565       if (!stat ("conftest.lnk/", &st))
50566         result |= 2;
50567 #endif
50568       return result;
50569
50570   ;
50571   return 0;
50572 }
50573 _ACEOF
50574 if ac_fn_c_try_run "$LINENO"; then :
50575   gl_cv_func_stat_file_slash=yes
50576 else
50577   gl_cv_func_stat_file_slash=no
50578 fi
50579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50580   conftest.$ac_objext conftest.beam conftest.$ac_ext
50581 fi
50582
50583        rm -f conftest.tmp conftest.lnk
50584 fi
50585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
50586 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
50587   case $gl_cv_func_stat_dir_slash in
50588     *no) REPLACE_STAT=1
50589
50590 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
50591 ;;
50592   esac
50593   case $gl_cv_func_stat_file_slash in
50594     *no) REPLACE_STAT=1
50595
50596 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
50597 ;;
50598   esac
50599
50600   if test $REPLACE_STAT = 1; then
50601
50602
50603
50604
50605
50606
50607
50608
50609   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
50610
50611     :
50612   fi
50613
50614
50615
50616
50617
50618           GNULIB_STAT=1
50619
50620
50621
50622
50623
50624 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
50625
50626
50627
50628
50629   STDARG_H=''
50630   NEXT_STDARG_H='<stdarg.h>'
50631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
50632 $as_echo_n "checking for va_copy... " >&6; }
50633   if ${gl_cv_func_va_copy+:} false; then :
50634   $as_echo_n "(cached) " >&6
50635 else
50636
50637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50638 /* end confdefs.h.  */
50639 #include <stdarg.h>
50640 int
50641 main ()
50642 {
50643
50644 #ifndef va_copy
50645 void (*func) (va_list, va_list) = va_copy;
50646 #endif
50647
50648   ;
50649   return 0;
50650 }
50651 _ACEOF
50652 if ac_fn_c_try_compile "$LINENO"; then :
50653   gl_cv_func_va_copy=yes
50654 else
50655   gl_cv_func_va_copy=no
50656 fi
50657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50658 fi
50659
50660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
50661 $as_echo "$gl_cv_func_va_copy" >&6; }
50662   if test $gl_cv_func_va_copy = no; then
50663                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50664 /* end confdefs.h.  */
50665 #if defined _AIX && !defined __GNUC__
50666         AIX vaccine
50667        #endif
50668
50669 _ACEOF
50670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50671   $EGREP "vaccine" >/dev/null 2>&1; then :
50672   gl_aixcc=yes
50673 else
50674   gl_aixcc=no
50675 fi
50676 rm -f conftest*
50677
50678     if test $gl_aixcc = yes; then
50679             STDARG_H=stdarg.h
50680
50681
50682
50683
50684
50685
50686
50687
50688      if test $gl_cv_have_include_next = yes; then
50689        gl_cv_next_stdarg_h='<'stdarg.h'>'
50690      else
50691        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
50692 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
50693 if ${gl_cv_next_stdarg_h+:} false; then :
50694   $as_echo_n "(cached) " >&6
50695 else
50696
50697
50698
50699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50700 /* end confdefs.h.  */
50701 #include <stdarg.h>
50702 _ACEOF
50703                 case "$host_os" in
50704     aix*) gl_absname_cpp="$ac_cpp -C" ;;
50705     *)    gl_absname_cpp="$ac_cpp" ;;
50706   esac
50707
50708   case "$host_os" in
50709     mingw*)
50710                                           gl_dirsep_regex='[/\\]'
50711       ;;
50712     *)
50713       gl_dirsep_regex='\/'
50714       ;;
50715   esac
50716       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
50717   gl_header_literal_regex=`echo 'stdarg.h' \
50718                            | sed -e "$gl_make_literal_regex_sed"`
50719   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
50720       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
50721       s|^/[^/]|//&|
50722       p
50723       q
50724     }'
50725
50726         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50727   sed -n "$gl_absolute_header_sed"`
50728
50729            gl_header=$gl_cv_absolute_stdarg_h
50730            gl_cv_next_stdarg_h='"'$gl_header'"'
50731
50732
50733 fi
50734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
50735 $as_echo "$gl_cv_next_stdarg_h" >&6; }
50736      fi
50737      NEXT_STDARG_H=$gl_cv_next_stdarg_h
50738
50739      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50740        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50741        gl_next_as_first_directive='<'stdarg.h'>'
50742      else
50743        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50744        gl_next_as_first_directive=$gl_cv_next_stdarg_h
50745      fi
50746      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
50747
50748
50749
50750
50751             if test "$gl_cv_next_stdarg_h" = '""'; then
50752         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
50753         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
50754       fi
50755     else
50756
50757   saved_as_echo_n="$as_echo_n"
50758   as_echo_n=':'
50759   if ${gl_cv_func___va_copy+:} false; then :
50760   $as_echo_n "(cached) " >&6
50761 else
50762
50763         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50764 /* end confdefs.h.  */
50765 #include <stdarg.h>
50766 int
50767 main ()
50768 {
50769
50770 #ifndef __va_copy
50771 error, bail out
50772 #endif
50773
50774   ;
50775   return 0;
50776 }
50777 _ACEOF
50778 if ac_fn_c_try_compile "$LINENO"; then :
50779   gl_cv_func___va_copy=yes
50780 else
50781   gl_cv_func___va_copy=no
50782 fi
50783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50784 fi
50785
50786   as_echo_n="$saved_as_echo_n"
50787
50788       if test $gl_cv_func___va_copy = yes; then
50789
50790 $as_echo "#define va_copy __va_copy" >>confdefs.h
50791
50792       else
50793
50794
50795 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
50796
50797       fi
50798     fi
50799   fi
50800
50801    if test -n "$STDARG_H"; then
50802   GL_GENERATE_STDARG_H_TRUE=
50803   GL_GENERATE_STDARG_H_FALSE='#'
50804 else
50805   GL_GENERATE_STDARG_H_TRUE='#'
50806   GL_GENERATE_STDARG_H_FALSE=
50807 fi
50808
50809
50810
50811
50812
50813
50814   # Define two additional variables used in the Makefile substitution.
50815
50816   if test "$ac_cv_header_stdbool_h" = yes; then
50817     STDBOOL_H=''
50818   else
50819     STDBOOL_H='stdbool.h'
50820   fi
50821
50822    if test -n "$STDBOOL_H"; then
50823   GL_GENERATE_STDBOOL_H_TRUE=
50824   GL_GENERATE_STDBOOL_H_FALSE='#'
50825 else
50826   GL_GENERATE_STDBOOL_H_TRUE='#'
50827   GL_GENERATE_STDBOOL_H_FALSE=
50828 fi
50829
50830
50831   if test "$ac_cv_type__Bool" = yes; then
50832     HAVE__BOOL=1
50833   else
50834     HAVE__BOOL=0
50835   fi
50836
50837
50838
50839
50840
50841   STDDEF_H=
50842   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
50843
50844 "
50845 if test "x$ac_cv_type_max_align_t" = xyes; then :
50846
50847 else
50848   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
50849 fi
50850
50851   if test $gt_cv_c_wchar_t = no; then
50852     HAVE_WCHAR_T=0
50853     STDDEF_H=stddef.h
50854   fi
50855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
50856 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
50857 if ${gl_cv_decl_null_works+:} false; then :
50858   $as_echo_n "(cached) " >&6
50859 else
50860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50861 /* end confdefs.h.  */
50862 #include <stddef.h>
50863       int test[2 * (sizeof NULL == sizeof (void *)) -1];
50864
50865 int
50866 main ()
50867 {
50868
50869   ;
50870   return 0;
50871 }
50872 _ACEOF
50873 if ac_fn_c_try_compile "$LINENO"; then :
50874   gl_cv_decl_null_works=yes
50875 else
50876   gl_cv_decl_null_works=no
50877 fi
50878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50879 fi
50880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
50881 $as_echo "$gl_cv_decl_null_works" >&6; }
50882   if test $gl_cv_decl_null_works = no; then
50883     REPLACE_NULL=1
50884     STDDEF_H=stddef.h
50885   fi
50886
50887    if test -n "$STDDEF_H"; then
50888   GL_GENERATE_STDDEF_H_TRUE=
50889   GL_GENERATE_STDDEF_H_FALSE='#'
50890 else
50891   GL_GENERATE_STDDEF_H_TRUE='#'
50892   GL_GENERATE_STDDEF_H_FALSE=
50893 fi
50894
50895   if test -n "$STDDEF_H"; then
50896
50897
50898
50899
50900
50901
50902
50903
50904      if test $gl_cv_have_include_next = yes; then
50905        gl_cv_next_stddef_h='<'stddef.h'>'
50906      else
50907        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
50908 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
50909 if ${gl_cv_next_stddef_h+:} false; then :
50910   $as_echo_n "(cached) " >&6
50911 else
50912
50913
50914
50915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50916 /* end confdefs.h.  */
50917 #include <stddef.h>
50918 _ACEOF
50919                 case "$host_os" in
50920     aix*) gl_absname_cpp="$ac_cpp -C" ;;
50921     *)    gl_absname_cpp="$ac_cpp" ;;
50922   esac
50923
50924   case "$host_os" in
50925     mingw*)
50926                                           gl_dirsep_regex='[/\\]'
50927       ;;
50928     *)
50929       gl_dirsep_regex='\/'
50930       ;;
50931   esac
50932       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
50933   gl_header_literal_regex=`echo 'stddef.h' \
50934                            | sed -e "$gl_make_literal_regex_sed"`
50935   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
50936       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
50937       s|^/[^/]|//&|
50938       p
50939       q
50940     }'
50941
50942         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50943   sed -n "$gl_absolute_header_sed"`
50944
50945            gl_header=$gl_cv_absolute_stddef_h
50946            gl_cv_next_stddef_h='"'$gl_header'"'
50947
50948
50949 fi
50950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
50951 $as_echo "$gl_cv_next_stddef_h" >&6; }
50952      fi
50953      NEXT_STDDEF_H=$gl_cv_next_stddef_h
50954
50955      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50956        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50957        gl_next_as_first_directive='<'stddef.h'>'
50958      else
50959        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50960        gl_next_as_first_directive=$gl_cv_next_stddef_h
50961      fi
50962      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
50963
50964
50965
50966
50967   fi
50968
50969
50970
50971
50972
50973
50974
50975
50976
50977
50978
50979
50980
50981
50982      if test $gl_cv_have_include_next = yes; then
50983        gl_cv_next_stdio_h='<'stdio.h'>'
50984      else
50985        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
50986 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
50987 if ${gl_cv_next_stdio_h+:} false; then :
50988   $as_echo_n "(cached) " >&6
50989 else
50990
50991
50992
50993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50994 /* end confdefs.h.  */
50995 #include <stdio.h>
50996 _ACEOF
50997                 case "$host_os" in
50998     aix*) gl_absname_cpp="$ac_cpp -C" ;;
50999     *)    gl_absname_cpp="$ac_cpp" ;;
51000   esac
51001
51002   case "$host_os" in
51003     mingw*)
51004                                           gl_dirsep_regex='[/\\]'
51005       ;;
51006     *)
51007       gl_dirsep_regex='\/'
51008       ;;
51009   esac
51010       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
51011   gl_header_literal_regex=`echo 'stdio.h' \
51012                            | sed -e "$gl_make_literal_regex_sed"`
51013   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
51014       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
51015       s|^/[^/]|//&|
51016       p
51017       q
51018     }'
51019
51020         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51021   sed -n "$gl_absolute_header_sed"`
51022
51023            gl_header=$gl_cv_absolute_stdio_h
51024            gl_cv_next_stdio_h='"'$gl_header'"'
51025
51026
51027 fi
51028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
51029 $as_echo "$gl_cv_next_stdio_h" >&6; }
51030      fi
51031      NEXT_STDIO_H=$gl_cv_next_stdio_h
51032
51033      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51034        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51035        gl_next_as_first_directive='<'stdio.h'>'
51036      else
51037        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51038        gl_next_as_first_directive=$gl_cv_next_stdio_h
51039      fi
51040      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
51041
51042
51043
51044
51045
51046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
51047 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
51048 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
51049   $as_echo_n "(cached) " >&6
51050 else
51051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51052 /* end confdefs.h.  */
51053
51054        #define __STDC_FORMAT_MACROS 1
51055        #include <stdio.h>
51056        #include <inttypes.h>
51057        /* For non-mingw systems, compilation will trivially succeed.
51058           For mingw, compilation will succeed for older mingw (system
51059           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
51060        #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
51061          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
51062        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
51063        #endif
51064
51065 int
51066 main ()
51067 {
51068
51069   ;
51070   return 0;
51071 }
51072 _ACEOF
51073 if ac_fn_c_try_compile "$LINENO"; then :
51074   gl_cv_func_printf_attribute_flavor=system
51075 else
51076   gl_cv_func_printf_attribute_flavor=gnu
51077 fi
51078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51079 fi
51080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
51081 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
51082   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
51083
51084 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
51085
51086   fi
51087
51088       GNULIB_FSCANF=1
51089
51090
51091 cat >>confdefs.h <<_ACEOF
51092 #define GNULIB_FSCANF 1
51093 _ACEOF
51094
51095
51096   GNULIB_SCANF=1
51097
51098
51099 cat >>confdefs.h <<_ACEOF
51100 #define GNULIB_SCANF 1
51101 _ACEOF
51102
51103
51104   GNULIB_FGETC=1
51105   GNULIB_GETC=1
51106   GNULIB_GETCHAR=1
51107   GNULIB_FGETS=1
51108   GNULIB_FREAD=1
51109
51110
51111       GNULIB_FPRINTF=1
51112   GNULIB_PRINTF=1
51113   GNULIB_VFPRINTF=1
51114   GNULIB_VPRINTF=1
51115   GNULIB_FPUTC=1
51116   GNULIB_PUTC=1
51117   GNULIB_PUTCHAR=1
51118   GNULIB_FPUTS=1
51119   GNULIB_PUTS=1
51120   GNULIB_FWRITE=1
51121
51122
51123
51124
51125     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
51126       REPLACE_STDIO_WRITE_FUNCS=1
51127
51128
51129
51130
51131
51132
51133
51134
51135   gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
51136
51137     fi
51138
51139
51140
51141
51142     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
51143     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
51144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
51145 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
51146 if eval \${$as_gl_Symbol+:} false; then :
51147   $as_echo_n "(cached) " >&6
51148 else
51149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51150 /* end confdefs.h.  */
51151 #include <stdio.h>
51152
51153 int
51154 main ()
51155 {
51156 #undef $gl_func
51157   (void) $gl_func;
51158   ;
51159   return 0;
51160 }
51161 _ACEOF
51162 if ac_fn_c_try_compile "$LINENO"; then :
51163   eval "$as_gl_Symbol=yes"
51164 else
51165   eval "$as_gl_Symbol=no"
51166 fi
51167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51168 fi
51169 eval ac_res=\$$as_gl_Symbol
51170                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51171 $as_echo "$ac_res" >&6; }
51172     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
51173   cat >>confdefs.h <<_ACEOF
51174 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51175 _ACEOF
51176
51177                      eval ac_cv_have_decl_$gl_func=yes
51178 fi
51179       done
51180
51181
51182
51183
51184
51185
51186
51187
51188
51189
51190
51191
51192      if test $gl_cv_have_include_next = yes; then
51193        gl_cv_next_stdlib_h='<'stdlib.h'>'
51194      else
51195        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
51196 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
51197 if ${gl_cv_next_stdlib_h+:} false; then :
51198   $as_echo_n "(cached) " >&6
51199 else
51200
51201
51202
51203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51204 /* end confdefs.h.  */
51205 #include <stdlib.h>
51206 _ACEOF
51207                 case "$host_os" in
51208     aix*) gl_absname_cpp="$ac_cpp -C" ;;
51209     *)    gl_absname_cpp="$ac_cpp" ;;
51210   esac
51211
51212   case "$host_os" in
51213     mingw*)
51214                                           gl_dirsep_regex='[/\\]'
51215       ;;
51216     *)
51217       gl_dirsep_regex='\/'
51218       ;;
51219   esac
51220       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
51221   gl_header_literal_regex=`echo 'stdlib.h' \
51222                            | sed -e "$gl_make_literal_regex_sed"`
51223   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
51224       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
51225       s|^/[^/]|//&|
51226       p
51227       q
51228     }'
51229
51230         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51231   sed -n "$gl_absolute_header_sed"`
51232
51233            gl_header=$gl_cv_absolute_stdlib_h
51234            gl_cv_next_stdlib_h='"'$gl_header'"'
51235
51236
51237 fi
51238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
51239 $as_echo "$gl_cv_next_stdlib_h" >&6; }
51240      fi
51241      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
51242
51243      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51244        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51245        gl_next_as_first_directive='<'stdlib.h'>'
51246      else
51247        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51248        gl_next_as_first_directive=$gl_cv_next_stdlib_h
51249      fi
51250      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
51251
51252
51253
51254
51255
51256
51257     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
51258     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
51259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
51260 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
51261 if eval \${$as_gl_Symbol+:} false; then :
51262   $as_echo_n "(cached) " >&6
51263 else
51264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51265 /* end confdefs.h.  */
51266 #include <stdlib.h>
51267 #if HAVE_SYS_LOADAVG_H
51268 # include <sys/loadavg.h>
51269 #endif
51270 #if HAVE_RANDOM_H
51271 # include <random.h>
51272 #endif
51273
51274 int
51275 main ()
51276 {
51277 #undef $gl_func
51278   (void) $gl_func;
51279   ;
51280   return 0;
51281 }
51282 _ACEOF
51283 if ac_fn_c_try_compile "$LINENO"; then :
51284   eval "$as_gl_Symbol=yes"
51285 else
51286   eval "$as_gl_Symbol=no"
51287 fi
51288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51289 fi
51290 eval ac_res=\$$as_gl_Symbol
51291                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51292 $as_echo "$ac_res" >&6; }
51293     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
51294   cat >>confdefs.h <<_ACEOF
51295 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51296 _ACEOF
51297
51298                      eval ac_cv_have_decl_$gl_func=yes
51299 fi
51300       done
51301
51302
51303
51304
51305
51306
51307
51308
51309   for ac_func in stpcpy
51310 do :
51311   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
51312 if test "x$ac_cv_func_stpcpy" = xyes; then :
51313   cat >>confdefs.h <<_ACEOF
51314 #define HAVE_STPCPY 1
51315 _ACEOF
51316
51317 fi
51318 done
51319
51320   if test $ac_cv_func_stpcpy = no; then
51321     HAVE_STPCPY=0
51322   fi
51323
51324   if test $HAVE_STPCPY = 0; then
51325
51326
51327
51328
51329
51330
51331
51332
51333   gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
51334
51335
51336   :
51337
51338   fi
51339
51340
51341
51342
51343
51344           GNULIB_STPCPY=1
51345
51346
51347
51348
51349
51350 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
51351
51352
51353
51354
51355
51356
51357
51358
51359
51360
51361
51362
51363
51364   if test $ac_cv_func_stpncpy = yes; then
51365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stpncpy" >&5
51366 $as_echo_n "checking for working stpncpy... " >&6; }
51367 if ${gl_cv_func_stpncpy+:} false; then :
51368   $as_echo_n "(cached) " >&6
51369 else
51370
51371       if test "$cross_compiling" = yes; then :
51372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51373 /* end confdefs.h.  */
51374
51375 #include <features.h>
51376 #ifdef __GNU_LIBRARY__
51377   Thanks for using GNU
51378 #endif
51379
51380 _ACEOF
51381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51382   $EGREP "Thanks for using GNU" >/dev/null 2>&1; then :
51383   gl_cv_func_stpncpy="guessing yes"
51384 else
51385   gl_cv_func_stpncpy="guessing no"
51386 fi
51387 rm -f conftest*
51388
51389
51390 else
51391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51392 /* end confdefs.h.  */
51393
51394 #include <stdlib.h>
51395 #include <string.h> /* for strcpy */
51396 /* The stpncpy prototype is missing in <string.h> on AIX 4.  */
51397 #if !HAVE_DECL_STPNCPY
51398 extern
51399 # ifdef __cplusplus
51400 "C"
51401 # endif
51402 char *stpncpy (char *dest, const char *src, size_t n);
51403 #endif
51404 int main ()
51405 {
51406   int result = 0;
51407   const char *src = "Hello";
51408   char dest[10];
51409   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here.  */
51410   {
51411     strcpy (dest, "\377\377\377\377\377\377");
51412     if (stpncpy (dest, src, 2) != dest + 2)
51413       result |= 1;
51414   }
51415   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here.  */
51416   {
51417     strcpy (dest, "\377\377\377\377\377\377");
51418     if (stpncpy (dest, src, 5) != dest + 5)
51419       result |= 2;
51420   }
51421   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here.  */
51422   {
51423     strcpy (dest, "\377\377\377\377\377\377");
51424     if (stpncpy (dest, src, 7) != dest + 5)
51425       result |= 4;
51426   }
51427   return result;
51428 }
51429
51430 _ACEOF
51431 if ac_fn_c_try_run "$LINENO"; then :
51432   gl_cv_func_stpncpy=yes
51433 else
51434   gl_cv_func_stpncpy=no
51435 fi
51436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51437   conftest.$ac_objext conftest.beam conftest.$ac_ext
51438 fi
51439
51440
51441 fi
51442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stpncpy" >&5
51443 $as_echo "$gl_cv_func_stpncpy" >&6; }
51444     case "$gl_cv_func_stpncpy" in
51445       *yes)
51446
51447 $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h
51448
51449         ;;
51450       *)
51451         REPLACE_STPNCPY=1
51452         ;;
51453     esac
51454   else
51455     HAVE_STPNCPY=0
51456   fi
51457
51458   if test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1; then
51459
51460
51461
51462
51463
51464
51465
51466
51467   gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext"
51468
51469
51470   :
51471
51472   fi
51473
51474
51475
51476
51477
51478           GNULIB_STPNCPY=1
51479
51480
51481
51482
51483
51484 $as_echo "#define GNULIB_TEST_STPNCPY 1" >>confdefs.h
51485
51486
51487
51488
51489
51490
51491
51492   for ac_func in strchrnul
51493 do :
51494   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
51495 if test "x$ac_cv_func_strchrnul" = xyes; then :
51496   cat >>confdefs.h <<_ACEOF
51497 #define HAVE_STRCHRNUL 1
51498 _ACEOF
51499
51500 fi
51501 done
51502
51503   if test $ac_cv_func_strchrnul = no; then
51504     HAVE_STRCHRNUL=0
51505   else
51506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
51507 $as_echo_n "checking whether strchrnul works... " >&6; }
51508 if ${gl_cv_func_strchrnul_works+:} false; then :
51509   $as_echo_n "(cached) " >&6
51510 else
51511   if test "$cross_compiling" = yes; then :
51512            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51513 /* end confdefs.h.  */
51514
51515 #if defined __CYGWIN__
51516  #include <cygwin/version.h>
51517  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
51518   Lucky user
51519  #endif
51520 #else
51521   Lucky user
51522 #endif
51523
51524 _ACEOF
51525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51526   $EGREP "Lucky user" >/dev/null 2>&1; then :
51527   gl_cv_func_strchrnul_works="guessing yes"
51528 else
51529   gl_cv_func_strchrnul_works="guessing no"
51530 fi
51531 rm -f conftest*
51532
51533
51534 else
51535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51536 /* end confdefs.h.  */
51537
51538 #include <string.h> /* for strchrnul */
51539
51540 int
51541 main ()
51542 {
51543 const char *buf = "a";
51544       return strchrnul (buf, 'b') != buf + 1;
51545
51546   ;
51547   return 0;
51548 }
51549 _ACEOF
51550 if ac_fn_c_try_run "$LINENO"; then :
51551   gl_cv_func_strchrnul_works=yes
51552 else
51553   gl_cv_func_strchrnul_works=no
51554 fi
51555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51556   conftest.$ac_objext conftest.beam conftest.$ac_ext
51557 fi
51558
51559
51560 fi
51561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
51562 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
51563     case "$gl_cv_func_strchrnul_works" in
51564       *yes) ;;
51565       *) REPLACE_STRCHRNUL=1 ;;
51566     esac
51567   fi
51568
51569   if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
51570
51571
51572
51573
51574
51575
51576
51577
51578   gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
51579
51580     :
51581   fi
51582
51583
51584
51585
51586
51587           GNULIB_STRCHRNUL=1
51588
51589
51590
51591
51592
51593 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
51594
51595
51596
51597
51598   for ac_func in strcspn
51599 do :
51600   ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
51601 if test "x$ac_cv_func_strcspn" = xyes; then :
51602   cat >>confdefs.h <<_ACEOF
51603 #define HAVE_STRCSPN 1
51604 _ACEOF
51605
51606 fi
51607 done
51608
51609
51610   if test $ac_cv_func_strcspn = no; then
51611
51612
51613
51614
51615
51616
51617
51618
51619   gl_LIBOBJS="$gl_LIBOBJS strcspn.$ac_objext"
51620
51621     :
51622   fi
51623
51624
51625
51626
51627
51628   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
51629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
51630 $as_echo_n "checking for working strerror function... " >&6; }
51631 if ${gl_cv_func_working_strerror+:} false; then :
51632   $as_echo_n "(cached) " >&6
51633 else
51634   if test "$cross_compiling" = yes; then :
51635   case "$host_os" in
51636                    # Guess yes on glibc systems.
51637            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
51638                    # If we don't know, assume the worst.
51639            *)      gl_cv_func_working_strerror="guessing no" ;;
51640          esac
51641
51642 else
51643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51644 /* end confdefs.h.  */
51645 #include <string.h>
51646
51647 int
51648 main ()
51649 {
51650 if (!*strerror (-2)) return 1;
51651   ;
51652   return 0;
51653 }
51654 _ACEOF
51655 if ac_fn_c_try_run "$LINENO"; then :
51656   gl_cv_func_working_strerror=yes
51657 else
51658   gl_cv_func_working_strerror=no
51659 fi
51660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51661   conftest.$ac_objext conftest.beam conftest.$ac_ext
51662 fi
51663
51664
51665 fi
51666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
51667 $as_echo "$gl_cv_func_working_strerror" >&6; }
51668     case "$gl_cv_func_working_strerror" in
51669       *yes) ;;
51670       *)
51671                         REPLACE_STRERROR=1
51672         ;;
51673     esac
51674
51675   else
51676             REPLACE_STRERROR=1
51677   fi
51678
51679   if test $REPLACE_STRERROR = 1; then
51680
51681
51682
51683
51684
51685
51686
51687
51688   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
51689
51690   fi
51691
51692
51693 cat >>confdefs.h <<_ACEOF
51694 #define GNULIB_STRERROR 1
51695 _ACEOF
51696
51697
51698
51699
51700
51701
51702
51703           GNULIB_STRERROR=1
51704
51705
51706
51707
51708
51709 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
51710
51711
51712
51713
51714
51715   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
51716
51717
51718
51719
51720
51721
51722
51723
51724   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
51725
51726
51727
51728
51729
51730   if test $ac_cv_header_sys_socket_h != yes; then
51731                     for ac_header in winsock2.h
51732 do :
51733   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
51734 if test "x$ac_cv_header_winsock2_h" = xyes; then :
51735   cat >>confdefs.h <<_ACEOF
51736 #define HAVE_WINSOCK2_H 1
51737 _ACEOF
51738
51739 fi
51740
51741 done
51742
51743   fi
51744   if test "$ac_cv_header_winsock2_h" = yes; then
51745     HAVE_WINSOCK2_H=1
51746     UNISTD_H_HAVE_WINSOCK2_H=1
51747     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
51748   else
51749     HAVE_WINSOCK2_H=0
51750   fi
51751
51752
51753   fi
51754   if test $gl_cond_libtool = false; then
51755     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
51756     gl_libdeps="$gl_libdeps $LIBICONV"
51757   fi
51758   if test $gl_cond_libtool = false; then
51759     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
51760     gl_libdeps="$gl_libdeps $LIBICONV"
51761   fi
51762
51763
51764
51765
51766
51767
51768
51769
51770
51771   if test $ac_cv_have_decl_strnlen = no; then
51772     HAVE_DECL_STRNLEN=0
51773   else
51774
51775          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
51776 $as_echo_n "checking for working strnlen... " >&6; }
51777 if ${ac_cv_func_strnlen_working+:} false; then :
51778   $as_echo_n "(cached) " >&6
51779 else
51780   if test "$cross_compiling" = yes; then :
51781   # Guess no on AIX systems, yes otherwise.
51782                 case "$host_os" in
51783                   aix*) ac_cv_func_strnlen_working=no;;
51784                   *)    ac_cv_func_strnlen_working=yes;;
51785                 esac
51786 else
51787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51788 /* end confdefs.h.  */
51789 $ac_includes_default
51790 int
51791 main ()
51792 {
51793
51794 #define S "foobar"
51795 #define S_LEN (sizeof S - 1)
51796
51797   /* At least one implementation is buggy: that of AIX 4.3 would
51798      give strnlen (S, 1) == 3.  */
51799
51800   int i;
51801   for (i = 0; i < S_LEN + 1; ++i)
51802     {
51803       int expected = i <= S_LEN ? i : S_LEN;
51804       if (strnlen (S, i) != expected)
51805         return 1;
51806     }
51807   return 0;
51808
51809   ;
51810   return 0;
51811 }
51812 _ACEOF
51813 if ac_fn_c_try_run "$LINENO"; then :
51814   ac_cv_func_strnlen_working=yes
51815 else
51816   ac_cv_func_strnlen_working=no
51817 fi
51818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51819   conftest.$ac_objext conftest.beam conftest.$ac_ext
51820 fi
51821
51822 fi
51823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
51824 $as_echo "$ac_cv_func_strnlen_working" >&6; }
51825 test $ac_cv_func_strnlen_working = no && :
51826
51827
51828     if test $ac_cv_func_strnlen_working = no; then
51829       REPLACE_STRNLEN=1
51830     fi
51831   fi
51832
51833   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
51834
51835
51836
51837
51838
51839
51840
51841
51842   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
51843
51844     :
51845   fi
51846
51847
51848
51849
51850
51851           GNULIB_STRNLEN=1
51852
51853
51854
51855
51856
51857 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
51858
51859
51860
51861
51862
51863   for ac_func in strpbrk
51864 do :
51865   ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
51866 if test "x$ac_cv_func_strpbrk" = xyes; then :
51867   cat >>confdefs.h <<_ACEOF
51868 #define HAVE_STRPBRK 1
51869 _ACEOF
51870
51871 fi
51872 done
51873
51874   if test $ac_cv_func_strpbrk = no; then
51875     HAVE_STRPBRK=0
51876   fi
51877
51878   if test $HAVE_STRPBRK = 0; then
51879
51880
51881
51882
51883
51884
51885
51886
51887   gl_LIBOBJS="$gl_LIBOBJS strpbrk.$ac_objext"
51888
51889     :
51890   fi
51891
51892
51893
51894
51895
51896           GNULIB_STRPBRK=1
51897
51898
51899
51900
51901
51902 $as_echo "#define GNULIB_TEST_STRPBRK 1" >>confdefs.h
51903
51904
51905
51906
51907
51908   if test $REPLACE_STRSTR = 0; then
51909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
51910 $as_echo_n "checking whether strstr works in linear time... " >&6; }
51911 if ${gl_cv_func_strstr_linear+:} false; then :
51912   $as_echo_n "(cached) " >&6
51913 else
51914   if test "$cross_compiling" = yes; then :
51915                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51916 /* end confdefs.h.  */
51917
51918 #include <features.h>
51919 #ifdef __GNU_LIBRARY__
51920  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
51921      && !(defined __i386__ || defined __x86_64__) \
51922      && !defined __UCLIBC__
51923   Lucky user
51924  #endif
51925 #endif
51926 #ifdef __CYGWIN__
51927  #include <cygwin/version.h>
51928  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
51929   Lucky user
51930  #endif
51931 #endif
51932
51933 _ACEOF
51934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51935   $EGREP "Lucky user" >/dev/null 2>&1; then :
51936   gl_cv_func_strstr_linear="guessing yes"
51937 else
51938   gl_cv_func_strstr_linear="guessing no"
51939 fi
51940 rm -f conftest*
51941
51942
51943 else
51944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51945 /* end confdefs.h.  */
51946
51947 #include <signal.h> /* for signal */
51948 #include <string.h> /* for strstr */
51949 #include <stdlib.h> /* for malloc */
51950 #include <unistd.h> /* for alarm */
51951 static void quit (int sig) { exit (sig + 128); }
51952
51953 int
51954 main ()
51955 {
51956
51957     int result = 0;
51958     size_t m = 1000000;
51959     char *haystack = (char *) malloc (2 * m + 2);
51960     char *needle = (char *) malloc (m + 2);
51961     /* Failure to compile this test due to missing alarm is okay,
51962        since all such platforms (mingw) also have quadratic strstr.  */
51963     signal (SIGALRM, quit);
51964     alarm (5);
51965     /* Check for quadratic performance.  */
51966     if (haystack && needle)
51967       {
51968         memset (haystack, 'A', 2 * m);
51969         haystack[2 * m] = 'B';
51970         haystack[2 * m + 1] = 0;
51971         memset (needle, 'A', m);
51972         needle[m] = 'B';
51973         needle[m + 1] = 0;
51974         if (!strstr (haystack, needle))
51975           result |= 1;
51976       }
51977     return result;
51978
51979   ;
51980   return 0;
51981 }
51982 _ACEOF
51983 if ac_fn_c_try_run "$LINENO"; then :
51984   gl_cv_func_strstr_linear=yes
51985 else
51986   gl_cv_func_strstr_linear=no
51987 fi
51988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51989   conftest.$ac_objext conftest.beam conftest.$ac_ext
51990 fi
51991
51992
51993 fi
51994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
51995 $as_echo "$gl_cv_func_strstr_linear" >&6; }
51996     case "$gl_cv_func_strstr_linear" in
51997       *yes) ;;
51998       *)
51999         REPLACE_STRSTR=1
52000         ;;
52001     esac
52002   fi
52003
52004   if test $REPLACE_STRSTR = 1; then
52005
52006
52007
52008
52009
52010
52011
52012
52013   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
52014
52015   fi
52016
52017
52018
52019   if test "$gl_cv_func_memchr_works" != yes; then
52020     REPLACE_STRSTR=1
52021   else
52022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
52023 $as_echo_n "checking whether strstr works... " >&6; }
52024 if ${gl_cv_func_strstr_works_always+:} false; then :
52025   $as_echo_n "(cached) " >&6
52026 else
52027   if test "$cross_compiling" = yes; then :
52028                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52029 /* end confdefs.h.  */
52030
52031 #ifdef __GNU_LIBRARY__
52032  #include <features.h>
52033  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
52034      || defined __UCLIBC__
52035   Lucky user
52036  #endif
52037 #elif defined __CYGWIN__
52038  #include <cygwin/version.h>
52039  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
52040   Lucky user
52041  #endif
52042 #else
52043   Lucky user
52044 #endif
52045
52046 _ACEOF
52047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52048   $EGREP "Lucky user" >/dev/null 2>&1; then :
52049   gl_cv_func_strstr_works_always="guessing yes"
52050 else
52051   gl_cv_func_strstr_works_always="guessing no"
52052 fi
52053 rm -f conftest*
52054
52055
52056 else
52057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52058 /* end confdefs.h.  */
52059
52060 #include <string.h> /* for strstr */
52061 #define P "_EF_BF_BD"
52062 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
52063 #define NEEDLE P P P P P
52064
52065 int
52066 main ()
52067 {
52068 return !!strstr (HAYSTACK, NEEDLE);
52069
52070   ;
52071   return 0;
52072 }
52073 _ACEOF
52074 if ac_fn_c_try_run "$LINENO"; then :
52075   gl_cv_func_strstr_works_always=yes
52076 else
52077   gl_cv_func_strstr_works_always=no
52078 fi
52079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52080   conftest.$ac_objext conftest.beam conftest.$ac_ext
52081 fi
52082
52083
52084 fi
52085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
52086 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
52087     case "$gl_cv_func_strstr_works_always" in
52088       *yes) ;;
52089       *)
52090         REPLACE_STRSTR=1
52091         ;;
52092     esac
52093   fi
52094
52095   if test $REPLACE_STRSTR = 1; then
52096
52097
52098
52099
52100
52101
52102
52103
52104   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
52105
52106   fi
52107
52108
52109
52110
52111
52112           GNULIB_STRSTR=1
52113
52114
52115
52116
52117
52118 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
52119
52120
52121
52122
52123   for ac_func in strtol
52124 do :
52125   ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
52126 if test "x$ac_cv_func_strtol" = xyes; then :
52127   cat >>confdefs.h <<_ACEOF
52128 #define HAVE_STRTOL 1
52129 _ACEOF
52130
52131 fi
52132 done
52133
52134
52135   if test $ac_cv_func_strtol = no; then
52136
52137
52138
52139
52140
52141
52142
52143
52144   gl_LIBOBJS="$gl_LIBOBJS strtol.$ac_objext"
52145
52146   fi
52147
52148   for ac_func in strtoul
52149 do :
52150   ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
52151 if test "x$ac_cv_func_strtoul" = xyes; then :
52152   cat >>confdefs.h <<_ACEOF
52153 #define HAVE_STRTOUL 1
52154 _ACEOF
52155
52156 fi
52157 done
52158
52159
52160   if test $ac_cv_func_strtoul = no; then
52161
52162
52163
52164
52165
52166
52167
52168
52169   gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
52170
52171   fi
52172
52173
52174
52175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
52176 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
52177 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
52178   $as_echo_n "(cached) " >&6
52179 else
52180
52181                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52182 /* end confdefs.h.  */
52183 #include <sys/select.h>
52184 int
52185 main ()
52186 {
52187 struct timeval b;
52188   ;
52189   return 0;
52190 }
52191 _ACEOF
52192 if ac_fn_c_try_compile "$LINENO"; then :
52193   gl_cv_header_sys_select_h_selfcontained=yes
52194 else
52195   gl_cv_header_sys_select_h_selfcontained=no
52196 fi
52197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52198                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
52199         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52200 /* end confdefs.h.  */
52201 #include <sys/select.h>
52202 int
52203 main ()
52204 {
52205 int memset; int bzero;
52206   ;
52207   return 0;
52208 }
52209
52210 _ACEOF
52211 if ac_fn_c_try_compile "$LINENO"; then :
52212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52213 /* end confdefs.h.  */
52214 #include <sys/select.h>
52215 int
52216 main ()
52217 {
52218
52219                   #undef memset
52220                   #define memset nonexistent_memset
52221                   extern
52222                   #ifdef __cplusplus
52223                   "C"
52224                   #endif
52225                   void *memset (void *, int, unsigned long);
52226                   #undef bzero
52227                   #define bzero nonexistent_bzero
52228                   extern
52229                   #ifdef __cplusplus
52230                   "C"
52231                   #endif
52232                   void bzero (void *, unsigned long);
52233                   fd_set fds;
52234                   FD_ZERO (&fds);
52235
52236   ;
52237   return 0;
52238 }
52239
52240 _ACEOF
52241 if ac_fn_c_try_link "$LINENO"; then :
52242
52243 else
52244   gl_cv_header_sys_select_h_selfcontained=no
52245 fi
52246 rm -f core conftest.err conftest.$ac_objext \
52247     conftest$ac_exeext conftest.$ac_ext
52248
52249 fi
52250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52251       fi
52252
52253 fi
52254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
52255 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
52256
52257
52258
52259
52260
52261
52262
52263
52264
52265      if test $gl_cv_have_include_next = yes; then
52266        gl_cv_next_sys_select_h='<'sys/select.h'>'
52267      else
52268        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
52269 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
52270 if ${gl_cv_next_sys_select_h+:} false; then :
52271   $as_echo_n "(cached) " >&6
52272 else
52273
52274              if test $ac_cv_header_sys_select_h = yes; then
52275
52276
52277
52278
52279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52280 /* end confdefs.h.  */
52281 #include <sys/select.h>
52282 _ACEOF
52283                 case "$host_os" in
52284     aix*) gl_absname_cpp="$ac_cpp -C" ;;
52285     *)    gl_absname_cpp="$ac_cpp" ;;
52286   esac
52287
52288   case "$host_os" in
52289     mingw*)
52290                                           gl_dirsep_regex='[/\\]'
52291       ;;
52292     *)
52293       gl_dirsep_regex='\/'
52294       ;;
52295   esac
52296       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52297   gl_header_literal_regex=`echo 'sys/select.h' \
52298                            | sed -e "$gl_make_literal_regex_sed"`
52299   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52300       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52301       s|^/[^/]|//&|
52302       p
52303       q
52304     }'
52305
52306         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52307   sed -n "$gl_absolute_header_sed"`
52308
52309            gl_header=$gl_cv_absolute_sys_select_h
52310            gl_cv_next_sys_select_h='"'$gl_header'"'
52311           else
52312                gl_cv_next_sys_select_h='<'sys/select.h'>'
52313              fi
52314
52315
52316 fi
52317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
52318 $as_echo "$gl_cv_next_sys_select_h" >&6; }
52319      fi
52320      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
52321
52322      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52323        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52324        gl_next_as_first_directive='<'sys/select.h'>'
52325      else
52326        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52327        gl_next_as_first_directive=$gl_cv_next_sys_select_h
52328      fi
52329      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
52330
52331
52332
52333
52334   if test $ac_cv_header_sys_select_h = yes; then
52335     HAVE_SYS_SELECT_H=1
52336   else
52337     HAVE_SYS_SELECT_H=0
52338   fi
52339
52340
52341
52342
52343
52344   if test $ac_cv_header_sys_socket_h != yes; then
52345                     for ac_header in winsock2.h
52346 do :
52347   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
52348 if test "x$ac_cv_header_winsock2_h" = xyes; then :
52349   cat >>confdefs.h <<_ACEOF
52350 #define HAVE_WINSOCK2_H 1
52351 _ACEOF
52352
52353 fi
52354
52355 done
52356
52357   fi
52358   if test "$ac_cv_header_winsock2_h" = yes; then
52359     HAVE_WINSOCK2_H=1
52360     UNISTD_H_HAVE_WINSOCK2_H=1
52361     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
52362   else
52363     HAVE_WINSOCK2_H=0
52364   fi
52365
52366
52367
52368
52369     for gl_func in pselect select; do
52370     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
52371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
52372 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
52373 if eval \${$as_gl_Symbol+:} false; then :
52374   $as_echo_n "(cached) " >&6
52375 else
52376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52377 /* end confdefs.h.  */
52378
52379 /* Some systems require prerequisite headers.  */
52380 #include <sys/types.h>
52381 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
52382 # include <sys/time.h>
52383 #endif
52384 #include <sys/select.h>
52385
52386 int
52387 main ()
52388 {
52389 #undef $gl_func
52390   (void) $gl_func;
52391   ;
52392   return 0;
52393 }
52394 _ACEOF
52395 if ac_fn_c_try_compile "$LINENO"; then :
52396   eval "$as_gl_Symbol=yes"
52397 else
52398   eval "$as_gl_Symbol=no"
52399 fi
52400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52401 fi
52402 eval ac_res=\$$as_gl_Symbol
52403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
52404 $as_echo "$ac_res" >&6; }
52405     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
52406   cat >>confdefs.h <<_ACEOF
52407 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
52408 _ACEOF
52409
52410                      eval ac_cv_have_decl_$gl_func=yes
52411 fi
52412       done
52413
52414
52415
52416
52417
52418
52419
52420
52421
52422
52423
52424
52425
52426
52427
52428
52429
52430      if test $gl_cv_have_include_next = yes; then
52431        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
52432      else
52433        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
52434 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
52435 if ${gl_cv_next_sys_stat_h+:} false; then :
52436   $as_echo_n "(cached) " >&6
52437 else
52438
52439              if test $ac_cv_header_sys_stat_h = yes; then
52440
52441
52442
52443
52444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52445 /* end confdefs.h.  */
52446 #include <sys/stat.h>
52447 _ACEOF
52448                 case "$host_os" in
52449     aix*) gl_absname_cpp="$ac_cpp -C" ;;
52450     *)    gl_absname_cpp="$ac_cpp" ;;
52451   esac
52452
52453   case "$host_os" in
52454     mingw*)
52455                                           gl_dirsep_regex='[/\\]'
52456       ;;
52457     *)
52458       gl_dirsep_regex='\/'
52459       ;;
52460   esac
52461       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52462   gl_header_literal_regex=`echo 'sys/stat.h' \
52463                            | sed -e "$gl_make_literal_regex_sed"`
52464   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52465       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52466       s|^/[^/]|//&|
52467       p
52468       q
52469     }'
52470
52471         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52472   sed -n "$gl_absolute_header_sed"`
52473
52474            gl_header=$gl_cv_absolute_sys_stat_h
52475            gl_cv_next_sys_stat_h='"'$gl_header'"'
52476           else
52477                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
52478              fi
52479
52480
52481 fi
52482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
52483 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
52484      fi
52485      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
52486
52487      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52488        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52489        gl_next_as_first_directive='<'sys/stat.h'>'
52490      else
52491        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52492        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
52493      fi
52494      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
52495
52496
52497
52498
52499
52500
52501
52502
52503
52504
52505
52506   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
52507
52508 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
52509
52510   fi
52511
52512       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
52513      #include <sys/stat.h>
52514 "
52515 if test "x$ac_cv_type_nlink_t" = xyes; then :
52516
52517 else
52518
52519 $as_echo "#define nlink_t int" >>confdefs.h
52520
52521 fi
52522
52523
52524
52525     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
52526     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
52527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
52528 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
52529 if eval \${$as_gl_Symbol+:} false; then :
52530   $as_echo_n "(cached) " >&6
52531 else
52532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52533 /* end confdefs.h.  */
52534 #include <sys/stat.h>
52535
52536 int
52537 main ()
52538 {
52539 #undef $gl_func
52540   (void) $gl_func;
52541   ;
52542   return 0;
52543 }
52544 _ACEOF
52545 if ac_fn_c_try_compile "$LINENO"; then :
52546   eval "$as_gl_Symbol=yes"
52547 else
52548   eval "$as_gl_Symbol=no"
52549 fi
52550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52551 fi
52552 eval ac_res=\$$as_gl_Symbol
52553                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
52554 $as_echo "$ac_res" >&6; }
52555     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
52556   cat >>confdefs.h <<_ACEOF
52557 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
52558 _ACEOF
52559
52560                      eval ac_cv_have_decl_$gl_func=yes
52561 fi
52562       done
52563
52564
52565
52566
52567
52568
52569
52570
52571
52572
52573
52574
52575
52576
52577
52578
52579
52580
52581
52582
52583
52584      if test $gl_cv_have_include_next = yes; then
52585        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
52586      else
52587        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
52588 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
52589 if ${gl_cv_next_sys_wait_h+:} false; then :
52590   $as_echo_n "(cached) " >&6
52591 else
52592
52593              if test $ac_cv_header_sys_wait_h = yes; then
52594
52595
52596
52597
52598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52599 /* end confdefs.h.  */
52600 #include <sys/wait.h>
52601 _ACEOF
52602                 case "$host_os" in
52603     aix*) gl_absname_cpp="$ac_cpp -C" ;;
52604     *)    gl_absname_cpp="$ac_cpp" ;;
52605   esac
52606
52607   case "$host_os" in
52608     mingw*)
52609                                           gl_dirsep_regex='[/\\]'
52610       ;;
52611     *)
52612       gl_dirsep_regex='\/'
52613       ;;
52614   esac
52615       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
52616   gl_header_literal_regex=`echo 'sys/wait.h' \
52617                            | sed -e "$gl_make_literal_regex_sed"`
52618   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
52619       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
52620       s|^/[^/]|//&|
52621       p
52622       q
52623     }'
52624
52625         gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52626   sed -n "$gl_absolute_header_sed"`
52627
52628            gl_header=$gl_cv_absolute_sys_wait_h
52629            gl_cv_next_sys_wait_h='"'$gl_header'"'
52630           else
52631                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
52632              fi
52633
52634
52635 fi
52636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
52637 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
52638      fi
52639      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
52640
52641      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52642        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52643        gl_next_as_first_directive='<'sys/wait.h'>'
52644      else
52645        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52646        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
52647      fi
52648      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
52649
52650
52651
52652
52653
52654
52655
52656
52657     for gl_func in waitpid; do
52658     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
52659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
52660 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
52661 if eval \${$as_gl_Symbol+:} false; then :
52662   $as_echo_n "(cached) " >&6
52663 else
52664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52665 /* end confdefs.h.  */
52666 #include <sys/wait.h>
52667 int
52668 main ()
52669 {
52670 #undef $gl_func
52671   (void) $gl_func;
52672   ;
52673   return 0;
52674 }
52675 _ACEOF
52676 if ac_fn_c_try_compile "$LINENO"; then :
52677   eval "$as_gl_Symbol=yes"
52678 else
52679   eval "$as_gl_Symbol=no"
52680 fi
52681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52682 fi
52683 eval ac_res=\$$as_gl_Symbol
52684                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
52685 $as_echo "$ac_res" >&6; }
52686     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
52687   cat >>confdefs.h <<_ACEOF
52688 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
52689 _ACEOF
52690
52691                      eval ac_cv_have_decl_$gl_func=yes
52692 fi
52693       done
52694
52695
52696
52697
52698
52699   :
52700
52701
52702
52703
52704
52705
52706
52707   if test $gl_cv_terminfo_tparam = no && test $gl_cv_terminfo_tparm = no; then
52708
52709
52710
52711
52712
52713
52714
52715
52716   gl_LIBOBJS="$gl_LIBOBJS tparm.$ac_objext"
52717
52718   fi
52719   case "$gl_cv_terminfo" in
52720     no*)
52721       case "$gl_cv_termcap" in
52722         no*)
52723
52724
52725
52726
52727
52728
52729
52730
52731   gl_LIBOBJS="$gl_LIBOBJS tputs.$ac_objext"
52732
52733           ;;
52734       esac
52735       ;;
52736   esac
52737
52738
52739
52740
52741
52742
52743
52744
52745
52746
52747
52748   :
52749
52750
52751       if  { test "$HAVE_LIBUNISTRING" != yes \
52752     || {
52753
52754
52755
52756             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52757             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52758                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52759                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52760                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
52761                          }
52762                     }
52763                }
52764
52765
52766
52767
52768        }
52769   }; then
52770     LIBUNISTRING_UNICONV_H='uniconv.h'
52771   else
52772     LIBUNISTRING_UNICONV_H=
52773   fi
52774
52775
52776
52777
52778        if  { test "$HAVE_LIBUNISTRING" != yes \
52779     || {
52780
52781
52782
52783             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52784             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52785                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52786                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52787                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52788                          }
52789                     }
52790                }
52791
52792
52793
52794
52795        }
52796   }; then
52797   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
52798   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
52799 else
52800   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
52801   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
52802 fi
52803
52804
52805
52806
52807       if  { test "$HAVE_LIBUNISTRING" != yes \
52808     || {
52809
52810
52811
52812             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52813             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52814                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52815                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52816                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
52817                          }
52818                     }
52819                }
52820
52821
52822
52823
52824        }
52825   }; then
52826     LIBUNISTRING_UNICTYPE_H='unictype.h'
52827   else
52828     LIBUNISTRING_UNICTYPE_H=
52829   fi
52830
52831
52832
52833
52834
52835        if  { test "$HAVE_LIBUNISTRING" != yes \
52836     || {
52837
52838
52839
52840             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52841             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52842                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52843                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52844                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
52845                          }
52846                     }
52847                }
52848
52849
52850
52851
52852        }
52853   }; then
52854   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE=
52855   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE='#'
52856 else
52857   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE='#'
52858   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE=
52859 fi
52860
52861
52862
52863
52864       if  { test "$HAVE_LIBUNISTRING" != yes \
52865     || {
52866
52867
52868
52869             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52870             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52871                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52872                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52873                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
52874                          }
52875                     }
52876                }
52877
52878
52879
52880
52881        }
52882   }; then
52883     LIBUNISTRING_UNILBRK_H='unilbrk.h'
52884   else
52885     LIBUNISTRING_UNILBRK_H=
52886   fi
52887
52888
52889
52890
52891
52892        if  { test "$HAVE_LIBUNISTRING" != yes \
52893     || {
52894
52895
52896
52897             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52898             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52899                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52900                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52901                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
52902                          }
52903                     }
52904                }
52905
52906
52907
52908
52909        }
52910   }; then
52911   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
52912   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
52913 else
52914   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
52915   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
52916 fi
52917
52918
52919
52920
52921        if  { test "$HAVE_LIBUNISTRING" != yes \
52922     || {
52923
52924
52925
52926             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52927             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52928                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52929                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52930                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
52931                          }
52932                     }
52933                }
52934
52935
52936
52937
52938        }
52939   }; then
52940   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
52941   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
52942 else
52943   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
52944   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
52945 fi
52946
52947
52948
52949
52950        if  { test "$HAVE_LIBUNISTRING" != yes \
52951     || {
52952
52953
52954
52955             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52956             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52957                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52958                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52959                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
52960                          }
52961                     }
52962                }
52963
52964
52965
52966
52967        }
52968   }; then
52969   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
52970   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
52971 else
52972   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
52973   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
52974 fi
52975
52976
52977
52978
52979       if  { test "$HAVE_LIBUNISTRING" != yes \
52980     || {
52981
52982
52983
52984             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52985             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52986                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52987                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52988                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 5
52989                          }
52990                     }
52991                }
52992
52993
52994
52995
52996        }
52997   }; then
52998     LIBUNISTRING_UNINAME_H='uniname.h'
52999   else
53000     LIBUNISTRING_UNINAME_H=
53001   fi
53002
53003
53004
53005
53006        if  { test "$HAVE_LIBUNISTRING" != yes \
53007     || {
53008
53009
53010
53011             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53012             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53013                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53014                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53015                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
53016                          }
53017                     }
53018                }
53019
53020
53021
53022
53023        }
53024   }; then
53025   LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE=
53026   LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE='#'
53027 else
53028   LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE='#'
53029   LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE=
53030 fi
53031
53032
53033
53034
53035
53036
53037
53038
53039
53040
53041
53042
53043
53044
53045      if test $gl_cv_have_include_next = yes; then
53046        gl_cv_next_unistd_h='<'unistd.h'>'
53047      else
53048        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
53049 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
53050 if ${gl_cv_next_unistd_h+:} false; then :
53051   $as_echo_n "(cached) " >&6
53052 else
53053
53054              if test $ac_cv_header_unistd_h = yes; then
53055
53056
53057
53058
53059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53060 /* end confdefs.h.  */
53061 #include <unistd.h>
53062 _ACEOF
53063                 case "$host_os" in
53064     aix*) gl_absname_cpp="$ac_cpp -C" ;;
53065     *)    gl_absname_cpp="$ac_cpp" ;;
53066   esac
53067
53068   case "$host_os" in
53069     mingw*)
53070                                           gl_dirsep_regex='[/\\]'
53071       ;;
53072     *)
53073       gl_dirsep_regex='\/'
53074       ;;
53075   esac
53076       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
53077   gl_header_literal_regex=`echo 'unistd.h' \
53078                            | sed -e "$gl_make_literal_regex_sed"`
53079   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
53080       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
53081       s|^/[^/]|//&|
53082       p
53083       q
53084     }'
53085
53086         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
53087   sed -n "$gl_absolute_header_sed"`
53088
53089            gl_header=$gl_cv_absolute_unistd_h
53090            gl_cv_next_unistd_h='"'$gl_header'"'
53091           else
53092                gl_cv_next_unistd_h='<'unistd.h'>'
53093              fi
53094
53095
53096 fi
53097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
53098 $as_echo "$gl_cv_next_unistd_h" >&6; }
53099      fi
53100      NEXT_UNISTD_H=$gl_cv_next_unistd_h
53101
53102      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
53103        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
53104        gl_next_as_first_directive='<'unistd.h'>'
53105      else
53106        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
53107        gl_next_as_first_directive=$gl_cv_next_unistd_h
53108      fi
53109      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
53110
53111
53112
53113
53114   if test $ac_cv_header_unistd_h = yes; then
53115     HAVE_UNISTD_H=1
53116   else
53117     HAVE_UNISTD_H=0
53118   fi
53119
53120
53121
53122
53123
53124
53125
53126     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
53127     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
53128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
53129 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
53130 if eval \${$as_gl_Symbol+:} false; then :
53131   $as_echo_n "(cached) " >&6
53132 else
53133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53134 /* end confdefs.h.  */
53135
53136 #if HAVE_UNISTD_H
53137 # include <unistd.h>
53138 #endif
53139 /* Some systems declare various items in the wrong headers.  */
53140 #if !(defined __GLIBC__ && !defined __UCLIBC__)
53141 # include <fcntl.h>
53142 # include <stdio.h>
53143 # include <stdlib.h>
53144 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
53145 #  include <io.h>
53146 # endif
53147 #endif
53148
53149 int
53150 main ()
53151 {
53152 #undef $gl_func
53153   (void) $gl_func;
53154   ;
53155   return 0;
53156 }
53157 _ACEOF
53158 if ac_fn_c_try_compile "$LINENO"; then :
53159   eval "$as_gl_Symbol=yes"
53160 else
53161   eval "$as_gl_Symbol=no"
53162 fi
53163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53164 fi
53165 eval ac_res=\$$as_gl_Symbol
53166                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
53167 $as_echo "$ac_res" >&6; }
53168     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
53169   cat >>confdefs.h <<_ACEOF
53170 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
53171 _ACEOF
53172
53173                      eval ac_cv_have_decl_$gl_func=yes
53174 fi
53175       done
53176
53177
53178
53179
53180
53181
53182
53183       if  { test "$HAVE_LIBUNISTRING" != yes \
53184     || {
53185
53186
53187
53188             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53189             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53190                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53191                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53192                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53193                          }
53194                     }
53195                }
53196
53197
53198
53199
53200        }
53201   }; then
53202     LIBUNISTRING_UNISTR_H='unistr.h'
53203   else
53204     LIBUNISTRING_UNISTR_H=
53205   fi
53206
53207
53208
53209
53210 cat >>confdefs.h <<_ACEOF
53211 #define GNULIB_UNISTR_U16_MBTOUC 1
53212 _ACEOF
53213
53214
53215
53216
53217        if  { test "$HAVE_LIBUNISTRING" != yes \
53218     || {
53219
53220
53221
53222             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53223             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53224                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53225                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53226                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53227                          }
53228                     }
53229                }
53230
53231
53232
53233
53234        }
53235   }; then
53236   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
53237   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
53238 else
53239   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
53240   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
53241 fi
53242
53243
53244
53245
53246        if  { test "$HAVE_LIBUNISTRING" != yes \
53247     || {
53248
53249
53250
53251             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53252             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53253                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53254                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53255                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53256                          }
53257                     }
53258                }
53259
53260
53261
53262
53263        }
53264   }; then
53265   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
53266   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
53267 else
53268   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
53269   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
53270 fi
53271
53272
53273
53274
53275        if  { test "$HAVE_LIBUNISTRING" != yes \
53276     || {
53277
53278
53279
53280             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53281             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53282                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53283                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53284                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53285                          }
53286                     }
53287                }
53288
53289
53290
53291
53292        }
53293   }; then
53294   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
53295   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
53296 else
53297   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
53298   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
53299 fi
53300
53301
53302
53303
53304 cat >>confdefs.h <<_ACEOF
53305 #define GNULIB_UNISTR_U8_MBTOUC 1
53306 _ACEOF
53307
53308
53309
53310
53311        if  { test "$HAVE_LIBUNISTRING" != yes \
53312     || {
53313
53314
53315
53316             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53317             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53318                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53319                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53320                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53321                          }
53322                     }
53323                }
53324
53325
53326
53327
53328        }
53329   }; then
53330   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
53331   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
53332 else
53333   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
53334   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
53335 fi
53336
53337
53338
53339
53340 cat >>confdefs.h <<_ACEOF
53341 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
53342 _ACEOF
53343
53344
53345
53346
53347        if  { test "$HAVE_LIBUNISTRING" != yes \
53348     || {
53349
53350
53351
53352             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53353             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53354                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53355                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53356                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53357                          }
53358                     }
53359                }
53360
53361
53362
53363
53364        }
53365   }; then
53366   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
53367   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
53368 else
53369   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
53370   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
53371 fi
53372
53373
53374
53375
53376 cat >>confdefs.h <<_ACEOF
53377 #define GNULIB_UNISTR_U8_MBTOUCR 1
53378 _ACEOF
53379
53380
53381
53382
53383        if  { test "$HAVE_LIBUNISTRING" != yes \
53384     || {
53385
53386
53387
53388             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53389             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53390                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53391                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53392                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53393                          }
53394                     }
53395                }
53396
53397
53398
53399
53400        }
53401   }; then
53402   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
53403   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
53404 else
53405   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
53406   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
53407 fi
53408
53409
53410
53411
53412        if  { test "$HAVE_LIBUNISTRING" != yes \
53413     || {
53414
53415
53416
53417             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53418             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53419                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53420                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53421                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53422                          }
53423                     }
53424                }
53425
53426
53427
53428
53429        }
53430   }; then
53431   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
53432   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
53433 else
53434   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
53435   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
53436 fi
53437
53438
53439
53440
53441 cat >>confdefs.h <<_ACEOF
53442 #define GNULIB_UNISTR_U8_UCTOMB 1
53443 _ACEOF
53444
53445
53446
53447
53448        if  { test "$HAVE_LIBUNISTRING" != yes \
53449     || {
53450
53451
53452
53453             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53454             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53455                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53456                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53457                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
53458                          }
53459                     }
53460                }
53461
53462
53463
53464
53465        }
53466   }; then
53467   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
53468   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
53469 else
53470   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
53471   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
53472 fi
53473
53474
53475
53476
53477       if  { test "$HAVE_LIBUNISTRING" != yes \
53478     || {
53479
53480
53481
53482             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53483             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53484                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53485                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53486                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53487                          }
53488                     }
53489                }
53490
53491
53492
53493
53494        }
53495   }; then
53496     LIBUNISTRING_UNITYPES_H='unitypes.h'
53497   else
53498     LIBUNISTRING_UNITYPES_H=
53499   fi
53500
53501
53502
53503
53504       if  { test "$HAVE_LIBUNISTRING" != yes \
53505     || {
53506
53507
53508
53509             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53510             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53511                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53512                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53513                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
53514                          }
53515                     }
53516                }
53517
53518
53519
53520
53521        }
53522   }; then
53523     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
53524   else
53525     LIBUNISTRING_UNIWIDTH_H=
53526   fi
53527
53528
53529
53530
53531        if  { test "$HAVE_LIBUNISTRING" != yes \
53532     || {
53533
53534
53535
53536             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
53537             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
53538                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
53539                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
53540                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
53541                          }
53542                     }
53543                }
53544
53545
53546
53547
53548        }
53549   }; then
53550   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
53551   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
53552 else
53553   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
53554   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
53555 fi
53556
53557
53558
53559
53560 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
53561
53562
53563
53564
53565
53566
53567
53568
53569
53570
53571
53572
53573
53574
53575
53576
53577
53578
53579
53580
53581
53582   if test $ac_cv_have_decl_unsetenv = no; then
53583     HAVE_DECL_UNSETENV=0
53584   fi
53585   for ac_func in unsetenv
53586 do :
53587   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
53588 if test "x$ac_cv_func_unsetenv" = xyes; then :
53589   cat >>confdefs.h <<_ACEOF
53590 #define HAVE_UNSETENV 1
53591 _ACEOF
53592
53593 fi
53594 done
53595
53596   if test $ac_cv_func_unsetenv = no; then
53597     HAVE_UNSETENV=0
53598   else
53599     HAVE_UNSETENV=1
53600         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
53601 $as_echo_n "checking for unsetenv() return type... " >&6; }
53602 if ${gt_cv_func_unsetenv_ret+:} false; then :
53603   $as_echo_n "(cached) " >&6
53604 else
53605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53606 /* end confdefs.h.  */
53607
53608 #undef _BSD
53609 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
53610 #include <stdlib.h>
53611 extern
53612 #ifdef __cplusplus
53613 "C"
53614 #endif
53615 int unsetenv (const char *name);
53616
53617 int
53618 main ()
53619 {
53620
53621   ;
53622   return 0;
53623 }
53624 _ACEOF
53625 if ac_fn_c_try_compile "$LINENO"; then :
53626   gt_cv_func_unsetenv_ret='int'
53627 else
53628   gt_cv_func_unsetenv_ret='void'
53629 fi
53630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53631 fi
53632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
53633 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
53634     if test $gt_cv_func_unsetenv_ret = 'void'; then
53635
53636 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
53637
53638       REPLACE_UNSETENV=1
53639     fi
53640
53641                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
53642 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
53643 if ${gl_cv_func_unsetenv_works+:} false; then :
53644   $as_echo_n "(cached) " >&6
53645 else
53646   if test "$cross_compiling" = yes; then :
53647   case "$host_os" in
53648                  # Guess yes on glibc systems.
53649          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
53650                  # If we don't know, assume the worst.
53651          *)      gl_cv_func_unsetenv_works="guessing no" ;;
53652        esac
53653
53654 else
53655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53656 /* end confdefs.h.  */
53657
53658        #include <stdlib.h>
53659        #include <errno.h>
53660        extern char **environ;
53661
53662 int
53663 main ()
53664 {
53665
53666        char entry1[] = "a=1";
53667        char entry2[] = "b=2";
53668        char *env[] = { entry1, entry2, NULL };
53669        if (putenv ((char *) "a=1")) return 1;
53670        if (putenv (entry2)) return 2;
53671        entry2[0] = 'a';
53672        unsetenv ("a");
53673        if (getenv ("a")) return 3;
53674        if (!unsetenv ("") || errno != EINVAL) return 4;
53675        entry2[0] = 'b';
53676        environ = env;
53677        if (!getenv ("a")) return 5;
53678        entry2[0] = 'a';
53679        unsetenv ("a");
53680        if (getenv ("a")) return 6;
53681
53682   ;
53683   return 0;
53684 }
53685 _ACEOF
53686 if ac_fn_c_try_run "$LINENO"; then :
53687   gl_cv_func_unsetenv_works=yes
53688 else
53689   gl_cv_func_unsetenv_works=no
53690 fi
53691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53692   conftest.$ac_objext conftest.beam conftest.$ac_ext
53693 fi
53694
53695 fi
53696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
53697 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
53698     case "$gl_cv_func_unsetenv_works" in
53699       *yes) ;;
53700       *)
53701         REPLACE_UNSETENV=1
53702         ;;
53703     esac
53704   fi
53705
53706   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
53707
53708
53709
53710
53711
53712
53713
53714
53715   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
53716
53717
53718
53719
53720
53721   fi
53722
53723
53724
53725
53726
53727           GNULIB_UNSETENV=1
53728
53729
53730
53731
53732
53733 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
53734
53735
53736
53737
53738
53739   if test $ac_cv_func_vasnprintf = no; then
53740
53741
53742
53743
53744
53745
53746
53747
53748
53749
53750   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
53751
53752
53753
53754
53755
53756
53757
53758
53759
53760   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
53761
53762
53763
53764
53765
53766
53767
53768
53769
53770   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
53771
53772
53773
53774
53775
53776
53777
53778
53779
53780   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
53781
53782   if test $ac_cv_func_vasnprintf = yes; then
53783
53784 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
53785
53786   fi
53787
53788
53789
53790
53791
53792
53793
53794
53795
53796
53797
53798   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
53799 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
53800
53801 else
53802
53803 $as_echo "#define ptrdiff_t long" >>confdefs.h
53804
53805
53806 fi
53807
53808
53809
53810
53811
53812
53813
53814   fi
53815
53816
53817   for ac_func in vasprintf
53818 do :
53819   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
53820 if test "x$ac_cv_func_vasprintf" = xyes; then :
53821   cat >>confdefs.h <<_ACEOF
53822 #define HAVE_VASPRINTF 1
53823 _ACEOF
53824
53825 fi
53826 done
53827
53828   if test $ac_cv_func_vasprintf = no; then
53829
53830
53831
53832
53833
53834
53835
53836
53837
53838   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
53839
53840
53841
53842
53843
53844
53845
53846
53847
53848   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
53849
53850
53851   if test $ac_cv_func_vasprintf = yes; then
53852     REPLACE_VASPRINTF=1
53853   else
53854     HAVE_VASPRINTF=0
53855   fi
53856
53857
53858
53859
53860
53861
53862
53863
53864   fi
53865
53866
53867
53868
53869
53870
53871           GNULIB_VASPRINTF=1
53872
53873
53874
53875
53876
53877 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
53878
53879
53880
53881
53882
53883   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
53884
53885
53886
53887   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
53888
53889
53890
53891   gl_cv_func_vsnprintf_usable=no
53892   for ac_func in vsnprintf
53893 do :
53894   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
53895 if test "x$ac_cv_func_vsnprintf" = xyes; then :
53896   cat >>confdefs.h <<_ACEOF
53897 #define HAVE_VSNPRINTF 1
53898 _ACEOF
53899
53900 fi
53901 done
53902
53903   if test $ac_cv_func_vsnprintf = yes; then
53904
53905
53906
53907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
53908 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
53909 if ${gl_cv_func_snprintf_size1+:} false; then :
53910   $as_echo_n "(cached) " >&6
53911 else
53912
53913       if test "$cross_compiling" = yes; then :
53914   gl_cv_func_snprintf_size1="guessing yes"
53915 else
53916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53917 /* end confdefs.h.  */
53918
53919 #include <stdio.h>
53920 #if HAVE_SNPRINTF
53921 # define my_snprintf snprintf
53922 #else
53923 # include <stdarg.h>
53924 static int my_snprintf (char *buf, int size, const char *format, ...)
53925 {
53926   va_list args;
53927   int ret;
53928   va_start (args, format);
53929   ret = vsnprintf (buf, size, format, args);
53930   va_end (args);
53931   return ret;
53932 }
53933 #endif
53934 int main()
53935 {
53936   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
53937   my_snprintf (buf, 1, "%d", 12345);
53938   return buf[1] != 'E';
53939 }
53940 _ACEOF
53941 if ac_fn_c_try_run "$LINENO"; then :
53942   gl_cv_func_snprintf_size1=yes
53943 else
53944   gl_cv_func_snprintf_size1=no
53945 fi
53946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53947   conftest.$ac_objext conftest.beam conftest.$ac_ext
53948 fi
53949
53950
53951 fi
53952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
53953 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
53954
53955     case "$gl_cv_func_snprintf_size1" in
53956       *yes)
53957
53958         case "$gl_cv_func_snprintf_retval_c99" in
53959           *yes)
53960
53961
53962      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
53963 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
53964 if ${gl_cv_func_printf_positions+:} false; then :
53965   $as_echo_n "(cached) " >&6
53966 else
53967
53968       if test "$cross_compiling" = yes; then :
53969
53970          case "$host_os" in
53971            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
53972                          gl_cv_func_printf_positions="guessing no";;
53973            beos*)        gl_cv_func_printf_positions="guessing no";;
53974            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
53975            *)            gl_cv_func_printf_positions="guessing yes";;
53976          esac
53977
53978 else
53979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53980 /* end confdefs.h.  */
53981
53982 #include <stdio.h>
53983 #include <string.h>
53984 /* The string "%2$d %1$d", with dollar characters protected from the shell's
53985    dollar expansion (possibly an autoconf bug).  */
53986 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
53987 static char buf[100];
53988 int main ()
53989 {
53990   sprintf (buf, format, 33, 55);
53991   return (strcmp (buf, "55 33") != 0);
53992 }
53993 _ACEOF
53994 if ac_fn_c_try_run "$LINENO"; then :
53995   gl_cv_func_printf_positions=yes
53996 else
53997   gl_cv_func_printf_positions=no
53998 fi
53999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54000   conftest.$ac_objext conftest.beam conftest.$ac_ext
54001 fi
54002
54003
54004 fi
54005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
54006 $as_echo "$gl_cv_func_printf_positions" >&6; }
54007
54008             case "$gl_cv_func_printf_positions" in
54009               *yes)
54010                 gl_cv_func_vsnprintf_usable=yes
54011                 ;;
54012             esac
54013             ;;
54014         esac
54015         ;;
54016     esac
54017   fi
54018   if test $gl_cv_func_vsnprintf_usable = no; then
54019
54020
54021
54022
54023
54024
54025
54026
54027
54028
54029   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
54030
54031   if test $ac_cv_func_vsnprintf = yes; then
54032     REPLACE_VSNPRINTF=1
54033   fi
54034   :
54035
54036   fi
54037
54038   if test $ac_cv_have_decl_vsnprintf = no; then
54039     HAVE_DECL_VSNPRINTF=0
54040   fi
54041
54042
54043
54044
54045
54046
54047           GNULIB_VSNPRINTF=1
54048
54049
54050
54051
54052
54053 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
54054
54055
54056
54057
54058
54059   for ac_func in waitid
54060 do :
54061   ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
54062 if test "x$ac_cv_func_waitid" = xyes; then :
54063   cat >>confdefs.h <<_ACEOF
54064 #define HAVE_WAITID 1
54065 _ACEOF
54066
54067 fi
54068 done
54069
54070
54071
54072 for ac_func in waitpid
54073 do :
54074   ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
54075 if test "x$ac_cv_func_waitpid" = xyes; then :
54076   cat >>confdefs.h <<_ACEOF
54077 #define HAVE_WAITPID 1
54078 _ACEOF
54079
54080 fi
54081 done
54082
54083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
54084 $as_echo_n "checking for union wait... " >&6; }
54085 if ${gt_cv_union_wait+:} false; then :
54086   $as_echo_n "(cached) " >&6
54087 else
54088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54089 /* end confdefs.h.  */
54090 #include <sys/types.h>
54091 #include <sys/wait.h>
54092 int
54093 main ()
54094 {
54095 union wait status; int pid; pid = wait (&status);
54096 #ifdef WEXITSTATUS
54097 /* Some POSIXoid systems have both the new-style macros and the old
54098    union wait type, and they do not work together.  If union wait
54099    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
54100 if (WEXITSTATUS (status) != 0) pid = -1;
54101 #ifdef WTERMSIG
54102 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
54103 -- blow chunks here --
54104 #endif
54105 #endif
54106 #ifdef HAVE_WAITPID
54107 /* Make sure union wait works with waitpid.  */
54108 pid = waitpid (-1, &status, 0);
54109 #endif
54110
54111   ;
54112   return 0;
54113 }
54114 _ACEOF
54115 if ac_fn_c_try_link "$LINENO"; then :
54116   gt_cv_union_wait=yes
54117 else
54118   gt_cv_union_wait=no
54119 fi
54120 rm -f core conftest.err conftest.$ac_objext \
54121     conftest$ac_exeext conftest.$ac_ext
54122 fi
54123
54124 if test "$gt_cv_union_wait" = yes; then
54125
54126 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
54127
54128 fi
54129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_union_wait" >&5
54130 $as_echo "$gt_cv_union_wait" >&6; }
54131
54132
54133
54134   HAVE_WAITPID=1
54135   case $host_os in
54136     mingw*) HAVE_WAITPID=0 ;;
54137   esac
54138
54139   if test $HAVE_WAITPID = 0; then
54140
54141
54142
54143
54144
54145
54146
54147
54148   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
54149
54150   fi
54151
54152
54153
54154
54155
54156           GNULIB_WAITPID=1
54157
54158
54159
54160
54161
54162 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
54163
54164
54165
54166
54167
54168
54169
54170
54171
54172
54173
54174
54175
54176
54177
54178      if test $gl_cv_have_include_next = yes; then
54179        gl_cv_next_wchar_h='<'wchar.h'>'
54180      else
54181        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
54182 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
54183 if ${gl_cv_next_wchar_h+:} false; then :
54184   $as_echo_n "(cached) " >&6
54185 else
54186
54187              if test $ac_cv_header_wchar_h = yes; then
54188
54189
54190
54191
54192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54193 /* end confdefs.h.  */
54194 #include <wchar.h>
54195 _ACEOF
54196                 case "$host_os" in
54197     aix*) gl_absname_cpp="$ac_cpp -C" ;;
54198     *)    gl_absname_cpp="$ac_cpp" ;;
54199   esac
54200
54201   case "$host_os" in
54202     mingw*)
54203                                           gl_dirsep_regex='[/\\]'
54204       ;;
54205     *)
54206       gl_dirsep_regex='\/'
54207       ;;
54208   esac
54209       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
54210   gl_header_literal_regex=`echo 'wchar.h' \
54211                            | sed -e "$gl_make_literal_regex_sed"`
54212   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
54213       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
54214       s|^/[^/]|//&|
54215       p
54216       q
54217     }'
54218
54219         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
54220   sed -n "$gl_absolute_header_sed"`
54221
54222            gl_header=$gl_cv_absolute_wchar_h
54223            gl_cv_next_wchar_h='"'$gl_header'"'
54224           else
54225                gl_cv_next_wchar_h='<'wchar.h'>'
54226              fi
54227
54228
54229 fi
54230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
54231 $as_echo "$gl_cv_next_wchar_h" >&6; }
54232      fi
54233      NEXT_WCHAR_H=$gl_cv_next_wchar_h
54234
54235      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
54236        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
54237        gl_next_as_first_directive='<'wchar.h'>'
54238      else
54239        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
54240        gl_next_as_first_directive=$gl_cv_next_wchar_h
54241      fi
54242      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
54243
54244
54245
54246
54247   if test $ac_cv_header_wchar_h = yes; then
54248     HAVE_WCHAR_H=1
54249   else
54250     HAVE_WCHAR_H=0
54251   fi
54252
54253
54254
54255
54256
54257   if test $gt_cv_c_wint_t = yes; then
54258     HAVE_WINT_T=1
54259   else
54260     HAVE_WINT_T=0
54261   fi
54262
54263
54264
54265     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
54266     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
54267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
54268 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
54269 if eval \${$as_gl_Symbol+:} false; then :
54270   $as_echo_n "(cached) " >&6
54271 else
54272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54273 /* end confdefs.h.  */
54274
54275 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54276    <wchar.h>.
54277    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54278    included before <wchar.h>.  */
54279 #if !(defined __GLIBC__ && !defined __UCLIBC__)
54280 # include <stddef.h>
54281 # include <stdio.h>
54282 # include <time.h>
54283 #endif
54284 #include <wchar.h>
54285
54286 int
54287 main ()
54288 {
54289 #undef $gl_func
54290   (void) $gl_func;
54291   ;
54292   return 0;
54293 }
54294 _ACEOF
54295 if ac_fn_c_try_compile "$LINENO"; then :
54296   eval "$as_gl_Symbol=yes"
54297 else
54298   eval "$as_gl_Symbol=no"
54299 fi
54300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54301 fi
54302 eval ac_res=\$$as_gl_Symbol
54303                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
54304 $as_echo "$ac_res" >&6; }
54305     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
54306   cat >>confdefs.h <<_ACEOF
54307 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
54308 _ACEOF
54309
54310                      eval ac_cv_have_decl_$gl_func=yes
54311 fi
54312       done
54313
54314
54315
54316
54317
54318
54319
54320   if test $ac_cv_func_iswcntrl = yes; then
54321     HAVE_ISWCNTRL=1
54322   else
54323     HAVE_ISWCNTRL=0
54324   fi
54325
54326
54327
54328   if test $gt_cv_c_wint_t = yes; then
54329     HAVE_WINT_T=1
54330   else
54331     HAVE_WINT_T=0
54332   fi
54333
54334
54335
54336
54337
54338
54339
54340
54341
54342
54343
54344      if test $gl_cv_have_include_next = yes; then
54345        gl_cv_next_wctype_h='<'wctype.h'>'
54346      else
54347        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
54348 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
54349 if ${gl_cv_next_wctype_h+:} false; then :
54350   $as_echo_n "(cached) " >&6
54351 else
54352
54353              if test $ac_cv_header_wctype_h = yes; then
54354
54355
54356
54357
54358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54359 /* end confdefs.h.  */
54360 #include <wctype.h>
54361 _ACEOF
54362                 case "$host_os" in
54363     aix*) gl_absname_cpp="$ac_cpp -C" ;;
54364     *)    gl_absname_cpp="$ac_cpp" ;;
54365   esac
54366
54367   case "$host_os" in
54368     mingw*)
54369                                           gl_dirsep_regex='[/\\]'
54370       ;;
54371     *)
54372       gl_dirsep_regex='\/'
54373       ;;
54374   esac
54375       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
54376   gl_header_literal_regex=`echo 'wctype.h' \
54377                            | sed -e "$gl_make_literal_regex_sed"`
54378   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
54379       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
54380       s|^/[^/]|//&|
54381       p
54382       q
54383     }'
54384
54385         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
54386   sed -n "$gl_absolute_header_sed"`
54387
54388            gl_header=$gl_cv_absolute_wctype_h
54389            gl_cv_next_wctype_h='"'$gl_header'"'
54390           else
54391                gl_cv_next_wctype_h='<'wctype.h'>'
54392              fi
54393
54394
54395 fi
54396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
54397 $as_echo "$gl_cv_next_wctype_h" >&6; }
54398      fi
54399      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
54400
54401      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
54402        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
54403        gl_next_as_first_directive='<'wctype.h'>'
54404      else
54405        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
54406        gl_next_as_first_directive=$gl_cv_next_wctype_h
54407      fi
54408      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
54409
54410
54411
54412
54413   if test $ac_cv_header_wctype_h = yes; then
54414     if test $ac_cv_func_iswcntrl = yes; then
54415                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
54416 $as_echo_n "checking whether iswcntrl works... " >&6; }
54417 if ${gl_cv_func_iswcntrl_works+:} false; then :
54418   $as_echo_n "(cached) " >&6
54419 else
54420
54421           if test "$cross_compiling" = yes; then :
54422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54423 /* end confdefs.h.  */
54424 #include <stdlib.h>
54425                           #if __GNU_LIBRARY__ == 1
54426                           Linux libc5 i18n is broken.
54427                           #endif
54428 int
54429 main ()
54430 {
54431
54432   ;
54433   return 0;
54434 }
54435 _ACEOF
54436 if ac_fn_c_try_compile "$LINENO"; then :
54437   gl_cv_func_iswcntrl_works="guessing yes"
54438 else
54439   gl_cv_func_iswcntrl_works="guessing no"
54440 fi
54441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54442
54443 else
54444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54445 /* end confdefs.h.  */
54446
54447                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
54448                   included before <wchar.h>.
54449                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
54450                   must be included before <wchar.h>.  */
54451                #include <stddef.h>
54452                #include <stdio.h>
54453                #include <time.h>
54454                #include <wchar.h>
54455                #include <wctype.h>
54456                int main () { return iswprint ('x') == 0; }
54457
54458 _ACEOF
54459 if ac_fn_c_try_run "$LINENO"; then :
54460   gl_cv_func_iswcntrl_works=yes
54461 else
54462   gl_cv_func_iswcntrl_works=no
54463 fi
54464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54465   conftest.$ac_objext conftest.beam conftest.$ac_ext
54466 fi
54467
54468
54469 fi
54470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
54471 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
54472     fi
54473     HAVE_WCTYPE_H=1
54474   else
54475     HAVE_WCTYPE_H=0
54476   fi
54477
54478
54479   case "$gl_cv_func_iswcntrl_works" in
54480     *yes) REPLACE_ISWCNTRL=0 ;;
54481     *)    REPLACE_ISWCNTRL=1 ;;
54482   esac
54483
54484
54485   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
54486         :
54487   fi
54488
54489   if test $REPLACE_ISWCNTRL = 1; then
54490     REPLACE_TOWLOWER=1
54491   else
54492     for ac_func in towlower
54493 do :
54494   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
54495 if test "x$ac_cv_func_towlower" = xyes; then :
54496   cat >>confdefs.h <<_ACEOF
54497 #define HAVE_TOWLOWER 1
54498 _ACEOF
54499
54500 fi
54501 done
54502
54503     if test $ac_cv_func_towlower = yes; then
54504       REPLACE_TOWLOWER=0
54505     else
54506       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
54507              included before <wchar.h>.
54508              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
54509              must be included before <wchar.h>.  */
54510           #include <stddef.h>
54511           #include <stdio.h>
54512           #include <time.h>
54513           #include <wchar.h>
54514           #if HAVE_WCTYPE_H
54515           # include <wctype.h>
54516           #endif
54517
54518 "
54519 if test "x$ac_cv_have_decl_towlower" = xyes; then :
54520   ac_have_decl=1
54521 else
54522   ac_have_decl=0
54523 fi
54524
54525 cat >>confdefs.h <<_ACEOF
54526 #define HAVE_DECL_TOWLOWER $ac_have_decl
54527 _ACEOF
54528
54529       if test $ac_cv_have_decl_towlower = yes; then
54530                                 REPLACE_TOWLOWER=1
54531       else
54532         REPLACE_TOWLOWER=0
54533       fi
54534     fi
54535   fi
54536
54537
54538   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
54539         :
54540   fi
54541
54542           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
54543 $as_echo_n "checking for wctype_t... " >&6; }
54544 if ${gl_cv_type_wctype_t+:} false; then :
54545   $as_echo_n "(cached) " >&6
54546 else
54547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54548 /* end confdefs.h.  */
54549 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
54550                included before <wchar.h>.
54551                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
54552                must be included before <wchar.h>.  */
54553             #include <stddef.h>
54554             #include <stdio.h>
54555             #include <time.h>
54556             #include <wchar.h>
54557             #if HAVE_WCTYPE_H
54558             # include <wctype.h>
54559             #endif
54560             wctype_t a;
54561
54562 int
54563 main ()
54564 {
54565
54566   ;
54567   return 0;
54568 }
54569 _ACEOF
54570 if ac_fn_c_try_compile "$LINENO"; then :
54571   gl_cv_type_wctype_t=yes
54572 else
54573   gl_cv_type_wctype_t=no
54574 fi
54575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54576
54577 fi
54578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
54579 $as_echo "$gl_cv_type_wctype_t" >&6; }
54580   if test $gl_cv_type_wctype_t = no; then
54581     HAVE_WCTYPE_T=0
54582   fi
54583
54584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
54585 $as_echo_n "checking for wctrans_t... " >&6; }
54586 if ${gl_cv_type_wctrans_t+:} false; then :
54587   $as_echo_n "(cached) " >&6
54588 else
54589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54590 /* end confdefs.h.  */
54591 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
54592                included before <wchar.h>.
54593                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
54594                must be included before <wchar.h>.  */
54595             #include <stddef.h>
54596             #include <stdio.h>
54597             #include <time.h>
54598             #include <wchar.h>
54599             #include <wctype.h>
54600             wctrans_t a;
54601
54602 int
54603 main ()
54604 {
54605
54606   ;
54607   return 0;
54608 }
54609 _ACEOF
54610 if ac_fn_c_try_compile "$LINENO"; then :
54611   gl_cv_type_wctrans_t=yes
54612 else
54613   gl_cv_type_wctrans_t=no
54614 fi
54615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54616
54617 fi
54618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
54619 $as_echo "$gl_cv_type_wctrans_t" >&6; }
54620   if test $gl_cv_type_wctrans_t = no; then
54621     HAVE_WCTRANS_T=0
54622   fi
54623
54624
54625     for gl_func in wctype iswctype wctrans towctrans     ; do
54626     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
54627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
54628 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
54629 if eval \${$as_gl_Symbol+:} false; then :
54630   $as_echo_n "(cached) " >&6
54631 else
54632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54633 /* end confdefs.h.  */
54634
54635 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54636    <wchar.h>.
54637    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54638    included before <wchar.h>.  */
54639 #if !(defined __GLIBC__ && !defined __UCLIBC__)
54640 # include <stddef.h>
54641 # include <stdio.h>
54642 # include <time.h>
54643 # include <wchar.h>
54644 #endif
54645 #include <wctype.h>
54646
54647 int
54648 main ()
54649 {
54650 #undef $gl_func
54651   (void) $gl_func;
54652   ;
54653   return 0;
54654 }
54655 _ACEOF
54656 if ac_fn_c_try_compile "$LINENO"; then :
54657   eval "$as_gl_Symbol=yes"
54658 else
54659   eval "$as_gl_Symbol=no"
54660 fi
54661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54662 fi
54663 eval ac_res=\$$as_gl_Symbol
54664                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
54665 $as_echo "$ac_res" >&6; }
54666     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
54667   cat >>confdefs.h <<_ACEOF
54668 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
54669 _ACEOF
54670
54671                      eval ac_cv_have_decl_$gl_func=yes
54672 fi
54673       done
54674
54675
54676
54677
54678
54679
54680
54681
54682
54683
54684
54685
54686
54687   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
54688 /* AIX 3.2.5 declares wcwidth in <string.h>. */
54689 #include <string.h>
54690 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54691    <wchar.h>.
54692    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
54693    before <wchar.h>.  */
54694 #include <stddef.h>
54695 #include <stdio.h>
54696 #include <time.h>
54697 #include <wchar.h>
54698
54699 "
54700 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
54701   ac_have_decl=1
54702 else
54703   ac_have_decl=0
54704 fi
54705
54706 cat >>confdefs.h <<_ACEOF
54707 #define HAVE_DECL_WCWIDTH $ac_have_decl
54708 _ACEOF
54709
54710   if test $ac_cv_have_decl_wcwidth != yes; then
54711     HAVE_DECL_WCWIDTH=0
54712   fi
54713
54714   if test $ac_cv_func_wcwidth = yes; then
54715     HAVE_WCWIDTH=1
54716                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
54717 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
54718 if ${gl_cv_func_wcwidth_works+:} false; then :
54719   $as_echo_n "(cached) " >&6
54720 else
54721
54722         if test "$cross_compiling" = yes; then :
54723
54724            case "$host_os" in
54725                      # Guess yes on glibc and AIX 7 systems.
54726              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
54727              *)                  gl_cv_func_wcwidth_works="guessing no";;
54728            esac
54729
54730 else
54731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54732 /* end confdefs.h.  */
54733
54734 #include <locale.h>
54735 /* AIX 3.2.5 declares wcwidth in <string.h>. */
54736 #include <string.h>
54737 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54738    <wchar.h>.
54739    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
54740    before <wchar.h>.  */
54741 #include <stddef.h>
54742 #include <stdio.h>
54743 #include <time.h>
54744 #include <wchar.h>
54745 #if !HAVE_DECL_WCWIDTH
54746 extern
54747 # ifdef __cplusplus
54748 "C"
54749 # endif
54750 int wcwidth (int);
54751 #endif
54752 int main ()
54753 {
54754   int result = 0;
54755   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
54756     {
54757       if (wcwidth (0x0301) > 0)
54758         result |= 1;
54759       if (wcwidth (0x05B0) > 0)
54760         result |= 2;
54761       if (wcwidth (0x200B) > 0)
54762         result |= 4;
54763     }
54764   return result;
54765 }
54766 _ACEOF
54767 if ac_fn_c_try_run "$LINENO"; then :
54768   gl_cv_func_wcwidth_works=yes
54769 else
54770   gl_cv_func_wcwidth_works=no
54771 fi
54772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54773   conftest.$ac_objext conftest.beam conftest.$ac_ext
54774 fi
54775
54776
54777 fi
54778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
54779 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
54780     case "$gl_cv_func_wcwidth_works" in
54781       *yes) ;;
54782       *no) REPLACE_WCWIDTH=1 ;;
54783     esac
54784   else
54785     HAVE_WCWIDTH=0
54786   fi
54787
54788   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
54789
54790
54791
54792
54793
54794
54795
54796
54797   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
54798
54799   fi
54800
54801
54802
54803
54804
54805           GNULIB_WCWIDTH=1
54806
54807
54808
54809
54810
54811 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
54812
54813
54814
54815
54816
54817
54818   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
54819     REPLACE_WRITE=1
54820   fi
54821
54822
54823
54824
54825     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
54826       REPLACE_WRITE=1
54827     fi
54828
54829
54830
54831   if test $REPLACE_WRITE = 1; then
54832
54833
54834
54835
54836
54837
54838
54839
54840   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
54841
54842     :
54843   fi
54844
54845
54846
54847
54848
54849           GNULIB_WRITE=1
54850
54851
54852
54853
54854
54855 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
54856
54857
54858
54859
54860
54861   for ac_header in stdint.h
54862 do :
54863   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
54864 if test "x$ac_cv_header_stdint_h" = xyes; then :
54865   cat >>confdefs.h <<_ACEOF
54866 #define HAVE_STDINT_H 1
54867 _ACEOF
54868
54869 fi
54870
54871 done
54872
54873
54874   :
54875
54876
54877   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
54878
54879   # End of code from modules
54880
54881
54882
54883
54884
54885
54886
54887
54888
54889   gltests_libdeps=
54890   gltests_ltlibdeps=
54891
54892
54893
54894
54895
54896
54897
54898
54899
54900   gl_source_base='gnulib-tests'
54901   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
54902
54903   gl_module_indicator_condition=$gltests_WITNESS
54904
54905
54906
54907
54908
54909
54910
54911   if test $ac_cv_func_btowc = no; then
54912     HAVE_BTOWC=0
54913   else
54914
54915
54916
54917
54918         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
54919 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
54920 if ${gl_cv_func_btowc_nul+:} false; then :
54921   $as_echo_n "(cached) " >&6
54922 else
54923
54924         if test "$cross_compiling" = yes; then :
54925
54926            case "$host_os" in
54927                       # Guess no on Cygwin.
54928              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
54929                       # Guess yes otherwise.
54930              *)       gl_cv_func_btowc_nul="guessing yes" ;;
54931            esac
54932
54933 else
54934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54935 /* end confdefs.h.  */
54936
54937 #include <string.h>
54938 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54939    <wchar.h>.
54940    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54941    included before <wchar.h>.  */
54942 #include <stddef.h>
54943 #include <stdio.h>
54944 #include <time.h>
54945 #include <wchar.h>
54946 int main ()
54947 {
54948   if (btowc ('\0') != 0)
54949     return 1;
54950   return 0;
54951 }
54952 _ACEOF
54953 if ac_fn_c_try_run "$LINENO"; then :
54954   gl_cv_func_btowc_nul=yes
54955 else
54956   gl_cv_func_btowc_nul=no
54957 fi
54958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54959   conftest.$ac_objext conftest.beam conftest.$ac_ext
54960 fi
54961
54962
54963 fi
54964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
54965 $as_echo "$gl_cv_func_btowc_nul" >&6; }
54966
54967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
54968 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
54969 if ${gl_cv_func_btowc_eof+:} false; then :
54970   $as_echo_n "(cached) " >&6
54971 else
54972
54973                         case "$host_os" in
54974                  # Guess no on IRIX.
54975           irix*) gl_cv_func_btowc_eof="guessing no" ;;
54976                  # Guess yes otherwise.
54977           *)     gl_cv_func_btowc_eof="guessing yes" ;;
54978         esac
54979         if test $LOCALE_FR != none; then
54980           if test "$cross_compiling" = yes; then :
54981   :
54982 else
54983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54984 /* end confdefs.h.  */
54985
54986 #include <locale.h>
54987 #include <string.h>
54988 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54989    <wchar.h>.
54990    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54991    included before <wchar.h>.  */
54992 #include <stddef.h>
54993 #include <stdio.h>
54994 #include <time.h>
54995 #include <wchar.h>
54996 int main ()
54997 {
54998   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
54999     {
55000       if (btowc (EOF) != WEOF)
55001         return 1;
55002     }
55003   return 0;
55004 }
55005 _ACEOF
55006 if ac_fn_c_try_run "$LINENO"; then :
55007   gl_cv_func_btowc_eof=yes
55008 else
55009   gl_cv_func_btowc_eof=no
55010 fi
55011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55012   conftest.$ac_objext conftest.beam conftest.$ac_ext
55013 fi
55014
55015         fi
55016
55017 fi
55018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
55019 $as_echo "$gl_cv_func_btowc_eof" >&6; }
55020
55021     case "$gl_cv_func_btowc_nul" in
55022       *yes) ;;
55023       *) REPLACE_BTOWC=1 ;;
55024     esac
55025     case "$gl_cv_func_btowc_eof" in
55026       *yes) ;;
55027       *) REPLACE_BTOWC=1 ;;
55028     esac
55029   fi
55030
55031   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
55032
55033
55034
55035
55036
55037
55038
55039
55040   gltests_LIBOBJS="$gltests_LIBOBJS btowc.$ac_objext"
55041
55042
55043   :
55044
55045   fi
55046
55047
55048
55049
55050
55051     if test "$GNULIB_BTOWC" != 1; then
55052         if test "$GNULIB_BTOWC" = 0; then
55053       GNULIB_BTOWC=$gl_module_indicator_condition
55054     else
55055       GNULIB_BTOWC="($GNULIB_BTOWC || $gl_module_indicator_condition)"
55056     fi
55057   fi
55058
55059
55060
55061
55062
55063 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
55064
55065
55066
55067
55068
55069
55070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
55071 $as_echo_n "checking for a traditional french locale... " >&6; }
55072 if ${gt_cv_locale_fr+:} false; then :
55073   $as_echo_n "(cached) " >&6
55074 else
55075
55076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55077 /* end confdefs.h.  */
55078
55079 #include <locale.h>
55080 #include <time.h>
55081 #if HAVE_LANGINFO_CODESET
55082 # include <langinfo.h>
55083 #endif
55084 #include <stdlib.h>
55085 #include <string.h>
55086 struct tm t;
55087 char buf[16];
55088 int main () {
55089   /* Check whether the given locale name is recognized by the system.  */
55090 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
55091   /* On native Windows, setlocale(category, "") looks at the system settings,
55092      not at the environment variables.  Also, when an encoding suffix such
55093      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
55094      category of the locale to "C".  */
55095   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
55096       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
55097     return 1;
55098 #else
55099   if (setlocale (LC_ALL, "") == NULL) return 1;
55100 #endif
55101   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55102      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55103      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55104      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55105      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55106      some unit tests fail.
55107      On MirBSD 10, when an unsupported locale is specified, setlocale()
55108      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
55109 #if HAVE_LANGINFO_CODESET
55110   {
55111     const char *cs = nl_langinfo (CODESET);
55112     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
55113         || strcmp (cs, "UTF-8") == 0)
55114       return 1;
55115   }
55116 #endif
55117 #ifdef __CYGWIN__
55118   /* On Cygwin, avoid locale names without encoding suffix, because the
55119      locale_charset() function relies on the encoding suffix.  Note that
55120      LC_ALL is set on the command line.  */
55121   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55122 #endif
55123   /* Check whether in the abbreviation of the second month, the second
55124      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
55125      one byte long. This excludes the UTF-8 encoding.  */
55126   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55127   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
55128 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
55129   /* Check whether the decimal separator is a comma.
55130      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55131      are nl_langinfo(RADIXCHAR) are both ".".  */
55132   if (localeconv () ->decimal_point[0] != ',') return 1;
55133 #endif
55134   return 0;
55135 }
55136
55137 _ACEOF
55138     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55139   (eval $ac_link) 2>&5
55140   ac_status=$?
55141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55142   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55143       case "$host_os" in
55144         # Handle native Windows specially, because there setlocale() interprets
55145         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
55146         # "fr" or "fra" as "French" or "French_France.1252",
55147         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
55148         # "ja" as "Japanese" or "Japanese_Japan.932",
55149         # and similar.
55150         mingw*)
55151           # Test for the native Windows locale name.
55152           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55153             gt_cv_locale_fr=French_France.1252
55154           else
55155             # None found.
55156             gt_cv_locale_fr=none
55157           fi
55158           ;;
55159         *)
55160           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55161           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
55162           # configure script would override the LC_ALL setting. Likewise for
55163           # LC_CTYPE, which is also set at the beginning of the configure script.
55164           # Test for the usual locale name.
55165           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55166             gt_cv_locale_fr=fr_FR
55167           else
55168             # Test for the locale name with explicit encoding suffix.
55169             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55170               gt_cv_locale_fr=fr_FR.ISO-8859-1
55171             else
55172               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
55173               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55174                 gt_cv_locale_fr=fr_FR.ISO8859-1
55175               else
55176                 # Test for the HP-UX locale name.
55177                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55178                   gt_cv_locale_fr=fr_FR.iso88591
55179                 else
55180                   # Test for the Solaris 7 locale name.
55181                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55182                     gt_cv_locale_fr=fr
55183                   else
55184                     # None found.
55185                     gt_cv_locale_fr=none
55186                   fi
55187                 fi
55188               fi
55189             fi
55190           fi
55191           ;;
55192       esac
55193     fi
55194     rm -fr conftest*
55195
55196 fi
55197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
55198 $as_echo "$gt_cv_locale_fr" >&6; }
55199   LOCALE_FR=$gt_cv_locale_fr
55200
55201
55202
55203
55204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
55205 $as_echo_n "checking for a french Unicode locale... " >&6; }
55206 if ${gt_cv_locale_fr_utf8+:} false; then :
55207   $as_echo_n "(cached) " >&6
55208 else
55209
55210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55211 /* end confdefs.h.  */
55212
55213 #include <locale.h>
55214 #include <time.h>
55215 #if HAVE_LANGINFO_CODESET
55216 # include <langinfo.h>
55217 #endif
55218 #include <stdlib.h>
55219 #include <string.h>
55220 struct tm t;
55221 char buf[16];
55222 int main () {
55223   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
55224      imitates locale dependent behaviour by looking at the environment
55225      variables, and all locales use the UTF-8 encoding.  */
55226 #if !(defined __BEOS__ || defined __HAIKU__)
55227   /* Check whether the given locale name is recognized by the system.  */
55228 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
55229   /* On native Windows, setlocale(category, "") looks at the system settings,
55230      not at the environment variables.  Also, when an encoding suffix such
55231      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
55232      category of the locale to "C".  */
55233   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
55234       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
55235     return 1;
55236 # else
55237   if (setlocale (LC_ALL, "") == NULL) return 1;
55238 # endif
55239   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55240      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55241      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55242      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55243      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55244      some unit tests fail.  */
55245 # if HAVE_LANGINFO_CODESET
55246   {
55247     const char *cs = nl_langinfo (CODESET);
55248     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55249       return 1;
55250   }
55251 # endif
55252 # ifdef __CYGWIN__
55253   /* On Cygwin, avoid locale names without encoding suffix, because the
55254      locale_charset() function relies on the encoding suffix.  Note that
55255      LC_ALL is set on the command line.  */
55256   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55257 # endif
55258   /* Check whether in the abbreviation of the second month, the second
55259      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
55260      two bytes long, with UTF-8 encoding.  */
55261   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55262   if (strftime (buf, sizeof (buf), "%b", &t) < 4
55263       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
55264     return 1;
55265 #endif
55266 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
55267   /* Check whether the decimal separator is a comma.
55268      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55269      are nl_langinfo(RADIXCHAR) are both ".".  */
55270   if (localeconv () ->decimal_point[0] != ',') return 1;
55271 #endif
55272   return 0;
55273 }
55274
55275 _ACEOF
55276     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55277   (eval $ac_link) 2>&5
55278   ac_status=$?
55279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55280   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55281       case "$host_os" in
55282         # Handle native Windows specially, because there setlocale() interprets
55283         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
55284         # "fr" or "fra" as "French" or "French_France.1252",
55285         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
55286         # "ja" as "Japanese" or "Japanese_Japan.932",
55287         # and similar.
55288         mingw*)
55289           # Test for the hypothetical native Windows locale name.
55290           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55291             gt_cv_locale_fr_utf8=French_France.65001
55292           else
55293             # None found.
55294             gt_cv_locale_fr_utf8=none
55295           fi
55296           ;;
55297         *)
55298           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55299           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
55300           # configure script would override the LC_ALL setting. Likewise for
55301           # LC_CTYPE, which is also set at the beginning of the configure script.
55302           # Test for the usual locale name.
55303           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55304             gt_cv_locale_fr_utf8=fr_FR
55305           else
55306             # Test for the locale name with explicit encoding suffix.
55307             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55308               gt_cv_locale_fr_utf8=fr_FR.UTF-8
55309             else
55310               # Test for the Solaris 7 locale name.
55311               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55312                 gt_cv_locale_fr_utf8=fr.UTF-8
55313               else
55314                 # None found.
55315                 gt_cv_locale_fr_utf8=none
55316               fi
55317             fi
55318           fi
55319           ;;
55320       esac
55321     fi
55322     rm -fr conftest*
55323
55324 fi
55325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
55326 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
55327   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
55328
55329
55330
55331
55332
55333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
55334 $as_echo_n "checking for a traditional french locale... " >&6; }
55335 if ${gt_cv_locale_fr+:} false; then :
55336   $as_echo_n "(cached) " >&6
55337 else
55338
55339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55340 /* end confdefs.h.  */
55341
55342 #include <locale.h>
55343 #include <time.h>
55344 #if HAVE_LANGINFO_CODESET
55345 # include <langinfo.h>
55346 #endif
55347 #include <stdlib.h>
55348 #include <string.h>
55349 struct tm t;
55350 char buf[16];
55351 int main () {
55352   /* Check whether the given locale name is recognized by the system.  */
55353 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
55354   /* On native Windows, setlocale(category, "") looks at the system settings,
55355      not at the environment variables.  Also, when an encoding suffix such
55356      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
55357      category of the locale to "C".  */
55358   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
55359       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
55360     return 1;
55361 #else
55362   if (setlocale (LC_ALL, "") == NULL) return 1;
55363 #endif
55364   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55365      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55366      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55367      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55368      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55369      some unit tests fail.
55370      On MirBSD 10, when an unsupported locale is specified, setlocale()
55371      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
55372 #if HAVE_LANGINFO_CODESET
55373   {
55374     const char *cs = nl_langinfo (CODESET);
55375     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
55376         || strcmp (cs, "UTF-8") == 0)
55377       return 1;
55378   }
55379 #endif
55380 #ifdef __CYGWIN__
55381   /* On Cygwin, avoid locale names without encoding suffix, because the
55382      locale_charset() function relies on the encoding suffix.  Note that
55383      LC_ALL is set on the command line.  */
55384   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55385 #endif
55386   /* Check whether in the abbreviation of the second month, the second
55387      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
55388      one byte long. This excludes the UTF-8 encoding.  */
55389   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55390   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
55391 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
55392   /* Check whether the decimal separator is a comma.
55393      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55394      are nl_langinfo(RADIXCHAR) are both ".".  */
55395   if (localeconv () ->decimal_point[0] != ',') return 1;
55396 #endif
55397   return 0;
55398 }
55399
55400 _ACEOF
55401     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55402   (eval $ac_link) 2>&5
55403   ac_status=$?
55404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55405   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55406       case "$host_os" in
55407         # Handle native Windows specially, because there setlocale() interprets
55408         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
55409         # "fr" or "fra" as "French" or "French_France.1252",
55410         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
55411         # "ja" as "Japanese" or "Japanese_Japan.932",
55412         # and similar.
55413         mingw*)
55414           # Test for the native Windows locale name.
55415           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55416             gt_cv_locale_fr=French_France.1252
55417           else
55418             # None found.
55419             gt_cv_locale_fr=none
55420           fi
55421           ;;
55422         *)
55423           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55424           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
55425           # configure script would override the LC_ALL setting. Likewise for
55426           # LC_CTYPE, which is also set at the beginning of the configure script.
55427           # Test for the usual locale name.
55428           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55429             gt_cv_locale_fr=fr_FR
55430           else
55431             # Test for the locale name with explicit encoding suffix.
55432             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55433               gt_cv_locale_fr=fr_FR.ISO-8859-1
55434             else
55435               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
55436               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55437                 gt_cv_locale_fr=fr_FR.ISO8859-1
55438               else
55439                 # Test for the HP-UX locale name.
55440                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55441                   gt_cv_locale_fr=fr_FR.iso88591
55442                 else
55443                   # Test for the Solaris 7 locale name.
55444                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55445                     gt_cv_locale_fr=fr
55446                   else
55447                     # None found.
55448                     gt_cv_locale_fr=none
55449                   fi
55450                 fi
55451               fi
55452             fi
55453           fi
55454           ;;
55455       esac
55456     fi
55457     rm -fr conftest*
55458
55459 fi
55460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
55461 $as_echo "$gt_cv_locale_fr" >&6; }
55462   LOCALE_FR=$gt_cv_locale_fr
55463
55464
55465
55466
55467
55468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
55469 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
55470 if ${gt_cv_locale_tr_utf8+:} false; then :
55471   $as_echo_n "(cached) " >&6
55472 else
55473
55474     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55475 /* end confdefs.h.  */
55476
55477 #include <locale.h>
55478 #include <time.h>
55479 #if HAVE_LANGINFO_CODESET
55480 # include <langinfo.h>
55481 #endif
55482 #include <stdlib.h>
55483 #include <string.h>
55484 struct tm t;
55485 char buf[16];
55486 int main () {
55487   /* On BeOS, locales are not implemented in libc.  Rather, libintl
55488      imitates locale dependent behaviour by looking at the environment
55489      variables, and all locales use the UTF-8 encoding.  But BeOS does not
55490      implement the Turkish upper-/lowercase mappings.  Therefore, let this
55491      program return 1 on BeOS.  */
55492   /* Check whether the given locale name is recognized by the system.  */
55493 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
55494   /* On native Windows, setlocale(category, "") looks at the system settings,
55495      not at the environment variables.  Also, when an encoding suffix such
55496      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
55497      category of the locale to "C".  */
55498   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
55499       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
55500     return 1;
55501 #else
55502   if (setlocale (LC_ALL, "") == NULL) return 1;
55503 #endif
55504   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55505      On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
55506      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55507      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55508      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55509      some unit tests fail.  */
55510 #if HAVE_LANGINFO_CODESET
55511   {
55512     const char *cs = nl_langinfo (CODESET);
55513     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55514       return 1;
55515   }
55516 #endif
55517 #ifdef __CYGWIN__
55518   /* On Cygwin, avoid locale names without encoding suffix, because the
55519      locale_charset() function relies on the encoding suffix.  Note that
55520      LC_ALL is set on the command line.  */
55521   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55522 #endif
55523   /* Check whether in the abbreviation of the eighth month, the second
55524      character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
55525      two bytes long, with UTF-8 encoding.  */
55526   t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
55527   if (strftime (buf, sizeof (buf), "%b", &t) < 4
55528       || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
55529     return 1;
55530   /* Check whether the upper-/lowercase mappings are as expected for
55531      Turkish.  */
55532   if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
55533       || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
55534     return 1;
55535   return 0;
55536 }
55537
55538 _ACEOF
55539     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55540   (eval $ac_link) 2>&5
55541   ac_status=$?
55542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55543   test $ac_status = 0; } && test -s conftest$ac_exeext; then
55544       case "$host_os" in
55545         # Handle native Windows specially, because there setlocale() interprets
55546         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
55547         # "fr" or "fra" as "French" or "French_France.1252",
55548         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
55549         # "ja" as "Japanese" or "Japanese_Japan.932",
55550         # and similar.
55551         mingw*)
55552           # Test for the hypothetical native Windows locale name.
55553           if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55554             gt_cv_locale_tr_utf8=Turkish_Turkey.65001
55555           else
55556             # None found.
55557             gt_cv_locale_tr_utf8=none
55558           fi
55559           ;;
55560         *)
55561           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55562           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
55563           # configure script would override the LC_ALL setting. Likewise for
55564           # LC_CTYPE, which is also set at the beginning of the configure script.
55565           # Test for the usual locale name.
55566           if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55567             gt_cv_locale_tr_utf8=tr_TR
55568           else
55569             # Test for the locale name with explicit encoding suffix.
55570             if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55571               gt_cv_locale_tr_utf8=tr_TR.UTF-8
55572             else
55573               # Test for the Solaris 7 locale name.
55574               if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55575                 gt_cv_locale_tr_utf8=tr.UTF-8
55576               else
55577                 # None found.
55578                 gt_cv_locale_tr_utf8=none
55579               fi
55580             fi
55581           fi
55582           ;;
55583       esac
55584     else
55585       gt_cv_locale_tr_utf8=none
55586     fi
55587     rm -fr conftest*
55588
55589 fi
55590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
55591 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
55592   LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
55593
55594
55595
55596
55597
55598
55599
55600
55601
55602
55603
55604
55605
55606      if test $gl_cv_have_include_next = yes; then
55607        gl_cv_next_ctype_h='<'ctype.h'>'
55608      else
55609        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
55610 $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
55611 if ${gl_cv_next_ctype_h+:} false; then :
55612   $as_echo_n "(cached) " >&6
55613 else
55614
55615
55616
55617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55618 /* end confdefs.h.  */
55619 #include <ctype.h>
55620 _ACEOF
55621                 case "$host_os" in
55622     aix*) gl_absname_cpp="$ac_cpp -C" ;;
55623     *)    gl_absname_cpp="$ac_cpp" ;;
55624   esac
55625
55626   case "$host_os" in
55627     mingw*)
55628                                           gl_dirsep_regex='[/\\]'
55629       ;;
55630     *)
55631       gl_dirsep_regex='\/'
55632       ;;
55633   esac
55634       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
55635   gl_header_literal_regex=`echo 'ctype.h' \
55636                            | sed -e "$gl_make_literal_regex_sed"`
55637   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
55638       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
55639       s|^/[^/]|//&|
55640       p
55641       q
55642     }'
55643
55644         gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
55645   sed -n "$gl_absolute_header_sed"`
55646
55647            gl_header=$gl_cv_absolute_ctype_h
55648            gl_cv_next_ctype_h='"'$gl_header'"'
55649
55650
55651 fi
55652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
55653 $as_echo "$gl_cv_next_ctype_h" >&6; }
55654      fi
55655      NEXT_CTYPE_H=$gl_cv_next_ctype_h
55656
55657      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
55658        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
55659        gl_next_as_first_directive='<'ctype.h'>'
55660      else
55661        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
55662        gl_next_as_first_directive=$gl_cv_next_ctype_h
55663      fi
55664      NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive
55665
55666
55667
55668
55669
55670
55671     for gl_func in isblank; do
55672     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
55673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
55674 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
55675 if eval \${$as_gl_Symbol+:} false; then :
55676   $as_echo_n "(cached) " >&6
55677 else
55678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55679 /* end confdefs.h.  */
55680 #include <ctype.h>
55681
55682 int
55683 main ()
55684 {
55685 #undef $gl_func
55686   (void) $gl_func;
55687   ;
55688   return 0;
55689 }
55690 _ACEOF
55691 if ac_fn_c_try_compile "$LINENO"; then :
55692   eval "$as_gl_Symbol=yes"
55693 else
55694   eval "$as_gl_Symbol=no"
55695 fi
55696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55697 fi
55698 eval ac_res=\$$as_gl_Symbol
55699                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
55700 $as_echo "$ac_res" >&6; }
55701     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
55702   cat >>confdefs.h <<_ACEOF
55703 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
55704 _ACEOF
55705
55706                      eval ac_cv_have_decl_$gl_func=yes
55707 fi
55708       done
55709
55710
55711
55712
55713
55714   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
55715     REPLACE_DUP=1
55716   fi
55717
55718
55719   if test $REPLACE_DUP = 1; then
55720
55721
55722
55723
55724
55725
55726
55727
55728   gltests_LIBOBJS="$gltests_LIBOBJS dup.$ac_objext"
55729
55730     :
55731   fi
55732
55733
55734
55735
55736
55737     if test "$GNULIB_DUP" != 1; then
55738         if test "$GNULIB_DUP" = 0; then
55739       GNULIB_DUP=$gl_module_indicator_condition
55740     else
55741       GNULIB_DUP="($GNULIB_DUP || $gl_module_indicator_condition)"
55742     fi
55743   fi
55744
55745
55746
55747
55748
55749 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
55750
55751
55752
55753
55754
55755
55756   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
55757     REPLACE_FDOPEN=1
55758   else
55759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
55760 $as_echo_n "checking whether fdopen sets errno... " >&6; }
55761 if ${gl_cv_func_fdopen_works+:} false; then :
55762   $as_echo_n "(cached) " >&6
55763 else
55764
55765         if test "$cross_compiling" = yes; then :
55766   case "$host_os" in
55767              mingw*) gl_cv_func_fdopen_works="guessing no" ;;
55768              *)      gl_cv_func_fdopen_works="guessing yes" ;;
55769            esac
55770
55771 else
55772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55773 /* end confdefs.h.  */
55774
55775 #include <stdio.h>
55776 #include <errno.h>
55777 int
55778 main (void)
55779 {
55780   FILE *fp;
55781   errno = 0;
55782   fp = fdopen (-1, "r");
55783   if (fp == NULL && errno == 0)
55784     return 1;
55785   return 0;
55786 }
55787 _ACEOF
55788 if ac_fn_c_try_run "$LINENO"; then :
55789   gl_cv_func_fdopen_works=yes
55790 else
55791   gl_cv_func_fdopen_works=no
55792 fi
55793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55794   conftest.$ac_objext conftest.beam conftest.$ac_ext
55795 fi
55796
55797
55798 fi
55799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
55800 $as_echo "$gl_cv_func_fdopen_works" >&6; }
55801     case "$gl_cv_func_fdopen_works" in
55802       *no) REPLACE_FDOPEN=1 ;;
55803     esac
55804   fi
55805
55806   if test $REPLACE_FDOPEN = 1; then
55807
55808
55809
55810
55811
55812
55813
55814
55815   gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
55816
55817
55818   fi
55819
55820
55821
55822
55823
55824     if test "$GNULIB_FDOPEN" != 1; then
55825         if test "$GNULIB_FDOPEN" = 0; then
55826       GNULIB_FDOPEN=$gl_module_indicator_condition
55827     else
55828       GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
55829     fi
55830   fi
55831
55832
55833
55834
55835
55836 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
55837
55838
55839
55840
55841
55842   if test "$enable_acl" != no; then
55843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr with XATTR_NAME_POSIX_ACL macros" >&5
55844 $as_echo_n "checking for getxattr with XATTR_NAME_POSIX_ACL macros... " >&6; }
55845 if ${gl_cv_getxattr_with_posix_acls+:} false; then :
55846   $as_echo_n "(cached) " >&6
55847 else
55848   gl_cv_getxattr_with_posix_acls=no
55849        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55850 /* end confdefs.h.  */
55851 #include <sys/types.h>
55852               #include <sys/xattr.h>
55853               #include <linux/xattr.h>
55854
55855 int
55856 main ()
55857 {
55858 ssize_t a = getxattr (".", XATTR_NAME_POSIX_ACL_ACCESS, 0, 0);
55859               ssize_t b = getxattr (".", XATTR_NAME_POSIX_ACL_DEFAULT, 0, 0);
55860               return a < 0 || b < 0;
55861
55862   ;
55863   return 0;
55864 }
55865 _ACEOF
55866 if ac_fn_c_try_link "$LINENO"; then :
55867   gl_cv_getxattr_with_posix_acls=yes
55868 fi
55869 rm -f core conftest.err conftest.$ac_objext \
55870     conftest$ac_exeext conftest.$ac_ext
55871 fi
55872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_getxattr_with_posix_acls" >&5
55873 $as_echo "$gl_cv_getxattr_with_posix_acls" >&6; }
55874   fi
55875   if test "$gl_cv_getxattr_with_posix_acls" = yes; then
55876     LIB_HAS_ACL=
55877
55878 $as_echo "#define GETXATTR_WITH_POSIX_ACLS 1" >>confdefs.h
55879
55880   else
55881             gl_need_lib_has_acl=1
55882     LIB_HAS_ACL=$LIB_ACL
55883   fi
55884
55885
55886
55887
55888
55889
55890     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
55891     REPLACE_FTELL=1
55892   fi
55893
55894   if test $REPLACE_FTELL = 1; then
55895
55896
55897
55898
55899
55900
55901
55902
55903   gltests_LIBOBJS="$gltests_LIBOBJS ftell.$ac_objext"
55904
55905   fi
55906
55907
55908
55909
55910
55911     if test "$GNULIB_FTELL" != 1; then
55912         if test "$GNULIB_FTELL" = 0; then
55913       GNULIB_FTELL=$gl_module_indicator_condition
55914     else
55915       GNULIB_FTELL="($GNULIB_FTELL || $gl_module_indicator_condition)"
55916     fi
55917   fi
55918
55919
55920
55921
55922
55923 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
55924
55925
55926
55927
55928
55929
55930
55931
55932
55933
55934
55935
55936
55937   if test $ac_cv_have_decl_ftello = no; then
55938     HAVE_DECL_FTELLO=0
55939   fi
55940
55941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
55942 $as_echo_n "checking for ftello... " >&6; }
55943 if ${gl_cv_func_ftello+:} false; then :
55944   $as_echo_n "(cached) " >&6
55945 else
55946
55947       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55948 /* end confdefs.h.  */
55949 #include <stdio.h>
55950 int
55951 main ()
55952 {
55953 ftello (stdin);
55954   ;
55955   return 0;
55956 }
55957 _ACEOF
55958 if ac_fn_c_try_link "$LINENO"; then :
55959   gl_cv_func_ftello=yes
55960 else
55961   gl_cv_func_ftello=no
55962 fi
55963 rm -f core conftest.err conftest.$ac_objext \
55964     conftest$ac_exeext conftest.$ac_ext
55965
55966 fi
55967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
55968 $as_echo "$gl_cv_func_ftello" >&6; }
55969   if test $gl_cv_func_ftello = no; then
55970     HAVE_FTELLO=0
55971   else
55972     if test $WINDOWS_64_BIT_OFF_T = 1; then
55973       REPLACE_FTELLO=1
55974     fi
55975     if test $gl_cv_var_stdin_large_offset = no; then
55976       REPLACE_FTELLO=1
55977     fi
55978     if test $REPLACE_FTELLO = 0; then
55979
55980       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
55981 $as_echo_n "checking whether ftello works... " >&6; }
55982 if ${gl_cv_func_ftello_works+:} false; then :
55983   $as_echo_n "(cached) " >&6
55984 else
55985
55986                               case "$host_os" in
55987                       # Guess no on Solaris.
55988             solaris*) gl_cv_func_ftello_works="guessing no" ;;
55989                       # Guess yes otherwise.
55990             *)        gl_cv_func_ftello_works="guessing yes" ;;
55991           esac
55992           if test "$cross_compiling" = yes; then :
55993   :
55994 else
55995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55996 /* end confdefs.h.  */
55997
55998 #include <stdio.h>
55999 #include <stdlib.h>
56000 #include <string.h>
56001 #define TESTFILE "conftest.tmp"
56002 int
56003 main (void)
56004 {
56005   FILE *fp;
56006
56007   /* Create a file with some contents.  */
56008   fp = fopen (TESTFILE, "w");
56009   if (fp == NULL)
56010     return 70;
56011   if (fwrite ("foogarsh", 1, 8, fp) < 8)
56012     return 71;
56013   if (fclose (fp))
56014     return 72;
56015
56016   /* The file's contents is now "foogarsh".  */
56017
56018   /* Try writing after reading to EOF.  */
56019   fp = fopen (TESTFILE, "r+");
56020   if (fp == NULL)
56021     return 73;
56022   if (fseek (fp, -1, SEEK_END))
56023     return 74;
56024   if (!(getc (fp) == 'h'))
56025     return 1;
56026   if (!(getc (fp) == EOF))
56027     return 2;
56028   if (!(ftell (fp) == 8))
56029     return 3;
56030   if (!(ftell (fp) == 8))
56031     return 4;
56032   if (!(putc ('!', fp) == '!'))
56033     return 5;
56034   if (!(ftell (fp) == 9))
56035     return 6;
56036   if (!(fclose (fp) == 0))
56037     return 7;
56038   fp = fopen (TESTFILE, "r");
56039   if (fp == NULL)
56040     return 75;
56041   {
56042     char buf[10];
56043     if (!(fread (buf, 1, 10, fp) == 9))
56044       return 10;
56045     if (!(memcmp (buf, "foogarsh!", 9) == 0))
56046       return 11;
56047   }
56048   if (!(fclose (fp) == 0))
56049     return 12;
56050
56051   /* The file's contents is now "foogarsh!".  */
56052
56053   return 0;
56054 }
56055 _ACEOF
56056 if ac_fn_c_try_run "$LINENO"; then :
56057   gl_cv_func_ftello_works=yes
56058 else
56059   gl_cv_func_ftello_works=no
56060 fi
56061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56062   conftest.$ac_objext conftest.beam conftest.$ac_ext
56063 fi
56064
56065
56066 fi
56067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
56068 $as_echo "$gl_cv_func_ftello_works" >&6; }
56069       case "$gl_cv_func_ftello_works" in
56070         *yes) ;;
56071         *)
56072           REPLACE_FTELLO=1
56073
56074 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
56075
56076           ;;
56077       esac
56078     fi
56079   fi
56080
56081   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
56082
56083
56084
56085
56086
56087
56088
56089
56090   gltests_LIBOBJS="$gltests_LIBOBJS ftello.$ac_objext"
56091
56092
56093       for ac_func in _ftelli64
56094 do :
56095   ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
56096 if test "x$ac_cv_func__ftelli64" = xyes; then :
56097   cat >>confdefs.h <<_ACEOF
56098 #define HAVE__FTELLI64 1
56099 _ACEOF
56100
56101 fi
56102 done
56103
56104
56105   fi
56106
56107
56108
56109
56110
56111     if test "$GNULIB_FTELLO" != 1; then
56112         if test "$GNULIB_FTELLO" = 0; then
56113       GNULIB_FTELLO=$gl_module_indicator_condition
56114     else
56115       GNULIB_FTELLO="($GNULIB_FTELLO || $gl_module_indicator_condition)"
56116     fi
56117   fi
56118
56119
56120
56121
56122
56123 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
56124
56125
56126
56127
56128
56129
56130
56131
56132
56133   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
56134   *yes,yes) ;;
56135   *)
56136         REPLACE_GETCWD=1
56137     ;;
56138   esac
56139
56140   if test $REPLACE_GETCWD = 1; then
56141
56142
56143
56144
56145
56146
56147
56148
56149   gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext"
56150
56151   fi
56152
56153
56154
56155
56156
56157     if test "$GNULIB_GETCWD" != 1; then
56158         if test "$GNULIB_GETCWD" = 0; then
56159       GNULIB_GETCWD=$gl_module_indicator_condition
56160     else
56161       GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)"
56162     fi
56163   fi
56164
56165
56166
56167
56168
56169 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
56170
56171
56172
56173
56174
56175
56176   for ac_func in getpagesize
56177 do :
56178   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
56179 if test "x$ac_cv_func_getpagesize" = xyes; then :
56180   cat >>confdefs.h <<_ACEOF
56181 #define HAVE_GETPAGESIZE 1
56182 _ACEOF
56183
56184 fi
56185 done
56186
56187   if test $ac_cv_func_getpagesize = no; then
56188     HAVE_GETPAGESIZE=0
56189     for ac_header in OS.h
56190 do :
56191   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
56192 if test "x$ac_cv_header_OS_h" = xyes; then :
56193   cat >>confdefs.h <<_ACEOF
56194 #define HAVE_OS_H 1
56195 _ACEOF
56196
56197 fi
56198
56199 done
56200
56201     if test $ac_cv_header_OS_h = yes; then
56202       HAVE_OS_H=1
56203     fi
56204     for ac_header in sys/param.h
56205 do :
56206   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
56207 if test "x$ac_cv_header_sys_param_h" = xyes; then :
56208   cat >>confdefs.h <<_ACEOF
56209 #define HAVE_SYS_PARAM_H 1
56210 _ACEOF
56211
56212 fi
56213
56214 done
56215
56216     if test $ac_cv_header_sys_param_h = yes; then
56217       HAVE_SYS_PARAM_H=1
56218     fi
56219   fi
56220   case "$host_os" in
56221     mingw*)
56222       REPLACE_GETPAGESIZE=1
56223       ;;
56224   esac
56225       ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
56226 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
56227
56228 else
56229   HAVE_DECL_GETPAGESIZE=0
56230 fi
56231
56232
56233   if test $REPLACE_GETPAGESIZE = 1; then
56234
56235
56236
56237
56238
56239
56240
56241
56242   gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
56243
56244   fi
56245
56246
56247
56248
56249
56250     if test "$GNULIB_GETPAGESIZE" != 1; then
56251         if test "$GNULIB_GETPAGESIZE" = 0; then
56252       GNULIB_GETPAGESIZE=$gl_module_indicator_condition
56253     else
56254       GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
56255     fi
56256   fi
56257
56258
56259
56260
56261
56262 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
56263
56264
56265
56266
56267
56268
56269
56270
56271   PRIPTR_PREFIX=
56272   if test -n "$STDINT_H"; then
56273         PRIPTR_PREFIX='"l"'
56274   else
56275         for glpfx in '' l ll I64; do
56276       case $glpfx in
56277         '')  gltype1='int';;
56278         l)   gltype1='long int';;
56279         ll)  gltype1='long long int';;
56280         I64) gltype1='__int64';;
56281       esac
56282       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56283 /* end confdefs.h.  */
56284 #include <stdint.h>
56285            extern intptr_t foo;
56286            extern $gltype1 foo;
56287 int
56288 main ()
56289 {
56290
56291   ;
56292   return 0;
56293 }
56294 _ACEOF
56295 if ac_fn_c_try_compile "$LINENO"; then :
56296   PRIPTR_PREFIX='"'$glpfx'"'
56297 fi
56298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56299       test -n "$PRIPTR_PREFIX" && break
56300     done
56301   fi
56302
56303
56304
56305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
56306 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
56307 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
56308   $as_echo_n "(cached) " >&6
56309 else
56310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56311 /* end confdefs.h.  */
56312 /* Work also in C++ mode.  */
56313             #define __STDC_LIMIT_MACROS 1
56314
56315             /* Work if build is not clean.  */
56316             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
56317
56318             #include <limits.h>
56319             #if HAVE_STDINT_H
56320              #include <stdint.h>
56321             #endif
56322
56323             #if defined INT32_MAX && defined INTMAX_MAX
56324              #define CONDITION (INT32_MAX < INTMAX_MAX)
56325             #elif HAVE_LONG_LONG_INT
56326              #define CONDITION (sizeof (int) < sizeof (long long int))
56327             #else
56328              #define CONDITION 0
56329             #endif
56330             int test[CONDITION ? 1 : -1];
56331 int
56332 main ()
56333 {
56334
56335   ;
56336   return 0;
56337 }
56338 _ACEOF
56339 if ac_fn_c_try_compile "$LINENO"; then :
56340   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
56341 else
56342   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
56343 fi
56344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56345 fi
56346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
56347 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
56348   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
56349     INT32_MAX_LT_INTMAX_MAX=1;
56350   else
56351     INT32_MAX_LT_INTMAX_MAX=0;
56352   fi
56353
56354
56355   if test $APPLE_UNIVERSAL_BUILD = 0; then
56356
56357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
56358 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
56359 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
56360   $as_echo_n "(cached) " >&6
56361 else
56362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56363 /* end confdefs.h.  */
56364 /* Work also in C++ mode.  */
56365             #define __STDC_LIMIT_MACROS 1
56366
56367             /* Work if build is not clean.  */
56368             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
56369
56370             #include <limits.h>
56371             #if HAVE_STDINT_H
56372              #include <stdint.h>
56373             #endif
56374
56375             #if defined INT64_MAX
56376              #define CONDITION (INT64_MAX == LONG_MAX)
56377             #elif HAVE_LONG_LONG_INT
56378              #define CONDITION (sizeof (long long int) == sizeof (long int))
56379             #else
56380              #define CONDITION 0
56381             #endif
56382             int test[CONDITION ? 1 : -1];
56383 int
56384 main ()
56385 {
56386
56387   ;
56388   return 0;
56389 }
56390 _ACEOF
56391 if ac_fn_c_try_compile "$LINENO"; then :
56392   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
56393 else
56394   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
56395 fi
56396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56397 fi
56398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
56399 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
56400   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
56401     INT64_MAX_EQ_LONG_MAX=1;
56402   else
56403     INT64_MAX_EQ_LONG_MAX=0;
56404   fi
56405
56406
56407   else
56408     INT64_MAX_EQ_LONG_MAX=-1
56409   fi
56410
56411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
56412 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
56413 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
56414   $as_echo_n "(cached) " >&6
56415 else
56416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56417 /* end confdefs.h.  */
56418 /* Work also in C++ mode.  */
56419             #define __STDC_LIMIT_MACROS 1
56420
56421             /* Work if build is not clean.  */
56422             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
56423
56424             #include <limits.h>
56425             #if HAVE_STDINT_H
56426              #include <stdint.h>
56427             #endif
56428
56429             #if defined UINT32_MAX && defined UINTMAX_MAX
56430              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
56431             #elif HAVE_LONG_LONG_INT
56432              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
56433             #else
56434              #define CONDITION 0
56435             #endif
56436             int test[CONDITION ? 1 : -1];
56437 int
56438 main ()
56439 {
56440
56441   ;
56442   return 0;
56443 }
56444 _ACEOF
56445 if ac_fn_c_try_compile "$LINENO"; then :
56446   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
56447 else
56448   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
56449 fi
56450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56451 fi
56452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
56453 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
56454   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
56455     UINT32_MAX_LT_UINTMAX_MAX=1;
56456   else
56457     UINT32_MAX_LT_UINTMAX_MAX=0;
56458   fi
56459
56460
56461   if test $APPLE_UNIVERSAL_BUILD = 0; then
56462
56463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
56464 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
56465 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
56466   $as_echo_n "(cached) " >&6
56467 else
56468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56469 /* end confdefs.h.  */
56470 /* Work also in C++ mode.  */
56471             #define __STDC_LIMIT_MACROS 1
56472
56473             /* Work if build is not clean.  */
56474             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
56475
56476             #include <limits.h>
56477             #if HAVE_STDINT_H
56478              #include <stdint.h>
56479             #endif
56480
56481             #if defined UINT64_MAX
56482              #define CONDITION (UINT64_MAX == ULONG_MAX)
56483             #elif HAVE_LONG_LONG_INT
56484              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
56485             #else
56486              #define CONDITION 0
56487             #endif
56488             int test[CONDITION ? 1 : -1];
56489 int
56490 main ()
56491 {
56492
56493   ;
56494   return 0;
56495 }
56496 _ACEOF
56497 if ac_fn_c_try_compile "$LINENO"; then :
56498   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
56499 else
56500   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
56501 fi
56502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56503 fi
56504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
56505 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
56506   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
56507     UINT64_MAX_EQ_ULONG_MAX=1;
56508   else
56509     UINT64_MAX_EQ_ULONG_MAX=0;
56510   fi
56511
56512
56513   else
56514     UINT64_MAX_EQ_ULONG_MAX=-1
56515   fi
56516
56517
56518
56519
56520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
56521 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
56522 if ${gl_cv_cc_float_expbit0+:} false; then :
56523   $as_echo_n "(cached) " >&6
56524 else
56525
56526       if test "$cross_compiling" = yes; then :
56527   gl_cv_cc_float_expbit0="word 0 bit 23"
56528 else
56529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56530 /* end confdefs.h.  */
56531
56532 #include <float.h>
56533 #include <stddef.h>
56534 #include <stdio.h>
56535 #include <string.h>
56536 #define NWORDS \
56537   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
56538 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
56539 static unsigned int ored_words[NWORDS];
56540 static unsigned int anded_words[NWORDS];
56541 static void add_to_ored_words (float x)
56542 {
56543   memory_float m;
56544   size_t i;
56545   /* Clear it first, in case
56546      sizeof (float) < sizeof (memory_float).  */
56547   memset (&m, 0, sizeof (memory_float));
56548   m.value = x;
56549   for (i = 0; i < NWORDS; i++)
56550     {
56551       ored_words[i] |= m.word[i];
56552       anded_words[i] &= m.word[i];
56553     }
56554 }
56555 int main ()
56556 {
56557   size_t j;
56558   FILE *fp = fopen ("conftest.out", "w");
56559   if (fp == NULL)
56560     return 1;
56561   for (j = 0; j < NWORDS; j++)
56562     anded_words[j] = ~ (unsigned int) 0;
56563   add_to_ored_words (0.25f);
56564   add_to_ored_words (0.5f);
56565   add_to_ored_words (1.0f);
56566   add_to_ored_words (2.0f);
56567   add_to_ored_words (4.0f);
56568   /* Remove bits that are common (e.g. if representation of the first mantissa
56569      bit is explicit).  */
56570   for (j = 0; j < NWORDS; j++)
56571     ored_words[j] &= ~anded_words[j];
56572   /* Now find the nonzero word.  */
56573   for (j = 0; j < NWORDS; j++)
56574     if (ored_words[j] != 0)
56575       break;
56576   if (j < NWORDS)
56577     {
56578       size_t i;
56579       for (i = j + 1; i < NWORDS; i++)
56580         if (ored_words[i] != 0)
56581           {
56582             fprintf (fp, "unknown");
56583             return (fclose (fp) != 0);
56584           }
56585       for (i = 0; ; i++)
56586         if ((ored_words[j] >> i) & 1)
56587           {
56588             fprintf (fp, "word %d bit %d", (int) j, (int) i);
56589             return (fclose (fp) != 0);
56590           }
56591     }
56592   fprintf (fp, "unknown");
56593   return (fclose (fp) != 0);
56594 }
56595
56596 _ACEOF
56597 if ac_fn_c_try_run "$LINENO"; then :
56598   gl_cv_cc_float_expbit0=`cat conftest.out`
56599 else
56600   gl_cv_cc_float_expbit0="unknown"
56601 fi
56602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56603   conftest.$ac_objext conftest.beam conftest.$ac_ext
56604 fi
56605
56606       rm -f conftest.out
56607
56608 fi
56609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
56610 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
56611   case "$gl_cv_cc_float_expbit0" in
56612     word*bit*)
56613       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
56614       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
56615
56616 cat >>confdefs.h <<_ACEOF
56617 #define FLT_EXPBIT0_WORD $word
56618 _ACEOF
56619
56620
56621 cat >>confdefs.h <<_ACEOF
56622 #define FLT_EXPBIT0_BIT $bit
56623 _ACEOF
56624
56625       ;;
56626   esac
56627
56628
56629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
56630 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
56631 if ${gl_cv_cc_double_expbit0+:} false; then :
56632   $as_echo_n "(cached) " >&6
56633 else
56634
56635       if test "$cross_compiling" = yes; then :
56636
56637                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56638 /* end confdefs.h.  */
56639
56640 #if defined arm || defined __arm || defined __arm__
56641   mixed_endianness
56642 #endif
56643
56644 _ACEOF
56645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56646   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
56647   gl_cv_cc_double_expbit0="unknown"
56648 else
56649
56650                                                          :
56651 if ${ac_cv_c_bigendian+:} false; then :
56652   $as_echo_n "(cached) " >&6
56653 else
56654   ac_cv_c_bigendian=unknown
56655     # See if we're dealing with a universal compiler.
56656     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56657 /* end confdefs.h.  */
56658 #ifndef __APPLE_CC__
56659                not a universal capable compiler
56660              #endif
56661              typedef int dummy;
56662
56663 _ACEOF
56664 if ac_fn_c_try_compile "$LINENO"; then :
56665
56666         # Check for potential -arch flags.  It is not universal unless
56667         # there are at least two -arch flags with different values.
56668         ac_arch=
56669         ac_prev=
56670         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
56671          if test -n "$ac_prev"; then
56672            case $ac_word in
56673              i?86 | x86_64 | ppc | ppc64)
56674                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
56675                  ac_arch=$ac_word
56676                else
56677                  ac_cv_c_bigendian=universal
56678                  break
56679                fi
56680                ;;
56681            esac
56682            ac_prev=
56683          elif test "x$ac_word" = "x-arch"; then
56684            ac_prev=arch
56685          fi
56686        done
56687 fi
56688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56689     if test $ac_cv_c_bigendian = unknown; then
56690       # See if sys/param.h defines the BYTE_ORDER macro.
56691       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56692 /* end confdefs.h.  */
56693 #include <sys/types.h>
56694              #include <sys/param.h>
56695
56696 int
56697 main ()
56698 {
56699 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
56700                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
56701                      && LITTLE_ENDIAN)
56702               bogus endian macros
56703              #endif
56704
56705   ;
56706   return 0;
56707 }
56708 _ACEOF
56709 if ac_fn_c_try_compile "$LINENO"; then :
56710   # It does; now see whether it defined to BIG_ENDIAN or not.
56711          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56712 /* end confdefs.h.  */
56713 #include <sys/types.h>
56714                 #include <sys/param.h>
56715
56716 int
56717 main ()
56718 {
56719 #if BYTE_ORDER != BIG_ENDIAN
56720                  not big endian
56721                 #endif
56722
56723   ;
56724   return 0;
56725 }
56726 _ACEOF
56727 if ac_fn_c_try_compile "$LINENO"; then :
56728   ac_cv_c_bigendian=yes
56729 else
56730   ac_cv_c_bigendian=no
56731 fi
56732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56733 fi
56734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56735     fi
56736     if test $ac_cv_c_bigendian = unknown; then
56737       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
56738       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56739 /* end confdefs.h.  */
56740 #include <limits.h>
56741
56742 int
56743 main ()
56744 {
56745 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
56746               bogus endian macros
56747              #endif
56748
56749   ;
56750   return 0;
56751 }
56752 _ACEOF
56753 if ac_fn_c_try_compile "$LINENO"; then :
56754   # It does; now see whether it defined to _BIG_ENDIAN or not.
56755          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56756 /* end confdefs.h.  */
56757 #include <limits.h>
56758
56759 int
56760 main ()
56761 {
56762 #ifndef _BIG_ENDIAN
56763                  not big endian
56764                 #endif
56765
56766   ;
56767   return 0;
56768 }
56769 _ACEOF
56770 if ac_fn_c_try_compile "$LINENO"; then :
56771   ac_cv_c_bigendian=yes
56772 else
56773   ac_cv_c_bigendian=no
56774 fi
56775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56776 fi
56777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56778     fi
56779     if test $ac_cv_c_bigendian = unknown; then
56780       # Compile a test program.
56781       if test "$cross_compiling" = yes; then :
56782   # Try to guess by grepping values from an object file.
56783          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56784 /* end confdefs.h.  */
56785 short int ascii_mm[] =
56786                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
56787                 short int ascii_ii[] =
56788                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
56789                 int use_ascii (int i) {
56790                   return ascii_mm[i] + ascii_ii[i];
56791                 }
56792                 short int ebcdic_ii[] =
56793                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
56794                 short int ebcdic_mm[] =
56795                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
56796                 int use_ebcdic (int i) {
56797                   return ebcdic_mm[i] + ebcdic_ii[i];
56798                 }
56799                 extern int foo;
56800
56801 int
56802 main ()
56803 {
56804 return use_ascii (foo) == use_ebcdic (foo);
56805   ;
56806   return 0;
56807 }
56808 _ACEOF
56809 if ac_fn_c_try_compile "$LINENO"; then :
56810   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
56811               ac_cv_c_bigendian=yes
56812             fi
56813             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
56814               if test "$ac_cv_c_bigendian" = unknown; then
56815                 ac_cv_c_bigendian=no
56816               else
56817                 # finding both strings is unlikely to happen, but who knows?
56818                 ac_cv_c_bigendian=unknown
56819               fi
56820             fi
56821 fi
56822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56823 else
56824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56825 /* end confdefs.h.  */
56826 $ac_includes_default
56827 int
56828 main ()
56829 {
56830
56831              /* Are we little or big endian?  From Harbison&Steele.  */
56832              union
56833              {
56834                long int l;
56835                char c[sizeof (long int)];
56836              } u;
56837              u.l = 1;
56838              return u.c[sizeof (long int) - 1] == 1;
56839
56840   ;
56841   return 0;
56842 }
56843 _ACEOF
56844 if ac_fn_c_try_run "$LINENO"; then :
56845   ac_cv_c_bigendian=no
56846 else
56847   ac_cv_c_bigendian=yes
56848 fi
56849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56850   conftest.$ac_objext conftest.beam conftest.$ac_ext
56851 fi
56852
56853     fi
56854 fi
56855 :
56856  case $ac_cv_c_bigendian in #(
56857    yes)
56858      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
56859    no)
56860      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
56861    universal)
56862
56863 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
56864
56865      ;; #(
56866    *)
56867      gl_cv_cc_double_expbit0="unknown" ;;
56868  esac
56869
56870
56871 fi
56872 rm -f conftest*
56873
56874
56875 else
56876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56877 /* end confdefs.h.  */
56878
56879 #include <float.h>
56880 #include <stddef.h>
56881 #include <stdio.h>
56882 #include <string.h>
56883 #define NWORDS \
56884   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
56885 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
56886 static unsigned int ored_words[NWORDS];
56887 static unsigned int anded_words[NWORDS];
56888 static void add_to_ored_words (double x)
56889 {
56890   memory_double m;
56891   size_t i;
56892   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
56893   memset (&m, 0, sizeof (memory_double));
56894   m.value = x;
56895   for (i = 0; i < NWORDS; i++)
56896     {
56897       ored_words[i] |= m.word[i];
56898       anded_words[i] &= m.word[i];
56899     }
56900 }
56901 int main ()
56902 {
56903   size_t j;
56904   FILE *fp = fopen ("conftest.out", "w");
56905   if (fp == NULL)
56906     return 1;
56907   for (j = 0; j < NWORDS; j++)
56908     anded_words[j] = ~ (unsigned int) 0;
56909   add_to_ored_words (0.25);
56910   add_to_ored_words (0.5);
56911   add_to_ored_words (1.0);
56912   add_to_ored_words (2.0);
56913   add_to_ored_words (4.0);
56914   /* Remove bits that are common (e.g. if representation of the first mantissa
56915      bit is explicit).  */
56916   for (j = 0; j < NWORDS; j++)
56917     ored_words[j] &= ~anded_words[j];
56918   /* Now find the nonzero word.  */
56919   for (j = 0; j < NWORDS; j++)
56920     if (ored_words[j] != 0)
56921       break;
56922   if (j < NWORDS)
56923     {
56924       size_t i;
56925       for (i = j + 1; i < NWORDS; i++)
56926         if (ored_words[i] != 0)
56927           {
56928             fprintf (fp, "unknown");
56929             return (fclose (fp) != 0);
56930           }
56931       for (i = 0; ; i++)
56932         if ((ored_words[j] >> i) & 1)
56933           {
56934             fprintf (fp, "word %d bit %d", (int) j, (int) i);
56935             return (fclose (fp) != 0);
56936           }
56937     }
56938   fprintf (fp, "unknown");
56939   return (fclose (fp) != 0);
56940 }
56941
56942 _ACEOF
56943 if ac_fn_c_try_run "$LINENO"; then :
56944   gl_cv_cc_double_expbit0=`cat conftest.out`
56945 else
56946   gl_cv_cc_double_expbit0="unknown"
56947 fi
56948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56949   conftest.$ac_objext conftest.beam conftest.$ac_ext
56950 fi
56951
56952       rm -f conftest.out
56953
56954 fi
56955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
56956 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
56957   case "$gl_cv_cc_double_expbit0" in
56958     word*bit*)
56959       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
56960       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
56961
56962 cat >>confdefs.h <<_ACEOF
56963 #define DBL_EXPBIT0_WORD $word
56964 _ACEOF
56965
56966
56967 cat >>confdefs.h <<_ACEOF
56968 #define DBL_EXPBIT0_BIT $bit
56969 _ACEOF
56970
56971       ;;
56972   esac
56973
56974
56975
56976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
56977 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
56978 if ${gl_cv_cc_long_double_expbit0+:} false; then :
56979   $as_echo_n "(cached) " >&6
56980 else
56981
56982       if test "$cross_compiling" = yes; then :
56983
56984                               gl_cv_cc_long_double_expbit0="unknown"
56985
56986 else
56987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56988 /* end confdefs.h.  */
56989
56990 #include <float.h>
56991 #include <stddef.h>
56992 #include <stdio.h>
56993 #include <string.h>
56994 #define NWORDS \
56995   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
56996 typedef union { long double value; unsigned int word[NWORDS]; }
56997         memory_long_double;
56998 static unsigned int ored_words[NWORDS];
56999 static unsigned int anded_words[NWORDS];
57000 static void add_to_ored_words (long double x)
57001 {
57002   memory_long_double m;
57003   size_t i;
57004   /* Clear it first, in case
57005      sizeof (long double) < sizeof (memory_long_double).  */
57006   memset (&m, 0, sizeof (memory_long_double));
57007   m.value = x;
57008   for (i = 0; i < NWORDS; i++)
57009     {
57010       ored_words[i] |= m.word[i];
57011       anded_words[i] &= m.word[i];
57012     }
57013 }
57014 int main ()
57015 {
57016   size_t j;
57017   FILE *fp = fopen ("conftest.out", "w");
57018   if (fp == NULL)
57019     return 1;
57020   for (j = 0; j < NWORDS; j++)
57021     anded_words[j] = ~ (unsigned int) 0;
57022   add_to_ored_words (0.25L);
57023   add_to_ored_words (0.5L);
57024   add_to_ored_words (1.0L);
57025   add_to_ored_words (2.0L);
57026   add_to_ored_words (4.0L);
57027   /* Remove bits that are common (e.g. if representation of the first mantissa
57028      bit is explicit).  */
57029   for (j = 0; j < NWORDS; j++)
57030     ored_words[j] &= ~anded_words[j];
57031   /* Now find the nonzero word.  */
57032   for (j = 0; j < NWORDS; j++)
57033     if (ored_words[j] != 0)
57034       break;
57035   if (j < NWORDS)
57036     {
57037       size_t i;
57038       for (i = j + 1; i < NWORDS; i++)
57039         if (ored_words[i] != 0)
57040           {
57041             fprintf (fp, "unknown");
57042             return (fclose (fp) != 0);
57043           }
57044       for (i = 0; ; i++)
57045         if ((ored_words[j] >> i) & 1)
57046           {
57047             fprintf (fp, "word %d bit %d", (int) j, (int) i);
57048             return (fclose (fp) != 0);
57049           }
57050     }
57051   fprintf (fp, "unknown");
57052   return (fclose (fp) != 0);
57053 }
57054
57055 _ACEOF
57056 if ac_fn_c_try_run "$LINENO"; then :
57057   gl_cv_cc_long_double_expbit0=`cat conftest.out`
57058 else
57059   gl_cv_cc_long_double_expbit0="unknown"
57060 fi
57061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57062   conftest.$ac_objext conftest.beam conftest.$ac_ext
57063 fi
57064
57065       rm -f conftest.out
57066
57067 fi
57068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
57069 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
57070   case "$gl_cv_cc_long_double_expbit0" in
57071     word*bit*)
57072       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57073       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
57074
57075 cat >>confdefs.h <<_ACEOF
57076 #define LDBL_EXPBIT0_WORD $word
57077 _ACEOF
57078
57079
57080 cat >>confdefs.h <<_ACEOF
57081 #define LDBL_EXPBIT0_BIT $bit
57082 _ACEOF
57083
57084       ;;
57085   esac
57086
57087
57088
57089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
57090 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
57091 if ${gl_cv_cc_float_expbit0+:} false; then :
57092   $as_echo_n "(cached) " >&6
57093 else
57094
57095       if test "$cross_compiling" = yes; then :
57096   gl_cv_cc_float_expbit0="word 0 bit 23"
57097 else
57098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57099 /* end confdefs.h.  */
57100
57101 #include <float.h>
57102 #include <stddef.h>
57103 #include <stdio.h>
57104 #include <string.h>
57105 #define NWORDS \
57106   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
57107 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
57108 static unsigned int ored_words[NWORDS];
57109 static unsigned int anded_words[NWORDS];
57110 static void add_to_ored_words (float x)
57111 {
57112   memory_float m;
57113   size_t i;
57114   /* Clear it first, in case
57115      sizeof (float) < sizeof (memory_float).  */
57116   memset (&m, 0, sizeof (memory_float));
57117   m.value = x;
57118   for (i = 0; i < NWORDS; i++)
57119     {
57120       ored_words[i] |= m.word[i];
57121       anded_words[i] &= m.word[i];
57122     }
57123 }
57124 int main ()
57125 {
57126   size_t j;
57127   FILE *fp = fopen ("conftest.out", "w");
57128   if (fp == NULL)
57129     return 1;
57130   for (j = 0; j < NWORDS; j++)
57131     anded_words[j] = ~ (unsigned int) 0;
57132   add_to_ored_words (0.25f);
57133   add_to_ored_words (0.5f);
57134   add_to_ored_words (1.0f);
57135   add_to_ored_words (2.0f);
57136   add_to_ored_words (4.0f);
57137   /* Remove bits that are common (e.g. if representation of the first mantissa
57138      bit is explicit).  */
57139   for (j = 0; j < NWORDS; j++)
57140     ored_words[j] &= ~anded_words[j];
57141   /* Now find the nonzero word.  */
57142   for (j = 0; j < NWORDS; j++)
57143     if (ored_words[j] != 0)
57144       break;
57145   if (j < NWORDS)
57146     {
57147       size_t i;
57148       for (i = j + 1; i < NWORDS; i++)
57149         if (ored_words[i] != 0)
57150           {
57151             fprintf (fp, "unknown");
57152             return (fclose (fp) != 0);
57153           }
57154       for (i = 0; ; i++)
57155         if ((ored_words[j] >> i) & 1)
57156           {
57157             fprintf (fp, "word %d bit %d", (int) j, (int) i);
57158             return (fclose (fp) != 0);
57159           }
57160     }
57161   fprintf (fp, "unknown");
57162   return (fclose (fp) != 0);
57163 }
57164
57165 _ACEOF
57166 if ac_fn_c_try_run "$LINENO"; then :
57167   gl_cv_cc_float_expbit0=`cat conftest.out`
57168 else
57169   gl_cv_cc_float_expbit0="unknown"
57170 fi
57171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57172   conftest.$ac_objext conftest.beam conftest.$ac_ext
57173 fi
57174
57175       rm -f conftest.out
57176
57177 fi
57178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
57179 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
57180   case "$gl_cv_cc_float_expbit0" in
57181     word*bit*)
57182       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57183       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
57184
57185 cat >>confdefs.h <<_ACEOF
57186 #define FLT_EXPBIT0_WORD $word
57187 _ACEOF
57188
57189
57190 cat >>confdefs.h <<_ACEOF
57191 #define FLT_EXPBIT0_BIT $bit
57192 _ACEOF
57193
57194       ;;
57195   esac
57196
57197
57198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
57199 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
57200 if ${gl_cv_cc_double_expbit0+:} false; then :
57201   $as_echo_n "(cached) " >&6
57202 else
57203
57204       if test "$cross_compiling" = yes; then :
57205
57206                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57207 /* end confdefs.h.  */
57208
57209 #if defined arm || defined __arm || defined __arm__
57210   mixed_endianness
57211 #endif
57212
57213 _ACEOF
57214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57215   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
57216   gl_cv_cc_double_expbit0="unknown"
57217 else
57218
57219                                                          :
57220 if ${ac_cv_c_bigendian+:} false; then :
57221   $as_echo_n "(cached) " >&6
57222 else
57223   ac_cv_c_bigendian=unknown
57224     # See if we're dealing with a universal compiler.
57225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57226 /* end confdefs.h.  */
57227 #ifndef __APPLE_CC__
57228                not a universal capable compiler
57229              #endif
57230              typedef int dummy;
57231
57232 _ACEOF
57233 if ac_fn_c_try_compile "$LINENO"; then :
57234
57235         # Check for potential -arch flags.  It is not universal unless
57236         # there are at least two -arch flags with different values.
57237         ac_arch=
57238         ac_prev=
57239         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
57240          if test -n "$ac_prev"; then
57241            case $ac_word in
57242              i?86 | x86_64 | ppc | ppc64)
57243                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
57244                  ac_arch=$ac_word
57245                else
57246                  ac_cv_c_bigendian=universal
57247                  break
57248                fi
57249                ;;
57250            esac
57251            ac_prev=
57252          elif test "x$ac_word" = "x-arch"; then
57253            ac_prev=arch
57254          fi
57255        done
57256 fi
57257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57258     if test $ac_cv_c_bigendian = unknown; then
57259       # See if sys/param.h defines the BYTE_ORDER macro.
57260       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57261 /* end confdefs.h.  */
57262 #include <sys/types.h>
57263              #include <sys/param.h>
57264
57265 int
57266 main ()
57267 {
57268 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
57269                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
57270                      && LITTLE_ENDIAN)
57271               bogus endian macros
57272              #endif
57273
57274   ;
57275   return 0;
57276 }
57277 _ACEOF
57278 if ac_fn_c_try_compile "$LINENO"; then :
57279   # It does; now see whether it defined to BIG_ENDIAN or not.
57280          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57281 /* end confdefs.h.  */
57282 #include <sys/types.h>
57283                 #include <sys/param.h>
57284
57285 int
57286 main ()
57287 {
57288 #if BYTE_ORDER != BIG_ENDIAN
57289                  not big endian
57290                 #endif
57291
57292   ;
57293   return 0;
57294 }
57295 _ACEOF
57296 if ac_fn_c_try_compile "$LINENO"; then :
57297   ac_cv_c_bigendian=yes
57298 else
57299   ac_cv_c_bigendian=no
57300 fi
57301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57302 fi
57303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57304     fi
57305     if test $ac_cv_c_bigendian = unknown; then
57306       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57308 /* end confdefs.h.  */
57309 #include <limits.h>
57310
57311 int
57312 main ()
57313 {
57314 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
57315               bogus endian macros
57316              #endif
57317
57318   ;
57319   return 0;
57320 }
57321 _ACEOF
57322 if ac_fn_c_try_compile "$LINENO"; then :
57323   # It does; now see whether it defined to _BIG_ENDIAN or not.
57324          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57325 /* end confdefs.h.  */
57326 #include <limits.h>
57327
57328 int
57329 main ()
57330 {
57331 #ifndef _BIG_ENDIAN
57332                  not big endian
57333                 #endif
57334
57335   ;
57336   return 0;
57337 }
57338 _ACEOF
57339 if ac_fn_c_try_compile "$LINENO"; then :
57340   ac_cv_c_bigendian=yes
57341 else
57342   ac_cv_c_bigendian=no
57343 fi
57344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57345 fi
57346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57347     fi
57348     if test $ac_cv_c_bigendian = unknown; then
57349       # Compile a test program.
57350       if test "$cross_compiling" = yes; then :
57351   # Try to guess by grepping values from an object file.
57352          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57353 /* end confdefs.h.  */
57354 short int ascii_mm[] =
57355                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
57356                 short int ascii_ii[] =
57357                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
57358                 int use_ascii (int i) {
57359                   return ascii_mm[i] + ascii_ii[i];
57360                 }
57361                 short int ebcdic_ii[] =
57362                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
57363                 short int ebcdic_mm[] =
57364                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
57365                 int use_ebcdic (int i) {
57366                   return ebcdic_mm[i] + ebcdic_ii[i];
57367                 }
57368                 extern int foo;
57369
57370 int
57371 main ()
57372 {
57373 return use_ascii (foo) == use_ebcdic (foo);
57374   ;
57375   return 0;
57376 }
57377 _ACEOF
57378 if ac_fn_c_try_compile "$LINENO"; then :
57379   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
57380               ac_cv_c_bigendian=yes
57381             fi
57382             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
57383               if test "$ac_cv_c_bigendian" = unknown; then
57384                 ac_cv_c_bigendian=no
57385               else
57386                 # finding both strings is unlikely to happen, but who knows?
57387                 ac_cv_c_bigendian=unknown
57388               fi
57389             fi
57390 fi
57391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57392 else
57393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57394 /* end confdefs.h.  */
57395 $ac_includes_default
57396 int
57397 main ()
57398 {
57399
57400              /* Are we little or big endian?  From Harbison&Steele.  */
57401              union
57402              {
57403                long int l;
57404                char c[sizeof (long int)];
57405              } u;
57406              u.l = 1;
57407              return u.c[sizeof (long int) - 1] == 1;
57408
57409   ;
57410   return 0;
57411 }
57412 _ACEOF
57413 if ac_fn_c_try_run "$LINENO"; then :
57414   ac_cv_c_bigendian=no
57415 else
57416   ac_cv_c_bigendian=yes
57417 fi
57418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57419   conftest.$ac_objext conftest.beam conftest.$ac_ext
57420 fi
57421
57422     fi
57423 fi
57424 :
57425  case $ac_cv_c_bigendian in #(
57426    yes)
57427      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
57428    no)
57429      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
57430    universal)
57431
57432 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
57433
57434      ;; #(
57435    *)
57436      gl_cv_cc_double_expbit0="unknown" ;;
57437  esac
57438
57439
57440 fi
57441 rm -f conftest*
57442
57443
57444 else
57445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57446 /* end confdefs.h.  */
57447
57448 #include <float.h>
57449 #include <stddef.h>
57450 #include <stdio.h>
57451 #include <string.h>
57452 #define NWORDS \
57453   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
57454 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
57455 static unsigned int ored_words[NWORDS];
57456 static unsigned int anded_words[NWORDS];
57457 static void add_to_ored_words (double x)
57458 {
57459   memory_double m;
57460   size_t i;
57461   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
57462   memset (&m, 0, sizeof (memory_double));
57463   m.value = x;
57464   for (i = 0; i < NWORDS; i++)
57465     {
57466       ored_words[i] |= m.word[i];
57467       anded_words[i] &= m.word[i];
57468     }
57469 }
57470 int main ()
57471 {
57472   size_t j;
57473   FILE *fp = fopen ("conftest.out", "w");
57474   if (fp == NULL)
57475     return 1;
57476   for (j = 0; j < NWORDS; j++)
57477     anded_words[j] = ~ (unsigned int) 0;
57478   add_to_ored_words (0.25);
57479   add_to_ored_words (0.5);
57480   add_to_ored_words (1.0);
57481   add_to_ored_words (2.0);
57482   add_to_ored_words (4.0);
57483   /* Remove bits that are common (e.g. if representation of the first mantissa
57484      bit is explicit).  */
57485   for (j = 0; j < NWORDS; j++)
57486     ored_words[j] &= ~anded_words[j];
57487   /* Now find the nonzero word.  */
57488   for (j = 0; j < NWORDS; j++)
57489     if (ored_words[j] != 0)
57490       break;
57491   if (j < NWORDS)
57492     {
57493       size_t i;
57494       for (i = j + 1; i < NWORDS; i++)
57495         if (ored_words[i] != 0)
57496           {
57497             fprintf (fp, "unknown");
57498             return (fclose (fp) != 0);
57499           }
57500       for (i = 0; ; i++)
57501         if ((ored_words[j] >> i) & 1)
57502           {
57503             fprintf (fp, "word %d bit %d", (int) j, (int) i);
57504             return (fclose (fp) != 0);
57505           }
57506     }
57507   fprintf (fp, "unknown");
57508   return (fclose (fp) != 0);
57509 }
57510
57511 _ACEOF
57512 if ac_fn_c_try_run "$LINENO"; then :
57513   gl_cv_cc_double_expbit0=`cat conftest.out`
57514 else
57515   gl_cv_cc_double_expbit0="unknown"
57516 fi
57517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57518   conftest.$ac_objext conftest.beam conftest.$ac_ext
57519 fi
57520
57521       rm -f conftest.out
57522
57523 fi
57524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
57525 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
57526   case "$gl_cv_cc_double_expbit0" in
57527     word*bit*)
57528       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57529       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
57530
57531 cat >>confdefs.h <<_ACEOF
57532 #define DBL_EXPBIT0_WORD $word
57533 _ACEOF
57534
57535
57536 cat >>confdefs.h <<_ACEOF
57537 #define DBL_EXPBIT0_BIT $bit
57538 _ACEOF
57539
57540       ;;
57541   esac
57542
57543
57544
57545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
57546 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
57547 if ${gl_cv_cc_long_double_expbit0+:} false; then :
57548   $as_echo_n "(cached) " >&6
57549 else
57550
57551       if test "$cross_compiling" = yes; then :
57552
57553                               gl_cv_cc_long_double_expbit0="unknown"
57554
57555 else
57556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57557 /* end confdefs.h.  */
57558
57559 #include <float.h>
57560 #include <stddef.h>
57561 #include <stdio.h>
57562 #include <string.h>
57563 #define NWORDS \
57564   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
57565 typedef union { long double value; unsigned int word[NWORDS]; }
57566         memory_long_double;
57567 static unsigned int ored_words[NWORDS];
57568 static unsigned int anded_words[NWORDS];
57569 static void add_to_ored_words (long double x)
57570 {
57571   memory_long_double m;
57572   size_t i;
57573   /* Clear it first, in case
57574      sizeof (long double) < sizeof (memory_long_double).  */
57575   memset (&m, 0, sizeof (memory_long_double));
57576   m.value = x;
57577   for (i = 0; i < NWORDS; i++)
57578     {
57579       ored_words[i] |= m.word[i];
57580       anded_words[i] &= m.word[i];
57581     }
57582 }
57583 int main ()
57584 {
57585   size_t j;
57586   FILE *fp = fopen ("conftest.out", "w");
57587   if (fp == NULL)
57588     return 1;
57589   for (j = 0; j < NWORDS; j++)
57590     anded_words[j] = ~ (unsigned int) 0;
57591   add_to_ored_words (0.25L);
57592   add_to_ored_words (0.5L);
57593   add_to_ored_words (1.0L);
57594   add_to_ored_words (2.0L);
57595   add_to_ored_words (4.0L);
57596   /* Remove bits that are common (e.g. if representation of the first mantissa
57597      bit is explicit).  */
57598   for (j = 0; j < NWORDS; j++)
57599     ored_words[j] &= ~anded_words[j];
57600   /* Now find the nonzero word.  */
57601   for (j = 0; j < NWORDS; j++)
57602     if (ored_words[j] != 0)
57603       break;
57604   if (j < NWORDS)
57605     {
57606       size_t i;
57607       for (i = j + 1; i < NWORDS; i++)
57608         if (ored_words[i] != 0)
57609           {
57610             fprintf (fp, "unknown");
57611             return (fclose (fp) != 0);
57612           }
57613       for (i = 0; ; i++)
57614         if ((ored_words[j] >> i) & 1)
57615           {
57616             fprintf (fp, "word %d bit %d", (int) j, (int) i);
57617             return (fclose (fp) != 0);
57618           }
57619     }
57620   fprintf (fp, "unknown");
57621   return (fclose (fp) != 0);
57622 }
57623
57624 _ACEOF
57625 if ac_fn_c_try_run "$LINENO"; then :
57626   gl_cv_cc_long_double_expbit0=`cat conftest.out`
57627 else
57628   gl_cv_cc_long_double_expbit0="unknown"
57629 fi
57630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57631   conftest.$ac_objext conftest.beam conftest.$ac_ext
57632 fi
57633
57634       rm -f conftest.out
57635
57636 fi
57637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
57638 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
57639   case "$gl_cv_cc_long_double_expbit0" in
57640     word*bit*)
57641       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57642       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
57643
57644 cat >>confdefs.h <<_ACEOF
57645 #define LDBL_EXPBIT0_WORD $word
57646 _ACEOF
57647
57648
57649 cat >>confdefs.h <<_ACEOF
57650 #define LDBL_EXPBIT0_BIT $bit
57651 _ACEOF
57652
57653       ;;
57654   esac
57655
57656
57657
57658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
57659 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
57660 if ${gl_cv_cc_double_expbit0+:} false; then :
57661   $as_echo_n "(cached) " >&6
57662 else
57663
57664       if test "$cross_compiling" = yes; then :
57665
57666                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57667 /* end confdefs.h.  */
57668
57669 #if defined arm || defined __arm || defined __arm__
57670   mixed_endianness
57671 #endif
57672
57673 _ACEOF
57674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57675   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
57676   gl_cv_cc_double_expbit0="unknown"
57677 else
57678
57679                                                          :
57680 if ${ac_cv_c_bigendian+:} false; then :
57681   $as_echo_n "(cached) " >&6
57682 else
57683   ac_cv_c_bigendian=unknown
57684     # See if we're dealing with a universal compiler.
57685     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57686 /* end confdefs.h.  */
57687 #ifndef __APPLE_CC__
57688                not a universal capable compiler
57689              #endif
57690              typedef int dummy;
57691
57692 _ACEOF
57693 if ac_fn_c_try_compile "$LINENO"; then :
57694
57695         # Check for potential -arch flags.  It is not universal unless
57696         # there are at least two -arch flags with different values.
57697         ac_arch=
57698         ac_prev=
57699         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
57700          if test -n "$ac_prev"; then
57701            case $ac_word in
57702              i?86 | x86_64 | ppc | ppc64)
57703                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
57704                  ac_arch=$ac_word
57705                else
57706                  ac_cv_c_bigendian=universal
57707                  break
57708                fi
57709                ;;
57710            esac
57711            ac_prev=
57712          elif test "x$ac_word" = "x-arch"; then
57713            ac_prev=arch
57714          fi
57715        done
57716 fi
57717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57718     if test $ac_cv_c_bigendian = unknown; then
57719       # See if sys/param.h defines the BYTE_ORDER macro.
57720       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57721 /* end confdefs.h.  */
57722 #include <sys/types.h>
57723              #include <sys/param.h>
57724
57725 int
57726 main ()
57727 {
57728 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
57729                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
57730                      && LITTLE_ENDIAN)
57731               bogus endian macros
57732              #endif
57733
57734   ;
57735   return 0;
57736 }
57737 _ACEOF
57738 if ac_fn_c_try_compile "$LINENO"; then :
57739   # It does; now see whether it defined to BIG_ENDIAN or not.
57740          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57741 /* end confdefs.h.  */
57742 #include <sys/types.h>
57743                 #include <sys/param.h>
57744
57745 int
57746 main ()
57747 {
57748 #if BYTE_ORDER != BIG_ENDIAN
57749                  not big endian
57750                 #endif
57751
57752   ;
57753   return 0;
57754 }
57755 _ACEOF
57756 if ac_fn_c_try_compile "$LINENO"; then :
57757   ac_cv_c_bigendian=yes
57758 else
57759   ac_cv_c_bigendian=no
57760 fi
57761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57762 fi
57763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57764     fi
57765     if test $ac_cv_c_bigendian = unknown; then
57766       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57767       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57768 /* end confdefs.h.  */
57769 #include <limits.h>
57770
57771 int
57772 main ()
57773 {
57774 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
57775               bogus endian macros
57776              #endif
57777
57778   ;
57779   return 0;
57780 }
57781 _ACEOF
57782 if ac_fn_c_try_compile "$LINENO"; then :
57783   # It does; now see whether it defined to _BIG_ENDIAN or not.
57784          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57785 /* end confdefs.h.  */
57786 #include <limits.h>
57787
57788 int
57789 main ()
57790 {
57791 #ifndef _BIG_ENDIAN
57792                  not big endian
57793                 #endif
57794
57795   ;
57796   return 0;
57797 }
57798 _ACEOF
57799 if ac_fn_c_try_compile "$LINENO"; then :
57800   ac_cv_c_bigendian=yes
57801 else
57802   ac_cv_c_bigendian=no
57803 fi
57804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57805 fi
57806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57807     fi
57808     if test $ac_cv_c_bigendian = unknown; then
57809       # Compile a test program.
57810       if test "$cross_compiling" = yes; then :
57811   # Try to guess by grepping values from an object file.
57812          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57813 /* end confdefs.h.  */
57814 short int ascii_mm[] =
57815                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
57816                 short int ascii_ii[] =
57817                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
57818                 int use_ascii (int i) {
57819                   return ascii_mm[i] + ascii_ii[i];
57820                 }
57821                 short int ebcdic_ii[] =
57822                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
57823                 short int ebcdic_mm[] =
57824                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
57825                 int use_ebcdic (int i) {
57826                   return ebcdic_mm[i] + ebcdic_ii[i];
57827                 }
57828                 extern int foo;
57829
57830 int
57831 main ()
57832 {
57833 return use_ascii (foo) == use_ebcdic (foo);
57834   ;
57835   return 0;
57836 }
57837 _ACEOF
57838 if ac_fn_c_try_compile "$LINENO"; then :
57839   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
57840               ac_cv_c_bigendian=yes
57841             fi
57842             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
57843               if test "$ac_cv_c_bigendian" = unknown; then
57844                 ac_cv_c_bigendian=no
57845               else
57846                 # finding both strings is unlikely to happen, but who knows?
57847                 ac_cv_c_bigendian=unknown
57848               fi
57849             fi
57850 fi
57851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57852 else
57853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57854 /* end confdefs.h.  */
57855 $ac_includes_default
57856 int
57857 main ()
57858 {
57859
57860              /* Are we little or big endian?  From Harbison&Steele.  */
57861              union
57862              {
57863                long int l;
57864                char c[sizeof (long int)];
57865              } u;
57866              u.l = 1;
57867              return u.c[sizeof (long int) - 1] == 1;
57868
57869   ;
57870   return 0;
57871 }
57872 _ACEOF
57873 if ac_fn_c_try_run "$LINENO"; then :
57874   ac_cv_c_bigendian=no
57875 else
57876   ac_cv_c_bigendian=yes
57877 fi
57878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57879   conftest.$ac_objext conftest.beam conftest.$ac_ext
57880 fi
57881
57882     fi
57883 fi
57884 :
57885  case $ac_cv_c_bigendian in #(
57886    yes)
57887      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
57888    no)
57889      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
57890    universal)
57891
57892 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
57893
57894      ;; #(
57895    *)
57896      gl_cv_cc_double_expbit0="unknown" ;;
57897  esac
57898
57899
57900 fi
57901 rm -f conftest*
57902
57903
57904 else
57905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57906 /* end confdefs.h.  */
57907
57908 #include <float.h>
57909 #include <stddef.h>
57910 #include <stdio.h>
57911 #include <string.h>
57912 #define NWORDS \
57913   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
57914 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
57915 static unsigned int ored_words[NWORDS];
57916 static unsigned int anded_words[NWORDS];
57917 static void add_to_ored_words (double x)
57918 {
57919   memory_double m;
57920   size_t i;
57921   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
57922   memset (&m, 0, sizeof (memory_double));
57923   m.value = x;
57924   for (i = 0; i < NWORDS; i++)
57925     {
57926       ored_words[i] |= m.word[i];
57927       anded_words[i] &= m.word[i];
57928     }
57929 }
57930 int main ()
57931 {
57932   size_t j;
57933   FILE *fp = fopen ("conftest.out", "w");
57934   if (fp == NULL)
57935     return 1;
57936   for (j = 0; j < NWORDS; j++)
57937     anded_words[j] = ~ (unsigned int) 0;
57938   add_to_ored_words (0.25);
57939   add_to_ored_words (0.5);
57940   add_to_ored_words (1.0);
57941   add_to_ored_words (2.0);
57942   add_to_ored_words (4.0);
57943   /* Remove bits that are common (e.g. if representation of the first mantissa
57944      bit is explicit).  */
57945   for (j = 0; j < NWORDS; j++)
57946     ored_words[j] &= ~anded_words[j];
57947   /* Now find the nonzero word.  */
57948   for (j = 0; j < NWORDS; j++)
57949     if (ored_words[j] != 0)
57950       break;
57951   if (j < NWORDS)
57952     {
57953       size_t i;
57954       for (i = j + 1; i < NWORDS; i++)
57955         if (ored_words[i] != 0)
57956           {
57957             fprintf (fp, "unknown");
57958             return (fclose (fp) != 0);
57959           }
57960       for (i = 0; ; i++)
57961         if ((ored_words[j] >> i) & 1)
57962           {
57963             fprintf (fp, "word %d bit %d", (int) j, (int) i);
57964             return (fclose (fp) != 0);
57965           }
57966     }
57967   fprintf (fp, "unknown");
57968   return (fclose (fp) != 0);
57969 }
57970
57971 _ACEOF
57972 if ac_fn_c_try_run "$LINENO"; then :
57973   gl_cv_cc_double_expbit0=`cat conftest.out`
57974 else
57975   gl_cv_cc_double_expbit0="unknown"
57976 fi
57977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57978   conftest.$ac_objext conftest.beam conftest.$ac_ext
57979 fi
57980
57981       rm -f conftest.out
57982
57983 fi
57984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
57985 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
57986   case "$gl_cv_cc_double_expbit0" in
57987     word*bit*)
57988       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
57989       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
57990
57991 cat >>confdefs.h <<_ACEOF
57992 #define DBL_EXPBIT0_WORD $word
57993 _ACEOF
57994
57995
57996 cat >>confdefs.h <<_ACEOF
57997 #define DBL_EXPBIT0_BIT $bit
57998 _ACEOF
57999
58000       ;;
58001   esac
58002
58003
58004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
58005 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
58006 if ${gl_cv_cc_double_expbit0+:} false; then :
58007   $as_echo_n "(cached) " >&6
58008 else
58009
58010       if test "$cross_compiling" = yes; then :
58011
58012                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58013 /* end confdefs.h.  */
58014
58015 #if defined arm || defined __arm || defined __arm__
58016   mixed_endianness
58017 #endif
58018
58019 _ACEOF
58020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58021   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
58022   gl_cv_cc_double_expbit0="unknown"
58023 else
58024
58025                                                          :
58026 if ${ac_cv_c_bigendian+:} false; then :
58027   $as_echo_n "(cached) " >&6
58028 else
58029   ac_cv_c_bigendian=unknown
58030     # See if we're dealing with a universal compiler.
58031     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58032 /* end confdefs.h.  */
58033 #ifndef __APPLE_CC__
58034                not a universal capable compiler
58035              #endif
58036              typedef int dummy;
58037
58038 _ACEOF
58039 if ac_fn_c_try_compile "$LINENO"; then :
58040
58041         # Check for potential -arch flags.  It is not universal unless
58042         # there are at least two -arch flags with different values.
58043         ac_arch=
58044         ac_prev=
58045         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
58046          if test -n "$ac_prev"; then
58047            case $ac_word in
58048              i?86 | x86_64 | ppc | ppc64)
58049                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
58050                  ac_arch=$ac_word
58051                else
58052                  ac_cv_c_bigendian=universal
58053                  break
58054                fi
58055                ;;
58056            esac
58057            ac_prev=
58058          elif test "x$ac_word" = "x-arch"; then
58059            ac_prev=arch
58060          fi
58061        done
58062 fi
58063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58064     if test $ac_cv_c_bigendian = unknown; then
58065       # See if sys/param.h defines the BYTE_ORDER macro.
58066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58067 /* end confdefs.h.  */
58068 #include <sys/types.h>
58069              #include <sys/param.h>
58070
58071 int
58072 main ()
58073 {
58074 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
58075                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
58076                      && LITTLE_ENDIAN)
58077               bogus endian macros
58078              #endif
58079
58080   ;
58081   return 0;
58082 }
58083 _ACEOF
58084 if ac_fn_c_try_compile "$LINENO"; then :
58085   # It does; now see whether it defined to BIG_ENDIAN or not.
58086          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58087 /* end confdefs.h.  */
58088 #include <sys/types.h>
58089                 #include <sys/param.h>
58090
58091 int
58092 main ()
58093 {
58094 #if BYTE_ORDER != BIG_ENDIAN
58095                  not big endian
58096                 #endif
58097
58098   ;
58099   return 0;
58100 }
58101 _ACEOF
58102 if ac_fn_c_try_compile "$LINENO"; then :
58103   ac_cv_c_bigendian=yes
58104 else
58105   ac_cv_c_bigendian=no
58106 fi
58107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58108 fi
58109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58110     fi
58111     if test $ac_cv_c_bigendian = unknown; then
58112       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
58113       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58114 /* end confdefs.h.  */
58115 #include <limits.h>
58116
58117 int
58118 main ()
58119 {
58120 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
58121               bogus endian macros
58122              #endif
58123
58124   ;
58125   return 0;
58126 }
58127 _ACEOF
58128 if ac_fn_c_try_compile "$LINENO"; then :
58129   # It does; now see whether it defined to _BIG_ENDIAN or not.
58130          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58131 /* end confdefs.h.  */
58132 #include <limits.h>
58133
58134 int
58135 main ()
58136 {
58137 #ifndef _BIG_ENDIAN
58138                  not big endian
58139                 #endif
58140
58141   ;
58142   return 0;
58143 }
58144 _ACEOF
58145 if ac_fn_c_try_compile "$LINENO"; then :
58146   ac_cv_c_bigendian=yes
58147 else
58148   ac_cv_c_bigendian=no
58149 fi
58150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58151 fi
58152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58153     fi
58154     if test $ac_cv_c_bigendian = unknown; then
58155       # Compile a test program.
58156       if test "$cross_compiling" = yes; then :
58157   # Try to guess by grepping values from an object file.
58158          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58159 /* end confdefs.h.  */
58160 short int ascii_mm[] =
58161                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
58162                 short int ascii_ii[] =
58163                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
58164                 int use_ascii (int i) {
58165                   return ascii_mm[i] + ascii_ii[i];
58166                 }
58167                 short int ebcdic_ii[] =
58168                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
58169                 short int ebcdic_mm[] =
58170                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
58171                 int use_ebcdic (int i) {
58172                   return ebcdic_mm[i] + ebcdic_ii[i];
58173                 }
58174                 extern int foo;
58175
58176 int
58177 main ()
58178 {
58179 return use_ascii (foo) == use_ebcdic (foo);
58180   ;
58181   return 0;
58182 }
58183 _ACEOF
58184 if ac_fn_c_try_compile "$LINENO"; then :
58185   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
58186               ac_cv_c_bigendian=yes
58187             fi
58188             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
58189               if test "$ac_cv_c_bigendian" = unknown; then
58190                 ac_cv_c_bigendian=no
58191               else
58192                 # finding both strings is unlikely to happen, but who knows?
58193                 ac_cv_c_bigendian=unknown
58194               fi
58195             fi
58196 fi
58197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58198 else
58199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58200 /* end confdefs.h.  */
58201 $ac_includes_default
58202 int
58203 main ()
58204 {
58205
58206              /* Are we little or big endian?  From Harbison&Steele.  */
58207              union
58208              {
58209                long int l;
58210                char c[sizeof (long int)];
58211              } u;
58212              u.l = 1;
58213              return u.c[sizeof (long int) - 1] == 1;
58214
58215   ;
58216   return 0;
58217 }
58218 _ACEOF
58219 if ac_fn_c_try_run "$LINENO"; then :
58220   ac_cv_c_bigendian=no
58221 else
58222   ac_cv_c_bigendian=yes
58223 fi
58224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58225   conftest.$ac_objext conftest.beam conftest.$ac_ext
58226 fi
58227
58228     fi
58229 fi
58230 :
58231  case $ac_cv_c_bigendian in #(
58232    yes)
58233      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
58234    no)
58235      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
58236    universal)
58237
58238 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
58239
58240      ;; #(
58241    *)
58242      gl_cv_cc_double_expbit0="unknown" ;;
58243  esac
58244
58245
58246 fi
58247 rm -f conftest*
58248
58249
58250 else
58251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58252 /* end confdefs.h.  */
58253
58254 #include <float.h>
58255 #include <stddef.h>
58256 #include <stdio.h>
58257 #include <string.h>
58258 #define NWORDS \
58259   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58260 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
58261 static unsigned int ored_words[NWORDS];
58262 static unsigned int anded_words[NWORDS];
58263 static void add_to_ored_words (double x)
58264 {
58265   memory_double m;
58266   size_t i;
58267   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
58268   memset (&m, 0, sizeof (memory_double));
58269   m.value = x;
58270   for (i = 0; i < NWORDS; i++)
58271     {
58272       ored_words[i] |= m.word[i];
58273       anded_words[i] &= m.word[i];
58274     }
58275 }
58276 int main ()
58277 {
58278   size_t j;
58279   FILE *fp = fopen ("conftest.out", "w");
58280   if (fp == NULL)
58281     return 1;
58282   for (j = 0; j < NWORDS; j++)
58283     anded_words[j] = ~ (unsigned int) 0;
58284   add_to_ored_words (0.25);
58285   add_to_ored_words (0.5);
58286   add_to_ored_words (1.0);
58287   add_to_ored_words (2.0);
58288   add_to_ored_words (4.0);
58289   /* Remove bits that are common (e.g. if representation of the first mantissa
58290      bit is explicit).  */
58291   for (j = 0; j < NWORDS; j++)
58292     ored_words[j] &= ~anded_words[j];
58293   /* Now find the nonzero word.  */
58294   for (j = 0; j < NWORDS; j++)
58295     if (ored_words[j] != 0)
58296       break;
58297   if (j < NWORDS)
58298     {
58299       size_t i;
58300       for (i = j + 1; i < NWORDS; i++)
58301         if (ored_words[i] != 0)
58302           {
58303             fprintf (fp, "unknown");
58304             return (fclose (fp) != 0);
58305           }
58306       for (i = 0; ; i++)
58307         if ((ored_words[j] >> i) & 1)
58308           {
58309             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58310             return (fclose (fp) != 0);
58311           }
58312     }
58313   fprintf (fp, "unknown");
58314   return (fclose (fp) != 0);
58315 }
58316
58317 _ACEOF
58318 if ac_fn_c_try_run "$LINENO"; then :
58319   gl_cv_cc_double_expbit0=`cat conftest.out`
58320 else
58321   gl_cv_cc_double_expbit0="unknown"
58322 fi
58323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58324   conftest.$ac_objext conftest.beam conftest.$ac_ext
58325 fi
58326
58327       rm -f conftest.out
58328
58329 fi
58330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
58331 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
58332   case "$gl_cv_cc_double_expbit0" in
58333     word*bit*)
58334       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58335       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
58336
58337 cat >>confdefs.h <<_ACEOF
58338 #define DBL_EXPBIT0_WORD $word
58339 _ACEOF
58340
58341
58342 cat >>confdefs.h <<_ACEOF
58343 #define DBL_EXPBIT0_BIT $bit
58344 _ACEOF
58345
58346       ;;
58347   esac
58348
58349
58350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
58351 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
58352 if ${gl_cv_cc_float_expbit0+:} false; then :
58353   $as_echo_n "(cached) " >&6
58354 else
58355
58356       if test "$cross_compiling" = yes; then :
58357   gl_cv_cc_float_expbit0="word 0 bit 23"
58358 else
58359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58360 /* end confdefs.h.  */
58361
58362 #include <float.h>
58363 #include <stddef.h>
58364 #include <stdio.h>
58365 #include <string.h>
58366 #define NWORDS \
58367   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58368 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
58369 static unsigned int ored_words[NWORDS];
58370 static unsigned int anded_words[NWORDS];
58371 static void add_to_ored_words (float x)
58372 {
58373   memory_float m;
58374   size_t i;
58375   /* Clear it first, in case
58376      sizeof (float) < sizeof (memory_float).  */
58377   memset (&m, 0, sizeof (memory_float));
58378   m.value = x;
58379   for (i = 0; i < NWORDS; i++)
58380     {
58381       ored_words[i] |= m.word[i];
58382       anded_words[i] &= m.word[i];
58383     }
58384 }
58385 int main ()
58386 {
58387   size_t j;
58388   FILE *fp = fopen ("conftest.out", "w");
58389   if (fp == NULL)
58390     return 1;
58391   for (j = 0; j < NWORDS; j++)
58392     anded_words[j] = ~ (unsigned int) 0;
58393   add_to_ored_words (0.25f);
58394   add_to_ored_words (0.5f);
58395   add_to_ored_words (1.0f);
58396   add_to_ored_words (2.0f);
58397   add_to_ored_words (4.0f);
58398   /* Remove bits that are common (e.g. if representation of the first mantissa
58399      bit is explicit).  */
58400   for (j = 0; j < NWORDS; j++)
58401     ored_words[j] &= ~anded_words[j];
58402   /* Now find the nonzero word.  */
58403   for (j = 0; j < NWORDS; j++)
58404     if (ored_words[j] != 0)
58405       break;
58406   if (j < NWORDS)
58407     {
58408       size_t i;
58409       for (i = j + 1; i < NWORDS; i++)
58410         if (ored_words[i] != 0)
58411           {
58412             fprintf (fp, "unknown");
58413             return (fclose (fp) != 0);
58414           }
58415       for (i = 0; ; i++)
58416         if ((ored_words[j] >> i) & 1)
58417           {
58418             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58419             return (fclose (fp) != 0);
58420           }
58421     }
58422   fprintf (fp, "unknown");
58423   return (fclose (fp) != 0);
58424 }
58425
58426 _ACEOF
58427 if ac_fn_c_try_run "$LINENO"; then :
58428   gl_cv_cc_float_expbit0=`cat conftest.out`
58429 else
58430   gl_cv_cc_float_expbit0="unknown"
58431 fi
58432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58433   conftest.$ac_objext conftest.beam conftest.$ac_ext
58434 fi
58435
58436       rm -f conftest.out
58437
58438 fi
58439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
58440 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
58441   case "$gl_cv_cc_float_expbit0" in
58442     word*bit*)
58443       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58444       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
58445
58446 cat >>confdefs.h <<_ACEOF
58447 #define FLT_EXPBIT0_WORD $word
58448 _ACEOF
58449
58450
58451 cat >>confdefs.h <<_ACEOF
58452 #define FLT_EXPBIT0_BIT $bit
58453 _ACEOF
58454
58455       ;;
58456   esac
58457
58458
58459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
58460 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
58461 if ${gl_cv_cc_float_expbit0+:} false; then :
58462   $as_echo_n "(cached) " >&6
58463 else
58464
58465       if test "$cross_compiling" = yes; then :
58466   gl_cv_cc_float_expbit0="word 0 bit 23"
58467 else
58468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58469 /* end confdefs.h.  */
58470
58471 #include <float.h>
58472 #include <stddef.h>
58473 #include <stdio.h>
58474 #include <string.h>
58475 #define NWORDS \
58476   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58477 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
58478 static unsigned int ored_words[NWORDS];
58479 static unsigned int anded_words[NWORDS];
58480 static void add_to_ored_words (float x)
58481 {
58482   memory_float m;
58483   size_t i;
58484   /* Clear it first, in case
58485      sizeof (float) < sizeof (memory_float).  */
58486   memset (&m, 0, sizeof (memory_float));
58487   m.value = x;
58488   for (i = 0; i < NWORDS; i++)
58489     {
58490       ored_words[i] |= m.word[i];
58491       anded_words[i] &= m.word[i];
58492     }
58493 }
58494 int main ()
58495 {
58496   size_t j;
58497   FILE *fp = fopen ("conftest.out", "w");
58498   if (fp == NULL)
58499     return 1;
58500   for (j = 0; j < NWORDS; j++)
58501     anded_words[j] = ~ (unsigned int) 0;
58502   add_to_ored_words (0.25f);
58503   add_to_ored_words (0.5f);
58504   add_to_ored_words (1.0f);
58505   add_to_ored_words (2.0f);
58506   add_to_ored_words (4.0f);
58507   /* Remove bits that are common (e.g. if representation of the first mantissa
58508      bit is explicit).  */
58509   for (j = 0; j < NWORDS; j++)
58510     ored_words[j] &= ~anded_words[j];
58511   /* Now find the nonzero word.  */
58512   for (j = 0; j < NWORDS; j++)
58513     if (ored_words[j] != 0)
58514       break;
58515   if (j < NWORDS)
58516     {
58517       size_t i;
58518       for (i = j + 1; i < NWORDS; i++)
58519         if (ored_words[i] != 0)
58520           {
58521             fprintf (fp, "unknown");
58522             return (fclose (fp) != 0);
58523           }
58524       for (i = 0; ; i++)
58525         if ((ored_words[j] >> i) & 1)
58526           {
58527             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58528             return (fclose (fp) != 0);
58529           }
58530     }
58531   fprintf (fp, "unknown");
58532   return (fclose (fp) != 0);
58533 }
58534
58535 _ACEOF
58536 if ac_fn_c_try_run "$LINENO"; then :
58537   gl_cv_cc_float_expbit0=`cat conftest.out`
58538 else
58539   gl_cv_cc_float_expbit0="unknown"
58540 fi
58541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58542   conftest.$ac_objext conftest.beam conftest.$ac_ext
58543 fi
58544
58545       rm -f conftest.out
58546
58547 fi
58548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
58549 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
58550   case "$gl_cv_cc_float_expbit0" in
58551     word*bit*)
58552       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58553       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
58554
58555 cat >>confdefs.h <<_ACEOF
58556 #define FLT_EXPBIT0_WORD $word
58557 _ACEOF
58558
58559
58560 cat >>confdefs.h <<_ACEOF
58561 #define FLT_EXPBIT0_BIT $bit
58562 _ACEOF
58563
58564       ;;
58565   esac
58566
58567
58568
58569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
58570 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
58571 if ${gl_cv_cc_long_double_expbit0+:} false; then :
58572   $as_echo_n "(cached) " >&6
58573 else
58574
58575       if test "$cross_compiling" = yes; then :
58576
58577                               gl_cv_cc_long_double_expbit0="unknown"
58578
58579 else
58580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58581 /* end confdefs.h.  */
58582
58583 #include <float.h>
58584 #include <stddef.h>
58585 #include <stdio.h>
58586 #include <string.h>
58587 #define NWORDS \
58588   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58589 typedef union { long double value; unsigned int word[NWORDS]; }
58590         memory_long_double;
58591 static unsigned int ored_words[NWORDS];
58592 static unsigned int anded_words[NWORDS];
58593 static void add_to_ored_words (long double x)
58594 {
58595   memory_long_double m;
58596   size_t i;
58597   /* Clear it first, in case
58598      sizeof (long double) < sizeof (memory_long_double).  */
58599   memset (&m, 0, sizeof (memory_long_double));
58600   m.value = x;
58601   for (i = 0; i < NWORDS; i++)
58602     {
58603       ored_words[i] |= m.word[i];
58604       anded_words[i] &= m.word[i];
58605     }
58606 }
58607 int main ()
58608 {
58609   size_t j;
58610   FILE *fp = fopen ("conftest.out", "w");
58611   if (fp == NULL)
58612     return 1;
58613   for (j = 0; j < NWORDS; j++)
58614     anded_words[j] = ~ (unsigned int) 0;
58615   add_to_ored_words (0.25L);
58616   add_to_ored_words (0.5L);
58617   add_to_ored_words (1.0L);
58618   add_to_ored_words (2.0L);
58619   add_to_ored_words (4.0L);
58620   /* Remove bits that are common (e.g. if representation of the first mantissa
58621      bit is explicit).  */
58622   for (j = 0; j < NWORDS; j++)
58623     ored_words[j] &= ~anded_words[j];
58624   /* Now find the nonzero word.  */
58625   for (j = 0; j < NWORDS; j++)
58626     if (ored_words[j] != 0)
58627       break;
58628   if (j < NWORDS)
58629     {
58630       size_t i;
58631       for (i = j + 1; i < NWORDS; i++)
58632         if (ored_words[i] != 0)
58633           {
58634             fprintf (fp, "unknown");
58635             return (fclose (fp) != 0);
58636           }
58637       for (i = 0; ; i++)
58638         if ((ored_words[j] >> i) & 1)
58639           {
58640             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58641             return (fclose (fp) != 0);
58642           }
58643     }
58644   fprintf (fp, "unknown");
58645   return (fclose (fp) != 0);
58646 }
58647
58648 _ACEOF
58649 if ac_fn_c_try_run "$LINENO"; then :
58650   gl_cv_cc_long_double_expbit0=`cat conftest.out`
58651 else
58652   gl_cv_cc_long_double_expbit0="unknown"
58653 fi
58654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58655   conftest.$ac_objext conftest.beam conftest.$ac_ext
58656 fi
58657
58658       rm -f conftest.out
58659
58660 fi
58661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
58662 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
58663   case "$gl_cv_cc_long_double_expbit0" in
58664     word*bit*)
58665       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58666       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
58667
58668 cat >>confdefs.h <<_ACEOF
58669 #define LDBL_EXPBIT0_WORD $word
58670 _ACEOF
58671
58672
58673 cat >>confdefs.h <<_ACEOF
58674 #define LDBL_EXPBIT0_BIT $bit
58675 _ACEOF
58676
58677       ;;
58678   esac
58679
58680
58681
58682
58683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
58684 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
58685 if ${gl_cv_cc_long_double_expbit0+:} false; then :
58686   $as_echo_n "(cached) " >&6
58687 else
58688
58689       if test "$cross_compiling" = yes; then :
58690
58691                               gl_cv_cc_long_double_expbit0="unknown"
58692
58693 else
58694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58695 /* end confdefs.h.  */
58696
58697 #include <float.h>
58698 #include <stddef.h>
58699 #include <stdio.h>
58700 #include <string.h>
58701 #define NWORDS \
58702   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
58703 typedef union { long double value; unsigned int word[NWORDS]; }
58704         memory_long_double;
58705 static unsigned int ored_words[NWORDS];
58706 static unsigned int anded_words[NWORDS];
58707 static void add_to_ored_words (long double x)
58708 {
58709   memory_long_double m;
58710   size_t i;
58711   /* Clear it first, in case
58712      sizeof (long double) < sizeof (memory_long_double).  */
58713   memset (&m, 0, sizeof (memory_long_double));
58714   m.value = x;
58715   for (i = 0; i < NWORDS; i++)
58716     {
58717       ored_words[i] |= m.word[i];
58718       anded_words[i] &= m.word[i];
58719     }
58720 }
58721 int main ()
58722 {
58723   size_t j;
58724   FILE *fp = fopen ("conftest.out", "w");
58725   if (fp == NULL)
58726     return 1;
58727   for (j = 0; j < NWORDS; j++)
58728     anded_words[j] = ~ (unsigned int) 0;
58729   add_to_ored_words (0.25L);
58730   add_to_ored_words (0.5L);
58731   add_to_ored_words (1.0L);
58732   add_to_ored_words (2.0L);
58733   add_to_ored_words (4.0L);
58734   /* Remove bits that are common (e.g. if representation of the first mantissa
58735      bit is explicit).  */
58736   for (j = 0; j < NWORDS; j++)
58737     ored_words[j] &= ~anded_words[j];
58738   /* Now find the nonzero word.  */
58739   for (j = 0; j < NWORDS; j++)
58740     if (ored_words[j] != 0)
58741       break;
58742   if (j < NWORDS)
58743     {
58744       size_t i;
58745       for (i = j + 1; i < NWORDS; i++)
58746         if (ored_words[i] != 0)
58747           {
58748             fprintf (fp, "unknown");
58749             return (fclose (fp) != 0);
58750           }
58751       for (i = 0; ; i++)
58752         if ((ored_words[j] >> i) & 1)
58753           {
58754             fprintf (fp, "word %d bit %d", (int) j, (int) i);
58755             return (fclose (fp) != 0);
58756           }
58757     }
58758   fprintf (fp, "unknown");
58759   return (fclose (fp) != 0);
58760 }
58761
58762 _ACEOF
58763 if ac_fn_c_try_run "$LINENO"; then :
58764   gl_cv_cc_long_double_expbit0=`cat conftest.out`
58765 else
58766   gl_cv_cc_long_double_expbit0="unknown"
58767 fi
58768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58769   conftest.$ac_objext conftest.beam conftest.$ac_ext
58770 fi
58771
58772       rm -f conftest.out
58773
58774 fi
58775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
58776 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
58777   case "$gl_cv_cc_long_double_expbit0" in
58778     word*bit*)
58779       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
58780       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
58781
58782 cat >>confdefs.h <<_ACEOF
58783 #define LDBL_EXPBIT0_WORD $word
58784 _ACEOF
58785
58786
58787 cat >>confdefs.h <<_ACEOF
58788 #define LDBL_EXPBIT0_BIT $bit
58789 _ACEOF
58790
58791       ;;
58792   esac
58793
58794
58795
58796
58797
58798
58799
58800
58801
58802
58803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
58804 $as_echo_n "checking whether lseek detects pipes... " >&6; }
58805 if ${gl_cv_func_lseek_pipe+:} false; then :
58806   $as_echo_n "(cached) " >&6
58807 else
58808   case "$host_os" in
58809        mingw*)
58810                                                                gl_cv_func_lseek_pipe=no
58811          ;;
58812        *)
58813          if test $cross_compiling = no; then
58814            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58815 /* end confdefs.h.  */
58816
58817 #include <sys/types.h> /* for off_t */
58818 #include <stdio.h> /* for SEEK_CUR */
58819 #if HAVE_UNISTD_H
58820 # include <unistd.h>
58821 #else /* on Windows with MSVC */
58822 # include <io.h>
58823 #endif
58824
58825 int
58826 main ()
58827 {
58828
58829   /* Exit with success only if stdin is seekable.  */
58830   return lseek (0, (off_t)0, SEEK_CUR) < 0;
58831
58832   ;
58833   return 0;
58834 }
58835 _ACEOF
58836 if ac_fn_c_try_link "$LINENO"; then :
58837   if test -s conftest$ac_exeext \
58838                  && ./conftest$ac_exeext < conftest.$ac_ext \
58839                  && test 1 = "`echo hi \
58840                    | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
58841                 gl_cv_func_lseek_pipe=yes
58842               else
58843                 gl_cv_func_lseek_pipe=no
58844               fi
58845
58846 else
58847   gl_cv_func_lseek_pipe=no
58848 fi
58849 rm -f core conftest.err conftest.$ac_objext \
58850     conftest$ac_exeext conftest.$ac_ext
58851          else
58852            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58853 /* end confdefs.h.  */
58854
58855 #if defined __BEOS__
58856 /* BeOS mistakenly return 0 when trying to seek on pipes.  */
58857   Choke me.
58858 #endif
58859 _ACEOF
58860 if ac_fn_c_try_compile "$LINENO"; then :
58861   gl_cv_func_lseek_pipe=yes
58862 else
58863   gl_cv_func_lseek_pipe=no
58864 fi
58865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58866          fi
58867          ;;
58868      esac
58869
58870 fi
58871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
58872 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
58873   if test $gl_cv_func_lseek_pipe = no; then
58874     REPLACE_LSEEK=1
58875
58876 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
58877
58878   fi
58879
58880
58881   if test $WINDOWS_64_BIT_OFF_T = 1; then
58882     REPLACE_LSEEK=1
58883   fi
58884
58885   if test $REPLACE_LSEEK = 1; then
58886
58887
58888
58889
58890
58891
58892
58893
58894   gltests_LIBOBJS="$gltests_LIBOBJS lseek.$ac_objext"
58895
58896   fi
58897
58898
58899
58900
58901
58902     if test "$GNULIB_LSEEK" != 1; then
58903         if test "$GNULIB_LSEEK" = 0; then
58904       GNULIB_LSEEK=$gl_module_indicator_condition
58905     else
58906       GNULIB_LSEEK="($GNULIB_LSEEK || $gl_module_indicator_condition)"
58907     fi
58908   fi
58909
58910
58911
58912
58913
58914 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
58915
58916
58917
58918
58919
58920
58921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
58922 $as_echo_n "checking for a traditional french locale... " >&6; }
58923 if ${gt_cv_locale_fr+:} false; then :
58924   $as_echo_n "(cached) " >&6
58925 else
58926
58927     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58928 /* end confdefs.h.  */
58929
58930 #include <locale.h>
58931 #include <time.h>
58932 #if HAVE_LANGINFO_CODESET
58933 # include <langinfo.h>
58934 #endif
58935 #include <stdlib.h>
58936 #include <string.h>
58937 struct tm t;
58938 char buf[16];
58939 int main () {
58940   /* Check whether the given locale name is recognized by the system.  */
58941 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
58942   /* On native Windows, setlocale(category, "") looks at the system settings,
58943      not at the environment variables.  Also, when an encoding suffix such
58944      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
58945      category of the locale to "C".  */
58946   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
58947       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
58948     return 1;
58949 #else
58950   if (setlocale (LC_ALL, "") == NULL) return 1;
58951 #endif
58952   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
58953      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
58954      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
58955      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
58956      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
58957      some unit tests fail.
58958      On MirBSD 10, when an unsupported locale is specified, setlocale()
58959      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
58960 #if HAVE_LANGINFO_CODESET
58961   {
58962     const char *cs = nl_langinfo (CODESET);
58963     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
58964         || strcmp (cs, "UTF-8") == 0)
58965       return 1;
58966   }
58967 #endif
58968 #ifdef __CYGWIN__
58969   /* On Cygwin, avoid locale names without encoding suffix, because the
58970      locale_charset() function relies on the encoding suffix.  Note that
58971      LC_ALL is set on the command line.  */
58972   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
58973 #endif
58974   /* Check whether in the abbreviation of the second month, the second
58975      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
58976      one byte long. This excludes the UTF-8 encoding.  */
58977   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
58978   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
58979 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
58980   /* Check whether the decimal separator is a comma.
58981      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
58982      are nl_langinfo(RADIXCHAR) are both ".".  */
58983   if (localeconv () ->decimal_point[0] != ',') return 1;
58984 #endif
58985   return 0;
58986 }
58987
58988 _ACEOF
58989     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
58990   (eval $ac_link) 2>&5
58991   ac_status=$?
58992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58993   test $ac_status = 0; } && test -s conftest$ac_exeext; then
58994       case "$host_os" in
58995         # Handle native Windows specially, because there setlocale() interprets
58996         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
58997         # "fr" or "fra" as "French" or "French_France.1252",
58998         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
58999         # "ja" as "Japanese" or "Japanese_Japan.932",
59000         # and similar.
59001         mingw*)
59002           # Test for the native Windows locale name.
59003           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59004             gt_cv_locale_fr=French_France.1252
59005           else
59006             # None found.
59007             gt_cv_locale_fr=none
59008           fi
59009           ;;
59010         *)
59011           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59012           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59013           # configure script would override the LC_ALL setting. Likewise for
59014           # LC_CTYPE, which is also set at the beginning of the configure script.
59015           # Test for the usual locale name.
59016           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59017             gt_cv_locale_fr=fr_FR
59018           else
59019             # Test for the locale name with explicit encoding suffix.
59020             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59021               gt_cv_locale_fr=fr_FR.ISO-8859-1
59022             else
59023               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
59024               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59025                 gt_cv_locale_fr=fr_FR.ISO8859-1
59026               else
59027                 # Test for the HP-UX locale name.
59028                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59029                   gt_cv_locale_fr=fr_FR.iso88591
59030                 else
59031                   # Test for the Solaris 7 locale name.
59032                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59033                     gt_cv_locale_fr=fr
59034                   else
59035                     # None found.
59036                     gt_cv_locale_fr=none
59037                   fi
59038                 fi
59039               fi
59040             fi
59041           fi
59042           ;;
59043       esac
59044     fi
59045     rm -fr conftest*
59046
59047 fi
59048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
59049 $as_echo "$gt_cv_locale_fr" >&6; }
59050   LOCALE_FR=$gt_cv_locale_fr
59051
59052
59053
59054
59055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
59056 $as_echo_n "checking for a french Unicode locale... " >&6; }
59057 if ${gt_cv_locale_fr_utf8+:} false; then :
59058   $as_echo_n "(cached) " >&6
59059 else
59060
59061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59062 /* end confdefs.h.  */
59063
59064 #include <locale.h>
59065 #include <time.h>
59066 #if HAVE_LANGINFO_CODESET
59067 # include <langinfo.h>
59068 #endif
59069 #include <stdlib.h>
59070 #include <string.h>
59071 struct tm t;
59072 char buf[16];
59073 int main () {
59074   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
59075      imitates locale dependent behaviour by looking at the environment
59076      variables, and all locales use the UTF-8 encoding.  */
59077 #if !(defined __BEOS__ || defined __HAIKU__)
59078   /* Check whether the given locale name is recognized by the system.  */
59079 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59080   /* On native Windows, setlocale(category, "") looks at the system settings,
59081      not at the environment variables.  Also, when an encoding suffix such
59082      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59083      category of the locale to "C".  */
59084   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59085       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59086     return 1;
59087 # else
59088   if (setlocale (LC_ALL, "") == NULL) return 1;
59089 # endif
59090   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59091      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59092      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59093      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59094      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59095      some unit tests fail.  */
59096 # if HAVE_LANGINFO_CODESET
59097   {
59098     const char *cs = nl_langinfo (CODESET);
59099     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
59100       return 1;
59101   }
59102 # endif
59103 # ifdef __CYGWIN__
59104   /* On Cygwin, avoid locale names without encoding suffix, because the
59105      locale_charset() function relies on the encoding suffix.  Note that
59106      LC_ALL is set on the command line.  */
59107   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59108 # endif
59109   /* Check whether in the abbreviation of the second month, the second
59110      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
59111      two bytes long, with UTF-8 encoding.  */
59112   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59113   if (strftime (buf, sizeof (buf), "%b", &t) < 4
59114       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
59115     return 1;
59116 #endif
59117 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
59118   /* Check whether the decimal separator is a comma.
59119      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
59120      are nl_langinfo(RADIXCHAR) are both ".".  */
59121   if (localeconv () ->decimal_point[0] != ',') return 1;
59122 #endif
59123   return 0;
59124 }
59125
59126 _ACEOF
59127     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59128   (eval $ac_link) 2>&5
59129   ac_status=$?
59130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59131   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59132       case "$host_os" in
59133         # Handle native Windows specially, because there setlocale() interprets
59134         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59135         # "fr" or "fra" as "French" or "French_France.1252",
59136         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59137         # "ja" as "Japanese" or "Japanese_Japan.932",
59138         # and similar.
59139         mingw*)
59140           # Test for the hypothetical native Windows locale name.
59141           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59142             gt_cv_locale_fr_utf8=French_France.65001
59143           else
59144             # None found.
59145             gt_cv_locale_fr_utf8=none
59146           fi
59147           ;;
59148         *)
59149           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59150           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59151           # configure script would override the LC_ALL setting. Likewise for
59152           # LC_CTYPE, which is also set at the beginning of the configure script.
59153           # Test for the usual locale name.
59154           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59155             gt_cv_locale_fr_utf8=fr_FR
59156           else
59157             # Test for the locale name with explicit encoding suffix.
59158             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59159               gt_cv_locale_fr_utf8=fr_FR.UTF-8
59160             else
59161               # Test for the Solaris 7 locale name.
59162               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59163                 gt_cv_locale_fr_utf8=fr.UTF-8
59164               else
59165                 # None found.
59166                 gt_cv_locale_fr_utf8=none
59167               fi
59168             fi
59169           fi
59170           ;;
59171       esac
59172     fi
59173     rm -fr conftest*
59174
59175 fi
59176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
59177 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
59178   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
59179
59180
59181
59182
59183
59184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
59185 $as_echo_n "checking for a traditional japanese locale... " >&6; }
59186 if ${gt_cv_locale_ja+:} false; then :
59187   $as_echo_n "(cached) " >&6
59188 else
59189
59190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59191 /* end confdefs.h.  */
59192
59193 #include <locale.h>
59194 #include <time.h>
59195 #if HAVE_LANGINFO_CODESET
59196 # include <langinfo.h>
59197 #endif
59198 #include <stdlib.h>
59199 #include <string.h>
59200 struct tm t;
59201 char buf[16];
59202 int main ()
59203 {
59204   const char *p;
59205   /* Check whether the given locale name is recognized by the system.  */
59206 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59207   /* On native Windows, setlocale(category, "") looks at the system settings,
59208      not at the environment variables.  Also, when an encoding suffix such
59209      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59210      category of the locale to "C".  */
59211   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59212       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59213     return 1;
59214 #else
59215   if (setlocale (LC_ALL, "") == NULL) return 1;
59216 #endif
59217   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59218      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59219      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59220      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59221      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59222      some unit tests fail.
59223      On MirBSD 10, when an unsupported locale is specified, setlocale()
59224      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
59225 #if HAVE_LANGINFO_CODESET
59226   {
59227     const char *cs = nl_langinfo (CODESET);
59228     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
59229         || strcmp (cs, "UTF-8") == 0)
59230       return 1;
59231   }
59232 #endif
59233 #ifdef __CYGWIN__
59234   /* On Cygwin, avoid locale names without encoding suffix, because the
59235      locale_charset() function relies on the encoding suffix.  Note that
59236      LC_ALL is set on the command line.  */
59237   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59238 #endif
59239   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
59240      on Cygwin 1.5.x.  */
59241   if (MB_CUR_MAX == 1)
59242     return 1;
59243   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
59244      This excludes the UTF-8 encoding (except on MirBSD).  */
59245   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59246   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
59247   for (p = buf; *p != '\0'; p++)
59248     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
59249       return 1;
59250   return 0;
59251 }
59252
59253 _ACEOF
59254     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59255   (eval $ac_link) 2>&5
59256   ac_status=$?
59257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59258   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59259       case "$host_os" in
59260         # Handle native Windows specially, because there setlocale() interprets
59261         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59262         # "fr" or "fra" as "French" or "French_France.1252",
59263         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59264         # "ja" as "Japanese" or "Japanese_Japan.932",
59265         # and similar.
59266         mingw*)
59267           # Note that on native Windows, the Japanese locale is
59268           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
59269           # cannot use it here.
59270           gt_cv_locale_ja=none
59271           ;;
59272         *)
59273           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59274           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59275           # configure script would override the LC_ALL setting. Likewise for
59276           # LC_CTYPE, which is also set at the beginning of the configure script.
59277           # Test for the AIX locale name.
59278           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59279             gt_cv_locale_ja=ja_JP
59280           else
59281             # Test for the locale name with explicit encoding suffix.
59282             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59283               gt_cv_locale_ja=ja_JP.EUC-JP
59284             else
59285               # Test for the HP-UX, OSF/1, NetBSD locale name.
59286               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59287                 gt_cv_locale_ja=ja_JP.eucJP
59288               else
59289                 # Test for the IRIX, FreeBSD locale name.
59290                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59291                   gt_cv_locale_ja=ja_JP.EUC
59292                 else
59293                   # Test for the Solaris 7 locale name.
59294                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59295                     gt_cv_locale_ja=ja
59296                   else
59297                     # Special test for NetBSD 1.6.
59298                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
59299                       gt_cv_locale_ja=ja_JP.eucJP
59300                     else
59301                       # None found.
59302                       gt_cv_locale_ja=none
59303                     fi
59304                   fi
59305                 fi
59306               fi
59307             fi
59308           fi
59309           ;;
59310       esac
59311     fi
59312     rm -fr conftest*
59313
59314 fi
59315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
59316 $as_echo "$gt_cv_locale_ja" >&6; }
59317   LOCALE_JA=$gt_cv_locale_ja
59318
59319
59320
59321
59322
59323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
59324 $as_echo_n "checking for a transitional chinese locale... " >&6; }
59325 if ${gt_cv_locale_zh_CN+:} false; then :
59326   $as_echo_n "(cached) " >&6
59327 else
59328
59329     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59330 /* end confdefs.h.  */
59331
59332 #include <locale.h>
59333 #include <stdlib.h>
59334 #include <time.h>
59335 #if HAVE_LANGINFO_CODESET
59336 # include <langinfo.h>
59337 #endif
59338 #include <stdlib.h>
59339 #include <string.h>
59340 struct tm t;
59341 char buf[16];
59342 int main ()
59343 {
59344   const char *p;
59345   /* Check whether the given locale name is recognized by the system.  */
59346 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59347   /* On native Windows, setlocale(category, "") looks at the system settings,
59348      not at the environment variables.  Also, when an encoding suffix such
59349      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59350      category of the locale to "C".  */
59351   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59352       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59353     return 1;
59354 #else
59355   if (setlocale (LC_ALL, "") == NULL) return 1;
59356 #endif
59357   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59358      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59359      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59360      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59361      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59362      some unit tests fail.
59363      On MirBSD 10, when an unsupported locale is specified, setlocale()
59364      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
59365 #if HAVE_LANGINFO_CODESET
59366   {
59367     const char *cs = nl_langinfo (CODESET);
59368     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
59369         || strcmp (cs, "UTF-8") == 0)
59370       return 1;
59371   }
59372 #endif
59373 #ifdef __CYGWIN__
59374   /* On Cygwin, avoid locale names without encoding suffix, because the
59375      locale_charset() function relies on the encoding suffix.  Note that
59376      LC_ALL is set on the command line.  */
59377   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59378 #endif
59379   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
59380      This excludes the UTF-8 encoding (except on MirBSD).  */
59381   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59382   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
59383   for (p = buf; *p != '\0'; p++)
59384     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
59385       return 1;
59386   /* Check whether a typical GB18030 multibyte sequence is recognized as a
59387      single wide character.  This excludes the GB2312 and GBK encodings.  */
59388   if (mblen ("\203\062\332\066", 5) != 4)
59389     return 1;
59390   return 0;
59391 }
59392
59393 _ACEOF
59394     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59395   (eval $ac_link) 2>&5
59396   ac_status=$?
59397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59398   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59399       case "$host_os" in
59400         # Handle native Windows specially, because there setlocale() interprets
59401         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59402         # "fr" or "fra" as "French" or "French_France.1252",
59403         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59404         # "ja" as "Japanese" or "Japanese_Japan.932",
59405         # and similar.
59406         mingw*)
59407           # Test for the hypothetical native Windows locale name.
59408           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59409             gt_cv_locale_zh_CN=Chinese_China.54936
59410           else
59411             # None found.
59412             gt_cv_locale_zh_CN=none
59413           fi
59414           ;;
59415         solaris2.8)
59416           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
59417           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
59418           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
59419           gt_cv_locale_zh_CN=none
59420           ;;
59421         *)
59422           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59423           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59424           # configure script would override the LC_ALL setting. Likewise for
59425           # LC_CTYPE, which is also set at the beginning of the configure script.
59426           # Test for the locale name without encoding suffix.
59427           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59428             gt_cv_locale_zh_CN=zh_CN
59429           else
59430             # Test for the locale name with explicit encoding suffix.
59431             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59432               gt_cv_locale_zh_CN=zh_CN.GB18030
59433             else
59434               # None found.
59435               gt_cv_locale_zh_CN=none
59436             fi
59437           fi
59438           ;;
59439       esac
59440     else
59441       # If there was a link error, due to mblen(), the system is so old that
59442       # it certainly doesn't have a chinese locale.
59443       gt_cv_locale_zh_CN=none
59444     fi
59445     rm -fr conftest*
59446
59447 fi
59448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
59449 $as_echo "$gt_cv_locale_zh_CN" >&6; }
59450   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
59451
59452
59453
59454
59455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
59456 $as_echo_n "checking for a french Unicode locale... " >&6; }
59457 if ${gt_cv_locale_fr_utf8+:} false; then :
59458   $as_echo_n "(cached) " >&6
59459 else
59460
59461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59462 /* end confdefs.h.  */
59463
59464 #include <locale.h>
59465 #include <time.h>
59466 #if HAVE_LANGINFO_CODESET
59467 # include <langinfo.h>
59468 #endif
59469 #include <stdlib.h>
59470 #include <string.h>
59471 struct tm t;
59472 char buf[16];
59473 int main () {
59474   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
59475      imitates locale dependent behaviour by looking at the environment
59476      variables, and all locales use the UTF-8 encoding.  */
59477 #if !(defined __BEOS__ || defined __HAIKU__)
59478   /* Check whether the given locale name is recognized by the system.  */
59479 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59480   /* On native Windows, setlocale(category, "") looks at the system settings,
59481      not at the environment variables.  Also, when an encoding suffix such
59482      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59483      category of the locale to "C".  */
59484   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59485       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59486     return 1;
59487 # else
59488   if (setlocale (LC_ALL, "") == NULL) return 1;
59489 # endif
59490   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59491      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59492      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59493      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59494      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59495      some unit tests fail.  */
59496 # if HAVE_LANGINFO_CODESET
59497   {
59498     const char *cs = nl_langinfo (CODESET);
59499     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
59500       return 1;
59501   }
59502 # endif
59503 # ifdef __CYGWIN__
59504   /* On Cygwin, avoid locale names without encoding suffix, because the
59505      locale_charset() function relies on the encoding suffix.  Note that
59506      LC_ALL is set on the command line.  */
59507   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59508 # endif
59509   /* Check whether in the abbreviation of the second month, the second
59510      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
59511      two bytes long, with UTF-8 encoding.  */
59512   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59513   if (strftime (buf, sizeof (buf), "%b", &t) < 4
59514       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
59515     return 1;
59516 #endif
59517 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
59518   /* Check whether the decimal separator is a comma.
59519      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
59520      are nl_langinfo(RADIXCHAR) are both ".".  */
59521   if (localeconv () ->decimal_point[0] != ',') return 1;
59522 #endif
59523   return 0;
59524 }
59525
59526 _ACEOF
59527     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59528   (eval $ac_link) 2>&5
59529   ac_status=$?
59530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59531   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59532       case "$host_os" in
59533         # Handle native Windows specially, because there setlocale() interprets
59534         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59535         # "fr" or "fra" as "French" or "French_France.1252",
59536         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59537         # "ja" as "Japanese" or "Japanese_Japan.932",
59538         # and similar.
59539         mingw*)
59540           # Test for the hypothetical native Windows locale name.
59541           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59542             gt_cv_locale_fr_utf8=French_France.65001
59543           else
59544             # None found.
59545             gt_cv_locale_fr_utf8=none
59546           fi
59547           ;;
59548         *)
59549           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59550           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59551           # configure script would override the LC_ALL setting. Likewise for
59552           # LC_CTYPE, which is also set at the beginning of the configure script.
59553           # Test for the usual locale name.
59554           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59555             gt_cv_locale_fr_utf8=fr_FR
59556           else
59557             # Test for the locale name with explicit encoding suffix.
59558             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59559               gt_cv_locale_fr_utf8=fr_FR.UTF-8
59560             else
59561               # Test for the Solaris 7 locale name.
59562               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59563                 gt_cv_locale_fr_utf8=fr.UTF-8
59564               else
59565                 # None found.
59566                 gt_cv_locale_fr_utf8=none
59567               fi
59568             fi
59569           fi
59570           ;;
59571       esac
59572     fi
59573     rm -fr conftest*
59574
59575 fi
59576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
59577 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
59578   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
59579
59580
59581
59582
59583
59584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
59585 $as_echo_n "checking for a traditional french locale... " >&6; }
59586 if ${gt_cv_locale_fr+:} false; then :
59587   $as_echo_n "(cached) " >&6
59588 else
59589
59590     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59591 /* end confdefs.h.  */
59592
59593 #include <locale.h>
59594 #include <time.h>
59595 #if HAVE_LANGINFO_CODESET
59596 # include <langinfo.h>
59597 #endif
59598 #include <stdlib.h>
59599 #include <string.h>
59600 struct tm t;
59601 char buf[16];
59602 int main () {
59603   /* Check whether the given locale name is recognized by the system.  */
59604 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59605   /* On native Windows, setlocale(category, "") looks at the system settings,
59606      not at the environment variables.  Also, when an encoding suffix such
59607      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59608      category of the locale to "C".  */
59609   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59610       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59611     return 1;
59612 #else
59613   if (setlocale (LC_ALL, "") == NULL) return 1;
59614 #endif
59615   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59616      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59617      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59618      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59619      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59620      some unit tests fail.
59621      On MirBSD 10, when an unsupported locale is specified, setlocale()
59622      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
59623 #if HAVE_LANGINFO_CODESET
59624   {
59625     const char *cs = nl_langinfo (CODESET);
59626     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
59627         || strcmp (cs, "UTF-8") == 0)
59628       return 1;
59629   }
59630 #endif
59631 #ifdef __CYGWIN__
59632   /* On Cygwin, avoid locale names without encoding suffix, because the
59633      locale_charset() function relies on the encoding suffix.  Note that
59634      LC_ALL is set on the command line.  */
59635   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
59636 #endif
59637   /* Check whether in the abbreviation of the second month, the second
59638      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
59639      one byte long. This excludes the UTF-8 encoding.  */
59640   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59641   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
59642 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
59643   /* Check whether the decimal separator is a comma.
59644      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
59645      are nl_langinfo(RADIXCHAR) are both ".".  */
59646   if (localeconv () ->decimal_point[0] != ',') return 1;
59647 #endif
59648   return 0;
59649 }
59650
59651 _ACEOF
59652     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59653   (eval $ac_link) 2>&5
59654   ac_status=$?
59655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59656   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59657       case "$host_os" in
59658         # Handle native Windows specially, because there setlocale() interprets
59659         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59660         # "fr" or "fra" as "French" or "French_France.1252",
59661         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59662         # "ja" as "Japanese" or "Japanese_Japan.932",
59663         # and similar.
59664         mingw*)
59665           # Test for the native Windows locale name.
59666           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59667             gt_cv_locale_fr=French_France.1252
59668           else
59669             # None found.
59670             gt_cv_locale_fr=none
59671           fi
59672           ;;
59673         *)
59674           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59675           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59676           # configure script would override the LC_ALL setting. Likewise for
59677           # LC_CTYPE, which is also set at the beginning of the configure script.
59678           # Test for the usual locale name.
59679           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59680             gt_cv_locale_fr=fr_FR
59681           else
59682             # Test for the locale name with explicit encoding suffix.
59683             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59684               gt_cv_locale_fr=fr_FR.ISO-8859-1
59685             else
59686               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
59687               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59688                 gt_cv_locale_fr=fr_FR.ISO8859-1
59689               else
59690                 # Test for the HP-UX locale name.
59691                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59692                   gt_cv_locale_fr=fr_FR.iso88591
59693                 else
59694                   # Test for the Solaris 7 locale name.
59695                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59696                     gt_cv_locale_fr=fr
59697                   else
59698                     # None found.
59699                     gt_cv_locale_fr=none
59700                   fi
59701                 fi
59702               fi
59703             fi
59704           fi
59705           ;;
59706       esac
59707     fi
59708     rm -fr conftest*
59709
59710 fi
59711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
59712 $as_echo "$gt_cv_locale_fr" >&6; }
59713   LOCALE_FR=$gt_cv_locale_fr
59714
59715
59716
59717
59718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
59719 $as_echo_n "checking for a french Unicode locale... " >&6; }
59720 if ${gt_cv_locale_fr_utf8+:} false; then :
59721   $as_echo_n "(cached) " >&6
59722 else
59723
59724     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59725 /* end confdefs.h.  */
59726
59727 #include <locale.h>
59728 #include <time.h>
59729 #if HAVE_LANGINFO_CODESET
59730 # include <langinfo.h>
59731 #endif
59732 #include <stdlib.h>
59733 #include <string.h>
59734 struct tm t;
59735 char buf[16];
59736 int main () {
59737   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
59738      imitates locale dependent behaviour by looking at the environment
59739      variables, and all locales use the UTF-8 encoding.  */
59740 #if !(defined __BEOS__ || defined __HAIKU__)
59741   /* Check whether the given locale name is recognized by the system.  */
59742 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59743   /* On native Windows, setlocale(category, "") looks at the system settings,
59744      not at the environment variables.  Also, when an encoding suffix such
59745      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59746      category of the locale to "C".  */
59747   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59748       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59749     return 1;
59750 # else
59751   if (setlocale (LC_ALL, "") == NULL) return 1;
59752 # endif
59753   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59754      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59755      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59756      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59757      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59758      some unit tests fail.  */
59759 # if HAVE_LANGINFO_CODESET
59760   {
59761     const char *cs = nl_langinfo (CODESET);
59762     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 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 the abbreviation of the second month, the second
59773      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
59774      two bytes long, with UTF-8 encoding.  */
59775   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59776   if (strftime (buf, sizeof (buf), "%b", &t) < 4
59777       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
59778     return 1;
59779 #endif
59780 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
59781   /* Check whether the decimal separator is a comma.
59782      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
59783      are nl_langinfo(RADIXCHAR) are both ".".  */
59784   if (localeconv () ->decimal_point[0] != ',') return 1;
59785 #endif
59786   return 0;
59787 }
59788
59789 _ACEOF
59790     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59791   (eval $ac_link) 2>&5
59792   ac_status=$?
59793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59794   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59795       case "$host_os" in
59796         # Handle native Windows specially, because there setlocale() interprets
59797         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59798         # "fr" or "fra" as "French" or "French_France.1252",
59799         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59800         # "ja" as "Japanese" or "Japanese_Japan.932",
59801         # and similar.
59802         mingw*)
59803           # Test for the hypothetical native Windows locale name.
59804           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59805             gt_cv_locale_fr_utf8=French_France.65001
59806           else
59807             # None found.
59808             gt_cv_locale_fr_utf8=none
59809           fi
59810           ;;
59811         *)
59812           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59813           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59814           # configure script would override the LC_ALL setting. Likewise for
59815           # LC_CTYPE, which is also set at the beginning of the configure script.
59816           # Test for the usual locale name.
59817           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59818             gt_cv_locale_fr_utf8=fr_FR
59819           else
59820             # Test for the locale name with explicit encoding suffix.
59821             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59822               gt_cv_locale_fr_utf8=fr_FR.UTF-8
59823             else
59824               # Test for the Solaris 7 locale name.
59825               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59826                 gt_cv_locale_fr_utf8=fr.UTF-8
59827               else
59828                 # None found.
59829                 gt_cv_locale_fr_utf8=none
59830               fi
59831             fi
59832           fi
59833           ;;
59834       esac
59835     fi
59836     rm -fr conftest*
59837
59838 fi
59839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
59840 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
59841   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
59842
59843
59844
59845
59846
59847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
59848 $as_echo_n "checking for a traditional japanese locale... " >&6; }
59849 if ${gt_cv_locale_ja+:} false; then :
59850   $as_echo_n "(cached) " >&6
59851 else
59852
59853     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59854 /* end confdefs.h.  */
59855
59856 #include <locale.h>
59857 #include <time.h>
59858 #if HAVE_LANGINFO_CODESET
59859 # include <langinfo.h>
59860 #endif
59861 #include <stdlib.h>
59862 #include <string.h>
59863 struct tm t;
59864 char buf[16];
59865 int main ()
59866 {
59867   const char *p;
59868   /* Check whether the given locale name is recognized by the system.  */
59869 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
59870   /* On native Windows, setlocale(category, "") looks at the system settings,
59871      not at the environment variables.  Also, when an encoding suffix such
59872      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
59873      category of the locale to "C".  */
59874   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
59875       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
59876     return 1;
59877 #else
59878   if (setlocale (LC_ALL, "") == NULL) return 1;
59879 #endif
59880   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
59881      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
59882      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
59883      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
59884      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
59885      some unit tests fail.
59886      On MirBSD 10, when an unsupported locale is specified, setlocale()
59887      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
59888 #if HAVE_LANGINFO_CODESET
59889   {
59890     const char *cs = nl_langinfo (CODESET);
59891     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
59892         || strcmp (cs, "UTF-8") == 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 MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
59903      on Cygwin 1.5.x.  */
59904   if (MB_CUR_MAX == 1)
59905     return 1;
59906   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
59907      This excludes the UTF-8 encoding (except on MirBSD).  */
59908   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
59909   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
59910   for (p = buf; *p != '\0'; p++)
59911     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
59912       return 1;
59913   return 0;
59914 }
59915
59916 _ACEOF
59917     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59918   (eval $ac_link) 2>&5
59919   ac_status=$?
59920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59921   test $ac_status = 0; } && test -s conftest$ac_exeext; then
59922       case "$host_os" in
59923         # Handle native Windows specially, because there setlocale() interprets
59924         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
59925         # "fr" or "fra" as "French" or "French_France.1252",
59926         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
59927         # "ja" as "Japanese" or "Japanese_Japan.932",
59928         # and similar.
59929         mingw*)
59930           # Note that on native Windows, the Japanese locale is
59931           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
59932           # cannot use it here.
59933           gt_cv_locale_ja=none
59934           ;;
59935         *)
59936           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
59937           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
59938           # configure script would override the LC_ALL setting. Likewise for
59939           # LC_CTYPE, which is also set at the beginning of the configure script.
59940           # Test for the AIX locale name.
59941           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59942             gt_cv_locale_ja=ja_JP
59943           else
59944             # Test for the locale name with explicit encoding suffix.
59945             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59946               gt_cv_locale_ja=ja_JP.EUC-JP
59947             else
59948               # Test for the HP-UX, OSF/1, NetBSD locale name.
59949               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59950                 gt_cv_locale_ja=ja_JP.eucJP
59951               else
59952                 # Test for the IRIX, FreeBSD locale name.
59953                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59954                   gt_cv_locale_ja=ja_JP.EUC
59955                 else
59956                   # Test for the Solaris 7 locale name.
59957                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
59958                     gt_cv_locale_ja=ja
59959                   else
59960                     # Special test for NetBSD 1.6.
59961                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
59962                       gt_cv_locale_ja=ja_JP.eucJP
59963                     else
59964                       # None found.
59965                       gt_cv_locale_ja=none
59966                     fi
59967                   fi
59968                 fi
59969               fi
59970             fi
59971           fi
59972           ;;
59973       esac
59974     fi
59975     rm -fr conftest*
59976
59977 fi
59978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
59979 $as_echo "$gt_cv_locale_ja" >&6; }
59980   LOCALE_JA=$gt_cv_locale_ja
59981
59982
59983
59984
59985
59986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
59987 $as_echo_n "checking for a transitional chinese locale... " >&6; }
59988 if ${gt_cv_locale_zh_CN+:} false; then :
59989   $as_echo_n "(cached) " >&6
59990 else
59991
59992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59993 /* end confdefs.h.  */
59994
59995 #include <locale.h>
59996 #include <stdlib.h>
59997 #include <time.h>
59998 #if HAVE_LANGINFO_CODESET
59999 # include <langinfo.h>
60000 #endif
60001 #include <stdlib.h>
60002 #include <string.h>
60003 struct tm t;
60004 char buf[16];
60005 int main ()
60006 {
60007   const char *p;
60008   /* Check whether the given locale name is recognized by the system.  */
60009 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60010   /* On native Windows, setlocale(category, "") looks at the system settings,
60011      not at the environment variables.  Also, when an encoding suffix such
60012      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60013      category of the locale to "C".  */
60014   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60015       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60016     return 1;
60017 #else
60018   if (setlocale (LC_ALL, "") == NULL) return 1;
60019 #endif
60020   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60021      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60022      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60023      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60024      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60025      some unit tests fail.
60026      On MirBSD 10, when an unsupported locale is specified, setlocale()
60027      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
60028 #if HAVE_LANGINFO_CODESET
60029   {
60030     const char *cs = nl_langinfo (CODESET);
60031     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
60032         || strcmp (cs, "UTF-8") == 0)
60033       return 1;
60034   }
60035 #endif
60036 #ifdef __CYGWIN__
60037   /* On Cygwin, avoid locale names without encoding suffix, because the
60038      locale_charset() function relies on the encoding suffix.  Note that
60039      LC_ALL is set on the command line.  */
60040   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60041 #endif
60042   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
60043      This excludes the UTF-8 encoding (except on MirBSD).  */
60044   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60045   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
60046   for (p = buf; *p != '\0'; p++)
60047     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
60048       return 1;
60049   /* Check whether a typical GB18030 multibyte sequence is recognized as a
60050      single wide character.  This excludes the GB2312 and GBK encodings.  */
60051   if (mblen ("\203\062\332\066", 5) != 4)
60052     return 1;
60053   return 0;
60054 }
60055
60056 _ACEOF
60057     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60058   (eval $ac_link) 2>&5
60059   ac_status=$?
60060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60061   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60062       case "$host_os" in
60063         # Handle native Windows specially, because there setlocale() interprets
60064         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60065         # "fr" or "fra" as "French" or "French_France.1252",
60066         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60067         # "ja" as "Japanese" or "Japanese_Japan.932",
60068         # and similar.
60069         mingw*)
60070           # Test for the hypothetical native Windows locale name.
60071           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60072             gt_cv_locale_zh_CN=Chinese_China.54936
60073           else
60074             # None found.
60075             gt_cv_locale_zh_CN=none
60076           fi
60077           ;;
60078         solaris2.8)
60079           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
60080           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
60081           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
60082           gt_cv_locale_zh_CN=none
60083           ;;
60084         *)
60085           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60086           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60087           # configure script would override the LC_ALL setting. Likewise for
60088           # LC_CTYPE, which is also set at the beginning of the configure script.
60089           # Test for the locale name without encoding suffix.
60090           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60091             gt_cv_locale_zh_CN=zh_CN
60092           else
60093             # Test for the locale name with explicit encoding suffix.
60094             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60095               gt_cv_locale_zh_CN=zh_CN.GB18030
60096             else
60097               # None found.
60098               gt_cv_locale_zh_CN=none
60099             fi
60100           fi
60101           ;;
60102       esac
60103     else
60104       # If there was a link error, due to mblen(), the system is so old that
60105       # it certainly doesn't have a chinese locale.
60106       gt_cv_locale_zh_CN=none
60107     fi
60108     rm -fr conftest*
60109
60110 fi
60111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
60112 $as_echo "$gt_cv_locale_zh_CN" >&6; }
60113   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
60114
60115
60116
60117
60118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
60119 $as_echo_n "checking for a french Unicode locale... " >&6; }
60120 if ${gt_cv_locale_fr_utf8+:} false; then :
60121   $as_echo_n "(cached) " >&6
60122 else
60123
60124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60125 /* end confdefs.h.  */
60126
60127 #include <locale.h>
60128 #include <time.h>
60129 #if HAVE_LANGINFO_CODESET
60130 # include <langinfo.h>
60131 #endif
60132 #include <stdlib.h>
60133 #include <string.h>
60134 struct tm t;
60135 char buf[16];
60136 int main () {
60137   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
60138      imitates locale dependent behaviour by looking at the environment
60139      variables, and all locales use the UTF-8 encoding.  */
60140 #if !(defined __BEOS__ || defined __HAIKU__)
60141   /* Check whether the given locale name is recognized by the system.  */
60142 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60143   /* On native Windows, setlocale(category, "") looks at the system settings,
60144      not at the environment variables.  Also, when an encoding suffix such
60145      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60146      category of the locale to "C".  */
60147   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60148       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60149     return 1;
60150 # else
60151   if (setlocale (LC_ALL, "") == NULL) return 1;
60152 # endif
60153   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60154      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60155      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60156      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60157      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60158      some unit tests fail.  */
60159 # if HAVE_LANGINFO_CODESET
60160   {
60161     const char *cs = nl_langinfo (CODESET);
60162     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
60163       return 1;
60164   }
60165 # endif
60166 # ifdef __CYGWIN__
60167   /* On Cygwin, avoid locale names without encoding suffix, because the
60168      locale_charset() function relies on the encoding suffix.  Note that
60169      LC_ALL is set on the command line.  */
60170   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60171 # endif
60172   /* Check whether in the abbreviation of the second month, the second
60173      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
60174      two bytes long, with UTF-8 encoding.  */
60175   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60176   if (strftime (buf, sizeof (buf), "%b", &t) < 4
60177       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
60178     return 1;
60179 #endif
60180 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
60181   /* Check whether the decimal separator is a comma.
60182      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
60183      are nl_langinfo(RADIXCHAR) are both ".".  */
60184   if (localeconv () ->decimal_point[0] != ',') return 1;
60185 #endif
60186   return 0;
60187 }
60188
60189 _ACEOF
60190     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60191   (eval $ac_link) 2>&5
60192   ac_status=$?
60193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60194   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60195       case "$host_os" in
60196         # Handle native Windows specially, because there setlocale() interprets
60197         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60198         # "fr" or "fra" as "French" or "French_France.1252",
60199         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60200         # "ja" as "Japanese" or "Japanese_Japan.932",
60201         # and similar.
60202         mingw*)
60203           # Test for the hypothetical native Windows locale name.
60204           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60205             gt_cv_locale_fr_utf8=French_France.65001
60206           else
60207             # None found.
60208             gt_cv_locale_fr_utf8=none
60209           fi
60210           ;;
60211         *)
60212           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60213           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60214           # configure script would override the LC_ALL setting. Likewise for
60215           # LC_CTYPE, which is also set at the beginning of the configure script.
60216           # Test for the usual locale name.
60217           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60218             gt_cv_locale_fr_utf8=fr_FR
60219           else
60220             # Test for the locale name with explicit encoding suffix.
60221             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60222               gt_cv_locale_fr_utf8=fr_FR.UTF-8
60223             else
60224               # Test for the Solaris 7 locale name.
60225               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60226                 gt_cv_locale_fr_utf8=fr.UTF-8
60227               else
60228                 # None found.
60229                 gt_cv_locale_fr_utf8=none
60230               fi
60231             fi
60232           fi
60233           ;;
60234       esac
60235     fi
60236     rm -fr conftest*
60237
60238 fi
60239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
60240 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
60241   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
60242
60243
60244
60245
60246
60247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
60248 $as_echo_n "checking for a transitional chinese locale... " >&6; }
60249 if ${gt_cv_locale_zh_CN+:} false; then :
60250   $as_echo_n "(cached) " >&6
60251 else
60252
60253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60254 /* end confdefs.h.  */
60255
60256 #include <locale.h>
60257 #include <stdlib.h>
60258 #include <time.h>
60259 #if HAVE_LANGINFO_CODESET
60260 # include <langinfo.h>
60261 #endif
60262 #include <stdlib.h>
60263 #include <string.h>
60264 struct tm t;
60265 char buf[16];
60266 int main ()
60267 {
60268   const char *p;
60269   /* Check whether the given locale name is recognized by the system.  */
60270 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60271   /* On native Windows, setlocale(category, "") looks at the system settings,
60272      not at the environment variables.  Also, when an encoding suffix such
60273      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60274      category of the locale to "C".  */
60275   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60276       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60277     return 1;
60278 #else
60279   if (setlocale (LC_ALL, "") == NULL) return 1;
60280 #endif
60281   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60282      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60283      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60284      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60285      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60286      some unit tests fail.
60287      On MirBSD 10, when an unsupported locale is specified, setlocale()
60288      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
60289 #if HAVE_LANGINFO_CODESET
60290   {
60291     const char *cs = nl_langinfo (CODESET);
60292     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
60293         || strcmp (cs, "UTF-8") == 0)
60294       return 1;
60295   }
60296 #endif
60297 #ifdef __CYGWIN__
60298   /* On Cygwin, avoid locale names without encoding suffix, because the
60299      locale_charset() function relies on the encoding suffix.  Note that
60300      LC_ALL is set on the command line.  */
60301   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60302 #endif
60303   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
60304      This excludes the UTF-8 encoding (except on MirBSD).  */
60305   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60306   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
60307   for (p = buf; *p != '\0'; p++)
60308     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
60309       return 1;
60310   /* Check whether a typical GB18030 multibyte sequence is recognized as a
60311      single wide character.  This excludes the GB2312 and GBK encodings.  */
60312   if (mblen ("\203\062\332\066", 5) != 4)
60313     return 1;
60314   return 0;
60315 }
60316
60317 _ACEOF
60318     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60319   (eval $ac_link) 2>&5
60320   ac_status=$?
60321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60322   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60323       case "$host_os" in
60324         # Handle native Windows specially, because there setlocale() interprets
60325         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60326         # "fr" or "fra" as "French" or "French_France.1252",
60327         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60328         # "ja" as "Japanese" or "Japanese_Japan.932",
60329         # and similar.
60330         mingw*)
60331           # Test for the hypothetical native Windows locale name.
60332           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60333             gt_cv_locale_zh_CN=Chinese_China.54936
60334           else
60335             # None found.
60336             gt_cv_locale_zh_CN=none
60337           fi
60338           ;;
60339         solaris2.8)
60340           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
60341           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
60342           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
60343           gt_cv_locale_zh_CN=none
60344           ;;
60345         *)
60346           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60347           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60348           # configure script would override the LC_ALL setting. Likewise for
60349           # LC_CTYPE, which is also set at the beginning of the configure script.
60350           # Test for the locale name without encoding suffix.
60351           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60352             gt_cv_locale_zh_CN=zh_CN
60353           else
60354             # Test for the locale name with explicit encoding suffix.
60355             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60356               gt_cv_locale_zh_CN=zh_CN.GB18030
60357             else
60358               # None found.
60359               gt_cv_locale_zh_CN=none
60360             fi
60361           fi
60362           ;;
60363       esac
60364     else
60365       # If there was a link error, due to mblen(), the system is so old that
60366       # it certainly doesn't have a chinese locale.
60367       gt_cv_locale_zh_CN=none
60368     fi
60369     rm -fr conftest*
60370
60371 fi
60372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
60373 $as_echo "$gt_cv_locale_zh_CN" >&6; }
60374   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
60375
60376
60377
60378
60379
60380   if false; then
60381     REPLACE_MBTOWC=1
60382   fi
60383
60384   if test $REPLACE_MBTOWC = 1; then
60385
60386
60387
60388
60389
60390
60391
60392
60393   gltests_LIBOBJS="$gltests_LIBOBJS mbtowc.$ac_objext"
60394
60395
60396   :
60397
60398   fi
60399
60400
60401
60402
60403
60404     if test "$GNULIB_MBTOWC" != 1; then
60405         if test "$GNULIB_MBTOWC" = 0; then
60406       GNULIB_MBTOWC=$gl_module_indicator_condition
60407     else
60408       GNULIB_MBTOWC="($GNULIB_MBTOWC || $gl_module_indicator_condition)"
60409     fi
60410   fi
60411
60412
60413
60414
60415
60416 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
60417
60418
60419
60420
60421
60422
60423   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
60424   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
60425   # irrelevant for anonymous mappings.
60426   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
60427 if test "x$ac_cv_func_mmap" = xyes; then :
60428   gl_have_mmap=yes
60429 else
60430   gl_have_mmap=no
60431 fi
60432
60433
60434   # Try to allow MAP_ANONYMOUS.
60435   gl_have_mmap_anonymous=no
60436   if test $gl_have_mmap = yes; then
60437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
60438 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
60439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60440 /* end confdefs.h.  */
60441
60442 #include <sys/mman.h>
60443 #ifdef MAP_ANONYMOUS
60444     I cannot identify this map
60445 #endif
60446
60447 _ACEOF
60448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60449   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
60450   gl_have_mmap_anonymous=yes
60451 fi
60452 rm -f conftest*
60453
60454     if test $gl_have_mmap_anonymous != yes; then
60455       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60456 /* end confdefs.h.  */
60457
60458 #include <sys/mman.h>
60459 #ifdef MAP_ANON
60460     I cannot identify this map
60461 #endif
60462
60463 _ACEOF
60464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60465   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
60466
60467 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
60468
60469          gl_have_mmap_anonymous=yes
60470 fi
60471 rm -f conftest*
60472
60473     fi
60474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
60475 $as_echo "$gl_have_mmap_anonymous" >&6; }
60476     if test $gl_have_mmap_anonymous = yes; then
60477
60478 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
60479
60480     fi
60481   fi
60482
60483
60484
60485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60486 /* end confdefs.h.  */
60487 [
60488   #if defined _MSC_VER || defined __MINGW32__
60489     notposix
60490   #endif
60491     ]
60492 _ACEOF
60493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60494   $EGREP "notposix" >/dev/null 2>&1; then :
60495   posix_spawn_ported=no
60496 else
60497   posix_spawn_ported=yes
60498 fi
60499 rm -f conftest*
60500
60501    if test $posix_spawn_ported = yes; then
60502   POSIX_SPAWN_PORTED_TRUE=
60503   POSIX_SPAWN_PORTED_FALSE='#'
60504 else
60505   POSIX_SPAWN_PORTED_TRUE='#'
60506   POSIX_SPAWN_PORTED_FALSE=
60507 fi
60508
60509
60510
60511      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
60512 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
60513 if ${gl_cv_func_svid_putenv+:} false; then :
60514   $as_echo_n "(cached) " >&6
60515 else
60516   if test "$cross_compiling" = yes; then :
60517                case "$host_os" in
60518                         # Guess yes on glibc systems.
60519                 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
60520                         # If we don't know, assume the worst.
60521                 *)      gl_cv_func_svid_putenv="guessing no" ;;
60522               esac
60523
60524 else
60525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60526 /* end confdefs.h.  */
60527 $ac_includes_default
60528 int
60529 main ()
60530 {
60531
60532     /* Put it in env.  */
60533     if (putenv ("CONFTEST_putenv=val"))
60534       return 1;
60535
60536     /* Try to remove it.  */
60537     if (putenv ("CONFTEST_putenv"))
60538       return 2;
60539
60540     /* Make sure it was deleted.  */
60541     if (getenv ("CONFTEST_putenv") != 0)
60542       return 3;
60543
60544     return 0;
60545
60546   ;
60547   return 0;
60548 }
60549 _ACEOF
60550 if ac_fn_c_try_run "$LINENO"; then :
60551   gl_cv_func_svid_putenv=yes
60552 else
60553   gl_cv_func_svid_putenv=no
60554 fi
60555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
60556   conftest.$ac_objext conftest.beam conftest.$ac_ext
60557 fi
60558
60559
60560 fi
60561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
60562 $as_echo "$gl_cv_func_svid_putenv" >&6; }
60563   case "$gl_cv_func_svid_putenv" in
60564     *yes) ;;
60565     *)
60566       REPLACE_PUTENV=1
60567       ;;
60568   esac
60569
60570   if test $REPLACE_PUTENV = 1; then
60571
60572
60573
60574
60575
60576
60577
60578
60579   gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext"
60580
60581
60582   ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
60583 if test "x$ac_cv_have_decl__putenv" = xyes; then :
60584   ac_have_decl=1
60585 else
60586   ac_have_decl=0
60587 fi
60588
60589 cat >>confdefs.h <<_ACEOF
60590 #define HAVE_DECL__PUTENV $ac_have_decl
60591 _ACEOF
60592
60593
60594   fi
60595
60596
60597
60598
60599
60600     if test "$GNULIB_PUTENV" != 1; then
60601         if test "$GNULIB_PUTENV" = 0; then
60602       GNULIB_PUTENV=$gl_module_indicator_condition
60603     else
60604       GNULIB_PUTENV="($GNULIB_PUTENV || $gl_module_indicator_condition)"
60605     fi
60606   fi
60607
60608
60609
60610
60611
60612 $as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
60613
60614
60615
60616
60617
60618
60619   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
60620   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
60621   # irrelevant for anonymous mappings.
60622   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
60623 if test "x$ac_cv_func_mmap" = xyes; then :
60624   gl_have_mmap=yes
60625 else
60626   gl_have_mmap=no
60627 fi
60628
60629
60630   # Try to allow MAP_ANONYMOUS.
60631   gl_have_mmap_anonymous=no
60632   if test $gl_have_mmap = yes; then
60633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
60634 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
60635     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60636 /* end confdefs.h.  */
60637
60638 #include <sys/mman.h>
60639 #ifdef MAP_ANONYMOUS
60640     I cannot identify this map
60641 #endif
60642
60643 _ACEOF
60644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60645   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
60646   gl_have_mmap_anonymous=yes
60647 fi
60648 rm -f conftest*
60649
60650     if test $gl_have_mmap_anonymous != yes; then
60651       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60652 /* end confdefs.h.  */
60653
60654 #include <sys/mman.h>
60655 #ifdef MAP_ANON
60656     I cannot identify this map
60657 #endif
60658
60659 _ACEOF
60660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60661   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
60662
60663 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
60664
60665          gl_have_mmap_anonymous=yes
60666 fi
60667 rm -f conftest*
60668
60669     fi
60670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
60671 $as_echo "$gl_have_mmap_anonymous" >&6; }
60672     if test $gl_have_mmap_anonymous = yes; then
60673
60674 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
60675
60676     fi
60677   fi
60678
60679
60680
60681
60682
60683
60684   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
60685   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
60686   # irrelevant for anonymous mappings.
60687   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
60688 if test "x$ac_cv_func_mmap" = xyes; then :
60689   gl_have_mmap=yes
60690 else
60691   gl_have_mmap=no
60692 fi
60693
60694
60695   # Try to allow MAP_ANONYMOUS.
60696   gl_have_mmap_anonymous=no
60697   if test $gl_have_mmap = yes; then
60698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
60699 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
60700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60701 /* end confdefs.h.  */
60702
60703 #include <sys/mman.h>
60704 #ifdef MAP_ANONYMOUS
60705     I cannot identify this map
60706 #endif
60707
60708 _ACEOF
60709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60710   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
60711   gl_have_mmap_anonymous=yes
60712 fi
60713 rm -f conftest*
60714
60715     if test $gl_have_mmap_anonymous != yes; then
60716       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60717 /* end confdefs.h.  */
60718
60719 #include <sys/mman.h>
60720 #ifdef MAP_ANON
60721     I cannot identify this map
60722 #endif
60723
60724 _ACEOF
60725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60726   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
60727
60728 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
60729
60730          gl_have_mmap_anonymous=yes
60731 fi
60732 rm -f conftest*
60733
60734     fi
60735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
60736 $as_echo "$gl_have_mmap_anonymous" >&6; }
60737     if test $gl_have_mmap_anonymous = yes; then
60738
60739 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
60740
60741     fi
60742   fi
60743
60744
60745
60746   :
60747
60748
60749
60750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
60751 $as_echo_n "checking for a traditional french locale... " >&6; }
60752 if ${gt_cv_locale_fr+:} false; then :
60753   $as_echo_n "(cached) " >&6
60754 else
60755
60756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60757 /* end confdefs.h.  */
60758
60759 #include <locale.h>
60760 #include <time.h>
60761 #if HAVE_LANGINFO_CODESET
60762 # include <langinfo.h>
60763 #endif
60764 #include <stdlib.h>
60765 #include <string.h>
60766 struct tm t;
60767 char buf[16];
60768 int main () {
60769   /* Check whether the given locale name is recognized by the system.  */
60770 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60771   /* On native Windows, setlocale(category, "") looks at the system settings,
60772      not at the environment variables.  Also, when an encoding suffix such
60773      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60774      category of the locale to "C".  */
60775   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60776       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60777     return 1;
60778 #else
60779   if (setlocale (LC_ALL, "") == NULL) return 1;
60780 #endif
60781   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60782      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60783      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60784      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60785      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60786      some unit tests fail.
60787      On MirBSD 10, when an unsupported locale is specified, setlocale()
60788      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
60789 #if HAVE_LANGINFO_CODESET
60790   {
60791     const char *cs = nl_langinfo (CODESET);
60792     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
60793         || strcmp (cs, "UTF-8") == 0)
60794       return 1;
60795   }
60796 #endif
60797 #ifdef __CYGWIN__
60798   /* On Cygwin, avoid locale names without encoding suffix, because the
60799      locale_charset() function relies on the encoding suffix.  Note that
60800      LC_ALL is set on the command line.  */
60801   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60802 #endif
60803   /* Check whether in the abbreviation of the second month, the second
60804      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
60805      one byte long. This excludes the UTF-8 encoding.  */
60806   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60807   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
60808 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
60809   /* Check whether the decimal separator is a comma.
60810      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
60811      are nl_langinfo(RADIXCHAR) are both ".".  */
60812   if (localeconv () ->decimal_point[0] != ',') return 1;
60813 #endif
60814   return 0;
60815 }
60816
60817 _ACEOF
60818     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60819   (eval $ac_link) 2>&5
60820   ac_status=$?
60821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60822   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60823       case "$host_os" in
60824         # Handle native Windows specially, because there setlocale() interprets
60825         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60826         # "fr" or "fra" as "French" or "French_France.1252",
60827         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60828         # "ja" as "Japanese" or "Japanese_Japan.932",
60829         # and similar.
60830         mingw*)
60831           # Test for the native Windows locale name.
60832           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60833             gt_cv_locale_fr=French_France.1252
60834           else
60835             # None found.
60836             gt_cv_locale_fr=none
60837           fi
60838           ;;
60839         *)
60840           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60841           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60842           # configure script would override the LC_ALL setting. Likewise for
60843           # LC_CTYPE, which is also set at the beginning of the configure script.
60844           # Test for the usual locale name.
60845           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60846             gt_cv_locale_fr=fr_FR
60847           else
60848             # Test for the locale name with explicit encoding suffix.
60849             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60850               gt_cv_locale_fr=fr_FR.ISO-8859-1
60851             else
60852               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
60853               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60854                 gt_cv_locale_fr=fr_FR.ISO8859-1
60855               else
60856                 # Test for the HP-UX locale name.
60857                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60858                   gt_cv_locale_fr=fr_FR.iso88591
60859                 else
60860                   # Test for the Solaris 7 locale name.
60861                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60862                     gt_cv_locale_fr=fr
60863                   else
60864                     # None found.
60865                     gt_cv_locale_fr=none
60866                   fi
60867                 fi
60868               fi
60869             fi
60870           fi
60871           ;;
60872       esac
60873     fi
60874     rm -fr conftest*
60875
60876 fi
60877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
60878 $as_echo "$gt_cv_locale_fr" >&6; }
60879   LOCALE_FR=$gt_cv_locale_fr
60880
60881
60882
60883
60884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
60885 $as_echo_n "checking for a french Unicode locale... " >&6; }
60886 if ${gt_cv_locale_fr_utf8+:} false; then :
60887   $as_echo_n "(cached) " >&6
60888 else
60889
60890     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60891 /* end confdefs.h.  */
60892
60893 #include <locale.h>
60894 #include <time.h>
60895 #if HAVE_LANGINFO_CODESET
60896 # include <langinfo.h>
60897 #endif
60898 #include <stdlib.h>
60899 #include <string.h>
60900 struct tm t;
60901 char buf[16];
60902 int main () {
60903   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
60904      imitates locale dependent behaviour by looking at the environment
60905      variables, and all locales use the UTF-8 encoding.  */
60906 #if !(defined __BEOS__ || defined __HAIKU__)
60907   /* Check whether the given locale name is recognized by the system.  */
60908 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
60909   /* On native Windows, setlocale(category, "") looks at the system settings,
60910      not at the environment variables.  Also, when an encoding suffix such
60911      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
60912      category of the locale to "C".  */
60913   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
60914       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
60915     return 1;
60916 # else
60917   if (setlocale (LC_ALL, "") == NULL) return 1;
60918 # endif
60919   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
60920      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
60921      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
60922      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
60923      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
60924      some unit tests fail.  */
60925 # if HAVE_LANGINFO_CODESET
60926   {
60927     const char *cs = nl_langinfo (CODESET);
60928     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
60929       return 1;
60930   }
60931 # endif
60932 # ifdef __CYGWIN__
60933   /* On Cygwin, avoid locale names without encoding suffix, because the
60934      locale_charset() function relies on the encoding suffix.  Note that
60935      LC_ALL is set on the command line.  */
60936   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
60937 # endif
60938   /* Check whether in the abbreviation of the second month, the second
60939      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
60940      two bytes long, with UTF-8 encoding.  */
60941   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
60942   if (strftime (buf, sizeof (buf), "%b", &t) < 4
60943       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
60944     return 1;
60945 #endif
60946 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
60947   /* Check whether the decimal separator is a comma.
60948      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
60949      are nl_langinfo(RADIXCHAR) are both ".".  */
60950   if (localeconv () ->decimal_point[0] != ',') return 1;
60951 #endif
60952   return 0;
60953 }
60954
60955 _ACEOF
60956     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60957   (eval $ac_link) 2>&5
60958   ac_status=$?
60959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60960   test $ac_status = 0; } && test -s conftest$ac_exeext; then
60961       case "$host_os" in
60962         # Handle native Windows specially, because there setlocale() interprets
60963         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
60964         # "fr" or "fra" as "French" or "French_France.1252",
60965         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
60966         # "ja" as "Japanese" or "Japanese_Japan.932",
60967         # and similar.
60968         mingw*)
60969           # Test for the hypothetical native Windows locale name.
60970           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60971             gt_cv_locale_fr_utf8=French_France.65001
60972           else
60973             # None found.
60974             gt_cv_locale_fr_utf8=none
60975           fi
60976           ;;
60977         *)
60978           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
60979           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
60980           # configure script would override the LC_ALL setting. Likewise for
60981           # LC_CTYPE, which is also set at the beginning of the configure script.
60982           # Test for the usual locale name.
60983           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60984             gt_cv_locale_fr_utf8=fr_FR
60985           else
60986             # Test for the locale name with explicit encoding suffix.
60987             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60988               gt_cv_locale_fr_utf8=fr_FR.UTF-8
60989             else
60990               # Test for the Solaris 7 locale name.
60991               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
60992                 gt_cv_locale_fr_utf8=fr.UTF-8
60993               else
60994                 # None found.
60995                 gt_cv_locale_fr_utf8=none
60996               fi
60997             fi
60998           fi
60999           ;;
61000       esac
61001     fi
61002     rm -fr conftest*
61003
61004 fi
61005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
61006 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
61007   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
61008
61009
61010
61011
61012
61013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
61014 $as_echo_n "checking for a traditional japanese locale... " >&6; }
61015 if ${gt_cv_locale_ja+:} false; then :
61016   $as_echo_n "(cached) " >&6
61017 else
61018
61019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61020 /* end confdefs.h.  */
61021
61022 #include <locale.h>
61023 #include <time.h>
61024 #if HAVE_LANGINFO_CODESET
61025 # include <langinfo.h>
61026 #endif
61027 #include <stdlib.h>
61028 #include <string.h>
61029 struct tm t;
61030 char buf[16];
61031 int main ()
61032 {
61033   const char *p;
61034   /* Check whether the given locale name is recognized by the system.  */
61035 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
61036   /* On native Windows, setlocale(category, "") looks at the system settings,
61037      not at the environment variables.  Also, when an encoding suffix such
61038      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
61039      category of the locale to "C".  */
61040   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
61041       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
61042     return 1;
61043 #else
61044   if (setlocale (LC_ALL, "") == NULL) return 1;
61045 #endif
61046   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
61047      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
61048      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
61049      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
61050      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
61051      some unit tests fail.
61052      On MirBSD 10, when an unsupported locale is specified, setlocale()
61053      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
61054 #if HAVE_LANGINFO_CODESET
61055   {
61056     const char *cs = nl_langinfo (CODESET);
61057     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
61058         || strcmp (cs, "UTF-8") == 0)
61059       return 1;
61060   }
61061 #endif
61062 #ifdef __CYGWIN__
61063   /* On Cygwin, avoid locale names without encoding suffix, because the
61064      locale_charset() function relies on the encoding suffix.  Note that
61065      LC_ALL is set on the command line.  */
61066   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
61067 #endif
61068   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
61069      on Cygwin 1.5.x.  */
61070   if (MB_CUR_MAX == 1)
61071     return 1;
61072   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
61073      This excludes the UTF-8 encoding (except on MirBSD).  */
61074   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
61075   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
61076   for (p = buf; *p != '\0'; p++)
61077     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
61078       return 1;
61079   return 0;
61080 }
61081
61082 _ACEOF
61083     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
61084   (eval $ac_link) 2>&5
61085   ac_status=$?
61086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61087   test $ac_status = 0; } && test -s conftest$ac_exeext; then
61088       case "$host_os" in
61089         # Handle native Windows specially, because there setlocale() interprets
61090         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
61091         # "fr" or "fra" as "French" or "French_France.1252",
61092         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
61093         # "ja" as "Japanese" or "Japanese_Japan.932",
61094         # and similar.
61095         mingw*)
61096           # Note that on native Windows, the Japanese locale is
61097           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
61098           # cannot use it here.
61099           gt_cv_locale_ja=none
61100           ;;
61101         *)
61102           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
61103           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
61104           # configure script would override the LC_ALL setting. Likewise for
61105           # LC_CTYPE, which is also set at the beginning of the configure script.
61106           # Test for the AIX locale name.
61107           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61108             gt_cv_locale_ja=ja_JP
61109           else
61110             # Test for the locale name with explicit encoding suffix.
61111             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61112               gt_cv_locale_ja=ja_JP.EUC-JP
61113             else
61114               # Test for the HP-UX, OSF/1, NetBSD locale name.
61115               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61116                 gt_cv_locale_ja=ja_JP.eucJP
61117               else
61118                 # Test for the IRIX, FreeBSD locale name.
61119                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61120                   gt_cv_locale_ja=ja_JP.EUC
61121                 else
61122                   # Test for the Solaris 7 locale name.
61123                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61124                     gt_cv_locale_ja=ja
61125                   else
61126                     # Special test for NetBSD 1.6.
61127                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
61128                       gt_cv_locale_ja=ja_JP.eucJP
61129                     else
61130                       # None found.
61131                       gt_cv_locale_ja=none
61132                     fi
61133                   fi
61134                 fi
61135               fi
61136             fi
61137           fi
61138           ;;
61139       esac
61140     fi
61141     rm -fr conftest*
61142
61143 fi
61144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
61145 $as_echo "$gt_cv_locale_ja" >&6; }
61146   LOCALE_JA=$gt_cv_locale_ja
61147
61148
61149
61150
61151
61152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
61153 $as_echo_n "checking for a transitional chinese locale... " >&6; }
61154 if ${gt_cv_locale_zh_CN+:} false; then :
61155   $as_echo_n "(cached) " >&6
61156 else
61157
61158     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61159 /* end confdefs.h.  */
61160
61161 #include <locale.h>
61162 #include <stdlib.h>
61163 #include <time.h>
61164 #if HAVE_LANGINFO_CODESET
61165 # include <langinfo.h>
61166 #endif
61167 #include <stdlib.h>
61168 #include <string.h>
61169 struct tm t;
61170 char buf[16];
61171 int main ()
61172 {
61173   const char *p;
61174   /* Check whether the given locale name is recognized by the system.  */
61175 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
61176   /* On native Windows, setlocale(category, "") looks at the system settings,
61177      not at the environment variables.  Also, when an encoding suffix such
61178      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
61179      category of the locale to "C".  */
61180   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
61181       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
61182     return 1;
61183 #else
61184   if (setlocale (LC_ALL, "") == NULL) return 1;
61185 #endif
61186   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
61187      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
61188      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
61189      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
61190      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
61191      some unit tests fail.
61192      On MirBSD 10, when an unsupported locale is specified, setlocale()
61193      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
61194 #if HAVE_LANGINFO_CODESET
61195   {
61196     const char *cs = nl_langinfo (CODESET);
61197     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
61198         || strcmp (cs, "UTF-8") == 0)
61199       return 1;
61200   }
61201 #endif
61202 #ifdef __CYGWIN__
61203   /* On Cygwin, avoid locale names without encoding suffix, because the
61204      locale_charset() function relies on the encoding suffix.  Note that
61205      LC_ALL is set on the command line.  */
61206   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
61207 #endif
61208   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
61209      This excludes the UTF-8 encoding (except on MirBSD).  */
61210   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
61211   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
61212   for (p = buf; *p != '\0'; p++)
61213     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
61214       return 1;
61215   /* Check whether a typical GB18030 multibyte sequence is recognized as a
61216      single wide character.  This excludes the GB2312 and GBK encodings.  */
61217   if (mblen ("\203\062\332\066", 5) != 4)
61218     return 1;
61219   return 0;
61220 }
61221
61222 _ACEOF
61223     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
61224   (eval $ac_link) 2>&5
61225   ac_status=$?
61226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61227   test $ac_status = 0; } && test -s conftest$ac_exeext; then
61228       case "$host_os" in
61229         # Handle native Windows specially, because there setlocale() interprets
61230         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
61231         # "fr" or "fra" as "French" or "French_France.1252",
61232         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
61233         # "ja" as "Japanese" or "Japanese_Japan.932",
61234         # and similar.
61235         mingw*)
61236           # Test for the hypothetical native Windows locale name.
61237           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61238             gt_cv_locale_zh_CN=Chinese_China.54936
61239           else
61240             # None found.
61241             gt_cv_locale_zh_CN=none
61242           fi
61243           ;;
61244         solaris2.8)
61245           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
61246           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
61247           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
61248           gt_cv_locale_zh_CN=none
61249           ;;
61250         *)
61251           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
61252           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
61253           # configure script would override the LC_ALL setting. Likewise for
61254           # LC_CTYPE, which is also set at the beginning of the configure script.
61255           # Test for the locale name without encoding suffix.
61256           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61257             gt_cv_locale_zh_CN=zh_CN
61258           else
61259             # Test for the locale name with explicit encoding suffix.
61260             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
61261               gt_cv_locale_zh_CN=zh_CN.GB18030
61262             else
61263               # None found.
61264               gt_cv_locale_zh_CN=none
61265             fi
61266           fi
61267           ;;
61268       esac
61269     else
61270       # If there was a link error, due to mblen(), the system is so old that
61271       # it certainly doesn't have a chinese locale.
61272       gt_cv_locale_zh_CN=none
61273     fi
61274     rm -fr conftest*
61275
61276 fi
61277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
61278 $as_echo "$gt_cv_locale_zh_CN" >&6; }
61279   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
61280
61281
61282
61283
61284
61285
61286
61287                ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
61288 "
61289 if test "x$ac_cv_have_decl_sleep" = xyes; then :
61290   ac_have_decl=1
61291 else
61292   ac_have_decl=0
61293 fi
61294
61295 cat >>confdefs.h <<_ACEOF
61296 #define HAVE_DECL_SLEEP $ac_have_decl
61297 _ACEOF
61298
61299
61300   if test $ac_cv_have_decl_sleep != yes; then
61301     HAVE_SLEEP=0
61302   else
61303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
61304 $as_echo_n "checking for working sleep... " >&6; }
61305 if ${gl_cv_func_sleep_works+:} false; then :
61306   $as_echo_n "(cached) " >&6
61307 else
61308   if test "$cross_compiling" = yes; then :
61309   case "$host_os" in
61310                  # Guess yes on glibc systems.
61311          *-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
61312                  # If we don't know, assume the worst.
61313          *)      gl_cv_func_sleep_works="guessing no" ;;
61314        esac
61315
61316 else
61317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61318 /* end confdefs.h.  */
61319
61320 #include <errno.h>
61321 #include <unistd.h>
61322 #include <signal.h>
61323 static void
61324 handle_alarm (int sig)
61325 {
61326   if (sig != SIGALRM)
61327     _exit (2);
61328 }
61329
61330 int
61331 main ()
61332 {
61333
61334     /* Failure to compile this test due to missing alarm is okay,
61335        since all such platforms (mingw) also lack sleep.  */
61336     unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
61337     unsigned int remaining;
61338     signal (SIGALRM, handle_alarm);
61339     alarm (1);
61340     remaining = sleep (pentecost);
61341     if (remaining > pentecost)
61342       return 3;
61343     if (remaining <= pentecost - 10)
61344       return 4;
61345     return 0;
61346
61347   ;
61348   return 0;
61349 }
61350 _ACEOF
61351 if ac_fn_c_try_run "$LINENO"; then :
61352   gl_cv_func_sleep_works=yes
61353 else
61354   gl_cv_func_sleep_works=no
61355 fi
61356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
61357   conftest.$ac_objext conftest.beam conftest.$ac_ext
61358 fi
61359
61360 fi
61361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
61362 $as_echo "$gl_cv_func_sleep_works" >&6; }
61363     case "$gl_cv_func_sleep_works" in
61364       *yes) ;;
61365       *)
61366         REPLACE_SLEEP=1
61367         ;;
61368     esac
61369   fi
61370
61371   if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
61372
61373
61374
61375
61376
61377
61378
61379
61380   gltests_LIBOBJS="$gltests_LIBOBJS sleep.$ac_objext"
61381
61382   fi
61383
61384
61385
61386
61387
61388     if test "$GNULIB_SLEEP" != 1; then
61389         if test "$GNULIB_SLEEP" = 0; then
61390       GNULIB_SLEEP=$gl_module_indicator_condition
61391     else
61392       GNULIB_SLEEP="($GNULIB_SLEEP || $gl_module_indicator_condition)"
61393     fi
61394   fi
61395
61396
61397
61398
61399
61400 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
61401
61402
61403
61404
61405
61406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
61407 $as_echo_n "checking for working stdalign.h... " >&6; }
61408 if ${gl_cv_header_working_stdalign_h+:} false; then :
61409   $as_echo_n "(cached) " >&6
61410 else
61411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61412 /* end confdefs.h.  */
61413 #include <stdalign.h>
61414             #include <stddef.h>
61415
61416             /* Test that alignof yields a result consistent with offsetof.
61417                This catches GCC bug 52023
61418                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
61419             #ifdef __cplusplus
61420                template <class t> struct alignof_helper { char a; t b; };
61421             # define ao(type) offsetof (alignof_helper<type>, b)
61422             #else
61423             # define ao(type) offsetof (struct { char a; type b; }, b)
61424             #endif
61425             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
61426             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
61427             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
61428
61429             /* Test _Alignas only on platforms where gnulib can help.  */
61430             #if \
61431                 ((defined __cplusplus && 201103 <= __cplusplus) \
61432                  || (defined __APPLE__ && defined __MACH__ \
61433                      ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
61434                      : __GNUC__) \
61435                  || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
61436                  || __ICC || 0x5110 <= __SUNPRO_C \
61437                  || 1300 <= _MSC_VER)
61438               struct alignas_test { char c; char alignas (8) alignas_8; };
61439               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
61440                                 ? 1 : -1];
61441             #endif
61442
61443 int
61444 main ()
61445 {
61446
61447   ;
61448   return 0;
61449 }
61450 _ACEOF
61451 if ac_fn_c_try_compile "$LINENO"; then :
61452   gl_cv_header_working_stdalign_h=yes
61453 else
61454   gl_cv_header_working_stdalign_h=no
61455 fi
61456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61457 fi
61458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
61459 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
61460
61461   if test $gl_cv_header_working_stdalign_h = yes; then
61462     STDALIGN_H=''
61463   else
61464     STDALIGN_H='stdalign.h'
61465   fi
61466
61467
61468    if test -n "$STDALIGN_H"; then
61469   GL_GENERATE_STDALIGN_H_TRUE=
61470   GL_GENERATE_STDALIGN_H_FALSE='#'
61471 else
61472   GL_GENERATE_STDALIGN_H_TRUE='#'
61473   GL_GENERATE_STDALIGN_H_FALSE=
61474 fi
61475
61476
61477
61478
61479
61480
61481
61482   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
61483   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
61484   # irrelevant for anonymous mappings.
61485   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
61486 if test "x$ac_cv_func_mmap" = xyes; then :
61487   gl_have_mmap=yes
61488 else
61489   gl_have_mmap=no
61490 fi
61491
61492
61493   # Try to allow MAP_ANONYMOUS.
61494   gl_have_mmap_anonymous=no
61495   if test $gl_have_mmap = yes; then
61496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
61497 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
61498     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61499 /* end confdefs.h.  */
61500
61501 #include <sys/mman.h>
61502 #ifdef MAP_ANONYMOUS
61503     I cannot identify this map
61504 #endif
61505
61506 _ACEOF
61507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61508   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61509   gl_have_mmap_anonymous=yes
61510 fi
61511 rm -f conftest*
61512
61513     if test $gl_have_mmap_anonymous != yes; then
61514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61515 /* end confdefs.h.  */
61516
61517 #include <sys/mman.h>
61518 #ifdef MAP_ANON
61519     I cannot identify this map
61520 #endif
61521
61522 _ACEOF
61523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61524   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61525
61526 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
61527
61528          gl_have_mmap_anonymous=yes
61529 fi
61530 rm -f conftest*
61531
61532     fi
61533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
61534 $as_echo "$gl_have_mmap_anonymous" >&6; }
61535     if test $gl_have_mmap_anonymous = yes; then
61536
61537 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
61538
61539     fi
61540   fi
61541
61542
61543
61544
61545
61546
61547
61548   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
61549   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
61550   # irrelevant for anonymous mappings.
61551   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
61552 if test "x$ac_cv_func_mmap" = xyes; then :
61553   gl_have_mmap=yes
61554 else
61555   gl_have_mmap=no
61556 fi
61557
61558
61559   # Try to allow MAP_ANONYMOUS.
61560   gl_have_mmap_anonymous=no
61561   if test $gl_have_mmap = yes; then
61562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
61563 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
61564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61565 /* end confdefs.h.  */
61566
61567 #include <sys/mman.h>
61568 #ifdef MAP_ANONYMOUS
61569     I cannot identify this map
61570 #endif
61571
61572 _ACEOF
61573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61574   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61575   gl_have_mmap_anonymous=yes
61576 fi
61577 rm -f conftest*
61578
61579     if test $gl_have_mmap_anonymous != yes; then
61580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61581 /* end confdefs.h.  */
61582
61583 #include <sys/mman.h>
61584 #ifdef MAP_ANON
61585     I cannot identify this map
61586 #endif
61587
61588 _ACEOF
61589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61590   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61591
61592 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
61593
61594          gl_have_mmap_anonymous=yes
61595 fi
61596 rm -f conftest*
61597
61598     fi
61599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
61600 $as_echo "$gl_have_mmap_anonymous" >&6; }
61601     if test $gl_have_mmap_anonymous = yes; then
61602
61603 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
61604
61605     fi
61606   fi
61607
61608
61609
61610
61611
61612
61613         if test $ac_cv_func_symlink = no; then
61614     HAVE_SYMLINK=0
61615   else
61616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
61617 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
61618 if ${gl_cv_func_symlink_works+:} false; then :
61619   $as_echo_n "(cached) " >&6
61620 else
61621   if test "$cross_compiling" = yes; then :
61622   case "$host_os" in
61623                     # Guess yes on glibc systems.
61624             *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
61625                     # If we don't know, assume the worst.
61626             *)      gl_cv_func_symlink_works="guessing no" ;;
61627           esac
61628
61629 else
61630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61631 /* end confdefs.h.  */
61632 #include <unistd.h>
61633
61634 int
61635 main ()
61636 {
61637 int result = 0;
61638              if (!symlink ("a", "conftest.link/"))
61639                result |= 1;
61640              if (symlink ("conftest.f", "conftest.lnk2"))
61641                result |= 2;
61642              else if (!symlink ("a", "conftest.lnk2/"))
61643                result |= 4;
61644              return result;
61645
61646   ;
61647   return 0;
61648 }
61649 _ACEOF
61650 if ac_fn_c_try_run "$LINENO"; then :
61651   gl_cv_func_symlink_works=yes
61652 else
61653   gl_cv_func_symlink_works=no
61654 fi
61655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
61656   conftest.$ac_objext conftest.beam conftest.$ac_ext
61657 fi
61658
61659       rm -f conftest.f conftest.link conftest.lnk2
61660 fi
61661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
61662 $as_echo "$gl_cv_func_symlink_works" >&6; }
61663     case "$gl_cv_func_symlink_works" in
61664       *yes) ;;
61665       *)
61666         REPLACE_SYMLINK=1
61667         ;;
61668     esac
61669   fi
61670
61671   if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
61672
61673
61674
61675
61676
61677
61678
61679
61680   gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
61681
61682   fi
61683
61684
61685
61686
61687
61688     if test "$GNULIB_SYMLINK" != 1; then
61689         if test "$GNULIB_SYMLINK" = 0; then
61690       GNULIB_SYMLINK=$gl_module_indicator_condition
61691     else
61692       GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)"
61693     fi
61694   fi
61695
61696
61697
61698
61699
61700 $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
61701
61702
61703
61704
61705
61706
61707   if test $gl_threads_api = posix; then
61708     gl_save_LIBS="$LIBS"
61709     LIBS="$LIBS $LIBMULTITHREAD"
61710     for ac_func in pthread_atfork
61711 do :
61712   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
61713 if test "x$ac_cv_func_pthread_atfork" = xyes; then :
61714   cat >>confdefs.h <<_ACEOF
61715 #define HAVE_PTHREAD_ATFORK 1
61716 _ACEOF
61717
61718 fi
61719 done
61720
61721     LIBS="$gl_save_LIBS"
61722   fi
61723
61724
61725
61726        if  { test "$HAVE_LIBUNISTRING" != yes \
61727     || {
61728
61729
61730
61731             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
61732             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
61733                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
61734                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
61735                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
61736                          }
61737                     }
61738                }
61739
61740
61741
61742
61743        }
61744   }; then
61745   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE=
61746   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE='#'
61747 else
61748   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE='#'
61749   LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE=
61750 fi
61751
61752
61753
61754
61755
61756   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
61757   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
61758   # irrelevant for anonymous mappings.
61759   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
61760 if test "x$ac_cv_func_mmap" = xyes; then :
61761   gl_have_mmap=yes
61762 else
61763   gl_have_mmap=no
61764 fi
61765
61766
61767   # Try to allow MAP_ANONYMOUS.
61768   gl_have_mmap_anonymous=no
61769   if test $gl_have_mmap = yes; then
61770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
61771 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
61772     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61773 /* end confdefs.h.  */
61774
61775 #include <sys/mman.h>
61776 #ifdef MAP_ANONYMOUS
61777     I cannot identify this map
61778 #endif
61779
61780 _ACEOF
61781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61782   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61783   gl_have_mmap_anonymous=yes
61784 fi
61785 rm -f conftest*
61786
61787     if test $gl_have_mmap_anonymous != yes; then
61788       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61789 /* end confdefs.h.  */
61790
61791 #include <sys/mman.h>
61792 #ifdef MAP_ANON
61793     I cannot identify this map
61794 #endif
61795
61796 _ACEOF
61797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61798   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
61799
61800 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
61801
61802          gl_have_mmap_anonymous=yes
61803 fi
61804 rm -f conftest*
61805
61806     fi
61807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
61808 $as_echo "$gl_have_mmap_anonymous" >&6; }
61809     if test $gl_have_mmap_anonymous = yes; then
61810
61811 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
61812
61813     fi
61814   fi
61815
61816
61817
61818
61819
61820        if  { test "$HAVE_LIBUNISTRING" != yes \
61821     || {
61822
61823
61824
61825             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
61826             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
61827                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
61828                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
61829                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
61830                          }
61831                     }
61832                }
61833
61834
61835
61836
61837        }
61838   }; then
61839   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE=
61840   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE='#'
61841 else
61842   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE='#'
61843   LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE=
61844 fi
61845
61846
61847
61848
61849
61850
61851
61852
61853
61854
61855
61856
61857   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
61858
61859
61860
61861      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
61862 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
61863 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
61864   $as_echo_n "(cached) " >&6
61865 else
61866
61867                   case "$host_os" in
61868                      # Guess no on AIX and OSF/1.
61869         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
61870                      # Guess yes otherwise.
61871         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
61872       esac
61873       if test $LOCALE_JA != none; then
61874         if test "$cross_compiling" = yes; then :
61875   :
61876 else
61877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61878 /* end confdefs.h.  */
61879
61880 #include <locale.h>
61881 #include <string.h>
61882 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
61883    <wchar.h>.
61884    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
61885    included before <wchar.h>.  */
61886 #include <stddef.h>
61887 #include <stdio.h>
61888 #include <time.h>
61889 #include <wchar.h>
61890 int main ()
61891 {
61892   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
61893     {
61894       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
61895       mbstate_t state;
61896       wchar_t wc;
61897
61898       memset (&state, '\0', sizeof (mbstate_t));
61899       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
61900         if (mbsinit (&state))
61901           return 1;
61902     }
61903   return 0;
61904 }
61905 _ACEOF
61906 if ac_fn_c_try_run "$LINENO"; then :
61907   gl_cv_func_mbrtowc_incomplete_state=yes
61908 else
61909   gl_cv_func_mbrtowc_incomplete_state=no
61910 fi
61911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
61912   conftest.$ac_objext conftest.beam conftest.$ac_ext
61913 fi
61914
61915       fi
61916
61917 fi
61918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
61919 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
61920
61921
61922
61923
61924      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
61925 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
61926 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
61927   $as_echo_n "(cached) " >&6
61928 else
61929
61930                   case "$host_os" in
61931                     # Guess no on Solaris 8.
61932         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
61933                     # Guess yes otherwise.
61934         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
61935       esac
61936       if test $LOCALE_ZH_CN != none; then
61937         if test "$cross_compiling" = yes; then :
61938   :
61939 else
61940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61941 /* end confdefs.h.  */
61942
61943 #include <locale.h>
61944 #include <stdlib.h>
61945 #include <string.h>
61946 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
61947    <wchar.h>.
61948    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
61949    included before <wchar.h>.  */
61950 #include <stddef.h>
61951 #include <stdio.h>
61952 #include <time.h>
61953 #include <wchar.h>
61954 int main ()
61955 {
61956   /* This fails on Solaris 8:
61957      mbrtowc returns 2, and sets wc to 0x00F0.
61958      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
61959   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
61960     {
61961       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
61962       mbstate_t state;
61963       wchar_t wc;
61964
61965       memset (&state, '\0', sizeof (mbstate_t));
61966       if (mbrtowc (&wc, input + 3, 6, &state) != 4
61967           && mbtowc (&wc, input + 3, 6) == 4)
61968         return 1;
61969     }
61970   return 0;
61971 }
61972 _ACEOF
61973 if ac_fn_c_try_run "$LINENO"; then :
61974   gl_cv_func_mbrtowc_sanitycheck=yes
61975 else
61976   gl_cv_func_mbrtowc_sanitycheck=no
61977 fi
61978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
61979   conftest.$ac_objext conftest.beam conftest.$ac_ext
61980 fi
61981
61982       fi
61983
61984 fi
61985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
61986 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
61987
61988     REPLACE_MBSTATE_T=0
61989     case "$gl_cv_func_mbrtowc_incomplete_state" in
61990       *yes) ;;
61991       *) REPLACE_MBSTATE_T=1 ;;
61992     esac
61993     case "$gl_cv_func_mbrtowc_sanitycheck" in
61994       *yes) ;;
61995       *) REPLACE_MBSTATE_T=1 ;;
61996     esac
61997   else
61998     REPLACE_MBSTATE_T=1
61999   fi
62000
62001
62002
62003   if test $ac_cv_func_wcrtomb = no; then
62004     HAVE_WCRTOMB=0
62005     ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
62006 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
62007    <wchar.h>.
62008    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62009    included before <wchar.h>.  */
62010 #include <stddef.h>
62011 #include <stdio.h>
62012 #include <time.h>
62013 #include <wchar.h>
62014
62015 "
62016 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
62017   ac_have_decl=1
62018 else
62019   ac_have_decl=0
62020 fi
62021
62022 cat >>confdefs.h <<_ACEOF
62023 #define HAVE_DECL_WCRTOMB $ac_have_decl
62024 _ACEOF
62025
62026     if test $ac_cv_have_decl_wcrtomb = yes; then
62027                         REPLACE_WCRTOMB=1
62028     fi
62029   else
62030     if test $REPLACE_MBSTATE_T = 1; then
62031       REPLACE_WCRTOMB=1
62032     else
62033
62034
62035
62036
62037
62038              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
62039 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
62040 if ${gl_cv_func_wcrtomb_retval+:} false; then :
62041   $as_echo_n "(cached) " >&6
62042 else
62043
62044                               case "$host_os" in
62045                                      # Guess no on AIX 4, OSF/1 and Solaris.
62046             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
62047                                      # Guess yes otherwise.
62048             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
62049           esac
62050           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
62051             if test "$cross_compiling" = yes; then :
62052   :
62053 else
62054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62055 /* end confdefs.h.  */
62056
62057 #include <locale.h>
62058 #include <string.h>
62059 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
62060    <wchar.h>.
62061    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62062    included before <wchar.h>.  */
62063 #include <stddef.h>
62064 #include <stdio.h>
62065 #include <time.h>
62066 #include <wchar.h>
62067 int main ()
62068 {
62069   int result = 0;
62070   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
62071     {
62072       if (wcrtomb (NULL, 0, NULL) != 1)
62073         result |= 1;
62074     }
62075   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
62076     {
62077       if (wcrtomb (NULL, 0, NULL) != 1)
62078         result |= 2;
62079     }
62080   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
62081     {
62082       if (wcrtomb (NULL, 0, NULL) != 1)
62083         result |= 4;
62084     }
62085   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
62086     {
62087       if (wcrtomb (NULL, 0, NULL) != 1)
62088         result |= 8;
62089     }
62090   return result;
62091 }
62092 _ACEOF
62093 if ac_fn_c_try_run "$LINENO"; then :
62094   gl_cv_func_wcrtomb_retval=yes
62095 else
62096   gl_cv_func_wcrtomb_retval=no
62097 fi
62098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62099   conftest.$ac_objext conftest.beam conftest.$ac_ext
62100 fi
62101
62102           fi
62103
62104 fi
62105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
62106 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
62107       case "$gl_cv_func_wcrtomb_retval" in
62108         *yes) ;;
62109         *) REPLACE_WCRTOMB=1 ;;
62110       esac
62111     fi
62112   fi
62113
62114   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
62115
62116
62117
62118
62119
62120
62121
62122
62123   gltests_LIBOBJS="$gltests_LIBOBJS wcrtomb.$ac_objext"
62124
62125
62126   :
62127
62128   fi
62129
62130
62131
62132
62133
62134     if test "$GNULIB_WCRTOMB" != 1; then
62135         if test "$GNULIB_WCRTOMB" = 0; then
62136       GNULIB_WCRTOMB=$gl_module_indicator_condition
62137     else
62138       GNULIB_WCRTOMB="($GNULIB_WCRTOMB || $gl_module_indicator_condition)"
62139     fi
62140   fi
62141
62142
62143
62144
62145
62146 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
62147
62148
62149
62150
62151
62152
62153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
62154 $as_echo_n "checking for a traditional french locale... " >&6; }
62155 if ${gt_cv_locale_fr+:} false; then :
62156   $as_echo_n "(cached) " >&6
62157 else
62158
62159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62160 /* end confdefs.h.  */
62161
62162 #include <locale.h>
62163 #include <time.h>
62164 #if HAVE_LANGINFO_CODESET
62165 # include <langinfo.h>
62166 #endif
62167 #include <stdlib.h>
62168 #include <string.h>
62169 struct tm t;
62170 char buf[16];
62171 int main () {
62172   /* Check whether the given locale name is recognized by the system.  */
62173 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
62174   /* On native Windows, setlocale(category, "") looks at the system settings,
62175      not at the environment variables.  Also, when an encoding suffix such
62176      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
62177      category of the locale to "C".  */
62178   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
62179       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
62180     return 1;
62181 #else
62182   if (setlocale (LC_ALL, "") == NULL) return 1;
62183 #endif
62184   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
62185      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
62186      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
62187      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
62188      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
62189      some unit tests fail.
62190      On MirBSD 10, when an unsupported locale is specified, setlocale()
62191      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
62192 #if HAVE_LANGINFO_CODESET
62193   {
62194     const char *cs = nl_langinfo (CODESET);
62195     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
62196         || strcmp (cs, "UTF-8") == 0)
62197       return 1;
62198   }
62199 #endif
62200 #ifdef __CYGWIN__
62201   /* On Cygwin, avoid locale names without encoding suffix, because the
62202      locale_charset() function relies on the encoding suffix.  Note that
62203      LC_ALL is set on the command line.  */
62204   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
62205 #endif
62206   /* Check whether in the abbreviation of the second month, the second
62207      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
62208      one byte long. This excludes the UTF-8 encoding.  */
62209   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
62210   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
62211 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
62212   /* Check whether the decimal separator is a comma.
62213      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
62214      are nl_langinfo(RADIXCHAR) are both ".".  */
62215   if (localeconv () ->decimal_point[0] != ',') return 1;
62216 #endif
62217   return 0;
62218 }
62219
62220 _ACEOF
62221     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
62222   (eval $ac_link) 2>&5
62223   ac_status=$?
62224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62225   test $ac_status = 0; } && test -s conftest$ac_exeext; then
62226       case "$host_os" in
62227         # Handle native Windows specially, because there setlocale() interprets
62228         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
62229         # "fr" or "fra" as "French" or "French_France.1252",
62230         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
62231         # "ja" as "Japanese" or "Japanese_Japan.932",
62232         # and similar.
62233         mingw*)
62234           # Test for the native Windows locale name.
62235           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62236             gt_cv_locale_fr=French_France.1252
62237           else
62238             # None found.
62239             gt_cv_locale_fr=none
62240           fi
62241           ;;
62242         *)
62243           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
62244           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
62245           # configure script would override the LC_ALL setting. Likewise for
62246           # LC_CTYPE, which is also set at the beginning of the configure script.
62247           # Test for the usual locale name.
62248           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62249             gt_cv_locale_fr=fr_FR
62250           else
62251             # Test for the locale name with explicit encoding suffix.
62252             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62253               gt_cv_locale_fr=fr_FR.ISO-8859-1
62254             else
62255               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
62256               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62257                 gt_cv_locale_fr=fr_FR.ISO8859-1
62258               else
62259                 # Test for the HP-UX locale name.
62260                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62261                   gt_cv_locale_fr=fr_FR.iso88591
62262                 else
62263                   # Test for the Solaris 7 locale name.
62264                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62265                     gt_cv_locale_fr=fr
62266                   else
62267                     # None found.
62268                     gt_cv_locale_fr=none
62269                   fi
62270                 fi
62271               fi
62272             fi
62273           fi
62274           ;;
62275       esac
62276     fi
62277     rm -fr conftest*
62278
62279 fi
62280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
62281 $as_echo "$gt_cv_locale_fr" >&6; }
62282   LOCALE_FR=$gt_cv_locale_fr
62283
62284
62285
62286
62287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
62288 $as_echo_n "checking for a french Unicode locale... " >&6; }
62289 if ${gt_cv_locale_fr_utf8+:} false; then :
62290   $as_echo_n "(cached) " >&6
62291 else
62292
62293     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62294 /* end confdefs.h.  */
62295
62296 #include <locale.h>
62297 #include <time.h>
62298 #if HAVE_LANGINFO_CODESET
62299 # include <langinfo.h>
62300 #endif
62301 #include <stdlib.h>
62302 #include <string.h>
62303 struct tm t;
62304 char buf[16];
62305 int main () {
62306   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
62307      imitates locale dependent behaviour by looking at the environment
62308      variables, and all locales use the UTF-8 encoding.  */
62309 #if !(defined __BEOS__ || defined __HAIKU__)
62310   /* Check whether the given locale name is recognized by the system.  */
62311 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
62312   /* On native Windows, setlocale(category, "") looks at the system settings,
62313      not at the environment variables.  Also, when an encoding suffix such
62314      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
62315      category of the locale to "C".  */
62316   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
62317       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
62318     return 1;
62319 # else
62320   if (setlocale (LC_ALL, "") == NULL) return 1;
62321 # endif
62322   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
62323      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
62324      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
62325      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
62326      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
62327      some unit tests fail.  */
62328 # if HAVE_LANGINFO_CODESET
62329   {
62330     const char *cs = nl_langinfo (CODESET);
62331     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
62332       return 1;
62333   }
62334 # endif
62335 # ifdef __CYGWIN__
62336   /* On Cygwin, avoid locale names without encoding suffix, because the
62337      locale_charset() function relies on the encoding suffix.  Note that
62338      LC_ALL is set on the command line.  */
62339   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
62340 # endif
62341   /* Check whether in the abbreviation of the second month, the second
62342      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
62343      two bytes long, with UTF-8 encoding.  */
62344   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
62345   if (strftime (buf, sizeof (buf), "%b", &t) < 4
62346       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
62347     return 1;
62348 #endif
62349 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
62350   /* Check whether the decimal separator is a comma.
62351      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
62352      are nl_langinfo(RADIXCHAR) are both ".".  */
62353   if (localeconv () ->decimal_point[0] != ',') return 1;
62354 #endif
62355   return 0;
62356 }
62357
62358 _ACEOF
62359     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
62360   (eval $ac_link) 2>&5
62361   ac_status=$?
62362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62363   test $ac_status = 0; } && test -s conftest$ac_exeext; then
62364       case "$host_os" in
62365         # Handle native Windows specially, because there setlocale() interprets
62366         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
62367         # "fr" or "fra" as "French" or "French_France.1252",
62368         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
62369         # "ja" as "Japanese" or "Japanese_Japan.932",
62370         # and similar.
62371         mingw*)
62372           # Test for the hypothetical native Windows locale name.
62373           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62374             gt_cv_locale_fr_utf8=French_France.65001
62375           else
62376             # None found.
62377             gt_cv_locale_fr_utf8=none
62378           fi
62379           ;;
62380         *)
62381           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
62382           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
62383           # configure script would override the LC_ALL setting. Likewise for
62384           # LC_CTYPE, which is also set at the beginning of the configure script.
62385           # Test for the usual locale name.
62386           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62387             gt_cv_locale_fr_utf8=fr_FR
62388           else
62389             # Test for the locale name with explicit encoding suffix.
62390             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62391               gt_cv_locale_fr_utf8=fr_FR.UTF-8
62392             else
62393               # Test for the Solaris 7 locale name.
62394               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62395                 gt_cv_locale_fr_utf8=fr.UTF-8
62396               else
62397                 # None found.
62398                 gt_cv_locale_fr_utf8=none
62399               fi
62400             fi
62401           fi
62402           ;;
62403       esac
62404     fi
62405     rm -fr conftest*
62406
62407 fi
62408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
62409 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
62410   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
62411
62412
62413
62414
62415
62416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
62417 $as_echo_n "checking for a traditional japanese locale... " >&6; }
62418 if ${gt_cv_locale_ja+:} false; then :
62419   $as_echo_n "(cached) " >&6
62420 else
62421
62422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62423 /* end confdefs.h.  */
62424
62425 #include <locale.h>
62426 #include <time.h>
62427 #if HAVE_LANGINFO_CODESET
62428 # include <langinfo.h>
62429 #endif
62430 #include <stdlib.h>
62431 #include <string.h>
62432 struct tm t;
62433 char buf[16];
62434 int main ()
62435 {
62436   const char *p;
62437   /* Check whether the given locale name is recognized by the system.  */
62438 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
62439   /* On native Windows, setlocale(category, "") looks at the system settings,
62440      not at the environment variables.  Also, when an encoding suffix such
62441      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
62442      category of the locale to "C".  */
62443   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
62444       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
62445     return 1;
62446 #else
62447   if (setlocale (LC_ALL, "") == NULL) return 1;
62448 #endif
62449   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
62450      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
62451      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
62452      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
62453      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
62454      some unit tests fail.
62455      On MirBSD 10, when an unsupported locale is specified, setlocale()
62456      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
62457 #if HAVE_LANGINFO_CODESET
62458   {
62459     const char *cs = nl_langinfo (CODESET);
62460     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
62461         || strcmp (cs, "UTF-8") == 0)
62462       return 1;
62463   }
62464 #endif
62465 #ifdef __CYGWIN__
62466   /* On Cygwin, avoid locale names without encoding suffix, because the
62467      locale_charset() function relies on the encoding suffix.  Note that
62468      LC_ALL is set on the command line.  */
62469   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
62470 #endif
62471   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
62472      on Cygwin 1.5.x.  */
62473   if (MB_CUR_MAX == 1)
62474     return 1;
62475   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
62476      This excludes the UTF-8 encoding (except on MirBSD).  */
62477   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
62478   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
62479   for (p = buf; *p != '\0'; p++)
62480     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
62481       return 1;
62482   return 0;
62483 }
62484
62485 _ACEOF
62486     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
62487   (eval $ac_link) 2>&5
62488   ac_status=$?
62489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62490   test $ac_status = 0; } && test -s conftest$ac_exeext; then
62491       case "$host_os" in
62492         # Handle native Windows specially, because there setlocale() interprets
62493         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
62494         # "fr" or "fra" as "French" or "French_France.1252",
62495         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
62496         # "ja" as "Japanese" or "Japanese_Japan.932",
62497         # and similar.
62498         mingw*)
62499           # Note that on native Windows, the Japanese locale is
62500           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
62501           # cannot use it here.
62502           gt_cv_locale_ja=none
62503           ;;
62504         *)
62505           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
62506           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
62507           # configure script would override the LC_ALL setting. Likewise for
62508           # LC_CTYPE, which is also set at the beginning of the configure script.
62509           # Test for the AIX locale name.
62510           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62511             gt_cv_locale_ja=ja_JP
62512           else
62513             # Test for the locale name with explicit encoding suffix.
62514             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62515               gt_cv_locale_ja=ja_JP.EUC-JP
62516             else
62517               # Test for the HP-UX, OSF/1, NetBSD locale name.
62518               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62519                 gt_cv_locale_ja=ja_JP.eucJP
62520               else
62521                 # Test for the IRIX, FreeBSD locale name.
62522                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62523                   gt_cv_locale_ja=ja_JP.EUC
62524                 else
62525                   # Test for the Solaris 7 locale name.
62526                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62527                     gt_cv_locale_ja=ja
62528                   else
62529                     # Special test for NetBSD 1.6.
62530                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
62531                       gt_cv_locale_ja=ja_JP.eucJP
62532                     else
62533                       # None found.
62534                       gt_cv_locale_ja=none
62535                     fi
62536                   fi
62537                 fi
62538               fi
62539             fi
62540           fi
62541           ;;
62542       esac
62543     fi
62544     rm -fr conftest*
62545
62546 fi
62547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
62548 $as_echo "$gt_cv_locale_ja" >&6; }
62549   LOCALE_JA=$gt_cv_locale_ja
62550
62551
62552
62553
62554
62555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
62556 $as_echo_n "checking for a transitional chinese locale... " >&6; }
62557 if ${gt_cv_locale_zh_CN+:} false; then :
62558   $as_echo_n "(cached) " >&6
62559 else
62560
62561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62562 /* end confdefs.h.  */
62563
62564 #include <locale.h>
62565 #include <stdlib.h>
62566 #include <time.h>
62567 #if HAVE_LANGINFO_CODESET
62568 # include <langinfo.h>
62569 #endif
62570 #include <stdlib.h>
62571 #include <string.h>
62572 struct tm t;
62573 char buf[16];
62574 int main ()
62575 {
62576   const char *p;
62577   /* Check whether the given locale name is recognized by the system.  */
62578 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
62579   /* On native Windows, setlocale(category, "") looks at the system settings,
62580      not at the environment variables.  Also, when an encoding suffix such
62581      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
62582      category of the locale to "C".  */
62583   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
62584       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
62585     return 1;
62586 #else
62587   if (setlocale (LC_ALL, "") == NULL) return 1;
62588 #endif
62589   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
62590      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
62591      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
62592      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
62593      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
62594      some unit tests fail.
62595      On MirBSD 10, when an unsupported locale is specified, setlocale()
62596      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
62597 #if HAVE_LANGINFO_CODESET
62598   {
62599     const char *cs = nl_langinfo (CODESET);
62600     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
62601         || strcmp (cs, "UTF-8") == 0)
62602       return 1;
62603   }
62604 #endif
62605 #ifdef __CYGWIN__
62606   /* On Cygwin, avoid locale names without encoding suffix, because the
62607      locale_charset() function relies on the encoding suffix.  Note that
62608      LC_ALL is set on the command line.  */
62609   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
62610 #endif
62611   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
62612      This excludes the UTF-8 encoding (except on MirBSD).  */
62613   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
62614   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
62615   for (p = buf; *p != '\0'; p++)
62616     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
62617       return 1;
62618   /* Check whether a typical GB18030 multibyte sequence is recognized as a
62619      single wide character.  This excludes the GB2312 and GBK encodings.  */
62620   if (mblen ("\203\062\332\066", 5) != 4)
62621     return 1;
62622   return 0;
62623 }
62624
62625 _ACEOF
62626     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
62627   (eval $ac_link) 2>&5
62628   ac_status=$?
62629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62630   test $ac_status = 0; } && test -s conftest$ac_exeext; then
62631       case "$host_os" in
62632         # Handle native Windows specially, because there setlocale() interprets
62633         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
62634         # "fr" or "fra" as "French" or "French_France.1252",
62635         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
62636         # "ja" as "Japanese" or "Japanese_Japan.932",
62637         # and similar.
62638         mingw*)
62639           # Test for the hypothetical native Windows locale name.
62640           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62641             gt_cv_locale_zh_CN=Chinese_China.54936
62642           else
62643             # None found.
62644             gt_cv_locale_zh_CN=none
62645           fi
62646           ;;
62647         solaris2.8)
62648           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
62649           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
62650           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
62651           gt_cv_locale_zh_CN=none
62652           ;;
62653         *)
62654           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
62655           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
62656           # configure script would override the LC_ALL setting. Likewise for
62657           # LC_CTYPE, which is also set at the beginning of the configure script.
62658           # Test for the locale name without encoding suffix.
62659           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62660             gt_cv_locale_zh_CN=zh_CN
62661           else
62662             # Test for the locale name with explicit encoding suffix.
62663             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
62664               gt_cv_locale_zh_CN=zh_CN.GB18030
62665             else
62666               # None found.
62667               gt_cv_locale_zh_CN=none
62668             fi
62669           fi
62670           ;;
62671       esac
62672     else
62673       # If there was a link error, due to mblen(), the system is so old that
62674       # it certainly doesn't have a chinese locale.
62675       gt_cv_locale_zh_CN=none
62676     fi
62677     rm -fr conftest*
62678
62679 fi
62680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
62681 $as_echo "$gt_cv_locale_zh_CN" >&6; }
62682   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
62683
62684
62685
62686
62687
62688
62689   if test $ac_cv_func_wctob = no; then
62690     HAVE_WCTOB=0
62691     HAVE_DECL_WCTOB=0
62692   else
62693     HAVE_WCTOB=1
62694
62695
62696
62697          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5
62698 $as_echo_n "checking whether wctob works... " >&6; }
62699 if ${gl_cv_func_wctob_works+:} false; then :
62700   $as_echo_n "(cached) " >&6
62701 else
62702
62703                         case "$host_os" in
62704             # Guess no on Solaris <= 9 and Cygwin.
62705           solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
62706             gl_cv_func_wctob_works="guessing no" ;;
62707             # Guess yes otherwise.
62708           *) gl_cv_func_wctob_works="guessing yes" ;;
62709         esac
62710         case "$host_os" in
62711           cygwin*)
62712             if test "$cross_compiling" = yes; then :
62713   :
62714 else
62715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62716 /* end confdefs.h.  */
62717
62718 #include <locale.h>
62719 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
62720    <wchar.h>.
62721    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62722    included before <wchar.h>.  */
62723 #include <stddef.h>
62724 #include <stdio.h>
62725 #include <time.h>
62726 #include <wchar.h>
62727
62728 register long global __asm__ ("%ebx");
62729
62730 int main ()
62731 {
62732   setlocale (LC_ALL, "en_US.UTF-8");
62733
62734   global = 0x12345678;
62735   if (wctob (0x00FC) != -1)
62736     return 1;
62737   if (global != 0x12345678)
62738     return 2;
62739   return 0;
62740 }
62741 _ACEOF
62742 if ac_fn_c_try_run "$LINENO"; then :
62743   :
62744 else
62745   gl_cv_func_wctob_works=no
62746 fi
62747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62748   conftest.$ac_objext conftest.beam conftest.$ac_ext
62749 fi
62750
62751             ;;
62752         esac
62753         if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then
62754           if test "$cross_compiling" = yes; then :
62755   :
62756 else
62757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62758 /* end confdefs.h.  */
62759
62760 #include <locale.h>
62761 #include <string.h>
62762 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
62763    <wchar.h>.
62764    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62765    included before <wchar.h>.  */
62766 #include <stddef.h>
62767 #include <stdio.h>
62768 #include <time.h>
62769 #include <wchar.h>
62770 int main ()
62771 {
62772   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
62773     {
62774       wchar_t wc;
62775
62776       if (mbtowc (&wc, "\374", 1) == 1)
62777         if (wctob (wc) != (unsigned char) '\374')
62778           return 1;
62779     }
62780   return 0;
62781 }
62782 _ACEOF
62783 if ac_fn_c_try_run "$LINENO"; then :
62784   gl_cv_func_wctob_works=yes
62785 else
62786   gl_cv_func_wctob_works=no
62787 fi
62788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62789   conftest.$ac_objext conftest.beam conftest.$ac_ext
62790 fi
62791
62792         fi
62793
62794 fi
62795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5
62796 $as_echo "$gl_cv_func_wctob_works" >&6; }
62797     case "$gl_cv_func_wctob_works" in
62798       *yes) ;;
62799       *) REPLACE_WCTOB=1 ;;
62800     esac
62801     if test $REPLACE_WCTOB = 0; then
62802
62803             ac_fn_c_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" "
62804 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
62805    <wchar.h>.
62806    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
62807    before <wchar.h>.  */
62808 #include <stddef.h>
62809 #include <stdio.h>
62810 #include <time.h>
62811 #include <wchar.h>
62812
62813 "
62814 if test "x$ac_cv_have_decl_wctob" = xyes; then :
62815   ac_have_decl=1
62816 else
62817   ac_have_decl=0
62818 fi
62819
62820 cat >>confdefs.h <<_ACEOF
62821 #define HAVE_DECL_WCTOB $ac_have_decl
62822 _ACEOF
62823
62824       if test $ac_cv_have_decl_wctob != yes; then
62825         HAVE_DECL_WCTOB=0
62826       fi
62827     fi
62828   fi
62829
62830   if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
62831
62832
62833
62834
62835
62836
62837
62838
62839   gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
62840
62841
62842   :
62843
62844   fi
62845
62846
62847
62848
62849
62850     if test "$GNULIB_WCTOB" != 1; then
62851         if test "$GNULIB_WCTOB" = 0; then
62852       GNULIB_WCTOB=$gl_module_indicator_condition
62853     else
62854       GNULIB_WCTOB="($GNULIB_WCTOB || $gl_module_indicator_condition)"
62855     fi
62856   fi
62857
62858
62859
62860
62861
62862 $as_echo "#define GNULIB_TEST_WCTOB 1" >>confdefs.h
62863
62864
62865
62866
62867
62868
62869   if false; then
62870     REPLACE_WCTOMB=1
62871   fi
62872
62873   if test $REPLACE_WCTOMB = 1; then
62874
62875
62876
62877
62878
62879
62880
62881
62882   gltests_LIBOBJS="$gltests_LIBOBJS wctomb.$ac_objext"
62883
62884
62885   :
62886
62887   fi
62888
62889
62890
62891
62892
62893     if test "$GNULIB_WCTOMB" != 1; then
62894         if test "$GNULIB_WCTOMB" = 0; then
62895       GNULIB_WCTOMB=$gl_module_indicator_condition
62896     else
62897       GNULIB_WCTOMB="($GNULIB_WCTOMB || $gl_module_indicator_condition)"
62898     fi
62899   fi
62900
62901
62902
62903
62904
62905 $as_echo "#define GNULIB_TEST_WCTOMB 1" >>confdefs.h
62906
62907
62908
62909
62910
62911     YIELD_LIB=
62912   if test $gl_threads_api = posix; then
62913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
62914 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
62915 if ${ac_cv_lib_rt_sched_yield+:} false; then :
62916   $as_echo_n "(cached) " >&6
62917 else
62918   ac_check_lib_save_LIBS=$LIBS
62919 LIBS="-lrt  $LIBS"
62920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62921 /* end confdefs.h.  */
62922
62923 /* Override any GCC internal prototype to avoid an error.
62924    Use char because int might match the return type of a GCC
62925    builtin and then its argument prototype would still apply.  */
62926 #ifdef __cplusplus
62927 extern "C"
62928 #endif
62929 char sched_yield ();
62930 int
62931 main ()
62932 {
62933 return sched_yield ();
62934   ;
62935   return 0;
62936 }
62937 _ACEOF
62938 if ac_fn_c_try_link "$LINENO"; then :
62939   ac_cv_lib_rt_sched_yield=yes
62940 else
62941   ac_cv_lib_rt_sched_yield=no
62942 fi
62943 rm -f core conftest.err conftest.$ac_objext \
62944     conftest$ac_exeext conftest.$ac_ext
62945 LIBS=$ac_check_lib_save_LIBS
62946 fi
62947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
62948 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
62949 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
62950   YIELD_LIB=-lrt
62951 else
62952          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
62953 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
62954 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
62955   $as_echo_n "(cached) " >&6
62956 else
62957   ac_check_lib_save_LIBS=$LIBS
62958 LIBS="-lposix4  $LIBS"
62959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62960 /* end confdefs.h.  */
62961
62962 /* Override any GCC internal prototype to avoid an error.
62963    Use char because int might match the return type of a GCC
62964    builtin and then its argument prototype would still apply.  */
62965 #ifdef __cplusplus
62966 extern "C"
62967 #endif
62968 char sched_yield ();
62969 int
62970 main ()
62971 {
62972 return sched_yield ();
62973   ;
62974   return 0;
62975 }
62976 _ACEOF
62977 if ac_fn_c_try_link "$LINENO"; then :
62978   ac_cv_lib_posix4_sched_yield=yes
62979 else
62980   ac_cv_lib_posix4_sched_yield=no
62981 fi
62982 rm -f core conftest.err conftest.$ac_objext \
62983     conftest$ac_exeext conftest.$ac_ext
62984 LIBS=$ac_check_lib_save_LIBS
62985 fi
62986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
62987 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
62988 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
62989   YIELD_LIB=-lposix4
62990 fi
62991
62992 fi
62993
62994   fi
62995
62996
62997
62998
62999
63000
63001
63002
63003
63004
63005
63006
63007   LIBTESTS_LIBDEPS="$gltests_libdeps"
63008
63009
63010
63011
63012
63013
63014
63015
63016
63017    if false; then
63018   GL_COND_LIBTOOL_TRUE=
63019   GL_COND_LIBTOOL_FALSE='#'
63020 else
63021   GL_COND_LIBTOOL_TRUE='#'
63022   GL_COND_LIBTOOL_FALSE=
63023 fi
63024
63025   gl_cond_libtool=false
63026   gl_libdeps=
63027   gl_ltlibdeps=
63028   gl_m4_base='libgrep/gnulib-m4'
63029
63030
63031
63032
63033
63034
63035
63036
63037
63038   gl_source_base='libgrep'
63039
63040
63041
63042
63043
63044
63045
63046   if test $ac_cv_func_btowc = no; then
63047     HAVE_BTOWC=0
63048   else
63049
63050
63051
63052
63053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
63054 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
63055 if ${gl_cv_func_btowc_nul+:} false; then :
63056   $as_echo_n "(cached) " >&6
63057 else
63058
63059         if test "$cross_compiling" = yes; then :
63060
63061            case "$host_os" in
63062                       # Guess no on Cygwin.
63063              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
63064                       # Guess yes otherwise.
63065              *)       gl_cv_func_btowc_nul="guessing yes" ;;
63066            esac
63067
63068 else
63069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63070 /* end confdefs.h.  */
63071
63072 #include <string.h>
63073 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63074    <wchar.h>.
63075    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
63076    included before <wchar.h>.  */
63077 #include <stddef.h>
63078 #include <stdio.h>
63079 #include <time.h>
63080 #include <wchar.h>
63081 int main ()
63082 {
63083   if (btowc ('\0') != 0)
63084     return 1;
63085   return 0;
63086 }
63087 _ACEOF
63088 if ac_fn_c_try_run "$LINENO"; then :
63089   gl_cv_func_btowc_nul=yes
63090 else
63091   gl_cv_func_btowc_nul=no
63092 fi
63093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
63094   conftest.$ac_objext conftest.beam conftest.$ac_ext
63095 fi
63096
63097
63098 fi
63099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
63100 $as_echo "$gl_cv_func_btowc_nul" >&6; }
63101
63102         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
63103 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
63104 if ${gl_cv_func_btowc_eof+:} false; then :
63105   $as_echo_n "(cached) " >&6
63106 else
63107
63108                         case "$host_os" in
63109                  # Guess no on IRIX.
63110           irix*) gl_cv_func_btowc_eof="guessing no" ;;
63111                  # Guess yes otherwise.
63112           *)     gl_cv_func_btowc_eof="guessing yes" ;;
63113         esac
63114         if test $LOCALE_FR != none; then
63115           if test "$cross_compiling" = yes; then :
63116   :
63117 else
63118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63119 /* end confdefs.h.  */
63120
63121 #include <locale.h>
63122 #include <string.h>
63123 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63124    <wchar.h>.
63125    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
63126    included before <wchar.h>.  */
63127 #include <stddef.h>
63128 #include <stdio.h>
63129 #include <time.h>
63130 #include <wchar.h>
63131 int main ()
63132 {
63133   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
63134     {
63135       if (btowc (EOF) != WEOF)
63136         return 1;
63137     }
63138   return 0;
63139 }
63140 _ACEOF
63141 if ac_fn_c_try_run "$LINENO"; then :
63142   gl_cv_func_btowc_eof=yes
63143 else
63144   gl_cv_func_btowc_eof=no
63145 fi
63146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
63147   conftest.$ac_objext conftest.beam conftest.$ac_ext
63148 fi
63149
63150         fi
63151
63152 fi
63153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
63154 $as_echo "$gl_cv_func_btowc_eof" >&6; }
63155
63156     case "$gl_cv_func_btowc_nul" in
63157       *yes) ;;
63158       *) REPLACE_BTOWC=1 ;;
63159     esac
63160     case "$gl_cv_func_btowc_eof" in
63161       *yes) ;;
63162       *) REPLACE_BTOWC=1 ;;
63163     esac
63164   fi
63165
63166   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
63167
63168
63169
63170
63171
63172
63173
63174
63175   grgl_LIBOBJS="$grgl_LIBOBJS btowc.$ac_objext"
63176
63177
63178   :
63179
63180   fi
63181
63182
63183
63184
63185
63186     if test "$GNULIB_BTOWC" != 1; then
63187         if test "$GNULIB_BTOWC" = 0; then
63188       GNULIB_BTOWC=IN_GETTEXT_TOOLS_LIBGREP
63189     else
63190       GNULIB_BTOWC="($GNULIB_BTOWC || IN_GETTEXT_TOOLS_LIBGREP)"
63191     fi
63192   fi
63193
63194
63195
63196
63197
63198 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
63199
63200
63201
63202
63203
63204
63205
63206
63207
63208
63209
63210
63211
63212
63213
63214
63215
63216      if test $gl_cv_have_include_next = yes; then
63217        gl_cv_next_langinfo_h='<'langinfo.h'>'
63218      else
63219        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
63220 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
63221 if ${gl_cv_next_langinfo_h+:} false; then :
63222   $as_echo_n "(cached) " >&6
63223 else
63224
63225              if test $ac_cv_header_langinfo_h = yes; then
63226
63227
63228
63229
63230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63231 /* end confdefs.h.  */
63232 #include <langinfo.h>
63233 _ACEOF
63234                 case "$host_os" in
63235     aix*) gl_absname_cpp="$ac_cpp -C" ;;
63236     *)    gl_absname_cpp="$ac_cpp" ;;
63237   esac
63238
63239   case "$host_os" in
63240     mingw*)
63241                                           gl_dirsep_regex='[/\\]'
63242       ;;
63243     *)
63244       gl_dirsep_regex='\/'
63245       ;;
63246   esac
63247       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
63248   gl_header_literal_regex=`echo 'langinfo.h' \
63249                            | sed -e "$gl_make_literal_regex_sed"`
63250   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
63251       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
63252       s|^/[^/]|//&|
63253       p
63254       q
63255     }'
63256
63257         gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
63258   sed -n "$gl_absolute_header_sed"`
63259
63260            gl_header=$gl_cv_absolute_langinfo_h
63261            gl_cv_next_langinfo_h='"'$gl_header'"'
63262           else
63263                gl_cv_next_langinfo_h='<'langinfo.h'>'
63264              fi
63265
63266
63267 fi
63268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
63269 $as_echo "$gl_cv_next_langinfo_h" >&6; }
63270      fi
63271      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
63272
63273      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
63274        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
63275        gl_next_as_first_directive='<'langinfo.h'>'
63276      else
63277        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
63278        gl_next_as_first_directive=$gl_cv_next_langinfo_h
63279      fi
63280      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
63281
63282
63283
63284
63285
63286     HAVE_LANGINFO_CODESET=0
63287   HAVE_LANGINFO_T_FMT_AMPM=0
63288   HAVE_LANGINFO_ERA=0
63289   HAVE_LANGINFO_YESEXPR=0
63290
63291   if test $ac_cv_header_langinfo_h = yes; then
63292     HAVE_LANGINFO_H=1
63293             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
63294 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
63295 if ${gl_cv_header_langinfo_codeset+:} false; then :
63296   $as_echo_n "(cached) " >&6
63297 else
63298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63299 /* end confdefs.h.  */
63300 #include <langinfo.h>
63301 int a = CODESET;
63302
63303 int
63304 main ()
63305 {
63306
63307   ;
63308   return 0;
63309 }
63310 _ACEOF
63311 if ac_fn_c_try_compile "$LINENO"; then :
63312   gl_cv_header_langinfo_codeset=yes
63313 else
63314   gl_cv_header_langinfo_codeset=no
63315 fi
63316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63317
63318 fi
63319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
63320 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
63321     if test $gl_cv_header_langinfo_codeset = yes; then
63322       HAVE_LANGINFO_CODESET=1
63323     fi
63324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
63325 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
63326 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
63327   $as_echo_n "(cached) " >&6
63328 else
63329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63330 /* end confdefs.h.  */
63331 #include <langinfo.h>
63332 int a = T_FMT_AMPM;
63333
63334 int
63335 main ()
63336 {
63337
63338   ;
63339   return 0;
63340 }
63341 _ACEOF
63342 if ac_fn_c_try_compile "$LINENO"; then :
63343   gl_cv_header_langinfo_t_fmt_ampm=yes
63344 else
63345   gl_cv_header_langinfo_t_fmt_ampm=no
63346 fi
63347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63348
63349 fi
63350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
63351 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
63352     if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
63353       HAVE_LANGINFO_T_FMT_AMPM=1
63354     fi
63355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
63356 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
63357 if ${gl_cv_header_langinfo_era+:} false; then :
63358   $as_echo_n "(cached) " >&6
63359 else
63360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63361 /* end confdefs.h.  */
63362 #include <langinfo.h>
63363 int a = ERA;
63364
63365 int
63366 main ()
63367 {
63368
63369   ;
63370   return 0;
63371 }
63372 _ACEOF
63373 if ac_fn_c_try_compile "$LINENO"; then :
63374   gl_cv_header_langinfo_era=yes
63375 else
63376   gl_cv_header_langinfo_era=no
63377 fi
63378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63379
63380 fi
63381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
63382 $as_echo "$gl_cv_header_langinfo_era" >&6; }
63383     if test $gl_cv_header_langinfo_era = yes; then
63384       HAVE_LANGINFO_ERA=1
63385     fi
63386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
63387 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
63388 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
63389   $as_echo_n "(cached) " >&6
63390 else
63391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63392 /* end confdefs.h.  */
63393 #include <langinfo.h>
63394 int a = YESEXPR;
63395
63396 int
63397 main ()
63398 {
63399
63400   ;
63401   return 0;
63402 }
63403 _ACEOF
63404 if ac_fn_c_try_compile "$LINENO"; then :
63405   gl_cv_header_langinfo_yesexpr=yes
63406 else
63407   gl_cv_header_langinfo_yesexpr=no
63408 fi
63409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63410
63411 fi
63412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
63413 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
63414     if test $gl_cv_header_langinfo_yesexpr = yes; then
63415       HAVE_LANGINFO_YESEXPR=1
63416     fi
63417   else
63418     HAVE_LANGINFO_H=0
63419   fi
63420
63421
63422
63423
63424
63425
63426
63427     for gl_func in nl_langinfo; do
63428     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
63429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
63430 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
63431 if eval \${$as_gl_Symbol+:} false; then :
63432   $as_echo_n "(cached) " >&6
63433 else
63434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63435 /* end confdefs.h.  */
63436 #include <langinfo.h>
63437
63438 int
63439 main ()
63440 {
63441 #undef $gl_func
63442   (void) $gl_func;
63443   ;
63444   return 0;
63445 }
63446 _ACEOF
63447 if ac_fn_c_try_compile "$LINENO"; then :
63448   eval "$as_gl_Symbol=yes"
63449 else
63450   eval "$as_gl_Symbol=no"
63451 fi
63452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63453 fi
63454 eval ac_res=\$$as_gl_Symbol
63455                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
63456 $as_echo "$ac_res" >&6; }
63457     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
63458   cat >>confdefs.h <<_ACEOF
63459 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
63460 _ACEOF
63461
63462                      eval ac_cv_have_decl_$gl_func=yes
63463 fi
63464       done
63465
63466
63467
63468
63469
63470
63471   if test $REPLACE_STRUCT_LCONV = 1; then
63472     REPLACE_LOCALECONV=1
63473   fi
63474
63475   if test $REPLACE_LOCALECONV = 1; then
63476
63477
63478
63479
63480
63481
63482
63483
63484   grgl_LIBOBJS="$grgl_LIBOBJS localeconv.$ac_objext"
63485
63486
63487   ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
63488 "
63489 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
63490
63491 cat >>confdefs.h <<_ACEOF
63492 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
63493 _ACEOF
63494
63495
63496 fi
63497
63498
63499   fi
63500
63501
63502
63503
63504
63505     if test "$GNULIB_LOCALECONV" != 1; then
63506         if test "$GNULIB_LOCALECONV" = 0; then
63507       GNULIB_LOCALECONV=IN_GETTEXT_TOOLS_LIBGREP
63508     else
63509       GNULIB_LOCALECONV="($GNULIB_LOCALECONV || IN_GETTEXT_TOOLS_LIBGREP)"
63510     fi
63511   fi
63512
63513
63514
63515
63516
63517 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
63518
63519
63520
63521
63522
63523   if test "$gl_threads_api" = posix; then
63524     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
63525     # pthread_rwlock_* functions.
63526     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
63527 "
63528 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
63529
63530 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
63531
63532 fi
63533
63534     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
63535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63536 /* end confdefs.h.  */
63537
63538       #include <pthread.h>
63539 int
63540 main ()
63541 {
63542
63543 #if __FreeBSD__ == 4
63544 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
63545 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
63546        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
63547 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
63548 #else
63549 int x = (int)PTHREAD_MUTEX_RECURSIVE;
63550 return !x;
63551 #endif
63552
63553   ;
63554   return 0;
63555 }
63556 _ACEOF
63557 if ac_fn_c_try_compile "$LINENO"; then :
63558
63559 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
63560
63561 fi
63562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63563   fi
63564   :
63565
63566
63567
63568 cat >>confdefs.h <<_ACEOF
63569 #define GNULIB_LOCK IN_GETTEXT_TOOLS_LIBGREP
63570 _ACEOF
63571
63572
63573
63574
63575
63576
63577
63578
63579   if test $ac_cv_func_mbrlen = no; then
63580     HAVE_MBRLEN=0
63581     ac_fn_c_check_decl "$LINENO" "mbrlen" "ac_cv_have_decl_mbrlen" "
63582 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63583    <wchar.h>.
63584    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
63585    included before <wchar.h>.  */
63586 #include <stddef.h>
63587 #include <stdio.h>
63588 #include <time.h>
63589 #include <wchar.h>
63590
63591 "
63592 if test "x$ac_cv_have_decl_mbrlen" = xyes; then :
63593   ac_have_decl=1
63594 else
63595   ac_have_decl=0
63596 fi
63597
63598 cat >>confdefs.h <<_ACEOF
63599 #define HAVE_DECL_MBRLEN $ac_have_decl
63600 _ACEOF
63601
63602     if test $ac_cv_have_decl_mbrlen = yes; then
63603                         REPLACE_MBRLEN=1
63604     fi
63605   else
63606                     if test $REPLACE_MBRTOWC = 1; then
63607       REPLACE_MBRLEN=1
63608     fi
63609   fi
63610
63611   if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then
63612
63613
63614
63615
63616
63617
63618
63619
63620   grgl_LIBOBJS="$grgl_LIBOBJS mbrlen.$ac_objext"
63621
63622
63623   :
63624
63625   fi
63626
63627
63628
63629
63630
63631     if test "$GNULIB_MBRLEN" != 1; then
63632         if test "$GNULIB_MBRLEN" = 0; then
63633       GNULIB_MBRLEN=IN_GETTEXT_TOOLS_LIBGREP
63634     else
63635       GNULIB_MBRLEN="($GNULIB_MBRLEN || IN_GETTEXT_TOOLS_LIBGREP)"
63636     fi
63637   fi
63638
63639
63640
63641
63642
63643 $as_echo "#define GNULIB_TEST_MBRLEN 1" >>confdefs.h
63644
63645
63646
63647
63648
63649
63650   if false; then
63651     REPLACE_MBTOWC=1
63652   fi
63653
63654   if test $REPLACE_MBTOWC = 1; then
63655
63656
63657
63658
63659
63660
63661
63662
63663   grgl_LIBOBJS="$grgl_LIBOBJS mbtowc.$ac_objext"
63664
63665
63666   :
63667
63668   fi
63669
63670
63671
63672
63673
63674     if test "$GNULIB_MBTOWC" != 1; then
63675         if test "$GNULIB_MBTOWC" = 0; then
63676       GNULIB_MBTOWC=IN_GETTEXT_TOOLS_LIBGREP
63677     else
63678       GNULIB_MBTOWC="($GNULIB_MBTOWC || IN_GETTEXT_TOOLS_LIBGREP)"
63679     fi
63680   fi
63681
63682
63683
63684
63685
63686 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
63687
63688
63689
63690
63691
63692
63693
63694      if test $ac_cv_func_nl_langinfo = yes; then
63695     # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
63696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
63697 $as_echo_n "checking whether YESEXPR works... " >&6; }
63698 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
63699   $as_echo_n "(cached) " >&6
63700 else
63701   if test "$cross_compiling" = yes; then :
63702
63703          case "$host_os" in
63704                    # Guess no on irix systems.
63705            irix*)  gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
63706                    # Guess yes elsewhere.
63707            *)      gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
63708          esac
63709
63710 else
63711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63712 /* end confdefs.h.  */
63713 #include <langinfo.h>
63714
63715 int
63716 main ()
63717 {
63718 return !*nl_langinfo(YESEXPR);
63719
63720   ;
63721   return 0;
63722 }
63723 _ACEOF
63724 if ac_fn_c_try_run "$LINENO"; then :
63725   gl_cv_func_nl_langinfo_yesexpr_works=yes
63726 else
63727   gl_cv_func_nl_langinfo_yesexpr_works=no
63728 fi
63729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
63730   conftest.$ac_objext conftest.beam conftest.$ac_ext
63731 fi
63732
63733
63734 fi
63735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
63736 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
63737     case $gl_cv_func_nl_langinfo_yesexpr_works in
63738       *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
63739       *)    FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
63740     esac
63741
63742 cat >>confdefs.h <<_ACEOF
63743 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
63744 _ACEOF
63745
63746     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
63747         && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
63748       :
63749     else
63750       REPLACE_NL_LANGINFO=1
63751
63752 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
63753
63754     fi
63755   else
63756     HAVE_NL_LANGINFO=0
63757   fi
63758
63759   if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
63760
63761
63762
63763
63764
63765
63766
63767
63768   grgl_LIBOBJS="$grgl_LIBOBJS nl_langinfo.$ac_objext"
63769
63770   fi
63771
63772
63773
63774
63775
63776     if test "$GNULIB_NL_LANGINFO" != 1; then
63777         if test "$GNULIB_NL_LANGINFO" = 0; then
63778       GNULIB_NL_LANGINFO=IN_GETTEXT_TOOLS_LIBGREP
63779     else
63780       GNULIB_NL_LANGINFO="($GNULIB_NL_LANGINFO || IN_GETTEXT_TOOLS_LIBGREP)"
63781     fi
63782   fi
63783
63784
63785
63786
63787
63788 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
63789
63790
63791
63792
63793
63794 # Check whether --with-included-regex was given.
63795 if test "${with_included_regex+set}" = set; then :
63796   withval=$with_included_regex;
63797 fi
63798
63799
63800   case $with_included_regex in #(
63801   yes|no) ac_use_included_regex=$with_included_regex
63802         ;;
63803   '')
63804     # If the system regex support is good enough that it passes the
63805     # following run test, then default to *not* using the included regex.c.
63806     # If cross compiling, assume the test would fail and use the included
63807     # regex.c.
63808
63809
63810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
63811 $as_echo_n "checking for working re_compile_pattern... " >&6; }
63812 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
63813   $as_echo_n "(cached) " >&6
63814 else
63815   if test "$cross_compiling" = yes; then :
63816          gl_cv_func_re_compile_pattern_working=no
63817 else
63818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63819 /* end confdefs.h.  */
63820 #include <regex.h>
63821
63822             #include <locale.h>
63823             #include <limits.h>
63824             #include <string.h>
63825
63826             #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
63827             # include <signal.h>
63828             # include <unistd.h>
63829             #endif
63830
63831             #if HAVE_MALLOC_H
63832             # include <malloc.h>
63833             #endif
63834
63835             #ifdef M_CHECK_ACTION
63836             /* Exit with distinguishable exit code.  */
63837             static void sigabrt_no_core (int sig) { raise (SIGTERM); }
63838             #endif
63839
63840 int
63841 main ()
63842 {
63843 int result = 0;
63844             static struct re_pattern_buffer regex;
63845             unsigned char folded_chars[UCHAR_MAX + 1];
63846             int i;
63847             const char *s;
63848             struct re_registers regs;
63849
63850             /* Some builds of glibc go into an infinite loop on this
63851                test.  Use alarm to force death, and mallopt to avoid
63852                malloc recursion in diagnosing the corrupted heap. */
63853 #if HAVE_DECL_ALARM
63854             signal (SIGALRM, SIG_DFL);
63855             alarm (2);
63856 #endif
63857 #ifdef M_CHECK_ACTION
63858             signal (SIGABRT, sigabrt_no_core);
63859             mallopt (M_CHECK_ACTION, 2);
63860 #endif
63861
63862             if (setlocale (LC_ALL, "en_US.UTF-8"))
63863               {
63864                 {
63865                   /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
63866                      This test needs valgrind to catch the bug on Debian
63867                      GNU/Linux 3.1 x86, but it might catch the bug better
63868                      on other platforms and it shouldn't hurt to try the
63869                      test here.  */
63870                   static char const pat[] = "insert into";
63871                   static char const data[] =
63872                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
63873                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
63874                                  | RE_ICASE);
63875                   memset (&regex, 0, sizeof regex);
63876                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
63877                   if (s)
63878                     result |= 1;
63879                   else if (re_search (&regex, data, sizeof data - 1,
63880                                       0, sizeof data - 1, &regs)
63881                            != -1)
63882                     result |= 1;
63883                 }
63884
63885                 {
63886                   /* This test is from glibc bug 15078.
63887                      The test case is from Andreas Schwab in
63888                      <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
63889                      */
63890                   static char const pat[] = "[^x]x";
63891                   static char const data[] =
63892                     /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
63893                     "\xe1\x80\x80"
63894                     "\xe1\x80\xbb"
63895                     "\xe1\x80\xbd"
63896                     "\xe1\x80\x94"
63897                     "\xe1\x80\xba"
63898                     "\xe1\x80\xaf"
63899                     "\xe1\x80\x95"
63900                     "\xe1\x80\xba"
63901                     "x";
63902                   re_set_syntax (0);
63903                   memset (&regex, 0, sizeof regex);
63904                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
63905                   if (s)
63906                     result |= 1;
63907                   else
63908                     {
63909                       i = re_search (&regex, data, sizeof data - 1,
63910                                      0, sizeof data - 1, 0);
63911                       if (i != 0 && i != 21)
63912                         result |= 1;
63913                     }
63914                 }
63915
63916                 if (! setlocale (LC_ALL, "C"))
63917                   return 1;
63918               }
63919
63920             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
63921             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
63922             memset (&regex, 0, sizeof regex);
63923             s = re_compile_pattern ("a[^x]b", 6, &regex);
63924             if (s)
63925               result |= 2;
63926             /* This should fail, but succeeds for glibc-2.5.  */
63927             else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
63928               result |= 2;
63929
63930             /* This regular expression is from Spencer ere test number 75
63931                in grep-2.3.  */
63932             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
63933             memset (&regex, 0, sizeof regex);
63934             for (i = 0; i <= UCHAR_MAX; i++)
63935               folded_chars[i] = i;
63936             regex.translate = folded_chars;
63937             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
63938             /* This should fail with _Invalid character class name_ error.  */
63939             if (!s)
63940               result |= 4;
63941
63942             /* Ensure that [b-a] is diagnosed as invalid, when
63943                using RE_NO_EMPTY_RANGES. */
63944             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
63945             memset (&regex, 0, sizeof regex);
63946             s = re_compile_pattern ("a[b-a]", 6, &regex);
63947             if (s == 0)
63948               result |= 8;
63949
63950             /* This should succeed, but does not for glibc-2.1.3.  */
63951             memset (&regex, 0, sizeof regex);
63952             s = re_compile_pattern ("{1", 2, &regex);
63953             if (s)
63954               result |= 8;
63955
63956             /* The following example is derived from a problem report
63957                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
63958             memset (&regex, 0, sizeof regex);
63959             s = re_compile_pattern ("[an\371]*n", 7, &regex);
63960             if (s)
63961               result |= 8;
63962             /* This should match, but does not for glibc-2.2.1.  */
63963             else if (re_match (&regex, "an", 2, 0, &regs) != 2)
63964               result |= 8;
63965
63966             memset (&regex, 0, sizeof regex);
63967             s = re_compile_pattern ("x", 1, &regex);
63968             if (s)
63969               result |= 8;
63970             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
63971             else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
63972               result |= 8;
63973
63974             /* The version of regex.c in older versions of gnulib
63975                ignored RE_ICASE.  Detect that problem too.  */
63976             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
63977             memset (&regex, 0, sizeof regex);
63978             s = re_compile_pattern ("x", 1, &regex);
63979             if (s)
63980               result |= 16;
63981             else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
63982               result |= 16;
63983
63984             /* Catch a bug reported by Vin Shelton in
63985                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
63986                */
63987             re_set_syntax (RE_SYNTAX_POSIX_BASIC
63988                            & ~RE_CONTEXT_INVALID_DUP
63989                            & ~RE_NO_EMPTY_RANGES);
63990             memset (&regex, 0, sizeof regex);
63991             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
63992             if (s)
63993               result |= 32;
63994
63995             /* REG_STARTEND was added to glibc on 2004-01-15.
63996                Reject older versions.  */
63997             if (! REG_STARTEND)
63998               result |= 64;
63999
64000 #if 0
64001             /* It would be nice to reject hosts whose regoff_t values are too
64002                narrow (including glibc on hosts with 64-bit ptrdiff_t and
64003                32-bit int), but we should wait until glibc implements this
64004                feature.  Otherwise, support for equivalence classes and
64005                multibyte collation symbols would always be broken except
64006                when compiling --without-included-regex.   */
64007             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
64008                 || sizeof (regoff_t) < sizeof (ssize_t))
64009               result |= 64;
64010 #endif
64011
64012             return result;
64013
64014   ;
64015   return 0;
64016 }
64017 _ACEOF
64018 if ac_fn_c_try_run "$LINENO"; then :
64019   gl_cv_func_re_compile_pattern_working=yes
64020 else
64021   gl_cv_func_re_compile_pattern_working=no
64022 fi
64023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64024   conftest.$ac_objext conftest.beam conftest.$ac_ext
64025 fi
64026
64027 fi
64028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
64029 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
64030     case $gl_cv_func_re_compile_pattern_working in #(
64031     yes) ac_use_included_regex=no;; #(
64032     no) ac_use_included_regex=yes;;
64033     esac
64034     ;;
64035   *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
64036     ;;
64037   esac
64038
64039   if test $ac_use_included_regex = yes; then
64040
64041 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
64042
64043
64044 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
64045
64046
64047 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
64048
64049
64050 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
64051
64052
64053 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
64054
64055
64056 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
64057
64058
64059 $as_echo "#define re_search rpl_re_search" >>confdefs.h
64060
64061
64062 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
64063
64064
64065 $as_echo "#define re_match rpl_re_match" >>confdefs.h
64066
64067
64068 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
64069
64070
64071 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
64072
64073
64074 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
64075
64076
64077 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
64078
64079
64080 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
64081
64082
64083 $as_echo "#define regexec rpl_regexec" >>confdefs.h
64084
64085
64086 $as_echo "#define regerror rpl_regerror" >>confdefs.h
64087
64088
64089 $as_echo "#define regfree rpl_regfree" >>confdefs.h
64090
64091   fi
64092
64093   if test $ac_use_included_regex = yes; then
64094
64095
64096
64097
64098
64099
64100
64101
64102   grgl_LIBOBJS="$grgl_LIBOBJS regex.$ac_objext"
64103
64104
64105
64106
64107
64108
64109
64110
64111   for ac_header in libintl.h
64112 do :
64113   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
64114 if test "x$ac_cv_header_libintl_h" = xyes; then :
64115   cat >>confdefs.h <<_ACEOF
64116 #define HAVE_LIBINTL_H 1
64117 _ACEOF
64118
64119 fi
64120
64121 done
64122
64123
64124   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
64125 "
64126 if test "x$ac_cv_have_decl_isblank" = xyes; then :
64127   ac_have_decl=1
64128 else
64129   ac_have_decl=0
64130 fi
64131
64132 cat >>confdefs.h <<_ACEOF
64133 #define HAVE_DECL_ISBLANK $ac_have_decl
64134 _ACEOF
64135
64136
64137   fi
64138
64139
64140
64141
64142
64143
64144
64145
64146
64147
64148
64149
64150
64151
64152   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
64153
64154
64155
64156      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
64157 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
64158 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
64159   $as_echo_n "(cached) " >&6
64160 else
64161
64162                   case "$host_os" in
64163                      # Guess no on AIX and OSF/1.
64164         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
64165                      # Guess yes otherwise.
64166         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
64167       esac
64168       if test $LOCALE_JA != none; then
64169         if test "$cross_compiling" = yes; then :
64170   :
64171 else
64172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64173 /* end confdefs.h.  */
64174
64175 #include <locale.h>
64176 #include <string.h>
64177 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
64178    <wchar.h>.
64179    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
64180    included before <wchar.h>.  */
64181 #include <stddef.h>
64182 #include <stdio.h>
64183 #include <time.h>
64184 #include <wchar.h>
64185 int main ()
64186 {
64187   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
64188     {
64189       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
64190       mbstate_t state;
64191       wchar_t wc;
64192
64193       memset (&state, '\0', sizeof (mbstate_t));
64194       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
64195         if (mbsinit (&state))
64196           return 1;
64197     }
64198   return 0;
64199 }
64200 _ACEOF
64201 if ac_fn_c_try_run "$LINENO"; then :
64202   gl_cv_func_mbrtowc_incomplete_state=yes
64203 else
64204   gl_cv_func_mbrtowc_incomplete_state=no
64205 fi
64206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64207   conftest.$ac_objext conftest.beam conftest.$ac_ext
64208 fi
64209
64210       fi
64211
64212 fi
64213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
64214 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
64215
64216
64217
64218
64219      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
64220 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
64221 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
64222   $as_echo_n "(cached) " >&6
64223 else
64224
64225                   case "$host_os" in
64226                     # Guess no on Solaris 8.
64227         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
64228                     # Guess yes otherwise.
64229         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
64230       esac
64231       if test $LOCALE_ZH_CN != none; then
64232         if test "$cross_compiling" = yes; then :
64233   :
64234 else
64235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64236 /* end confdefs.h.  */
64237
64238 #include <locale.h>
64239 #include <stdlib.h>
64240 #include <string.h>
64241 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
64242    <wchar.h>.
64243    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
64244    included before <wchar.h>.  */
64245 #include <stddef.h>
64246 #include <stdio.h>
64247 #include <time.h>
64248 #include <wchar.h>
64249 int main ()
64250 {
64251   /* This fails on Solaris 8:
64252      mbrtowc returns 2, and sets wc to 0x00F0.
64253      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
64254   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
64255     {
64256       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
64257       mbstate_t state;
64258       wchar_t wc;
64259
64260       memset (&state, '\0', sizeof (mbstate_t));
64261       if (mbrtowc (&wc, input + 3, 6, &state) != 4
64262           && mbtowc (&wc, input + 3, 6) == 4)
64263         return 1;
64264     }
64265   return 0;
64266 }
64267 _ACEOF
64268 if ac_fn_c_try_run "$LINENO"; then :
64269   gl_cv_func_mbrtowc_sanitycheck=yes
64270 else
64271   gl_cv_func_mbrtowc_sanitycheck=no
64272 fi
64273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64274   conftest.$ac_objext conftest.beam conftest.$ac_ext
64275 fi
64276
64277       fi
64278
64279 fi
64280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
64281 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
64282
64283     REPLACE_MBSTATE_T=0
64284     case "$gl_cv_func_mbrtowc_incomplete_state" in
64285       *yes) ;;
64286       *) REPLACE_MBSTATE_T=1 ;;
64287     esac
64288     case "$gl_cv_func_mbrtowc_sanitycheck" in
64289       *yes) ;;
64290       *) REPLACE_MBSTATE_T=1 ;;
64291     esac
64292   else
64293     REPLACE_MBSTATE_T=1
64294   fi
64295
64296
64297
64298   if test $ac_cv_func_wcrtomb = no; then
64299     HAVE_WCRTOMB=0
64300     ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
64301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
64302    <wchar.h>.
64303    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
64304    included before <wchar.h>.  */
64305 #include <stddef.h>
64306 #include <stdio.h>
64307 #include <time.h>
64308 #include <wchar.h>
64309
64310 "
64311 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
64312   ac_have_decl=1
64313 else
64314   ac_have_decl=0
64315 fi
64316
64317 cat >>confdefs.h <<_ACEOF
64318 #define HAVE_DECL_WCRTOMB $ac_have_decl
64319 _ACEOF
64320
64321     if test $ac_cv_have_decl_wcrtomb = yes; then
64322                         REPLACE_WCRTOMB=1
64323     fi
64324   else
64325     if test $REPLACE_MBSTATE_T = 1; then
64326       REPLACE_WCRTOMB=1
64327     else
64328
64329
64330
64331
64332
64333              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
64334 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
64335 if ${gl_cv_func_wcrtomb_retval+:} false; then :
64336   $as_echo_n "(cached) " >&6
64337 else
64338
64339                               case "$host_os" in
64340                                      # Guess no on AIX 4, OSF/1 and Solaris.
64341             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
64342                                      # Guess yes otherwise.
64343             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
64344           esac
64345           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
64346             if test "$cross_compiling" = yes; then :
64347   :
64348 else
64349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64350 /* end confdefs.h.  */
64351
64352 #include <locale.h>
64353 #include <string.h>
64354 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
64355    <wchar.h>.
64356    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
64357    included before <wchar.h>.  */
64358 #include <stddef.h>
64359 #include <stdio.h>
64360 #include <time.h>
64361 #include <wchar.h>
64362 int main ()
64363 {
64364   int result = 0;
64365   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
64366     {
64367       if (wcrtomb (NULL, 0, NULL) != 1)
64368         result |= 1;
64369     }
64370   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
64371     {
64372       if (wcrtomb (NULL, 0, NULL) != 1)
64373         result |= 2;
64374     }
64375   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
64376     {
64377       if (wcrtomb (NULL, 0, NULL) != 1)
64378         result |= 4;
64379     }
64380   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
64381     {
64382       if (wcrtomb (NULL, 0, NULL) != 1)
64383         result |= 8;
64384     }
64385   return result;
64386 }
64387 _ACEOF
64388 if ac_fn_c_try_run "$LINENO"; then :
64389   gl_cv_func_wcrtomb_retval=yes
64390 else
64391   gl_cv_func_wcrtomb_retval=no
64392 fi
64393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64394   conftest.$ac_objext conftest.beam conftest.$ac_ext
64395 fi
64396
64397           fi
64398
64399 fi
64400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
64401 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
64402       case "$gl_cv_func_wcrtomb_retval" in
64403         *yes) ;;
64404         *) REPLACE_WCRTOMB=1 ;;
64405       esac
64406     fi
64407   fi
64408
64409   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
64410
64411
64412
64413
64414
64415
64416
64417
64418   grgl_LIBOBJS="$grgl_LIBOBJS wcrtomb.$ac_objext"
64419
64420
64421   :
64422
64423   fi
64424
64425
64426
64427
64428
64429     if test "$GNULIB_WCRTOMB" != 1; then
64430         if test "$GNULIB_WCRTOMB" = 0; then
64431       GNULIB_WCRTOMB=IN_GETTEXT_TOOLS_LIBGREP
64432     else
64433       GNULIB_WCRTOMB="($GNULIB_WCRTOMB || IN_GETTEXT_TOOLS_LIBGREP)"
64434     fi
64435   fi
64436
64437
64438
64439
64440
64441 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
64442
64443
64444
64445
64446   # End of code from modules
64447
64448
64449
64450
64451
64452
64453
64454
64455
64456   gltests_libdeps=
64457   gltests_ltlibdeps=
64458
64459
64460
64461
64462
64463
64464
64465
64466
64467   gl_source_base='tests'
64468   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
64469
64470   gl_module_indicator_condition=$grgltests_WITNESS
64471
64472
64473
64474
64475
64476
64477
64478
64479
64480   LIBGREP_LIBDEPS="$gl_libdeps"
64481
64482   LIBGREP_LTLIBDEPS="$gl_ltlibdeps"
64483
64484
64485
64486    if true; then
64487   GL_COND_LIBTOOL_TRUE=
64488   GL_COND_LIBTOOL_FALSE='#'
64489 else
64490   GL_COND_LIBTOOL_TRUE='#'
64491   GL_COND_LIBTOOL_FALSE=
64492 fi
64493
64494   gl_cond_libtool=true
64495   gl_m4_base='libgettextpo/gnulib-m4'
64496
64497
64498
64499
64500
64501
64502
64503
64504
64505   gl_source_base='libgettextpo'
64506
64507
64508
64509
64510
64511   if test $ac_cv_func_alloca_works = no; then
64512
64513
64514   :
64515
64516   fi
64517
64518   # Define an additional variable used in the Makefile substitution.
64519
64520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64521 /* end confdefs.h.  */
64522
64523 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
64524   Need own alloca
64525 #endif
64526
64527 _ACEOF
64528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64529   $EGREP "Need own alloca" >/dev/null 2>&1; then :
64530   ALLOCA_H=alloca.h
64531 else
64532   ALLOCA_H=
64533 fi
64534 rm -f conftest*
64535
64536
64537    if test -n "$ALLOCA_H"; then
64538   GL_GENERATE_ALLOCA_H_TRUE=
64539   GL_GENERATE_ALLOCA_H_FALSE='#'
64540 else
64541   GL_GENERATE_ALLOCA_H_TRUE='#'
64542   GL_GENERATE_ALLOCA_H_FALSE=
64543 fi
64544
64545
64546
64547
64548
64549   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
64550     REPLACE_CLOSE=1
64551   fi
64552
64553
64554
64555
64556
64557   if test $ac_cv_header_sys_socket_h != yes; then
64558                     for ac_header in winsock2.h
64559 do :
64560   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
64561 if test "x$ac_cv_header_winsock2_h" = xyes; then :
64562   cat >>confdefs.h <<_ACEOF
64563 #define HAVE_WINSOCK2_H 1
64564 _ACEOF
64565
64566 fi
64567
64568 done
64569
64570   fi
64571   if test "$ac_cv_header_winsock2_h" = yes; then
64572     HAVE_WINSOCK2_H=1
64573     UNISTD_H_HAVE_WINSOCK2_H=1
64574     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
64575   else
64576     HAVE_WINSOCK2_H=0
64577   fi
64578
64579
64580     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
64581                         REPLACE_CLOSE=1
64582     fi
64583
64584
64585
64586   if test $REPLACE_CLOSE = 1; then
64587
64588
64589
64590
64591
64592
64593
64594
64595   gtpo_LIBOBJS="$gtpo_LIBOBJS close.$ac_objext"
64596
64597   fi
64598
64599
64600
64601
64602
64603           GNULIB_CLOSE=1
64604
64605
64606
64607
64608
64609 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
64610
64611
64612
64613
64614           if test "x$datarootdir" = x; then
64615     datarootdir='${datadir}'
64616
64617   fi
64618     if test "x$docdir" = x; then
64619     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
64620
64621   fi
64622     if test "x$htmldir" = x; then
64623     htmldir='${docdir}'
64624
64625   fi
64626   if test "x$dvidir" = x; then
64627     dvidir='${docdir}'
64628
64629   fi
64630   if test "x$pdfdir" = x; then
64631     pdfdir='${docdir}'
64632
64633   fi
64634   if test "x$psdir" = x; then
64635     psdir='${docdir}'
64636
64637   fi
64638   if test "x$lispdir" = x; then
64639     lispdir='${datarootdir}/emacs/site-lisp'
64640
64641   fi
64642   if test "x$localedir" = x; then
64643     localedir='${datarootdir}/locale'
64644
64645   fi
64646     if test "x$runstatedir" = x; then
64647     runstatedir='${localstatedir}/run'
64648
64649   fi
64650
64651       pkglibexecdir='${libexecdir}/${PACKAGE}'
64652
64653
64654
64655
64656       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
64657 $as_echo_n "checking for error_at_line... " >&6; }
64658 if ${ac_cv_lib_error_at_line+:} false; then :
64659   $as_echo_n "(cached) " >&6
64660 else
64661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64662 /* end confdefs.h.  */
64663 #include <error.h>
64664 int
64665 main ()
64666 {
64667 error_at_line (0, 0, "", 0, "an error occurred");
64668   ;
64669   return 0;
64670 }
64671 _ACEOF
64672 if ac_fn_c_try_link "$LINENO"; then :
64673   ac_cv_lib_error_at_line=yes
64674 else
64675   ac_cv_lib_error_at_line=no
64676 fi
64677 rm -f core conftest.err conftest.$ac_objext \
64678     conftest$ac_exeext conftest.$ac_ext
64679 fi
64680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
64681 $as_echo "$ac_cv_lib_error_at_line" >&6; }
64682
64683   if test $ac_cv_lib_error_at_line = no; then
64684
64685
64686
64687
64688
64689
64690
64691
64692   gtpo_LIBOBJS="$gtpo_LIBOBJS error.$ac_objext"
64693
64694
64695
64696   :
64697
64698   fi
64699
64700
64701   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
64702
64703
64704
64705   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
64706
64707
64708
64709
64710
64711
64712
64713
64714
64715
64716
64717
64718
64719      if test $gl_cv_have_include_next = yes; then
64720        gl_cv_next_fcntl_h='<'fcntl.h'>'
64721      else
64722        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
64723 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
64724 if ${gl_cv_next_fcntl_h+:} false; then :
64725   $as_echo_n "(cached) " >&6
64726 else
64727
64728
64729
64730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64731 /* end confdefs.h.  */
64732 #include <fcntl.h>
64733 _ACEOF
64734                 case "$host_os" in
64735     aix*) gl_absname_cpp="$ac_cpp -C" ;;
64736     *)    gl_absname_cpp="$ac_cpp" ;;
64737   esac
64738
64739   case "$host_os" in
64740     mingw*)
64741                                           gl_dirsep_regex='[/\\]'
64742       ;;
64743     *)
64744       gl_dirsep_regex='\/'
64745       ;;
64746   esac
64747       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
64748   gl_header_literal_regex=`echo 'fcntl.h' \
64749                            | sed -e "$gl_make_literal_regex_sed"`
64750   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
64751       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
64752       s|^/[^/]|//&|
64753       p
64754       q
64755     }'
64756
64757         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
64758   sed -n "$gl_absolute_header_sed"`
64759
64760            gl_header=$gl_cv_absolute_fcntl_h
64761            gl_cv_next_fcntl_h='"'$gl_header'"'
64762
64763
64764 fi
64765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
64766 $as_echo "$gl_cv_next_fcntl_h" >&6; }
64767      fi
64768      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
64769
64770      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
64771        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
64772        gl_next_as_first_directive='<'fcntl.h'>'
64773      else
64774        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
64775        gl_next_as_first_directive=$gl_cv_next_fcntl_h
64776      fi
64777      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
64778
64779
64780
64781
64782
64783
64784
64785
64786
64787
64788     for gl_func in fcntl openat; do
64789     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
64790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
64791 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
64792 if eval \${$as_gl_Symbol+:} false; then :
64793   $as_echo_n "(cached) " >&6
64794 else
64795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64796 /* end confdefs.h.  */
64797 #include <fcntl.h>
64798
64799 int
64800 main ()
64801 {
64802 #undef $gl_func
64803   (void) $gl_func;
64804   ;
64805   return 0;
64806 }
64807 _ACEOF
64808 if ac_fn_c_try_compile "$LINENO"; then :
64809   eval "$as_gl_Symbol=yes"
64810 else
64811   eval "$as_gl_Symbol=no"
64812 fi
64813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64814 fi
64815 eval ac_res=\$$as_gl_Symbol
64816                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
64817 $as_echo "$ac_res" >&6; }
64818     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
64819   cat >>confdefs.h <<_ACEOF
64820 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
64821 _ACEOF
64822
64823                      eval ac_cv_have_decl_$gl_func=yes
64824 fi
64825       done
64826
64827
64828
64829
64830
64831   FLOAT_H=
64832   REPLACE_FLOAT_LDBL=0
64833   case "$host_os" in
64834     aix* | beos* | openbsd* | mirbsd* | irix*)
64835       FLOAT_H=float.h
64836       ;;
64837     freebsd*)
64838       case "$host_cpu" in
64839         i[34567]86 )
64840           FLOAT_H=float.h
64841           ;;
64842         x86_64 )
64843           # On x86_64 systems, the C compiler may still be generating
64844           # 32-bit code.
64845           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64846 /* end confdefs.h.  */
64847 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
64848              yes
64849              #endif
64850 _ACEOF
64851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64852   $EGREP "yes" >/dev/null 2>&1; then :
64853
64854 else
64855   FLOAT_H=float.h
64856 fi
64857 rm -f conftest*
64858
64859           ;;
64860       esac
64861       ;;
64862     linux*)
64863       case "$host_cpu" in
64864         powerpc*)
64865           FLOAT_H=float.h
64866           ;;
64867       esac
64868       ;;
64869   esac
64870   case "$host_os" in
64871     aix* | freebsd* | linux*)
64872       if test -n "$FLOAT_H"; then
64873         REPLACE_FLOAT_LDBL=1
64874       fi
64875       ;;
64876   esac
64877
64878     REPLACE_ITOLD=0
64879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
64880 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
64881 if ${gl_cv_func_itold_works+:} false; then :
64882   $as_echo_n "(cached) " >&6
64883 else
64884
64885       if test "$cross_compiling" = yes; then :
64886   case "$host" in
64887            sparc*-*-linux*)
64888              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64889 /* end confdefs.h.  */
64890 #if defined __LP64__ || defined __arch64__
64891                 yes
64892                 #endif
64893 _ACEOF
64894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64895   $EGREP "yes" >/dev/null 2>&1; then :
64896   gl_cv_func_itold_works="guessing no"
64897 else
64898   gl_cv_func_itold_works="guessing yes"
64899 fi
64900 rm -f conftest*
64901
64902              ;;
64903            *) gl_cv_func_itold_works="guessing yes" ;;
64904          esac
64905
64906 else
64907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64908 /* end confdefs.h.  */
64909
64910 int i = -1;
64911 volatile long double ld;
64912 int main ()
64913 {
64914   ld += i * 1.0L;
64915   if (ld > 0)
64916     return 1;
64917   return 0;
64918 }
64919 _ACEOF
64920 if ac_fn_c_try_run "$LINENO"; then :
64921   gl_cv_func_itold_works=yes
64922 else
64923   gl_cv_func_itold_works=no
64924 fi
64925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64926   conftest.$ac_objext conftest.beam conftest.$ac_ext
64927 fi
64928
64929
64930 fi
64931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
64932 $as_echo "$gl_cv_func_itold_works" >&6; }
64933   case "$gl_cv_func_itold_works" in
64934     *no)
64935       REPLACE_ITOLD=1
64936                   FLOAT_H=float.h
64937       ;;
64938   esac
64939
64940   if test -n "$FLOAT_H"; then
64941
64942
64943
64944
64945
64946
64947
64948
64949      if test $gl_cv_have_include_next = yes; then
64950        gl_cv_next_float_h='<'float.h'>'
64951      else
64952        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
64953 $as_echo_n "checking absolute name of <float.h>... " >&6; }
64954 if ${gl_cv_next_float_h+:} false; then :
64955   $as_echo_n "(cached) " >&6
64956 else
64957
64958
64959
64960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64961 /* end confdefs.h.  */
64962 #include <float.h>
64963 _ACEOF
64964                 case "$host_os" in
64965     aix*) gl_absname_cpp="$ac_cpp -C" ;;
64966     *)    gl_absname_cpp="$ac_cpp" ;;
64967   esac
64968
64969   case "$host_os" in
64970     mingw*)
64971                                           gl_dirsep_regex='[/\\]'
64972       ;;
64973     *)
64974       gl_dirsep_regex='\/'
64975       ;;
64976   esac
64977       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
64978   gl_header_literal_regex=`echo 'float.h' \
64979                            | sed -e "$gl_make_literal_regex_sed"`
64980   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
64981       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
64982       s|^/[^/]|//&|
64983       p
64984       q
64985     }'
64986
64987         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
64988   sed -n "$gl_absolute_header_sed"`
64989
64990            gl_header=$gl_cv_absolute_float_h
64991            gl_cv_next_float_h='"'$gl_header'"'
64992
64993
64994 fi
64995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
64996 $as_echo "$gl_cv_next_float_h" >&6; }
64997      fi
64998      NEXT_FLOAT_H=$gl_cv_next_float_h
64999
65000      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
65001        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
65002        gl_next_as_first_directive='<'float.h'>'
65003      else
65004        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
65005        gl_next_as_first_directive=$gl_cv_next_float_h
65006      fi
65007      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
65008
65009
65010
65011
65012   fi
65013
65014    if test -n "$FLOAT_H"; then
65015   GL_GENERATE_FLOAT_H_TRUE=
65016   GL_GENERATE_FLOAT_H_FALSE='#'
65017 else
65018   GL_GENERATE_FLOAT_H_TRUE='#'
65019   GL_GENERATE_FLOAT_H_FALSE=
65020 fi
65021
65022
65023
65024   if test $REPLACE_FLOAT_LDBL = 1; then
65025
65026
65027
65028
65029
65030
65031
65032
65033   gtpo_LIBOBJS="$gtpo_LIBOBJS float.$ac_objext"
65034
65035   fi
65036   if test $REPLACE_ITOLD = 1; then
65037
65038
65039
65040
65041
65042
65043
65044
65045   gtpo_LIBOBJS="$gtpo_LIBOBJS itold.$ac_objext"
65046
65047   fi
65048
65049
65050
65051   case "$host_os" in
65052     mingw* | pw*)
65053             REPLACE_FOPEN=1
65054             gl_cv_func_fopen_slash="guessing no"
65055       ;;
65056     *)
65057                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
65058 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
65059 if ${gl_cv_func_fopen_slash+:} false; then :
65060   $as_echo_n "(cached) " >&6
65061 else
65062
65063           if test "$cross_compiling" = yes; then :
65064
65065              case "$host_os" in
65066                aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
65067                  gl_cv_func_fopen_slash="guessing no" ;;
65068                *)
65069                  gl_cv_func_fopen_slash="guessing yes" ;;
65070              esac
65071
65072 else
65073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65074 /* end confdefs.h.  */
65075
65076 #include <stddef.h>
65077 #include <stdio.h>
65078 int main ()
65079 {
65080   return fopen ("conftest.sl/", "w") != NULL;
65081 }
65082 _ACEOF
65083 if ac_fn_c_try_run "$LINENO"; then :
65084   gl_cv_func_fopen_slash=yes
65085 else
65086   gl_cv_func_fopen_slash=no
65087 fi
65088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
65089   conftest.$ac_objext conftest.beam conftest.$ac_ext
65090 fi
65091
65092           rm -f conftest.sl
65093
65094 fi
65095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
65096 $as_echo "$gl_cv_func_fopen_slash" >&6; }
65097       ;;
65098   esac
65099   case "$gl_cv_func_fopen_slash" in
65100     *no)
65101
65102 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
65103
65104       REPLACE_FOPEN=1
65105       ;;
65106   esac
65107
65108   if test $REPLACE_FOPEN = 1; then
65109
65110
65111
65112
65113
65114
65115
65116
65117   gtpo_LIBOBJS="$gtpo_LIBOBJS fopen.$ac_objext"
65118
65119     :
65120   fi
65121
65122
65123
65124
65125
65126           GNULIB_FOPEN=1
65127
65128
65129
65130
65131
65132 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
65133
65134
65135
65136
65137
65138
65139
65140   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
65141     REPLACE_FSTAT=1
65142   fi
65143
65144
65145   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
65146     REPLACE_FSTAT=1
65147   fi
65148
65149
65150
65151   if test $REPLACE_FSTAT = 1; then
65152
65153
65154
65155
65156
65157
65158
65159
65160   gtpo_LIBOBJS="$gtpo_LIBOBJS fstat.$ac_objext"
65161
65162     :
65163   fi
65164
65165
65166
65167
65168
65169           GNULIB_FSTAT=1
65170
65171
65172
65173
65174
65175 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
65176
65177
65178
65179
65180
65181 cat >>confdefs.h <<_ACEOF
65182 #define GNULIB_FWRITEERROR 1
65183 _ACEOF
65184
65185
65186
65187
65188
65189
65190
65191
65192
65193
65194   if test $ac_cv_func_getdelim = yes; then
65195     HAVE_GETDELIM=1
65196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
65197 $as_echo_n "checking for working getdelim function... " >&6; }
65198 if ${gl_cv_func_working_getdelim+:} false; then :
65199   $as_echo_n "(cached) " >&6
65200 else
65201   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
65202     if test "$cross_compiling" = yes; then :
65203         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65204 /* end confdefs.h.  */
65205
65206 #include <features.h>
65207 #ifdef __GNU_LIBRARY__
65208  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
65209   Lucky GNU user
65210  #endif
65211 #endif
65212
65213 _ACEOF
65214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65215   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
65216   gl_cv_func_working_getdelim="guessing yes"
65217 else
65218   gl_cv_func_working_getdelim="guessing no"
65219 fi
65220 rm -f conftest*
65221
65222
65223 else
65224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65225 /* end confdefs.h.  */
65226
65227 #    include <stdio.h>
65228 #    include <stdlib.h>
65229 #    include <string.h>
65230     int main ()
65231     {
65232       FILE *in = fopen ("./conftest.data", "r");
65233       if (!in)
65234         return 1;
65235       {
65236         /* Test result for a NULL buffer and a zero size.
65237            Based on a test program from Karl Heuer.  */
65238         char *line = NULL;
65239         size_t siz = 0;
65240         int len = getdelim (&line, &siz, '\n', in);
65241         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
65242           return 2;
65243       }
65244       {
65245         /* Test result for a NULL buffer and a non-zero size.
65246            This crashes on FreeBSD 8.0.  */
65247         char *line = NULL;
65248         size_t siz = (size_t)(~0) / 4;
65249         if (getdelim (&line, &siz, '\n', in) == -1)
65250           return 3;
65251       }
65252       return 0;
65253     }
65254
65255 _ACEOF
65256 if ac_fn_c_try_run "$LINENO"; then :
65257   gl_cv_func_working_getdelim=yes
65258 else
65259   gl_cv_func_working_getdelim=no
65260 fi
65261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
65262   conftest.$ac_objext conftest.beam conftest.$ac_ext
65263 fi
65264
65265 fi
65266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
65267 $as_echo "$gl_cv_func_working_getdelim" >&6; }
65268     case "$gl_cv_func_working_getdelim" in
65269       *no)
65270         REPLACE_GETDELIM=1
65271         ;;
65272     esac
65273   else
65274     HAVE_GETDELIM=0
65275   fi
65276
65277   if test $ac_cv_have_decl_getdelim = no; then
65278     HAVE_DECL_GETDELIM=0
65279   fi
65280
65281   if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
65282
65283
65284
65285
65286
65287
65288
65289
65290   gtpo_LIBOBJS="$gtpo_LIBOBJS getdelim.$ac_objext"
65291
65292
65293   for ac_func in flockfile funlockfile
65294 do :
65295   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
65297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
65298   cat >>confdefs.h <<_ACEOF
65299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65300 _ACEOF
65301
65302 fi
65303 done
65304
65305   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
65306 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
65307   ac_have_decl=1
65308 else
65309   ac_have_decl=0
65310 fi
65311
65312 cat >>confdefs.h <<_ACEOF
65313 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
65314 _ACEOF
65315
65316
65317   fi
65318
65319
65320
65321
65322
65323           GNULIB_GETDELIM=1
65324
65325
65326
65327
65328
65329 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
65330
65331
65332
65333
65334
65335
65336
65337
65338
65339
65340   gl_getline_needs_run_time_check=no
65341   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
65342 if test "x$ac_cv_func_getline" = xyes; then :
65343                    gl_getline_needs_run_time_check=yes
65344 else
65345   am_cv_func_working_getline=no
65346 fi
65347
65348   if test $gl_getline_needs_run_time_check = yes; then
65349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
65350 $as_echo_n "checking for working getline function... " >&6; }
65351 if ${am_cv_func_working_getline+:} false; then :
65352   $as_echo_n "(cached) " >&6
65353 else
65354   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
65355     if test "$cross_compiling" = yes; then :
65356         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65357 /* end confdefs.h.  */
65358
65359 #include <features.h>
65360 #ifdef __GNU_LIBRARY__
65361  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
65362   Lucky GNU user
65363  #endif
65364 #endif
65365
65366 _ACEOF
65367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65368   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
65369   am_cv_func_working_getline="guessing yes"
65370 else
65371   am_cv_func_working_getline="guessing no"
65372 fi
65373 rm -f conftest*
65374
65375
65376 else
65377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65378 /* end confdefs.h.  */
65379
65380 #    include <stdio.h>
65381 #    include <stdlib.h>
65382 #    include <string.h>
65383     int main ()
65384     {
65385       FILE *in = fopen ("./conftest.data", "r");
65386       if (!in)
65387         return 1;
65388       {
65389         /* Test result for a NULL buffer and a zero size.
65390            Based on a test program from Karl Heuer.  */
65391         char *line = NULL;
65392         size_t siz = 0;
65393         int len = getline (&line, &siz, in);
65394         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
65395           return 2;
65396       }
65397       {
65398         /* Test result for a NULL buffer and a non-zero size.
65399            This crashes on FreeBSD 8.0.  */
65400         char *line = NULL;
65401         size_t siz = (size_t)(~0) / 4;
65402         if (getline (&line, &siz, in) == -1)
65403           return 3;
65404       }
65405       return 0;
65406     }
65407
65408 _ACEOF
65409 if ac_fn_c_try_run "$LINENO"; then :
65410   am_cv_func_working_getline=yes
65411 else
65412   am_cv_func_working_getline=no
65413 fi
65414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
65415   conftest.$ac_objext conftest.beam conftest.$ac_ext
65416 fi
65417
65418 fi
65419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
65420 $as_echo "$am_cv_func_working_getline" >&6; }
65421   fi
65422
65423   if test $ac_cv_have_decl_getline = no; then
65424     HAVE_DECL_GETLINE=0
65425   fi
65426
65427   case "$am_cv_func_working_getline" in
65428     *no)
65429                         REPLACE_GETLINE=1
65430       ;;
65431   esac
65432
65433   if test $REPLACE_GETLINE = 1; then
65434
65435
65436
65437
65438
65439
65440
65441
65442   gtpo_LIBOBJS="$gtpo_LIBOBJS getline.$ac_objext"
65443
65444
65445   :
65446
65447   fi
65448
65449
65450
65451
65452
65453           GNULIB_GETLINE=1
65454
65455
65456
65457
65458
65459 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
65460
65461
65462
65463
65464
65465
65466
65467
65468
65469
65470
65471   gl_gettimeofday_timezone=void
65472   if test $ac_cv_func_gettimeofday != yes; then
65473     HAVE_GETTIMEOFDAY=0
65474   else
65475
65476
65477
65478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
65479 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
65480 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
65481   $as_echo_n "(cached) " >&6
65482 else
65483   if test "$cross_compiling" = yes; then :
65484   # When cross-compiling:
65485       case "$host_os" in
65486                 # Guess all is fine on glibc systems.
65487         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
65488                 # If we don't know, assume the worst.
65489         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
65490       esac
65491
65492 else
65493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65494 /* end confdefs.h.  */
65495 #include <string.h>
65496           #include <sys/time.h>
65497           #include <time.h>
65498           #include <stdlib.h>
65499
65500 int
65501 main ()
65502 {
65503
65504           time_t t = 0;
65505           struct tm *lt;
65506           struct tm saved_lt;
65507           struct timeval tv;
65508           lt = localtime (&t);
65509           saved_lt = *lt;
65510           gettimeofday (&tv, NULL);
65511           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
65512
65513   ;
65514   return 0;
65515 }
65516 _ACEOF
65517 if ac_fn_c_try_run "$LINENO"; then :
65518   gl_cv_func_gettimeofday_clobber=no
65519 else
65520   gl_cv_func_gettimeofday_clobber=yes
65521 fi
65522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
65523   conftest.$ac_objext conftest.beam conftest.$ac_ext
65524 fi
65525
65526 fi
65527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
65528 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
65529
65530  case "$gl_cv_func_gettimeofday_clobber" in
65531    *yes)
65532      REPLACE_GETTIMEOFDAY=1
65533
65534   REPLACE_GMTIME=1
65535   REPLACE_LOCALTIME=1
65536
65537
65538 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
65539
65540      ;;
65541  esac
65542
65543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
65544 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
65545 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
65546   $as_echo_n "(cached) " >&6
65547 else
65548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65549 /* end confdefs.h.  */
65550 #include <sys/time.h>
65551               struct timeval c;
65552               int gettimeofday (struct timeval *restrict, void *restrict);
65553
65554 int
65555 main ()
65556 {
65557 /* glibc uses struct timezone * rather than the POSIX void *
65558                  if _GNU_SOURCE is defined.  However, since the only portable
65559                  use of gettimeofday uses NULL as the second parameter, and
65560                  since the glibc definition is actually more typesafe, it is
65561                  not worth wrapping this to get a compliant signature.  */
65562               int (*f) (struct timeval *restrict, void *restrict)
65563                 = gettimeofday;
65564               int x = f (&c, 0);
65565               return !(x | c.tv_sec | c.tv_usec);
65566
65567   ;
65568   return 0;
65569 }
65570 _ACEOF
65571 if ac_fn_c_try_compile "$LINENO"; then :
65572   gl_cv_func_gettimeofday_posix_signature=yes
65573 else
65574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65575 /* end confdefs.h.  */
65576 #include <sys/time.h>
65577 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
65578
65579 int
65580 main ()
65581 {
65582
65583   ;
65584   return 0;
65585 }
65586 _ACEOF
65587 if ac_fn_c_try_compile "$LINENO"; then :
65588   gl_cv_func_gettimeofday_posix_signature=almost
65589 else
65590   gl_cv_func_gettimeofday_posix_signature=no
65591 fi
65592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65593 fi
65594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65595 fi
65596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
65597 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
65598     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
65599       gl_gettimeofday_timezone='struct timezone'
65600     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
65601       REPLACE_GETTIMEOFDAY=1
65602     fi
65603         if test $REPLACE_STRUCT_TIMEVAL = 1; then
65604       REPLACE_GETTIMEOFDAY=1
65605     fi
65606
65607   fi
65608
65609 cat >>confdefs.h <<_ACEOF
65610 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
65611 _ACEOF
65612
65613
65614   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
65615
65616
65617
65618
65619
65620
65621
65622
65623   gtpo_LIBOBJS="$gtpo_LIBOBJS gettimeofday.$ac_objext"
65624
65625
65626   for ac_header in sys/timeb.h
65627 do :
65628   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
65629 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
65630   cat >>confdefs.h <<_ACEOF
65631 #define HAVE_SYS_TIMEB_H 1
65632 _ACEOF
65633
65634 fi
65635
65636 done
65637
65638   for ac_func in _ftime
65639 do :
65640   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
65641 if test "x$ac_cv_func__ftime" = xyes; then :
65642   cat >>confdefs.h <<_ACEOF
65643 #define HAVE__FTIME 1
65644 _ACEOF
65645
65646 fi
65647 done
65648
65649
65650   fi
65651
65652
65653
65654
65655
65656           GNULIB_GETTIMEOFDAY=1
65657
65658
65659
65660
65661
65662 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
65663
65664
65665
65666
65667
65668
65669
65670
65671
65672           GNULIB_ICONV=1
65673
65674
65675
65676
65677
65678
65679
65680
65681
65682
65683
65684
65685
65686
65687
65688
65689      if test $gl_cv_have_include_next = yes; then
65690        gl_cv_next_iconv_h='<'iconv.h'>'
65691      else
65692        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
65693 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
65694 if ${gl_cv_next_iconv_h+:} false; then :
65695   $as_echo_n "(cached) " >&6
65696 else
65697
65698              if test $ac_cv_header_iconv_h = yes; then
65699
65700
65701
65702
65703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65704 /* end confdefs.h.  */
65705 #include <iconv.h>
65706 _ACEOF
65707                 case "$host_os" in
65708     aix*) gl_absname_cpp="$ac_cpp -C" ;;
65709     *)    gl_absname_cpp="$ac_cpp" ;;
65710   esac
65711
65712   case "$host_os" in
65713     mingw*)
65714                                           gl_dirsep_regex='[/\\]'
65715       ;;
65716     *)
65717       gl_dirsep_regex='\/'
65718       ;;
65719   esac
65720       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
65721   gl_header_literal_regex=`echo 'iconv.h' \
65722                            | sed -e "$gl_make_literal_regex_sed"`
65723   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
65724       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
65725       s|^/[^/]|//&|
65726       p
65727       q
65728     }'
65729
65730         gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
65731   sed -n "$gl_absolute_header_sed"`
65732
65733            gl_header=$gl_cv_absolute_iconv_h
65734            gl_cv_next_iconv_h='"'$gl_header'"'
65735           else
65736                gl_cv_next_iconv_h='<'iconv.h'>'
65737              fi
65738
65739
65740 fi
65741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
65742 $as_echo "$gl_cv_next_iconv_h" >&6; }
65743      fi
65744      NEXT_ICONV_H=$gl_cv_next_iconv_h
65745
65746      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
65747        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
65748        gl_next_as_first_directive='<'iconv.h'>'
65749      else
65750        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
65751        gl_next_as_first_directive=$gl_cv_next_iconv_h
65752      fi
65753      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
65754
65755
65756
65757
65758
65759
65760
65761
65762
65763   if test "$am_cv_func_iconv" = yes; then
65764
65765
65766   ICONV_H='iconv.h'
65767    if test -n "$ICONV_H"; then
65768   GL_GENERATE_ICONV_H_TRUE=
65769   GL_GENERATE_ICONV_H_FALSE='#'
65770 else
65771   GL_GENERATE_ICONV_H_TRUE='#'
65772   GL_GENERATE_ICONV_H_FALSE=
65773 fi
65774
65775
65776             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65777 /* end confdefs.h.  */
65778
65779       #include <iconv.h>
65780       #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
65781        gnu_iconv
65782       #endif
65783
65784 _ACEOF
65785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65786   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
65787   gl_func_iconv_gnu=yes
65788 else
65789   gl_func_iconv_gnu=no
65790 fi
65791 rm -f conftest*
65792
65793     if test $gl_func_iconv_gnu = no; then
65794       iconv_flavor=
65795       case "$host_os" in
65796         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
65797         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
65798         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
65799         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
65800         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
65801       esac
65802       if test -n "$iconv_flavor"; then
65803
65804 cat >>confdefs.h <<_ACEOF
65805 #define ICONV_FLAVOR $iconv_flavor
65806 _ACEOF
65807
65808
65809
65810
65811   ICONV_H='iconv.h'
65812    if test -n "$ICONV_H"; then
65813   GL_GENERATE_ICONV_H_TRUE=
65814   GL_GENERATE_ICONV_H_FALSE='#'
65815 else
65816   GL_GENERATE_ICONV_H_TRUE='#'
65817   GL_GENERATE_ICONV_H_FALSE=
65818 fi
65819
65820
65821   REPLACE_ICONV_OPEN=1
65822
65823       fi
65824     fi
65825
65826   fi
65827
65828   if test $REPLACE_ICONV_OPEN = 1; then
65829
65830
65831
65832
65833
65834
65835
65836
65837   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_open.$ac_objext"
65838
65839   fi
65840   if test $REPLACE_ICONV = 1; then
65841
65842
65843
65844
65845
65846
65847
65848
65849   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv.$ac_objext"
65850
65851
65852
65853
65854
65855
65856
65857
65858
65859   gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_close.$ac_objext"
65860
65861   fi
65862
65863
65864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
65865 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
65866 if ${gl_cv_c_inline_effective+:} false; then :
65867   $as_echo_n "(cached) " >&6
65868 else
65869   if test $ac_cv_c_inline = no; then
65870        gl_cv_c_inline_effective=no
65871      else
65872                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65873 /* end confdefs.h.  */
65874
65875 int
65876 main ()
65877 {
65878 #ifdef __NO_INLINE__
65879                #error "inline is not effective"
65880              #endif
65881   ;
65882   return 0;
65883 }
65884 _ACEOF
65885 if ac_fn_c_try_compile "$LINENO"; then :
65886   gl_cv_c_inline_effective=yes
65887 else
65888   gl_cv_c_inline_effective=no
65889 fi
65890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65891      fi
65892
65893 fi
65894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
65895 $as_echo "$gl_cv_c_inline_effective" >&6; }
65896   if test $gl_cv_c_inline_effective = yes; then
65897
65898 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
65899
65900   fi
65901
65902
65903
65904
65905
65906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
65907 $as_echo_n "checking whether to use the included libunistring... " >&6; }
65908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
65909 $as_echo "$gl_libunistring_use_included" >&6; }
65910
65911
65912
65913
65914
65915
65916
65917
65918
65919   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
65920
65921
65922
65923   if test "$gl_threads_api" = posix; then
65924     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
65925     # pthread_rwlock_* functions.
65926     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
65927 "
65928 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
65929
65930 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
65931
65932 fi
65933
65934     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
65935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65936 /* end confdefs.h.  */
65937
65938       #include <pthread.h>
65939 int
65940 main ()
65941 {
65942
65943 #if __FreeBSD__ == 4
65944 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
65945 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
65946        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
65947 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
65948 #else
65949 int x = (int)PTHREAD_MUTEX_RECURSIVE;
65950 return !x;
65951 #endif
65952
65953   ;
65954   return 0;
65955 }
65956 _ACEOF
65957 if ac_fn_c_try_compile "$LINENO"; then :
65958
65959 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
65960
65961 fi
65962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65963   fi
65964   :
65965
65966
65967
65968 cat >>confdefs.h <<_ACEOF
65969 #define GNULIB_LOCK 1
65970 _ACEOF
65971
65972
65973
65974
65975
65976   if test $gl_cv_func_malloc_posix = yes; then
65977
65978 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
65979
65980   else
65981     REPLACE_MALLOC=1
65982   fi
65983
65984   if test $REPLACE_MALLOC = 1; then
65985
65986
65987
65988
65989
65990
65991
65992
65993   gtpo_LIBOBJS="$gtpo_LIBOBJS malloc.$ac_objext"
65994
65995   fi
65996
65997
65998
65999
66000
66001           GNULIB_MALLOC_POSIX=1
66002
66003
66004
66005
66006
66007 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
66008
66009
66010
66011
66012
66013
66014
66015
66016
66017
66018
66019
66020
66021
66022
66023
66024
66025   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
66026
66027
66028
66029      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
66030 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
66031 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
66032   $as_echo_n "(cached) " >&6
66033 else
66034
66035                   case "$host_os" in
66036                      # Guess no on AIX and OSF/1.
66037         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
66038                      # Guess yes otherwise.
66039         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
66040       esac
66041       if test $LOCALE_JA != none; then
66042         if test "$cross_compiling" = yes; then :
66043   :
66044 else
66045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66046 /* end confdefs.h.  */
66047
66048 #include <locale.h>
66049 #include <string.h>
66050 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66051    <wchar.h>.
66052    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66053    included before <wchar.h>.  */
66054 #include <stddef.h>
66055 #include <stdio.h>
66056 #include <time.h>
66057 #include <wchar.h>
66058 int main ()
66059 {
66060   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
66061     {
66062       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
66063       mbstate_t state;
66064       wchar_t wc;
66065
66066       memset (&state, '\0', sizeof (mbstate_t));
66067       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
66068         if (mbsinit (&state))
66069           return 1;
66070     }
66071   return 0;
66072 }
66073 _ACEOF
66074 if ac_fn_c_try_run "$LINENO"; then :
66075   gl_cv_func_mbrtowc_incomplete_state=yes
66076 else
66077   gl_cv_func_mbrtowc_incomplete_state=no
66078 fi
66079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66080   conftest.$ac_objext conftest.beam conftest.$ac_ext
66081 fi
66082
66083       fi
66084
66085 fi
66086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
66087 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
66088
66089
66090
66091
66092      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
66093 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
66094 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
66095   $as_echo_n "(cached) " >&6
66096 else
66097
66098                   case "$host_os" in
66099                     # Guess no on Solaris 8.
66100         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
66101                     # Guess yes otherwise.
66102         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
66103       esac
66104       if test $LOCALE_ZH_CN != none; then
66105         if test "$cross_compiling" = yes; then :
66106   :
66107 else
66108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66109 /* end confdefs.h.  */
66110
66111 #include <locale.h>
66112 #include <stdlib.h>
66113 #include <string.h>
66114 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66115    <wchar.h>.
66116    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66117    included before <wchar.h>.  */
66118 #include <stddef.h>
66119 #include <stdio.h>
66120 #include <time.h>
66121 #include <wchar.h>
66122 int main ()
66123 {
66124   /* This fails on Solaris 8:
66125      mbrtowc returns 2, and sets wc to 0x00F0.
66126      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
66127   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
66128     {
66129       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
66130       mbstate_t state;
66131       wchar_t wc;
66132
66133       memset (&state, '\0', sizeof (mbstate_t));
66134       if (mbrtowc (&wc, input + 3, 6, &state) != 4
66135           && mbtowc (&wc, input + 3, 6) == 4)
66136         return 1;
66137     }
66138   return 0;
66139 }
66140 _ACEOF
66141 if ac_fn_c_try_run "$LINENO"; then :
66142   gl_cv_func_mbrtowc_sanitycheck=yes
66143 else
66144   gl_cv_func_mbrtowc_sanitycheck=no
66145 fi
66146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66147   conftest.$ac_objext conftest.beam conftest.$ac_ext
66148 fi
66149
66150       fi
66151
66152 fi
66153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
66154 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
66155
66156     REPLACE_MBSTATE_T=0
66157     case "$gl_cv_func_mbrtowc_incomplete_state" in
66158       *yes) ;;
66159       *) REPLACE_MBSTATE_T=1 ;;
66160     esac
66161     case "$gl_cv_func_mbrtowc_sanitycheck" in
66162       *yes) ;;
66163       *) REPLACE_MBSTATE_T=1 ;;
66164     esac
66165   else
66166     REPLACE_MBSTATE_T=1
66167   fi
66168
66169
66170
66171   if test $ac_cv_func_mbrtowc = no; then
66172     HAVE_MBRTOWC=0
66173     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
66174 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66175    <wchar.h>.
66176    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66177    included before <wchar.h>.  */
66178 #include <stddef.h>
66179 #include <stdio.h>
66180 #include <time.h>
66181 #include <wchar.h>
66182
66183 "
66184 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
66185   ac_have_decl=1
66186 else
66187   ac_have_decl=0
66188 fi
66189
66190 cat >>confdefs.h <<_ACEOF
66191 #define HAVE_DECL_MBRTOWC $ac_have_decl
66192 _ACEOF
66193
66194     if test $ac_cv_have_decl_mbrtowc = yes; then
66195                         REPLACE_MBRTOWC=1
66196     fi
66197   else
66198     if test $REPLACE_MBSTATE_T = 1; then
66199       REPLACE_MBRTOWC=1
66200     else
66201
66202
66203
66204      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
66205 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
66206 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
66207   $as_echo_n "(cached) " >&6
66208 else
66209
66210                   case "$host_os" in
66211                   # Guess no on Solaris.
66212         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
66213                   # Guess yes otherwise.
66214         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
66215       esac
66216       if test $LOCALE_FR_UTF8 != none; then
66217         if test "$cross_compiling" = yes; then :
66218   :
66219 else
66220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66221 /* end confdefs.h.  */
66222
66223 #include <locale.h>
66224 #include <stdlib.h>
66225 #include <string.h>
66226 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66227    <wchar.h>.
66228    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66229    included before <wchar.h>.  */
66230 #include <stddef.h>
66231 #include <stdio.h>
66232 #include <time.h>
66233 #include <wchar.h>
66234 int main ()
66235 {
66236   int result = 0;
66237
66238   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
66239     {
66240       char input[] = "\303\237er";
66241       mbstate_t state;
66242       wchar_t wc;
66243       size_t ret;
66244
66245       memset (&state, '\0', sizeof (mbstate_t));
66246       wc = (wchar_t) 0xBADFACE;
66247       ret = mbrtowc (&wc, input, 5, &state);
66248       if (ret != 2)
66249         result |= 1;
66250       if (!mbsinit (&state))
66251         result |= 2;
66252
66253       memset (&state, '\0', sizeof (mbstate_t));
66254       ret = mbrtowc (NULL, input, 5, &state);
66255       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
66256         result |= 4;
66257       if (!mbsinit (&state))
66258         result |= 8;
66259     }
66260   return result;
66261 }
66262 _ACEOF
66263 if ac_fn_c_try_run "$LINENO"; then :
66264   gl_cv_func_mbrtowc_null_arg1=yes
66265 else
66266   gl_cv_func_mbrtowc_null_arg1=no
66267 fi
66268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66269   conftest.$ac_objext conftest.beam conftest.$ac_ext
66270 fi
66271
66272       fi
66273
66274 fi
66275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
66276 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
66277
66278
66279
66280
66281      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
66282 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
66283 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
66284   $as_echo_n "(cached) " >&6
66285 else
66286
66287                   case "$host_os" in
66288               # Guess no on OSF/1.
66289         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
66290               # Guess yes otherwise.
66291         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
66292       esac
66293       if test $LOCALE_FR_UTF8 != none; then
66294         if test "$cross_compiling" = yes; then :
66295   :
66296 else
66297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66298 /* end confdefs.h.  */
66299
66300 #include <locale.h>
66301 #include <string.h>
66302 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66303    <wchar.h>.
66304    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66305    included before <wchar.h>.  */
66306 #include <stddef.h>
66307 #include <stdio.h>
66308 #include <time.h>
66309 #include <wchar.h>
66310 int main ()
66311 {
66312   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
66313     {
66314       mbstate_t state;
66315       wchar_t wc;
66316       int ret;
66317
66318       memset (&state, '\0', sizeof (mbstate_t));
66319       wc = (wchar_t) 0xBADFACE;
66320       mbrtowc (&wc, NULL, 5, &state);
66321       /* Check that wc was not modified.  */
66322       if (wc != (wchar_t) 0xBADFACE)
66323         return 1;
66324     }
66325   return 0;
66326 }
66327 _ACEOF
66328 if ac_fn_c_try_run "$LINENO"; then :
66329   gl_cv_func_mbrtowc_null_arg2=yes
66330 else
66331   gl_cv_func_mbrtowc_null_arg2=no
66332 fi
66333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66334   conftest.$ac_objext conftest.beam conftest.$ac_ext
66335 fi
66336
66337       fi
66338
66339 fi
66340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
66341 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
66342
66343
66344
66345
66346
66347
66348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
66349 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
66350 if ${gl_cv_func_mbrtowc_retval+:} false; then :
66351   $as_echo_n "(cached) " >&6
66352 else
66353
66354                   case "$host_os" in
66355                                    # Guess no on HP-UX, Solaris, native Windows.
66356         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
66357                                    # Guess yes otherwise.
66358         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
66359       esac
66360       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
66361          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
66362         if test "$cross_compiling" = yes; then :
66363   :
66364 else
66365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66366 /* end confdefs.h.  */
66367
66368 #include <locale.h>
66369 #include <string.h>
66370 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66371    <wchar.h>.
66372    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66373    included before <wchar.h>.  */
66374 #include <stddef.h>
66375 #include <stdio.h>
66376 #include <time.h>
66377 #include <wchar.h>
66378 int main ()
66379 {
66380   int result = 0;
66381   int found_some_locale = 0;
66382   /* This fails on Solaris.  */
66383   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
66384     {
66385       char input[] = "B\303\274\303\237er"; /* "Büßer" */
66386       mbstate_t state;
66387       wchar_t wc;
66388
66389       memset (&state, '\0', sizeof (mbstate_t));
66390       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
66391         {
66392           input[1] = '\0';
66393           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
66394             result |= 1;
66395         }
66396       found_some_locale = 1;
66397     }
66398   /* This fails on HP-UX 11.11.  */
66399   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
66400     {
66401       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
66402       mbstate_t state;
66403       wchar_t wc;
66404
66405       memset (&state, '\0', sizeof (mbstate_t));
66406       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
66407         {
66408           input[1] = '\0';
66409           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
66410             result |= 2;
66411         }
66412       found_some_locale = 1;
66413     }
66414   /* This fails on native Windows.  */
66415   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
66416     {
66417       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
66418       mbstate_t state;
66419       wchar_t wc;
66420
66421       memset (&state, '\0', sizeof (mbstate_t));
66422       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
66423         {
66424           input[3] = '\0';
66425           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
66426             result |= 4;
66427         }
66428       found_some_locale = 1;
66429     }
66430   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
66431     {
66432       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
66433       mbstate_t state;
66434       wchar_t wc;
66435
66436       memset (&state, '\0', sizeof (mbstate_t));
66437       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
66438         {
66439           input[3] = '\0';
66440           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
66441             result |= 8;
66442         }
66443       found_some_locale = 1;
66444     }
66445   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
66446     {
66447       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
66448       mbstate_t state;
66449       wchar_t wc;
66450
66451       memset (&state, '\0', sizeof (mbstate_t));
66452       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
66453         {
66454           input[3] = '\0';
66455           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
66456             result |= 16;
66457         }
66458       found_some_locale = 1;
66459     }
66460   return (found_some_locale ? result : 77);
66461 }
66462 _ACEOF
66463 if ac_fn_c_try_run "$LINENO"; then :
66464   gl_cv_func_mbrtowc_retval=yes
66465 else
66466   if test $? != 77; then
66467              gl_cv_func_mbrtowc_retval=no
66468            fi
66469
66470 fi
66471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66472   conftest.$ac_objext conftest.beam conftest.$ac_ext
66473 fi
66474
66475       fi
66476
66477 fi
66478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
66479 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
66480
66481
66482
66483
66484      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
66485 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
66486 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
66487   $as_echo_n "(cached) " >&6
66488 else
66489
66490                   case "$host_os" in
66491                        # Guess no on Solaris 8 and 9.
66492         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
66493                        # Guess yes otherwise.
66494         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
66495       esac
66496       if test $LOCALE_ZH_CN != none; then
66497         if test "$cross_compiling" = yes; then :
66498   :
66499 else
66500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66501 /* end confdefs.h.  */
66502
66503 #include <locale.h>
66504 #include <string.h>
66505 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66506    <wchar.h>.
66507    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66508    included before <wchar.h>.  */
66509 #include <stddef.h>
66510 #include <stdio.h>
66511 #include <time.h>
66512 #include <wchar.h>
66513 int main ()
66514 {
66515   /* This fails on Solaris 8 and 9.  */
66516   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
66517     {
66518       mbstate_t state;
66519       wchar_t wc;
66520
66521       memset (&state, '\0', sizeof (mbstate_t));
66522       if (mbrtowc (&wc, "", 1, &state) != 0)
66523         return 1;
66524     }
66525   return 0;
66526 }
66527 _ACEOF
66528 if ac_fn_c_try_run "$LINENO"; then :
66529   gl_cv_func_mbrtowc_nul_retval=yes
66530 else
66531   gl_cv_func_mbrtowc_nul_retval=no
66532 fi
66533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66534   conftest.$ac_objext conftest.beam conftest.$ac_ext
66535 fi
66536
66537       fi
66538
66539 fi
66540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
66541 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
66542
66543
66544
66545      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
66546 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
66547 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
66548   $as_echo_n "(cached) " >&6
66549 else
66550
66551                   case "$host_os" in
66552                      # Guess no on AIX and glibc systems.
66553         aix* | *-gnu*)
66554                     gl_cv_func_mbrtowc_empty_input="guessing no" ;;
66555         *)          gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
66556       esac
66557       if test "$cross_compiling" = yes; then :
66558   :
66559 else
66560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66561 /* end confdefs.h.  */
66562
66563            #include <wchar.h>
66564            static wchar_t wc;
66565            static mbstate_t mbs;
66566            int
66567            main (void)
66568            {
66569              return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
66570            }
66571 _ACEOF
66572 if ac_fn_c_try_run "$LINENO"; then :
66573   gl_cv_func_mbrtowc_empty_input=yes
66574 else
66575   gl_cv_func_mbrtowc_empty_input=no
66576 fi
66577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66578   conftest.$ac_objext conftest.beam conftest.$ac_ext
66579 fi
66580
66581
66582 fi
66583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
66584 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
66585
66586       case "$gl_cv_func_mbrtowc_null_arg1" in
66587         *yes) ;;
66588         *)
66589 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
66590
66591            REPLACE_MBRTOWC=1
66592            ;;
66593       esac
66594       case "$gl_cv_func_mbrtowc_null_arg2" in
66595         *yes) ;;
66596         *)
66597 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
66598
66599            REPLACE_MBRTOWC=1
66600            ;;
66601       esac
66602       case "$gl_cv_func_mbrtowc_retval" in
66603         *yes) ;;
66604         *)
66605 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
66606
66607            REPLACE_MBRTOWC=1
66608            ;;
66609       esac
66610       case "$gl_cv_func_mbrtowc_nul_retval" in
66611         *yes) ;;
66612         *)
66613 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
66614
66615            REPLACE_MBRTOWC=1
66616            ;;
66617       esac
66618       case "$gl_cv_func_mbrtowc_empty_input" in
66619         *yes) ;;
66620         *)
66621 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
66622
66623            REPLACE_MBRTOWC=1
66624            ;;
66625       esac
66626     fi
66627   fi
66628
66629   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
66630
66631
66632
66633
66634
66635
66636
66637
66638   gtpo_LIBOBJS="$gtpo_LIBOBJS mbrtowc.$ac_objext"
66639
66640
66641   :
66642
66643   fi
66644
66645
66646
66647
66648
66649           GNULIB_MBRTOWC=1
66650
66651
66652
66653
66654
66655 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
66656
66657
66658
66659
66660
66661
66662
66663
66664
66665
66666
66667
66668
66669
66670   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
66671
66672
66673
66674      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
66675 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
66676 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
66677   $as_echo_n "(cached) " >&6
66678 else
66679
66680                   case "$host_os" in
66681                      # Guess no on AIX and OSF/1.
66682         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
66683                      # Guess yes otherwise.
66684         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
66685       esac
66686       if test $LOCALE_JA != none; then
66687         if test "$cross_compiling" = yes; then :
66688   :
66689 else
66690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66691 /* end confdefs.h.  */
66692
66693 #include <locale.h>
66694 #include <string.h>
66695 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66696    <wchar.h>.
66697    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66698    included before <wchar.h>.  */
66699 #include <stddef.h>
66700 #include <stdio.h>
66701 #include <time.h>
66702 #include <wchar.h>
66703 int main ()
66704 {
66705   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
66706     {
66707       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
66708       mbstate_t state;
66709       wchar_t wc;
66710
66711       memset (&state, '\0', sizeof (mbstate_t));
66712       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
66713         if (mbsinit (&state))
66714           return 1;
66715     }
66716   return 0;
66717 }
66718 _ACEOF
66719 if ac_fn_c_try_run "$LINENO"; then :
66720   gl_cv_func_mbrtowc_incomplete_state=yes
66721 else
66722   gl_cv_func_mbrtowc_incomplete_state=no
66723 fi
66724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66725   conftest.$ac_objext conftest.beam conftest.$ac_ext
66726 fi
66727
66728       fi
66729
66730 fi
66731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
66732 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
66733
66734
66735
66736
66737      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
66738 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
66739 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
66740   $as_echo_n "(cached) " >&6
66741 else
66742
66743                   case "$host_os" in
66744                     # Guess no on Solaris 8.
66745         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
66746                     # Guess yes otherwise.
66747         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
66748       esac
66749       if test $LOCALE_ZH_CN != none; then
66750         if test "$cross_compiling" = yes; then :
66751   :
66752 else
66753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66754 /* end confdefs.h.  */
66755
66756 #include <locale.h>
66757 #include <stdlib.h>
66758 #include <string.h>
66759 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66760    <wchar.h>.
66761    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66762    included before <wchar.h>.  */
66763 #include <stddef.h>
66764 #include <stdio.h>
66765 #include <time.h>
66766 #include <wchar.h>
66767 int main ()
66768 {
66769   /* This fails on Solaris 8:
66770      mbrtowc returns 2, and sets wc to 0x00F0.
66771      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
66772   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
66773     {
66774       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
66775       mbstate_t state;
66776       wchar_t wc;
66777
66778       memset (&state, '\0', sizeof (mbstate_t));
66779       if (mbrtowc (&wc, input + 3, 6, &state) != 4
66780           && mbtowc (&wc, input + 3, 6) == 4)
66781         return 1;
66782     }
66783   return 0;
66784 }
66785 _ACEOF
66786 if ac_fn_c_try_run "$LINENO"; then :
66787   gl_cv_func_mbrtowc_sanitycheck=yes
66788 else
66789   gl_cv_func_mbrtowc_sanitycheck=no
66790 fi
66791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66792   conftest.$ac_objext conftest.beam conftest.$ac_ext
66793 fi
66794
66795       fi
66796
66797 fi
66798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
66799 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
66800
66801     REPLACE_MBSTATE_T=0
66802     case "$gl_cv_func_mbrtowc_incomplete_state" in
66803       *yes) ;;
66804       *) REPLACE_MBSTATE_T=1 ;;
66805     esac
66806     case "$gl_cv_func_mbrtowc_sanitycheck" in
66807       *yes) ;;
66808       *) REPLACE_MBSTATE_T=1 ;;
66809     esac
66810   else
66811     REPLACE_MBSTATE_T=1
66812   fi
66813
66814
66815
66816   if test $ac_cv_func_mbsinit = no; then
66817     HAVE_MBSINIT=0
66818     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
66819 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66820    <wchar.h>.
66821    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66822    included before <wchar.h>.  */
66823 #include <stddef.h>
66824 #include <stdio.h>
66825 #include <time.h>
66826 #include <wchar.h>
66827
66828 "
66829 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
66830   ac_have_decl=1
66831 else
66832   ac_have_decl=0
66833 fi
66834
66835 cat >>confdefs.h <<_ACEOF
66836 #define HAVE_DECL_MBSINIT $ac_have_decl
66837 _ACEOF
66838
66839     if test $ac_cv_have_decl_mbsinit = yes; then
66840                         REPLACE_MBSINIT=1
66841     fi
66842   else
66843     if test $REPLACE_MBSTATE_T = 1; then
66844       REPLACE_MBSINIT=1
66845     else
66846                         case "$host_os" in
66847         mingw*) REPLACE_MBSINIT=1 ;;
66848       esac
66849     fi
66850   fi
66851
66852   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
66853
66854
66855
66856
66857
66858
66859
66860
66861   gtpo_LIBOBJS="$gtpo_LIBOBJS mbsinit.$ac_objext"
66862
66863
66864   :
66865
66866   fi
66867
66868
66869
66870
66871
66872           GNULIB_MBSINIT=1
66873
66874
66875
66876
66877
66878 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
66879
66880
66881
66882
66883
66884
66885
66886       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
66887 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
66888 if ${ac_cv_have_decl_mbswidth+:} false; then :
66889   $as_echo_n "(cached) " >&6
66890 else
66891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66892 /* end confdefs.h.  */
66893
66894 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66895    <wchar.h>.
66896    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
66897    before <wchar.h>.  */
66898 #include <stddef.h>
66899 #include <stdio.h>
66900 #include <time.h>
66901 #include <wchar.h>
66902
66903 int
66904 main ()
66905 {
66906
66907   char *p = (char *) mbswidth;
66908   return !p;
66909
66910   ;
66911   return 0;
66912 }
66913 _ACEOF
66914 if ac_fn_c_try_compile "$LINENO"; then :
66915   ac_cv_have_decl_mbswidth=yes
66916 else
66917   ac_cv_have_decl_mbswidth=no
66918 fi
66919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66920 fi
66921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
66922 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
66923   if test $ac_cv_have_decl_mbswidth = yes; then
66924     ac_val=1
66925   else
66926     ac_val=0
66927   fi
66928
66929 cat >>confdefs.h <<_ACEOF
66930 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
66931 _ACEOF
66932
66933
66934
66935
66936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
66937 $as_echo_n "checking for mbstate_t... " >&6; }
66938 if ${ac_cv_type_mbstate_t+:} false; then :
66939   $as_echo_n "(cached) " >&6
66940 else
66941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66942 /* end confdefs.h.  */
66943 $ac_includes_default
66944 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
66945    <wchar.h>.
66946    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
66947    included before <wchar.h>.  */
66948 #include <stddef.h>
66949 #include <stdio.h>
66950 #include <time.h>
66951 #include <wchar.h>
66952 int
66953 main ()
66954 {
66955 mbstate_t x; return sizeof x;
66956   ;
66957   return 0;
66958 }
66959 _ACEOF
66960 if ac_fn_c_try_compile "$LINENO"; then :
66961   ac_cv_type_mbstate_t=yes
66962 else
66963   ac_cv_type_mbstate_t=no
66964 fi
66965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66966 fi
66967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
66968 $as_echo "$ac_cv_type_mbstate_t" >&6; }
66969    if test $ac_cv_type_mbstate_t = yes; then
66970
66971 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
66972
66973    else
66974
66975 $as_echo "#define mbstate_t int" >>confdefs.h
66976
66977    fi
66978
66979
66980
66981   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
66982
66983
66984
66985
66986
66987
66988
66989
66990   gtpo_LIBOBJS="$gtpo_LIBOBJS memchr.$ac_objext"
66991
66992
66993   for ac_header in bp-sym.h
66994 do :
66995   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
66996 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
66997   cat >>confdefs.h <<_ACEOF
66998 #define HAVE_BP_SYM_H 1
66999 _ACEOF
67000
67001 fi
67002
67003 done
67004
67005
67006   fi
67007
67008
67009
67010
67011
67012           GNULIB_MEMCHR=1
67013
67014
67015
67016
67017
67018 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
67019
67020
67021
67022
67023
67024
67025
67026
67027           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
67028 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
67029 if ${gl_cv_c_cplusplus+:} false; then :
67030   $as_echo_n "(cached) " >&6
67031 else
67032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67033 /* end confdefs.h.  */
67034
67035 #ifdef __cplusplus
67036   Is c++
67037 #endif
67038
67039 _ACEOF
67040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67041   $EGREP "Is c++" >/dev/null 2>&1; then :
67042   gl_cv_c_cplusplus=yes
67043 else
67044   gl_cv_c_cplusplus=no
67045 fi
67046 rm -f conftest*
67047
67048 fi
67049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
67050 $as_echo "$gl_cv_c_cplusplus" >&6; }
67051   if test $gl_cv_c_cplusplus = yes; then
67052
67053 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
67054
67055   fi
67056
67057
67058
67059   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
67060     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
67061
67062 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
67063
67064   else
67065     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
67066   fi
67067
67068
67069   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
67070
67071
67072
67073
67074
67075
67076
67077
67078   gtpo_LIBOBJS="$gtpo_LIBOBJS msvc-inval.$ac_objext"
67079
67080   fi
67081
67082
67083
67084   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
67085
67086
67087
67088
67089
67090
67091
67092
67093   gtpo_LIBOBJS="$gtpo_LIBOBJS msvc-nothrow.$ac_objext"
67094
67095   fi
67096
67097
67098
67099
67100
67101
67102
67103
67104
67105
67106
67107
67108
67109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5
67110 $as_echo_n "checking for obstacks that work with any size object... " >&6; }
67111 if ${ac_cv_func_obstack+:} false; then :
67112   $as_echo_n "(cached) " >&6
67113 else
67114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67115 /* end confdefs.h.  */
67116 #include "obstack.h"
67117              void *obstack_chunk_alloc (size_t n) { return 0; }
67118              void obstack_chunk_free (void *p) { }
67119              /* Check that an internal function returns size_t, not int.  */
67120              size_t _obstack_memory_used (struct obstack *);
67121
67122 int
67123 main ()
67124 {
67125 struct obstack mem;
67126              obstack_init (&mem);
67127              obstack_free (&mem, 0);
67128
67129   ;
67130   return 0;
67131 }
67132 _ACEOF
67133 if ac_fn_c_try_link "$LINENO"; then :
67134   ac_cv_func_obstack=yes
67135 else
67136   ac_cv_func_obstack=no
67137 fi
67138 rm -f core conftest.err conftest.$ac_objext \
67139     conftest$ac_exeext conftest.$ac_ext
67140 fi
67141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
67142 $as_echo "$ac_cv_func_obstack" >&6; }
67143    if test "$ac_cv_func_obstack" = yes; then
67144
67145 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
67146
67147    else
67148
67149
67150
67151
67152
67153
67154
67155
67156   gtpo_LIBOBJS="$gtpo_LIBOBJS obstack.$ac_objext"
67157
67158    fi
67159
67160
67161
67162   case "$host_os" in
67163     mingw* | pw*)
67164       REPLACE_OPEN=1
67165       ;;
67166     *)
67167
67168       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
67169 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
67170 if ${gl_cv_func_open_slash+:} false; then :
67171   $as_echo_n "(cached) " >&6
67172 else
67173   # Assume that if we have lstat, we can also check symlinks.
67174           if test $ac_cv_func_lstat = yes; then
67175             touch conftest.tmp
67176             ln -s conftest.tmp conftest.lnk
67177           fi
67178           if test "$cross_compiling" = yes; then :
67179
67180              case "$host_os" in
67181                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
67182                  gl_cv_func_open_slash="guessing no" ;;
67183                *)
67184                  gl_cv_func_open_slash="guessing yes" ;;
67185              esac
67186
67187 else
67188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67189 /* end confdefs.h.  */
67190
67191 #include <fcntl.h>
67192 #if HAVE_UNISTD_H
67193 # include <unistd.h>
67194 #endif
67195 int main ()
67196 {
67197   int result = 0;
67198 #if HAVE_LSTAT
67199   if (open ("conftest.lnk/", O_RDONLY) != -1)
67200     result |= 1;
67201 #endif
67202   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
67203     result |= 2;
67204   return result;
67205 }
67206 _ACEOF
67207 if ac_fn_c_try_run "$LINENO"; then :
67208   gl_cv_func_open_slash=yes
67209 else
67210   gl_cv_func_open_slash=no
67211 fi
67212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67213   conftest.$ac_objext conftest.beam conftest.$ac_ext
67214 fi
67215
67216           rm -f conftest.sl conftest.tmp conftest.lnk
67217
67218 fi
67219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
67220 $as_echo "$gl_cv_func_open_slash" >&6; }
67221       case "$gl_cv_func_open_slash" in
67222         *no)
67223
67224 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
67225
67226           REPLACE_OPEN=1
67227           ;;
67228       esac
67229       ;;
67230   esac
67231
67232
67233
67234   if test $REPLACE_OPEN = 1; then
67235
67236
67237
67238
67239
67240
67241
67242
67243   gtpo_LIBOBJS="$gtpo_LIBOBJS open.$ac_objext"
67244
67245
67246
67247   :
67248
67249   fi
67250
67251
67252
67253
67254
67255           GNULIB_OPEN=1
67256
67257
67258
67259
67260
67261 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
67262
67263
67264
67265
67266
67267
67268   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
67269 "
67270 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
67271   ac_have_decl=1
67272 else
67273   ac_have_decl=0
67274 fi
67275
67276 cat >>confdefs.h <<_ACEOF
67277 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
67278 _ACEOF
67279
67280   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
67281 "
67282 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
67283   ac_have_decl=1
67284 else
67285   ac_have_decl=0
67286 fi
67287
67288 cat >>confdefs.h <<_ACEOF
67289 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
67290 _ACEOF
67291
67292
67293
67294
67295
67296   for ac_func in raise
67297 do :
67298   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
67299 if test "x$ac_cv_func_raise" = xyes; then :
67300   cat >>confdefs.h <<_ACEOF
67301 #define HAVE_RAISE 1
67302 _ACEOF
67303
67304 fi
67305 done
67306
67307   if test $ac_cv_func_raise = no; then
67308     HAVE_RAISE=0
67309   else
67310     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
67311       REPLACE_RAISE=1
67312     fi
67313
67314
67315
67316
67317   if test $gl_cv_type_sigset_t = yes; then
67318     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
67319 if test "x$ac_cv_func_sigprocmask" = xyes; then :
67320   gl_cv_func_sigprocmask=1
67321 fi
67322
67323   fi
67324   if test -z "$gl_cv_func_sigprocmask"; then
67325     HAVE_POSIX_SIGNALBLOCKING=0
67326   fi
67327
67328       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
67329
67330
67331
67332
67333           if test $gl_cv_header_signal_h_SIGPIPE != yes; then
67334             REPLACE_RAISE=1
67335           fi
67336
67337       fi
67338
67339   fi
67340
67341   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
67342
67343
67344
67345
67346
67347
67348
67349
67350   gtpo_LIBOBJS="$gtpo_LIBOBJS raise.$ac_objext"
67351
67352     :
67353   fi
67354
67355
67356
67357
67358
67359           GNULIB_RAISE=1
67360
67361
67362
67363
67364
67365 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
67366
67367
67368
67369
67370
67371
67372
67373   for ac_func in rawmemchr
67374 do :
67375   ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
67376 if test "x$ac_cv_func_rawmemchr" = xyes; then :
67377   cat >>confdefs.h <<_ACEOF
67378 #define HAVE_RAWMEMCHR 1
67379 _ACEOF
67380
67381 fi
67382 done
67383
67384   if test $ac_cv_func_rawmemchr = no; then
67385     HAVE_RAWMEMCHR=0
67386   fi
67387
67388   if test $HAVE_RAWMEMCHR = 0; then
67389
67390
67391
67392
67393
67394
67395
67396
67397   gtpo_LIBOBJS="$gtpo_LIBOBJS rawmemchr.$ac_objext"
67398
67399     :
67400   fi
67401
67402
67403
67404
67405
67406           GNULIB_RAWMEMCHR=1
67407
67408
67409
67410
67411
67412 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
67413
67414
67415
67416
67417
67418
67419   if test $gl_cv_func_malloc_posix = yes; then
67420
67421 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
67422
67423   else
67424     REPLACE_REALLOC=1
67425   fi
67426
67427   if test $REPLACE_REALLOC = 1; then
67428
67429
67430
67431
67432
67433
67434
67435
67436   gtpo_LIBOBJS="$gtpo_LIBOBJS realloc.$ac_objext"
67437
67438   fi
67439
67440
67441
67442
67443
67444           GNULIB_REALLOC_POSIX=1
67445
67446
67447
67448
67449
67450 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
67451
67452
67453
67454
67455
67456
67457   if test $RELOCATABLE = yes; then
67458
67459
67460
67461
67462
67463
67464
67465
67466   gtpo_LIBOBJS="$gtpo_LIBOBJS relocatable.$ac_objext"
67467
67468   fi
67469
67470
67471
67472
67473
67474
67475
67476
67477
67478
67479
67480      if test $gl_cv_have_include_next = yes; then
67481        gl_cv_next_signal_h='<'signal.h'>'
67482      else
67483        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
67484 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
67485 if ${gl_cv_next_signal_h+:} false; then :
67486   $as_echo_n "(cached) " >&6
67487 else
67488
67489
67490
67491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67492 /* end confdefs.h.  */
67493 #include <signal.h>
67494 _ACEOF
67495                 case "$host_os" in
67496     aix*) gl_absname_cpp="$ac_cpp -C" ;;
67497     *)    gl_absname_cpp="$ac_cpp" ;;
67498   esac
67499
67500   case "$host_os" in
67501     mingw*)
67502                                           gl_dirsep_regex='[/\\]'
67503       ;;
67504     *)
67505       gl_dirsep_regex='\/'
67506       ;;
67507   esac
67508       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
67509   gl_header_literal_regex=`echo 'signal.h' \
67510                            | sed -e "$gl_make_literal_regex_sed"`
67511   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
67512       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
67513       s|^/[^/]|//&|
67514       p
67515       q
67516     }'
67517
67518         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
67519   sed -n "$gl_absolute_header_sed"`
67520
67521            gl_header=$gl_cv_absolute_signal_h
67522            gl_cv_next_signal_h='"'$gl_header'"'
67523
67524
67525 fi
67526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
67527 $as_echo "$gl_cv_next_signal_h" >&6; }
67528      fi
67529      NEXT_SIGNAL_H=$gl_cv_next_signal_h
67530
67531      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
67532        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
67533        gl_next_as_first_directive='<'signal.h'>'
67534      else
67535        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
67536        gl_next_as_first_directive=$gl_cv_next_signal_h
67537      fi
67538      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
67539
67540
67541
67542
67543
67544 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
67545 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
67546   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
67547 #include <signal.h>
67548
67549 "
67550 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
67551
67552 else
67553   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
67554 fi
67555
67556
67557
67558
67559
67560
67561
67562   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
67563 #include <signal.h>
67564
67565 "
67566 if test "x$ac_cv_type_sighandler_t" = xyes; then :
67567
67568 else
67569   HAVE_SIGHANDLER_T=0
67570 fi
67571
67572
67573
67574     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
67575     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
67576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
67577 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
67578 if eval \${$as_gl_Symbol+:} false; then :
67579   $as_echo_n "(cached) " >&6
67580 else
67581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67582 /* end confdefs.h.  */
67583 #include <signal.h>
67584
67585 int
67586 main ()
67587 {
67588 #undef $gl_func
67589   (void) $gl_func;
67590   ;
67591   return 0;
67592 }
67593 _ACEOF
67594 if ac_fn_c_try_compile "$LINENO"; then :
67595   eval "$as_gl_Symbol=yes"
67596 else
67597   eval "$as_gl_Symbol=no"
67598 fi
67599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67600 fi
67601 eval ac_res=\$$as_gl_Symbol
67602                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
67603 $as_echo "$ac_res" >&6; }
67604     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
67605   cat >>confdefs.h <<_ACEOF
67606 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
67607 _ACEOF
67608
67609                      eval ac_cv_have_decl_$gl_func=yes
67610 fi
67611       done
67612
67613
67614
67615
67616
67617
67618
67619 cat >>confdefs.h <<_ACEOF
67620 #define GNULIB_SIGPIPE 1
67621 _ACEOF
67622
67623
67624
67625   GNULIB_SIGNAL_H_SIGPIPE=1
67626
67627
67628   GNULIB_STDIO_H_SIGPIPE=1
67629
67630   GNULIB_UNISTD_H_SIGPIPE=1
67631
67632
67633
67634   if test $gl_cv_type_sigset_t = yes; then
67635     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
67636 if test "x$ac_cv_func_sigprocmask" = xyes; then :
67637   gl_cv_func_sigprocmask=1
67638 fi
67639
67640   fi
67641   if test -z "$gl_cv_func_sigprocmask"; then
67642     HAVE_POSIX_SIGNALBLOCKING=0
67643   fi
67644
67645   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
67646
67647
67648
67649
67650
67651
67652
67653
67654   gtpo_LIBOBJS="$gtpo_LIBOBJS sigprocmask.$ac_objext"
67655
67656     :
67657   fi
67658
67659
67660
67661
67662
67663           GNULIB_SIGPROCMASK=1
67664
67665
67666
67667
67668
67669 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
67670
67671
67672
67673
67674   for ac_header in stdint.h
67675 do :
67676   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
67677 if test "x$ac_cv_header_stdint_h" = xyes; then :
67678   cat >>confdefs.h <<_ACEOF
67679 #define HAVE_STDINT_H 1
67680 _ACEOF
67681
67682 fi
67683
67684 done
67685
67686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
67687 $as_echo_n "checking for SIZE_MAX... " >&6; }
67688 if ${gl_cv_size_max+:} false; then :
67689   $as_echo_n "(cached) " >&6
67690 else
67691
67692     gl_cv_size_max=
67693     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67694 /* end confdefs.h.  */
67695
67696 #include <limits.h>
67697 #if HAVE_STDINT_H
67698 #include <stdint.h>
67699 #endif
67700 #ifdef SIZE_MAX
67701 Found it
67702 #endif
67703
67704 _ACEOF
67705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67706   $EGREP "Found it" >/dev/null 2>&1; then :
67707   gl_cv_size_max=yes
67708 fi
67709 rm -f conftest*
67710
67711     if test -z "$gl_cv_size_max"; then
67712                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
67713 #include <limits.h>"; then :
67714
67715 else
67716   size_t_bits_minus_1=
67717 fi
67718
67719       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
67720
67721 else
67722   fits_in_uint=
67723 fi
67724
67725       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
67726         if test $fits_in_uint = 1; then
67727                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67728 /* end confdefs.h.  */
67729 #include <stddef.h>
67730                  extern size_t foo;
67731                  extern unsigned long foo;
67732
67733 int
67734 main ()
67735 {
67736
67737   ;
67738   return 0;
67739 }
67740 _ACEOF
67741 if ac_fn_c_try_compile "$LINENO"; then :
67742   fits_in_uint=0
67743 fi
67744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67745         fi
67746                                 if test $fits_in_uint = 1; then
67747           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
67748         else
67749           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
67750         fi
67751       else
67752                 gl_cv_size_max='((size_t)~(size_t)0)'
67753       fi
67754     fi
67755
67756 fi
67757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
67758 $as_echo "$gl_cv_size_max" >&6; }
67759   if test "$gl_cv_size_max" != yes; then
67760
67761 cat >>confdefs.h <<_ACEOF
67762 #define SIZE_MAX $gl_cv_size_max
67763 _ACEOF
67764
67765   fi
67766
67767
67768
67769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
67770 $as_echo_n "checking for ssize_t... " >&6; }
67771 if ${gt_cv_ssize_t+:} false; then :
67772   $as_echo_n "(cached) " >&6
67773 else
67774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67775 /* end confdefs.h.  */
67776 #include <sys/types.h>
67777 int
67778 main ()
67779 {
67780 int x = sizeof (ssize_t *) + sizeof (ssize_t);
67781             return !x;
67782   ;
67783   return 0;
67784 }
67785 _ACEOF
67786 if ac_fn_c_try_compile "$LINENO"; then :
67787   gt_cv_ssize_t=yes
67788 else
67789   gt_cv_ssize_t=no
67790 fi
67791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67792 fi
67793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
67794 $as_echo "$gt_cv_ssize_t" >&6; }
67795   if test $gt_cv_ssize_t = no; then
67796
67797 $as_echo "#define ssize_t int" >>confdefs.h
67798
67799   fi
67800
67801
67802
67803
67804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
67805 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
67806 if ${gl_cv_func_stat_dir_slash+:} false; then :
67807   $as_echo_n "(cached) " >&6
67808 else
67809   if test "$cross_compiling" = yes; then :
67810   case $host_os in
67811             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
67812             *) gl_cv_func_stat_dir_slash="guessing yes";;
67813           esac
67814 else
67815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67816 /* end confdefs.h.  */
67817 #include <sys/stat.h>
67818
67819 int
67820 main ()
67821 {
67822 struct stat st; return stat (".", &st) != stat ("./", &st);
67823   ;
67824   return 0;
67825 }
67826 _ACEOF
67827 if ac_fn_c_try_run "$LINENO"; then :
67828   gl_cv_func_stat_dir_slash=yes
67829 else
67830   gl_cv_func_stat_dir_slash=no
67831 fi
67832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67833   conftest.$ac_objext conftest.beam conftest.$ac_ext
67834 fi
67835
67836 fi
67837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
67838 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
67839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
67840 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
67841 if ${gl_cv_func_stat_file_slash+:} false; then :
67842   $as_echo_n "(cached) " >&6
67843 else
67844   touch conftest.tmp
67845        # Assume that if we have lstat, we can also check symlinks.
67846        if test $ac_cv_func_lstat = yes; then
67847          ln -s conftest.tmp conftest.lnk
67848        fi
67849        if test "$cross_compiling" = yes; then :
67850   case "$host_os" in
67851                     # Guess yes on glibc systems.
67852             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
67853                     # If we don't know, assume the worst.
67854             *)      gl_cv_func_stat_file_slash="guessing no" ;;
67855           esac
67856
67857 else
67858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67859 /* end confdefs.h.  */
67860 #include <sys/stat.h>
67861
67862 int
67863 main ()
67864 {
67865 int result = 0;
67866       struct stat st;
67867       if (!stat ("conftest.tmp/", &st))
67868         result |= 1;
67869 #if HAVE_LSTAT
67870       if (!stat ("conftest.lnk/", &st))
67871         result |= 2;
67872 #endif
67873       return result;
67874
67875   ;
67876   return 0;
67877 }
67878 _ACEOF
67879 if ac_fn_c_try_run "$LINENO"; then :
67880   gl_cv_func_stat_file_slash=yes
67881 else
67882   gl_cv_func_stat_file_slash=no
67883 fi
67884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67885   conftest.$ac_objext conftest.beam conftest.$ac_ext
67886 fi
67887
67888        rm -f conftest.tmp conftest.lnk
67889 fi
67890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
67891 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
67892   case $gl_cv_func_stat_dir_slash in
67893     *no) REPLACE_STAT=1
67894
67895 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
67896 ;;
67897   esac
67898   case $gl_cv_func_stat_file_slash in
67899     *no) REPLACE_STAT=1
67900
67901 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
67902 ;;
67903   esac
67904
67905   if test $REPLACE_STAT = 1; then
67906
67907
67908
67909
67910
67911
67912
67913
67914   gtpo_LIBOBJS="$gtpo_LIBOBJS stat.$ac_objext"
67915
67916     :
67917   fi
67918
67919
67920
67921
67922
67923           GNULIB_STAT=1
67924
67925
67926
67927
67928
67929 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
67930
67931
67932
67933
67934   STDARG_H=''
67935   NEXT_STDARG_H='<stdarg.h>'
67936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
67937 $as_echo_n "checking for va_copy... " >&6; }
67938   if ${gl_cv_func_va_copy+:} false; then :
67939   $as_echo_n "(cached) " >&6
67940 else
67941
67942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67943 /* end confdefs.h.  */
67944 #include <stdarg.h>
67945 int
67946 main ()
67947 {
67948
67949 #ifndef va_copy
67950 void (*func) (va_list, va_list) = va_copy;
67951 #endif
67952
67953   ;
67954   return 0;
67955 }
67956 _ACEOF
67957 if ac_fn_c_try_compile "$LINENO"; then :
67958   gl_cv_func_va_copy=yes
67959 else
67960   gl_cv_func_va_copy=no
67961 fi
67962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67963 fi
67964
67965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
67966 $as_echo "$gl_cv_func_va_copy" >&6; }
67967   if test $gl_cv_func_va_copy = no; then
67968                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67969 /* end confdefs.h.  */
67970 #if defined _AIX && !defined __GNUC__
67971         AIX vaccine
67972        #endif
67973
67974 _ACEOF
67975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67976   $EGREP "vaccine" >/dev/null 2>&1; then :
67977   gl_aixcc=yes
67978 else
67979   gl_aixcc=no
67980 fi
67981 rm -f conftest*
67982
67983     if test $gl_aixcc = yes; then
67984             STDARG_H=stdarg.h
67985
67986
67987
67988
67989
67990
67991
67992
67993      if test $gl_cv_have_include_next = yes; then
67994        gl_cv_next_stdarg_h='<'stdarg.h'>'
67995      else
67996        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
67997 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
67998 if ${gl_cv_next_stdarg_h+:} false; then :
67999   $as_echo_n "(cached) " >&6
68000 else
68001
68002
68003
68004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68005 /* end confdefs.h.  */
68006 #include <stdarg.h>
68007 _ACEOF
68008                 case "$host_os" in
68009     aix*) gl_absname_cpp="$ac_cpp -C" ;;
68010     *)    gl_absname_cpp="$ac_cpp" ;;
68011   esac
68012
68013   case "$host_os" in
68014     mingw*)
68015                                           gl_dirsep_regex='[/\\]'
68016       ;;
68017     *)
68018       gl_dirsep_regex='\/'
68019       ;;
68020   esac
68021       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
68022   gl_header_literal_regex=`echo 'stdarg.h' \
68023                            | sed -e "$gl_make_literal_regex_sed"`
68024   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
68025       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
68026       s|^/[^/]|//&|
68027       p
68028       q
68029     }'
68030
68031         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
68032   sed -n "$gl_absolute_header_sed"`
68033
68034            gl_header=$gl_cv_absolute_stdarg_h
68035            gl_cv_next_stdarg_h='"'$gl_header'"'
68036
68037
68038 fi
68039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
68040 $as_echo "$gl_cv_next_stdarg_h" >&6; }
68041      fi
68042      NEXT_STDARG_H=$gl_cv_next_stdarg_h
68043
68044      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
68045        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
68046        gl_next_as_first_directive='<'stdarg.h'>'
68047      else
68048        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
68049        gl_next_as_first_directive=$gl_cv_next_stdarg_h
68050      fi
68051      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
68052
68053
68054
68055
68056             if test "$gl_cv_next_stdarg_h" = '""'; then
68057         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
68058         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
68059       fi
68060     else
68061
68062   saved_as_echo_n="$as_echo_n"
68063   as_echo_n=':'
68064   if ${gl_cv_func___va_copy+:} false; then :
68065   $as_echo_n "(cached) " >&6
68066 else
68067
68068         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68069 /* end confdefs.h.  */
68070 #include <stdarg.h>
68071 int
68072 main ()
68073 {
68074
68075 #ifndef __va_copy
68076 error, bail out
68077 #endif
68078
68079   ;
68080   return 0;
68081 }
68082 _ACEOF
68083 if ac_fn_c_try_compile "$LINENO"; then :
68084   gl_cv_func___va_copy=yes
68085 else
68086   gl_cv_func___va_copy=no
68087 fi
68088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68089 fi
68090
68091   as_echo_n="$saved_as_echo_n"
68092
68093       if test $gl_cv_func___va_copy = yes; then
68094
68095 $as_echo "#define va_copy __va_copy" >>confdefs.h
68096
68097       else
68098
68099
68100 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
68101
68102       fi
68103     fi
68104   fi
68105
68106    if test -n "$STDARG_H"; then
68107   GL_GENERATE_STDARG_H_TRUE=
68108   GL_GENERATE_STDARG_H_FALSE='#'
68109 else
68110   GL_GENERATE_STDARG_H_TRUE='#'
68111   GL_GENERATE_STDARG_H_FALSE=
68112 fi
68113
68114
68115
68116
68117
68118
68119   # Define two additional variables used in the Makefile substitution.
68120
68121   if test "$ac_cv_header_stdbool_h" = yes; then
68122     STDBOOL_H=''
68123   else
68124     STDBOOL_H='stdbool.h'
68125   fi
68126
68127    if test -n "$STDBOOL_H"; then
68128   GL_GENERATE_STDBOOL_H_TRUE=
68129   GL_GENERATE_STDBOOL_H_FALSE='#'
68130 else
68131   GL_GENERATE_STDBOOL_H_TRUE='#'
68132   GL_GENERATE_STDBOOL_H_FALSE=
68133 fi
68134
68135
68136   if test "$ac_cv_type__Bool" = yes; then
68137     HAVE__BOOL=1
68138   else
68139     HAVE__BOOL=0
68140   fi
68141
68142
68143
68144
68145
68146   STDDEF_H=
68147   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
68148
68149 "
68150 if test "x$ac_cv_type_max_align_t" = xyes; then :
68151
68152 else
68153   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
68154 fi
68155
68156   if test $gt_cv_c_wchar_t = no; then
68157     HAVE_WCHAR_T=0
68158     STDDEF_H=stddef.h
68159   fi
68160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
68161 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
68162 if ${gl_cv_decl_null_works+:} false; then :
68163   $as_echo_n "(cached) " >&6
68164 else
68165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68166 /* end confdefs.h.  */
68167 #include <stddef.h>
68168       int test[2 * (sizeof NULL == sizeof (void *)) -1];
68169
68170 int
68171 main ()
68172 {
68173
68174   ;
68175   return 0;
68176 }
68177 _ACEOF
68178 if ac_fn_c_try_compile "$LINENO"; then :
68179   gl_cv_decl_null_works=yes
68180 else
68181   gl_cv_decl_null_works=no
68182 fi
68183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68184 fi
68185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
68186 $as_echo "$gl_cv_decl_null_works" >&6; }
68187   if test $gl_cv_decl_null_works = no; then
68188     REPLACE_NULL=1
68189     STDDEF_H=stddef.h
68190   fi
68191
68192    if test -n "$STDDEF_H"; then
68193   GL_GENERATE_STDDEF_H_TRUE=
68194   GL_GENERATE_STDDEF_H_FALSE='#'
68195 else
68196   GL_GENERATE_STDDEF_H_TRUE='#'
68197   GL_GENERATE_STDDEF_H_FALSE=
68198 fi
68199
68200   if test -n "$STDDEF_H"; then
68201
68202
68203
68204
68205
68206
68207
68208
68209      if test $gl_cv_have_include_next = yes; then
68210        gl_cv_next_stddef_h='<'stddef.h'>'
68211      else
68212        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
68213 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
68214 if ${gl_cv_next_stddef_h+:} false; then :
68215   $as_echo_n "(cached) " >&6
68216 else
68217
68218
68219
68220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68221 /* end confdefs.h.  */
68222 #include <stddef.h>
68223 _ACEOF
68224                 case "$host_os" in
68225     aix*) gl_absname_cpp="$ac_cpp -C" ;;
68226     *)    gl_absname_cpp="$ac_cpp" ;;
68227   esac
68228
68229   case "$host_os" in
68230     mingw*)
68231                                           gl_dirsep_regex='[/\\]'
68232       ;;
68233     *)
68234       gl_dirsep_regex='\/'
68235       ;;
68236   esac
68237       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
68238   gl_header_literal_regex=`echo 'stddef.h' \
68239                            | sed -e "$gl_make_literal_regex_sed"`
68240   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
68241       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
68242       s|^/[^/]|//&|
68243       p
68244       q
68245     }'
68246
68247         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
68248   sed -n "$gl_absolute_header_sed"`
68249
68250            gl_header=$gl_cv_absolute_stddef_h
68251            gl_cv_next_stddef_h='"'$gl_header'"'
68252
68253
68254 fi
68255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
68256 $as_echo "$gl_cv_next_stddef_h" >&6; }
68257      fi
68258      NEXT_STDDEF_H=$gl_cv_next_stddef_h
68259
68260      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
68261        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
68262        gl_next_as_first_directive='<'stddef.h'>'
68263      else
68264        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
68265        gl_next_as_first_directive=$gl_cv_next_stddef_h
68266      fi
68267      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
68268
68269
68270
68271
68272   fi
68273
68274
68275
68276
68277
68278
68279
68280
68281
68282
68283
68284
68285
68286
68287      if test $gl_cv_have_include_next = yes; then
68288        gl_cv_next_stdio_h='<'stdio.h'>'
68289      else
68290        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
68291 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
68292 if ${gl_cv_next_stdio_h+:} false; then :
68293   $as_echo_n "(cached) " >&6
68294 else
68295
68296
68297
68298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68299 /* end confdefs.h.  */
68300 #include <stdio.h>
68301 _ACEOF
68302                 case "$host_os" in
68303     aix*) gl_absname_cpp="$ac_cpp -C" ;;
68304     *)    gl_absname_cpp="$ac_cpp" ;;
68305   esac
68306
68307   case "$host_os" in
68308     mingw*)
68309                                           gl_dirsep_regex='[/\\]'
68310       ;;
68311     *)
68312       gl_dirsep_regex='\/'
68313       ;;
68314   esac
68315       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
68316   gl_header_literal_regex=`echo 'stdio.h' \
68317                            | sed -e "$gl_make_literal_regex_sed"`
68318   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
68319       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
68320       s|^/[^/]|//&|
68321       p
68322       q
68323     }'
68324
68325         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
68326   sed -n "$gl_absolute_header_sed"`
68327
68328            gl_header=$gl_cv_absolute_stdio_h
68329            gl_cv_next_stdio_h='"'$gl_header'"'
68330
68331
68332 fi
68333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
68334 $as_echo "$gl_cv_next_stdio_h" >&6; }
68335      fi
68336      NEXT_STDIO_H=$gl_cv_next_stdio_h
68337
68338      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
68339        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
68340        gl_next_as_first_directive='<'stdio.h'>'
68341      else
68342        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
68343        gl_next_as_first_directive=$gl_cv_next_stdio_h
68344      fi
68345      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
68346
68347
68348
68349
68350
68351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
68352 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
68353 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
68354   $as_echo_n "(cached) " >&6
68355 else
68356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68357 /* end confdefs.h.  */
68358
68359        #define __STDC_FORMAT_MACROS 1
68360        #include <stdio.h>
68361        #include <inttypes.h>
68362        /* For non-mingw systems, compilation will trivially succeed.
68363           For mingw, compilation will succeed for older mingw (system
68364           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
68365        #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
68366          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
68367        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
68368        #endif
68369
68370 int
68371 main ()
68372 {
68373
68374   ;
68375   return 0;
68376 }
68377 _ACEOF
68378 if ac_fn_c_try_compile "$LINENO"; then :
68379   gl_cv_func_printf_attribute_flavor=system
68380 else
68381   gl_cv_func_printf_attribute_flavor=gnu
68382 fi
68383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68384 fi
68385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
68386 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
68387   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
68388
68389 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
68390
68391   fi
68392
68393       GNULIB_FSCANF=1
68394
68395
68396 cat >>confdefs.h <<_ACEOF
68397 #define GNULIB_FSCANF 1
68398 _ACEOF
68399
68400
68401   GNULIB_SCANF=1
68402
68403
68404 cat >>confdefs.h <<_ACEOF
68405 #define GNULIB_SCANF 1
68406 _ACEOF
68407
68408
68409   GNULIB_FGETC=1
68410   GNULIB_GETC=1
68411   GNULIB_GETCHAR=1
68412   GNULIB_FGETS=1
68413   GNULIB_FREAD=1
68414
68415
68416       GNULIB_FPRINTF=1
68417   GNULIB_PRINTF=1
68418   GNULIB_VFPRINTF=1
68419   GNULIB_VPRINTF=1
68420   GNULIB_FPUTC=1
68421   GNULIB_PUTC=1
68422   GNULIB_PUTCHAR=1
68423   GNULIB_FPUTS=1
68424   GNULIB_PUTS=1
68425   GNULIB_FWRITE=1
68426
68427
68428
68429
68430     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
68431       REPLACE_STDIO_WRITE_FUNCS=1
68432
68433
68434
68435
68436
68437
68438
68439
68440   gtpo_LIBOBJS="$gtpo_LIBOBJS stdio-write.$ac_objext"
68441
68442     fi
68443
68444
68445
68446
68447     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
68448     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
68449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
68450 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
68451 if eval \${$as_gl_Symbol+:} false; then :
68452   $as_echo_n "(cached) " >&6
68453 else
68454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68455 /* end confdefs.h.  */
68456 #include <stdio.h>
68457
68458 int
68459 main ()
68460 {
68461 #undef $gl_func
68462   (void) $gl_func;
68463   ;
68464   return 0;
68465 }
68466 _ACEOF
68467 if ac_fn_c_try_compile "$LINENO"; then :
68468   eval "$as_gl_Symbol=yes"
68469 else
68470   eval "$as_gl_Symbol=no"
68471 fi
68472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68473 fi
68474 eval ac_res=\$$as_gl_Symbol
68475                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
68476 $as_echo "$ac_res" >&6; }
68477     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
68478   cat >>confdefs.h <<_ACEOF
68479 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
68480 _ACEOF
68481
68482                      eval ac_cv_have_decl_$gl_func=yes
68483 fi
68484       done
68485
68486
68487
68488
68489
68490
68491
68492
68493
68494
68495
68496
68497      if test $gl_cv_have_include_next = yes; then
68498        gl_cv_next_stdlib_h='<'stdlib.h'>'
68499      else
68500        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
68501 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
68502 if ${gl_cv_next_stdlib_h+:} false; then :
68503   $as_echo_n "(cached) " >&6
68504 else
68505
68506
68507
68508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68509 /* end confdefs.h.  */
68510 #include <stdlib.h>
68511 _ACEOF
68512                 case "$host_os" in
68513     aix*) gl_absname_cpp="$ac_cpp -C" ;;
68514     *)    gl_absname_cpp="$ac_cpp" ;;
68515   esac
68516
68517   case "$host_os" in
68518     mingw*)
68519                                           gl_dirsep_regex='[/\\]'
68520       ;;
68521     *)
68522       gl_dirsep_regex='\/'
68523       ;;
68524   esac
68525       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
68526   gl_header_literal_regex=`echo 'stdlib.h' \
68527                            | sed -e "$gl_make_literal_regex_sed"`
68528   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
68529       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
68530       s|^/[^/]|//&|
68531       p
68532       q
68533     }'
68534
68535         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
68536   sed -n "$gl_absolute_header_sed"`
68537
68538            gl_header=$gl_cv_absolute_stdlib_h
68539            gl_cv_next_stdlib_h='"'$gl_header'"'
68540
68541
68542 fi
68543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
68544 $as_echo "$gl_cv_next_stdlib_h" >&6; }
68545      fi
68546      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
68547
68548      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
68549        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
68550        gl_next_as_first_directive='<'stdlib.h'>'
68551      else
68552        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
68553        gl_next_as_first_directive=$gl_cv_next_stdlib_h
68554      fi
68555      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
68556
68557
68558
68559
68560
68561
68562     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
68563     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
68564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
68565 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
68566 if eval \${$as_gl_Symbol+:} false; then :
68567   $as_echo_n "(cached) " >&6
68568 else
68569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68570 /* end confdefs.h.  */
68571 #include <stdlib.h>
68572 #if HAVE_SYS_LOADAVG_H
68573 # include <sys/loadavg.h>
68574 #endif
68575 #if HAVE_RANDOM_H
68576 # include <random.h>
68577 #endif
68578
68579 int
68580 main ()
68581 {
68582 #undef $gl_func
68583   (void) $gl_func;
68584   ;
68585   return 0;
68586 }
68587 _ACEOF
68588 if ac_fn_c_try_compile "$LINENO"; then :
68589   eval "$as_gl_Symbol=yes"
68590 else
68591   eval "$as_gl_Symbol=no"
68592 fi
68593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68594 fi
68595 eval ac_res=\$$as_gl_Symbol
68596                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
68597 $as_echo "$ac_res" >&6; }
68598     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
68599   cat >>confdefs.h <<_ACEOF
68600 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
68601 _ACEOF
68602
68603                      eval ac_cv_have_decl_$gl_func=yes
68604 fi
68605       done
68606
68607
68608
68609
68610
68611
68612
68613
68614   for ac_func in stpcpy
68615 do :
68616   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
68617 if test "x$ac_cv_func_stpcpy" = xyes; then :
68618   cat >>confdefs.h <<_ACEOF
68619 #define HAVE_STPCPY 1
68620 _ACEOF
68621
68622 fi
68623 done
68624
68625   if test $ac_cv_func_stpcpy = no; then
68626     HAVE_STPCPY=0
68627   fi
68628
68629   if test $HAVE_STPCPY = 0; then
68630
68631
68632
68633
68634
68635
68636
68637
68638   gtpo_LIBOBJS="$gtpo_LIBOBJS stpcpy.$ac_objext"
68639
68640
68641   :
68642
68643   fi
68644
68645
68646
68647
68648
68649           GNULIB_STPCPY=1
68650
68651
68652
68653
68654
68655 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
68656
68657
68658
68659
68660
68661
68662
68663
68664
68665
68666
68667
68668
68669   if test $ac_cv_func_stpncpy = yes; then
68670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stpncpy" >&5
68671 $as_echo_n "checking for working stpncpy... " >&6; }
68672 if ${gl_cv_func_stpncpy+:} false; then :
68673   $as_echo_n "(cached) " >&6
68674 else
68675
68676       if test "$cross_compiling" = yes; then :
68677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68678 /* end confdefs.h.  */
68679
68680 #include <features.h>
68681 #ifdef __GNU_LIBRARY__
68682   Thanks for using GNU
68683 #endif
68684
68685 _ACEOF
68686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68687   $EGREP "Thanks for using GNU" >/dev/null 2>&1; then :
68688   gl_cv_func_stpncpy="guessing yes"
68689 else
68690   gl_cv_func_stpncpy="guessing no"
68691 fi
68692 rm -f conftest*
68693
68694
68695 else
68696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68697 /* end confdefs.h.  */
68698
68699 #include <stdlib.h>
68700 #include <string.h> /* for strcpy */
68701 /* The stpncpy prototype is missing in <string.h> on AIX 4.  */
68702 #if !HAVE_DECL_STPNCPY
68703 extern
68704 # ifdef __cplusplus
68705 "C"
68706 # endif
68707 char *stpncpy (char *dest, const char *src, size_t n);
68708 #endif
68709 int main ()
68710 {
68711   int result = 0;
68712   const char *src = "Hello";
68713   char dest[10];
68714   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here.  */
68715   {
68716     strcpy (dest, "\377\377\377\377\377\377");
68717     if (stpncpy (dest, src, 2) != dest + 2)
68718       result |= 1;
68719   }
68720   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here.  */
68721   {
68722     strcpy (dest, "\377\377\377\377\377\377");
68723     if (stpncpy (dest, src, 5) != dest + 5)
68724       result |= 2;
68725   }
68726   /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here.  */
68727   {
68728     strcpy (dest, "\377\377\377\377\377\377");
68729     if (stpncpy (dest, src, 7) != dest + 5)
68730       result |= 4;
68731   }
68732   return result;
68733 }
68734
68735 _ACEOF
68736 if ac_fn_c_try_run "$LINENO"; then :
68737   gl_cv_func_stpncpy=yes
68738 else
68739   gl_cv_func_stpncpy=no
68740 fi
68741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68742   conftest.$ac_objext conftest.beam conftest.$ac_ext
68743 fi
68744
68745
68746 fi
68747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stpncpy" >&5
68748 $as_echo "$gl_cv_func_stpncpy" >&6; }
68749     case "$gl_cv_func_stpncpy" in
68750       *yes)
68751
68752 $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h
68753
68754         ;;
68755       *)
68756         REPLACE_STPNCPY=1
68757         ;;
68758     esac
68759   else
68760     HAVE_STPNCPY=0
68761   fi
68762
68763   if test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1; then
68764
68765
68766
68767
68768
68769
68770
68771
68772   gtpo_LIBOBJS="$gtpo_LIBOBJS stpncpy.$ac_objext"
68773
68774
68775   :
68776
68777   fi
68778
68779
68780
68781
68782
68783           GNULIB_STPNCPY=1
68784
68785
68786
68787
68788
68789 $as_echo "#define GNULIB_TEST_STPNCPY 1" >>confdefs.h
68790
68791
68792
68793
68794
68795
68796
68797   for ac_func in strchrnul
68798 do :
68799   ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
68800 if test "x$ac_cv_func_strchrnul" = xyes; then :
68801   cat >>confdefs.h <<_ACEOF
68802 #define HAVE_STRCHRNUL 1
68803 _ACEOF
68804
68805 fi
68806 done
68807
68808   if test $ac_cv_func_strchrnul = no; then
68809     HAVE_STRCHRNUL=0
68810   else
68811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
68812 $as_echo_n "checking whether strchrnul works... " >&6; }
68813 if ${gl_cv_func_strchrnul_works+:} false; then :
68814   $as_echo_n "(cached) " >&6
68815 else
68816   if test "$cross_compiling" = yes; then :
68817            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68818 /* end confdefs.h.  */
68819
68820 #if defined __CYGWIN__
68821  #include <cygwin/version.h>
68822  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
68823   Lucky user
68824  #endif
68825 #else
68826   Lucky user
68827 #endif
68828
68829 _ACEOF
68830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68831   $EGREP "Lucky user" >/dev/null 2>&1; then :
68832   gl_cv_func_strchrnul_works="guessing yes"
68833 else
68834   gl_cv_func_strchrnul_works="guessing no"
68835 fi
68836 rm -f conftest*
68837
68838
68839 else
68840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68841 /* end confdefs.h.  */
68842
68843 #include <string.h> /* for strchrnul */
68844
68845 int
68846 main ()
68847 {
68848 const char *buf = "a";
68849       return strchrnul (buf, 'b') != buf + 1;
68850
68851   ;
68852   return 0;
68853 }
68854 _ACEOF
68855 if ac_fn_c_try_run "$LINENO"; then :
68856   gl_cv_func_strchrnul_works=yes
68857 else
68858   gl_cv_func_strchrnul_works=no
68859 fi
68860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68861   conftest.$ac_objext conftest.beam conftest.$ac_ext
68862 fi
68863
68864
68865 fi
68866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
68867 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
68868     case "$gl_cv_func_strchrnul_works" in
68869       *yes) ;;
68870       *) REPLACE_STRCHRNUL=1 ;;
68871     esac
68872   fi
68873
68874   if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
68875
68876
68877
68878
68879
68880
68881
68882
68883   gtpo_LIBOBJS="$gtpo_LIBOBJS strchrnul.$ac_objext"
68884
68885     :
68886   fi
68887
68888
68889
68890
68891
68892           GNULIB_STRCHRNUL=1
68893
68894
68895
68896
68897
68898 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
68899
68900
68901
68902
68903
68904
68905
68906
68907   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
68908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
68909 $as_echo_n "checking for working strerror function... " >&6; }
68910 if ${gl_cv_func_working_strerror+:} false; then :
68911   $as_echo_n "(cached) " >&6
68912 else
68913   if test "$cross_compiling" = yes; then :
68914   case "$host_os" in
68915                    # Guess yes on glibc systems.
68916            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
68917                    # If we don't know, assume the worst.
68918            *)      gl_cv_func_working_strerror="guessing no" ;;
68919          esac
68920
68921 else
68922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68923 /* end confdefs.h.  */
68924 #include <string.h>
68925
68926 int
68927 main ()
68928 {
68929 if (!*strerror (-2)) return 1;
68930   ;
68931   return 0;
68932 }
68933 _ACEOF
68934 if ac_fn_c_try_run "$LINENO"; then :
68935   gl_cv_func_working_strerror=yes
68936 else
68937   gl_cv_func_working_strerror=no
68938 fi
68939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68940   conftest.$ac_objext conftest.beam conftest.$ac_ext
68941 fi
68942
68943
68944 fi
68945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
68946 $as_echo "$gl_cv_func_working_strerror" >&6; }
68947     case "$gl_cv_func_working_strerror" in
68948       *yes) ;;
68949       *)
68950                         REPLACE_STRERROR=1
68951         ;;
68952     esac
68953
68954   else
68955             REPLACE_STRERROR=1
68956   fi
68957
68958   if test $REPLACE_STRERROR = 1; then
68959
68960
68961
68962
68963
68964
68965
68966
68967   gtpo_LIBOBJS="$gtpo_LIBOBJS strerror.$ac_objext"
68968
68969   fi
68970
68971
68972 cat >>confdefs.h <<_ACEOF
68973 #define GNULIB_STRERROR 1
68974 _ACEOF
68975
68976
68977
68978
68979
68980
68981
68982           GNULIB_STRERROR=1
68983
68984
68985
68986
68987
68988 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
68989
68990
68991
68992
68993
68994   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
68995
68996
68997
68998
68999
69000
69001
69002
69003   gtpo_LIBOBJS="$gtpo_LIBOBJS strerror-override.$ac_objext"
69004
69005
69006
69007
69008
69009   if test $ac_cv_header_sys_socket_h != yes; then
69010                     for ac_header in winsock2.h
69011 do :
69012   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
69013 if test "x$ac_cv_header_winsock2_h" = xyes; then :
69014   cat >>confdefs.h <<_ACEOF
69015 #define HAVE_WINSOCK2_H 1
69016 _ACEOF
69017
69018 fi
69019
69020 done
69021
69022   fi
69023   if test "$ac_cv_header_winsock2_h" = yes; then
69024     HAVE_WINSOCK2_H=1
69025     UNISTD_H_HAVE_WINSOCK2_H=1
69026     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
69027   else
69028     HAVE_WINSOCK2_H=0
69029   fi
69030
69031
69032   fi
69033   if test $gl_cond_libtool = false; then
69034     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
69035     gl_libdeps="$gl_libdeps $LIBICONV"
69036   fi
69037   if test $gl_cond_libtool = false; then
69038     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
69039     gl_libdeps="$gl_libdeps $LIBICONV"
69040   fi
69041
69042
69043
69044
69045
69046   if test $REPLACE_STRSTR = 0; then
69047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
69048 $as_echo_n "checking whether strstr works in linear time... " >&6; }
69049 if ${gl_cv_func_strstr_linear+:} false; then :
69050   $as_echo_n "(cached) " >&6
69051 else
69052   if test "$cross_compiling" = yes; then :
69053                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69054 /* end confdefs.h.  */
69055
69056 #include <features.h>
69057 #ifdef __GNU_LIBRARY__
69058  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
69059      && !(defined __i386__ || defined __x86_64__) \
69060      && !defined __UCLIBC__
69061   Lucky user
69062  #endif
69063 #endif
69064 #ifdef __CYGWIN__
69065  #include <cygwin/version.h>
69066  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
69067   Lucky user
69068  #endif
69069 #endif
69070
69071 _ACEOF
69072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69073   $EGREP "Lucky user" >/dev/null 2>&1; then :
69074   gl_cv_func_strstr_linear="guessing yes"
69075 else
69076   gl_cv_func_strstr_linear="guessing no"
69077 fi
69078 rm -f conftest*
69079
69080
69081 else
69082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69083 /* end confdefs.h.  */
69084
69085 #include <signal.h> /* for signal */
69086 #include <string.h> /* for strstr */
69087 #include <stdlib.h> /* for malloc */
69088 #include <unistd.h> /* for alarm */
69089 static void quit (int sig) { exit (sig + 128); }
69090
69091 int
69092 main ()
69093 {
69094
69095     int result = 0;
69096     size_t m = 1000000;
69097     char *haystack = (char *) malloc (2 * m + 2);
69098     char *needle = (char *) malloc (m + 2);
69099     /* Failure to compile this test due to missing alarm is okay,
69100        since all such platforms (mingw) also have quadratic strstr.  */
69101     signal (SIGALRM, quit);
69102     alarm (5);
69103     /* Check for quadratic performance.  */
69104     if (haystack && needle)
69105       {
69106         memset (haystack, 'A', 2 * m);
69107         haystack[2 * m] = 'B';
69108         haystack[2 * m + 1] = 0;
69109         memset (needle, 'A', m);
69110         needle[m] = 'B';
69111         needle[m + 1] = 0;
69112         if (!strstr (haystack, needle))
69113           result |= 1;
69114       }
69115     return result;
69116
69117   ;
69118   return 0;
69119 }
69120 _ACEOF
69121 if ac_fn_c_try_run "$LINENO"; then :
69122   gl_cv_func_strstr_linear=yes
69123 else
69124   gl_cv_func_strstr_linear=no
69125 fi
69126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
69127   conftest.$ac_objext conftest.beam conftest.$ac_ext
69128 fi
69129
69130
69131 fi
69132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
69133 $as_echo "$gl_cv_func_strstr_linear" >&6; }
69134     case "$gl_cv_func_strstr_linear" in
69135       *yes) ;;
69136       *)
69137         REPLACE_STRSTR=1
69138         ;;
69139     esac
69140   fi
69141
69142   if test $REPLACE_STRSTR = 1; then
69143
69144
69145
69146
69147
69148
69149
69150
69151   gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
69152
69153   fi
69154
69155
69156
69157   if test "$gl_cv_func_memchr_works" != yes; then
69158     REPLACE_STRSTR=1
69159   else
69160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
69161 $as_echo_n "checking whether strstr works... " >&6; }
69162 if ${gl_cv_func_strstr_works_always+:} false; then :
69163   $as_echo_n "(cached) " >&6
69164 else
69165   if test "$cross_compiling" = yes; then :
69166                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69167 /* end confdefs.h.  */
69168
69169 #ifdef __GNU_LIBRARY__
69170  #include <features.h>
69171  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
69172      || defined __UCLIBC__
69173   Lucky user
69174  #endif
69175 #elif defined __CYGWIN__
69176  #include <cygwin/version.h>
69177  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
69178   Lucky user
69179  #endif
69180 #else
69181   Lucky user
69182 #endif
69183
69184 _ACEOF
69185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69186   $EGREP "Lucky user" >/dev/null 2>&1; then :
69187   gl_cv_func_strstr_works_always="guessing yes"
69188 else
69189   gl_cv_func_strstr_works_always="guessing no"
69190 fi
69191 rm -f conftest*
69192
69193
69194 else
69195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69196 /* end confdefs.h.  */
69197
69198 #include <string.h> /* for strstr */
69199 #define P "_EF_BF_BD"
69200 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
69201 #define NEEDLE P P P P P
69202
69203 int
69204 main ()
69205 {
69206 return !!strstr (HAYSTACK, NEEDLE);
69207
69208   ;
69209   return 0;
69210 }
69211 _ACEOF
69212 if ac_fn_c_try_run "$LINENO"; then :
69213   gl_cv_func_strstr_works_always=yes
69214 else
69215   gl_cv_func_strstr_works_always=no
69216 fi
69217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
69218   conftest.$ac_objext conftest.beam conftest.$ac_ext
69219 fi
69220
69221
69222 fi
69223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
69224 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
69225     case "$gl_cv_func_strstr_works_always" in
69226       *yes) ;;
69227       *)
69228         REPLACE_STRSTR=1
69229         ;;
69230     esac
69231   fi
69232
69233   if test $REPLACE_STRSTR = 1; then
69234
69235
69236
69237
69238
69239
69240
69241
69242   gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
69243
69244   fi
69245
69246
69247
69248
69249
69250           GNULIB_STRSTR=1
69251
69252
69253
69254
69255
69256 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
69257
69258
69259
69260
69261
69262
69263
69264
69265
69266
69267
69268
69269
69270
69271
69272
69273
69274      if test $gl_cv_have_include_next = yes; then
69275        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
69276      else
69277        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
69278 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
69279 if ${gl_cv_next_sys_stat_h+:} false; then :
69280   $as_echo_n "(cached) " >&6
69281 else
69282
69283              if test $ac_cv_header_sys_stat_h = yes; then
69284
69285
69286
69287
69288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69289 /* end confdefs.h.  */
69290 #include <sys/stat.h>
69291 _ACEOF
69292                 case "$host_os" in
69293     aix*) gl_absname_cpp="$ac_cpp -C" ;;
69294     *)    gl_absname_cpp="$ac_cpp" ;;
69295   esac
69296
69297   case "$host_os" in
69298     mingw*)
69299                                           gl_dirsep_regex='[/\\]'
69300       ;;
69301     *)
69302       gl_dirsep_regex='\/'
69303       ;;
69304   esac
69305       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
69306   gl_header_literal_regex=`echo 'sys/stat.h' \
69307                            | sed -e "$gl_make_literal_regex_sed"`
69308   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
69309       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
69310       s|^/[^/]|//&|
69311       p
69312       q
69313     }'
69314
69315         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
69316   sed -n "$gl_absolute_header_sed"`
69317
69318            gl_header=$gl_cv_absolute_sys_stat_h
69319            gl_cv_next_sys_stat_h='"'$gl_header'"'
69320           else
69321                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
69322              fi
69323
69324
69325 fi
69326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
69327 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
69328      fi
69329      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
69330
69331      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
69332        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
69333        gl_next_as_first_directive='<'sys/stat.h'>'
69334      else
69335        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
69336        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
69337      fi
69338      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
69339
69340
69341
69342
69343
69344
69345
69346
69347
69348
69349
69350   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
69351
69352 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
69353
69354   fi
69355
69356       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
69357      #include <sys/stat.h>
69358 "
69359 if test "x$ac_cv_type_nlink_t" = xyes; then :
69360
69361 else
69362
69363 $as_echo "#define nlink_t int" >>confdefs.h
69364
69365 fi
69366
69367
69368
69369     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
69370     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
69371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
69372 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
69373 if eval \${$as_gl_Symbol+:} false; then :
69374   $as_echo_n "(cached) " >&6
69375 else
69376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69377 /* end confdefs.h.  */
69378 #include <sys/stat.h>
69379
69380 int
69381 main ()
69382 {
69383 #undef $gl_func
69384   (void) $gl_func;
69385   ;
69386   return 0;
69387 }
69388 _ACEOF
69389 if ac_fn_c_try_compile "$LINENO"; then :
69390   eval "$as_gl_Symbol=yes"
69391 else
69392   eval "$as_gl_Symbol=no"
69393 fi
69394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69395 fi
69396 eval ac_res=\$$as_gl_Symbol
69397                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
69398 $as_echo "$ac_res" >&6; }
69399     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
69400   cat >>confdefs.h <<_ACEOF
69401 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
69402 _ACEOF
69403
69404                      eval ac_cv_have_decl_$gl_func=yes
69405 fi
69406       done
69407
69408
69409
69410
69411
69412
69413
69414
69415
69416
69417
69418
69419
69420
69421
69422
69423
69424
69425
69426
69427
69428       if  { test "$HAVE_LIBUNISTRING" != yes \
69429     || {
69430
69431
69432
69433             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69434             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69435                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69436                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69437                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
69438                          }
69439                     }
69440                }
69441
69442
69443
69444
69445        }
69446   }; then
69447     LIBUNISTRING_UNICONV_H='uniconv.h'
69448   else
69449     LIBUNISTRING_UNICONV_H=
69450   fi
69451
69452
69453
69454
69455        if  { test "$HAVE_LIBUNISTRING" != yes \
69456     || {
69457
69458
69459
69460             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69461             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69462                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69463                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69464                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
69465                          }
69466                     }
69467                }
69468
69469
69470
69471
69472        }
69473   }; then
69474   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
69475   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
69476 else
69477   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
69478   LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
69479 fi
69480
69481
69482
69483
69484       if  { test "$HAVE_LIBUNISTRING" != yes \
69485     || {
69486
69487
69488
69489             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69490             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69491                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69492                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69493                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
69494                          }
69495                     }
69496                }
69497
69498
69499
69500
69501        }
69502   }; then
69503     LIBUNISTRING_UNICTYPE_H='unictype.h'
69504   else
69505     LIBUNISTRING_UNICTYPE_H=
69506   fi
69507
69508
69509
69510
69511
69512        if  { test "$HAVE_LIBUNISTRING" != yes \
69513     || {
69514
69515
69516
69517             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69518             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69519                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69520                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69521                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
69522                          }
69523                     }
69524                }
69525
69526
69527
69528
69529        }
69530   }; then
69531   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_TRUE=
69532   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_FALSE='#'
69533 else
69534   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_TRUE='#'
69535   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_FALSE=
69536 fi
69537
69538
69539
69540
69541
69542        if  { test "$HAVE_LIBUNISTRING" != yes \
69543     || {
69544
69545
69546
69547             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69548             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69549                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69550                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69551                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
69552                          }
69553                     }
69554                }
69555
69556
69557
69558
69559        }
69560   }; then
69561   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE=
69562   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE='#'
69563 else
69564   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE='#'
69565   LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE=
69566 fi
69567
69568
69569
69570
69571       if  { test "$HAVE_LIBUNISTRING" != yes \
69572     || {
69573
69574
69575
69576             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69577             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69578                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69579                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69580                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
69581                          }
69582                     }
69583                }
69584
69585
69586
69587
69588        }
69589   }; then
69590     LIBUNISTRING_UNILBRK_H='unilbrk.h'
69591   else
69592     LIBUNISTRING_UNILBRK_H=
69593   fi
69594
69595
69596
69597
69598
69599        if  { test "$HAVE_LIBUNISTRING" != yes \
69600     || {
69601
69602
69603
69604             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69605             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69606                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69607                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69608                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
69609                          }
69610                     }
69611                }
69612
69613
69614
69615
69616        }
69617   }; then
69618   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
69619   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
69620 else
69621   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
69622   LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
69623 fi
69624
69625
69626
69627
69628        if  { test "$HAVE_LIBUNISTRING" != yes \
69629     || {
69630
69631
69632
69633             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69634             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69635                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69636                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69637                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
69638                          }
69639                     }
69640                }
69641
69642
69643
69644
69645        }
69646   }; then
69647   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
69648   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
69649 else
69650   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
69651   LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
69652 fi
69653
69654
69655
69656
69657        if  { test "$HAVE_LIBUNISTRING" != yes \
69658     || {
69659
69660
69661
69662             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69663             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69664                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69665                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69666                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
69667                          }
69668                     }
69669                }
69670
69671
69672
69673
69674        }
69675   }; then
69676   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
69677   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
69678 else
69679   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
69680   LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
69681 fi
69682
69683
69684
69685
69686
69687
69688
69689
69690
69691
69692
69693
69694
69695
69696      if test $gl_cv_have_include_next = yes; then
69697        gl_cv_next_unistd_h='<'unistd.h'>'
69698      else
69699        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
69700 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
69701 if ${gl_cv_next_unistd_h+:} false; then :
69702   $as_echo_n "(cached) " >&6
69703 else
69704
69705              if test $ac_cv_header_unistd_h = yes; then
69706
69707
69708
69709
69710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69711 /* end confdefs.h.  */
69712 #include <unistd.h>
69713 _ACEOF
69714                 case "$host_os" in
69715     aix*) gl_absname_cpp="$ac_cpp -C" ;;
69716     *)    gl_absname_cpp="$ac_cpp" ;;
69717   esac
69718
69719   case "$host_os" in
69720     mingw*)
69721                                           gl_dirsep_regex='[/\\]'
69722       ;;
69723     *)
69724       gl_dirsep_regex='\/'
69725       ;;
69726   esac
69727       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
69728   gl_header_literal_regex=`echo 'unistd.h' \
69729                            | sed -e "$gl_make_literal_regex_sed"`
69730   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
69731       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
69732       s|^/[^/]|//&|
69733       p
69734       q
69735     }'
69736
69737         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
69738   sed -n "$gl_absolute_header_sed"`
69739
69740            gl_header=$gl_cv_absolute_unistd_h
69741            gl_cv_next_unistd_h='"'$gl_header'"'
69742           else
69743                gl_cv_next_unistd_h='<'unistd.h'>'
69744              fi
69745
69746
69747 fi
69748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
69749 $as_echo "$gl_cv_next_unistd_h" >&6; }
69750      fi
69751      NEXT_UNISTD_H=$gl_cv_next_unistd_h
69752
69753      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
69754        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
69755        gl_next_as_first_directive='<'unistd.h'>'
69756      else
69757        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
69758        gl_next_as_first_directive=$gl_cv_next_unistd_h
69759      fi
69760      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
69761
69762
69763
69764
69765   if test $ac_cv_header_unistd_h = yes; then
69766     HAVE_UNISTD_H=1
69767   else
69768     HAVE_UNISTD_H=0
69769   fi
69770
69771
69772
69773
69774
69775
69776
69777     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
69778     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
69779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
69780 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
69781 if eval \${$as_gl_Symbol+:} false; then :
69782   $as_echo_n "(cached) " >&6
69783 else
69784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69785 /* end confdefs.h.  */
69786
69787 #if HAVE_UNISTD_H
69788 # include <unistd.h>
69789 #endif
69790 /* Some systems declare various items in the wrong headers.  */
69791 #if !(defined __GLIBC__ && !defined __UCLIBC__)
69792 # include <fcntl.h>
69793 # include <stdio.h>
69794 # include <stdlib.h>
69795 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
69796 #  include <io.h>
69797 # endif
69798 #endif
69799
69800 int
69801 main ()
69802 {
69803 #undef $gl_func
69804   (void) $gl_func;
69805   ;
69806   return 0;
69807 }
69808 _ACEOF
69809 if ac_fn_c_try_compile "$LINENO"; then :
69810   eval "$as_gl_Symbol=yes"
69811 else
69812   eval "$as_gl_Symbol=no"
69813 fi
69814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69815 fi
69816 eval ac_res=\$$as_gl_Symbol
69817                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
69818 $as_echo "$ac_res" >&6; }
69819     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
69820   cat >>confdefs.h <<_ACEOF
69821 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
69822 _ACEOF
69823
69824                      eval ac_cv_have_decl_$gl_func=yes
69825 fi
69826       done
69827
69828
69829
69830
69831       if  { test "$HAVE_LIBUNISTRING" != yes \
69832     || {
69833
69834
69835
69836             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69837             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69838                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69839                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69840                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
69841                          }
69842                     }
69843                }
69844
69845
69846
69847
69848        }
69849   }; then
69850     LIBUNISTRING_UNISTR_H='unistr.h'
69851   else
69852     LIBUNISTRING_UNISTR_H=
69853   fi
69854
69855
69856
69857
69858 cat >>confdefs.h <<_ACEOF
69859 #define GNULIB_UNISTR_U16_MBTOUC 1
69860 _ACEOF
69861
69862
69863
69864
69865        if  { test "$HAVE_LIBUNISTRING" != yes \
69866     || {
69867
69868
69869
69870             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69871             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69872                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69873                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69874                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
69875                          }
69876                     }
69877                }
69878
69879
69880
69881
69882        }
69883   }; then
69884   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
69885   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
69886 else
69887   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
69888   LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
69889 fi
69890
69891
69892
69893
69894        if  { test "$HAVE_LIBUNISTRING" != yes \
69895     || {
69896
69897
69898
69899             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69900             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69901                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69902                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69903                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
69904                          }
69905                     }
69906                }
69907
69908
69909
69910
69911        }
69912   }; then
69913   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
69914   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
69915 else
69916   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
69917   LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
69918 fi
69919
69920
69921
69922
69923        if  { test "$HAVE_LIBUNISTRING" != yes \
69924     || {
69925
69926
69927
69928             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69929             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69930                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69931                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69932                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
69933                          }
69934                     }
69935                }
69936
69937
69938
69939
69940        }
69941   }; then
69942   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
69943   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
69944 else
69945   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
69946   LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
69947 fi
69948
69949
69950
69951
69952 cat >>confdefs.h <<_ACEOF
69953 #define GNULIB_UNISTR_U8_MBTOUC 1
69954 _ACEOF
69955
69956
69957
69958
69959        if  { test "$HAVE_LIBUNISTRING" != yes \
69960     || {
69961
69962
69963
69964             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
69965             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
69966                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
69967                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
69968                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
69969                          }
69970                     }
69971                }
69972
69973
69974
69975
69976        }
69977   }; then
69978   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
69979   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
69980 else
69981   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
69982   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
69983 fi
69984
69985
69986
69987
69988 cat >>confdefs.h <<_ACEOF
69989 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
69990 _ACEOF
69991
69992
69993
69994
69995        if  { test "$HAVE_LIBUNISTRING" != yes \
69996     || {
69997
69998
69999
70000             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70001             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70002                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70003                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70004                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
70005                          }
70006                     }
70007                }
70008
70009
70010
70011
70012        }
70013   }; then
70014   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
70015   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
70016 else
70017   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
70018   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
70019 fi
70020
70021
70022
70023
70024 cat >>confdefs.h <<_ACEOF
70025 #define GNULIB_UNISTR_U8_MBTOUCR 1
70026 _ACEOF
70027
70028
70029
70030
70031        if  { test "$HAVE_LIBUNISTRING" != yes \
70032     || {
70033
70034
70035
70036             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70037             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70038                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70039                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70040                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70041                          }
70042                     }
70043                }
70044
70045
70046
70047
70048        }
70049   }; then
70050   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
70051   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
70052 else
70053   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
70054   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
70055 fi
70056
70057
70058
70059
70060        if  { test "$HAVE_LIBUNISTRING" != yes \
70061     || {
70062
70063
70064
70065             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70066             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70067                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70068                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70069                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70070                          }
70071                     }
70072                }
70073
70074
70075
70076
70077        }
70078   }; then
70079   LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_TRUE=
70080   LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_FALSE='#'
70081 else
70082   LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_TRUE='#'
70083   LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_FALSE=
70084 fi
70085
70086
70087
70088
70089        if  { test "$HAVE_LIBUNISTRING" != yes \
70090     || {
70091
70092
70093
70094             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70095             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70096                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70097                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70098                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70099                          }
70100                     }
70101                }
70102
70103
70104
70105
70106        }
70107   }; then
70108   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
70109   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
70110 else
70111   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
70112   LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
70113 fi
70114
70115
70116
70117
70118        if  { test "$HAVE_LIBUNISTRING" != yes \
70119     || {
70120
70121
70122
70123             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70124             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70125                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70126                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70127                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70128                          }
70129                     }
70130                }
70131
70132
70133
70134
70135        }
70136   }; then
70137   LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE=
70138   LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE='#'
70139 else
70140   LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE='#'
70141   LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE=
70142 fi
70143
70144
70145
70146
70147 cat >>confdefs.h <<_ACEOF
70148 #define GNULIB_UNISTR_U8_UCTOMB 1
70149 _ACEOF
70150
70151
70152
70153
70154        if  { test "$HAVE_LIBUNISTRING" != yes \
70155     || {
70156
70157
70158
70159             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70160             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70161                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70162                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70163                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
70164                          }
70165                     }
70166                }
70167
70168
70169
70170
70171        }
70172   }; then
70173   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
70174   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
70175 else
70176   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
70177   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
70178 fi
70179
70180
70181
70182
70183       if  { test "$HAVE_LIBUNISTRING" != yes \
70184     || {
70185
70186
70187
70188             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70189             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70190                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70191                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70192                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
70193                          }
70194                     }
70195                }
70196
70197
70198
70199
70200        }
70201   }; then
70202     LIBUNISTRING_UNITYPES_H='unitypes.h'
70203   else
70204     LIBUNISTRING_UNITYPES_H=
70205   fi
70206
70207
70208
70209
70210       if  { test "$HAVE_LIBUNISTRING" != yes \
70211     || {
70212
70213
70214
70215             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70216             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70217                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70218                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70219                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
70220                          }
70221                     }
70222                }
70223
70224
70225
70226
70227        }
70228   }; then
70229     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
70230   else
70231     LIBUNISTRING_UNIWIDTH_H=
70232   fi
70233
70234
70235
70236
70237        if  { test "$HAVE_LIBUNISTRING" != yes \
70238     || {
70239
70240
70241
70242             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
70243             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
70244                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
70245                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
70246                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
70247                          }
70248                     }
70249                }
70250
70251
70252
70253
70254        }
70255   }; then
70256   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
70257   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
70258 else
70259   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
70260   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
70261 fi
70262
70263
70264
70265
70266 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
70267
70268
70269
70270
70271
70272
70273
70274
70275
70276
70277
70278
70279
70280
70281
70282
70283
70284
70285
70286
70287   if test $ac_cv_func_vasnprintf = no; then
70288
70289
70290
70291
70292
70293
70294
70295
70296
70297
70298   gtpo_LIBOBJS="$gtpo_LIBOBJS vasnprintf.$ac_objext"
70299
70300
70301
70302
70303
70304
70305
70306
70307
70308   gtpo_LIBOBJS="$gtpo_LIBOBJS printf-args.$ac_objext"
70309
70310
70311
70312
70313
70314
70315
70316
70317
70318   gtpo_LIBOBJS="$gtpo_LIBOBJS printf-parse.$ac_objext"
70319
70320
70321
70322
70323
70324
70325
70326
70327
70328   gtpo_LIBOBJS="$gtpo_LIBOBJS asnprintf.$ac_objext"
70329
70330   if test $ac_cv_func_vasnprintf = yes; then
70331
70332 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
70333
70334   fi
70335
70336
70337
70338
70339
70340
70341
70342
70343
70344
70345
70346   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
70347 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
70348
70349 else
70350
70351 $as_echo "#define ptrdiff_t long" >>confdefs.h
70352
70353
70354 fi
70355
70356
70357
70358
70359
70360
70361
70362   fi
70363
70364
70365   for ac_func in vasprintf
70366 do :
70367   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
70368 if test "x$ac_cv_func_vasprintf" = xyes; then :
70369   cat >>confdefs.h <<_ACEOF
70370 #define HAVE_VASPRINTF 1
70371 _ACEOF
70372
70373 fi
70374 done
70375
70376   if test $ac_cv_func_vasprintf = no; then
70377
70378
70379
70380
70381
70382
70383
70384
70385
70386   gtpo_LIBOBJS="$gtpo_LIBOBJS vasprintf.$ac_objext"
70387
70388
70389
70390
70391
70392
70393
70394
70395
70396   gtpo_LIBOBJS="$gtpo_LIBOBJS asprintf.$ac_objext"
70397
70398
70399   if test $ac_cv_func_vasprintf = yes; then
70400     REPLACE_VASPRINTF=1
70401   else
70402     HAVE_VASPRINTF=0
70403   fi
70404
70405
70406
70407
70408
70409
70410
70411
70412   fi
70413
70414
70415
70416
70417
70418
70419           GNULIB_VASPRINTF=1
70420
70421
70422
70423
70424
70425 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
70426
70427
70428
70429
70430
70431   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
70432
70433
70434
70435   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
70436
70437
70438
70439
70440
70441
70442
70443
70444
70445
70446
70447
70448
70449      if test $gl_cv_have_include_next = yes; then
70450        gl_cv_next_wchar_h='<'wchar.h'>'
70451      else
70452        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
70453 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
70454 if ${gl_cv_next_wchar_h+:} false; then :
70455   $as_echo_n "(cached) " >&6
70456 else
70457
70458              if test $ac_cv_header_wchar_h = yes; then
70459
70460
70461
70462
70463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70464 /* end confdefs.h.  */
70465 #include <wchar.h>
70466 _ACEOF
70467                 case "$host_os" in
70468     aix*) gl_absname_cpp="$ac_cpp -C" ;;
70469     *)    gl_absname_cpp="$ac_cpp" ;;
70470   esac
70471
70472   case "$host_os" in
70473     mingw*)
70474                                           gl_dirsep_regex='[/\\]'
70475       ;;
70476     *)
70477       gl_dirsep_regex='\/'
70478       ;;
70479   esac
70480       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
70481   gl_header_literal_regex=`echo 'wchar.h' \
70482                            | sed -e "$gl_make_literal_regex_sed"`
70483   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
70484       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
70485       s|^/[^/]|//&|
70486       p
70487       q
70488     }'
70489
70490         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
70491   sed -n "$gl_absolute_header_sed"`
70492
70493            gl_header=$gl_cv_absolute_wchar_h
70494            gl_cv_next_wchar_h='"'$gl_header'"'
70495           else
70496                gl_cv_next_wchar_h='<'wchar.h'>'
70497              fi
70498
70499
70500 fi
70501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
70502 $as_echo "$gl_cv_next_wchar_h" >&6; }
70503      fi
70504      NEXT_WCHAR_H=$gl_cv_next_wchar_h
70505
70506      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
70507        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
70508        gl_next_as_first_directive='<'wchar.h'>'
70509      else
70510        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
70511        gl_next_as_first_directive=$gl_cv_next_wchar_h
70512      fi
70513      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
70514
70515
70516
70517
70518   if test $ac_cv_header_wchar_h = yes; then
70519     HAVE_WCHAR_H=1
70520   else
70521     HAVE_WCHAR_H=0
70522   fi
70523
70524
70525
70526
70527
70528   if test $gt_cv_c_wint_t = yes; then
70529     HAVE_WINT_T=1
70530   else
70531     HAVE_WINT_T=0
70532   fi
70533
70534
70535
70536     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
70537     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
70538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
70539 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
70540 if eval \${$as_gl_Symbol+:} false; then :
70541   $as_echo_n "(cached) " >&6
70542 else
70543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70544 /* end confdefs.h.  */
70545
70546 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
70547    <wchar.h>.
70548    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
70549    included before <wchar.h>.  */
70550 #if !(defined __GLIBC__ && !defined __UCLIBC__)
70551 # include <stddef.h>
70552 # include <stdio.h>
70553 # include <time.h>
70554 #endif
70555 #include <wchar.h>
70556
70557 int
70558 main ()
70559 {
70560 #undef $gl_func
70561   (void) $gl_func;
70562   ;
70563   return 0;
70564 }
70565 _ACEOF
70566 if ac_fn_c_try_compile "$LINENO"; then :
70567   eval "$as_gl_Symbol=yes"
70568 else
70569   eval "$as_gl_Symbol=no"
70570 fi
70571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70572 fi
70573 eval ac_res=\$$as_gl_Symbol
70574                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
70575 $as_echo "$ac_res" >&6; }
70576     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
70577   cat >>confdefs.h <<_ACEOF
70578 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
70579 _ACEOF
70580
70581                      eval ac_cv_have_decl_$gl_func=yes
70582 fi
70583       done
70584
70585
70586
70587
70588
70589
70590
70591   if test $ac_cv_func_iswcntrl = yes; then
70592     HAVE_ISWCNTRL=1
70593   else
70594     HAVE_ISWCNTRL=0
70595   fi
70596
70597
70598
70599   if test $gt_cv_c_wint_t = yes; then
70600     HAVE_WINT_T=1
70601   else
70602     HAVE_WINT_T=0
70603   fi
70604
70605
70606
70607
70608
70609
70610
70611
70612
70613
70614
70615      if test $gl_cv_have_include_next = yes; then
70616        gl_cv_next_wctype_h='<'wctype.h'>'
70617      else
70618        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
70619 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
70620 if ${gl_cv_next_wctype_h+:} false; then :
70621   $as_echo_n "(cached) " >&6
70622 else
70623
70624              if test $ac_cv_header_wctype_h = yes; then
70625
70626
70627
70628
70629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70630 /* end confdefs.h.  */
70631 #include <wctype.h>
70632 _ACEOF
70633                 case "$host_os" in
70634     aix*) gl_absname_cpp="$ac_cpp -C" ;;
70635     *)    gl_absname_cpp="$ac_cpp" ;;
70636   esac
70637
70638   case "$host_os" in
70639     mingw*)
70640                                           gl_dirsep_regex='[/\\]'
70641       ;;
70642     *)
70643       gl_dirsep_regex='\/'
70644       ;;
70645   esac
70646       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
70647   gl_header_literal_regex=`echo 'wctype.h' \
70648                            | sed -e "$gl_make_literal_regex_sed"`
70649   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
70650       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
70651       s|^/[^/]|//&|
70652       p
70653       q
70654     }'
70655
70656         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
70657   sed -n "$gl_absolute_header_sed"`
70658
70659            gl_header=$gl_cv_absolute_wctype_h
70660            gl_cv_next_wctype_h='"'$gl_header'"'
70661           else
70662                gl_cv_next_wctype_h='<'wctype.h'>'
70663              fi
70664
70665
70666 fi
70667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
70668 $as_echo "$gl_cv_next_wctype_h" >&6; }
70669      fi
70670      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
70671
70672      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
70673        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
70674        gl_next_as_first_directive='<'wctype.h'>'
70675      else
70676        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
70677        gl_next_as_first_directive=$gl_cv_next_wctype_h
70678      fi
70679      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
70680
70681
70682
70683
70684   if test $ac_cv_header_wctype_h = yes; then
70685     if test $ac_cv_func_iswcntrl = yes; then
70686                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
70687 $as_echo_n "checking whether iswcntrl works... " >&6; }
70688 if ${gl_cv_func_iswcntrl_works+:} false; then :
70689   $as_echo_n "(cached) " >&6
70690 else
70691
70692           if test "$cross_compiling" = yes; then :
70693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70694 /* end confdefs.h.  */
70695 #include <stdlib.h>
70696                           #if __GNU_LIBRARY__ == 1
70697                           Linux libc5 i18n is broken.
70698                           #endif
70699 int
70700 main ()
70701 {
70702
70703   ;
70704   return 0;
70705 }
70706 _ACEOF
70707 if ac_fn_c_try_compile "$LINENO"; then :
70708   gl_cv_func_iswcntrl_works="guessing yes"
70709 else
70710   gl_cv_func_iswcntrl_works="guessing no"
70711 fi
70712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70713
70714 else
70715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70716 /* end confdefs.h.  */
70717
70718                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
70719                   included before <wchar.h>.
70720                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
70721                   must be included before <wchar.h>.  */
70722                #include <stddef.h>
70723                #include <stdio.h>
70724                #include <time.h>
70725                #include <wchar.h>
70726                #include <wctype.h>
70727                int main () { return iswprint ('x') == 0; }
70728
70729 _ACEOF
70730 if ac_fn_c_try_run "$LINENO"; then :
70731   gl_cv_func_iswcntrl_works=yes
70732 else
70733   gl_cv_func_iswcntrl_works=no
70734 fi
70735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
70736   conftest.$ac_objext conftest.beam conftest.$ac_ext
70737 fi
70738
70739
70740 fi
70741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
70742 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
70743     fi
70744     HAVE_WCTYPE_H=1
70745   else
70746     HAVE_WCTYPE_H=0
70747   fi
70748
70749
70750   case "$gl_cv_func_iswcntrl_works" in
70751     *yes) REPLACE_ISWCNTRL=0 ;;
70752     *)    REPLACE_ISWCNTRL=1 ;;
70753   esac
70754
70755
70756   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
70757         :
70758   fi
70759
70760   if test $REPLACE_ISWCNTRL = 1; then
70761     REPLACE_TOWLOWER=1
70762   else
70763     for ac_func in towlower
70764 do :
70765   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
70766 if test "x$ac_cv_func_towlower" = xyes; then :
70767   cat >>confdefs.h <<_ACEOF
70768 #define HAVE_TOWLOWER 1
70769 _ACEOF
70770
70771 fi
70772 done
70773
70774     if test $ac_cv_func_towlower = yes; then
70775       REPLACE_TOWLOWER=0
70776     else
70777       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
70778              included before <wchar.h>.
70779              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
70780              must be included before <wchar.h>.  */
70781           #include <stddef.h>
70782           #include <stdio.h>
70783           #include <time.h>
70784           #include <wchar.h>
70785           #if HAVE_WCTYPE_H
70786           # include <wctype.h>
70787           #endif
70788
70789 "
70790 if test "x$ac_cv_have_decl_towlower" = xyes; then :
70791   ac_have_decl=1
70792 else
70793   ac_have_decl=0
70794 fi
70795
70796 cat >>confdefs.h <<_ACEOF
70797 #define HAVE_DECL_TOWLOWER $ac_have_decl
70798 _ACEOF
70799
70800       if test $ac_cv_have_decl_towlower = yes; then
70801                                 REPLACE_TOWLOWER=1
70802       else
70803         REPLACE_TOWLOWER=0
70804       fi
70805     fi
70806   fi
70807
70808
70809   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
70810         :
70811   fi
70812
70813           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
70814 $as_echo_n "checking for wctype_t... " >&6; }
70815 if ${gl_cv_type_wctype_t+:} false; then :
70816   $as_echo_n "(cached) " >&6
70817 else
70818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70819 /* end confdefs.h.  */
70820 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
70821                included before <wchar.h>.
70822                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
70823                must be included before <wchar.h>.  */
70824             #include <stddef.h>
70825             #include <stdio.h>
70826             #include <time.h>
70827             #include <wchar.h>
70828             #if HAVE_WCTYPE_H
70829             # include <wctype.h>
70830             #endif
70831             wctype_t a;
70832
70833 int
70834 main ()
70835 {
70836
70837   ;
70838   return 0;
70839 }
70840 _ACEOF
70841 if ac_fn_c_try_compile "$LINENO"; then :
70842   gl_cv_type_wctype_t=yes
70843 else
70844   gl_cv_type_wctype_t=no
70845 fi
70846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70847
70848 fi
70849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
70850 $as_echo "$gl_cv_type_wctype_t" >&6; }
70851   if test $gl_cv_type_wctype_t = no; then
70852     HAVE_WCTYPE_T=0
70853   fi
70854
70855       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
70856 $as_echo_n "checking for wctrans_t... " >&6; }
70857 if ${gl_cv_type_wctrans_t+:} false; then :
70858   $as_echo_n "(cached) " >&6
70859 else
70860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70861 /* end confdefs.h.  */
70862 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
70863                included before <wchar.h>.
70864                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
70865                must be included before <wchar.h>.  */
70866             #include <stddef.h>
70867             #include <stdio.h>
70868             #include <time.h>
70869             #include <wchar.h>
70870             #include <wctype.h>
70871             wctrans_t a;
70872
70873 int
70874 main ()
70875 {
70876
70877   ;
70878   return 0;
70879 }
70880 _ACEOF
70881 if ac_fn_c_try_compile "$LINENO"; then :
70882   gl_cv_type_wctrans_t=yes
70883 else
70884   gl_cv_type_wctrans_t=no
70885 fi
70886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70887
70888 fi
70889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
70890 $as_echo "$gl_cv_type_wctrans_t" >&6; }
70891   if test $gl_cv_type_wctrans_t = no; then
70892     HAVE_WCTRANS_T=0
70893   fi
70894
70895
70896     for gl_func in wctype iswctype wctrans towctrans     ; do
70897     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
70898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
70899 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
70900 if eval \${$as_gl_Symbol+:} false; then :
70901   $as_echo_n "(cached) " >&6
70902 else
70903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70904 /* end confdefs.h.  */
70905
70906 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
70907    <wchar.h>.
70908    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
70909    included before <wchar.h>.  */
70910 #if !(defined __GLIBC__ && !defined __UCLIBC__)
70911 # include <stddef.h>
70912 # include <stdio.h>
70913 # include <time.h>
70914 # include <wchar.h>
70915 #endif
70916 #include <wctype.h>
70917
70918 int
70919 main ()
70920 {
70921 #undef $gl_func
70922   (void) $gl_func;
70923   ;
70924   return 0;
70925 }
70926 _ACEOF
70927 if ac_fn_c_try_compile "$LINENO"; then :
70928   eval "$as_gl_Symbol=yes"
70929 else
70930   eval "$as_gl_Symbol=no"
70931 fi
70932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70933 fi
70934 eval ac_res=\$$as_gl_Symbol
70935                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
70936 $as_echo "$ac_res" >&6; }
70937     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
70938   cat >>confdefs.h <<_ACEOF
70939 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
70940 _ACEOF
70941
70942                      eval ac_cv_have_decl_$gl_func=yes
70943 fi
70944       done
70945
70946
70947
70948
70949
70950
70951
70952
70953
70954
70955
70956
70957
70958   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
70959 /* AIX 3.2.5 declares wcwidth in <string.h>. */
70960 #include <string.h>
70961 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
70962    <wchar.h>.
70963    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
70964    before <wchar.h>.  */
70965 #include <stddef.h>
70966 #include <stdio.h>
70967 #include <time.h>
70968 #include <wchar.h>
70969
70970 "
70971 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
70972   ac_have_decl=1
70973 else
70974   ac_have_decl=0
70975 fi
70976
70977 cat >>confdefs.h <<_ACEOF
70978 #define HAVE_DECL_WCWIDTH $ac_have_decl
70979 _ACEOF
70980
70981   if test $ac_cv_have_decl_wcwidth != yes; then
70982     HAVE_DECL_WCWIDTH=0
70983   fi
70984
70985   if test $ac_cv_func_wcwidth = yes; then
70986     HAVE_WCWIDTH=1
70987                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
70988 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
70989 if ${gl_cv_func_wcwidth_works+:} false; then :
70990   $as_echo_n "(cached) " >&6
70991 else
70992
70993         if test "$cross_compiling" = yes; then :
70994
70995            case "$host_os" in
70996                      # Guess yes on glibc and AIX 7 systems.
70997              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
70998              *)                  gl_cv_func_wcwidth_works="guessing no";;
70999            esac
71000
71001 else
71002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71003 /* end confdefs.h.  */
71004
71005 #include <locale.h>
71006 /* AIX 3.2.5 declares wcwidth in <string.h>. */
71007 #include <string.h>
71008 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
71009    <wchar.h>.
71010    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
71011    before <wchar.h>.  */
71012 #include <stddef.h>
71013 #include <stdio.h>
71014 #include <time.h>
71015 #include <wchar.h>
71016 #if !HAVE_DECL_WCWIDTH
71017 extern
71018 # ifdef __cplusplus
71019 "C"
71020 # endif
71021 int wcwidth (int);
71022 #endif
71023 int main ()
71024 {
71025   int result = 0;
71026   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
71027     {
71028       if (wcwidth (0x0301) > 0)
71029         result |= 1;
71030       if (wcwidth (0x05B0) > 0)
71031         result |= 2;
71032       if (wcwidth (0x200B) > 0)
71033         result |= 4;
71034     }
71035   return result;
71036 }
71037 _ACEOF
71038 if ac_fn_c_try_run "$LINENO"; then :
71039   gl_cv_func_wcwidth_works=yes
71040 else
71041   gl_cv_func_wcwidth_works=no
71042 fi
71043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
71044   conftest.$ac_objext conftest.beam conftest.$ac_ext
71045 fi
71046
71047
71048 fi
71049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
71050 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
71051     case "$gl_cv_func_wcwidth_works" in
71052       *yes) ;;
71053       *no) REPLACE_WCWIDTH=1 ;;
71054     esac
71055   else
71056     HAVE_WCWIDTH=0
71057   fi
71058
71059   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
71060
71061
71062
71063
71064
71065
71066
71067
71068   gtpo_LIBOBJS="$gtpo_LIBOBJS wcwidth.$ac_objext"
71069
71070   fi
71071
71072
71073
71074
71075
71076           GNULIB_WCWIDTH=1
71077
71078
71079
71080
71081
71082 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
71083
71084
71085
71086
71087
71088   for ac_header in stdint.h
71089 do :
71090   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
71091 if test "x$ac_cv_header_stdint_h" = xyes; then :
71092   cat >>confdefs.h <<_ACEOF
71093 #define HAVE_STDINT_H 1
71094 _ACEOF
71095
71096 fi
71097
71098 done
71099
71100
71101   :
71102
71103
71104   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
71105
71106   # End of code from modules
71107
71108
71109
71110
71111
71112
71113
71114
71115
71116   gltests_libdeps=
71117   gltests_ltlibdeps=
71118
71119
71120
71121
71122
71123
71124
71125
71126
71127   gl_source_base='tests'
71128   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
71129
71130   gl_module_indicator_condition=$gtpotests_WITNESS
71131
71132
71133
71134
71135
71136
71137
71138
71139
71140
71141
71142 for ac_header in pwd.h
71143 do :
71144   ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
71145 if test "x$ac_cv_header_pwd_h" = xyes; then :
71146   cat >>confdefs.h <<_ACEOF
71147 #define HAVE_PWD_H 1
71148 _ACEOF
71149
71150 fi
71151
71152 done
71153
71154
71155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
71156 $as_echo_n "checking for inline... " >&6; }
71157 if ${ac_cv_c_inline+:} false; then :
71158   $as_echo_n "(cached) " >&6
71159 else
71160   ac_cv_c_inline=no
71161 for ac_kw in inline __inline__ __inline; do
71162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71163 /* end confdefs.h.  */
71164 #ifndef __cplusplus
71165 typedef int foo_t;
71166 static $ac_kw foo_t static_foo () {return 0; }
71167 $ac_kw foo_t foo () {return 0; }
71168 #endif
71169
71170 _ACEOF
71171 if ac_fn_c_try_compile "$LINENO"; then :
71172   ac_cv_c_inline=$ac_kw
71173 fi
71174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71175   test "$ac_cv_c_inline" != no && break
71176 done
71177
71178 fi
71179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
71180 $as_echo "$ac_cv_c_inline" >&6; }
71181
71182 case $ac_cv_c_inline in
71183   inline | yes) ;;
71184   *)
71185     case $ac_cv_c_inline in
71186       no) ac_val=;;
71187       *) ac_val=$ac_cv_c_inline;;
71188     esac
71189     cat >>confdefs.h <<_ACEOF
71190 #ifndef __cplusplus
71191 #define inline $ac_val
71192 #endif
71193 _ACEOF
71194     ;;
71195 esac
71196
71197
71198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
71199 $as_echo_n "checking for unsigned long long int... " >&6; }
71200 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
71201   $as_echo_n "(cached) " >&6
71202 else
71203   ac_cv_type_unsigned_long_long_int=yes
71204      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
71205        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71206 /* end confdefs.h.  */
71207
71208   /* For now, do not test the preprocessor; as of 2007 there are too many
71209          implementations with broken preprocessors.  Perhaps this can
71210          be revisited in 2012.  In the meantime, code should not expect
71211          #if to work with literals wider than 32 bits.  */
71212       /* Test literals.  */
71213       long long int ll = 9223372036854775807ll;
71214       long long int nll = -9223372036854775807LL;
71215       unsigned long long int ull = 18446744073709551615ULL;
71216       /* Test constant expressions.   */
71217       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
71218                      ? 1 : -1)];
71219       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
71220                      ? 1 : -1)];
71221       int i = 63;
71222 int
71223 main ()
71224 {
71225 /* Test availability of runtime routines for shift and division.  */
71226       long long int llmax = 9223372036854775807ll;
71227       unsigned long long int ullmax = 18446744073709551615ull;
71228       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
71229               | (llmax / ll) | (llmax % ll)
71230               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
71231               | (ullmax / ull) | (ullmax % ull));
71232   ;
71233   return 0;
71234 }
71235
71236 _ACEOF
71237 if ac_fn_c_try_link "$LINENO"; then :
71238
71239 else
71240   ac_cv_type_unsigned_long_long_int=no
71241 fi
71242 rm -f core conftest.err conftest.$ac_objext \
71243     conftest$ac_exeext conftest.$ac_ext
71244      fi
71245 fi
71246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
71247 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
71248   if test $ac_cv_type_unsigned_long_long_int = yes; then
71249
71250 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
71251
71252   fi
71253
71254 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
71255 if test "x$ac_cv_type_size_t" = xyes; then :
71256
71257 else
71258
71259 cat >>confdefs.h <<_ACEOF
71260 #define size_t unsigned int
71261 _ACEOF
71262
71263 fi
71264
71265 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
71266 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
71267
71268 cat >>confdefs.h <<_ACEOF
71269 #define HAVE_PTRDIFF_T 1
71270 _ACEOF
71271
71272
71273 fi
71274
71275
71276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
71277 $as_echo_n "checking for ssize_t... " >&6; }
71278 if ${gt_cv_ssize_t+:} false; then :
71279   $as_echo_n "(cached) " >&6
71280 else
71281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71282 /* end confdefs.h.  */
71283 #include <sys/types.h>
71284 int
71285 main ()
71286 {
71287 int x = sizeof (ssize_t *) + sizeof (ssize_t);
71288             return !x;
71289   ;
71290   return 0;
71291 }
71292 _ACEOF
71293 if ac_fn_c_try_compile "$LINENO"; then :
71294   gt_cv_ssize_t=yes
71295 else
71296   gt_cv_ssize_t=no
71297 fi
71298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71299 fi
71300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
71301 $as_echo "$gt_cv_ssize_t" >&6; }
71302   if test $gt_cv_ssize_t = no; then
71303
71304 $as_echo "#define ssize_t int" >>confdefs.h
71305
71306   fi
71307
71308 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
71309 if test "x$ac_cv_type_pid_t" = xyes; then :
71310
71311 else
71312
71313 cat >>confdefs.h <<_ACEOF
71314 #define pid_t int
71315 _ACEOF
71316
71317 fi
71318
71319
71320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
71321 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
71322 if ${ac_cv_gnu_library_2_1+:} false; then :
71323   $as_echo_n "(cached) " >&6
71324 else
71325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71326 /* end confdefs.h.  */
71327
71328 #include <features.h>
71329 #ifdef __GNU_LIBRARY__
71330  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
71331   Lucky GNU user
71332  #endif
71333 #endif
71334 #ifdef __UCLIBC__
71335  Lucky user
71336 #endif
71337
71338 _ACEOF
71339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71340   $EGREP "Lucky" >/dev/null 2>&1; then :
71341   ac_cv_gnu_library_2_1=yes
71342 else
71343   ac_cv_gnu_library_2_1=no
71344 fi
71345 rm -f conftest*
71346
71347
71348
71349 fi
71350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
71351 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
71352
71353     GLIBC21="$ac_cv_gnu_library_2_1"
71354
71355
71356 if test $GLIBC21 = yes; then
71357   ac_fn_c_check_member "$LINENO" "struct __locale_struct" "__names" "ac_cv_member_struct___locale_struct___names" "#include <xlocale.h>
71358 "
71359 if test "x$ac_cv_member_struct___locale_struct___names" = xyes; then :
71360
71361 cat >>confdefs.h <<_ACEOF
71362 #define HAVE_STRUCT___LOCALE_STRUCT___NAMES 1
71363 _ACEOF
71364
71365
71366 fi
71367
71368 fi
71369
71370 for ac_func in select
71371 do :
71372   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
71373 if test "x$ac_cv_func_select" = xyes; then :
71374   cat >>confdefs.h <<_ACEOF
71375 #define HAVE_SELECT 1
71376 _ACEOF
71377
71378 fi
71379 done
71380
71381 for ac_header in vfork.h
71382 do :
71383   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
71384 if test "x$ac_cv_header_vfork_h" = xyes; then :
71385   cat >>confdefs.h <<_ACEOF
71386 #define HAVE_VFORK_H 1
71387 _ACEOF
71388
71389 fi
71390
71391 done
71392
71393 for ac_func in fork vfork
71394 do :
71395   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
71397 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
71398   cat >>confdefs.h <<_ACEOF
71399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71400 _ACEOF
71401
71402 fi
71403 done
71404
71405 if test "x$ac_cv_func_fork" = xyes; then
71406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
71407 $as_echo_n "checking for working fork... " >&6; }
71408 if ${ac_cv_func_fork_works+:} false; then :
71409   $as_echo_n "(cached) " >&6
71410 else
71411   if test "$cross_compiling" = yes; then :
71412   ac_cv_func_fork_works=cross
71413 else
71414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71415 /* end confdefs.h.  */
71416 $ac_includes_default
71417 int
71418 main ()
71419 {
71420
71421           /* By Ruediger Kuhlmann. */
71422           return fork () < 0;
71423
71424   ;
71425   return 0;
71426 }
71427 _ACEOF
71428 if ac_fn_c_try_run "$LINENO"; then :
71429   ac_cv_func_fork_works=yes
71430 else
71431   ac_cv_func_fork_works=no
71432 fi
71433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
71434   conftest.$ac_objext conftest.beam conftest.$ac_ext
71435 fi
71436
71437 fi
71438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
71439 $as_echo "$ac_cv_func_fork_works" >&6; }
71440
71441 else
71442   ac_cv_func_fork_works=$ac_cv_func_fork
71443 fi
71444 if test "x$ac_cv_func_fork_works" = xcross; then
71445   case $host in
71446     *-*-amigaos* | *-*-msdosdjgpp*)
71447       # Override, as these systems have only a dummy fork() stub
71448       ac_cv_func_fork_works=no
71449       ;;
71450     *)
71451       ac_cv_func_fork_works=yes
71452       ;;
71453   esac
71454   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
71455 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
71456 fi
71457 ac_cv_func_vfork_works=$ac_cv_func_vfork
71458 if test "x$ac_cv_func_vfork" = xyes; then
71459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
71460 $as_echo_n "checking for working vfork... " >&6; }
71461 if ${ac_cv_func_vfork_works+:} false; then :
71462   $as_echo_n "(cached) " >&6
71463 else
71464   if test "$cross_compiling" = yes; then :
71465   ac_cv_func_vfork_works=cross
71466 else
71467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71468 /* end confdefs.h.  */
71469 /* Thanks to Paul Eggert for this test.  */
71470 $ac_includes_default
71471 #include <sys/wait.h>
71472 #ifdef HAVE_VFORK_H
71473 # include <vfork.h>
71474 #endif
71475 /* On some sparc systems, changes by the child to local and incoming
71476    argument registers are propagated back to the parent.  The compiler
71477    is told about this with #include <vfork.h>, but some compilers
71478    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
71479    static variable whose address is put into a register that is
71480    clobbered by the vfork.  */
71481 static void
71482 #ifdef __cplusplus
71483 sparc_address_test (int arg)
71484 # else
71485 sparc_address_test (arg) int arg;
71486 #endif
71487 {
71488   static pid_t child;
71489   if (!child) {
71490     child = vfork ();
71491     if (child < 0) {
71492       perror ("vfork");
71493       _exit(2);
71494     }
71495     if (!child) {
71496       arg = getpid();
71497       write(-1, "", 0);
71498       _exit (arg);
71499     }
71500   }
71501 }
71502
71503 int
71504 main ()
71505 {
71506   pid_t parent = getpid ();
71507   pid_t child;
71508
71509   sparc_address_test (0);
71510
71511   child = vfork ();
71512
71513   if (child == 0) {
71514     /* Here is another test for sparc vfork register problems.  This
71515        test uses lots of local variables, at least as many local
71516        variables as main has allocated so far including compiler
71517        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
71518        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
71519        reuse the register of parent for one of the local variables,
71520        since it will think that parent can't possibly be used any more
71521        in this routine.  Assigning to the local variable will thus
71522        munge parent in the parent process.  */
71523     pid_t
71524       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
71525       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
71526     /* Convince the compiler that p..p7 are live; otherwise, it might
71527        use the same hardware register for all 8 local variables.  */
71528     if (p != p1 || p != p2 || p != p3 || p != p4
71529         || p != p5 || p != p6 || p != p7)
71530       _exit(1);
71531
71532     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
71533        from child file descriptors.  If the child closes a descriptor
71534        before it execs or exits, this munges the parent's descriptor
71535        as well.  Test for this by closing stdout in the child.  */
71536     _exit(close(fileno(stdout)) != 0);
71537   } else {
71538     int status;
71539     struct stat st;
71540
71541     while (wait(&status) != child)
71542       ;
71543     return (
71544          /* Was there some problem with vforking?  */
71545          child < 0
71546
71547          /* Did the child fail?  (This shouldn't happen.)  */
71548          || status
71549
71550          /* Did the vfork/compiler bug occur?  */
71551          || parent != getpid()
71552
71553          /* Did the file descriptor bug occur?  */
71554          || fstat(fileno(stdout), &st) != 0
71555          );
71556   }
71557 }
71558 _ACEOF
71559 if ac_fn_c_try_run "$LINENO"; then :
71560   ac_cv_func_vfork_works=yes
71561 else
71562   ac_cv_func_vfork_works=no
71563 fi
71564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
71565   conftest.$ac_objext conftest.beam conftest.$ac_ext
71566 fi
71567
71568 fi
71569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
71570 $as_echo "$ac_cv_func_vfork_works" >&6; }
71571
71572 fi;
71573 if test "x$ac_cv_func_fork_works" = xcross; then
71574   ac_cv_func_vfork_works=$ac_cv_func_vfork
71575   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
71576 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
71577 fi
71578
71579 if test "x$ac_cv_func_vfork_works" = xyes; then
71580
71581 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
71582
71583 else
71584
71585 $as_echo "#define vfork fork" >>confdefs.h
71586
71587 fi
71588 if test "x$ac_cv_func_fork_works" = xyes; then
71589
71590 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
71591
71592 fi
71593
71594
71595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signal handlers with siginfo_t" >&5
71596 $as_echo_n "checking for signal handlers with siginfo_t... " >&6; }
71597 if ${gt_cv_siginfo_t+:} false; then :
71598   $as_echo_n "(cached) " >&6
71599 else
71600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71601 /* end confdefs.h.  */
71602
71603 #include <signal.h>
71604 int
71605 main ()
71606 {
71607
71608 struct sigaction action;
71609 siginfo_t info;
71610 action.sa_flags = SA_SIGINFO;
71611 action.sa_sigaction = (void *) 0;
71612
71613   ;
71614   return 0;
71615 }
71616 _ACEOF
71617 if ac_fn_c_try_compile "$LINENO"; then :
71618   gt_cv_siginfo_t=yes
71619 else
71620   gt_cv_siginfo_t=no
71621 fi
71622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71623 fi
71624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_siginfo_t" >&5
71625 $as_echo "$gt_cv_siginfo_t" >&6; }
71626   if test $gt_cv_siginfo_t = yes; then
71627
71628 $as_echo "#define HAVE_SIGINFO 1" >>confdefs.h
71629
71630   fi
71631
71632
71633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale declaration" >&5
71634 $as_echo_n "checking for setlocale declaration... " >&6; }
71635 if ${gt_cv_proto_setlocale+:} false; then :
71636   $as_echo_n "(cached) " >&6
71637 else
71638
71639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71640 /* end confdefs.h.  */
71641
71642 #include <stdlib.h>
71643 #include <locale.h>
71644 extern
71645 #ifdef __cplusplus
71646 "C"
71647 #endif
71648 #if defined(__STDC__) || defined(__cplusplus)
71649 char *setlocale (int category, char *locale);
71650 #else
71651 char *setlocale();
71652 #endif
71653
71654 int
71655 main ()
71656 {
71657
71658   ;
71659   return 0;
71660 }
71661 _ACEOF
71662 if ac_fn_c_try_compile "$LINENO"; then :
71663   gt_cv_proto_setlocale_arg1=""
71664 else
71665   gt_cv_proto_setlocale_arg1="const"
71666 fi
71667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71668 gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"
71669 fi
71670
71671 gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
71672 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
71673          $gt_cv_proto_setlocale" >&5
71674 $as_echo "
71675          $gt_cv_proto_setlocale" >&6; }
71676
71677 cat >>confdefs.h <<_ACEOF
71678 #define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1
71679 _ACEOF
71680
71681
71682
71683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
71684 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
71685 if ${ac_cv_c_bigendian+:} false; then :
71686   $as_echo_n "(cached) " >&6
71687 else
71688   ac_cv_c_bigendian=unknown
71689     # See if we're dealing with a universal compiler.
71690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71691 /* end confdefs.h.  */
71692 #ifndef __APPLE_CC__
71693                not a universal capable compiler
71694              #endif
71695              typedef int dummy;
71696
71697 _ACEOF
71698 if ac_fn_c_try_compile "$LINENO"; then :
71699
71700         # Check for potential -arch flags.  It is not universal unless
71701         # there are at least two -arch flags with different values.
71702         ac_arch=
71703         ac_prev=
71704         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
71705          if test -n "$ac_prev"; then
71706            case $ac_word in
71707              i?86 | x86_64 | ppc | ppc64)
71708                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
71709                  ac_arch=$ac_word
71710                else
71711                  ac_cv_c_bigendian=universal
71712                  break
71713                fi
71714                ;;
71715            esac
71716            ac_prev=
71717          elif test "x$ac_word" = "x-arch"; then
71718            ac_prev=arch
71719          fi
71720        done
71721 fi
71722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71723     if test $ac_cv_c_bigendian = unknown; then
71724       # See if sys/param.h defines the BYTE_ORDER macro.
71725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71726 /* end confdefs.h.  */
71727 #include <sys/types.h>
71728              #include <sys/param.h>
71729
71730 int
71731 main ()
71732 {
71733 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
71734                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
71735                      && LITTLE_ENDIAN)
71736               bogus endian macros
71737              #endif
71738
71739   ;
71740   return 0;
71741 }
71742 _ACEOF
71743 if ac_fn_c_try_compile "$LINENO"; then :
71744   # It does; now see whether it defined to BIG_ENDIAN or not.
71745          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71746 /* end confdefs.h.  */
71747 #include <sys/types.h>
71748                 #include <sys/param.h>
71749
71750 int
71751 main ()
71752 {
71753 #if BYTE_ORDER != BIG_ENDIAN
71754                  not big endian
71755                 #endif
71756
71757   ;
71758   return 0;
71759 }
71760 _ACEOF
71761 if ac_fn_c_try_compile "$LINENO"; then :
71762   ac_cv_c_bigendian=yes
71763 else
71764   ac_cv_c_bigendian=no
71765 fi
71766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71767 fi
71768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71769     fi
71770     if test $ac_cv_c_bigendian = unknown; then
71771       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
71772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71773 /* end confdefs.h.  */
71774 #include <limits.h>
71775
71776 int
71777 main ()
71778 {
71779 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
71780               bogus endian macros
71781              #endif
71782
71783   ;
71784   return 0;
71785 }
71786 _ACEOF
71787 if ac_fn_c_try_compile "$LINENO"; then :
71788   # It does; now see whether it defined to _BIG_ENDIAN or not.
71789          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71790 /* end confdefs.h.  */
71791 #include <limits.h>
71792
71793 int
71794 main ()
71795 {
71796 #ifndef _BIG_ENDIAN
71797                  not big endian
71798                 #endif
71799
71800   ;
71801   return 0;
71802 }
71803 _ACEOF
71804 if ac_fn_c_try_compile "$LINENO"; then :
71805   ac_cv_c_bigendian=yes
71806 else
71807   ac_cv_c_bigendian=no
71808 fi
71809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71810 fi
71811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71812     fi
71813     if test $ac_cv_c_bigendian = unknown; then
71814       # Compile a test program.
71815       if test "$cross_compiling" = yes; then :
71816   # Try to guess by grepping values from an object file.
71817          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71818 /* end confdefs.h.  */
71819 short int ascii_mm[] =
71820                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
71821                 short int ascii_ii[] =
71822                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
71823                 int use_ascii (int i) {
71824                   return ascii_mm[i] + ascii_ii[i];
71825                 }
71826                 short int ebcdic_ii[] =
71827                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
71828                 short int ebcdic_mm[] =
71829                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
71830                 int use_ebcdic (int i) {
71831                   return ebcdic_mm[i] + ebcdic_ii[i];
71832                 }
71833                 extern int foo;
71834
71835 int
71836 main ()
71837 {
71838 return use_ascii (foo) == use_ebcdic (foo);
71839   ;
71840   return 0;
71841 }
71842 _ACEOF
71843 if ac_fn_c_try_compile "$LINENO"; then :
71844   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
71845               ac_cv_c_bigendian=yes
71846             fi
71847             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
71848               if test "$ac_cv_c_bigendian" = unknown; then
71849                 ac_cv_c_bigendian=no
71850               else
71851                 # finding both strings is unlikely to happen, but who knows?
71852                 ac_cv_c_bigendian=unknown
71853               fi
71854             fi
71855 fi
71856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71857 else
71858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71859 /* end confdefs.h.  */
71860 $ac_includes_default
71861 int
71862 main ()
71863 {
71864
71865              /* Are we little or big endian?  From Harbison&Steele.  */
71866              union
71867              {
71868                long int l;
71869                char c[sizeof (long int)];
71870              } u;
71871              u.l = 1;
71872              return u.c[sizeof (long int) - 1] == 1;
71873
71874   ;
71875   return 0;
71876 }
71877 _ACEOF
71878 if ac_fn_c_try_run "$LINENO"; then :
71879   ac_cv_c_bigendian=no
71880 else
71881   ac_cv_c_bigendian=yes
71882 fi
71883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
71884   conftest.$ac_objext conftest.beam conftest.$ac_ext
71885 fi
71886
71887     fi
71888 fi
71889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
71890 $as_echo "$ac_cv_c_bigendian" >&6; }
71891  case $ac_cv_c_bigendian in #(
71892    yes)
71893      endianness=1;; #(
71894    no)
71895      endianness=0 ;; #(
71896    universal)
71897      endianness=universal
71898      ;; #(
71899    *)
71900      echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2
71901    echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2
71902    exit 1 ;;
71903  esac
71904
71905 if test $endianness != universal; then
71906
71907 cat >>confdefs.h <<_ACEOF
71908 #define ENDIANNESS $endianness
71909 _ACEOF
71910
71911 fi
71912
71913
71914
71915   for ac_header in arpa/inet.h
71916 do :
71917   ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
71918 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
71919   cat >>confdefs.h <<_ACEOF
71920 #define HAVE_ARPA_INET_H 1
71921 _ACEOF
71922
71923 fi
71924
71925 done
71926
71927   for ac_func in gethostname gethostbyname inet_ntop
71928 do :
71929   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
71931 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
71932   cat >>confdefs.h <<_ACEOF
71933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71934 _ACEOF
71935
71936 fi
71937 done
71938
71939
71940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
71941 $as_echo_n "checking for IPv6 sockets... " >&6; }
71942   if ${gt_cv_socket_ipv6+:} false; then :
71943   $as_echo_n "(cached) " >&6
71944 else
71945
71946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71947 /* end confdefs.h.  */
71948
71949 #include <sys/types.h>
71950 #include <sys/socket.h>
71951 #include <netinet/in.h>
71952 int
71953 main ()
71954 {
71955 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
71956   ;
71957   return 0;
71958 }
71959 _ACEOF
71960 if ac_fn_c_try_compile "$LINENO"; then :
71961   gt_cv_socket_ipv6=yes
71962 else
71963   gt_cv_socket_ipv6=no
71964 fi
71965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71966
71967 fi
71968
71969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_socket_ipv6" >&5
71970 $as_echo "$gt_cv_socket_ipv6" >&6; }
71971   if test $gt_cv_socket_ipv6 = yes; then
71972
71973 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
71974
71975   fi
71976
71977
71978 if test "$enable_shared" = yes; then
71979   case "$host_os" in
71980     mingw* | cygwin*) is_woe32dll=yes ;;
71981     *) is_woe32dll=no ;;
71982   esac
71983 else
71984   is_woe32dll=no
71985 fi
71986  if test $is_woe32dll = yes; then
71987   WOE32DLL_TRUE=
71988   WOE32DLL_FALSE='#'
71989 else
71990   WOE32DLL_TRUE='#'
71991   WOE32DLL_FALSE=
71992 fi
71993
71994 if test $is_woe32dll = yes; then
71995
71996 $as_echo "#define WOE32DLL 1" >>confdefs.h
71997
71998 fi
71999
72000 GETTEXTLIB_EXPORTS_FLAGS=
72001 if test -n "$GETOPT_H"; then
72002   GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT $GETTEXTLIB_EXPORTS_FLAGS"
72003 fi
72004 if test "$ac_cv_lib_error_at_line" = no; then
72005   GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_ERROR $GETTEXTLIB_EXPORTS_FLAGS"
72006 fi
72007
72008 if test "$USER_LABEL_PREFIX" = _; then
72009   GETTEXTLIB_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $GETTEXTLIB_EXPORTS_FLAGS"
72010 fi
72011
72012
72013 if test "$ac_cv_lib_error_at_line" = no; then
72014
72015 $as_echo "#define GNULIB_REPLACE_ERROR 1" >>confdefs.h
72016
72017 fi
72018
72019
72020
72021
72022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
72023 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
72024 if ${lt_cv_path_NM+:} false; then :
72025   $as_echo_n "(cached) " >&6
72026 else
72027   if test -n "$NM"; then
72028   # Let the user override the test.
72029   lt_cv_path_NM=$NM
72030 else
72031   lt_nm_to_check=${ac_tool_prefix}nm
72032   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
72033     lt_nm_to_check="$lt_nm_to_check nm"
72034   fi
72035   for lt_tmp_nm in $lt_nm_to_check; do
72036     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
72037     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
72038       IFS=$lt_save_ifs
72039       test -z "$ac_dir" && ac_dir=.
72040       tmp_nm=$ac_dir/$lt_tmp_nm
72041       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
72042         # Check to see if the nm accepts a BSD-compat flag.
72043         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
72044         #   nm: unknown option "B" ignored
72045         # Tru64's nm complains that /dev/null is an invalid object file
72046         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
72047         case $build_os in
72048         mingw*) lt_bad_file=conftest.nm/nofile ;;
72049         *) lt_bad_file=/dev/null ;;
72050         esac
72051         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
72052         *$lt_bad_file* | *'Invalid file or object type'*)
72053           lt_cv_path_NM="$tmp_nm -B"
72054           break 2
72055           ;;
72056         *)
72057           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
72058           */dev/null*)
72059             lt_cv_path_NM="$tmp_nm -p"
72060             break 2
72061             ;;
72062           *)
72063             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
72064             continue # so that we can try to find one that supports BSD flags
72065             ;;
72066           esac
72067           ;;
72068         esac
72069       fi
72070     done
72071     IFS=$lt_save_ifs
72072   done
72073   : ${lt_cv_path_NM=no}
72074 fi
72075 fi
72076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
72077 $as_echo "$lt_cv_path_NM" >&6; }
72078 if test no != "$lt_cv_path_NM"; then
72079   NM=$lt_cv_path_NM
72080 else
72081   # Didn't find any BSD compatible name lister, look for dumpbin.
72082   if test -n "$DUMPBIN"; then :
72083     # Let the user override the test.
72084   else
72085     if test -n "$ac_tool_prefix"; then
72086   for ac_prog in dumpbin "link -dump"
72087   do
72088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
72089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
72090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72091 $as_echo_n "checking for $ac_word... " >&6; }
72092 if ${ac_cv_prog_DUMPBIN+:} false; then :
72093   $as_echo_n "(cached) " >&6
72094 else
72095   if test -n "$DUMPBIN"; then
72096   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
72097 else
72098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72099 for as_dir in $PATH
72100 do
72101   IFS=$as_save_IFS
72102   test -z "$as_dir" && as_dir=.
72103     for ac_exec_ext in '' $ac_executable_extensions; do
72104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72105     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
72106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72107     break 2
72108   fi
72109 done
72110   done
72111 IFS=$as_save_IFS
72112
72113 fi
72114 fi
72115 DUMPBIN=$ac_cv_prog_DUMPBIN
72116 if test -n "$DUMPBIN"; then
72117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
72118 $as_echo "$DUMPBIN" >&6; }
72119 else
72120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72121 $as_echo "no" >&6; }
72122 fi
72123
72124
72125     test -n "$DUMPBIN" && break
72126   done
72127 fi
72128 if test -z "$DUMPBIN"; then
72129   ac_ct_DUMPBIN=$DUMPBIN
72130   for ac_prog in dumpbin "link -dump"
72131 do
72132   # Extract the first word of "$ac_prog", so it can be a program name with args.
72133 set dummy $ac_prog; ac_word=$2
72134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72135 $as_echo_n "checking for $ac_word... " >&6; }
72136 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
72137   $as_echo_n "(cached) " >&6
72138 else
72139   if test -n "$ac_ct_DUMPBIN"; then
72140   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
72141 else
72142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72143 for as_dir in $PATH
72144 do
72145   IFS=$as_save_IFS
72146   test -z "$as_dir" && as_dir=.
72147     for ac_exec_ext in '' $ac_executable_extensions; do
72148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72149     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
72150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72151     break 2
72152   fi
72153 done
72154   done
72155 IFS=$as_save_IFS
72156
72157 fi
72158 fi
72159 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
72160 if test -n "$ac_ct_DUMPBIN"; then
72161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
72162 $as_echo "$ac_ct_DUMPBIN" >&6; }
72163 else
72164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72165 $as_echo "no" >&6; }
72166 fi
72167
72168
72169   test -n "$ac_ct_DUMPBIN" && break
72170 done
72171
72172   if test "x$ac_ct_DUMPBIN" = x; then
72173     DUMPBIN=":"
72174   else
72175     case $cross_compiling:$ac_tool_warned in
72176 yes:)
72177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
72178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
72179 ac_tool_warned=yes ;;
72180 esac
72181     DUMPBIN=$ac_ct_DUMPBIN
72182   fi
72183 fi
72184
72185     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
72186     *COFF*)
72187       DUMPBIN="$DUMPBIN -symbols -headers"
72188       ;;
72189     *)
72190       DUMPBIN=:
72191       ;;
72192     esac
72193   fi
72194
72195   if test : != "$DUMPBIN"; then
72196     NM=$DUMPBIN
72197   fi
72198 fi
72199 test -z "$NM" && NM=nm
72200
72201
72202
72203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
72204 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
72205 if ${lt_cv_nm_interface+:} false; then :
72206   $as_echo_n "(cached) " >&6
72207 else
72208   lt_cv_nm_interface="BSD nm"
72209   echo "int some_variable = 0;" > conftest.$ac_ext
72210   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
72211   (eval "$ac_compile" 2>conftest.err)
72212   cat conftest.err >&5
72213   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
72214   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
72215   cat conftest.err >&5
72216   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
72217   cat conftest.out >&5
72218   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
72219     lt_cv_nm_interface="MS dumpbin"
72220   fi
72221   rm -f conftest*
72222 fi
72223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
72224 $as_echo "$lt_cv_nm_interface" >&6; }
72225
72226
72227
72228
72229      GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
72230
72231   if test -n "$GLOBAL_SYMBOL_PIPE"; then
72232     HAVE_GLOBAL_SYMBOL_PIPE=1
72233   else
72234     HAVE_GLOBAL_SYMBOL_PIPE=
72235   fi
72236
72237
72238
72239
72240 # Check whether --with-emacs was given.
72241 if test "${with_emacs+set}" = set; then :
72242   withval=$with_emacs; gt_use_emacs=$withval
72243 else
72244   gt_use_emacs=yes
72245 fi
72246
72247 if test "$EMACS" != no; then
72248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Emacs support is requested" >&5
72249 $as_echo_n "checking whether Emacs support is requested... " >&6; }
72250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_use_emacs" >&5
72251 $as_echo "$gt_use_emacs" >&6; }
72252   if test "$gt_use_emacs" = no; then
72253     EMACS=no
72254   fi
72255 fi
72256 if test "$EMACS" != no; then
72257    # If set to t, that means we are running in a shell under Emacs.
72258  # If you have an Emacs named "t", then use the full path.
72259  test x"$EMACS" = xt && EMACS=
72260  for ac_prog in emacs xemacs
72261 do
72262   # Extract the first word of "$ac_prog", so it can be a program name with args.
72263 set dummy $ac_prog; ac_word=$2
72264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72265 $as_echo_n "checking for $ac_word... " >&6; }
72266 if ${ac_cv_prog_EMACS+:} false; then :
72267   $as_echo_n "(cached) " >&6
72268 else
72269   if test -n "$EMACS"; then
72270   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
72271 else
72272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72273 for as_dir in $PATH
72274 do
72275   IFS=$as_save_IFS
72276   test -z "$as_dir" && as_dir=.
72277     for ac_exec_ext in '' $ac_executable_extensions; do
72278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72279     ac_cv_prog_EMACS="$ac_prog"
72280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72281     break 2
72282   fi
72283 done
72284   done
72285 IFS=$as_save_IFS
72286
72287 fi
72288 fi
72289 EMACS=$ac_cv_prog_EMACS
72290 if test -n "$EMACS"; then
72291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
72292 $as_echo "$EMACS" >&6; }
72293 else
72294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72295 $as_echo "no" >&6; }
72296 fi
72297
72298
72299   test -n "$EMACS" && break
72300 done
72301 test -n "$EMACS" || EMACS="no"
72302
72303
72304
72305
72306 # Check whether --with-lispdir was given.
72307 if test "${with_lispdir+set}" = set; then :
72308   withval=$with_lispdir;  lispdir="$withval"
72309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
72310 $as_echo_n "checking where .elc files should go... " >&6; }
72311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
72312 $as_echo "$lispdir" >&6; }
72313 else
72314
72315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
72316 $as_echo_n "checking where .elc files should go... " >&6; }
72317 if ${am_cv_lispdir+:} false; then :
72318   $as_echo_n "(cached) " >&6
72319 else
72320
72321    if test $EMACS != "no"; then
72322      if test x${lispdir+set} != xset; then
72323   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
72324   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
72325   #  which is non-obvious for non-emacs users.
72326   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
72327   #  emacsen earlier and avoid running this altogether.
72328   { { $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
72329   ($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
72330   ac_status=$?
72331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72332   test $ac_status = 0; }
72333         am_cv_lispdir=`sed -n \
72334        -e 's,/$,,' \
72335        -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
72336        -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
72337        conftest.out`
72338        rm conftest.out
72339      fi
72340    fi
72341    test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
72342
72343 fi
72344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
72345 $as_echo "$am_cv_lispdir" >&6; }
72346   lispdir="$am_cv_lispdir"
72347
72348 fi
72349
72350
72351
72352 fi
72353
72354 aclocaldir='${datadir}/aclocal'
72355
72356
72357
72358 # Check whether --with-git was given.
72359 if test "${with_git+set}" = set; then :
72360   withval=$with_git; gt_use_git=$withval
72361 else
72362   gt_use_git=maybe
72363 fi
72364
72365
72366 # Check whether --with-cvs was given.
72367 if test "${with_cvs+set}" = set; then :
72368   withval=$with_cvs; gt_use_cvs=$withval
72369 else
72370   gt_use_cvs=no
72371 fi
72372
72373
72374 # Check whether --with-bzip2 was given.
72375 if test "${with_bzip2+set}" = set; then :
72376   withval=$with_bzip2; gt_use_bzip2=$withval
72377 else
72378   gt_use_bzip2=maybe
72379 fi
72380
72381
72382 # Check whether --with-xz was given.
72383 if test "${with_xz+set}" = set; then :
72384   withval=$with_xz; gt_use_xz=$withval
72385 else
72386   gt_use_xz=maybe
72387 fi
72388
72389 # The CVS format is deprecated, because "cvs init" does not work in all
72390 # circumstances
72391 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-05/msg00003.html>)
72392 # and we are not allowed to distribute the cvs infrastructure files ourselves
72393 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-06/msg00011.html>).
72394 #
72395 # With the archive from version 0.18.1, we can observe the following
72396 # compression rates:
72397 #    Size           File
72398 #  16916480   archive.dir.tar
72399 #   3528757   archive.dir.tar.gz
72400 #   2621440   archive.cvs.tar
72401 #   2082492   archive.dir.tar.bz2
72402 #    696320   archive.git.tar
72403 #    599046   archive.git.tar.bz2
72404 #    592989   archive.git.tar.gz
72405 #    588124   archive.git.tar.xz
72406 #    457190   archive.cvs.tar.gz
72407 #    335808   archive.cvs.tar.bz2
72408 #    308880   archive.dir.tar.xz
72409 #    299124   archive.cvs.tar.xz
72410 # Among these:
72411 #   - We don't offer the uncompressed ones, because at least gzip can be
72412 #     assumed to be present everywhere.
72413 #   - Among archive.git.tar.*, all have approximately the same size, because
72414 #     git already compresses most of its repository data. Offer only .gz here.
72415 #   - Among archive.cvs.tar.*, offer only .gz, for simplicity, since --with-cvs
72416 #     is deprecated.
72417 # The remaining ones are:
72418 #    Size           File            ARCHIVE_FORMAT
72419 #   3528757   archive.dir.tar.gz      dirgz
72420 #   2082492   archive.dir.tar.bz2     dirbz2
72421 #    592989   archive.git.tar.gz      git
72422 #    457190   archive.cvs.tar.gz      cvs
72423 #    308880   archive.dir.tar.xz      dirxz
72424 if test "$gt_use_xz" != no && test "$gt_use_xz" != maybe; then
72425   # --with-xz is specified. Even if --with-git or --with-cvs or --with-bzip2 is
72426   # also specified, we use the dirxz format.
72427   ARCHIVE_FORMAT=dirxz
72428 else
72429   if test "$gt_use_git" != no && test "$gt_use_git" != maybe; then
72430     # --with-git is specified. Even if --with-cvs or --with-bzip2 is also
72431     # specified, we use the git format.
72432     ARCHIVE_FORMAT=git
72433   else
72434     if test "$gt_use_cvs" != no; then
72435       # --with-cvs is specified. Even if --with-bzip2 is also specified, we use
72436       # the cvs format.
72437       ARCHIVE_FORMAT=cvs
72438     else
72439       if test "$gt_use_bzip2" != no && test "$gt_use_bzip2" != maybe; then
72440         # --with-bzip2 is specified. We use the dirbz2 format.
72441         ARCHIVE_FORMAT=dirbz2
72442       else
72443         # Neither --with-git nor --with-cvs nor --with-bzip2 nor --with-xz is
72444         # specified. Determine which programs are present.
72445         if test "$gt_use_xz" != no \
72446            && (xz --version) >/dev/null 2>&1 \
72447            && xz --version | grep lzma >/dev/null; then
72448           # --without-xz is not specified, and the xz program exists.
72449           ARCHIVE_FORMAT=dirxz
72450         else
72451           # --without-xz is specified, or the xz program is missing.
72452           if test "$gt_use_git" != no \
72453              && (git --version) >/dev/null 2>&1 \
72454              && { case `git --version | sed -e 's/^[^0-9]*//'` in
72455                     0.* | 1.[0-5].*) false ;;
72456                     *) true ;;
72457                   esac
72458                 }; then
72459             # --without-git is not specified, and the git program exists
72460             # in version 1.6 or newer. Use git format.
72461             ARCHIVE_FORMAT=git
72462           else
72463             # --without-git is specified, or the git program is missing.
72464             if test "$gt_use_bzip2" != no \
72465                && (: | bzip2 --version) >/dev/null 2>&1 \
72466                && { sed_bzip2_version1='s/ \([0-9][0-9.]*\).*/ \1/'
72467                     sed_bzip2_version2='s/^.* //'
72468                     case `(: | bzip2 --version) 2>&1 \
72469                           | sed -e 1q \
72470                           | sed -e "$sed_bzip2_version1" -e "$sed_bzip2_version2"` in
72471                       0.*) false ;;
72472                       *) true ;;
72473                     esac
72474                   }; then
72475               # --without-bzip2 is not specified, and the bzip2 program exists
72476               # in version 1.0 or newer. Use dirbz2 format.
72477               ARCHIVE_FORMAT=dirbz2
72478             else
72479               # --without-bzip2 is specified, or the bzip2 program is missing.
72480               ARCHIVE_FORMAT=dirgz
72481             fi
72482           fi
72483         fi
72484       fi
72485     fi
72486   fi
72487 fi
72488
72489
72490 ARCHIVE_VERSION=0.19.7
72491
72492
72493 PACKAGE_SUFFIX="-$ARCHIVE_VERSION"
72494
72495
72496 cat >>confdefs.h <<_ACEOF
72497 #define PACKAGE_SUFFIX "$PACKAGE_SUFFIX"
72498 _ACEOF
72499
72500
72501 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
72502 # Extract the first word of "dvips", so it can be a program name with args.
72503 set dummy dvips; ac_word=$2
72504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72505 $as_echo_n "checking for $ac_word... " >&6; }
72506 if ${ac_cv_path_DVIPS+:} false; then :
72507   $as_echo_n "(cached) " >&6
72508 else
72509   case $DVIPS in
72510   [\\/]* | ?:[\\/]*)
72511   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
72512   ;;
72513   *)
72514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72515 for as_dir in $PATH
72516 do
72517   IFS=$as_save_IFS
72518   test -z "$as_dir" && as_dir=.
72519     for ac_exec_ext in '' $ac_executable_extensions; do
72520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72521     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
72522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72523     break 2
72524   fi
72525 done
72526   done
72527 IFS=$as_save_IFS
72528
72529   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
72530   ;;
72531 esac
72532 fi
72533 DVIPS=$ac_cv_path_DVIPS
72534 if test -n "$DVIPS"; then
72535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
72536 $as_echo "$DVIPS" >&6; }
72537 else
72538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72539 $as_echo "no" >&6; }
72540 fi
72541
72542
72543 # Extract the first word of "texi2pdf", so it can be a program name with args.
72544 set dummy texi2pdf; ac_word=$2
72545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72546 $as_echo_n "checking for $ac_word... " >&6; }
72547 if ${ac_cv_path_TEXI2PDF+:} false; then :
72548   $as_echo_n "(cached) " >&6
72549 else
72550   case $TEXI2PDF in
72551   [\\/]* | ?:[\\/]*)
72552   ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
72553   ;;
72554   *)
72555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72556 for as_dir in $PATH
72557 do
72558   IFS=$as_save_IFS
72559   test -z "$as_dir" && as_dir=.
72560     for ac_exec_ext in '' $ac_executable_extensions; do
72561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72562     ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
72563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72564     break 2
72565   fi
72566 done
72567   done
72568 IFS=$as_save_IFS
72569
72570   test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
72571   ;;
72572 esac
72573 fi
72574 TEXI2PDF=$ac_cv_path_TEXI2PDF
72575 if test -n "$TEXI2PDF"; then
72576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
72577 $as_echo "$TEXI2PDF" >&6; }
72578 else
72579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72580 $as_echo "no" >&6; }
72581 fi
72582
72583
72584 # Extract the first word of "perl", so it can be a program name with args.
72585 set dummy perl; ac_word=$2
72586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72587 $as_echo_n "checking for $ac_word... " >&6; }
72588 if ${ac_cv_path_PERL+:} false; then :
72589   $as_echo_n "(cached) " >&6
72590 else
72591   case $PERL in
72592   [\\/]* | ?:[\\/]*)
72593   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
72594   ;;
72595   *)
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_path_PERL="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
72612   ;;
72613 esac
72614 fi
72615 PERL=$ac_cv_path_PERL
72616 if test -n "$PERL"; then
72617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
72618 $as_echo "$PERL" >&6; }
72619 else
72620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72621 $as_echo "no" >&6; }
72622 fi
72623
72624
72625
72626 CROSS_COMPILING=$cross_compiling
72627
72628
72629
72630
72631
72632   if test "$CXX_CHOICE" = no; then
72633     CXX=no
72634   fi
72635   if test -z "$CXX"; then
72636     if test -n "$CCC"; then
72637       CXX="$CCC"
72638     else
72639       if test -n "$ac_tool_prefix"; then
72640   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
72641   do
72642     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
72643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
72644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72645 $as_echo_n "checking for $ac_word... " >&6; }
72646 if ${ac_cv_prog_CXX+:} false; then :
72647   $as_echo_n "(cached) " >&6
72648 else
72649   if test -n "$CXX"; then
72650   ac_cv_prog_CXX="$CXX" # Let the user override the test.
72651 else
72652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72653 for as_dir in $PATH
72654 do
72655   IFS=$as_save_IFS
72656   test -z "$as_dir" && as_dir=.
72657     for ac_exec_ext in '' $ac_executable_extensions; do
72658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72659     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
72660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72661     break 2
72662   fi
72663 done
72664   done
72665 IFS=$as_save_IFS
72666
72667 fi
72668 fi
72669 CXX=$ac_cv_prog_CXX
72670 if test -n "$CXX"; then
72671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
72672 $as_echo "$CXX" >&6; }
72673 else
72674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72675 $as_echo "no" >&6; }
72676 fi
72677
72678
72679     test -n "$CXX" && break
72680   done
72681 fi
72682 if test -z "$CXX"; then
72683   ac_ct_CXX=$CXX
72684   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
72685 do
72686   # Extract the first word of "$ac_prog", so it can be a program name with args.
72687 set dummy $ac_prog; ac_word=$2
72688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72689 $as_echo_n "checking for $ac_word... " >&6; }
72690 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
72691   $as_echo_n "(cached) " >&6
72692 else
72693   if test -n "$ac_ct_CXX"; then
72694   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
72695 else
72696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72697 for as_dir in $PATH
72698 do
72699   IFS=$as_save_IFS
72700   test -z "$as_dir" && as_dir=.
72701     for ac_exec_ext in '' $ac_executable_extensions; do
72702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72703     ac_cv_prog_ac_ct_CXX="$ac_prog"
72704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72705     break 2
72706   fi
72707 done
72708   done
72709 IFS=$as_save_IFS
72710
72711 fi
72712 fi
72713 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
72714 if test -n "$ac_ct_CXX"; then
72715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
72716 $as_echo "$ac_ct_CXX" >&6; }
72717 else
72718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72719 $as_echo "no" >&6; }
72720 fi
72721
72722
72723   test -n "$ac_ct_CXX" && break
72724 done
72725
72726   if test "x$ac_ct_CXX" = x; then
72727     CXX=":"
72728   else
72729     case $cross_compiling:$ac_tool_warned in
72730 yes:)
72731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
72732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
72733 ac_tool_warned=yes ;;
72734 esac
72735     CXX=$ac_ct_CXX
72736   fi
72737 fi
72738
72739     fi
72740   fi
72741   if test "$CXX" != no; then
72742             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
72743 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
72744     ac_ext=cpp
72745 ac_cpp='$CXXCPP $CPPFLAGS'
72746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72749
72750
72751
72752     echo 'int main () { return 0; }' > conftest.$ac_ext
72753     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
72754   (eval $ac_link) 2>&5
72755   ac_status=$?
72756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72757   test $ac_status = 0; } && test -s conftest$ac_exeext; then
72758       gl_cv_prog_ansicxx_works=yes
72759       if (./conftest; exit) 2>/dev/null; then
72760         gl_cv_prog_ansicxx_cross=no
72761       else
72762         gl_cv_prog_ansicxx_cross=yes
72763       fi
72764     else
72765       gl_cv_prog_ansicxx_works=no
72766     fi
72767     rm -fr conftest*
72768     ac_ext=c
72769 ac_cpp='$CPP $CPPFLAGS'
72770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
72773
72774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
72775 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
72776     if test $gl_cv_prog_ansicxx_works = no; then
72777       CXX=no
72778     else
72779                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
72780 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
72781       ac_ext=cpp
72782 ac_cpp='$CXXCPP $CPPFLAGS'
72783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72786
72787       cat <<EOF > conftest.$ac_ext
72788 #include <iostream>
72789 namespace test { using namespace std; }
72790 std::ostream* ptr;
72791 int main () { return 0; }
72792 EOF
72793       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
72794   (eval $ac_link) 2>&5
72795   ac_status=$?
72796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72797   test $ac_status = 0; } && test -s conftest$ac_exeext; then
72798         gl_cv_prog_ansicxx_namespaces=yes
72799       else
72800         gl_cv_prog_ansicxx_namespaces=no
72801       fi
72802       rm -fr conftest*
72803       ac_ext=c
72804 ac_cpp='$CPP $CPPFLAGS'
72805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
72808
72809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
72810 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
72811       if test $gl_cv_prog_ansicxx_namespaces = no; then
72812         CXX=no
72813       fi
72814     fi
72815   fi
72816
72817
72818
72819    if test "$CXX" != no; then
72820   ANSICXX_TRUE=
72821   ANSICXX_FALSE='#'
72822 else
72823   ANSICXX_TRUE='#'
72824   ANSICXX_FALSE=
72825 fi
72826
72827
72828   if test "$CXX" != no; then
72829
72830 depcc="$CXX"  am_compiler_list=
72831
72832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
72833 $as_echo_n "checking dependency style of $depcc... " >&6; }
72834 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
72835   $as_echo_n "(cached) " >&6
72836 else
72837   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
72838   # We make a subdir and do the tests there.  Otherwise we can end up
72839   # making bogus files that we don't know about and never remove.  For
72840   # instance it was reported that on HP-UX the gcc test will end up
72841   # making a dummy file named 'D' -- because '-MD' means "put the output
72842   # in D".
72843   rm -rf conftest.dir
72844   mkdir conftest.dir
72845   # Copy depcomp to subdir because otherwise we won't find it if we're
72846   # using a relative directory.
72847   cp "$am_depcomp" conftest.dir
72848   cd conftest.dir
72849   # We will build objects and dependencies in a subdirectory because
72850   # it helps to detect inapplicable dependency modes.  For instance
72851   # both Tru64's cc and ICC support -MD to output dependencies as a
72852   # side effect of compilation, but ICC will put the dependencies in
72853   # the current directory while Tru64 will put them in the object
72854   # directory.
72855   mkdir sub
72856
72857   am_cv_CXX_dependencies_compiler_type=none
72858   if test "$am_compiler_list" = ""; then
72859      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
72860   fi
72861   am__universal=false
72862   case " $depcc " in #(
72863      *\ -arch\ *\ -arch\ *) am__universal=true ;;
72864      esac
72865
72866   for depmode in $am_compiler_list; do
72867     # Setup a source with many dependencies, because some compilers
72868     # like to wrap large dependency lists on column 80 (with \), and
72869     # we should not choose a depcomp mode which is confused by this.
72870     #
72871     # We need to recreate these files for each test, as the compiler may
72872     # overwrite some of them when testing with obscure command lines.
72873     # This happens at least with the AIX C compiler.
72874     : > sub/conftest.c
72875     for i in 1 2 3 4 5 6; do
72876       echo '#include "conftst'$i'.h"' >> sub/conftest.c
72877       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
72878       # Solaris 10 /bin/sh.
72879       echo '/* dummy */' > sub/conftst$i.h
72880     done
72881     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
72882
72883     # We check with '-c' and '-o' for the sake of the "dashmstdout"
72884     # mode.  It turns out that the SunPro C++ compiler does not properly
72885     # handle '-M -o', and we need to detect this.  Also, some Intel
72886     # versions had trouble with output in subdirs.
72887     am__obj=sub/conftest.${OBJEXT-o}
72888     am__minus_obj="-o $am__obj"
72889     case $depmode in
72890     gcc)
72891       # This depmode causes a compiler race in universal mode.
72892       test "$am__universal" = false || continue
72893       ;;
72894     nosideeffect)
72895       # After this tag, mechanisms are not by side-effect, so they'll
72896       # only be used when explicitly requested.
72897       if test "x$enable_dependency_tracking" = xyes; then
72898         continue
72899       else
72900         break
72901       fi
72902       ;;
72903     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
72904       # This compiler won't grok '-c -o', but also, the minuso test has
72905       # not run yet.  These depmodes are late enough in the game, and
72906       # so weak that their functioning should not be impacted.
72907       am__obj=conftest.${OBJEXT-o}
72908       am__minus_obj=
72909       ;;
72910     none) break ;;
72911     esac
72912     if depmode=$depmode \
72913        source=sub/conftest.c object=$am__obj \
72914        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
72915        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
72916          >/dev/null 2>conftest.err &&
72917        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
72918        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
72919        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
72920        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
72921       # icc doesn't choke on unknown options, it will just issue warnings
72922       # or remarks (even with -Werror).  So we grep stderr for any message
72923       # that says an option was ignored or not supported.
72924       # When given -MP, icc 7.0 and 7.1 complain thusly:
72925       #   icc: Command line warning: ignoring option '-M'; no argument required
72926       # The diagnosis changed in icc 8.0:
72927       #   icc: Command line remark: option '-MP' not supported
72928       if (grep 'ignoring option' conftest.err ||
72929           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
72930         am_cv_CXX_dependencies_compiler_type=$depmode
72931         break
72932       fi
72933     fi
72934   done
72935
72936   cd ..
72937   rm -rf conftest.dir
72938 else
72939   am_cv_CXX_dependencies_compiler_type=none
72940 fi
72941
72942 fi
72943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
72944 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
72945 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
72946
72947  if
72948   test "x$enable_dependency_tracking" != xno \
72949   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
72950   am__fastdepCXX_TRUE=
72951   am__fastdepCXX_FALSE='#'
72952 else
72953   am__fastdepCXX_TRUE='#'
72954   am__fastdepCXX_FALSE=
72955 fi
72956
72957
72958   else
72959      if false; then
72960   am__fastdepCXX_TRUE=
72961   am__fastdepCXX_FALSE='#'
72962 else
72963   am__fastdepCXX_TRUE='#'
72964   am__fastdepCXX_FALSE=
72965 fi
72966
72967   fi
72968
72969
72970
72971
72972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
72973 $as_echo_n "checking for a traditional french locale... " >&6; }
72974 if ${gt_cv_locale_fr+:} false; then :
72975   $as_echo_n "(cached) " >&6
72976 else
72977
72978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72979 /* end confdefs.h.  */
72980
72981 #include <locale.h>
72982 #include <time.h>
72983 #if HAVE_LANGINFO_CODESET
72984 # include <langinfo.h>
72985 #endif
72986 #include <stdlib.h>
72987 #include <string.h>
72988 struct tm t;
72989 char buf[16];
72990 int main () {
72991   /* Check whether the given locale name is recognized by the system.  */
72992 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
72993   /* On native Windows, setlocale(category, "") looks at the system settings,
72994      not at the environment variables.  Also, when an encoding suffix such
72995      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
72996      category of the locale to "C".  */
72997   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
72998       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
72999     return 1;
73000 #else
73001   if (setlocale (LC_ALL, "") == NULL) return 1;
73002 #endif
73003   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
73004      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
73005      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
73006      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
73007      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
73008      some unit tests fail.
73009      On MirBSD 10, when an unsupported locale is specified, setlocale()
73010      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
73011 #if HAVE_LANGINFO_CODESET
73012   {
73013     const char *cs = nl_langinfo (CODESET);
73014     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
73015         || strcmp (cs, "UTF-8") == 0)
73016       return 1;
73017   }
73018 #endif
73019 #ifdef __CYGWIN__
73020   /* On Cygwin, avoid locale names without encoding suffix, because the
73021      locale_charset() function relies on the encoding suffix.  Note that
73022      LC_ALL is set on the command line.  */
73023   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
73024 #endif
73025   /* Check whether in the abbreviation of the second month, the second
73026      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
73027      one byte long. This excludes the UTF-8 encoding.  */
73028   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
73029   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
73030 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
73031   /* Check whether the decimal separator is a comma.
73032      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
73033      are nl_langinfo(RADIXCHAR) are both ".".  */
73034   if (localeconv () ->decimal_point[0] != ',') return 1;
73035 #endif
73036   return 0;
73037 }
73038
73039 _ACEOF
73040     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
73041   (eval $ac_link) 2>&5
73042   ac_status=$?
73043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73044   test $ac_status = 0; } && test -s conftest$ac_exeext; then
73045       case "$host_os" in
73046         # Handle native Windows specially, because there setlocale() interprets
73047         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
73048         # "fr" or "fra" as "French" or "French_France.1252",
73049         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
73050         # "ja" as "Japanese" or "Japanese_Japan.932",
73051         # and similar.
73052         mingw*)
73053           # Test for the native Windows locale name.
73054           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73055             gt_cv_locale_fr=French_France.1252
73056           else
73057             # None found.
73058             gt_cv_locale_fr=none
73059           fi
73060           ;;
73061         *)
73062           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
73063           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
73064           # configure script would override the LC_ALL setting. Likewise for
73065           # LC_CTYPE, which is also set at the beginning of the configure script.
73066           # Test for the usual locale name.
73067           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73068             gt_cv_locale_fr=fr_FR
73069           else
73070             # Test for the locale name with explicit encoding suffix.
73071             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73072               gt_cv_locale_fr=fr_FR.ISO-8859-1
73073             else
73074               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
73075               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73076                 gt_cv_locale_fr=fr_FR.ISO8859-1
73077               else
73078                 # Test for the HP-UX locale name.
73079                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73080                   gt_cv_locale_fr=fr_FR.iso88591
73081                 else
73082                   # Test for the Solaris 7 locale name.
73083                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73084                     gt_cv_locale_fr=fr
73085                   else
73086                     # None found.
73087                     gt_cv_locale_fr=none
73088                   fi
73089                 fi
73090               fi
73091             fi
73092           fi
73093           ;;
73094       esac
73095     fi
73096     rm -fr conftest*
73097
73098 fi
73099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
73100 $as_echo "$gt_cv_locale_fr" >&6; }
73101   LOCALE_FR=$gt_cv_locale_fr
73102
73103
73104
73105
73106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
73107 $as_echo_n "checking for a french Unicode locale... " >&6; }
73108 if ${gt_cv_locale_fr_utf8+:} false; then :
73109   $as_echo_n "(cached) " >&6
73110 else
73111
73112     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73113 /* end confdefs.h.  */
73114
73115 #include <locale.h>
73116 #include <time.h>
73117 #if HAVE_LANGINFO_CODESET
73118 # include <langinfo.h>
73119 #endif
73120 #include <stdlib.h>
73121 #include <string.h>
73122 struct tm t;
73123 char buf[16];
73124 int main () {
73125   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
73126      imitates locale dependent behaviour by looking at the environment
73127      variables, and all locales use the UTF-8 encoding.  */
73128 #if !(defined __BEOS__ || defined __HAIKU__)
73129   /* Check whether the given locale name is recognized by the system.  */
73130 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
73131   /* On native Windows, setlocale(category, "") looks at the system settings,
73132      not at the environment variables.  Also, when an encoding suffix such
73133      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
73134      category of the locale to "C".  */
73135   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
73136       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
73137     return 1;
73138 # else
73139   if (setlocale (LC_ALL, "") == NULL) return 1;
73140 # endif
73141   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
73142      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
73143      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
73144      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
73145      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
73146      some unit tests fail.  */
73147 # if HAVE_LANGINFO_CODESET
73148   {
73149     const char *cs = nl_langinfo (CODESET);
73150     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
73151       return 1;
73152   }
73153 # endif
73154 # ifdef __CYGWIN__
73155   /* On Cygwin, avoid locale names without encoding suffix, because the
73156      locale_charset() function relies on the encoding suffix.  Note that
73157      LC_ALL is set on the command line.  */
73158   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
73159 # endif
73160   /* Check whether in the abbreviation of the second month, the second
73161      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
73162      two bytes long, with UTF-8 encoding.  */
73163   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
73164   if (strftime (buf, sizeof (buf), "%b", &t) < 4
73165       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
73166     return 1;
73167 #endif
73168 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
73169   /* Check whether the decimal separator is a comma.
73170      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
73171      are nl_langinfo(RADIXCHAR) are both ".".  */
73172   if (localeconv () ->decimal_point[0] != ',') return 1;
73173 #endif
73174   return 0;
73175 }
73176
73177 _ACEOF
73178     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
73179   (eval $ac_link) 2>&5
73180   ac_status=$?
73181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73182   test $ac_status = 0; } && test -s conftest$ac_exeext; then
73183       case "$host_os" in
73184         # Handle native Windows specially, because there setlocale() interprets
73185         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
73186         # "fr" or "fra" as "French" or "French_France.1252",
73187         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
73188         # "ja" as "Japanese" or "Japanese_Japan.932",
73189         # and similar.
73190         mingw*)
73191           # Test for the hypothetical native Windows locale name.
73192           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73193             gt_cv_locale_fr_utf8=French_France.65001
73194           else
73195             # None found.
73196             gt_cv_locale_fr_utf8=none
73197           fi
73198           ;;
73199         *)
73200           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
73201           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
73202           # configure script would override the LC_ALL setting. Likewise for
73203           # LC_CTYPE, which is also set at the beginning of the configure script.
73204           # Test for the usual locale name.
73205           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73206             gt_cv_locale_fr_utf8=fr_FR
73207           else
73208             # Test for the locale name with explicit encoding suffix.
73209             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73210               gt_cv_locale_fr_utf8=fr_FR.UTF-8
73211             else
73212               # Test for the Solaris 7 locale name.
73213               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73214                 gt_cv_locale_fr_utf8=fr.UTF-8
73215               else
73216                 # None found.
73217                 gt_cv_locale_fr_utf8=none
73218               fi
73219             fi
73220           fi
73221           ;;
73222       esac
73223     fi
73224     rm -fr conftest*
73225
73226 fi
73227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
73228 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
73229   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
73230
73231
73232
73233
73234
73235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
73236 $as_echo_n "checking for a traditional japanese locale... " >&6; }
73237 if ${gt_cv_locale_ja+:} false; then :
73238   $as_echo_n "(cached) " >&6
73239 else
73240
73241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73242 /* end confdefs.h.  */
73243
73244 #include <locale.h>
73245 #include <time.h>
73246 #if HAVE_LANGINFO_CODESET
73247 # include <langinfo.h>
73248 #endif
73249 #include <stdlib.h>
73250 #include <string.h>
73251 struct tm t;
73252 char buf[16];
73253 int main ()
73254 {
73255   const char *p;
73256   /* Check whether the given locale name is recognized by the system.  */
73257 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
73258   /* On native Windows, setlocale(category, "") looks at the system settings,
73259      not at the environment variables.  Also, when an encoding suffix such
73260      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
73261      category of the locale to "C".  */
73262   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
73263       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
73264     return 1;
73265 #else
73266   if (setlocale (LC_ALL, "") == NULL) return 1;
73267 #endif
73268   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
73269      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
73270      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
73271      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
73272      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
73273      some unit tests fail.
73274      On MirBSD 10, when an unsupported locale is specified, setlocale()
73275      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
73276 #if HAVE_LANGINFO_CODESET
73277   {
73278     const char *cs = nl_langinfo (CODESET);
73279     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
73280         || strcmp (cs, "UTF-8") == 0)
73281       return 1;
73282   }
73283 #endif
73284 #ifdef __CYGWIN__
73285   /* On Cygwin, avoid locale names without encoding suffix, because the
73286      locale_charset() function relies on the encoding suffix.  Note that
73287      LC_ALL is set on the command line.  */
73288   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
73289 #endif
73290   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
73291      on Cygwin 1.5.x.  */
73292   if (MB_CUR_MAX == 1)
73293     return 1;
73294   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
73295      This excludes the UTF-8 encoding (except on MirBSD).  */
73296   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
73297   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
73298   for (p = buf; *p != '\0'; p++)
73299     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
73300       return 1;
73301   return 0;
73302 }
73303
73304 _ACEOF
73305     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
73306   (eval $ac_link) 2>&5
73307   ac_status=$?
73308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73309   test $ac_status = 0; } && test -s conftest$ac_exeext; then
73310       case "$host_os" in
73311         # Handle native Windows specially, because there setlocale() interprets
73312         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
73313         # "fr" or "fra" as "French" or "French_France.1252",
73314         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
73315         # "ja" as "Japanese" or "Japanese_Japan.932",
73316         # and similar.
73317         mingw*)
73318           # Note that on native Windows, the Japanese locale is
73319           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
73320           # cannot use it here.
73321           gt_cv_locale_ja=none
73322           ;;
73323         *)
73324           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
73325           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
73326           # configure script would override the LC_ALL setting. Likewise for
73327           # LC_CTYPE, which is also set at the beginning of the configure script.
73328           # Test for the AIX locale name.
73329           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73330             gt_cv_locale_ja=ja_JP
73331           else
73332             # Test for the locale name with explicit encoding suffix.
73333             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73334               gt_cv_locale_ja=ja_JP.EUC-JP
73335             else
73336               # Test for the HP-UX, OSF/1, NetBSD locale name.
73337               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73338                 gt_cv_locale_ja=ja_JP.eucJP
73339               else
73340                 # Test for the IRIX, FreeBSD locale name.
73341                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73342                   gt_cv_locale_ja=ja_JP.EUC
73343                 else
73344                   # Test for the Solaris 7 locale name.
73345                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
73346                     gt_cv_locale_ja=ja
73347                   else
73348                     # Special test for NetBSD 1.6.
73349                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
73350                       gt_cv_locale_ja=ja_JP.eucJP
73351                     else
73352                       # None found.
73353                       gt_cv_locale_ja=none
73354                     fi
73355                   fi
73356                 fi
73357               fi
73358             fi
73359           fi
73360           ;;
73361       esac
73362     fi
73363     rm -fr conftest*
73364
73365 fi
73366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
73367 $as_echo "$gt_cv_locale_ja" >&6; }
73368   LOCALE_JA=$gt_cv_locale_ja
73369
73370
73371
73372
73373
73374
73375
73376
73377
73378
73379
73380 ac_ext=cpp
73381 ac_cpp='$CXXCPP $CPPFLAGS'
73382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
73385 if test -z "$CXX"; then
73386   if test -n "$CCC"; then
73387     CXX=$CCC
73388   else
73389     if test -n "$ac_tool_prefix"; then
73390   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
73391   do
73392     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
73393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
73394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73395 $as_echo_n "checking for $ac_word... " >&6; }
73396 if ${ac_cv_prog_CXX+:} false; then :
73397   $as_echo_n "(cached) " >&6
73398 else
73399   if test -n "$CXX"; then
73400   ac_cv_prog_CXX="$CXX" # Let the user override the test.
73401 else
73402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73403 for as_dir in $PATH
73404 do
73405   IFS=$as_save_IFS
73406   test -z "$as_dir" && as_dir=.
73407     for ac_exec_ext in '' $ac_executable_extensions; do
73408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73409     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
73410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73411     break 2
73412   fi
73413 done
73414   done
73415 IFS=$as_save_IFS
73416
73417 fi
73418 fi
73419 CXX=$ac_cv_prog_CXX
73420 if test -n "$CXX"; then
73421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
73422 $as_echo "$CXX" >&6; }
73423 else
73424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73425 $as_echo "no" >&6; }
73426 fi
73427
73428
73429     test -n "$CXX" && break
73430   done
73431 fi
73432 if test -z "$CXX"; then
73433   ac_ct_CXX=$CXX
73434   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
73435 do
73436   # Extract the first word of "$ac_prog", so it can be a program name with args.
73437 set dummy $ac_prog; ac_word=$2
73438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73439 $as_echo_n "checking for $ac_word... " >&6; }
73440 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
73441   $as_echo_n "(cached) " >&6
73442 else
73443   if test -n "$ac_ct_CXX"; then
73444   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
73445 else
73446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73447 for as_dir in $PATH
73448 do
73449   IFS=$as_save_IFS
73450   test -z "$as_dir" && as_dir=.
73451     for ac_exec_ext in '' $ac_executable_extensions; do
73452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73453     ac_cv_prog_ac_ct_CXX="$ac_prog"
73454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73455     break 2
73456   fi
73457 done
73458   done
73459 IFS=$as_save_IFS
73460
73461 fi
73462 fi
73463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
73464 if test -n "$ac_ct_CXX"; then
73465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
73466 $as_echo "$ac_ct_CXX" >&6; }
73467 else
73468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73469 $as_echo "no" >&6; }
73470 fi
73471
73472
73473   test -n "$ac_ct_CXX" && break
73474 done
73475
73476   if test "x$ac_ct_CXX" = x; then
73477     CXX="g++"
73478   else
73479     case $cross_compiling:$ac_tool_warned in
73480 yes:)
73481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
73482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
73483 ac_tool_warned=yes ;;
73484 esac
73485     CXX=$ac_ct_CXX
73486   fi
73487 fi
73488
73489   fi
73490 fi
73491 # Provide some information about the compiler.
73492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
73493 set X $ac_compile
73494 ac_compiler=$2
73495 for ac_option in --version -v -V -qversion; do
73496   { { ac_try="$ac_compiler $ac_option >&5"
73497 case "(($ac_try" in
73498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73499   *) ac_try_echo=$ac_try;;
73500 esac
73501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
73502 $as_echo "$ac_try_echo"; } >&5
73503   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
73504   ac_status=$?
73505   if test -s conftest.err; then
73506     sed '10a\
73507 ... rest of stderr output deleted ...
73508          10q' conftest.err >conftest.er1
73509     cat conftest.er1 >&5
73510   fi
73511   rm -f conftest.er1 conftest.err
73512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73513   test $ac_status = 0; }
73514 done
73515
73516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
73517 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
73518 if ${ac_cv_cxx_compiler_gnu+:} false; then :
73519   $as_echo_n "(cached) " >&6
73520 else
73521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73522 /* end confdefs.h.  */
73523
73524 int
73525 main ()
73526 {
73527 #ifndef __GNUC__
73528        choke me
73529 #endif
73530
73531   ;
73532   return 0;
73533 }
73534 _ACEOF
73535 if ac_fn_cxx_try_compile "$LINENO"; then :
73536   ac_compiler_gnu=yes
73537 else
73538   ac_compiler_gnu=no
73539 fi
73540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73541 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
73542
73543 fi
73544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
73545 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
73546 if test $ac_compiler_gnu = yes; then
73547   GXX=yes
73548 else
73549   GXX=
73550 fi
73551 ac_test_CXXFLAGS=${CXXFLAGS+set}
73552 ac_save_CXXFLAGS=$CXXFLAGS
73553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
73554 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
73555 if ${ac_cv_prog_cxx_g+:} false; then :
73556   $as_echo_n "(cached) " >&6
73557 else
73558   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
73559    ac_cxx_werror_flag=yes
73560    ac_cv_prog_cxx_g=no
73561    CXXFLAGS="-g"
73562    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73563 /* end confdefs.h.  */
73564
73565 int
73566 main ()
73567 {
73568
73569   ;
73570   return 0;
73571 }
73572 _ACEOF
73573 if ac_fn_cxx_try_compile "$LINENO"; then :
73574   ac_cv_prog_cxx_g=yes
73575 else
73576   CXXFLAGS=""
73577       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73578 /* end confdefs.h.  */
73579
73580 int
73581 main ()
73582 {
73583
73584   ;
73585   return 0;
73586 }
73587 _ACEOF
73588 if ac_fn_cxx_try_compile "$LINENO"; then :
73589
73590 else
73591   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
73592          CXXFLAGS="-g"
73593          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73594 /* end confdefs.h.  */
73595
73596 int
73597 main ()
73598 {
73599
73600   ;
73601   return 0;
73602 }
73603 _ACEOF
73604 if ac_fn_cxx_try_compile "$LINENO"; then :
73605   ac_cv_prog_cxx_g=yes
73606 fi
73607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73608 fi
73609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73610 fi
73611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73612    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
73613 fi
73614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
73615 $as_echo "$ac_cv_prog_cxx_g" >&6; }
73616 if test "$ac_test_CXXFLAGS" = set; then
73617   CXXFLAGS=$ac_save_CXXFLAGS
73618 elif test $ac_cv_prog_cxx_g = yes; then
73619   if test "$GXX" = yes; then
73620     CXXFLAGS="-g -O2"
73621   else
73622     CXXFLAGS="-g"
73623   fi
73624 else
73625   if test "$GXX" = yes; then
73626     CXXFLAGS="-O2"
73627   else
73628     CXXFLAGS=
73629   fi
73630 fi
73631 ac_ext=c
73632 ac_cpp='$CPP $CPPFLAGS'
73633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
73636
73637 depcc="$CXX"  am_compiler_list=
73638
73639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
73640 $as_echo_n "checking dependency style of $depcc... " >&6; }
73641 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
73642   $as_echo_n "(cached) " >&6
73643 else
73644   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
73645   # We make a subdir and do the tests there.  Otherwise we can end up
73646   # making bogus files that we don't know about and never remove.  For
73647   # instance it was reported that on HP-UX the gcc test will end up
73648   # making a dummy file named 'D' -- because '-MD' means "put the output
73649   # in D".
73650   rm -rf conftest.dir
73651   mkdir conftest.dir
73652   # Copy depcomp to subdir because otherwise we won't find it if we're
73653   # using a relative directory.
73654   cp "$am_depcomp" conftest.dir
73655   cd conftest.dir
73656   # We will build objects and dependencies in a subdirectory because
73657   # it helps to detect inapplicable dependency modes.  For instance
73658   # both Tru64's cc and ICC support -MD to output dependencies as a
73659   # side effect of compilation, but ICC will put the dependencies in
73660   # the current directory while Tru64 will put them in the object
73661   # directory.
73662   mkdir sub
73663
73664   am_cv_CXX_dependencies_compiler_type=none
73665   if test "$am_compiler_list" = ""; then
73666      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
73667   fi
73668   am__universal=false
73669   case " $depcc " in #(
73670      *\ -arch\ *\ -arch\ *) am__universal=true ;;
73671      esac
73672
73673   for depmode in $am_compiler_list; do
73674     # Setup a source with many dependencies, because some compilers
73675     # like to wrap large dependency lists on column 80 (with \), and
73676     # we should not choose a depcomp mode which is confused by this.
73677     #
73678     # We need to recreate these files for each test, as the compiler may
73679     # overwrite some of them when testing with obscure command lines.
73680     # This happens at least with the AIX C compiler.
73681     : > sub/conftest.c
73682     for i in 1 2 3 4 5 6; do
73683       echo '#include "conftst'$i'.h"' >> sub/conftest.c
73684       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
73685       # Solaris 10 /bin/sh.
73686       echo '/* dummy */' > sub/conftst$i.h
73687     done
73688     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
73689
73690     # We check with '-c' and '-o' for the sake of the "dashmstdout"
73691     # mode.  It turns out that the SunPro C++ compiler does not properly
73692     # handle '-M -o', and we need to detect this.  Also, some Intel
73693     # versions had trouble with output in subdirs.
73694     am__obj=sub/conftest.${OBJEXT-o}
73695     am__minus_obj="-o $am__obj"
73696     case $depmode in
73697     gcc)
73698       # This depmode causes a compiler race in universal mode.
73699       test "$am__universal" = false || continue
73700       ;;
73701     nosideeffect)
73702       # After this tag, mechanisms are not by side-effect, so they'll
73703       # only be used when explicitly requested.
73704       if test "x$enable_dependency_tracking" = xyes; then
73705         continue
73706       else
73707         break
73708       fi
73709       ;;
73710     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
73711       # This compiler won't grok '-c -o', but also, the minuso test has
73712       # not run yet.  These depmodes are late enough in the game, and
73713       # so weak that their functioning should not be impacted.
73714       am__obj=conftest.${OBJEXT-o}
73715       am__minus_obj=
73716       ;;
73717     none) break ;;
73718     esac
73719     if depmode=$depmode \
73720        source=sub/conftest.c object=$am__obj \
73721        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
73722        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
73723          >/dev/null 2>conftest.err &&
73724        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
73725        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
73726        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
73727        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
73728       # icc doesn't choke on unknown options, it will just issue warnings
73729       # or remarks (even with -Werror).  So we grep stderr for any message
73730       # that says an option was ignored or not supported.
73731       # When given -MP, icc 7.0 and 7.1 complain thusly:
73732       #   icc: Command line warning: ignoring option '-M'; no argument required
73733       # The diagnosis changed in icc 8.0:
73734       #   icc: Command line remark: option '-MP' not supported
73735       if (grep 'ignoring option' conftest.err ||
73736           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
73737         am_cv_CXX_dependencies_compiler_type=$depmode
73738         break
73739       fi
73740     fi
73741   done
73742
73743   cd ..
73744   rm -rf conftest.dir
73745 else
73746   am_cv_CXX_dependencies_compiler_type=none
73747 fi
73748
73749 fi
73750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
73751 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
73752 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
73753
73754  if
73755   test "x$enable_dependency_tracking" != xno \
73756   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
73757   am__fastdepCXX_TRUE=
73758   am__fastdepCXX_FALSE='#'
73759 else
73760   am__fastdepCXX_TRUE='#'
73761   am__fastdepCXX_FALSE=
73762 fi
73763
73764
73765
73766
73767
73768 func_stripname_cnf ()
73769 {
73770   case $2 in
73771   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
73772   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
73773   esac
73774 } # func_stripname_cnf
73775
73776       if test -n "$CXX" && ( test no != "$CXX" &&
73777     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
73778     (test g++ != "$CXX"))); then
73779   ac_ext=cpp
73780 ac_cpp='$CXXCPP $CPPFLAGS'
73781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
73784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
73785 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
73786 if test -z "$CXXCPP"; then
73787   if ${ac_cv_prog_CXXCPP+:} false; then :
73788   $as_echo_n "(cached) " >&6
73789 else
73790       # Double quotes because CXXCPP needs to be expanded
73791     for CXXCPP in "$CXX -E" "/lib/cpp"
73792     do
73793       ac_preproc_ok=false
73794 for ac_cxx_preproc_warn_flag in '' yes
73795 do
73796   # Use a header file that comes with gcc, so configuring glibc
73797   # with a fresh cross-compiler works.
73798   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73799   # <limits.h> exists even on freestanding compilers.
73800   # On the NeXT, cc -E runs the code through the compiler's parser,
73801   # not just through cpp. "Syntax error" is here to catch this case.
73802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73803 /* end confdefs.h.  */
73804 #ifdef __STDC__
73805 # include <limits.h>
73806 #else
73807 # include <assert.h>
73808 #endif
73809                      Syntax error
73810 _ACEOF
73811 if ac_fn_cxx_try_cpp "$LINENO"; then :
73812
73813 else
73814   # Broken: fails on valid input.
73815 continue
73816 fi
73817 rm -f conftest.err conftest.i conftest.$ac_ext
73818
73819   # OK, works on sane cases.  Now check whether nonexistent headers
73820   # can be detected and how.
73821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73822 /* end confdefs.h.  */
73823 #include <ac_nonexistent.h>
73824 _ACEOF
73825 if ac_fn_cxx_try_cpp "$LINENO"; then :
73826   # Broken: success on invalid input.
73827 continue
73828 else
73829   # Passes both tests.
73830 ac_preproc_ok=:
73831 break
73832 fi
73833 rm -f conftest.err conftest.i conftest.$ac_ext
73834
73835 done
73836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
73837 rm -f conftest.i conftest.err conftest.$ac_ext
73838 if $ac_preproc_ok; then :
73839   break
73840 fi
73841
73842     done
73843     ac_cv_prog_CXXCPP=$CXXCPP
73844
73845 fi
73846   CXXCPP=$ac_cv_prog_CXXCPP
73847 else
73848   ac_cv_prog_CXXCPP=$CXXCPP
73849 fi
73850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
73851 $as_echo "$CXXCPP" >&6; }
73852 ac_preproc_ok=false
73853 for ac_cxx_preproc_warn_flag in '' yes
73854 do
73855   # Use a header file that comes with gcc, so configuring glibc
73856   # with a fresh cross-compiler works.
73857   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73858   # <limits.h> exists even on freestanding compilers.
73859   # On the NeXT, cc -E runs the code through the compiler's parser,
73860   # not just through cpp. "Syntax error" is here to catch this case.
73861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73862 /* end confdefs.h.  */
73863 #ifdef __STDC__
73864 # include <limits.h>
73865 #else
73866 # include <assert.h>
73867 #endif
73868                      Syntax error
73869 _ACEOF
73870 if ac_fn_cxx_try_cpp "$LINENO"; then :
73871
73872 else
73873   # Broken: fails on valid input.
73874 continue
73875 fi
73876 rm -f conftest.err conftest.i conftest.$ac_ext
73877
73878   # OK, works on sane cases.  Now check whether nonexistent headers
73879   # can be detected and how.
73880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73881 /* end confdefs.h.  */
73882 #include <ac_nonexistent.h>
73883 _ACEOF
73884 if ac_fn_cxx_try_cpp "$LINENO"; then :
73885   # Broken: success on invalid input.
73886 continue
73887 else
73888   # Passes both tests.
73889 ac_preproc_ok=:
73890 break
73891 fi
73892 rm -f conftest.err conftest.i conftest.$ac_ext
73893
73894 done
73895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
73896 rm -f conftest.i conftest.err conftest.$ac_ext
73897 if $ac_preproc_ok; then :
73898
73899 else
73900   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
73901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73902 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
73903 See \`config.log' for more details" "$LINENO" 5; }
73904 fi
73905
73906 ac_ext=c
73907 ac_cpp='$CPP $CPPFLAGS'
73908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
73911
73912 else
73913   _lt_caught_CXX_error=yes
73914 fi
73915
73916 ac_ext=cpp
73917 ac_cpp='$CXXCPP $CPPFLAGS'
73918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
73921
73922 archive_cmds_need_lc_CXX=no
73923 allow_undefined_flag_CXX=
73924 always_export_symbols_CXX=no
73925 archive_expsym_cmds_CXX=
73926 compiler_needs_object_CXX=no
73927 export_dynamic_flag_spec_CXX=
73928 hardcode_direct_CXX=no
73929 hardcode_direct_absolute_CXX=no
73930 hardcode_libdir_flag_spec_CXX=
73931 hardcode_libdir_separator_CXX=
73932 hardcode_minus_L_CXX=no
73933 hardcode_shlibpath_var_CXX=unsupported
73934 hardcode_automatic_CXX=no
73935 inherit_rpath_CXX=no
73936 module_cmds_CXX=
73937 module_expsym_cmds_CXX=
73938 link_all_deplibs_CXX=unknown
73939 old_archive_cmds_CXX=$old_archive_cmds
73940 reload_flag_CXX=$reload_flag
73941 reload_cmds_CXX=$reload_cmds
73942 no_undefined_flag_CXX=
73943 whole_archive_flag_spec_CXX=
73944 enable_shared_with_static_runtimes_CXX=no
73945
73946 # Source file extension for C++ test sources.
73947 ac_ext=cpp
73948
73949 # Object file extension for compiled C++ test sources.
73950 objext=o
73951 objext_CXX=$objext
73952
73953 # No sense in running all these tests if we already determined that
73954 # the CXX compiler isn't working.  Some variables (like enable_shared)
73955 # are currently assumed to apply to all compilers on this platform,
73956 # and will be corrupted by setting them based on a non-working compiler.
73957 if test yes != "$_lt_caught_CXX_error"; then
73958   # Code to be used in simple compile tests
73959   lt_simple_compile_test_code="int some_variable = 0;"
73960
73961   # Code to be used in simple link tests
73962   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
73963
73964   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
73965
73966
73967
73968
73969
73970
73971 # If no C compiler was specified, use CC.
73972 LTCC=${LTCC-"$CC"}
73973
73974 # If no C compiler flags were specified, use CFLAGS.
73975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
73976
73977 # Allow CC to be a program name with arguments.
73978 compiler=$CC
73979
73980
73981   # save warnings/boilerplate of simple test code
73982   ac_outfile=conftest.$ac_objext
73983 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
73984 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
73985 _lt_compiler_boilerplate=`cat conftest.err`
73986 $RM conftest*
73987
73988   ac_outfile=conftest.$ac_objext
73989 echo "$lt_simple_link_test_code" >conftest.$ac_ext
73990 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
73991 _lt_linker_boilerplate=`cat conftest.err`
73992 $RM -r conftest*
73993
73994
73995   # Allow CC to be a program name with arguments.
73996   lt_save_CC=$CC
73997   lt_save_CFLAGS=$CFLAGS
73998   lt_save_LD=$LD
73999   lt_save_GCC=$GCC
74000   GCC=$GXX
74001   lt_save_with_gnu_ld=$with_gnu_ld
74002   lt_save_path_LD=$lt_cv_path_LD
74003   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
74004     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
74005   else
74006     $as_unset lt_cv_prog_gnu_ld
74007   fi
74008   if test -n "${lt_cv_path_LDCXX+set}"; then
74009     lt_cv_path_LD=$lt_cv_path_LDCXX
74010   else
74011     $as_unset lt_cv_path_LD
74012   fi
74013   test -z "${LDCXX+set}" || LD=$LDCXX
74014   CC=${CXX-"c++"}
74015   CFLAGS=$CXXFLAGS
74016   compiler=$CC
74017   compiler_CXX=$CC
74018   func_cc_basename $compiler
74019 cc_basename=$func_cc_basename_result
74020
74021
74022   if test -n "$compiler"; then
74023     # We don't want -fno-exception when compiling C++ code, so set the
74024     # no_builtin_flag separately
74025     if test yes = "$GXX"; then
74026       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
74027     else
74028       lt_prog_compiler_no_builtin_flag_CXX=
74029     fi
74030
74031     if test yes = "$GXX"; then
74032       # Set up default GNU C++ configuration
74033
74034
74035
74036 # Check whether --with-gnu-ld was given.
74037 if test "${with_gnu_ld+set}" = set; then :
74038   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
74039 else
74040   with_gnu_ld=no
74041 fi
74042
74043 ac_prog=ld
74044 if test yes = "$GCC"; then
74045   # Check if gcc -print-prog-name=ld gives a path.
74046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
74047 $as_echo_n "checking for ld used by $CC... " >&6; }
74048   case $host in
74049   *-*-mingw*)
74050     # gcc leaves a trailing carriage return, which upsets mingw
74051     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
74052   *)
74053     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
74054   esac
74055   case $ac_prog in
74056     # Accept absolute paths.
74057     [\\/]* | ?:[\\/]*)
74058       re_direlt='/[^/][^/]*/\.\./'
74059       # Canonicalize the pathname of ld
74060       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
74061       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
74062         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
74063       done
74064       test -z "$LD" && LD=$ac_prog
74065       ;;
74066   "")
74067     # If it fails, then pretend we aren't using GCC.
74068     ac_prog=ld
74069     ;;
74070   *)
74071     # If it is relative, then search for the first ld in PATH.
74072     with_gnu_ld=unknown
74073     ;;
74074   esac
74075 elif test yes = "$with_gnu_ld"; then
74076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
74077 $as_echo_n "checking for GNU ld... " >&6; }
74078 else
74079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
74080 $as_echo_n "checking for non-GNU ld... " >&6; }
74081 fi
74082 if ${lt_cv_path_LD+:} false; then :
74083   $as_echo_n "(cached) " >&6
74084 else
74085   if test -z "$LD"; then
74086   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
74087   for ac_dir in $PATH; do
74088     IFS=$lt_save_ifs
74089     test -z "$ac_dir" && ac_dir=.
74090     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
74091       lt_cv_path_LD=$ac_dir/$ac_prog
74092       # Check to see if the program is GNU ld.  I'd rather use --version,
74093       # but apparently some variants of GNU ld only accept -v.
74094       # Break only if it was the GNU/non-GNU ld that we prefer.
74095       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
74096       *GNU* | *'with BFD'*)
74097         test no != "$with_gnu_ld" && break
74098         ;;
74099       *)
74100         test yes != "$with_gnu_ld" && break
74101         ;;
74102       esac
74103     fi
74104   done
74105   IFS=$lt_save_ifs
74106 else
74107   lt_cv_path_LD=$LD # Let the user override the test with a path.
74108 fi
74109 fi
74110
74111 LD=$lt_cv_path_LD
74112 if test -n "$LD"; then
74113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
74114 $as_echo "$LD" >&6; }
74115 else
74116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74117 $as_echo "no" >&6; }
74118 fi
74119 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
74120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
74121 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
74122 if ${lt_cv_prog_gnu_ld+:} false; then :
74123   $as_echo_n "(cached) " >&6
74124 else
74125   # I'd rather use --version here, but apparently some GNU lds only accept -v.
74126 case `$LD -v 2>&1 </dev/null` in
74127 *GNU* | *'with BFD'*)
74128   lt_cv_prog_gnu_ld=yes
74129   ;;
74130 *)
74131   lt_cv_prog_gnu_ld=no
74132   ;;
74133 esac
74134 fi
74135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
74136 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
74137 with_gnu_ld=$lt_cv_prog_gnu_ld
74138
74139
74140
74141
74142
74143
74144
74145       # Check if GNU C++ uses GNU ld as the underlying linker, since the
74146       # archiving commands below assume that GNU ld is being used.
74147       if test yes = "$with_gnu_ld"; then
74148         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
74149         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'
74150
74151         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
74152         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
74153
74154         # If archive_cmds runs LD, not CC, wlarc should be empty
74155         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
74156         #     investigate it a little bit more. (MM)
74157         wlarc='$wl'
74158
74159         # ancient GNU ld didn't support --whole-archive et. al.
74160         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
74161           $GREP 'no-whole-archive' > /dev/null; then
74162           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
74163         else
74164           whole_archive_flag_spec_CXX=
74165         fi
74166       else
74167         with_gnu_ld=no
74168         wlarc=
74169
74170         # A generic and very simple default shared library creation
74171         # command for GNU C++ for the case where it uses the native
74172         # linker, instead of GNU ld.  If possible, this setting should
74173         # overridden to take advantage of the native linker features on
74174         # the platform it is being used on.
74175         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
74176       fi
74177
74178       # Commands to make compiler produce verbose output that lists
74179       # what "hidden" libraries, object files and flags are used when
74180       # linking a shared library.
74181       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
74182
74183     else
74184       GXX=no
74185       with_gnu_ld=no
74186       wlarc=
74187     fi
74188
74189     # PORTME: fill in a description of your system's C++ link characteristics
74190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
74191 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
74192     ld_shlibs_CXX=yes
74193     case $host_os in
74194       aix3*)
74195         # FIXME: insert proper C++ library support
74196         ld_shlibs_CXX=no
74197         ;;
74198       aix[4-9]*)
74199         if test ia64 = "$host_cpu"; then
74200           # On IA64, the linker does run time linking by default, so we don't
74201           # have to do anything special.
74202           aix_use_runtimelinking=no
74203           exp_sym_flag='-Bexport'
74204           no_entry_flag=
74205         else
74206           aix_use_runtimelinking=no
74207
74208           # Test if we are trying to use run time linking or normal
74209           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
74210           # have runtime linking enabled, and use it for executables.
74211           # For shared libraries, we enable/disable runtime linking
74212           # depending on the kind of the shared library created -
74213           # when "with_aix_soname,aix_use_runtimelinking" is:
74214           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
74215           # "aix,yes"  lib.so          shared, rtl:yes, for executables
74216           #            lib.a           static archive
74217           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
74218           #            lib.a(lib.so.V) shared, rtl:no,  for executables
74219           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
74220           #            lib.a(lib.so.V) shared, rtl:no
74221           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
74222           #            lib.a           static archive
74223           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
74224             for ld_flag in $LDFLAGS; do
74225               case $ld_flag in
74226               *-brtl*)
74227                 aix_use_runtimelinking=yes
74228                 break
74229                 ;;
74230               esac
74231             done
74232             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
74233               # With aix-soname=svr4, we create the lib.so.V shared archives only,
74234               # so we don't have lib.a shared libs to link our executables.
74235               # We have to force runtime linking in this case.
74236               aix_use_runtimelinking=yes
74237               LDFLAGS="$LDFLAGS -Wl,-brtl"
74238             fi
74239             ;;
74240           esac
74241
74242           exp_sym_flag='-bexport'
74243           no_entry_flag='-bnoentry'
74244         fi
74245
74246         # When large executables or shared objects are built, AIX ld can
74247         # have problems creating the table of contents.  If linking a library
74248         # or program results in "error TOC overflow" add -mminimal-toc to
74249         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
74250         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
74251
74252         archive_cmds_CXX=''
74253         hardcode_direct_CXX=yes
74254         hardcode_direct_absolute_CXX=yes
74255         hardcode_libdir_separator_CXX=':'
74256         link_all_deplibs_CXX=yes
74257         file_list_spec_CXX='$wl-f,'
74258         case $with_aix_soname,$aix_use_runtimelinking in
74259         aix,*) ;;       # no import file
74260         svr4,* | *,yes) # use import file
74261           # The Import File defines what to hardcode.
74262           hardcode_direct_CXX=no
74263           hardcode_direct_absolute_CXX=no
74264           ;;
74265         esac
74266
74267         if test yes = "$GXX"; then
74268           case $host_os in aix4.[012]|aix4.[012].*)
74269           # We only want to do this on AIX 4.2 and lower, the check
74270           # below for broken collect2 doesn't work under 4.3+
74271           collect2name=`$CC -print-prog-name=collect2`
74272           if test -f "$collect2name" &&
74273              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
74274           then
74275             # We have reworked collect2
74276             :
74277           else
74278             # We have old collect2
74279             hardcode_direct_CXX=unsupported
74280             # It fails to find uninstalled libraries when the uninstalled
74281             # path is not listed in the libpath.  Setting hardcode_minus_L
74282             # to unsupported forces relinking
74283             hardcode_minus_L_CXX=yes
74284             hardcode_libdir_flag_spec_CXX='-L$libdir'
74285             hardcode_libdir_separator_CXX=
74286           fi
74287           esac
74288           shared_flag='-shared'
74289           if test yes = "$aix_use_runtimelinking"; then
74290             shared_flag=$shared_flag' $wl-G'
74291           fi
74292           # Need to ensure runtime linking is disabled for the traditional
74293           # shared library, or the linker may eventually find shared libraries
74294           # /with/ Import File - we do not want to mix them.
74295           shared_flag_aix='-shared'
74296           shared_flag_svr4='-shared $wl-G'
74297         else
74298           # not using gcc
74299           if test ia64 = "$host_cpu"; then
74300           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
74301           # chokes on -Wl,-G. The following line is correct:
74302           shared_flag='-G'
74303           else
74304             if test yes = "$aix_use_runtimelinking"; then
74305               shared_flag='$wl-G'
74306             else
74307               shared_flag='$wl-bM:SRE'
74308             fi
74309             shared_flag_aix='$wl-bM:SRE'
74310             shared_flag_svr4='$wl-G'
74311           fi
74312         fi
74313
74314         export_dynamic_flag_spec_CXX='$wl-bexpall'
74315         # It seems that -bexpall does not export symbols beginning with
74316         # underscore (_), so it is better to generate a list of symbols to
74317         # export.
74318         always_export_symbols_CXX=yes
74319         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
74320           # Warning - without using the other runtime loading flags (-brtl),
74321           # -berok will link without error, but may produce a broken library.
74322           # The "-G" linker flag allows undefined symbols.
74323           no_undefined_flag_CXX='-bernotok'
74324           # Determine the default libpath from the value encoded in an empty
74325           # executable.
74326           if test set = "${lt_cv_aix_libpath+set}"; then
74327   aix_libpath=$lt_cv_aix_libpath
74328 else
74329   if ${lt_cv_aix_libpath__CXX+:} false; then :
74330   $as_echo_n "(cached) " >&6
74331 else
74332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74333 /* end confdefs.h.  */
74334
74335 int
74336 main ()
74337 {
74338
74339   ;
74340   return 0;
74341 }
74342 _ACEOF
74343 if ac_fn_cxx_try_link "$LINENO"; then :
74344
74345   lt_aix_libpath_sed='
74346       /Import File Strings/,/^$/ {
74347           /^0/ {
74348               s/^0  *\([^ ]*\) *$/\1/
74349               p
74350           }
74351       }'
74352   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
74353   # Check for a 64-bit object if we didn't find anything.
74354   if test -z "$lt_cv_aix_libpath__CXX"; then
74355     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
74356   fi
74357 fi
74358 rm -f core conftest.err conftest.$ac_objext \
74359     conftest$ac_exeext conftest.$ac_ext
74360   if test -z "$lt_cv_aix_libpath__CXX"; then
74361     lt_cv_aix_libpath__CXX=/usr/lib:/lib
74362   fi
74363
74364 fi
74365
74366   aix_libpath=$lt_cv_aix_libpath__CXX
74367 fi
74368
74369           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
74370
74371           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
74372         else
74373           if test ia64 = "$host_cpu"; then
74374             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
74375             allow_undefined_flag_CXX="-z nodefs"
74376             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"
74377           else
74378             # Determine the default libpath from the value encoded in an
74379             # empty executable.
74380             if test set = "${lt_cv_aix_libpath+set}"; then
74381   aix_libpath=$lt_cv_aix_libpath
74382 else
74383   if ${lt_cv_aix_libpath__CXX+:} false; then :
74384   $as_echo_n "(cached) " >&6
74385 else
74386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74387 /* end confdefs.h.  */
74388
74389 int
74390 main ()
74391 {
74392
74393   ;
74394   return 0;
74395 }
74396 _ACEOF
74397 if ac_fn_cxx_try_link "$LINENO"; then :
74398
74399   lt_aix_libpath_sed='
74400       /Import File Strings/,/^$/ {
74401           /^0/ {
74402               s/^0  *\([^ ]*\) *$/\1/
74403               p
74404           }
74405       }'
74406   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
74407   # Check for a 64-bit object if we didn't find anything.
74408   if test -z "$lt_cv_aix_libpath__CXX"; then
74409     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
74410   fi
74411 fi
74412 rm -f core conftest.err conftest.$ac_objext \
74413     conftest$ac_exeext conftest.$ac_ext
74414   if test -z "$lt_cv_aix_libpath__CXX"; then
74415     lt_cv_aix_libpath__CXX=/usr/lib:/lib
74416   fi
74417
74418 fi
74419
74420   aix_libpath=$lt_cv_aix_libpath__CXX
74421 fi
74422
74423             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
74424             # Warning - without using the other run time loading flags,
74425             # -berok will link without error, but may produce a broken library.
74426             no_undefined_flag_CXX=' $wl-bernotok'
74427             allow_undefined_flag_CXX=' $wl-berok'
74428             if test yes = "$with_gnu_ld"; then
74429               # We only use this code for GNU lds that support --whole-archive.
74430               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
74431             else
74432               # Exported symbols can be pulled into shared objects from archives
74433               whole_archive_flag_spec_CXX='$convenience'
74434             fi
74435             archive_cmds_need_lc_CXX=yes
74436             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
74437             # -brtl affects multiple linker settings, -berok does not and is overridden later
74438             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
74439             if test svr4 != "$with_aix_soname"; then
74440               # This is similar to how AIX traditionally builds its shared
74441               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
74442               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'
74443             fi
74444             if test aix != "$with_aix_soname"; then
74445               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'
74446             else
74447               # used by -dlpreopen to get the symbols
74448               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
74449             fi
74450             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
74451           fi
74452         fi
74453         ;;
74454
74455       beos*)
74456         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
74457           allow_undefined_flag_CXX=unsupported
74458           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
74459           # support --undefined.  This deserves some investigation.  FIXME
74460           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
74461         else
74462           ld_shlibs_CXX=no
74463         fi
74464         ;;
74465
74466       chorus*)
74467         case $cc_basename in
74468           *)
74469           # FIXME: insert proper C++ library support
74470           ld_shlibs_CXX=no
74471           ;;
74472         esac
74473         ;;
74474
74475       cygwin* | mingw* | pw32* | cegcc*)
74476         case $GXX,$cc_basename in
74477         ,cl* | no,cl*)
74478           # Native MSVC
74479           # hardcode_libdir_flag_spec is actually meaningless, as there is
74480           # no search path for DLLs.
74481           hardcode_libdir_flag_spec_CXX=' '
74482           allow_undefined_flag_CXX=unsupported
74483           always_export_symbols_CXX=yes
74484           file_list_spec_CXX='@'
74485           # Tell ltmain to make .lib files, not .a files.
74486           libext=lib
74487           # Tell ltmain to make .dll files, not .so files.
74488           shrext_cmds=.dll
74489           # FIXME: Setting linknames here is a bad hack.
74490           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
74491           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
74492               cp "$export_symbols" "$output_objdir/$soname.def";
74493               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
74494             else
74495               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
74496             fi~
74497             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
74498             linknames='
74499           # The linker will not automatically build a static lib if we build a DLL.
74500           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
74501           enable_shared_with_static_runtimes_CXX=yes
74502           # Don't use ranlib
74503           old_postinstall_cmds_CXX='chmod 644 $oldlib'
74504           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
74505             lt_tool_outputfile="@TOOL_OUTPUT@"~
74506             case $lt_outputfile in
74507               *.exe|*.EXE) ;;
74508               *)
74509                 lt_outputfile=$lt_outputfile.exe
74510                 lt_tool_outputfile=$lt_tool_outputfile.exe
74511                 ;;
74512             esac~
74513             func_to_tool_file "$lt_outputfile"~
74514             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
74515               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
74516               $RM "$lt_outputfile.manifest";
74517             fi'
74518           ;;
74519         *)
74520           # g++
74521           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
74522           # as there is no search path for DLLs.
74523           hardcode_libdir_flag_spec_CXX='-L$libdir'
74524           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
74525           allow_undefined_flag_CXX=unsupported
74526           always_export_symbols_CXX=no
74527           enable_shared_with_static_runtimes_CXX=yes
74528
74529           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
74530             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'
74531             # If the export-symbols file already is a .def file, use it as
74532             # is; otherwise, prepend EXPORTS...
74533             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
74534               cp $export_symbols $output_objdir/$soname.def;
74535             else
74536               echo EXPORTS > $output_objdir/$soname.def;
74537               cat $export_symbols >> $output_objdir/$soname.def;
74538             fi~
74539             $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'
74540           else
74541             ld_shlibs_CXX=no
74542           fi
74543           ;;
74544         esac
74545         ;;
74546       darwin* | rhapsody*)
74547
74548
74549   archive_cmds_need_lc_CXX=no
74550   hardcode_direct_CXX=no
74551   hardcode_automatic_CXX=yes
74552   hardcode_shlibpath_var_CXX=unsupported
74553   if test yes = "$lt_cv_ld_force_load"; then
74554     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\"`'
74555
74556   else
74557     whole_archive_flag_spec_CXX=''
74558   fi
74559   link_all_deplibs_CXX=yes
74560   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
74561   case $cc_basename in
74562      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
74563      *) _lt_dar_can_shared=$GCC ;;
74564   esac
74565   if test yes = "$_lt_dar_can_shared"; then
74566     output_verbose_link_cmd=func_echo_all
74567     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"
74568     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
74569     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"
74570     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"
74571        if test yes != "$lt_cv_apple_cc_single_mod"; then
74572       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"
74573       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"
74574     fi
74575
74576   else
74577   ld_shlibs_CXX=no
74578   fi
74579
74580         ;;
74581
74582       os2*)
74583         hardcode_libdir_flag_spec_CXX='-L$libdir'
74584         hardcode_minus_L_CXX=yes
74585         allow_undefined_flag_CXX=unsupported
74586         shrext_cmds=.dll
74587         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
74588           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
74589           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
74590           $ECHO EXPORTS >> $output_objdir/$libname.def~
74591           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
74592           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
74593           emximp -o $lib $output_objdir/$libname.def'
74594         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
74595           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
74596           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
74597           $ECHO EXPORTS >> $output_objdir/$libname.def~
74598           prefix_cmds="$SED"~
74599           if test EXPORTS = "`$SED 1q $export_symbols`"; then
74600             prefix_cmds="$prefix_cmds -e 1d";
74601           fi~
74602           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
74603           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
74604           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
74605           emximp -o $lib $output_objdir/$libname.def'
74606         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
74607         enable_shared_with_static_runtimes_CXX=yes
74608         ;;
74609
74610       dgux*)
74611         case $cc_basename in
74612           ec++*)
74613             # FIXME: insert proper C++ library support
74614             ld_shlibs_CXX=no
74615             ;;
74616           ghcx*)
74617             # Green Hills C++ Compiler
74618             # FIXME: insert proper C++ library support
74619             ld_shlibs_CXX=no
74620             ;;
74621           *)
74622             # FIXME: insert proper C++ library support
74623             ld_shlibs_CXX=no
74624             ;;
74625         esac
74626         ;;
74627
74628       freebsd2.*)
74629         # C++ shared libraries reported to be fairly broken before
74630         # switch to ELF
74631         ld_shlibs_CXX=no
74632         ;;
74633
74634       freebsd-elf*)
74635         archive_cmds_need_lc_CXX=no
74636         ;;
74637
74638       freebsd* | dragonfly*)
74639         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
74640         # conventions
74641         ld_shlibs_CXX=yes
74642         ;;
74643
74644       haiku*)
74645         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
74646         link_all_deplibs_CXX=yes
74647         ;;
74648
74649       hpux9*)
74650         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
74651         hardcode_libdir_separator_CXX=:
74652         export_dynamic_flag_spec_CXX='$wl-E'
74653         hardcode_direct_CXX=yes
74654         hardcode_minus_L_CXX=yes # Not in the search PATH,
74655                                              # but as the default
74656                                              # location of the library.
74657
74658         case $cc_basename in
74659           CC*)
74660             # FIXME: insert proper C++ library support
74661             ld_shlibs_CXX=no
74662             ;;
74663           aCC*)
74664             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'
74665             # Commands to make compiler produce verbose output that lists
74666             # what "hidden" libraries, object files and flags are used when
74667             # linking a shared library.
74668             #
74669             # There doesn't appear to be a way to prevent this compiler from
74670             # explicitly linking system object files so we need to strip them
74671             # from the output so that they don't get included in the library
74672             # dependencies.
74673             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"'
74674             ;;
74675           *)
74676             if test yes = "$GXX"; then
74677               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'
74678             else
74679               # FIXME: insert proper C++ library support
74680               ld_shlibs_CXX=no
74681             fi
74682             ;;
74683         esac
74684         ;;
74685
74686       hpux10*|hpux11*)
74687         if test no = "$with_gnu_ld"; then
74688           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
74689           hardcode_libdir_separator_CXX=:
74690
74691           case $host_cpu in
74692             hppa*64*|ia64*)
74693               ;;
74694             *)
74695               export_dynamic_flag_spec_CXX='$wl-E'
74696               ;;
74697           esac
74698         fi
74699         case $host_cpu in
74700           hppa*64*|ia64*)
74701             hardcode_direct_CXX=no
74702             hardcode_shlibpath_var_CXX=no
74703             ;;
74704           *)
74705             hardcode_direct_CXX=yes
74706             hardcode_direct_absolute_CXX=yes
74707             hardcode_minus_L_CXX=yes # Not in the search PATH,
74708                                                  # but as the default
74709                                                  # location of the library.
74710             ;;
74711         esac
74712
74713         case $cc_basename in
74714           CC*)
74715             # FIXME: insert proper C++ library support
74716             ld_shlibs_CXX=no
74717             ;;
74718           aCC*)
74719             case $host_cpu in
74720               hppa*64*)
74721                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
74722                 ;;
74723               ia64*)
74724                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
74725                 ;;
74726               *)
74727                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
74728                 ;;
74729             esac
74730             # Commands to make compiler produce verbose output that lists
74731             # what "hidden" libraries, object files and flags are used when
74732             # linking a shared library.
74733             #
74734             # There doesn't appear to be a way to prevent this compiler from
74735             # explicitly linking system object files so we need to strip them
74736             # from the output so that they don't get included in the library
74737             # dependencies.
74738             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"'
74739             ;;
74740           *)
74741             if test yes = "$GXX"; then
74742               if test no = "$with_gnu_ld"; then
74743                 case $host_cpu in
74744                   hppa*64*)
74745                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
74746                     ;;
74747                   ia64*)
74748                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
74749                     ;;
74750                   *)
74751                     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'
74752                     ;;
74753                 esac
74754               fi
74755             else
74756               # FIXME: insert proper C++ library support
74757               ld_shlibs_CXX=no
74758             fi
74759             ;;
74760         esac
74761         ;;
74762
74763       interix[3-9]*)
74764         hardcode_direct_CXX=no
74765         hardcode_shlibpath_var_CXX=no
74766         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
74767         export_dynamic_flag_spec_CXX='$wl-E'
74768         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
74769         # Instead, shared libraries are loaded at an image base (0x10000000 by
74770         # default) and relocated if they conflict, which is a slow very memory
74771         # consuming and fragmenting process.  To avoid this, we pick a random,
74772         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
74773         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
74774         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'
74775         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'
74776         ;;
74777       irix5* | irix6*)
74778         case $cc_basename in
74779           CC*)
74780             # SGI C++
74781             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'
74782
74783             # Archives containing C++ object files must be created using
74784             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
74785             # necessary to make sure instantiated templates are included
74786             # in the archive.
74787             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
74788             ;;
74789           *)
74790             if test yes = "$GXX"; then
74791               if test no = "$with_gnu_ld"; then
74792                 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'
74793               else
74794                 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'
74795               fi
74796             fi
74797             link_all_deplibs_CXX=yes
74798             ;;
74799         esac
74800         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
74801         hardcode_libdir_separator_CXX=:
74802         inherit_rpath_CXX=yes
74803         ;;
74804
74805       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
74806         case $cc_basename in
74807           KCC*)
74808             # Kuck and Associates, Inc. (KAI) C++ Compiler
74809
74810             # KCC will only create a shared library if the output file
74811             # ends with ".so" (or ".sl" for HP-UX), so rename the library
74812             # to its proper name (with version) after linking.
74813             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'
74814             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'
74815             # Commands to make compiler produce verbose output that lists
74816             # what "hidden" libraries, object files and flags are used when
74817             # linking a shared library.
74818             #
74819             # There doesn't appear to be a way to prevent this compiler from
74820             # explicitly linking system object files so we need to strip them
74821             # from the output so that they don't get included in the library
74822             # dependencies.
74823             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"'
74824
74825             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
74826             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
74827
74828             # Archives containing C++ object files must be created using
74829             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
74830             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
74831             ;;
74832           icpc* | ecpc* )
74833             # Intel C++
74834             with_gnu_ld=yes
74835             # version 8.0 and above of icpc choke on multiply defined symbols
74836             # if we add $predep_objects and $postdep_objects, however 7.1 and
74837             # earlier do not add the objects themselves.
74838             case `$CC -V 2>&1` in
74839               *"Version 7."*)
74840                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
74841                 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'
74842                 ;;
74843               *)  # Version 8.0 or newer
74844                 tmp_idyn=
74845                 case $host_cpu in
74846                   ia64*) tmp_idyn=' -i_dynamic';;
74847                 esac
74848                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
74849                 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'
74850                 ;;
74851             esac
74852             archive_cmds_need_lc_CXX=no
74853             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
74854             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
74855             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
74856             ;;
74857           pgCC* | pgcpp*)
74858             # Portland Group C++ compiler
74859             case `$CC -V` in
74860             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
74861               prelink_cmds_CXX='tpldir=Template.dir~
74862                rm -rf $tpldir~
74863                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
74864                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
74865               old_archive_cmds_CXX='tpldir=Template.dir~
74866                 rm -rf $tpldir~
74867                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
74868                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
74869                 $RANLIB $oldlib'
74870               archive_cmds_CXX='tpldir=Template.dir~
74871                 rm -rf $tpldir~
74872                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
74873                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
74874               archive_expsym_cmds_CXX='tpldir=Template.dir~
74875                 rm -rf $tpldir~
74876                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
74877                 $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'
74878               ;;
74879             *) # Version 6 and above use weak symbols
74880               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
74881               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'
74882               ;;
74883             esac
74884
74885             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
74886             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
74887             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'
74888             ;;
74889           cxx*)
74890             # Compaq C++
74891             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
74892             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'
74893
74894             runpath_var=LD_RUN_PATH
74895             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
74896             hardcode_libdir_separator_CXX=:
74897
74898             # Commands to make compiler produce verbose output that lists
74899             # what "hidden" libraries, object files and flags are used when
74900             # linking a shared library.
74901             #
74902             # There doesn't appear to be a way to prevent this compiler from
74903             # explicitly linking system object files so we need to strip them
74904             # from the output so that they don't get included in the library
74905             # dependencies.
74906             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'
74907             ;;
74908           xl* | mpixl* | bgxl*)
74909             # IBM XL 8.0 on PPC, with GNU ld
74910             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
74911             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
74912             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
74913             if test yes = "$supports_anon_versioning"; then
74914               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
74915                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
74916                 echo "local: *; };" >> $output_objdir/$libname.ver~
74917                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
74918             fi
74919             ;;
74920           *)
74921             case `$CC -V 2>&1 | sed 5q` in
74922             *Sun\ C*)
74923               # Sun C++ 5.9
74924               no_undefined_flag_CXX=' -zdefs'
74925               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
74926               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'
74927               hardcode_libdir_flag_spec_CXX='-R$libdir'
74928               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'
74929               compiler_needs_object_CXX=yes
74930
74931               # Not sure whether something based on
74932               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
74933               # would be better.
74934               output_verbose_link_cmd='func_echo_all'
74935
74936               # Archives containing C++ object files must be created using
74937               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
74938               # necessary to make sure instantiated templates are included
74939               # in the archive.
74940               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
74941               ;;
74942             esac
74943             ;;
74944         esac
74945         ;;
74946
74947       lynxos*)
74948         # FIXME: insert proper C++ library support
74949         ld_shlibs_CXX=no
74950         ;;
74951
74952       m88k*)
74953         # FIXME: insert proper C++ library support
74954         ld_shlibs_CXX=no
74955         ;;
74956
74957       mvs*)
74958         case $cc_basename in
74959           cxx*)
74960             # FIXME: insert proper C++ library support
74961             ld_shlibs_CXX=no
74962             ;;
74963           *)
74964             # FIXME: insert proper C++ library support
74965             ld_shlibs_CXX=no
74966             ;;
74967         esac
74968         ;;
74969
74970       netbsd*)
74971         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
74972           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
74973           wlarc=
74974           hardcode_libdir_flag_spec_CXX='-R$libdir'
74975           hardcode_direct_CXX=yes
74976           hardcode_shlibpath_var_CXX=no
74977         fi
74978         # Workaround some broken pre-1.5 toolchains
74979         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
74980         ;;
74981
74982       *nto* | *qnx*)
74983         ld_shlibs_CXX=yes
74984         ;;
74985
74986       openbsd* | bitrig*)
74987         if test -f /usr/libexec/ld.so; then
74988           hardcode_direct_CXX=yes
74989           hardcode_shlibpath_var_CXX=no
74990           hardcode_direct_absolute_CXX=yes
74991           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
74992           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
74993           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
74994             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
74995             export_dynamic_flag_spec_CXX='$wl-E'
74996             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
74997           fi
74998           output_verbose_link_cmd=func_echo_all
74999         else
75000           ld_shlibs_CXX=no
75001         fi
75002         ;;
75003
75004       osf3* | osf4* | osf5*)
75005         case $cc_basename in
75006           KCC*)
75007             # Kuck and Associates, Inc. (KAI) C++ Compiler
75008
75009             # KCC will only create a shared library if the output file
75010             # ends with ".so" (or ".sl" for HP-UX), so rename the library
75011             # to its proper name (with version) after linking.
75012             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'
75013
75014             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
75015             hardcode_libdir_separator_CXX=:
75016
75017             # Archives containing C++ object files must be created using
75018             # the KAI C++ compiler.
75019             case $host in
75020               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
75021               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
75022             esac
75023             ;;
75024           RCC*)
75025             # Rational C++ 2.4.1
75026             # FIXME: insert proper C++ library support
75027             ld_shlibs_CXX=no
75028             ;;
75029           cxx*)
75030             case $host in
75031               osf3*)
75032                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
75033                 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'
75034                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
75035                 ;;
75036               *)
75037                 allow_undefined_flag_CXX=' -expect_unresolved \*'
75038                 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'
75039                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
75040                   echo "-hidden">> $lib.exp~
75041                   $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~
75042                   $RM $lib.exp'
75043                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
75044                 ;;
75045             esac
75046
75047             hardcode_libdir_separator_CXX=:
75048
75049             # Commands to make compiler produce verbose output that lists
75050             # what "hidden" libraries, object files and flags are used when
75051             # linking a shared library.
75052             #
75053             # There doesn't appear to be a way to prevent this compiler from
75054             # explicitly linking system object files so we need to strip them
75055             # from the output so that they don't get included in the library
75056             # dependencies.
75057             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"'
75058             ;;
75059           *)
75060             if test yes,no = "$GXX,$with_gnu_ld"; then
75061               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
75062               case $host in
75063                 osf3*)
75064                   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'
75065                   ;;
75066                 *)
75067                   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'
75068                   ;;
75069               esac
75070
75071               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
75072               hardcode_libdir_separator_CXX=:
75073
75074               # Commands to make compiler produce verbose output that lists
75075               # what "hidden" libraries, object files and flags are used when
75076               # linking a shared library.
75077               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
75078
75079             else
75080               # FIXME: insert proper C++ library support
75081               ld_shlibs_CXX=no
75082             fi
75083             ;;
75084         esac
75085         ;;
75086
75087       psos*)
75088         # FIXME: insert proper C++ library support
75089         ld_shlibs_CXX=no
75090         ;;
75091
75092       sunos4*)
75093         case $cc_basename in
75094           CC*)
75095             # Sun C++ 4.x
75096             # FIXME: insert proper C++ library support
75097             ld_shlibs_CXX=no
75098             ;;
75099           lcc*)
75100             # Lucid
75101             # FIXME: insert proper C++ library support
75102             ld_shlibs_CXX=no
75103             ;;
75104           *)
75105             # FIXME: insert proper C++ library support
75106             ld_shlibs_CXX=no
75107             ;;
75108         esac
75109         ;;
75110
75111       solaris*)
75112         case $cc_basename in
75113           CC* | sunCC*)
75114             # Sun C++ 4.2, 5.x and Centerline C++
75115             archive_cmds_need_lc_CXX=yes
75116             no_undefined_flag_CXX=' -zdefs'
75117             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
75118             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
75119               $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'
75120
75121             hardcode_libdir_flag_spec_CXX='-R$libdir'
75122             hardcode_shlibpath_var_CXX=no
75123             case $host_os in
75124               solaris2.[0-5] | solaris2.[0-5].*) ;;
75125               *)
75126                 # The compiler driver will combine and reorder linker options,
75127                 # but understands '-z linker_flag'.
75128                 # Supported since Solaris 2.6 (maybe 2.5.1?)
75129                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
75130                 ;;
75131             esac
75132             link_all_deplibs_CXX=yes
75133
75134             output_verbose_link_cmd='func_echo_all'
75135
75136             # Archives containing C++ object files must be created using
75137             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
75138             # necessary to make sure instantiated templates are included
75139             # in the archive.
75140             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
75141             ;;
75142           gcx*)
75143             # Green Hills C++ Compiler
75144             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
75145
75146             # The C++ compiler must be used to create the archive.
75147             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
75148             ;;
75149           *)
75150             # GNU C++ compiler with Solaris linker
75151             if test yes,no = "$GXX,$with_gnu_ld"; then
75152               no_undefined_flag_CXX=' $wl-z ${wl}defs'
75153               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
75154                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
75155                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
75156                   $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'
75157
75158                 # Commands to make compiler produce verbose output that lists
75159                 # what "hidden" libraries, object files and flags are used when
75160                 # linking a shared library.
75161                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
75162               else
75163                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
75164                 # platform.
75165                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
75166                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
75167                   $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'
75168
75169                 # Commands to make compiler produce verbose output that lists
75170                 # what "hidden" libraries, object files and flags are used when
75171                 # linking a shared library.
75172                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
75173               fi
75174
75175               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
75176               case $host_os in
75177                 solaris2.[0-5] | solaris2.[0-5].*) ;;
75178                 *)
75179                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
75180                   ;;
75181               esac
75182             fi
75183             ;;
75184         esac
75185         ;;
75186
75187     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
75188       no_undefined_flag_CXX='$wl-z,text'
75189       archive_cmds_need_lc_CXX=no
75190       hardcode_shlibpath_var_CXX=no
75191       runpath_var='LD_RUN_PATH'
75192
75193       case $cc_basename in
75194         CC*)
75195           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75196           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75197           ;;
75198         *)
75199           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75200           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75201           ;;
75202       esac
75203       ;;
75204
75205       sysv5* | sco3.2v5* | sco5v6*)
75206         # Note: We CANNOT use -z defs as we might desire, because we do not
75207         # link with -lc, and that would cause any symbols used from libc to
75208         # always be unresolved, which means just about no library would
75209         # ever link correctly.  If we're not using GNU ld we use -z text
75210         # though, which does catch some bad symbols but isn't as heavy-handed
75211         # as -z defs.
75212         no_undefined_flag_CXX='$wl-z,text'
75213         allow_undefined_flag_CXX='$wl-z,nodefs'
75214         archive_cmds_need_lc_CXX=no
75215         hardcode_shlibpath_var_CXX=no
75216         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
75217         hardcode_libdir_separator_CXX=':'
75218         link_all_deplibs_CXX=yes
75219         export_dynamic_flag_spec_CXX='$wl-Bexport'
75220         runpath_var='LD_RUN_PATH'
75221
75222         case $cc_basename in
75223           CC*)
75224             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75225             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75226             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
75227               '"$old_archive_cmds_CXX"
75228             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
75229               '"$reload_cmds_CXX"
75230             ;;
75231           *)
75232             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75233             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
75234             ;;
75235         esac
75236       ;;
75237
75238       tandem*)
75239         case $cc_basename in
75240           NCC*)
75241             # NonStop-UX NCC 3.20
75242             # FIXME: insert proper C++ library support
75243             ld_shlibs_CXX=no
75244             ;;
75245           *)
75246             # FIXME: insert proper C++ library support
75247             ld_shlibs_CXX=no
75248             ;;
75249         esac
75250         ;;
75251
75252       vxworks*)
75253         # FIXME: insert proper C++ library support
75254         ld_shlibs_CXX=no
75255         ;;
75256
75257       *)
75258         # FIXME: insert proper C++ library support
75259         ld_shlibs_CXX=no
75260         ;;
75261     esac
75262
75263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
75264 $as_echo "$ld_shlibs_CXX" >&6; }
75265     test no = "$ld_shlibs_CXX" && can_build_shared=no
75266
75267     GCC_CXX=$GXX
75268     LD_CXX=$LD
75269
75270     ## CAVEAT EMPTOR:
75271     ## There is no encapsulation within the following macros, do not change
75272     ## the running order or otherwise move them around unless you know exactly
75273     ## what you are doing...
75274     # Dependencies to place before and after the object being linked:
75275 predep_objects_CXX=
75276 postdep_objects_CXX=
75277 predeps_CXX=
75278 postdeps_CXX=
75279 compiler_lib_search_path_CXX=
75280
75281 cat > conftest.$ac_ext <<_LT_EOF
75282 class Foo
75283 {
75284 public:
75285   Foo (void) { a = 0; }
75286 private:
75287   int a;
75288 };
75289 _LT_EOF
75290
75291
75292 _lt_libdeps_save_CFLAGS=$CFLAGS
75293 case "$CC $CFLAGS " in #(
75294 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
75295 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
75296 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
75297 esac
75298
75299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
75300   (eval $ac_compile) 2>&5
75301   ac_status=$?
75302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75303   test $ac_status = 0; }; then
75304   # Parse the compiler output and extract the necessary
75305   # objects, libraries and library flags.
75306
75307   # Sentinel used to keep track of whether or not we are before
75308   # the conftest object file.
75309   pre_test_object_deps_done=no
75310
75311   for p in `eval "$output_verbose_link_cmd"`; do
75312     case $prev$p in
75313
75314     -L* | -R* | -l*)
75315        # Some compilers place space between "-{L,R}" and the path.
75316        # Remove the space.
75317        if test x-L = "$p" ||
75318           test x-R = "$p"; then
75319          prev=$p
75320          continue
75321        fi
75322
75323        # Expand the sysroot to ease extracting the directories later.
75324        if test -z "$prev"; then
75325          case $p in
75326          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
75327          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
75328          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
75329          esac
75330        fi
75331        case $p in
75332        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
75333        esac
75334        if test no = "$pre_test_object_deps_done"; then
75335          case $prev in
75336          -L | -R)
75337            # Internal compiler library paths should come after those
75338            # provided the user.  The postdeps already come after the
75339            # user supplied libs so there is no need to process them.
75340            if test -z "$compiler_lib_search_path_CXX"; then
75341              compiler_lib_search_path_CXX=$prev$p
75342            else
75343              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
75344            fi
75345            ;;
75346          # The "-l" case would never come before the object being
75347          # linked, so don't bother handling this case.
75348          esac
75349        else
75350          if test -z "$postdeps_CXX"; then
75351            postdeps_CXX=$prev$p
75352          else
75353            postdeps_CXX="${postdeps_CXX} $prev$p"
75354          fi
75355        fi
75356        prev=
75357        ;;
75358
75359     *.lto.$objext) ;; # Ignore GCC LTO objects
75360     *.$objext)
75361        # This assumes that the test object file only shows up
75362        # once in the compiler output.
75363        if test "$p" = "conftest.$objext"; then
75364          pre_test_object_deps_done=yes
75365          continue
75366        fi
75367
75368        if test no = "$pre_test_object_deps_done"; then
75369          if test -z "$predep_objects_CXX"; then
75370            predep_objects_CXX=$p
75371          else
75372            predep_objects_CXX="$predep_objects_CXX $p"
75373          fi
75374        else
75375          if test -z "$postdep_objects_CXX"; then
75376            postdep_objects_CXX=$p
75377          else
75378            postdep_objects_CXX="$postdep_objects_CXX $p"
75379          fi
75380        fi
75381        ;;
75382
75383     *) ;; # Ignore the rest.
75384
75385     esac
75386   done
75387
75388   # Clean up.
75389   rm -f a.out a.exe
75390 else
75391   echo "libtool.m4: error: problem compiling CXX test program"
75392 fi
75393
75394 $RM -f confest.$objext
75395 CFLAGS=$_lt_libdeps_save_CFLAGS
75396
75397 # PORTME: override above test on systems where it is broken
75398 case $host_os in
75399 interix[3-9]*)
75400   # Interix 3.5 installs completely hosed .la files for C++, so rather than
75401   # hack all around it, let's just trust "g++" to DTRT.
75402   predep_objects_CXX=
75403   postdep_objects_CXX=
75404   postdeps_CXX=
75405   ;;
75406 esac
75407
75408
75409 case " $postdeps_CXX " in
75410 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
75411 esac
75412  compiler_lib_search_dirs_CXX=
75413 if test -n "${compiler_lib_search_path_CXX}"; then
75414  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
75415 fi
75416
75417
75418
75419
75420
75421
75422
75423
75424
75425
75426
75427
75428
75429
75430
75431
75432
75433
75434
75435
75436
75437
75438
75439
75440
75441
75442
75443
75444
75445
75446
75447     lt_prog_compiler_wl_CXX=
75448 lt_prog_compiler_pic_CXX=
75449 lt_prog_compiler_static_CXX=
75450
75451
75452   # C++ specific cases for pic, static, wl, etc.
75453   if test yes = "$GXX"; then
75454     lt_prog_compiler_wl_CXX='-Wl,'
75455     lt_prog_compiler_static_CXX='-static'
75456
75457     case $host_os in
75458     aix*)
75459       # All AIX code is PIC.
75460       if test ia64 = "$host_cpu"; then
75461         # AIX 5 now supports IA64 processor
75462         lt_prog_compiler_static_CXX='-Bstatic'
75463       fi
75464       lt_prog_compiler_pic_CXX='-fPIC'
75465       ;;
75466
75467     amigaos*)
75468       case $host_cpu in
75469       powerpc)
75470             # see comment about AmigaOS4 .so support
75471             lt_prog_compiler_pic_CXX='-fPIC'
75472         ;;
75473       m68k)
75474             # FIXME: we need at least 68020 code to build shared libraries, but
75475             # adding the '-m68020' flag to GCC prevents building anything better,
75476             # like '-m68040'.
75477             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
75478         ;;
75479       esac
75480       ;;
75481
75482     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
75483       # PIC is the default for these OSes.
75484       ;;
75485     mingw* | cygwin* | os2* | pw32* | cegcc*)
75486       # This hack is so that the source file can tell whether it is being
75487       # built for inclusion in a dll (and should export symbols for example).
75488       # Although the cygwin gcc ignores -fPIC, still need this for old-style
75489       # (--disable-auto-import) libraries
75490       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
75491       case $host_os in
75492       os2*)
75493         lt_prog_compiler_static_CXX='$wl-static'
75494         ;;
75495       esac
75496       ;;
75497     darwin* | rhapsody*)
75498       # PIC is the default on this platform
75499       # Common symbols not allowed in MH_DYLIB files
75500       lt_prog_compiler_pic_CXX='-fno-common'
75501       ;;
75502     *djgpp*)
75503       # DJGPP does not support shared libraries at all
75504       lt_prog_compiler_pic_CXX=
75505       ;;
75506     haiku*)
75507       # PIC is the default for Haiku.
75508       # The "-static" flag exists, but is broken.
75509       lt_prog_compiler_static_CXX=
75510       ;;
75511     interix[3-9]*)
75512       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
75513       # Instead, we relocate shared libraries at runtime.
75514       ;;
75515     sysv4*MP*)
75516       if test -d /usr/nec; then
75517         lt_prog_compiler_pic_CXX=-Kconform_pic
75518       fi
75519       ;;
75520     hpux*)
75521       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
75522       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
75523       # sets the default TLS model and affects inlining.
75524       case $host_cpu in
75525       hppa*64*)
75526         ;;
75527       *)
75528         lt_prog_compiler_pic_CXX='-fPIC'
75529         ;;
75530       esac
75531       ;;
75532     *qnx* | *nto*)
75533       # QNX uses GNU C++, but need to define -shared option too, otherwise
75534       # it will coredump.
75535       lt_prog_compiler_pic_CXX='-fPIC -shared'
75536       ;;
75537     *)
75538       lt_prog_compiler_pic_CXX='-fPIC'
75539       ;;
75540     esac
75541   else
75542     case $host_os in
75543       aix[4-9]*)
75544         # All AIX code is PIC.
75545         if test ia64 = "$host_cpu"; then
75546           # AIX 5 now supports IA64 processor
75547           lt_prog_compiler_static_CXX='-Bstatic'
75548         else
75549           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
75550         fi
75551         ;;
75552       chorus*)
75553         case $cc_basename in
75554         cxch68*)
75555           # Green Hills C++ Compiler
75556           # _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"
75557           ;;
75558         esac
75559         ;;
75560       mingw* | cygwin* | os2* | pw32* | cegcc*)
75561         # This hack is so that the source file can tell whether it is being
75562         # built for inclusion in a dll (and should export symbols for example).
75563         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
75564         ;;
75565       dgux*)
75566         case $cc_basename in
75567           ec++*)
75568             lt_prog_compiler_pic_CXX='-KPIC'
75569             ;;
75570           ghcx*)
75571             # Green Hills C++ Compiler
75572             lt_prog_compiler_pic_CXX='-pic'
75573             ;;
75574           *)
75575             ;;
75576         esac
75577         ;;
75578       freebsd* | dragonfly*)
75579         # FreeBSD uses GNU C++
75580         ;;
75581       hpux9* | hpux10* | hpux11*)
75582         case $cc_basename in
75583           CC*)
75584             lt_prog_compiler_wl_CXX='-Wl,'
75585             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
75586             if test ia64 != "$host_cpu"; then
75587               lt_prog_compiler_pic_CXX='+Z'
75588             fi
75589             ;;
75590           aCC*)
75591             lt_prog_compiler_wl_CXX='-Wl,'
75592             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
75593             case $host_cpu in
75594             hppa*64*|ia64*)
75595               # +Z the default
75596               ;;
75597             *)
75598               lt_prog_compiler_pic_CXX='+Z'
75599               ;;
75600             esac
75601             ;;
75602           *)
75603             ;;
75604         esac
75605         ;;
75606       interix*)
75607         # This is c89, which is MS Visual C++ (no shared libs)
75608         # Anyone wants to do a port?
75609         ;;
75610       irix5* | irix6* | nonstopux*)
75611         case $cc_basename in
75612           CC*)
75613             lt_prog_compiler_wl_CXX='-Wl,'
75614             lt_prog_compiler_static_CXX='-non_shared'
75615             # CC pic flag -KPIC is the default.
75616             ;;
75617           *)
75618             ;;
75619         esac
75620         ;;
75621       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
75622         case $cc_basename in
75623           KCC*)
75624             # KAI C++ Compiler
75625             lt_prog_compiler_wl_CXX='--backend -Wl,'
75626             lt_prog_compiler_pic_CXX='-fPIC'
75627             ;;
75628           ecpc* )
75629             # old Intel C++ for x86_64, which still supported -KPIC.
75630             lt_prog_compiler_wl_CXX='-Wl,'
75631             lt_prog_compiler_pic_CXX='-KPIC'
75632             lt_prog_compiler_static_CXX='-static'
75633             ;;
75634           icpc* )
75635             # Intel C++, used to be incompatible with GCC.
75636             # ICC 10 doesn't accept -KPIC any more.
75637             lt_prog_compiler_wl_CXX='-Wl,'
75638             lt_prog_compiler_pic_CXX='-fPIC'
75639             lt_prog_compiler_static_CXX='-static'
75640             ;;
75641           pgCC* | pgcpp*)
75642             # Portland Group C++ compiler
75643             lt_prog_compiler_wl_CXX='-Wl,'
75644             lt_prog_compiler_pic_CXX='-fpic'
75645             lt_prog_compiler_static_CXX='-Bstatic'
75646             ;;
75647           cxx*)
75648             # Compaq C++
75649             # Make sure the PIC flag is empty.  It appears that all Alpha
75650             # Linux and Compaq Tru64 Unix objects are PIC.
75651             lt_prog_compiler_pic_CXX=
75652             lt_prog_compiler_static_CXX='-non_shared'
75653             ;;
75654           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
75655             # IBM XL 8.0, 9.0 on PPC and BlueGene
75656             lt_prog_compiler_wl_CXX='-Wl,'
75657             lt_prog_compiler_pic_CXX='-qpic'
75658             lt_prog_compiler_static_CXX='-qstaticlink'
75659             ;;
75660           *)
75661             case `$CC -V 2>&1 | sed 5q` in
75662             *Sun\ C*)
75663               # Sun C++ 5.9
75664               lt_prog_compiler_pic_CXX='-KPIC'
75665               lt_prog_compiler_static_CXX='-Bstatic'
75666               lt_prog_compiler_wl_CXX='-Qoption ld '
75667               ;;
75668             esac
75669             ;;
75670         esac
75671         ;;
75672       lynxos*)
75673         ;;
75674       m88k*)
75675         ;;
75676       mvs*)
75677         case $cc_basename in
75678           cxx*)
75679             lt_prog_compiler_pic_CXX='-W c,exportall'
75680             ;;
75681           *)
75682             ;;
75683         esac
75684         ;;
75685       netbsd*)
75686         ;;
75687       *qnx* | *nto*)
75688         # QNX uses GNU C++, but need to define -shared option too, otherwise
75689         # it will coredump.
75690         lt_prog_compiler_pic_CXX='-fPIC -shared'
75691         ;;
75692       osf3* | osf4* | osf5*)
75693         case $cc_basename in
75694           KCC*)
75695             lt_prog_compiler_wl_CXX='--backend -Wl,'
75696             ;;
75697           RCC*)
75698             # Rational C++ 2.4.1
75699             lt_prog_compiler_pic_CXX='-pic'
75700             ;;
75701           cxx*)
75702             # Digital/Compaq C++
75703             lt_prog_compiler_wl_CXX='-Wl,'
75704             # Make sure the PIC flag is empty.  It appears that all Alpha
75705             # Linux and Compaq Tru64 Unix objects are PIC.
75706             lt_prog_compiler_pic_CXX=
75707             lt_prog_compiler_static_CXX='-non_shared'
75708             ;;
75709           *)
75710             ;;
75711         esac
75712         ;;
75713       psos*)
75714         ;;
75715       solaris*)
75716         case $cc_basename in
75717           CC* | sunCC*)
75718             # Sun C++ 4.2, 5.x and Centerline C++
75719             lt_prog_compiler_pic_CXX='-KPIC'
75720             lt_prog_compiler_static_CXX='-Bstatic'
75721             lt_prog_compiler_wl_CXX='-Qoption ld '
75722             ;;
75723           gcx*)
75724             # Green Hills C++ Compiler
75725             lt_prog_compiler_pic_CXX='-PIC'
75726             ;;
75727           *)
75728             ;;
75729         esac
75730         ;;
75731       sunos4*)
75732         case $cc_basename in
75733           CC*)
75734             # Sun C++ 4.x
75735             lt_prog_compiler_pic_CXX='-pic'
75736             lt_prog_compiler_static_CXX='-Bstatic'
75737             ;;
75738           lcc*)
75739             # Lucid
75740             lt_prog_compiler_pic_CXX='-pic'
75741             ;;
75742           *)
75743             ;;
75744         esac
75745         ;;
75746       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
75747         case $cc_basename in
75748           CC*)
75749             lt_prog_compiler_wl_CXX='-Wl,'
75750             lt_prog_compiler_pic_CXX='-KPIC'
75751             lt_prog_compiler_static_CXX='-Bstatic'
75752             ;;
75753         esac
75754         ;;
75755       tandem*)
75756         case $cc_basename in
75757           NCC*)
75758             # NonStop-UX NCC 3.20
75759             lt_prog_compiler_pic_CXX='-KPIC'
75760             ;;
75761           *)
75762             ;;
75763         esac
75764         ;;
75765       vxworks*)
75766         ;;
75767       *)
75768         lt_prog_compiler_can_build_shared_CXX=no
75769         ;;
75770     esac
75771   fi
75772
75773 case $host_os in
75774   # For platforms that do not support PIC, -DPIC is meaningless:
75775   *djgpp*)
75776     lt_prog_compiler_pic_CXX=
75777     ;;
75778   *)
75779     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
75780     ;;
75781 esac
75782
75783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
75784 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
75785 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
75786   $as_echo_n "(cached) " >&6
75787 else
75788   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
75789 fi
75790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
75791 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
75792 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
75793
75794 #
75795 # Check to make sure the PIC flag actually works.
75796 #
75797 if test -n "$lt_prog_compiler_pic_CXX"; then
75798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
75799 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
75800 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
75801   $as_echo_n "(cached) " >&6
75802 else
75803   lt_cv_prog_compiler_pic_works_CXX=no
75804    ac_outfile=conftest.$ac_objext
75805    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
75806    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
75807    # Insert the option either (1) after the last *FLAGS variable, or
75808    # (2) before a word containing "conftest.", or (3) at the end.
75809    # Note that $ac_compile itself does not contain backslashes and begins
75810    # with a dollar sign (not a hyphen), so the echo should work correctly.
75811    # The option is referenced via a variable to avoid confusing sed.
75812    lt_compile=`echo "$ac_compile" | $SED \
75813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
75814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
75815    -e 's:$: $lt_compiler_flag:'`
75816    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
75817    (eval "$lt_compile" 2>conftest.err)
75818    ac_status=$?
75819    cat conftest.err >&5
75820    echo "$as_me:$LINENO: \$? = $ac_status" >&5
75821    if (exit $ac_status) && test -s "$ac_outfile"; then
75822      # The compiler can only warn and ignore the option if not recognized
75823      # So say no if there are warnings other than the usual output.
75824      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
75825      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
75826      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
75827        lt_cv_prog_compiler_pic_works_CXX=yes
75828      fi
75829    fi
75830    $RM conftest*
75831
75832 fi
75833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
75834 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
75835
75836 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
75837     case $lt_prog_compiler_pic_CXX in
75838      "" | " "*) ;;
75839      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
75840      esac
75841 else
75842     lt_prog_compiler_pic_CXX=
75843      lt_prog_compiler_can_build_shared_CXX=no
75844 fi
75845
75846 fi
75847
75848
75849
75850
75851
75852 #
75853 # Check to make sure the static flag actually works.
75854 #
75855 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
75856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
75857 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
75858 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
75859   $as_echo_n "(cached) " >&6
75860 else
75861   lt_cv_prog_compiler_static_works_CXX=no
75862    save_LDFLAGS=$LDFLAGS
75863    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
75864    echo "$lt_simple_link_test_code" > conftest.$ac_ext
75865    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
75866      # The linker can only warn and ignore the option if not recognized
75867      # So say no if there are warnings
75868      if test -s conftest.err; then
75869        # Append any errors to the config.log.
75870        cat conftest.err 1>&5
75871        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
75872        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
75873        if diff conftest.exp conftest.er2 >/dev/null; then
75874          lt_cv_prog_compiler_static_works_CXX=yes
75875        fi
75876      else
75877        lt_cv_prog_compiler_static_works_CXX=yes
75878      fi
75879    fi
75880    $RM -r conftest*
75881    LDFLAGS=$save_LDFLAGS
75882
75883 fi
75884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
75885 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
75886
75887 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
75888     :
75889 else
75890     lt_prog_compiler_static_CXX=
75891 fi
75892
75893
75894
75895
75896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
75897 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
75898 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
75899   $as_echo_n "(cached) " >&6
75900 else
75901   lt_cv_prog_compiler_c_o_CXX=no
75902    $RM -r conftest 2>/dev/null
75903    mkdir conftest
75904    cd conftest
75905    mkdir out
75906    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
75907
75908    lt_compiler_flag="-o out/conftest2.$ac_objext"
75909    # Insert the option either (1) after the last *FLAGS variable, or
75910    # (2) before a word containing "conftest.", or (3) at the end.
75911    # Note that $ac_compile itself does not contain backslashes and begins
75912    # with a dollar sign (not a hyphen), so the echo should work correctly.
75913    lt_compile=`echo "$ac_compile" | $SED \
75914    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
75915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
75916    -e 's:$: $lt_compiler_flag:'`
75917    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
75918    (eval "$lt_compile" 2>out/conftest.err)
75919    ac_status=$?
75920    cat out/conftest.err >&5
75921    echo "$as_me:$LINENO: \$? = $ac_status" >&5
75922    if (exit $ac_status) && test -s out/conftest2.$ac_objext
75923    then
75924      # The compiler can only warn and ignore the option if not recognized
75925      # So say no if there are warnings
75926      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
75927      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
75928      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
75929        lt_cv_prog_compiler_c_o_CXX=yes
75930      fi
75931    fi
75932    chmod u+w . 2>&5
75933    $RM conftest*
75934    # SGI C++ compiler will create directory out/ii_files/ for
75935    # template instantiation
75936    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
75937    $RM out/* && rmdir out
75938    cd ..
75939    $RM -r conftest
75940    $RM conftest*
75941
75942 fi
75943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
75944 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
75945
75946
75947
75948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
75949 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
75950 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
75951   $as_echo_n "(cached) " >&6
75952 else
75953   lt_cv_prog_compiler_c_o_CXX=no
75954    $RM -r conftest 2>/dev/null
75955    mkdir conftest
75956    cd conftest
75957    mkdir out
75958    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
75959
75960    lt_compiler_flag="-o out/conftest2.$ac_objext"
75961    # Insert the option either (1) after the last *FLAGS variable, or
75962    # (2) before a word containing "conftest.", or (3) at the end.
75963    # Note that $ac_compile itself does not contain backslashes and begins
75964    # with a dollar sign (not a hyphen), so the echo should work correctly.
75965    lt_compile=`echo "$ac_compile" | $SED \
75966    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
75967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
75968    -e 's:$: $lt_compiler_flag:'`
75969    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
75970    (eval "$lt_compile" 2>out/conftest.err)
75971    ac_status=$?
75972    cat out/conftest.err >&5
75973    echo "$as_me:$LINENO: \$? = $ac_status" >&5
75974    if (exit $ac_status) && test -s out/conftest2.$ac_objext
75975    then
75976      # The compiler can only warn and ignore the option if not recognized
75977      # So say no if there are warnings
75978      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
75979      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
75980      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
75981        lt_cv_prog_compiler_c_o_CXX=yes
75982      fi
75983    fi
75984    chmod u+w . 2>&5
75985    $RM conftest*
75986    # SGI C++ compiler will create directory out/ii_files/ for
75987    # template instantiation
75988    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
75989    $RM out/* && rmdir out
75990    cd ..
75991    $RM -r conftest
75992    $RM conftest*
75993
75994 fi
75995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
75996 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
75997
75998
75999
76000
76001 hard_links=nottested
76002 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
76003   # do not overwrite the value of need_locks provided by the user
76004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
76005 $as_echo_n "checking if we can lock with hard links... " >&6; }
76006   hard_links=yes
76007   $RM conftest*
76008   ln conftest.a conftest.b 2>/dev/null && hard_links=no
76009   touch conftest.a
76010   ln conftest.a conftest.b 2>&5 || hard_links=no
76011   ln conftest.a conftest.b 2>/dev/null && hard_links=no
76012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
76013 $as_echo "$hard_links" >&6; }
76014   if test no = "$hard_links"; then
76015     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
76016 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
76017     need_locks=warn
76018   fi
76019 else
76020   need_locks=no
76021 fi
76022
76023
76024
76025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
76026 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
76027
76028   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
76029   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
76030   case $host_os in
76031   aix[4-9]*)
76032     # If we're using GNU nm, then we don't want the "-C" option.
76033     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
76034     # Without the "-l" option, or with the "-B" option, AIX nm treats
76035     # weak defined symbols like other global defined symbols, whereas
76036     # GNU nm marks them as "W".
76037     # While the 'weak' keyword is ignored in the Export File, we need
76038     # it in the Import File for the 'aix-soname' feature, so we have
76039     # to replace the "-B" option with "-P" for AIX nm.
76040     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
76041       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'
76042     else
76043       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'
76044     fi
76045     ;;
76046   pw32*)
76047     export_symbols_cmds_CXX=$ltdll_cmds
76048     ;;
76049   cygwin* | mingw* | cegcc*)
76050     case $cc_basename in
76051     cl*)
76052       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
76053       ;;
76054     *)
76055       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'
76056       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
76057       ;;
76058     esac
76059     ;;
76060   *)
76061     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
76062     ;;
76063   esac
76064
76065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
76066 $as_echo "$ld_shlibs_CXX" >&6; }
76067 test no = "$ld_shlibs_CXX" && can_build_shared=no
76068
76069 with_gnu_ld_CXX=$with_gnu_ld
76070
76071
76072
76073
76074
76075
76076 #
76077 # Do we need to explicitly link libc?
76078 #
76079 case "x$archive_cmds_need_lc_CXX" in
76080 x|xyes)
76081   # Assume -lc should be added
76082   archive_cmds_need_lc_CXX=yes
76083
76084   if test yes,yes = "$GCC,$enable_shared"; then
76085     case $archive_cmds_CXX in
76086     *'~'*)
76087       # FIXME: we may have to deal with multi-command sequences.
76088       ;;
76089     '$CC '*)
76090       # Test whether the compiler implicitly links with -lc since on some
76091       # systems, -lgcc has to come before -lc. If gcc already passes -lc
76092       # to ld, don't add -lc before -lgcc.
76093       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
76094 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
76095 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
76096   $as_echo_n "(cached) " >&6
76097 else
76098   $RM conftest*
76099         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
76100
76101         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
76102   (eval $ac_compile) 2>&5
76103   ac_status=$?
76104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76105   test $ac_status = 0; } 2>conftest.err; then
76106           soname=conftest
76107           lib=conftest
76108           libobjs=conftest.$ac_objext
76109           deplibs=
76110           wl=$lt_prog_compiler_wl_CXX
76111           pic_flag=$lt_prog_compiler_pic_CXX
76112           compiler_flags=-v
76113           linker_flags=-v
76114           verstring=
76115           output_objdir=.
76116           libname=conftest
76117           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
76118           allow_undefined_flag_CXX=
76119           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
76120   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
76121   ac_status=$?
76122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76123   test $ac_status = 0; }
76124           then
76125             lt_cv_archive_cmds_need_lc_CXX=no
76126           else
76127             lt_cv_archive_cmds_need_lc_CXX=yes
76128           fi
76129           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
76130         else
76131           cat conftest.err 1>&5
76132         fi
76133         $RM conftest*
76134
76135 fi
76136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
76137 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
76138       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
76139       ;;
76140     esac
76141   fi
76142   ;;
76143 esac
76144
76145
76146
76147
76148
76149
76150
76151
76152
76153
76154
76155
76156
76157
76158
76159
76160
76161
76162
76163
76164
76165
76166
76167
76168
76169
76170
76171
76172
76173
76174
76175
76176
76177
76178
76179
76180
76181
76182
76183
76184
76185
76186
76187
76188
76189
76190
76191
76192
76193
76194
76195
76196
76197
76198
76199
76200
76201
76202
76203
76204
76205
76206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
76207 $as_echo_n "checking dynamic linker characteristics... " >&6; }
76208
76209 library_names_spec=
76210 libname_spec='lib$name'
76211 soname_spec=
76212 shrext_cmds=.so
76213 postinstall_cmds=
76214 postuninstall_cmds=
76215 finish_cmds=
76216 finish_eval=
76217 shlibpath_var=
76218 shlibpath_overrides_runpath=unknown
76219 version_type=none
76220 dynamic_linker="$host_os ld.so"
76221 sys_lib_dlsearch_path_spec="/lib /usr/lib"
76222 need_lib_prefix=unknown
76223 hardcode_into_libs=no
76224
76225 # when you set need_version to no, make sure it does not cause -set_version
76226 # flags to be left without arguments
76227 need_version=unknown
76228
76229
76230
76231 case $host_os in
76232 aix3*)
76233   version_type=linux # correct to gnu/linux during the next big refactor
76234   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
76235   shlibpath_var=LIBPATH
76236
76237   # AIX 3 has no versioning support, so we append a major version to the name.
76238   soname_spec='$libname$release$shared_ext$major'
76239   ;;
76240
76241 aix[4-9]*)
76242   version_type=linux # correct to gnu/linux during the next big refactor
76243   need_lib_prefix=no
76244   need_version=no
76245   hardcode_into_libs=yes
76246   if test ia64 = "$host_cpu"; then
76247     # AIX 5 supports IA64
76248     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
76249     shlibpath_var=LD_LIBRARY_PATH
76250   else
76251     # With GCC up to 2.95.x, collect2 would create an import file
76252     # for dependence libraries.  The import file would start with
76253     # the line '#! .'.  This would cause the generated library to
76254     # depend on '.', always an invalid library.  This was fixed in
76255     # development snapshots of GCC prior to 3.0.
76256     case $host_os in
76257       aix4 | aix4.[01] | aix4.[01].*)
76258       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
76259            echo ' yes '
76260            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
76261         :
76262       else
76263         can_build_shared=no
76264       fi
76265       ;;
76266     esac
76267     # Using Import Files as archive members, it is possible to support
76268     # filename-based versioning of shared library archives on AIX. While
76269     # this would work for both with and without runtime linking, it will
76270     # prevent static linking of such archives. So we do filename-based
76271     # shared library versioning with .so extension only, which is used
76272     # when both runtime linking and shared linking is enabled.
76273     # Unfortunately, runtime linking may impact performance, so we do
76274     # not want this to be the default eventually. Also, we use the
76275     # versioned .so libs for executables only if there is the -brtl
76276     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
76277     # To allow for filename-based versioning support, we need to create
76278     # libNAME.so.V as an archive file, containing:
76279     # *) an Import File, referring to the versioned filename of the
76280     #    archive as well as the shared archive member, telling the
76281     #    bitwidth (32 or 64) of that shared object, and providing the
76282     #    list of exported symbols of that shared object, eventually
76283     #    decorated with the 'weak' keyword
76284     # *) the shared object with the F_LOADONLY flag set, to really avoid
76285     #    it being seen by the linker.
76286     # At run time we better use the real file rather than another symlink,
76287     # but for link time we create the symlink libNAME.so -> libNAME.so.V
76288
76289     case $with_aix_soname,$aix_use_runtimelinking in
76290     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
76291     # soname into executable. Probably we can add versioning support to
76292     # collect2, so additional links can be useful in future.
76293     aix,yes) # traditional libtool
76294       dynamic_linker='AIX unversionable lib.so'
76295       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
76296       # instead of lib<name>.a to let people know that these are not
76297       # typical AIX shared libraries.
76298       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76299       ;;
76300     aix,no) # traditional AIX only
76301       dynamic_linker='AIX lib.a(lib.so.V)'
76302       # We preserve .a as extension for shared libraries through AIX4.2
76303       # and later when we are not doing run time linking.
76304       library_names_spec='$libname$release.a $libname.a'
76305       soname_spec='$libname$release$shared_ext$major'
76306       ;;
76307     svr4,*) # full svr4 only
76308       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
76309       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
76310       # We do not specify a path in Import Files, so LIBPATH fires.
76311       shlibpath_overrides_runpath=yes
76312       ;;
76313     *,yes) # both, prefer svr4
76314       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
76315       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
76316       # unpreferred sharedlib libNAME.a needs extra handling
76317       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"'
76318       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"'
76319       # We do not specify a path in Import Files, so LIBPATH fires.
76320       shlibpath_overrides_runpath=yes
76321       ;;
76322     *,no) # both, prefer aix
76323       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
76324       library_names_spec='$libname$release.a $libname.a'
76325       soname_spec='$libname$release$shared_ext$major'
76326       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
76327       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)'
76328       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"'
76329       ;;
76330     esac
76331     shlibpath_var=LIBPATH
76332   fi
76333   ;;
76334
76335 amigaos*)
76336   case $host_cpu in
76337   powerpc)
76338     # Since July 2007 AmigaOS4 officially supports .so libraries.
76339     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
76340     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76341     ;;
76342   m68k)
76343     library_names_spec='$libname.ixlibrary $libname.a'
76344     # Create ${libname}_ixlibrary.a entries in /sys/libs.
76345     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'
76346     ;;
76347   esac
76348   ;;
76349
76350 beos*)
76351   library_names_spec='$libname$shared_ext'
76352   dynamic_linker="$host_os ld.so"
76353   shlibpath_var=LIBRARY_PATH
76354   ;;
76355
76356 bsdi[45]*)
76357   version_type=linux # correct to gnu/linux during the next big refactor
76358   need_version=no
76359   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76360   soname_spec='$libname$release$shared_ext$major'
76361   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
76362   shlibpath_var=LD_LIBRARY_PATH
76363   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
76364   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
76365   # the default ld.so.conf also contains /usr/contrib/lib and
76366   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
76367   # libtool to hard-code these into programs
76368   ;;
76369
76370 cygwin* | mingw* | pw32* | cegcc*)
76371   version_type=windows
76372   shrext_cmds=.dll
76373   need_version=no
76374   need_lib_prefix=no
76375
76376   case $GCC,$cc_basename in
76377   yes,*)
76378     # gcc
76379     library_names_spec='$libname.dll.a'
76380     # DLL is installed to $(libdir)/../bin by postinstall_cmds
76381     postinstall_cmds='base_file=`basename \$file`~
76382       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
76383       dldir=$destdir/`dirname \$dlpath`~
76384       test -d \$dldir || mkdir -p \$dldir~
76385       $install_prog $dir/$dlname \$dldir/$dlname~
76386       chmod a+x \$dldir/$dlname~
76387       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
76388         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
76389       fi'
76390     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
76391       dlpath=$dir/\$dldll~
76392        $RM \$dlpath'
76393     shlibpath_overrides_runpath=yes
76394
76395     case $host_os in
76396     cygwin*)
76397       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
76398       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
76399
76400       ;;
76401     mingw* | cegcc*)
76402       # MinGW DLLs use traditional 'lib' prefix
76403       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
76404       ;;
76405     pw32*)
76406       # pw32 DLLs use 'pw' prefix rather than 'lib'
76407       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
76408       ;;
76409     esac
76410     dynamic_linker='Win32 ld.exe'
76411     ;;
76412
76413   *,cl*)
76414     # Native MSVC
76415     libname_spec='$name'
76416     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
76417     library_names_spec='$libname.dll.lib'
76418
76419     case $build_os in
76420     mingw*)
76421       sys_lib_search_path_spec=
76422       lt_save_ifs=$IFS
76423       IFS=';'
76424       for lt_path in $LIB
76425       do
76426         IFS=$lt_save_ifs
76427         # Let DOS variable expansion print the short 8.3 style file name.
76428         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
76429         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
76430       done
76431       IFS=$lt_save_ifs
76432       # Convert to MSYS style.
76433       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
76434       ;;
76435     cygwin*)
76436       # Convert to unix form, then to dos form, then back to unix form
76437       # but this time dos style (no spaces!) so that the unix form looks
76438       # like /cygdrive/c/PROGRA~1:/cygdr...
76439       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
76440       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
76441       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
76442       ;;
76443     *)
76444       sys_lib_search_path_spec=$LIB
76445       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
76446         # It is most probably a Windows format PATH.
76447         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
76448       else
76449         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
76450       fi
76451       # FIXME: find the short name or the path components, as spaces are
76452       # common. (e.g. "Program Files" -> "PROGRA~1")
76453       ;;
76454     esac
76455
76456     # DLL is installed to $(libdir)/../bin by postinstall_cmds
76457     postinstall_cmds='base_file=`basename \$file`~
76458       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
76459       dldir=$destdir/`dirname \$dlpath`~
76460       test -d \$dldir || mkdir -p \$dldir~
76461       $install_prog $dir/$dlname \$dldir/$dlname'
76462     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
76463       dlpath=$dir/\$dldll~
76464        $RM \$dlpath'
76465     shlibpath_overrides_runpath=yes
76466     dynamic_linker='Win32 link.exe'
76467     ;;
76468
76469   *)
76470     # Assume MSVC wrapper
76471     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
76472     dynamic_linker='Win32 ld.exe'
76473     ;;
76474   esac
76475   # FIXME: first we should search . and the directory the executable is in
76476   shlibpath_var=PATH
76477   ;;
76478
76479 darwin* | rhapsody*)
76480   dynamic_linker="$host_os dyld"
76481   version_type=darwin
76482   need_lib_prefix=no
76483   need_version=no
76484   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
76485   soname_spec='$libname$release$major$shared_ext'
76486   shlibpath_overrides_runpath=yes
76487   shlibpath_var=DYLD_LIBRARY_PATH
76488   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
76489
76490   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
76491   ;;
76492
76493 dgux*)
76494   version_type=linux # correct to gnu/linux during the next big refactor
76495   need_lib_prefix=no
76496   need_version=no
76497   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76498   soname_spec='$libname$release$shared_ext$major'
76499   shlibpath_var=LD_LIBRARY_PATH
76500   ;;
76501
76502 freebsd* | dragonfly*)
76503   # DragonFly does not have aout.  When/if they implement a new
76504   # versioning mechanism, adjust this.
76505   if test -x /usr/bin/objformat; then
76506     objformat=`/usr/bin/objformat`
76507   else
76508     case $host_os in
76509     freebsd[23].*) objformat=aout ;;
76510     *) objformat=elf ;;
76511     esac
76512   fi
76513   version_type=freebsd-$objformat
76514   case $version_type in
76515     freebsd-elf*)
76516       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76517       soname_spec='$libname$release$shared_ext$major'
76518       need_version=no
76519       need_lib_prefix=no
76520       ;;
76521     freebsd-*)
76522       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
76523       need_version=yes
76524       ;;
76525   esac
76526   shlibpath_var=LD_LIBRARY_PATH
76527   case $host_os in
76528   freebsd2.*)
76529     shlibpath_overrides_runpath=yes
76530     ;;
76531   freebsd3.[01]* | freebsdelf3.[01]*)
76532     shlibpath_overrides_runpath=yes
76533     hardcode_into_libs=yes
76534     ;;
76535   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
76536   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
76537     shlibpath_overrides_runpath=no
76538     hardcode_into_libs=yes
76539     ;;
76540   *) # from 4.6 on, and DragonFly
76541     shlibpath_overrides_runpath=yes
76542     hardcode_into_libs=yes
76543     ;;
76544   esac
76545   ;;
76546
76547 haiku*)
76548   version_type=linux # correct to gnu/linux during the next big refactor
76549   need_lib_prefix=no
76550   need_version=no
76551   dynamic_linker="$host_os runtime_loader"
76552   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76553   soname_spec='$libname$release$shared_ext$major'
76554   shlibpath_var=LIBRARY_PATH
76555   shlibpath_overrides_runpath=no
76556   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
76557   hardcode_into_libs=yes
76558   ;;
76559
76560 hpux9* | hpux10* | hpux11*)
76561   # Give a soname corresponding to the major version so that dld.sl refuses to
76562   # link against other versions.
76563   version_type=sunos
76564   need_lib_prefix=no
76565   need_version=no
76566   case $host_cpu in
76567   ia64*)
76568     shrext_cmds='.so'
76569     hardcode_into_libs=yes
76570     dynamic_linker="$host_os dld.so"
76571     shlibpath_var=LD_LIBRARY_PATH
76572     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
76573     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76574     soname_spec='$libname$release$shared_ext$major'
76575     if test 32 = "$HPUX_IA64_MODE"; then
76576       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
76577       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
76578     else
76579       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
76580       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
76581     fi
76582     ;;
76583   hppa*64*)
76584     shrext_cmds='.sl'
76585     hardcode_into_libs=yes
76586     dynamic_linker="$host_os dld.sl"
76587     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
76588     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
76589     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76590     soname_spec='$libname$release$shared_ext$major'
76591     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
76592     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
76593     ;;
76594   *)
76595     shrext_cmds='.sl'
76596     dynamic_linker="$host_os dld.sl"
76597     shlibpath_var=SHLIB_PATH
76598     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
76599     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76600     soname_spec='$libname$release$shared_ext$major'
76601     ;;
76602   esac
76603   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
76604   postinstall_cmds='chmod 555 $lib'
76605   # or fails outright, so override atomically:
76606   install_override_mode=555
76607   ;;
76608
76609 interix[3-9]*)
76610   version_type=linux # correct to gnu/linux during the next big refactor
76611   need_lib_prefix=no
76612   need_version=no
76613   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76614   soname_spec='$libname$release$shared_ext$major'
76615   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
76616   shlibpath_var=LD_LIBRARY_PATH
76617   shlibpath_overrides_runpath=no
76618   hardcode_into_libs=yes
76619   ;;
76620
76621 irix5* | irix6* | nonstopux*)
76622   case $host_os in
76623     nonstopux*) version_type=nonstopux ;;
76624     *)
76625         if test yes = "$lt_cv_prog_gnu_ld"; then
76626                 version_type=linux # correct to gnu/linux during the next big refactor
76627         else
76628                 version_type=irix
76629         fi ;;
76630   esac
76631   need_lib_prefix=no
76632   need_version=no
76633   soname_spec='$libname$release$shared_ext$major'
76634   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
76635   case $host_os in
76636   irix5* | nonstopux*)
76637     libsuff= shlibsuff=
76638     ;;
76639   *)
76640     case $LD in # libtool.m4 will add one of these switches to LD
76641     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
76642       libsuff= shlibsuff= libmagic=32-bit;;
76643     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
76644       libsuff=32 shlibsuff=N32 libmagic=N32;;
76645     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
76646       libsuff=64 shlibsuff=64 libmagic=64-bit;;
76647     *) libsuff= shlibsuff= libmagic=never-match;;
76648     esac
76649     ;;
76650   esac
76651   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
76652   shlibpath_overrides_runpath=no
76653   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
76654   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
76655   hardcode_into_libs=yes
76656   ;;
76657
76658 # No shared lib support for Linux oldld, aout, or coff.
76659 linux*oldld* | linux*aout* | linux*coff*)
76660   dynamic_linker=no
76661   ;;
76662
76663 linux*android*)
76664   version_type=none # Android doesn't support versioned libraries.
76665   need_lib_prefix=no
76666   need_version=no
76667   library_names_spec='$libname$release$shared_ext'
76668   soname_spec='$libname$release$shared_ext'
76669   finish_cmds=
76670   shlibpath_var=LD_LIBRARY_PATH
76671   shlibpath_overrides_runpath=yes
76672
76673   # This implies no fast_install, which is unacceptable.
76674   # Some rework will be needed to allow for fast_install
76675   # before this can be enabled.
76676   hardcode_into_libs=yes
76677
76678   dynamic_linker='Android linker'
76679   # Don't embed -rpath directories since the linker doesn't support them.
76680   hardcode_libdir_flag_spec_CXX='-L$libdir'
76681   ;;
76682
76683 # This must be glibc/ELF.
76684 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
76685   version_type=linux # correct to gnu/linux during the next big refactor
76686   need_lib_prefix=no
76687   need_version=no
76688   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76689   soname_spec='$libname$release$shared_ext$major'
76690   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
76691   shlibpath_var=LD_LIBRARY_PATH
76692   shlibpath_overrides_runpath=no
76693
76694   # Some binutils ld are patched to set DT_RUNPATH
76695   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
76696   $as_echo_n "(cached) " >&6
76697 else
76698   lt_cv_shlibpath_overrides_runpath=no
76699     save_LDFLAGS=$LDFLAGS
76700     save_libdir=$libdir
76701     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
76702          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
76703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76704 /* end confdefs.h.  */
76705
76706 int
76707 main ()
76708 {
76709
76710   ;
76711   return 0;
76712 }
76713 _ACEOF
76714 if ac_fn_cxx_try_link "$LINENO"; then :
76715   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
76716   lt_cv_shlibpath_overrides_runpath=yes
76717 fi
76718 fi
76719 rm -f core conftest.err conftest.$ac_objext \
76720     conftest$ac_exeext conftest.$ac_ext
76721     LDFLAGS=$save_LDFLAGS
76722     libdir=$save_libdir
76723
76724 fi
76725
76726   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
76727
76728   # This implies no fast_install, which is unacceptable.
76729   # Some rework will be needed to allow for fast_install
76730   # before this can be enabled.
76731   hardcode_into_libs=yes
76732
76733   # Ideally, we could use ldconfig to report *all* directores which are
76734   # searched for libraries, however this is still not possible.  Aside from not
76735   # being certain /sbin/ldconfig is available, command
76736   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
76737   # even though it is searched at run-time.  Try to do the best guess by
76738   # appending ld.so.conf contents (and includes) to the search path.
76739   if test -f /etc/ld.so.conf; then
76740     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' ' '`
76741     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
76742   fi
76743
76744   # We used to test for /lib/ld.so.1 and disable shared libraries on
76745   # powerpc, because MkLinux only supported shared libraries with the
76746   # GNU dynamic linker.  Since this was broken with cross compilers,
76747   # most powerpc-linux boxes support dynamic linking these days and
76748   # people can always --disable-shared, the test was removed, and we
76749   # assume the GNU/Linux dynamic linker is in use.
76750   dynamic_linker='GNU/Linux ld.so'
76751   ;;
76752
76753 netbsd*)
76754   version_type=sunos
76755   need_lib_prefix=no
76756   need_version=no
76757   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
76758     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
76759     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
76760     dynamic_linker='NetBSD (a.out) ld.so'
76761   else
76762     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76763     soname_spec='$libname$release$shared_ext$major'
76764     dynamic_linker='NetBSD ld.elf_so'
76765   fi
76766   shlibpath_var=LD_LIBRARY_PATH
76767   shlibpath_overrides_runpath=yes
76768   hardcode_into_libs=yes
76769   ;;
76770
76771 newsos6)
76772   version_type=linux # correct to gnu/linux during the next big refactor
76773   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76774   shlibpath_var=LD_LIBRARY_PATH
76775   shlibpath_overrides_runpath=yes
76776   ;;
76777
76778 *nto* | *qnx*)
76779   version_type=qnx
76780   need_lib_prefix=no
76781   need_version=no
76782   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76783   soname_spec='$libname$release$shared_ext$major'
76784   shlibpath_var=LD_LIBRARY_PATH
76785   shlibpath_overrides_runpath=no
76786   hardcode_into_libs=yes
76787   dynamic_linker='ldqnx.so'
76788   ;;
76789
76790 openbsd* | bitrig*)
76791   version_type=sunos
76792   sys_lib_dlsearch_path_spec=/usr/lib
76793   need_lib_prefix=no
76794   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
76795     need_version=no
76796   else
76797     need_version=yes
76798   fi
76799   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
76800   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
76801   shlibpath_var=LD_LIBRARY_PATH
76802   shlibpath_overrides_runpath=yes
76803   ;;
76804
76805 os2*)
76806   libname_spec='$name'
76807   version_type=windows
76808   shrext_cmds=.dll
76809   need_version=no
76810   need_lib_prefix=no
76811   # OS/2 can only load a DLL with a base name of 8 characters or less.
76812   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
76813     v=$($ECHO $release$versuffix | tr -d .-);
76814     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
76815     $ECHO $n$v`$shared_ext'
76816   library_names_spec='${libname}_dll.$libext'
76817   dynamic_linker='OS/2 ld.exe'
76818   shlibpath_var=BEGINLIBPATH
76819   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
76820   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
76821   postinstall_cmds='base_file=`basename \$file`~
76822     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
76823     dldir=$destdir/`dirname \$dlpath`~
76824     test -d \$dldir || mkdir -p \$dldir~
76825     $install_prog $dir/$dlname \$dldir/$dlname~
76826     chmod a+x \$dldir/$dlname~
76827     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
76828       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
76829     fi'
76830   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
76831     dlpath=$dir/\$dldll~
76832     $RM \$dlpath'
76833   ;;
76834
76835 osf3* | osf4* | osf5*)
76836   version_type=osf
76837   need_lib_prefix=no
76838   need_version=no
76839   soname_spec='$libname$release$shared_ext$major'
76840   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76841   shlibpath_var=LD_LIBRARY_PATH
76842   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
76843   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
76844   ;;
76845
76846 rdos*)
76847   dynamic_linker=no
76848   ;;
76849
76850 solaris*)
76851   version_type=linux # correct to gnu/linux during the next big refactor
76852   need_lib_prefix=no
76853   need_version=no
76854   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76855   soname_spec='$libname$release$shared_ext$major'
76856   shlibpath_var=LD_LIBRARY_PATH
76857   shlibpath_overrides_runpath=yes
76858   hardcode_into_libs=yes
76859   # ldd complains unless libraries are executable
76860   postinstall_cmds='chmod +x $lib'
76861   ;;
76862
76863 sunos4*)
76864   version_type=sunos
76865   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
76866   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
76867   shlibpath_var=LD_LIBRARY_PATH
76868   shlibpath_overrides_runpath=yes
76869   if test yes = "$with_gnu_ld"; then
76870     need_lib_prefix=no
76871   fi
76872   need_version=yes
76873   ;;
76874
76875 sysv4 | sysv4.3*)
76876   version_type=linux # correct to gnu/linux during the next big refactor
76877   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76878   soname_spec='$libname$release$shared_ext$major'
76879   shlibpath_var=LD_LIBRARY_PATH
76880   case $host_vendor in
76881     sni)
76882       shlibpath_overrides_runpath=no
76883       need_lib_prefix=no
76884       runpath_var=LD_RUN_PATH
76885       ;;
76886     siemens)
76887       need_lib_prefix=no
76888       ;;
76889     motorola)
76890       need_lib_prefix=no
76891       need_version=no
76892       shlibpath_overrides_runpath=no
76893       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
76894       ;;
76895   esac
76896   ;;
76897
76898 sysv4*MP*)
76899   if test -d /usr/nec; then
76900     version_type=linux # correct to gnu/linux during the next big refactor
76901     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
76902     soname_spec='$libname$shared_ext.$major'
76903     shlibpath_var=LD_LIBRARY_PATH
76904   fi
76905   ;;
76906
76907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
76908   version_type=sco
76909   need_lib_prefix=no
76910   need_version=no
76911   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
76912   soname_spec='$libname$release$shared_ext$major'
76913   shlibpath_var=LD_LIBRARY_PATH
76914   shlibpath_overrides_runpath=yes
76915   hardcode_into_libs=yes
76916   if test yes = "$with_gnu_ld"; then
76917     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
76918   else
76919     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
76920     case $host_os in
76921       sco3.2v5*)
76922         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
76923         ;;
76924     esac
76925   fi
76926   sys_lib_dlsearch_path_spec='/usr/lib'
76927   ;;
76928
76929 tpf*)
76930   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
76931   version_type=linux # correct to gnu/linux during the next big refactor
76932   need_lib_prefix=no
76933   need_version=no
76934   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76935   shlibpath_var=LD_LIBRARY_PATH
76936   shlibpath_overrides_runpath=no
76937   hardcode_into_libs=yes
76938   ;;
76939
76940 uts4*)
76941   version_type=linux # correct to gnu/linux during the next big refactor
76942   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
76943   soname_spec='$libname$release$shared_ext$major'
76944   shlibpath_var=LD_LIBRARY_PATH
76945   ;;
76946
76947 *)
76948   dynamic_linker=no
76949   ;;
76950 esac
76951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
76952 $as_echo "$dynamic_linker" >&6; }
76953 test no = "$dynamic_linker" && can_build_shared=no
76954
76955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
76956 if test yes = "$GCC"; then
76957   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
76958 fi
76959
76960 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
76961   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
76962 fi
76963
76964 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
76965   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
76966 fi
76967
76968 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
76969 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
76970
76971 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
76972 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
76973
76974 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
76975 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
76976
76977
76978
76979
76980
76981
76982
76983
76984
76985
76986
76987
76988
76989
76990
76991
76992
76993
76994
76995
76996
76997
76998
76999
77000
77001
77002
77003
77004
77005
77006
77007
77008
77009
77010
77011
77012
77013
77014
77015
77016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
77017 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
77018 hardcode_action_CXX=
77019 if test -n "$hardcode_libdir_flag_spec_CXX" ||
77020    test -n "$runpath_var_CXX" ||
77021    test yes = "$hardcode_automatic_CXX"; then
77022
77023   # We can hardcode non-existent directories.
77024   if test no != "$hardcode_direct_CXX" &&
77025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
77026      # have to relink, otherwise we might link with an installed library
77027      # when we should be linking with a yet-to-be-installed one
77028      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
77029      test no != "$hardcode_minus_L_CXX"; then
77030     # Linking always hardcodes the temporary library directory.
77031     hardcode_action_CXX=relink
77032   else
77033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
77034     hardcode_action_CXX=immediate
77035   fi
77036 else
77037   # We cannot hardcode anything, or else we can only hardcode existing
77038   # directories.
77039   hardcode_action_CXX=unsupported
77040 fi
77041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
77042 $as_echo "$hardcode_action_CXX" >&6; }
77043
77044 if test relink = "$hardcode_action_CXX" ||
77045    test yes = "$inherit_rpath_CXX"; then
77046   # Fast installation is not supported
77047   enable_fast_install=no
77048 elif test yes = "$shlibpath_overrides_runpath" ||
77049      test no = "$enable_shared"; then
77050   # Fast installation is not necessary
77051   enable_fast_install=needless
77052 fi
77053
77054
77055
77056
77057
77058
77059
77060   fi # test -n "$compiler"
77061
77062   CC=$lt_save_CC
77063   CFLAGS=$lt_save_CFLAGS
77064   LDCXX=$LD
77065   LD=$lt_save_LD
77066   GCC=$lt_save_GCC
77067   with_gnu_ld=$lt_save_with_gnu_ld
77068   lt_cv_path_LDCXX=$lt_cv_path_LD
77069   lt_cv_path_LD=$lt_save_path_LD
77070   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
77071   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
77072 fi # test yes != "$_lt_caught_CXX_error"
77073
77074 ac_ext=c
77075 ac_cpp='$CPP $CPPFLAGS'
77076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
77077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
77078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
77079
77080
77081
77082 if test "${enable_libasprintf+set}" = set; then
77083   if test "$enable_libasprintf" != no; then
77084     TESTLIBASPRINTF=yes
77085   else
77086     TESTLIBASPRINTF=no
77087   fi
77088 else
77089   TESTLIBASPRINTF=yes
77090 fi
77091 if test "$CXX" = no; then
77092   TESTLIBASPRINTF=no
77093 fi
77094
77095
77096 test -d intl || mkdir intl
77097 echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
77098
77099
77100
77101 subdirs="$subdirs examples"
77102
77103
77104 ac_config_files="$ac_config_files Makefile"
77105
77106
77107 ac_config_files="$ac_config_files doc/Makefile"
77108
77109
77110 ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in"
77111
77112
77113 ac_config_files="$ac_config_files its/Makefile"
77114
77115
77116 ac_config_files="$ac_config_files gnulib-lib/Makefile"
77117
77118
77119 ac_config_files="$ac_config_files libgrep/Makefile"
77120
77121
77122 ac_config_files="$ac_config_files src/Makefile"
77123
77124 ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in"
77125
77126
77127 ac_config_files="$ac_config_files libgettextpo/Makefile"
77128
77129 ac_config_files="$ac_config_files libgettextpo/exported.sh"
77130
77131
77132 ac_config_files="$ac_config_files po/Makefile.in"
77133
77134
77135 ac_config_files="$ac_config_files projects/Makefile"
77136
77137
77138 ac_config_files="$ac_config_files styles/Makefile"
77139
77140
77141 ac_config_files="$ac_config_files misc/Makefile"
77142
77143 ac_config_files="$ac_config_files misc/gettextize"
77144
77145 ac_config_files="$ac_config_files misc/autopoint"
77146
77147 ac_config_files="$ac_config_files misc/convert-archive"
77148
77149
77150 ac_config_files="$ac_config_files man/Makefile"
77151
77152 ac_config_files="$ac_config_files man/x-to-1"
77153
77154
77155 ac_config_files="$ac_config_files m4/Makefile"
77156
77157
77158 ac_config_files="$ac_config_files tests/Makefile"
77159
77160
77161 ac_config_files="$ac_config_files tests/init-env"
77162
77163
77164 ac_config_files="$ac_config_files gnulib-tests/Makefile"
77165
77166
77167 cat >confcache <<\_ACEOF
77168 # This file is a shell script that caches the results of configure
77169 # tests run on this system so they can be shared between configure
77170 # scripts and configure runs, see configure's option --config-cache.
77171 # It is not useful on other systems.  If it contains results you don't
77172 # want to keep, you may remove or edit it.
77173 #
77174 # config.status only pays attention to the cache file if you give it
77175 # the --recheck option to rerun configure.
77176 #
77177 # `ac_cv_env_foo' variables (set or unset) will be overridden when
77178 # loading this file, other *unset* `ac_cv_foo' will be assigned the
77179 # following values.
77180
77181 _ACEOF
77182
77183 # The following way of writing the cache mishandles newlines in values,
77184 # but we know of no workaround that is simple, portable, and efficient.
77185 # So, we kill variables containing newlines.
77186 # Ultrix sh set writes to stderr and can't be redirected directly,
77187 # and sets the high bit in the cache file unless we assign to the vars.
77188 (
77189   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
77190     eval ac_val=\$$ac_var
77191     case $ac_val in #(
77192     *${as_nl}*)
77193       case $ac_var in #(
77194       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
77195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
77196       esac
77197       case $ac_var in #(
77198       _ | IFS | as_nl) ;; #(
77199       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
77200       *) { eval $ac_var=; unset $ac_var;} ;;
77201       esac ;;
77202     esac
77203   done
77204
77205   (set) 2>&1 |
77206     case $as_nl`(ac_space=' '; set) 2>&1` in #(
77207     *${as_nl}ac_space=\ *)
77208       # `set' does not quote correctly, so add quotes: double-quote
77209       # substitution turns \\\\ into \\, and sed turns \\ into \.
77210       sed -n \
77211         "s/'/'\\\\''/g;
77212           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
77213       ;; #(
77214     *)
77215       # `set' quotes correctly as required by POSIX, so do not add quotes.
77216       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
77217       ;;
77218     esac |
77219     sort
77220 ) |
77221   sed '
77222      /^ac_cv_env_/b end
77223      t clear
77224      :clear
77225      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
77226      t end
77227      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
77228      :end' >>confcache
77229 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
77230   if test -w "$cache_file"; then
77231     if test "x$cache_file" != "x/dev/null"; then
77232       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
77233 $as_echo "$as_me: updating cache $cache_file" >&6;}
77234       if test ! -f "$cache_file" || test -h "$cache_file"; then
77235         cat confcache >"$cache_file"
77236       else
77237         case $cache_file in #(
77238         */* | ?:*)
77239           mv -f confcache "$cache_file"$$ &&
77240           mv -f "$cache_file"$$ "$cache_file" ;; #(
77241         *)
77242           mv -f confcache "$cache_file" ;;
77243         esac
77244       fi
77245     fi
77246   else
77247     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
77248 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
77249   fi
77250 fi
77251 rm -f confcache
77252
77253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
77254 # Let make expand exec_prefix.
77255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
77256
77257 DEFS=-DHAVE_CONFIG_H
77258
77259 ac_libobjs=
77260 ac_ltlibobjs=
77261 U=
77262 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
77263   # 1. Remove the extension, and $U if already installed.
77264   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
77265   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
77266   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
77267   #    will be set to the directory where LIBOBJS objects are built.
77268   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
77269   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
77270 done
77271 LIBOBJS=$ac_libobjs
77272
77273 LTLIBOBJS=$ac_ltlibobjs
77274
77275
77276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
77277 $as_echo_n "checking that generated files are newer than configure... " >&6; }
77278    if test -n "$am_sleep_pid"; then
77279      # Hide warnings about reused PIDs.
77280      wait $am_sleep_pid 2>/dev/null
77281    fi
77282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
77283 $as_echo "done" >&6; }
77284  if test -n "$EXEEXT"; then
77285   am__EXEEXT_TRUE=
77286   am__EXEEXT_FALSE='#'
77287 else
77288   am__EXEEXT_TRUE='#'
77289   am__EXEEXT_FALSE=
77290 fi
77291
77292 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
77293   as_fn_error $? "conditional \"AMDEP\" was never defined.
77294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77295 fi
77296 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
77297   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
77298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77299 fi
77300 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
77301   as_fn_error $? "conditional \"WOE32\" was never defined.
77302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77303 fi
77304 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
77305   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
77306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77307 fi
77308 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
77309   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
77310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77311 fi
77312 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
77313   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
77314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77315 fi
77316 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
77317   as_fn_error $? "conditional \"ANSICXX\" was never defined.
77318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77319 fi
77320 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
77321   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
77322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77323 fi
77324 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
77325   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
77326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77327 fi
77328 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
77329   as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
77330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77331 fi
77332 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
77333   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
77334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77335 fi
77336 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
77337   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
77338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77339 fi
77340 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
77341   as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
77342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77343 fi
77344 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
77345   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
77346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77347 fi
77348 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
77349   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
77350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77351 fi
77352
77353
77354 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
77355   as_fn_error $? "conditional \"INCLUDED_LIBGLIB\" was never defined.
77356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77357 fi
77358 if test -z "${INCLUDED_LIBCROCO_TRUE}" && test -z "${INCLUDED_LIBCROCO_FALSE}"; then
77359   as_fn_error $? "conditional \"INCLUDED_LIBCROCO\" was never defined.
77360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77361 fi
77362 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
77363   as_fn_error $? "conditional \"INCLUDED_LIBGLIB\" was never defined.
77364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77365 fi
77366 if test -z "${INCLUDED_LIBXML_TRUE}" && test -z "${INCLUDED_LIBXML_FALSE}"; then
77367   as_fn_error $? "conditional \"INCLUDED_LIBXML\" was never defined.
77368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77369 fi
77370 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
77371   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
77372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77373 fi
77374 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
77375   as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
77376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77377 fi
77378 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
77379   as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
77380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77381 fi
77382 if test -z "${GL_GENERATE_SCHED_H_TRUE}" && test -z "${GL_GENERATE_SCHED_H_FALSE}"; then
77383   as_fn_error $? "conditional \"GL_GENERATE_SCHED_H\" was never defined.
77384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77385 fi
77386 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
77387   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
77388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77389 fi
77390 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
77391   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
77392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77393 fi
77394 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
77395   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
77396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77397 fi
77398 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
77399   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
77400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77401 fi
77402 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
77403   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
77404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77405 fi
77406 if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE}"; then
77407   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE\" was never defined.
77408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77409 fi
77410 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
77411   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
77412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77413 fi
77414 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
77415   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
77416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77417 fi
77418 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
77419   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
77420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77421 fi
77422 if test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE}"; then
77423   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINAME_UNINAME\" was never defined.
77424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77425 fi
77426 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
77427   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
77428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77429 fi
77430 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
77431   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
77432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77433 fi
77434 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
77435   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
77436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77437 fi
77438 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
77439   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
77440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77441 fi
77442 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
77443   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
77444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77445 fi
77446 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
77447   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
77448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77449 fi
77450 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
77451   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
77452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77453 fi
77454 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
77455   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
77456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77457 fi
77458 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
77459   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
77460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77461 fi
77462
77463     gl_libobjs=
77464     gl_ltlibobjs=
77465     if test -n "$gl_LIBOBJS"; then
77466       # Remove the extension.
77467       sed_drop_objext='s/\.o$//;s/\.obj$//'
77468       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77469         gl_libobjs="$gl_libobjs $i.$ac_objext"
77470         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
77471       done
77472     fi
77473     gl_LIBOBJS=$gl_libobjs
77474
77475     gl_LTLIBOBJS=$gl_ltlibobjs
77476
77477
77478
77479
77480
77481
77482 if test -z "${POSIX_SPAWN_PORTED_TRUE}" && test -z "${POSIX_SPAWN_PORTED_FALSE}"; then
77483   as_fn_error $? "conditional \"POSIX_SPAWN_PORTED\" was never defined.
77484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77485 fi
77486 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
77487   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
77488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77489 fi
77490 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE}"; then
77491   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CMP\" was never defined.
77492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77493 fi
77494 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE}"; then
77495   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN\" was never defined.
77496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77497 fi
77498
77499     gltests_libobjs=
77500     gltests_ltlibobjs=
77501     if test -n "$gltests_LIBOBJS"; then
77502       # Remove the extension.
77503       sed_drop_objext='s/\.o$//;s/\.obj$//'
77504       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77505         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
77506         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
77507       done
77508     fi
77509     gltests_LIBOBJS=$gltests_libobjs
77510
77511     gltests_LTLIBOBJS=$gltests_ltlibobjs
77512
77513
77514 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
77515   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
77516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77517 fi
77518
77519     grgl_libobjs=
77520     grgl_ltlibobjs=
77521     if test -n "$grgl_LIBOBJS"; then
77522       # Remove the extension.
77523       sed_drop_objext='s/\.o$//;s/\.obj$//'
77524       for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77525         grgl_libobjs="$grgl_libobjs $i.$ac_objext"
77526         grgl_ltlibobjs="$grgl_ltlibobjs $i.lo"
77527       done
77528     fi
77529     grgl_LIBOBJS=$grgl_libobjs
77530
77531     grgl_LTLIBOBJS=$grgl_ltlibobjs
77532
77533
77534
77535     grgltests_libobjs=
77536     grgltests_ltlibobjs=
77537     if test -n "$grgltests_LIBOBJS"; then
77538       # Remove the extension.
77539       sed_drop_objext='s/\.o$//;s/\.obj$//'
77540       for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77541         grgltests_libobjs="$grgltests_libobjs $i.$ac_objext"
77542         grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo"
77543       done
77544     fi
77545     grgltests_LIBOBJS=$grgltests_libobjs
77546
77547     grgltests_LTLIBOBJS=$grgltests_ltlibobjs
77548
77549
77550 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
77551   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
77552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77553 fi
77554 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
77555   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
77556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77557 fi
77558 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
77559   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
77560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77561 fi
77562 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
77563   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
77564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77565 fi
77566 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
77567   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
77568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77569 fi
77570 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
77571   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
77572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77573 fi
77574 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
77575   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
77576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77577 fi
77578 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
77579   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
77580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77581 fi
77582 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
77583   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
77584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77585 fi
77586 if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA_FALSE}"; then
77587   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_ALPHA\" was never defined.
77588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77589 fi
77590 if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE_FALSE}"; then
77591   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CTYPE_SPACE\" was never defined.
77592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77593 fi
77594 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
77595   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
77596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77597 fi
77598 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
77599   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
77600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77601 fi
77602 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
77603   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
77604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77605 fi
77606 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
77607   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
77608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77609 fi
77610 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
77611   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
77612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77613 fi
77614 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
77615   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
77616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77617 fi
77618 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
77619   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
77620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77621 fi
77622 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
77623   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
77624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77625 fi
77626 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
77627   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
77628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77629 fi
77630 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_NEXT_FALSE}"; then
77631   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_NEXT\" was never defined.
77632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77633 fi
77634 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
77635   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
77636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77637 fi
77638 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC_FALSE}"; then
77639   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRMBTOUC\" was never defined.
77640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77641 fi
77642 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
77643   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
77644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77645 fi
77646 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
77647   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
77648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77649 fi
77650
77651     gtpo_libobjs=
77652     gtpo_ltlibobjs=
77653     if test -n "$gtpo_LIBOBJS"; then
77654       # Remove the extension.
77655       sed_drop_objext='s/\.o$//;s/\.obj$//'
77656       for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77657         gtpo_libobjs="$gtpo_libobjs $i.$ac_objext"
77658         gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo"
77659       done
77660     fi
77661     gtpo_LIBOBJS=$gtpo_libobjs
77662
77663     gtpo_LTLIBOBJS=$gtpo_ltlibobjs
77664
77665
77666
77667     gtpotests_libobjs=
77668     gtpotests_ltlibobjs=
77669     if test -n "$gtpotests_LIBOBJS"; then
77670       # Remove the extension.
77671       sed_drop_objext='s/\.o$//;s/\.obj$//'
77672       for i in `for i in $gtpotests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
77673         gtpotests_libobjs="$gtpotests_libobjs $i.$ac_objext"
77674         gtpotests_ltlibobjs="$gtpotests_ltlibobjs $i.lo"
77675       done
77676     fi
77677     gtpotests_LIBOBJS=$gtpotests_libobjs
77678
77679     gtpotests_LTLIBOBJS=$gtpotests_ltlibobjs
77680
77681
77682 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
77683   as_fn_error $? "conditional \"WOE32DLL\" was never defined.
77684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77685 fi
77686 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
77687   as_fn_error $? "conditional \"ANSICXX\" was never defined.
77688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77689 fi
77690 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
77691   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
77692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77693 fi
77694 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
77695   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
77696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77697 fi
77698 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
77699   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
77700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
77701 fi
77702
77703 : "${CONFIG_STATUS=./config.status}"
77704 ac_write_fail=0
77705 ac_clean_files_save=$ac_clean_files
77706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
77707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
77708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
77709 as_write_fail=0
77710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
77711 #! $SHELL
77712 # Generated by $as_me.
77713 # Run this file to recreate the current configuration.
77714 # Compiler output produced by configure, useful for debugging
77715 # configure, is in config.log if it exists.
77716
77717 debug=false
77718 ac_cs_recheck=false
77719 ac_cs_silent=false
77720
77721 SHELL=\${CONFIG_SHELL-$SHELL}
77722 export SHELL
77723 _ASEOF
77724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
77725 ## -------------------- ##
77726 ## M4sh Initialization. ##
77727 ## -------------------- ##
77728
77729 # Be more Bourne compatible
77730 DUALCASE=1; export DUALCASE # for MKS sh
77731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
77732   emulate sh
77733   NULLCMD=:
77734   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
77735   # is contrary to our usage.  Disable this feature.
77736   alias -g '${1+"$@"}'='"$@"'
77737   setopt NO_GLOB_SUBST
77738 else
77739   case `(set -o) 2>/dev/null` in #(
77740   *posix*) :
77741     set -o posix ;; #(
77742   *) :
77743      ;;
77744 esac
77745 fi
77746
77747
77748 as_nl='
77749 '
77750 export as_nl
77751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
77752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
77753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
77754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
77755 # Prefer a ksh shell builtin over an external printf program on Solaris,
77756 # but without wasting forks for bash or zsh.
77757 if test -z "$BASH_VERSION$ZSH_VERSION" \
77758     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
77759   as_echo='print -r --'
77760   as_echo_n='print -rn --'
77761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
77762   as_echo='printf %s\n'
77763   as_echo_n='printf %s'
77764 else
77765   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
77766     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
77767     as_echo_n='/usr/ucb/echo -n'
77768   else
77769     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
77770     as_echo_n_body='eval
77771       arg=$1;
77772       case $arg in #(
77773       *"$as_nl"*)
77774         expr "X$arg" : "X\\(.*\\)$as_nl";
77775         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
77776       esac;
77777       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
77778     '
77779     export as_echo_n_body
77780     as_echo_n='sh -c $as_echo_n_body as_echo'
77781   fi
77782   export as_echo_body
77783   as_echo='sh -c $as_echo_body as_echo'
77784 fi
77785
77786 # The user is always right.
77787 if test "${PATH_SEPARATOR+set}" != set; then
77788   PATH_SEPARATOR=:
77789   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77790     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77791       PATH_SEPARATOR=';'
77792   }
77793 fi
77794
77795
77796 # IFS
77797 # We need space, tab and new line, in precisely that order.  Quoting is
77798 # there to prevent editors from complaining about space-tab.
77799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
77800 # splitting by setting IFS to empty value.)
77801 IFS=" ""        $as_nl"
77802
77803 # Find who we are.  Look in the path if we contain no directory separator.
77804 as_myself=
77805 case $0 in #((
77806   *[\\/]* ) as_myself=$0 ;;
77807   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77808 for as_dir in $PATH
77809 do
77810   IFS=$as_save_IFS
77811   test -z "$as_dir" && as_dir=.
77812     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77813   done
77814 IFS=$as_save_IFS
77815
77816      ;;
77817 esac
77818 # We did not find ourselves, most probably we were run as `sh COMMAND'
77819 # in which case we are not to be found in the path.
77820 if test "x$as_myself" = x; then
77821   as_myself=$0
77822 fi
77823 if test ! -f "$as_myself"; then
77824   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
77825   exit 1
77826 fi
77827
77828 # Unset variables that we do not need and which cause bugs (e.g. in
77829 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
77830 # suppresses any "Segmentation fault" message there.  '((' could
77831 # trigger a bug in pdksh 5.2.14.
77832 for as_var in BASH_ENV ENV MAIL MAILPATH
77833 do eval test x\${$as_var+set} = xset \
77834   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
77835 done
77836 PS1='$ '
77837 PS2='> '
77838 PS4='+ '
77839
77840 # NLS nuisances.
77841 LC_ALL=C
77842 export LC_ALL
77843 LANGUAGE=C
77844 export LANGUAGE
77845
77846 # CDPATH.
77847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
77848
77849
77850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
77851 # ----------------------------------------
77852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
77853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
77854 # script with STATUS, using 1 if that was 0.
77855 as_fn_error ()
77856 {
77857   as_status=$1; test $as_status -eq 0 && as_status=1
77858   if test "$4"; then
77859     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
77860     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
77861   fi
77862   $as_echo "$as_me: error: $2" >&2
77863   as_fn_exit $as_status
77864 } # as_fn_error
77865
77866
77867 # as_fn_set_status STATUS
77868 # -----------------------
77869 # Set $? to STATUS, without forking.
77870 as_fn_set_status ()
77871 {
77872   return $1
77873 } # as_fn_set_status
77874
77875 # as_fn_exit STATUS
77876 # -----------------
77877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
77878 as_fn_exit ()
77879 {
77880   set +e
77881   as_fn_set_status $1
77882   exit $1
77883 } # as_fn_exit
77884
77885 # as_fn_unset VAR
77886 # ---------------
77887 # Portably unset VAR.
77888 as_fn_unset ()
77889 {
77890   { eval $1=; unset $1;}
77891 }
77892 as_unset=as_fn_unset
77893 # as_fn_append VAR VALUE
77894 # ----------------------
77895 # Append the text in VALUE to the end of the definition contained in VAR. Take
77896 # advantage of any shell optimizations that allow amortized linear growth over
77897 # repeated appends, instead of the typical quadratic growth present in naive
77898 # implementations.
77899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
77900   eval 'as_fn_append ()
77901   {
77902     eval $1+=\$2
77903   }'
77904 else
77905   as_fn_append ()
77906   {
77907     eval $1=\$$1\$2
77908   }
77909 fi # as_fn_append
77910
77911 # as_fn_arith ARG...
77912 # ------------------
77913 # Perform arithmetic evaluation on the ARGs, and store the result in the
77914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
77915 # must be portable across $(()) and expr.
77916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
77917   eval 'as_fn_arith ()
77918   {
77919     as_val=$(( $* ))
77920   }'
77921 else
77922   as_fn_arith ()
77923   {
77924     as_val=`expr "$@" || test $? -eq 1`
77925   }
77926 fi # as_fn_arith
77927
77928
77929 if expr a : '\(a\)' >/dev/null 2>&1 &&
77930    test "X`expr 00001 : '.*\(...\)'`" = X001; then
77931   as_expr=expr
77932 else
77933   as_expr=false
77934 fi
77935
77936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
77937   as_basename=basename
77938 else
77939   as_basename=false
77940 fi
77941
77942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
77943   as_dirname=dirname
77944 else
77945   as_dirname=false
77946 fi
77947
77948 as_me=`$as_basename -- "$0" ||
77949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77950          X"$0" : 'X\(//\)$' \| \
77951          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
77952 $as_echo X/"$0" |
77953     sed '/^.*\/\([^/][^/]*\)\/*$/{
77954             s//\1/
77955             q
77956           }
77957           /^X\/\(\/\/\)$/{
77958             s//\1/
77959             q
77960           }
77961           /^X\/\(\/\).*/{
77962             s//\1/
77963             q
77964           }
77965           s/.*/./; q'`
77966
77967 # Avoid depending upon Character Ranges.
77968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
77969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
77970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
77971 as_cr_digits='0123456789'
77972 as_cr_alnum=$as_cr_Letters$as_cr_digits
77973
77974 ECHO_C= ECHO_N= ECHO_T=
77975 case `echo -n x` in #(((((
77976 -n*)
77977   case `echo 'xy\c'` in
77978   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
77979   xy)  ECHO_C='\c';;
77980   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
77981        ECHO_T=' ';;
77982   esac;;
77983 *)
77984   ECHO_N='-n';;
77985 esac
77986
77987 rm -f conf$$ conf$$.exe conf$$.file
77988 if test -d conf$$.dir; then
77989   rm -f conf$$.dir/conf$$.file
77990 else
77991   rm -f conf$$.dir
77992   mkdir conf$$.dir 2>/dev/null
77993 fi
77994 if (echo >conf$$.file) 2>/dev/null; then
77995   if ln -s conf$$.file conf$$ 2>/dev/null; then
77996     as_ln_s='ln -s'
77997     # ... but there are two gotchas:
77998     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
77999     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
78000     # In both cases, we have to default to `cp -pR'.
78001     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
78002       as_ln_s='cp -pR'
78003   elif ln conf$$.file conf$$ 2>/dev/null; then
78004     as_ln_s=ln
78005   else
78006     as_ln_s='cp -pR'
78007   fi
78008 else
78009   as_ln_s='cp -pR'
78010 fi
78011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
78012 rmdir conf$$.dir 2>/dev/null
78013
78014
78015 # as_fn_mkdir_p
78016 # -------------
78017 # Create "$as_dir" as a directory, including parents if necessary.
78018 as_fn_mkdir_p ()
78019 {
78020
78021   case $as_dir in #(
78022   -*) as_dir=./$as_dir;;
78023   esac
78024   test -d "$as_dir" || eval $as_mkdir_p || {
78025     as_dirs=
78026     while :; do
78027       case $as_dir in #(
78028       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
78029       *) as_qdir=$as_dir;;
78030       esac
78031       as_dirs="'$as_qdir' $as_dirs"
78032       as_dir=`$as_dirname -- "$as_dir" ||
78033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
78034          X"$as_dir" : 'X\(//\)[^/]' \| \
78035          X"$as_dir" : 'X\(//\)$' \| \
78036          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
78037 $as_echo X"$as_dir" |
78038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
78039             s//\1/
78040             q
78041           }
78042           /^X\(\/\/\)[^/].*/{
78043             s//\1/
78044             q
78045           }
78046           /^X\(\/\/\)$/{
78047             s//\1/
78048             q
78049           }
78050           /^X\(\/\).*/{
78051             s//\1/
78052             q
78053           }
78054           s/.*/./; q'`
78055       test -d "$as_dir" && break
78056     done
78057     test -z "$as_dirs" || eval "mkdir $as_dirs"
78058   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
78059
78060
78061 } # as_fn_mkdir_p
78062 if mkdir -p . 2>/dev/null; then
78063   as_mkdir_p='mkdir -p "$as_dir"'
78064 else
78065   test -d ./-p && rmdir ./-p
78066   as_mkdir_p=false
78067 fi
78068
78069
78070 # as_fn_executable_p FILE
78071 # -----------------------
78072 # Test if FILE is an executable regular file.
78073 as_fn_executable_p ()
78074 {
78075   test -f "$1" && test -x "$1"
78076 } # as_fn_executable_p
78077 as_test_x='test -x'
78078 as_executable_p=as_fn_executable_p
78079
78080 # Sed expression to map a string onto a valid CPP name.
78081 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
78082
78083 # Sed expression to map a string onto a valid variable name.
78084 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
78085
78086
78087 exec 6>&1
78088 ## ----------------------------------- ##
78089 ## Main body of $CONFIG_STATUS script. ##
78090 ## ----------------------------------- ##
78091 _ASEOF
78092 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
78093
78094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78095 # Save the log message, to keep $0 and so on meaningful, and to
78096 # report actual input values of CONFIG_FILES etc. instead of their
78097 # values after options handling.
78098 ac_log="
78099 This file was extended by gettext-tools $as_me 0.19.7, which was
78100 generated by GNU Autoconf 2.69.  Invocation command line was
78101
78102   CONFIG_FILES    = $CONFIG_FILES
78103   CONFIG_HEADERS  = $CONFIG_HEADERS
78104   CONFIG_LINKS    = $CONFIG_LINKS
78105   CONFIG_COMMANDS = $CONFIG_COMMANDS
78106   $ $0 $@
78107
78108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
78109 "
78110
78111 _ACEOF
78112
78113 case $ac_config_files in *"
78114 "*) set x $ac_config_files; shift; ac_config_files=$*;;
78115 esac
78116
78117 case $ac_config_headers in *"
78118 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
78119 esac
78120
78121
78122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78123 # Files that config.status was made for.
78124 config_files="$ac_config_files"
78125 config_headers="$ac_config_headers"
78126 config_commands="$ac_config_commands"
78127
78128 _ACEOF
78129
78130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78131 ac_cs_usage="\
78132 \`$as_me' instantiates files and other configuration actions
78133 from templates according to the current configuration.  Unless the files
78134 and actions are specified as TAGs, all are instantiated by default.
78135
78136 Usage: $0 [OPTION]... [TAG]...
78137
78138   -h, --help       print this help, then exit
78139   -V, --version    print version number and configuration settings, then exit
78140       --config     print configuration, then exit
78141   -q, --quiet, --silent
78142                    do not print progress messages
78143   -d, --debug      don't remove temporary files
78144       --recheck    update $as_me by reconfiguring in the same conditions
78145       --file=FILE[:TEMPLATE]
78146                    instantiate the configuration file FILE
78147       --header=FILE[:TEMPLATE]
78148                    instantiate the configuration header FILE
78149
78150 Configuration files:
78151 $config_files
78152
78153 Configuration headers:
78154 $config_headers
78155
78156 Configuration commands:
78157 $config_commands
78158
78159 Report bugs to <bug-gnu-gettext@gnu.org>."
78160
78161 _ACEOF
78162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78163 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
78164 ac_cs_version="\\
78165 gettext-tools config.status 0.19.7
78166 configured by $0, generated by GNU Autoconf 2.69,
78167   with options \\"\$ac_cs_config\\"
78168
78169 Copyright (C) 2012 Free Software Foundation, Inc.
78170 This config.status script is free software; the Free Software Foundation
78171 gives unlimited permission to copy, distribute and modify it."
78172
78173 ac_pwd='$ac_pwd'
78174 srcdir='$srcdir'
78175 INSTALL='$INSTALL'
78176 MKDIR_P='$MKDIR_P'
78177 AWK='$AWK'
78178 test -n "\$AWK" || AWK=awk
78179 _ACEOF
78180
78181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78182 # The default lists apply if the user does not specify any file.
78183 ac_need_defaults=:
78184 while test $# != 0
78185 do
78186   case $1 in
78187   --*=?*)
78188     ac_option=`expr "X$1" : 'X\([^=]*\)='`
78189     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
78190     ac_shift=:
78191     ;;
78192   --*=)
78193     ac_option=`expr "X$1" : 'X\([^=]*\)='`
78194     ac_optarg=
78195     ac_shift=:
78196     ;;
78197   *)
78198     ac_option=$1
78199     ac_optarg=$2
78200     ac_shift=shift
78201     ;;
78202   esac
78203
78204   case $ac_option in
78205   # Handling of the options.
78206   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
78207     ac_cs_recheck=: ;;
78208   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
78209     $as_echo "$ac_cs_version"; exit ;;
78210   --config | --confi | --conf | --con | --co | --c )
78211     $as_echo "$ac_cs_config"; exit ;;
78212   --debug | --debu | --deb | --de | --d | -d )
78213     debug=: ;;
78214   --file | --fil | --fi | --f )
78215     $ac_shift
78216     case $ac_optarg in
78217     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
78218     '') as_fn_error $? "missing file argument" ;;
78219     esac
78220     as_fn_append CONFIG_FILES " '$ac_optarg'"
78221     ac_need_defaults=false;;
78222   --header | --heade | --head | --hea )
78223     $ac_shift
78224     case $ac_optarg in
78225     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
78226     esac
78227     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
78228     ac_need_defaults=false;;
78229   --he | --h)
78230     # Conflict between --help and --header
78231     as_fn_error $? "ambiguous option: \`$1'
78232 Try \`$0 --help' for more information.";;
78233   --help | --hel | -h )
78234     $as_echo "$ac_cs_usage"; exit ;;
78235   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
78236   | -silent | --silent | --silen | --sile | --sil | --si | --s)
78237     ac_cs_silent=: ;;
78238
78239   # This is an error.
78240   -*) as_fn_error $? "unrecognized option: \`$1'
78241 Try \`$0 --help' for more information." ;;
78242
78243   *) as_fn_append ac_config_targets " $1"
78244      ac_need_defaults=false ;;
78245
78246   esac
78247   shift
78248 done
78249
78250 ac_configure_extra_args=
78251
78252 if $ac_cs_silent; then
78253   exec 6>/dev/null
78254   ac_configure_extra_args="$ac_configure_extra_args --silent"
78255 fi
78256
78257 _ACEOF
78258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78259 if \$ac_cs_recheck; then
78260   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
78261   shift
78262   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
78263   CONFIG_SHELL='$SHELL'
78264   export CONFIG_SHELL
78265   exec "\$@"
78266 fi
78267
78268 _ACEOF
78269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78270 exec 5>>config.log
78271 {
78272   echo
78273   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
78274 ## Running $as_me. ##
78275 _ASBOX
78276   $as_echo "$ac_log"
78277 } >&5
78278
78279 _ACEOF
78280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78281 #
78282 # INIT-COMMANDS
78283 #
78284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
78285
78286
78287 # The HP-UX ksh and POSIX shell print the target directory to stdout
78288 # if CDPATH is set.
78289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
78290
78291 sed_quote_subst='$sed_quote_subst'
78292 double_quote_subst='$double_quote_subst'
78293 delay_variable_subst='$delay_variable_subst'
78294 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
78295 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
78296 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
78297 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
78298 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
78299 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
78300 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
78301 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
78302 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
78303 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
78304 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
78305 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
78306 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
78307 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
78308 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
78309 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
78310 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
78311 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
78312 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
78313 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
78314 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
78315 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
78316 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
78317 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
78318 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
78319 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
78320 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
78321 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
78322 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
78323 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
78324 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
78325 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
78326 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
78327 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
78328 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
78329 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
78330 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
78331 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
78332 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
78333 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
78334 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
78335 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
78336 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
78337 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
78338 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
78339 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
78340 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
78341 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
78342 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
78343 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
78344 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
78345 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
78346 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
78347 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
78348 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
78349 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
78350 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
78351 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
78352 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
78353 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"`'
78354 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
78355 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
78356 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
78357 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
78358 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
78359 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
78360 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
78361 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
78362 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
78363 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
78364 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
78365 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
78366 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
78367 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
78368 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
78369 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
78370 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
78371 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
78372 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
78373 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
78374 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
78375 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
78376 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
78377 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
78378 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
78379 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
78380 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
78381 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
78382 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
78383 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
78384 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
78385 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
78386 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
78387 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
78388 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
78389 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
78390 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
78391 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
78392 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
78393 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
78394 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
78395 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
78396 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
78397 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
78398 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
78399 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
78400 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
78401 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
78402 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
78403 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
78404 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
78405 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
78406 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
78407 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
78408 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
78409 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
78410 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
78411 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
78412 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
78413 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
78414 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
78415 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
78416 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
78417 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
78418 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
78419 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
78420 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
78421 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
78422 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
78423 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
78424 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
78425 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
78426 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
78427 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
78428 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
78429 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
78430 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
78431 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
78432 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
78433 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
78434 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
78435 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
78436 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
78437 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
78438 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
78439 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
78440 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
78441 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78442 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
78443 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78444 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
78445 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
78446 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
78447 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
78448 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
78449 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
78450 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
78451 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
78452 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
78453 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
78454 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
78455 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
78456 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
78457 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
78458 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
78459 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
78460 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
78461 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
78462 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
78463 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
78464 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
78465 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
78466 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
78467 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
78468 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
78469 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78470 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
78471 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78472 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
78473 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78474 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
78475 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78476 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
78477 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78478 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
78479 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78480 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
78481 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
78482 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
78483 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
78484 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
78485 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
78486 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
78487 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
78488 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
78489 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
78490 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
78491 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
78492 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
78493 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
78494 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
78495 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
78496 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
78497 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
78498 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
78499 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
78500 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
78501 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
78502 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
78503 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
78504 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
78505 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
78506 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
78507 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78508 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
78509 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
78510 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
78511 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
78512 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
78513 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78514 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
78515 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
78516 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
78517 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
78518 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
78519 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
78520 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
78521 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
78522 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
78523 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
78524 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
78525 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
78526 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
78527 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
78528 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
78529 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
78530 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
78531 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
78532
78533 LTCC='$LTCC'
78534 LTCFLAGS='$LTCFLAGS'
78535 compiler='$compiler_DEFAULT'
78536
78537 # A function that is used when there is no print builtin or printf.
78538 func_fallback_echo ()
78539 {
78540   eval 'cat <<_LTECHO_EOF
78541 \$1
78542 _LTECHO_EOF'
78543 }
78544
78545 # Quote evaled strings.
78546 for var in AS \
78547 DLLTOOL \
78548 OBJDUMP \
78549 SHELL \
78550 ECHO \
78551 PATH_SEPARATOR \
78552 SED \
78553 GREP \
78554 EGREP \
78555 FGREP \
78556 LD \
78557 NM \
78558 LN_S \
78559 lt_SP2NL \
78560 lt_NL2SP \
78561 reload_flag \
78562 deplibs_check_method \
78563 file_magic_cmd \
78564 file_magic_glob \
78565 want_nocaseglob \
78566 sharedlib_from_linklib_cmd \
78567 AR \
78568 AR_FLAGS \
78569 archiver_list_spec \
78570 STRIP \
78571 RANLIB \
78572 CC \
78573 CFLAGS \
78574 compiler \
78575 lt_cv_sys_global_symbol_pipe \
78576 lt_cv_sys_global_symbol_to_cdecl \
78577 lt_cv_sys_global_symbol_to_import \
78578 lt_cv_sys_global_symbol_to_c_name_address \
78579 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
78580 lt_cv_nm_interface \
78581 nm_file_list_spec \
78582 lt_cv_truncate_bin \
78583 lt_prog_compiler_no_builtin_flag \
78584 lt_prog_compiler_pic \
78585 lt_prog_compiler_wl \
78586 lt_prog_compiler_static \
78587 lt_cv_prog_compiler_c_o \
78588 need_locks \
78589 MANIFEST_TOOL \
78590 DSYMUTIL \
78591 NMEDIT \
78592 LIPO \
78593 OTOOL \
78594 OTOOL64 \
78595 shrext_cmds \
78596 export_dynamic_flag_spec \
78597 whole_archive_flag_spec \
78598 compiler_needs_object \
78599 with_gnu_ld \
78600 allow_undefined_flag \
78601 no_undefined_flag \
78602 hardcode_libdir_flag_spec \
78603 hardcode_libdir_separator \
78604 exclude_expsyms \
78605 include_expsyms \
78606 file_list_spec \
78607 variables_saved_for_relink \
78608 libname_spec \
78609 library_names_spec \
78610 soname_spec \
78611 install_override_mode \
78612 finish_eval \
78613 old_striplib \
78614 striplib \
78615 compiler_lib_search_dirs \
78616 predep_objects \
78617 postdep_objects \
78618 predeps \
78619 postdeps \
78620 compiler_lib_search_path \
78621 LD_RC \
78622 LD_CXX \
78623 reload_flag_RC \
78624 reload_flag_CXX \
78625 compiler_RC \
78626 compiler_CXX \
78627 lt_prog_compiler_no_builtin_flag_RC \
78628 lt_prog_compiler_no_builtin_flag_CXX \
78629 lt_prog_compiler_pic_RC \
78630 lt_prog_compiler_pic_CXX \
78631 lt_prog_compiler_wl_RC \
78632 lt_prog_compiler_wl_CXX \
78633 lt_prog_compiler_static_RC \
78634 lt_prog_compiler_static_CXX \
78635 lt_cv_prog_compiler_c_o_RC \
78636 lt_cv_prog_compiler_c_o_CXX \
78637 export_dynamic_flag_spec_RC \
78638 export_dynamic_flag_spec_CXX \
78639 whole_archive_flag_spec_RC \
78640 whole_archive_flag_spec_CXX \
78641 compiler_needs_object_RC \
78642 compiler_needs_object_CXX \
78643 with_gnu_ld_RC \
78644 with_gnu_ld_CXX \
78645 allow_undefined_flag_RC \
78646 allow_undefined_flag_CXX \
78647 no_undefined_flag_RC \
78648 no_undefined_flag_CXX \
78649 hardcode_libdir_flag_spec_RC \
78650 hardcode_libdir_flag_spec_CXX \
78651 hardcode_libdir_separator_RC \
78652 hardcode_libdir_separator_CXX \
78653 exclude_expsyms_RC \
78654 exclude_expsyms_CXX \
78655 include_expsyms_RC \
78656 include_expsyms_CXX \
78657 file_list_spec_RC \
78658 file_list_spec_CXX \
78659 compiler_lib_search_dirs_RC \
78660 compiler_lib_search_dirs_CXX \
78661 predep_objects_RC \
78662 predep_objects_CXX \
78663 postdep_objects_RC \
78664 postdep_objects_CXX \
78665 predeps_RC \
78666 predeps_CXX \
78667 postdeps_RC \
78668 postdeps_CXX \
78669 compiler_lib_search_path_RC \
78670 compiler_lib_search_path_CXX; do
78671     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
78672     *[\\\\\\\`\\"\\\$]*)
78673       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
78674       ;;
78675     *)
78676       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
78677       ;;
78678     esac
78679 done
78680
78681 # Double-quote double-evaled strings.
78682 for var in reload_cmds \
78683 old_postinstall_cmds \
78684 old_postuninstall_cmds \
78685 old_archive_cmds \
78686 extract_expsyms_cmds \
78687 old_archive_from_new_cmds \
78688 old_archive_from_expsyms_cmds \
78689 archive_cmds \
78690 archive_expsym_cmds \
78691 module_cmds \
78692 module_expsym_cmds \
78693 export_symbols_cmds \
78694 prelink_cmds \
78695 postlink_cmds \
78696 postinstall_cmds \
78697 postuninstall_cmds \
78698 finish_cmds \
78699 sys_lib_search_path_spec \
78700 configure_time_dlsearch_path \
78701 configure_time_lt_sys_library_path \
78702 reload_cmds_RC \
78703 reload_cmds_CXX \
78704 old_archive_cmds_RC \
78705 old_archive_cmds_CXX \
78706 old_archive_from_new_cmds_RC \
78707 old_archive_from_new_cmds_CXX \
78708 old_archive_from_expsyms_cmds_RC \
78709 old_archive_from_expsyms_cmds_CXX \
78710 archive_cmds_RC \
78711 archive_cmds_CXX \
78712 archive_expsym_cmds_RC \
78713 archive_expsym_cmds_CXX \
78714 module_cmds_RC \
78715 module_cmds_CXX \
78716 module_expsym_cmds_RC \
78717 module_expsym_cmds_CXX \
78718 export_symbols_cmds_RC \
78719 export_symbols_cmds_CXX \
78720 prelink_cmds_RC \
78721 prelink_cmds_CXX \
78722 postlink_cmds_RC \
78723 postlink_cmds_CXX; do
78724     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
78725     *[\\\\\\\`\\"\\\$]*)
78726       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
78727       ;;
78728     *)
78729       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
78730       ;;
78731     esac
78732 done
78733
78734 ac_aux_dir='$ac_aux_dir'
78735
78736 # See if we are running on zsh, and set the options that allow our
78737 # commands through without removal of \ escapes INIT.
78738 if test -n "\${ZSH_VERSION+set}"; then
78739    setopt NO_GLOB_SUBST
78740 fi
78741
78742
78743     PACKAGE='$PACKAGE'
78744     VERSION='$VERSION'
78745     RM='$RM'
78746     ofile='$ofile'
78747
78748
78749
78750
78751
78752
78753
78754 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
78755     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
78756     # from automake < 1.5.
78757     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
78758     # Capture the value of LINGUAS because we need it to compute CATALOGS.
78759     LINGUAS="${LINGUAS-%UNSET%}"
78760
78761
78762 _ACEOF
78763
78764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
78765
78766 # Handling of arguments.
78767 for ac_config_target in $ac_config_targets
78768 do
78769   case $ac_config_target in
78770     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
78771     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
78772     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
78773     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
78774     "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
78775     "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:../build-aux/csharpexec.sh.in" ;;
78776     "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
78777     "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:../build-aux/javaexec.sh.in" ;;
78778     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
78779     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
78780     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;;
78781     "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
78782     "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
78783     "libgrep/Makefile") CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;;
78784     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
78785     "src/user-email") CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;;
78786     "libgettextpo/Makefile") CONFIG_FILES="$CONFIG_FILES libgettextpo/Makefile" ;;
78787     "libgettextpo/exported.sh") CONFIG_FILES="$CONFIG_FILES libgettextpo/exported.sh" ;;
78788     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
78789     "projects/Makefile") CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;;
78790     "styles/Makefile") CONFIG_FILES="$CONFIG_FILES styles/Makefile" ;;
78791     "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
78792     "misc/gettextize") CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;;
78793     "misc/autopoint") CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;;
78794     "misc/convert-archive") CONFIG_FILES="$CONFIG_FILES misc/convert-archive" ;;
78795     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
78796     "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
78797     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
78798     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
78799     "tests/init-env") CONFIG_FILES="$CONFIG_FILES tests/init-env" ;;
78800     "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;;
78801
78802   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
78803   esac
78804 done
78805
78806
78807 # If the user did not use the arguments to specify the items to instantiate,
78808 # then the envvar interface is used.  Set only those that are not.
78809 # We use the long form for the default assignment because of an extremely
78810 # bizarre bug on SunOS 4.1.3.
78811 if $ac_need_defaults; then
78812   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
78813   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
78814   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
78815 fi
78816
78817 # Have a temporary directory for convenience.  Make it in the build tree
78818 # simply because there is no reason against having it here, and in addition,
78819 # creating and moving files from /tmp can sometimes cause problems.
78820 # Hook for its removal unless debugging.
78821 # Note that there is a small window in which the directory will not be cleaned:
78822 # after its creation but before its name has been assigned to `$tmp'.
78823 $debug ||
78824 {
78825   tmp= ac_tmp=
78826   trap 'exit_status=$?
78827   : "${ac_tmp:=$tmp}"
78828   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
78829 ' 0
78830   trap 'as_fn_exit 1' 1 2 13 15
78831 }
78832 # Create a (secure) tmp directory for tmp files.
78833
78834 {
78835   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
78836   test -d "$tmp"
78837 }  ||
78838 {
78839   tmp=./conf$$-$RANDOM
78840   (umask 077 && mkdir "$tmp")
78841 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
78842 ac_tmp=$tmp
78843
78844 # Set up the scripts for CONFIG_FILES section.
78845 # No need to generate them if there are no CONFIG_FILES.
78846 # This happens for instance with `./config.status config.h'.
78847 if test -n "$CONFIG_FILES"; then
78848
78849 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
78850   ac_cs_awk_getline=:
78851   ac_cs_awk_pipe_init=
78852   ac_cs_awk_read_file='
78853       while ((getline aline < (F[key])) > 0)
78854         print(aline)
78855       close(F[key])'
78856   ac_cs_awk_pipe_fini=
78857 else
78858   ac_cs_awk_getline=false
78859   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
78860   ac_cs_awk_read_file='
78861       print "|#_!!_#|"
78862       print "cat " F[key] " &&"
78863       '$ac_cs_awk_pipe_init
78864   # The final `:' finishes the AND list.
78865   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
78866 fi
78867 ac_cr=`echo X | tr X '\015'`
78868 # On cygwin, bash can eat \r inside `` if the user requested igncr.
78869 # But we know of no other shell where ac_cr would be empty at this
78870 # point, so we can use a bashism as a fallback.
78871 if test "x$ac_cr" = x; then
78872   eval ac_cr=\$\'\\r\'
78873 fi
78874 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
78875 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
78876   ac_cs_awk_cr='\\r'
78877 else
78878   ac_cs_awk_cr=$ac_cr
78879 fi
78880
78881 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
78882 _ACEOF
78883
78884 # Create commands to substitute file output variables.
78885 {
78886   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
78887   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
78888   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
78889   echo "_ACAWK" &&
78890   echo "_ACEOF"
78891 } >conf$$files.sh &&
78892 . ./conf$$files.sh ||
78893   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
78894 rm -f conf$$files.sh
78895
78896 {
78897   echo "cat >conf$$subs.awk <<_ACEOF" &&
78898   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
78899   echo "_ACEOF"
78900 } >conf$$subs.sh ||
78901   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
78902 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
78903 ac_delim='%!_!# '
78904 for ac_last_try in false false false false false :; do
78905   . ./conf$$subs.sh ||
78906     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
78907
78908   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
78909   if test $ac_delim_n = $ac_delim_num; then
78910     break
78911   elif $ac_last_try; then
78912     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
78913   else
78914     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
78915   fi
78916 done
78917 rm -f conf$$subs.sh
78918
78919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78920 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
78921 _ACEOF
78922 sed -n '
78923 h
78924 s/^/S["/; s/!.*/"]=/
78925 p
78926 g
78927 s/^[^!]*!//
78928 :repl
78929 t repl
78930 s/'"$ac_delim"'$//
78931 t delim
78932 :nl
78933 h
78934 s/\(.\{148\}\)..*/\1/
78935 t more1
78936 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
78937 p
78938 n
78939 b repl
78940 :more1
78941 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
78942 p
78943 g
78944 s/.\{148\}//
78945 t nl
78946 :delim
78947 h
78948 s/\(.\{148\}\)..*/\1/
78949 t more2
78950 s/["\\]/\\&/g; s/^/"/; s/$/"/
78951 p
78952 b
78953 :more2
78954 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
78955 p
78956 g
78957 s/.\{148\}//
78958 t delim
78959 ' <conf$$subs.awk | sed '
78960 /^[^""]/{
78961   N
78962   s/\n//
78963 }
78964 ' >>$CONFIG_STATUS || ac_write_fail=1
78965 rm -f conf$$subs.awk
78966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
78967 _ACAWK
78968 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
78969   for (key in S) S_is_set[key] = 1
78970   FS = "\a"
78971   \$ac_cs_awk_pipe_init
78972 }
78973 {
78974   line = $ 0
78975   nfields = split(line, field, "@")
78976   substed = 0
78977   len = length(field[1])
78978   for (i = 2; i < nfields; i++) {
78979     key = field[i]
78980     keylen = length(key)
78981     if (S_is_set[key]) {
78982       value = S[key]
78983       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
78984       len += length(value) + length(field[++i])
78985       substed = 1
78986     } else
78987       len += 1 + keylen
78988   }
78989   if (nfields == 3 && !substed) {
78990     key = field[2]
78991     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
78992       \$ac_cs_awk_read_file
78993       next
78994     }
78995   }
78996   print line
78997 }
78998 \$ac_cs_awk_pipe_fini
78999 _ACAWK
79000 _ACEOF
79001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79002 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
79003   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
79004 else
79005   cat
79006 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
79007   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
79008 _ACEOF
79009
79010 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
79011 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
79012 # trailing colons and then remove the whole line if VPATH becomes empty
79013 # (actually we leave an empty line to preserve line numbers).
79014 if test "x$srcdir" = x.; then
79015   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
79016 h
79017 s///
79018 s/^/:/
79019 s/[      ]*$/:/
79020 s/:\$(srcdir):/:/g
79021 s/:\${srcdir}:/:/g
79022 s/:@srcdir@:/:/g
79023 s/^:*//
79024 s/:*$//
79025 x
79026 s/\(=[   ]*\).*/\1/
79027 G
79028 s/\n//
79029 s/^[^=]*=[       ]*$//
79030 }'
79031 fi
79032
79033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79034 fi # test -n "$CONFIG_FILES"
79035
79036 # Set up the scripts for CONFIG_HEADERS section.
79037 # No need to generate them if there are no CONFIG_HEADERS.
79038 # This happens for instance with `./config.status Makefile'.
79039 if test -n "$CONFIG_HEADERS"; then
79040 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
79041 BEGIN {
79042 _ACEOF
79043
79044 # Transform confdefs.h into an awk script `defines.awk', embedded as
79045 # here-document in config.status, that substitutes the proper values into
79046 # config.h.in to produce config.h.
79047
79048 # Create a delimiter string that does not exist in confdefs.h, to ease
79049 # handling of long lines.
79050 ac_delim='%!_!# '
79051 for ac_last_try in false false :; do
79052   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
79053   if test -z "$ac_tt"; then
79054     break
79055   elif $ac_last_try; then
79056     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
79057   else
79058     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
79059   fi
79060 done
79061
79062 # For the awk script, D is an array of macro values keyed by name,
79063 # likewise P contains macro parameters if any.  Preserve backslash
79064 # newline sequences.
79065
79066 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
79067 sed -n '
79068 s/.\{148\}/&'"$ac_delim"'/g
79069 t rset
79070 :rset
79071 s/^[     ]*#[    ]*define[       ][      ]*/ /
79072 t def
79073 d
79074 :def
79075 s/\\$//
79076 t bsnl
79077 s/["\\]/\\&/g
79078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
79079 D["\1"]=" \3"/p
79080 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
79081 d
79082 :bsnl
79083 s/["\\]/\\&/g
79084 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
79085 D["\1"]=" \3\\\\\\n"\\/p
79086 t cont
79087 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
79088 t cont
79089 d
79090 :cont
79091 n
79092 s/.\{148\}/&'"$ac_delim"'/g
79093 t clear
79094 :clear
79095 s/\\$//
79096 t bsnlc
79097 s/["\\]/\\&/g; s/^/"/; s/$/"/p
79098 d
79099 :bsnlc
79100 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
79101 b cont
79102 ' <confdefs.h | sed '
79103 s/'"$ac_delim"'/"\\\
79104 "/g' >>$CONFIG_STATUS || ac_write_fail=1
79105
79106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79107   for (key in D) D_is_set[key] = 1
79108   FS = "\a"
79109 }
79110 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
79111   line = \$ 0
79112   split(line, arg, " ")
79113   if (arg[1] == "#") {
79114     defundef = arg[2]
79115     mac1 = arg[3]
79116   } else {
79117     defundef = substr(arg[1], 2)
79118     mac1 = arg[2]
79119   }
79120   split(mac1, mac2, "(") #)
79121   macro = mac2[1]
79122   prefix = substr(line, 1, index(line, defundef) - 1)
79123   if (D_is_set[macro]) {
79124     # Preserve the white space surrounding the "#".
79125     print prefix "define", macro P[macro] D[macro]
79126     next
79127   } else {
79128     # Replace #undef with comments.  This is necessary, for example,
79129     # in the case of _POSIX_SOURCE, which is predefined and required
79130     # on some systems where configure will not decide to define it.
79131     if (defundef == "undef") {
79132       print "/*", prefix defundef, macro, "*/"
79133       next
79134     }
79135   }
79136 }
79137 { print }
79138 _ACAWK
79139 _ACEOF
79140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79141   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
79142 fi # test -n "$CONFIG_HEADERS"
79143
79144
79145 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
79146 shift
79147 for ac_tag
79148 do
79149   case $ac_tag in
79150   :[FHLC]) ac_mode=$ac_tag; continue;;
79151   esac
79152   case $ac_mode$ac_tag in
79153   :[FHL]*:*);;
79154   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
79155   :[FH]-) ac_tag=-:-;;
79156   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
79157   esac
79158   ac_save_IFS=$IFS
79159   IFS=:
79160   set x $ac_tag
79161   IFS=$ac_save_IFS
79162   shift
79163   ac_file=$1
79164   shift
79165
79166   case $ac_mode in
79167   :L) ac_source=$1;;
79168   :[FH])
79169     ac_file_inputs=
79170     for ac_f
79171     do
79172       case $ac_f in
79173       -) ac_f="$ac_tmp/stdin";;
79174       *) # Look for the file first in the build tree, then in the source tree
79175          # (if the path is not absolute).  The absolute path cannot be DOS-style,
79176          # because $ac_f cannot contain `:'.
79177          test -f "$ac_f" ||
79178            case $ac_f in
79179            [\\/$]*) false;;
79180            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
79181            esac ||
79182            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
79183       esac
79184       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
79185       as_fn_append ac_file_inputs " '$ac_f'"
79186     done
79187
79188     # Let's still pretend it is `configure' which instantiates (i.e., don't
79189     # use $as_me), people would be surprised to read:
79190     #    /* config.h.  Generated by config.status.  */
79191     configure_input='Generated from '`
79192           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
79193         `' by configure.'
79194     if test x"$ac_file" != x-; then
79195       configure_input="$ac_file.  $configure_input"
79196       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
79197 $as_echo "$as_me: creating $ac_file" >&6;}
79198     fi
79199     # Neutralize special characters interpreted by sed in replacement strings.
79200     case $configure_input in #(
79201     *\&* | *\|* | *\\* )
79202        ac_sed_conf_input=`$as_echo "$configure_input" |
79203        sed 's/[\\\\&|]/\\\\&/g'`;; #(
79204     *) ac_sed_conf_input=$configure_input;;
79205     esac
79206
79207     case $ac_tag in
79208     *:-:* | *:-) cat >"$ac_tmp/stdin" \
79209       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
79210     esac
79211     ;;
79212   esac
79213
79214   ac_dir=`$as_dirname -- "$ac_file" ||
79215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
79216          X"$ac_file" : 'X\(//\)[^/]' \| \
79217          X"$ac_file" : 'X\(//\)$' \| \
79218          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
79219 $as_echo X"$ac_file" |
79220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79221             s//\1/
79222             q
79223           }
79224           /^X\(\/\/\)[^/].*/{
79225             s//\1/
79226             q
79227           }
79228           /^X\(\/\/\)$/{
79229             s//\1/
79230             q
79231           }
79232           /^X\(\/\).*/{
79233             s//\1/
79234             q
79235           }
79236           s/.*/./; q'`
79237   as_dir="$ac_dir"; as_fn_mkdir_p
79238   ac_builddir=.
79239
79240 case "$ac_dir" in
79241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
79242 *)
79243   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
79244   # A ".." for each directory in $ac_dir_suffix.
79245   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
79246   case $ac_top_builddir_sub in
79247   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
79248   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
79249   esac ;;
79250 esac
79251 ac_abs_top_builddir=$ac_pwd
79252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
79253 # for backward compatibility:
79254 ac_top_builddir=$ac_top_build_prefix
79255
79256 case $srcdir in
79257   .)  # We are building in place.
79258     ac_srcdir=.
79259     ac_top_srcdir=$ac_top_builddir_sub
79260     ac_abs_top_srcdir=$ac_pwd ;;
79261   [\\/]* | ?:[\\/]* )  # Absolute name.
79262     ac_srcdir=$srcdir$ac_dir_suffix;
79263     ac_top_srcdir=$srcdir
79264     ac_abs_top_srcdir=$srcdir ;;
79265   *) # Relative name.
79266     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
79267     ac_top_srcdir=$ac_top_build_prefix$srcdir
79268     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
79269 esac
79270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
79271
79272
79273   case $ac_mode in
79274   :F)
79275   #
79276   # CONFIG_FILE
79277   #
79278
79279   case $INSTALL in
79280   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
79281   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
79282   esac
79283   ac_MKDIR_P=$MKDIR_P
79284   case $MKDIR_P in
79285   [\\/$]* | ?:[\\/]* ) ;;
79286   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
79287   esac
79288 _ACEOF
79289
79290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79291 # If the template does not know about datarootdir, expand it.
79292 # FIXME: This hack should be removed a few years after 2.60.
79293 ac_datarootdir_hack=; ac_datarootdir_seen=
79294 ac_sed_dataroot='
79295 /datarootdir/ {
79296   p
79297   q
79298 }
79299 /@datadir@/p
79300 /@docdir@/p
79301 /@infodir@/p
79302 /@localedir@/p
79303 /@mandir@/p'
79304 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
79305 *datarootdir*) ac_datarootdir_seen=yes;;
79306 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
79307   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
79308 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
79309 _ACEOF
79310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79311   ac_datarootdir_hack='
79312   s&@datadir@&$datadir&g
79313   s&@docdir@&$docdir&g
79314   s&@infodir@&$infodir&g
79315   s&@localedir@&$localedir&g
79316   s&@mandir@&$mandir&g
79317   s&\\\${datarootdir}&$datarootdir&g' ;;
79318 esac
79319 _ACEOF
79320
79321 # Neutralize VPATH when `$srcdir' = `.'.
79322 # Shell code in configure.ac might set extrasub.
79323 # FIXME: do we really want to maintain this feature?
79324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
79325 ac_sed_extra="$ac_vpsub
79326 $extrasub
79327 _ACEOF
79328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79329 :t
79330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
79331 s|@configure_input@|$ac_sed_conf_input|;t t
79332 s&@top_builddir@&$ac_top_builddir_sub&;t t
79333 s&@top_build_prefix@&$ac_top_build_prefix&;t t
79334 s&@srcdir@&$ac_srcdir&;t t
79335 s&@abs_srcdir@&$ac_abs_srcdir&;t t
79336 s&@top_srcdir@&$ac_top_srcdir&;t t
79337 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
79338 s&@builddir@&$ac_builddir&;t t
79339 s&@abs_builddir@&$ac_abs_builddir&;t t
79340 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
79341 s&@INSTALL@&$ac_INSTALL&;t t
79342 s&@MKDIR_P@&$ac_MKDIR_P&;t t
79343 $ac_datarootdir_hack
79344 "
79345 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
79346 if $ac_cs_awk_getline; then
79347   $AWK -f "$ac_tmp/subs.awk"
79348 else
79349   $AWK -f "$ac_tmp/subs.awk" | $SHELL
79350 fi \
79351   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
79352
79353 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
79354   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
79355   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
79356       "$ac_tmp/out"`; test -z "$ac_out"; } &&
79357   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
79358 which seems to be undefined.  Please make sure it is defined" >&5
79359 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
79360 which seems to be undefined.  Please make sure it is defined" >&2;}
79361
79362   rm -f "$ac_tmp/stdin"
79363   case $ac_file in
79364   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
79365   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
79366   esac \
79367   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
79368  ;;
79369   :H)
79370   #
79371   # CONFIG_HEADER
79372   #
79373   if test x"$ac_file" != x-; then
79374     {
79375       $as_echo "/* $configure_input  */" \
79376       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
79377     } >"$ac_tmp/config.h" \
79378       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
79379     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
79380       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
79381 $as_echo "$as_me: $ac_file is unchanged" >&6;}
79382     else
79383       rm -f "$ac_file"
79384       mv "$ac_tmp/config.h" "$ac_file" \
79385         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
79386     fi
79387   else
79388     $as_echo "/* $configure_input  */" \
79389       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
79390       || as_fn_error $? "could not create -" "$LINENO" 5
79391   fi
79392 # Compute "$ac_file"'s index in $config_headers.
79393 _am_arg="$ac_file"
79394 _am_stamp_count=1
79395 for _am_header in $config_headers :; do
79396   case $_am_header in
79397     $_am_arg | $_am_arg:* )
79398       break ;;
79399     * )
79400       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
79401   esac
79402 done
79403 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
79404 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
79405          X"$_am_arg" : 'X\(//\)[^/]' \| \
79406          X"$_am_arg" : 'X\(//\)$' \| \
79407          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
79408 $as_echo X"$_am_arg" |
79409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79410             s//\1/
79411             q
79412           }
79413           /^X\(\/\/\)[^/].*/{
79414             s//\1/
79415             q
79416           }
79417           /^X\(\/\/\)$/{
79418             s//\1/
79419             q
79420           }
79421           /^X\(\/\).*/{
79422             s//\1/
79423             q
79424           }
79425           s/.*/./; q'`/stamp-h$_am_stamp_count
79426  ;;
79427
79428   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
79429 $as_echo "$as_me: executing $ac_file commands" >&6;}
79430  ;;
79431   esac
79432
79433
79434   case $ac_file$ac_mode in
79435     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
79436   # Older Autoconf quotes --file arguments for eval, but not when files
79437   # are listed without --file.  Let's play safe and only enable the eval
79438   # if we detect the quoting.
79439   case $CONFIG_FILES in
79440   *\'*) eval set x "$CONFIG_FILES" ;;
79441   *)   set x $CONFIG_FILES ;;
79442   esac
79443   shift
79444   for mf
79445   do
79446     # Strip MF so we end up with the name of the file.
79447     mf=`echo "$mf" | sed -e 's/:.*$//'`
79448     # Check whether this is an Automake generated Makefile or not.
79449     # We used to match only the files named 'Makefile.in', but
79450     # some people rename them; so instead we look at the file content.
79451     # Grep'ing the first line is not enough: some people post-process
79452     # each Makefile.in and add a new line on top of each file to say so.
79453     # Grep'ing the whole file is not good either: AIX grep has a line
79454     # limit of 2048, but all sed's we know have understand at least 4000.
79455     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
79456       dirpart=`$as_dirname -- "$mf" ||
79457 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
79458          X"$mf" : 'X\(//\)[^/]' \| \
79459          X"$mf" : 'X\(//\)$' \| \
79460          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
79461 $as_echo X"$mf" |
79462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79463             s//\1/
79464             q
79465           }
79466           /^X\(\/\/\)[^/].*/{
79467             s//\1/
79468             q
79469           }
79470           /^X\(\/\/\)$/{
79471             s//\1/
79472             q
79473           }
79474           /^X\(\/\).*/{
79475             s//\1/
79476             q
79477           }
79478           s/.*/./; q'`
79479     else
79480       continue
79481     fi
79482     # Extract the definition of DEPDIR, am__include, and am__quote
79483     # from the Makefile without running 'make'.
79484     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
79485     test -z "$DEPDIR" && continue
79486     am__include=`sed -n 's/^am__include = //p' < "$mf"`
79487     test -z "$am__include" && continue
79488     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
79489     # Find all dependency output files, they are included files with
79490     # $(DEPDIR) in their names.  We invoke sed twice because it is the
79491     # simplest approach to changing $(DEPDIR) to its actual value in the
79492     # expansion.
79493     for file in `sed -n "
79494       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
79495          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
79496       # Make sure the directory exists.
79497       test -f "$dirpart/$file" && continue
79498       fdir=`$as_dirname -- "$file" ||
79499 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
79500          X"$file" : 'X\(//\)[^/]' \| \
79501          X"$file" : 'X\(//\)$' \| \
79502          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
79503 $as_echo X"$file" |
79504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79505             s//\1/
79506             q
79507           }
79508           /^X\(\/\/\)[^/].*/{
79509             s//\1/
79510             q
79511           }
79512           /^X\(\/\/\)$/{
79513             s//\1/
79514             q
79515           }
79516           /^X\(\/\).*/{
79517             s//\1/
79518             q
79519           }
79520           s/.*/./; q'`
79521       as_dir=$dirpart/$fdir; as_fn_mkdir_p
79522       # echo "creating $dirpart/$file"
79523       echo '# dummy' > "$dirpart/$file"
79524     done
79525   done
79526 }
79527  ;;
79528     "libtool":C)
79529
79530     # See if we are running on zsh, and set the options that allow our
79531     # commands through without removal of \ escapes.
79532     if test -n "${ZSH_VERSION+set}"; then
79533       setopt NO_GLOB_SUBST
79534     fi
79535
79536     cfgfile=${ofile}T
79537     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
79538     $RM "$cfgfile"
79539
79540     cat <<_LT_EOF >> "$cfgfile"
79541 #! $SHELL
79542 # Generated automatically by $as_me ($PACKAGE) $VERSION
79543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
79544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
79545
79546 # Provide generalized library-building support services.
79547 # Written by Gordon Matzigkeit, 1996
79548
79549 # Copyright (C) 2014 Free Software Foundation, Inc.
79550 # This is free software; see the source for copying conditions.  There is NO
79551 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
79552
79553 # GNU Libtool is free software; you can redistribute it and/or modify
79554 # it under the terms of the GNU General Public License as published by
79555 # the Free Software Foundation; either version 2 of of the License, or
79556 # (at your option) any later version.
79557 #
79558 # As a special exception to the GNU General Public License, if you
79559 # distribute this file as part of a program or library that is built
79560 # using GNU Libtool, you may include this file under the  same
79561 # distribution terms that you use for the rest of that program.
79562 #
79563 # GNU Libtool is distributed in the hope that it will be useful, but
79564 # WITHOUT ANY WARRANTY; without even the implied warranty of
79565 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
79566 # GNU General Public License for more details.
79567 #
79568 # You should have received a copy of the GNU General Public License
79569 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
79570
79571
79572 # The names of the tagged configurations supported by this script.
79573 available_tags='RC CXX '
79574
79575 # Configured defaults for sys_lib_dlsearch_path munging.
79576 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
79577
79578 # ### BEGIN LIBTOOL CONFIG
79579
79580 # Which release of libtool.m4 was used?
79581 macro_version=$macro_version
79582 macro_revision=$macro_revision
79583
79584 # Assembler program.
79585 AS=$lt_AS
79586
79587 # DLL creation program.
79588 DLLTOOL=$lt_DLLTOOL
79589
79590 # Object dumper program.
79591 OBJDUMP=$lt_OBJDUMP
79592
79593 # Whether or not to build shared libraries.
79594 build_libtool_libs=$enable_shared
79595
79596 # Whether or not to build static libraries.
79597 build_old_libs=$enable_static
79598
79599 # What type of objects to build.
79600 pic_mode=$pic_mode
79601
79602 # Whether or not to optimize for fast installation.
79603 fast_install=$enable_fast_install
79604
79605 # Shared archive member basename,for filename based shared library versioning on AIX.
79606 shared_archive_member_spec=$shared_archive_member_spec
79607
79608 # Shell to use when invoking shell scripts.
79609 SHELL=$lt_SHELL
79610
79611 # An echo program that protects backslashes.
79612 ECHO=$lt_ECHO
79613
79614 # The PATH separator for the build system.
79615 PATH_SEPARATOR=$lt_PATH_SEPARATOR
79616
79617 # The host system.
79618 host_alias=$host_alias
79619 host=$host
79620 host_os=$host_os
79621
79622 # The build system.
79623 build_alias=$build_alias
79624 build=$build
79625 build_os=$build_os
79626
79627 # A sed program that does not truncate output.
79628 SED=$lt_SED
79629
79630 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
79631 Xsed="\$SED -e 1s/^X//"
79632
79633 # A grep program that handles long lines.
79634 GREP=$lt_GREP
79635
79636 # An ERE matcher.
79637 EGREP=$lt_EGREP
79638
79639 # A literal string matcher.
79640 FGREP=$lt_FGREP
79641
79642 # A BSD- or MS-compatible name lister.
79643 NM=$lt_NM
79644
79645 # Whether we need soft or hard links.
79646 LN_S=$lt_LN_S
79647
79648 # What is the maximum length of a command?
79649 max_cmd_len=$max_cmd_len
79650
79651 # Object file suffix (normally "o").
79652 objext=$ac_objext
79653
79654 # Executable file suffix (normally "").
79655 exeext=$exeext
79656
79657 # whether the shell understands "unset".
79658 lt_unset=$lt_unset
79659
79660 # turn spaces into newlines.
79661 SP2NL=$lt_lt_SP2NL
79662
79663 # turn newlines into spaces.
79664 NL2SP=$lt_lt_NL2SP
79665
79666 # convert \$build file names to \$host format.
79667 to_host_file_cmd=$lt_cv_to_host_file_cmd
79668
79669 # convert \$build files to toolchain format.
79670 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
79671
79672 # Method to check whether dependent libraries are shared objects.
79673 deplibs_check_method=$lt_deplibs_check_method
79674
79675 # Command to use when deplibs_check_method = "file_magic".
79676 file_magic_cmd=$lt_file_magic_cmd
79677
79678 # How to find potential files when deplibs_check_method = "file_magic".
79679 file_magic_glob=$lt_file_magic_glob
79680
79681 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
79682 want_nocaseglob=$lt_want_nocaseglob
79683
79684 # Command to associate shared and link libraries.
79685 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
79686
79687 # The archiver.
79688 AR=$lt_AR
79689
79690 # Flags to create an archive.
79691 AR_FLAGS=$lt_AR_FLAGS
79692
79693 # How to feed a file listing to the archiver.
79694 archiver_list_spec=$lt_archiver_list_spec
79695
79696 # A symbol stripping program.
79697 STRIP=$lt_STRIP
79698
79699 # Commands used to install an old-style archive.
79700 RANLIB=$lt_RANLIB
79701 old_postinstall_cmds=$lt_old_postinstall_cmds
79702 old_postuninstall_cmds=$lt_old_postuninstall_cmds
79703
79704 # Whether to use a lock for old archive extraction.
79705 lock_old_archive_extraction=$lock_old_archive_extraction
79706
79707 # A C compiler.
79708 LTCC=$lt_CC
79709
79710 # LTCC compiler flags.
79711 LTCFLAGS=$lt_CFLAGS
79712
79713 # Take the output of nm and produce a listing of raw symbols and C names.
79714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
79715
79716 # Transform the output of nm in a proper C declaration.
79717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
79718
79719 # Transform the output of nm into a list of symbols to manually relocate.
79720 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
79721
79722 # Transform the output of nm in a C name address pair.
79723 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
79724
79725 # Transform the output of nm in a C name address pair when lib prefix is needed.
79726 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
79727
79728 # The name lister interface.
79729 nm_interface=$lt_lt_cv_nm_interface
79730
79731 # Specify filename containing input files for \$NM.
79732 nm_file_list_spec=$lt_nm_file_list_spec
79733
79734 # The root where to search for dependent libraries,and where our libraries should be installed.
79735 lt_sysroot=$lt_sysroot
79736
79737 # Command to truncate a binary pipe.
79738 lt_truncate_bin=$lt_lt_cv_truncate_bin
79739
79740 # The name of the directory that contains temporary libtool files.
79741 objdir=$objdir
79742
79743 # Used to examine libraries when file_magic_cmd begins with "file".
79744 MAGIC_CMD=$MAGIC_CMD
79745
79746 # Must we lock files when doing compilation?
79747 need_locks=$lt_need_locks
79748
79749 # Manifest tool.
79750 MANIFEST_TOOL=$lt_MANIFEST_TOOL
79751
79752 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
79753 DSYMUTIL=$lt_DSYMUTIL
79754
79755 # Tool to change global to local symbols on Mac OS X.
79756 NMEDIT=$lt_NMEDIT
79757
79758 # Tool to manipulate fat objects and archives on Mac OS X.
79759 LIPO=$lt_LIPO
79760
79761 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
79762 OTOOL=$lt_OTOOL
79763
79764 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
79765 OTOOL64=$lt_OTOOL64
79766
79767 # Old archive suffix (normally "a").
79768 libext=$libext
79769
79770 # Shared library suffix (normally ".so").
79771 shrext_cmds=$lt_shrext_cmds
79772
79773 # The commands to extract the exported symbol list from a shared archive.
79774 extract_expsyms_cmds=$lt_extract_expsyms_cmds
79775
79776 # Variables whose values should be saved in libtool wrapper scripts and
79777 # restored at link time.
79778 variables_saved_for_relink=$lt_variables_saved_for_relink
79779
79780 # Do we need the "lib" prefix for modules?
79781 need_lib_prefix=$need_lib_prefix
79782
79783 # Do we need a version for libraries?
79784 need_version=$need_version
79785
79786 # Library versioning type.
79787 version_type=$version_type
79788
79789 # Shared library runtime path variable.
79790 runpath_var=$runpath_var
79791
79792 # Shared library path variable.
79793 shlibpath_var=$shlibpath_var
79794
79795 # Is shlibpath searched before the hard-coded library search path?
79796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
79797
79798 # Format of library name prefix.
79799 libname_spec=$lt_libname_spec
79800
79801 # List of archive names.  First name is the real one, the rest are links.
79802 # The last name is the one that the linker finds with -lNAME
79803 library_names_spec=$lt_library_names_spec
79804
79805 # The coded name of the library, if different from the real name.
79806 soname_spec=$lt_soname_spec
79807
79808 # Permission mode override for installation of shared libraries.
79809 install_override_mode=$lt_install_override_mode
79810
79811 # Command to use after installation of a shared archive.
79812 postinstall_cmds=$lt_postinstall_cmds
79813
79814 # Command to use after uninstallation of a shared archive.
79815 postuninstall_cmds=$lt_postuninstall_cmds
79816
79817 # Commands used to finish a libtool library installation in a directory.
79818 finish_cmds=$lt_finish_cmds
79819
79820 # As "finish_cmds", except a single script fragment to be evaled but
79821 # not shown.
79822 finish_eval=$lt_finish_eval
79823
79824 # Whether we should hardcode library paths into libraries.
79825 hardcode_into_libs=$hardcode_into_libs
79826
79827 # Compile-time system search path for libraries.
79828 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
79829
79830 # Detected run-time system search path for libraries.
79831 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
79832
79833 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
79834 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
79835
79836 # Whether dlopen is supported.
79837 dlopen_support=$enable_dlopen
79838
79839 # Whether dlopen of programs is supported.
79840 dlopen_self=$enable_dlopen_self
79841
79842 # Whether dlopen of statically linked programs is supported.
79843 dlopen_self_static=$enable_dlopen_self_static
79844
79845 # Commands to strip libraries.
79846 old_striplib=$lt_old_striplib
79847 striplib=$lt_striplib
79848
79849
79850 # The linker used to build libraries.
79851 LD=$lt_LD
79852
79853 # How to create reloadable object files.
79854 reload_flag=$lt_reload_flag
79855 reload_cmds=$lt_reload_cmds
79856
79857 # Commands used to build an old-style archive.
79858 old_archive_cmds=$lt_old_archive_cmds
79859
79860 # A language specific compiler.
79861 CC=$lt_compiler
79862
79863 # Is the compiler the GNU compiler?
79864 with_gcc=$GCC
79865
79866 # Compiler flag to turn off builtin functions.
79867 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
79868
79869 # Additional compiler flags for building library objects.
79870 pic_flag=$lt_lt_prog_compiler_pic
79871
79872 # How to pass a linker flag through the compiler.
79873 wl=$lt_lt_prog_compiler_wl
79874
79875 # Compiler flag to prevent dynamic linking.
79876 link_static_flag=$lt_lt_prog_compiler_static
79877
79878 # Does compiler simultaneously support -c and -o options?
79879 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
79880
79881 # Whether or not to add -lc for building shared libraries.
79882 build_libtool_need_lc=$archive_cmds_need_lc
79883
79884 # Whether or not to disallow shared libs when runtime libs are static.
79885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
79886
79887 # Compiler flag to allow reflexive dlopens.
79888 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
79889
79890 # Compiler flag to generate shared objects directly from archives.
79891 whole_archive_flag_spec=$lt_whole_archive_flag_spec
79892
79893 # Whether the compiler copes with passing no objects directly.
79894 compiler_needs_object=$lt_compiler_needs_object
79895
79896 # Create an old-style archive from a shared archive.
79897 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
79898
79899 # Create a temporary old-style archive to link instead of a shared archive.
79900 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
79901
79902 # Commands used to build a shared archive.
79903 archive_cmds=$lt_archive_cmds
79904 archive_expsym_cmds=$lt_archive_expsym_cmds
79905
79906 # Commands used to build a loadable module if different from building
79907 # a shared archive.
79908 module_cmds=$lt_module_cmds
79909 module_expsym_cmds=$lt_module_expsym_cmds
79910
79911 # Whether we are building with GNU ld or not.
79912 with_gnu_ld=$lt_with_gnu_ld
79913
79914 # Flag that allows shared libraries with undefined symbols to be built.
79915 allow_undefined_flag=$lt_allow_undefined_flag
79916
79917 # Flag that enforces no undefined symbols.
79918 no_undefined_flag=$lt_no_undefined_flag
79919
79920 # Flag to hardcode \$libdir into a binary during linking.
79921 # This must work even if \$libdir does not exist
79922 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
79923
79924 # Whether we need a single "-rpath" flag with a separated argument.
79925 hardcode_libdir_separator=$lt_hardcode_libdir_separator
79926
79927 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
79928 # DIR into the resulting binary.
79929 hardcode_direct=$hardcode_direct
79930
79931 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
79932 # DIR into the resulting binary and the resulting library dependency is
79933 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
79934 # library is relocated.
79935 hardcode_direct_absolute=$hardcode_direct_absolute
79936
79937 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
79938 # into the resulting binary.
79939 hardcode_minus_L=$hardcode_minus_L
79940
79941 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
79942 # into the resulting binary.
79943 hardcode_shlibpath_var=$hardcode_shlibpath_var
79944
79945 # Set to "yes" if building a shared library automatically hardcodes DIR
79946 # into the library and all subsequent libraries and executables linked
79947 # against it.
79948 hardcode_automatic=$hardcode_automatic
79949
79950 # Set to yes if linker adds runtime paths of dependent libraries
79951 # to runtime path list.
79952 inherit_rpath=$inherit_rpath
79953
79954 # Whether libtool must link a program against all its dependency libraries.
79955 link_all_deplibs=$link_all_deplibs
79956
79957 # Set to "yes" if exported symbols are required.
79958 always_export_symbols=$always_export_symbols
79959
79960 # The commands to list exported symbols.
79961 export_symbols_cmds=$lt_export_symbols_cmds
79962
79963 # Symbols that should not be listed in the preloaded symbols.
79964 exclude_expsyms=$lt_exclude_expsyms
79965
79966 # Symbols that must always be exported.
79967 include_expsyms=$lt_include_expsyms
79968
79969 # Commands necessary for linking programs (against libraries) with templates.
79970 prelink_cmds=$lt_prelink_cmds
79971
79972 # Commands necessary for finishing linking programs.
79973 postlink_cmds=$lt_postlink_cmds
79974
79975 # Specify filename containing input files.
79976 file_list_spec=$lt_file_list_spec
79977
79978 # How to hardcode a shared library path into an executable.
79979 hardcode_action=$hardcode_action
79980
79981 # The directories searched by this compiler when creating a shared library.
79982 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
79983
79984 # Dependencies to place before and after the objects being linked to
79985 # create a shared library.
79986 predep_objects=$lt_predep_objects
79987 postdep_objects=$lt_postdep_objects
79988 predeps=$lt_predeps
79989 postdeps=$lt_postdeps
79990
79991 # The library search path used internally by the compiler when linking
79992 # a shared library.
79993 compiler_lib_search_path=$lt_compiler_lib_search_path
79994
79995 # ### END LIBTOOL CONFIG
79996
79997 _LT_EOF
79998
79999     cat <<'_LT_EOF' >> "$cfgfile"
80000
80001 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
80002
80003 # func_munge_path_list VARIABLE PATH
80004 # -----------------------------------
80005 # VARIABLE is name of variable containing _space_ separated list of
80006 # directories to be munged by the contents of PATH, which is string
80007 # having a format:
80008 # "DIR[:DIR]:"
80009 #       string "DIR[ DIR]" will be prepended to VARIABLE
80010 # ":DIR[:DIR]"
80011 #       string "DIR[ DIR]" will be appended to VARIABLE
80012 # "DIRP[:DIRP]::[DIRA:]DIRA"
80013 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
80014 #       "DIRA[ DIRA]" will be appended to VARIABLE
80015 # "DIR[:DIR]"
80016 #       VARIABLE will be replaced by "DIR[ DIR]"
80017 func_munge_path_list ()
80018 {
80019     case x$2 in
80020     x)
80021         ;;
80022     *:)
80023         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
80024         ;;
80025     x:*)
80026         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
80027         ;;
80028     *::*)
80029         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
80030         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
80031         ;;
80032     *)
80033         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
80034         ;;
80035     esac
80036 }
80037
80038
80039 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
80040 func_cc_basename ()
80041 {
80042     for cc_temp in $*""; do
80043       case $cc_temp in
80044         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
80045         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
80046         \-*) ;;
80047         *) break;;
80048       esac
80049     done
80050     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
80051 }
80052
80053
80054 # ### END FUNCTIONS SHARED WITH CONFIGURE
80055
80056 _LT_EOF
80057
80058   case $host_os in
80059   aix3*)
80060     cat <<\_LT_EOF >> "$cfgfile"
80061 # AIX sometimes has problems with the GCC collect2 program.  For some
80062 # reason, if we set the COLLECT_NAMES environment variable, the problems
80063 # vanish in a puff of smoke.
80064 if test set != "${COLLECT_NAMES+set}"; then
80065   COLLECT_NAMES=
80066   export COLLECT_NAMES
80067 fi
80068 _LT_EOF
80069     ;;
80070   esac
80071
80072
80073 ltmain=$ac_aux_dir/ltmain.sh
80074
80075
80076   # We use sed instead of cat because bash on DJGPP gets confused if
80077   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
80078   # text mode, it properly converts lines to CR/LF.  This bash problem
80079   # is reportedly fixed, but why not run on old versions too?
80080   sed '$q' "$ltmain" >> "$cfgfile" \
80081      || (rm -f "$cfgfile"; exit 1)
80082
80083    mv -f "$cfgfile" "$ofile" ||
80084     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
80085   chmod +x "$ofile"
80086
80087
80088     cat <<_LT_EOF >> "$ofile"
80089
80090 # ### BEGIN LIBTOOL TAG CONFIG: RC
80091
80092 # The linker used to build libraries.
80093 LD=$lt_LD_RC
80094
80095 # How to create reloadable object files.
80096 reload_flag=$lt_reload_flag_RC
80097 reload_cmds=$lt_reload_cmds_RC
80098
80099 # Commands used to build an old-style archive.
80100 old_archive_cmds=$lt_old_archive_cmds_RC
80101
80102 # A language specific compiler.
80103 CC=$lt_compiler_RC
80104
80105 # Is the compiler the GNU compiler?
80106 with_gcc=$GCC_RC
80107
80108 # Compiler flag to turn off builtin functions.
80109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
80110
80111 # Additional compiler flags for building library objects.
80112 pic_flag=$lt_lt_prog_compiler_pic_RC
80113
80114 # How to pass a linker flag through the compiler.
80115 wl=$lt_lt_prog_compiler_wl_RC
80116
80117 # Compiler flag to prevent dynamic linking.
80118 link_static_flag=$lt_lt_prog_compiler_static_RC
80119
80120 # Does compiler simultaneously support -c and -o options?
80121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
80122
80123 # Whether or not to add -lc for building shared libraries.
80124 build_libtool_need_lc=$archive_cmds_need_lc_RC
80125
80126 # Whether or not to disallow shared libs when runtime libs are static.
80127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
80128
80129 # Compiler flag to allow reflexive dlopens.
80130 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
80131
80132 # Compiler flag to generate shared objects directly from archives.
80133 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
80134
80135 # Whether the compiler copes with passing no objects directly.
80136 compiler_needs_object=$lt_compiler_needs_object_RC
80137
80138 # Create an old-style archive from a shared archive.
80139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
80140
80141 # Create a temporary old-style archive to link instead of a shared archive.
80142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
80143
80144 # Commands used to build a shared archive.
80145 archive_cmds=$lt_archive_cmds_RC
80146 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
80147
80148 # Commands used to build a loadable module if different from building
80149 # a shared archive.
80150 module_cmds=$lt_module_cmds_RC
80151 module_expsym_cmds=$lt_module_expsym_cmds_RC
80152
80153 # Whether we are building with GNU ld or not.
80154 with_gnu_ld=$lt_with_gnu_ld_RC
80155
80156 # Flag that allows shared libraries with undefined symbols to be built.
80157 allow_undefined_flag=$lt_allow_undefined_flag_RC
80158
80159 # Flag that enforces no undefined symbols.
80160 no_undefined_flag=$lt_no_undefined_flag_RC
80161
80162 # Flag to hardcode \$libdir into a binary during linking.
80163 # This must work even if \$libdir does not exist
80164 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
80165
80166 # Whether we need a single "-rpath" flag with a separated argument.
80167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
80168
80169 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80170 # DIR into the resulting binary.
80171 hardcode_direct=$hardcode_direct_RC
80172
80173 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80174 # DIR into the resulting binary and the resulting library dependency is
80175 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
80176 # library is relocated.
80177 hardcode_direct_absolute=$hardcode_direct_absolute_RC
80178
80179 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
80180 # into the resulting binary.
80181 hardcode_minus_L=$hardcode_minus_L_RC
80182
80183 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
80184 # into the resulting binary.
80185 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
80186
80187 # Set to "yes" if building a shared library automatically hardcodes DIR
80188 # into the library and all subsequent libraries and executables linked
80189 # against it.
80190 hardcode_automatic=$hardcode_automatic_RC
80191
80192 # Set to yes if linker adds runtime paths of dependent libraries
80193 # to runtime path list.
80194 inherit_rpath=$inherit_rpath_RC
80195
80196 # Whether libtool must link a program against all its dependency libraries.
80197 link_all_deplibs=$link_all_deplibs_RC
80198
80199 # Set to "yes" if exported symbols are required.
80200 always_export_symbols=$always_export_symbols_RC
80201
80202 # The commands to list exported symbols.
80203 export_symbols_cmds=$lt_export_symbols_cmds_RC
80204
80205 # Symbols that should not be listed in the preloaded symbols.
80206 exclude_expsyms=$lt_exclude_expsyms_RC
80207
80208 # Symbols that must always be exported.
80209 include_expsyms=$lt_include_expsyms_RC
80210
80211 # Commands necessary for linking programs (against libraries) with templates.
80212 prelink_cmds=$lt_prelink_cmds_RC
80213
80214 # Commands necessary for finishing linking programs.
80215 postlink_cmds=$lt_postlink_cmds_RC
80216
80217 # Specify filename containing input files.
80218 file_list_spec=$lt_file_list_spec_RC
80219
80220 # How to hardcode a shared library path into an executable.
80221 hardcode_action=$hardcode_action_RC
80222
80223 # The directories searched by this compiler when creating a shared library.
80224 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
80225
80226 # Dependencies to place before and after the objects being linked to
80227 # create a shared library.
80228 predep_objects=$lt_predep_objects_RC
80229 postdep_objects=$lt_postdep_objects_RC
80230 predeps=$lt_predeps_RC
80231 postdeps=$lt_postdeps_RC
80232
80233 # The library search path used internally by the compiler when linking
80234 # a shared library.
80235 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
80236
80237 # ### END LIBTOOL TAG CONFIG: RC
80238 _LT_EOF
80239
80240
80241     cat <<_LT_EOF >> "$ofile"
80242
80243 # ### BEGIN LIBTOOL TAG CONFIG: CXX
80244
80245 # The linker used to build libraries.
80246 LD=$lt_LD_CXX
80247
80248 # How to create reloadable object files.
80249 reload_flag=$lt_reload_flag_CXX
80250 reload_cmds=$lt_reload_cmds_CXX
80251
80252 # Commands used to build an old-style archive.
80253 old_archive_cmds=$lt_old_archive_cmds_CXX
80254
80255 # A language specific compiler.
80256 CC=$lt_compiler_CXX
80257
80258 # Is the compiler the GNU compiler?
80259 with_gcc=$GCC_CXX
80260
80261 # Compiler flag to turn off builtin functions.
80262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
80263
80264 # Additional compiler flags for building library objects.
80265 pic_flag=$lt_lt_prog_compiler_pic_CXX
80266
80267 # How to pass a linker flag through the compiler.
80268 wl=$lt_lt_prog_compiler_wl_CXX
80269
80270 # Compiler flag to prevent dynamic linking.
80271 link_static_flag=$lt_lt_prog_compiler_static_CXX
80272
80273 # Does compiler simultaneously support -c and -o options?
80274 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
80275
80276 # Whether or not to add -lc for building shared libraries.
80277 build_libtool_need_lc=$archive_cmds_need_lc_CXX
80278
80279 # Whether or not to disallow shared libs when runtime libs are static.
80280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
80281
80282 # Compiler flag to allow reflexive dlopens.
80283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
80284
80285 # Compiler flag to generate shared objects directly from archives.
80286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
80287
80288 # Whether the compiler copes with passing no objects directly.
80289 compiler_needs_object=$lt_compiler_needs_object_CXX
80290
80291 # Create an old-style archive from a shared archive.
80292 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
80293
80294 # Create a temporary old-style archive to link instead of a shared archive.
80295 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
80296
80297 # Commands used to build a shared archive.
80298 archive_cmds=$lt_archive_cmds_CXX
80299 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
80300
80301 # Commands used to build a loadable module if different from building
80302 # a shared archive.
80303 module_cmds=$lt_module_cmds_CXX
80304 module_expsym_cmds=$lt_module_expsym_cmds_CXX
80305
80306 # Whether we are building with GNU ld or not.
80307 with_gnu_ld=$lt_with_gnu_ld_CXX
80308
80309 # Flag that allows shared libraries with undefined symbols to be built.
80310 allow_undefined_flag=$lt_allow_undefined_flag_CXX
80311
80312 # Flag that enforces no undefined symbols.
80313 no_undefined_flag=$lt_no_undefined_flag_CXX
80314
80315 # Flag to hardcode \$libdir into a binary during linking.
80316 # This must work even if \$libdir does not exist
80317 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
80318
80319 # Whether we need a single "-rpath" flag with a separated argument.
80320 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
80321
80322 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80323 # DIR into the resulting binary.
80324 hardcode_direct=$hardcode_direct_CXX
80325
80326 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
80327 # DIR into the resulting binary and the resulting library dependency is
80328 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
80329 # library is relocated.
80330 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
80331
80332 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
80333 # into the resulting binary.
80334 hardcode_minus_L=$hardcode_minus_L_CXX
80335
80336 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
80337 # into the resulting binary.
80338 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
80339
80340 # Set to "yes" if building a shared library automatically hardcodes DIR
80341 # into the library and all subsequent libraries and executables linked
80342 # against it.
80343 hardcode_automatic=$hardcode_automatic_CXX
80344
80345 # Set to yes if linker adds runtime paths of dependent libraries
80346 # to runtime path list.
80347 inherit_rpath=$inherit_rpath_CXX
80348
80349 # Whether libtool must link a program against all its dependency libraries.
80350 link_all_deplibs=$link_all_deplibs_CXX
80351
80352 # Set to "yes" if exported symbols are required.
80353 always_export_symbols=$always_export_symbols_CXX
80354
80355 # The commands to list exported symbols.
80356 export_symbols_cmds=$lt_export_symbols_cmds_CXX
80357
80358 # Symbols that should not be listed in the preloaded symbols.
80359 exclude_expsyms=$lt_exclude_expsyms_CXX
80360
80361 # Symbols that must always be exported.
80362 include_expsyms=$lt_include_expsyms_CXX
80363
80364 # Commands necessary for linking programs (against libraries) with templates.
80365 prelink_cmds=$lt_prelink_cmds_CXX
80366
80367 # Commands necessary for finishing linking programs.
80368 postlink_cmds=$lt_postlink_cmds_CXX
80369
80370 # Specify filename containing input files.
80371 file_list_spec=$lt_file_list_spec_CXX
80372
80373 # How to hardcode a shared library path into an executable.
80374 hardcode_action=$hardcode_action_CXX
80375
80376 # The directories searched by this compiler when creating a shared library.
80377 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
80378
80379 # Dependencies to place before and after the objects being linked to
80380 # create a shared library.
80381 predep_objects=$lt_predep_objects_CXX
80382 postdep_objects=$lt_postdep_objects_CXX
80383 predeps=$lt_predeps_CXX
80384 postdeps=$lt_postdeps_CXX
80385
80386 # The library search path used internally by the compiler when linking
80387 # a shared library.
80388 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
80389
80390 # ### END LIBTOOL TAG CONFIG: CXX
80391 _LT_EOF
80392
80393  ;;
80394     "po-directories":C)
80395     for ac_file in $CONFIG_FILES; do
80396       # Support "outfile[:infile[:infile...]]"
80397       case "$ac_file" in
80398         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
80399       esac
80400       # PO directories have a Makefile.in generated from Makefile.in.in.
80401       case "$ac_file" in */Makefile.in)
80402         # Adjust a relative srcdir.
80403         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
80404         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
80405         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
80406         # In autoconf-2.13 it is called $ac_given_srcdir.
80407         # In autoconf-2.50 it is called $srcdir.
80408         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
80409         case "$ac_given_srcdir" in
80410           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
80411           /*) top_srcdir="$ac_given_srcdir" ;;
80412           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
80413         esac
80414         # Treat a directory as a PO directory if and only if it has a
80415         # POTFILES.in file. This allows packages to have multiple PO
80416         # directories under different names or in different locations.
80417         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
80418           rm -f "$ac_dir/POTFILES"
80419           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
80420           gt_tab=`printf '\t'`
80421           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"
80422           POMAKEFILEDEPS="POTFILES.in"
80423           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
80424           # on $ac_dir but don't depend on user-specified configuration
80425           # parameters.
80426           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
80427             # The LINGUAS file contains the set of available languages.
80428             if test -n "$OBSOLETE_ALL_LINGUAS"; then
80429               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
80430             fi
80431             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
80432             # Hide the ALL_LINGUAS assignment from automake < 1.5.
80433             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
80434             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
80435           else
80436             # The set of available languages was given in configure.in.
80437             # Hide the ALL_LINGUAS assignment from automake < 1.5.
80438             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
80439           fi
80440           # Compute POFILES
80441           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
80442           # Compute UPDATEPOFILES
80443           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
80444           # Compute DUMMYPOFILES
80445           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
80446           # Compute GMOFILES
80447           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
80448           case "$ac_given_srcdir" in
80449             .) srcdirpre= ;;
80450             *) srcdirpre='$(srcdir)/' ;;
80451           esac
80452           POFILES=
80453           UPDATEPOFILES=
80454           DUMMYPOFILES=
80455           GMOFILES=
80456           for lang in $ALL_LINGUAS; do
80457             POFILES="$POFILES $srcdirpre$lang.po"
80458             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
80459             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
80460             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
80461           done
80462           # CATALOGS depends on both $ac_dir and the user's LINGUAS
80463           # environment variable.
80464           INST_LINGUAS=
80465           if test -n "$ALL_LINGUAS"; then
80466             for presentlang in $ALL_LINGUAS; do
80467               useit=no
80468               if test "%UNSET%" != "$LINGUAS"; then
80469                 desiredlanguages="$LINGUAS"
80470               else
80471                 desiredlanguages="$ALL_LINGUAS"
80472               fi
80473               for desiredlang in $desiredlanguages; do
80474                 # Use the presentlang catalog if desiredlang is
80475                 #   a. equal to presentlang, or
80476                 #   b. a variant of presentlang (because in this case,
80477                 #      presentlang can be used as a fallback for messages
80478                 #      which are not translated in the desiredlang catalog).
80479                 case "$desiredlang" in
80480                   "$presentlang"*) useit=yes;;
80481                 esac
80482               done
80483               if test $useit = yes; then
80484                 INST_LINGUAS="$INST_LINGUAS $presentlang"
80485               fi
80486             done
80487           fi
80488           CATALOGS=
80489           if test -n "$INST_LINGUAS"; then
80490             for lang in $INST_LINGUAS; do
80491               CATALOGS="$CATALOGS $lang.gmo"
80492             done
80493           fi
80494           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
80495           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"
80496           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
80497             if test -f "$f"; then
80498               case "$f" in
80499                 *.orig | *.bak | *~) ;;
80500                 *) cat "$f" >> "$ac_dir/Makefile" ;;
80501               esac
80502             fi
80503           done
80504         fi
80505         ;;
80506       esac
80507     done ;;
80508     "intl/Makefile":F)
80509   # Change srcdir variable so that it points to ../gettext-runtime/intl.
80510   # Change PLURAL_OBJECT variable so that pluralx.c is used instead of plural.c.
80511   sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
80512       -e 's|^VPATH =.*$||' \
80513       -e 's|^PLURAL_OBJECT = .*$|PLURAL_OBJECT = pluralx.\$lo|' \
80514     < intl/Makefile > intl/Makefile.tmp
80515   mv intl/Makefile.tmp intl/Makefile
80516    ;;
80517     "misc/gettextize":F) chmod a+x misc/gettextize ;;
80518     "misc/autopoint":F) chmod a+x misc/autopoint ;;
80519     "misc/convert-archive":F) chmod a+x misc/convert-archive ;;
80520     "man/Makefile":F)
80521   sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
80522   mv $ac_file.tmp $ac_file
80523  ;;
80524
80525   esac
80526 done # for ac_tag
80527
80528
80529 as_fn_exit 0
80530 _ACEOF
80531 ac_clean_files=$ac_clean_files_save
80532
80533 test $ac_write_fail = 0 ||
80534   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
80535
80536
80537 # configure is writing to config.log, and then calls config.status.
80538 # config.status does its own redirection, appending to config.log.
80539 # Unfortunately, on DOS this fails, as config.log is still kept open
80540 # by configure, so config.status won't be able to write to it; its
80541 # output is simply discarded.  So we exec the FD to /dev/null,
80542 # effectively closing config.log, so it can be properly (re)opened and
80543 # appended to by config.status.  When coming back to configure, we
80544 # need to make the FD available again.
80545 if test "$no_create" != yes; then
80546   ac_cs_success=:
80547   ac_config_status_args=
80548   test "$silent" = yes &&
80549     ac_config_status_args="$ac_config_status_args --quiet"
80550   exec 5>/dev/null
80551   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
80552   exec 5>>config.log
80553   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
80554   # would make configure fail if this is the last instruction.
80555   $ac_cs_success || as_fn_exit 1
80556 fi
80557
80558 #
80559 # CONFIG_SUBDIRS section.
80560 #
80561 if test "$no_recursion" != yes; then
80562
80563   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
80564   # so they do not pile up.
80565   ac_sub_configure_args=
80566   ac_prev=
80567   eval "set x $ac_configure_args"
80568   shift
80569   for ac_arg
80570   do
80571     if test -n "$ac_prev"; then
80572       ac_prev=
80573       continue
80574     fi
80575     case $ac_arg in
80576     -cache-file | --cache-file | --cache-fil | --cache-fi \
80577     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
80578       ac_prev=cache_file ;;
80579     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
80580     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
80581     | --c=*)
80582       ;;
80583     --config-cache | -C)
80584       ;;
80585     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
80586       ac_prev=srcdir ;;
80587     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
80588       ;;
80589     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
80590       ac_prev=prefix ;;
80591     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
80592       ;;
80593     --disable-option-checking)
80594       ;;
80595     *)
80596       case $ac_arg in
80597       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
80598       esac
80599       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
80600     esac
80601   done
80602
80603   # Always prepend --prefix to ensure using the same prefix
80604   # in subdir configurations.
80605   ac_arg="--prefix=$prefix"
80606   case $ac_arg in
80607   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
80608   esac
80609   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
80610
80611   # Pass --silent
80612   if test "$silent" = yes; then
80613     ac_sub_configure_args="--silent $ac_sub_configure_args"
80614   fi
80615
80616   # Always prepend --disable-option-checking to silence warnings, since
80617   # different subdirs can have different --enable and --with options.
80618   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
80619
80620   ac_popdir=`pwd`
80621   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
80622
80623     # Do not complain, so a configure script can configure whichever
80624     # parts of a large source tree are present.
80625     test -d "$srcdir/$ac_dir" || continue
80626
80627     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
80628     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
80629     $as_echo "$ac_msg" >&6
80630     as_dir="$ac_dir"; as_fn_mkdir_p
80631     ac_builddir=.
80632
80633 case "$ac_dir" in
80634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
80635 *)
80636   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
80637   # A ".." for each directory in $ac_dir_suffix.
80638   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
80639   case $ac_top_builddir_sub in
80640   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
80641   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
80642   esac ;;
80643 esac
80644 ac_abs_top_builddir=$ac_pwd
80645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
80646 # for backward compatibility:
80647 ac_top_builddir=$ac_top_build_prefix
80648
80649 case $srcdir in
80650   .)  # We are building in place.
80651     ac_srcdir=.
80652     ac_top_srcdir=$ac_top_builddir_sub
80653     ac_abs_top_srcdir=$ac_pwd ;;
80654   [\\/]* | ?:[\\/]* )  # Absolute name.
80655     ac_srcdir=$srcdir$ac_dir_suffix;
80656     ac_top_srcdir=$srcdir
80657     ac_abs_top_srcdir=$srcdir ;;
80658   *) # Relative name.
80659     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
80660     ac_top_srcdir=$ac_top_build_prefix$srcdir
80661     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
80662 esac
80663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
80664
80665
80666     cd "$ac_dir"
80667
80668     # Check for guested configure; otherwise get Cygnus style configure.
80669     if test -f "$ac_srcdir/configure.gnu"; then
80670       ac_sub_configure=$ac_srcdir/configure.gnu
80671     elif test -f "$ac_srcdir/configure"; then
80672       ac_sub_configure=$ac_srcdir/configure
80673     elif test -f "$ac_srcdir/configure.in"; then
80674       # This should be Cygnus configure.
80675       ac_sub_configure=$ac_aux_dir/configure
80676     else
80677       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
80678 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
80679       ac_sub_configure=
80680     fi
80681
80682     # The recursion is here.
80683     if test -n "$ac_sub_configure"; then
80684       # Make the cache file name correct relative to the subdirectory.
80685       case $cache_file in
80686       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
80687       *) # Relative name.
80688         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
80689       esac
80690
80691       { $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
80692 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
80693       # The eval makes quoting arguments work.
80694       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
80695            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
80696         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
80697     fi
80698
80699     cd "$ac_popdir"
80700   done
80701 fi
80702 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
80703   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
80704 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
80705 fi
80706