import strstr and strerror modules
[platform/upstream/binutils.git] / gdb / gnulib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 gl_fnmatch_required=POSIX
592 ac_func_list=
593 ac_header_list=
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 LN_S
603 am__fastdepCC_FALSE
604 am__fastdepCC_TRUE
605 CCDEPMODE
606 AMDEPBACKSLASH
607 AMDEP_FALSE
608 AMDEP_TRUE
609 am__quote
610 am__include
611 DEPDIR
612 am__untar
613 am__tar
614 AMTAR
615 am__leading_dot
616 SET_MAKE
617 AWK
618 mkdir_p
619 INSTALL_STRIP_PROGRAM
620 STRIP
621 install_sh
622 MAKEINFO
623 AUTOHEADER
624 AUTOMAKE
625 AUTOCONF
626 ACLOCAL
627 VERSION
628 PACKAGE
629 CYGPATH_W
630 am__isrc
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 LIBGNU_LTLIBDEPS
635 LIBGNU_LIBDEPS
636 gltests_WITNESS
637 REPLACE_TOWLOWER
638 REPLACE_ISWCNTRL
639 HAVE_WCTYPE_H
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
641 NEXT_WCTYPE_H
642 HAVE_ISWCNTRL
643 REPLACE_ISWBLANK
644 HAVE_WCTRANS_T
645 HAVE_WCTYPE_T
646 HAVE_ISWBLANK
647 GNULIB_TOWCTRANS
648 GNULIB_WCTRANS
649 GNULIB_ISWCTYPE
650 GNULIB_WCTYPE
651 GNULIB_ISWBLANK
652 HAVE_WINT_T
653 HAVE_FEATURES_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
655 NEXT_WCHAR_H
656 HAVE_UNISTD_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
658 NEXT_UNISTD_H
659 MKDIR_P
660 WINDOWS_64_BIT_OFF_T
661 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
662 NEXT_SYS_TYPES_H
663 NEXT_AS_FIRST_DIRECTIVE_STRING_H
664 NEXT_STRING_H
665 HAVE_WINSOCK2_H
666 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
667 UNISTD_H_HAVE_WINSOCK2_H
668 REPLACE_WRITE
669 REPLACE_USLEEP
670 REPLACE_UNLINKAT
671 REPLACE_UNLINK
672 REPLACE_TTYNAME_R
673 REPLACE_SYMLINK
674 REPLACE_SLEEP
675 REPLACE_RMDIR
676 REPLACE_READLINK
677 REPLACE_READ
678 REPLACE_PWRITE
679 REPLACE_PREAD
680 REPLACE_LSEEK
681 REPLACE_LINKAT
682 REPLACE_LINK
683 REPLACE_LCHOWN
684 REPLACE_ISATTY
685 REPLACE_GETPAGESIZE
686 REPLACE_GETGROUPS
687 REPLACE_GETLOGIN_R
688 REPLACE_GETDOMAINNAME
689 REPLACE_GETCWD
690 REPLACE_FTRUNCATE
691 REPLACE_FCHOWNAT
692 REPLACE_DUP2
693 REPLACE_DUP
694 REPLACE_CLOSE
695 REPLACE_CHOWN
696 HAVE_SYS_PARAM_H
697 HAVE_OS_H
698 HAVE_DECL_TTYNAME_R
699 HAVE_DECL_SETHOSTNAME
700 HAVE_DECL_GETUSERSHELL
701 HAVE_DECL_GETPAGESIZE
702 HAVE_DECL_GETLOGIN_R
703 HAVE_DECL_GETDOMAINNAME
704 HAVE_DECL_FDATASYNC
705 HAVE_DECL_FCHDIR
706 HAVE_DECL_ENVIRON
707 HAVE_USLEEP
708 HAVE_UNLINKAT
709 HAVE_SYMLINKAT
710 HAVE_SYMLINK
711 HAVE_SLEEP
712 HAVE_SETHOSTNAME
713 HAVE_READLINKAT
714 HAVE_READLINK
715 HAVE_PWRITE
716 HAVE_PREAD
717 HAVE_PIPE2
718 HAVE_PIPE
719 HAVE_LINKAT
720 HAVE_LINK
721 HAVE_LCHOWN
722 HAVE_GROUP_MEMBER
723 HAVE_GETPAGESIZE
724 HAVE_GETLOGIN
725 HAVE_GETHOSTNAME
726 HAVE_GETGROUPS
727 HAVE_GETDTABLESIZE
728 HAVE_FTRUNCATE
729 HAVE_FSYNC
730 HAVE_FDATASYNC
731 HAVE_FCHOWNAT
732 HAVE_FCHDIR
733 HAVE_FACCESSAT
734 HAVE_EUIDACCESS
735 HAVE_DUP3
736 HAVE_DUP2
737 HAVE_CHOWN
738 GNULIB_WRITE
739 GNULIB_USLEEP
740 GNULIB_UNLINKAT
741 GNULIB_UNLINK
742 GNULIB_UNISTD_H_SIGPIPE
743 GNULIB_UNISTD_H_NONBLOCKING
744 GNULIB_TTYNAME_R
745 GNULIB_SYMLINKAT
746 GNULIB_SYMLINK
747 GNULIB_SLEEP
748 GNULIB_SETHOSTNAME
749 GNULIB_RMDIR
750 GNULIB_READLINKAT
751 GNULIB_READLINK
752 GNULIB_READ
753 GNULIB_PWRITE
754 GNULIB_PREAD
755 GNULIB_PIPE2
756 GNULIB_PIPE
757 GNULIB_LSEEK
758 GNULIB_LINKAT
759 GNULIB_LINK
760 GNULIB_LCHOWN
761 GNULIB_ISATTY
762 GNULIB_GROUP_MEMBER
763 GNULIB_GETUSERSHELL
764 GNULIB_GETPAGESIZE
765 GNULIB_GETLOGIN_R
766 GNULIB_GETLOGIN
767 GNULIB_GETHOSTNAME
768 GNULIB_GETGROUPS
769 GNULIB_GETDTABLESIZE
770 GNULIB_GETDOMAINNAME
771 GNULIB_GETCWD
772 GNULIB_FTRUNCATE
773 GNULIB_FSYNC
774 GNULIB_FDATASYNC
775 GNULIB_FCHOWNAT
776 GNULIB_FCHDIR
777 GNULIB_FACCESSAT
778 GNULIB_EUIDACCESS
779 GNULIB_ENVIRON
780 GNULIB_DUP3
781 GNULIB_DUP2
782 GNULIB_DUP
783 GNULIB_CLOSE
784 GNULIB_CHOWN
785 GNULIB_CHDIR
786 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
787 NEXT_STDDEF_H
788 GL_GENERATE_STDDEF_H_FALSE
789 GL_GENERATE_STDDEF_H_TRUE
790 STDDEF_H
791 HAVE_WCHAR_T
792 REPLACE_NULL
793 HAVE__BOOL
794 GL_GENERATE_STDBOOL_H_FALSE
795 GL_GENERATE_STDBOOL_H_TRUE
796 STDBOOL_H
797 UNDEFINE_STRTOK_R
798 REPLACE_STRTOK_R
799 REPLACE_STRSIGNAL
800 REPLACE_STRNLEN
801 REPLACE_STRNDUP
802 REPLACE_STRNCAT
803 REPLACE_STRERROR_R
804 REPLACE_STRERROR
805 REPLACE_STRCHRNUL
806 REPLACE_STRCASESTR
807 REPLACE_STRSTR
808 REPLACE_STRDUP
809 REPLACE_STPNCPY
810 REPLACE_MEMMEM
811 REPLACE_MEMCHR
812 HAVE_STRVERSCMP
813 HAVE_DECL_STRSIGNAL
814 HAVE_DECL_STRERROR_R
815 HAVE_DECL_STRTOK_R
816 HAVE_STRCASESTR
817 HAVE_STRSEP
818 HAVE_STRPBRK
819 HAVE_DECL_STRNLEN
820 HAVE_DECL_STRNDUP
821 HAVE_DECL_STRDUP
822 HAVE_STRCHRNUL
823 HAVE_STPNCPY
824 HAVE_STPCPY
825 HAVE_RAWMEMCHR
826 HAVE_DECL_MEMRCHR
827 HAVE_MEMPCPY
828 HAVE_DECL_MEMMEM
829 HAVE_MEMCHR
830 HAVE_FFSLL
831 HAVE_FFSL
832 HAVE_MBSLEN
833 GNULIB_STRVERSCMP
834 GNULIB_STRSIGNAL
835 GNULIB_STRERROR_R
836 GNULIB_STRERROR
837 GNULIB_MBSTOK_R
838 GNULIB_MBSSEP
839 GNULIB_MBSSPN
840 GNULIB_MBSPBRK
841 GNULIB_MBSCSPN
842 GNULIB_MBSCASESTR
843 GNULIB_MBSPCASECMP
844 GNULIB_MBSNCASECMP
845 GNULIB_MBSCASECMP
846 GNULIB_MBSSTR
847 GNULIB_MBSRCHR
848 GNULIB_MBSCHR
849 GNULIB_MBSNLEN
850 GNULIB_MBSLEN
851 GNULIB_STRTOK_R
852 GNULIB_STRCASESTR
853 GNULIB_STRSTR
854 GNULIB_STRSEP
855 GNULIB_STRPBRK
856 GNULIB_STRNLEN
857 GNULIB_STRNDUP
858 GNULIB_STRNCAT
859 GNULIB_STRDUP
860 GNULIB_STRCHRNUL
861 GNULIB_STPNCPY
862 GNULIB_STPCPY
863 GNULIB_RAWMEMCHR
864 GNULIB_MEMRCHR
865 GNULIB_MEMPCPY
866 GNULIB_MEMMEM
867 GNULIB_MEMCHR
868 GNULIB_FFSLL
869 GNULIB_FFSL
870 LOCALE_FR
871 LOCALE_FR_UTF8
872 LOCALE_ZH_CN
873 LOCALE_JA
874 REPLACE_WCSWIDTH
875 REPLACE_WCWIDTH
876 REPLACE_WCSNRTOMBS
877 REPLACE_WCSRTOMBS
878 REPLACE_WCRTOMB
879 REPLACE_MBSNRTOWCS
880 REPLACE_MBSRTOWCS
881 REPLACE_MBRLEN
882 REPLACE_MBRTOWC
883 REPLACE_MBSINIT
884 REPLACE_WCTOB
885 REPLACE_BTOWC
886 REPLACE_MBSTATE_T
887 HAVE_DECL_WCWIDTH
888 HAVE_DECL_WCTOB
889 HAVE_WCSWIDTH
890 HAVE_WCSTOK
891 HAVE_WCSSTR
892 HAVE_WCSPBRK
893 HAVE_WCSSPN
894 HAVE_WCSCSPN
895 HAVE_WCSRCHR
896 HAVE_WCSCHR
897 HAVE_WCSDUP
898 HAVE_WCSXFRM
899 HAVE_WCSCOLL
900 HAVE_WCSNCASECMP
901 HAVE_WCSCASECMP
902 HAVE_WCSNCMP
903 HAVE_WCSCMP
904 HAVE_WCSNCAT
905 HAVE_WCSCAT
906 HAVE_WCPNCPY
907 HAVE_WCSNCPY
908 HAVE_WCPCPY
909 HAVE_WCSCPY
910 HAVE_WCSNLEN
911 HAVE_WCSLEN
912 HAVE_WMEMSET
913 HAVE_WMEMMOVE
914 HAVE_WMEMCPY
915 HAVE_WMEMCMP
916 HAVE_WMEMCHR
917 HAVE_WCSNRTOMBS
918 HAVE_WCSRTOMBS
919 HAVE_WCRTOMB
920 HAVE_MBSNRTOWCS
921 HAVE_MBSRTOWCS
922 HAVE_MBRLEN
923 HAVE_MBRTOWC
924 HAVE_MBSINIT
925 HAVE_BTOWC
926 GNULIB_WCSWIDTH
927 GNULIB_WCSTOK
928 GNULIB_WCSSTR
929 GNULIB_WCSPBRK
930 GNULIB_WCSSPN
931 GNULIB_WCSCSPN
932 GNULIB_WCSRCHR
933 GNULIB_WCSCHR
934 GNULIB_WCSDUP
935 GNULIB_WCSXFRM
936 GNULIB_WCSCOLL
937 GNULIB_WCSNCASECMP
938 GNULIB_WCSCASECMP
939 GNULIB_WCSNCMP
940 GNULIB_WCSCMP
941 GNULIB_WCSNCAT
942 GNULIB_WCSCAT
943 GNULIB_WCPNCPY
944 GNULIB_WCSNCPY
945 GNULIB_WCPCPY
946 GNULIB_WCSCPY
947 GNULIB_WCSNLEN
948 GNULIB_WCSLEN
949 GNULIB_WMEMSET
950 GNULIB_WMEMMOVE
951 GNULIB_WMEMCPY
952 GNULIB_WMEMCMP
953 GNULIB_WMEMCHR
954 GNULIB_WCWIDTH
955 GNULIB_WCSNRTOMBS
956 GNULIB_WCSRTOMBS
957 GNULIB_WCRTOMB
958 GNULIB_MBSNRTOWCS
959 GNULIB_MBSRTOWCS
960 GNULIB_MBRLEN
961 GNULIB_MBRTOWC
962 GNULIB_MBSINIT
963 GNULIB_WCTOB
964 GNULIB_BTOWC
965 NEXT_AS_FIRST_DIRECTIVE_MATH_H
966 NEXT_MATH_H
967 LOCALCHARSET_TESTS_ENVIRONMENT
968 GLIBC21
969 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
970 NEXT_INTTYPES_H
971 UINT64_MAX_EQ_ULONG_MAX
972 UINT32_MAX_LT_UINTMAX_MAX
973 PRIPTR_PREFIX
974 PRI_MACROS_BROKEN
975 INT64_MAX_EQ_LONG_MAX
976 INT32_MAX_LT_INTMAX_MAX
977 REPLACE_STRTOIMAX
978 HAVE_DECL_STRTOUMAX
979 HAVE_DECL_STRTOIMAX
980 HAVE_DECL_IMAXDIV
981 HAVE_DECL_IMAXABS
982 GNULIB_STRTOUMAX
983 GNULIB_STRTOIMAX
984 GNULIB_IMAXDIV
985 GNULIB_IMAXABS
986 GL_GENERATE_STDINT_H_FALSE
987 GL_GENERATE_STDINT_H_TRUE
988 STDINT_H
989 WINT_T_SUFFIX
990 WCHAR_T_SUFFIX
991 SIG_ATOMIC_T_SUFFIX
992 SIZE_T_SUFFIX
993 PTRDIFF_T_SUFFIX
994 HAVE_SIGNED_WINT_T
995 HAVE_SIGNED_WCHAR_T
996 HAVE_SIGNED_SIG_ATOMIC_T
997 BITSIZEOF_WINT_T
998 BITSIZEOF_WCHAR_T
999 BITSIZEOF_SIG_ATOMIC_T
1000 BITSIZEOF_SIZE_T
1001 BITSIZEOF_PTRDIFF_T
1002 APPLE_UNIVERSAL_BUILD
1003 HAVE_SYS_BITYPES_H
1004 HAVE_SYS_INTTYPES_H
1005 HAVE_STDINT_H
1006 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1007 NEXT_STDINT_H
1008 HAVE_SYS_TYPES_H
1009 HAVE_INTTYPES_H
1010 HAVE_WCHAR_H
1011 HAVE_UNSIGNED_LONG_LONG_INT
1012 HAVE_LONG_LONG_INT
1013 FREXPL_LIBM
1014 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1015 FREXP_LIBM
1016 REPLACE_TRUNCL
1017 REPLACE_TRUNCF
1018 REPLACE_TRUNC
1019 REPLACE_SQRTL
1020 REPLACE_SIGNBIT_USING_GCC
1021 REPLACE_SIGNBIT
1022 REPLACE_ROUNDL
1023 REPLACE_ROUNDF
1024 REPLACE_ROUND
1025 REPLACE_REMAINDERL
1026 REPLACE_REMAINDERF
1027 REPLACE_REMAINDER
1028 REPLACE_NAN
1029 REPLACE_MODFL
1030 REPLACE_MODFF
1031 REPLACE_MODF
1032 REPLACE_LOGBL
1033 REPLACE_LOGBF
1034 REPLACE_LOGB
1035 REPLACE_LOG2L
1036 REPLACE_LOG2F
1037 REPLACE_LOG2
1038 REPLACE_LOG1PL
1039 REPLACE_LOG1PF
1040 REPLACE_LOG1P
1041 REPLACE_LOG10L
1042 REPLACE_LOG10F
1043 REPLACE_LOG10
1044 REPLACE_LOGL
1045 REPLACE_LOGF
1046 REPLACE_LOG
1047 REPLACE_LDEXPL
1048 REPLACE_ISNAN
1049 REPLACE_ISINF
1050 REPLACE_ISFINITE
1051 REPLACE_ILOGBF
1052 REPLACE_ILOGB
1053 REPLACE_HYPOTL
1054 REPLACE_HYPOTF
1055 REPLACE_HYPOT
1056 REPLACE_HUGE_VAL
1057 REPLACE_FREXPL
1058 REPLACE_FREXP
1059 REPLACE_FREXPF
1060 REPLACE_FMODL
1061 REPLACE_FMODF
1062 REPLACE_FMOD
1063 REPLACE_FMAL
1064 REPLACE_FMAF
1065 REPLACE_FMA
1066 REPLACE_FLOORL
1067 REPLACE_FLOORF
1068 REPLACE_FLOOR
1069 REPLACE_FABSL
1070 REPLACE_EXP2L
1071 REPLACE_EXP2
1072 REPLACE_EXPM1F
1073 REPLACE_EXPM1
1074 REPLACE_CEILL
1075 REPLACE_CEILF
1076 REPLACE_CEIL
1077 REPLACE_CBRTL
1078 REPLACE_CBRTF
1079 HAVE_DECL_TRUNCL
1080 HAVE_DECL_TRUNCF
1081 HAVE_DECL_TRUNC
1082 HAVE_DECL_TANL
1083 HAVE_DECL_SQRTL
1084 HAVE_DECL_SINL
1085 HAVE_DECL_ROUNDL
1086 HAVE_DECL_ROUNDF
1087 HAVE_DECL_ROUND
1088 HAVE_DECL_RINTF
1089 HAVE_DECL_REMAINDERL
1090 HAVE_DECL_REMAINDER
1091 HAVE_DECL_LOGB
1092 HAVE_DECL_LOG2L
1093 HAVE_DECL_LOG2F
1094 HAVE_DECL_LOG2
1095 HAVE_DECL_LOG10L
1096 HAVE_DECL_LOGL
1097 HAVE_DECL_LDEXPL
1098 HAVE_DECL_FREXPL
1099 HAVE_DECL_FLOORL
1100 HAVE_DECL_FLOORF
1101 HAVE_DECL_EXPM1L
1102 HAVE_DECL_EXP2L
1103 HAVE_DECL_EXP2F
1104 HAVE_DECL_EXP2
1105 HAVE_DECL_EXPL
1106 HAVE_DECL_COSL
1107 HAVE_DECL_COPYSIGNF
1108 HAVE_DECL_CEILL
1109 HAVE_DECL_CEILF
1110 HAVE_DECL_CBRTL
1111 HAVE_DECL_CBRTF
1112 HAVE_DECL_ATANL
1113 HAVE_DECL_ASINL
1114 HAVE_DECL_ACOSL
1115 HAVE_TANHF
1116 HAVE_TANL
1117 HAVE_TANF
1118 HAVE_SQRTL
1119 HAVE_SQRTF
1120 HAVE_SINHF
1121 HAVE_SINL
1122 HAVE_SINF
1123 HAVE_RINTL
1124 HAVE_RINT
1125 HAVE_REMAINDERF
1126 HAVE_REMAINDER
1127 HAVE_POWF
1128 HAVE_MODFL
1129 HAVE_MODFF
1130 HAVE_LOGBL
1131 HAVE_LOGBF
1132 HAVE_LOG1PL
1133 HAVE_LOG1PF
1134 HAVE_LOG1P
1135 HAVE_LOG10L
1136 HAVE_LOG10F
1137 HAVE_LOGL
1138 HAVE_LOGF
1139 HAVE_LDEXPF
1140 HAVE_ISNANL
1141 HAVE_ISNAND
1142 HAVE_ISNANF
1143 HAVE_ILOGBL
1144 HAVE_ILOGBF
1145 HAVE_ILOGB
1146 HAVE_HYPOTL
1147 HAVE_HYPOTF
1148 HAVE_FREXPF
1149 HAVE_FMODL
1150 HAVE_FMODF
1151 HAVE_FMAL
1152 HAVE_FMAF
1153 HAVE_FMA
1154 HAVE_FABSL
1155 HAVE_FABSF
1156 HAVE_EXPM1F
1157 HAVE_EXPM1
1158 HAVE_EXPL
1159 HAVE_EXPF
1160 HAVE_COSHF
1161 HAVE_COSL
1162 HAVE_COSF
1163 HAVE_COPYSIGNL
1164 HAVE_COPYSIGN
1165 HAVE_CBRTL
1166 HAVE_CBRTF
1167 HAVE_CBRT
1168 HAVE_ATAN2F
1169 HAVE_ATANL
1170 HAVE_ATANF
1171 HAVE_ASINL
1172 HAVE_ASINF
1173 HAVE_ACOSL
1174 HAVE_ACOSF
1175 GNULIB_TRUNCL
1176 GNULIB_TRUNCF
1177 GNULIB_TRUNC
1178 GNULIB_TANHF
1179 GNULIB_TANL
1180 GNULIB_TANF
1181 GNULIB_SQRTL
1182 GNULIB_SQRTF
1183 GNULIB_SINHF
1184 GNULIB_SINL
1185 GNULIB_SINF
1186 GNULIB_SIGNBIT
1187 GNULIB_ROUNDL
1188 GNULIB_ROUNDF
1189 GNULIB_ROUND
1190 GNULIB_RINTL
1191 GNULIB_RINTF
1192 GNULIB_RINT
1193 GNULIB_REMAINDERL
1194 GNULIB_REMAINDERF
1195 GNULIB_REMAINDER
1196 GNULIB_POWF
1197 GNULIB_MODFL
1198 GNULIB_MODFF
1199 GNULIB_MODF
1200 GNULIB_LOGBL
1201 GNULIB_LOGBF
1202 GNULIB_LOGB
1203 GNULIB_LOG2L
1204 GNULIB_LOG2F
1205 GNULIB_LOG2
1206 GNULIB_LOG1PL
1207 GNULIB_LOG1PF
1208 GNULIB_LOG1P
1209 GNULIB_LOG10L
1210 GNULIB_LOG10F
1211 GNULIB_LOG10
1212 GNULIB_LOGL
1213 GNULIB_LOGF
1214 GNULIB_LOG
1215 GNULIB_LDEXPL
1216 GNULIB_LDEXPF
1217 GNULIB_ISNANL
1218 GNULIB_ISNAND
1219 GNULIB_ISNANF
1220 GNULIB_ISNAN
1221 GNULIB_ISINF
1222 GNULIB_ISFINITE
1223 GNULIB_ILOGBL
1224 GNULIB_ILOGBF
1225 GNULIB_ILOGB
1226 GNULIB_HYPOTL
1227 GNULIB_HYPOTF
1228 GNULIB_HYPOT
1229 GNULIB_FREXPL
1230 GNULIB_FREXP
1231 GNULIB_FREXPF
1232 GNULIB_FMODL
1233 GNULIB_FMODF
1234 GNULIB_FMOD
1235 GNULIB_FMAL
1236 GNULIB_FMAF
1237 GNULIB_FMA
1238 GNULIB_FLOORL
1239 GNULIB_FLOORF
1240 GNULIB_FLOOR
1241 GNULIB_FABSL
1242 GNULIB_FABSF
1243 GNULIB_EXPM1L
1244 GNULIB_EXPM1F
1245 GNULIB_EXPM1
1246 GNULIB_EXP2L
1247 GNULIB_EXP2F
1248 GNULIB_EXP2
1249 GNULIB_EXPL
1250 GNULIB_EXPF
1251 GNULIB_COSHF
1252 GNULIB_COSL
1253 GNULIB_COSF
1254 GNULIB_COPYSIGNL
1255 GNULIB_COPYSIGNF
1256 GNULIB_COPYSIGN
1257 GNULIB_CEILL
1258 GNULIB_CEILF
1259 GNULIB_CEIL
1260 GNULIB_CBRTL
1261 GNULIB_CBRTF
1262 GNULIB_CBRT
1263 GNULIB_ATAN2F
1264 GNULIB_ATANL
1265 GNULIB_ATANF
1266 GNULIB_ASINL
1267 GNULIB_ASINF
1268 GNULIB_ACOSL
1269 GNULIB_ACOSF
1270 GL_GENERATE_FNMATCH_H_FALSE
1271 GL_GENERATE_FNMATCH_H_TRUE
1272 FNMATCH_H
1273 REPLACE_ITOLD
1274 GL_GENERATE_FLOAT_H_FALSE
1275 GL_GENERATE_FLOAT_H_TRUE
1276 FLOAT_H
1277 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1278 NEXT_FLOAT_H
1279 EOVERFLOW_VALUE
1280 EOVERFLOW_HIDDEN
1281 ENOLINK_VALUE
1282 ENOLINK_HIDDEN
1283 EMULTIHOP_VALUE
1284 EMULTIHOP_HIDDEN
1285 GL_GENERATE_ERRNO_H_FALSE
1286 GL_GENERATE_ERRNO_H_TRUE
1287 ERRNO_H
1288 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1289 NEXT_ERRNO_H
1290 PRAGMA_COLUMNS
1291 PRAGMA_SYSTEM_HEADER
1292 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1293 INCLUDE_NEXT
1294 pkglibexecdir
1295 lispdir
1296 GL_GENERATE_ALLOCA_H_FALSE
1297 GL_GENERATE_ALLOCA_H_TRUE
1298 ALLOCA_H
1299 ALLOCA
1300 GL_COND_LIBTOOL_FALSE
1301 GL_COND_LIBTOOL_TRUE
1302 target_os
1303 target_vendor
1304 target_cpu
1305 target
1306 RANLIB
1307 ARFLAGS
1308 AR
1309 EGREP
1310 GREP
1311 CPP
1312 host_os
1313 host_vendor
1314 host_cpu
1315 host
1316 build_os
1317 build_vendor
1318 build_cpu
1319 build
1320 OBJEXT
1321 EXEEXT
1322 ac_ct_CC
1323 CPPFLAGS
1324 LDFLAGS
1325 CFLAGS
1326 CC
1327 MAINT
1328 MAINTAINER_MODE_FALSE
1329 MAINTAINER_MODE_TRUE
1330 target_alias
1331 host_alias
1332 build_alias
1333 LIBS
1334 ECHO_T
1335 ECHO_N
1336 ECHO_C
1337 DEFS
1338 mandir
1339 localedir
1340 libdir
1341 psdir
1342 pdfdir
1343 dvidir
1344 htmldir
1345 infodir
1346 docdir
1347 oldincludedir
1348 includedir
1349 localstatedir
1350 sharedstatedir
1351 sysconfdir
1352 datadir
1353 datarootdir
1354 libexecdir
1355 sbindir
1356 bindir
1357 program_transform_name
1358 prefix
1359 exec_prefix
1360 PACKAGE_URL
1361 PACKAGE_BUGREPORT
1362 PACKAGE_STRING
1363 PACKAGE_VERSION
1364 PACKAGE_TARNAME
1365 PACKAGE_NAME
1366 PATH_SEPARATOR
1367 SHELL'
1368 ac_subst_files=''
1369 ac_user_opts='
1370 enable_option_checking
1371 enable_maintainer_mode
1372 enable_dependency_tracking
1373 '
1374       ac_precious_vars='build_alias
1375 host_alias
1376 target_alias
1377 CC
1378 CFLAGS
1379 LDFLAGS
1380 LIBS
1381 CPPFLAGS
1382 CPP'
1383
1384
1385 # Initialize some variables set by options.
1386 ac_init_help=
1387 ac_init_version=false
1388 ac_unrecognized_opts=
1389 ac_unrecognized_sep=
1390 # The variables have the same names as the options, with
1391 # dashes changed to underlines.
1392 cache_file=/dev/null
1393 exec_prefix=NONE
1394 no_create=
1395 no_recursion=
1396 prefix=NONE
1397 program_prefix=NONE
1398 program_suffix=NONE
1399 program_transform_name=s,x,x,
1400 silent=
1401 site=
1402 srcdir=
1403 verbose=
1404 x_includes=NONE
1405 x_libraries=NONE
1406
1407 # Installation directory options.
1408 # These are left unexpanded so users can "make install exec_prefix=/foo"
1409 # and all the variables that are supposed to be based on exec_prefix
1410 # by default will actually change.
1411 # Use braces instead of parens because sh, perl, etc. also accept them.
1412 # (The list follows the same order as the GNU Coding Standards.)
1413 bindir='${exec_prefix}/bin'
1414 sbindir='${exec_prefix}/sbin'
1415 libexecdir='${exec_prefix}/libexec'
1416 datarootdir='${prefix}/share'
1417 datadir='${datarootdir}'
1418 sysconfdir='${prefix}/etc'
1419 sharedstatedir='${prefix}/com'
1420 localstatedir='${prefix}/var'
1421 includedir='${prefix}/include'
1422 oldincludedir='/usr/include'
1423 docdir='${datarootdir}/doc/${PACKAGE}'
1424 infodir='${datarootdir}/info'
1425 htmldir='${docdir}'
1426 dvidir='${docdir}'
1427 pdfdir='${docdir}'
1428 psdir='${docdir}'
1429 libdir='${exec_prefix}/lib'
1430 localedir='${datarootdir}/locale'
1431 mandir='${datarootdir}/man'
1432
1433 ac_prev=
1434 ac_dashdash=
1435 for ac_option
1436 do
1437   # If the previous option needs an argument, assign it.
1438   if test -n "$ac_prev"; then
1439     eval $ac_prev=\$ac_option
1440     ac_prev=
1441     continue
1442   fi
1443
1444   case $ac_option in
1445   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1446   *)    ac_optarg=yes ;;
1447   esac
1448
1449   # Accept the important Cygnus configure options, so we can diagnose typos.
1450
1451   case $ac_dashdash$ac_option in
1452   --)
1453     ac_dashdash=yes ;;
1454
1455   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1456     ac_prev=bindir ;;
1457   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1458     bindir=$ac_optarg ;;
1459
1460   -build | --build | --buil | --bui | --bu)
1461     ac_prev=build_alias ;;
1462   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1463     build_alias=$ac_optarg ;;
1464
1465   -cache-file | --cache-file | --cache-fil | --cache-fi \
1466   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1467     ac_prev=cache_file ;;
1468   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1469   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1470     cache_file=$ac_optarg ;;
1471
1472   --config-cache | -C)
1473     cache_file=config.cache ;;
1474
1475   -datadir | --datadir | --datadi | --datad)
1476     ac_prev=datadir ;;
1477   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1478     datadir=$ac_optarg ;;
1479
1480   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1481   | --dataroo | --dataro | --datar)
1482     ac_prev=datarootdir ;;
1483   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1484   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1485     datarootdir=$ac_optarg ;;
1486
1487   -disable-* | --disable-*)
1488     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1489     # Reject names that are not valid shell variable names.
1490     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1491       as_fn_error "invalid feature name: $ac_useropt"
1492     ac_useropt_orig=$ac_useropt
1493     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1494     case $ac_user_opts in
1495       *"
1496 "enable_$ac_useropt"
1497 "*) ;;
1498       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1499          ac_unrecognized_sep=', ';;
1500     esac
1501     eval enable_$ac_useropt=no ;;
1502
1503   -docdir | --docdir | --docdi | --doc | --do)
1504     ac_prev=docdir ;;
1505   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1506     docdir=$ac_optarg ;;
1507
1508   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1509     ac_prev=dvidir ;;
1510   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1511     dvidir=$ac_optarg ;;
1512
1513   -enable-* | --enable-*)
1514     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1515     # Reject names that are not valid shell variable names.
1516     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1517       as_fn_error "invalid feature name: $ac_useropt"
1518     ac_useropt_orig=$ac_useropt
1519     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1520     case $ac_user_opts in
1521       *"
1522 "enable_$ac_useropt"
1523 "*) ;;
1524       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1525          ac_unrecognized_sep=', ';;
1526     esac
1527     eval enable_$ac_useropt=\$ac_optarg ;;
1528
1529   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1530   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1531   | --exec | --exe | --ex)
1532     ac_prev=exec_prefix ;;
1533   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1534   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1535   | --exec=* | --exe=* | --ex=*)
1536     exec_prefix=$ac_optarg ;;
1537
1538   -gas | --gas | --ga | --g)
1539     # Obsolete; use --with-gas.
1540     with_gas=yes ;;
1541
1542   -help | --help | --hel | --he | -h)
1543     ac_init_help=long ;;
1544   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1545     ac_init_help=recursive ;;
1546   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1547     ac_init_help=short ;;
1548
1549   -host | --host | --hos | --ho)
1550     ac_prev=host_alias ;;
1551   -host=* | --host=* | --hos=* | --ho=*)
1552     host_alias=$ac_optarg ;;
1553
1554   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1555     ac_prev=htmldir ;;
1556   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1557   | --ht=*)
1558     htmldir=$ac_optarg ;;
1559
1560   -includedir | --includedir | --includedi | --included | --include \
1561   | --includ | --inclu | --incl | --inc)
1562     ac_prev=includedir ;;
1563   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1564   | --includ=* | --inclu=* | --incl=* | --inc=*)
1565     includedir=$ac_optarg ;;
1566
1567   -infodir | --infodir | --infodi | --infod | --info | --inf)
1568     ac_prev=infodir ;;
1569   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1570     infodir=$ac_optarg ;;
1571
1572   -libdir | --libdir | --libdi | --libd)
1573     ac_prev=libdir ;;
1574   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1575     libdir=$ac_optarg ;;
1576
1577   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1578   | --libexe | --libex | --libe)
1579     ac_prev=libexecdir ;;
1580   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1581   | --libexe=* | --libex=* | --libe=*)
1582     libexecdir=$ac_optarg ;;
1583
1584   -localedir | --localedir | --localedi | --localed | --locale)
1585     ac_prev=localedir ;;
1586   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1587     localedir=$ac_optarg ;;
1588
1589   -localstatedir | --localstatedir | --localstatedi | --localstated \
1590   | --localstate | --localstat | --localsta | --localst | --locals)
1591     ac_prev=localstatedir ;;
1592   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1593   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1594     localstatedir=$ac_optarg ;;
1595
1596   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1597     ac_prev=mandir ;;
1598   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1599     mandir=$ac_optarg ;;
1600
1601   -nfp | --nfp | --nf)
1602     # Obsolete; use --without-fp.
1603     with_fp=no ;;
1604
1605   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1606   | --no-cr | --no-c | -n)
1607     no_create=yes ;;
1608
1609   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1610   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1611     no_recursion=yes ;;
1612
1613   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1614   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1615   | --oldin | --oldi | --old | --ol | --o)
1616     ac_prev=oldincludedir ;;
1617   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1618   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1619   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1620     oldincludedir=$ac_optarg ;;
1621
1622   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1623     ac_prev=prefix ;;
1624   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1625     prefix=$ac_optarg ;;
1626
1627   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1628   | --program-pre | --program-pr | --program-p)
1629     ac_prev=program_prefix ;;
1630   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1631   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1632     program_prefix=$ac_optarg ;;
1633
1634   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1635   | --program-suf | --program-su | --program-s)
1636     ac_prev=program_suffix ;;
1637   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1638   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1639     program_suffix=$ac_optarg ;;
1640
1641   -program-transform-name | --program-transform-name \
1642   | --program-transform-nam | --program-transform-na \
1643   | --program-transform-n | --program-transform- \
1644   | --program-transform | --program-transfor \
1645   | --program-transfo | --program-transf \
1646   | --program-trans | --program-tran \
1647   | --progr-tra | --program-tr | --program-t)
1648     ac_prev=program_transform_name ;;
1649   -program-transform-name=* | --program-transform-name=* \
1650   | --program-transform-nam=* | --program-transform-na=* \
1651   | --program-transform-n=* | --program-transform-=* \
1652   | --program-transform=* | --program-transfor=* \
1653   | --program-transfo=* | --program-transf=* \
1654   | --program-trans=* | --program-tran=* \
1655   | --progr-tra=* | --program-tr=* | --program-t=*)
1656     program_transform_name=$ac_optarg ;;
1657
1658   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1659     ac_prev=pdfdir ;;
1660   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1661     pdfdir=$ac_optarg ;;
1662
1663   -psdir | --psdir | --psdi | --psd | --ps)
1664     ac_prev=psdir ;;
1665   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1666     psdir=$ac_optarg ;;
1667
1668   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669   | -silent | --silent | --silen | --sile | --sil)
1670     silent=yes ;;
1671
1672   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1673     ac_prev=sbindir ;;
1674   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1675   | --sbi=* | --sb=*)
1676     sbindir=$ac_optarg ;;
1677
1678   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1679   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1680   | --sharedst | --shareds | --shared | --share | --shar \
1681   | --sha | --sh)
1682     ac_prev=sharedstatedir ;;
1683   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1684   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1685   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1686   | --sha=* | --sh=*)
1687     sharedstatedir=$ac_optarg ;;
1688
1689   -site | --site | --sit)
1690     ac_prev=site ;;
1691   -site=* | --site=* | --sit=*)
1692     site=$ac_optarg ;;
1693
1694   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1695     ac_prev=srcdir ;;
1696   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1697     srcdir=$ac_optarg ;;
1698
1699   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1700   | --syscon | --sysco | --sysc | --sys | --sy)
1701     ac_prev=sysconfdir ;;
1702   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1703   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1704     sysconfdir=$ac_optarg ;;
1705
1706   -target | --target | --targe | --targ | --tar | --ta | --t)
1707     ac_prev=target_alias ;;
1708   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1709     target_alias=$ac_optarg ;;
1710
1711   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1712     verbose=yes ;;
1713
1714   -version | --version | --versio | --versi | --vers | -V)
1715     ac_init_version=: ;;
1716
1717   -with-* | --with-*)
1718     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1719     # Reject names that are not valid shell variable names.
1720     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1721       as_fn_error "invalid package name: $ac_useropt"
1722     ac_useropt_orig=$ac_useropt
1723     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1724     case $ac_user_opts in
1725       *"
1726 "with_$ac_useropt"
1727 "*) ;;
1728       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1729          ac_unrecognized_sep=', ';;
1730     esac
1731     eval with_$ac_useropt=\$ac_optarg ;;
1732
1733   -without-* | --without-*)
1734     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1735     # Reject names that are not valid shell variable names.
1736     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1737       as_fn_error "invalid package name: $ac_useropt"
1738     ac_useropt_orig=$ac_useropt
1739     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1740     case $ac_user_opts in
1741       *"
1742 "with_$ac_useropt"
1743 "*) ;;
1744       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1745          ac_unrecognized_sep=', ';;
1746     esac
1747     eval with_$ac_useropt=no ;;
1748
1749   --x)
1750     # Obsolete; use --with-x.
1751     with_x=yes ;;
1752
1753   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1754   | --x-incl | --x-inc | --x-in | --x-i)
1755     ac_prev=x_includes ;;
1756   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1757   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1758     x_includes=$ac_optarg ;;
1759
1760   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1761   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1762     ac_prev=x_libraries ;;
1763   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1764   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1765     x_libraries=$ac_optarg ;;
1766
1767   -*) as_fn_error "unrecognized option: \`$ac_option'
1768 Try \`$0 --help' for more information."
1769     ;;
1770
1771   *=*)
1772     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1773     # Reject names that are not valid shell variable names.
1774     case $ac_envvar in #(
1775       '' | [0-9]* | *[!_$as_cr_alnum]* )
1776       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1777     esac
1778     eval $ac_envvar=\$ac_optarg
1779     export $ac_envvar ;;
1780
1781   *)
1782     # FIXME: should be removed in autoconf 3.0.
1783     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1784     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1785       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1786     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1787     ;;
1788
1789   esac
1790 done
1791
1792 if test -n "$ac_prev"; then
1793   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1794   as_fn_error "missing argument to $ac_option"
1795 fi
1796
1797 if test -n "$ac_unrecognized_opts"; then
1798   case $enable_option_checking in
1799     no) ;;
1800     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1801     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1802   esac
1803 fi
1804
1805 # Check all directory arguments for consistency.
1806 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1807                 datadir sysconfdir sharedstatedir localstatedir includedir \
1808                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1809                 libdir localedir mandir
1810 do
1811   eval ac_val=\$$ac_var
1812   # Remove trailing slashes.
1813   case $ac_val in
1814     */ )
1815       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1816       eval $ac_var=\$ac_val;;
1817   esac
1818   # Be sure to have absolute directory names.
1819   case $ac_val in
1820     [\\/$]* | ?:[\\/]* )  continue;;
1821     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1822   esac
1823   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1824 done
1825
1826 # There might be people who depend on the old broken behavior: `$host'
1827 # used to hold the argument of --host etc.
1828 # FIXME: To remove some day.
1829 build=$build_alias
1830 host=$host_alias
1831 target=$target_alias
1832
1833 # FIXME: To remove some day.
1834 if test "x$host_alias" != x; then
1835   if test "x$build_alias" = x; then
1836     cross_compiling=maybe
1837     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1838     If a cross compiler is detected then cross compile mode will be used." >&2
1839   elif test "x$build_alias" != "x$host_alias"; then
1840     cross_compiling=yes
1841   fi
1842 fi
1843
1844 ac_tool_prefix=
1845 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1846
1847 test "$silent" = yes && exec 6>/dev/null
1848
1849
1850 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1851 ac_ls_di=`ls -di .` &&
1852 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1853   as_fn_error "working directory cannot be determined"
1854 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1855   as_fn_error "pwd does not report name of working directory"
1856
1857
1858 # Find the source files, if location was not specified.
1859 if test -z "$srcdir"; then
1860   ac_srcdir_defaulted=yes
1861   # Try the directory containing this script, then the parent directory.
1862   ac_confdir=`$as_dirname -- "$as_myself" ||
1863 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1864          X"$as_myself" : 'X\(//\)[^/]' \| \
1865          X"$as_myself" : 'X\(//\)$' \| \
1866          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1867 $as_echo X"$as_myself" |
1868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1869             s//\1/
1870             q
1871           }
1872           /^X\(\/\/\)[^/].*/{
1873             s//\1/
1874             q
1875           }
1876           /^X\(\/\/\)$/{
1877             s//\1/
1878             q
1879           }
1880           /^X\(\/\).*/{
1881             s//\1/
1882             q
1883           }
1884           s/.*/./; q'`
1885   srcdir=$ac_confdir
1886   if test ! -r "$srcdir/$ac_unique_file"; then
1887     srcdir=..
1888   fi
1889 else
1890   ac_srcdir_defaulted=no
1891 fi
1892 if test ! -r "$srcdir/$ac_unique_file"; then
1893   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1894   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1895 fi
1896 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1897 ac_abs_confdir=`(
1898         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1899         pwd)`
1900 # When building in place, set srcdir=.
1901 if test "$ac_abs_confdir" = "$ac_pwd"; then
1902   srcdir=.
1903 fi
1904 # Remove unnecessary trailing slashes from srcdir.
1905 # Double slashes in file names in object file debugging info
1906 # mess up M-x gdb in Emacs.
1907 case $srcdir in
1908 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1909 esac
1910 for ac_var in $ac_precious_vars; do
1911   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1912   eval ac_env_${ac_var}_value=\$${ac_var}
1913   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1914   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1915 done
1916
1917 #
1918 # Report the --help message.
1919 #
1920 if test "$ac_init_help" = "long"; then
1921   # Omit some internal or obsolete options to make the list less imposing.
1922   # This message is too long to be a string in the A/UX 3.1 sh.
1923   cat <<_ACEOF
1924 \`configure' configures this package to adapt to many kinds of systems.
1925
1926 Usage: $0 [OPTION]... [VAR=VALUE]...
1927
1928 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1929 VAR=VALUE.  See below for descriptions of some of the useful variables.
1930
1931 Defaults for the options are specified in brackets.
1932
1933 Configuration:
1934   -h, --help              display this help and exit
1935       --help=short        display options specific to this package
1936       --help=recursive    display the short help of all the included packages
1937   -V, --version           display version information and exit
1938   -q, --quiet, --silent   do not print \`checking...' messages
1939       --cache-file=FILE   cache test results in FILE [disabled]
1940   -C, --config-cache      alias for \`--cache-file=config.cache'
1941   -n, --no-create         do not create output files
1942       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1943
1944 Installation directories:
1945   --prefix=PREFIX         install architecture-independent files in PREFIX
1946                           [$ac_default_prefix]
1947   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1948                           [PREFIX]
1949
1950 By default, \`make install' will install all the files in
1951 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1952 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1953 for instance \`--prefix=\$HOME'.
1954
1955 For better control, use the options below.
1956
1957 Fine tuning of the installation directories:
1958   --bindir=DIR            user executables [EPREFIX/bin]
1959   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1960   --libexecdir=DIR        program executables [EPREFIX/libexec]
1961   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1962   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1963   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1964   --libdir=DIR            object code libraries [EPREFIX/lib]
1965   --includedir=DIR        C header files [PREFIX/include]
1966   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1967   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1968   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1969   --infodir=DIR           info documentation [DATAROOTDIR/info]
1970   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1971   --mandir=DIR            man documentation [DATAROOTDIR/man]
1972   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1973   --htmldir=DIR           html documentation [DOCDIR]
1974   --dvidir=DIR            dvi documentation [DOCDIR]
1975   --pdfdir=DIR            pdf documentation [DOCDIR]
1976   --psdir=DIR             ps documentation [DOCDIR]
1977 _ACEOF
1978
1979   cat <<\_ACEOF
1980
1981 Program names:
1982   --program-prefix=PREFIX            prepend PREFIX to installed program names
1983   --program-suffix=SUFFIX            append SUFFIX to installed program names
1984   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1985
1986 System types:
1987   --build=BUILD     configure for building on BUILD [guessed]
1988   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1989   --target=TARGET   configure for building compilers for TARGET [HOST]
1990 _ACEOF
1991 fi
1992
1993 if test -n "$ac_init_help"; then
1994
1995   cat <<\_ACEOF
1996
1997 Optional Features:
1998   --disable-option-checking  ignore unrecognized --enable/--with options
1999   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2000   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2001   --enable-maintainer-mode  enable make rules and dependencies not useful
2002                           (and sometimes confusing) to the casual installer
2003   --disable-dependency-tracking  speeds up one-time build
2004   --enable-dependency-tracking   do not reject slow dependency extractors
2005
2006 Some influential environment variables:
2007   CC          C compiler command
2008   CFLAGS      C compiler flags
2009   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2010               nonstandard directory <lib dir>
2011   LIBS        libraries to pass to the linker, e.g. -l<library>
2012   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2013               you have headers in a nonstandard directory <include dir>
2014   CPP         C preprocessor
2015
2016 Use these variables to override the choices made by `configure' or to help
2017 it to find libraries and programs with nonstandard names/locations.
2018
2019 Report bugs to the package provider.
2020 _ACEOF
2021 ac_status=$?
2022 fi
2023
2024 if test "$ac_init_help" = "recursive"; then
2025   # If there are subdirs, report their specific --help.
2026   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2027     test -d "$ac_dir" ||
2028       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2029       continue
2030     ac_builddir=.
2031
2032 case "$ac_dir" in
2033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034 *)
2035   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2036   # A ".." for each directory in $ac_dir_suffix.
2037   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2038   case $ac_top_builddir_sub in
2039   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2041   esac ;;
2042 esac
2043 ac_abs_top_builddir=$ac_pwd
2044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2045 # for backward compatibility:
2046 ac_top_builddir=$ac_top_build_prefix
2047
2048 case $srcdir in
2049   .)  # We are building in place.
2050     ac_srcdir=.
2051     ac_top_srcdir=$ac_top_builddir_sub
2052     ac_abs_top_srcdir=$ac_pwd ;;
2053   [\\/]* | ?:[\\/]* )  # Absolute name.
2054     ac_srcdir=$srcdir$ac_dir_suffix;
2055     ac_top_srcdir=$srcdir
2056     ac_abs_top_srcdir=$srcdir ;;
2057   *) # Relative name.
2058     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2059     ac_top_srcdir=$ac_top_build_prefix$srcdir
2060     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2061 esac
2062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2063
2064     cd "$ac_dir" || { ac_status=$?; continue; }
2065     # Check for guested configure.
2066     if test -f "$ac_srcdir/configure.gnu"; then
2067       echo &&
2068       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2069     elif test -f "$ac_srcdir/configure"; then
2070       echo &&
2071       $SHELL "$ac_srcdir/configure" --help=recursive
2072     else
2073       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2074     fi || ac_status=$?
2075     cd "$ac_pwd" || { ac_status=$?; break; }
2076   done
2077 fi
2078
2079 test -n "$ac_init_help" && exit $ac_status
2080 if $ac_init_version; then
2081   cat <<\_ACEOF
2082 configure
2083 generated by GNU Autoconf 2.64
2084
2085 Copyright (C) 2009 Free Software Foundation, Inc.
2086 This configure script is free software; the Free Software Foundation
2087 gives unlimited permission to copy, distribute and modify it.
2088 _ACEOF
2089   exit
2090 fi
2091
2092 ## ------------------------ ##
2093 ## Autoconf initialization. ##
2094 ## ------------------------ ##
2095
2096 # ac_fn_c_try_compile LINENO
2097 # --------------------------
2098 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2099 ac_fn_c_try_compile ()
2100 {
2101   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102   rm -f conftest.$ac_objext
2103   if { { ac_try="$ac_compile"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110   (eval "$ac_compile") 2>conftest.err
2111   ac_status=$?
2112   if test -s conftest.err; then
2113     grep -v '^ *+' conftest.err >conftest.er1
2114     cat conftest.er1 >&5
2115     mv -f conftest.er1 conftest.err
2116   fi
2117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118   test $ac_status = 0; } && {
2119          test -z "$ac_c_werror_flag" ||
2120          test ! -s conftest.err
2121        } && test -s conftest.$ac_objext; then :
2122   ac_retval=0
2123 else
2124   $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127         ac_retval=1
2128 fi
2129   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130   return $ac_retval
2131
2132 } # ac_fn_c_try_compile
2133
2134 # ac_fn_c_try_cpp LINENO
2135 # ----------------------
2136 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_c_try_cpp ()
2138 {
2139   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140   if { { ac_try="$ac_cpp conftest.$ac_ext"
2141 case "(($ac_try" in
2142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143   *) ac_try_echo=$ac_try;;
2144 esac
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2148   ac_status=$?
2149   if test -s conftest.err; then
2150     grep -v '^ *+' conftest.err >conftest.er1
2151     cat conftest.er1 >&5
2152     mv -f conftest.er1 conftest.err
2153   fi
2154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155   test $ac_status = 0; } >/dev/null && {
2156          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2157          test ! -s conftest.err
2158        }; then :
2159   ac_retval=0
2160 else
2161   $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164     ac_retval=1
2165 fi
2166   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167   return $ac_retval
2168
2169 } # ac_fn_c_try_cpp
2170
2171 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2172 # -------------------------------------------------------
2173 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2174 # the include files in INCLUDES and setting the cache variable VAR
2175 # accordingly.
2176 ac_fn_c_check_header_mongrel ()
2177 {
2178   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181 $as_echo_n "checking for $2... " >&6; }
2182 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2183   $as_echo_n "(cached) " >&6
2184 fi
2185 eval ac_res=\$$3
2186                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 else
2189   # Is the header compilable?
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2191 $as_echo_n "checking $2 usability... " >&6; }
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h.  */
2194 $4
2195 #include <$2>
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198   ac_header_compiler=yes
2199 else
2200   ac_header_compiler=no
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2204 $as_echo "$ac_header_compiler" >&6; }
2205
2206 # Is the header present?
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2208 $as_echo_n "checking $2 presence... " >&6; }
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h.  */
2211 #include <$2>
2212 _ACEOF
2213 if ac_fn_c_try_cpp "$LINENO"; then :
2214   ac_header_preproc=yes
2215 else
2216   ac_header_preproc=no
2217 fi
2218 rm -f conftest.err conftest.$ac_ext
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2220 $as_echo "$ac_header_preproc" >&6; }
2221
2222 # So?  What about this header?
2223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2224   yes:no: )
2225     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2226 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2227     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2229     ;;
2230   no:yes:* )
2231     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2232 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2233     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2234 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2235     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2236 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2237     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2238 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2239     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2240 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2241     ;;
2242 esac
2243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246   $as_echo_n "(cached) " >&6
2247 else
2248   eval "$3=\$ac_header_compiler"
2249 fi
2250 eval ac_res=\$$3
2251                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253 fi
2254   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255
2256 } # ac_fn_c_check_header_mongrel
2257
2258 # ac_fn_c_try_run LINENO
2259 # ----------------------
2260 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2261 # that executables *can* be run.
2262 ac_fn_c_try_run ()
2263 {
2264   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265   if { { ac_try="$ac_link"
2266 case "(($ac_try" in
2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268   *) ac_try_echo=$ac_try;;
2269 esac
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272   (eval "$ac_link") 2>&5
2273   ac_status=$?
2274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2275   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2276   { { case "(($ac_try" in
2277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278   *) ac_try_echo=$ac_try;;
2279 esac
2280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281 $as_echo "$ac_try_echo"; } >&5
2282   (eval "$ac_try") 2>&5
2283   ac_status=$?
2284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285   test $ac_status = 0; }; }; then :
2286   ac_retval=0
2287 else
2288   $as_echo "$as_me: program exited with status $ac_status" >&5
2289        $as_echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292        ac_retval=$ac_status
2293 fi
2294   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2295   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2296   return $ac_retval
2297
2298 } # ac_fn_c_try_run
2299
2300 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2301 # -------------------------------------------------------
2302 # Tests whether HEADER exists and can be compiled using the include files in
2303 # INCLUDES, setting the cache variable VAR accordingly.
2304 ac_fn_c_check_header_compile ()
2305 {
2306   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2310   $as_echo_n "(cached) " >&6
2311 else
2312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h.  */
2314 $4
2315 #include <$2>
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318   eval "$3=yes"
2319 else
2320   eval "$3=no"
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 fi
2324 eval ac_res=\$$3
2325                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2328
2329 } # ac_fn_c_check_header_compile
2330
2331 # ac_fn_c_try_link LINENO
2332 # -----------------------
2333 # Try to link conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_c_try_link ()
2335 {
2336   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337   rm -f conftest.$ac_objext conftest$ac_exeext
2338   if { { ac_try="$ac_link"
2339 case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345   (eval "$ac_link") 2>conftest.err
2346   ac_status=$?
2347   if test -s conftest.err; then
2348     grep -v '^ *+' conftest.err >conftest.er1
2349     cat conftest.er1 >&5
2350     mv -f conftest.er1 conftest.err
2351   fi
2352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353   test $ac_status = 0; } && {
2354          test -z "$ac_c_werror_flag" ||
2355          test ! -s conftest.err
2356        } && test -s conftest$ac_exeext && {
2357          test "$cross_compiling" = yes ||
2358          $as_test_x conftest$ac_exeext
2359        }; then :
2360   ac_retval=0
2361 else
2362   $as_echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365         ac_retval=1
2366 fi
2367   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2368   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2369   # interfere with the next link command; also delete a directory that is
2370   # left behind by Apple's compiler.  We do this before executing the actions.
2371   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373   return $ac_retval
2374
2375 } # ac_fn_c_try_link
2376
2377 # ac_fn_c_check_func LINENO FUNC VAR
2378 # ----------------------------------
2379 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2380 ac_fn_c_check_func ()
2381 {
2382   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2384 $as_echo_n "checking for $2... " >&6; }
2385 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2386   $as_echo_n "(cached) " >&6
2387 else
2388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h.  */
2390 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2392 #define $2 innocuous_$2
2393
2394 /* System header to define __stub macros and hopefully few prototypes,
2395     which can conflict with char $2 (); below.
2396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2397     <limits.h> exists even on freestanding compilers.  */
2398
2399 #ifdef __STDC__
2400 # include <limits.h>
2401 #else
2402 # include <assert.h>
2403 #endif
2404
2405 #undef $2
2406
2407 /* Override any GCC internal prototype to avoid an error.
2408    Use char because int might match the return type of a GCC
2409    builtin and then its argument prototype would still apply.  */
2410 #ifdef __cplusplus
2411 extern "C"
2412 #endif
2413 char $2 ();
2414 /* The GNU C library defines this for functions which it implements
2415     to always fail with ENOSYS.  Some functions are actually named
2416     something starting with __ and the normal name is an alias.  */
2417 #if defined __stub_$2 || defined __stub___$2
2418 choke me
2419 #endif
2420
2421 int
2422 main ()
2423 {
2424 return $2 ();
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 if ac_fn_c_try_link "$LINENO"; then :
2430   eval "$3=yes"
2431 else
2432   eval "$3=no"
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext \
2435     conftest$ac_exeext conftest.$ac_ext
2436 fi
2437 eval ac_res=\$$3
2438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2441
2442 } # ac_fn_c_check_func
2443
2444 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2445 # --------------------------------------------
2446 # Tries to find the compile-time value of EXPR in a program that includes
2447 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2448 # computed
2449 ac_fn_c_compute_int ()
2450 {
2451   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452   if test "$cross_compiling" = yes; then
2453     # Depending upon the size, compute the lo and hi bounds.
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h.  */
2456 $4
2457 int
2458 main ()
2459 {
2460 static int test_array [1 - 2 * !(($2) >= 0)];
2461 test_array [0] = 0
2462
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 if ac_fn_c_try_compile "$LINENO"; then :
2468   ac_lo=0 ac_mid=0
2469   while :; do
2470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h.  */
2472 $4
2473 int
2474 main ()
2475 {
2476 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2477 test_array [0] = 0
2478
2479   ;
2480   return 0;
2481 }
2482 _ACEOF
2483 if ac_fn_c_try_compile "$LINENO"; then :
2484   ac_hi=$ac_mid; break
2485 else
2486   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2487                         if test $ac_lo -le $ac_mid; then
2488                           ac_lo= ac_hi=
2489                           break
2490                         fi
2491                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2492 fi
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494   done
2495 else
2496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h.  */
2498 $4
2499 int
2500 main ()
2501 {
2502 static int test_array [1 - 2 * !(($2) < 0)];
2503 test_array [0] = 0
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510   ac_hi=-1 ac_mid=-1
2511   while :; do
2512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h.  */
2514 $4
2515 int
2516 main ()
2517 {
2518 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2519 test_array [0] = 0
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526   ac_lo=$ac_mid; break
2527 else
2528   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2529                         if test $ac_mid -le $ac_hi; then
2530                           ac_lo= ac_hi=
2531                           break
2532                         fi
2533                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2534 fi
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536   done
2537 else
2538   ac_lo= ac_hi=
2539 fi
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 fi
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 # Binary search between lo and hi bounds.
2544 while test "x$ac_lo" != "x$ac_hi"; do
2545   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h.  */
2548 $4
2549 int
2550 main ()
2551 {
2552 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2553 test_array [0] = 0
2554
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 if ac_fn_c_try_compile "$LINENO"; then :
2560   ac_hi=$ac_mid
2561 else
2562   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 done
2566 case $ac_lo in #((
2567 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2568 '') ac_retval=1 ;;
2569 esac
2570   else
2571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h.  */
2573 $4
2574 static long int longval () { return $2; }
2575 static unsigned long int ulongval () { return $2; }
2576 #include <stdio.h>
2577 #include <stdlib.h>
2578 int
2579 main ()
2580 {
2581
2582   FILE *f = fopen ("conftest.val", "w");
2583   if (! f)
2584     return 1;
2585   if (($2) < 0)
2586     {
2587       long int i = longval ();
2588       if (i != ($2))
2589         return 1;
2590       fprintf (f, "%ld", i);
2591     }
2592   else
2593     {
2594       unsigned long int i = ulongval ();
2595       if (i != ($2))
2596         return 1;
2597       fprintf (f, "%lu", i);
2598     }
2599   /* Do not output a trailing newline, as this causes \r\n confusion
2600      on some platforms.  */
2601   return ferror (f) || fclose (f) != 0;
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 if ac_fn_c_try_run "$LINENO"; then :
2608   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2609 else
2610   ac_retval=1
2611 fi
2612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2613   conftest.$ac_objext conftest.beam conftest.$ac_ext
2614 rm -f conftest.val
2615
2616   fi
2617   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2618   return $ac_retval
2619
2620 } # ac_fn_c_compute_int
2621
2622 # ac_fn_c_check_decl LINENO SYMBOL VAR
2623 # ------------------------------------
2624 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2625 ac_fn_c_check_decl ()
2626 {
2627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2629 $as_echo_n "checking whether $2 is declared... " >&6; }
2630 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 $4
2636 int
2637 main ()
2638 {
2639 #ifndef $2
2640   (void) $2;
2641 #endif
2642
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 if ac_fn_c_try_compile "$LINENO"; then :
2648   eval "$3=yes"
2649 else
2650   eval "$3=no"
2651 fi
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 fi
2654 eval ac_res=\$$3
2655                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2656 $as_echo "$ac_res" >&6; }
2657   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2658
2659 } # ac_fn_c_check_decl
2660
2661 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2662 # -------------------------------------------
2663 # Tests whether TYPE exists after having included INCLUDES, setting cache
2664 # variable VAR accordingly.
2665 ac_fn_c_check_type ()
2666 {
2667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2669 $as_echo_n "checking for $2... " >&6; }
2670 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2671   $as_echo_n "(cached) " >&6
2672 else
2673   eval "$3=no"
2674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h.  */
2676 $4
2677 int
2678 main ()
2679 {
2680 if (sizeof ($2))
2681          return 0;
2682   ;
2683   return 0;
2684 }
2685 _ACEOF
2686 if ac_fn_c_try_compile "$LINENO"; then :
2687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h.  */
2689 $4
2690 int
2691 main ()
2692 {
2693 if (sizeof (($2)))
2694             return 0;
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 if ac_fn_c_try_compile "$LINENO"; then :
2700
2701 else
2702   eval "$3=yes"
2703 fi
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 fi
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 fi
2708 eval ac_res=\$$3
2709                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2710 $as_echo "$ac_res" >&6; }
2711   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2712
2713 } # ac_fn_c_check_type
2714 cat >config.log <<_ACEOF
2715 This file contains any messages produced by compilers while
2716 running configure, to aid debugging if configure makes a mistake.
2717
2718 It was created by $as_me, which was
2719 generated by GNU Autoconf 2.64.  Invocation command line was
2720
2721   $ $0 $@
2722
2723 _ACEOF
2724 exec 5>>config.log
2725 {
2726 cat <<_ASUNAME
2727 ## --------- ##
2728 ## Platform. ##
2729 ## --------- ##
2730
2731 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2732 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2733 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2734 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2735 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2736
2737 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2738 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2739
2740 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2741 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2742 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2743 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2744 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2745 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2746 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2747
2748 _ASUNAME
2749
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755     $as_echo "PATH: $as_dir"
2756   done
2757 IFS=$as_save_IFS
2758
2759 } >&5
2760
2761 cat >&5 <<_ACEOF
2762
2763
2764 ## ----------- ##
2765 ## Core tests. ##
2766 ## ----------- ##
2767
2768 _ACEOF
2769
2770
2771 # Keep a trace of the command line.
2772 # Strip out --no-create and --no-recursion so they do not pile up.
2773 # Strip out --silent because we don't want to record it for future runs.
2774 # Also quote any args containing shell meta-characters.
2775 # Make two passes to allow for proper duplicate-argument suppression.
2776 ac_configure_args=
2777 ac_configure_args0=
2778 ac_configure_args1=
2779 ac_must_keep_next=false
2780 for ac_pass in 1 2
2781 do
2782   for ac_arg
2783   do
2784     case $ac_arg in
2785     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2786     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2787     | -silent | --silent | --silen | --sile | --sil)
2788       continue ;;
2789     *\'*)
2790       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2791     esac
2792     case $ac_pass in
2793     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2794     2)
2795       as_fn_append ac_configure_args1 " '$ac_arg'"
2796       if test $ac_must_keep_next = true; then
2797         ac_must_keep_next=false # Got value, back to normal.
2798       else
2799         case $ac_arg in
2800           *=* | --config-cache | -C | -disable-* | --disable-* \
2801           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2802           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2803           | -with-* | --with-* | -without-* | --without-* | --x)
2804             case "$ac_configure_args0 " in
2805               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2806             esac
2807             ;;
2808           -* ) ac_must_keep_next=true ;;
2809         esac
2810       fi
2811       as_fn_append ac_configure_args " '$ac_arg'"
2812       ;;
2813     esac
2814   done
2815 done
2816 { ac_configure_args0=; unset ac_configure_args0;}
2817 { ac_configure_args1=; unset ac_configure_args1;}
2818
2819 # When interrupted or exit'd, cleanup temporary files, and complete
2820 # config.log.  We remove comments because anyway the quotes in there
2821 # would cause problems or look ugly.
2822 # WARNING: Use '\'' to represent an apostrophe within the trap.
2823 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2824 trap 'exit_status=$?
2825   # Save into config.log some information that might help in debugging.
2826   {
2827     echo
2828
2829     cat <<\_ASBOX
2830 ## ---------------- ##
2831 ## Cache variables. ##
2832 ## ---------------- ##
2833 _ASBOX
2834     echo
2835     # The following way of writing the cache mishandles newlines in values,
2836 (
2837   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2838     eval ac_val=\$$ac_var
2839     case $ac_val in #(
2840     *${as_nl}*)
2841       case $ac_var in #(
2842       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2843 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2844       esac
2845       case $ac_var in #(
2846       _ | IFS | as_nl) ;; #(
2847       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2848       *) { eval $ac_var=; unset $ac_var;} ;;
2849       esac ;;
2850     esac
2851   done
2852   (set) 2>&1 |
2853     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2854     *${as_nl}ac_space=\ *)
2855       sed -n \
2856         "s/'\''/'\''\\\\'\'''\''/g;
2857           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2858       ;; #(
2859     *)
2860       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2861       ;;
2862     esac |
2863     sort
2864 )
2865     echo
2866
2867     cat <<\_ASBOX
2868 ## ----------------- ##
2869 ## Output variables. ##
2870 ## ----------------- ##
2871 _ASBOX
2872     echo
2873     for ac_var in $ac_subst_vars
2874     do
2875       eval ac_val=\$$ac_var
2876       case $ac_val in
2877       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2878       esac
2879       $as_echo "$ac_var='\''$ac_val'\''"
2880     done | sort
2881     echo
2882
2883     if test -n "$ac_subst_files"; then
2884       cat <<\_ASBOX
2885 ## ------------------- ##
2886 ## File substitutions. ##
2887 ## ------------------- ##
2888 _ASBOX
2889       echo
2890       for ac_var in $ac_subst_files
2891       do
2892         eval ac_val=\$$ac_var
2893         case $ac_val in
2894         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2895         esac
2896         $as_echo "$ac_var='\''$ac_val'\''"
2897       done | sort
2898       echo
2899     fi
2900
2901     if test -s confdefs.h; then
2902       cat <<\_ASBOX
2903 ## ----------- ##
2904 ## confdefs.h. ##
2905 ## ----------- ##
2906 _ASBOX
2907       echo
2908       cat confdefs.h
2909       echo
2910     fi
2911     test "$ac_signal" != 0 &&
2912       $as_echo "$as_me: caught signal $ac_signal"
2913     $as_echo "$as_me: exit $exit_status"
2914   } >&5
2915   rm -f core *.core core.conftest.* &&
2916     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2917     exit $exit_status
2918 ' 0
2919 for ac_signal in 1 2 13 15; do
2920   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2921 done
2922 ac_signal=0
2923
2924 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2925 rm -f -r conftest* confdefs.h
2926
2927 $as_echo "/* confdefs.h */" > confdefs.h
2928
2929 # Predefined preprocessor variables.
2930
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE_NAME "$PACKAGE_NAME"
2933 _ACEOF
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2937 _ACEOF
2938
2939 cat >>confdefs.h <<_ACEOF
2940 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2941 _ACEOF
2942
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_STRING "$PACKAGE_STRING"
2945 _ACEOF
2946
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2949 _ACEOF
2950
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_URL "$PACKAGE_URL"
2953 _ACEOF
2954
2955
2956 # Let the site file select an alternate cache file if it wants to.
2957 # Prefer an explicitly selected file to automatically selected ones.
2958 ac_site_file1=NONE
2959 ac_site_file2=NONE
2960 if test -n "$CONFIG_SITE"; then
2961   ac_site_file1=$CONFIG_SITE
2962 elif test "x$prefix" != xNONE; then
2963   ac_site_file1=$prefix/share/config.site
2964   ac_site_file2=$prefix/etc/config.site
2965 else
2966   ac_site_file1=$ac_default_prefix/share/config.site
2967   ac_site_file2=$ac_default_prefix/etc/config.site
2968 fi
2969 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2970 do
2971   test "x$ac_site_file" = xNONE && continue
2972   if test -r "$ac_site_file"; then
2973     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2974 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2975     sed 's/^/| /' "$ac_site_file" >&5
2976     . "$ac_site_file"
2977   fi
2978 done
2979
2980 if test -r "$cache_file"; then
2981   # Some versions of bash will fail to source /dev/null (special
2982   # files actually), so we avoid doing that.
2983   if test -f "$cache_file"; then
2984     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2985 $as_echo "$as_me: loading cache $cache_file" >&6;}
2986     case $cache_file in
2987       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2988       *)                      . "./$cache_file";;
2989     esac
2990   fi
2991 else
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2993 $as_echo "$as_me: creating cache $cache_file" >&6;}
2994   >$cache_file
2995 fi
2996
2997 as_fn_append ac_func_list " btowc"
2998 as_fn_append ac_func_list " isblank"
2999 as_fn_append ac_func_list " iswctype"
3000 as_fn_append ac_func_list " mbsrtowcs"
3001 as_fn_append ac_func_list " mempcpy"
3002 as_fn_append ac_func_list " wmemchr"
3003 as_fn_append ac_func_list " wmemcpy"
3004 as_fn_append ac_func_list " wmempcpy"
3005 as_fn_append ac_header_list " wctype.h"
3006 gl_fnmatch_required=GNU
3007 as_fn_append ac_func_list " alarm"
3008 as_fn_append ac_header_list " wchar.h"
3009 as_fn_append ac_header_list " stdint.h"
3010 as_fn_append ac_header_list " inttypes.h"
3011 as_fn_append ac_header_list " unistd.h"
3012 as_fn_append ac_func_list " symlink"
3013 as_fn_append ac_header_list " math.h"
3014 as_fn_append ac_func_list " mbsinit"
3015 as_fn_append ac_func_list " mbrtowc"
3016 as_fn_append ac_header_list " sys/mman.h"
3017 as_fn_append ac_func_list " mprotect"
3018 as_fn_append ac_header_list " sys/param.h"
3019 as_fn_append ac_header_list " sys/socket.h"
3020 as_fn_append ac_header_list " features.h"
3021 as_fn_append ac_func_list " iswcntrl"
3022 # Check that the precious variables saved in the cache have kept the same
3023 # value.
3024 ac_cache_corrupted=false
3025 for ac_var in $ac_precious_vars; do
3026   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3027   eval ac_new_set=\$ac_env_${ac_var}_set
3028   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3029   eval ac_new_val=\$ac_env_${ac_var}_value
3030   case $ac_old_set,$ac_new_set in
3031     set,)
3032       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3033 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3034       ac_cache_corrupted=: ;;
3035     ,set)
3036       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3037 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3038       ac_cache_corrupted=: ;;
3039     ,);;
3040     *)
3041       if test "x$ac_old_val" != "x$ac_new_val"; then
3042         # differences in whitespace do not lead to failure.
3043         ac_old_val_w=`echo x $ac_old_val`
3044         ac_new_val_w=`echo x $ac_new_val`
3045         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3046           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3047 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3048           ac_cache_corrupted=:
3049         else
3050           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3051 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3052           eval $ac_var=\$ac_old_val
3053         fi
3054         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3055 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3056         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3057 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3058       fi;;
3059   esac
3060   # Pass precious variables to config.status.
3061   if test "$ac_new_set" = set; then
3062     case $ac_new_val in
3063     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3064     *) ac_arg=$ac_var=$ac_new_val ;;
3065     esac
3066     case " $ac_configure_args " in
3067       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3068       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3069     esac
3070   fi
3071 done
3072 if $ac_cache_corrupted; then
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3076 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3077   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3078 fi
3079 ## -------------------- ##
3080 ## Main body of script. ##
3081 ## -------------------- ##
3082
3083 ac_ext=c
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
3089
3090 ac_config_headers="$ac_config_headers config.h:config.in"
3091
3092
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3094 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3095     # Check whether --enable-maintainer-mode was given.
3096 if test "${enable_maintainer_mode+set}" = set; then :
3097   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3098 else
3099   USE_MAINTAINER_MODE=no
3100 fi
3101
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3103 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3104    if test $USE_MAINTAINER_MODE = yes; then
3105   MAINTAINER_MODE_TRUE=
3106   MAINTAINER_MODE_FALSE='#'
3107 else
3108   MAINTAINER_MODE_TRUE='#'
3109   MAINTAINER_MODE_FALSE=
3110 fi
3111
3112   MAINT=$MAINTAINER_MODE_TRUE
3113
3114
3115
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121 if test -n "$ac_tool_prefix"; then
3122   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then :
3127   $as_echo_n "(cached) " >&6
3128 else
3129   if test -n "$CC"; then
3130   ac_cv_prog_CC="$CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137     for ac_exec_ext in '' $ac_executable_extensions; do
3138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144   done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158
3159 fi
3160 if test -z "$ac_cv_prog_CC"; then
3161   ac_ct_CC=$CC
3162   # Extract the first word of "gcc", so it can be a program name with args.
3163 set dummy gcc; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3167   $as_echo_n "(cached) " >&6
3168 else
3169   if test -n "$ac_ct_CC"; then
3170   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177     for ac_exec_ext in '' $ac_executable_extensions; do
3178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179     ac_cv_prog_ac_ct_CC="gcc"
3180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181     break 2
3182   fi
3183 done
3184   done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190 if test -n "$ac_ct_CC"; then
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192 $as_echo "$ac_ct_CC" >&6; }
3193 else
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198   if test "x$ac_ct_CC" = x; then
3199     CC=""
3200   else
3201     case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3206 esac
3207     CC=$ac_ct_CC
3208   fi
3209 else
3210   CC="$ac_cv_prog_CC"
3211 fi
3212
3213 if test -z "$CC"; then
3214           if test -n "$ac_tool_prefix"; then
3215     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3216 set dummy ${ac_tool_prefix}cc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if test "${ac_cv_prog_CC+set}" = set; then :
3220   $as_echo_n "(cached) " >&6
3221 else
3222   if test -n "$CC"; then
3223   ac_cv_prog_CC="$CC" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228   IFS=$as_save_IFS
3229   test -z "$as_dir" && as_dir=.
3230     for ac_exec_ext in '' $ac_executable_extensions; do
3231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232     ac_cv_prog_CC="${ac_tool_prefix}cc"
3233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234     break 2
3235   fi
3236 done
3237   done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3246 else
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252   fi
3253 fi
3254 if test -z "$CC"; then
3255   # Extract the first word of "cc", so it can be a program name with args.
3256 set dummy cc; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if test "${ac_cv_prog_CC+set}" = set; then :
3260   $as_echo_n "(cached) " >&6
3261 else
3262   if test -n "$CC"; then
3263   ac_cv_prog_CC="$CC" # Let the user override the test.
3264 else
3265   ac_prog_rejected=no
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3274        ac_prog_rejected=yes
3275        continue
3276      fi
3277     ac_cv_prog_CC="cc"
3278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282   done
3283 IFS=$as_save_IFS
3284
3285 if test $ac_prog_rejected = yes; then
3286   # We found a bogon in the path, so make sure we never use it.
3287   set dummy $ac_cv_prog_CC
3288   shift
3289   if test $# != 0; then
3290     # We chose a different compiler from the bogus one.
3291     # However, it has the same basename, so the bogon will be chosen
3292     # first if we set CC to just the basename; use the full file name.
3293     shift
3294     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3295   fi
3296 fi
3297 fi
3298 fi
3299 CC=$ac_cv_prog_CC
3300 if test -n "$CC"; then
3301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302 $as_echo "$CC" >&6; }
3303 else
3304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 fi
3307
3308
3309 fi
3310 if test -z "$CC"; then
3311   if test -n "$ac_tool_prefix"; then
3312   for ac_prog in cl.exe
3313   do
3314     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if test "${ac_cv_prog_CC+set}" = set; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   if test -n "$CC"; then
3322   ac_cv_prog_CC="$CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327   IFS=$as_save_IFS
3328   test -z "$as_dir" && as_dir=.
3329     for ac_exec_ext in '' $ac_executable_extensions; do
3330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333     break 2
3334   fi
3335 done
3336   done
3337 IFS=$as_save_IFS
3338
3339 fi
3340 fi
3341 CC=$ac_cv_prog_CC
3342 if test -n "$CC"; then
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3344 $as_echo "$CC" >&6; }
3345 else
3346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3348 fi
3349
3350
3351     test -n "$CC" && break
3352   done
3353 fi
3354 if test -z "$CC"; then
3355   ac_ct_CC=$CC
3356   for ac_prog in cl.exe
3357 do
3358   # Extract the first word of "$ac_prog", so it can be a program name with args.
3359 set dummy $ac_prog; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   if test -n "$ac_ct_CC"; then
3366   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371   IFS=$as_save_IFS
3372   test -z "$as_dir" && as_dir=.
3373     for ac_exec_ext in '' $ac_executable_extensions; do
3374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375     ac_cv_prog_ac_ct_CC="$ac_prog"
3376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377     break 2
3378   fi
3379 done
3380   done
3381 IFS=$as_save_IFS
3382
3383 fi
3384 fi
3385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3386 if test -n "$ac_ct_CC"; then
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3388 $as_echo "$ac_ct_CC" >&6; }
3389 else
3390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 fi
3393
3394
3395   test -n "$ac_ct_CC" && break
3396 done
3397
3398   if test "x$ac_ct_CC" = x; then
3399     CC=""
3400   else
3401     case $cross_compiling:$ac_tool_warned in
3402 yes:)
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3405 ac_tool_warned=yes ;;
3406 esac
3407     CC=$ac_ct_CC
3408   fi
3409 fi
3410
3411 fi
3412
3413
3414 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error "no acceptable C compiler found in \$PATH
3417 See \`config.log' for more details." "$LINENO" 5; }
3418
3419 # Provide some information about the compiler.
3420 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3421 set X $ac_compile
3422 ac_compiler=$2
3423 for ac_option in --version -v -V -qversion; do
3424   { { ac_try="$ac_compiler $ac_option >&5"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3432   ac_status=$?
3433   if test -s conftest.err; then
3434     sed '10a\
3435 ... rest of stderr output deleted ...
3436          10q' conftest.err >conftest.er1
3437     cat conftest.er1 >&5
3438     rm -f conftest.er1 conftest.err
3439   fi
3440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441   test $ac_status = 0; }
3442 done
3443
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446 #include <stdio.h>
3447 int
3448 main ()
3449 {
3450 FILE *f = fopen ("conftest.out", "w");
3451  return ferror (f) || fclose (f) != 0;
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 ac_clean_files_save=$ac_clean_files
3458 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3459 # Try to create an executable without -o first, disregard a.out.
3460 # It will help us diagnose broken compilers, and finding out an intuition
3461 # of exeext.
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3463 $as_echo_n "checking for C compiler default output file name... " >&6; }
3464 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465
3466 # The possible output files:
3467 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3468
3469 ac_rmfiles=
3470 for ac_file in $ac_files
3471 do
3472   case $ac_file in
3473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3475   esac
3476 done
3477 rm -f $ac_rmfiles
3478
3479 if { { ac_try="$ac_link_default"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486   (eval "$ac_link_default") 2>&5
3487   ac_status=$?
3488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489   test $ac_status = 0; }; then :
3490   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3491 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3492 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3493 # so that the user can short-circuit this test for compilers unknown to
3494 # Autoconf.
3495 for ac_file in $ac_files ''
3496 do
3497   test -f "$ac_file" || continue
3498   case $ac_file in
3499     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3500         ;;
3501     [ab].out )
3502         # We found the default executable, but exeext='' is most
3503         # certainly right.
3504         break;;
3505     *.* )
3506         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3507         then :; else
3508            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509         fi
3510         # We set ac_cv_exeext here because the later test for it is not
3511         # safe: cross compilers may not add the suffix if given an `-o'
3512         # argument, so we may need to know it at that point already.
3513         # Even if this section looks crufty: it has the advantage of
3514         # actually working.
3515         break;;
3516     * )
3517         break;;
3518   esac
3519 done
3520 test "$ac_cv_exeext" = no && ac_cv_exeext=
3521
3522 else
3523   ac_file=''
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3526 $as_echo "$ac_file" >&6; }
3527 if test -z "$ac_file"; then :
3528   $as_echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 { as_fn_set_status 77
3534 as_fn_error "C compiler cannot create executables
3535 See \`config.log' for more details." "$LINENO" 5; }; }
3536 fi
3537 ac_exeext=$ac_cv_exeext
3538
3539 # Check that the compiler produces executables we can run.  If not, either
3540 # the compiler is broken, or we cross compile.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3542 $as_echo_n "checking whether the C compiler works... " >&6; }
3543 # If not cross compiling, check that we can run a simple program.
3544 if test "$cross_compiling" != yes; then
3545   if { ac_try='./$ac_file'
3546   { { case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555   test $ac_status = 0; }; }; then
3556     cross_compiling=no
3557   else
3558     if test "$cross_compiling" = maybe; then
3559         cross_compiling=yes
3560     else
3561         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error "cannot run C compiled programs.
3564 If you meant to cross compile, use \`--host'.
3565 See \`config.log' for more details." "$LINENO" 5; }
3566     fi
3567   fi
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3570 $as_echo "yes" >&6; }
3571
3572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3573 ac_clean_files=$ac_clean_files_save
3574 # Check that the compiler produces executables we can run.  If not, either
3575 # the compiler is broken, or we cross compile.
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3577 $as_echo_n "checking whether we are cross compiling... " >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3579 $as_echo "$cross_compiling" >&6; }
3580
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3582 $as_echo_n "checking for suffix of executables... " >&6; }
3583 if { { ac_try="$ac_link"
3584 case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590   (eval "$ac_link") 2>&5
3591   ac_status=$?
3592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593   test $ac_status = 0; }; then :
3594   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3595 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3596 # work properly (i.e., refer to `conftest.exe'), while it won't with
3597 # `rm'.
3598 for ac_file in conftest.exe conftest conftest.*; do
3599   test -f "$ac_file" || continue
3600   case $ac_file in
3601     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3603           break;;
3604     * ) break;;
3605   esac
3606 done
3607 else
3608   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error "cannot compute suffix of executables: cannot compile and link
3611 See \`config.log' for more details." "$LINENO" 5; }
3612 fi
3613 rm -f conftest$ac_cv_exeext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3615 $as_echo "$ac_cv_exeext" >&6; }
3616
3617 rm -f conftest.$ac_ext
3618 EXEEXT=$ac_cv_exeext
3619 ac_exeext=$EXEEXT
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3621 $as_echo_n "checking for suffix of object files... " >&6; }
3622 if test "${ac_cv_objext+set}" = set; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627
3628 int
3629 main ()
3630 {
3631
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 rm -f conftest.o conftest.obj
3637 if { { ac_try="$ac_compile"
3638 case "(($ac_try" in
3639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640   *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644   (eval "$ac_compile") 2>&5
3645   ac_status=$?
3646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647   test $ac_status = 0; }; then :
3648   for ac_file in conftest.o conftest.obj conftest.*; do
3649   test -f "$ac_file" || continue;
3650   case $ac_file in
3651     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3652     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3653        break;;
3654   esac
3655 done
3656 else
3657   $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error "cannot compute suffix of object files: cannot compile
3663 See \`config.log' for more details." "$LINENO" 5; }
3664 fi
3665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3668 $as_echo "$ac_cv_objext" >&6; }
3669 OBJEXT=$ac_cv_objext
3670 ac_objext=$OBJEXT
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3672 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3673 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h.  */
3678
3679 int
3680 main ()
3681 {
3682 #ifndef __GNUC__
3683        choke me
3684 #endif
3685
3686   ;
3687   return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691   ac_compiler_gnu=yes
3692 else
3693   ac_compiler_gnu=no
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3697
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3700 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3701 if test $ac_compiler_gnu = yes; then
3702   GCC=yes
3703 else
3704   GCC=
3705 fi
3706 ac_test_CFLAGS=${CFLAGS+set}
3707 ac_save_CFLAGS=$CFLAGS
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3709 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3710 if test "${ac_cv_prog_cc_g+set}" = set; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   ac_save_c_werror_flag=$ac_c_werror_flag
3714    ac_c_werror_flag=yes
3715    ac_cv_prog_cc_g=no
3716    CFLAGS="-g"
3717    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h.  */
3719
3720 int
3721 main ()
3722 {
3723
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729   ac_cv_prog_cc_g=yes
3730 else
3731   CFLAGS=""
3732       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h.  */
3734
3735 int
3736 main ()
3737 {
3738
3739   ;
3740   return 0;
3741 }
3742 _ACEOF
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744
3745 else
3746   ac_c_werror_flag=$ac_save_c_werror_flag
3747          CFLAGS="-g"
3748          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h.  */
3750
3751 int
3752 main ()
3753 {
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760   ac_cv_prog_cc_g=yes
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767    ac_c_werror_flag=$ac_save_c_werror_flag
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3770 $as_echo "$ac_cv_prog_cc_g" >&6; }
3771 if test "$ac_test_CFLAGS" = set; then
3772   CFLAGS=$ac_save_CFLAGS
3773 elif test $ac_cv_prog_cc_g = yes; then
3774   if test "$GCC" = yes; then
3775     CFLAGS="-g -O2"
3776   else
3777     CFLAGS="-g"
3778   fi
3779 else
3780   if test "$GCC" = yes; then
3781     CFLAGS="-O2"
3782   else
3783     CFLAGS=
3784   fi
3785 fi
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3787 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3788 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3789   $as_echo_n "(cached) " >&6
3790 else
3791   ac_cv_prog_cc_c89=no
3792 ac_save_CC=$CC
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795 #include <stdarg.h>
3796 #include <stdio.h>
3797 #include <sys/types.h>
3798 #include <sys/stat.h>
3799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3800 struct buf { int x; };
3801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3802 static char *e (p, i)
3803      char **p;
3804      int i;
3805 {
3806   return p[i];
3807 }
3808 static char *f (char * (*g) (char **, int), char **p, ...)
3809 {
3810   char *s;
3811   va_list v;
3812   va_start (v,p);
3813   s = g (p, va_arg (v,int));
3814   va_end (v);
3815   return s;
3816 }
3817
3818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3819    function prototypes and stuff, but not '\xHH' hex character constants.
3820    These don't provoke an error unfortunately, instead are silently treated
3821    as 'x'.  The following induces an error, until -std is added to get
3822    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3823    array size at least.  It's necessary to write '\x00'==0 to get something
3824    that's true only with -std.  */
3825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3826
3827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3828    inside strings and character constants.  */
3829 #define FOO(x) 'x'
3830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3831
3832 int test (int i, double x);
3833 struct s1 {int (*f) (int a);};
3834 struct s2 {int (*f) (double a);};
3835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3836 int argc;
3837 char **argv;
3838 int
3839 main ()
3840 {
3841 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3847         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3848 do
3849   CC="$ac_save_CC $ac_arg"
3850   if ac_fn_c_try_compile "$LINENO"; then :
3851   ac_cv_prog_cc_c89=$ac_arg
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext
3854   test "x$ac_cv_prog_cc_c89" != "xno" && break
3855 done
3856 rm -f conftest.$ac_ext
3857 CC=$ac_save_CC
3858
3859 fi
3860 # AC_CACHE_VAL
3861 case "x$ac_cv_prog_cc_c89" in
3862   x)
3863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3864 $as_echo "none needed" >&6; } ;;
3865   xno)
3866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3867 $as_echo "unsupported" >&6; } ;;
3868   *)
3869     CC="$CC $ac_cv_prog_cc_c89"
3870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3872 esac
3873 if test "x$ac_cv_prog_cc_c89" != xno; then :
3874
3875 fi
3876
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883 ac_aux_dir=
3884 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3885   for ac_t in install-sh install.sh shtool; do
3886     if test -f "$ac_dir/$ac_t"; then
3887       ac_aux_dir=$ac_dir
3888       ac_install_sh="$ac_aux_dir/$ac_t -c"
3889       break 2
3890     fi
3891   done
3892 done
3893 if test -z "$ac_aux_dir"; then
3894   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3895 fi
3896
3897 # These three variables are undocumented and unsupported,
3898 # and are intended to be withdrawn in a future Autoconf release.
3899 # They can cause serious problems if a builder's source tree is in a directory
3900 # whose full name contains unusual characters.
3901 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3902 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3903 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3904
3905
3906 # Make sure we can run config.sub.
3907 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3908   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3911 $as_echo_n "checking build system type... " >&6; }
3912 if test "${ac_cv_build+set}" = set; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   ac_build_alias=$build_alias
3916 test "x$ac_build_alias" = x &&
3917   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3918 test "x$ac_build_alias" = x &&
3919   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3920 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3921   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3922
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3925 $as_echo "$ac_cv_build" >&6; }
3926 case $ac_cv_build in
3927 *-*-*) ;;
3928 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3929 esac
3930 build=$ac_cv_build
3931 ac_save_IFS=$IFS; IFS='-'
3932 set x $ac_cv_build
3933 shift
3934 build_cpu=$1
3935 build_vendor=$2
3936 shift; shift
3937 # Remember, the first character of IFS is used to create $*,
3938 # except with old shells:
3939 build_os=$*
3940 IFS=$ac_save_IFS
3941 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3942
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3945 $as_echo_n "checking host system type... " >&6; }
3946 if test "${ac_cv_host+set}" = set; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   if test "x$host_alias" = x; then
3950   ac_cv_host=$ac_cv_build
3951 else
3952   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3953     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3954 fi
3955
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3958 $as_echo "$ac_cv_host" >&6; }
3959 case $ac_cv_host in
3960 *-*-*) ;;
3961 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3962 esac
3963 host=$ac_cv_host
3964 ac_save_IFS=$IFS; IFS='-'
3965 set x $ac_cv_host
3966 shift
3967 host_cpu=$1
3968 host_vendor=$2
3969 shift; shift
3970 # Remember, the first character of IFS is used to create $*,
3971 # except with old shells:
3972 host_os=$*
3973 IFS=$ac_save_IFS
3974 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3975
3976
3977
3978 ac_ext=c
3979 ac_cpp='$CPP $CPPFLAGS'
3980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3984 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3985 # On Suns, sometimes $CPP names a directory.
3986 if test -n "$CPP" && test -d "$CPP"; then
3987   CPP=
3988 fi
3989 if test -z "$CPP"; then
3990   if test "${ac_cv_prog_CPP+set}" = set; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993       # Double quotes because CPP needs to be expanded
3994     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3995     do
3996       ac_preproc_ok=false
3997 for ac_c_preproc_warn_flag in '' yes
3998 do
3999   # Use a header file that comes with gcc, so configuring glibc
4000   # with a fresh cross-compiler works.
4001   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4002   # <limits.h> exists even on freestanding compilers.
4003   # On the NeXT, cc -E runs the code through the compiler's parser,
4004   # not just through cpp. "Syntax error" is here to catch this case.
4005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007 #ifdef __STDC__
4008 # include <limits.h>
4009 #else
4010 # include <assert.h>
4011 #endif
4012                      Syntax error
4013 _ACEOF
4014 if ac_fn_c_try_cpp "$LINENO"; then :
4015
4016 else
4017   # Broken: fails on valid input.
4018 continue
4019 fi
4020 rm -f conftest.err conftest.$ac_ext
4021
4022   # OK, works on sane cases.  Now check whether nonexistent headers
4023   # can be detected and how.
4024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026 #include <ac_nonexistent.h>
4027 _ACEOF
4028 if ac_fn_c_try_cpp "$LINENO"; then :
4029   # Broken: success on invalid input.
4030 continue
4031 else
4032   # Passes both tests.
4033 ac_preproc_ok=:
4034 break
4035 fi
4036 rm -f conftest.err conftest.$ac_ext
4037
4038 done
4039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040 rm -f conftest.err conftest.$ac_ext
4041 if $ac_preproc_ok; then :
4042   break
4043 fi
4044
4045     done
4046     ac_cv_prog_CPP=$CPP
4047
4048 fi
4049   CPP=$ac_cv_prog_CPP
4050 else
4051   ac_cv_prog_CPP=$CPP
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4054 $as_echo "$CPP" >&6; }
4055 ac_preproc_ok=false
4056 for ac_c_preproc_warn_flag in '' yes
4057 do
4058   # Use a header file that comes with gcc, so configuring glibc
4059   # with a fresh cross-compiler works.
4060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061   # <limits.h> exists even on freestanding compilers.
4062   # On the NeXT, cc -E runs the code through the compiler's parser,
4063   # not just through cpp. "Syntax error" is here to catch this case.
4064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h.  */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071                      Syntax error
4072 _ACEOF
4073 if ac_fn_c_try_cpp "$LINENO"; then :
4074
4075 else
4076   # Broken: fails on valid input.
4077 continue
4078 fi
4079 rm -f conftest.err conftest.$ac_ext
4080
4081   # OK, works on sane cases.  Now check whether nonexistent headers
4082   # can be detected and how.
4083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h.  */
4085 #include <ac_nonexistent.h>
4086 _ACEOF
4087 if ac_fn_c_try_cpp "$LINENO"; then :
4088   # Broken: success on invalid input.
4089 continue
4090 else
4091   # Passes both tests.
4092 ac_preproc_ok=:
4093 break
4094 fi
4095 rm -f conftest.err conftest.$ac_ext
4096
4097 done
4098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4099 rm -f conftest.err conftest.$ac_ext
4100 if $ac_preproc_ok; then :
4101
4102 else
4103   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4106 See \`config.log' for more details." "$LINENO" 5; }
4107 fi
4108
4109 ac_ext=c
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4117 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4118 if test "${ac_cv_path_GREP+set}" = set; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   if test -z "$GREP"; then
4122   ac_path_GREP_found=false
4123   # Loop through the user's path and test for each of PROGNAME-LIST
4124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129     for ac_prog in grep ggrep; do
4130     for ac_exec_ext in '' $ac_executable_extensions; do
4131       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4132       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4133 # Check for GNU ac_path_GREP and select it if it is found.
4134   # Check for GNU $ac_path_GREP
4135 case `"$ac_path_GREP" --version 2>&1` in
4136 *GNU*)
4137   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4138 *)
4139   ac_count=0
4140   $as_echo_n 0123456789 >"conftest.in"
4141   while :
4142   do
4143     cat "conftest.in" "conftest.in" >"conftest.tmp"
4144     mv "conftest.tmp" "conftest.in"
4145     cp "conftest.in" "conftest.nl"
4146     $as_echo 'GREP' >> "conftest.nl"
4147     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149     as_fn_arith $ac_count + 1 && ac_count=$as_val
4150     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4151       # Best one so far, save it but keep looking for a better one
4152       ac_cv_path_GREP="$ac_path_GREP"
4153       ac_path_GREP_max=$ac_count
4154     fi
4155     # 10*(2^10) chars as input seems more than enough
4156     test $ac_count -gt 10 && break
4157   done
4158   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159 esac
4160
4161       $ac_path_GREP_found && break 3
4162     done
4163   done
4164   done
4165 IFS=$as_save_IFS
4166   if test -z "$ac_cv_path_GREP"; then
4167     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4168   fi
4169 else
4170   ac_cv_path_GREP=$GREP
4171 fi
4172
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4175 $as_echo "$ac_cv_path_GREP" >&6; }
4176  GREP="$ac_cv_path_GREP"
4177
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4180 $as_echo_n "checking for egrep... " >&6; }
4181 if test "${ac_cv_path_EGREP+set}" = set; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4185    then ac_cv_path_EGREP="$GREP -E"
4186    else
4187      if test -z "$EGREP"; then
4188   ac_path_EGREP_found=false
4189   # Loop through the user's path and test for each of PROGNAME-LIST
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195     for ac_prog in egrep; do
4196     for ac_exec_ext in '' $ac_executable_extensions; do
4197       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4198       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4199 # Check for GNU ac_path_EGREP and select it if it is found.
4200   # Check for GNU $ac_path_EGREP
4201 case `"$ac_path_EGREP" --version 2>&1` in
4202 *GNU*)
4203   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4204 *)
4205   ac_count=0
4206   $as_echo_n 0123456789 >"conftest.in"
4207   while :
4208   do
4209     cat "conftest.in" "conftest.in" >"conftest.tmp"
4210     mv "conftest.tmp" "conftest.in"
4211     cp "conftest.in" "conftest.nl"
4212     $as_echo 'EGREP' >> "conftest.nl"
4213     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215     as_fn_arith $ac_count + 1 && ac_count=$as_val
4216     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4217       # Best one so far, save it but keep looking for a better one
4218       ac_cv_path_EGREP="$ac_path_EGREP"
4219       ac_path_EGREP_max=$ac_count
4220     fi
4221     # 10*(2^10) chars as input seems more than enough
4222     test $ac_count -gt 10 && break
4223   done
4224   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225 esac
4226
4227       $ac_path_EGREP_found && break 3
4228     done
4229   done
4230   done
4231 IFS=$as_save_IFS
4232   if test -z "$ac_cv_path_EGREP"; then
4233     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4234   fi
4235 else
4236   ac_cv_path_EGREP=$EGREP
4237 fi
4238
4239    fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4242 $as_echo "$ac_cv_path_EGREP" >&6; }
4243  EGREP="$ac_cv_path_EGREP"
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4247 $as_echo_n "checking for ANSI C header files... " >&6; }
4248 if test "${ac_cv_header_stdc+set}" = set; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253 #include <stdlib.h>
4254 #include <stdarg.h>
4255 #include <string.h>
4256 #include <float.h>
4257
4258 int
4259 main ()
4260 {
4261
4262   ;
4263   return 0;
4264 }
4265 _ACEOF
4266 if ac_fn_c_try_compile "$LINENO"; then :
4267   ac_cv_header_stdc=yes
4268 else
4269   ac_cv_header_stdc=no
4270 fi
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272
4273 if test $ac_cv_header_stdc = yes; then
4274   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h.  */
4277 #include <string.h>
4278
4279 _ACEOF
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281   $EGREP "memchr" >/dev/null 2>&1; then :
4282
4283 else
4284   ac_cv_header_stdc=no
4285 fi
4286 rm -f conftest*
4287
4288 fi
4289
4290 if test $ac_cv_header_stdc = yes; then
4291   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h.  */
4294 #include <stdlib.h>
4295
4296 _ACEOF
4297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4298   $EGREP "free" >/dev/null 2>&1; then :
4299
4300 else
4301   ac_cv_header_stdc=no
4302 fi
4303 rm -f conftest*
4304
4305 fi
4306
4307 if test $ac_cv_header_stdc = yes; then
4308   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4309   if test "$cross_compiling" = yes; then :
4310   :
4311 else
4312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h.  */
4314 #include <ctype.h>
4315 #include <stdlib.h>
4316 #if ((' ' & 0x0FF) == 0x020)
4317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4319 #else
4320 # define ISLOWER(c) \
4321                    (('a' <= (c) && (c) <= 'i') \
4322                      || ('j' <= (c) && (c) <= 'r') \
4323                      || ('s' <= (c) && (c) <= 'z'))
4324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4325 #endif
4326
4327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4328 int
4329 main ()
4330 {
4331   int i;
4332   for (i = 0; i < 256; i++)
4333     if (XOR (islower (i), ISLOWER (i))
4334         || toupper (i) != TOUPPER (i))
4335       return 2;
4336   return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_c_try_run "$LINENO"; then :
4340
4341 else
4342   ac_cv_header_stdc=no
4343 fi
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4345   conftest.$ac_objext conftest.beam conftest.$ac_ext
4346 fi
4347
4348 fi
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4351 $as_echo "$ac_cv_header_stdc" >&6; }
4352 if test $ac_cv_header_stdc = yes; then
4353
4354 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4355
4356 fi
4357
4358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4360                   inttypes.h stdint.h unistd.h
4361 do :
4362   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4363 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4364 "
4365 eval as_val=\$$as_ac_Header
4366    if test "x$as_val" = x""yes; then :
4367   cat >>confdefs.h <<_ACEOF
4368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4369 _ACEOF
4370
4371 fi
4372
4373 done
4374
4375
4376
4377
4378
4379   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4380 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4381   MINIX=yes
4382 else
4383   MINIX=
4384 fi
4385
4386
4387   if test "$MINIX" = yes; then
4388
4389 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4390
4391
4392 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4393
4394
4395 $as_echo "#define _MINIX 1" >>confdefs.h
4396
4397   fi
4398
4399         case "$host_os" in
4400     hpux*)
4401
4402 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4403
4404       ;;
4405   esac
4406
4407
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4409 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4410 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415
4416 #         define __EXTENSIONS__ 1
4417           $ac_includes_default
4418 int
4419 main ()
4420 {
4421
4422   ;
4423   return 0;
4424 }
4425 _ACEOF
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427   ac_cv_safe_to_define___extensions__=yes
4428 else
4429   ac_cv_safe_to_define___extensions__=no
4430 fi
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4434 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4435   test $ac_cv_safe_to_define___extensions__ = yes &&
4436     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4437
4438   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4439
4440   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4441
4442   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4443
4444   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4445
4446   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4447
4448
4449
4450
4451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4452 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4453 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4454   $as_echo_n "(cached) " >&6
4455 else
4456
4457       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459
4460 #ifdef __ACK__
4461 Amsterdam
4462 #endif
4463
4464 _ACEOF
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466   $EGREP "Amsterdam" >/dev/null 2>&1; then :
4467   gl_cv_c_amsterdam_compiler=yes
4468 else
4469   gl_cv_c_amsterdam_compiler=no
4470 fi
4471 rm -f conftest*
4472
4473
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4476 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4477   if test -z "$AR"; then
4478     if test $gl_cv_c_amsterdam_compiler = yes; then
4479       AR='cc -c.a'
4480       if test -z "$ARFLAGS"; then
4481         ARFLAGS='-o'
4482       fi
4483     else
4484                   if test -n "$ac_tool_prefix"; then
4485   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4486 set dummy ${ac_tool_prefix}ar; 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 test "${ac_cv_prog_AR+set}" = set; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492   if test -n "$AR"; then
4493   ac_cv_prog_AR="$AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502     ac_cv_prog_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
4513 if test -n "$AR"; then
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4515 $as_echo "$AR" >&6; }
4516 else
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4519 fi
4520
4521
4522 fi
4523 if test -z "$ac_cv_prog_AR"; then
4524   ac_ct_AR=$AR
4525   # Extract the first word of "ar", so it can be a program name with args.
4526 set dummy ar; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   if test -n "$ac_ct_AR"; then
4533   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538   IFS=$as_save_IFS
4539   test -z "$as_dir" && as_dir=.
4540     for ac_exec_ext in '' $ac_executable_extensions; do
4541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542     ac_cv_prog_ac_ct_AR="ar"
4543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544     break 2
4545   fi
4546 done
4547   done
4548 IFS=$as_save_IFS
4549
4550 fi
4551 fi
4552 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4553 if test -n "$ac_ct_AR"; then
4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4555 $as_echo "$ac_ct_AR" >&6; }
4556 else
4557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561   if test "x$ac_ct_AR" = x; then
4562     AR="ar"
4563   else
4564     case $cross_compiling:$ac_tool_warned in
4565 yes:)
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4568 ac_tool_warned=yes ;;
4569 esac
4570     AR=$ac_ct_AR
4571   fi
4572 else
4573   AR="$ac_cv_prog_AR"
4574 fi
4575
4576       if test -z "$ARFLAGS"; then
4577         ARFLAGS='cru'
4578       fi
4579     fi
4580   else
4581     if test -z "$ARFLAGS"; then
4582       ARFLAGS='cru'
4583     fi
4584   fi
4585
4586
4587   if test -z "$RANLIB"; then
4588     if test $gl_cv_c_amsterdam_compiler = yes; then
4589       RANLIB=':'
4590     else
4591             if test -n "$ac_tool_prefix"; then
4592   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4597   $as_echo_n "(cached) " >&6
4598 else
4599   if test -n "$RANLIB"; then
4600   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607     for ac_exec_ext in '' $ac_executable_extensions; do
4608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611     break 2
4612   fi
4613 done
4614   done
4615 IFS=$as_save_IFS
4616
4617 fi
4618 fi
4619 RANLIB=$ac_cv_prog_RANLIB
4620 if test -n "$RANLIB"; then
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4622 $as_echo "$RANLIB" >&6; }
4623 else
4624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4626 fi
4627
4628
4629 fi
4630 if test -z "$ac_cv_prog_RANLIB"; then
4631   ac_ct_RANLIB=$RANLIB
4632   # Extract the first word of "ranlib", so it can be a program name with args.
4633 set dummy ranlib; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639   if test -n "$ac_ct_RANLIB"; then
4640   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649     ac_cv_prog_ac_ct_RANLIB="ranlib"
4650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654   done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4660 if test -n "$ac_ct_RANLIB"; then
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4662 $as_echo "$ac_ct_RANLIB" >&6; }
4663 else
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668   if test "x$ac_ct_RANLIB" = x; then
4669     RANLIB=":"
4670   else
4671     case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677     RANLIB=$ac_ct_RANLIB
4678   fi
4679 else
4680   RANLIB="$ac_cv_prog_RANLIB"
4681 fi
4682
4683     fi
4684   fi
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696   # IEEE behaviour is the default on all CPUs except Alpha and SH
4697   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4698   # and the GCC 4.1.2 manual).
4699   case "$host_cpu" in
4700     alpha*)
4701       # On Alpha systems, a compiler option provides the behaviour.
4702       # See the ieee(3) manual page, also available at
4703       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4704       if test -n "$GCC"; then
4705         # GCC has the option -mieee.
4706         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4707         CPPFLAGS="$CPPFLAGS -mieee"
4708       else
4709         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4710         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4711         CPPFLAGS="$CPPFLAGS -ieee"
4712       fi
4713       ;;
4714     sh*)
4715       if test -n "$GCC"; then
4716         # GCC has the option -mieee.
4717         CPPFLAGS="$CPPFLAGS -mieee"
4718       fi
4719       ;;
4720   esac
4721
4722
4723
4724   # Code from module alloca:
4725   # Code from module alloca-opt:
4726   # Code from module configmake:
4727   # Code from module errno:
4728   # Code from module extensions:
4729
4730   # Code from module extern-inline:
4731   # Code from module float:
4732   # Code from module fnmatch:
4733   # Code from module fnmatch-gnu:
4734   # Code from module fpieee:
4735
4736   # Code from module fpucw:
4737   # Code from module frexp:
4738   # Code from module frexpl:
4739   # Code from module include_next:
4740   # Code from module intprops:
4741   # Code from module inttypes:
4742   # Code from module inttypes-incomplete:
4743   # Code from module isnand-nolibm:
4744   # Code from module isnanl-nolibm:
4745   # Code from module localcharset:
4746   # Code from module math:
4747   # Code from module mbrtowc:
4748   # Code from module mbsinit:
4749   # Code from module mbsrtowcs:
4750   # Code from module memchr:
4751   # Code from module memmem:
4752   # Code from module memmem-simple:
4753   # Code from module multiarch:
4754   # Code from module pathmax:
4755   # Code from module snippet/arg-nonnull:
4756   # Code from module snippet/c++defs:
4757   # Code from module snippet/warn-on-use:
4758   # Code from module ssize_t:
4759   # Code from module stdbool:
4760   # Code from module stddef:
4761   # Code from module stdint:
4762   # Code from module streq:
4763   # Code from module strerror:
4764   # Code from module strerror-override:
4765   # Code from module string:
4766   # Code from module strnlen1:
4767   # Code from module strstr:
4768   # Code from module strstr-simple:
4769   # Code from module sys_types:
4770   # Code from module unistd:
4771   # Code from module update-copyright:
4772   # Code from module verify:
4773   # Code from module wchar:
4774   # Code from module wctype-h:
4775
4776 ac_ext=c
4777 ac_cpp='$CPP $CPPFLAGS'
4778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781 if test -n "$ac_tool_prefix"; then
4782   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_CC+set}" = set; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   if test -n "$CC"; then
4790   ac_cv_prog_CC="$CC" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804   done
4805 IFS=$as_save_IFS
4806
4807 fi
4808 fi
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812 $as_echo "$CC" >&6; }
4813 else
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819 fi
4820 if test -z "$ac_cv_prog_CC"; then
4821   ac_ct_CC=$CC
4822   # Extract the first word of "gcc", so it can be a program name with args.
4823 set dummy gcc; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   if test -n "$ac_ct_CC"; then
4830   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837     for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_prog_ac_ct_CC="gcc"
4840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844   done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4850 if test -n "$ac_ct_CC"; then
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4852 $as_echo "$ac_ct_CC" >&6; }
4853 else
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 fi
4857
4858   if test "x$ac_ct_CC" = x; then
4859     CC=""
4860   else
4861     case $cross_compiling:$ac_tool_warned in
4862 yes:)
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned=yes ;;
4866 esac
4867     CC=$ac_ct_CC
4868   fi
4869 else
4870   CC="$ac_cv_prog_CC"
4871 fi
4872
4873 if test -z "$CC"; then
4874           if test -n "$ac_tool_prefix"; then
4875     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4876 set dummy ${ac_tool_prefix}cc; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_CC+set}" = set; then :
4880   $as_echo_n "(cached) " >&6
4881 else
4882   if test -n "$CC"; then
4883   ac_cv_prog_CC="$CC" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890     for ac_exec_ext in '' $ac_executable_extensions; do
4891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892     ac_cv_prog_CC="${ac_tool_prefix}cc"
4893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894     break 2
4895   fi
4896 done
4897   done
4898 IFS=$as_save_IFS
4899
4900 fi
4901 fi
4902 CC=$ac_cv_prog_CC
4903 if test -n "$CC"; then
4904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4905 $as_echo "$CC" >&6; }
4906 else
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910
4911
4912   fi
4913 fi
4914 if test -z "$CC"; then
4915   # Extract the first word of "cc", so it can be a program name with args.
4916 set dummy cc; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   if test -n "$CC"; then
4923   ac_cv_prog_CC="$CC" # Let the user override the test.
4924 else
4925   ac_prog_rejected=no
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931     for ac_exec_ext in '' $ac_executable_extensions; do
4932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4934        ac_prog_rejected=yes
4935        continue
4936      fi
4937     ac_cv_prog_CC="cc"
4938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942   done
4943 IFS=$as_save_IFS
4944
4945 if test $ac_prog_rejected = yes; then
4946   # We found a bogon in the path, so make sure we never use it.
4947   set dummy $ac_cv_prog_CC
4948   shift
4949   if test $# != 0; then
4950     # We chose a different compiler from the bogus one.
4951     # However, it has the same basename, so the bogon will be chosen
4952     # first if we set CC to just the basename; use the full file name.
4953     shift
4954     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4955   fi
4956 fi
4957 fi
4958 fi
4959 CC=$ac_cv_prog_CC
4960 if test -n "$CC"; then
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4962 $as_echo "$CC" >&6; }
4963 else
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969 fi
4970 if test -z "$CC"; then
4971   if test -n "$ac_tool_prefix"; then
4972   for ac_prog in cl.exe
4973   do
4974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_prog_CC+set}" = set; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   if test -n "$CC"; then
4982   ac_cv_prog_CC="$CC" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996   done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 CC=$ac_cv_prog_CC
5002 if test -n "$CC"; then
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5004 $as_echo "$CC" >&6; }
5005 else
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010
5011     test -n "$CC" && break
5012   done
5013 fi
5014 if test -z "$CC"; then
5015   ac_ct_CC=$CC
5016   for ac_prog in cl.exe
5017 do
5018   # Extract the first word of "$ac_prog", so it can be a program name with args.
5019 set dummy $ac_prog; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   if test -n "$ac_ct_CC"; then
5026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_exec_ext in '' $ac_executable_extensions; do
5034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035     ac_cv_prog_ac_ct_CC="$ac_prog"
5036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040   done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5046 if test -n "$ac_ct_CC"; then
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5048 $as_echo "$ac_ct_CC" >&6; }
5049 else
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054
5055   test -n "$ac_ct_CC" && break
5056 done
5057
5058   if test "x$ac_ct_CC" = x; then
5059     CC=""
5060   else
5061     case $cross_compiling:$ac_tool_warned in
5062 yes:)
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5065 ac_tool_warned=yes ;;
5066 esac
5067     CC=$ac_ct_CC
5068   fi
5069 fi
5070
5071 fi
5072
5073
5074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5076 as_fn_error "no acceptable C compiler found in \$PATH
5077 See \`config.log' for more details." "$LINENO" 5; }
5078
5079 # Provide some information about the compiler.
5080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5081 set X $ac_compile
5082 ac_compiler=$2
5083 for ac_option in --version -v -V -qversion; do
5084   { { ac_try="$ac_compiler $ac_option >&5"
5085 case "(($ac_try" in
5086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087   *) ac_try_echo=$ac_try;;
5088 esac
5089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5090 $as_echo "$ac_try_echo"; } >&5
5091   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5092   ac_status=$?
5093   if test -s conftest.err; then
5094     sed '10a\
5095 ... rest of stderr output deleted ...
5096          10q' conftest.err >conftest.er1
5097     cat conftest.er1 >&5
5098     rm -f conftest.er1 conftest.err
5099   fi
5100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101   test $ac_status = 0; }
5102 done
5103
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5105 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5106 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5107   $as_echo_n "(cached) " >&6
5108 else
5109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h.  */
5111
5112 int
5113 main ()
5114 {
5115 #ifndef __GNUC__
5116        choke me
5117 #endif
5118
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124   ac_compiler_gnu=yes
5125 else
5126   ac_compiler_gnu=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5130
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5133 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5134 if test $ac_compiler_gnu = yes; then
5135   GCC=yes
5136 else
5137   GCC=
5138 fi
5139 ac_test_CFLAGS=${CFLAGS+set}
5140 ac_save_CFLAGS=$CFLAGS
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5142 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5143 if test "${ac_cv_prog_cc_g+set}" = set; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   ac_save_c_werror_flag=$ac_c_werror_flag
5147    ac_c_werror_flag=yes
5148    ac_cv_prog_cc_g=no
5149    CFLAGS="-g"
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 if ac_fn_c_try_compile "$LINENO"; then :
5162   ac_cv_prog_cc_g=yes
5163 else
5164   CFLAGS=""
5165       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h.  */
5167
5168 int
5169 main ()
5170 {
5171
5172   ;
5173   return 0;
5174 }
5175 _ACEOF
5176 if ac_fn_c_try_compile "$LINENO"; then :
5177
5178 else
5179   ac_c_werror_flag=$ac_save_c_werror_flag
5180          CFLAGS="-g"
5181          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h.  */
5183
5184 int
5185 main ()
5186 {
5187
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"; then :
5193   ac_cv_prog_cc_g=yes
5194 fi
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 fi
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200    ac_c_werror_flag=$ac_save_c_werror_flag
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5203 $as_echo "$ac_cv_prog_cc_g" >&6; }
5204 if test "$ac_test_CFLAGS" = set; then
5205   CFLAGS=$ac_save_CFLAGS
5206 elif test $ac_cv_prog_cc_g = yes; then
5207   if test "$GCC" = yes; then
5208     CFLAGS="-g -O2"
5209   else
5210     CFLAGS="-g"
5211   fi
5212 else
5213   if test "$GCC" = yes; then
5214     CFLAGS="-O2"
5215   else
5216     CFLAGS=
5217   fi
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5220 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5221 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   ac_cv_prog_cc_c89=no
5225 ac_save_CC=$CC
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h.  */
5228 #include <stdarg.h>
5229 #include <stdio.h>
5230 #include <sys/types.h>
5231 #include <sys/stat.h>
5232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5233 struct buf { int x; };
5234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5235 static char *e (p, i)
5236      char **p;
5237      int i;
5238 {
5239   return p[i];
5240 }
5241 static char *f (char * (*g) (char **, int), char **p, ...)
5242 {
5243   char *s;
5244   va_list v;
5245   va_start (v,p);
5246   s = g (p, va_arg (v,int));
5247   va_end (v);
5248   return s;
5249 }
5250
5251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5252    function prototypes and stuff, but not '\xHH' hex character constants.
5253    These don't provoke an error unfortunately, instead are silently treated
5254    as 'x'.  The following induces an error, until -std is added to get
5255    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5256    array size at least.  It's necessary to write '\x00'==0 to get something
5257    that's true only with -std.  */
5258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5259
5260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5261    inside strings and character constants.  */
5262 #define FOO(x) 'x'
5263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5264
5265 int test (int i, double x);
5266 struct s1 {int (*f) (int a);};
5267 struct s2 {int (*f) (double a);};
5268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5269 int argc;
5270 char **argv;
5271 int
5272 main ()
5273 {
5274 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5280         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5281 do
5282   CC="$ac_save_CC $ac_arg"
5283   if ac_fn_c_try_compile "$LINENO"; then :
5284   ac_cv_prog_cc_c89=$ac_arg
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext
5287   test "x$ac_cv_prog_cc_c89" != "xno" && break
5288 done
5289 rm -f conftest.$ac_ext
5290 CC=$ac_save_CC
5291
5292 fi
5293 # AC_CACHE_VAL
5294 case "x$ac_cv_prog_cc_c89" in
5295   x)
5296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5297 $as_echo "none needed" >&6; } ;;
5298   xno)
5299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5300 $as_echo "unsupported" >&6; } ;;
5301   *)
5302     CC="$CC $ac_cv_prog_cc_c89"
5303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5304 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5305 esac
5306 if test "x$ac_cv_prog_cc_c89" != xno; then :
5307
5308 fi
5309
5310 ac_ext=c
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315
5316
5317 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5318
5319
5320 ac_aux_dir=
5321 for ac_dir in ../.. "$srcdir"/../..; do
5322   for ac_t in install-sh install.sh shtool; do
5323     if test -f "$ac_dir/$ac_t"; then
5324       ac_aux_dir=$ac_dir
5325       ac_install_sh="$ac_aux_dir/$ac_t -c"
5326       break 2
5327     fi
5328   done
5329 done
5330 if test -z "$ac_aux_dir"; then
5331   as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5332 fi
5333
5334 # These three variables are undocumented and unsupported,
5335 # and are intended to be withdrawn in a future Autoconf release.
5336 # They can cause serious problems if a builder's source tree is in a directory
5337 # whose full name contains unusual characters.
5338 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5339 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5340 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5344 $as_echo_n "checking target system type... " >&6; }
5345 if test "${ac_cv_target+set}" = set; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348   if test "x$target_alias" = x; then
5349   ac_cv_target=$ac_cv_host
5350 else
5351   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5352     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5353 fi
5354
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5357 $as_echo "$ac_cv_target" >&6; }
5358 case $ac_cv_target in
5359 *-*-*) ;;
5360 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5361 esac
5362 target=$ac_cv_target
5363 ac_save_IFS=$IFS; IFS='-'
5364 set x $ac_cv_target
5365 shift
5366 target_cpu=$1
5367 target_vendor=$2
5368 shift; shift
5369 # Remember, the first character of IFS is used to create $*,
5370 # except with old shells:
5371 target_os=$*
5372 IFS=$ac_save_IFS
5373 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5374
5375
5376 # The aliases save the names the user supplied, while $host etc.
5377 # will get canonicalized.
5378 test -n "$target_alias" &&
5379   test "$program_prefix$program_suffix$program_transform_name" = \
5380     NONENONEs,x,x, &&
5381   program_prefix=${target_alias}-
5382
5383
5384
5385
5386
5387
5388
5389           LIBC_FATAL_STDERR_=1
5390   export LIBC_FATAL_STDERR_
5391
5392 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5393 # for constant arguments.  Useless!
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5395 $as_echo_n "checking for working alloca.h... " >&6; }
5396 if test "${ac_cv_working_alloca_h+set}" = set; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h.  */
5401 #include <alloca.h>
5402 int
5403 main ()
5404 {
5405 char *p = (char *) alloca (2 * sizeof (int));
5406                           if (p) return 0;
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_link "$LINENO"; then :
5412   ac_cv_working_alloca_h=yes
5413 else
5414   ac_cv_working_alloca_h=no
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext \
5417     conftest$ac_exeext conftest.$ac_ext
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5420 $as_echo "$ac_cv_working_alloca_h" >&6; }
5421 if test $ac_cv_working_alloca_h = yes; then
5422
5423 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5424
5425 fi
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5428 $as_echo_n "checking for alloca... " >&6; }
5429 if test "${ac_cv_func_alloca_works+set}" = set; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h.  */
5434 #ifdef __GNUC__
5435 # define alloca __builtin_alloca
5436 #else
5437 # ifdef _MSC_VER
5438 #  include <malloc.h>
5439 #  define alloca _alloca
5440 # else
5441 #  ifdef HAVE_ALLOCA_H
5442 #   include <alloca.h>
5443 #  else
5444 #   ifdef _AIX
5445  #pragma alloca
5446 #   else
5447 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5448 char *alloca ();
5449 #    endif
5450 #   endif
5451 #  endif
5452 # endif
5453 #endif
5454
5455 int
5456 main ()
5457 {
5458 char *p = (char *) alloca (1);
5459                                     if (p) return 0;
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_c_try_link "$LINENO"; then :
5465   ac_cv_func_alloca_works=yes
5466 else
5467   ac_cv_func_alloca_works=no
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext \
5470     conftest$ac_exeext conftest.$ac_ext
5471 fi
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5473 $as_echo "$ac_cv_func_alloca_works" >&6; }
5474
5475 if test $ac_cv_func_alloca_works = yes; then
5476
5477 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5478
5479 else
5480   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5481 # that cause trouble.  Some versions do not even contain alloca or
5482 # contain a buggy version.  If you still want to use their alloca,
5483 # use ar to extract alloca.o from them instead of compiling alloca.c.
5484
5485
5486
5487
5488
5489 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5490
5491 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5495 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5496 if test "${ac_cv_os_cray+set}" = set; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h.  */
5501 #if defined CRAY && ! defined CRAY2
5502 webecray
5503 #else
5504 wenotbecray
5505 #endif
5506
5507 _ACEOF
5508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5509   $EGREP "webecray" >/dev/null 2>&1; then :
5510   ac_cv_os_cray=yes
5511 else
5512   ac_cv_os_cray=no
5513 fi
5514 rm -f conftest*
5515
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5518 $as_echo "$ac_cv_os_cray" >&6; }
5519 if test $ac_cv_os_cray = yes; then
5520   for ac_func in _getb67 GETB67 getb67; do
5521     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5523 eval as_val=\$$as_ac_var
5524    if test "x$as_val" = x""yes; then :
5525
5526 cat >>confdefs.h <<_ACEOF
5527 #define CRAY_STACKSEG_END $ac_func
5528 _ACEOF
5529
5530     break
5531 fi
5532
5533   done
5534 fi
5535
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5537 $as_echo_n "checking stack direction for C alloca... " >&6; }
5538 if test "${ac_cv_c_stack_direction+set}" = set; then :
5539   $as_echo_n "(cached) " >&6
5540 else
5541   if test "$cross_compiling" = yes; then :
5542   ac_cv_c_stack_direction=0
5543 else
5544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h.  */
5546 $ac_includes_default
5547 int
5548 find_stack_direction (int *addr, int depth)
5549 {
5550   int dir, dummy = 0;
5551   if (! addr)
5552     addr = &dummy;
5553   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5554   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5555   return dir + dummy;
5556 }
5557
5558 int
5559 main (int argc, char **argv)
5560 {
5561   return find_stack_direction (0, argc + !argv + 20) < 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_run "$LINENO"; then :
5565   ac_cv_c_stack_direction=1
5566 else
5567   ac_cv_c_stack_direction=-1
5568 fi
5569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5570   conftest.$ac_objext conftest.beam conftest.$ac_ext
5571 fi
5572
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5575 $as_echo "$ac_cv_c_stack_direction" >&6; }
5576 cat >>confdefs.h <<_ACEOF
5577 #define STACK_DIRECTION $ac_cv_c_stack_direction
5578 _ACEOF
5579
5580
5581 fi
5582
5583
5584
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5586 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5587 if test "${gl_cv_have_include_next+set}" = set; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590   rm -rf conftestd1a conftestd1b conftestd2
5591      mkdir conftestd1a conftestd1b conftestd2
5592                                                   cat <<EOF > conftestd1a/conftest.h
5593 #define DEFINED_IN_CONFTESTD1
5594 #include_next <conftest.h>
5595 #ifdef DEFINED_IN_CONFTESTD2
5596 int foo;
5597 #else
5598 #error "include_next doesn't work"
5599 #endif
5600 EOF
5601      cat <<EOF > conftestd1b/conftest.h
5602 #define DEFINED_IN_CONFTESTD1
5603 #include <stdio.h>
5604 #include_next <conftest.h>
5605 #ifdef DEFINED_IN_CONFTESTD2
5606 int foo;
5607 #else
5608 #error "include_next doesn't work"
5609 #endif
5610 EOF
5611      cat <<EOF > conftestd2/conftest.h
5612 #ifndef DEFINED_IN_CONFTESTD1
5613 #error "include_next test doesn't work"
5614 #endif
5615 #define DEFINED_IN_CONFTESTD2
5616 EOF
5617      gl_save_CPPFLAGS="$CPPFLAGS"
5618      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5619      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h.  */
5621 #include <conftest.h>
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624   gl_cv_have_include_next=yes
5625 else
5626   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5627         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h.  */
5629 #include <conftest.h>
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632   gl_cv_have_include_next=buggy
5633 else
5634   gl_cv_have_include_next=no
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640      CPPFLAGS="$gl_save_CPPFLAGS"
5641      rm -rf conftestd1a conftestd1b conftestd2
5642
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5645 $as_echo "$gl_cv_have_include_next" >&6; }
5646   PRAGMA_SYSTEM_HEADER=
5647   if test $gl_cv_have_include_next = yes; then
5648     INCLUDE_NEXT=include_next
5649     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5650     if test -n "$GCC"; then
5651       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5652     fi
5653   else
5654     if test $gl_cv_have_include_next = buggy; then
5655       INCLUDE_NEXT=include
5656       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5657     else
5658       INCLUDE_NEXT=include
5659       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5660     fi
5661   fi
5662
5663
5664
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5666 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5667 if test "${gl_cv_pragma_columns+set}" = set; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h.  */
5672
5673 #ifdef __TANDEM
5674 choke me
5675 #endif
5676
5677 _ACEOF
5678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5679   $EGREP "choke me" >/dev/null 2>&1; then :
5680   gl_cv_pragma_columns=yes
5681 else
5682   gl_cv_pragma_columns=no
5683 fi
5684 rm -f conftest*
5685
5686
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5689 $as_echo "$gl_cv_pragma_columns" >&6; }
5690   if test $gl_cv_pragma_columns = yes; then
5691     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5692   else
5693     PRAGMA_COLUMNS=
5694   fi
5695
5696
5697
5698
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5700 $as_echo_n "checking for complete errno.h... " >&6; }
5701 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704
5705     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h.  */
5707
5708 #include <errno.h>
5709 #if !defined ETXTBSY
5710 booboo
5711 #endif
5712 #if !defined ENOMSG
5713 booboo
5714 #endif
5715 #if !defined EIDRM
5716 booboo
5717 #endif
5718 #if !defined ENOLINK
5719 booboo
5720 #endif
5721 #if !defined EPROTO
5722 booboo
5723 #endif
5724 #if !defined EMULTIHOP
5725 booboo
5726 #endif
5727 #if !defined EBADMSG
5728 booboo
5729 #endif
5730 #if !defined EOVERFLOW
5731 booboo
5732 #endif
5733 #if !defined ENOTSUP
5734 booboo
5735 #endif
5736 #if !defined ENETRESET
5737 booboo
5738 #endif
5739 #if !defined ECONNABORTED
5740 booboo
5741 #endif
5742 #if !defined ESTALE
5743 booboo
5744 #endif
5745 #if !defined EDQUOT
5746 booboo
5747 #endif
5748 #if !defined ECANCELED
5749 booboo
5750 #endif
5751 #if !defined EOWNERDEAD
5752 booboo
5753 #endif
5754 #if !defined ENOTRECOVERABLE
5755 booboo
5756 #endif
5757 #if !defined EILSEQ
5758 booboo
5759 #endif
5760
5761 _ACEOF
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763   $EGREP "booboo" >/dev/null 2>&1; then :
5764   gl_cv_header_errno_h_complete=no
5765 else
5766   gl_cv_header_errno_h_complete=yes
5767 fi
5768 rm -f conftest*
5769
5770
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
5773 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
5774   if test $gl_cv_header_errno_h_complete = yes; then
5775     ERRNO_H=''
5776   else
5777
5778
5779
5780
5781
5782
5783
5784
5785      if test $gl_cv_have_include_next = yes; then
5786        gl_cv_next_errno_h='<'errno.h'>'
5787      else
5788        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5789 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
5790 if test "${gl_cv_next_errno_h+set}" = set; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793
5794                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h.  */
5796 #include <errno.h>
5797
5798 _ACEOF
5799                                                                                                                         case "$host_os" in
5800                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
5801                  *)    gl_absname_cpp="$ac_cpp" ;;
5802                esac
5803
5804                case "$host_os" in
5805                  mingw*)
5806                                                                                                                                      gl_dirsep_regex='[/\\]'
5807                    ;;
5808                  *)
5809                    gl_dirsep_regex='\/'
5810                    ;;
5811                esac
5812                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5813
5814                gl_header_literal_regex=`echo 'errno.h' \
5815                                         | sed -e "$gl_make_literal_regex_sed"`
5816                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5817                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5818                    s|^/[^/]|//&|
5819                    p
5820                    q
5821                  }'
5822                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5823                       sed -n "$gl_absolute_header_sed"`'"'
5824
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
5828 $as_echo "$gl_cv_next_errno_h" >&6; }
5829      fi
5830      NEXT_ERRNO_H=$gl_cv_next_errno_h
5831
5832      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5833        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5834        gl_next_as_first_directive='<'errno.h'>'
5835      else
5836        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5837        gl_next_as_first_directive=$gl_cv_next_errno_h
5838      fi
5839      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
5840
5841
5842
5843
5844     ERRNO_H='errno.h'
5845   fi
5846
5847    if test -n "$ERRNO_H"; then
5848   GL_GENERATE_ERRNO_H_TRUE=
5849   GL_GENERATE_ERRNO_H_FALSE='#'
5850 else
5851   GL_GENERATE_ERRNO_H_TRUE='#'
5852   GL_GENERATE_ERRNO_H_FALSE=
5853 fi
5854
5855
5856   if test -n "$ERRNO_H"; then
5857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
5858 $as_echo_n "checking for EMULTIHOP value... " >&6; }
5859 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862
5863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h.  */
5865
5866 #include <errno.h>
5867 #ifdef EMULTIHOP
5868 yes
5869 #endif
5870
5871 _ACEOF
5872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5873   $EGREP "yes" >/dev/null 2>&1; then :
5874   gl_cv_header_errno_h_EMULTIHOP=yes
5875 else
5876   gl_cv_header_errno_h_EMULTIHOP=no
5877 fi
5878 rm -f conftest*
5879
5880       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
5881         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h.  */
5883
5884 #define _XOPEN_SOURCE_EXTENDED 1
5885 #include <errno.h>
5886 #ifdef EMULTIHOP
5887 yes
5888 #endif
5889
5890 _ACEOF
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892   $EGREP "yes" >/dev/null 2>&1; then :
5893   gl_cv_header_errno_h_EMULTIHOP=hidden
5894 fi
5895 rm -f conftest*
5896
5897         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
5898                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
5899 #define _XOPEN_SOURCE_EXTENDED 1
5900 #include <errno.h>
5901 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
5902 #include <stdio.h>
5903 #include <stdlib.h>
5904 "; then :
5905
5906 fi
5907
5908         fi
5909       fi
5910
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
5913 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
5914     case $gl_cv_header_errno_h_EMULTIHOP in
5915       yes | no)
5916         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
5917         ;;
5918       *)
5919         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
5920         ;;
5921     esac
5922
5923
5924   fi
5925
5926
5927   if test -n "$ERRNO_H"; then
5928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
5929 $as_echo_n "checking for ENOLINK value... " >&6; }
5930 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933
5934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h.  */
5936
5937 #include <errno.h>
5938 #ifdef ENOLINK
5939 yes
5940 #endif
5941
5942 _ACEOF
5943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944   $EGREP "yes" >/dev/null 2>&1; then :
5945   gl_cv_header_errno_h_ENOLINK=yes
5946 else
5947   gl_cv_header_errno_h_ENOLINK=no
5948 fi
5949 rm -f conftest*
5950
5951       if test $gl_cv_header_errno_h_ENOLINK = no; then
5952         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h.  */
5954
5955 #define _XOPEN_SOURCE_EXTENDED 1
5956 #include <errno.h>
5957 #ifdef ENOLINK
5958 yes
5959 #endif
5960
5961 _ACEOF
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963   $EGREP "yes" >/dev/null 2>&1; then :
5964   gl_cv_header_errno_h_ENOLINK=hidden
5965 fi
5966 rm -f conftest*
5967
5968         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
5969                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
5970 #define _XOPEN_SOURCE_EXTENDED 1
5971 #include <errno.h>
5972 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
5973 #include <stdio.h>
5974 #include <stdlib.h>
5975 "; then :
5976
5977 fi
5978
5979         fi
5980       fi
5981
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
5984 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
5985     case $gl_cv_header_errno_h_ENOLINK in
5986       yes | no)
5987         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
5988         ;;
5989       *)
5990         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
5991         ;;
5992     esac
5993
5994
5995   fi
5996
5997
5998   if test -n "$ERRNO_H"; then
5999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6000 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6001 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004
6005       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h.  */
6007
6008 #include <errno.h>
6009 #ifdef EOVERFLOW
6010 yes
6011 #endif
6012
6013 _ACEOF
6014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015   $EGREP "yes" >/dev/null 2>&1; then :
6016   gl_cv_header_errno_h_EOVERFLOW=yes
6017 else
6018   gl_cv_header_errno_h_EOVERFLOW=no
6019 fi
6020 rm -f conftest*
6021
6022       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6023         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h.  */
6025
6026 #define _XOPEN_SOURCE_EXTENDED 1
6027 #include <errno.h>
6028 #ifdef EOVERFLOW
6029 yes
6030 #endif
6031
6032 _ACEOF
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034   $EGREP "yes" >/dev/null 2>&1; then :
6035   gl_cv_header_errno_h_EOVERFLOW=hidden
6036 fi
6037 rm -f conftest*
6038
6039         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6040                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
6041 #define _XOPEN_SOURCE_EXTENDED 1
6042 #include <errno.h>
6043 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
6044 #include <stdio.h>
6045 #include <stdlib.h>
6046 "; then :
6047
6048 fi
6049
6050         fi
6051       fi
6052
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6055 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6056     case $gl_cv_header_errno_h_EOVERFLOW in
6057       yes | no)
6058         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6059         ;;
6060       *)
6061         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6062         ;;
6063     esac
6064
6065
6066   fi
6067
6068
6069
6070
6071
6072
6073
6074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6075 $as_echo_n "checking for mbstate_t... " >&6; }
6076 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h.  */
6081 $ac_includes_default
6082 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6083    <wchar.h>.
6084    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6085    included before <wchar.h>.  */
6086 #include <stddef.h>
6087 #include <stdio.h>
6088 #include <time.h>
6089 #include <wchar.h>
6090 int
6091 main ()
6092 {
6093 mbstate_t x; return sizeof x;
6094   ;
6095   return 0;
6096 }
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099   ac_cv_type_mbstate_t=yes
6100 else
6101   ac_cv_type_mbstate_t=no
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6106 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6107    if test $ac_cv_type_mbstate_t = yes; then
6108
6109 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6110
6111    else
6112
6113 $as_echo "#define mbstate_t int" >>confdefs.h
6114
6115    fi
6116
6117
6118
6119
6120   for ac_func in $ac_func_list
6121 do :
6122   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6124 eval as_val=\$$as_ac_var
6125    if test "x$as_val" = x""yes; then :
6126   cat >>confdefs.h <<_ACEOF
6127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6128 _ACEOF
6129
6130 fi
6131 done
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152   for ac_header in $ac_header_list
6153 do :
6154   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6156 "
6157 eval as_val=\$$as_ac_Header
6158    if test "x$as_val" = x""yes; then :
6159   cat >>confdefs.h <<_ACEOF
6160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6161 _ACEOF
6162
6163 fi
6164
6165 done
6166
6167
6168
6169
6170   GNULIB_ACOSF=0;
6171   GNULIB_ACOSL=0;
6172   GNULIB_ASINF=0;
6173   GNULIB_ASINL=0;
6174   GNULIB_ATANF=0;
6175   GNULIB_ATANL=0;
6176   GNULIB_ATAN2F=0;
6177   GNULIB_CBRT=0;
6178   GNULIB_CBRTF=0;
6179   GNULIB_CBRTL=0;
6180   GNULIB_CEIL=0;
6181   GNULIB_CEILF=0;
6182   GNULIB_CEILL=0;
6183   GNULIB_COPYSIGN=0;
6184   GNULIB_COPYSIGNF=0;
6185   GNULIB_COPYSIGNL=0;
6186   GNULIB_COSF=0;
6187   GNULIB_COSL=0;
6188   GNULIB_COSHF=0;
6189   GNULIB_EXPF=0;
6190   GNULIB_EXPL=0;
6191   GNULIB_EXP2=0;
6192   GNULIB_EXP2F=0;
6193   GNULIB_EXP2L=0;
6194   GNULIB_EXPM1=0;
6195   GNULIB_EXPM1F=0;
6196   GNULIB_EXPM1L=0;
6197   GNULIB_FABSF=0;
6198   GNULIB_FABSL=0;
6199   GNULIB_FLOOR=0;
6200   GNULIB_FLOORF=0;
6201   GNULIB_FLOORL=0;
6202   GNULIB_FMA=0;
6203   GNULIB_FMAF=0;
6204   GNULIB_FMAL=0;
6205   GNULIB_FMOD=0;
6206   GNULIB_FMODF=0;
6207   GNULIB_FMODL=0;
6208   GNULIB_FREXPF=0;
6209   GNULIB_FREXP=0;
6210   GNULIB_FREXPL=0;
6211   GNULIB_HYPOT=0;
6212   GNULIB_HYPOTF=0;
6213   GNULIB_HYPOTL=0;
6214   GNULIB_ILOGB=0;
6215   GNULIB_ILOGBF=0;
6216   GNULIB_ILOGBL=0;
6217   GNULIB_ISFINITE=0;
6218   GNULIB_ISINF=0;
6219   GNULIB_ISNAN=0;
6220   GNULIB_ISNANF=0;
6221   GNULIB_ISNAND=0;
6222   GNULIB_ISNANL=0;
6223   GNULIB_LDEXPF=0;
6224   GNULIB_LDEXPL=0;
6225   GNULIB_LOG=0;
6226   GNULIB_LOGF=0;
6227   GNULIB_LOGL=0;
6228   GNULIB_LOG10=0;
6229   GNULIB_LOG10F=0;
6230   GNULIB_LOG10L=0;
6231   GNULIB_LOG1P=0;
6232   GNULIB_LOG1PF=0;
6233   GNULIB_LOG1PL=0;
6234   GNULIB_LOG2=0;
6235   GNULIB_LOG2F=0;
6236   GNULIB_LOG2L=0;
6237   GNULIB_LOGB=0;
6238   GNULIB_LOGBF=0;
6239   GNULIB_LOGBL=0;
6240   GNULIB_MODF=0;
6241   GNULIB_MODFF=0;
6242   GNULIB_MODFL=0;
6243   GNULIB_POWF=0;
6244   GNULIB_REMAINDER=0;
6245   GNULIB_REMAINDERF=0;
6246   GNULIB_REMAINDERL=0;
6247   GNULIB_RINT=0;
6248   GNULIB_RINTF=0;
6249   GNULIB_RINTL=0;
6250   GNULIB_ROUND=0;
6251   GNULIB_ROUNDF=0;
6252   GNULIB_ROUNDL=0;
6253   GNULIB_SIGNBIT=0;
6254   GNULIB_SINF=0;
6255   GNULIB_SINL=0;
6256   GNULIB_SINHF=0;
6257   GNULIB_SQRTF=0;
6258   GNULIB_SQRTL=0;
6259   GNULIB_TANF=0;
6260   GNULIB_TANL=0;
6261   GNULIB_TANHF=0;
6262   GNULIB_TRUNC=0;
6263   GNULIB_TRUNCF=0;
6264   GNULIB_TRUNCL=0;
6265     HAVE_ACOSF=1;
6266   HAVE_ACOSL=1;
6267   HAVE_ASINF=1;
6268   HAVE_ASINL=1;
6269   HAVE_ATANF=1;
6270   HAVE_ATANL=1;
6271   HAVE_ATAN2F=1;
6272   HAVE_CBRT=1;
6273   HAVE_CBRTF=1;
6274   HAVE_CBRTL=1;
6275   HAVE_COPYSIGN=1;
6276   HAVE_COPYSIGNL=1;
6277   HAVE_COSF=1;
6278   HAVE_COSL=1;
6279   HAVE_COSHF=1;
6280   HAVE_EXPF=1;
6281   HAVE_EXPL=1;
6282   HAVE_EXPM1=1;
6283   HAVE_EXPM1F=1;
6284   HAVE_FABSF=1;
6285   HAVE_FABSL=1;
6286   HAVE_FMA=1;
6287   HAVE_FMAF=1;
6288   HAVE_FMAL=1;
6289   HAVE_FMODF=1;
6290   HAVE_FMODL=1;
6291   HAVE_FREXPF=1;
6292   HAVE_HYPOTF=1;
6293   HAVE_HYPOTL=1;
6294   HAVE_ILOGB=1;
6295   HAVE_ILOGBF=1;
6296   HAVE_ILOGBL=1;
6297   HAVE_ISNANF=1;
6298   HAVE_ISNAND=1;
6299   HAVE_ISNANL=1;
6300   HAVE_LDEXPF=1;
6301   HAVE_LOGF=1;
6302   HAVE_LOGL=1;
6303   HAVE_LOG10F=1;
6304   HAVE_LOG10L=1;
6305   HAVE_LOG1P=1;
6306   HAVE_LOG1PF=1;
6307   HAVE_LOG1PL=1;
6308   HAVE_LOGBF=1;
6309   HAVE_LOGBL=1;
6310   HAVE_MODFF=1;
6311   HAVE_MODFL=1;
6312   HAVE_POWF=1;
6313   HAVE_REMAINDER=1;
6314   HAVE_REMAINDERF=1;
6315   HAVE_RINT=1;
6316   HAVE_RINTL=1;
6317   HAVE_SINF=1;
6318   HAVE_SINL=1;
6319   HAVE_SINHF=1;
6320   HAVE_SQRTF=1;
6321   HAVE_SQRTL=1;
6322   HAVE_TANF=1;
6323   HAVE_TANL=1;
6324   HAVE_TANHF=1;
6325   HAVE_DECL_ACOSL=1;
6326   HAVE_DECL_ASINL=1;
6327   HAVE_DECL_ATANL=1;
6328   HAVE_DECL_CBRTF=1;
6329   HAVE_DECL_CBRTL=1;
6330   HAVE_DECL_CEILF=1;
6331   HAVE_DECL_CEILL=1;
6332   HAVE_DECL_COPYSIGNF=1;
6333   HAVE_DECL_COSL=1;
6334   HAVE_DECL_EXPL=1;
6335   HAVE_DECL_EXP2=1;
6336   HAVE_DECL_EXP2F=1;
6337   HAVE_DECL_EXP2L=1;
6338   HAVE_DECL_EXPM1L=1;
6339   HAVE_DECL_FLOORF=1;
6340   HAVE_DECL_FLOORL=1;
6341   HAVE_DECL_FREXPL=1;
6342   HAVE_DECL_LDEXPL=1;
6343   HAVE_DECL_LOGL=1;
6344   HAVE_DECL_LOG10L=1;
6345   HAVE_DECL_LOG2=1;
6346   HAVE_DECL_LOG2F=1;
6347   HAVE_DECL_LOG2L=1;
6348   HAVE_DECL_LOGB=1;
6349   HAVE_DECL_REMAINDER=1;
6350   HAVE_DECL_REMAINDERL=1;
6351   HAVE_DECL_RINTF=1;
6352   HAVE_DECL_ROUND=1;
6353   HAVE_DECL_ROUNDF=1;
6354   HAVE_DECL_ROUNDL=1;
6355   HAVE_DECL_SINL=1;
6356   HAVE_DECL_SQRTL=1;
6357   HAVE_DECL_TANL=1;
6358   HAVE_DECL_TRUNC=1;
6359   HAVE_DECL_TRUNCF=1;
6360   HAVE_DECL_TRUNCL=1;
6361   REPLACE_CBRTF=0;
6362   REPLACE_CBRTL=0;
6363   REPLACE_CEIL=0;
6364   REPLACE_CEILF=0;
6365   REPLACE_CEILL=0;
6366   REPLACE_EXPM1=0;
6367   REPLACE_EXPM1F=0;
6368   REPLACE_EXP2=0;
6369   REPLACE_EXP2L=0;
6370   REPLACE_FABSL=0;
6371   REPLACE_FLOOR=0;
6372   REPLACE_FLOORF=0;
6373   REPLACE_FLOORL=0;
6374   REPLACE_FMA=0;
6375   REPLACE_FMAF=0;
6376   REPLACE_FMAL=0;
6377   REPLACE_FMOD=0;
6378   REPLACE_FMODF=0;
6379   REPLACE_FMODL=0;
6380   REPLACE_FREXPF=0;
6381   REPLACE_FREXP=0;
6382   REPLACE_FREXPL=0;
6383   REPLACE_HUGE_VAL=0;
6384   REPLACE_HYPOT=0;
6385   REPLACE_HYPOTF=0;
6386   REPLACE_HYPOTL=0;
6387   REPLACE_ILOGB=0;
6388   REPLACE_ILOGBF=0;
6389   REPLACE_ISFINITE=0;
6390   REPLACE_ISINF=0;
6391   REPLACE_ISNAN=0;
6392   REPLACE_LDEXPL=0;
6393   REPLACE_LOG=0;
6394   REPLACE_LOGF=0;
6395   REPLACE_LOGL=0;
6396   REPLACE_LOG10=0;
6397   REPLACE_LOG10F=0;
6398   REPLACE_LOG10L=0;
6399   REPLACE_LOG1P=0;
6400   REPLACE_LOG1PF=0;
6401   REPLACE_LOG1PL=0;
6402   REPLACE_LOG2=0;
6403   REPLACE_LOG2F=0;
6404   REPLACE_LOG2L=0;
6405   REPLACE_LOGB=0;
6406   REPLACE_LOGBF=0;
6407   REPLACE_LOGBL=0;
6408   REPLACE_MODF=0;
6409   REPLACE_MODFF=0;
6410   REPLACE_MODFL=0;
6411   REPLACE_NAN=0;
6412   REPLACE_REMAINDER=0;
6413   REPLACE_REMAINDERF=0;
6414   REPLACE_REMAINDERL=0;
6415   REPLACE_ROUND=0;
6416   REPLACE_ROUNDF=0;
6417   REPLACE_ROUNDL=0;
6418   REPLACE_SIGNBIT=0;
6419   REPLACE_SIGNBIT_USING_GCC=0;
6420   REPLACE_SQRTL=0;
6421   REPLACE_TRUNC=0;
6422   REPLACE_TRUNCF=0;
6423   REPLACE_TRUNCL=0;
6424
6425
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6427 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6428 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6429   $as_echo_n "(cached) " >&6
6430 else
6431
6432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h.  */
6434 #include <math.h>
6435              double x;
6436 int
6437 main ()
6438 {
6439 int e; return frexp (x, &e) > 0;
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_link "$LINENO"; then :
6445   gl_cv_func_frexp_no_libm=yes
6446 else
6447   gl_cv_func_frexp_no_libm=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext \
6450     conftest$ac_exeext conftest.$ac_ext
6451
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6454 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6455
6456
6457
6458
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6460 $as_echo_n "checking whether long double and double are the same... " >&6; }
6461 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h.  */
6466 #include <float.h>
6467 int
6468 main ()
6469 {
6470 typedef int check[sizeof (long double) == sizeof (double)
6471                               && LDBL_MANT_DIG == DBL_MANT_DIG
6472                               && LDBL_MAX_EXP == DBL_MAX_EXP
6473                               && LDBL_MIN_EXP == DBL_MIN_EXP
6474                               ? 1 : -1];
6475
6476   ;
6477   return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481   gl_cv_long_double_equals_double=yes
6482 else
6483   gl_cv_long_double_equals_double=no
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486
6487 fi
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6489 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6490   if test $gl_cv_long_double_equals_double = yes; then
6491
6492 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6493
6494     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6495   else
6496     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6497   fi
6498
6499
6500
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6502 $as_echo_n "checking for unsigned long long int... " >&6; }
6503 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   ac_cv_type_unsigned_long_long_int=yes
6507      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6508        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h.  */
6510
6511   /* For now, do not test the preprocessor; as of 2007 there are too many
6512          implementations with broken preprocessors.  Perhaps this can
6513          be revisited in 2012.  In the meantime, code should not expect
6514          #if to work with literals wider than 32 bits.  */
6515       /* Test literals.  */
6516       long long int ll = 9223372036854775807ll;
6517       long long int nll = -9223372036854775807LL;
6518       unsigned long long int ull = 18446744073709551615ULL;
6519       /* Test constant expressions.   */
6520       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6521                      ? 1 : -1)];
6522       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6523                      ? 1 : -1)];
6524       int i = 63;
6525 int
6526 main ()
6527 {
6528 /* Test availability of runtime routines for shift and division.  */
6529       long long int llmax = 9223372036854775807ll;
6530       unsigned long long int ullmax = 18446744073709551615ull;
6531       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6532               | (llmax / ll) | (llmax % ll)
6533               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6534               | (ullmax / ull) | (ullmax % ull));
6535   ;
6536   return 0;
6537 }
6538
6539 _ACEOF
6540 if ac_fn_c_try_link "$LINENO"; then :
6541
6542 else
6543   ac_cv_type_unsigned_long_long_int=no
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext \
6546     conftest$ac_exeext conftest.$ac_ext
6547      fi
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6550 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6551   if test $ac_cv_type_unsigned_long_long_int = yes; then
6552
6553 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6554
6555   fi
6556
6557
6558
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6560 $as_echo_n "checking for long long int... " >&6; }
6561 if test "${ac_cv_type_long_long_int+set}" = set; then :
6562   $as_echo_n "(cached) " >&6
6563 else
6564   ac_cv_type_long_long_int=yes
6565       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6566         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6567         if test $ac_cv_type_long_long_int = yes; then
6568                                         if test "$cross_compiling" = yes; then :
6569   :
6570 else
6571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h.  */
6573 #include <limits.h>
6574                  #ifndef LLONG_MAX
6575                  # define HALF \
6576                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6577                  # define LLONG_MAX (HALF - 1 + HALF)
6578                  #endif
6579 int
6580 main ()
6581 {
6582 long long int n = 1;
6583                  int i;
6584                  for (i = 0; ; i++)
6585                    {
6586                      long long int m = n << i;
6587                      if (m >> i != n)
6588                        return 1;
6589                      if (LLONG_MAX / 2 < m)
6590                        break;
6591                    }
6592                  return 0;
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 if ac_fn_c_try_run "$LINENO"; then :
6598
6599 else
6600   ac_cv_type_long_long_int=no
6601 fi
6602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6603   conftest.$ac_objext conftest.beam conftest.$ac_ext
6604 fi
6605
6606         fi
6607       fi
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6610 $as_echo "$ac_cv_type_long_long_int" >&6; }
6611   if test $ac_cv_type_long_long_int = yes; then
6612
6613 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6614
6615   fi
6616
6617
6618
6619
6620
6621
6622     gl_cv_c_multiarch=no
6623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h.  */
6625 #ifndef __APPLE_CC__
6626          not a universal capable compiler
6627         #endif
6628         typedef int dummy;
6629
6630 _ACEOF
6631 if ac_fn_c_try_compile "$LINENO"; then :
6632
6633                arch=
6634      prev=
6635      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6636        if test -n "$prev"; then
6637          case $word in
6638            i?86 | x86_64 | ppc | ppc64)
6639              if test -z "$arch" || test "$arch" = "$word"; then
6640                arch="$word"
6641              else
6642                gl_cv_c_multiarch=yes
6643              fi
6644              ;;
6645          esac
6646          prev=
6647        else
6648          if test "x$word" = "x-arch"; then
6649            prev=arch
6650          fi
6651        fi
6652      done
6653
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656   if test $gl_cv_c_multiarch = yes; then
6657     APPLE_UNIVERSAL_BUILD=1
6658   else
6659     APPLE_UNIVERSAL_BUILD=0
6660   fi
6661
6662
6663
6664
6665
6666   if test $ac_cv_type_long_long_int = yes; then
6667     HAVE_LONG_LONG_INT=1
6668   else
6669     HAVE_LONG_LONG_INT=0
6670   fi
6671
6672
6673   if test $ac_cv_type_unsigned_long_long_int = yes; then
6674     HAVE_UNSIGNED_LONG_LONG_INT=1
6675   else
6676     HAVE_UNSIGNED_LONG_LONG_INT=0
6677   fi
6678
6679
6680
6681   if test $ac_cv_header_wchar_h = yes; then
6682     HAVE_WCHAR_H=1
6683   else
6684     HAVE_WCHAR_H=0
6685   fi
6686
6687
6688       if test $ac_cv_header_inttypes_h = yes; then
6689     HAVE_INTTYPES_H=1
6690   else
6691     HAVE_INTTYPES_H=0
6692   fi
6693
6694
6695       if test $ac_cv_header_sys_types_h = yes; then
6696     HAVE_SYS_TYPES_H=1
6697   else
6698     HAVE_SYS_TYPES_H=0
6699   fi
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711      if test $gl_cv_have_include_next = yes; then
6712        gl_cv_next_stdint_h='<'stdint.h'>'
6713      else
6714        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6715 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6716 if test "${gl_cv_next_stdint_h+set}" = set; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719
6720              if test $ac_cv_header_stdint_h = yes; then
6721
6722
6723                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h.  */
6725 #include <stdint.h>
6726
6727 _ACEOF
6728                                                                                                                         case "$host_os" in
6729                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
6730                  *)    gl_absname_cpp="$ac_cpp" ;;
6731                esac
6732
6733                case "$host_os" in
6734                  mingw*)
6735                                                                                                                                      gl_dirsep_regex='[/\\]'
6736                    ;;
6737                  *)
6738                    gl_dirsep_regex='\/'
6739                    ;;
6740                esac
6741                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6742
6743                gl_header_literal_regex=`echo 'stdint.h' \
6744                                         | sed -e "$gl_make_literal_regex_sed"`
6745                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6746                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6747                    s|^/[^/]|//&|
6748                    p
6749                    q
6750                  }'
6751                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6752                       sed -n "$gl_absolute_header_sed"`'"'
6753           else
6754                gl_cv_next_stdint_h='<'stdint.h'>'
6755              fi
6756
6757
6758 fi
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6760 $as_echo "$gl_cv_next_stdint_h" >&6; }
6761      fi
6762      NEXT_STDINT_H=$gl_cv_next_stdint_h
6763
6764      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6765        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6766        gl_next_as_first_directive='<'stdint.h'>'
6767      else
6768        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6769        gl_next_as_first_directive=$gl_cv_next_stdint_h
6770      fi
6771      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6772
6773
6774
6775
6776   if test $ac_cv_header_stdint_h = yes; then
6777     HAVE_STDINT_H=1
6778   else
6779     HAVE_STDINT_H=0
6780   fi
6781
6782
6783     if test $ac_cv_header_stdint_h = yes; then
6784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6785 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6786 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6787   $as_echo_n "(cached) " >&6
6788 else
6789   gl_cv_header_working_stdint_h=no
6790        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h.  */
6792
6793
6794 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6795 #include <stdint.h>
6796 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
6797 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6798 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6799 #endif
6800
6801
6802   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6803      included before <wchar.h>.  */
6804   #include <stddef.h>
6805   #include <signal.h>
6806   #if HAVE_WCHAR_H
6807   # include <stdio.h>
6808   # include <time.h>
6809   # include <wchar.h>
6810   #endif
6811
6812
6813 #ifdef INT8_MAX
6814 int8_t a1 = INT8_MAX;
6815 int8_t a1min = INT8_MIN;
6816 #endif
6817 #ifdef INT16_MAX
6818 int16_t a2 = INT16_MAX;
6819 int16_t a2min = INT16_MIN;
6820 #endif
6821 #ifdef INT32_MAX
6822 int32_t a3 = INT32_MAX;
6823 int32_t a3min = INT32_MIN;
6824 #endif
6825 #ifdef INT64_MAX
6826 int64_t a4 = INT64_MAX;
6827 int64_t a4min = INT64_MIN;
6828 #endif
6829 #ifdef UINT8_MAX
6830 uint8_t b1 = UINT8_MAX;
6831 #else
6832 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6833 #endif
6834 #ifdef UINT16_MAX
6835 uint16_t b2 = UINT16_MAX;
6836 #endif
6837 #ifdef UINT32_MAX
6838 uint32_t b3 = UINT32_MAX;
6839 #endif
6840 #ifdef UINT64_MAX
6841 uint64_t b4 = UINT64_MAX;
6842 #endif
6843 int_least8_t c1 = INT8_C (0x7f);
6844 int_least8_t c1max = INT_LEAST8_MAX;
6845 int_least8_t c1min = INT_LEAST8_MIN;
6846 int_least16_t c2 = INT16_C (0x7fff);
6847 int_least16_t c2max = INT_LEAST16_MAX;
6848 int_least16_t c2min = INT_LEAST16_MIN;
6849 int_least32_t c3 = INT32_C (0x7fffffff);
6850 int_least32_t c3max = INT_LEAST32_MAX;
6851 int_least32_t c3min = INT_LEAST32_MIN;
6852 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6853 int_least64_t c4max = INT_LEAST64_MAX;
6854 int_least64_t c4min = INT_LEAST64_MIN;
6855 uint_least8_t d1 = UINT8_C (0xff);
6856 uint_least8_t d1max = UINT_LEAST8_MAX;
6857 uint_least16_t d2 = UINT16_C (0xffff);
6858 uint_least16_t d2max = UINT_LEAST16_MAX;
6859 uint_least32_t d3 = UINT32_C (0xffffffff);
6860 uint_least32_t d3max = UINT_LEAST32_MAX;
6861 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6862 uint_least64_t d4max = UINT_LEAST64_MAX;
6863 int_fast8_t e1 = INT_FAST8_MAX;
6864 int_fast8_t e1min = INT_FAST8_MIN;
6865 int_fast16_t e2 = INT_FAST16_MAX;
6866 int_fast16_t e2min = INT_FAST16_MIN;
6867 int_fast32_t e3 = INT_FAST32_MAX;
6868 int_fast32_t e3min = INT_FAST32_MIN;
6869 int_fast64_t e4 = INT_FAST64_MAX;
6870 int_fast64_t e4min = INT_FAST64_MIN;
6871 uint_fast8_t f1 = UINT_FAST8_MAX;
6872 uint_fast16_t f2 = UINT_FAST16_MAX;
6873 uint_fast32_t f3 = UINT_FAST32_MAX;
6874 uint_fast64_t f4 = UINT_FAST64_MAX;
6875 #ifdef INTPTR_MAX
6876 intptr_t g = INTPTR_MAX;
6877 intptr_t gmin = INTPTR_MIN;
6878 #endif
6879 #ifdef UINTPTR_MAX
6880 uintptr_t h = UINTPTR_MAX;
6881 #endif
6882 intmax_t i = INTMAX_MAX;
6883 uintmax_t j = UINTMAX_MAX;
6884
6885 #include <limits.h> /* for CHAR_BIT */
6886 #define TYPE_MINIMUM(t) \
6887   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6888 #define TYPE_MAXIMUM(t) \
6889   ((t) ((t) 0 < (t) -1 \
6890         ? (t) -1 \
6891         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6892 struct s {
6893   int check_PTRDIFF:
6894       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6895       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6896       ? 1 : -1;
6897   /* Detect bug in FreeBSD 6.0 / ia64.  */
6898   int check_SIG_ATOMIC:
6899       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6900       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6901       ? 1 : -1;
6902   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6903   int check_WCHAR:
6904       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6905       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6906       ? 1 : -1;
6907   /* Detect bug in mingw.  */
6908   int check_WINT:
6909       WINT_MIN == TYPE_MINIMUM (wint_t)
6910       && WINT_MAX == TYPE_MAXIMUM (wint_t)
6911       ? 1 : -1;
6912
6913   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
6914   int check_UINT8_C:
6915         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6916   int check_UINT16_C:
6917         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6918
6919   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
6920 #ifdef UINT8_MAX
6921   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6922 #endif
6923 #ifdef UINT16_MAX
6924   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6925 #endif
6926 #ifdef UINT32_MAX
6927   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6928 #endif
6929 #ifdef UINT64_MAX
6930   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6931 #endif
6932   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6933   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6934   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6935   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6936   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6937   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6938   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6939   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6940   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6941   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6942   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6943 };
6944
6945 int
6946 main ()
6947 {
6948
6949   ;
6950   return 0;
6951 }
6952 _ACEOF
6953 if ac_fn_c_try_compile "$LINENO"; then :
6954                                                     if test "$cross_compiling" = yes; then :
6955                  gl_cv_header_working_stdint_h=yes
6956
6957 else
6958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h.  */
6960
6961
6962 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6963 #include <stdint.h>
6964
6965
6966   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6967      included before <wchar.h>.  */
6968   #include <stddef.h>
6969   #include <signal.h>
6970   #if HAVE_WCHAR_H
6971   # include <stdio.h>
6972   # include <time.h>
6973   # include <wchar.h>
6974   #endif
6975
6976
6977 #include <stdio.h>
6978 #include <string.h>
6979 #define MVAL(macro) MVAL1(macro)
6980 #define MVAL1(expression) #expression
6981 static const char *macro_values[] =
6982   {
6983 #ifdef INT8_MAX
6984     MVAL (INT8_MAX),
6985 #endif
6986 #ifdef INT16_MAX
6987     MVAL (INT16_MAX),
6988 #endif
6989 #ifdef INT32_MAX
6990     MVAL (INT32_MAX),
6991 #endif
6992 #ifdef INT64_MAX
6993     MVAL (INT64_MAX),
6994 #endif
6995 #ifdef UINT8_MAX
6996     MVAL (UINT8_MAX),
6997 #endif
6998 #ifdef UINT16_MAX
6999     MVAL (UINT16_MAX),
7000 #endif
7001 #ifdef UINT32_MAX
7002     MVAL (UINT32_MAX),
7003 #endif
7004 #ifdef UINT64_MAX
7005     MVAL (UINT64_MAX),
7006 #endif
7007     NULL
7008   };
7009
7010 int
7011 main ()
7012 {
7013
7014   const char **mv;
7015   for (mv = macro_values; *mv != NULL; mv++)
7016     {
7017       const char *value = *mv;
7018       /* Test whether it looks like a cast expression.  */
7019       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7020           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7021           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7022           || strncmp (value, "((int)"/*)*/, 6) == 0
7023           || strncmp (value, "((signed short)"/*)*/, 15) == 0
7024           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7025         return mv - macro_values + 1;
7026     }
7027   return 0;
7028
7029   ;
7030   return 0;
7031 }
7032 _ACEOF
7033 if ac_fn_c_try_run "$LINENO"; then :
7034   gl_cv_header_working_stdint_h=yes
7035 fi
7036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7037   conftest.$ac_objext conftest.beam conftest.$ac_ext
7038 fi
7039
7040
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7046 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7047   fi
7048   if test "$gl_cv_header_working_stdint_h" = yes; then
7049     STDINT_H=
7050   else
7051             for ac_header in sys/inttypes.h sys/bitypes.h
7052 do :
7053   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7054 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7055 eval as_val=\$$as_ac_Header
7056    if test "x$as_val" = x""yes; then :
7057   cat >>confdefs.h <<_ACEOF
7058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7059 _ACEOF
7060
7061 fi
7062
7063 done
7064
7065     if test $ac_cv_header_sys_inttypes_h = yes; then
7066       HAVE_SYS_INTTYPES_H=1
7067     else
7068       HAVE_SYS_INTTYPES_H=0
7069     fi
7070
7071     if test $ac_cv_header_sys_bitypes_h = yes; then
7072       HAVE_SYS_BITYPES_H=1
7073     else
7074       HAVE_SYS_BITYPES_H=0
7075     fi
7076
7077
7078
7079
7080   if test $APPLE_UNIVERSAL_BUILD = 0; then
7081
7082
7083   for gltype in ptrdiff_t size_t ; do
7084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7085 $as_echo_n "checking for bit size of $gltype... " >&6; }
7086 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
7090   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7091      included before <wchar.h>.  */
7092   #include <stddef.h>
7093   #include <signal.h>
7094   #if HAVE_WCHAR_H
7095   # include <stdio.h>
7096   # include <time.h>
7097   # include <wchar.h>
7098   #endif
7099
7100 #include <limits.h>"; then :
7101
7102 else
7103   result=unknown
7104 fi
7105
7106        eval gl_cv_bitsizeof_${gltype}=\$result
7107
7108 fi
7109 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7110                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7111 $as_echo "$ac_res" >&6; }
7112     eval result=\$gl_cv_bitsizeof_${gltype}
7113     if test $result = unknown; then
7114                                                 result=0
7115     fi
7116     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7117     cat >>confdefs.h <<_ACEOF
7118 #define BITSIZEOF_${GLTYPE} $result
7119 _ACEOF
7120
7121     eval BITSIZEOF_${GLTYPE}=\$result
7122   done
7123
7124
7125   fi
7126
7127
7128   for gltype in sig_atomic_t wchar_t wint_t ; do
7129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7130 $as_echo_n "checking for bit size of $gltype... " >&6; }
7131 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
7135   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7136      included before <wchar.h>.  */
7137   #include <stddef.h>
7138   #include <signal.h>
7139   #if HAVE_WCHAR_H
7140   # include <stdio.h>
7141   # include <time.h>
7142   # include <wchar.h>
7143   #endif
7144
7145 #include <limits.h>"; then :
7146
7147 else
7148   result=unknown
7149 fi
7150
7151        eval gl_cv_bitsizeof_${gltype}=\$result
7152
7153 fi
7154 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7155                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7156 $as_echo "$ac_res" >&6; }
7157     eval result=\$gl_cv_bitsizeof_${gltype}
7158     if test $result = unknown; then
7159                                                 result=0
7160     fi
7161     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7162     cat >>confdefs.h <<_ACEOF
7163 #define BITSIZEOF_${GLTYPE} $result
7164 _ACEOF
7165
7166     eval BITSIZEOF_${GLTYPE}=\$result
7167   done
7168
7169
7170
7171
7172   for gltype in sig_atomic_t wchar_t wint_t ; do
7173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7174 $as_echo_n "checking whether $gltype is signed... " >&6; }
7175 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7176   $as_echo_n "(cached) " >&6
7177 else
7178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h.  */
7180
7181   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7182      included before <wchar.h>.  */
7183   #include <stddef.h>
7184   #include <signal.h>
7185   #if HAVE_WCHAR_H
7186   # include <stdio.h>
7187   # include <time.h>
7188   # include <wchar.h>
7189   #endif
7190
7191             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7192 int
7193 main ()
7194 {
7195
7196   ;
7197   return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_c_try_compile "$LINENO"; then :
7201   result=yes
7202 else
7203   result=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206        eval gl_cv_type_${gltype}_signed=\$result
7207
7208 fi
7209 eval ac_res=\$gl_cv_type_${gltype}_signed
7210                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7211 $as_echo "$ac_res" >&6; }
7212     eval result=\$gl_cv_type_${gltype}_signed
7213     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7214     if test "$result" = yes; then
7215       cat >>confdefs.h <<_ACEOF
7216 #define HAVE_SIGNED_${GLTYPE} 1
7217 _ACEOF
7218
7219       eval HAVE_SIGNED_${GLTYPE}=1
7220     else
7221       eval HAVE_SIGNED_${GLTYPE}=0
7222     fi
7223   done
7224
7225
7226   gl_cv_type_ptrdiff_t_signed=yes
7227   gl_cv_type_size_t_signed=no
7228   if test $APPLE_UNIVERSAL_BUILD = 0; then
7229
7230
7231   for gltype in ptrdiff_t size_t ; do
7232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7233 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7234 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   eval gl_cv_type_${gltype}_suffix=no
7238        eval result=\$gl_cv_type_${gltype}_signed
7239        if test "$result" = yes; then
7240          glsufu=
7241        else
7242          glsufu=u
7243        fi
7244        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7245          case $glsuf in
7246            '')  gltype1='int';;
7247            l)   gltype1='long int';;
7248            ll)  gltype1='long long int';;
7249            i64) gltype1='__int64';;
7250            u)   gltype1='unsigned int';;
7251            ul)  gltype1='unsigned long int';;
7252            ull) gltype1='unsigned long long int';;
7253            ui64)gltype1='unsigned __int64';;
7254          esac
7255          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h.  */
7257
7258   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7259      included before <wchar.h>.  */
7260   #include <stddef.h>
7261   #include <signal.h>
7262   #if HAVE_WCHAR_H
7263   # include <stdio.h>
7264   # include <time.h>
7265   # include <wchar.h>
7266   #endif
7267
7268               extern $gltype foo;
7269               extern $gltype1 foo;
7270 int
7271 main ()
7272 {
7273
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279   eval gl_cv_type_${gltype}_suffix=\$glsuf
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282          eval result=\$gl_cv_type_${gltype}_suffix
7283          test "$result" != no && break
7284        done
7285 fi
7286 eval ac_res=\$gl_cv_type_${gltype}_suffix
7287                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7288 $as_echo "$ac_res" >&6; }
7289     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7290     eval result=\$gl_cv_type_${gltype}_suffix
7291     test "$result" = no && result=
7292     eval ${GLTYPE}_SUFFIX=\$result
7293     cat >>confdefs.h <<_ACEOF
7294 #define ${GLTYPE}_SUFFIX $result
7295 _ACEOF
7296
7297   done
7298
7299
7300   fi
7301
7302
7303   for gltype in sig_atomic_t wchar_t wint_t ; do
7304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7305 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7306 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   eval gl_cv_type_${gltype}_suffix=no
7310        eval result=\$gl_cv_type_${gltype}_signed
7311        if test "$result" = yes; then
7312          glsufu=
7313        else
7314          glsufu=u
7315        fi
7316        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7317          case $glsuf in
7318            '')  gltype1='int';;
7319            l)   gltype1='long int';;
7320            ll)  gltype1='long long int';;
7321            i64) gltype1='__int64';;
7322            u)   gltype1='unsigned int';;
7323            ul)  gltype1='unsigned long int';;
7324            ull) gltype1='unsigned long long int';;
7325            ui64)gltype1='unsigned __int64';;
7326          esac
7327          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h.  */
7329
7330   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7331      included before <wchar.h>.  */
7332   #include <stddef.h>
7333   #include <signal.h>
7334   #if HAVE_WCHAR_H
7335   # include <stdio.h>
7336   # include <time.h>
7337   # include <wchar.h>
7338   #endif
7339
7340               extern $gltype foo;
7341               extern $gltype1 foo;
7342 int
7343 main ()
7344 {
7345
7346   ;
7347   return 0;
7348 }
7349 _ACEOF
7350 if ac_fn_c_try_compile "$LINENO"; then :
7351   eval gl_cv_type_${gltype}_suffix=\$glsuf
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354          eval result=\$gl_cv_type_${gltype}_suffix
7355          test "$result" != no && break
7356        done
7357 fi
7358 eval ac_res=\$gl_cv_type_${gltype}_suffix
7359                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7360 $as_echo "$ac_res" >&6; }
7361     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7362     eval result=\$gl_cv_type_${gltype}_suffix
7363     test "$result" = no && result=
7364     eval ${GLTYPE}_SUFFIX=\$result
7365     cat >>confdefs.h <<_ACEOF
7366 #define ${GLTYPE}_SUFFIX $result
7367 _ACEOF
7368
7369   done
7370
7371
7372
7373           if test $BITSIZEOF_WINT_T -lt 32; then
7374     BITSIZEOF_WINT_T=32
7375   fi
7376
7377     STDINT_H=stdint.h
7378   fi
7379
7380    if test -n "$STDINT_H"; then
7381   GL_GENERATE_STDINT_H_TRUE=
7382   GL_GENERATE_STDINT_H_FALSE='#'
7383 else
7384   GL_GENERATE_STDINT_H_TRUE='#'
7385   GL_GENERATE_STDINT_H_FALSE=
7386 fi
7387
7388
7389
7390
7391
7392   GNULIB_IMAXABS=0;
7393   GNULIB_IMAXDIV=0;
7394   GNULIB_STRTOIMAX=0;
7395   GNULIB_STRTOUMAX=0;
7396     HAVE_DECL_IMAXABS=1;
7397   HAVE_DECL_IMAXDIV=1;
7398   HAVE_DECL_STRTOIMAX=1;
7399   HAVE_DECL_STRTOUMAX=1;
7400   REPLACE_STRTOIMAX=0;
7401   INT32_MAX_LT_INTMAX_MAX=1;
7402   INT64_MAX_EQ_LONG_MAX='defined _LP64';
7403   PRI_MACROS_BROKEN=0;
7404   PRIPTR_PREFIX=__PRIPTR_PREFIX;
7405   UINT32_MAX_LT_UINTMAX_MAX=1;
7406   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422      if test $gl_cv_have_include_next = yes; then
7423        gl_cv_next_inttypes_h='<'inttypes.h'>'
7424      else
7425        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7426 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7427 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430
7431              if test $ac_cv_header_inttypes_h = yes; then
7432
7433
7434                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h.  */
7436 #include <inttypes.h>
7437
7438 _ACEOF
7439                                                                                                                         case "$host_os" in
7440                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
7441                  *)    gl_absname_cpp="$ac_cpp" ;;
7442                esac
7443
7444                case "$host_os" in
7445                  mingw*)
7446                                                                                                                                      gl_dirsep_regex='[/\\]'
7447                    ;;
7448                  *)
7449                    gl_dirsep_regex='\/'
7450                    ;;
7451                esac
7452                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7453
7454                gl_header_literal_regex=`echo 'inttypes.h' \
7455                                         | sed -e "$gl_make_literal_regex_sed"`
7456                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7457                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7458                    s|^/[^/]|//&|
7459                    p
7460                    q
7461                  }'
7462                                                             gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7463                       sed -n "$gl_absolute_header_sed"`'"'
7464           else
7465                gl_cv_next_inttypes_h='<'inttypes.h'>'
7466              fi
7467
7468
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7471 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7472      fi
7473      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7474
7475      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7476        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7477        gl_next_as_first_directive='<'inttypes.h'>'
7478      else
7479        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7480        gl_next_as_first_directive=$gl_cv_next_inttypes_h
7481      fi
7482      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7483
7484
7485
7486
7487
7488
7489
7490
7491     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7492     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7494 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7495 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7496   $as_echo_n "(cached) " >&6
7497 else
7498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h.  */
7500 #include <inttypes.h>
7501
7502 int
7503 main ()
7504 {
7505 #undef $gl_func
7506   (void) $gl_func;
7507   ;
7508   return 0;
7509 }
7510 _ACEOF
7511 if ac_fn_c_try_compile "$LINENO"; then :
7512   eval "$as_gl_Symbol=yes"
7513 else
7514   eval "$as_gl_Symbol=no"
7515 fi
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 fi
7518 eval ac_res=\$$as_gl_Symbol
7519                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7520 $as_echo "$ac_res" >&6; }
7521     eval as_val=\$$as_gl_Symbol
7522    if test "x$as_val" = x""yes; then :
7523   cat >>confdefs.h <<_ACEOF
7524 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7525 _ACEOF
7526
7527                      eval ac_cv_have_decl_$gl_func=yes
7528 fi
7529       done
7530
7531
7532
7533   for ac_header in inttypes.h
7534 do :
7535   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7536 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7537   cat >>confdefs.h <<_ACEOF
7538 #define HAVE_INTTYPES_H 1
7539 _ACEOF
7540
7541 fi
7542
7543 done
7544
7545   if test $ac_cv_header_inttypes_h = yes; then
7546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7547 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7548 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7549   $as_echo_n "(cached) " >&6
7550 else
7551
7552         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h.  */
7554
7555 #include <inttypes.h>
7556 #ifdef PRId32
7557 char *p = PRId32;
7558 #endif
7559
7560 int
7561 main ()
7562 {
7563
7564   ;
7565   return 0;
7566 }
7567 _ACEOF
7568 if ac_fn_c_try_compile "$LINENO"; then :
7569   gt_cv_inttypes_pri_broken=no
7570 else
7571   gt_cv_inttypes_pri_broken=yes
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7577 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7578   fi
7579   if test "$gt_cv_inttypes_pri_broken" = yes; then
7580
7581 cat >>confdefs.h <<_ACEOF
7582 #define PRI_MACROS_BROKEN 1
7583 _ACEOF
7584
7585     PRI_MACROS_BROKEN=1
7586   else
7587     PRI_MACROS_BROKEN=0
7588   fi
7589
7590
7591
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7593 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7594 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597
7598       if test "$cross_compiling" = yes; then :
7599
7600                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h.  */
7602
7603 #if defined arm || defined __arm || defined __arm__
7604   mixed_endianness
7605 #endif
7606
7607 _ACEOF
7608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7609   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7610   gl_cv_cc_double_expbit0="unknown"
7611 else
7612
7613                                                          :
7614 if test "${ac_cv_c_bigendian+set}" = set; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   ac_cv_c_bigendian=unknown
7618     # See if we're dealing with a universal compiler.
7619     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h.  */
7621 #ifndef __APPLE_CC__
7622                not a universal capable compiler
7623              #endif
7624              typedef int dummy;
7625
7626 _ACEOF
7627 if ac_fn_c_try_compile "$LINENO"; then :
7628
7629         # Check for potential -arch flags.  It is not universal unless
7630         # there are at least two -arch flags with different values.
7631         ac_arch=
7632         ac_prev=
7633         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7634          if test -n "$ac_prev"; then
7635            case $ac_word in
7636              i?86 | x86_64 | ppc | ppc64)
7637                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7638                  ac_arch=$ac_word
7639                else
7640                  ac_cv_c_bigendian=universal
7641                  break
7642                fi
7643                ;;
7644            esac
7645            ac_prev=
7646          elif test "x$ac_word" = "x-arch"; then
7647            ac_prev=arch
7648          fi
7649        done
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652     if test $ac_cv_c_bigendian = unknown; then
7653       # See if sys/param.h defines the BYTE_ORDER macro.
7654       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h.  */
7656 #include <sys/types.h>
7657              #include <sys/param.h>
7658
7659 int
7660 main ()
7661 {
7662 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7663                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7664                      && LITTLE_ENDIAN)
7665               bogus endian macros
7666              #endif
7667
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673   # It does; now see whether it defined to BIG_ENDIAN or not.
7674          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h.  */
7676 #include <sys/types.h>
7677                 #include <sys/param.h>
7678
7679 int
7680 main ()
7681 {
7682 #if BYTE_ORDER != BIG_ENDIAN
7683                  not big endian
7684                 #endif
7685
7686   ;
7687   return 0;
7688 }
7689 _ACEOF
7690 if ac_fn_c_try_compile "$LINENO"; then :
7691   ac_cv_c_bigendian=yes
7692 else
7693   ac_cv_c_bigendian=no
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698     fi
7699     if test $ac_cv_c_bigendian = unknown; then
7700       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7701       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h.  */
7703 #include <limits.h>
7704
7705 int
7706 main ()
7707 {
7708 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7709               bogus endian macros
7710              #endif
7711
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 if ac_fn_c_try_compile "$LINENO"; then :
7717   # It does; now see whether it defined to _BIG_ENDIAN or not.
7718          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h.  */
7720 #include <limits.h>
7721
7722 int
7723 main ()
7724 {
7725 #ifndef _BIG_ENDIAN
7726                  not big endian
7727                 #endif
7728
7729   ;
7730   return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_compile "$LINENO"; then :
7734   ac_cv_c_bigendian=yes
7735 else
7736   ac_cv_c_bigendian=no
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741     fi
7742     if test $ac_cv_c_bigendian = unknown; then
7743       # Compile a test program.
7744       if test "$cross_compiling" = yes; then :
7745   # Try to guess by grepping values from an object file.
7746          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h.  */
7748 short int ascii_mm[] =
7749                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7750                 short int ascii_ii[] =
7751                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7752                 int use_ascii (int i) {
7753                   return ascii_mm[i] + ascii_ii[i];
7754                 }
7755                 short int ebcdic_ii[] =
7756                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7757                 short int ebcdic_mm[] =
7758                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7759                 int use_ebcdic (int i) {
7760                   return ebcdic_mm[i] + ebcdic_ii[i];
7761                 }
7762                 extern int foo;
7763
7764 int
7765 main ()
7766 {
7767 return use_ascii (foo) == use_ebcdic (foo);
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7774               ac_cv_c_bigendian=yes
7775             fi
7776             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7777               if test "$ac_cv_c_bigendian" = unknown; then
7778                 ac_cv_c_bigendian=no
7779               else
7780                 # finding both strings is unlikely to happen, but who knows?
7781                 ac_cv_c_bigendian=unknown
7782               fi
7783             fi
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 else
7787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h.  */
7789 $ac_includes_default
7790 int
7791 main ()
7792 {
7793
7794              /* Are we little or big endian?  From Harbison&Steele.  */
7795              union
7796              {
7797                long int l;
7798                char c[sizeof (long int)];
7799              } u;
7800              u.l = 1;
7801              return u.c[sizeof (long int) - 1] == 1;
7802
7803   ;
7804   return 0;
7805 }
7806 _ACEOF
7807 if ac_fn_c_try_run "$LINENO"; then :
7808   ac_cv_c_bigendian=no
7809 else
7810   ac_cv_c_bigendian=yes
7811 fi
7812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7813   conftest.$ac_objext conftest.beam conftest.$ac_ext
7814 fi
7815
7816     fi
7817 fi
7818 :
7819  case $ac_cv_c_bigendian in #(
7820    yes)
7821      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7822    no)
7823      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7824    universal)
7825
7826 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7827
7828      ;; #(
7829    *)
7830      gl_cv_cc_double_expbit0="unknown" ;;
7831  esac
7832
7833
7834 fi
7835 rm -f conftest*
7836
7837
7838 else
7839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h.  */
7841
7842 #include <float.h>
7843 #include <stddef.h>
7844 #include <stdio.h>
7845 #include <string.h>
7846 #define NWORDS \
7847   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7848 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7849 static unsigned int ored_words[NWORDS];
7850 static unsigned int anded_words[NWORDS];
7851 static void add_to_ored_words (double x)
7852 {
7853   memory_double m;
7854   size_t i;
7855   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
7856   memset (&m, 0, sizeof (memory_double));
7857   m.value = x;
7858   for (i = 0; i < NWORDS; i++)
7859     {
7860       ored_words[i] |= m.word[i];
7861       anded_words[i] &= m.word[i];
7862     }
7863 }
7864 int main ()
7865 {
7866   size_t j;
7867   FILE *fp = fopen ("conftest.out", "w");
7868   if (fp == NULL)
7869     return 1;
7870   for (j = 0; j < NWORDS; j++)
7871     anded_words[j] = ~ (unsigned int) 0;
7872   add_to_ored_words (0.25);
7873   add_to_ored_words (0.5);
7874   add_to_ored_words (1.0);
7875   add_to_ored_words (2.0);
7876   add_to_ored_words (4.0);
7877   /* Remove bits that are common (e.g. if representation of the first mantissa
7878      bit is explicit).  */
7879   for (j = 0; j < NWORDS; j++)
7880     ored_words[j] &= ~anded_words[j];
7881   /* Now find the nonzero word.  */
7882   for (j = 0; j < NWORDS; j++)
7883     if (ored_words[j] != 0)
7884       break;
7885   if (j < NWORDS)
7886     {
7887       size_t i;
7888       for (i = j + 1; i < NWORDS; i++)
7889         if (ored_words[i] != 0)
7890           {
7891             fprintf (fp, "unknown");
7892             return (fclose (fp) != 0);
7893           }
7894       for (i = 0; ; i++)
7895         if ((ored_words[j] >> i) & 1)
7896           {
7897             fprintf (fp, "word %d bit %d", (int) j, (int) i);
7898             return (fclose (fp) != 0);
7899           }
7900     }
7901   fprintf (fp, "unknown");
7902   return (fclose (fp) != 0);
7903 }
7904
7905 _ACEOF
7906 if ac_fn_c_try_run "$LINENO"; then :
7907   gl_cv_cc_double_expbit0=`cat conftest.out`
7908 else
7909   gl_cv_cc_double_expbit0="unknown"
7910 fi
7911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7912   conftest.$ac_objext conftest.beam conftest.$ac_ext
7913 fi
7914
7915       rm -f conftest.out
7916
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7919 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7920   case "$gl_cv_cc_double_expbit0" in
7921     word*bit*)
7922       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7923       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
7924
7925 cat >>confdefs.h <<_ACEOF
7926 #define DBL_EXPBIT0_WORD $word
7927 _ACEOF
7928
7929
7930 cat >>confdefs.h <<_ACEOF
7931 #define DBL_EXPBIT0_BIT $bit
7932 _ACEOF
7933
7934       ;;
7935   esac
7936
7937
7938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7939 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7940 if test "${ac_cv_c_bigendian+set}" = set; then :
7941   $as_echo_n "(cached) " >&6
7942 else
7943   ac_cv_c_bigendian=unknown
7944     # See if we're dealing with a universal compiler.
7945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h.  */
7947 #ifndef __APPLE_CC__
7948                not a universal capable compiler
7949              #endif
7950              typedef int dummy;
7951
7952 _ACEOF
7953 if ac_fn_c_try_compile "$LINENO"; then :
7954
7955         # Check for potential -arch flags.  It is not universal unless
7956         # there are at least two -arch flags with different values.
7957         ac_arch=
7958         ac_prev=
7959         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7960          if test -n "$ac_prev"; then
7961            case $ac_word in
7962              i?86 | x86_64 | ppc | ppc64)
7963                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7964                  ac_arch=$ac_word
7965                else
7966                  ac_cv_c_bigendian=universal
7967                  break
7968                fi
7969                ;;
7970            esac
7971            ac_prev=
7972          elif test "x$ac_word" = "x-arch"; then
7973            ac_prev=arch
7974          fi
7975        done
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978     if test $ac_cv_c_bigendian = unknown; then
7979       # See if sys/param.h defines the BYTE_ORDER macro.
7980       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h.  */
7982 #include <sys/types.h>
7983              #include <sys/param.h>
7984
7985 int
7986 main ()
7987 {
7988 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7989                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7990                      && LITTLE_ENDIAN)
7991               bogus endian macros
7992              #endif
7993
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999   # It does; now see whether it defined to BIG_ENDIAN or not.
8000          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h.  */
8002 #include <sys/types.h>
8003                 #include <sys/param.h>
8004
8005 int
8006 main ()
8007 {
8008 #if BYTE_ORDER != BIG_ENDIAN
8009                  not big endian
8010                 #endif
8011
8012   ;
8013   return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017   ac_cv_c_bigendian=yes
8018 else
8019   ac_cv_c_bigendian=no
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024     fi
8025     if test $ac_cv_c_bigendian = unknown; then
8026       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8027       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h.  */
8029 #include <limits.h>
8030
8031 int
8032 main ()
8033 {
8034 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8035               bogus endian macros
8036              #endif
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 if ac_fn_c_try_compile "$LINENO"; then :
8043   # It does; now see whether it defined to _BIG_ENDIAN or not.
8044          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h.  */
8046 #include <limits.h>
8047
8048 int
8049 main ()
8050 {
8051 #ifndef _BIG_ENDIAN
8052                  not big endian
8053                 #endif
8054
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060   ac_cv_c_bigendian=yes
8061 else
8062   ac_cv_c_bigendian=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067     fi
8068     if test $ac_cv_c_bigendian = unknown; then
8069       # Compile a test program.
8070       if test "$cross_compiling" = yes; then :
8071   # Try to guess by grepping values from an object file.
8072          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074 short int ascii_mm[] =
8075                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8076                 short int ascii_ii[] =
8077                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8078                 int use_ascii (int i) {
8079                   return ascii_mm[i] + ascii_ii[i];
8080                 }
8081                 short int ebcdic_ii[] =
8082                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8083                 short int ebcdic_mm[] =
8084                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8085                 int use_ebcdic (int i) {
8086                   return ebcdic_mm[i] + ebcdic_ii[i];
8087                 }
8088                 extern int foo;
8089
8090 int
8091 main ()
8092 {
8093 return use_ascii (foo) == use_ebcdic (foo);
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8100               ac_cv_c_bigendian=yes
8101             fi
8102             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8103               if test "$ac_cv_c_bigendian" = unknown; then
8104                 ac_cv_c_bigendian=no
8105               else
8106                 # finding both strings is unlikely to happen, but who knows?
8107                 ac_cv_c_bigendian=unknown
8108               fi
8109             fi
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 else
8113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h.  */
8115 $ac_includes_default
8116 int
8117 main ()
8118 {
8119
8120              /* Are we little or big endian?  From Harbison&Steele.  */
8121              union
8122              {
8123                long int l;
8124                char c[sizeof (long int)];
8125              } u;
8126              u.l = 1;
8127              return u.c[sizeof (long int) - 1] == 1;
8128
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_run "$LINENO"; then :
8134   ac_cv_c_bigendian=no
8135 else
8136   ac_cv_c_bigendian=yes
8137 fi
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8139   conftest.$ac_objext conftest.beam conftest.$ac_ext
8140 fi
8141
8142     fi
8143 fi
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8145 $as_echo "$ac_cv_c_bigendian" >&6; }
8146  case $ac_cv_c_bigendian in #(
8147    yes)
8148      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8149 ;; #(
8150    no)
8151       ;; #(
8152    universal)
8153
8154 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8155
8156      ;; #(
8157    *)
8158      as_fn_error "unknown endianness
8159  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8160  esac
8161
8162
8163
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8165 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8166 if test "${am_cv_langinfo_codeset+set}" = set; then :
8167   $as_echo_n "(cached) " >&6
8168 else
8169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h.  */
8171 #include <langinfo.h>
8172 int
8173 main ()
8174 {
8175 char* cs = nl_langinfo(CODESET); return !cs;
8176   ;
8177   return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_link "$LINENO"; then :
8181   am_cv_langinfo_codeset=yes
8182 else
8183   am_cv_langinfo_codeset=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext \
8186     conftest$ac_exeext conftest.$ac_ext
8187
8188 fi
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8190 $as_echo "$am_cv_langinfo_codeset" >&6; }
8191   if test $am_cv_langinfo_codeset = yes; then
8192
8193 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8194
8195   fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8207 $as_echo_n "checking for working fcntl.h... " >&6; }
8208 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test "$cross_compiling" = yes; then :
8212   gl_cv_header_working_fcntl_h=cross-compiling
8213 else
8214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h.  */
8216 #include <sys/types.h>
8217            #include <sys/stat.h>
8218            #if HAVE_UNISTD_H
8219            # include <unistd.h>
8220            #else /* on Windows with MSVC */
8221            # include <io.h>
8222            # include <stdlib.h>
8223            # defined sleep(n) _sleep ((n) * 1000)
8224            #endif
8225            #include <fcntl.h>
8226            #ifndef O_NOATIME
8227             #define O_NOATIME 0
8228            #endif
8229            #ifndef O_NOFOLLOW
8230             #define O_NOFOLLOW 0
8231            #endif
8232            static int const constants[] =
8233             {
8234               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8235               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8236             };
8237
8238 int
8239 main ()
8240 {
8241
8242             int result = !constants;
8243             #if HAVE_SYMLINK
8244             {
8245               static char const sym[] = "conftest.sym";
8246               if (symlink ("/dev/null", sym) != 0)
8247                 result |= 2;
8248               else
8249                 {
8250                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8251                   if (fd >= 0)
8252                     {
8253                       close (fd);
8254                       result |= 4;
8255                     }
8256                 }
8257               if (unlink (sym) != 0 || symlink (".", sym) != 0)
8258                 result |= 2;
8259               else
8260                 {
8261                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8262                   if (fd >= 0)
8263                     {
8264                       close (fd);
8265                       result |= 4;
8266                     }
8267                 }
8268               unlink (sym);
8269             }
8270             #endif
8271             {
8272               static char const file[] = "confdefs.h";
8273               int fd = open (file, O_RDONLY | O_NOATIME);
8274               if (fd < 0)
8275                 result |= 8;
8276               else
8277                 {
8278                   struct stat st0;
8279                   if (fstat (fd, &st0) != 0)
8280                     result |= 16;
8281                   else
8282                     {
8283                       char c;
8284                       sleep (1);
8285                       if (read (fd, &c, 1) != 1)
8286                         result |= 24;
8287                       else
8288                         {
8289                           if (close (fd) != 0)
8290                             result |= 32;
8291                           else
8292                             {
8293                               struct stat st1;
8294                               if (stat (file, &st1) != 0)
8295                                 result |= 40;
8296                               else
8297                                 if (st0.st_atime != st1.st_atime)
8298                                   result |= 64;
8299                             }
8300                         }
8301                     }
8302                 }
8303             }
8304             return result;
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 if ac_fn_c_try_run "$LINENO"; then :
8310   gl_cv_header_working_fcntl_h=yes
8311 else
8312   case $? in #(
8313         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8314         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8315         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8316          *) gl_cv_header_working_fcntl_h='no';;
8317         esac
8318 fi
8319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8320   conftest.$ac_objext conftest.beam conftest.$ac_ext
8321 fi
8322
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8325 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8326
8327   case $gl_cv_header_working_fcntl_h in #(
8328   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8329   *) ac_val=1;;
8330   esac
8331
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_WORKING_O_NOATIME $ac_val
8334 _ACEOF
8335
8336
8337   case $gl_cv_header_working_fcntl_h in #(
8338   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8339   *) ac_val=1;;
8340   esac
8341
8342 cat >>confdefs.h <<_ACEOF
8343 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8344 _ACEOF
8345
8346
8347 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8348 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8349   ac_have_decl=1
8350 else
8351   ac_have_decl=0
8352 fi
8353
8354 cat >>confdefs.h <<_ACEOF
8355 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8356 _ACEOF
8357
8358
8359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8360 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8361 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8362   $as_echo_n "(cached) " >&6
8363 else
8364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h.  */
8366
8367 #include <features.h>
8368 #ifdef __GNU_LIBRARY__
8369  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8370   Lucky GNU user
8371  #endif
8372 #endif
8373 #ifdef __UCLIBC__
8374  Lucky user
8375 #endif
8376
8377 _ACEOF
8378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8379   $EGREP "Lucky" >/dev/null 2>&1; then :
8380   ac_cv_gnu_library_2_1=yes
8381 else
8382   ac_cv_gnu_library_2_1=no
8383 fi
8384 rm -f conftest*
8385
8386
8387
8388 fi
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8390 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8391
8392     GLIBC21="$ac_cv_gnu_library_2_1"
8393
8394
8395
8396
8397
8398   GNULIB_BTOWC=0;
8399   GNULIB_WCTOB=0;
8400   GNULIB_MBSINIT=0;
8401   GNULIB_MBRTOWC=0;
8402   GNULIB_MBRLEN=0;
8403   GNULIB_MBSRTOWCS=0;
8404   GNULIB_MBSNRTOWCS=0;
8405   GNULIB_WCRTOMB=0;
8406   GNULIB_WCSRTOMBS=0;
8407   GNULIB_WCSNRTOMBS=0;
8408   GNULIB_WCWIDTH=0;
8409   GNULIB_WMEMCHR=0;
8410   GNULIB_WMEMCMP=0;
8411   GNULIB_WMEMCPY=0;
8412   GNULIB_WMEMMOVE=0;
8413   GNULIB_WMEMSET=0;
8414   GNULIB_WCSLEN=0;
8415   GNULIB_WCSNLEN=0;
8416   GNULIB_WCSCPY=0;
8417   GNULIB_WCPCPY=0;
8418   GNULIB_WCSNCPY=0;
8419   GNULIB_WCPNCPY=0;
8420   GNULIB_WCSCAT=0;
8421   GNULIB_WCSNCAT=0;
8422   GNULIB_WCSCMP=0;
8423   GNULIB_WCSNCMP=0;
8424   GNULIB_WCSCASECMP=0;
8425   GNULIB_WCSNCASECMP=0;
8426   GNULIB_WCSCOLL=0;
8427   GNULIB_WCSXFRM=0;
8428   GNULIB_WCSDUP=0;
8429   GNULIB_WCSCHR=0;
8430   GNULIB_WCSRCHR=0;
8431   GNULIB_WCSCSPN=0;
8432   GNULIB_WCSSPN=0;
8433   GNULIB_WCSPBRK=0;
8434   GNULIB_WCSSTR=0;
8435   GNULIB_WCSTOK=0;
8436   GNULIB_WCSWIDTH=0;
8437     HAVE_BTOWC=1;
8438   HAVE_MBSINIT=1;
8439   HAVE_MBRTOWC=1;
8440   HAVE_MBRLEN=1;
8441   HAVE_MBSRTOWCS=1;
8442   HAVE_MBSNRTOWCS=1;
8443   HAVE_WCRTOMB=1;
8444   HAVE_WCSRTOMBS=1;
8445   HAVE_WCSNRTOMBS=1;
8446   HAVE_WMEMCHR=1;
8447   HAVE_WMEMCMP=1;
8448   HAVE_WMEMCPY=1;
8449   HAVE_WMEMMOVE=1;
8450   HAVE_WMEMSET=1;
8451   HAVE_WCSLEN=1;
8452   HAVE_WCSNLEN=1;
8453   HAVE_WCSCPY=1;
8454   HAVE_WCPCPY=1;
8455   HAVE_WCSNCPY=1;
8456   HAVE_WCPNCPY=1;
8457   HAVE_WCSCAT=1;
8458   HAVE_WCSNCAT=1;
8459   HAVE_WCSCMP=1;
8460   HAVE_WCSNCMP=1;
8461   HAVE_WCSCASECMP=1;
8462   HAVE_WCSNCASECMP=1;
8463   HAVE_WCSCOLL=1;
8464   HAVE_WCSXFRM=1;
8465   HAVE_WCSDUP=1;
8466   HAVE_WCSCHR=1;
8467   HAVE_WCSRCHR=1;
8468   HAVE_WCSCSPN=1;
8469   HAVE_WCSSPN=1;
8470   HAVE_WCSPBRK=1;
8471   HAVE_WCSSTR=1;
8472   HAVE_WCSTOK=1;
8473   HAVE_WCSWIDTH=1;
8474   HAVE_DECL_WCTOB=1;
8475   HAVE_DECL_WCWIDTH=1;
8476   REPLACE_MBSTATE_T=0;
8477   REPLACE_BTOWC=0;
8478   REPLACE_WCTOB=0;
8479   REPLACE_MBSINIT=0;
8480   REPLACE_MBRTOWC=0;
8481   REPLACE_MBRLEN=0;
8482   REPLACE_MBSRTOWCS=0;
8483   REPLACE_MBSNRTOWCS=0;
8484   REPLACE_WCRTOMB=0;
8485   REPLACE_WCSRTOMBS=0;
8486   REPLACE_WCSNRTOMBS=0;
8487   REPLACE_WCWIDTH=0;
8488   REPLACE_WCSWIDTH=0;
8489
8490
8491
8492
8493
8494
8495
8496
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8498 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8499 if test "${gt_cv_locale_ja+set}" = set; then :
8500   $as_echo_n "(cached) " >&6
8501 else
8502
8503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h.  */
8505
8506 #include <locale.h>
8507 #include <time.h>
8508 #if HAVE_LANGINFO_CODESET
8509 # include <langinfo.h>
8510 #endif
8511 #include <stdlib.h>
8512 #include <string.h>
8513 struct tm t;
8514 char buf[16];
8515 int main ()
8516 {
8517   const char *p;
8518   /* Check whether the given locale name is recognized by the system.  */
8519 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8520   /* On native Windows, setlocale(category, "") looks at the system settings,
8521      not at the environment variables.  Also, when an encoding suffix such
8522      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8523      category of the locale to "C".  */
8524   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8525       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8526     return 1;
8527 #else
8528   if (setlocale (LC_ALL, "") == NULL) return 1;
8529 #endif
8530   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8531      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8532      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8533      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8534      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8535      some unit tests fail.
8536      On MirBSD 10, when an unsupported locale is specified, setlocale()
8537      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
8538 #if HAVE_LANGINFO_CODESET
8539   {
8540     const char *cs = nl_langinfo (CODESET);
8541     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8542         || strcmp (cs, "UTF-8") == 0)
8543       return 1;
8544   }
8545 #endif
8546 #ifdef __CYGWIN__
8547   /* On Cygwin, avoid locale names without encoding suffix, because the
8548      locale_charset() function relies on the encoding suffix.  Note that
8549      LC_ALL is set on the command line.  */
8550   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8551 #endif
8552   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
8553      on Cygwin 1.5.x.  */
8554   if (MB_CUR_MAX == 1)
8555     return 1;
8556   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8557      This excludes the UTF-8 encoding (except on MirBSD).  */
8558   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8559   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8560   for (p = buf; *p != '\0'; p++)
8561     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8562       return 1;
8563   return 0;
8564 }
8565
8566 _ACEOF
8567     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8568   (eval $ac_link) 2>&5
8569   ac_status=$?
8570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8571   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8572       case "$host_os" in
8573         # Handle native Windows specially, because there setlocale() interprets
8574         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8575         # "fr" or "fra" as "French" or "French_France.1252",
8576         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8577         # "ja" as "Japanese" or "Japanese_Japan.932",
8578         # and similar.
8579         mingw*)
8580           # Note that on native Windows, the Japanese locale is
8581           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8582           # cannot use it here.
8583           gt_cv_locale_ja=none
8584           ;;
8585         *)
8586           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8587           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8588           # configure script would override the LC_ALL setting. Likewise for
8589           # LC_CTYPE, which is also set at the beginning of the configure script.
8590           # Test for the AIX locale name.
8591           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8592             gt_cv_locale_ja=ja_JP
8593           else
8594             # Test for the locale name with explicit encoding suffix.
8595             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8596               gt_cv_locale_ja=ja_JP.EUC-JP
8597             else
8598               # Test for the HP-UX, OSF/1, NetBSD locale name.
8599               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8600                 gt_cv_locale_ja=ja_JP.eucJP
8601               else
8602                 # Test for the IRIX, FreeBSD locale name.
8603                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8604                   gt_cv_locale_ja=ja_JP.EUC
8605                 else
8606                   # Test for the Solaris 7 locale name.
8607                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8608                     gt_cv_locale_ja=ja
8609                   else
8610                     # Special test for NetBSD 1.6.
8611                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8612                       gt_cv_locale_ja=ja_JP.eucJP
8613                     else
8614                       # None found.
8615                       gt_cv_locale_ja=none
8616                     fi
8617                   fi
8618                 fi
8619               fi
8620             fi
8621           fi
8622           ;;
8623       esac
8624     fi
8625     rm -fr conftest*
8626
8627 fi
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8629 $as_echo "$gt_cv_locale_ja" >&6; }
8630   LOCALE_JA=$gt_cv_locale_ja
8631
8632
8633
8634
8635
8636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8637 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8638 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641
8642     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h.  */
8644
8645 #include <locale.h>
8646 #include <stdlib.h>
8647 #include <time.h>
8648 #if HAVE_LANGINFO_CODESET
8649 # include <langinfo.h>
8650 #endif
8651 #include <stdlib.h>
8652 #include <string.h>
8653 struct tm t;
8654 char buf[16];
8655 int main ()
8656 {
8657   const char *p;
8658   /* Check whether the given locale name is recognized by the system.  */
8659 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8660   /* On native Windows, setlocale(category, "") looks at the system settings,
8661      not at the environment variables.  Also, when an encoding suffix such
8662      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8663      category of the locale to "C".  */
8664   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8665       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8666     return 1;
8667 #else
8668   if (setlocale (LC_ALL, "") == NULL) return 1;
8669 #endif
8670   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8671      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8672      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8673      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8674      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8675      some unit tests fail.
8676      On MirBSD 10, when an unsupported locale is specified, setlocale()
8677      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
8678 #if HAVE_LANGINFO_CODESET
8679   {
8680     const char *cs = nl_langinfo (CODESET);
8681     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8682         || strcmp (cs, "UTF-8") == 0)
8683       return 1;
8684   }
8685 #endif
8686 #ifdef __CYGWIN__
8687   /* On Cygwin, avoid locale names without encoding suffix, because the
8688      locale_charset() function relies on the encoding suffix.  Note that
8689      LC_ALL is set on the command line.  */
8690   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8691 #endif
8692   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8693      This excludes the UTF-8 encoding (except on MirBSD).  */
8694   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8695   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8696   for (p = buf; *p != '\0'; p++)
8697     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8698       return 1;
8699   /* Check whether a typical GB18030 multibyte sequence is recognized as a
8700      single wide character.  This excludes the GB2312 and GBK encodings.  */
8701   if (mblen ("\203\062\332\066", 5) != 4)
8702     return 1;
8703   return 0;
8704 }
8705
8706 _ACEOF
8707     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8708   (eval $ac_link) 2>&5
8709   ac_status=$?
8710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8711   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8712       case "$host_os" in
8713         # Handle native Windows specially, because there setlocale() interprets
8714         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8715         # "fr" or "fra" as "French" or "French_France.1252",
8716         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8717         # "ja" as "Japanese" or "Japanese_Japan.932",
8718         # and similar.
8719         mingw*)
8720           # Test for the hypothetical native Windows locale name.
8721           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8722             gt_cv_locale_zh_CN=Chinese_China.54936
8723           else
8724             # None found.
8725             gt_cv_locale_zh_CN=none
8726           fi
8727           ;;
8728         solaris2.8)
8729           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8730           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8731           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8732           gt_cv_locale_zh_CN=none
8733           ;;
8734         *)
8735           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8736           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8737           # configure script would override the LC_ALL setting. Likewise for
8738           # LC_CTYPE, which is also set at the beginning of the configure script.
8739           # Test for the locale name without encoding suffix.
8740           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8741             gt_cv_locale_zh_CN=zh_CN
8742           else
8743             # Test for the locale name with explicit encoding suffix.
8744             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8745               gt_cv_locale_zh_CN=zh_CN.GB18030
8746             else
8747               # None found.
8748               gt_cv_locale_zh_CN=none
8749             fi
8750           fi
8751           ;;
8752       esac
8753     else
8754       # If there was a link error, due to mblen(), the system is so old that
8755       # it certainly doesn't have a chinese locale.
8756       gt_cv_locale_zh_CN=none
8757     fi
8758     rm -fr conftest*
8759
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8762 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8763   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8764
8765
8766
8767
8768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8769 $as_echo_n "checking for a french Unicode locale... " >&6; }
8770 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773
8774     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h.  */
8776
8777 #include <locale.h>
8778 #include <time.h>
8779 #if HAVE_LANGINFO_CODESET
8780 # include <langinfo.h>
8781 #endif
8782 #include <stdlib.h>
8783 #include <string.h>
8784 struct tm t;
8785 char buf[16];
8786 int main () {
8787   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
8788      imitates locale dependent behaviour by looking at the environment
8789      variables, and all locales use the UTF-8 encoding.  */
8790 #if !(defined __BEOS__ || defined __HAIKU__)
8791   /* Check whether the given locale name is recognized by the system.  */
8792 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8793   /* On native Windows, setlocale(category, "") looks at the system settings,
8794      not at the environment variables.  Also, when an encoding suffix such
8795      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8796      category of the locale to "C".  */
8797   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8798       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8799     return 1;
8800 # else
8801   if (setlocale (LC_ALL, "") == NULL) return 1;
8802 # endif
8803   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8804      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8805      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8806      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8807      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8808      some unit tests fail.  */
8809 # if HAVE_LANGINFO_CODESET
8810   {
8811     const char *cs = nl_langinfo (CODESET);
8812     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8813       return 1;
8814   }
8815 # endif
8816 # ifdef __CYGWIN__
8817   /* On Cygwin, avoid locale names without encoding suffix, because the
8818      locale_charset() function relies on the encoding suffix.  Note that
8819      LC_ALL is set on the command line.  */
8820   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8821 # endif
8822   /* Check whether in the abbreviation of the second month, the second
8823      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8824      two bytes long, with UTF-8 encoding.  */
8825   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8826   if (strftime (buf, sizeof (buf), "%b", &t) < 4
8827       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8828     return 1;
8829 #endif
8830 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
8831   /* Check whether the decimal separator is a comma.
8832      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8833      are nl_langinfo(RADIXCHAR) are both ".".  */
8834   if (localeconv () ->decimal_point[0] != ',') return 1;
8835 #endif
8836   return 0;
8837 }
8838
8839 _ACEOF
8840     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8841   (eval $ac_link) 2>&5
8842   ac_status=$?
8843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8844   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8845       case "$host_os" in
8846         # Handle native Windows specially, because there setlocale() interprets
8847         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8848         # "fr" or "fra" as "French" or "French_France.1252",
8849         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8850         # "ja" as "Japanese" or "Japanese_Japan.932",
8851         # and similar.
8852         mingw*)
8853           # Test for the hypothetical native Windows locale name.
8854           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8855             gt_cv_locale_fr_utf8=French_France.65001
8856           else
8857             # None found.
8858             gt_cv_locale_fr_utf8=none
8859           fi
8860           ;;
8861         *)
8862           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8863           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8864           # configure script would override the LC_ALL setting. Likewise for
8865           # LC_CTYPE, which is also set at the beginning of the configure script.
8866           # Test for the usual locale name.
8867           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8868             gt_cv_locale_fr_utf8=fr_FR
8869           else
8870             # Test for the locale name with explicit encoding suffix.
8871             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8872               gt_cv_locale_fr_utf8=fr_FR.UTF-8
8873             else
8874               # Test for the Solaris 7 locale name.
8875               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8876                 gt_cv_locale_fr_utf8=fr.UTF-8
8877               else
8878                 # None found.
8879                 gt_cv_locale_fr_utf8=none
8880               fi
8881             fi
8882           fi
8883           ;;
8884       esac
8885     fi
8886     rm -fr conftest*
8887
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8890 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8891   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8892
8893
8894
8895
8896
8897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8898 $as_echo_n "checking for a traditional french locale... " >&6; }
8899 if test "${gt_cv_locale_fr+set}" = set; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902
8903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h.  */
8905
8906 #include <locale.h>
8907 #include <time.h>
8908 #if HAVE_LANGINFO_CODESET
8909 # include <langinfo.h>
8910 #endif
8911 #include <stdlib.h>
8912 #include <string.h>
8913 struct tm t;
8914 char buf[16];
8915 int main () {
8916   /* Check whether the given locale name is recognized by the system.  */
8917 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8918   /* On native Windows, setlocale(category, "") looks at the system settings,
8919      not at the environment variables.  Also, when an encoding suffix such
8920      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8921      category of the locale to "C".  */
8922   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8923       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8924     return 1;
8925 #else
8926   if (setlocale (LC_ALL, "") == NULL) return 1;
8927 #endif
8928   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8929      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8930      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8931      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8932      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8933      some unit tests fail.
8934      On MirBSD 10, when an unsupported locale is specified, setlocale()
8935      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
8936 #if HAVE_LANGINFO_CODESET
8937   {
8938     const char *cs = nl_langinfo (CODESET);
8939     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8940         || strcmp (cs, "UTF-8") == 0)
8941       return 1;
8942   }
8943 #endif
8944 #ifdef __CYGWIN__
8945   /* On Cygwin, avoid locale names without encoding suffix, because the
8946      locale_charset() function relies on the encoding suffix.  Note that
8947      LC_ALL is set on the command line.  */
8948   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8949 #endif
8950   /* Check whether in the abbreviation of the second month, the second
8951      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8952      one byte long. This excludes the UTF-8 encoding.  */
8953   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8954   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8955 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
8956   /* Check whether the decimal separator is a comma.
8957      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8958      are nl_langinfo(RADIXCHAR) are both ".".  */
8959   if (localeconv () ->decimal_point[0] != ',') return 1;
8960 #endif
8961   return 0;
8962 }
8963
8964 _ACEOF
8965     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8966   (eval $ac_link) 2>&5
8967   ac_status=$?
8968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8969   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8970       case "$host_os" in
8971         # Handle native Windows specially, because there setlocale() interprets
8972         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8973         # "fr" or "fra" as "French" or "French_France.1252",
8974         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8975         # "ja" as "Japanese" or "Japanese_Japan.932",
8976         # and similar.
8977         mingw*)
8978           # Test for the native Windows locale name.
8979           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8980             gt_cv_locale_fr=French_France.1252
8981           else
8982             # None found.
8983             gt_cv_locale_fr=none
8984           fi
8985           ;;
8986         *)
8987           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8988           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8989           # configure script would override the LC_ALL setting. Likewise for
8990           # LC_CTYPE, which is also set at the beginning of the configure script.
8991           # Test for the usual locale name.
8992           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8993             gt_cv_locale_fr=fr_FR
8994           else
8995             # Test for the locale name with explicit encoding suffix.
8996             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8997               gt_cv_locale_fr=fr_FR.ISO-8859-1
8998             else
8999               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9000               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9001                 gt_cv_locale_fr=fr_FR.ISO8859-1
9002               else
9003                 # Test for the HP-UX locale name.
9004                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9005                   gt_cv_locale_fr=fr_FR.iso88591
9006                 else
9007                   # Test for the Solaris 7 locale name.
9008                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9009                     gt_cv_locale_fr=fr
9010                   else
9011                     # None found.
9012                     gt_cv_locale_fr=none
9013                   fi
9014                 fi
9015               fi
9016             fi
9017           fi
9018           ;;
9019       esac
9020     fi
9021     rm -fr conftest*
9022
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9025 $as_echo "$gt_cv_locale_fr" >&6; }
9026   LOCALE_FR=$gt_cv_locale_fr
9027
9028
9029
9030
9031
9032
9033
9034   GNULIB_FFSL=0;
9035   GNULIB_FFSLL=0;
9036   GNULIB_MEMCHR=0;
9037   GNULIB_MEMMEM=0;
9038   GNULIB_MEMPCPY=0;
9039   GNULIB_MEMRCHR=0;
9040   GNULIB_RAWMEMCHR=0;
9041   GNULIB_STPCPY=0;
9042   GNULIB_STPNCPY=0;
9043   GNULIB_STRCHRNUL=0;
9044   GNULIB_STRDUP=0;
9045   GNULIB_STRNCAT=0;
9046   GNULIB_STRNDUP=0;
9047   GNULIB_STRNLEN=0;
9048   GNULIB_STRPBRK=0;
9049   GNULIB_STRSEP=0;
9050   GNULIB_STRSTR=0;
9051   GNULIB_STRCASESTR=0;
9052   GNULIB_STRTOK_R=0;
9053   GNULIB_MBSLEN=0;
9054   GNULIB_MBSNLEN=0;
9055   GNULIB_MBSCHR=0;
9056   GNULIB_MBSRCHR=0;
9057   GNULIB_MBSSTR=0;
9058   GNULIB_MBSCASECMP=0;
9059   GNULIB_MBSNCASECMP=0;
9060   GNULIB_MBSPCASECMP=0;
9061   GNULIB_MBSCASESTR=0;
9062   GNULIB_MBSCSPN=0;
9063   GNULIB_MBSPBRK=0;
9064   GNULIB_MBSSPN=0;
9065   GNULIB_MBSSEP=0;
9066   GNULIB_MBSTOK_R=0;
9067   GNULIB_STRERROR=0;
9068   GNULIB_STRERROR_R=0;
9069   GNULIB_STRSIGNAL=0;
9070   GNULIB_STRVERSCMP=0;
9071   HAVE_MBSLEN=0;
9072     HAVE_FFSL=1;
9073   HAVE_FFSLL=1;
9074   HAVE_MEMCHR=1;
9075   HAVE_DECL_MEMMEM=1;
9076   HAVE_MEMPCPY=1;
9077   HAVE_DECL_MEMRCHR=1;
9078   HAVE_RAWMEMCHR=1;
9079   HAVE_STPCPY=1;
9080   HAVE_STPNCPY=1;
9081   HAVE_STRCHRNUL=1;
9082   HAVE_DECL_STRDUP=1;
9083   HAVE_DECL_STRNDUP=1;
9084   HAVE_DECL_STRNLEN=1;
9085   HAVE_STRPBRK=1;
9086   HAVE_STRSEP=1;
9087   HAVE_STRCASESTR=1;
9088   HAVE_DECL_STRTOK_R=1;
9089   HAVE_DECL_STRERROR_R=1;
9090   HAVE_DECL_STRSIGNAL=1;
9091   HAVE_STRVERSCMP=1;
9092   REPLACE_MEMCHR=0;
9093   REPLACE_MEMMEM=0;
9094   REPLACE_STPNCPY=0;
9095   REPLACE_STRDUP=0;
9096   REPLACE_STRSTR=0;
9097   REPLACE_STRCASESTR=0;
9098   REPLACE_STRCHRNUL=0;
9099   REPLACE_STRERROR=0;
9100   REPLACE_STRERROR_R=0;
9101   REPLACE_STRNCAT=0;
9102   REPLACE_STRNDUP=0;
9103   REPLACE_STRNLEN=0;
9104   REPLACE_STRSIGNAL=0;
9105   REPLACE_STRTOK_R=0;
9106   UNDEFINE_STRTOK_R=0;
9107
9108
9109
9110
9111
9112   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9113   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9114   # irrelevant for anonymous mappings.
9115   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9116 if test "x$ac_cv_func_mmap" = x""yes; then :
9117   gl_have_mmap=yes
9118 else
9119   gl_have_mmap=no
9120 fi
9121
9122
9123   # Try to allow MAP_ANONYMOUS.
9124   gl_have_mmap_anonymous=no
9125   if test $gl_have_mmap = yes; then
9126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9127 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h.  */
9130
9131 #include <sys/mman.h>
9132 #ifdef MAP_ANONYMOUS
9133     I cannot identify this map
9134 #endif
9135
9136 _ACEOF
9137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9138   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9139   gl_have_mmap_anonymous=yes
9140 fi
9141 rm -f conftest*
9142
9143     if test $gl_have_mmap_anonymous != yes; then
9144       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h.  */
9146
9147 #include <sys/mman.h>
9148 #ifdef MAP_ANON
9149     I cannot identify this map
9150 #endif
9151
9152 _ACEOF
9153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9154   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9155
9156 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9157
9158          gl_have_mmap_anonymous=yes
9159 fi
9160 rm -f conftest*
9161
9162     fi
9163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9164 $as_echo "$gl_have_mmap_anonymous" >&6; }
9165     if test $gl_have_mmap_anonymous = yes; then
9166
9167 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9168
9169     fi
9170   fi
9171
9172
9173
9174
9175
9176
9177   if test $HAVE_MEMCHR = 1; then
9178     # Detect platform-specific bugs in some versions of glibc:
9179     # memchr should not dereference anything with length 0
9180     #   http://bugzilla.redhat.com/499689
9181     # memchr should not dereference overestimated length after a match
9182     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9183     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9184     # Assume that memchr works on platforms that lack mprotect.
9185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9186 $as_echo_n "checking whether memchr works... " >&6; }
9187 if test "${gl_cv_func_memchr_works+set}" = set; then :
9188   $as_echo_n "(cached) " >&6
9189 else
9190   if test "$cross_compiling" = yes; then :
9191          gl_cv_func_memchr_works="guessing no"
9192 else
9193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h.  */
9195
9196 #include <string.h>
9197 #if HAVE_SYS_MMAN_H
9198 # include <fcntl.h>
9199 # include <unistd.h>
9200 # include <sys/types.h>
9201 # include <sys/mman.h>
9202 # ifndef MAP_FILE
9203 #  define MAP_FILE 0
9204 # endif
9205 #endif
9206
9207 int
9208 main ()
9209 {
9210
9211   int result = 0;
9212   char *fence = NULL;
9213 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9214 # if HAVE_MAP_ANONYMOUS
9215   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9216   const int fd = -1;
9217 # else /* !HAVE_MAP_ANONYMOUS */
9218   const int flags = MAP_FILE | MAP_PRIVATE;
9219   int fd = open ("/dev/zero", O_RDONLY, 0666);
9220   if (fd >= 0)
9221 # endif
9222     {
9223       int pagesize = getpagesize ();
9224       char *two_pages =
9225         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9226                        flags, fd, 0);
9227       if (two_pages != (char *)(-1)
9228           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9229         fence = two_pages + pagesize;
9230     }
9231 #endif
9232   if (fence)
9233     {
9234       if (memchr (fence, 0, 0))
9235         result |= 1;
9236       strcpy (fence - 9, "12345678");
9237       if (memchr (fence - 9, 0, 79) != fence - 1)
9238         result |= 2;
9239       if (memchr (fence - 1, 0, 3) != fence - 1)
9240         result |= 4;
9241     }
9242   return result;
9243
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248 if ac_fn_c_try_run "$LINENO"; then :
9249   gl_cv_func_memchr_works=yes
9250 else
9251   gl_cv_func_memchr_works=no
9252 fi
9253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9254   conftest.$ac_objext conftest.beam conftest.$ac_ext
9255 fi
9256
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9259 $as_echo "$gl_cv_func_memchr_works" >&6; }
9260     if test "$gl_cv_func_memchr_works" != yes; then
9261       REPLACE_MEMCHR=1
9262     fi
9263   fi
9264
9265 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9266 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9267   ac_have_decl=1
9268 else
9269   ac_have_decl=0
9270 fi
9271
9272 cat >>confdefs.h <<_ACEOF
9273 #define HAVE_DECL_MEMMEM $ac_have_decl
9274 _ACEOF
9275
9276
9277
9278
9279
9280   for ac_func in memmem
9281 do :
9282   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9283 if test "x$ac_cv_func_memmem" = x""yes; then :
9284   cat >>confdefs.h <<_ACEOF
9285 #define HAVE_MEMMEM 1
9286 _ACEOF
9287
9288 fi
9289 done
9290
9291   if test $ac_cv_func_memmem = yes; then
9292     HAVE_MEMMEM=1
9293   else
9294     HAVE_MEMMEM=0
9295   fi
9296
9297   if test $ac_cv_have_decl_memmem = no; then
9298     HAVE_DECL_MEMMEM=0
9299   else
9300             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9301 $as_echo_n "checking whether memmem works... " >&6; }
9302 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9303   $as_echo_n "(cached) " >&6
9304 else
9305   if test "$cross_compiling" = yes; then :
9306                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h.  */
9308
9309 #ifdef __GNU_LIBRARY__
9310  #include <features.h>
9311  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9312                           || __GLIBC_MINOR__ > 12)) \
9313       || (__GLIBC__ > 2)) \
9314      || defined __UCLIBC__
9315   Lucky user
9316  #endif
9317 #elif defined __CYGWIN__
9318  #include <cygwin/version.h>
9319  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9320   Lucky user
9321  #endif
9322 #else
9323   Lucky user
9324 #endif
9325
9326 _ACEOF
9327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9328   $EGREP "Lucky user" >/dev/null 2>&1; then :
9329   gl_cv_func_memmem_works_always="guessing yes"
9330 else
9331   gl_cv_func_memmem_works_always="guessing no"
9332 fi
9333 rm -f conftest*
9334
9335
9336 else
9337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h.  */
9339
9340 #include <string.h> /* for memmem */
9341 #define P "_EF_BF_BD"
9342 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9343 #define NEEDLE P P P P P
9344
9345 int
9346 main ()
9347 {
9348
9349     int result = 0;
9350     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9351       result |= 1;
9352     /* Check for empty needle behavior.  */
9353     {
9354       const char *haystack = "AAA";
9355       if (memmem (haystack, 3, NULL, 0) != haystack)
9356         result |= 2;
9357     }
9358     return result;
9359
9360   ;
9361   return 0;
9362 }
9363 _ACEOF
9364 if ac_fn_c_try_run "$LINENO"; then :
9365   gl_cv_func_memmem_works_always=yes
9366 else
9367   gl_cv_func_memmem_works_always=no
9368 fi
9369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9370   conftest.$ac_objext conftest.beam conftest.$ac_ext
9371 fi
9372
9373
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9376 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9377     case "$gl_cv_func_memmem_works_always" in
9378       *yes) ;;
9379       *)
9380         REPLACE_MEMMEM=1
9381         ;;
9382     esac
9383   fi
9384   :
9385
9386
9387
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9389 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9390 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9391   $as_echo_n "(cached) " >&6
9392 else
9393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h.  */
9395
9396              #include <stdbool.h>
9397              #ifndef bool
9398               "error: bool is not defined"
9399              #endif
9400              #ifndef false
9401               "error: false is not defined"
9402              #endif
9403              #if false
9404               "error: false is not 0"
9405              #endif
9406              #ifndef true
9407               "error: true is not defined"
9408              #endif
9409              #if true != 1
9410               "error: true is not 1"
9411              #endif
9412              #ifndef __bool_true_false_are_defined
9413               "error: __bool_true_false_are_defined is not defined"
9414              #endif
9415
9416              struct s { _Bool s: 1; _Bool t; } s;
9417
9418              char a[true == 1 ? 1 : -1];
9419              char b[false == 0 ? 1 : -1];
9420              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9421              char d[(bool) 0.5 == true ? 1 : -1];
9422              /* See body of main program for 'e'.  */
9423              char f[(_Bool) 0.0 == false ? 1 : -1];
9424              char g[true];
9425              char h[sizeof (_Bool)];
9426              char i[sizeof s.t];
9427              enum { j = false, k = true, l = false * true, m = true * 256 };
9428              /* The following fails for
9429                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9430              _Bool n[m];
9431              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9432              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9433              /* Catch a bug in an HP-UX C compiler.  See
9434                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9435                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9436               */
9437              _Bool q = true;
9438              _Bool *pq = &q;
9439
9440 int
9441 main ()
9442 {
9443
9444              bool e = &s;
9445              *pq |= q;
9446              *pq |= ! q;
9447              /* Refer to every declared value, to avoid compiler optimizations.  */
9448              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9449                      + !m + !n + !o + !p + !q + !pq);
9450
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 if ac_fn_c_try_compile "$LINENO"; then :
9456   ac_cv_header_stdbool_h=yes
9457 else
9458   ac_cv_header_stdbool_h=no
9459 fi
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461 fi
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9463 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9464    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9465 if test "x$ac_cv_type__Bool" = x""yes; then :
9466
9467 cat >>confdefs.h <<_ACEOF
9468 #define HAVE__BOOL 1
9469 _ACEOF
9470
9471
9472 fi
9473
9474
9475
9476     REPLACE_NULL=0;
9477   HAVE_WCHAR_T=1;
9478
9479
9480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9481 $as_echo_n "checking for wchar_t... " >&6; }
9482 if test "${gt_cv_c_wchar_t+set}" = set; then :
9483   $as_echo_n "(cached) " >&6
9484 else
9485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h.  */
9487 #include <stddef.h>
9488             wchar_t foo = (wchar_t)'\0';
9489 int
9490 main ()
9491 {
9492
9493   ;
9494   return 0;
9495 }
9496 _ACEOF
9497 if ac_fn_c_try_compile "$LINENO"; then :
9498   gt_cv_c_wchar_t=yes
9499 else
9500   gt_cv_c_wchar_t=no
9501 fi
9502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9503 fi
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9505 $as_echo "$gt_cv_c_wchar_t" >&6; }
9506   if test $gt_cv_c_wchar_t = yes; then
9507
9508 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9509
9510   fi
9511
9512
9513      REPLACE_STRERROR_0=0
9514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
9515 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
9516 if test "${gl_cv_func_strerror_0_works+set}" = set; then :
9517   $as_echo_n "(cached) " >&6
9518 else
9519   if test "$cross_compiling" = yes; then :
9520   case "$host_os" in
9521                  # Guess yes on glibc systems.
9522          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
9523                  # If we don't know, assume the worst.
9524          *)      gl_cv_func_strerror_0_works="guessing no" ;;
9525        esac
9526
9527 else
9528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h.  */
9530 #include <string.h>
9531            #include <errno.h>
9532
9533 int
9534 main ()
9535 {
9536 int result = 0;
9537            char *str;
9538            errno = 0;
9539            str = strerror (0);
9540            if (!*str) result |= 1;
9541            if (errno) result |= 2;
9542            if (strstr (str, "nknown") || strstr (str, "ndefined"))
9543              result |= 4;
9544            return result;
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_run "$LINENO"; then :
9550   gl_cv_func_strerror_0_works=yes
9551 else
9552   gl_cv_func_strerror_0_works=no
9553 fi
9554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9555   conftest.$ac_objext conftest.beam conftest.$ac_ext
9556 fi
9557
9558
9559 fi
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
9561 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
9562   case "$gl_cv_func_strerror_0_works" in
9563     *yes) ;;
9564     *)
9565       REPLACE_STRERROR_0=1
9566
9567 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
9568
9569       ;;
9570   esac
9571
9572
9573   GNULIB_CHDIR=0;
9574   GNULIB_CHOWN=0;
9575   GNULIB_CLOSE=0;
9576   GNULIB_DUP=0;
9577   GNULIB_DUP2=0;
9578   GNULIB_DUP3=0;
9579   GNULIB_ENVIRON=0;
9580   GNULIB_EUIDACCESS=0;
9581   GNULIB_FACCESSAT=0;
9582   GNULIB_FCHDIR=0;
9583   GNULIB_FCHOWNAT=0;
9584   GNULIB_FDATASYNC=0;
9585   GNULIB_FSYNC=0;
9586   GNULIB_FTRUNCATE=0;
9587   GNULIB_GETCWD=0;
9588   GNULIB_GETDOMAINNAME=0;
9589   GNULIB_GETDTABLESIZE=0;
9590   GNULIB_GETGROUPS=0;
9591   GNULIB_GETHOSTNAME=0;
9592   GNULIB_GETLOGIN=0;
9593   GNULIB_GETLOGIN_R=0;
9594   GNULIB_GETPAGESIZE=0;
9595   GNULIB_GETUSERSHELL=0;
9596   GNULIB_GROUP_MEMBER=0;
9597   GNULIB_ISATTY=0;
9598   GNULIB_LCHOWN=0;
9599   GNULIB_LINK=0;
9600   GNULIB_LINKAT=0;
9601   GNULIB_LSEEK=0;
9602   GNULIB_PIPE=0;
9603   GNULIB_PIPE2=0;
9604   GNULIB_PREAD=0;
9605   GNULIB_PWRITE=0;
9606   GNULIB_READ=0;
9607   GNULIB_READLINK=0;
9608   GNULIB_READLINKAT=0;
9609   GNULIB_RMDIR=0;
9610   GNULIB_SETHOSTNAME=0;
9611   GNULIB_SLEEP=0;
9612   GNULIB_SYMLINK=0;
9613   GNULIB_SYMLINKAT=0;
9614   GNULIB_TTYNAME_R=0;
9615   GNULIB_UNISTD_H_NONBLOCKING=0;
9616   GNULIB_UNISTD_H_SIGPIPE=0;
9617   GNULIB_UNLINK=0;
9618   GNULIB_UNLINKAT=0;
9619   GNULIB_USLEEP=0;
9620   GNULIB_WRITE=0;
9621     HAVE_CHOWN=1;
9622   HAVE_DUP2=1;
9623   HAVE_DUP3=1;
9624   HAVE_EUIDACCESS=1;
9625   HAVE_FACCESSAT=1;
9626   HAVE_FCHDIR=1;
9627   HAVE_FCHOWNAT=1;
9628   HAVE_FDATASYNC=1;
9629   HAVE_FSYNC=1;
9630   HAVE_FTRUNCATE=1;
9631   HAVE_GETDTABLESIZE=1;
9632   HAVE_GETGROUPS=1;
9633   HAVE_GETHOSTNAME=1;
9634   HAVE_GETLOGIN=1;
9635   HAVE_GETPAGESIZE=1;
9636   HAVE_GROUP_MEMBER=1;
9637   HAVE_LCHOWN=1;
9638   HAVE_LINK=1;
9639   HAVE_LINKAT=1;
9640   HAVE_PIPE=1;
9641   HAVE_PIPE2=1;
9642   HAVE_PREAD=1;
9643   HAVE_PWRITE=1;
9644   HAVE_READLINK=1;
9645   HAVE_READLINKAT=1;
9646   HAVE_SETHOSTNAME=1;
9647   HAVE_SLEEP=1;
9648   HAVE_SYMLINK=1;
9649   HAVE_SYMLINKAT=1;
9650   HAVE_UNLINKAT=1;
9651   HAVE_USLEEP=1;
9652   HAVE_DECL_ENVIRON=1;
9653   HAVE_DECL_FCHDIR=1;
9654   HAVE_DECL_FDATASYNC=1;
9655   HAVE_DECL_GETDOMAINNAME=1;
9656   HAVE_DECL_GETLOGIN_R=1;
9657   HAVE_DECL_GETPAGESIZE=1;
9658   HAVE_DECL_GETUSERSHELL=1;
9659   HAVE_DECL_SETHOSTNAME=1;
9660   HAVE_DECL_TTYNAME_R=1;
9661   HAVE_OS_H=0;
9662   HAVE_SYS_PARAM_H=0;
9663   REPLACE_CHOWN=0;
9664   REPLACE_CLOSE=0;
9665   REPLACE_DUP=0;
9666   REPLACE_DUP2=0;
9667   REPLACE_FCHOWNAT=0;
9668   REPLACE_FTRUNCATE=0;
9669   REPLACE_GETCWD=0;
9670   REPLACE_GETDOMAINNAME=0;
9671   REPLACE_GETLOGIN_R=0;
9672   REPLACE_GETGROUPS=0;
9673   REPLACE_GETPAGESIZE=0;
9674   REPLACE_ISATTY=0;
9675   REPLACE_LCHOWN=0;
9676   REPLACE_LINK=0;
9677   REPLACE_LINKAT=0;
9678   REPLACE_LSEEK=0;
9679   REPLACE_PREAD=0;
9680   REPLACE_PWRITE=0;
9681   REPLACE_READ=0;
9682   REPLACE_READLINK=0;
9683   REPLACE_RMDIR=0;
9684   REPLACE_SLEEP=0;
9685   REPLACE_SYMLINK=0;
9686   REPLACE_TTYNAME_R=0;
9687   REPLACE_UNLINK=0;
9688   REPLACE_UNLINKAT=0;
9689   REPLACE_USLEEP=0;
9690   REPLACE_WRITE=0;
9691   UNISTD_H_HAVE_WINSOCK2_H=0;
9692   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9693
9694
9695
9696
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9698 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9699 if test "${ac_cv_c_restrict+set}" = set; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   ac_cv_c_restrict=no
9703    # The order here caters to the fact that C++ does not require restrict.
9704    for ac_kw in __restrict __restrict__ _Restrict restrict; do
9705      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h.  */
9707 typedef int * int_ptr;
9708         int foo (int_ptr $ac_kw ip) {
9709         return ip[0];
9710        }
9711 int
9712 main ()
9713 {
9714 int s[1];
9715         int * $ac_kw t = s;
9716         t[0] = 0;
9717         return foo(t)
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723   ac_cv_c_restrict=$ac_kw
9724 fi
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726      test "$ac_cv_c_restrict" != no && break
9727    done
9728
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9731 $as_echo "$ac_cv_c_restrict" >&6; }
9732
9733  case $ac_cv_c_restrict in
9734    restrict) ;;
9735    no) $as_echo "#define restrict /**/" >>confdefs.h
9736  ;;
9737    *)  cat >>confdefs.h <<_ACEOF
9738 #define restrict $ac_cv_c_restrict
9739 _ACEOF
9740  ;;
9741  esac
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754      if test $gl_cv_have_include_next = yes; then
9755        gl_cv_next_string_h='<'string.h'>'
9756      else
9757        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9758 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9759 if test "${gl_cv_next_string_h+set}" = set; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762
9763                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h.  */
9765 #include <string.h>
9766
9767 _ACEOF
9768                                                                                                                         case "$host_os" in
9769                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
9770                  *)    gl_absname_cpp="$ac_cpp" ;;
9771                esac
9772
9773                case "$host_os" in
9774                  mingw*)
9775                                                                                                                                      gl_dirsep_regex='[/\\]'
9776                    ;;
9777                  *)
9778                    gl_dirsep_regex='\/'
9779                    ;;
9780                esac
9781                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9782
9783                gl_header_literal_regex=`echo 'string.h' \
9784                                         | sed -e "$gl_make_literal_regex_sed"`
9785                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9786                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9787                    s|^/[^/]|//&|
9788                    p
9789                    q
9790                  }'
9791                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9792                       sed -n "$gl_absolute_header_sed"`'"'
9793
9794
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9797 $as_echo "$gl_cv_next_string_h" >&6; }
9798      fi
9799      NEXT_STRING_H=$gl_cv_next_string_h
9800
9801      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9802        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9803        gl_next_as_first_directive='<'string.h'>'
9804      else
9805        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9806        gl_next_as_first_directive=$gl_cv_next_string_h
9807      fi
9808      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9809
9810
9811
9812
9813
9814
9815     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
9816     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9818 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9819 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9820   $as_echo_n "(cached) " >&6
9821 else
9822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h.  */
9824 #include <string.h>
9825
9826 int
9827 main ()
9828 {
9829 #undef $gl_func
9830   (void) $gl_func;
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 if ac_fn_c_try_compile "$LINENO"; then :
9836   eval "$as_gl_Symbol=yes"
9837 else
9838   eval "$as_gl_Symbol=no"
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841 fi
9842 eval ac_res=\$$as_gl_Symbol
9843                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9844 $as_echo "$ac_res" >&6; }
9845     eval as_val=\$$as_gl_Symbol
9846    if test "x$as_val" = x""yes; then :
9847   cat >>confdefs.h <<_ACEOF
9848 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9849 _ACEOF
9850
9851                      eval ac_cv_have_decl_$gl_func=yes
9852 fi
9853       done
9854
9855
9856
9857
9858
9859   if test "$gl_cv_func_memchr_works" != yes; then
9860     REPLACE_STRSTR=1
9861   else
9862         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9863 $as_echo_n "checking whether strstr works... " >&6; }
9864 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9865   $as_echo_n "(cached) " >&6
9866 else
9867   if test "$cross_compiling" = yes; then :
9868                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h.  */
9870
9871 #ifdef __GNU_LIBRARY__
9872  #include <features.h>
9873  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9874      || defined __UCLIBC__
9875   Lucky user
9876  #endif
9877 #elif defined __CYGWIN__
9878  #include <cygwin/version.h>
9879  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9880   Lucky user
9881  #endif
9882 #else
9883   Lucky user
9884 #endif
9885
9886 _ACEOF
9887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9888   $EGREP "Lucky user" >/dev/null 2>&1; then :
9889   gl_cv_func_strstr_works_always="guessing yes"
9890 else
9891   gl_cv_func_strstr_works_always="guessing no"
9892 fi
9893 rm -f conftest*
9894
9895
9896 else
9897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h.  */
9899
9900 #include <string.h> /* for strstr */
9901 #define P "_EF_BF_BD"
9902 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9903 #define NEEDLE P P P P P
9904
9905 int
9906 main ()
9907 {
9908 return !!strstr (HAYSTACK, NEEDLE);
9909
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 if ac_fn_c_try_run "$LINENO"; then :
9915   gl_cv_func_strstr_works_always=yes
9916 else
9917   gl_cv_func_strstr_works_always=no
9918 fi
9919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9920   conftest.$ac_objext conftest.beam conftest.$ac_ext
9921 fi
9922
9923
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
9926 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
9927     case "$gl_cv_func_strstr_works_always" in
9928       *yes) ;;
9929       *)
9930         REPLACE_STRSTR=1
9931         ;;
9932     esac
9933   fi
9934
9935
9936
9937 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9938 if test "x$ac_cv_type_pid_t" = x""yes; then :
9939
9940 else
9941
9942 cat >>confdefs.h <<_ACEOF
9943 #define pid_t int
9944 _ACEOF
9945
9946 fi
9947
9948 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9949 if test "x$ac_cv_type_mode_t" = x""yes; then :
9950
9951 else
9952
9953 cat >>confdefs.h <<_ACEOF
9954 #define mode_t int
9955 _ACEOF
9956
9957 fi
9958
9959
9960
9961     WINDOWS_64_BIT_OFF_T=0
9962
9963
9964
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9966 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9967 if test -z "$MKDIR_P"; then
9968   if test "${ac_cv_path_mkdir+set}" = set; then :
9969   $as_echo_n "(cached) " >&6
9970 else
9971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9973 do
9974   IFS=$as_save_IFS
9975   test -z "$as_dir" && as_dir=.
9976     for ac_prog in mkdir gmkdir; do
9977          for ac_exec_ext in '' $ac_executable_extensions; do
9978            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9979            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9980              'mkdir (GNU coreutils) '* | \
9981              'mkdir (coreutils) '* | \
9982              'mkdir (fileutils) '4.1*)
9983                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9984                break 3;;
9985            esac
9986          done
9987        done
9988   done
9989 IFS=$as_save_IFS
9990
9991 fi
9992
9993   if test "${ac_cv_path_mkdir+set}" = set; then
9994     MKDIR_P="$ac_cv_path_mkdir -p"
9995   else
9996     # As a last resort, use the slow shell script.  Don't cache a
9997     # value for MKDIR_P within a source directory, because that will
9998     # break other packages using the cache if that directory is
9999     # removed, or if the value is a relative name.
10000     test -d ./--version && rmdir ./--version
10001     MKDIR_P="$ac_install_sh -d"
10002   fi
10003 fi
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10005 $as_echo "$MKDIR_P" >&6; }
10006
10007
10008             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10009 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10010 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   gl_cv_header_wchar_h_correct_inline=yes
10014      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h.  */
10016
10017        #define wcstod renamed_wcstod
10018 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10019    <wchar.h>.
10020    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10021    included before <wchar.h>.  */
10022 #include <stddef.h>
10023 #include <stdio.h>
10024 #include <time.h>
10025 #include <wchar.h>
10026 extern int zero (void);
10027 int main () { return zero(); }
10028
10029 _ACEOF
10030      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10031   (eval $ac_compile) 2>&5
10032   ac_status=$?
10033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10034   test $ac_status = 0; }; then
10035        mv conftest.$ac_objext conftest1.$ac_objext
10036        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h.  */
10038
10039          #define wcstod renamed_wcstod
10040 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10041    <wchar.h>.
10042    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10043    included before <wchar.h>.  */
10044 #include <stddef.h>
10045 #include <stdio.h>
10046 #include <time.h>
10047 #include <wchar.h>
10048 int zero (void) { return 0; }
10049
10050 _ACEOF
10051        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10052   (eval $ac_compile) 2>&5
10053   ac_status=$?
10054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10055   test $ac_status = 0; }; then
10056          mv conftest.$ac_objext conftest2.$ac_objext
10057          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10058            :
10059          else
10060            gl_cv_header_wchar_h_correct_inline=no
10061          fi
10062        fi
10063      fi
10064      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10065
10066 fi
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10068 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10069   if test $gl_cv_header_wchar_h_correct_inline = no; then
10070     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10071 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10072 C99 mode. You have four options:
10073   - Add the flag -fgnu89-inline to CC and reconfigure, or
10074   - Fix your include files, using parts of
10075     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10076   - Use a gcc version older than 4.3, or
10077   - Don't use the flags -std=c99 or -std=gnu99.
10078 Configuration aborted." "$LINENO" 5
10079   fi
10080
10081
10082
10083
10084
10085   if test $ac_cv_header_features_h = yes; then
10086     HAVE_FEATURES_H=1
10087   else
10088     HAVE_FEATURES_H=0
10089   fi
10090
10091
10092
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10094 $as_echo_n "checking for wint_t... " >&6; }
10095 if test "${gt_cv_c_wint_t+set}" = set; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h.  */
10100
10101 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10102    <wchar.h>.
10103    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10104    before <wchar.h>.  */
10105 #include <stddef.h>
10106 #include <stdio.h>
10107 #include <time.h>
10108 #include <wchar.h>
10109             wint_t foo = (wchar_t)'\0';
10110 int
10111 main ()
10112 {
10113
10114   ;
10115   return 0;
10116 }
10117 _ACEOF
10118 if ac_fn_c_try_compile "$LINENO"; then :
10119   gt_cv_c_wint_t=yes
10120 else
10121   gt_cv_c_wint_t=no
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10124 fi
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10126 $as_echo "$gt_cv_c_wint_t" >&6; }
10127   if test $gt_cv_c_wint_t = yes; then
10128
10129 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10130
10131   fi
10132
10133
10134   GNULIB_ISWBLANK=0;
10135   GNULIB_WCTYPE=0;
10136   GNULIB_ISWCTYPE=0;
10137   GNULIB_WCTRANS=0;
10138   GNULIB_TOWCTRANS=0;
10139     HAVE_ISWBLANK=1;
10140   HAVE_WCTYPE_T=1;
10141   HAVE_WCTRANS_T=1;
10142   REPLACE_ISWBLANK=0;
10143
10144
10145
10146
10147    if false; then
10148   GL_COND_LIBTOOL_TRUE=
10149   GL_COND_LIBTOOL_FALSE='#'
10150 else
10151   GL_COND_LIBTOOL_TRUE='#'
10152   GL_COND_LIBTOOL_FALSE=
10153 fi
10154
10155   gl_cond_libtool=false
10156   gl_libdeps=
10157   gl_ltlibdeps=
10158   gl_m4_base='import/m4'
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168   gl_source_base='import'
10169
10170
10171   if test $ac_cv_func_alloca_works = no; then
10172     :
10173   fi
10174
10175   # Define an additional variable used in the Makefile substitution.
10176   if test $ac_cv_working_alloca_h = yes; then
10177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10178 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10179 if test "${gl_cv_rpl_alloca+set}" = set; then :
10180   $as_echo_n "(cached) " >&6
10181 else
10182
10183       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h.  */
10185
10186 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10187         Need own alloca
10188 #endif
10189
10190 _ACEOF
10191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10192   $EGREP "Need own alloca" >/dev/null 2>&1; then :
10193   gl_cv_rpl_alloca=yes
10194 else
10195   gl_cv_rpl_alloca=no
10196 fi
10197 rm -f conftest*
10198
10199
10200 fi
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10202 $as_echo "$gl_cv_rpl_alloca" >&6; }
10203     if test $gl_cv_rpl_alloca = yes; then
10204
10205 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10206
10207       ALLOCA_H=alloca.h
10208     else
10209                   ALLOCA_H=
10210     fi
10211   else
10212     ALLOCA_H=alloca.h
10213   fi
10214
10215    if test -n "$ALLOCA_H"; then
10216   GL_GENERATE_ALLOCA_H_TRUE=
10217   GL_GENERATE_ALLOCA_H_FALSE='#'
10218 else
10219   GL_GENERATE_ALLOCA_H_TRUE='#'
10220   GL_GENERATE_ALLOCA_H_FALSE=
10221 fi
10222
10223
10224
10225           if test "x$datarootdir" = x; then
10226     datarootdir='${datadir}'
10227
10228   fi
10229     if test "x$docdir" = x; then
10230     docdir='${datarootdir}/doc/${PACKAGE}'
10231
10232   fi
10233     if test "x$htmldir" = x; then
10234     htmldir='${docdir}'
10235
10236   fi
10237   if test "x$dvidir" = x; then
10238     dvidir='${docdir}'
10239
10240   fi
10241   if test "x$pdfdir" = x; then
10242     pdfdir='${docdir}'
10243
10244   fi
10245   if test "x$psdir" = x; then
10246     psdir='${docdir}'
10247
10248   fi
10249   if test "x$lispdir" = x; then
10250     lispdir='${datarootdir}/emacs/site-lisp'
10251
10252   fi
10253   if test "x$localedir" = x; then
10254     localedir='${datarootdir}/locale'
10255
10256   fi
10257
10258       pkglibexecdir='${libexecdir}/${PACKAGE}'
10259
10260
10261
10262
10263
10264
10265
10266   FLOAT_H=
10267   REPLACE_FLOAT_LDBL=0
10268   case "$host_os" in
10269     aix* | beos* | openbsd* | mirbsd* | irix*)
10270       FLOAT_H=float.h
10271       ;;
10272     freebsd*)
10273       case "$host_cpu" in
10274         i[34567]86 )
10275           FLOAT_H=float.h
10276           ;;
10277         x86_64 )
10278           # On x86_64 systems, the C compiler may still be generating
10279           # 32-bit code.
10280           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h.  */
10282 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
10283              yes
10284              #endif
10285 _ACEOF
10286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10287   $EGREP "yes" >/dev/null 2>&1; then :
10288
10289 else
10290   FLOAT_H=float.h
10291 fi
10292 rm -f conftest*
10293
10294           ;;
10295       esac
10296       ;;
10297     linux*)
10298       case "$host_cpu" in
10299         powerpc*)
10300           FLOAT_H=float.h
10301           ;;
10302       esac
10303       ;;
10304   esac
10305   case "$host_os" in
10306     aix* | freebsd* | linux*)
10307       if test -n "$FLOAT_H"; then
10308         REPLACE_FLOAT_LDBL=1
10309       fi
10310       ;;
10311   esac
10312
10313     REPLACE_ITOLD=0
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10315 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10316 if test "${gl_cv_func_itold_works+set}" = set; then :
10317   $as_echo_n "(cached) " >&6
10318 else
10319
10320       if test "$cross_compiling" = yes; then :
10321   case "$host" in
10322            sparc*-*-linux*)
10323              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h.  */
10325 #if defined __LP64__ || defined __arch64__
10326                 yes
10327                 #endif
10328 _ACEOF
10329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10330   $EGREP "yes" >/dev/null 2>&1; then :
10331   gl_cv_func_itold_works="guessing no"
10332 else
10333   gl_cv_func_itold_works="guessing yes"
10334 fi
10335 rm -f conftest*
10336
10337              ;;
10338            *) gl_cv_func_itold_works="guessing yes" ;;
10339          esac
10340
10341 else
10342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h.  */
10344
10345 int i = -1;
10346 volatile long double ld;
10347 int main ()
10348 {
10349   ld += i * 1.0L;
10350   if (ld > 0)
10351     return 1;
10352   return 0;
10353 }
10354 _ACEOF
10355 if ac_fn_c_try_run "$LINENO"; then :
10356   gl_cv_func_itold_works=yes
10357 else
10358   gl_cv_func_itold_works=no
10359 fi
10360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10361   conftest.$ac_objext conftest.beam conftest.$ac_ext
10362 fi
10363
10364
10365 fi
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10367 $as_echo "$gl_cv_func_itold_works" >&6; }
10368   case "$gl_cv_func_itold_works" in
10369     *no)
10370       REPLACE_ITOLD=1
10371                   FLOAT_H=float.h
10372       ;;
10373   esac
10374
10375   if test -n "$FLOAT_H"; then
10376
10377
10378
10379
10380
10381
10382
10383
10384      if test $gl_cv_have_include_next = yes; then
10385        gl_cv_next_float_h='<'float.h'>'
10386      else
10387        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10388 $as_echo_n "checking absolute name of <float.h>... " >&6; }
10389 if test "${gl_cv_next_float_h+set}" = set; then :
10390   $as_echo_n "(cached) " >&6
10391 else
10392
10393                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h.  */
10395 #include <float.h>
10396
10397 _ACEOF
10398                                                                                                                         case "$host_os" in
10399                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
10400                  *)    gl_absname_cpp="$ac_cpp" ;;
10401                esac
10402
10403                case "$host_os" in
10404                  mingw*)
10405                                                                                                                                      gl_dirsep_regex='[/\\]'
10406                    ;;
10407                  *)
10408                    gl_dirsep_regex='\/'
10409                    ;;
10410                esac
10411                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10412
10413                gl_header_literal_regex=`echo 'float.h' \
10414                                         | sed -e "$gl_make_literal_regex_sed"`
10415                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10416                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10417                    s|^/[^/]|//&|
10418                    p
10419                    q
10420                  }'
10421                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10422                       sed -n "$gl_absolute_header_sed"`'"'
10423
10424
10425 fi
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
10427 $as_echo "$gl_cv_next_float_h" >&6; }
10428      fi
10429      NEXT_FLOAT_H=$gl_cv_next_float_h
10430
10431      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10432        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10433        gl_next_as_first_directive='<'float.h'>'
10434      else
10435        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10436        gl_next_as_first_directive=$gl_cv_next_float_h
10437      fi
10438      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
10439
10440
10441
10442
10443   fi
10444
10445    if test -n "$FLOAT_H"; then
10446   GL_GENERATE_FLOAT_H_TRUE=
10447   GL_GENERATE_FLOAT_H_FALSE='#'
10448 else
10449   GL_GENERATE_FLOAT_H_TRUE='#'
10450   GL_GENERATE_FLOAT_H_FALSE=
10451 fi
10452
10453
10454
10455   if test $REPLACE_FLOAT_LDBL = 1; then
10456
10457
10458
10459
10460
10461
10462
10463
10464   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
10465
10466   fi
10467   if test $REPLACE_ITOLD = 1; then
10468
10469
10470
10471
10472
10473
10474
10475
10476   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
10477
10478   fi
10479
10480
10481
10482
10483
10484   FNMATCH_H=
10485   gl_fnmatch_required_lowercase=`
10486     echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
10487   `
10488   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
10489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
10490 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
10491 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
10492   $as_echo_n "(cached) " >&6
10493 else
10494                            if test $gl_fnmatch_required = GNU; then
10495        gl_fnmatch_gnu_start=
10496        gl_fnmatch_gnu_end=
10497      else
10498        gl_fnmatch_gnu_start='#if 0'
10499        gl_fnmatch_gnu_end='#endif'
10500      fi
10501      if test "$cross_compiling" = yes; then :
10502   eval "$gl_fnmatch_cache_var=\"guessing no\""
10503 else
10504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h.  */
10506 #include <fnmatch.h>
10507             static int
10508             y (char const *pattern, char const *string, int flags)
10509             {
10510               return fnmatch (pattern, string, flags) == 0;
10511             }
10512             static int
10513             n (char const *pattern, char const *string, int flags)
10514             {
10515               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
10516             }
10517
10518 int
10519 main ()
10520 {
10521 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
10522             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
10523             static char const A_1[] = { 'A' - 1, 0 };
10524             static char const A01[] = { 'A' + 1, 0 };
10525             static char const a_1[] = { 'a' - 1, 0 };
10526             static char const a01[] = { 'a' + 1, 0 };
10527             static char const bs_1[] = { '\\\\' - 1, 0 };
10528             static char const bs01[] = { '\\\\' + 1, 0 };
10529             int result = 0;
10530             if (!n ("a*", "", 0))
10531               return 1;
10532             if (!y ("a*", "abc", 0))
10533               return 1;
10534             if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
10535               return 1;
10536             if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10537               return 2;
10538             if (!y ("a\\\\bc", "abc", 0))
10539               return 3;
10540             if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10541               return 3;
10542             if (!y ("*x", ".x", 0))
10543               return 4;
10544             if (!n ("*x", ".x", FNM_PERIOD))
10545               return 4;
10546             if (!y (Apat, "\\\\", 0))
10547               return 5;
10548             if (!y (Apat, "A", 0))
10549               return 5;
10550             if (!y (apat, "\\\\", 0))
10551               return 5;
10552             if (!y (apat, "a", 0))
10553               return 5;
10554             if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10555               return 5;
10556             if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10557               return 5;
10558             if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10559               return 5;
10560             if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10561               return 5;
10562             if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10563               return 5;
10564             if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10565               return 5;
10566             if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10567               return 5;
10568             if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10569               return 5;
10570             $gl_fnmatch_gnu_start
10571             if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10572               result |= 8;
10573             if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10574               result |= 16;
10575             if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10576               result |= 32;
10577             if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10578               result |= 64;
10579             if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10580               result |= 64;
10581             if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10582               result |= 64;
10583             $gl_fnmatch_gnu_end
10584             return result;
10585
10586   ;
10587   return 0;
10588 }
10589 _ACEOF
10590 if ac_fn_c_try_run "$LINENO"; then :
10591   eval "$gl_fnmatch_cache_var=yes"
10592 else
10593   eval "$gl_fnmatch_cache_var=no"
10594 fi
10595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10596   conftest.$ac_objext conftest.beam conftest.$ac_ext
10597 fi
10598
10599
10600 fi
10601 eval ac_res=\$$gl_fnmatch_cache_var
10602                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10603 $as_echo "$ac_res" >&6; }
10604   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10605   if test "$gl_fnmatch_result" = yes; then
10606             rm -f "$gl_source_base/fnmatch.h"
10607   else
10608     FNMATCH_H=fnmatch.h
10609   fi
10610
10611    if test -n "$FNMATCH_H"; then
10612   GL_GENERATE_FNMATCH_H_TRUE=
10613   GL_GENERATE_FNMATCH_H_FALSE='#'
10614 else
10615   GL_GENERATE_FNMATCH_H_TRUE='#'
10616   GL_GENERATE_FNMATCH_H_FALSE=
10617 fi
10618
10619
10620   if test -n "$FNMATCH_H"; then
10621
10622
10623
10624
10625
10626
10627
10628
10629   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10630
10631
10632
10633 cat >>confdefs.h <<_ACEOF
10634 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10635 _ACEOF
10636
10637
10638   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10639 "
10640 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10641   ac_have_decl=1
10642 else
10643   ac_have_decl=0
10644 fi
10645
10646 cat >>confdefs.h <<_ACEOF
10647 #define HAVE_DECL_ISBLANK $ac_have_decl
10648 _ACEOF
10649
10650
10651
10652
10653   fi
10654
10655
10656
10657
10658
10659   if test -n "$FNMATCH_H"; then
10660
10661
10662
10663
10664
10665
10666
10667
10668   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10669
10670
10671
10672 cat >>confdefs.h <<_ACEOF
10673 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10674 _ACEOF
10675
10676
10677   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10678 "
10679 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10680   ac_have_decl=1
10681 else
10682   ac_have_decl=0
10683 fi
10684
10685 cat >>confdefs.h <<_ACEOF
10686 #define HAVE_DECL_ISBLANK $ac_have_decl
10687 _ACEOF
10688
10689
10690
10691
10692   fi
10693
10694
10695
10696   FREXP_LIBM=
10697   if test $gl_cv_func_frexp_no_libm = no; then
10698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10699 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10700 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10701   $as_echo_n "(cached) " >&6
10702 else
10703
10704         save_LIBS="$LIBS"
10705         LIBS="$LIBS -lm"
10706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h.  */
10708 #include <math.h>
10709                double x;
10710 int
10711 main ()
10712 {
10713 int e; return frexp (x, &e) > 0;
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 if ac_fn_c_try_link "$LINENO"; then :
10719   gl_cv_func_frexp_in_libm=yes
10720 else
10721   gl_cv_func_frexp_in_libm=no
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext \
10724     conftest$ac_exeext conftest.$ac_ext
10725         LIBS="$save_LIBS"
10726
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10729 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10730     if test $gl_cv_func_frexp_in_libm = yes; then
10731       FREXP_LIBM=-lm
10732     fi
10733   fi
10734   if test $gl_cv_func_frexp_no_libm = yes \
10735      || test $gl_cv_func_frexp_in_libm = yes; then
10736     save_LIBS="$LIBS"
10737     LIBS="$LIBS $FREXP_LIBM"
10738
10739
10740
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10742 $as_echo_n "checking whether frexp works... " >&6; }
10743 if test "${gl_cv_func_frexp_works+set}" = set; then :
10744   $as_echo_n "(cached) " >&6
10745 else
10746
10747       if test "$cross_compiling" = yes; then :
10748   case "$host_os" in
10749            netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10750            *)                        gl_cv_func_frexp_works="guessing yes";;
10751          esac
10752
10753 else
10754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h.  */
10756
10757 #include <float.h>
10758 #include <math.h>
10759 #include <string.h>
10760 #if HAVE_ALARM
10761 # include <unistd.h>
10762 #endif
10763 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10764    ICC 10.0 has a bug when optimizing the expression -zero.
10765    The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10766    to PowerPC on Mac OS X 10.5.  */
10767 #if defined __hpux || defined __sgi || defined __ICC
10768 static double
10769 compute_minus_zero (void)
10770 {
10771   return -DBL_MIN * DBL_MIN;
10772 }
10773 # define minus_zero compute_minus_zero ()
10774 #else
10775 double minus_zero = -0.0;
10776 #endif
10777 int main()
10778 {
10779   int result = 0;
10780   int i;
10781   volatile double x;
10782   double zero = 0.0;
10783 #if HAVE_ALARM
10784   /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10785      number.  Let the test fail in this case.  */
10786   alarm (5);
10787 #endif
10788   /* Test on denormalized numbers.  */
10789   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10790     ;
10791   if (x > 0.0)
10792     {
10793       int exp;
10794       double y = frexp (x, &exp);
10795       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10796          On NetBSD: y = 0.75. Correct: y = 0.5.  */
10797       if (y != 0.5)
10798         result |= 1;
10799     }
10800   /* Test on infinite numbers.  */
10801   x = 1.0 / zero;
10802   {
10803     int exp;
10804     double y = frexp (x, &exp);
10805     if (y != x)
10806       result |= 2;
10807   }
10808   /* Test on negative zero.  */
10809   x = minus_zero;
10810   {
10811     int exp;
10812     double y = frexp (x, &exp);
10813     if (memcmp (&y, &x, sizeof x))
10814       result |= 4;
10815   }
10816   return result;
10817 }
10818 _ACEOF
10819 if ac_fn_c_try_run "$LINENO"; then :
10820   gl_cv_func_frexp_works=yes
10821 else
10822   gl_cv_func_frexp_works=no
10823 fi
10824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10825   conftest.$ac_objext conftest.beam conftest.$ac_ext
10826 fi
10827
10828
10829 fi
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10831 $as_echo "$gl_cv_func_frexp_works" >&6; }
10832
10833     LIBS="$save_LIBS"
10834     case "$gl_cv_func_frexp_works" in
10835       *yes) gl_func_frexp=yes ;;
10836       *)    gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10837     esac
10838   else
10839     gl_func_frexp=no
10840   fi
10841   if test $gl_func_frexp = yes; then
10842
10843 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
10844
10845   fi
10846
10847
10848   if test $gl_func_frexp != yes; then
10849
10850
10851
10852
10853
10854
10855
10856
10857   gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10858
10859   fi
10860
10861
10862
10863
10864
10865           GNULIB_FREXP=1
10866
10867
10868
10869
10870
10871 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881       ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10882 "
10883 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10884
10885 else
10886   HAVE_DECL_FREXPL=0
10887 fi
10888
10889
10890   FREXPL_LIBM=
10891   if test $HAVE_DECL_FREXPL = 1; then
10892
10893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10894 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10895 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10896   $as_echo_n "(cached) " >&6
10897 else
10898
10899       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h.  */
10901 #include <math.h>
10902              long double x;
10903 int
10904 main ()
10905 {
10906 int e; return frexpl (x, &e) > 0;
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912   gl_cv_func_frexpl_no_libm=yes
10913 else
10914   gl_cv_func_frexpl_no_libm=no
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext \
10917     conftest$ac_exeext conftest.$ac_ext
10918
10919 fi
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10921 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10922
10923     if test $gl_cv_func_frexpl_no_libm = no; then
10924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10925 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10926 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10927   $as_echo_n "(cached) " >&6
10928 else
10929
10930           save_LIBS="$LIBS"
10931           LIBS="$LIBS -lm"
10932           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h.  */
10934 #include <math.h>
10935                  long double x;
10936 int
10937 main ()
10938 {
10939 int e; return frexpl (x, &e) > 0;
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 if ac_fn_c_try_link "$LINENO"; then :
10945   gl_cv_func_frexpl_in_libm=yes
10946 else
10947   gl_cv_func_frexpl_in_libm=no
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext \
10950     conftest$ac_exeext conftest.$ac_ext
10951           LIBS="$save_LIBS"
10952
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10955 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10956       if test $gl_cv_func_frexpl_in_libm = yes; then
10957         FREXPL_LIBM=-lm
10958       fi
10959     fi
10960     if test $gl_cv_func_frexpl_no_libm = yes \
10961        || test $gl_cv_func_frexpl_in_libm = yes; then
10962       save_LIBS="$LIBS"
10963       LIBS="$LIBS $FREXPL_LIBM"
10964
10965
10966      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10967 $as_echo_n "checking whether frexpl works... " >&6; }
10968 if test "${gl_cv_func_frexpl_works+set}" = set; then :
10969   $as_echo_n "(cached) " >&6
10970 else
10971
10972       if test "$cross_compiling" = yes; then :
10973
10974          case "$host_os" in
10975            aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10976               gl_cv_func_frexpl_works="guessing no";;
10977            *) gl_cv_func_frexpl_works="guessing yes";;
10978          esac
10979
10980 else
10981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h.  */
10983
10984 #include <float.h>
10985 #include <math.h>
10986 /* Override the values of <float.h>, like done in float.in.h.  */
10987 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10988 # undef LDBL_MIN_EXP
10989 # define LDBL_MIN_EXP    (-16381)
10990 #endif
10991 #if defined __i386__ && defined __FreeBSD__
10992 # undef LDBL_MIN_EXP
10993 # define LDBL_MIN_EXP    (-16381)
10994 #endif
10995 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10996 # undef LDBL_MIN_EXP
10997 # define LDBL_MIN_EXP DBL_MIN_EXP
10998 #endif
10999 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11000 # if defined __GNUC__
11001 #  undef LDBL_MIN_EXP
11002 #  define LDBL_MIN_EXP DBL_MIN_EXP
11003 # endif
11004 #endif
11005 extern
11006 #ifdef __cplusplus
11007 "C"
11008 #endif
11009 long double frexpl (long double, int *);
11010 int main()
11011 {
11012   int result = 0;
11013   volatile long double x;
11014   /* Test on finite numbers that fails on AIX 5.1.  */
11015   x = 16.0L;
11016   {
11017     int exp = -9999;
11018     frexpl (x, &exp);
11019     if (exp != 5)
11020       result |= 1;
11021   }
11022   /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11023      function returns an invalid (incorrectly normalized) value: it returns
11024                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11025      but the correct result is
11026           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
11027   x = 1.01L;
11028   {
11029     int exp = -9999;
11030     long double y = frexpl (x, &exp);
11031     if (!(exp == 1 && y == 0.505L))
11032       result |= 2;
11033   }
11034   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
11035      LDBL_MAX_EXP = 16384.
11036      In the loop end test, we test x against Infinity, rather than comparing
11037      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
11038   {
11039     int i;
11040     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11041       {
11042         int exp = -9999;
11043         frexpl (x, &exp);
11044         if (exp != i)
11045           {
11046             result |= 4;
11047             break;
11048           }
11049       }
11050   }
11051   /* Test on denormalized numbers.  */
11052   {
11053     int i;
11054     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11055       ;
11056     if (x > 0.0L)
11057       {
11058         int exp;
11059         long double y = frexpl (x, &exp);
11060         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11061            exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
11062         if (exp != LDBL_MIN_EXP - 1)
11063           result |= 8;
11064       }
11065   }
11066   /* Test on infinite numbers.  */
11067   x = 1.0L / 0.0L;
11068   {
11069     int exp;
11070     long double y = frexpl (x, &exp);
11071     if (y != x)
11072       result |= 16;
11073   }
11074   return result;
11075 }
11076 _ACEOF
11077 if ac_fn_c_try_run "$LINENO"; then :
11078   gl_cv_func_frexpl_works=yes
11079 else
11080   gl_cv_func_frexpl_works=no
11081 fi
11082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11083   conftest.$ac_objext conftest.beam conftest.$ac_ext
11084 fi
11085
11086
11087 fi
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11089 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11090
11091       LIBS="$save_LIBS"
11092       case "$gl_cv_func_frexpl_works" in
11093         *yes) gl_func_frexpl=yes ;;
11094         *)    gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11095       esac
11096     else
11097       gl_func_frexpl=no
11098     fi
11099     if test $gl_func_frexpl = yes; then
11100
11101 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11102
11103     fi
11104   fi
11105   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11106         if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11107
11108       FREXPL_LIBM="$FREXP_LIBM"
11109     else
11110       FREXPL_LIBM=
11111     fi
11112   fi
11113
11114
11115   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11116
11117
11118
11119
11120
11121
11122
11123
11124   gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11125
11126   fi
11127
11128
11129
11130
11131
11132           GNULIB_FREXPL=1
11133
11134
11135
11136
11137
11138 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11139
11140
11141
11142
11143
11144
11145
11146
11147   PRIPTR_PREFIX=
11148   if test -n "$STDINT_H"; then
11149         PRIPTR_PREFIX='"l"'
11150   else
11151         for glpfx in '' l ll I64; do
11152       case $glpfx in
11153         '')  gltype1='int';;
11154         l)   gltype1='long int';;
11155         ll)  gltype1='long long int';;
11156         I64) gltype1='__int64';;
11157       esac
11158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h.  */
11160 #include <stdint.h>
11161            extern intptr_t foo;
11162            extern $gltype1 foo;
11163 int
11164 main ()
11165 {
11166
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 if ac_fn_c_try_compile "$LINENO"; then :
11172   PRIPTR_PREFIX='"'$glpfx'"'
11173 fi
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175       test -n "$PRIPTR_PREFIX" && break
11176     done
11177   fi
11178
11179
11180
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11182 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11183 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11184   $as_echo_n "(cached) " >&6
11185 else
11186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h.  */
11188 /* Work also in C++ mode.  */
11189             #define __STDC_LIMIT_MACROS 1
11190
11191             /* Work if build is not clean.  */
11192             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11193
11194             #include <limits.h>
11195             #if HAVE_STDINT_H
11196              #include <stdint.h>
11197             #endif
11198
11199             #if defined INT32_MAX && defined INTMAX_MAX
11200              #define CONDITION (INT32_MAX < INTMAX_MAX)
11201             #elif HAVE_LONG_LONG_INT
11202              #define CONDITION (sizeof (int) < sizeof (long long int))
11203             #else
11204              #define CONDITION 0
11205             #endif
11206             int test[CONDITION ? 1 : -1];
11207 int
11208 main ()
11209 {
11210
11211   ;
11212   return 0;
11213 }
11214 _ACEOF
11215 if ac_fn_c_try_compile "$LINENO"; then :
11216   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11217 else
11218   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11219 fi
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11223 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11224   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11225     INT32_MAX_LT_INTMAX_MAX=1;
11226   else
11227     INT32_MAX_LT_INTMAX_MAX=0;
11228   fi
11229
11230
11231   if test $APPLE_UNIVERSAL_BUILD = 0; then
11232
11233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11234 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11235 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11236   $as_echo_n "(cached) " >&6
11237 else
11238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h.  */
11240 /* Work also in C++ mode.  */
11241             #define __STDC_LIMIT_MACROS 1
11242
11243             /* Work if build is not clean.  */
11244             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11245
11246             #include <limits.h>
11247             #if HAVE_STDINT_H
11248              #include <stdint.h>
11249             #endif
11250
11251             #if defined INT64_MAX
11252              #define CONDITION (INT64_MAX == LONG_MAX)
11253             #elif HAVE_LONG_LONG_INT
11254              #define CONDITION (sizeof (long long int) == sizeof (long int))
11255             #else
11256              #define CONDITION 0
11257             #endif
11258             int test[CONDITION ? 1 : -1];
11259 int
11260 main ()
11261 {
11262
11263   ;
11264   return 0;
11265 }
11266 _ACEOF
11267 if ac_fn_c_try_compile "$LINENO"; then :
11268   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11269 else
11270   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11271 fi
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 fi
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11275 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11276   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11277     INT64_MAX_EQ_LONG_MAX=1;
11278   else
11279     INT64_MAX_EQ_LONG_MAX=0;
11280   fi
11281
11282
11283   else
11284     INT64_MAX_EQ_LONG_MAX=-1
11285   fi
11286
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11288 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11289 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h.  */
11294 /* Work also in C++ mode.  */
11295             #define __STDC_LIMIT_MACROS 1
11296
11297             /* Work if build is not clean.  */
11298             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11299
11300             #include <limits.h>
11301             #if HAVE_STDINT_H
11302              #include <stdint.h>
11303             #endif
11304
11305             #if defined UINT32_MAX && defined UINTMAX_MAX
11306              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11307             #elif HAVE_LONG_LONG_INT
11308              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11309             #else
11310              #define CONDITION 0
11311             #endif
11312             int test[CONDITION ? 1 : -1];
11313 int
11314 main ()
11315 {
11316
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_compile "$LINENO"; then :
11322   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11323 else
11324   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11327 fi
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11329 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11330   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11331     UINT32_MAX_LT_UINTMAX_MAX=1;
11332   else
11333     UINT32_MAX_LT_UINTMAX_MAX=0;
11334   fi
11335
11336
11337   if test $APPLE_UNIVERSAL_BUILD = 0; then
11338
11339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11340 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11341 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11342   $as_echo_n "(cached) " >&6
11343 else
11344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h.  */
11346 /* Work also in C++ mode.  */
11347             #define __STDC_LIMIT_MACROS 1
11348
11349             /* Work if build is not clean.  */
11350             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11351
11352             #include <limits.h>
11353             #if HAVE_STDINT_H
11354              #include <stdint.h>
11355             #endif
11356
11357             #if defined UINT64_MAX
11358              #define CONDITION (UINT64_MAX == ULONG_MAX)
11359             #elif HAVE_LONG_LONG_INT
11360              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11361             #else
11362              #define CONDITION 0
11363             #endif
11364             int test[CONDITION ? 1 : -1];
11365 int
11366 main ()
11367 {
11368
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_compile "$LINENO"; then :
11374   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11375 else
11376   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11381 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11382   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11383     UINT64_MAX_EQ_ULONG_MAX=1;
11384   else
11385     UINT64_MAX_EQ_ULONG_MAX=0;
11386   fi
11387
11388
11389   else
11390     UINT64_MAX_EQ_ULONG_MAX=-1
11391   fi
11392
11393
11394
11395
11396
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11398 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11399 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11400   $as_echo_n "(cached) " >&6
11401 else
11402
11403       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h.  */
11405 #include <math.h>
11406              #if __GNUC__ >= 4
11407              # undef isnand
11408              # define isnand(x) __builtin_isnan ((double)(x))
11409              #else
11410              # undef isnand
11411              # define isnand(x) isnan ((double)(x))
11412              #endif
11413              double x;
11414 int
11415 main ()
11416 {
11417 return isnand (x);
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423   gl_cv_func_isnand_no_libm=yes
11424 else
11425   gl_cv_func_isnand_no_libm=no
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428     conftest$ac_exeext conftest.$ac_ext
11429
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
11432 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
11433
11434   gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
11435   if test $gl_cv_func_isnand_no_libm = yes; then
11436
11437 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
11438
11439   fi
11440
11441   if test $gl_func_isnand_no_libm != yes; then
11442
11443
11444
11445
11446
11447
11448
11449
11450   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
11451
11452
11453
11454
11455   fi
11456
11457
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
11459 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
11460 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
11461   $as_echo_n "(cached) " >&6
11462 else
11463
11464       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h.  */
11466 #include <math.h>
11467              #if __GNUC__ >= 4
11468              # undef isnanl
11469              # define isnanl(x) __builtin_isnanl ((long double)(x))
11470              #elif defined isnan
11471              # undef isnanl
11472              # define isnanl(x) isnan ((long double)(x))
11473              #endif
11474              long double x;
11475 int
11476 main ()
11477 {
11478 return isnanl (x);
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484   gl_cv_func_isnanl_no_libm=yes
11485 else
11486   gl_cv_func_isnanl_no_libm=no
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext \
11489     conftest$ac_exeext conftest.$ac_ext
11490
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
11493 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
11494
11495   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
11496   if test $gl_func_isnanl_no_libm = yes; then
11497
11498
11499
11500
11501      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
11502 $as_echo_n "checking whether isnanl works... " >&6; }
11503 if test "${gl_cv_func_isnanl_works+set}" = set; then :
11504   $as_echo_n "(cached) " >&6
11505 else
11506
11507       if test "$cross_compiling" = yes; then :
11508   case "$host_cpu" in
11509                                  # Guess no on ia64, x86_64, i386.
11510            ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
11511            *)
11512              case "$host_os" in
11513                netbsd*) gl_cv_func_isnanl_works="guessing no";;
11514                *)       gl_cv_func_isnanl_works="guessing yes";;
11515              esac
11516              ;;
11517          esac
11518
11519 else
11520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h.  */
11522
11523 #include <float.h>
11524 #include <limits.h>
11525 #include <math.h>
11526 #if __GNUC__ >= 4
11527 # undef isnanl
11528 # define isnanl(x) __builtin_isnanl ((long double)(x))
11529 #elif defined isnan
11530 # undef isnanl
11531 # define isnanl(x) isnan ((long double)(x))
11532 #endif
11533 #define NWORDS \
11534   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11535 typedef union { unsigned int word[NWORDS]; long double value; }
11536         memory_long_double;
11537 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11538    runtime type conversion.  */
11539 #ifdef __sgi
11540 static long double NaNl ()
11541 {
11542   double zero = 0.0;
11543   return zero / zero;
11544 }
11545 #else
11546 # define NaNl() (0.0L / 0.0L)
11547 #endif
11548 int main ()
11549 {
11550   int result = 0;
11551
11552   if (!isnanl (NaNl ()))
11553     result |= 1;
11554
11555   {
11556     memory_long_double m;
11557     unsigned int i;
11558
11559     /* The isnanl function should be immune against changes in the sign bit and
11560        in the mantissa bits.  The xor operation twiddles a bit that can only be
11561        a sign bit or a mantissa bit (since the exponent never extends to
11562        bit 31).  */
11563     m.value = NaNl ();
11564     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11565     for (i = 0; i < NWORDS; i++)
11566       m.word[i] |= 1;
11567     if (!isnanl (m.value))
11568       result |= 1;
11569   }
11570
11571 #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
11572 /* Representation of an 80-bit 'long double' as an initializer for a sequence
11573    of 'unsigned int' words.  */
11574 # ifdef WORDS_BIGENDIAN
11575 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
11576      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11577        ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16),    \
11578        (unsigned int) (mantlo) << 16                                        \
11579      }
11580 # else
11581 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
11582      { mantlo, manthi, exponent }
11583 # endif
11584   { /* Quiet NaN.  */
11585     static memory_long_double x =
11586       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11587     if (!isnanl (x.value))
11588       result |= 2;
11589   }
11590   {
11591     /* Signalling NaN.  */
11592     static memory_long_double x =
11593       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11594     if (!isnanl (x.value))
11595       result |= 2;
11596   }
11597   /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11598      Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11599        Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11600        Application Architecture.
11601        Table 5-2 "Floating-Point Register Encodings"
11602        Figure 5-6 "Memory to Floating-Point Register Data Translation"
11603    */
11604   { /* Pseudo-NaN.  */
11605     static memory_long_double x =
11606       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11607     if (!isnanl (x.value))
11608       result |= 4;
11609   }
11610   { /* Pseudo-Infinity.  */
11611     static memory_long_double x =
11612       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11613     if (!isnanl (x.value))
11614       result |= 8;
11615   }
11616   { /* Pseudo-Zero.  */
11617     static memory_long_double x =
11618       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11619     if (!isnanl (x.value))
11620       result |= 16;
11621   }
11622   { /* Unnormalized number.  */
11623     static memory_long_double x =
11624       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11625     if (!isnanl (x.value))
11626       result |= 32;
11627   }
11628   { /* Pseudo-Denormal.  */
11629     static memory_long_double x =
11630       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11631     if (!isnanl (x.value))
11632       result |= 64;
11633   }
11634 #endif
11635
11636   return result;
11637 }
11638 _ACEOF
11639 if ac_fn_c_try_run "$LINENO"; then :
11640   gl_cv_func_isnanl_works=yes
11641 else
11642   gl_cv_func_isnanl_works=no
11643 fi
11644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11645   conftest.$ac_objext conftest.beam conftest.$ac_ext
11646 fi
11647
11648
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11651 $as_echo "$gl_cv_func_isnanl_works" >&6; }
11652
11653     case "$gl_cv_func_isnanl_works" in
11654       *yes) ;;
11655       *)    gl_func_isnanl_no_libm=no ;;
11656     esac
11657   fi
11658   if test $gl_func_isnanl_no_libm = yes; then
11659
11660 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11661
11662   fi
11663
11664   if test $gl_func_isnanl_no_libm != yes; then
11665
11666
11667
11668
11669
11670
11671
11672
11673   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11674
11675
11676
11677
11678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11679 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11680 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11681   $as_echo_n "(cached) " >&6
11682 else
11683
11684       if test "$cross_compiling" = yes; then :
11685
11686                               gl_cv_cc_long_double_expbit0="unknown"
11687
11688 else
11689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h.  */
11691
11692 #include <float.h>
11693 #include <stddef.h>
11694 #include <stdio.h>
11695 #include <string.h>
11696 #define NWORDS \
11697   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11698 typedef union { long double value; unsigned int word[NWORDS]; }
11699         memory_long_double;
11700 static unsigned int ored_words[NWORDS];
11701 static unsigned int anded_words[NWORDS];
11702 static void add_to_ored_words (long double x)
11703 {
11704   memory_long_double m;
11705   size_t i;
11706   /* Clear it first, in case
11707      sizeof (long double) < sizeof (memory_long_double).  */
11708   memset (&m, 0, sizeof (memory_long_double));
11709   m.value = x;
11710   for (i = 0; i < NWORDS; i++)
11711     {
11712       ored_words[i] |= m.word[i];
11713       anded_words[i] &= m.word[i];
11714     }
11715 }
11716 int main ()
11717 {
11718   size_t j;
11719   FILE *fp = fopen ("conftest.out", "w");
11720   if (fp == NULL)
11721     return 1;
11722   for (j = 0; j < NWORDS; j++)
11723     anded_words[j] = ~ (unsigned int) 0;
11724   add_to_ored_words (0.25L);
11725   add_to_ored_words (0.5L);
11726   add_to_ored_words (1.0L);
11727   add_to_ored_words (2.0L);
11728   add_to_ored_words (4.0L);
11729   /* Remove bits that are common (e.g. if representation of the first mantissa
11730      bit is explicit).  */
11731   for (j = 0; j < NWORDS; j++)
11732     ored_words[j] &= ~anded_words[j];
11733   /* Now find the nonzero word.  */
11734   for (j = 0; j < NWORDS; j++)
11735     if (ored_words[j] != 0)
11736       break;
11737   if (j < NWORDS)
11738     {
11739       size_t i;
11740       for (i = j + 1; i < NWORDS; i++)
11741         if (ored_words[i] != 0)
11742           {
11743             fprintf (fp, "unknown");
11744             return (fclose (fp) != 0);
11745           }
11746       for (i = 0; ; i++)
11747         if ((ored_words[j] >> i) & 1)
11748           {
11749             fprintf (fp, "word %d bit %d", (int) j, (int) i);
11750             return (fclose (fp) != 0);
11751           }
11752     }
11753   fprintf (fp, "unknown");
11754   return (fclose (fp) != 0);
11755 }
11756
11757 _ACEOF
11758 if ac_fn_c_try_run "$LINENO"; then :
11759   gl_cv_cc_long_double_expbit0=`cat conftest.out`
11760 else
11761   gl_cv_cc_long_double_expbit0="unknown"
11762 fi
11763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11764   conftest.$ac_objext conftest.beam conftest.$ac_ext
11765 fi
11766
11767       rm -f conftest.out
11768
11769 fi
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11771 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11772   case "$gl_cv_cc_long_double_expbit0" in
11773     word*bit*)
11774       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11775       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11776
11777 cat >>confdefs.h <<_ACEOF
11778 #define LDBL_EXPBIT0_WORD $word
11779 _ACEOF
11780
11781
11782 cat >>confdefs.h <<_ACEOF
11783 #define LDBL_EXPBIT0_BIT $bit
11784 _ACEOF
11785
11786       ;;
11787   esac
11788
11789
11790
11791   fi
11792
11793
11794
11795
11796
11797
11798
11799
11800   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813      if test $gl_cv_have_include_next = yes; then
11814        gl_cv_next_math_h='<'math.h'>'
11815      else
11816        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11817 $as_echo_n "checking absolute name of <math.h>... " >&6; }
11818 if test "${gl_cv_next_math_h+set}" = set; then :
11819   $as_echo_n "(cached) " >&6
11820 else
11821
11822              if test $ac_cv_header_math_h = yes; then
11823
11824
11825                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h.  */
11827 #include <math.h>
11828
11829 _ACEOF
11830                                                                                                                         case "$host_os" in
11831                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
11832                  *)    gl_absname_cpp="$ac_cpp" ;;
11833                esac
11834
11835                case "$host_os" in
11836                  mingw*)
11837                                                                                                                                      gl_dirsep_regex='[/\\]'
11838                    ;;
11839                  *)
11840                    gl_dirsep_regex='\/'
11841                    ;;
11842                esac
11843                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11844
11845                gl_header_literal_regex=`echo 'math.h' \
11846                                         | sed -e "$gl_make_literal_regex_sed"`
11847                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11848                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11849                    s|^/[^/]|//&|
11850                    p
11851                    q
11852                  }'
11853                                                             gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11854                       sed -n "$gl_absolute_header_sed"`'"'
11855           else
11856                gl_cv_next_math_h='<'math.h'>'
11857              fi
11858
11859
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11862 $as_echo "$gl_cv_next_math_h" >&6; }
11863      fi
11864      NEXT_MATH_H=$gl_cv_next_math_h
11865
11866      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11867        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11868        gl_next_as_first_directive='<'math.h'>'
11869      else
11870        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11871        gl_next_as_first_directive=$gl_cv_next_math_h
11872      fi
11873      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11874
11875
11876
11877
11878
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11880 $as_echo_n "checking whether NAN macro works... " >&6; }
11881 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h.  */
11886 #include <math.h>
11887 int
11888 main ()
11889 {
11890 /* Solaris 10 has a broken definition of NAN.  Other platforms
11891         fail to provide NAN, or provide it only in C99 mode; this
11892         test only needs to fail when NAN is provided but wrong.  */
11893          float f = 1.0f;
11894 #ifdef NAN
11895          f = NAN;
11896 #endif
11897          return f == 0;
11898   ;
11899   return 0;
11900 }
11901 _ACEOF
11902 if ac_fn_c_try_compile "$LINENO"; then :
11903   gl_cv_header_math_nan_works=yes
11904 else
11905   gl_cv_header_math_nan_works=no
11906 fi
11907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11910 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11911   if test $gl_cv_header_math_nan_works = no; then
11912     REPLACE_NAN=1
11913   fi
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11915 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11916 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11917   $as_echo_n "(cached) " >&6
11918 else
11919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h.  */
11921 #include <math.h>
11922 int
11923 main ()
11924 {
11925 /* Solaris 10 has a broken definition of HUGE_VAL.  */
11926          double d = HUGE_VAL;
11927          return d == 0;
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 if ac_fn_c_try_compile "$LINENO"; then :
11933   gl_cv_header_math_huge_val_works=yes
11934 else
11935   gl_cv_header_math_huge_val_works=no
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938 fi
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11940 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11941   if test $gl_cv_header_math_huge_val_works = no; then
11942     REPLACE_HUGE_VAL=1
11943   fi
11944
11945
11946     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
11947     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11949 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11950 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h.  */
11955 #include <math.h>
11956 int
11957 main ()
11958 {
11959 #undef $gl_func
11960   (void) $gl_func;
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_compile "$LINENO"; then :
11966   eval "$as_gl_Symbol=yes"
11967 else
11968   eval "$as_gl_Symbol=no"
11969 fi
11970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971 fi
11972 eval ac_res=\$$as_gl_Symbol
11973                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11974 $as_echo "$ac_res" >&6; }
11975     eval as_val=\$$as_gl_Symbol
11976    if test "x$as_val" = x""yes; then :
11977   cat >>confdefs.h <<_ACEOF
11978 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11979 _ACEOF
11980
11981                      eval ac_cv_have_decl_$gl_func=yes
11982 fi
11983       done
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11997
11998
11999
12000      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12001 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12002 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12003   $as_echo_n "(cached) " >&6
12004 else
12005
12006                   case "$host_os" in
12007                      # Guess no on AIX and OSF/1.
12008         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12009                      # Guess yes otherwise.
12010         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12011       esac
12012       if test $LOCALE_JA != none; then
12013         if test "$cross_compiling" = yes; then :
12014   :
12015 else
12016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h.  */
12018
12019 #include <locale.h>
12020 #include <string.h>
12021 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12022    <wchar.h>.
12023    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12024    included before <wchar.h>.  */
12025 #include <stddef.h>
12026 #include <stdio.h>
12027 #include <time.h>
12028 #include <wchar.h>
12029 int main ()
12030 {
12031   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12032     {
12033       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12034       mbstate_t state;
12035       wchar_t wc;
12036
12037       memset (&state, '\0', sizeof (mbstate_t));
12038       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12039         if (mbsinit (&state))
12040           return 1;
12041     }
12042   return 0;
12043 }
12044 _ACEOF
12045 if ac_fn_c_try_run "$LINENO"; then :
12046   gl_cv_func_mbrtowc_incomplete_state=yes
12047 else
12048   gl_cv_func_mbrtowc_incomplete_state=no
12049 fi
12050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12051   conftest.$ac_objext conftest.beam conftest.$ac_ext
12052 fi
12053
12054       fi
12055
12056 fi
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12058 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12059
12060
12061
12062
12063      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12064 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12065 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068
12069                   case "$host_os" in
12070                     # Guess no on Solaris 8.
12071         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12072                     # Guess yes otherwise.
12073         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12074       esac
12075       if test $LOCALE_ZH_CN != none; then
12076         if test "$cross_compiling" = yes; then :
12077   :
12078 else
12079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h.  */
12081
12082 #include <locale.h>
12083 #include <stdlib.h>
12084 #include <string.h>
12085 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12086    <wchar.h>.
12087    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12088    included before <wchar.h>.  */
12089 #include <stddef.h>
12090 #include <stdio.h>
12091 #include <time.h>
12092 #include <wchar.h>
12093 int main ()
12094 {
12095   /* This fails on Solaris 8:
12096      mbrtowc returns 2, and sets wc to 0x00F0.
12097      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
12098   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12099     {
12100       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12101       mbstate_t state;
12102       wchar_t wc;
12103
12104       memset (&state, '\0', sizeof (mbstate_t));
12105       if (mbrtowc (&wc, input + 3, 6, &state) != 4
12106           && mbtowc (&wc, input + 3, 6) == 4)
12107         return 1;
12108     }
12109   return 0;
12110 }
12111 _ACEOF
12112 if ac_fn_c_try_run "$LINENO"; then :
12113   gl_cv_func_mbrtowc_sanitycheck=yes
12114 else
12115   gl_cv_func_mbrtowc_sanitycheck=no
12116 fi
12117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12118   conftest.$ac_objext conftest.beam conftest.$ac_ext
12119 fi
12120
12121       fi
12122
12123 fi
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12125 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12126
12127     REPLACE_MBSTATE_T=0
12128     case "$gl_cv_func_mbrtowc_incomplete_state" in
12129       *yes) ;;
12130       *) REPLACE_MBSTATE_T=1 ;;
12131     esac
12132     case "$gl_cv_func_mbrtowc_sanitycheck" in
12133       *yes) ;;
12134       *) REPLACE_MBSTATE_T=1 ;;
12135     esac
12136   else
12137     REPLACE_MBSTATE_T=1
12138   fi
12139
12140
12141
12142   if test $ac_cv_func_mbrtowc = no; then
12143     HAVE_MBRTOWC=0
12144     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12145 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12146    <wchar.h>.
12147    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12148    included before <wchar.h>.  */
12149 #include <stddef.h>
12150 #include <stdio.h>
12151 #include <time.h>
12152 #include <wchar.h>
12153
12154 "
12155 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12156   ac_have_decl=1
12157 else
12158   ac_have_decl=0
12159 fi
12160
12161 cat >>confdefs.h <<_ACEOF
12162 #define HAVE_DECL_MBRTOWC $ac_have_decl
12163 _ACEOF
12164
12165     if test $ac_cv_have_decl_mbrtowc = yes; then
12166                         REPLACE_MBRTOWC=1
12167     fi
12168   else
12169     if test $REPLACE_MBSTATE_T = 1; then
12170       REPLACE_MBRTOWC=1
12171     else
12172
12173
12174
12175      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12176 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12177 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12178   $as_echo_n "(cached) " >&6
12179 else
12180
12181                   case "$host_os" in
12182                   # Guess no on Solaris.
12183         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12184                   # Guess yes otherwise.
12185         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12186       esac
12187       if test $LOCALE_FR_UTF8 != none; then
12188         if test "$cross_compiling" = yes; then :
12189   :
12190 else
12191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h.  */
12193
12194 #include <locale.h>
12195 #include <stdlib.h>
12196 #include <string.h>
12197 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12198    <wchar.h>.
12199    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12200    included before <wchar.h>.  */
12201 #include <stddef.h>
12202 #include <stdio.h>
12203 #include <time.h>
12204 #include <wchar.h>
12205 int main ()
12206 {
12207   int result = 0;
12208
12209   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12210     {
12211       char input[] = "\303\237er";
12212       mbstate_t state;
12213       wchar_t wc;
12214       size_t ret;
12215
12216       memset (&state, '\0', sizeof (mbstate_t));
12217       wc = (wchar_t) 0xBADFACE;
12218       ret = mbrtowc (&wc, input, 5, &state);
12219       if (ret != 2)
12220         result |= 1;
12221       if (!mbsinit (&state))
12222         result |= 2;
12223
12224       memset (&state, '\0', sizeof (mbstate_t));
12225       ret = mbrtowc (NULL, input, 5, &state);
12226       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
12227         result |= 4;
12228       if (!mbsinit (&state))
12229         result |= 8;
12230     }
12231   return result;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_run "$LINENO"; then :
12235   gl_cv_func_mbrtowc_null_arg1=yes
12236 else
12237   gl_cv_func_mbrtowc_null_arg1=no
12238 fi
12239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12240   conftest.$ac_objext conftest.beam conftest.$ac_ext
12241 fi
12242
12243       fi
12244
12245 fi
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12247 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
12248
12249
12250
12251
12252      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12253 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12254 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257
12258                   case "$host_os" in
12259               # Guess no on OSF/1.
12260         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12261               # Guess yes otherwise.
12262         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12263       esac
12264       if test $LOCALE_FR_UTF8 != none; then
12265         if test "$cross_compiling" = yes; then :
12266   :
12267 else
12268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h.  */
12270
12271 #include <locale.h>
12272 #include <string.h>
12273 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12274    <wchar.h>.
12275    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12276    included before <wchar.h>.  */
12277 #include <stddef.h>
12278 #include <stdio.h>
12279 #include <time.h>
12280 #include <wchar.h>
12281 int main ()
12282 {
12283   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12284     {
12285       mbstate_t state;
12286       wchar_t wc;
12287       int ret;
12288
12289       memset (&state, '\0', sizeof (mbstate_t));
12290       wc = (wchar_t) 0xBADFACE;
12291       mbrtowc (&wc, NULL, 5, &state);
12292       /* Check that wc was not modified.  */
12293       if (wc != (wchar_t) 0xBADFACE)
12294         return 1;
12295     }
12296   return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_c_try_run "$LINENO"; then :
12300   gl_cv_func_mbrtowc_null_arg2=yes
12301 else
12302   gl_cv_func_mbrtowc_null_arg2=no
12303 fi
12304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12305   conftest.$ac_objext conftest.beam conftest.$ac_ext
12306 fi
12307
12308       fi
12309
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12312 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
12313
12314
12315
12316
12317
12318
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12320 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12321 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12322   $as_echo_n "(cached) " >&6
12323 else
12324
12325                   case "$host_os" in
12326                                    # Guess no on HP-UX, Solaris, native Windows.
12327         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12328                                    # Guess yes otherwise.
12329         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
12330       esac
12331       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12332          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12333         if test "$cross_compiling" = yes; then :
12334   :
12335 else
12336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h.  */
12338
12339 #include <locale.h>
12340 #include <string.h>
12341 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12342    <wchar.h>.
12343    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12344    included before <wchar.h>.  */
12345 #include <stddef.h>
12346 #include <stdio.h>
12347 #include <time.h>
12348 #include <wchar.h>
12349 int main ()
12350 {
12351   int result = 0;
12352   int found_some_locale = 0;
12353   /* This fails on Solaris.  */
12354   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12355     {
12356       char input[] = "B\303\274\303\237er"; /* "Büßer" */
12357       mbstate_t state;
12358       wchar_t wc;
12359
12360       memset (&state, '\0', sizeof (mbstate_t));
12361       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12362         {
12363           input[1] = '\0';
12364           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12365             result |= 1;
12366         }
12367       found_some_locale = 1;
12368     }
12369   /* This fails on HP-UX 11.11.  */
12370   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12371     {
12372       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12373       mbstate_t state;
12374       wchar_t wc;
12375
12376       memset (&state, '\0', sizeof (mbstate_t));
12377       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12378         {
12379           input[1] = '\0';
12380           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12381             result |= 2;
12382         }
12383       found_some_locale = 1;
12384     }
12385   /* This fails on native Windows.  */
12386   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12387     {
12388       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12389       mbstate_t state;
12390       wchar_t wc;
12391
12392       memset (&state, '\0', sizeof (mbstate_t));
12393       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12394         {
12395           input[3] = '\0';
12396           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12397             result |= 4;
12398         }
12399       found_some_locale = 1;
12400     }
12401   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12402     {
12403       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12404       mbstate_t state;
12405       wchar_t wc;
12406
12407       memset (&state, '\0', sizeof (mbstate_t));
12408       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12409         {
12410           input[3] = '\0';
12411           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12412             result |= 8;
12413         }
12414       found_some_locale = 1;
12415     }
12416   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12417     {
12418       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12419       mbstate_t state;
12420       wchar_t wc;
12421
12422       memset (&state, '\0', sizeof (mbstate_t));
12423       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12424         {
12425           input[3] = '\0';
12426           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12427             result |= 16;
12428         }
12429       found_some_locale = 1;
12430     }
12431   return (found_some_locale ? result : 77);
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_run "$LINENO"; then :
12435   gl_cv_func_mbrtowc_retval=yes
12436 else
12437   if test $? != 77; then
12438              gl_cv_func_mbrtowc_retval=no
12439            fi
12440
12441 fi
12442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12443   conftest.$ac_objext conftest.beam conftest.$ac_ext
12444 fi
12445
12446       fi
12447
12448 fi
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
12450 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
12451
12452
12453
12454
12455      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
12456 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
12457 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
12458   $as_echo_n "(cached) " >&6
12459 else
12460
12461                   case "$host_os" in
12462                        # Guess no on Solaris 8 and 9.
12463         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
12464                        # Guess yes otherwise.
12465         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
12466       esac
12467       if test $LOCALE_ZH_CN != none; then
12468         if test "$cross_compiling" = yes; then :
12469   :
12470 else
12471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h.  */
12473
12474 #include <locale.h>
12475 #include <string.h>
12476 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12477    <wchar.h>.
12478    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12479    included before <wchar.h>.  */
12480 #include <stddef.h>
12481 #include <stdio.h>
12482 #include <time.h>
12483 #include <wchar.h>
12484 int main ()
12485 {
12486   /* This fails on Solaris 8 and 9.  */
12487   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12488     {
12489       mbstate_t state;
12490       wchar_t wc;
12491
12492       memset (&state, '\0', sizeof (mbstate_t));
12493       if (mbrtowc (&wc, "", 1, &state) != 0)
12494         return 1;
12495     }
12496   return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_run "$LINENO"; then :
12500   gl_cv_func_mbrtowc_nul_retval=yes
12501 else
12502   gl_cv_func_mbrtowc_nul_retval=no
12503 fi
12504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12505   conftest.$ac_objext conftest.beam conftest.$ac_ext
12506 fi
12507
12508       fi
12509
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
12512 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
12513
12514       case "$gl_cv_func_mbrtowc_null_arg1" in
12515         *yes) ;;
12516         *)
12517 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
12518
12519            REPLACE_MBRTOWC=1
12520            ;;
12521       esac
12522       case "$gl_cv_func_mbrtowc_null_arg2" in
12523         *yes) ;;
12524         *)
12525 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
12526
12527            REPLACE_MBRTOWC=1
12528            ;;
12529       esac
12530       case "$gl_cv_func_mbrtowc_retval" in
12531         *yes) ;;
12532         *)
12533 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
12534
12535            REPLACE_MBRTOWC=1
12536            ;;
12537       esac
12538       case "$gl_cv_func_mbrtowc_nul_retval" in
12539         *yes) ;;
12540         *)
12541 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12542
12543            REPLACE_MBRTOWC=1
12544            ;;
12545       esac
12546     fi
12547   fi
12548
12549   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
12550
12551
12552
12553
12554
12555
12556
12557
12558   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12559
12560
12561   :
12562
12563   fi
12564
12565
12566
12567
12568
12569           GNULIB_MBRTOWC=1
12570
12571
12572
12573
12574
12575 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12591
12592
12593
12594      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12595 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12596 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599
12600                   case "$host_os" in
12601                      # Guess no on AIX and OSF/1.
12602         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12603                      # Guess yes otherwise.
12604         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12605       esac
12606       if test $LOCALE_JA != none; then
12607         if test "$cross_compiling" = yes; then :
12608   :
12609 else
12610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h.  */
12612
12613 #include <locale.h>
12614 #include <string.h>
12615 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12616    <wchar.h>.
12617    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12618    included before <wchar.h>.  */
12619 #include <stddef.h>
12620 #include <stdio.h>
12621 #include <time.h>
12622 #include <wchar.h>
12623 int main ()
12624 {
12625   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12626     {
12627       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12628       mbstate_t state;
12629       wchar_t wc;
12630
12631       memset (&state, '\0', sizeof (mbstate_t));
12632       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12633         if (mbsinit (&state))
12634           return 1;
12635     }
12636   return 0;
12637 }
12638 _ACEOF
12639 if ac_fn_c_try_run "$LINENO"; then :
12640   gl_cv_func_mbrtowc_incomplete_state=yes
12641 else
12642   gl_cv_func_mbrtowc_incomplete_state=no
12643 fi
12644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12645   conftest.$ac_objext conftest.beam conftest.$ac_ext
12646 fi
12647
12648       fi
12649
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12652 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12653
12654
12655
12656
12657      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12658 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12659 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12660   $as_echo_n "(cached) " >&6
12661 else
12662
12663                   case "$host_os" in
12664                     # Guess no on Solaris 8.
12665         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12666                     # Guess yes otherwise.
12667         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12668       esac
12669       if test $LOCALE_ZH_CN != none; then
12670         if test "$cross_compiling" = yes; then :
12671   :
12672 else
12673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h.  */
12675
12676 #include <locale.h>
12677 #include <stdlib.h>
12678 #include <string.h>
12679 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12680    <wchar.h>.
12681    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12682    included before <wchar.h>.  */
12683 #include <stddef.h>
12684 #include <stdio.h>
12685 #include <time.h>
12686 #include <wchar.h>
12687 int main ()
12688 {
12689   /* This fails on Solaris 8:
12690      mbrtowc returns 2, and sets wc to 0x00F0.
12691      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
12692   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12693     {
12694       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12695       mbstate_t state;
12696       wchar_t wc;
12697
12698       memset (&state, '\0', sizeof (mbstate_t));
12699       if (mbrtowc (&wc, input + 3, 6, &state) != 4
12700           && mbtowc (&wc, input + 3, 6) == 4)
12701         return 1;
12702     }
12703   return 0;
12704 }
12705 _ACEOF
12706 if ac_fn_c_try_run "$LINENO"; then :
12707   gl_cv_func_mbrtowc_sanitycheck=yes
12708 else
12709   gl_cv_func_mbrtowc_sanitycheck=no
12710 fi
12711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12712   conftest.$ac_objext conftest.beam conftest.$ac_ext
12713 fi
12714
12715       fi
12716
12717 fi
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12719 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12720
12721     REPLACE_MBSTATE_T=0
12722     case "$gl_cv_func_mbrtowc_incomplete_state" in
12723       *yes) ;;
12724       *) REPLACE_MBSTATE_T=1 ;;
12725     esac
12726     case "$gl_cv_func_mbrtowc_sanitycheck" in
12727       *yes) ;;
12728       *) REPLACE_MBSTATE_T=1 ;;
12729     esac
12730   else
12731     REPLACE_MBSTATE_T=1
12732   fi
12733
12734
12735
12736   if test $ac_cv_func_mbsinit = no; then
12737     HAVE_MBSINIT=0
12738     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12739 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12740    <wchar.h>.
12741    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12742    included before <wchar.h>.  */
12743 #include <stddef.h>
12744 #include <stdio.h>
12745 #include <time.h>
12746 #include <wchar.h>
12747
12748 "
12749 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12750   ac_have_decl=1
12751 else
12752   ac_have_decl=0
12753 fi
12754
12755 cat >>confdefs.h <<_ACEOF
12756 #define HAVE_DECL_MBSINIT $ac_have_decl
12757 _ACEOF
12758
12759     if test $ac_cv_have_decl_mbsinit = yes; then
12760                         REPLACE_MBSINIT=1
12761     fi
12762   else
12763     if test $REPLACE_MBSTATE_T = 1; then
12764       REPLACE_MBSINIT=1
12765     else
12766                         case "$host_os" in
12767         mingw*) REPLACE_MBSINIT=1 ;;
12768       esac
12769     fi
12770   fi
12771
12772   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
12773
12774
12775
12776
12777
12778
12779
12780
12781   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
12782
12783
12784   :
12785
12786   fi
12787
12788
12789
12790
12791
12792           GNULIB_MBSINIT=1
12793
12794
12795
12796
12797
12798 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12813
12814
12815
12816      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12817 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12818 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12819   $as_echo_n "(cached) " >&6
12820 else
12821
12822                   case "$host_os" in
12823                      # Guess no on AIX and OSF/1.
12824         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12825                      # Guess yes otherwise.
12826         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12827       esac
12828       if test $LOCALE_JA != none; then
12829         if test "$cross_compiling" = yes; then :
12830   :
12831 else
12832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h.  */
12834
12835 #include <locale.h>
12836 #include <string.h>
12837 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12838    <wchar.h>.
12839    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12840    included before <wchar.h>.  */
12841 #include <stddef.h>
12842 #include <stdio.h>
12843 #include <time.h>
12844 #include <wchar.h>
12845 int main ()
12846 {
12847   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12848     {
12849       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12850       mbstate_t state;
12851       wchar_t wc;
12852
12853       memset (&state, '\0', sizeof (mbstate_t));
12854       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12855         if (mbsinit (&state))
12856           return 1;
12857     }
12858   return 0;
12859 }
12860 _ACEOF
12861 if ac_fn_c_try_run "$LINENO"; then :
12862   gl_cv_func_mbrtowc_incomplete_state=yes
12863 else
12864   gl_cv_func_mbrtowc_incomplete_state=no
12865 fi
12866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12867   conftest.$ac_objext conftest.beam conftest.$ac_ext
12868 fi
12869
12870       fi
12871
12872 fi
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12874 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12875
12876
12877
12878
12879      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12880 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12881 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12882   $as_echo_n "(cached) " >&6
12883 else
12884
12885                   case "$host_os" in
12886                     # Guess no on Solaris 8.
12887         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12888                     # Guess yes otherwise.
12889         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12890       esac
12891       if test $LOCALE_ZH_CN != none; then
12892         if test "$cross_compiling" = yes; then :
12893   :
12894 else
12895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h.  */
12897
12898 #include <locale.h>
12899 #include <stdlib.h>
12900 #include <string.h>
12901 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12902    <wchar.h>.
12903    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12904    included before <wchar.h>.  */
12905 #include <stddef.h>
12906 #include <stdio.h>
12907 #include <time.h>
12908 #include <wchar.h>
12909 int main ()
12910 {
12911   /* This fails on Solaris 8:
12912      mbrtowc returns 2, and sets wc to 0x00F0.
12913      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
12914   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12915     {
12916       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12917       mbstate_t state;
12918       wchar_t wc;
12919
12920       memset (&state, '\0', sizeof (mbstate_t));
12921       if (mbrtowc (&wc, input + 3, 6, &state) != 4
12922           && mbtowc (&wc, input + 3, 6) == 4)
12923         return 1;
12924     }
12925   return 0;
12926 }
12927 _ACEOF
12928 if ac_fn_c_try_run "$LINENO"; then :
12929   gl_cv_func_mbrtowc_sanitycheck=yes
12930 else
12931   gl_cv_func_mbrtowc_sanitycheck=no
12932 fi
12933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12934   conftest.$ac_objext conftest.beam conftest.$ac_ext
12935 fi
12936
12937       fi
12938
12939 fi
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12941 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12942
12943     REPLACE_MBSTATE_T=0
12944     case "$gl_cv_func_mbrtowc_incomplete_state" in
12945       *yes) ;;
12946       *) REPLACE_MBSTATE_T=1 ;;
12947     esac
12948     case "$gl_cv_func_mbrtowc_sanitycheck" in
12949       *yes) ;;
12950       *) REPLACE_MBSTATE_T=1 ;;
12951     esac
12952   else
12953     REPLACE_MBSTATE_T=1
12954   fi
12955
12956
12957
12958   if test $ac_cv_func_mbsrtowcs = no; then
12959     HAVE_MBSRTOWCS=0
12960     ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12961 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12962    <wchar.h>.
12963    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12964    included before <wchar.h>.  */
12965 #include <stddef.h>
12966 #include <stdio.h>
12967 #include <time.h>
12968 #include <wchar.h>
12969
12970 "
12971 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12972   ac_have_decl=1
12973 else
12974   ac_have_decl=0
12975 fi
12976
12977 cat >>confdefs.h <<_ACEOF
12978 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
12979 _ACEOF
12980
12981     if test $ac_cv_have_decl_mbsrtowcs = yes; then
12982                         REPLACE_MBSRTOWCS=1
12983     fi
12984   else
12985     if test $REPLACE_MBSTATE_T = 1; then
12986       REPLACE_MBSRTOWCS=1
12987     else
12988
12989
12990
12991
12992
12993
12994      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12995 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
12996 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
12997   $as_echo_n "(cached) " >&6
12998 else
12999
13000                   case "$host_os" in
13001                                    # Guess no on HP-UX, Solaris, mingw.
13002         hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13003                                    # Guess yes otherwise.
13004         *)                         gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13005       esac
13006       if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13007         if test "$cross_compiling" = yes; then :
13008   :
13009 else
13010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h.  */
13012
13013 #include <locale.h>
13014 #include <string.h>
13015 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13016    <wchar.h>.
13017    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13018    included before <wchar.h>.  */
13019 #include <stddef.h>
13020 #include <stdio.h>
13021 #include <time.h>
13022 #include <wchar.h>
13023 int main ()
13024 {
13025   int result = 0;
13026   /* Test whether the function supports a NULL destination argument.
13027      This fails on native Windows.  */
13028   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13029     {
13030       const char input[] = "\337er";
13031       const char *src = input;
13032       mbstate_t state;
13033
13034       memset (&state, '\0', sizeof (mbstate_t));
13035       if (mbsrtowcs (NULL, &src, 1, &state) != 3
13036           || src != input)
13037         result |= 1;
13038     }
13039   /* Test whether the function works when started with a conversion state
13040      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
13041   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13042     {
13043       const char input[] = "B\303\274\303\237er";
13044       mbstate_t state;
13045
13046       memset (&state, '\0', sizeof (mbstate_t));
13047       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13048         if (!mbsinit (&state))
13049           {
13050             const char *src = input + 2;
13051             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13052               result |= 2;
13053           }
13054     }
13055   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13056     {
13057       const char input[] = "<\306\374\313\334\270\354>";
13058       mbstate_t state;
13059
13060       memset (&state, '\0', sizeof (mbstate_t));
13061       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13062         if (!mbsinit (&state))
13063           {
13064             const char *src = input + 4;
13065             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13066               result |= 4;
13067           }
13068     }
13069   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13070     {
13071       const char input[] = "B\250\271\201\060\211\070er";
13072       mbstate_t state;
13073
13074       memset (&state, '\0', sizeof (mbstate_t));
13075       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13076         if (!mbsinit (&state))
13077           {
13078             const char *src = input + 2;
13079             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13080               result |= 8;
13081           }
13082     }
13083   return result;
13084 }
13085 _ACEOF
13086 if ac_fn_c_try_run "$LINENO"; then :
13087   gl_cv_func_mbsrtowcs_works=yes
13088 else
13089   gl_cv_func_mbsrtowcs_works=no
13090 fi
13091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13092   conftest.$ac_objext conftest.beam conftest.$ac_ext
13093 fi
13094
13095       fi
13096
13097 fi
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13099 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13100
13101       case "$gl_cv_func_mbsrtowcs_works" in
13102         *yes) ;;
13103         *) REPLACE_MBSRTOWCS=1 ;;
13104       esac
13105     fi
13106   fi
13107
13108   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
13109
13110
13111
13112
13113
13114
13115
13116
13117   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13128
13129
13130   :
13131
13132   fi
13133
13134
13135
13136
13137
13138           GNULIB_MBSRTOWCS=1
13139
13140
13141
13142
13143
13144 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
13145
13146
13147
13148
13149   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13150
13151
13152
13153
13154
13155
13156
13157
13158   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13159
13160
13161   for ac_header in bp-sym.h
13162 do :
13163   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13164 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13165   cat >>confdefs.h <<_ACEOF
13166 #define HAVE_BP_SYM_H 1
13167 _ACEOF
13168
13169 fi
13170
13171 done
13172
13173
13174   fi
13175
13176
13177
13178
13179
13180           GNULIB_MEMCHR=1
13181
13182
13183
13184
13185
13186 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13187
13188
13189
13190
13191
13192   if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13194 $as_echo_n "checking whether memmem works in linear time... " >&6; }
13195 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13196   $as_echo_n "(cached) " >&6
13197 else
13198   if test "$cross_compiling" = yes; then :
13199                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h.  */
13201
13202 #include <features.h>
13203 #ifdef __GNU_LIBRARY__
13204  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13205      && !defined __UCLIBC__
13206   Lucky user
13207  #endif
13208 #endif
13209 #ifdef __CYGWIN__
13210  #include <cygwin/version.h>
13211  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13212   Lucky user
13213  #endif
13214 #endif
13215
13216 _ACEOF
13217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13218   $EGREP "Lucky user" >/dev/null 2>&1; then :
13219   gl_cv_func_memmem_works_fast="guessing yes"
13220 else
13221   gl_cv_func_memmem_works_fast="guessing no"
13222 fi
13223 rm -f conftest*
13224
13225
13226 else
13227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h.  */
13229
13230 #include <signal.h> /* for signal */
13231 #include <string.h> /* for memmem */
13232 #include <stdlib.h> /* for malloc */
13233 #include <unistd.h> /* for alarm */
13234 static void quit (int sig) { exit (sig + 128); }
13235
13236 int
13237 main ()
13238 {
13239
13240     int result = 0;
13241     size_t m = 1000000;
13242     char *haystack = (char *) malloc (2 * m + 1);
13243     char *needle = (char *) malloc (m + 1);
13244     /* Failure to compile this test due to missing alarm is okay,
13245        since all such platforms (mingw) also lack memmem.  */
13246     signal (SIGALRM, quit);
13247     alarm (5);
13248     /* Check for quadratic performance.  */
13249     if (haystack && needle)
13250       {
13251         memset (haystack, 'A', 2 * m);
13252         haystack[2 * m] = 'B';
13253         memset (needle, 'A', m);
13254         needle[m] = 'B';
13255         if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13256           result |= 1;
13257       }
13258     return result;
13259
13260   ;
13261   return 0;
13262 }
13263 _ACEOF
13264 if ac_fn_c_try_run "$LINENO"; then :
13265   gl_cv_func_memmem_works_fast=yes
13266 else
13267   gl_cv_func_memmem_works_fast=no
13268 fi
13269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13270   conftest.$ac_objext conftest.beam conftest.$ac_ext
13271 fi
13272
13273
13274 fi
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13276 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13277     case "$gl_cv_func_memmem_works_fast" in
13278       *yes) ;;
13279       *)
13280         REPLACE_MEMMEM=1
13281         ;;
13282     esac
13283   fi
13284
13285   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13286
13287
13288
13289
13290
13291
13292
13293
13294   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13295
13296   fi
13297
13298
13299
13300
13301   for ac_func in memmem
13302 do :
13303   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13304 if test "x$ac_cv_func_memmem" = x""yes; then :
13305   cat >>confdefs.h <<_ACEOF
13306 #define HAVE_MEMMEM 1
13307 _ACEOF
13308
13309 fi
13310 done
13311
13312   if test $ac_cv_func_memmem = yes; then
13313     HAVE_MEMMEM=1
13314   else
13315     HAVE_MEMMEM=0
13316   fi
13317
13318   if test $ac_cv_have_decl_memmem = no; then
13319     HAVE_DECL_MEMMEM=0
13320   else
13321             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13322 $as_echo_n "checking whether memmem works... " >&6; }
13323 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13324   $as_echo_n "(cached) " >&6
13325 else
13326   if test "$cross_compiling" = yes; then :
13327                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h.  */
13329
13330 #ifdef __GNU_LIBRARY__
13331  #include <features.h>
13332  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13333                           || __GLIBC_MINOR__ > 12)) \
13334       || (__GLIBC__ > 2)) \
13335      || defined __UCLIBC__
13336   Lucky user
13337  #endif
13338 #elif defined __CYGWIN__
13339  #include <cygwin/version.h>
13340  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13341   Lucky user
13342  #endif
13343 #else
13344   Lucky user
13345 #endif
13346
13347 _ACEOF
13348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13349   $EGREP "Lucky user" >/dev/null 2>&1; then :
13350   gl_cv_func_memmem_works_always="guessing yes"
13351 else
13352   gl_cv_func_memmem_works_always="guessing no"
13353 fi
13354 rm -f conftest*
13355
13356
13357 else
13358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h.  */
13360
13361 #include <string.h> /* for memmem */
13362 #define P "_EF_BF_BD"
13363 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13364 #define NEEDLE P P P P P
13365
13366 int
13367 main ()
13368 {
13369
13370     int result = 0;
13371     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13372       result |= 1;
13373     /* Check for empty needle behavior.  */
13374     {
13375       const char *haystack = "AAA";
13376       if (memmem (haystack, 3, NULL, 0) != haystack)
13377         result |= 2;
13378     }
13379     return result;
13380
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 if ac_fn_c_try_run "$LINENO"; then :
13386   gl_cv_func_memmem_works_always=yes
13387 else
13388   gl_cv_func_memmem_works_always=no
13389 fi
13390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13391   conftest.$ac_objext conftest.beam conftest.$ac_ext
13392 fi
13393
13394
13395 fi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13397 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13398     case "$gl_cv_func_memmem_works_always" in
13399       *yes) ;;
13400       *)
13401         REPLACE_MEMMEM=1
13402         ;;
13403     esac
13404   fi
13405   :
13406
13407   if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13408
13409
13410
13411
13412
13413
13414
13415
13416   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13417
13418   fi
13419
13420
13421
13422
13423
13424           GNULIB_MEMMEM=1
13425
13426
13427
13428
13429
13430 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
13431
13432
13433
13434
13435
13436
13437
13438
13439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13440 $as_echo_n "checking for ssize_t... " >&6; }
13441 if test "${gt_cv_ssize_t+set}" = set; then :
13442   $as_echo_n "(cached) " >&6
13443 else
13444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h.  */
13446 #include <sys/types.h>
13447 int
13448 main ()
13449 {
13450 int x = sizeof (ssize_t *) + sizeof (ssize_t);
13451             return !x;
13452   ;
13453   return 0;
13454 }
13455 _ACEOF
13456 if ac_fn_c_try_compile "$LINENO"; then :
13457   gt_cv_ssize_t=yes
13458 else
13459   gt_cv_ssize_t=no
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13464 $as_echo "$gt_cv_ssize_t" >&6; }
13465   if test $gt_cv_ssize_t = no; then
13466
13467 $as_echo "#define ssize_t int" >>confdefs.h
13468
13469   fi
13470
13471
13472
13473
13474   # Define two additional variables used in the Makefile substitution.
13475
13476   if test "$ac_cv_header_stdbool_h" = yes; then
13477     STDBOOL_H=''
13478   else
13479     STDBOOL_H='stdbool.h'
13480   fi
13481
13482    if test -n "$STDBOOL_H"; then
13483   GL_GENERATE_STDBOOL_H_TRUE=
13484   GL_GENERATE_STDBOOL_H_FALSE='#'
13485 else
13486   GL_GENERATE_STDBOOL_H_TRUE='#'
13487   GL_GENERATE_STDBOOL_H_FALSE=
13488 fi
13489
13490
13491   if test "$ac_cv_type__Bool" = yes; then
13492     HAVE__BOOL=1
13493   else
13494     HAVE__BOOL=0
13495   fi
13496
13497
13498
13499
13500
13501   STDDEF_H=
13502   if test $gt_cv_c_wchar_t = no; then
13503     HAVE_WCHAR_T=0
13504     STDDEF_H=stddef.h
13505   fi
13506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13507 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13508 if test "${gl_cv_decl_null_works+set}" = set; then :
13509   $as_echo_n "(cached) " >&6
13510 else
13511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h.  */
13513 #include <stddef.h>
13514       int test[2 * (sizeof NULL == sizeof (void *)) -1];
13515
13516 int
13517 main ()
13518 {
13519
13520   ;
13521   return 0;
13522 }
13523 _ACEOF
13524 if ac_fn_c_try_compile "$LINENO"; then :
13525   gl_cv_decl_null_works=yes
13526 else
13527   gl_cv_decl_null_works=no
13528 fi
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13532 $as_echo "$gl_cv_decl_null_works" >&6; }
13533   if test $gl_cv_decl_null_works = no; then
13534     REPLACE_NULL=1
13535     STDDEF_H=stddef.h
13536   fi
13537
13538    if test -n "$STDDEF_H"; then
13539   GL_GENERATE_STDDEF_H_TRUE=
13540   GL_GENERATE_STDDEF_H_FALSE='#'
13541 else
13542   GL_GENERATE_STDDEF_H_TRUE='#'
13543   GL_GENERATE_STDDEF_H_FALSE=
13544 fi
13545
13546   if test -n "$STDDEF_H"; then
13547
13548
13549
13550
13551
13552
13553
13554
13555      if test $gl_cv_have_include_next = yes; then
13556        gl_cv_next_stddef_h='<'stddef.h'>'
13557      else
13558        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13559 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13560 if test "${gl_cv_next_stddef_h+set}" = set; then :
13561   $as_echo_n "(cached) " >&6
13562 else
13563
13564                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h.  */
13566 #include <stddef.h>
13567
13568 _ACEOF
13569                                                                                                                         case "$host_os" in
13570                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
13571                  *)    gl_absname_cpp="$ac_cpp" ;;
13572                esac
13573
13574                case "$host_os" in
13575                  mingw*)
13576                                                                                                                                      gl_dirsep_regex='[/\\]'
13577                    ;;
13578                  *)
13579                    gl_dirsep_regex='\/'
13580                    ;;
13581                esac
13582                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13583
13584                gl_header_literal_regex=`echo 'stddef.h' \
13585                                         | sed -e "$gl_make_literal_regex_sed"`
13586                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13587                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13588                    s|^/[^/]|//&|
13589                    p
13590                    q
13591                  }'
13592                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13593                       sed -n "$gl_absolute_header_sed"`'"'
13594
13595
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13598 $as_echo "$gl_cv_next_stddef_h" >&6; }
13599      fi
13600      NEXT_STDDEF_H=$gl_cv_next_stddef_h
13601
13602      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13603        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13604        gl_next_as_first_directive='<'stddef.h'>'
13605      else
13606        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13607        gl_next_as_first_directive=$gl_cv_next_stddef_h
13608      fi
13609      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13610
13611
13612
13613
13614   fi
13615
13616
13617
13618
13619
13620
13621
13622   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
13623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
13624 $as_echo_n "checking for working strerror function... " >&6; }
13625 if test "${gl_cv_func_working_strerror+set}" = set; then :
13626   $as_echo_n "(cached) " >&6
13627 else
13628   if test "$cross_compiling" = yes; then :
13629   case "$host_os" in
13630                    # Guess yes on glibc systems.
13631            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
13632                    # If we don't know, assume the worst.
13633            *)      gl_cv_func_working_strerror="guessing no" ;;
13634          esac
13635
13636 else
13637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h.  */
13639 #include <string.h>
13640
13641 int
13642 main ()
13643 {
13644 if (!*strerror (-2)) return 1;
13645   ;
13646   return 0;
13647 }
13648 _ACEOF
13649 if ac_fn_c_try_run "$LINENO"; then :
13650   gl_cv_func_working_strerror=yes
13651 else
13652   gl_cv_func_working_strerror=no
13653 fi
13654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13655   conftest.$ac_objext conftest.beam conftest.$ac_ext
13656 fi
13657
13658
13659 fi
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
13661 $as_echo "$gl_cv_func_working_strerror" >&6; }
13662     case "$gl_cv_func_working_strerror" in
13663       *yes) ;;
13664       *)
13665                         REPLACE_STRERROR=1
13666         ;;
13667     esac
13668
13669   else
13670             REPLACE_STRERROR=1
13671   fi
13672
13673   if test $REPLACE_STRERROR = 1; then
13674
13675
13676
13677
13678
13679
13680
13681
13682   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
13683
13684   fi
13685
13686
13687 cat >>confdefs.h <<_ACEOF
13688 #define GNULIB_STRERROR 1
13689 _ACEOF
13690
13691
13692
13693
13694
13695
13696
13697           GNULIB_STRERROR=1
13698
13699
13700
13701
13702
13703 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
13704
13705
13706
13707
13708
13709   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
13710
13711
13712
13713
13714
13715
13716
13717
13718   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
13719
13720
13721
13722
13723
13724   if test $ac_cv_header_sys_socket_h != yes; then
13725                     for ac_header in winsock2.h
13726 do :
13727   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13728 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
13729   cat >>confdefs.h <<_ACEOF
13730 #define HAVE_WINSOCK2_H 1
13731 _ACEOF
13732
13733 fi
13734
13735 done
13736
13737   fi
13738   if test "$ac_cv_header_winsock2_h" = yes; then
13739     HAVE_WINSOCK2_H=1
13740     UNISTD_H_HAVE_WINSOCK2_H=1
13741     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
13742   else
13743     HAVE_WINSOCK2_H=0
13744   fi
13745
13746
13747   fi
13748
13749
13750
13751
13752
13753   if test $REPLACE_STRSTR = 0; then
13754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
13755 $as_echo_n "checking whether strstr works in linear time... " >&6; }
13756 if test "${gl_cv_func_strstr_linear+set}" = set; then :
13757   $as_echo_n "(cached) " >&6
13758 else
13759   if test "$cross_compiling" = yes; then :
13760                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h.  */
13762
13763 #include <features.h>
13764 #ifdef __GNU_LIBRARY__
13765  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13766      && !(defined __i386__ || defined __x86_64__) \
13767      && !defined __UCLIBC__
13768   Lucky user
13769  #endif
13770 #endif
13771 #ifdef __CYGWIN__
13772  #include <cygwin/version.h>
13773  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13774   Lucky user
13775  #endif
13776 #endif
13777
13778 _ACEOF
13779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780   $EGREP "Lucky user" >/dev/null 2>&1; then :
13781   gl_cv_func_strstr_linear="guessing yes"
13782 else
13783   gl_cv_func_strstr_linear="guessing no"
13784 fi
13785 rm -f conftest*
13786
13787
13788 else
13789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h.  */
13791
13792 #include <signal.h> /* for signal */
13793 #include <string.h> /* for strstr */
13794 #include <stdlib.h> /* for malloc */
13795 #include <unistd.h> /* for alarm */
13796 static void quit (int sig) { exit (sig + 128); }
13797
13798 int
13799 main ()
13800 {
13801
13802     int result = 0;
13803     size_t m = 1000000;
13804     char *haystack = (char *) malloc (2 * m + 2);
13805     char *needle = (char *) malloc (m + 2);
13806     /* Failure to compile this test due to missing alarm is okay,
13807        since all such platforms (mingw) also have quadratic strstr.  */
13808     signal (SIGALRM, quit);
13809     alarm (5);
13810     /* Check for quadratic performance.  */
13811     if (haystack && needle)
13812       {
13813         memset (haystack, 'A', 2 * m);
13814         haystack[2 * m] = 'B';
13815         haystack[2 * m + 1] = 0;
13816         memset (needle, 'A', m);
13817         needle[m] = 'B';
13818         needle[m + 1] = 0;
13819         if (!strstr (haystack, needle))
13820           result |= 1;
13821       }
13822     return result;
13823
13824   ;
13825   return 0;
13826 }
13827 _ACEOF
13828 if ac_fn_c_try_run "$LINENO"; then :
13829   gl_cv_func_strstr_linear=yes
13830 else
13831   gl_cv_func_strstr_linear=no
13832 fi
13833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13834   conftest.$ac_objext conftest.beam conftest.$ac_ext
13835 fi
13836
13837
13838 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
13840 $as_echo "$gl_cv_func_strstr_linear" >&6; }
13841     case "$gl_cv_func_strstr_linear" in
13842       *yes) ;;
13843       *)
13844         REPLACE_STRSTR=1
13845         ;;
13846     esac
13847   fi
13848
13849   if test $REPLACE_STRSTR = 1; then
13850
13851
13852
13853
13854
13855
13856
13857
13858   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
13859
13860   fi
13861
13862
13863
13864   if test "$gl_cv_func_memchr_works" != yes; then
13865     REPLACE_STRSTR=1
13866   else
13867         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13868 $as_echo_n "checking whether strstr works... " >&6; }
13869 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
13870   $as_echo_n "(cached) " >&6
13871 else
13872   if test "$cross_compiling" = yes; then :
13873                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h.  */
13875
13876 #ifdef __GNU_LIBRARY__
13877  #include <features.h>
13878  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13879      || defined __UCLIBC__
13880   Lucky user
13881  #endif
13882 #elif defined __CYGWIN__
13883  #include <cygwin/version.h>
13884  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13885   Lucky user
13886  #endif
13887 #else
13888   Lucky user
13889 #endif
13890
13891 _ACEOF
13892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13893   $EGREP "Lucky user" >/dev/null 2>&1; then :
13894   gl_cv_func_strstr_works_always="guessing yes"
13895 else
13896   gl_cv_func_strstr_works_always="guessing no"
13897 fi
13898 rm -f conftest*
13899
13900
13901 else
13902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h.  */
13904
13905 #include <string.h> /* for strstr */
13906 #define P "_EF_BF_BD"
13907 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13908 #define NEEDLE P P P P P
13909
13910 int
13911 main ()
13912 {
13913 return !!strstr (HAYSTACK, NEEDLE);
13914
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_run "$LINENO"; then :
13920   gl_cv_func_strstr_works_always=yes
13921 else
13922   gl_cv_func_strstr_works_always=no
13923 fi
13924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13925   conftest.$ac_objext conftest.beam conftest.$ac_ext
13926 fi
13927
13928
13929 fi
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
13931 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
13932     case "$gl_cv_func_strstr_works_always" in
13933       *yes) ;;
13934       *)
13935         REPLACE_STRSTR=1
13936         ;;
13937     esac
13938   fi
13939
13940   if test $REPLACE_STRSTR = 1; then
13941
13942
13943
13944
13945
13946
13947
13948
13949   gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
13950
13951   fi
13952
13953
13954
13955
13956
13957           GNULIB_STRSTR=1
13958
13959
13960
13961
13962
13963 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977      if test $gl_cv_have_include_next = yes; then
13978        gl_cv_next_sys_types_h='<'sys/types.h'>'
13979      else
13980        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13981 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13982 if test "${gl_cv_next_sys_types_h+set}" = set; then :
13983   $as_echo_n "(cached) " >&6
13984 else
13985
13986                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h.  */
13988 #include <sys/types.h>
13989
13990 _ACEOF
13991                                                                                                                         case "$host_os" in
13992                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
13993                  *)    gl_absname_cpp="$ac_cpp" ;;
13994                esac
13995
13996                case "$host_os" in
13997                  mingw*)
13998                                                                                                                                      gl_dirsep_regex='[/\\]'
13999                    ;;
14000                  *)
14001                    gl_dirsep_regex='\/'
14002                    ;;
14003                esac
14004                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14005
14006                gl_header_literal_regex=`echo 'sys/types.h' \
14007                                         | sed -e "$gl_make_literal_regex_sed"`
14008                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14009                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14010                    s|^/[^/]|//&|
14011                    p
14012                    q
14013                  }'
14014                                                             gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14015                       sed -n "$gl_absolute_header_sed"`'"'
14016
14017
14018 fi
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14020 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14021      fi
14022      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14023
14024      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14025        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14026        gl_next_as_first_directive='<'sys/types.h'>'
14027      else
14028        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14029        gl_next_as_first_directive=$gl_cv_next_sys_types_h
14030      fi
14031      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057      if test $gl_cv_have_include_next = yes; then
14058        gl_cv_next_unistd_h='<'unistd.h'>'
14059      else
14060        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14061 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14062 if test "${gl_cv_next_unistd_h+set}" = set; then :
14063   $as_echo_n "(cached) " >&6
14064 else
14065
14066              if test $ac_cv_header_unistd_h = yes; then
14067
14068
14069                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h.  */
14071 #include <unistd.h>
14072
14073 _ACEOF
14074                                                                                                                         case "$host_os" in
14075                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
14076                  *)    gl_absname_cpp="$ac_cpp" ;;
14077                esac
14078
14079                case "$host_os" in
14080                  mingw*)
14081                                                                                                                                      gl_dirsep_regex='[/\\]'
14082                    ;;
14083                  *)
14084                    gl_dirsep_regex='\/'
14085                    ;;
14086                esac
14087                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14088
14089                gl_header_literal_regex=`echo 'unistd.h' \
14090                                         | sed -e "$gl_make_literal_regex_sed"`
14091                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14092                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14093                    s|^/[^/]|//&|
14094                    p
14095                    q
14096                  }'
14097                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14098                       sed -n "$gl_absolute_header_sed"`'"'
14099           else
14100                gl_cv_next_unistd_h='<'unistd.h'>'
14101              fi
14102
14103
14104 fi
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14106 $as_echo "$gl_cv_next_unistd_h" >&6; }
14107      fi
14108      NEXT_UNISTD_H=$gl_cv_next_unistd_h
14109
14110      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14111        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14112        gl_next_as_first_directive='<'unistd.h'>'
14113      else
14114        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14115        gl_next_as_first_directive=$gl_cv_next_unistd_h
14116      fi
14117      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14118
14119
14120
14121
14122   if test $ac_cv_header_unistd_h = yes; then
14123     HAVE_UNISTD_H=1
14124   else
14125     HAVE_UNISTD_H=0
14126   fi
14127
14128
14129
14130
14131
14132
14133
14134     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
14135     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14137 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14138 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14139   $as_echo_n "(cached) " >&6
14140 else
14141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h.  */
14143
14144 #if HAVE_UNISTD_H
14145 # include <unistd.h>
14146 #endif
14147 /* Some systems declare various items in the wrong headers.  */
14148 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14149 # include <fcntl.h>
14150 # include <stdio.h>
14151 # include <stdlib.h>
14152 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14153 #  include <io.h>
14154 # endif
14155 #endif
14156
14157 int
14158 main ()
14159 {
14160 #undef $gl_func
14161   (void) $gl_func;
14162   ;
14163   return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_c_try_compile "$LINENO"; then :
14167   eval "$as_gl_Symbol=yes"
14168 else
14169   eval "$as_gl_Symbol=no"
14170 fi
14171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 fi
14173 eval ac_res=\$$as_gl_Symbol
14174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14175 $as_echo "$ac_res" >&6; }
14176     eval as_val=\$$as_gl_Symbol
14177    if test "x$as_val" = x""yes; then :
14178   cat >>confdefs.h <<_ACEOF
14179 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14180 _ACEOF
14181
14182                      eval ac_cv_have_decl_$gl_func=yes
14183 fi
14184       done
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199      if test $gl_cv_have_include_next = yes; then
14200        gl_cv_next_wchar_h='<'wchar.h'>'
14201      else
14202        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14203 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14204 if test "${gl_cv_next_wchar_h+set}" = set; then :
14205   $as_echo_n "(cached) " >&6
14206 else
14207
14208              if test $ac_cv_header_wchar_h = yes; then
14209
14210
14211                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h.  */
14213 #include <wchar.h>
14214
14215 _ACEOF
14216                                                                                                                         case "$host_os" in
14217                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
14218                  *)    gl_absname_cpp="$ac_cpp" ;;
14219                esac
14220
14221                case "$host_os" in
14222                  mingw*)
14223                                                                                                                                      gl_dirsep_regex='[/\\]'
14224                    ;;
14225                  *)
14226                    gl_dirsep_regex='\/'
14227                    ;;
14228                esac
14229                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14230
14231                gl_header_literal_regex=`echo 'wchar.h' \
14232                                         | sed -e "$gl_make_literal_regex_sed"`
14233                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14234                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14235                    s|^/[^/]|//&|
14236                    p
14237                    q
14238                  }'
14239                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14240                       sed -n "$gl_absolute_header_sed"`'"'
14241           else
14242                gl_cv_next_wchar_h='<'wchar.h'>'
14243              fi
14244
14245
14246 fi
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14248 $as_echo "$gl_cv_next_wchar_h" >&6; }
14249      fi
14250      NEXT_WCHAR_H=$gl_cv_next_wchar_h
14251
14252      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14253        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14254        gl_next_as_first_directive='<'wchar.h'>'
14255      else
14256        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14257        gl_next_as_first_directive=$gl_cv_next_wchar_h
14258      fi
14259      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14260
14261
14262
14263
14264   if test $ac_cv_header_wchar_h = yes; then
14265     HAVE_WCHAR_H=1
14266   else
14267     HAVE_WCHAR_H=0
14268   fi
14269
14270
14271
14272
14273
14274   if test $gt_cv_c_wint_t = yes; then
14275     HAVE_WINT_T=1
14276   else
14277     HAVE_WINT_T=0
14278   fi
14279
14280
14281
14282     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
14283     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14285 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14286 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14287   $as_echo_n "(cached) " >&6
14288 else
14289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h.  */
14291
14292 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14293    <wchar.h>.
14294    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14295    included before <wchar.h>.  */
14296 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14297 # include <stddef.h>
14298 # include <stdio.h>
14299 # include <time.h>
14300 #endif
14301 #include <wchar.h>
14302
14303 int
14304 main ()
14305 {
14306 #undef $gl_func
14307   (void) $gl_func;
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 if ac_fn_c_try_compile "$LINENO"; then :
14313   eval "$as_gl_Symbol=yes"
14314 else
14315   eval "$as_gl_Symbol=no"
14316 fi
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14318 fi
14319 eval ac_res=\$$as_gl_Symbol
14320                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14321 $as_echo "$ac_res" >&6; }
14322     eval as_val=\$$as_gl_Symbol
14323    if test "x$as_val" = x""yes; then :
14324   cat >>confdefs.h <<_ACEOF
14325 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14326 _ACEOF
14327
14328                      eval ac_cv_have_decl_$gl_func=yes
14329 fi
14330       done
14331
14332
14333
14334
14335
14336
14337
14338   if test $ac_cv_func_iswcntrl = yes; then
14339     HAVE_ISWCNTRL=1
14340   else
14341     HAVE_ISWCNTRL=0
14342   fi
14343
14344
14345
14346   if test $gt_cv_c_wint_t = yes; then
14347     HAVE_WINT_T=1
14348   else
14349     HAVE_WINT_T=0
14350   fi
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362      if test $gl_cv_have_include_next = yes; then
14363        gl_cv_next_wctype_h='<'wctype.h'>'
14364      else
14365        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
14366 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
14367 if test "${gl_cv_next_wctype_h+set}" = set; then :
14368   $as_echo_n "(cached) " >&6
14369 else
14370
14371              if test $ac_cv_header_wctype_h = yes; then
14372
14373
14374                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h.  */
14376 #include <wctype.h>
14377
14378 _ACEOF
14379                                                                                                                         case "$host_os" in
14380                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
14381                  *)    gl_absname_cpp="$ac_cpp" ;;
14382                esac
14383
14384                case "$host_os" in
14385                  mingw*)
14386                                                                                                                                      gl_dirsep_regex='[/\\]'
14387                    ;;
14388                  *)
14389                    gl_dirsep_regex='\/'
14390                    ;;
14391                esac
14392                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14393
14394                gl_header_literal_regex=`echo 'wctype.h' \
14395                                         | sed -e "$gl_make_literal_regex_sed"`
14396                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14397                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14398                    s|^/[^/]|//&|
14399                    p
14400                    q
14401                  }'
14402                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14403                       sed -n "$gl_absolute_header_sed"`'"'
14404           else
14405                gl_cv_next_wctype_h='<'wctype.h'>'
14406              fi
14407
14408
14409 fi
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
14411 $as_echo "$gl_cv_next_wctype_h" >&6; }
14412      fi
14413      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
14414
14415      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14416        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14417        gl_next_as_first_directive='<'wctype.h'>'
14418      else
14419        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14420        gl_next_as_first_directive=$gl_cv_next_wctype_h
14421      fi
14422      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
14423
14424
14425
14426
14427   if test $ac_cv_header_wctype_h = yes; then
14428     if test $ac_cv_func_iswcntrl = yes; then
14429                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
14430 $as_echo_n "checking whether iswcntrl works... " >&6; }
14431 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
14432   $as_echo_n "(cached) " >&6
14433 else
14434
14435           if test "$cross_compiling" = yes; then :
14436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h.  */
14438 #include <stdlib.h>
14439                           #if __GNU_LIBRARY__ == 1
14440                           Linux libc5 i18n is broken.
14441                           #endif
14442 int
14443 main ()
14444 {
14445
14446   ;
14447   return 0;
14448 }
14449 _ACEOF
14450 if ac_fn_c_try_compile "$LINENO"; then :
14451   gl_cv_func_iswcntrl_works="guessing yes"
14452 else
14453   gl_cv_func_iswcntrl_works="guessing no"
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456
14457 else
14458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h.  */
14460
14461                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14462                   included before <wchar.h>.
14463                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14464                   must be included before <wchar.h>.  */
14465                #include <stddef.h>
14466                #include <stdio.h>
14467                #include <time.h>
14468                #include <wchar.h>
14469                #include <wctype.h>
14470                int main () { return iswprint ('x') == 0; }
14471
14472 _ACEOF
14473 if ac_fn_c_try_run "$LINENO"; then :
14474   gl_cv_func_iswcntrl_works=yes
14475 else
14476   gl_cv_func_iswcntrl_works=no
14477 fi
14478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14479   conftest.$ac_objext conftest.beam conftest.$ac_ext
14480 fi
14481
14482
14483 fi
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
14485 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
14486     fi
14487     HAVE_WCTYPE_H=1
14488   else
14489     HAVE_WCTYPE_H=0
14490   fi
14491
14492
14493   case "$gl_cv_func_iswcntrl_works" in
14494     *yes) REPLACE_ISWCNTRL=0 ;;
14495     *)    REPLACE_ISWCNTRL=1 ;;
14496   esac
14497
14498
14499   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
14500         :
14501   fi
14502
14503   if test $REPLACE_ISWCNTRL = 1; then
14504     REPLACE_TOWLOWER=1
14505   else
14506     for ac_func in towlower
14507 do :
14508   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
14509 if test "x$ac_cv_func_towlower" = x""yes; then :
14510   cat >>confdefs.h <<_ACEOF
14511 #define HAVE_TOWLOWER 1
14512 _ACEOF
14513
14514 fi
14515 done
14516
14517     if test $ac_cv_func_towlower = yes; then
14518       REPLACE_TOWLOWER=0
14519     else
14520       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14521              included before <wchar.h>.
14522              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14523              must be included before <wchar.h>.  */
14524           #include <stddef.h>
14525           #include <stdio.h>
14526           #include <time.h>
14527           #include <wchar.h>
14528           #if HAVE_WCTYPE_H
14529           # include <wctype.h>
14530           #endif
14531
14532 "
14533 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
14534   ac_have_decl=1
14535 else
14536   ac_have_decl=0
14537 fi
14538
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_DECL_TOWLOWER $ac_have_decl
14541 _ACEOF
14542
14543       if test $ac_cv_have_decl_towlower = yes; then
14544                                 REPLACE_TOWLOWER=1
14545       else
14546         REPLACE_TOWLOWER=0
14547       fi
14548     fi
14549   fi
14550
14551
14552   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
14553         :
14554   fi
14555
14556           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
14557 $as_echo_n "checking for wctype_t... " >&6; }
14558 if test "${gl_cv_type_wctype_t+set}" = set; then :
14559   $as_echo_n "(cached) " >&6
14560 else
14561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h.  */
14563 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14564                included before <wchar.h>.
14565                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14566                must be included before <wchar.h>.  */
14567             #include <stddef.h>
14568             #include <stdio.h>
14569             #include <time.h>
14570             #include <wchar.h>
14571             #if HAVE_WCTYPE_H
14572             # include <wctype.h>
14573             #endif
14574             wctype_t a;
14575
14576 int
14577 main ()
14578 {
14579
14580   ;
14581   return 0;
14582 }
14583 _ACEOF
14584 if ac_fn_c_try_compile "$LINENO"; then :
14585   gl_cv_type_wctype_t=yes
14586 else
14587   gl_cv_type_wctype_t=no
14588 fi
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590
14591 fi
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
14593 $as_echo "$gl_cv_type_wctype_t" >&6; }
14594   if test $gl_cv_type_wctype_t = no; then
14595     HAVE_WCTYPE_T=0
14596   fi
14597
14598       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
14599 $as_echo_n "checking for wctrans_t... " >&6; }
14600 if test "${gl_cv_type_wctrans_t+set}" = set; then :
14601   $as_echo_n "(cached) " >&6
14602 else
14603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h.  */
14605 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14606                included before <wchar.h>.
14607                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14608                must be included before <wchar.h>.  */
14609             #include <stddef.h>
14610             #include <stdio.h>
14611             #include <time.h>
14612             #include <wchar.h>
14613             #include <wctype.h>
14614             wctrans_t a;
14615
14616 int
14617 main ()
14618 {
14619
14620   ;
14621   return 0;
14622 }
14623 _ACEOF
14624 if ac_fn_c_try_compile "$LINENO"; then :
14625   gl_cv_type_wctrans_t=yes
14626 else
14627   gl_cv_type_wctrans_t=no
14628 fi
14629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14630
14631 fi
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
14633 $as_echo "$gl_cv_type_wctrans_t" >&6; }
14634   if test $gl_cv_type_wctrans_t = no; then
14635     HAVE_WCTRANS_T=0
14636   fi
14637
14638
14639     for gl_func in wctype iswctype wctrans towctrans     ; do
14640     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14642 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14643 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14644   $as_echo_n "(cached) " >&6
14645 else
14646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h.  */
14648
14649 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14650    <wchar.h>.
14651    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14652    included before <wchar.h>.  */
14653 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14654 # include <stddef.h>
14655 # include <stdio.h>
14656 # include <time.h>
14657 # include <wchar.h>
14658 #endif
14659 #include <wctype.h>
14660
14661 int
14662 main ()
14663 {
14664 #undef $gl_func
14665   (void) $gl_func;
14666   ;
14667   return 0;
14668 }
14669 _ACEOF
14670 if ac_fn_c_try_compile "$LINENO"; then :
14671   eval "$as_gl_Symbol=yes"
14672 else
14673   eval "$as_gl_Symbol=no"
14674 fi
14675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14676 fi
14677 eval ac_res=\$$as_gl_Symbol
14678                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14679 $as_echo "$ac_res" >&6; }
14680     eval as_val=\$$as_gl_Symbol
14681    if test "x$as_val" = x""yes; then :
14682   cat >>confdefs.h <<_ACEOF
14683 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14684 _ACEOF
14685
14686                      eval ac_cv_have_decl_$gl_func=yes
14687 fi
14688       done
14689
14690
14691   # End of code from modules
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701   gltests_libdeps=
14702   gltests_ltlibdeps=
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712   gl_source_base='tests'
14713   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
14714
14715   gl_module_indicator_condition=$gltests_WITNESS
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725   LIBGNU_LIBDEPS="$gl_libdeps"
14726
14727   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
14728
14729
14730
14731 # We don't use automake, but gnulib does.  This line lets us generate
14732 # its Makefile.in.
14733 am__api_version='1.11'
14734
14735 # Find a good install program.  We prefer a C program (faster),
14736 # so one script is as good as another.  But avoid the broken or
14737 # incompatible versions:
14738 # SysV /etc/install, /usr/sbin/install
14739 # SunOS /usr/etc/install
14740 # IRIX /sbin/install
14741 # AIX /bin/install
14742 # AmigaOS /C/install, which installs bootblocks on floppy discs
14743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14746 # OS/2's system install, which has a completely different semantic
14747 # ./install, which can be erroneously created by make from ./install.sh.
14748 # Reject install programs that cannot install multiple files.
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14751 if test -z "$INSTALL"; then
14752 if test "${ac_cv_path_install+set}" = set; then :
14753   $as_echo_n "(cached) " >&6
14754 else
14755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14757 do
14758   IFS=$as_save_IFS
14759   test -z "$as_dir" && as_dir=.
14760     # Account for people who put trailing slashes in PATH elements.
14761 case $as_dir/ in #((
14762   ./ | .// | /[cC]/* | \
14763   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14764   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14765   /usr/ucb/* ) ;;
14766   *)
14767     # OSF1 and SCO ODT 3.0 have their own names for install.
14768     # Don't use installbsd from OSF since it installs stuff as root
14769     # by default.
14770     for ac_prog in ginstall scoinst install; do
14771       for ac_exec_ext in '' $ac_executable_extensions; do
14772         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14773           if test $ac_prog = install &&
14774             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14775             # AIX install.  It has an incompatible calling convention.
14776             :
14777           elif test $ac_prog = install &&
14778             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14779             # program-specific install script used by HP pwplus--don't use.
14780             :
14781           else
14782             rm -rf conftest.one conftest.two conftest.dir
14783             echo one > conftest.one
14784             echo two > conftest.two
14785             mkdir conftest.dir
14786             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14787               test -s conftest.one && test -s conftest.two &&
14788               test -s conftest.dir/conftest.one &&
14789               test -s conftest.dir/conftest.two
14790             then
14791               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14792               break 3
14793             fi
14794           fi
14795         fi
14796       done
14797     done
14798     ;;
14799 esac
14800
14801   done
14802 IFS=$as_save_IFS
14803
14804 rm -rf conftest.one conftest.two conftest.dir
14805
14806 fi
14807   if test "${ac_cv_path_install+set}" = set; then
14808     INSTALL=$ac_cv_path_install
14809   else
14810     # As a last resort, use the slow shell script.  Don't cache a
14811     # value for INSTALL within a source directory, because that will
14812     # break other packages using the cache if that directory is
14813     # removed, or if the value is a relative name.
14814     INSTALL=$ac_install_sh
14815   fi
14816 fi
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14818 $as_echo "$INSTALL" >&6; }
14819
14820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14821 # It thinks the first close brace ends the variable substitution.
14822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14823
14824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14825
14826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14827
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14829 $as_echo_n "checking whether build environment is sane... " >&6; }
14830 # Just in case
14831 sleep 1
14832 echo timestamp > conftest.file
14833 # Reject unsafe characters in $srcdir or the absolute working directory
14834 # name.  Accept space and tab only in the latter.
14835 am_lf='
14836 '
14837 case `pwd` in
14838   *[\\\"\#\$\&\'\`$am_lf]*)
14839     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
14840 esac
14841 case $srcdir in
14842   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
14843     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
14844 esac
14845
14846 # Do `set' in a subshell so we don't clobber the current shell's
14847 # arguments.  Must try -L first in case configure is actually a
14848 # symlink; some systems play weird games with the mod time of symlinks
14849 # (eg FreeBSD returns the mod time of the symlink's containing
14850 # directory).
14851 if (
14852    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14853    if test "$*" = "X"; then
14854       # -L didn't work.
14855       set X `ls -t "$srcdir/configure" conftest.file`
14856    fi
14857    rm -f conftest.file
14858    if test "$*" != "X $srcdir/configure conftest.file" \
14859       && test "$*" != "X conftest.file $srcdir/configure"; then
14860
14861       # If neither matched, then we have a broken ls.  This can happen
14862       # if, for instance, CONFIG_SHELL is bash and it inherits a
14863       # broken ls alias from the environment.  This has actually
14864       # happened.  Such a system could not be considered "sane".
14865       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
14866 alias in your environment" "$LINENO" 5
14867    fi
14868
14869    test "$2" = conftest.file
14870    )
14871 then
14872    # Ok.
14873    :
14874 else
14875    as_fn_error "newly created file is older than distributed files!
14876 Check your system clock" "$LINENO" 5
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14879 $as_echo "yes" >&6; }
14880 test "$program_prefix" != NONE &&
14881   program_transform_name="s&^&$program_prefix&;$program_transform_name"
14882 # Use a double $ so make ignores it.
14883 test "$program_suffix" != NONE &&
14884   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14885 # Double any \ or $.
14886 # By default was `s,x,x', remove it if useless.
14887 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14888 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14889
14890 # expand $ac_aux_dir to an absolute path
14891 am_aux_dir=`cd $ac_aux_dir && pwd`
14892
14893 if test x"${MISSING+set}" != xset; then
14894   case $am_aux_dir in
14895   *\ * | *\     *)
14896     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14897   *)
14898     MISSING="\${SHELL} $am_aux_dir/missing" ;;
14899   esac
14900 fi
14901 # Use eval to expand $SHELL
14902 if eval "$MISSING --run true"; then
14903   am_missing_run="$MISSING --run "
14904 else
14905   am_missing_run=
14906   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14907 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14908 fi
14909
14910 if test x"${install_sh}" != xset; then
14911   case $am_aux_dir in
14912   *\ * | *\     *)
14913     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14914   *)
14915     install_sh="\${SHELL} $am_aux_dir/install-sh"
14916   esac
14917 fi
14918
14919 # Installed binaries are usually stripped using `strip' when the user
14920 # run `make install-strip'.  However `strip' might not be the right
14921 # tool to use in cross-compilation environments, therefore Automake
14922 # will honor the `STRIP' environment variable to overrule this program.
14923 if test "$cross_compiling" != no; then
14924   if test -n "$ac_tool_prefix"; then
14925   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14926 set dummy ${ac_tool_prefix}strip; ac_word=$2
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14928 $as_echo_n "checking for $ac_word... " >&6; }
14929 if test "${ac_cv_prog_STRIP+set}" = set; then :
14930   $as_echo_n "(cached) " >&6
14931 else
14932   if test -n "$STRIP"; then
14933   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14934 else
14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936 for as_dir in $PATH
14937 do
14938   IFS=$as_save_IFS
14939   test -z "$as_dir" && as_dir=.
14940     for ac_exec_ext in '' $ac_executable_extensions; do
14941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14942     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14944     break 2
14945   fi
14946 done
14947   done
14948 IFS=$as_save_IFS
14949
14950 fi
14951 fi
14952 STRIP=$ac_cv_prog_STRIP
14953 if test -n "$STRIP"; then
14954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14955 $as_echo "$STRIP" >&6; }
14956 else
14957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958 $as_echo "no" >&6; }
14959 fi
14960
14961
14962 fi
14963 if test -z "$ac_cv_prog_STRIP"; then
14964   ac_ct_STRIP=$STRIP
14965   # Extract the first word of "strip", so it can be a program name with args.
14966 set dummy strip; ac_word=$2
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14968 $as_echo_n "checking for $ac_word... " >&6; }
14969 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
14970   $as_echo_n "(cached) " >&6
14971 else
14972   if test -n "$ac_ct_STRIP"; then
14973   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14974 else
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14977 do
14978   IFS=$as_save_IFS
14979   test -z "$as_dir" && as_dir=.
14980     for ac_exec_ext in '' $ac_executable_extensions; do
14981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14982     ac_cv_prog_ac_ct_STRIP="strip"
14983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14984     break 2
14985   fi
14986 done
14987   done
14988 IFS=$as_save_IFS
14989
14990 fi
14991 fi
14992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14993 if test -n "$ac_ct_STRIP"; then
14994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14995 $as_echo "$ac_ct_STRIP" >&6; }
14996 else
14997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
14999 fi
15000
15001   if test "x$ac_ct_STRIP" = x; then
15002     STRIP=":"
15003   else
15004     case $cross_compiling:$ac_tool_warned in
15005 yes:)
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15008 ac_tool_warned=yes ;;
15009 esac
15010     STRIP=$ac_ct_STRIP
15011   fi
15012 else
15013   STRIP="$ac_cv_prog_STRIP"
15014 fi
15015
15016 fi
15017 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15018
15019 mkdir_p="$MKDIR_P"
15020 case $mkdir_p in
15021   [\\/$]* | ?:[\\/]*) ;;
15022   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15023 esac
15024
15025 for ac_prog in gawk mawk nawk awk
15026 do
15027   # Extract the first word of "$ac_prog", so it can be a program name with args.
15028 set dummy $ac_prog; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030 $as_echo_n "checking for $ac_word... " >&6; }
15031 if test "${ac_cv_prog_AWK+set}" = set; then :
15032   $as_echo_n "(cached) " >&6
15033 else
15034   if test -n "$AWK"; then
15035   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15036 else
15037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15038 for as_dir in $PATH
15039 do
15040   IFS=$as_save_IFS
15041   test -z "$as_dir" && as_dir=.
15042     for ac_exec_ext in '' $ac_executable_extensions; do
15043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15044     ac_cv_prog_AWK="$ac_prog"
15045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15046     break 2
15047   fi
15048 done
15049   done
15050 IFS=$as_save_IFS
15051
15052 fi
15053 fi
15054 AWK=$ac_cv_prog_AWK
15055 if test -n "$AWK"; then
15056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15057 $as_echo "$AWK" >&6; }
15058 else
15059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15061 fi
15062
15063
15064   test -n "$AWK" && break
15065 done
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15068 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15069 set x ${MAKE-make}
15070 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15071 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15072   $as_echo_n "(cached) " >&6
15073 else
15074   cat >conftest.make <<\_ACEOF
15075 SHELL = /bin/sh
15076 all:
15077         @echo '@@@%%%=$(MAKE)=@@@%%%'
15078 _ACEOF
15079 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15080 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15081   *@@@%%%=?*=@@@%%%*)
15082     eval ac_cv_prog_make_${ac_make}_set=yes;;
15083   *)
15084     eval ac_cv_prog_make_${ac_make}_set=no;;
15085 esac
15086 rm -f conftest.make
15087 fi
15088 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15090 $as_echo "yes" >&6; }
15091   SET_MAKE=
15092 else
15093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094 $as_echo "no" >&6; }
15095   SET_MAKE="MAKE=${MAKE-make}"
15096 fi
15097
15098 rm -rf .tst 2>/dev/null
15099 mkdir .tst 2>/dev/null
15100 if test -d .tst; then
15101   am__leading_dot=.
15102 else
15103   am__leading_dot=_
15104 fi
15105 rmdir .tst 2>/dev/null
15106
15107 DEPDIR="${am__leading_dot}deps"
15108
15109 ac_config_commands="$ac_config_commands depfiles"
15110
15111
15112 am_make=${MAKE-make}
15113 cat > confinc << 'END'
15114 am__doit:
15115         @echo this is the am__doit target
15116 .PHONY: am__doit
15117 END
15118 # If we don't find an include directive, just comment out the code.
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15120 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15121 am__include="#"
15122 am__quote=
15123 _am_result=none
15124 # First try GNU make style include.
15125 echo "include confinc" > confmf
15126 # Ignore all kinds of additional output from `make'.
15127 case `$am_make -s -f confmf 2> /dev/null` in #(
15128 *the\ am__doit\ target*)
15129   am__include=include
15130   am__quote=
15131   _am_result=GNU
15132   ;;
15133 esac
15134 # Now try BSD make style include.
15135 if test "$am__include" = "#"; then
15136    echo '.include "confinc"' > confmf
15137    case `$am_make -s -f confmf 2> /dev/null` in #(
15138    *the\ am__doit\ target*)
15139      am__include=.include
15140      am__quote="\""
15141      _am_result=BSD
15142      ;;
15143    esac
15144 fi
15145
15146
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15148 $as_echo "$_am_result" >&6; }
15149 rm -f confinc confmf
15150
15151 # Check whether --enable-dependency-tracking was given.
15152 if test "${enable_dependency_tracking+set}" = set; then :
15153   enableval=$enable_dependency_tracking;
15154 fi
15155
15156 if test "x$enable_dependency_tracking" != xno; then
15157   am_depcomp="$ac_aux_dir/depcomp"
15158   AMDEPBACKSLASH='\'
15159 fi
15160  if test "x$enable_dependency_tracking" != xno; then
15161   AMDEP_TRUE=
15162   AMDEP_FALSE='#'
15163 else
15164   AMDEP_TRUE='#'
15165   AMDEP_FALSE=
15166 fi
15167
15168
15169 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15170   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15171   # is not polluted with repeated "-I."
15172   am__isrc=' -I$(srcdir)'
15173   # test to see if srcdir already configured
15174   if test -f $srcdir/config.status; then
15175     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15176   fi
15177 fi
15178
15179 # test whether we have cygpath
15180 if test -z "$CYGPATH_W"; then
15181   if (cygpath --version) >/dev/null 2>/dev/null; then
15182     CYGPATH_W='cygpath -w'
15183   else
15184     CYGPATH_W=echo
15185   fi
15186 fi
15187
15188
15189 # Define the identity of the package.
15190  PACKAGE=libgnu
15191  VERSION=UNUSED-VERSION
15192
15193
15194 # Some tools Automake needs.
15195
15196 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15197
15198
15199 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15200
15201
15202 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15203
15204
15205 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15206
15207
15208 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15209
15210 # We need awk for the "check" target.  The system "awk" is bad on
15211 # some platforms.
15212 # Always define AMTAR for backward compatibility.
15213
15214 AMTAR=${AMTAR-"${am_missing_run}tar"}
15215
15216 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15217
15218
15219
15220
15221 depcc="$CC"   am_compiler_list=
15222
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15224 $as_echo_n "checking dependency style of $depcc... " >&6; }
15225 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15226   $as_echo_n "(cached) " >&6
15227 else
15228   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15229   # We make a subdir and do the tests there.  Otherwise we can end up
15230   # making bogus files that we don't know about and never remove.  For
15231   # instance it was reported that on HP-UX the gcc test will end up
15232   # making a dummy file named `D' -- because `-MD' means `put the output
15233   # in D'.
15234   mkdir conftest.dir
15235   # Copy depcomp to subdir because otherwise we won't find it if we're
15236   # using a relative directory.
15237   cp "$am_depcomp" conftest.dir
15238   cd conftest.dir
15239   # We will build objects and dependencies in a subdirectory because
15240   # it helps to detect inapplicable dependency modes.  For instance
15241   # both Tru64's cc and ICC support -MD to output dependencies as a
15242   # side effect of compilation, but ICC will put the dependencies in
15243   # the current directory while Tru64 will put them in the object
15244   # directory.
15245   mkdir sub
15246
15247   am_cv_CC_dependencies_compiler_type=none
15248   if test "$am_compiler_list" = ""; then
15249      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15250   fi
15251   am__universal=false
15252   case " $depcc " in #(
15253      *\ -arch\ *\ -arch\ *) am__universal=true ;;
15254      esac
15255
15256   for depmode in $am_compiler_list; do
15257     # Setup a source with many dependencies, because some compilers
15258     # like to wrap large dependency lists on column 80 (with \), and
15259     # we should not choose a depcomp mode which is confused by this.
15260     #
15261     # We need to recreate these files for each test, as the compiler may
15262     # overwrite some of them when testing with obscure command lines.
15263     # This happens at least with the AIX C compiler.
15264     : > sub/conftest.c
15265     for i in 1 2 3 4 5 6; do
15266       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15267       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15268       # Solaris 8's {/usr,}/bin/sh.
15269       touch sub/conftst$i.h
15270     done
15271     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15272
15273     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15274     # mode.  It turns out that the SunPro C++ compiler does not properly
15275     # handle `-M -o', and we need to detect this.  Also, some Intel
15276     # versions had trouble with output in subdirs
15277     am__obj=sub/conftest.${OBJEXT-o}
15278     am__minus_obj="-o $am__obj"
15279     case $depmode in
15280     gcc)
15281       # This depmode causes a compiler race in universal mode.
15282       test "$am__universal" = false || continue
15283       ;;
15284     nosideeffect)
15285       # after this tag, mechanisms are not by side-effect, so they'll
15286       # only be used when explicitly requested
15287       if test "x$enable_dependency_tracking" = xyes; then
15288         continue
15289       else
15290         break
15291       fi
15292       ;;
15293     msvisualcpp | msvcmsys)
15294       # This compiler won't grok `-c -o', but also, the minuso test has
15295       # not run yet.  These depmodes are late enough in the game, and
15296       # so weak that their functioning should not be impacted.
15297       am__obj=conftest.${OBJEXT-o}
15298       am__minus_obj=
15299       ;;
15300     none) break ;;
15301     esac
15302     if depmode=$depmode \
15303        source=sub/conftest.c object=$am__obj \
15304        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15305        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15306          >/dev/null 2>conftest.err &&
15307        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15308        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15309        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15310        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15311       # icc doesn't choke on unknown options, it will just issue warnings
15312       # or remarks (even with -Werror).  So we grep stderr for any message
15313       # that says an option was ignored or not supported.
15314       # When given -MP, icc 7.0 and 7.1 complain thusly:
15315       #   icc: Command line warning: ignoring option '-M'; no argument required
15316       # The diagnosis changed in icc 8.0:
15317       #   icc: Command line remark: option '-MP' not supported
15318       if (grep 'ignoring option' conftest.err ||
15319           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15320         am_cv_CC_dependencies_compiler_type=$depmode
15321         break
15322       fi
15323     fi
15324   done
15325
15326   cd ..
15327   rm -rf conftest.dir
15328 else
15329   am_cv_CC_dependencies_compiler_type=none
15330 fi
15331
15332 fi
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15334 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15335 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15336
15337  if
15338   test "x$enable_dependency_tracking" != xno \
15339   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15340   am__fastdepCC_TRUE=
15341   am__fastdepCC_FALSE='#'
15342 else
15343   am__fastdepCC_TRUE='#'
15344   am__fastdepCC_FALSE=
15345 fi
15346
15347
15348
15349
15350 # --------------------- #
15351 # Checks for programs.  #
15352 # --------------------- #
15353
15354
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15356 $as_echo_n "checking whether ln -s works... " >&6; }
15357 LN_S=$as_ln_s
15358 if test "$LN_S" = "ln -s"; then
15359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15360 $as_echo "yes" >&6; }
15361 else
15362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15363 $as_echo "no, using $LN_S" >&6; }
15364 fi
15365
15366 if test -n "$ac_tool_prefix"; then
15367   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15370 $as_echo_n "checking for $ac_word... " >&6; }
15371 if test "${ac_cv_prog_RANLIB+set}" = set; then :
15372   $as_echo_n "(cached) " >&6
15373 else
15374   if test -n "$RANLIB"; then
15375   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15376 else
15377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15379 do
15380   IFS=$as_save_IFS
15381   test -z "$as_dir" && as_dir=.
15382     for ac_exec_ext in '' $ac_executable_extensions; do
15383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15384     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15386     break 2
15387   fi
15388 done
15389   done
15390 IFS=$as_save_IFS
15391
15392 fi
15393 fi
15394 RANLIB=$ac_cv_prog_RANLIB
15395 if test -n "$RANLIB"; then
15396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15397 $as_echo "$RANLIB" >&6; }
15398 else
15399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400 $as_echo "no" >&6; }
15401 fi
15402
15403
15404 fi
15405 if test -z "$ac_cv_prog_RANLIB"; then
15406   ac_ct_RANLIB=$RANLIB
15407   # Extract the first word of "ranlib", so it can be a program name with args.
15408 set dummy ranlib; ac_word=$2
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15410 $as_echo_n "checking for $ac_word... " >&6; }
15411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
15412   $as_echo_n "(cached) " >&6
15413 else
15414   if test -n "$ac_ct_RANLIB"; then
15415   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15416 else
15417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418 for as_dir in $PATH
15419 do
15420   IFS=$as_save_IFS
15421   test -z "$as_dir" && as_dir=.
15422     for ac_exec_ext in '' $ac_executable_extensions; do
15423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15424     ac_cv_prog_ac_ct_RANLIB="ranlib"
15425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15426     break 2
15427   fi
15428 done
15429   done
15430 IFS=$as_save_IFS
15431
15432 fi
15433 fi
15434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15435 if test -n "$ac_ct_RANLIB"; then
15436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15437 $as_echo "$ac_ct_RANLIB" >&6; }
15438 else
15439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15440 $as_echo "no" >&6; }
15441 fi
15442
15443   if test "x$ac_ct_RANLIB" = x; then
15444     RANLIB=":"
15445   else
15446     case $cross_compiling:$ac_tool_warned in
15447 yes:)
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15450 ac_tool_warned=yes ;;
15451 esac
15452     RANLIB=$ac_ct_RANLIB
15453   fi
15454 else
15455   RANLIB="$ac_cv_prog_RANLIB"
15456 fi
15457
15458
15459 if test -n "$ac_tool_prefix"; then
15460   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15461 set dummy ${ac_tool_prefix}ar; ac_word=$2
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15463 $as_echo_n "checking for $ac_word... " >&6; }
15464 if test "${ac_cv_prog_AR+set}" = set; then :
15465   $as_echo_n "(cached) " >&6
15466 else
15467   if test -n "$AR"; then
15468   ac_cv_prog_AR="$AR" # Let the user override the test.
15469 else
15470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15471 for as_dir in $PATH
15472 do
15473   IFS=$as_save_IFS
15474   test -z "$as_dir" && as_dir=.
15475     for ac_exec_ext in '' $ac_executable_extensions; do
15476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15477     ac_cv_prog_AR="${ac_tool_prefix}ar"
15478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15479     break 2
15480   fi
15481 done
15482   done
15483 IFS=$as_save_IFS
15484
15485 fi
15486 fi
15487 AR=$ac_cv_prog_AR
15488 if test -n "$AR"; then
15489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15490 $as_echo "$AR" >&6; }
15491 else
15492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15493 $as_echo "no" >&6; }
15494 fi
15495
15496
15497 fi
15498 if test -z "$ac_cv_prog_AR"; then
15499   ac_ct_AR=$AR
15500   # Extract the first word of "ar", so it can be a program name with args.
15501 set dummy ar; ac_word=$2
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15503 $as_echo_n "checking for $ac_word... " >&6; }
15504 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
15505   $as_echo_n "(cached) " >&6
15506 else
15507   if test -n "$ac_ct_AR"; then
15508   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15509 else
15510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15511 for as_dir in $PATH
15512 do
15513   IFS=$as_save_IFS
15514   test -z "$as_dir" && as_dir=.
15515     for ac_exec_ext in '' $ac_executable_extensions; do
15516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15517     ac_cv_prog_ac_ct_AR="ar"
15518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15519     break 2
15520   fi
15521 done
15522   done
15523 IFS=$as_save_IFS
15524
15525 fi
15526 fi
15527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15528 if test -n "$ac_ct_AR"; then
15529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15530 $as_echo "$ac_ct_AR" >&6; }
15531 else
15532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15533 $as_echo "no" >&6; }
15534 fi
15535
15536   if test "x$ac_ct_AR" = x; then
15537     AR=""
15538   else
15539     case $cross_compiling:$ac_tool_warned in
15540 yes:)
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15543 ac_tool_warned=yes ;;
15544 esac
15545     AR=$ac_ct_AR
15546   fi
15547 else
15548   AR="$ac_cv_prog_AR"
15549 fi
15550
15551
15552 # ---------------------- #
15553 # Checks for libraries.  #
15554 # ---------------------- #
15555
15556 ac_config_files="$ac_config_files Makefile import/Makefile"
15557
15558 ac_config_commands="$ac_config_commands default"
15559
15560 cat >confcache <<\_ACEOF
15561 # This file is a shell script that caches the results of configure
15562 # tests run on this system so they can be shared between configure
15563 # scripts and configure runs, see configure's option --config-cache.
15564 # It is not useful on other systems.  If it contains results you don't
15565 # want to keep, you may remove or edit it.
15566 #
15567 # config.status only pays attention to the cache file if you give it
15568 # the --recheck option to rerun configure.
15569 #
15570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15572 # following values.
15573
15574 _ACEOF
15575
15576 # The following way of writing the cache mishandles newlines in values,
15577 # but we know of no workaround that is simple, portable, and efficient.
15578 # So, we kill variables containing newlines.
15579 # Ultrix sh set writes to stderr and can't be redirected directly,
15580 # and sets the high bit in the cache file unless we assign to the vars.
15581 (
15582   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15583     eval ac_val=\$$ac_var
15584     case $ac_val in #(
15585     *${as_nl}*)
15586       case $ac_var in #(
15587       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15588 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15589       esac
15590       case $ac_var in #(
15591       _ | IFS | as_nl) ;; #(
15592       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15593       *) { eval $ac_var=; unset $ac_var;} ;;
15594       esac ;;
15595     esac
15596   done
15597
15598   (set) 2>&1 |
15599     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15600     *${as_nl}ac_space=\ *)
15601       # `set' does not quote correctly, so add quotes: double-quote
15602       # substitution turns \\\\ into \\, and sed turns \\ into \.
15603       sed -n \
15604         "s/'/'\\\\''/g;
15605           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15606       ;; #(
15607     *)
15608       # `set' quotes correctly as required by POSIX, so do not add quotes.
15609       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15610       ;;
15611     esac |
15612     sort
15613 ) |
15614   sed '
15615      /^ac_cv_env_/b end
15616      t clear
15617      :clear
15618      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15619      t end
15620      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15621      :end' >>confcache
15622 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15623   if test -w "$cache_file"; then
15624     test "x$cache_file" != "x/dev/null" &&
15625       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15626 $as_echo "$as_me: updating cache $cache_file" >&6;}
15627     cat confcache >$cache_file
15628   else
15629     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15631   fi
15632 fi
15633 rm -f confcache
15634
15635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15636 # Let make expand exec_prefix.
15637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15638
15639 DEFS=-DHAVE_CONFIG_H
15640
15641 ac_libobjs=
15642 ac_ltlibobjs=
15643 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15644   # 1. Remove the extension, and $U if already installed.
15645   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15646   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15647   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15648   #    will be set to the directory where LIBOBJS objects are built.
15649   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15650   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15651 done
15652 LIBOBJS=$ac_libobjs
15653
15654 LTLIBOBJS=$ac_ltlibobjs
15655
15656
15657 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15658   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15660 fi
15661 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15662   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15664 fi
15665 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
15666   as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
15667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15668 fi
15669 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
15670   as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
15671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15672 fi
15673 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
15674   as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
15675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15676 fi
15677 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
15678   as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
15679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15680 fi
15681 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
15682   as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
15683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15684 fi
15685
15686
15687 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
15688   as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
15689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690 fi
15691 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
15692   as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
15693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15694 fi
15695
15696     gl_libobjs=
15697     gl_ltlibobjs=
15698     if test -n "$gl_LIBOBJS"; then
15699       # Remove the extension.
15700       sed_drop_objext='s/\.o$//;s/\.obj$//'
15701       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15702         gl_libobjs="$gl_libobjs $i.$ac_objext"
15703         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15704       done
15705     fi
15706     gl_LIBOBJS=$gl_libobjs
15707
15708     gl_LTLIBOBJS=$gl_ltlibobjs
15709
15710
15711
15712     gltests_libobjs=
15713     gltests_ltlibobjs=
15714     if test -n "$gltests_LIBOBJS"; then
15715       # Remove the extension.
15716       sed_drop_objext='s/\.o$//;s/\.obj$//'
15717       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15718         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15719         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15720       done
15721     fi
15722     gltests_LIBOBJS=$gltests_libobjs
15723
15724     gltests_LTLIBOBJS=$gltests_ltlibobjs
15725
15726
15727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15728   as_fn_error "conditional \"AMDEP\" was never defined.
15729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730 fi
15731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15732   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734 fi
15735  if test -n "$EXEEXT"; then
15736   am__EXEEXT_TRUE=
15737   am__EXEEXT_FALSE='#'
15738 else
15739   am__EXEEXT_TRUE='#'
15740   am__EXEEXT_FALSE=
15741 fi
15742
15743
15744 : ${CONFIG_STATUS=./config.status}
15745 ac_write_fail=0
15746 ac_clean_files_save=$ac_clean_files
15747 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15749 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15750 as_write_fail=0
15751 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15752 #! $SHELL
15753 # Generated by $as_me.
15754 # Run this file to recreate the current configuration.
15755 # Compiler output produced by configure, useful for debugging
15756 # configure, is in config.log if it exists.
15757
15758 debug=false
15759 ac_cs_recheck=false
15760 ac_cs_silent=false
15761
15762 SHELL=\${CONFIG_SHELL-$SHELL}
15763 export SHELL
15764 _ASEOF
15765 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15766 ## -------------------- ##
15767 ## M4sh Initialization. ##
15768 ## -------------------- ##
15769
15770 # Be more Bourne compatible
15771 DUALCASE=1; export DUALCASE # for MKS sh
15772 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15773   emulate sh
15774   NULLCMD=:
15775   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15776   # is contrary to our usage.  Disable this feature.
15777   alias -g '${1+"$@"}'='"$@"'
15778   setopt NO_GLOB_SUBST
15779 else
15780   case `(set -o) 2>/dev/null` in #(
15781   *posix*) :
15782     set -o posix ;; #(
15783   *) :
15784      ;;
15785 esac
15786 fi
15787
15788
15789 as_nl='
15790 '
15791 export as_nl
15792 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15793 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15794 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15796 # Prefer a ksh shell builtin over an external printf program on Solaris,
15797 # but without wasting forks for bash or zsh.
15798 if test -z "$BASH_VERSION$ZSH_VERSION" \
15799     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15800   as_echo='print -r --'
15801   as_echo_n='print -rn --'
15802 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15803   as_echo='printf %s\n'
15804   as_echo_n='printf %s'
15805 else
15806   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15807     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15808     as_echo_n='/usr/ucb/echo -n'
15809   else
15810     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15811     as_echo_n_body='eval
15812       arg=$1;
15813       case $arg in #(
15814       *"$as_nl"*)
15815         expr "X$arg" : "X\\(.*\\)$as_nl";
15816         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15817       esac;
15818       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15819     '
15820     export as_echo_n_body
15821     as_echo_n='sh -c $as_echo_n_body as_echo'
15822   fi
15823   export as_echo_body
15824   as_echo='sh -c $as_echo_body as_echo'
15825 fi
15826
15827 # The user is always right.
15828 if test "${PATH_SEPARATOR+set}" != set; then
15829   PATH_SEPARATOR=:
15830   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15831     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15832       PATH_SEPARATOR=';'
15833   }
15834 fi
15835
15836
15837 # IFS
15838 # We need space, tab and new line, in precisely that order.  Quoting is
15839 # there to prevent editors from complaining about space-tab.
15840 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15841 # splitting by setting IFS to empty value.)
15842 IFS=" ""        $as_nl"
15843
15844 # Find who we are.  Look in the path if we contain no directory separator.
15845 case $0 in #((
15846   *[\\/]* ) as_myself=$0 ;;
15847   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848 for as_dir in $PATH
15849 do
15850   IFS=$as_save_IFS
15851   test -z "$as_dir" && as_dir=.
15852     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15853   done
15854 IFS=$as_save_IFS
15855
15856      ;;
15857 esac
15858 # We did not find ourselves, most probably we were run as `sh COMMAND'
15859 # in which case we are not to be found in the path.
15860 if test "x$as_myself" = x; then
15861   as_myself=$0
15862 fi
15863 if test ! -f "$as_myself"; then
15864   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15865   exit 1
15866 fi
15867
15868 # Unset variables that we do not need and which cause bugs (e.g. in
15869 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15870 # suppresses any "Segmentation fault" message there.  '((' could
15871 # trigger a bug in pdksh 5.2.14.
15872 for as_var in BASH_ENV ENV MAIL MAILPATH
15873 do eval test x\${$as_var+set} = xset \
15874   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15875 done
15876 PS1='$ '
15877 PS2='> '
15878 PS4='+ '
15879
15880 # NLS nuisances.
15881 LC_ALL=C
15882 export LC_ALL
15883 LANGUAGE=C
15884 export LANGUAGE
15885
15886 # CDPATH.
15887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15888
15889
15890 # as_fn_error ERROR [LINENO LOG_FD]
15891 # ---------------------------------
15892 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15893 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15894 # script with status $?, using 1 if that was 0.
15895 as_fn_error ()
15896 {
15897   as_status=$?; test $as_status -eq 0 && as_status=1
15898   if test "$3"; then
15899     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15900     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15901   fi
15902   $as_echo "$as_me: error: $1" >&2
15903   as_fn_exit $as_status
15904 } # as_fn_error
15905
15906
15907 # as_fn_set_status STATUS
15908 # -----------------------
15909 # Set $? to STATUS, without forking.
15910 as_fn_set_status ()
15911 {
15912   return $1
15913 } # as_fn_set_status
15914
15915 # as_fn_exit STATUS
15916 # -----------------
15917 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15918 as_fn_exit ()
15919 {
15920   set +e
15921   as_fn_set_status $1
15922   exit $1
15923 } # as_fn_exit
15924
15925 # as_fn_unset VAR
15926 # ---------------
15927 # Portably unset VAR.
15928 as_fn_unset ()
15929 {
15930   { eval $1=; unset $1;}
15931 }
15932 as_unset=as_fn_unset
15933 # as_fn_append VAR VALUE
15934 # ----------------------
15935 # Append the text in VALUE to the end of the definition contained in VAR. Take
15936 # advantage of any shell optimizations that allow amortized linear growth over
15937 # repeated appends, instead of the typical quadratic growth present in naive
15938 # implementations.
15939 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15940   eval 'as_fn_append ()
15941   {
15942     eval $1+=\$2
15943   }'
15944 else
15945   as_fn_append ()
15946   {
15947     eval $1=\$$1\$2
15948   }
15949 fi # as_fn_append
15950
15951 # as_fn_arith ARG...
15952 # ------------------
15953 # Perform arithmetic evaluation on the ARGs, and store the result in the
15954 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15955 # must be portable across $(()) and expr.
15956 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15957   eval 'as_fn_arith ()
15958   {
15959     as_val=$(( $* ))
15960   }'
15961 else
15962   as_fn_arith ()
15963   {
15964     as_val=`expr "$@" || test $? -eq 1`
15965   }
15966 fi # as_fn_arith
15967
15968
15969 if expr a : '\(a\)' >/dev/null 2>&1 &&
15970    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15971   as_expr=expr
15972 else
15973   as_expr=false
15974 fi
15975
15976 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15977   as_basename=basename
15978 else
15979   as_basename=false
15980 fi
15981
15982 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15983   as_dirname=dirname
15984 else
15985   as_dirname=false
15986 fi
15987
15988 as_me=`$as_basename -- "$0" ||
15989 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15990          X"$0" : 'X\(//\)$' \| \
15991          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15992 $as_echo X/"$0" |
15993     sed '/^.*\/\([^/][^/]*\)\/*$/{
15994             s//\1/
15995             q
15996           }
15997           /^X\/\(\/\/\)$/{
15998             s//\1/
15999             q
16000           }
16001           /^X\/\(\/\).*/{
16002             s//\1/
16003             q
16004           }
16005           s/.*/./; q'`
16006
16007 # Avoid depending upon Character Ranges.
16008 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16009 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16010 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16011 as_cr_digits='0123456789'
16012 as_cr_alnum=$as_cr_Letters$as_cr_digits
16013
16014 ECHO_C= ECHO_N= ECHO_T=
16015 case `echo -n x` in #(((((
16016 -n*)
16017   case `echo 'xy\c'` in
16018   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16019   xy)  ECHO_C='\c';;
16020   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16021        ECHO_T=' ';;
16022   esac;;
16023 *)
16024   ECHO_N='-n';;
16025 esac
16026
16027 rm -f conf$$ conf$$.exe conf$$.file
16028 if test -d conf$$.dir; then
16029   rm -f conf$$.dir/conf$$.file
16030 else
16031   rm -f conf$$.dir
16032   mkdir conf$$.dir 2>/dev/null
16033 fi
16034 if (echo >conf$$.file) 2>/dev/null; then
16035   if ln -s conf$$.file conf$$ 2>/dev/null; then
16036     as_ln_s='ln -s'
16037     # ... but there are two gotchas:
16038     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16039     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16040     # In both cases, we have to default to `cp -p'.
16041     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16042       as_ln_s='cp -p'
16043   elif ln conf$$.file conf$$ 2>/dev/null; then
16044     as_ln_s=ln
16045   else
16046     as_ln_s='cp -p'
16047   fi
16048 else
16049   as_ln_s='cp -p'
16050 fi
16051 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16052 rmdir conf$$.dir 2>/dev/null
16053
16054
16055 # as_fn_mkdir_p
16056 # -------------
16057 # Create "$as_dir" as a directory, including parents if necessary.
16058 as_fn_mkdir_p ()
16059 {
16060
16061   case $as_dir in #(
16062   -*) as_dir=./$as_dir;;
16063   esac
16064   test -d "$as_dir" || eval $as_mkdir_p || {
16065     as_dirs=
16066     while :; do
16067       case $as_dir in #(
16068       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16069       *) as_qdir=$as_dir;;
16070       esac
16071       as_dirs="'$as_qdir' $as_dirs"
16072       as_dir=`$as_dirname -- "$as_dir" ||
16073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16074          X"$as_dir" : 'X\(//\)[^/]' \| \
16075          X"$as_dir" : 'X\(//\)$' \| \
16076          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16077 $as_echo X"$as_dir" |
16078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16079             s//\1/
16080             q
16081           }
16082           /^X\(\/\/\)[^/].*/{
16083             s//\1/
16084             q
16085           }
16086           /^X\(\/\/\)$/{
16087             s//\1/
16088             q
16089           }
16090           /^X\(\/\).*/{
16091             s//\1/
16092             q
16093           }
16094           s/.*/./; q'`
16095       test -d "$as_dir" && break
16096     done
16097     test -z "$as_dirs" || eval "mkdir $as_dirs"
16098   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16099
16100
16101 } # as_fn_mkdir_p
16102 if mkdir -p . 2>/dev/null; then
16103   as_mkdir_p='mkdir -p "$as_dir"'
16104 else
16105   test -d ./-p && rmdir ./-p
16106   as_mkdir_p=false
16107 fi
16108
16109 if test -x / >/dev/null 2>&1; then
16110   as_test_x='test -x'
16111 else
16112   if ls -dL / >/dev/null 2>&1; then
16113     as_ls_L_option=L
16114   else
16115     as_ls_L_option=
16116   fi
16117   as_test_x='
16118     eval sh -c '\''
16119       if test -d "$1"; then
16120         test -d "$1/.";
16121       else
16122         case $1 in #(
16123         -*)set "./$1";;
16124         esac;
16125         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16126         ???[sx]*):;;*)false;;esac;fi
16127     '\'' sh
16128   '
16129 fi
16130 as_executable_p=$as_test_x
16131
16132 # Sed expression to map a string onto a valid CPP name.
16133 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16134
16135 # Sed expression to map a string onto a valid variable name.
16136 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16137
16138
16139 exec 6>&1
16140 ## ----------------------------------- ##
16141 ## Main body of $CONFIG_STATUS script. ##
16142 ## ----------------------------------- ##
16143 _ASEOF
16144 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16145
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 # Save the log message, to keep $0 and so on meaningful, and to
16148 # report actual input values of CONFIG_FILES etc. instead of their
16149 # values after options handling.
16150 ac_log="
16151 This file was extended by $as_me, which was
16152 generated by GNU Autoconf 2.64.  Invocation command line was
16153
16154   CONFIG_FILES    = $CONFIG_FILES
16155   CONFIG_HEADERS  = $CONFIG_HEADERS
16156   CONFIG_LINKS    = $CONFIG_LINKS
16157   CONFIG_COMMANDS = $CONFIG_COMMANDS
16158   $ $0 $@
16159
16160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16161 "
16162
16163 _ACEOF
16164
16165 case $ac_config_files in *"
16166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16167 esac
16168
16169 case $ac_config_headers in *"
16170 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16171 esac
16172
16173
16174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16175 # Files that config.status was made for.
16176 config_files="$ac_config_files"
16177 config_headers="$ac_config_headers"
16178 config_commands="$ac_config_commands"
16179
16180 _ACEOF
16181
16182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183 ac_cs_usage="\
16184 \`$as_me' instantiates files and other configuration actions
16185 from templates according to the current configuration.  Unless the files
16186 and actions are specified as TAGs, all are instantiated by default.
16187
16188 Usage: $0 [OPTION]... [TAG]...
16189
16190   -h, --help       print this help, then exit
16191   -V, --version    print version number and configuration settings, then exit
16192   -q, --quiet, --silent
16193                    do not print progress messages
16194   -d, --debug      don't remove temporary files
16195       --recheck    update $as_me by reconfiguring in the same conditions
16196       --file=FILE[:TEMPLATE]
16197                    instantiate the configuration file FILE
16198       --header=FILE[:TEMPLATE]
16199                    instantiate the configuration header FILE
16200
16201 Configuration files:
16202 $config_files
16203
16204 Configuration headers:
16205 $config_headers
16206
16207 Configuration commands:
16208 $config_commands
16209
16210 Report bugs to the package provider."
16211
16212 _ACEOF
16213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16214 ac_cs_version="\\
16215 config.status
16216 configured by $0, generated by GNU Autoconf 2.64,
16217   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16218
16219 Copyright (C) 2009 Free Software Foundation, Inc.
16220 This config.status script is free software; the Free Software Foundation
16221 gives unlimited permission to copy, distribute and modify it."
16222
16223 ac_pwd='$ac_pwd'
16224 srcdir='$srcdir'
16225 INSTALL='$INSTALL'
16226 MKDIR_P='$MKDIR_P'
16227 AWK='$AWK'
16228 test -n "\$AWK" || AWK=awk
16229 _ACEOF
16230
16231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16232 # The default lists apply if the user does not specify any file.
16233 ac_need_defaults=:
16234 while test $# != 0
16235 do
16236   case $1 in
16237   --*=*)
16238     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16239     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16240     ac_shift=:
16241     ;;
16242   *)
16243     ac_option=$1
16244     ac_optarg=$2
16245     ac_shift=shift
16246     ;;
16247   esac
16248
16249   case $ac_option in
16250   # Handling of the options.
16251   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16252     ac_cs_recheck=: ;;
16253   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16254     $as_echo "$ac_cs_version"; exit ;;
16255   --debug | --debu | --deb | --de | --d | -d )
16256     debug=: ;;
16257   --file | --fil | --fi | --f )
16258     $ac_shift
16259     case $ac_optarg in
16260     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16261     esac
16262     as_fn_append CONFIG_FILES " '$ac_optarg'"
16263     ac_need_defaults=false;;
16264   --header | --heade | --head | --hea )
16265     $ac_shift
16266     case $ac_optarg in
16267     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16268     esac
16269     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16270     ac_need_defaults=false;;
16271   --he | --h)
16272     # Conflict between --help and --header
16273     as_fn_error "ambiguous option: \`$1'
16274 Try \`$0 --help' for more information.";;
16275   --help | --hel | -h )
16276     $as_echo "$ac_cs_usage"; exit ;;
16277   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16278   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16279     ac_cs_silent=: ;;
16280
16281   # This is an error.
16282   -*) as_fn_error "unrecognized option: \`$1'
16283 Try \`$0 --help' for more information." ;;
16284
16285   *) as_fn_append ac_config_targets " $1"
16286      ac_need_defaults=false ;;
16287
16288   esac
16289   shift
16290 done
16291
16292 ac_configure_extra_args=
16293
16294 if $ac_cs_silent; then
16295   exec 6>/dev/null
16296   ac_configure_extra_args="$ac_configure_extra_args --silent"
16297 fi
16298
16299 _ACEOF
16300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16301 if \$ac_cs_recheck; then
16302   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16303   shift
16304   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16305   CONFIG_SHELL='$SHELL'
16306   export CONFIG_SHELL
16307   exec "\$@"
16308 fi
16309
16310 _ACEOF
16311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16312 exec 5>>config.log
16313 {
16314   echo
16315   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16316 ## Running $as_me. ##
16317 _ASBOX
16318   $as_echo "$ac_log"
16319 } >&5
16320
16321 _ACEOF
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323 #
16324 # INIT-COMMANDS
16325 #
16326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16327
16328 _ACEOF
16329
16330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16331
16332 # Handling of arguments.
16333 for ac_config_target in $ac_config_targets
16334 do
16335   case $ac_config_target in
16336     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16337     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16338     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16339     "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
16340     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16341
16342   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16343   esac
16344 done
16345
16346
16347 # If the user did not use the arguments to specify the items to instantiate,
16348 # then the envvar interface is used.  Set only those that are not.
16349 # We use the long form for the default assignment because of an extremely
16350 # bizarre bug on SunOS 4.1.3.
16351 if $ac_need_defaults; then
16352   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16353   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16354   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16355 fi
16356
16357 # Have a temporary directory for convenience.  Make it in the build tree
16358 # simply because there is no reason against having it here, and in addition,
16359 # creating and moving files from /tmp can sometimes cause problems.
16360 # Hook for its removal unless debugging.
16361 # Note that there is a small window in which the directory will not be cleaned:
16362 # after its creation but before its name has been assigned to `$tmp'.
16363 $debug ||
16364 {
16365   tmp=
16366   trap 'exit_status=$?
16367   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16368 ' 0
16369   trap 'as_fn_exit 1' 1 2 13 15
16370 }
16371 # Create a (secure) tmp directory for tmp files.
16372
16373 {
16374   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16375   test -n "$tmp" && test -d "$tmp"
16376 }  ||
16377 {
16378   tmp=./conf$$-$RANDOM
16379   (umask 077 && mkdir "$tmp")
16380 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16381
16382 # Set up the scripts for CONFIG_FILES section.
16383 # No need to generate them if there are no CONFIG_FILES.
16384 # This happens for instance with `./config.status config.h'.
16385 if test -n "$CONFIG_FILES"; then
16386
16387
16388 ac_cr=`echo X | tr X '\015'`
16389 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16390 # But we know of no other shell where ac_cr would be empty at this
16391 # point, so we can use a bashism as a fallback.
16392 if test "x$ac_cr" = x; then
16393   eval ac_cr=\$\'\\r\'
16394 fi
16395 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16396 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16397   ac_cs_awk_cr='\r'
16398 else
16399   ac_cs_awk_cr=$ac_cr
16400 fi
16401
16402 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16403 _ACEOF
16404
16405
16406 {
16407   echo "cat >conf$$subs.awk <<_ACEOF" &&
16408   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16409   echo "_ACEOF"
16410 } >conf$$subs.sh ||
16411   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16413 ac_delim='%!_!# '
16414 for ac_last_try in false false false false false :; do
16415   . ./conf$$subs.sh ||
16416     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16417
16418   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16419   if test $ac_delim_n = $ac_delim_num; then
16420     break
16421   elif $ac_last_try; then
16422     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16423   else
16424     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16425   fi
16426 done
16427 rm -f conf$$subs.sh
16428
16429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16430 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16431 _ACEOF
16432 sed -n '
16433 h
16434 s/^/S["/; s/!.*/"]=/
16435 p
16436 g
16437 s/^[^!]*!//
16438 :repl
16439 t repl
16440 s/'"$ac_delim"'$//
16441 t delim
16442 :nl
16443 h
16444 s/\(.\{148\}\).*/\1/
16445 t more1
16446 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16447 p
16448 n
16449 b repl
16450 :more1
16451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16452 p
16453 g
16454 s/.\{148\}//
16455 t nl
16456 :delim
16457 h
16458 s/\(.\{148\}\).*/\1/
16459 t more2
16460 s/["\\]/\\&/g; s/^/"/; s/$/"/
16461 p
16462 b
16463 :more2
16464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16465 p
16466 g
16467 s/.\{148\}//
16468 t delim
16469 ' <conf$$subs.awk | sed '
16470 /^[^""]/{
16471   N
16472   s/\n//
16473 }
16474 ' >>$CONFIG_STATUS || ac_write_fail=1
16475 rm -f conf$$subs.awk
16476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16477 _ACAWK
16478 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16479   for (key in S) S_is_set[key] = 1
16480   FS = "\a"
16481
16482 }
16483 {
16484   line = $ 0
16485   nfields = split(line, field, "@")
16486   substed = 0
16487   len = length(field[1])
16488   for (i = 2; i < nfields; i++) {
16489     key = field[i]
16490     keylen = length(key)
16491     if (S_is_set[key]) {
16492       value = S[key]
16493       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16494       len += length(value) + length(field[++i])
16495       substed = 1
16496     } else
16497       len += 1 + keylen
16498   }
16499
16500   print line
16501 }
16502
16503 _ACAWK
16504 _ACEOF
16505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16506 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16507   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16508 else
16509   cat
16510 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16511   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16512 _ACEOF
16513
16514 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16515 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16516 # trailing colons and then remove the whole line if VPATH becomes empty
16517 # (actually we leave an empty line to preserve line numbers).
16518 if test "x$srcdir" = x.; then
16519   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16520 s/:*\$(srcdir):*/:/
16521 s/:*\${srcdir}:*/:/
16522 s/:*@srcdir@:*/:/
16523 s/^\([^=]*=[     ]*\):*/\1/
16524 s/:*$//
16525 s/^[^=]*=[       ]*$//
16526 }'
16527 fi
16528
16529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16530 fi # test -n "$CONFIG_FILES"
16531
16532 # Set up the scripts for CONFIG_HEADERS section.
16533 # No need to generate them if there are no CONFIG_HEADERS.
16534 # This happens for instance with `./config.status Makefile'.
16535 if test -n "$CONFIG_HEADERS"; then
16536 cat >"$tmp/defines.awk" <<\_ACAWK ||
16537 BEGIN {
16538 _ACEOF
16539
16540 # Transform confdefs.h into an awk script `defines.awk', embedded as
16541 # here-document in config.status, that substitutes the proper values into
16542 # config.h.in to produce config.h.
16543
16544 # Create a delimiter string that does not exist in confdefs.h, to ease
16545 # handling of long lines.
16546 ac_delim='%!_!# '
16547 for ac_last_try in false false :; do
16548   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16549   if test -z "$ac_t"; then
16550     break
16551   elif $ac_last_try; then
16552     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16553   else
16554     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16555   fi
16556 done
16557
16558 # For the awk script, D is an array of macro values keyed by name,
16559 # likewise P contains macro parameters if any.  Preserve backslash
16560 # newline sequences.
16561
16562 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16563 sed -n '
16564 s/.\{148\}/&'"$ac_delim"'/g
16565 t rset
16566 :rset
16567 s/^[     ]*#[    ]*define[       ][      ]*/ /
16568 t def
16569 d
16570 :def
16571 s/\\$//
16572 t bsnl
16573 s/["\\]/\\&/g
16574 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16575 D["\1"]=" \3"/p
16576 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16577 d
16578 :bsnl
16579 s/["\\]/\\&/g
16580 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16581 D["\1"]=" \3\\\\\\n"\\/p
16582 t cont
16583 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16584 t cont
16585 d
16586 :cont
16587 n
16588 s/.\{148\}/&'"$ac_delim"'/g
16589 t clear
16590 :clear
16591 s/\\$//
16592 t bsnlc
16593 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16594 d
16595 :bsnlc
16596 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16597 b cont
16598 ' <confdefs.h | sed '
16599 s/'"$ac_delim"'/"\\\
16600 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16601
16602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16603   for (key in D) D_is_set[key] = 1
16604   FS = "\a"
16605 }
16606 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16607   line = \$ 0
16608   split(line, arg, " ")
16609   if (arg[1] == "#") {
16610     defundef = arg[2]
16611     mac1 = arg[3]
16612   } else {
16613     defundef = substr(arg[1], 2)
16614     mac1 = arg[2]
16615   }
16616   split(mac1, mac2, "(") #)
16617   macro = mac2[1]
16618   prefix = substr(line, 1, index(line, defundef) - 1)
16619   if (D_is_set[macro]) {
16620     # Preserve the white space surrounding the "#".
16621     print prefix "define", macro P[macro] D[macro]
16622     next
16623   } else {
16624     # Replace #undef with comments.  This is necessary, for example,
16625     # in the case of _POSIX_SOURCE, which is predefined and required
16626     # on some systems where configure will not decide to define it.
16627     if (defundef == "undef") {
16628       print "/*", prefix defundef, macro, "*/"
16629       next
16630     }
16631   }
16632 }
16633 { print }
16634 _ACAWK
16635 _ACEOF
16636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16637   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16638 fi # test -n "$CONFIG_HEADERS"
16639
16640
16641 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16642 shift
16643 for ac_tag
16644 do
16645   case $ac_tag in
16646   :[FHLC]) ac_mode=$ac_tag; continue;;
16647   esac
16648   case $ac_mode$ac_tag in
16649   :[FHL]*:*);;
16650   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16651   :[FH]-) ac_tag=-:-;;
16652   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16653   esac
16654   ac_save_IFS=$IFS
16655   IFS=:
16656   set x $ac_tag
16657   IFS=$ac_save_IFS
16658   shift
16659   ac_file=$1
16660   shift
16661
16662   case $ac_mode in
16663   :L) ac_source=$1;;
16664   :[FH])
16665     ac_file_inputs=
16666     for ac_f
16667     do
16668       case $ac_f in
16669       -) ac_f="$tmp/stdin";;
16670       *) # Look for the file first in the build tree, then in the source tree
16671          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16672          # because $ac_f cannot contain `:'.
16673          test -f "$ac_f" ||
16674            case $ac_f in
16675            [\\/$]*) false;;
16676            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16677            esac ||
16678            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16679       esac
16680       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16681       as_fn_append ac_file_inputs " '$ac_f'"
16682     done
16683
16684     # Let's still pretend it is `configure' which instantiates (i.e., don't
16685     # use $as_me), people would be surprised to read:
16686     #    /* config.h.  Generated by config.status.  */
16687     configure_input='Generated from '`
16688           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16689         `' by configure.'
16690     if test x"$ac_file" != x-; then
16691       configure_input="$ac_file.  $configure_input"
16692       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16693 $as_echo "$as_me: creating $ac_file" >&6;}
16694     fi
16695     # Neutralize special characters interpreted by sed in replacement strings.
16696     case $configure_input in #(
16697     *\&* | *\|* | *\\* )
16698        ac_sed_conf_input=`$as_echo "$configure_input" |
16699        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16700     *) ac_sed_conf_input=$configure_input;;
16701     esac
16702
16703     case $ac_tag in
16704     *:-:* | *:-) cat >"$tmp/stdin" \
16705       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16706     esac
16707     ;;
16708   esac
16709
16710   ac_dir=`$as_dirname -- "$ac_file" ||
16711 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16712          X"$ac_file" : 'X\(//\)[^/]' \| \
16713          X"$ac_file" : 'X\(//\)$' \| \
16714          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16715 $as_echo X"$ac_file" |
16716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16717             s//\1/
16718             q
16719           }
16720           /^X\(\/\/\)[^/].*/{
16721             s//\1/
16722             q
16723           }
16724           /^X\(\/\/\)$/{
16725             s//\1/
16726             q
16727           }
16728           /^X\(\/\).*/{
16729             s//\1/
16730             q
16731           }
16732           s/.*/./; q'`
16733   as_dir="$ac_dir"; as_fn_mkdir_p
16734   ac_builddir=.
16735
16736 case "$ac_dir" in
16737 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16738 *)
16739   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16740   # A ".." for each directory in $ac_dir_suffix.
16741   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16742   case $ac_top_builddir_sub in
16743   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16744   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16745   esac ;;
16746 esac
16747 ac_abs_top_builddir=$ac_pwd
16748 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16749 # for backward compatibility:
16750 ac_top_builddir=$ac_top_build_prefix
16751
16752 case $srcdir in
16753   .)  # We are building in place.
16754     ac_srcdir=.
16755     ac_top_srcdir=$ac_top_builddir_sub
16756     ac_abs_top_srcdir=$ac_pwd ;;
16757   [\\/]* | ?:[\\/]* )  # Absolute name.
16758     ac_srcdir=$srcdir$ac_dir_suffix;
16759     ac_top_srcdir=$srcdir
16760     ac_abs_top_srcdir=$srcdir ;;
16761   *) # Relative name.
16762     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16763     ac_top_srcdir=$ac_top_build_prefix$srcdir
16764     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16765 esac
16766 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16767
16768
16769   case $ac_mode in
16770   :F)
16771   #
16772   # CONFIG_FILE
16773   #
16774
16775   case $INSTALL in
16776   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16777   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16778   esac
16779   ac_MKDIR_P=$MKDIR_P
16780   case $MKDIR_P in
16781   [\\/$]* | ?:[\\/]* ) ;;
16782   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16783   esac
16784 _ACEOF
16785
16786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16787 # If the template does not know about datarootdir, expand it.
16788 # FIXME: This hack should be removed a few years after 2.60.
16789 ac_datarootdir_hack=; ac_datarootdir_seen=
16790 ac_sed_dataroot='
16791 /datarootdir/ {
16792   p
16793   q
16794 }
16795 /@datadir@/p
16796 /@docdir@/p
16797 /@infodir@/p
16798 /@localedir@/p
16799 /@mandir@/p'
16800 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16801 *datarootdir*) ac_datarootdir_seen=yes;;
16802 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16803   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16804 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16805 _ACEOF
16806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16807   ac_datarootdir_hack='
16808   s&@datadir@&$datadir&g
16809   s&@docdir@&$docdir&g
16810   s&@infodir@&$infodir&g
16811   s&@localedir@&$localedir&g
16812   s&@mandir@&$mandir&g
16813   s&\\\${datarootdir}&$datarootdir&g' ;;
16814 esac
16815 _ACEOF
16816
16817 # Neutralize VPATH when `$srcdir' = `.'.
16818 # Shell code in configure.ac might set extrasub.
16819 # FIXME: do we really want to maintain this feature?
16820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16821 ac_sed_extra="$ac_vpsub
16822 $extrasub
16823 _ACEOF
16824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16825 :t
16826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16827 s|@configure_input@|$ac_sed_conf_input|;t t
16828 s&@top_builddir@&$ac_top_builddir_sub&;t t
16829 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16830 s&@srcdir@&$ac_srcdir&;t t
16831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16832 s&@top_srcdir@&$ac_top_srcdir&;t t
16833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16834 s&@builddir@&$ac_builddir&;t t
16835 s&@abs_builddir@&$ac_abs_builddir&;t t
16836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16837 s&@INSTALL@&$ac_INSTALL&;t t
16838 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16839 $ac_datarootdir_hack
16840 "
16841 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16842   || as_fn_error "could not create $ac_file" "$LINENO" 5
16843
16844 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16845   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16846   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16847   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16848 which seems to be undefined.  Please make sure it is defined." >&5
16849 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16850 which seems to be undefined.  Please make sure it is defined." >&2;}
16851
16852   rm -f "$tmp/stdin"
16853   case $ac_file in
16854   -) cat "$tmp/out" && rm -f "$tmp/out";;
16855   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16856   esac \
16857   || as_fn_error "could not create $ac_file" "$LINENO" 5
16858  ;;
16859   :H)
16860   #
16861   # CONFIG_HEADER
16862   #
16863   if test x"$ac_file" != x-; then
16864     {
16865       $as_echo "/* $configure_input  */" \
16866       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16867     } >"$tmp/config.h" \
16868       || as_fn_error "could not create $ac_file" "$LINENO" 5
16869     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16870       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16871 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16872     else
16873       rm -f "$ac_file"
16874       mv "$tmp/config.h" "$ac_file" \
16875         || as_fn_error "could not create $ac_file" "$LINENO" 5
16876     fi
16877   else
16878     $as_echo "/* $configure_input  */" \
16879       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16880       || as_fn_error "could not create -" "$LINENO" 5
16881   fi
16882 # Compute "$ac_file"'s index in $config_headers.
16883 _am_arg="$ac_file"
16884 _am_stamp_count=1
16885 for _am_header in $config_headers :; do
16886   case $_am_header in
16887     $_am_arg | $_am_arg:* )
16888       break ;;
16889     * )
16890       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16891   esac
16892 done
16893 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16894 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16895          X"$_am_arg" : 'X\(//\)[^/]' \| \
16896          X"$_am_arg" : 'X\(//\)$' \| \
16897          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16898 $as_echo X"$_am_arg" |
16899     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16900             s//\1/
16901             q
16902           }
16903           /^X\(\/\/\)[^/].*/{
16904             s//\1/
16905             q
16906           }
16907           /^X\(\/\/\)$/{
16908             s//\1/
16909             q
16910           }
16911           /^X\(\/\).*/{
16912             s//\1/
16913             q
16914           }
16915           s/.*/./; q'`/stamp-h$_am_stamp_count
16916  ;;
16917
16918   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16919 $as_echo "$as_me: executing $ac_file commands" >&6;}
16920  ;;
16921   esac
16922
16923
16924   case $ac_file$ac_mode in
16925     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16926   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16927   # are listed without --file.  Let's play safe and only enable the eval
16928   # if we detect the quoting.
16929   case $CONFIG_FILES in
16930   *\'*) eval set x "$CONFIG_FILES" ;;
16931   *)   set x $CONFIG_FILES ;;
16932   esac
16933   shift
16934   for mf
16935   do
16936     # Strip MF so we end up with the name of the file.
16937     mf=`echo "$mf" | sed -e 's/:.*$//'`
16938     # Check whether this is an Automake generated Makefile or not.
16939     # We used to match only the files named `Makefile.in', but
16940     # some people rename them; so instead we look at the file content.
16941     # Grep'ing the first line is not enough: some people post-process
16942     # each Makefile.in and add a new line on top of each file to say so.
16943     # Grep'ing the whole file is not good either: AIX grep has a line
16944     # limit of 2048, but all sed's we know have understand at least 4000.
16945     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16946       dirpart=`$as_dirname -- "$mf" ||
16947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16948          X"$mf" : 'X\(//\)[^/]' \| \
16949          X"$mf" : 'X\(//\)$' \| \
16950          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16951 $as_echo X"$mf" |
16952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16953             s//\1/
16954             q
16955           }
16956           /^X\(\/\/\)[^/].*/{
16957             s//\1/
16958             q
16959           }
16960           /^X\(\/\/\)$/{
16961             s//\1/
16962             q
16963           }
16964           /^X\(\/\).*/{
16965             s//\1/
16966             q
16967           }
16968           s/.*/./; q'`
16969     else
16970       continue
16971     fi
16972     # Extract the definition of DEPDIR, am__include, and am__quote
16973     # from the Makefile without running `make'.
16974     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16975     test -z "$DEPDIR" && continue
16976     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16977     test -z "am__include" && continue
16978     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16979     # When using ansi2knr, U may be empty or an underscore; expand it
16980     U=`sed -n 's/^U = //p' < "$mf"`
16981     # Find all dependency output files, they are included files with
16982     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16983     # simplest approach to changing $(DEPDIR) to its actual value in the
16984     # expansion.
16985     for file in `sed -n "
16986       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16987          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16988       # Make sure the directory exists.
16989       test -f "$dirpart/$file" && continue
16990       fdir=`$as_dirname -- "$file" ||
16991 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16992          X"$file" : 'X\(//\)[^/]' \| \
16993          X"$file" : 'X\(//\)$' \| \
16994          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16995 $as_echo X"$file" |
16996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16997             s//\1/
16998             q
16999           }
17000           /^X\(\/\/\)[^/].*/{
17001             s//\1/
17002             q
17003           }
17004           /^X\(\/\/\)$/{
17005             s//\1/
17006             q
17007           }
17008           /^X\(\/\).*/{
17009             s//\1/
17010             q
17011           }
17012           s/.*/./; q'`
17013       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17014       # echo "creating $dirpart/$file"
17015       echo '# dummy' > "$dirpart/$file"
17016     done
17017   done
17018 }
17019  ;;
17020     "default":C)
17021 case x$CONFIG_HEADERS in
17022 xconfig.h:config.in)
17023 echo > stamp-h ;;
17024 esac
17025  ;;
17026
17027   esac
17028 done # for ac_tag
17029
17030
17031 as_fn_exit 0
17032 _ACEOF
17033 ac_clean_files=$ac_clean_files_save
17034
17035 test $ac_write_fail = 0 ||
17036   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17037
17038
17039 # configure is writing to config.log, and then calls config.status.
17040 # config.status does its own redirection, appending to config.log.
17041 # Unfortunately, on DOS this fails, as config.log is still kept open
17042 # by configure, so config.status won't be able to write to it; its
17043 # output is simply discarded.  So we exec the FD to /dev/null,
17044 # effectively closing config.log, so it can be properly (re)opened and
17045 # appended to by config.status.  When coming back to configure, we
17046 # need to make the FD available again.
17047 if test "$no_create" != yes; then
17048   ac_cs_success=:
17049   ac_config_status_args=
17050   test "$silent" = yes &&
17051     ac_config_status_args="$ac_config_status_args --quiet"
17052   exec 5>/dev/null
17053   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17054   exec 5>>config.log
17055   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17056   # would make configure fail if this is the last instruction.
17057   $ac_cs_success || as_fn_exit $?
17058 fi
17059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17060   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17061 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17062 fi
17063
17064
17065 exit 0