Tizen 2.1 base
[external/wget.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for wget 1.12.
4 #
5 # Report bugs to <bug-wget@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='wget'
598 PACKAGE_TARNAME='wget'
599 PACKAGE_VERSION='1.12'
600 PACKAGE_STRING='wget 1.12'
601 PACKAGE_BUGREPORT='bug-wget@gnu.org'
602
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 #  include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #  include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 gt_needs=
640 ac_header_list=
641 gl_getopt_required=POSIX
642 gl_getopt_required=POSIX
643 ac_func_list=
644 ac_subst_vars='md5tests_LTLIBOBJS
645 md5tests_LIBOBJS
646 md5_LTLIBOBJS
647 md5_LIBOBJS
648 gltests_LTLIBOBJS
649 gltests_LIBOBJS
650 gl_LTLIBOBJS
651 gl_LIBOBJS
652 LTLIBOBJS
653 IRI_IS_ENABLED_FALSE
654 IRI_IS_ENABLED_TRUE
655 COMMENT_IF_NO_POD2MAN
656 POD2MAN
657 PERL
658 LIBMD5_LTLIBDEPS
659 LIBMD5_LIBDEPS
660 MD5_SUBDIR
661 MD5_LDADD
662 MD5_CPPFLAGS
663 LIBSSL_PREFIX
664 LTLIBSSL
665 LIBSSL
666 HAVE_LIBSSL
667 LIBGNUTLS_PREFIX
668 LTLIBGNUTLS
669 LIBGNUTLS
670 HAVE_LIBGNUTLS
671 LIBOBJS
672 LIBGNU_LTLIBDEPS
673 LIBGNU_LIBDEPS
674 REPLACE_ISWCNTRL
675 WCTYPE_H
676 HAVE_WCTYPE_H
677 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
678 NEXT_WCTYPE_H
679 HAVE_ISWCNTRL
680 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
681 NEXT_WCHAR_H
682 HAVE_WCHAR_H
683 HAVE_WINT_T
684 HAVE_UNISTD_H
685 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
686 NEXT_UNISTD_H
687 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
688 NEXT_STRINGS_H
689 NEXT_AS_FIRST_DIRECTIVE_STRING_H
690 NEXT_STRING_H
691 HAVE_DECL_STRNCASECMP
692 HAVE_STRCASECMP
693 HAVE_RANDOM_H
694 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
695 NEXT_STDLIB_H
696 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
697 NEXT_STDIO_H
698 STDINT_H
699 WINT_T_SUFFIX
700 WCHAR_T_SUFFIX
701 SIG_ATOMIC_T_SUFFIX
702 SIZE_T_SUFFIX
703 PTRDIFF_T_SUFFIX
704 HAVE_SIGNED_WINT_T
705 HAVE_SIGNED_WCHAR_T
706 HAVE_SIGNED_SIG_ATOMIC_T
707 BITSIZEOF_WINT_T
708 BITSIZEOF_WCHAR_T
709 BITSIZEOF_SIG_ATOMIC_T
710 BITSIZEOF_SIZE_T
711 BITSIZEOF_PTRDIFF_T
712 HAVE_SYS_BITYPES_H
713 HAVE_SYS_INTTYPES_H
714 HAVE_STDINT_H
715 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
716 NEXT_STDINT_H
717 HAVE_SYS_TYPES_H
718 HAVE_INTTYPES_H
719 HAVE_UNSIGNED_LONG_LONG_INT
720 HAVE_LONG_LONG_INT
721 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
722 NEXT_STDDEF_H
723 STDDEF_H
724 HAVE_WCHAR_T
725 REPLACE_NULL
726 HAVE__BOOL
727 STDBOOL_H
728 VOID_UNSETENV
729 REPLACE_STRTOD
730 REPLACE_PUTENV
731 REPLACE_MKSTEMP
732 HAVE_DECL_GETLOADAVG
733 HAVE_UNSETENV
734 HAVE_SYS_LOADAVG_H
735 HAVE_STRUCT_RANDOM_DATA
736 HAVE_STRTOULL
737 HAVE_STRTOLL
738 HAVE_STRTOD
739 HAVE_SETENV
740 HAVE_RPMATCH
741 HAVE_RANDOM_R
742 HAVE_MKOSTEMP
743 HAVE_MKDTEMP
744 HAVE_MALLOC_POSIX
745 HAVE_GETSUBOPT
746 HAVE_CALLOC_POSIX
747 HAVE_ATOLL
748 GNULIB_UNSETENV
749 GNULIB_STRTOULL
750 GNULIB_STRTOLL
751 GNULIB_STRTOD
752 GNULIB_SETENV
753 GNULIB_RPMATCH
754 GNULIB_RANDOM_R
755 GNULIB_PUTENV
756 GNULIB_MKSTEMP
757 GNULIB_MKOSTEMP
758 GNULIB_MKDTEMP
759 GNULIB_GETSUBOPT
760 GNULIB_GETLOADAVG
761 GNULIB_ATOLL
762 GNULIB_CALLOC_POSIX
763 GNULIB_REALLOC_POSIX
764 GNULIB_MALLOC_POSIX
765 HAVE_REALLOC_POSIX
766 APPLE_UNIVERSAL_BUILD
767 REPLACE_STRSIGNAL
768 REPLACE_STRERROR
769 REPLACE_STRCASESTR
770 REPLACE_STRSTR
771 REPLACE_STRDUP
772 REPLACE_MEMMEM
773 REPLACE_MEMCHR
774 HAVE_STRVERSCMP
775 HAVE_DECL_STRSIGNAL
776 HAVE_DECL_STRERROR
777 HAVE_DECL_STRTOK_R
778 HAVE_STRCASESTR
779 HAVE_STRSEP
780 HAVE_STRPBRK
781 HAVE_DECL_STRNLEN
782 HAVE_DECL_STRNDUP
783 HAVE_STRNDUP
784 HAVE_DECL_STRDUP
785 HAVE_STRCHRNUL
786 HAVE_STPNCPY
787 HAVE_STPCPY
788 HAVE_RAWMEMCHR
789 HAVE_DECL_MEMRCHR
790 HAVE_MEMPCPY
791 HAVE_DECL_MEMMEM
792 GNULIB_STRVERSCMP
793 GNULIB_STRSIGNAL
794 GNULIB_STRERROR
795 GNULIB_MBSTOK_R
796 GNULIB_MBSSEP
797 GNULIB_MBSSPN
798 GNULIB_MBSPBRK
799 GNULIB_MBSCSPN
800 GNULIB_MBSCASESTR
801 GNULIB_MBSPCASECMP
802 GNULIB_MBSNCASECMP
803 GNULIB_MBSCASECMP
804 GNULIB_MBSSTR
805 GNULIB_MBSRCHR
806 GNULIB_MBSCHR
807 GNULIB_MBSNLEN
808 GNULIB_MBSLEN
809 GNULIB_STRTOK_R
810 GNULIB_STRCASESTR
811 GNULIB_STRSTR
812 GNULIB_STRSEP
813 GNULIB_STRPBRK
814 GNULIB_STRNLEN
815 GNULIB_STRNDUP
816 GNULIB_STRDUP
817 GNULIB_STRCHRNUL
818 GNULIB_STPNCPY
819 GNULIB_STPCPY
820 GNULIB_RAWMEMCHR
821 GNULIB_MEMRCHR
822 GNULIB_MEMPCPY
823 GNULIB_MEMMEM
824 GNULIB_MEMCHR
825 LOCALE_FR_UTF8
826 LOCALE_ZH_CN
827 LOCALE_JA
828 WCHAR_H
829 REPLACE_WCWIDTH
830 REPLACE_WCSNRTOMBS
831 REPLACE_WCSRTOMBS
832 REPLACE_WCRTOMB
833 REPLACE_MBSNRTOWCS
834 REPLACE_MBSRTOWCS
835 REPLACE_MBRLEN
836 REPLACE_MBRTOWC
837 REPLACE_MBSINIT
838 REPLACE_WCTOB
839 REPLACE_BTOWC
840 REPLACE_MBSTATE_T
841 HAVE_DECL_WCWIDTH
842 HAVE_DECL_WCTOB
843 HAVE_WCSNRTOMBS
844 HAVE_WCSRTOMBS
845 HAVE_WCRTOMB
846 HAVE_MBSNRTOWCS
847 HAVE_MBSRTOWCS
848 HAVE_MBRLEN
849 HAVE_MBRTOWC
850 HAVE_MBSINIT
851 HAVE_BTOWC
852 GNULIB_WCWIDTH
853 GNULIB_WCSNRTOMBS
854 GNULIB_WCSRTOMBS
855 GNULIB_WCRTOMB
856 GNULIB_MBSNRTOWCS
857 GNULIB_MBSRTOWCS
858 GNULIB_MBRLEN
859 GNULIB_MBRTOWC
860 GNULIB_MBSINIT
861 GNULIB_WCTOB
862 GNULIB_BTOWC
863 LOCALCHARSET_TESTS_ENVIRONMENT
864 GLIBC21
865 GETOPT_H
866 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
867 UNISTD_H_HAVE_WINSOCK2_H
868 REPLACE_WRITE
869 REPLACE_LSEEK
870 REPLACE_LCHOWN
871 REPLACE_GETPAGESIZE
872 REPLACE_GETCWD
873 REPLACE_FCHDIR
874 REPLACE_DUP2
875 REPLACE_CLOSE
876 REPLACE_CHOWN
877 HAVE_SYS_PARAM_H
878 HAVE_OS_H
879 HAVE_DECL_GETLOGIN_R
880 HAVE_DECL_ENVIRON
881 HAVE_SLEEP
882 HAVE_READLINK
883 HAVE_PIPE2
884 HAVE_LINK
885 HAVE_GETUSERSHELL
886 HAVE_GETPAGESIZE
887 HAVE_GETHOSTNAME
888 HAVE_GETDTABLESIZE
889 HAVE_GETDOMAINNAME
890 HAVE_FTRUNCATE
891 HAVE_FSYNC
892 HAVE_EUIDACCESS
893 HAVE_DUP3
894 HAVE_DUP2
895 GNULIB_WRITE
896 GNULIB_UNISTD_H_SIGPIPE
897 GNULIB_UNISTD_H_GETOPT
898 GNULIB_SLEEP
899 GNULIB_READLINK
900 GNULIB_PIPE2
901 GNULIB_LSEEK
902 GNULIB_LINK
903 GNULIB_LCHOWN
904 GNULIB_GETUSERSHELL
905 GNULIB_GETPAGESIZE
906 GNULIB_GETLOGIN_R
907 GNULIB_GETHOSTNAME
908 GNULIB_GETDTABLESIZE
909 GNULIB_GETDOMAINNAME
910 GNULIB_GETCWD
911 GNULIB_FTRUNCATE
912 GNULIB_FSYNC
913 GNULIB_FCHDIR
914 GNULIB_EUIDACCESS
915 GNULIB_ENVIRON
916 GNULIB_DUP3
917 GNULIB_DUP2
918 GNULIB_CLOSE
919 GNULIB_CHOWN
920 REPLACE_PERROR
921 REPLACE_GETLINE
922 HAVE_DECL_GETLINE
923 HAVE_DECL_GETDELIM
924 REPLACE_POPEN
925 REPLACE_FCLOSE
926 HAVE_DECL_FPURGE
927 REPLACE_FPURGE
928 REPLACE_FFLUSH
929 REPLACE_FTELL
930 REPLACE_FTELLO
931 HAVE_FTELLO
932 REPLACE_FSEEK
933 REPLACE_FSEEKO
934 HAVE_FSEEKO
935 REPLACE_FREOPEN
936 REPLACE_FOPEN
937 REPLACE_OBSTACK_PRINTF
938 HAVE_DECL_OBSTACK_PRINTF
939 REPLACE_VASPRINTF
940 HAVE_VASPRINTF
941 REPLACE_VDPRINTF
942 HAVE_VDPRINTF
943 REPLACE_DPRINTF
944 HAVE_DPRINTF
945 REPLACE_VSPRINTF
946 REPLACE_SPRINTF
947 HAVE_DECL_VSNPRINTF
948 REPLACE_VSNPRINTF
949 HAVE_DECL_SNPRINTF
950 REPLACE_SNPRINTF
951 REPLACE_VPRINTF
952 REPLACE_PRINTF
953 REPLACE_VFPRINTF
954 REPLACE_FPRINTF
955 REPLACE_STDIO_WRITE_FUNCS
956 GNULIB_STDIO_H_SIGPIPE
957 GNULIB_PERROR
958 GNULIB_GETLINE
959 GNULIB_GETDELIM
960 GNULIB_POPEN
961 GNULIB_FWRITE
962 GNULIB_PUTS
963 GNULIB_FPUTS
964 GNULIB_PUTCHAR
965 GNULIB_PUTC
966 GNULIB_FPUTC
967 GNULIB_FCLOSE
968 GNULIB_FPURGE
969 GNULIB_FFLUSH
970 GNULIB_FTELLO
971 GNULIB_FTELL
972 GNULIB_FSEEKO
973 GNULIB_FSEEK
974 GNULIB_FREOPEN
975 GNULIB_FOPEN
976 GNULIB_OBSTACK_PRINTF_POSIX
977 GNULIB_OBSTACK_PRINTF
978 GNULIB_VASPRINTF
979 GNULIB_VDPRINTF
980 GNULIB_DPRINTF
981 GNULIB_VSPRINTF_POSIX
982 GNULIB_VSNPRINTF
983 GNULIB_VPRINTF_POSIX
984 GNULIB_VPRINTF
985 GNULIB_VFPRINTF_POSIX
986 GNULIB_VFPRINTF
987 GNULIB_SPRINTF_POSIX
988 GNULIB_SNPRINTF
989 GNULIB_PRINTF_POSIX
990 GNULIB_PRINTF
991 GNULIB_FPRINTF_POSIX
992 GNULIB_FPRINTF
993 EOVERFLOW_VALUE
994 EOVERFLOW_HIDDEN
995 ENOLINK_VALUE
996 ENOLINK_HIDDEN
997 EMULTIHOP_VALUE
998 EMULTIHOP_HIDDEN
999 ERRNO_H
1000 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1001 NEXT_ERRNO_H
1002 PRAGMA_SYSTEM_HEADER
1003 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1004 INCLUDE_NEXT
1005 ALLOCA_H
1006 ALLOCA
1007 GL_COND_LIBTOOL_FALSE
1008 GL_COND_LIBTOOL_TRUE
1009 LEXLIB
1010 LEX_OUTPUT_ROOT
1011 LEX
1012 POSUB
1013 LTLIBINTL
1014 LIBINTL
1015 INTLLIBS
1016 LTLIBICONV
1017 LIBICONV
1018 INTL_MACOSX_LIBS
1019 XGETTEXT_EXTRA_OPTIONS
1020 MSGMERGE
1021 XGETTEXT_015
1022 XGETTEXT
1023 GMSGFMT_015
1024 MSGFMT_015
1025 GMSGFMT
1026 MSGFMT
1027 GETTEXT_MACRO_VERSION
1028 USE_NLS
1029 RANLIB
1030 EGREP
1031 GREP
1032 CPP
1033 am__fastdepCC_FALSE
1034 am__fastdepCC_TRUE
1035 CCDEPMODE
1036 AMDEPBACKSLASH
1037 AMDEP_FALSE
1038 AMDEP_TRUE
1039 am__quote
1040 am__include
1041 DEPDIR
1042 OBJEXT
1043 EXEEXT
1044 ac_ct_CC
1045 CPPFLAGS
1046 LDFLAGS
1047 CFLAGS
1048 CC
1049 host_os
1050 host_vendor
1051 host_cpu
1052 host
1053 build_os
1054 build_vendor
1055 build_cpu
1056 build
1057 am__untar
1058 am__tar
1059 AMTAR
1060 am__leading_dot
1061 SET_MAKE
1062 AWK
1063 mkdir_p
1064 MKDIR_P
1065 INSTALL_STRIP_PROGRAM
1066 STRIP
1067 install_sh
1068 MAKEINFO
1069 AUTOHEADER
1070 AUTOMAKE
1071 AUTOCONF
1072 ACLOCAL
1073 VERSION
1074 PACKAGE
1075 CYGPATH_W
1076 am__isrc
1077 INSTALL_DATA
1078 INSTALL_SCRIPT
1079 INSTALL_PROGRAM
1080 target_alias
1081 host_alias
1082 build_alias
1083 LIBS
1084 ECHO_T
1085 ECHO_N
1086 ECHO_C
1087 DEFS
1088 mandir
1089 localedir
1090 libdir
1091 psdir
1092 pdfdir
1093 dvidir
1094 htmldir
1095 infodir
1096 docdir
1097 oldincludedir
1098 includedir
1099 localstatedir
1100 sharedstatedir
1101 sysconfdir
1102 datadir
1103 datarootdir
1104 libexecdir
1105 sbindir
1106 bindir
1107 program_transform_name
1108 prefix
1109 exec_prefix
1110 PACKAGE_BUGREPORT
1111 PACKAGE_STRING
1112 PACKAGE_VERSION
1113 PACKAGE_TARNAME
1114 PACKAGE_NAME
1115 PATH_SEPARATOR
1116 SHELL'
1117 ac_subst_files=''
1118 ac_user_opts='
1119 enable_option_checking
1120 with_ssl
1121 enable_opie
1122 enable_digest
1123 enable_ntlm
1124 enable_debug
1125 enable_dependency_tracking
1126 enable_nls
1127 with_gnu_ld
1128 enable_rpath
1129 with_libiconv_prefix
1130 with_libintl_prefix
1131 enable_largefile
1132 with_libgnutls_prefix
1133 with_libssl_prefix
1134 enable_ipv6
1135 enable_iri
1136 with_libidn
1137 '
1138       ac_precious_vars='build_alias
1139 host_alias
1140 target_alias
1141 CC
1142 CFLAGS
1143 LDFLAGS
1144 LIBS
1145 CPPFLAGS
1146 CPP'
1147
1148
1149 # Initialize some variables set by options.
1150 ac_init_help=
1151 ac_init_version=false
1152 ac_unrecognized_opts=
1153 ac_unrecognized_sep=
1154 # The variables have the same names as the options, with
1155 # dashes changed to underlines.
1156 cache_file=/dev/null
1157 exec_prefix=NONE
1158 no_create=
1159 no_recursion=
1160 prefix=NONE
1161 program_prefix=NONE
1162 program_suffix=NONE
1163 program_transform_name=s,x,x,
1164 silent=
1165 site=
1166 srcdir=
1167 verbose=
1168 x_includes=NONE
1169 x_libraries=NONE
1170
1171 # Installation directory options.
1172 # These are left unexpanded so users can "make install exec_prefix=/foo"
1173 # and all the variables that are supposed to be based on exec_prefix
1174 # by default will actually change.
1175 # Use braces instead of parens because sh, perl, etc. also accept them.
1176 # (The list follows the same order as the GNU Coding Standards.)
1177 bindir='${exec_prefix}/bin'
1178 sbindir='${exec_prefix}/sbin'
1179 libexecdir='${exec_prefix}/libexec'
1180 datarootdir='${prefix}/share'
1181 datadir='${datarootdir}'
1182 sysconfdir='${prefix}/etc'
1183 sharedstatedir='${prefix}/com'
1184 localstatedir='${prefix}/var'
1185 includedir='${prefix}/include'
1186 oldincludedir='/usr/include'
1187 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1188 infodir='${datarootdir}/info'
1189 htmldir='${docdir}'
1190 dvidir='${docdir}'
1191 pdfdir='${docdir}'
1192 psdir='${docdir}'
1193 libdir='${exec_prefix}/lib'
1194 localedir='${datarootdir}/locale'
1195 mandir='${datarootdir}/man'
1196
1197 ac_prev=
1198 ac_dashdash=
1199 for ac_option
1200 do
1201   # If the previous option needs an argument, assign it.
1202   if test -n "$ac_prev"; then
1203     eval $ac_prev=\$ac_option
1204     ac_prev=
1205     continue
1206   fi
1207
1208   case $ac_option in
1209   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1210   *)    ac_optarg=yes ;;
1211   esac
1212
1213   # Accept the important Cygnus configure options, so we can diagnose typos.
1214
1215   case $ac_dashdash$ac_option in
1216   --)
1217     ac_dashdash=yes ;;
1218
1219   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1220     ac_prev=bindir ;;
1221   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1222     bindir=$ac_optarg ;;
1223
1224   -build | --build | --buil | --bui | --bu)
1225     ac_prev=build_alias ;;
1226   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1227     build_alias=$ac_optarg ;;
1228
1229   -cache-file | --cache-file | --cache-fil | --cache-fi \
1230   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1231     ac_prev=cache_file ;;
1232   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1233   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1234     cache_file=$ac_optarg ;;
1235
1236   --config-cache | -C)
1237     cache_file=config.cache ;;
1238
1239   -datadir | --datadir | --datadi | --datad)
1240     ac_prev=datadir ;;
1241   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1242     datadir=$ac_optarg ;;
1243
1244   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1245   | --dataroo | --dataro | --datar)
1246     ac_prev=datarootdir ;;
1247   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1248   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1249     datarootdir=$ac_optarg ;;
1250
1251   -disable-* | --disable-*)
1252     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1256    { (exit 1); exit 1; }; }
1257     ac_useropt_orig=$ac_useropt
1258     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259     case $ac_user_opts in
1260       *"
1261 "enable_$ac_useropt"
1262 "*) ;;
1263       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1264          ac_unrecognized_sep=', ';;
1265     esac
1266     eval enable_$ac_useropt=no ;;
1267
1268   -docdir | --docdir | --docdi | --doc | --do)
1269     ac_prev=docdir ;;
1270   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1271     docdir=$ac_optarg ;;
1272
1273   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1274     ac_prev=dvidir ;;
1275   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1276     dvidir=$ac_optarg ;;
1277
1278   -enable-* | --enable-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1283    { (exit 1); exit 1; }; }
1284     ac_useropt_orig=$ac_useropt
1285     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286     case $ac_user_opts in
1287       *"
1288 "enable_$ac_useropt"
1289 "*) ;;
1290       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1291          ac_unrecognized_sep=', ';;
1292     esac
1293     eval enable_$ac_useropt=\$ac_optarg ;;
1294
1295   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1296   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1297   | --exec | --exe | --ex)
1298     ac_prev=exec_prefix ;;
1299   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1300   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1301   | --exec=* | --exe=* | --ex=*)
1302     exec_prefix=$ac_optarg ;;
1303
1304   -gas | --gas | --ga | --g)
1305     # Obsolete; use --with-gas.
1306     with_gas=yes ;;
1307
1308   -help | --help | --hel | --he | -h)
1309     ac_init_help=long ;;
1310   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1311     ac_init_help=recursive ;;
1312   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1313     ac_init_help=short ;;
1314
1315   -host | --host | --hos | --ho)
1316     ac_prev=host_alias ;;
1317   -host=* | --host=* | --hos=* | --ho=*)
1318     host_alias=$ac_optarg ;;
1319
1320   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1321     ac_prev=htmldir ;;
1322   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1323   | --ht=*)
1324     htmldir=$ac_optarg ;;
1325
1326   -includedir | --includedir | --includedi | --included | --include \
1327   | --includ | --inclu | --incl | --inc)
1328     ac_prev=includedir ;;
1329   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1330   | --includ=* | --inclu=* | --incl=* | --inc=*)
1331     includedir=$ac_optarg ;;
1332
1333   -infodir | --infodir | --infodi | --infod | --info | --inf)
1334     ac_prev=infodir ;;
1335   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1336     infodir=$ac_optarg ;;
1337
1338   -libdir | --libdir | --libdi | --libd)
1339     ac_prev=libdir ;;
1340   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1341     libdir=$ac_optarg ;;
1342
1343   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1344   | --libexe | --libex | --libe)
1345     ac_prev=libexecdir ;;
1346   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1347   | --libexe=* | --libex=* | --libe=*)
1348     libexecdir=$ac_optarg ;;
1349
1350   -localedir | --localedir | --localedi | --localed | --locale)
1351     ac_prev=localedir ;;
1352   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1353     localedir=$ac_optarg ;;
1354
1355   -localstatedir | --localstatedir | --localstatedi | --localstated \
1356   | --localstate | --localstat | --localsta | --localst | --locals)
1357     ac_prev=localstatedir ;;
1358   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1359   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1360     localstatedir=$ac_optarg ;;
1361
1362   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1363     ac_prev=mandir ;;
1364   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1365     mandir=$ac_optarg ;;
1366
1367   -nfp | --nfp | --nf)
1368     # Obsolete; use --without-fp.
1369     with_fp=no ;;
1370
1371   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1372   | --no-cr | --no-c | -n)
1373     no_create=yes ;;
1374
1375   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1376   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1377     no_recursion=yes ;;
1378
1379   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1380   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1381   | --oldin | --oldi | --old | --ol | --o)
1382     ac_prev=oldincludedir ;;
1383   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1384   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1385   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1386     oldincludedir=$ac_optarg ;;
1387
1388   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1389     ac_prev=prefix ;;
1390   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1391     prefix=$ac_optarg ;;
1392
1393   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1394   | --program-pre | --program-pr | --program-p)
1395     ac_prev=program_prefix ;;
1396   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1397   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1398     program_prefix=$ac_optarg ;;
1399
1400   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1401   | --program-suf | --program-su | --program-s)
1402     ac_prev=program_suffix ;;
1403   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1404   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1405     program_suffix=$ac_optarg ;;
1406
1407   -program-transform-name | --program-transform-name \
1408   | --program-transform-nam | --program-transform-na \
1409   | --program-transform-n | --program-transform- \
1410   | --program-transform | --program-transfor \
1411   | --program-transfo | --program-transf \
1412   | --program-trans | --program-tran \
1413   | --progr-tra | --program-tr | --program-t)
1414     ac_prev=program_transform_name ;;
1415   -program-transform-name=* | --program-transform-name=* \
1416   | --program-transform-nam=* | --program-transform-na=* \
1417   | --program-transform-n=* | --program-transform-=* \
1418   | --program-transform=* | --program-transfor=* \
1419   | --program-transfo=* | --program-transf=* \
1420   | --program-trans=* | --program-tran=* \
1421   | --progr-tra=* | --program-tr=* | --program-t=*)
1422     program_transform_name=$ac_optarg ;;
1423
1424   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1425     ac_prev=pdfdir ;;
1426   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1427     pdfdir=$ac_optarg ;;
1428
1429   -psdir | --psdir | --psdi | --psd | --ps)
1430     ac_prev=psdir ;;
1431   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1432     psdir=$ac_optarg ;;
1433
1434   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1435   | -silent | --silent | --silen | --sile | --sil)
1436     silent=yes ;;
1437
1438   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1439     ac_prev=sbindir ;;
1440   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1441   | --sbi=* | --sb=*)
1442     sbindir=$ac_optarg ;;
1443
1444   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1445   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1446   | --sharedst | --shareds | --shared | --share | --shar \
1447   | --sha | --sh)
1448     ac_prev=sharedstatedir ;;
1449   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1450   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1451   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1452   | --sha=* | --sh=*)
1453     sharedstatedir=$ac_optarg ;;
1454
1455   -site | --site | --sit)
1456     ac_prev=site ;;
1457   -site=* | --site=* | --sit=*)
1458     site=$ac_optarg ;;
1459
1460   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1461     ac_prev=srcdir ;;
1462   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1463     srcdir=$ac_optarg ;;
1464
1465   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1466   | --syscon | --sysco | --sysc | --sys | --sy)
1467     ac_prev=sysconfdir ;;
1468   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1469   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1470     sysconfdir=$ac_optarg ;;
1471
1472   -target | --target | --targe | --targ | --tar | --ta | --t)
1473     ac_prev=target_alias ;;
1474   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1475     target_alias=$ac_optarg ;;
1476
1477   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1478     verbose=yes ;;
1479
1480   -version | --version | --versio | --versi | --vers | -V)
1481     ac_init_version=: ;;
1482
1483   -with-* | --with-*)
1484     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1485     # Reject names that are not valid shell variable names.
1486     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1488    { (exit 1); exit 1; }; }
1489     ac_useropt_orig=$ac_useropt
1490     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491     case $ac_user_opts in
1492       *"
1493 "with_$ac_useropt"
1494 "*) ;;
1495       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1496          ac_unrecognized_sep=', ';;
1497     esac
1498     eval with_$ac_useropt=\$ac_optarg ;;
1499
1500   -without-* | --without-*)
1501     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1502     # Reject names that are not valid shell variable names.
1503     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1505    { (exit 1); exit 1; }; }
1506     ac_useropt_orig=$ac_useropt
1507     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508     case $ac_user_opts in
1509       *"
1510 "with_$ac_useropt"
1511 "*) ;;
1512       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1513          ac_unrecognized_sep=', ';;
1514     esac
1515     eval with_$ac_useropt=no ;;
1516
1517   --x)
1518     # Obsolete; use --with-x.
1519     with_x=yes ;;
1520
1521   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1522   | --x-incl | --x-inc | --x-in | --x-i)
1523     ac_prev=x_includes ;;
1524   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1525   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1526     x_includes=$ac_optarg ;;
1527
1528   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1529   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1530     ac_prev=x_libraries ;;
1531   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1532   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1533     x_libraries=$ac_optarg ;;
1534
1535   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1536 Try \`$0 --help' for more information." >&2
1537    { (exit 1); exit 1; }; }
1538     ;;
1539
1540   *=*)
1541     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542     # Reject names that are not valid shell variable names.
1543     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1544       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1545    { (exit 1); exit 1; }; }
1546     eval $ac_envvar=\$ac_optarg
1547     export $ac_envvar ;;
1548
1549   *)
1550     # FIXME: should be removed in autoconf 3.0.
1551     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1552     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1553       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1554     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1555     ;;
1556
1557   esac
1558 done
1559
1560 if test -n "$ac_prev"; then
1561   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1562   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1563    { (exit 1); exit 1; }; }
1564 fi
1565
1566 if test -n "$ac_unrecognized_opts"; then
1567   case $enable_option_checking in
1568     no) ;;
1569     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1570    { (exit 1); exit 1; }; } ;;
1571     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1572   esac
1573 fi
1574
1575 # Check all directory arguments for consistency.
1576 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1577                 datadir sysconfdir sharedstatedir localstatedir includedir \
1578                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1579                 libdir localedir mandir
1580 do
1581   eval ac_val=\$$ac_var
1582   # Remove trailing slashes.
1583   case $ac_val in
1584     */ )
1585       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1586       eval $ac_var=\$ac_val;;
1587   esac
1588   # Be sure to have absolute directory names.
1589   case $ac_val in
1590     [\\/$]* | ?:[\\/]* )  continue;;
1591     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1592   esac
1593   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1594    { (exit 1); exit 1; }; }
1595 done
1596
1597 # There might be people who depend on the old broken behavior: `$host'
1598 # used to hold the argument of --host etc.
1599 # FIXME: To remove some day.
1600 build=$build_alias
1601 host=$host_alias
1602 target=$target_alias
1603
1604 # FIXME: To remove some day.
1605 if test "x$host_alias" != x; then
1606   if test "x$build_alias" = x; then
1607     cross_compiling=maybe
1608     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1609     If a cross compiler is detected then cross compile mode will be used." >&2
1610   elif test "x$build_alias" != "x$host_alias"; then
1611     cross_compiling=yes
1612   fi
1613 fi
1614
1615 ac_tool_prefix=
1616 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1617
1618 test "$silent" = yes && exec 6>/dev/null
1619
1620
1621 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1622 ac_ls_di=`ls -di .` &&
1623 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1624   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1625    { (exit 1); exit 1; }; }
1626 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1627   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1628    { (exit 1); exit 1; }; }
1629
1630
1631 # Find the source files, if location was not specified.
1632 if test -z "$srcdir"; then
1633   ac_srcdir_defaulted=yes
1634   # Try the directory containing this script, then the parent directory.
1635   ac_confdir=`$as_dirname -- "$as_myself" ||
1636 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1637          X"$as_myself" : 'X\(//\)[^/]' \| \
1638          X"$as_myself" : 'X\(//\)$' \| \
1639          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1640 $as_echo X"$as_myself" |
1641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1642             s//\1/
1643             q
1644           }
1645           /^X\(\/\/\)[^/].*/{
1646             s//\1/
1647             q
1648           }
1649           /^X\(\/\/\)$/{
1650             s//\1/
1651             q
1652           }
1653           /^X\(\/\).*/{
1654             s//\1/
1655             q
1656           }
1657           s/.*/./; q'`
1658   srcdir=$ac_confdir
1659   if test ! -r "$srcdir/$ac_unique_file"; then
1660     srcdir=..
1661   fi
1662 else
1663   ac_srcdir_defaulted=no
1664 fi
1665 if test ! -r "$srcdir/$ac_unique_file"; then
1666   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1667   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1668    { (exit 1); exit 1; }; }
1669 fi
1670 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1671 ac_abs_confdir=`(
1672         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1673    { (exit 1); exit 1; }; }
1674         pwd)`
1675 # When building in place, set srcdir=.
1676 if test "$ac_abs_confdir" = "$ac_pwd"; then
1677   srcdir=.
1678 fi
1679 # Remove unnecessary trailing slashes from srcdir.
1680 # Double slashes in file names in object file debugging info
1681 # mess up M-x gdb in Emacs.
1682 case $srcdir in
1683 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1684 esac
1685 for ac_var in $ac_precious_vars; do
1686   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1687   eval ac_env_${ac_var}_value=\$${ac_var}
1688   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1689   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1690 done
1691
1692 #
1693 # Report the --help message.
1694 #
1695 if test "$ac_init_help" = "long"; then
1696   # Omit some internal or obsolete options to make the list less imposing.
1697   # This message is too long to be a string in the A/UX 3.1 sh.
1698   cat <<_ACEOF
1699 \`configure' configures wget 1.12 to adapt to many kinds of systems.
1700
1701 Usage: $0 [OPTION]... [VAR=VALUE]...
1702
1703 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1704 VAR=VALUE.  See below for descriptions of some of the useful variables.
1705
1706 Defaults for the options are specified in brackets.
1707
1708 Configuration:
1709   -h, --help              display this help and exit
1710       --help=short        display options specific to this package
1711       --help=recursive    display the short help of all the included packages
1712   -V, --version           display version information and exit
1713   -q, --quiet, --silent   do not print \`checking...' messages
1714       --cache-file=FILE   cache test results in FILE [disabled]
1715   -C, --config-cache      alias for \`--cache-file=config.cache'
1716   -n, --no-create         do not create output files
1717       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1718
1719 Installation directories:
1720   --prefix=PREFIX         install architecture-independent files in PREFIX
1721                           [$ac_default_prefix]
1722   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1723                           [PREFIX]
1724
1725 By default, \`make install' will install all the files in
1726 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1727 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1728 for instance \`--prefix=\$HOME'.
1729
1730 For better control, use the options below.
1731
1732 Fine tuning of the installation directories:
1733   --bindir=DIR            user executables [EPREFIX/bin]
1734   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1735   --libexecdir=DIR        program executables [EPREFIX/libexec]
1736   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1737   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1738   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1739   --libdir=DIR            object code libraries [EPREFIX/lib]
1740   --includedir=DIR        C header files [PREFIX/include]
1741   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1742   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1743   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1744   --infodir=DIR           info documentation [DATAROOTDIR/info]
1745   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1746   --mandir=DIR            man documentation [DATAROOTDIR/man]
1747   --docdir=DIR            documentation root [DATAROOTDIR/doc/wget]
1748   --htmldir=DIR           html documentation [DOCDIR]
1749   --dvidir=DIR            dvi documentation [DOCDIR]
1750   --pdfdir=DIR            pdf documentation [DOCDIR]
1751   --psdir=DIR             ps documentation [DOCDIR]
1752 _ACEOF
1753
1754   cat <<\_ACEOF
1755
1756 Program names:
1757   --program-prefix=PREFIX            prepend PREFIX to installed program names
1758   --program-suffix=SUFFIX            append SUFFIX to installed program names
1759   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1760
1761 System types:
1762   --build=BUILD     configure for building on BUILD [guessed]
1763   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1764 _ACEOF
1765 fi
1766
1767 if test -n "$ac_init_help"; then
1768   case $ac_init_help in
1769      short | recursive ) echo "Configuration of wget 1.12:";;
1770    esac
1771   cat <<\_ACEOF
1772
1773 Optional Features:
1774   --disable-option-checking  ignore unrecognized --enable/--with options
1775   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1776   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1777   --disable-opie          disable support for opie or s/key FTP login
1778   --disable-digest        disable support for HTTP digest authorization
1779   --disable-ntlm          disable support for NTLM authorization
1780   --disable-debug         disable support for debugging output
1781   --disable-dependency-tracking  speeds up one-time build
1782   --enable-dependency-tracking   do not reject slow dependency extractors
1783   --disable-nls           do not use Native Language Support
1784   --disable-rpath         do not hardcode runtime library paths
1785   --disable-largefile     omit support for large files
1786   --disable-ipv6          disable IPv6 support
1787   --disable-iri           disable IDN/IRIs support
1788
1789 Optional Packages:
1790   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1791   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1792   --without-ssl           disable SSL autodetection
1793   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1794   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1795   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1796   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1797   --without-libintl-prefix     don't search for libintl in includedir and libdir
1798   --with-libgnutls-prefix[=DIR]  search for libgnutls in DIR/include and DIR/lib
1799   --without-libgnutls-prefix     don't search for libgnutls in includedir and libdir
1800   --with-libssl-prefix[=DIR]  search for libssl in DIR/include and DIR/lib
1801   --without-libssl-prefix     don't search for libssl in includedir and libdir
1802   --with-libidn=DIR       Support IDN/IRIs (needs GNU Libidn)
1803
1804 Some influential environment variables:
1805   CC          C compiler command
1806   CFLAGS      C compiler flags
1807   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1808               nonstandard directory <lib dir>
1809   LIBS        libraries to pass to the linker, e.g. -l<library>
1810   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1811               you have headers in a nonstandard directory <include dir>
1812   CPP         C preprocessor
1813
1814 Use these variables to override the choices made by `configure' or to help
1815 it to find libraries and programs with nonstandard names/locations.
1816
1817 Report bugs to <bug-wget@gnu.org>.
1818 _ACEOF
1819 ac_status=$?
1820 fi
1821
1822 if test "$ac_init_help" = "recursive"; then
1823   # If there are subdirs, report their specific --help.
1824   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1825     test -d "$ac_dir" ||
1826       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1827       continue
1828     ac_builddir=.
1829
1830 case "$ac_dir" in
1831 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1832 *)
1833   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1834   # A ".." for each directory in $ac_dir_suffix.
1835   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1836   case $ac_top_builddir_sub in
1837   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1838   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1839   esac ;;
1840 esac
1841 ac_abs_top_builddir=$ac_pwd
1842 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1843 # for backward compatibility:
1844 ac_top_builddir=$ac_top_build_prefix
1845
1846 case $srcdir in
1847   .)  # We are building in place.
1848     ac_srcdir=.
1849     ac_top_srcdir=$ac_top_builddir_sub
1850     ac_abs_top_srcdir=$ac_pwd ;;
1851   [\\/]* | ?:[\\/]* )  # Absolute name.
1852     ac_srcdir=$srcdir$ac_dir_suffix;
1853     ac_top_srcdir=$srcdir
1854     ac_abs_top_srcdir=$srcdir ;;
1855   *) # Relative name.
1856     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1857     ac_top_srcdir=$ac_top_build_prefix$srcdir
1858     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1859 esac
1860 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1861
1862     cd "$ac_dir" || { ac_status=$?; continue; }
1863     # Check for guested configure.
1864     if test -f "$ac_srcdir/configure.gnu"; then
1865       echo &&
1866       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1867     elif test -f "$ac_srcdir/configure"; then
1868       echo &&
1869       $SHELL "$ac_srcdir/configure" --help=recursive
1870     else
1871       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1872     fi || ac_status=$?
1873     cd "$ac_pwd" || { ac_status=$?; break; }
1874   done
1875 fi
1876
1877 test -n "$ac_init_help" && exit $ac_status
1878 if $ac_init_version; then
1879   cat <<\_ACEOF
1880 wget configure 1.12
1881 generated by GNU Autoconf 2.63
1882
1883 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1884 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1885 This configure script is free software; the Free Software Foundation
1886 gives unlimited permission to copy, distribute and modify it.
1887 _ACEOF
1888   exit
1889 fi
1890 cat >config.log <<_ACEOF
1891 This file contains any messages produced by compilers while
1892 running configure, to aid debugging if configure makes a mistake.
1893
1894 It was created by wget $as_me 1.12, which was
1895 generated by GNU Autoconf 2.63.  Invocation command line was
1896
1897   $ $0 $@
1898
1899 _ACEOF
1900 exec 5>>config.log
1901 {
1902 cat <<_ASUNAME
1903 ## --------- ##
1904 ## Platform. ##
1905 ## --------- ##
1906
1907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912
1913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1915
1916 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1917 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1920 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1921 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1922 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1923
1924 _ASUNAME
1925
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   $as_echo "PATH: $as_dir"
1932 done
1933 IFS=$as_save_IFS
1934
1935 } >&5
1936
1937 cat >&5 <<_ACEOF
1938
1939
1940 ## ----------- ##
1941 ## Core tests. ##
1942 ## ----------- ##
1943
1944 _ACEOF
1945
1946
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_configure_args=
1953 ac_configure_args0=
1954 ac_configure_args1=
1955 ac_must_keep_next=false
1956 for ac_pass in 1 2
1957 do
1958   for ac_arg
1959   do
1960     case $ac_arg in
1961     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963     | -silent | --silent | --silen | --sile | --sil)
1964       continue ;;
1965     *\'*)
1966       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967     esac
1968     case $ac_pass in
1969     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1970     2)
1971       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1972       if test $ac_must_keep_next = true; then
1973         ac_must_keep_next=false # Got value, back to normal.
1974       else
1975         case $ac_arg in
1976           *=* | --config-cache | -C | -disable-* | --disable-* \
1977           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979           | -with-* | --with-* | -without-* | --without-* | --x)
1980             case "$ac_configure_args0 " in
1981               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982             esac
1983             ;;
1984           -* ) ac_must_keep_next=true ;;
1985         esac
1986       fi
1987       ac_configure_args="$ac_configure_args '$ac_arg'"
1988       ;;
1989     esac
1990   done
1991 done
1992 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1993 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1994
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log.  We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001   # Save into config.log some information that might help in debugging.
2002   {
2003     echo
2004
2005     cat <<\_ASBOX
2006 ## ---------------- ##
2007 ## Cache variables. ##
2008 ## ---------------- ##
2009 _ASBOX
2010     echo
2011     # The following way of writing the cache mishandles newlines in values,
2012 (
2013   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014     eval ac_val=\$$ac_var
2015     case $ac_val in #(
2016     *${as_nl}*)
2017       case $ac_var in #(
2018       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020       esac
2021       case $ac_var in #(
2022       _ | IFS | as_nl) ;; #(
2023       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024       *) $as_unset $ac_var ;;
2025       esac ;;
2026     esac
2027   done
2028   (set) 2>&1 |
2029     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030     *${as_nl}ac_space=\ *)
2031       sed -n \
2032         "s/'\''/'\''\\\\'\'''\''/g;
2033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034       ;; #(
2035     *)
2036       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037       ;;
2038     esac |
2039     sort
2040 )
2041     echo
2042
2043     cat <<\_ASBOX
2044 ## ----------------- ##
2045 ## Output variables. ##
2046 ## ----------------- ##
2047 _ASBOX
2048     echo
2049     for ac_var in $ac_subst_vars
2050     do
2051       eval ac_val=\$$ac_var
2052       case $ac_val in
2053       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054       esac
2055       $as_echo "$ac_var='\''$ac_val'\''"
2056     done | sort
2057     echo
2058
2059     if test -n "$ac_subst_files"; then
2060       cat <<\_ASBOX
2061 ## ------------------- ##
2062 ## File substitutions. ##
2063 ## ------------------- ##
2064 _ASBOX
2065       echo
2066       for ac_var in $ac_subst_files
2067       do
2068         eval ac_val=\$$ac_var
2069         case $ac_val in
2070         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071         esac
2072         $as_echo "$ac_var='\''$ac_val'\''"
2073       done | sort
2074       echo
2075     fi
2076
2077     if test -s confdefs.h; then
2078       cat <<\_ASBOX
2079 ## ----------- ##
2080 ## confdefs.h. ##
2081 ## ----------- ##
2082 _ASBOX
2083       echo
2084       cat confdefs.h
2085       echo
2086     fi
2087     test "$ac_signal" != 0 &&
2088       $as_echo "$as_me: caught signal $ac_signal"
2089     $as_echo "$as_me: exit $exit_status"
2090   } >&5
2091   rm -f core *.core core.conftest.* &&
2092     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2093     exit $exit_status
2094 ' 0
2095 for ac_signal in 1 2 13 15; do
2096   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2097 done
2098 ac_signal=0
2099
2100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2101 rm -f -r conftest* confdefs.h
2102
2103 # Predefined preprocessor variables.
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_NAME "$PACKAGE_NAME"
2107 _ACEOF
2108
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112 _ACEOF
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2117 _ACEOF
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2122 _ACEOF
2123
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2127 _ACEOF
2128
2129
2130 # Let the site file select an alternate cache file if it wants to.
2131 # Prefer an explicitly selected file to automatically selected ones.
2132 ac_site_file1=NONE
2133 ac_site_file2=NONE
2134 if test -n "$CONFIG_SITE"; then
2135   ac_site_file1=$CONFIG_SITE
2136 elif test "x$prefix" != xNONE; then
2137   ac_site_file1=$prefix/share/config.site
2138   ac_site_file2=$prefix/etc/config.site
2139 else
2140   ac_site_file1=$ac_default_prefix/share/config.site
2141   ac_site_file2=$ac_default_prefix/etc/config.site
2142 fi
2143 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144 do
2145   test "x$ac_site_file" = xNONE && continue
2146   if test -r "$ac_site_file"; then
2147     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2148 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2149     sed 's/^/| /' "$ac_site_file" >&5
2150     . "$ac_site_file"
2151   fi
2152 done
2153
2154 if test -r "$cache_file"; then
2155   # Some versions of bash will fail to source /dev/null (special
2156   # files actually), so we avoid doing that.
2157   if test -f "$cache_file"; then
2158     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2159 $as_echo "$as_me: loading cache $cache_file" >&6;}
2160     case $cache_file in
2161       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2162       *)                      . "./$cache_file";;
2163     esac
2164   fi
2165 else
2166   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2167 $as_echo "$as_me: creating cache $cache_file" >&6;}
2168   >$cache_file
2169 fi
2170
2171 gt_needs="$gt_needs need-ngettext"
2172 ac_header_list="$ac_header_list errno.h"
2173 gl_getopt_required=GNU
2174 ac_header_list="$ac_header_list stdio_ext.h"
2175 ac_header_list="$ac_header_list termios.h"
2176 ac_func_list="$ac_func_list __fsetlocking"
2177 ac_func_list="$ac_func_list tcgetattr"
2178 ac_func_list="$ac_func_list tcsetattr"
2179 ac_func_list="$ac_func_list mbsinit"
2180 ac_func_list="$ac_func_list mbrtowc"
2181 ac_header_list="$ac_header_list sys/mman.h"
2182 ac_func_list="$ac_func_list mprotect"
2183 ac_header_list="$ac_header_list stddef.h"
2184 ac_header_list="$ac_header_list stdint.h"
2185 ac_header_list="$ac_header_list wchar.h"
2186 ac_header_list="$ac_header_list stdio.h"
2187 ac_header_list="$ac_header_list stdlib.h"
2188 ac_header_list="$ac_header_list sys/socket.h"
2189 ac_header_list="$ac_header_list string.h"
2190 ac_header_list="$ac_header_list strings.h"
2191 ac_header_list="$ac_header_list unistd.h"
2192 ac_func_list="$ac_func_list iswcntrl"
2193 ac_header_list="$ac_header_list wctype.h"
2194 # Check that the precious variables saved in the cache have kept the same
2195 # value.
2196 ac_cache_corrupted=false
2197 for ac_var in $ac_precious_vars; do
2198   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2199   eval ac_new_set=\$ac_env_${ac_var}_set
2200   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2201   eval ac_new_val=\$ac_env_${ac_var}_value
2202   case $ac_old_set,$ac_new_set in
2203     set,)
2204       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2205 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2206       ac_cache_corrupted=: ;;
2207     ,set)
2208       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2209 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2210       ac_cache_corrupted=: ;;
2211     ,);;
2212     *)
2213       if test "x$ac_old_val" != "x$ac_new_val"; then
2214         # differences in whitespace do not lead to failure.
2215         ac_old_val_w=`echo x $ac_old_val`
2216         ac_new_val_w=`echo x $ac_new_val`
2217         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2218           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2219 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2220           ac_cache_corrupted=:
2221         else
2222           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2223 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2224           eval $ac_var=\$ac_old_val
2225         fi
2226         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2227 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2228         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2229 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2230       fi;;
2231   esac
2232   # Pass precious variables to config.status.
2233   if test "$ac_new_set" = set; then
2234     case $ac_new_val in
2235     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2236     *) ac_arg=$ac_var=$ac_new_val ;;
2237     esac
2238     case " $ac_configure_args " in
2239       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2240       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2241     esac
2242   fi
2243 done
2244 if $ac_cache_corrupted; then
2245   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2248 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2249   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2250 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2251    { (exit 1); exit 1; }; }
2252 fi
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278 ac_ext=c
2279 ac_cpp='$CPP $CPPFLAGS'
2280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
2284
2285
2286
2287 { $as_echo "$as_me:$LINENO: configuring for GNU Wget $PACKAGE_VERSION" >&5
2288 $as_echo "$as_me: configuring for GNU Wget $PACKAGE_VERSION" >&6;}
2289
2290
2291 ac_aux_dir=
2292 for ac_dir in build-aux "$srcdir"/build-aux; do
2293   if test -f "$ac_dir/install-sh"; then
2294     ac_aux_dir=$ac_dir
2295     ac_install_sh="$ac_aux_dir/install-sh -c"
2296     break
2297   elif test -f "$ac_dir/install.sh"; then
2298     ac_aux_dir=$ac_dir
2299     ac_install_sh="$ac_aux_dir/install.sh -c"
2300     break
2301   elif test -f "$ac_dir/shtool"; then
2302     ac_aux_dir=$ac_dir
2303     ac_install_sh="$ac_aux_dir/shtool install -c"
2304     break
2305   fi
2306 done
2307 if test -z "$ac_aux_dir"; then
2308   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2309 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2310    { (exit 1); exit 1; }; }
2311 fi
2312
2313 # These three variables are undocumented and unsupported,
2314 # and are intended to be withdrawn in a future Autoconf release.
2315 # They can cause serious problems if a builder's source tree is in a directory
2316 # whose full name contains unusual characters.
2317 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2318 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2319 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2320
2321
2322
2323 am__api_version='1.10'
2324
2325 # Find a good install program.  We prefer a C program (faster),
2326 # so one script is as good as another.  But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2331 # AIX /bin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 # Reject install programs that cannot install multiple files.
2339 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2341 if test -z "$INSTALL"; then
2342 if test "${ac_cv_path_install+set}" = set; then
2343   $as_echo_n "(cached) " >&6
2344 else
2345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350   # Account for people who put trailing slashes in PATH elements.
2351 case $as_dir/ in
2352   ./ | .// | /cC/* | \
2353   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2355   /usr/ucb/* ) ;;
2356   *)
2357     # OSF1 and SCO ODT 3.0 have their own names for install.
2358     # Don't use installbsd from OSF since it installs stuff as root
2359     # by default.
2360     for ac_prog in ginstall scoinst install; do
2361       for ac_exec_ext in '' $ac_executable_extensions; do
2362         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2363           if test $ac_prog = install &&
2364             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365             # AIX install.  It has an incompatible calling convention.
2366             :
2367           elif test $ac_prog = install &&
2368             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369             # program-specific install script used by HP pwplus--don't use.
2370             :
2371           else
2372             rm -rf conftest.one conftest.two conftest.dir
2373             echo one > conftest.one
2374             echo two > conftest.two
2375             mkdir conftest.dir
2376             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377               test -s conftest.one && test -s conftest.two &&
2378               test -s conftest.dir/conftest.one &&
2379               test -s conftest.dir/conftest.two
2380             then
2381               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382               break 3
2383             fi
2384           fi
2385         fi
2386       done
2387     done
2388     ;;
2389 esac
2390
2391 done
2392 IFS=$as_save_IFS
2393
2394 rm -rf conftest.one conftest.two conftest.dir
2395
2396 fi
2397   if test "${ac_cv_path_install+set}" = set; then
2398     INSTALL=$ac_cv_path_install
2399   else
2400     # As a last resort, use the slow shell script.  Don't cache a
2401     # value for INSTALL within a source directory, because that will
2402     # break other packages using the cache if that directory is
2403     # removed, or if the value is a relative name.
2404     INSTALL=$ac_install_sh
2405   fi
2406 fi
2407 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2408 $as_echo "$INSTALL" >&6; }
2409
2410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411 # It thinks the first close brace ends the variable substitution.
2412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
2414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415
2416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
2418 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2419 $as_echo_n "checking whether build environment is sane... " >&6; }
2420 # Just in case
2421 sleep 1
2422 echo timestamp > conftest.file
2423 # Do `set' in a subshell so we don't clobber the current shell's
2424 # arguments.  Must try -L first in case configure is actually a
2425 # symlink; some systems play weird games with the mod time of symlinks
2426 # (eg FreeBSD returns the mod time of the symlink's containing
2427 # directory).
2428 if (
2429    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2430    if test "$*" = "X"; then
2431       # -L didn't work.
2432       set X `ls -t $srcdir/configure conftest.file`
2433    fi
2434    rm -f conftest.file
2435    if test "$*" != "X $srcdir/configure conftest.file" \
2436       && test "$*" != "X conftest.file $srcdir/configure"; then
2437
2438       # If neither matched, then we have a broken ls.  This can happen
2439       # if, for instance, CONFIG_SHELL is bash and it inherits a
2440       # broken ls alias from the environment.  This has actually
2441       # happened.  Such a system could not be considered "sane".
2442       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2443 alias in your environment" >&5
2444 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2445 alias in your environment" >&2;}
2446    { (exit 1); exit 1; }; }
2447    fi
2448
2449    test "$2" = conftest.file
2450    )
2451 then
2452    # Ok.
2453    :
2454 else
2455    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2456 Check your system clock" >&5
2457 $as_echo "$as_me: error: newly created file is older than distributed files!
2458 Check your system clock" >&2;}
2459    { (exit 1); exit 1; }; }
2460 fi
2461 { $as_echo "$as_me:$LINENO: result: yes" >&5
2462 $as_echo "yes" >&6; }
2463 test "$program_prefix" != NONE &&
2464   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2465 # Use a double $ so make ignores it.
2466 test "$program_suffix" != NONE &&
2467   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2468 # Double any \ or $.
2469 # By default was `s,x,x', remove it if useless.
2470 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2471 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2472
2473 # expand $ac_aux_dir to an absolute path
2474 am_aux_dir=`cd $ac_aux_dir && pwd`
2475
2476 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2477 # Use eval to expand $SHELL
2478 if eval "$MISSING --run true"; then
2479   am_missing_run="$MISSING --run "
2480 else
2481   am_missing_run=
2482   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2483 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2484 fi
2485
2486 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2487 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2488 if test -z "$MKDIR_P"; then
2489   if test "${ac_cv_path_mkdir+set}" = set; then
2490   $as_echo_n "(cached) " >&6
2491 else
2492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_prog in mkdir gmkdir; do
2498          for ac_exec_ext in '' $ac_executable_extensions; do
2499            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2500            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2501              'mkdir (GNU coreutils) '* | \
2502              'mkdir (coreutils) '* | \
2503              'mkdir (fileutils) '4.1*)
2504                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2505                break 3;;
2506            esac
2507          done
2508        done
2509 done
2510 IFS=$as_save_IFS
2511
2512 fi
2513
2514   if test "${ac_cv_path_mkdir+set}" = set; then
2515     MKDIR_P="$ac_cv_path_mkdir -p"
2516   else
2517     # As a last resort, use the slow shell script.  Don't cache a
2518     # value for MKDIR_P within a source directory, because that will
2519     # break other packages using the cache if that directory is
2520     # removed, or if the value is a relative name.
2521     test -d ./--version && rmdir ./--version
2522     MKDIR_P="$ac_install_sh -d"
2523   fi
2524 fi
2525 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2526 $as_echo "$MKDIR_P" >&6; }
2527
2528 mkdir_p="$MKDIR_P"
2529 case $mkdir_p in
2530   [\\/$]* | ?:[\\/]*) ;;
2531   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2532 esac
2533
2534 for ac_prog in gawk mawk nawk awk
2535 do
2536   # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if test "${ac_cv_prog_AWK+set}" = set; then
2541   $as_echo_n "(cached) " >&6
2542 else
2543   if test -n "$AWK"; then
2544   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551   for ac_exec_ext in '' $ac_executable_extensions; do
2552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553     ac_cv_prog_AWK="$ac_prog"
2554     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 AWK=$ac_cv_prog_AWK
2564 if test -n "$AWK"; then
2565   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2566 $as_echo "$AWK" >&6; }
2567 else
2568   { $as_echo "$as_me:$LINENO: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572
2573   test -n "$AWK" && break
2574 done
2575
2576 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2577 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2578 set x ${MAKE-make}
2579 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2580 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2581   $as_echo_n "(cached) " >&6
2582 else
2583   cat >conftest.make <<\_ACEOF
2584 SHELL = /bin/sh
2585 all:
2586         @echo '@@@%%%=$(MAKE)=@@@%%%'
2587 _ACEOF
2588 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2589 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2590   *@@@%%%=?*=@@@%%%*)
2591     eval ac_cv_prog_make_${ac_make}_set=yes;;
2592   *)
2593     eval ac_cv_prog_make_${ac_make}_set=no;;
2594 esac
2595 rm -f conftest.make
2596 fi
2597 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2598   { $as_echo "$as_me:$LINENO: result: yes" >&5
2599 $as_echo "yes" >&6; }
2600   SET_MAKE=
2601 else
2602   { $as_echo "$as_me:$LINENO: result: no" >&5
2603 $as_echo "no" >&6; }
2604   SET_MAKE="MAKE=${MAKE-make}"
2605 fi
2606
2607 rm -rf .tst 2>/dev/null
2608 mkdir .tst 2>/dev/null
2609 if test -d .tst; then
2610   am__leading_dot=.
2611 else
2612   am__leading_dot=_
2613 fi
2614 rmdir .tst 2>/dev/null
2615
2616 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2617   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2618   # is not polluted with repeated "-I."
2619   am__isrc=' -I$(srcdir)'
2620   # test to see if srcdir already configured
2621   if test -f $srcdir/config.status; then
2622     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2623 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2624    { (exit 1); exit 1; }; }
2625   fi
2626 fi
2627
2628 # test whether we have cygpath
2629 if test -z "$CYGPATH_W"; then
2630   if (cygpath --version) >/dev/null 2>/dev/null; then
2631     CYGPATH_W='cygpath -w'
2632   else
2633     CYGPATH_W=echo
2634   fi
2635 fi
2636
2637
2638 # Define the identity of the package.
2639  PACKAGE='wget'
2640  VERSION='1.12'
2641
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE "$PACKAGE"
2645 _ACEOF
2646
2647
2648 cat >>confdefs.h <<_ACEOF
2649 #define VERSION "$VERSION"
2650 _ACEOF
2651
2652 # Some tools Automake needs.
2653
2654 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655
2656
2657 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658
2659
2660 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661
2662
2663 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664
2665
2666 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667
2668 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2669
2670 # Installed binaries are usually stripped using `strip' when the user
2671 # run `make install-strip'.  However `strip' might not be the right
2672 # tool to use in cross-compilation environments, therefore Automake
2673 # will honor the `STRIP' environment variable to overrule this program.
2674 if test "$cross_compiling" != no; then
2675   if test -n "$ac_tool_prefix"; then
2676   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}strip; ac_word=$2
2678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if test "${ac_cv_prog_STRIP+set}" = set; then
2681   $as_echo_n "(cached) " >&6
2682 else
2683   if test -n "$STRIP"; then
2684   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691   for ac_exec_ext in '' $ac_executable_extensions; do
2692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2694     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 STRIP=$ac_cv_prog_STRIP
2704 if test -n "$STRIP"; then
2705   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2706 $as_echo "$STRIP" >&6; }
2707 else
2708   { $as_echo "$as_me:$LINENO: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713 fi
2714 if test -z "$ac_cv_prog_STRIP"; then
2715   ac_ct_STRIP=$STRIP
2716   # Extract the first word of "strip", so it can be a program name with args.
2717 set dummy strip; ac_word=$2
2718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2721   $as_echo_n "(cached) " >&6
2722 else
2723   if test -n "$ac_ct_STRIP"; then
2724   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731   for ac_exec_ext in '' $ac_executable_extensions; do
2732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733     ac_cv_prog_ac_ct_STRIP="strip"
2734     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2744 if test -n "$ac_ct_STRIP"; then
2745   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2746 $as_echo "$ac_ct_STRIP" >&6; }
2747 else
2748   { $as_echo "$as_me:$LINENO: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752   if test "x$ac_ct_STRIP" = x; then
2753     STRIP=":"
2754   else
2755     case $cross_compiling:$ac_tool_warned in
2756 yes:)
2757 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2760 esac
2761     STRIP=$ac_ct_STRIP
2762   fi
2763 else
2764   STRIP="$ac_cv_prog_STRIP"
2765 fi
2766
2767 fi
2768 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769
2770 # We need awk for the "check" target.  The system "awk" is bad on
2771 # some platforms.
2772 # Always define AMTAR for backward compatibility.
2773
2774 AMTAR=${AMTAR-"${am_missing_run}tar"}
2775
2776 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2777
2778
2779
2780
2781
2782
2783 # Make sure we can run config.sub.
2784 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2785   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2786 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2787    { (exit 1); exit 1; }; }
2788
2789 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2790 $as_echo_n "checking build system type... " >&6; }
2791 if test "${ac_cv_build+set}" = set; then
2792   $as_echo_n "(cached) " >&6
2793 else
2794   ac_build_alias=$build_alias
2795 test "x$ac_build_alias" = x &&
2796   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797 test "x$ac_build_alias" = x &&
2798   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2799 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2800    { (exit 1); exit 1; }; }
2801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2802   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2803 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2804    { (exit 1); exit 1; }; }
2805
2806 fi
2807 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2808 $as_echo "$ac_cv_build" >&6; }
2809 case $ac_cv_build in
2810 *-*-*) ;;
2811 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2812 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2813    { (exit 1); exit 1; }; };;
2814 esac
2815 build=$ac_cv_build
2816 ac_save_IFS=$IFS; IFS='-'
2817 set x $ac_cv_build
2818 shift
2819 build_cpu=$1
2820 build_vendor=$2
2821 shift; shift
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2824 build_os=$*
2825 IFS=$ac_save_IFS
2826 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2827
2828
2829 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2830 $as_echo_n "checking host system type... " >&6; }
2831 if test "${ac_cv_host+set}" = set; then
2832   $as_echo_n "(cached) " >&6
2833 else
2834   if test "x$host_alias" = x; then
2835   ac_cv_host=$ac_cv_build
2836 else
2837   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2838     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2839 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2840    { (exit 1); exit 1; }; }
2841 fi
2842
2843 fi
2844 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2845 $as_echo "$ac_cv_host" >&6; }
2846 case $ac_cv_host in
2847 *-*-*) ;;
2848 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2849 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2850    { (exit 1); exit 1; }; };;
2851 esac
2852 host=$ac_cv_host
2853 ac_save_IFS=$IFS; IFS='-'
2854 set x $ac_cv_host
2855 shift
2856 host_cpu=$1
2857 host_vendor=$2
2858 shift; shift
2859 # Remember, the first character of IFS is used to create $*,
2860 # except with old shells:
2861 host_os=$*
2862 IFS=$ac_save_IFS
2863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2864
2865
2866
2867 cat >>confdefs.h <<_ACEOF
2868 #define OS_TYPE "$host_os"
2869 _ACEOF
2870
2871
2872
2873
2874 # Check whether --with-ssl was given.
2875 if test "${with_ssl+set}" = set; then
2876   withval=$with_ssl;
2877 fi
2878
2879
2880 # Check whether --enable-opie was given.
2881 if test "${enable_opie+set}" = set; then
2882   enableval=$enable_opie; ENABLE_OPIE=$enableval
2883 else
2884   ENABLE_OPIE=yes
2885 fi
2886
2887 test x"${ENABLE_OPIE}" = xyes &&
2888 cat >>confdefs.h <<\_ACEOF
2889 #define ENABLE_OPIE 1
2890 _ACEOF
2891
2892
2893 # Check whether --enable-digest was given.
2894 if test "${enable_digest+set}" = set; then
2895   enableval=$enable_digest; ENABLE_DIGEST=$enableval
2896 else
2897   ENABLE_DIGEST=yes
2898 fi
2899
2900 test x"${ENABLE_DIGEST}" = xyes &&
2901 cat >>confdefs.h <<\_ACEOF
2902 #define ENABLE_DIGEST 1
2903 _ACEOF
2904
2905
2906 # Check whether --enable-ntlm was given.
2907 if test "${enable_ntlm+set}" = set; then
2908   enableval=$enable_ntlm; ENABLE_NTLM=$enableval
2909 else
2910   ENABLE_NTLM=auto
2911 fi
2912
2913
2914 # Check whether --enable-debug was given.
2915 if test "${enable_debug+set}" = set; then
2916   enableval=$enable_debug; ENABLE_DEBUG=$enableval
2917 else
2918   ENABLE_DEBUG=yes
2919 fi
2920
2921 test x"${ENABLE_DEBUG}" = xyes &&
2922 cat >>confdefs.h <<\_ACEOF
2923 #define ENABLE_DEBUG 1
2924 _ACEOF
2925
2926
2927 wget_need_md5=no
2928
2929 case "${ENABLE_OPIE}${ENABLE_DIGEST}" in
2930 *yes*)
2931         wget_need_md5=yes
2932 esac
2933
2934
2935 test -z "$CFLAGS"  && CFLAGS= auto_cflags=1
2936 test -z "$CC" && cc_specified=yes
2937
2938 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 if test -n "$ac_tool_prefix"; then
2944   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then
2949   $as_echo_n "(cached) " >&6
2950 else
2951   if test -n "$CC"; then
2952   ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959   for ac_exec_ext in '' $ac_executable_extensions; do
2960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2962     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966 done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2975 else
2976   { $as_echo "$as_me:$LINENO: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980
2981 fi
2982 if test -z "$ac_cv_prog_CC"; then
2983   ac_ct_CC=$CC
2984   # Extract the first word of "gcc", so it can be a program name with args.
2985 set dummy gcc; ac_word=$2
2986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2989   $as_echo_n "(cached) " >&6
2990 else
2991   if test -n "$ac_ct_CC"; then
2992   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997   IFS=$as_save_IFS
2998   test -z "$as_dir" && as_dir=.
2999   for ac_exec_ext in '' $ac_executable_extensions; do
3000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001     ac_cv_prog_ac_ct_CC="gcc"
3002     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003     break 2
3004   fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012 if test -n "$ac_ct_CC"; then
3013   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3014 $as_echo "$ac_ct_CC" >&6; }
3015 else
3016   { $as_echo "$as_me:$LINENO: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020   if test "x$ac_ct_CC" = x; then
3021     CC=""
3022   else
3023     case $cross_compiling:$ac_tool_warned in
3024 yes:)
3025 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3028 esac
3029     CC=$ac_ct_CC
3030   fi
3031 else
3032   CC="$ac_cv_prog_CC"
3033 fi
3034
3035 if test -z "$CC"; then
3036           if test -n "$ac_tool_prefix"; then
3037     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}cc; ac_word=$2
3039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042   $as_echo_n "(cached) " >&6
3043 else
3044   if test -n "$CC"; then
3045   ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052   for ac_exec_ext in '' $ac_executable_extensions; do
3053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054     ac_cv_prog_CC="${ac_tool_prefix}cc"
3055     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056     break 2
3057   fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069   { $as_echo "$as_me:$LINENO: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074   fi
3075 fi
3076 if test -z "$CC"; then
3077   # Extract the first word of "cc", so it can be a program name with args.
3078 set dummy cc; ac_word=$2
3079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if test "${ac_cv_prog_CC+set}" = set; then
3082   $as_echo_n "(cached) " >&6
3083 else
3084   if test -n "$CC"; then
3085   ac_cv_prog_CC="$CC" # Let the user override the test.
3086 else
3087   ac_prog_rejected=no
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093   for ac_exec_ext in '' $ac_executable_extensions; do
3094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3096        ac_prog_rejected=yes
3097        continue
3098      fi
3099     ac_cv_prog_CC="cc"
3100     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 if test $ac_prog_rejected = yes; then
3108   # We found a bogon in the path, so make sure we never use it.
3109   set dummy $ac_cv_prog_CC
3110   shift
3111   if test $# != 0; then
3112     # We chose a different compiler from the bogus one.
3113     # However, it has the same basename, so the bogon will be chosen
3114     # first if we set CC to just the basename; use the full file name.
3115     shift
3116     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3117   fi
3118 fi
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126   { $as_echo "$as_me:$LINENO: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131 fi
3132 if test -z "$CC"; then
3133   if test -n "$ac_tool_prefix"; then
3134   for ac_prog in cl.exe
3135   do
3136     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141   $as_echo_n "(cached) " >&6
3142 else
3143   if test -n "$CC"; then
3144   ac_cv_prog_CC="$CC" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151   for ac_exec_ext in '' $ac_executable_extensions; do
3152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3154     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158 done
3159 IFS=$as_save_IFS
3160
3161 fi
3162 fi
3163 CC=$ac_cv_prog_CC
3164 if test -n "$CC"; then
3165   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3166 $as_echo "$CC" >&6; }
3167 else
3168   { $as_echo "$as_me:$LINENO: result: no" >&5
3169 $as_echo "no" >&6; }
3170 fi
3171
3172
3173     test -n "$CC" && break
3174   done
3175 fi
3176 if test -z "$CC"; then
3177   ac_ct_CC=$CC
3178   for ac_prog in cl.exe
3179 do
3180   # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185   $as_echo_n "(cached) " >&6
3186 else
3187   if test -n "$ac_ct_CC"; then
3188   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195   for ac_exec_ext in '' $ac_executable_extensions; do
3196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197     ac_cv_prog_ac_ct_CC="$ac_prog"
3198     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3210 $as_echo "$ac_ct_CC" >&6; }
3211 else
3212   { $as_echo "$as_me:$LINENO: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217   test -n "$ac_ct_CC" && break
3218 done
3219
3220   if test "x$ac_ct_CC" = x; then
3221     CC=""
3222   else
3223     case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229     CC=$ac_ct_CC
3230   fi
3231 fi
3232
3233 fi
3234
3235
3236 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3239 See \`config.log' for more details." >&5
3240 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3241 See \`config.log' for more details." >&2;}
3242    { (exit 1); exit 1; }; }; }
3243
3244 # Provide some information about the compiler.
3245 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3246 set X $ac_compile
3247 ac_compiler=$2
3248 { (ac_try="$ac_compiler --version >&5"
3249 case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254 $as_echo "$ac_try_echo") >&5
3255   (eval "$ac_compiler --version >&5") 2>&5
3256   ac_status=$?
3257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); }
3259 { (ac_try="$ac_compiler -v >&5"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266   (eval "$ac_compiler -v >&5") 2>&5
3267   ac_status=$?
3268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }
3270 { (ac_try="$ac_compiler -V >&5"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277   (eval "$ac_compiler -V >&5") 2>&5
3278   ac_status=$?
3279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); }
3281
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288
3289 int
3290 main ()
3291 {
3292
3293   ;
3294   return 0;
3295 }
3296 _ACEOF
3297 ac_clean_files_save=$ac_clean_files
3298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3301 # of exeext.
3302 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3303 $as_echo_n "checking for C compiler default output file name... " >&6; }
3304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305
3306 # The possible output files:
3307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308
3309 ac_rmfiles=
3310 for ac_file in $ac_files
3311 do
3312   case $ac_file in
3313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315   esac
3316 done
3317 rm -f $ac_rmfiles
3318
3319 if { (ac_try="$ac_link_default"
3320 case "(($ac_try" in
3321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322   *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325 $as_echo "$ac_try_echo") >&5
3326   (eval "$ac_link_default") 2>&5
3327   ac_status=$?
3328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); }; then
3330   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3334 # Autoconf.
3335 for ac_file in $ac_files ''
3336 do
3337   test -f "$ac_file" || continue
3338   case $ac_file in
3339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340         ;;
3341     [ab].out )
3342         # We found the default executable, but exeext='' is most
3343         # certainly right.
3344         break;;
3345     *.* )
3346         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347         then :; else
3348            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349         fi
3350         # We set ac_cv_exeext here because the later test for it is not
3351         # safe: cross compilers may not add the suffix if given an `-o'
3352         # argument, so we may need to know it at that point already.
3353         # Even if this section looks crufty: it has the advantage of
3354         # actually working.
3355         break;;
3356     * )
3357         break;;
3358   esac
3359 done
3360 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361
3362 else
3363   ac_file=''
3364 fi
3365
3366 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3367 $as_echo "$ac_file" >&6; }
3368 if test -z "$ac_file"; then
3369   $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3375 See \`config.log' for more details." >&5
3376 $as_echo "$as_me: error: C compiler cannot create executables
3377 See \`config.log' for more details." >&2;}
3378    { (exit 77); exit 77; }; }; }
3379 fi
3380
3381 ac_exeext=$ac_cv_exeext
3382
3383 # Check that the compiler produces executables we can run.  If not, either
3384 # the compiler is broken, or we cross compile.
3385 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3386 $as_echo_n "checking whether the C compiler works... " >&6; }
3387 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3388 # If not cross compiling, check that we can run a simple program.
3389 if test "$cross_compiling" != yes; then
3390   if { ac_try='./$ac_file'
3391   { (case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3396 $as_echo "$ac_try_echo") >&5
3397   (eval "$ac_try") 2>&5
3398   ac_status=$?
3399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }; }; then
3401     cross_compiling=no
3402   else
3403     if test "$cross_compiling" = maybe; then
3404         cross_compiling=yes
3405     else
3406         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3409 If you meant to cross compile, use \`--host'.
3410 See \`config.log' for more details." >&5
3411 $as_echo "$as_me: error: cannot run C compiled programs.
3412 If you meant to cross compile, use \`--host'.
3413 See \`config.log' for more details." >&2;}
3414    { (exit 1); exit 1; }; }; }
3415     fi
3416   fi
3417 fi
3418 { $as_echo "$as_me:$LINENO: result: yes" >&5
3419 $as_echo "yes" >&6; }
3420
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 # Check that the compiler produces executables we can run.  If not, either
3424 # the compiler is broken, or we cross compile.
3425 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3426 $as_echo_n "checking whether we are cross compiling... " >&6; }
3427 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3428 $as_echo "$cross_compiling" >&6; }
3429
3430 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3431 $as_echo_n "checking for suffix of executables... " >&6; }
3432 if { (ac_try="$ac_link"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438 $as_echo "$ac_try_echo") >&5
3439   (eval "$ac_link") 2>&5
3440   ac_status=$?
3441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); }; then
3443   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3445 # work properly (i.e., refer to `conftest.exe'), while it won't with
3446 # `rm'.
3447 for ac_file in conftest.exe conftest conftest.*; do
3448   test -f "$ac_file" || continue
3449   case $ac_file in
3450     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452           break;;
3453     * ) break;;
3454   esac
3455 done
3456 else
3457   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3460 See \`config.log' for more details." >&5
3461 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3462 See \`config.log' for more details." >&2;}
3463    { (exit 1); exit 1; }; }; }
3464 fi
3465
3466 rm -f conftest$ac_cv_exeext
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3468 $as_echo "$ac_cv_exeext" >&6; }
3469
3470 rm -f conftest.$ac_ext
3471 EXEEXT=$ac_cv_exeext
3472 ac_exeext=$EXEEXT
3473 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3474 $as_echo_n "checking for suffix of object files... " >&6; }
3475 if test "${ac_cv_objext+set}" = set; then
3476   $as_echo_n "(cached) " >&6
3477 else
3478   cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h.  */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h.  */
3484
3485 int
3486 main ()
3487 {
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.o conftest.obj
3494 if { (ac_try="$ac_compile"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500 $as_echo "$ac_try_echo") >&5
3501   (eval "$ac_compile") 2>&5
3502   ac_status=$?
3503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); }; then
3505   for ac_file in conftest.o conftest.obj conftest.*; do
3506   test -f "$ac_file" || continue;
3507   case $ac_file in
3508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510        break;;
3511   esac
3512 done
3513 else
3514   $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details." >&5
3521 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3522 See \`config.log' for more details." >&2;}
3523    { (exit 1); exit 1; }; }; }
3524 fi
3525
3526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 fi
3528 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3529 $as_echo "$ac_cv_objext" >&6; }
3530 OBJEXT=$ac_cv_objext
3531 ac_objext=$OBJEXT
3532 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3535   $as_echo_n "(cached) " >&6
3536 else
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547 #ifndef __GNUC__
3548        choke me
3549 #endif
3550
3551   ;
3552   return 0;
3553 }
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562 $as_echo "$ac_try_echo") >&5
3563   (eval "$ac_compile") 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } && {
3570          test -z "$ac_c_werror_flag" ||
3571          test ! -s conftest.err
3572        } && test -s conftest.$ac_objext; then
3573   ac_compiler_gnu=yes
3574 else
3575   $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578         ac_compiler_gnu=no
3579 fi
3580
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583
3584 fi
3585 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3586 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3587 if test $ac_compiler_gnu = yes; then
3588   GCC=yes
3589 else
3590   GCC=
3591 fi
3592 ac_test_CFLAGS=${CFLAGS+set}
3593 ac_save_CFLAGS=$CFLAGS
3594 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3595 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3596 if test "${ac_cv_prog_cc_g+set}" = set; then
3597   $as_echo_n "(cached) " >&6
3598 else
3599   ac_save_c_werror_flag=$ac_c_werror_flag
3600    ac_c_werror_flag=yes
3601    ac_cv_prog_cc_g=no
3602    CFLAGS="-g"
3603    cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h.  */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h.  */
3609
3610 int
3611 main ()
3612 {
3613
3614   ;
3615   return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3625 $as_echo "$ac_try_echo") >&5
3626   (eval "$ac_compile") 2>conftest.er1
3627   ac_status=$?
3628   grep -v '^ *+' conftest.er1 >conftest.err
3629   rm -f conftest.er1
3630   cat conftest.err >&5
3631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); } && {
3633          test -z "$ac_c_werror_flag" ||
3634          test ! -s conftest.err
3635        } && test -s conftest.$ac_objext; then
3636   ac_cv_prog_cc_g=yes
3637 else
3638   $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641         CFLAGS=""
3642       cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h.  */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h.  */
3648
3649 int
3650 main ()
3651 {
3652
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664 $as_echo "$ac_try_echo") >&5
3665   (eval "$ac_compile") 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } && {
3672          test -z "$ac_c_werror_flag" ||
3673          test ! -s conftest.err
3674        } && test -s conftest.$ac_objext; then
3675   :
3676 else
3677   $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680         ac_c_werror_flag=$ac_save_c_werror_flag
3681          CFLAGS="-g"
3682          cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688
3689 int
3690 main ()
3691 {
3692
3693   ;
3694   return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705   (eval "$ac_compile") 2>conftest.er1
3706   ac_status=$?
3707   grep -v '^ *+' conftest.er1 >conftest.err
3708   rm -f conftest.er1
3709   cat conftest.err >&5
3710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } && {
3712          test -z "$ac_c_werror_flag" ||
3713          test ! -s conftest.err
3714        } && test -s conftest.$ac_objext; then
3715   ac_cv_prog_cc_g=yes
3716 else
3717   $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720
3721 fi
3722
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 fi
3725
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 fi
3728
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730    ac_c_werror_flag=$ac_save_c_werror_flag
3731 fi
3732 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3733 $as_echo "$ac_cv_prog_cc_g" >&6; }
3734 if test "$ac_test_CFLAGS" = set; then
3735   CFLAGS=$ac_save_CFLAGS
3736 elif test $ac_cv_prog_cc_g = yes; then
3737   if test "$GCC" = yes; then
3738     CFLAGS="-g -O2"
3739   else
3740     CFLAGS="-g"
3741   fi
3742 else
3743   if test "$GCC" = yes; then
3744     CFLAGS="-O2"
3745   else
3746     CFLAGS=
3747   fi
3748 fi
3749 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3750 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751 if test "${ac_cv_prog_cc_c89+set}" = set; then
3752   $as_echo_n "(cached) " >&6
3753 else
3754   ac_cv_prog_cc_c89=no
3755 ac_save_CC=$CC
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762 #include <stdarg.h>
3763 #include <stdio.h>
3764 #include <sys/types.h>
3765 #include <sys/stat.h>
3766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3767 struct buf { int x; };
3768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3769 static char *e (p, i)
3770      char **p;
3771      int i;
3772 {
3773   return p[i];
3774 }
3775 static char *f (char * (*g) (char **, int), char **p, ...)
3776 {
3777   char *s;
3778   va_list v;
3779   va_start (v,p);
3780   s = g (p, va_arg (v,int));
3781   va_end (v);
3782   return s;
3783 }
3784
3785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3786    function prototypes and stuff, but not '\xHH' hex character constants.
3787    These don't provoke an error unfortunately, instead are silently treated
3788    as 'x'.  The following induces an error, until -std is added to get
3789    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3790    array size at least.  It's necessary to write '\x00'==0 to get something
3791    that's true only with -std.  */
3792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3793
3794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3795    inside strings and character constants.  */
3796 #define FOO(x) 'x'
3797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3798
3799 int test (int i, double x);
3800 struct s1 {int (*f) (int a);};
3801 struct s2 {int (*f) (double a);};
3802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803 int argc;
3804 char **argv;
3805 int
3806 main ()
3807 {
3808 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3814         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3815 do
3816   CC="$ac_save_CC $ac_arg"
3817   rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3819 case "(($ac_try" in
3820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821   *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824 $as_echo "$ac_try_echo") >&5
3825   (eval "$ac_compile") 2>conftest.er1
3826   ac_status=$?
3827   grep -v '^ *+' conftest.er1 >conftest.err
3828   rm -f conftest.er1
3829   cat conftest.err >&5
3830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); } && {
3832          test -z "$ac_c_werror_flag" ||
3833          test ! -s conftest.err
3834        } && test -s conftest.$ac_objext; then
3835   ac_cv_prog_cc_c89=$ac_arg
3836 else
3837   $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840
3841 fi
3842
3843 rm -f core conftest.err conftest.$ac_objext
3844   test "x$ac_cv_prog_cc_c89" != "xno" && break
3845 done
3846 rm -f conftest.$ac_ext
3847 CC=$ac_save_CC
3848
3849 fi
3850 # AC_CACHE_VAL
3851 case "x$ac_cv_prog_cc_c89" in
3852   x)
3853     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3854 $as_echo "none needed" >&6; } ;;
3855   xno)
3856     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3857 $as_echo "unsupported" >&6; } ;;
3858   *)
3859     CC="$CC $ac_cv_prog_cc_c89"
3860     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862 esac
3863
3864
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 DEPDIR="${am__leading_dot}deps"
3871
3872 ac_config_commands="$ac_config_commands depfiles"
3873
3874
3875 am_make=${MAKE-make}
3876 cat > confinc << 'END'
3877 am__doit:
3878         @echo done
3879 .PHONY: am__doit
3880 END
3881 # If we don't find an include directive, just comment out the code.
3882 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3883 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3884 am__include="#"
3885 am__quote=
3886 _am_result=none
3887 # First try GNU make style include.
3888 echo "include confinc" > confmf
3889 # We grep out `Entering directory' and `Leaving directory'
3890 # messages which can occur if `w' ends up in MAKEFLAGS.
3891 # In particular we don't look at `^make:' because GNU make might
3892 # be invoked under some other name (usually "gmake"), in which
3893 # case it prints its new name instead of `make'.
3894 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3895    am__include=include
3896    am__quote=
3897    _am_result=GNU
3898 fi
3899 # Now try BSD make style include.
3900 if test "$am__include" = "#"; then
3901    echo '.include "confinc"' > confmf
3902    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3903       am__include=.include
3904       am__quote="\""
3905       _am_result=BSD
3906    fi
3907 fi
3908
3909
3910 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3911 $as_echo "$_am_result" >&6; }
3912 rm -f confinc confmf
3913
3914 # Check whether --enable-dependency-tracking was given.
3915 if test "${enable_dependency_tracking+set}" = set; then
3916   enableval=$enable_dependency_tracking;
3917 fi
3918
3919 if test "x$enable_dependency_tracking" != xno; then
3920   am_depcomp="$ac_aux_dir/depcomp"
3921   AMDEPBACKSLASH='\'
3922 fi
3923  if test "x$enable_dependency_tracking" != xno; then
3924   AMDEP_TRUE=
3925   AMDEP_FALSE='#'
3926 else
3927   AMDEP_TRUE='#'
3928   AMDEP_FALSE=
3929 fi
3930
3931
3932
3933 depcc="$CC"   am_compiler_list=
3934
3935 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3936 $as_echo_n "checking dependency style of $depcc... " >&6; }
3937 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3938   $as_echo_n "(cached) " >&6
3939 else
3940   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3941   # We make a subdir and do the tests there.  Otherwise we can end up
3942   # making bogus files that we don't know about and never remove.  For
3943   # instance it was reported that on HP-UX the gcc test will end up
3944   # making a dummy file named `D' -- because `-MD' means `put the output
3945   # in D'.
3946   mkdir conftest.dir
3947   # Copy depcomp to subdir because otherwise we won't find it if we're
3948   # using a relative directory.
3949   cp "$am_depcomp" conftest.dir
3950   cd conftest.dir
3951   # We will build objects and dependencies in a subdirectory because
3952   # it helps to detect inapplicable dependency modes.  For instance
3953   # both Tru64's cc and ICC support -MD to output dependencies as a
3954   # side effect of compilation, but ICC will put the dependencies in
3955   # the current directory while Tru64 will put them in the object
3956   # directory.
3957   mkdir sub
3958
3959   am_cv_CC_dependencies_compiler_type=none
3960   if test "$am_compiler_list" = ""; then
3961      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3962   fi
3963   for depmode in $am_compiler_list; do
3964     # Setup a source with many dependencies, because some compilers
3965     # like to wrap large dependency lists on column 80 (with \), and
3966     # we should not choose a depcomp mode which is confused by this.
3967     #
3968     # We need to recreate these files for each test, as the compiler may
3969     # overwrite some of them when testing with obscure command lines.
3970     # This happens at least with the AIX C compiler.
3971     : > sub/conftest.c
3972     for i in 1 2 3 4 5 6; do
3973       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3974       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3975       # Solaris 8's {/usr,}/bin/sh.
3976       touch sub/conftst$i.h
3977     done
3978     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3979
3980     case $depmode in
3981     nosideeffect)
3982       # after this tag, mechanisms are not by side-effect, so they'll
3983       # only be used when explicitly requested
3984       if test "x$enable_dependency_tracking" = xyes; then
3985         continue
3986       else
3987         break
3988       fi
3989       ;;
3990     none) break ;;
3991     esac
3992     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3993     # mode.  It turns out that the SunPro C++ compiler does not properly
3994     # handle `-M -o', and we need to detect this.
3995     if depmode=$depmode \
3996        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3997        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3998        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3999          >/dev/null 2>conftest.err &&
4000        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4001        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4002        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4003        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4004       # icc doesn't choke on unknown options, it will just issue warnings
4005       # or remarks (even with -Werror).  So we grep stderr for any message
4006       # that says an option was ignored or not supported.
4007       # When given -MP, icc 7.0 and 7.1 complain thusly:
4008       #   icc: Command line warning: ignoring option '-M'; no argument required
4009       # The diagnosis changed in icc 8.0:
4010       #   icc: Command line remark: option '-MP' not supported
4011       if (grep 'ignoring option' conftest.err ||
4012           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4013         am_cv_CC_dependencies_compiler_type=$depmode
4014         break
4015       fi
4016     fi
4017   done
4018
4019   cd ..
4020   rm -rf conftest.dir
4021 else
4022   am_cv_CC_dependencies_compiler_type=none
4023 fi
4024
4025 fi
4026 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4027 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4028 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4029
4030  if
4031   test "x$enable_dependency_tracking" != xno \
4032   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4033   am__fastdepCC_TRUE=
4034   am__fastdepCC_FALSE='#'
4035 else
4036   am__fastdepCC_TRUE='#'
4037   am__fastdepCC_FALSE=
4038 fi
4039
4040
4041 if test "x$CC" != xcc; then
4042   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4043 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4044 else
4045   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4046 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4047 fi
4048 set dummy $CC; ac_cc=`$as_echo "$2" |
4049                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4050 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4051   $as_echo_n "(cached) " >&6
4052 else
4053   cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h.  */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h.  */
4059
4060 int
4061 main ()
4062 {
4063
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 # Make sure it works both with $CC and with simple cc.
4069 # We do the test twice because some compilers refuse to overwrite an
4070 # existing .o file with -o, though they will create one.
4071 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4072 rm -f conftest2.*
4073 if { (case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079   (eval "$ac_try") 2>&5
4080   ac_status=$?
4081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } &&
4083    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088 $as_echo "$ac_try_echo") >&5
4089   (eval "$ac_try") 2>&5
4090   ac_status=$?
4091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); };
4093 then
4094   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4095   if test "x$CC" != xcc; then
4096     # Test first that cc exists at all.
4097     if { ac_try='cc -c conftest.$ac_ext >&5'
4098   { (case "(($ac_try" in
4099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100   *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4103 $as_echo "$ac_try_echo") >&5
4104   (eval "$ac_try") 2>&5
4105   ac_status=$?
4106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }; }; then
4108       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4109       rm -f conftest2.*
4110       if { (case "(($ac_try" in
4111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112   *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115 $as_echo "$ac_try_echo") >&5
4116   (eval "$ac_try") 2>&5
4117   ac_status=$?
4118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); } &&
4120          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122   *) ac_try_echo=$ac_try;;
4123 esac
4124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4125 $as_echo "$ac_try_echo") >&5
4126   (eval "$ac_try") 2>&5
4127   ac_status=$?
4128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); };
4130       then
4131         # cc works too.
4132         :
4133       else
4134         # cc exists but doesn't like -o.
4135         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4136       fi
4137     fi
4138   fi
4139 else
4140   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4141 fi
4142 rm -f core conftest*
4143
4144 fi
4145 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4146   { $as_echo "$as_me:$LINENO: result: yes" >&5
4147 $as_echo "yes" >&6; }
4148 else
4149   { $as_echo "$as_me:$LINENO: result: no" >&5
4150 $as_echo "no" >&6; }
4151
4152 cat >>confdefs.h <<\_ACEOF
4153 #define NO_MINUS_C_MINUS_O 1
4154 _ACEOF
4155
4156 fi
4157
4158 # FIXME: we rely on the cache variable name because
4159 # there is no other way.
4160 set dummy $CC
4161 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4162 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4163 if test "$am_t" != yes; then
4164    # Losing compiler, so override with the script.
4165    # FIXME: It is wrong to rewrite CC.
4166    # But if we don't then we get into trouble of one sort or another.
4167    # A longer-term fix would be to have automake use am__CC in this case,
4168    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4169    CC="$am_aux_dir/compile $CC"
4170 fi
4171
4172
4173
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4180 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4181 # On Suns, sometimes $CPP names a directory.
4182 if test -n "$CPP" && test -d "$CPP"; then
4183   CPP=
4184 fi
4185 if test -z "$CPP"; then
4186   if test "${ac_cv_prog_CPP+set}" = set; then
4187   $as_echo_n "(cached) " >&6
4188 else
4189       # Double quotes because CPP needs to be expanded
4190     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4191     do
4192       ac_preproc_ok=false
4193 for ac_c_preproc_warn_flag in '' yes
4194 do
4195   # Use a header file that comes with gcc, so configuring glibc
4196   # with a fresh cross-compiler works.
4197   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198   # <limits.h> exists even on freestanding compilers.
4199   # On the NeXT, cc -E runs the code through the compiler's parser,
4200   # not just through cpp. "Syntax error" is here to catch this case.
4201   cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 #ifdef __STDC__
4208 # include <limits.h>
4209 #else
4210 # include <assert.h>
4211 #endif
4212                      Syntax error
4213 _ACEOF
4214 if { (ac_try="$ac_cpp conftest.$ac_ext"
4215 case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4220 $as_echo "$ac_try_echo") >&5
4221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } >/dev/null && {
4228          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4229          test ! -s conftest.err
4230        }; then
4231   :
4232 else
4233   $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236   # Broken: fails on valid input.
4237 continue
4238 fi
4239
4240 rm -f conftest.err conftest.$ac_ext
4241
4242   # OK, works on sane cases.  Now check whether nonexistent headers
4243   # can be detected and how.
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 #include <ac_nonexistent.h>
4251 _ACEOF
4252 if { (ac_try="$ac_cpp conftest.$ac_ext"
4253 case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4258 $as_echo "$ac_try_echo") >&5
4259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4260   ac_status=$?
4261   grep -v '^ *+' conftest.er1 >conftest.err
4262   rm -f conftest.er1
4263   cat conftest.err >&5
4264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } >/dev/null && {
4266          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4267          test ! -s conftest.err
4268        }; then
4269   # Broken: success on invalid input.
4270 continue
4271 else
4272   $as_echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275   # Passes both tests.
4276 ac_preproc_ok=:
4277 break
4278 fi
4279
4280 rm -f conftest.err conftest.$ac_ext
4281
4282 done
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then
4286   break
4287 fi
4288
4289     done
4290     ac_cv_prog_CPP=$CPP
4291
4292 fi
4293   CPP=$ac_cv_prog_CPP
4294 else
4295   ac_cv_prog_CPP=$CPP
4296 fi
4297 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4298 $as_echo "$CPP" >&6; }
4299 ac_preproc_ok=false
4300 for ac_c_preproc_warn_flag in '' yes
4301 do
4302   # Use a header file that comes with gcc, so configuring glibc
4303   # with a fresh cross-compiler works.
4304   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4305   # <limits.h> exists even on freestanding compilers.
4306   # On the NeXT, cc -E runs the code through the compiler's parser,
4307   # not just through cpp. "Syntax error" is here to catch this case.
4308   cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 #ifdef __STDC__
4315 # include <limits.h>
4316 #else
4317 # include <assert.h>
4318 #endif
4319                      Syntax error
4320 _ACEOF
4321 if { (ac_try="$ac_cpp conftest.$ac_ext"
4322 case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4327 $as_echo "$ac_try_echo") >&5
4328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } >/dev/null && {
4335          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4336          test ! -s conftest.err
4337        }; then
4338   :
4339 else
4340   $as_echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4342
4343   # Broken: fails on valid input.
4344 continue
4345 fi
4346
4347 rm -f conftest.err conftest.$ac_ext
4348
4349   # OK, works on sane cases.  Now check whether nonexistent headers
4350   # can be detected and how.
4351   cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h.  */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h.  */
4357 #include <ac_nonexistent.h>
4358 _ACEOF
4359 if { (ac_try="$ac_cpp conftest.$ac_ext"
4360 case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4365 $as_echo "$ac_try_echo") >&5
4366   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4367   ac_status=$?
4368   grep -v '^ *+' conftest.er1 >conftest.err
4369   rm -f conftest.er1
4370   cat conftest.err >&5
4371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); } >/dev/null && {
4373          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4374          test ! -s conftest.err
4375        }; then
4376   # Broken: success on invalid input.
4377 continue
4378 else
4379   $as_echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382   # Passes both tests.
4383 ac_preproc_ok=:
4384 break
4385 fi
4386
4387 rm -f conftest.err conftest.$ac_ext
4388
4389 done
4390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4391 rm -f conftest.err conftest.$ac_ext
4392 if $ac_preproc_ok; then
4393   :
4394 else
4395   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398 See \`config.log' for more details." >&5
4399 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400 See \`config.log' for more details." >&2;}
4401    { (exit 1); exit 1; }; }; }
4402 fi
4403
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410
4411 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4412 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4413 if test "${ac_cv_path_GREP+set}" = set; then
4414   $as_echo_n "(cached) " >&6
4415 else
4416   if test -z "$GREP"; then
4417   ac_path_GREP_found=false
4418   # Loop through the user's path and test for each of PROGNAME-LIST
4419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 do
4422   IFS=$as_save_IFS
4423   test -z "$as_dir" && as_dir=.
4424   for ac_prog in grep ggrep; do
4425     for ac_exec_ext in '' $ac_executable_extensions; do
4426       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4427       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4428 # Check for GNU ac_path_GREP and select it if it is found.
4429   # Check for GNU $ac_path_GREP
4430 case `"$ac_path_GREP" --version 2>&1` in
4431 *GNU*)
4432   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4433 *)
4434   ac_count=0
4435   $as_echo_n 0123456789 >"conftest.in"
4436   while :
4437   do
4438     cat "conftest.in" "conftest.in" >"conftest.tmp"
4439     mv "conftest.tmp" "conftest.in"
4440     cp "conftest.in" "conftest.nl"
4441     $as_echo 'GREP' >> "conftest.nl"
4442     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444     ac_count=`expr $ac_count + 1`
4445     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4446       # Best one so far, save it but keep looking for a better one
4447       ac_cv_path_GREP="$ac_path_GREP"
4448       ac_path_GREP_max=$ac_count
4449     fi
4450     # 10*(2^10) chars as input seems more than enough
4451     test $ac_count -gt 10 && break
4452   done
4453   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 esac
4455
4456       $ac_path_GREP_found && break 3
4457     done
4458   done
4459 done
4460 IFS=$as_save_IFS
4461   if test -z "$ac_cv_path_GREP"; then
4462     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4463 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4464    { (exit 1); exit 1; }; }
4465   fi
4466 else
4467   ac_cv_path_GREP=$GREP
4468 fi
4469
4470 fi
4471 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4472 $as_echo "$ac_cv_path_GREP" >&6; }
4473  GREP="$ac_cv_path_GREP"
4474
4475
4476 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4477 $as_echo_n "checking for egrep... " >&6; }
4478 if test "${ac_cv_path_EGREP+set}" = set; then
4479   $as_echo_n "(cached) " >&6
4480 else
4481   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4482    then ac_cv_path_EGREP="$GREP -E"
4483    else
4484      if test -z "$EGREP"; then
4485   ac_path_EGREP_found=false
4486   # Loop through the user's path and test for each of PROGNAME-LIST
4487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489 do
4490   IFS=$as_save_IFS
4491   test -z "$as_dir" && as_dir=.
4492   for ac_prog in egrep; do
4493     for ac_exec_ext in '' $ac_executable_extensions; do
4494       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4495       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4496 # Check for GNU ac_path_EGREP and select it if it is found.
4497   # Check for GNU $ac_path_EGREP
4498 case `"$ac_path_EGREP" --version 2>&1` in
4499 *GNU*)
4500   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4501 *)
4502   ac_count=0
4503   $as_echo_n 0123456789 >"conftest.in"
4504   while :
4505   do
4506     cat "conftest.in" "conftest.in" >"conftest.tmp"
4507     mv "conftest.tmp" "conftest.in"
4508     cp "conftest.in" "conftest.nl"
4509     $as_echo 'EGREP' >> "conftest.nl"
4510     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512     ac_count=`expr $ac_count + 1`
4513     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4514       # Best one so far, save it but keep looking for a better one
4515       ac_cv_path_EGREP="$ac_path_EGREP"
4516       ac_path_EGREP_max=$ac_count
4517     fi
4518     # 10*(2^10) chars as input seems more than enough
4519     test $ac_count -gt 10 && break
4520   done
4521   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4522 esac
4523
4524       $ac_path_EGREP_found && break 3
4525     done
4526   done
4527 done
4528 IFS=$as_save_IFS
4529   if test -z "$ac_cv_path_EGREP"; then
4530     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4531 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4532    { (exit 1); exit 1; }; }
4533   fi
4534 else
4535   ac_cv_path_EGREP=$EGREP
4536 fi
4537
4538    fi
4539 fi
4540 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4541 $as_echo "$ac_cv_path_EGREP" >&6; }
4542  EGREP="$ac_cv_path_EGREP"
4543
4544
4545 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4546 $as_echo_n "checking for ANSI C header files... " >&6; }
4547 if test "${ac_cv_header_stdc+set}" = set; then
4548   $as_echo_n "(cached) " >&6
4549 else
4550   cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h.  */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h.  */
4556 #include <stdlib.h>
4557 #include <stdarg.h>
4558 #include <string.h>
4559 #include <float.h>
4560
4561 int
4562 main ()
4563 {
4564
4565   ;
4566   return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4571 case "(($ac_try" in
4572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573   *) ac_try_echo=$ac_try;;
4574 esac
4575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4576 $as_echo "$ac_try_echo") >&5
4577   (eval "$ac_compile") 2>conftest.er1
4578   ac_status=$?
4579   grep -v '^ *+' conftest.er1 >conftest.err
4580   rm -f conftest.er1
4581   cat conftest.err >&5
4582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } && {
4584          test -z "$ac_c_werror_flag" ||
4585          test ! -s conftest.err
4586        } && test -s conftest.$ac_objext; then
4587   ac_cv_header_stdc=yes
4588 else
4589   $as_echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592         ac_cv_header_stdc=no
4593 fi
4594
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596
4597 if test $ac_cv_header_stdc = yes; then
4598   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4599   cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h.  */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h.  */
4605 #include <string.h>
4606
4607 _ACEOF
4608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609   $EGREP "memchr" >/dev/null 2>&1; then
4610   :
4611 else
4612   ac_cv_header_stdc=no
4613 fi
4614 rm -f conftest*
4615
4616 fi
4617
4618 if test $ac_cv_header_stdc = yes; then
4619   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4620   cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h.  */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h.  */
4626 #include <stdlib.h>
4627
4628 _ACEOF
4629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630   $EGREP "free" >/dev/null 2>&1; then
4631   :
4632 else
4633   ac_cv_header_stdc=no
4634 fi
4635 rm -f conftest*
4636
4637 fi
4638
4639 if test $ac_cv_header_stdc = yes; then
4640   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4641   if test "$cross_compiling" = yes; then
4642   :
4643 else
4644   cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h.  */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h.  */
4650 #include <ctype.h>
4651 #include <stdlib.h>
4652 #if ((' ' & 0x0FF) == 0x020)
4653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655 #else
4656 # define ISLOWER(c) \
4657                    (('a' <= (c) && (c) <= 'i') \
4658                      || ('j' <= (c) && (c) <= 'r') \
4659                      || ('s' <= (c) && (c) <= 'z'))
4660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4661 #endif
4662
4663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664 int
4665 main ()
4666 {
4667   int i;
4668   for (i = 0; i < 256; i++)
4669     if (XOR (islower (i), ISLOWER (i))
4670         || toupper (i) != TOUPPER (i))
4671       return 2;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest$ac_exeext
4676 if { (ac_try="$ac_link"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683   (eval "$ac_link") 2>&5
4684   ac_status=$?
4685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687   { (case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693   (eval "$ac_try") 2>&5
4694   ac_status=$?
4695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; }; then
4697   :
4698 else
4699   $as_echo "$as_me: program exited with status $ac_status" >&5
4700 $as_echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 ( exit $ac_status )
4704 ac_cv_header_stdc=no
4705 fi
4706 rm -rf conftest.dSYM
4707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4708 fi
4709
4710
4711 fi
4712 fi
4713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4714 $as_echo "$ac_cv_header_stdc" >&6; }
4715 if test $ac_cv_header_stdc = yes; then
4716
4717 cat >>confdefs.h <<\_ACEOF
4718 #define STDC_HEADERS 1
4719 _ACEOF
4720
4721 fi
4722
4723 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734                   inttypes.h stdint.h unistd.h
4735 do
4736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4738 $as_echo_n "checking for $ac_header... " >&6; }
4739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4740   $as_echo_n "(cached) " >&6
4741 else
4742   cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h.  */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h.  */
4748 $ac_includes_default
4749
4750 #include <$ac_header>
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4754 case "(($ac_try" in
4755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756   *) ac_try_echo=$ac_try;;
4757 esac
4758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759 $as_echo "$ac_try_echo") >&5
4760   (eval "$ac_compile") 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
4764   cat conftest.err >&5
4765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } && {
4767          test -z "$ac_c_werror_flag" ||
4768          test ! -s conftest.err
4769        } && test -s conftest.$ac_objext; then
4770   eval "$as_ac_Header=yes"
4771 else
4772   $as_echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775         eval "$as_ac_Header=no"
4776 fi
4777
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 fi
4780 ac_res=`eval 'as_val=${'$as_ac_Header'}
4781                  $as_echo "$as_val"'`
4782                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4783 $as_echo "$ac_res" >&6; }
4784 as_val=`eval 'as_val=${'$as_ac_Header'}
4785                  $as_echo "$as_val"'`
4786    if test "x$as_val" = x""yes; then
4787   cat >>confdefs.h <<_ACEOF
4788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4789 _ACEOF
4790
4791 fi
4792
4793 done
4794
4795
4796
4797
4798
4799   if test "${ac_cv_header_minix_config_h+set}" = set; then
4800   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4801 $as_echo_n "checking for minix/config.h... " >&6; }
4802 if test "${ac_cv_header_minix_config_h+set}" = set; then
4803   $as_echo_n "(cached) " >&6
4804 fi
4805 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4806 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4807 else
4808   # Is the header compilable?
4809 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4810 $as_echo_n "checking minix/config.h usability... " >&6; }
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h.  */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h.  */
4817 $ac_includes_default
4818 #include <minix/config.h>
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (ac_try="$ac_compile"
4822 case "(($ac_try" in
4823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824   *) ac_try_echo=$ac_try;;
4825 esac
4826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4827 $as_echo "$ac_try_echo") >&5
4828   (eval "$ac_compile") 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } && {
4835          test -z "$ac_c_werror_flag" ||
4836          test ! -s conftest.err
4837        } && test -s conftest.$ac_objext; then
4838   ac_header_compiler=yes
4839 else
4840   $as_echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843         ac_header_compiler=no
4844 fi
4845
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848 $as_echo "$ac_header_compiler" >&6; }
4849
4850 # Is the header present?
4851 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4852 $as_echo_n "checking minix/config.h presence... " >&6; }
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859 #include <minix/config.h>
4860 _ACEOF
4861 if { (ac_try="$ac_cpp conftest.$ac_ext"
4862 case "(($ac_try" in
4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864   *) ac_try_echo=$ac_try;;
4865 esac
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869   ac_status=$?
4870   grep -v '^ *+' conftest.er1 >conftest.err
4871   rm -f conftest.er1
4872   cat conftest.err >&5
4873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } >/dev/null && {
4875          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876          test ! -s conftest.err
4877        }; then
4878   ac_header_preproc=yes
4879 else
4880   $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883   ac_header_preproc=no
4884 fi
4885
4886 rm -f conftest.err conftest.$ac_ext
4887 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4888 $as_echo "$ac_header_preproc" >&6; }
4889
4890 # So?  What about this header?
4891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4892   yes:no: )
4893     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4894 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4895     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4896 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4897     ac_header_preproc=yes
4898     ;;
4899   no:yes:* )
4900     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4901 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4902     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4903 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4904     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4905 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4906     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4907 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4908     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4909 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4910     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4911 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4912     ( cat <<\_ASBOX
4913 ## ------------------------------- ##
4914 ## Report this to bug-wget@gnu.org ##
4915 ## ------------------------------- ##
4916 _ASBOX
4917      ) | sed "s/^/$as_me: WARNING:     /" >&2
4918     ;;
4919 esac
4920 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4921 $as_echo_n "checking for minix/config.h... " >&6; }
4922 if test "${ac_cv_header_minix_config_h+set}" = set; then
4923   $as_echo_n "(cached) " >&6
4924 else
4925   ac_cv_header_minix_config_h=$ac_header_preproc
4926 fi
4927 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4928 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4929
4930 fi
4931 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4932   MINIX=yes
4933 else
4934   MINIX=
4935 fi
4936
4937
4938   if test "$MINIX" = yes; then
4939
4940 cat >>confdefs.h <<\_ACEOF
4941 #define _POSIX_SOURCE 1
4942 _ACEOF
4943
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define _POSIX_1_SOURCE 2
4947 _ACEOF
4948
4949
4950 cat >>confdefs.h <<\_ACEOF
4951 #define _MINIX 1
4952 _ACEOF
4953
4954   fi
4955
4956         case "$host_os" in
4957     hpux*)
4958
4959 cat >>confdefs.h <<\_ACEOF
4960 #define _XOPEN_SOURCE 500
4961 _ACEOF
4962
4963       ;;
4964   esac
4965
4966
4967
4968   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4969 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4970 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4971   $as_echo_n "(cached) " >&6
4972 else
4973   cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979
4980 #         define __EXTENSIONS__ 1
4981           $ac_includes_default
4982 int
4983 main ()
4984 {
4985
4986   ;
4987   return 0;
4988 }
4989 _ACEOF
4990 rm -f conftest.$ac_objext
4991 if { (ac_try="$ac_compile"
4992 case "(($ac_try" in
4993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994   *) ac_try_echo=$ac_try;;
4995 esac
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998   (eval "$ac_compile") 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } && {
5005          test -z "$ac_c_werror_flag" ||
5006          test ! -s conftest.err
5007        } && test -s conftest.$ac_objext; then
5008   ac_cv_safe_to_define___extensions__=yes
5009 else
5010   $as_echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013         ac_cv_safe_to_define___extensions__=no
5014 fi
5015
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 fi
5018 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5019 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5020   test $ac_cv_safe_to_define___extensions__ = yes &&
5021     cat >>confdefs.h <<\_ACEOF
5022 #define __EXTENSIONS__ 1
5023 _ACEOF
5024
5025   cat >>confdefs.h <<\_ACEOF
5026 #define _ALL_SOURCE 1
5027 _ACEOF
5028
5029   cat >>confdefs.h <<\_ACEOF
5030 #define _GNU_SOURCE 1
5031 _ACEOF
5032
5033   cat >>confdefs.h <<\_ACEOF
5034 #define _POSIX_PTHREAD_SEMANTICS 1
5035 _ACEOF
5036
5037   cat >>confdefs.h <<\_ACEOF
5038 #define _TANDEM_SOURCE 1
5039 _ACEOF
5040
5041
5042
5043
5044 if test -n "$ac_tool_prefix"; then
5045   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_RANLIB+set}" = set; then
5050   $as_echo_n "(cached) " >&6
5051 else
5052   if test -n "$RANLIB"; then
5053   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060   for ac_exec_ext in '' $ac_executable_extensions; do
5061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5063     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 fi
5071 fi
5072 RANLIB=$ac_cv_prog_RANLIB
5073 if test -n "$RANLIB"; then
5074   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5075 $as_echo "$RANLIB" >&6; }
5076 else
5077   { $as_echo "$as_me:$LINENO: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080
5081
5082 fi
5083 if test -z "$ac_cv_prog_RANLIB"; then
5084   ac_ct_RANLIB=$RANLIB
5085   # Extract the first word of "ranlib", so it can be a program name with args.
5086 set dummy ranlib; ac_word=$2
5087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5090   $as_echo_n "(cached) " >&6
5091 else
5092   if test -n "$ac_ct_RANLIB"; then
5093   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098   IFS=$as_save_IFS
5099   test -z "$as_dir" && as_dir=.
5100   for ac_exec_ext in '' $ac_executable_extensions; do
5101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102     ac_cv_prog_ac_ct_RANLIB="ranlib"
5103     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104     break 2
5105   fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5113 if test -n "$ac_ct_RANLIB"; then
5114   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5115 $as_echo "$ac_ct_RANLIB" >&6; }
5116 else
5117   { $as_echo "$as_me:$LINENO: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121   if test "x$ac_ct_RANLIB" = x; then
5122     RANLIB=":"
5123   else
5124     case $cross_compiling:$ac_tool_warned in
5125 yes:)
5126 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5128 ac_tool_warned=yes ;;
5129 esac
5130     RANLIB=$ac_ct_RANLIB
5131   fi
5132 else
5133   RANLIB="$ac_cv_prog_RANLIB"
5134 fi
5135
5136
5137
5138
5139
5140
5141
5142
5143 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5144 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5145 if test "${ac_cv_sys_largefile_source+set}" = set; then
5146   $as_echo_n "(cached) " >&6
5147 else
5148   while :; do
5149   cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 #include <sys/types.h> /* for off_t */
5156      #include <stdio.h>
5157 int
5158 main ()
5159 {
5160 int (*fp) (FILE *, off_t, int) = fseeko;
5161      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5162   ;
5163   return 0;
5164 }
5165 _ACEOF
5166 rm -f conftest.$ac_objext conftest$ac_exeext
5167 if { (ac_try="$ac_link"
5168 case "(($ac_try" in
5169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170   *) ac_try_echo=$ac_try;;
5171 esac
5172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173 $as_echo "$ac_try_echo") >&5
5174   (eval "$ac_link") 2>conftest.er1
5175   ac_status=$?
5176   grep -v '^ *+' conftest.er1 >conftest.err
5177   rm -f conftest.er1
5178   cat conftest.err >&5
5179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); } && {
5181          test -z "$ac_c_werror_flag" ||
5182          test ! -s conftest.err
5183        } && test -s conftest$ac_exeext && {
5184          test "$cross_compiling" = yes ||
5185          $as_test_x conftest$ac_exeext
5186        }; then
5187   ac_cv_sys_largefile_source=no; break
5188 else
5189   $as_echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192
5193 fi
5194
5195 rm -rf conftest.dSYM
5196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5197       conftest$ac_exeext conftest.$ac_ext
5198   cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204 #define _LARGEFILE_SOURCE 1
5205 #include <sys/types.h> /* for off_t */
5206      #include <stdio.h>
5207 int
5208 main ()
5209 {
5210 int (*fp) (FILE *, off_t, int) = fseeko;
5211      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5212   ;
5213   return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext conftest$ac_exeext
5217 if { (ac_try="$ac_link"
5218 case "(($ac_try" in
5219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220   *) ac_try_echo=$ac_try;;
5221 esac
5222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5223 $as_echo "$ac_try_echo") >&5
5224   (eval "$ac_link") 2>conftest.er1
5225   ac_status=$?
5226   grep -v '^ *+' conftest.er1 >conftest.err
5227   rm -f conftest.er1
5228   cat conftest.err >&5
5229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); } && {
5231          test -z "$ac_c_werror_flag" ||
5232          test ! -s conftest.err
5233        } && test -s conftest$ac_exeext && {
5234          test "$cross_compiling" = yes ||
5235          $as_test_x conftest$ac_exeext
5236        }; then
5237   ac_cv_sys_largefile_source=1; break
5238 else
5239   $as_echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242
5243 fi
5244
5245 rm -rf conftest.dSYM
5246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5247       conftest$ac_exeext conftest.$ac_ext
5248   ac_cv_sys_largefile_source=unknown
5249   break
5250 done
5251 fi
5252 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5253 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5254 case $ac_cv_sys_largefile_source in #(
5255   no | unknown) ;;
5256   *)
5257 cat >>confdefs.h <<_ACEOF
5258 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5259 _ACEOF
5260 ;;
5261 esac
5262 rm -rf conftest*
5263
5264 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5265 # in glibc 2.1.3, but that breaks too many other things.
5266 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5267 if test $ac_cv_sys_largefile_source != unknown; then
5268
5269 cat >>confdefs.h <<\_ACEOF
5270 #define HAVE_FSEEKO 1
5271 _ACEOF
5272
5273 fi
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5286 $as_echo_n "checking whether NLS is requested... " >&6; }
5287     # Check whether --enable-nls was given.
5288 if test "${enable_nls+set}" = set; then
5289   enableval=$enable_nls; USE_NLS=$enableval
5290 else
5291   USE_NLS=yes
5292 fi
5293
5294   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5295 $as_echo "$USE_NLS" >&6; }
5296
5297
5298
5299
5300       GETTEXT_MACRO_VERSION=0.17
5301
5302
5303
5304         # Extract the first word of "msgfmt", so it can be a program name with args.
5305 set dummy msgfmt; ac_word=$2
5306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if test "${ac_cv_path_MSGFMT+set}" = set; then
5309   $as_echo_n "(cached) " >&6
5310 else
5311   case "$MSGFMT" in
5312   /*)
5313   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5314   ;;
5315   *)
5316   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5317   for ac_dir in $PATH; do
5318     test -z "$ac_dir" && ac_dir=.
5319     if test -f $ac_dir/$ac_word; then
5320       if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5321      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5322         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5323         break
5324       fi
5325     fi
5326   done
5327   IFS="$ac_save_ifs"
5328   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5329   ;;
5330 esac
5331 fi
5332 MSGFMT="$ac_cv_path_MSGFMT"
5333 if test -n "$MSGFMT"; then
5334   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5335 $as_echo "$MSGFMT" >&6; }
5336 else
5337   { $as_echo "$as_me:$LINENO: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5342 set dummy gmsgfmt; ac_word=$2
5343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5346   $as_echo_n "(cached) " >&6
5347 else
5348   case $GMSGFMT in
5349   [\\/]* | ?:[\\/]*)
5350   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5351   ;;
5352   *)
5353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5361     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5369   ;;
5370 esac
5371 fi
5372 GMSGFMT=$ac_cv_path_GMSGFMT
5373 if test -n "$GMSGFMT"; then
5374   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5375 $as_echo "$GMSGFMT" >&6; }
5376 else
5377   { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382
5383     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5384     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5385     *) MSGFMT_015=$MSGFMT ;;
5386   esac
5387
5388   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5389     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5390     *) GMSGFMT_015=$GMSGFMT ;;
5391   esac
5392
5393
5394         # Extract the first word of "xgettext", so it can be a program name with args.
5395 set dummy xgettext; ac_word=$2
5396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5399   $as_echo_n "(cached) " >&6
5400 else
5401   case "$XGETTEXT" in
5402   /*)
5403   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5404   ;;
5405   *)
5406   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5407   for ac_dir in $PATH; do
5408     test -z "$ac_dir" && ac_dir=.
5409     if test -f $ac_dir/$ac_word; then
5410       if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5411      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5412         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5413         break
5414       fi
5415     fi
5416   done
5417   IFS="$ac_save_ifs"
5418   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5419   ;;
5420 esac
5421 fi
5422 XGETTEXT="$ac_cv_path_XGETTEXT"
5423 if test -n "$XGETTEXT"; then
5424   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5425 $as_echo "$XGETTEXT" >&6; }
5426 else
5427   { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431     rm -f messages.po
5432
5433     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5434     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5435     *) XGETTEXT_015=$XGETTEXT ;;
5436   esac
5437
5438
5439     # Extract the first word of "msgmerge", so it can be a program name with args.
5440 set dummy msgmerge; ac_word=$2
5441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5444   $as_echo_n "(cached) " >&6
5445 else
5446   case "$MSGMERGE" in
5447   /*)
5448   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5449   ;;
5450   *)
5451   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5452   for ac_dir in $PATH; do
5453     test -z "$ac_dir" && ac_dir=.
5454     if test -f $ac_dir/$ac_word; then
5455       if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5456         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
5457         break
5458       fi
5459     fi
5460   done
5461   IFS="$ac_save_ifs"
5462   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5463   ;;
5464 esac
5465 fi
5466 MSGMERGE="$ac_cv_path_MSGMERGE"
5467 if test -n "$MSGMERGE"; then
5468   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5469 $as_echo "$MSGMERGE" >&6; }
5470 else
5471   { $as_echo "$as_me:$LINENO: result: no" >&5
5472 $as_echo "no" >&6; }
5473 fi
5474
5475
5476         test -n "$localedir" || localedir='${datadir}/locale'
5477
5478
5479     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5480
5481
5482   ac_config_commands="$ac_config_commands po-directories"
5483
5484
5485
5486       if test "X$prefix" = "XNONE"; then
5487     acl_final_prefix="$ac_default_prefix"
5488   else
5489     acl_final_prefix="$prefix"
5490   fi
5491   if test "X$exec_prefix" = "XNONE"; then
5492     acl_final_exec_prefix='${prefix}'
5493   else
5494     acl_final_exec_prefix="$exec_prefix"
5495   fi
5496   acl_save_prefix="$prefix"
5497   prefix="$acl_final_prefix"
5498   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5499   prefix="$acl_save_prefix"
5500
5501
5502 # Check whether --with-gnu-ld was given.
5503 if test "${with_gnu_ld+set}" = set; then
5504   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5505 else
5506   with_gnu_ld=no
5507 fi
5508
5509 # Prepare PATH_SEPARATOR.
5510 # The user is always right.
5511 if test "${PATH_SEPARATOR+set}" != set; then
5512   echo "#! /bin/sh" >conf$$.sh
5513   echo  "exit 0"   >>conf$$.sh
5514   chmod +x conf$$.sh
5515   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5516     PATH_SEPARATOR=';'
5517   else
5518     PATH_SEPARATOR=:
5519   fi
5520   rm -f conf$$.sh
5521 fi
5522 ac_prog=ld
5523 if test "$GCC" = yes; then
5524   # Check if gcc -print-prog-name=ld gives a path.
5525   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5526 $as_echo_n "checking for ld used by GCC... " >&6; }
5527   case $host in
5528   *-*-mingw*)
5529     # gcc leaves a trailing carriage return which upsets mingw
5530     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5531   *)
5532     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5533   esac
5534   case $ac_prog in
5535     # Accept absolute paths.
5536     [\\/]* | [A-Za-z]:[\\/]*)
5537       re_direlt='/[^/][^/]*/\.\./'
5538       # Canonicalize the path of ld
5539       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5540       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5541         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5542       done
5543       test -z "$LD" && LD="$ac_prog"
5544       ;;
5545   "")
5546     # If it fails, then pretend we aren't using GCC.
5547     ac_prog=ld
5548     ;;
5549   *)
5550     # If it is relative, then search for the first ld in PATH.
5551     with_gnu_ld=unknown
5552     ;;
5553   esac
5554 elif test "$with_gnu_ld" = yes; then
5555   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5556 $as_echo_n "checking for GNU ld... " >&6; }
5557 else
5558   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5559 $as_echo_n "checking for non-GNU ld... " >&6; }
5560 fi
5561 if test "${acl_cv_path_LD+set}" = set; then
5562   $as_echo_n "(cached) " >&6
5563 else
5564   if test -z "$LD"; then
5565   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5566   for ac_dir in $PATH; do
5567     test -z "$ac_dir" && ac_dir=.
5568     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5569       acl_cv_path_LD="$ac_dir/$ac_prog"
5570       # Check to see if the program is GNU ld.  I'd rather use --version,
5571       # but apparently some GNU ld's only accept -v.
5572       # Break only if it was the GNU/non-GNU ld that we prefer.
5573       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5574       *GNU* | *'with BFD'*)
5575         test "$with_gnu_ld" != no && break ;;
5576       *)
5577         test "$with_gnu_ld" != yes && break ;;
5578       esac
5579     fi
5580   done
5581   IFS="$ac_save_ifs"
5582 else
5583   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5584 fi
5585 fi
5586
5587 LD="$acl_cv_path_LD"
5588 if test -n "$LD"; then
5589   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5590 $as_echo "$LD" >&6; }
5591 else
5592   { $as_echo "$as_me:$LINENO: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5596 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5597    { (exit 1); exit 1; }; }
5598 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5599 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5600 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5601   $as_echo_n "(cached) " >&6
5602 else
5603   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5604 case `$LD -v 2>&1 </dev/null` in
5605 *GNU* | *'with BFD'*)
5606   acl_cv_prog_gnu_ld=yes ;;
5607 *)
5608   acl_cv_prog_gnu_ld=no ;;
5609 esac
5610 fi
5611 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5612 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5613 with_gnu_ld=$acl_cv_prog_gnu_ld
5614
5615
5616
5617
5618                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5619 $as_echo_n "checking for shared library run path origin... " >&6; }
5620 if test "${acl_cv_rpath+set}" = set; then
5621   $as_echo_n "(cached) " >&6
5622 else
5623
5624     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5625     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5626     . ./conftest.sh
5627     rm -f ./conftest.sh
5628     acl_cv_rpath=done
5629
5630 fi
5631 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5632 $as_echo "$acl_cv_rpath" >&6; }
5633   wl="$acl_cv_wl"
5634   acl_libext="$acl_cv_libext"
5635   acl_shlibext="$acl_cv_shlibext"
5636   acl_libname_spec="$acl_cv_libname_spec"
5637   acl_library_names_spec="$acl_cv_library_names_spec"
5638   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5639   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5640   acl_hardcode_direct="$acl_cv_hardcode_direct"
5641   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5642     # Check whether --enable-rpath was given.
5643 if test "${enable_rpath+set}" = set; then
5644   enableval=$enable_rpath; :
5645 else
5646   enable_rpath=yes
5647 fi
5648
5649
5650
5651                   acl_libdirstem=lib
5652   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5653   if test -n "$searchpath"; then
5654     acl_save_IFS="${IFS=        }"; IFS=":"
5655     for searchdir in $searchpath; do
5656       if test -d "$searchdir"; then
5657         case "$searchdir" in
5658           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5659           *) searchdir=`cd "$searchdir" && pwd`
5660              case "$searchdir" in
5661                */lib64 ) acl_libdirstem=lib64 ;;
5662              esac ;;
5663         esac
5664       fi
5665     done
5666     IFS="$acl_save_IFS"
5667   fi
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677     use_additional=yes
5678
5679   acl_save_prefix="$prefix"
5680   prefix="$acl_final_prefix"
5681   acl_save_exec_prefix="$exec_prefix"
5682   exec_prefix="$acl_final_exec_prefix"
5683
5684     eval additional_includedir=\"$includedir\"
5685     eval additional_libdir=\"$libdir\"
5686
5687   exec_prefix="$acl_save_exec_prefix"
5688   prefix="$acl_save_prefix"
5689
5690
5691 # Check whether --with-libiconv-prefix was given.
5692 if test "${with_libiconv_prefix+set}" = set; then
5693   withval=$with_libiconv_prefix;
5694     if test "X$withval" = "Xno"; then
5695       use_additional=no
5696     else
5697       if test "X$withval" = "X"; then
5698
5699   acl_save_prefix="$prefix"
5700   prefix="$acl_final_prefix"
5701   acl_save_exec_prefix="$exec_prefix"
5702   exec_prefix="$acl_final_exec_prefix"
5703
5704           eval additional_includedir=\"$includedir\"
5705           eval additional_libdir=\"$libdir\"
5706
5707   exec_prefix="$acl_save_exec_prefix"
5708   prefix="$acl_save_prefix"
5709
5710       else
5711         additional_includedir="$withval/include"
5712         additional_libdir="$withval/$acl_libdirstem"
5713       fi
5714     fi
5715
5716 fi
5717
5718       LIBICONV=
5719   LTLIBICONV=
5720   INCICONV=
5721   LIBICONV_PREFIX=
5722   rpathdirs=
5723   ltrpathdirs=
5724   names_already_handled=
5725   names_next_round='iconv '
5726   while test -n "$names_next_round"; do
5727     names_this_round="$names_next_round"
5728     names_next_round=
5729     for name in $names_this_round; do
5730       already_handled=
5731       for n in $names_already_handled; do
5732         if test "$n" = "$name"; then
5733           already_handled=yes
5734           break
5735         fi
5736       done
5737       if test -z "$already_handled"; then
5738         names_already_handled="$names_already_handled $name"
5739                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5740         eval value=\"\$HAVE_LIB$uppername\"
5741         if test -n "$value"; then
5742           if test "$value" = yes; then
5743             eval value=\"\$LIB$uppername\"
5744             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5745             eval value=\"\$LTLIB$uppername\"
5746             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5747           else
5748                                     :
5749           fi
5750         else
5751                               found_dir=
5752           found_la=
5753           found_so=
5754           found_a=
5755           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5756           if test -n "$acl_shlibext"; then
5757             shrext=".$acl_shlibext"             # typically: shrext=.so
5758           else
5759             shrext=
5760           fi
5761           if test $use_additional = yes; then
5762             dir="$additional_libdir"
5763                                     if test -n "$acl_shlibext"; then
5764               if test -f "$dir/$libname$shrext"; then
5765                 found_dir="$dir"
5766                 found_so="$dir/$libname$shrext"
5767               else
5768                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5769                   ver=`(cd "$dir" && \
5770                         for f in "$libname$shrext".*; do echo "$f"; done \
5771                         | sed -e "s,^$libname$shrext\\\\.,," \
5772                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5773                         | sed 1q ) 2>/dev/null`
5774                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5775                     found_dir="$dir"
5776                     found_so="$dir/$libname$shrext.$ver"
5777                   fi
5778                 else
5779                   eval library_names=\"$acl_library_names_spec\"
5780                   for f in $library_names; do
5781                     if test -f "$dir/$f"; then
5782                       found_dir="$dir"
5783                       found_so="$dir/$f"
5784                       break
5785                     fi
5786                   done
5787                 fi
5788               fi
5789             fi
5790                         if test "X$found_dir" = "X"; then
5791               if test -f "$dir/$libname.$acl_libext"; then
5792                 found_dir="$dir"
5793                 found_a="$dir/$libname.$acl_libext"
5794               fi
5795             fi
5796             if test "X$found_dir" != "X"; then
5797               if test -f "$dir/$libname.la"; then
5798                 found_la="$dir/$libname.la"
5799               fi
5800             fi
5801           fi
5802           if test "X$found_dir" = "X"; then
5803             for x in $LDFLAGS $LTLIBICONV; do
5804
5805   acl_save_prefix="$prefix"
5806   prefix="$acl_final_prefix"
5807   acl_save_exec_prefix="$exec_prefix"
5808   exec_prefix="$acl_final_exec_prefix"
5809   eval x=\"$x\"
5810   exec_prefix="$acl_save_exec_prefix"
5811   prefix="$acl_save_prefix"
5812
5813               case "$x" in
5814                 -L*)
5815                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5816                                     if test -n "$acl_shlibext"; then
5817                     if test -f "$dir/$libname$shrext"; then
5818                       found_dir="$dir"
5819                       found_so="$dir/$libname$shrext"
5820                     else
5821                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5822                         ver=`(cd "$dir" && \
5823                               for f in "$libname$shrext".*; do echo "$f"; done \
5824                               | sed -e "s,^$libname$shrext\\\\.,," \
5825                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5826                               | sed 1q ) 2>/dev/null`
5827                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5828                           found_dir="$dir"
5829                           found_so="$dir/$libname$shrext.$ver"
5830                         fi
5831                       else
5832                         eval library_names=\"$acl_library_names_spec\"
5833                         for f in $library_names; do
5834                           if test -f "$dir/$f"; then
5835                             found_dir="$dir"
5836                             found_so="$dir/$f"
5837                             break
5838                           fi
5839                         done
5840                       fi
5841                     fi
5842                   fi
5843                                     if test "X$found_dir" = "X"; then
5844                     if test -f "$dir/$libname.$acl_libext"; then
5845                       found_dir="$dir"
5846                       found_a="$dir/$libname.$acl_libext"
5847                     fi
5848                   fi
5849                   if test "X$found_dir" != "X"; then
5850                     if test -f "$dir/$libname.la"; then
5851                       found_la="$dir/$libname.la"
5852                     fi
5853                   fi
5854                   ;;
5855               esac
5856               if test "X$found_dir" != "X"; then
5857                 break
5858               fi
5859             done
5860           fi
5861           if test "X$found_dir" != "X"; then
5862                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5863             if test "X$found_so" != "X"; then
5864                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5865                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5866               else
5867                                                                                 haveit=
5868                 for x in $ltrpathdirs; do
5869                   if test "X$x" = "X$found_dir"; then
5870                     haveit=yes
5871                     break
5872                   fi
5873                 done
5874                 if test -z "$haveit"; then
5875                   ltrpathdirs="$ltrpathdirs $found_dir"
5876                 fi
5877                                 if test "$acl_hardcode_direct" = yes; then
5878                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5879                 else
5880                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5881                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5882                                                             haveit=
5883                     for x in $rpathdirs; do
5884                       if test "X$x" = "X$found_dir"; then
5885                         haveit=yes
5886                         break
5887                       fi
5888                     done
5889                     if test -z "$haveit"; then
5890                       rpathdirs="$rpathdirs $found_dir"
5891                     fi
5892                   else
5893                                                                                 haveit=
5894                     for x in $LDFLAGS $LIBICONV; do
5895
5896   acl_save_prefix="$prefix"
5897   prefix="$acl_final_prefix"
5898   acl_save_exec_prefix="$exec_prefix"
5899   exec_prefix="$acl_final_exec_prefix"
5900   eval x=\"$x\"
5901   exec_prefix="$acl_save_exec_prefix"
5902   prefix="$acl_save_prefix"
5903
5904                       if test "X$x" = "X-L$found_dir"; then
5905                         haveit=yes
5906                         break
5907                       fi
5908                     done
5909                     if test -z "$haveit"; then
5910                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5911                     fi
5912                     if test "$acl_hardcode_minus_L" != no; then
5913                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5914                     else
5915                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5916                     fi
5917                   fi
5918                 fi
5919               fi
5920             else
5921               if test "X$found_a" != "X"; then
5922                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5923               else
5924                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5925               fi
5926             fi
5927                         additional_includedir=
5928             case "$found_dir" in
5929               */$acl_libdirstem | */$acl_libdirstem/)
5930                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5931                 LIBICONV_PREFIX="$basedir"
5932                 additional_includedir="$basedir/include"
5933                 ;;
5934             esac
5935             if test "X$additional_includedir" != "X"; then
5936                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5937                 haveit=
5938                 if test "X$additional_includedir" = "X/usr/local/include"; then
5939                   if test -n "$GCC"; then
5940                     case $host_os in
5941                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5942                     esac
5943                   fi
5944                 fi
5945                 if test -z "$haveit"; then
5946                   for x in $CPPFLAGS $INCICONV; do
5947
5948   acl_save_prefix="$prefix"
5949   prefix="$acl_final_prefix"
5950   acl_save_exec_prefix="$exec_prefix"
5951   exec_prefix="$acl_final_exec_prefix"
5952   eval x=\"$x\"
5953   exec_prefix="$acl_save_exec_prefix"
5954   prefix="$acl_save_prefix"
5955
5956                     if test "X$x" = "X-I$additional_includedir"; then
5957                       haveit=yes
5958                       break
5959                     fi
5960                   done
5961                   if test -z "$haveit"; then
5962                     if test -d "$additional_includedir"; then
5963                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5964                     fi
5965                   fi
5966                 fi
5967               fi
5968             fi
5969                         if test -n "$found_la"; then
5970                                                         save_libdir="$libdir"
5971               case "$found_la" in
5972                 */* | *\\*) . "$found_la" ;;
5973                 *) . "./$found_la" ;;
5974               esac
5975               libdir="$save_libdir"
5976                             for dep in $dependency_libs; do
5977                 case "$dep" in
5978                   -L*)
5979                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5980                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5981                       haveit=
5982                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5983                         if test -n "$GCC"; then
5984                           case $host_os in
5985                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5986                           esac
5987                         fi
5988                       fi
5989                       if test -z "$haveit"; then
5990                         haveit=
5991                         for x in $LDFLAGS $LIBICONV; do
5992
5993   acl_save_prefix="$prefix"
5994   prefix="$acl_final_prefix"
5995   acl_save_exec_prefix="$exec_prefix"
5996   exec_prefix="$acl_final_exec_prefix"
5997   eval x=\"$x\"
5998   exec_prefix="$acl_save_exec_prefix"
5999   prefix="$acl_save_prefix"
6000
6001                           if test "X$x" = "X-L$additional_libdir"; then
6002                             haveit=yes
6003                             break
6004                           fi
6005                         done
6006                         if test -z "$haveit"; then
6007                           if test -d "$additional_libdir"; then
6008                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6009                           fi
6010                         fi
6011                         haveit=
6012                         for x in $LDFLAGS $LTLIBICONV; do
6013
6014   acl_save_prefix="$prefix"
6015   prefix="$acl_final_prefix"
6016   acl_save_exec_prefix="$exec_prefix"
6017   exec_prefix="$acl_final_exec_prefix"
6018   eval x=\"$x\"
6019   exec_prefix="$acl_save_exec_prefix"
6020   prefix="$acl_save_prefix"
6021
6022                           if test "X$x" = "X-L$additional_libdir"; then
6023                             haveit=yes
6024                             break
6025                           fi
6026                         done
6027                         if test -z "$haveit"; then
6028                           if test -d "$additional_libdir"; then
6029                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6030                           fi
6031                         fi
6032                       fi
6033                     fi
6034                     ;;
6035                   -R*)
6036                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6037                     if test "$enable_rpath" != no; then
6038                                                                   haveit=
6039                       for x in $rpathdirs; do
6040                         if test "X$x" = "X$dir"; then
6041                           haveit=yes
6042                           break
6043                         fi
6044                       done
6045                       if test -z "$haveit"; then
6046                         rpathdirs="$rpathdirs $dir"
6047                       fi
6048                                                                   haveit=
6049                       for x in $ltrpathdirs; do
6050                         if test "X$x" = "X$dir"; then
6051                           haveit=yes
6052                           break
6053                         fi
6054                       done
6055                       if test -z "$haveit"; then
6056                         ltrpathdirs="$ltrpathdirs $dir"
6057                       fi
6058                     fi
6059                     ;;
6060                   -l*)
6061                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6062                     ;;
6063                   *.la)
6064                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6065                     ;;
6066                   *)
6067                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6068                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6069                     ;;
6070                 esac
6071               done
6072             fi
6073           else
6074                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6075             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6076           fi
6077         fi
6078       fi
6079     done
6080   done
6081   if test "X$rpathdirs" != "X"; then
6082     if test -n "$acl_hardcode_libdir_separator"; then
6083                         alldirs=
6084       for found_dir in $rpathdirs; do
6085         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6086       done
6087             acl_save_libdir="$libdir"
6088       libdir="$alldirs"
6089       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6090       libdir="$acl_save_libdir"
6091       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6092     else
6093             for found_dir in $rpathdirs; do
6094         acl_save_libdir="$libdir"
6095         libdir="$found_dir"
6096         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6097         libdir="$acl_save_libdir"
6098         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6099       done
6100     fi
6101   fi
6102   if test "X$ltrpathdirs" != "X"; then
6103             for found_dir in $ltrpathdirs; do
6104       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6105     done
6106   fi
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6133 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6134 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6135   $as_echo_n "(cached) " >&6
6136 else
6137   gt_save_LIBS="$LIBS"
6138      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6139      cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 #include <CoreFoundation/CFPreferences.h>
6146 int
6147 main ()
6148 {
6149 CFPreferencesCopyAppValue(NULL, NULL)
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (ac_try="$ac_link"
6156 case "(($ac_try" in
6157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158   *) ac_try_echo=$ac_try;;
6159 esac
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162   (eval "$ac_link") 2>conftest.er1
6163   ac_status=$?
6164   grep -v '^ *+' conftest.er1 >conftest.err
6165   rm -f conftest.er1
6166   cat conftest.err >&5
6167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } && {
6169          test -z "$ac_c_werror_flag" ||
6170          test ! -s conftest.err
6171        } && test -s conftest$ac_exeext && {
6172          test "$cross_compiling" = yes ||
6173          $as_test_x conftest$ac_exeext
6174        }; then
6175   gt_cv_func_CFPreferencesCopyAppValue=yes
6176 else
6177   $as_echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180         gt_cv_func_CFPreferencesCopyAppValue=no
6181 fi
6182
6183 rm -rf conftest.dSYM
6184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6185       conftest$ac_exeext conftest.$ac_ext
6186      LIBS="$gt_save_LIBS"
6187 fi
6188 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6189 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6190   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6191
6192 cat >>confdefs.h <<\_ACEOF
6193 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6194 _ACEOF
6195
6196   fi
6197     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6198 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6199 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6200   $as_echo_n "(cached) " >&6
6201 else
6202   gt_save_LIBS="$LIBS"
6203      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6204      cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210 #include <CoreFoundation/CFLocale.h>
6211 int
6212 main ()
6213 {
6214 CFLocaleCopyCurrent();
6215   ;
6216   return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (ac_try="$ac_link"
6221 case "(($ac_try" in
6222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223   *) ac_try_echo=$ac_try;;
6224 esac
6225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6226 $as_echo "$ac_try_echo") >&5
6227   (eval "$ac_link") 2>conftest.er1
6228   ac_status=$?
6229   grep -v '^ *+' conftest.er1 >conftest.err
6230   rm -f conftest.er1
6231   cat conftest.err >&5
6232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } && {
6234          test -z "$ac_c_werror_flag" ||
6235          test ! -s conftest.err
6236        } && test -s conftest$ac_exeext && {
6237          test "$cross_compiling" = yes ||
6238          $as_test_x conftest$ac_exeext
6239        }; then
6240   gt_cv_func_CFLocaleCopyCurrent=yes
6241 else
6242   $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245         gt_cv_func_CFLocaleCopyCurrent=no
6246 fi
6247
6248 rm -rf conftest.dSYM
6249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6250       conftest$ac_exeext conftest.$ac_ext
6251      LIBS="$gt_save_LIBS"
6252 fi
6253 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6254 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6255   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6256
6257 cat >>confdefs.h <<\_ACEOF
6258 #define HAVE_CFLOCALECOPYCURRENT 1
6259 _ACEOF
6260
6261   fi
6262   INTL_MACOSX_LIBS=
6263   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6264     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6265   fi
6266
6267
6268
6269
6270
6271
6272   LIBINTL=
6273   LTLIBINTL=
6274   POSUB=
6275
6276     case " $gt_needs " in
6277     *" need-formatstring-macros "*) gt_api_version=3 ;;
6278     *" need-ngettext "*) gt_api_version=2 ;;
6279     *) gt_api_version=1 ;;
6280   esac
6281   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6282   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6283
6284     if test "$USE_NLS" = "yes"; then
6285     gt_use_preinstalled_gnugettext=no
6286
6287
6288         if test $gt_api_version -ge 3; then
6289           gt_revision_test_code='
6290 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6291 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6292 #endif
6293 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6294 '
6295         else
6296           gt_revision_test_code=
6297         fi
6298         if test $gt_api_version -ge 2; then
6299           gt_expression_test_code=' + * ngettext ("", "", 0)'
6300         else
6301           gt_expression_test_code=
6302         fi
6303
6304         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6305 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6306 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
6307   $as_echo_n "(cached) " >&6
6308 else
6309   cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 #include <libintl.h>
6316 $gt_revision_test_code
6317 extern int _nl_msg_cat_cntr;
6318 extern int *_nl_domain_bindings;
6319 int
6320 main ()
6321 {
6322 bindtextdomain ("", "");
6323 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6324   ;
6325   return 0;
6326 }
6327 _ACEOF
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (ac_try="$ac_link"
6330 case "(($ac_try" in
6331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332   *) ac_try_echo=$ac_try;;
6333 esac
6334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335 $as_echo "$ac_try_echo") >&5
6336   (eval "$ac_link") 2>conftest.er1
6337   ac_status=$?
6338   grep -v '^ *+' conftest.er1 >conftest.err
6339   rm -f conftest.er1
6340   cat conftest.err >&5
6341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } && {
6343          test -z "$ac_c_werror_flag" ||
6344          test ! -s conftest.err
6345        } && test -s conftest$ac_exeext && {
6346          test "$cross_compiling" = yes ||
6347          $as_test_x conftest$ac_exeext
6348        }; then
6349   eval "$gt_func_gnugettext_libc=yes"
6350 else
6351   $as_echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354         eval "$gt_func_gnugettext_libc=no"
6355 fi
6356
6357 rm -rf conftest.dSYM
6358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6359       conftest$ac_exeext conftest.$ac_ext
6360 fi
6361 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
6362                  $as_echo "$as_val"'`
6363                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6364 $as_echo "$ac_res" >&6; }
6365
6366         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6367
6368
6369
6370
6371
6372           am_save_CPPFLAGS="$CPPFLAGS"
6373
6374   for element in $INCICONV; do
6375     haveit=
6376     for x in $CPPFLAGS; do
6377
6378   acl_save_prefix="$prefix"
6379   prefix="$acl_final_prefix"
6380   acl_save_exec_prefix="$exec_prefix"
6381   exec_prefix="$acl_final_exec_prefix"
6382   eval x=\"$x\"
6383   exec_prefix="$acl_save_exec_prefix"
6384   prefix="$acl_save_prefix"
6385
6386       if test "X$x" = "X$element"; then
6387         haveit=yes
6388         break
6389       fi
6390     done
6391     if test -z "$haveit"; then
6392       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6393     fi
6394   done
6395
6396
6397   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
6398 $as_echo_n "checking for iconv... " >&6; }
6399 if test "${am_cv_func_iconv+set}" = set; then
6400   $as_echo_n "(cached) " >&6
6401 else
6402
6403     am_cv_func_iconv="no, consider installing GNU libiconv"
6404     am_cv_lib_iconv=no
6405     cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h.  */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h.  */
6411 #include <stdlib.h>
6412 #include <iconv.h>
6413 int
6414 main ()
6415 {
6416 iconv_t cd = iconv_open("","");
6417        iconv(cd,NULL,NULL,NULL,NULL);
6418        iconv_close(cd);
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (ac_try="$ac_link"
6425 case "(($ac_try" in
6426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427   *) ac_try_echo=$ac_try;;
6428 esac
6429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6430 $as_echo "$ac_try_echo") >&5
6431   (eval "$ac_link") 2>conftest.er1
6432   ac_status=$?
6433   grep -v '^ *+' conftest.er1 >conftest.err
6434   rm -f conftest.er1
6435   cat conftest.err >&5
6436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); } && {
6438          test -z "$ac_c_werror_flag" ||
6439          test ! -s conftest.err
6440        } && test -s conftest$ac_exeext && {
6441          test "$cross_compiling" = yes ||
6442          $as_test_x conftest$ac_exeext
6443        }; then
6444   am_cv_func_iconv=yes
6445 else
6446   $as_echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449
6450 fi
6451
6452 rm -rf conftest.dSYM
6453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6454       conftest$ac_exeext conftest.$ac_ext
6455     if test "$am_cv_func_iconv" != yes; then
6456       am_save_LIBS="$LIBS"
6457       LIBS="$LIBS $LIBICONV"
6458       cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464 #include <stdlib.h>
6465 #include <iconv.h>
6466 int
6467 main ()
6468 {
6469 iconv_t cd = iconv_open("","");
6470          iconv(cd,NULL,NULL,NULL,NULL);
6471          iconv_close(cd);
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (ac_try="$ac_link"
6478 case "(($ac_try" in
6479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480   *) ac_try_echo=$ac_try;;
6481 esac
6482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483 $as_echo "$ac_try_echo") >&5
6484   (eval "$ac_link") 2>conftest.er1
6485   ac_status=$?
6486   grep -v '^ *+' conftest.er1 >conftest.err
6487   rm -f conftest.er1
6488   cat conftest.err >&5
6489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } && {
6491          test -z "$ac_c_werror_flag" ||
6492          test ! -s conftest.err
6493        } && test -s conftest$ac_exeext && {
6494          test "$cross_compiling" = yes ||
6495          $as_test_x conftest$ac_exeext
6496        }; then
6497   am_cv_lib_iconv=yes
6498         am_cv_func_iconv=yes
6499 else
6500   $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6502
6503
6504 fi
6505
6506 rm -rf conftest.dSYM
6507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6508       conftest$ac_exeext conftest.$ac_ext
6509       LIBS="$am_save_LIBS"
6510     fi
6511
6512 fi
6513 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6514 $as_echo "$am_cv_func_iconv" >&6; }
6515   if test "$am_cv_func_iconv" = yes; then
6516     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
6517 $as_echo_n "checking for working iconv... " >&6; }
6518 if test "${am_cv_func_iconv_works+set}" = set; then
6519   $as_echo_n "(cached) " >&6
6520 else
6521
6522             am_save_LIBS="$LIBS"
6523       if test $am_cv_lib_iconv = yes; then
6524         LIBS="$LIBS $LIBICONV"
6525       fi
6526       if test "$cross_compiling" = yes; then
6527   case "$host_os" in
6528            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6529            *)            am_cv_func_iconv_works="guessing yes" ;;
6530          esac
6531 else
6532   cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h.  */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h.  */
6538
6539 #include <iconv.h>
6540 #include <string.h>
6541 int main ()
6542 {
6543   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6544      returns.  */
6545   {
6546     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6547     if (cd_utf8_to_88591 != (iconv_t)(-1))
6548       {
6549         static const char input[] = "\342\202\254"; /* EURO SIGN */
6550         char buf[10];
6551         const char *inptr = input;
6552         size_t inbytesleft = strlen (input);
6553         char *outptr = buf;
6554         size_t outbytesleft = sizeof (buf);
6555         size_t res = iconv (cd_utf8_to_88591,
6556                             (char **) &inptr, &inbytesleft,
6557                             &outptr, &outbytesleft);
6558         if (res == 0)
6559           return 1;
6560       }
6561   }
6562 #if 0 /* This bug could be worked around by the caller.  */
6563   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6564   {
6565     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6566     if (cd_88591_to_utf8 != (iconv_t)(-1))
6567       {
6568         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6569         char buf[50];
6570         const char *inptr = input;
6571         size_t inbytesleft = strlen (input);
6572         char *outptr = buf;
6573         size_t outbytesleft = sizeof (buf);
6574         size_t res = iconv (cd_88591_to_utf8,
6575                             (char **) &inptr, &inbytesleft,
6576                             &outptr, &outbytesleft);
6577         if ((int)res > 0)
6578           return 1;
6579       }
6580   }
6581 #endif
6582   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6583      provided.  */
6584   if (/* Try standardized names.  */
6585       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6586       /* Try IRIX, OSF/1 names.  */
6587       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6588       /* Try AIX names.  */
6589       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6590       /* Try HP-UX names.  */
6591       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6592     return 1;
6593   return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest$ac_exeext
6597 if { (ac_try="$ac_link"
6598 case "(($ac_try" in
6599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600   *) ac_try_echo=$ac_try;;
6601 esac
6602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6603 $as_echo "$ac_try_echo") >&5
6604   (eval "$ac_link") 2>&5
6605   ac_status=$?
6606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6608   { (case "(($ac_try" in
6609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610   *) ac_try_echo=$ac_try;;
6611 esac
6612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6613 $as_echo "$ac_try_echo") >&5
6614   (eval "$ac_try") 2>&5
6615   ac_status=$?
6616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; }; then
6618   am_cv_func_iconv_works=yes
6619 else
6620   $as_echo "$as_me: program exited with status $ac_status" >&5
6621 $as_echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6623
6624 ( exit $ac_status )
6625 am_cv_func_iconv_works=no
6626 fi
6627 rm -rf conftest.dSYM
6628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6629 fi
6630
6631
6632       LIBS="$am_save_LIBS"
6633
6634 fi
6635 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
6636 $as_echo "$am_cv_func_iconv_works" >&6; }
6637     case "$am_cv_func_iconv_works" in
6638       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6639       *)   am_func_iconv=yes ;;
6640     esac
6641   else
6642     am_func_iconv=no am_cv_lib_iconv=no
6643   fi
6644   if test "$am_func_iconv" = yes; then
6645
6646 cat >>confdefs.h <<\_ACEOF
6647 #define HAVE_ICONV 1
6648 _ACEOF
6649
6650   fi
6651   if test "$am_cv_lib_iconv" = yes; then
6652     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6653 $as_echo_n "checking how to link with libiconv... " >&6; }
6654     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
6655 $as_echo "$LIBICONV" >&6; }
6656   else
6657             CPPFLAGS="$am_save_CPPFLAGS"
6658     LIBICONV=
6659     LTLIBICONV=
6660   fi
6661
6662
6663
6664
6665
6666
6667
6668
6669     use_additional=yes
6670
6671   acl_save_prefix="$prefix"
6672   prefix="$acl_final_prefix"
6673   acl_save_exec_prefix="$exec_prefix"
6674   exec_prefix="$acl_final_exec_prefix"
6675
6676     eval additional_includedir=\"$includedir\"
6677     eval additional_libdir=\"$libdir\"
6678
6679   exec_prefix="$acl_save_exec_prefix"
6680   prefix="$acl_save_prefix"
6681
6682
6683 # Check whether --with-libintl-prefix was given.
6684 if test "${with_libintl_prefix+set}" = set; then
6685   withval=$with_libintl_prefix;
6686     if test "X$withval" = "Xno"; then
6687       use_additional=no
6688     else
6689       if test "X$withval" = "X"; then
6690
6691   acl_save_prefix="$prefix"
6692   prefix="$acl_final_prefix"
6693   acl_save_exec_prefix="$exec_prefix"
6694   exec_prefix="$acl_final_exec_prefix"
6695
6696           eval additional_includedir=\"$includedir\"
6697           eval additional_libdir=\"$libdir\"
6698
6699   exec_prefix="$acl_save_exec_prefix"
6700   prefix="$acl_save_prefix"
6701
6702       else
6703         additional_includedir="$withval/include"
6704         additional_libdir="$withval/$acl_libdirstem"
6705       fi
6706     fi
6707
6708 fi
6709
6710       LIBINTL=
6711   LTLIBINTL=
6712   INCINTL=
6713   LIBINTL_PREFIX=
6714   rpathdirs=
6715   ltrpathdirs=
6716   names_already_handled=
6717   names_next_round='intl '
6718   while test -n "$names_next_round"; do
6719     names_this_round="$names_next_round"
6720     names_next_round=
6721     for name in $names_this_round; do
6722       already_handled=
6723       for n in $names_already_handled; do
6724         if test "$n" = "$name"; then
6725           already_handled=yes
6726           break
6727         fi
6728       done
6729       if test -z "$already_handled"; then
6730         names_already_handled="$names_already_handled $name"
6731                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6732         eval value=\"\$HAVE_LIB$uppername\"
6733         if test -n "$value"; then
6734           if test "$value" = yes; then
6735             eval value=\"\$LIB$uppername\"
6736             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6737             eval value=\"\$LTLIB$uppername\"
6738             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6739           else
6740                                     :
6741           fi
6742         else
6743                               found_dir=
6744           found_la=
6745           found_so=
6746           found_a=
6747           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6748           if test -n "$acl_shlibext"; then
6749             shrext=".$acl_shlibext"             # typically: shrext=.so
6750           else
6751             shrext=
6752           fi
6753           if test $use_additional = yes; then
6754             dir="$additional_libdir"
6755                                     if test -n "$acl_shlibext"; then
6756               if test -f "$dir/$libname$shrext"; then
6757                 found_dir="$dir"
6758                 found_so="$dir/$libname$shrext"
6759               else
6760                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6761                   ver=`(cd "$dir" && \
6762                         for f in "$libname$shrext".*; do echo "$f"; done \
6763                         | sed -e "s,^$libname$shrext\\\\.,," \
6764                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6765                         | sed 1q ) 2>/dev/null`
6766                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6767                     found_dir="$dir"
6768                     found_so="$dir/$libname$shrext.$ver"
6769                   fi
6770                 else
6771                   eval library_names=\"$acl_library_names_spec\"
6772                   for f in $library_names; do
6773                     if test -f "$dir/$f"; then
6774                       found_dir="$dir"
6775                       found_so="$dir/$f"
6776                       break
6777                     fi
6778                   done
6779                 fi
6780               fi
6781             fi
6782                         if test "X$found_dir" = "X"; then
6783               if test -f "$dir/$libname.$acl_libext"; then
6784                 found_dir="$dir"
6785                 found_a="$dir/$libname.$acl_libext"
6786               fi
6787             fi
6788             if test "X$found_dir" != "X"; then
6789               if test -f "$dir/$libname.la"; then
6790                 found_la="$dir/$libname.la"
6791               fi
6792             fi
6793           fi
6794           if test "X$found_dir" = "X"; then
6795             for x in $LDFLAGS $LTLIBINTL; do
6796
6797   acl_save_prefix="$prefix"
6798   prefix="$acl_final_prefix"
6799   acl_save_exec_prefix="$exec_prefix"
6800   exec_prefix="$acl_final_exec_prefix"
6801   eval x=\"$x\"
6802   exec_prefix="$acl_save_exec_prefix"
6803   prefix="$acl_save_prefix"
6804
6805               case "$x" in
6806                 -L*)
6807                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6808                                     if test -n "$acl_shlibext"; then
6809                     if test -f "$dir/$libname$shrext"; then
6810                       found_dir="$dir"
6811                       found_so="$dir/$libname$shrext"
6812                     else
6813                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6814                         ver=`(cd "$dir" && \
6815                               for f in "$libname$shrext".*; do echo "$f"; done \
6816                               | sed -e "s,^$libname$shrext\\\\.,," \
6817                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6818                               | sed 1q ) 2>/dev/null`
6819                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6820                           found_dir="$dir"
6821                           found_so="$dir/$libname$shrext.$ver"
6822                         fi
6823                       else
6824                         eval library_names=\"$acl_library_names_spec\"
6825                         for f in $library_names; do
6826                           if test -f "$dir/$f"; then
6827                             found_dir="$dir"
6828                             found_so="$dir/$f"
6829                             break
6830                           fi
6831                         done
6832                       fi
6833                     fi
6834                   fi
6835                                     if test "X$found_dir" = "X"; then
6836                     if test -f "$dir/$libname.$acl_libext"; then
6837                       found_dir="$dir"
6838                       found_a="$dir/$libname.$acl_libext"
6839                     fi
6840                   fi
6841                   if test "X$found_dir" != "X"; then
6842                     if test -f "$dir/$libname.la"; then
6843                       found_la="$dir/$libname.la"
6844                     fi
6845                   fi
6846                   ;;
6847               esac
6848               if test "X$found_dir" != "X"; then
6849                 break
6850               fi
6851             done
6852           fi
6853           if test "X$found_dir" != "X"; then
6854                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6855             if test "X$found_so" != "X"; then
6856                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6857                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6858               else
6859                                                                                 haveit=
6860                 for x in $ltrpathdirs; do
6861                   if test "X$x" = "X$found_dir"; then
6862                     haveit=yes
6863                     break
6864                   fi
6865                 done
6866                 if test -z "$haveit"; then
6867                   ltrpathdirs="$ltrpathdirs $found_dir"
6868                 fi
6869                                 if test "$acl_hardcode_direct" = yes; then
6870                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6871                 else
6872                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6873                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6874                                                             haveit=
6875                     for x in $rpathdirs; do
6876                       if test "X$x" = "X$found_dir"; then
6877                         haveit=yes
6878                         break
6879                       fi
6880                     done
6881                     if test -z "$haveit"; then
6882                       rpathdirs="$rpathdirs $found_dir"
6883                     fi
6884                   else
6885                                                                                 haveit=
6886                     for x in $LDFLAGS $LIBINTL; do
6887
6888   acl_save_prefix="$prefix"
6889   prefix="$acl_final_prefix"
6890   acl_save_exec_prefix="$exec_prefix"
6891   exec_prefix="$acl_final_exec_prefix"
6892   eval x=\"$x\"
6893   exec_prefix="$acl_save_exec_prefix"
6894   prefix="$acl_save_prefix"
6895
6896                       if test "X$x" = "X-L$found_dir"; then
6897                         haveit=yes
6898                         break
6899                       fi
6900                     done
6901                     if test -z "$haveit"; then
6902                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6903                     fi
6904                     if test "$acl_hardcode_minus_L" != no; then
6905                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6906                     else
6907                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6908                     fi
6909                   fi
6910                 fi
6911               fi
6912             else
6913               if test "X$found_a" != "X"; then
6914                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6915               else
6916                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6917               fi
6918             fi
6919                         additional_includedir=
6920             case "$found_dir" in
6921               */$acl_libdirstem | */$acl_libdirstem/)
6922                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6923                 LIBINTL_PREFIX="$basedir"
6924                 additional_includedir="$basedir/include"
6925                 ;;
6926             esac
6927             if test "X$additional_includedir" != "X"; then
6928                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6929                 haveit=
6930                 if test "X$additional_includedir" = "X/usr/local/include"; then
6931                   if test -n "$GCC"; then
6932                     case $host_os in
6933                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6934                     esac
6935                   fi
6936                 fi
6937                 if test -z "$haveit"; then
6938                   for x in $CPPFLAGS $INCINTL; do
6939
6940   acl_save_prefix="$prefix"
6941   prefix="$acl_final_prefix"
6942   acl_save_exec_prefix="$exec_prefix"
6943   exec_prefix="$acl_final_exec_prefix"
6944   eval x=\"$x\"
6945   exec_prefix="$acl_save_exec_prefix"
6946   prefix="$acl_save_prefix"
6947
6948                     if test "X$x" = "X-I$additional_includedir"; then
6949                       haveit=yes
6950                       break
6951                     fi
6952                   done
6953                   if test -z "$haveit"; then
6954                     if test -d "$additional_includedir"; then
6955                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6956                     fi
6957                   fi
6958                 fi
6959               fi
6960             fi
6961                         if test -n "$found_la"; then
6962                                                         save_libdir="$libdir"
6963               case "$found_la" in
6964                 */* | *\\*) . "$found_la" ;;
6965                 *) . "./$found_la" ;;
6966               esac
6967               libdir="$save_libdir"
6968                             for dep in $dependency_libs; do
6969                 case "$dep" in
6970                   -L*)
6971                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6972                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6973                       haveit=
6974                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6975                         if test -n "$GCC"; then
6976                           case $host_os in
6977                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6978                           esac
6979                         fi
6980                       fi
6981                       if test -z "$haveit"; then
6982                         haveit=
6983                         for x in $LDFLAGS $LIBINTL; do
6984
6985   acl_save_prefix="$prefix"
6986   prefix="$acl_final_prefix"
6987   acl_save_exec_prefix="$exec_prefix"
6988   exec_prefix="$acl_final_exec_prefix"
6989   eval x=\"$x\"
6990   exec_prefix="$acl_save_exec_prefix"
6991   prefix="$acl_save_prefix"
6992
6993                           if test "X$x" = "X-L$additional_libdir"; then
6994                             haveit=yes
6995                             break
6996                           fi
6997                         done
6998                         if test -z "$haveit"; then
6999                           if test -d "$additional_libdir"; then
7000                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7001                           fi
7002                         fi
7003                         haveit=
7004                         for x in $LDFLAGS $LTLIBINTL; do
7005
7006   acl_save_prefix="$prefix"
7007   prefix="$acl_final_prefix"
7008   acl_save_exec_prefix="$exec_prefix"
7009   exec_prefix="$acl_final_exec_prefix"
7010   eval x=\"$x\"
7011   exec_prefix="$acl_save_exec_prefix"
7012   prefix="$acl_save_prefix"
7013
7014                           if test "X$x" = "X-L$additional_libdir"; then
7015                             haveit=yes
7016                             break
7017                           fi
7018                         done
7019                         if test -z "$haveit"; then
7020                           if test -d "$additional_libdir"; then
7021                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7022                           fi
7023                         fi
7024                       fi
7025                     fi
7026                     ;;
7027                   -R*)
7028                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7029                     if test "$enable_rpath" != no; then
7030                                                                   haveit=
7031                       for x in $rpathdirs; do
7032                         if test "X$x" = "X$dir"; then
7033                           haveit=yes
7034                           break
7035                         fi
7036                       done
7037                       if test -z "$haveit"; then
7038                         rpathdirs="$rpathdirs $dir"
7039                       fi
7040                                                                   haveit=
7041                       for x in $ltrpathdirs; do
7042                         if test "X$x" = "X$dir"; then
7043                           haveit=yes
7044                           break
7045                         fi
7046                       done
7047                       if test -z "$haveit"; then
7048                         ltrpathdirs="$ltrpathdirs $dir"
7049                       fi
7050                     fi
7051                     ;;
7052                   -l*)
7053                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7054                     ;;
7055                   *.la)
7056                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7057                     ;;
7058                   *)
7059                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7060                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7061                     ;;
7062                 esac
7063               done
7064             fi
7065           else
7066                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7067             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7068           fi
7069         fi
7070       fi
7071     done
7072   done
7073   if test "X$rpathdirs" != "X"; then
7074     if test -n "$acl_hardcode_libdir_separator"; then
7075                         alldirs=
7076       for found_dir in $rpathdirs; do
7077         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7078       done
7079             acl_save_libdir="$libdir"
7080       libdir="$alldirs"
7081       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7082       libdir="$acl_save_libdir"
7083       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7084     else
7085             for found_dir in $rpathdirs; do
7086         acl_save_libdir="$libdir"
7087         libdir="$found_dir"
7088         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7089         libdir="$acl_save_libdir"
7090         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7091       done
7092     fi
7093   fi
7094   if test "X$ltrpathdirs" != "X"; then
7095             for found_dir in $ltrpathdirs; do
7096       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7097     done
7098   fi
7099
7100           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7101 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7102 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
7103   $as_echo_n "(cached) " >&6
7104 else
7105   gt_save_CPPFLAGS="$CPPFLAGS"
7106             CPPFLAGS="$CPPFLAGS $INCINTL"
7107             gt_save_LIBS="$LIBS"
7108             LIBS="$LIBS $LIBINTL"
7109                         cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115 #include <libintl.h>
7116 $gt_revision_test_code
7117 extern int _nl_msg_cat_cntr;
7118 extern
7119 #ifdef __cplusplus
7120 "C"
7121 #endif
7122 const char *_nl_expand_alias (const char *);
7123 int
7124 main ()
7125 {
7126 bindtextdomain ("", "");
7127 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7128   ;
7129   return 0;
7130 }
7131 _ACEOF
7132 rm -f conftest.$ac_objext conftest$ac_exeext
7133 if { (ac_try="$ac_link"
7134 case "(($ac_try" in
7135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136   *) ac_try_echo=$ac_try;;
7137 esac
7138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7139 $as_echo "$ac_try_echo") >&5
7140   (eval "$ac_link") 2>conftest.er1
7141   ac_status=$?
7142   grep -v '^ *+' conftest.er1 >conftest.err
7143   rm -f conftest.er1
7144   cat conftest.err >&5
7145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); } && {
7147          test -z "$ac_c_werror_flag" ||
7148          test ! -s conftest.err
7149        } && test -s conftest$ac_exeext && {
7150          test "$cross_compiling" = yes ||
7151          $as_test_x conftest$ac_exeext
7152        }; then
7153   eval "$gt_func_gnugettext_libintl=yes"
7154 else
7155   $as_echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158         eval "$gt_func_gnugettext_libintl=no"
7159 fi
7160
7161 rm -rf conftest.dSYM
7162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7163       conftest$ac_exeext conftest.$ac_ext
7164                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7165               LIBS="$LIBS $LIBICONV"
7166               cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h.  */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h.  */
7172 #include <libintl.h>
7173 $gt_revision_test_code
7174 extern int _nl_msg_cat_cntr;
7175 extern
7176 #ifdef __cplusplus
7177 "C"
7178 #endif
7179 const char *_nl_expand_alias (const char *);
7180 int
7181 main ()
7182 {
7183 bindtextdomain ("", "");
7184 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7185   ;
7186   return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (ac_try="$ac_link"
7191 case "(($ac_try" in
7192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193   *) ac_try_echo=$ac_try;;
7194 esac
7195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196 $as_echo "$ac_try_echo") >&5
7197   (eval "$ac_link") 2>conftest.er1
7198   ac_status=$?
7199   grep -v '^ *+' conftest.er1 >conftest.err
7200   rm -f conftest.er1
7201   cat conftest.err >&5
7202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); } && {
7204          test -z "$ac_c_werror_flag" ||
7205          test ! -s conftest.err
7206        } && test -s conftest$ac_exeext && {
7207          test "$cross_compiling" = yes ||
7208          $as_test_x conftest$ac_exeext
7209        }; then
7210   LIBINTL="$LIBINTL $LIBICONV"
7211                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7212                 eval "$gt_func_gnugettext_libintl=yes"
7213
7214 else
7215   $as_echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218
7219 fi
7220
7221 rm -rf conftest.dSYM
7222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7223       conftest$ac_exeext conftest.$ac_ext
7224             fi
7225             CPPFLAGS="$gt_save_CPPFLAGS"
7226             LIBS="$gt_save_LIBS"
7227 fi
7228 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
7229                  $as_echo "$as_val"'`
7230                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7231 $as_echo "$ac_res" >&6; }
7232         fi
7233
7234                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7235            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7236                 && test "$PACKAGE" != gettext-runtime \
7237                 && test "$PACKAGE" != gettext-tools; }; then
7238           gt_use_preinstalled_gnugettext=yes
7239         else
7240                     LIBINTL=
7241           LTLIBINTL=
7242           INCINTL=
7243         fi
7244
7245
7246
7247     if test -n "$INTL_MACOSX_LIBS"; then
7248       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7249          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7250                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7251         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7252       fi
7253     fi
7254
7255     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7256        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7257
7258 cat >>confdefs.h <<\_ACEOF
7259 #define ENABLE_NLS 1
7260 _ACEOF
7261
7262     else
7263       USE_NLS=no
7264     fi
7265   fi
7266
7267   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
7268 $as_echo_n "checking whether to use NLS... " >&6; }
7269   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7270 $as_echo "$USE_NLS" >&6; }
7271   if test "$USE_NLS" = "yes"; then
7272     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7273 $as_echo_n "checking where the gettext function comes from... " >&6; }
7274     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7275       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7276         gt_source="external libintl"
7277       else
7278         gt_source="libc"
7279       fi
7280     else
7281       gt_source="included intl directory"
7282     fi
7283     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
7284 $as_echo "$gt_source" >&6; }
7285   fi
7286
7287   if test "$USE_NLS" = "yes"; then
7288
7289     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7290       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7291         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
7292 $as_echo_n "checking how to link with libintl... " >&6; }
7293         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
7294 $as_echo "$LIBINTL" >&6; }
7295
7296   for element in $INCINTL; do
7297     haveit=
7298     for x in $CPPFLAGS; do
7299
7300   acl_save_prefix="$prefix"
7301   prefix="$acl_final_prefix"
7302   acl_save_exec_prefix="$exec_prefix"
7303   exec_prefix="$acl_final_exec_prefix"
7304   eval x=\"$x\"
7305   exec_prefix="$acl_save_exec_prefix"
7306   prefix="$acl_save_prefix"
7307
7308       if test "X$x" = "X$element"; then
7309         haveit=yes
7310         break
7311       fi
7312     done
7313     if test -z "$haveit"; then
7314       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7315     fi
7316   done
7317
7318       fi
7319
7320
7321 cat >>confdefs.h <<\_ACEOF
7322 #define HAVE_GETTEXT 1
7323 _ACEOF
7324
7325
7326 cat >>confdefs.h <<\_ACEOF
7327 #define HAVE_DCGETTEXT 1
7328 _ACEOF
7329
7330     fi
7331
7332         POSUB=po
7333   fi
7334
7335
7336
7337     INTLLIBS="$LIBINTL"
7338
7339
7340
7341
7342
7343
7344
7345
7346 if test -n "$ac_tool_prefix"; then
7347   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if test "${ac_cv_prog_RANLIB+set}" = set; then
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$RANLIB"; then
7355   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362   for ac_exec_ext in '' $ac_executable_extensions; do
7363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7365     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369 done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 RANLIB=$ac_cv_prog_RANLIB
7375 if test -n "$RANLIB"; then
7376   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7377 $as_echo "$RANLIB" >&6; }
7378 else
7379   { $as_echo "$as_me:$LINENO: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_RANLIB"; then
7386   ac_ct_RANLIB=$RANLIB
7387   # Extract the first word of "ranlib", so it can be a program name with args.
7388 set dummy ranlib; ac_word=$2
7389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$ac_ct_RANLIB"; then
7395   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402   for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_prog_ac_ct_RANLIB="ranlib"
7405     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415 if test -n "$ac_ct_RANLIB"; then
7416   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7417 $as_echo "$ac_ct_RANLIB" >&6; }
7418 else
7419   { $as_echo "$as_me:$LINENO: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423   if test "x$ac_ct_RANLIB" = x; then
7424     RANLIB=":"
7425   else
7426     case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432     RANLIB=$ac_ct_RANLIB
7433   fi
7434 else
7435   RANLIB="$ac_cv_prog_RANLIB"
7436 fi
7437
7438
7439 for ac_prog in flex lex
7440 do
7441   # Extract the first word of "$ac_prog", so it can be a program name with args.
7442 set dummy $ac_prog; ac_word=$2
7443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_LEX+set}" = set; then
7446   $as_echo_n "(cached) " >&6
7447 else
7448   if test -n "$LEX"; then
7449   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456   for ac_exec_ext in '' $ac_executable_extensions; do
7457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458     ac_cv_prog_LEX="$ac_prog"
7459     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 LEX=$ac_cv_prog_LEX
7469 if test -n "$LEX"; then
7470   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
7471 $as_echo "$LEX" >&6; }
7472 else
7473   { $as_echo "$as_me:$LINENO: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477
7478   test -n "$LEX" && break
7479 done
7480 test -n "$LEX" || LEX=":"
7481
7482 if test "x$LEX" != "x:"; then
7483   cat >conftest.l <<_ACEOF
7484 %%
7485 a { ECHO; }
7486 b { REJECT; }
7487 c { yymore (); }
7488 d { yyless (1); }
7489 e { yyless (input () != 0); }
7490 f { unput (yytext[0]); }
7491 . { BEGIN INITIAL; }
7492 %%
7493 #ifdef YYTEXT_POINTER
7494 extern char *yytext;
7495 #endif
7496 int
7497 main (void)
7498 {
7499   return ! yylex () + ! yywrap ();
7500 }
7501 _ACEOF
7502 { (ac_try="$LEX conftest.l"
7503 case "(($ac_try" in
7504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505   *) ac_try_echo=$ac_try;;
7506 esac
7507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7508 $as_echo "$ac_try_echo") >&5
7509   (eval "$LEX conftest.l") 2>&5
7510   ac_status=$?
7511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }
7513 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
7514 $as_echo_n "checking lex output file root... " >&6; }
7515 if test "${ac_cv_prog_lex_root+set}" = set; then
7516   $as_echo_n "(cached) " >&6
7517 else
7518
7519 if test -f lex.yy.c; then
7520   ac_cv_prog_lex_root=lex.yy
7521 elif test -f lexyy.c; then
7522   ac_cv_prog_lex_root=lexyy
7523 else
7524   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7525 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7526    { (exit 1); exit 1; }; }
7527 fi
7528 fi
7529 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7530 $as_echo "$ac_cv_prog_lex_root" >&6; }
7531 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7532
7533 if test -z "${LEXLIB+set}"; then
7534   { $as_echo "$as_me:$LINENO: checking lex library" >&5
7535 $as_echo_n "checking lex library... " >&6; }
7536 if test "${ac_cv_lib_lex+set}" = set; then
7537   $as_echo_n "(cached) " >&6
7538 else
7539
7540     ac_save_LIBS=$LIBS
7541     ac_cv_lib_lex='none needed'
7542     for ac_lib in '' -lfl -ll; do
7543       LIBS="$ac_lib $ac_save_LIBS"
7544       cat >conftest.$ac_ext <<_ACEOF
7545 `cat $LEX_OUTPUT_ROOT.c`
7546 _ACEOF
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (ac_try="$ac_link"
7549 case "(($ac_try" in
7550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551   *) ac_try_echo=$ac_try;;
7552 esac
7553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554 $as_echo "$ac_try_echo") >&5
7555   (eval "$ac_link") 2>conftest.er1
7556   ac_status=$?
7557   grep -v '^ *+' conftest.er1 >conftest.err
7558   rm -f conftest.er1
7559   cat conftest.err >&5
7560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); } && {
7562          test -z "$ac_c_werror_flag" ||
7563          test ! -s conftest.err
7564        } && test -s conftest$ac_exeext && {
7565          test "$cross_compiling" = yes ||
7566          $as_test_x conftest$ac_exeext
7567        }; then
7568   ac_cv_lib_lex=$ac_lib
7569 else
7570   $as_echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7572
7573
7574 fi
7575
7576 rm -rf conftest.dSYM
7577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7578       conftest$ac_exeext conftest.$ac_ext
7579       test "$ac_cv_lib_lex" != 'none needed' && break
7580     done
7581     LIBS=$ac_save_LIBS
7582
7583 fi
7584 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
7585 $as_echo "$ac_cv_lib_lex" >&6; }
7586   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7587 fi
7588
7589
7590 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7591 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7592 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7593   $as_echo_n "(cached) " >&6
7594 else
7595   # POSIX says lex can declare yytext either as a pointer or an array; the
7596 # default is implementation-dependent.  Figure out which it is, since
7597 # not all implementations provide the %pointer and %array declarations.
7598 ac_cv_prog_lex_yytext_pointer=no
7599 ac_save_LIBS=$LIBS
7600 LIBS="$LEXLIB $ac_save_LIBS"
7601 cat >conftest.$ac_ext <<_ACEOF
7602 #define YYTEXT_POINTER 1
7603 `cat $LEX_OUTPUT_ROOT.c`
7604 _ACEOF
7605 rm -f conftest.$ac_objext conftest$ac_exeext
7606 if { (ac_try="$ac_link"
7607 case "(($ac_try" in
7608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609   *) ac_try_echo=$ac_try;;
7610 esac
7611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7612 $as_echo "$ac_try_echo") >&5
7613   (eval "$ac_link") 2>conftest.er1
7614   ac_status=$?
7615   grep -v '^ *+' conftest.er1 >conftest.err
7616   rm -f conftest.er1
7617   cat conftest.err >&5
7618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } && {
7620          test -z "$ac_c_werror_flag" ||
7621          test ! -s conftest.err
7622        } && test -s conftest$ac_exeext && {
7623          test "$cross_compiling" = yes ||
7624          $as_test_x conftest$ac_exeext
7625        }; then
7626   ac_cv_prog_lex_yytext_pointer=yes
7627 else
7628   $as_echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631
7632 fi
7633
7634 rm -rf conftest.dSYM
7635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7636       conftest$ac_exeext conftest.$ac_ext
7637 LIBS=$ac_save_LIBS
7638
7639 fi
7640 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7641 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7642 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7643
7644 cat >>confdefs.h <<\_ACEOF
7645 #define YYTEXT_POINTER 1
7646 _ACEOF
7647
7648 fi
7649 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7650
7651 fi
7652
7653 if test -n "$auto_cflags"; then
7654   if test -n "$GCC"; then
7655     CFLAGS="$CFLAGS -O2 -Wall"
7656   else
7657     case "$host_os" in
7658       *hpux*)  CFLAGS="$CFLAGS +O3"                      ;;
7659       *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
7660       *)       CFLAGS="$CFLAGS -O" ;;
7661     esac
7662   fi
7663 fi
7664
7665 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7666 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7667 if test "${ac_cv_c_const+set}" = set; then
7668   $as_echo_n "(cached) " >&6
7669 else
7670   cat >conftest.$ac_ext <<_ACEOF
7671 /* confdefs.h.  */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h.  */
7676
7677 int
7678 main ()
7679 {
7680 /* FIXME: Include the comments suggested by Paul. */
7681 #ifndef __cplusplus
7682   /* Ultrix mips cc rejects this.  */
7683   typedef int charset[2];
7684   const charset cs;
7685   /* SunOS 4.1.1 cc rejects this.  */
7686   char const *const *pcpcc;
7687   char **ppc;
7688   /* NEC SVR4.0.2 mips cc rejects this.  */
7689   struct point {int x, y;};
7690   static struct point const zero = {0,0};
7691   /* AIX XL C 1.02.0.0 rejects this.
7692      It does not let you subtract one const X* pointer from another in
7693      an arm of an if-expression whose if-part is not a constant
7694      expression */
7695   const char *g = "string";
7696   pcpcc = &g + (g ? g-g : 0);
7697   /* HPUX 7.0 cc rejects these. */
7698   ++pcpcc;
7699   ppc = (char**) pcpcc;
7700   pcpcc = (char const *const *) ppc;
7701   { /* SCO 3.2v4 cc rejects this.  */
7702     char *t;
7703     char const *s = 0 ? (char *) 0 : (char const *) 0;
7704
7705     *t++ = 0;
7706     if (s) return 0;
7707   }
7708   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7709     int x[] = {25, 17};
7710     const int *foo = &x[0];
7711     ++foo;
7712   }
7713   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7714     typedef const int *iptr;
7715     iptr p = 0;
7716     ++p;
7717   }
7718   { /* AIX XL C 1.02.0.0 rejects this saying
7719        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7720     struct s { int j; const int *ap[3]; };
7721     struct s *b; b->j = 5;
7722   }
7723   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7724     const int foo = 10;
7725     if (!foo) return 0;
7726   }
7727   return !cs[0] && !zero.x;
7728 #endif
7729
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext
7735 if { (ac_try="$ac_compile"
7736 case "(($ac_try" in
7737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738   *) ac_try_echo=$ac_try;;
7739 esac
7740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7741 $as_echo "$ac_try_echo") >&5
7742   (eval "$ac_compile") 2>conftest.er1
7743   ac_status=$?
7744   grep -v '^ *+' conftest.er1 >conftest.err
7745   rm -f conftest.er1
7746   cat conftest.err >&5
7747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); } && {
7749          test -z "$ac_c_werror_flag" ||
7750          test ! -s conftest.err
7751        } && test -s conftest.$ac_objext; then
7752   ac_cv_c_const=yes
7753 else
7754   $as_echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757         ac_cv_c_const=no
7758 fi
7759
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 fi
7762 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7763 $as_echo "$ac_cv_c_const" >&6; }
7764 if test $ac_cv_c_const = no; then
7765
7766 cat >>confdefs.h <<\_ACEOF
7767 #define const /**/
7768 _ACEOF
7769
7770 fi
7771
7772 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7773 $as_echo_n "checking for inline... " >&6; }
7774 if test "${ac_cv_c_inline+set}" = set; then
7775   $as_echo_n "(cached) " >&6
7776 else
7777   ac_cv_c_inline=no
7778 for ac_kw in inline __inline__ __inline; do
7779   cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h.  */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h.  */
7785 #ifndef __cplusplus
7786 typedef int foo_t;
7787 static $ac_kw foo_t static_foo () {return 0; }
7788 $ac_kw foo_t foo () {return 0; }
7789 #endif
7790
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796   *) ac_try_echo=$ac_try;;
7797 esac
7798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799 $as_echo "$ac_try_echo") >&5
7800   (eval "$ac_compile") 2>conftest.er1
7801   ac_status=$?
7802   grep -v '^ *+' conftest.er1 >conftest.err
7803   rm -f conftest.er1
7804   cat conftest.err >&5
7805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806   (exit $ac_status); } && {
7807          test -z "$ac_c_werror_flag" ||
7808          test ! -s conftest.err
7809        } && test -s conftest.$ac_objext; then
7810   ac_cv_c_inline=$ac_kw
7811 else
7812   $as_echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7814
7815
7816 fi
7817
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819   test "$ac_cv_c_inline" != no && break
7820 done
7821
7822 fi
7823 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7824 $as_echo "$ac_cv_c_inline" >&6; }
7825
7826
7827 case $ac_cv_c_inline in
7828   inline | yes) ;;
7829   *)
7830     case $ac_cv_c_inline in
7831       no) ac_val=;;
7832       *) ac_val=$ac_cv_c_inline;;
7833     esac
7834     cat >>confdefs.h <<_ACEOF
7835 #ifndef __cplusplus
7836 #define inline $ac_val
7837 #endif
7838 _ACEOF
7839     ;;
7840 esac
7841
7842 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
7843 $as_echo_n "checking for working volatile... " >&6; }
7844 if test "${ac_cv_c_volatile+set}" = set; then
7845   $as_echo_n "(cached) " >&6
7846 else
7847   cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853
7854 int
7855 main ()
7856 {
7857
7858 volatile int x;
7859 int * volatile y = (int *) 0;
7860 return !x && !y;
7861   ;
7862   return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7867 case "(($ac_try" in
7868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869   *) ac_try_echo=$ac_try;;
7870 esac
7871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7872 $as_echo "$ac_try_echo") >&5
7873   (eval "$ac_compile") 2>conftest.er1
7874   ac_status=$?
7875   grep -v '^ *+' conftest.er1 >conftest.err
7876   rm -f conftest.er1
7877   cat conftest.err >&5
7878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } && {
7880          test -z "$ac_c_werror_flag" ||
7881          test ! -s conftest.err
7882        } && test -s conftest.$ac_objext; then
7883   ac_cv_c_volatile=yes
7884 else
7885   $as_echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7887
7888         ac_cv_c_volatile=no
7889 fi
7890
7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 fi
7893 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7894 $as_echo "$ac_cv_c_volatile" >&6; }
7895 if test $ac_cv_c_volatile = no; then
7896
7897 cat >>confdefs.h <<\_ACEOF
7898 #define volatile /**/
7899 _ACEOF
7900
7901 fi
7902
7903
7904 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7905 $as_echo_n "checking for ANSI C header files... " >&6; }
7906 if test "${ac_cv_header_stdc+set}" = set; then
7907   $as_echo_n "(cached) " >&6
7908 else
7909   cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915 #include <stdlib.h>
7916 #include <stdarg.h>
7917 #include <string.h>
7918 #include <float.h>
7919
7920 int
7921 main ()
7922 {
7923
7924   ;
7925   return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7930 case "(($ac_try" in
7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932   *) ac_try_echo=$ac_try;;
7933 esac
7934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7935 $as_echo "$ac_try_echo") >&5
7936   (eval "$ac_compile") 2>conftest.er1
7937   ac_status=$?
7938   grep -v '^ *+' conftest.er1 >conftest.err
7939   rm -f conftest.er1
7940   cat conftest.err >&5
7941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); } && {
7943          test -z "$ac_c_werror_flag" ||
7944          test ! -s conftest.err
7945        } && test -s conftest.$ac_objext; then
7946   ac_cv_header_stdc=yes
7947 else
7948   $as_echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951         ac_cv_header_stdc=no
7952 fi
7953
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955
7956 if test $ac_cv_header_stdc = yes; then
7957   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7958   cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964 #include <string.h>
7965
7966 _ACEOF
7967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7968   $EGREP "memchr" >/dev/null 2>&1; then
7969   :
7970 else
7971   ac_cv_header_stdc=no
7972 fi
7973 rm -f conftest*
7974
7975 fi
7976
7977 if test $ac_cv_header_stdc = yes; then
7978   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7979   cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h.  */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h.  */
7985 #include <stdlib.h>
7986
7987 _ACEOF
7988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7989   $EGREP "free" >/dev/null 2>&1; then
7990   :
7991 else
7992   ac_cv_header_stdc=no
7993 fi
7994 rm -f conftest*
7995
7996 fi
7997
7998 if test $ac_cv_header_stdc = yes; then
7999   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8000   if test "$cross_compiling" = yes; then
8001   :
8002 else
8003   cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009 #include <ctype.h>
8010 #include <stdlib.h>
8011 #if ((' ' & 0x0FF) == 0x020)
8012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8014 #else
8015 # define ISLOWER(c) \
8016                    (('a' <= (c) && (c) <= 'i') \
8017                      || ('j' <= (c) && (c) <= 'r') \
8018                      || ('s' <= (c) && (c) <= 'z'))
8019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8020 #endif
8021
8022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8023 int
8024 main ()
8025 {
8026   int i;
8027   for (i = 0; i < 256; i++)
8028     if (XOR (islower (i), ISLOWER (i))
8029         || toupper (i) != TOUPPER (i))
8030       return 2;
8031   return 0;
8032 }
8033 _ACEOF
8034 rm -f conftest$ac_exeext
8035 if { (ac_try="$ac_link"
8036 case "(($ac_try" in
8037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038   *) ac_try_echo=$ac_try;;
8039 esac
8040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041 $as_echo "$ac_try_echo") >&5
8042   (eval "$ac_link") 2>&5
8043   ac_status=$?
8044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8046   { (case "(($ac_try" in
8047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048   *) ac_try_echo=$ac_try;;
8049 esac
8050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8051 $as_echo "$ac_try_echo") >&5
8052   (eval "$ac_try") 2>&5
8053   ac_status=$?
8054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; }; then
8056   :
8057 else
8058   $as_echo "$as_me: program exited with status $ac_status" >&5
8059 $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8061
8062 ( exit $ac_status )
8063 ac_cv_header_stdc=no
8064 fi
8065 rm -rf conftest.dSYM
8066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8067 fi
8068
8069
8070 fi
8071 fi
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8073 $as_echo "$ac_cv_header_stdc" >&6; }
8074 if test $ac_cv_header_stdc = yes; then
8075
8076 cat >>confdefs.h <<\_ACEOF
8077 #define STDC_HEADERS 1
8078 _ACEOF
8079
8080 fi
8081
8082
8083 # Check whether --enable-largefile was given.
8084 if test "${enable_largefile+set}" = set; then
8085   enableval=$enable_largefile;
8086 fi
8087
8088 if test "$enable_largefile" != no; then
8089
8090   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8091 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8092 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8093   $as_echo_n "(cached) " >&6
8094 else
8095   ac_cv_sys_largefile_CC=no
8096      if test "$GCC" != yes; then
8097        ac_save_CC=$CC
8098        while :; do
8099          # IRIX 6.2 and later do not support large files by default,
8100          # so use the C compiler's -n32 option if that helps.
8101          cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 #include <sys/types.h>
8108  /* Check that off_t can represent 2**63 - 1 correctly.
8109     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8110     since some C++ compilers masquerading as C compilers
8111     incorrectly reject 9223372036854775807.  */
8112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8113   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8114                        && LARGE_OFF_T % 2147483647 == 1)
8115                       ? 1 : -1];
8116 int
8117 main ()
8118 {
8119
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124          rm -f conftest.$ac_objext
8125 if { (ac_try="$ac_compile"
8126 case "(($ac_try" in
8127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128   *) ac_try_echo=$ac_try;;
8129 esac
8130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8131 $as_echo "$ac_try_echo") >&5
8132   (eval "$ac_compile") 2>conftest.er1
8133   ac_status=$?
8134   grep -v '^ *+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } && {
8139          test -z "$ac_c_werror_flag" ||
8140          test ! -s conftest.err
8141        } && test -s conftest.$ac_objext; then
8142   break
8143 else
8144   $as_echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147
8148 fi
8149
8150 rm -f core conftest.err conftest.$ac_objext
8151          CC="$CC -n32"
8152          rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8159 $as_echo "$ac_try_echo") >&5
8160   (eval "$ac_compile") 2>conftest.er1
8161   ac_status=$?
8162   grep -v '^ *+' conftest.er1 >conftest.err
8163   rm -f conftest.er1
8164   cat conftest.err >&5
8165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } && {
8167          test -z "$ac_c_werror_flag" ||
8168          test ! -s conftest.err
8169        } && test -s conftest.$ac_objext; then
8170   ac_cv_sys_largefile_CC=' -n32'; break
8171 else
8172   $as_echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175
8176 fi
8177
8178 rm -f core conftest.err conftest.$ac_objext
8179          break
8180        done
8181        CC=$ac_save_CC
8182        rm -f conftest.$ac_ext
8183     fi
8184 fi
8185 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8186 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8187   if test "$ac_cv_sys_largefile_CC" != no; then
8188     CC=$CC$ac_cv_sys_largefile_CC
8189   fi
8190
8191   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8192 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8193 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8194   $as_echo_n "(cached) " >&6
8195 else
8196   while :; do
8197   cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203 #include <sys/types.h>
8204  /* Check that off_t can represent 2**63 - 1 correctly.
8205     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8206     since some C++ compilers masquerading as C compilers
8207     incorrectly reject 9223372036854775807.  */
8208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8209   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8210                        && LARGE_OFF_T % 2147483647 == 1)
8211                       ? 1 : -1];
8212 int
8213 main ()
8214 {
8215
8216   ;
8217   return 0;
8218 }
8219 _ACEOF
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8222 case "(($ac_try" in
8223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224   *) ac_try_echo=$ac_try;;
8225 esac
8226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8227 $as_echo "$ac_try_echo") >&5
8228   (eval "$ac_compile") 2>conftest.er1
8229   ac_status=$?
8230   grep -v '^ *+' conftest.er1 >conftest.err
8231   rm -f conftest.er1
8232   cat conftest.err >&5
8233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); } && {
8235          test -z "$ac_c_werror_flag" ||
8236          test ! -s conftest.err
8237        } && test -s conftest.$ac_objext; then
8238   ac_cv_sys_file_offset_bits=no; break
8239 else
8240   $as_echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243
8244 fi
8245
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247   cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h.  */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h.  */
8253 #define _FILE_OFFSET_BITS 64
8254 #include <sys/types.h>
8255  /* Check that off_t can represent 2**63 - 1 correctly.
8256     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8257     since some C++ compilers masquerading as C compilers
8258     incorrectly reject 9223372036854775807.  */
8259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8260   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8261                        && LARGE_OFF_T % 2147483647 == 1)
8262                       ? 1 : -1];
8263 int
8264 main ()
8265 {
8266
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8273 case "(($ac_try" in
8274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275   *) ac_try_echo=$ac_try;;
8276 esac
8277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278 $as_echo "$ac_try_echo") >&5
8279   (eval "$ac_compile") 2>conftest.er1
8280   ac_status=$?
8281   grep -v '^ *+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } && {
8286          test -z "$ac_c_werror_flag" ||
8287          test ! -s conftest.err
8288        } && test -s conftest.$ac_objext; then
8289   ac_cv_sys_file_offset_bits=64; break
8290 else
8291   $as_echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294
8295 fi
8296
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298   ac_cv_sys_file_offset_bits=unknown
8299   break
8300 done
8301 fi
8302 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8303 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8304 case $ac_cv_sys_file_offset_bits in #(
8305   no | unknown) ;;
8306   *)
8307 cat >>confdefs.h <<_ACEOF
8308 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8309 _ACEOF
8310 ;;
8311 esac
8312 rm -rf conftest*
8313   if test $ac_cv_sys_file_offset_bits = unknown; then
8314     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8315 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8316 if test "${ac_cv_sys_large_files+set}" = set; then
8317   $as_echo_n "(cached) " >&6
8318 else
8319   while :; do
8320   cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h.  */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h.  */
8326 #include <sys/types.h>
8327  /* Check that off_t can represent 2**63 - 1 correctly.
8328     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8329     since some C++ compilers masquerading as C compilers
8330     incorrectly reject 9223372036854775807.  */
8331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8332   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8333                        && LARGE_OFF_T % 2147483647 == 1)
8334                       ? 1 : -1];
8335 int
8336 main ()
8337 {
8338
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8345 case "(($ac_try" in
8346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347   *) ac_try_echo=$ac_try;;
8348 esac
8349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8350 $as_echo "$ac_try_echo") >&5
8351   (eval "$ac_compile") 2>conftest.er1
8352   ac_status=$?
8353   grep -v '^ *+' conftest.er1 >conftest.err
8354   rm -f conftest.er1
8355   cat conftest.err >&5
8356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } && {
8358          test -z "$ac_c_werror_flag" ||
8359          test ! -s conftest.err
8360        } && test -s conftest.$ac_objext; then
8361   ac_cv_sys_large_files=no; break
8362 else
8363   $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366
8367 fi
8368
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370   cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376 #define _LARGE_FILES 1
8377 #include <sys/types.h>
8378  /* Check that off_t can represent 2**63 - 1 correctly.
8379     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8380     since some C++ compilers masquerading as C compilers
8381     incorrectly reject 9223372036854775807.  */
8382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8383   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8384                        && LARGE_OFF_T % 2147483647 == 1)
8385                       ? 1 : -1];
8386 int
8387 main ()
8388 {
8389
8390   ;
8391   return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398   *) ac_try_echo=$ac_try;;
8399 esac
8400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401 $as_echo "$ac_try_echo") >&5
8402   (eval "$ac_compile") 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } && {
8409          test -z "$ac_c_werror_flag" ||
8410          test ! -s conftest.err
8411        } && test -s conftest.$ac_objext; then
8412   ac_cv_sys_large_files=1; break
8413 else
8414   $as_echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417
8418 fi
8419
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421   ac_cv_sys_large_files=unknown
8422   break
8423 done
8424 fi
8425 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8426 $as_echo "$ac_cv_sys_large_files" >&6; }
8427 case $ac_cv_sys_large_files in #(
8428   no | unknown) ;;
8429   *)
8430 cat >>confdefs.h <<_ACEOF
8431 #define _LARGE_FILES $ac_cv_sys_large_files
8432 _ACEOF
8433 ;;
8434 esac
8435 rm -rf conftest*
8436   fi
8437 fi
8438
8439 # The cast to long int works around a bug in the HP C Compiler
8440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8442 # This bug is HP SR number 8606223364.
8443 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
8444 $as_echo_n "checking size of off_t... " >&6; }
8445 if test "${ac_cv_sizeof_off_t+set}" = set; then
8446   $as_echo_n "(cached) " >&6
8447 else
8448   if test "$cross_compiling" = yes; then
8449   # Depending upon the size, compute the lo and hi bounds.
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 $ac_includes_default
8457 int
8458 main ()
8459 {
8460 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
8461 test_array [0] = 0
8462
8463   ;
8464   return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8469 case "(($ac_try" in
8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471   *) ac_try_echo=$ac_try;;
8472 esac
8473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8474 $as_echo "$ac_try_echo") >&5
8475   (eval "$ac_compile") 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } && {
8482          test -z "$ac_c_werror_flag" ||
8483          test ! -s conftest.err
8484        } && test -s conftest.$ac_objext; then
8485   ac_lo=0 ac_mid=0
8486   while :; do
8487     cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493 $ac_includes_default
8494 int
8495 main ()
8496 {
8497 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8498 test_array [0] = 0
8499
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8506 case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8511 $as_echo "$ac_try_echo") >&5
8512   (eval "$ac_compile") 2>conftest.er1
8513   ac_status=$?
8514   grep -v '^ *+' conftest.er1 >conftest.err
8515   rm -f conftest.er1
8516   cat conftest.err >&5
8517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } && {
8519          test -z "$ac_c_werror_flag" ||
8520          test ! -s conftest.err
8521        } && test -s conftest.$ac_objext; then
8522   ac_hi=$ac_mid; break
8523 else
8524   $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527         ac_lo=`expr $ac_mid + 1`
8528                         if test $ac_lo -le $ac_mid; then
8529                           ac_lo= ac_hi=
8530                           break
8531                         fi
8532                         ac_mid=`expr 2 '*' $ac_mid + 1`
8533 fi
8534
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536   done
8537 else
8538   $as_echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541         cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h.  */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h.  */
8547 $ac_includes_default
8548 int
8549 main ()
8550 {
8551 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
8552 test_array [0] = 0
8553
8554   ;
8555   return 0;
8556 }
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8560 case "(($ac_try" in
8561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562   *) ac_try_echo=$ac_try;;
8563 esac
8564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8565 $as_echo "$ac_try_echo") >&5
8566   (eval "$ac_compile") 2>conftest.er1
8567   ac_status=$?
8568   grep -v '^ *+' conftest.er1 >conftest.err
8569   rm -f conftest.er1
8570   cat conftest.err >&5
8571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); } && {
8573          test -z "$ac_c_werror_flag" ||
8574          test ! -s conftest.err
8575        } && test -s conftest.$ac_objext; then
8576   ac_hi=-1 ac_mid=-1
8577   while :; do
8578     cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584 $ac_includes_default
8585 int
8586 main ()
8587 {
8588 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
8589 test_array [0] = 0
8590
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext
8596 if { (ac_try="$ac_compile"
8597 case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602 $as_echo "$ac_try_echo") >&5
8603   (eval "$ac_compile") 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } && {
8610          test -z "$ac_c_werror_flag" ||
8611          test ! -s conftest.err
8612        } && test -s conftest.$ac_objext; then
8613   ac_lo=$ac_mid; break
8614 else
8615   $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618         ac_hi=`expr '(' $ac_mid ')' - 1`
8619                         if test $ac_mid -le $ac_hi; then
8620                           ac_lo= ac_hi=
8621                           break
8622                         fi
8623                         ac_mid=`expr 2 '*' $ac_mid`
8624 fi
8625
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627   done
8628 else
8629   $as_echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632         ac_lo= ac_hi=
8633 fi
8634
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 # Binary search between lo and hi bounds.
8640 while test "x$ac_lo" != "x$ac_hi"; do
8641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8642   cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648 $ac_includes_default
8649 int
8650 main ()
8651 {
8652 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8653 test_array [0] = 0
8654
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest.$ac_objext
8660 if { (ac_try="$ac_compile"
8661 case "(($ac_try" in
8662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663   *) ac_try_echo=$ac_try;;
8664 esac
8665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8666 $as_echo "$ac_try_echo") >&5
8667   (eval "$ac_compile") 2>conftest.er1
8668   ac_status=$?
8669   grep -v '^ *+' conftest.er1 >conftest.err
8670   rm -f conftest.er1
8671   cat conftest.err >&5
8672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); } && {
8674          test -z "$ac_c_werror_flag" ||
8675          test ! -s conftest.err
8676        } && test -s conftest.$ac_objext; then
8677   ac_hi=$ac_mid
8678 else
8679   $as_echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682         ac_lo=`expr '(' $ac_mid ')' + 1`
8683 fi
8684
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686 done
8687 case $ac_lo in
8688 ?*) ac_cv_sizeof_off_t=$ac_lo;;
8689 '') if test "$ac_cv_type_off_t" = yes; then
8690      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8692 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8693 See \`config.log' for more details." >&5
8694 $as_echo "$as_me: error: cannot compute sizeof (off_t)
8695 See \`config.log' for more details." >&2;}
8696    { (exit 77); exit 77; }; }; }
8697    else
8698      ac_cv_sizeof_off_t=0
8699    fi ;;
8700 esac
8701 else
8702   cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708 $ac_includes_default
8709 static long int longval () { return (long int) (sizeof (off_t)); }
8710 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
8711 #include <stdio.h>
8712 #include <stdlib.h>
8713 int
8714 main ()
8715 {
8716
8717   FILE *f = fopen ("conftest.val", "w");
8718   if (! f)
8719     return 1;
8720   if (((long int) (sizeof (off_t))) < 0)
8721     {
8722       long int i = longval ();
8723       if (i != ((long int) (sizeof (off_t))))
8724         return 1;
8725       fprintf (f, "%ld", i);
8726     }
8727   else
8728     {
8729       unsigned long int i = ulongval ();
8730       if (i != ((long int) (sizeof (off_t))))
8731         return 1;
8732       fprintf (f, "%lu", i);
8733     }
8734   /* Do not output a trailing newline, as this causes \r\n confusion
8735      on some platforms.  */
8736   return ferror (f) || fclose (f) != 0;
8737
8738   ;
8739   return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest$ac_exeext
8743 if { (ac_try="$ac_link"
8744 case "(($ac_try" in
8745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746   *) ac_try_echo=$ac_try;;
8747 esac
8748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8749 $as_echo "$ac_try_echo") >&5
8750   (eval "$ac_link") 2>&5
8751   ac_status=$?
8752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8754   { (case "(($ac_try" in
8755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756   *) ac_try_echo=$ac_try;;
8757 esac
8758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8759 $as_echo "$ac_try_echo") >&5
8760   (eval "$ac_try") 2>&5
8761   ac_status=$?
8762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; }; then
8764   ac_cv_sizeof_off_t=`cat conftest.val`
8765 else
8766   $as_echo "$as_me: program exited with status $ac_status" >&5
8767 $as_echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8769
8770 ( exit $ac_status )
8771 if test "$ac_cv_type_off_t" = yes; then
8772      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8774 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8775 See \`config.log' for more details." >&5
8776 $as_echo "$as_me: error: cannot compute sizeof (off_t)
8777 See \`config.log' for more details." >&2;}
8778    { (exit 77); exit 77; }; }; }
8779    else
8780      ac_cv_sizeof_off_t=0
8781    fi
8782 fi
8783 rm -rf conftest.dSYM
8784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8785 fi
8786 rm -f conftest.val
8787 fi
8788 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8789 $as_echo "$ac_cv_sizeof_off_t" >&6; }
8790
8791
8792
8793 cat >>confdefs.h <<_ACEOF
8794 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8795 _ACEOF
8796
8797
8798
8799 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8800 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8801 if test "${ac_cv_header_stdbool_h+set}" = set; then
8802   $as_echo_n "(cached) " >&6
8803 else
8804   cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810
8811           #include <stdbool.h>
8812           #ifndef bool
8813            "error: bool is not defined"
8814           #endif
8815           #ifndef false
8816            "error: false is not defined"
8817           #endif
8818           #if false
8819            "error: false is not 0"
8820           #endif
8821           #ifndef true
8822            "error: true is not defined"
8823           #endif
8824           #if true != 1
8825            "error: true is not 1"
8826           #endif
8827           #ifndef __bool_true_false_are_defined
8828            "error: __bool_true_false_are_defined is not defined"
8829           #endif
8830
8831           struct s { _Bool s: 1; _Bool t; } s;
8832
8833           char a[true == 1 ? 1 : -1];
8834           char b[false == 0 ? 1 : -1];
8835           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8836           char d[(bool) 0.5 == true ? 1 : -1];
8837           bool e = &s;
8838           char f[(_Bool) 0.0 == false ? 1 : -1];
8839           char g[true];
8840           char h[sizeof (_Bool)];
8841           char i[sizeof s.t];
8842           enum { j = false, k = true, l = false * true, m = true * 256 };
8843           _Bool n[m];
8844           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8845           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8846           #if defined __xlc__ || defined __GNUC__
8847            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8848               reported by James Lemley on 2005-10-05; see
8849               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8850               This test is not quite right, since xlc is allowed to
8851               reject this program, as the initializer for xlcbug is
8852               not one of the forms that C requires support for.
8853               However, doing the test right would require a run-time
8854               test, and that would make cross-compilation harder.
8855               Let us hope that IBM fixes the xlc bug, and also adds
8856               support for this kind of constant expression.  In the
8857               meantime, this test will reject xlc, which is OK, since
8858               our stdbool.h substitute should suffice.  We also test
8859               this with GCC, where it should work, to detect more
8860               quickly whether someone messes up the test in the
8861               future.  */
8862            char digs[] = "0123456789";
8863            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8864           #endif
8865           /* Catch a bug in an HP-UX C compiler.  See
8866              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8867              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8868            */
8869           _Bool q = true;
8870           _Bool *pq = &q;
8871
8872 int
8873 main ()
8874 {
8875
8876           *pq |= q;
8877           *pq |= ! q;
8878           /* Refer to every declared value, to avoid compiler optimizations.  */
8879           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8880                   + !m + !n + !o + !p + !q + !pq);
8881
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext
8887 if { (ac_try="$ac_compile"
8888 case "(($ac_try" in
8889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890   *) ac_try_echo=$ac_try;;
8891 esac
8892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8893 $as_echo "$ac_try_echo") >&5
8894   (eval "$ac_compile") 2>conftest.er1
8895   ac_status=$?
8896   grep -v '^ *+' conftest.er1 >conftest.err
8897   rm -f conftest.er1
8898   cat conftest.err >&5
8899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); } && {
8901          test -z "$ac_c_werror_flag" ||
8902          test ! -s conftest.err
8903        } && test -s conftest.$ac_objext; then
8904   ac_cv_header_stdbool_h=yes
8905 else
8906   $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909         ac_cv_header_stdbool_h=no
8910 fi
8911
8912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 fi
8914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8915 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8916    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
8917 $as_echo_n "checking for _Bool... " >&6; }
8918 if test "${ac_cv_type__Bool+set}" = set; then
8919   $as_echo_n "(cached) " >&6
8920 else
8921   ac_cv_type__Bool=no
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h.  */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h.  */
8928 $ac_includes_default
8929 int
8930 main ()
8931 {
8932 if (sizeof (_Bool))
8933        return 0;
8934   ;
8935   return 0;
8936 }
8937 _ACEOF
8938 rm -f conftest.$ac_objext
8939 if { (ac_try="$ac_compile"
8940 case "(($ac_try" in
8941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942   *) ac_try_echo=$ac_try;;
8943 esac
8944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8945 $as_echo "$ac_try_echo") >&5
8946   (eval "$ac_compile") 2>conftest.er1
8947   ac_status=$?
8948   grep -v '^ *+' conftest.er1 >conftest.err
8949   rm -f conftest.er1
8950   cat conftest.err >&5
8951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); } && {
8953          test -z "$ac_c_werror_flag" ||
8954          test ! -s conftest.err
8955        } && test -s conftest.$ac_objext; then
8956   cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962 $ac_includes_default
8963 int
8964 main ()
8965 {
8966 if (sizeof ((_Bool)))
8967           return 0;
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (ac_try="$ac_compile"
8974 case "(($ac_try" in
8975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976   *) ac_try_echo=$ac_try;;
8977 esac
8978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8979 $as_echo "$ac_try_echo") >&5
8980   (eval "$ac_compile") 2>conftest.er1
8981   ac_status=$?
8982   grep -v '^ *+' conftest.er1 >conftest.err
8983   rm -f conftest.er1
8984   cat conftest.err >&5
8985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986   (exit $ac_status); } && {
8987          test -z "$ac_c_werror_flag" ||
8988          test ! -s conftest.err
8989        } && test -s conftest.$ac_objext; then
8990   :
8991 else
8992   $as_echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8994
8995         ac_cv_type__Bool=yes
8996 fi
8997
8998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 else
9000   $as_echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003
9004 fi
9005
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9009 $as_echo "$ac_cv_type__Bool" >&6; }
9010 if test "x$ac_cv_type__Bool" = x""yes; then
9011
9012 cat >>confdefs.h <<_ACEOF
9013 #define HAVE__BOOL 1
9014 _ACEOF
9015
9016
9017 fi
9018
9019    if test $ac_cv_header_stdbool_h = yes; then
9020
9021 cat >>confdefs.h <<\_ACEOF
9022 #define HAVE_STDBOOL_H 1
9023 _ACEOF
9024
9025    fi
9026
9027
9028 for ac_header in unistd.h sys/time.h
9029 do
9030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9032   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9033 $as_echo_n "checking for $ac_header... " >&6; }
9034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9035   $as_echo_n "(cached) " >&6
9036 fi
9037 ac_res=`eval 'as_val=${'$as_ac_Header'}
9038                  $as_echo "$as_val"'`
9039                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9040 $as_echo "$ac_res" >&6; }
9041 else
9042   # Is the header compilable?
9043 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9044 $as_echo_n "checking $ac_header usability... " >&6; }
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h.  */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h.  */
9051 $ac_includes_default
9052 #include <$ac_header>
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (ac_try="$ac_compile"
9056 case "(($ac_try" in
9057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058   *) ac_try_echo=$ac_try;;
9059 esac
9060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9061 $as_echo "$ac_try_echo") >&5
9062   (eval "$ac_compile") 2>conftest.er1
9063   ac_status=$?
9064   grep -v '^ *+' conftest.er1 >conftest.err
9065   rm -f conftest.er1
9066   cat conftest.err >&5
9067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } && {
9069          test -z "$ac_c_werror_flag" ||
9070          test ! -s conftest.err
9071        } && test -s conftest.$ac_objext; then
9072   ac_header_compiler=yes
9073 else
9074   $as_echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077         ac_header_compiler=no
9078 fi
9079
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9082 $as_echo "$ac_header_compiler" >&6; }
9083
9084 # Is the header present?
9085 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9086 $as_echo_n "checking $ac_header presence... " >&6; }
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h.  */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h.  */
9093 #include <$ac_header>
9094 _ACEOF
9095 if { (ac_try="$ac_cpp conftest.$ac_ext"
9096 case "(($ac_try" in
9097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098   *) ac_try_echo=$ac_try;;
9099 esac
9100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9101 $as_echo "$ac_try_echo") >&5
9102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9103   ac_status=$?
9104   grep -v '^ *+' conftest.er1 >conftest.err
9105   rm -f conftest.er1
9106   cat conftest.err >&5
9107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); } >/dev/null && {
9109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9110          test ! -s conftest.err
9111        }; then
9112   ac_header_preproc=yes
9113 else
9114   $as_echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117   ac_header_preproc=no
9118 fi
9119
9120 rm -f conftest.err conftest.$ac_ext
9121 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9122 $as_echo "$ac_header_preproc" >&6; }
9123
9124 # So?  What about this header?
9125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9126   yes:no: )
9127     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9128 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9129     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9130 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9131     ac_header_preproc=yes
9132     ;;
9133   no:yes:* )
9134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9135 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9137 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9138     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9139 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9140     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9141 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9142     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9143 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9144     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9145 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9146     ( cat <<\_ASBOX
9147 ## ------------------------------- ##
9148 ## Report this to bug-wget@gnu.org ##
9149 ## ------------------------------- ##
9150 _ASBOX
9151      ) | sed "s/^/$as_me: WARNING:     /" >&2
9152     ;;
9153 esac
9154 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9155 $as_echo_n "checking for $ac_header... " >&6; }
9156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9157   $as_echo_n "(cached) " >&6
9158 else
9159   eval "$as_ac_Header=\$ac_header_preproc"
9160 fi
9161 ac_res=`eval 'as_val=${'$as_ac_Header'}
9162                  $as_echo "$as_val"'`
9163                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9164 $as_echo "$ac_res" >&6; }
9165
9166 fi
9167 as_val=`eval 'as_val=${'$as_ac_Header'}
9168                  $as_echo "$as_val"'`
9169    if test "x$as_val" = x""yes; then
9170   cat >>confdefs.h <<_ACEOF
9171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9172 _ACEOF
9173
9174 fi
9175
9176 done
9177
9178
9179
9180
9181
9182
9183 for ac_header in termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h
9184 do
9185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9187   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9188 $as_echo_n "checking for $ac_header... " >&6; }
9189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190   $as_echo_n "(cached) " >&6
9191 fi
9192 ac_res=`eval 'as_val=${'$as_ac_Header'}
9193                  $as_echo "$as_val"'`
9194                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9195 $as_echo "$ac_res" >&6; }
9196 else
9197   # Is the header compilable?
9198 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9199 $as_echo_n "checking $ac_header usability... " >&6; }
9200 cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h.  */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h.  */
9206 $ac_includes_default
9207 #include <$ac_header>
9208 _ACEOF
9209 rm -f conftest.$ac_objext
9210 if { (ac_try="$ac_compile"
9211 case "(($ac_try" in
9212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213   *) ac_try_echo=$ac_try;;
9214 esac
9215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9216 $as_echo "$ac_try_echo") >&5
9217   (eval "$ac_compile") 2>conftest.er1
9218   ac_status=$?
9219   grep -v '^ *+' conftest.er1 >conftest.err
9220   rm -f conftest.er1
9221   cat conftest.err >&5
9222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); } && {
9224          test -z "$ac_c_werror_flag" ||
9225          test ! -s conftest.err
9226        } && test -s conftest.$ac_objext; then
9227   ac_header_compiler=yes
9228 else
9229   $as_echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9231
9232         ac_header_compiler=no
9233 fi
9234
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9237 $as_echo "$ac_header_compiler" >&6; }
9238
9239 # Is the header present?
9240 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9241 $as_echo_n "checking $ac_header presence... " >&6; }
9242 cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h.  */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h.  */
9248 #include <$ac_header>
9249 _ACEOF
9250 if { (ac_try="$ac_cpp conftest.$ac_ext"
9251 case "(($ac_try" in
9252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253   *) ac_try_echo=$ac_try;;
9254 esac
9255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9256 $as_echo "$ac_try_echo") >&5
9257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9258   ac_status=$?
9259   grep -v '^ *+' conftest.er1 >conftest.err
9260   rm -f conftest.er1
9261   cat conftest.err >&5
9262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); } >/dev/null && {
9264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9265          test ! -s conftest.err
9266        }; then
9267   ac_header_preproc=yes
9268 else
9269   $as_echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272   ac_header_preproc=no
9273 fi
9274
9275 rm -f conftest.err conftest.$ac_ext
9276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277 $as_echo "$ac_header_preproc" >&6; }
9278
9279 # So?  What about this header?
9280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9281   yes:no: )
9282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9283 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9285 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9286     ac_header_preproc=yes
9287     ;;
9288   no:yes:* )
9289     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9290 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9291     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9292 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9294 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9296 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9297     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9299     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9300 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9301     ( cat <<\_ASBOX
9302 ## ------------------------------- ##
9303 ## Report this to bug-wget@gnu.org ##
9304 ## ------------------------------- ##
9305 _ASBOX
9306      ) | sed "s/^/$as_me: WARNING:     /" >&2
9307     ;;
9308 esac
9309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9310 $as_echo_n "checking for $ac_header... " >&6; }
9311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9312   $as_echo_n "(cached) " >&6
9313 else
9314   eval "$as_ac_Header=\$ac_header_preproc"
9315 fi
9316 ac_res=`eval 'as_val=${'$as_ac_Header'}
9317                  $as_echo "$as_val"'`
9318                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9319 $as_echo "$ac_res" >&6; }
9320
9321 fi
9322 as_val=`eval 'as_val=${'$as_ac_Header'}
9323                  $as_echo "$as_val"'`
9324    if test "x$as_val" = x""yes; then
9325   cat >>confdefs.h <<_ACEOF
9326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9327 _ACEOF
9328
9329 fi
9330
9331 done
9332
9333
9334
9335
9336
9337 for ac_header in stdint.h inttypes.h pwd.h wchar.h
9338 do
9339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9341   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9342 $as_echo_n "checking for $ac_header... " >&6; }
9343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9344   $as_echo_n "(cached) " >&6
9345 fi
9346 ac_res=`eval 'as_val=${'$as_ac_Header'}
9347                  $as_echo "$as_val"'`
9348                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9349 $as_echo "$ac_res" >&6; }
9350 else
9351   # Is the header compilable?
9352 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9353 $as_echo_n "checking $ac_header usability... " >&6; }
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 $ac_includes_default
9361 #include <$ac_header>
9362 _ACEOF
9363 rm -f conftest.$ac_objext
9364 if { (ac_try="$ac_compile"
9365 case "(($ac_try" in
9366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367   *) ac_try_echo=$ac_try;;
9368 esac
9369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9370 $as_echo "$ac_try_echo") >&5
9371   (eval "$ac_compile") 2>conftest.er1
9372   ac_status=$?
9373   grep -v '^ *+' conftest.er1 >conftest.err
9374   rm -f conftest.er1
9375   cat conftest.err >&5
9376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); } && {
9378          test -z "$ac_c_werror_flag" ||
9379          test ! -s conftest.err
9380        } && test -s conftest.$ac_objext; then
9381   ac_header_compiler=yes
9382 else
9383   $as_echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9385
9386         ac_header_compiler=no
9387 fi
9388
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9391 $as_echo "$ac_header_compiler" >&6; }
9392
9393 # Is the header present?
9394 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9395 $as_echo_n "checking $ac_header presence... " >&6; }
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h.  */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h.  */
9402 #include <$ac_header>
9403 _ACEOF
9404 if { (ac_try="$ac_cpp conftest.$ac_ext"
9405 case "(($ac_try" in
9406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407   *) ac_try_echo=$ac_try;;
9408 esac
9409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9410 $as_echo "$ac_try_echo") >&5
9411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9412   ac_status=$?
9413   grep -v '^ *+' conftest.er1 >conftest.err
9414   rm -f conftest.er1
9415   cat conftest.err >&5
9416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); } >/dev/null && {
9418          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9419          test ! -s conftest.err
9420        }; then
9421   ac_header_preproc=yes
9422 else
9423   $as_echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9425
9426   ac_header_preproc=no
9427 fi
9428
9429 rm -f conftest.err conftest.$ac_ext
9430 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9431 $as_echo "$ac_header_preproc" >&6; }
9432
9433 # So?  What about this header?
9434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9435   yes:no: )
9436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9437 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9440     ac_header_preproc=yes
9441     ;;
9442   no:yes:* )
9443     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9444 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9446 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9448 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9450 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9452 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9454 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9455     ( cat <<\_ASBOX
9456 ## ------------------------------- ##
9457 ## Report this to bug-wget@gnu.org ##
9458 ## ------------------------------- ##
9459 _ASBOX
9460      ) | sed "s/^/$as_me: WARNING:     /" >&2
9461     ;;
9462 esac
9463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9464 $as_echo_n "checking for $ac_header... " >&6; }
9465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9466   $as_echo_n "(cached) " >&6
9467 else
9468   eval "$as_ac_Header=\$ac_header_preproc"
9469 fi
9470 ac_res=`eval 'as_val=${'$as_ac_Header'}
9471                  $as_echo "$as_val"'`
9472                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9473 $as_echo "$ac_res" >&6; }
9474
9475 fi
9476 as_val=`eval 'as_val=${'$as_ac_Header'}
9477                  $as_echo "$as_val"'`
9478    if test "x$as_val" = x""yes; then
9479   cat >>confdefs.h <<_ACEOF
9480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9481 _ACEOF
9482
9483 fi
9484
9485 done
9486
9487
9488 { $as_echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
9489 $as_echo_n "checking whether h_errno is declared... " >&6; }
9490 if test "${ac_cv_have_decl_h_errno+set}" = set; then
9491   $as_echo_n "(cached) " >&6
9492 else
9493   cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h.  */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h.  */
9499 #include <netdb.h>
9500
9501 int
9502 main ()
9503 {
9504 #ifndef h_errno
9505   (void) h_errno;
9506 #endif
9507
9508   ;
9509   return 0;
9510 }
9511 _ACEOF
9512 rm -f conftest.$ac_objext
9513 if { (ac_try="$ac_compile"
9514 case "(($ac_try" in
9515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516   *) ac_try_echo=$ac_try;;
9517 esac
9518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9519 $as_echo "$ac_try_echo") >&5
9520   (eval "$ac_compile") 2>conftest.er1
9521   ac_status=$?
9522   grep -v '^ *+' conftest.er1 >conftest.err
9523   rm -f conftest.er1
9524   cat conftest.err >&5
9525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); } && {
9527          test -z "$ac_c_werror_flag" ||
9528          test ! -s conftest.err
9529        } && test -s conftest.$ac_objext; then
9530   ac_cv_have_decl_h_errno=yes
9531 else
9532   $as_echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9534
9535         ac_cv_have_decl_h_errno=no
9536 fi
9537
9538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539 fi
9540 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
9541 $as_echo "$ac_cv_have_decl_h_errno" >&6; }
9542 if test "x$ac_cv_have_decl_h_errno" = x""yes; then
9543
9544 cat >>confdefs.h <<_ACEOF
9545 #define HAVE_DECL_H_ERRNO 1
9546 _ACEOF
9547
9548
9549 else
9550   cat >>confdefs.h <<_ACEOF
9551 #define HAVE_DECL_H_ERRNO 0
9552 _ACEOF
9553
9554
9555 fi
9556
9557
9558
9559 # The cast to long int works around a bug in the HP C Compiler
9560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9562 # This bug is HP SR number 8606223364.
9563 { $as_echo "$as_me:$LINENO: checking size of short" >&5
9564 $as_echo_n "checking size of short... " >&6; }
9565 if test "${ac_cv_sizeof_short+set}" = set; then
9566   $as_echo_n "(cached) " >&6
9567 else
9568   if test "$cross_compiling" = yes; then
9569   # Depending upon the size, compute the lo and hi bounds.
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576 $ac_includes_default
9577 int
9578 main ()
9579 {
9580 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
9581 test_array [0] = 0
9582
9583   ;
9584   return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext
9588 if { (ac_try="$ac_compile"
9589 case "(($ac_try" in
9590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591   *) ac_try_echo=$ac_try;;
9592 esac
9593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9594 $as_echo "$ac_try_echo") >&5
9595   (eval "$ac_compile") 2>conftest.er1
9596   ac_status=$?
9597   grep -v '^ *+' conftest.er1 >conftest.err
9598   rm -f conftest.er1
9599   cat conftest.err >&5
9600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); } && {
9602          test -z "$ac_c_werror_flag" ||
9603          test ! -s conftest.err
9604        } && test -s conftest.$ac_objext; then
9605   ac_lo=0 ac_mid=0
9606   while :; do
9607     cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h.  */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h.  */
9613 $ac_includes_default
9614 int
9615 main ()
9616 {
9617 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9618 test_array [0] = 0
9619
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (ac_try="$ac_compile"
9626 case "(($ac_try" in
9627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628   *) ac_try_echo=$ac_try;;
9629 esac
9630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9631 $as_echo "$ac_try_echo") >&5
9632   (eval "$ac_compile") 2>conftest.er1
9633   ac_status=$?
9634   grep -v '^ *+' conftest.er1 >conftest.err
9635   rm -f conftest.er1
9636   cat conftest.err >&5
9637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); } && {
9639          test -z "$ac_c_werror_flag" ||
9640          test ! -s conftest.err
9641        } && test -s conftest.$ac_objext; then
9642   ac_hi=$ac_mid; break
9643 else
9644   $as_echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647         ac_lo=`expr $ac_mid + 1`
9648                         if test $ac_lo -le $ac_mid; then
9649                           ac_lo= ac_hi=
9650                           break
9651                         fi
9652                         ac_mid=`expr 2 '*' $ac_mid + 1`
9653 fi
9654
9655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656   done
9657 else
9658   $as_echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9660
9661         cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h.  */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h.  */
9667 $ac_includes_default
9668 int
9669 main ()
9670 {
9671 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
9672 test_array [0] = 0
9673
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 rm -f conftest.$ac_objext
9679 if { (ac_try="$ac_compile"
9680 case "(($ac_try" in
9681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682   *) ac_try_echo=$ac_try;;
9683 esac
9684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9685 $as_echo "$ac_try_echo") >&5
9686   (eval "$ac_compile") 2>conftest.er1
9687   ac_status=$?
9688   grep -v '^ *+' conftest.er1 >conftest.err
9689   rm -f conftest.er1
9690   cat conftest.err >&5
9691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } && {
9693          test -z "$ac_c_werror_flag" ||
9694          test ! -s conftest.err
9695        } && test -s conftest.$ac_objext; then
9696   ac_hi=-1 ac_mid=-1
9697   while :; do
9698     cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h.  */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h.  */
9704 $ac_includes_default
9705 int
9706 main ()
9707 {
9708 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
9709 test_array [0] = 0
9710
9711   ;
9712   return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext
9716 if { (ac_try="$ac_compile"
9717 case "(($ac_try" in
9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719   *) ac_try_echo=$ac_try;;
9720 esac
9721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9722 $as_echo "$ac_try_echo") >&5
9723   (eval "$ac_compile") 2>conftest.er1
9724   ac_status=$?
9725   grep -v '^ *+' conftest.er1 >conftest.err
9726   rm -f conftest.er1
9727   cat conftest.err >&5
9728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } && {
9730          test -z "$ac_c_werror_flag" ||
9731          test ! -s conftest.err
9732        } && test -s conftest.$ac_objext; then
9733   ac_lo=$ac_mid; break
9734 else
9735   $as_echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738         ac_hi=`expr '(' $ac_mid ')' - 1`
9739                         if test $ac_mid -le $ac_hi; then
9740                           ac_lo= ac_hi=
9741                           break
9742                         fi
9743                         ac_mid=`expr 2 '*' $ac_mid`
9744 fi
9745
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747   done
9748 else
9749   $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752         ac_lo= ac_hi=
9753 fi
9754
9755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756 fi
9757
9758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759 # Binary search between lo and hi bounds.
9760 while test "x$ac_lo" != "x$ac_hi"; do
9761   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9762   cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h.  */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h.  */
9768 $ac_includes_default
9769 int
9770 main ()
9771 {
9772 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9773 test_array [0] = 0
9774
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext
9780 if { (ac_try="$ac_compile"
9781 case "(($ac_try" in
9782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783   *) ac_try_echo=$ac_try;;
9784 esac
9785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9786 $as_echo "$ac_try_echo") >&5
9787   (eval "$ac_compile") 2>conftest.er1
9788   ac_status=$?
9789   grep -v '^ *+' conftest.er1 >conftest.err
9790   rm -f conftest.er1
9791   cat conftest.err >&5
9792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } && {
9794          test -z "$ac_c_werror_flag" ||
9795          test ! -s conftest.err
9796        } && test -s conftest.$ac_objext; then
9797   ac_hi=$ac_mid
9798 else
9799   $as_echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802         ac_lo=`expr '(' $ac_mid ')' + 1`
9803 fi
9804
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 done
9807 case $ac_lo in
9808 ?*) ac_cv_sizeof_short=$ac_lo;;
9809 '') if test "$ac_cv_type_short" = yes; then
9810      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9812 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9813 See \`config.log' for more details." >&5
9814 $as_echo "$as_me: error: cannot compute sizeof (short)
9815 See \`config.log' for more details." >&2;}
9816    { (exit 77); exit 77; }; }; }
9817    else
9818      ac_cv_sizeof_short=0
9819    fi ;;
9820 esac
9821 else
9822   cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828 $ac_includes_default
9829 static long int longval () { return (long int) (sizeof (short)); }
9830 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
9831 #include <stdio.h>
9832 #include <stdlib.h>
9833 int
9834 main ()
9835 {
9836
9837   FILE *f = fopen ("conftest.val", "w");
9838   if (! f)
9839     return 1;
9840   if (((long int) (sizeof (short))) < 0)
9841     {
9842       long int i = longval ();
9843       if (i != ((long int) (sizeof (short))))
9844         return 1;
9845       fprintf (f, "%ld", i);
9846     }
9847   else
9848     {
9849       unsigned long int i = ulongval ();
9850       if (i != ((long int) (sizeof (short))))
9851         return 1;
9852       fprintf (f, "%lu", i);
9853     }
9854   /* Do not output a trailing newline, as this causes \r\n confusion
9855      on some platforms.  */
9856   return ferror (f) || fclose (f) != 0;
9857
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870   (eval "$ac_link") 2>&5
9871   ac_status=$?
9872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9874   { (case "(($ac_try" in
9875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876   *) ac_try_echo=$ac_try;;
9877 esac
9878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9879 $as_echo "$ac_try_echo") >&5
9880   (eval "$ac_try") 2>&5
9881   ac_status=$?
9882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; }; then
9884   ac_cv_sizeof_short=`cat conftest.val`
9885 else
9886   $as_echo "$as_me: program exited with status $ac_status" >&5
9887 $as_echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ( exit $ac_status )
9891 if test "$ac_cv_type_short" = yes; then
9892      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9894 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9895 See \`config.log' for more details." >&5
9896 $as_echo "$as_me: error: cannot compute sizeof (short)
9897 See \`config.log' for more details." >&2;}
9898    { (exit 77); exit 77; }; }; }
9899    else
9900      ac_cv_sizeof_short=0
9901    fi
9902 fi
9903 rm -rf conftest.dSYM
9904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9905 fi
9906 rm -f conftest.val
9907 fi
9908 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9909 $as_echo "$ac_cv_sizeof_short" >&6; }
9910
9911
9912
9913 cat >>confdefs.h <<_ACEOF
9914 #define SIZEOF_SHORT $ac_cv_sizeof_short
9915 _ACEOF
9916
9917
9918 # The cast to long int works around a bug in the HP C Compiler
9919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9921 # This bug is HP SR number 8606223364.
9922 { $as_echo "$as_me:$LINENO: checking size of int" >&5
9923 $as_echo_n "checking size of int... " >&6; }
9924 if test "${ac_cv_sizeof_int+set}" = set; then
9925   $as_echo_n "(cached) " >&6
9926 else
9927   if test "$cross_compiling" = yes; then
9928   # Depending upon the size, compute the lo and hi bounds.
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 $ac_includes_default
9936 int
9937 main ()
9938 {
9939 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
9940 test_array [0] = 0
9941
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9948 case "(($ac_try" in
9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950   *) ac_try_echo=$ac_try;;
9951 esac
9952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954   (eval "$ac_compile") 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } && {
9961          test -z "$ac_c_werror_flag" ||
9962          test ! -s conftest.err
9963        } && test -s conftest.$ac_objext; then
9964   ac_lo=0 ac_mid=0
9965   while :; do
9966     cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972 $ac_includes_default
9973 int
9974 main ()
9975 {
9976 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
9977 test_array [0] = 0
9978
9979   ;
9980   return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext
9984 if { (ac_try="$ac_compile"
9985 case "(($ac_try" in
9986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987   *) ac_try_echo=$ac_try;;
9988 esac
9989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9990 $as_echo "$ac_try_echo") >&5
9991   (eval "$ac_compile") 2>conftest.er1
9992   ac_status=$?
9993   grep -v '^ *+' conftest.er1 >conftest.err
9994   rm -f conftest.er1
9995   cat conftest.err >&5
9996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); } && {
9998          test -z "$ac_c_werror_flag" ||
9999          test ! -s conftest.err
10000        } && test -s conftest.$ac_objext; then
10001   ac_hi=$ac_mid; break
10002 else
10003   $as_echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006         ac_lo=`expr $ac_mid + 1`
10007                         if test $ac_lo -le $ac_mid; then
10008                           ac_lo= ac_hi=
10009                           break
10010                         fi
10011                         ac_mid=`expr 2 '*' $ac_mid + 1`
10012 fi
10013
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015   done
10016 else
10017   $as_echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10019
10020         cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026 $ac_includes_default
10027 int
10028 main ()
10029 {
10030 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
10031 test_array [0] = 0
10032
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041   *) ac_try_echo=$ac_try;;
10042 esac
10043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10044 $as_echo "$ac_try_echo") >&5
10045   (eval "$ac_compile") 2>conftest.er1
10046   ac_status=$?
10047   grep -v '^ *+' conftest.er1 >conftest.err
10048   rm -f conftest.er1
10049   cat conftest.err >&5
10050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } && {
10052          test -z "$ac_c_werror_flag" ||
10053          test ! -s conftest.err
10054        } && test -s conftest.$ac_objext; then
10055   ac_hi=-1 ac_mid=-1
10056   while :; do
10057     cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063 $ac_includes_default
10064 int
10065 main ()
10066 {
10067 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
10068 test_array [0] = 0
10069
10070   ;
10071   return 0;
10072 }
10073 _ACEOF
10074 rm -f conftest.$ac_objext
10075 if { (ac_try="$ac_compile"
10076 case "(($ac_try" in
10077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078   *) ac_try_echo=$ac_try;;
10079 esac
10080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10081 $as_echo "$ac_try_echo") >&5
10082   (eval "$ac_compile") 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } && {
10089          test -z "$ac_c_werror_flag" ||
10090          test ! -s conftest.err
10091        } && test -s conftest.$ac_objext; then
10092   ac_lo=$ac_mid; break
10093 else
10094   $as_echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10096
10097         ac_hi=`expr '(' $ac_mid ')' - 1`
10098                         if test $ac_mid -le $ac_hi; then
10099                           ac_lo= ac_hi=
10100                           break
10101                         fi
10102                         ac_mid=`expr 2 '*' $ac_mid`
10103 fi
10104
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106   done
10107 else
10108   $as_echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10110
10111         ac_lo= ac_hi=
10112 fi
10113
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 # Binary search between lo and hi bounds.
10119 while test "x$ac_lo" != "x$ac_hi"; do
10120   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10121   cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127 $ac_includes_default
10128 int
10129 main ()
10130 {
10131 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
10132 test_array [0] = 0
10133
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext
10139 if { (ac_try="$ac_compile"
10140 case "(($ac_try" in
10141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142   *) ac_try_echo=$ac_try;;
10143 esac
10144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10145 $as_echo "$ac_try_echo") >&5
10146   (eval "$ac_compile") 2>conftest.er1
10147   ac_status=$?
10148   grep -v '^ *+' conftest.er1 >conftest.err
10149   rm -f conftest.er1
10150   cat conftest.err >&5
10151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); } && {
10153          test -z "$ac_c_werror_flag" ||
10154          test ! -s conftest.err
10155        } && test -s conftest.$ac_objext; then
10156   ac_hi=$ac_mid
10157 else
10158   $as_echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161         ac_lo=`expr '(' $ac_mid ')' + 1`
10162 fi
10163
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 done
10166 case $ac_lo in
10167 ?*) ac_cv_sizeof_int=$ac_lo;;
10168 '') if test "$ac_cv_type_int" = yes; then
10169      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10171 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10172 See \`config.log' for more details." >&5
10173 $as_echo "$as_me: error: cannot compute sizeof (int)
10174 See \`config.log' for more details." >&2;}
10175    { (exit 77); exit 77; }; }; }
10176    else
10177      ac_cv_sizeof_int=0
10178    fi ;;
10179 esac
10180 else
10181   cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187 $ac_includes_default
10188 static long int longval () { return (long int) (sizeof (int)); }
10189 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
10190 #include <stdio.h>
10191 #include <stdlib.h>
10192 int
10193 main ()
10194 {
10195
10196   FILE *f = fopen ("conftest.val", "w");
10197   if (! f)
10198     return 1;
10199   if (((long int) (sizeof (int))) < 0)
10200     {
10201       long int i = longval ();
10202       if (i != ((long int) (sizeof (int))))
10203         return 1;
10204       fprintf (f, "%ld", i);
10205     }
10206   else
10207     {
10208       unsigned long int i = ulongval ();
10209       if (i != ((long int) (sizeof (int))))
10210         return 1;
10211       fprintf (f, "%lu", i);
10212     }
10213   /* Do not output a trailing newline, as this causes \r\n confusion
10214      on some platforms.  */
10215   return ferror (f) || fclose (f) != 0;
10216
10217   ;
10218   return 0;
10219 }
10220 _ACEOF
10221 rm -f conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225   *) ac_try_echo=$ac_try;;
10226 esac
10227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228 $as_echo "$ac_try_echo") >&5
10229   (eval "$ac_link") 2>&5
10230   ac_status=$?
10231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10233   { (case "(($ac_try" in
10234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235   *) ac_try_echo=$ac_try;;
10236 esac
10237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10238 $as_echo "$ac_try_echo") >&5
10239   (eval "$ac_try") 2>&5
10240   ac_status=$?
10241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   ac_cv_sizeof_int=`cat conftest.val`
10244 else
10245   $as_echo "$as_me: program exited with status $ac_status" >&5
10246 $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ( exit $ac_status )
10250 if test "$ac_cv_type_int" = yes; then
10251      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10253 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10254 See \`config.log' for more details." >&5
10255 $as_echo "$as_me: error: cannot compute sizeof (int)
10256 See \`config.log' for more details." >&2;}
10257    { (exit 77); exit 77; }; }; }
10258    else
10259      ac_cv_sizeof_int=0
10260    fi
10261 fi
10262 rm -rf conftest.dSYM
10263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10264 fi
10265 rm -f conftest.val
10266 fi
10267 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10268 $as_echo "$ac_cv_sizeof_int" >&6; }
10269
10270
10271
10272 cat >>confdefs.h <<_ACEOF
10273 #define SIZEOF_INT $ac_cv_sizeof_int
10274 _ACEOF
10275
10276
10277 # The cast to long int works around a bug in the HP C Compiler
10278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10280 # This bug is HP SR number 8606223364.
10281 { $as_echo "$as_me:$LINENO: checking size of long" >&5
10282 $as_echo_n "checking size of long... " >&6; }
10283 if test "${ac_cv_sizeof_long+set}" = set; then
10284   $as_echo_n "(cached) " >&6
10285 else
10286   if test "$cross_compiling" = yes; then
10287   # Depending upon the size, compute the lo and hi bounds.
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 $ac_includes_default
10295 int
10296 main ()
10297 {
10298 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
10299 test_array [0] = 0
10300
10301   ;
10302   return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext
10306 if { (ac_try="$ac_compile"
10307 case "(($ac_try" in
10308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309   *) ac_try_echo=$ac_try;;
10310 esac
10311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10312 $as_echo "$ac_try_echo") >&5
10313   (eval "$ac_compile") 2>conftest.er1
10314   ac_status=$?
10315   grep -v '^ *+' conftest.er1 >conftest.err
10316   rm -f conftest.er1
10317   cat conftest.err >&5
10318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); } && {
10320          test -z "$ac_c_werror_flag" ||
10321          test ! -s conftest.err
10322        } && test -s conftest.$ac_objext; then
10323   ac_lo=0 ac_mid=0
10324   while :; do
10325     cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h.  */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h.  */
10331 $ac_includes_default
10332 int
10333 main ()
10334 {
10335 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
10336 test_array [0] = 0
10337
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (ac_try="$ac_compile"
10344 case "(($ac_try" in
10345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346   *) ac_try_echo=$ac_try;;
10347 esac
10348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10349 $as_echo "$ac_try_echo") >&5
10350   (eval "$ac_compile") 2>conftest.er1
10351   ac_status=$?
10352   grep -v '^ *+' conftest.er1 >conftest.err
10353   rm -f conftest.er1
10354   cat conftest.err >&5
10355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } && {
10357          test -z "$ac_c_werror_flag" ||
10358          test ! -s conftest.err
10359        } && test -s conftest.$ac_objext; then
10360   ac_hi=$ac_mid; break
10361 else
10362   $as_echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10364
10365         ac_lo=`expr $ac_mid + 1`
10366                         if test $ac_lo -le $ac_mid; then
10367                           ac_lo= ac_hi=
10368                           break
10369                         fi
10370                         ac_mid=`expr 2 '*' $ac_mid + 1`
10371 fi
10372
10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374   done
10375 else
10376   $as_echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379         cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385 $ac_includes_default
10386 int
10387 main ()
10388 {
10389 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
10390 test_array [0] = 0
10391
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (ac_try="$ac_compile"
10398 case "(($ac_try" in
10399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400   *) ac_try_echo=$ac_try;;
10401 esac
10402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10403 $as_echo "$ac_try_echo") >&5
10404   (eval "$ac_compile") 2>conftest.er1
10405   ac_status=$?
10406   grep -v '^ *+' conftest.er1 >conftest.err
10407   rm -f conftest.er1
10408   cat conftest.err >&5
10409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } && {
10411          test -z "$ac_c_werror_flag" ||
10412          test ! -s conftest.err
10413        } && test -s conftest.$ac_objext; then
10414   ac_hi=-1 ac_mid=-1
10415   while :; do
10416     cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h.  */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h.  */
10422 $ac_includes_default
10423 int
10424 main ()
10425 {
10426 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
10427 test_array [0] = 0
10428
10429   ;
10430   return 0;
10431 }
10432 _ACEOF
10433 rm -f conftest.$ac_objext
10434 if { (ac_try="$ac_compile"
10435 case "(($ac_try" in
10436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437   *) ac_try_echo=$ac_try;;
10438 esac
10439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10440 $as_echo "$ac_try_echo") >&5
10441   (eval "$ac_compile") 2>conftest.er1
10442   ac_status=$?
10443   grep -v '^ *+' conftest.er1 >conftest.err
10444   rm -f conftest.er1
10445   cat conftest.err >&5
10446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); } && {
10448          test -z "$ac_c_werror_flag" ||
10449          test ! -s conftest.err
10450        } && test -s conftest.$ac_objext; then
10451   ac_lo=$ac_mid; break
10452 else
10453   $as_echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10455
10456         ac_hi=`expr '(' $ac_mid ')' - 1`
10457                         if test $ac_mid -le $ac_hi; then
10458                           ac_lo= ac_hi=
10459                           break
10460                         fi
10461                         ac_mid=`expr 2 '*' $ac_mid`
10462 fi
10463
10464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465   done
10466 else
10467   $as_echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470         ac_lo= ac_hi=
10471 fi
10472
10473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474 fi
10475
10476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10477 # Binary search between lo and hi bounds.
10478 while test "x$ac_lo" != "x$ac_hi"; do
10479   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10480   cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h.  */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h.  */
10486 $ac_includes_default
10487 int
10488 main ()
10489 {
10490 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
10491 test_array [0] = 0
10492
10493   ;
10494   return 0;
10495 }
10496 _ACEOF
10497 rm -f conftest.$ac_objext
10498 if { (ac_try="$ac_compile"
10499 case "(($ac_try" in
10500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501   *) ac_try_echo=$ac_try;;
10502 esac
10503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10504 $as_echo "$ac_try_echo") >&5
10505   (eval "$ac_compile") 2>conftest.er1
10506   ac_status=$?
10507   grep -v '^ *+' conftest.er1 >conftest.err
10508   rm -f conftest.er1
10509   cat conftest.err >&5
10510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); } && {
10512          test -z "$ac_c_werror_flag" ||
10513          test ! -s conftest.err
10514        } && test -s conftest.$ac_objext; then
10515   ac_hi=$ac_mid
10516 else
10517   $as_echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520         ac_lo=`expr '(' $ac_mid ')' + 1`
10521 fi
10522
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524 done
10525 case $ac_lo in
10526 ?*) ac_cv_sizeof_long=$ac_lo;;
10527 '') if test "$ac_cv_type_long" = yes; then
10528      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10530 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10531 See \`config.log' for more details." >&5
10532 $as_echo "$as_me: error: cannot compute sizeof (long)
10533 See \`config.log' for more details." >&2;}
10534    { (exit 77); exit 77; }; }; }
10535    else
10536      ac_cv_sizeof_long=0
10537    fi ;;
10538 esac
10539 else
10540   cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h.  */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h.  */
10546 $ac_includes_default
10547 static long int longval () { return (long int) (sizeof (long)); }
10548 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
10549 #include <stdio.h>
10550 #include <stdlib.h>
10551 int
10552 main ()
10553 {
10554
10555   FILE *f = fopen ("conftest.val", "w");
10556   if (! f)
10557     return 1;
10558   if (((long int) (sizeof (long))) < 0)
10559     {
10560       long int i = longval ();
10561       if (i != ((long int) (sizeof (long))))
10562         return 1;
10563       fprintf (f, "%ld", i);
10564     }
10565   else
10566     {
10567       unsigned long int i = ulongval ();
10568       if (i != ((long int) (sizeof (long))))
10569         return 1;
10570       fprintf (f, "%lu", i);
10571     }
10572   /* Do not output a trailing newline, as this causes \r\n confusion
10573      on some platforms.  */
10574   return ferror (f) || fclose (f) != 0;
10575
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest$ac_exeext
10581 if { (ac_try="$ac_link"
10582 case "(($ac_try" in
10583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584   *) ac_try_echo=$ac_try;;
10585 esac
10586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587 $as_echo "$ac_try_echo") >&5
10588   (eval "$ac_link") 2>&5
10589   ac_status=$?
10590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10592   { (case "(($ac_try" in
10593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594   *) ac_try_echo=$ac_try;;
10595 esac
10596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10597 $as_echo "$ac_try_echo") >&5
10598   (eval "$ac_try") 2>&5
10599   ac_status=$?
10600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); }; }; then
10602   ac_cv_sizeof_long=`cat conftest.val`
10603 else
10604   $as_echo "$as_me: program exited with status $ac_status" >&5
10605 $as_echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 ( exit $ac_status )
10609 if test "$ac_cv_type_long" = yes; then
10610      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10612 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10613 See \`config.log' for more details." >&5
10614 $as_echo "$as_me: error: cannot compute sizeof (long)
10615 See \`config.log' for more details." >&2;}
10616    { (exit 77); exit 77; }; }; }
10617    else
10618      ac_cv_sizeof_long=0
10619    fi
10620 fi
10621 rm -rf conftest.dSYM
10622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10623 fi
10624 rm -f conftest.val
10625 fi
10626 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10627 $as_echo "$ac_cv_sizeof_long" >&6; }
10628
10629
10630
10631 cat >>confdefs.h <<_ACEOF
10632 #define SIZEOF_LONG $ac_cv_sizeof_long
10633 _ACEOF
10634
10635
10636 # The cast to long int works around a bug in the HP C Compiler
10637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10639 # This bug is HP SR number 8606223364.
10640 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
10641 $as_echo_n "checking size of long long... " >&6; }
10642 if test "${ac_cv_sizeof_long_long+set}" = set; then
10643   $as_echo_n "(cached) " >&6
10644 else
10645   if test "$cross_compiling" = yes; then
10646   # Depending upon the size, compute the lo and hi bounds.
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653 $ac_includes_default
10654 int
10655 main ()
10656 {
10657 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
10658 test_array [0] = 0
10659
10660   ;
10661   return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext
10665 if { (ac_try="$ac_compile"
10666 case "(($ac_try" in
10667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668   *) ac_try_echo=$ac_try;;
10669 esac
10670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10671 $as_echo "$ac_try_echo") >&5
10672   (eval "$ac_compile") 2>conftest.er1
10673   ac_status=$?
10674   grep -v '^ *+' conftest.er1 >conftest.err
10675   rm -f conftest.er1
10676   cat conftest.err >&5
10677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); } && {
10679          test -z "$ac_c_werror_flag" ||
10680          test ! -s conftest.err
10681        } && test -s conftest.$ac_objext; then
10682   ac_lo=0 ac_mid=0
10683   while :; do
10684     cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h.  */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h.  */
10690 $ac_includes_default
10691 int
10692 main ()
10693 {
10694 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
10695 test_array [0] = 0
10696
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (ac_try="$ac_compile"
10703 case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708 $as_echo "$ac_try_echo") >&5
10709   (eval "$ac_compile") 2>conftest.er1
10710   ac_status=$?
10711   grep -v '^ *+' conftest.er1 >conftest.err
10712   rm -f conftest.er1
10713   cat conftest.err >&5
10714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); } && {
10716          test -z "$ac_c_werror_flag" ||
10717          test ! -s conftest.err
10718        } && test -s conftest.$ac_objext; then
10719   ac_hi=$ac_mid; break
10720 else
10721   $as_echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724         ac_lo=`expr $ac_mid + 1`
10725                         if test $ac_lo -le $ac_mid; then
10726                           ac_lo= ac_hi=
10727                           break
10728                         fi
10729                         ac_mid=`expr 2 '*' $ac_mid + 1`
10730 fi
10731
10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733   done
10734 else
10735   $as_echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738         cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h.  */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h.  */
10744 $ac_includes_default
10745 int
10746 main ()
10747 {
10748 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
10749 test_array [0] = 0
10750
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext
10756 if { (ac_try="$ac_compile"
10757 case "(($ac_try" in
10758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759   *) ac_try_echo=$ac_try;;
10760 esac
10761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10762 $as_echo "$ac_try_echo") >&5
10763   (eval "$ac_compile") 2>conftest.er1
10764   ac_status=$?
10765   grep -v '^ *+' conftest.er1 >conftest.err
10766   rm -f conftest.er1
10767   cat conftest.err >&5
10768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } && {
10770          test -z "$ac_c_werror_flag" ||
10771          test ! -s conftest.err
10772        } && test -s conftest.$ac_objext; then
10773   ac_hi=-1 ac_mid=-1
10774   while :; do
10775     cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h.  */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h.  */
10781 $ac_includes_default
10782 int
10783 main ()
10784 {
10785 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
10786 test_array [0] = 0
10787
10788   ;
10789   return 0;
10790 }
10791 _ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (ac_try="$ac_compile"
10794 case "(($ac_try" in
10795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796   *) ac_try_echo=$ac_try;;
10797 esac
10798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10799 $as_echo "$ac_try_echo") >&5
10800   (eval "$ac_compile") 2>conftest.er1
10801   ac_status=$?
10802   grep -v '^ *+' conftest.er1 >conftest.err
10803   rm -f conftest.er1
10804   cat conftest.err >&5
10805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); } && {
10807          test -z "$ac_c_werror_flag" ||
10808          test ! -s conftest.err
10809        } && test -s conftest.$ac_objext; then
10810   ac_lo=$ac_mid; break
10811 else
10812   $as_echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815         ac_hi=`expr '(' $ac_mid ')' - 1`
10816                         if test $ac_mid -le $ac_hi; then
10817                           ac_lo= ac_hi=
10818                           break
10819                         fi
10820                         ac_mid=`expr 2 '*' $ac_mid`
10821 fi
10822
10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824   done
10825 else
10826   $as_echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10828
10829         ac_lo= ac_hi=
10830 fi
10831
10832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833 fi
10834
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 # Binary search between lo and hi bounds.
10837 while test "x$ac_lo" != "x$ac_hi"; do
10838   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10839   cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845 $ac_includes_default
10846 int
10847 main ()
10848 {
10849 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
10850 test_array [0] = 0
10851
10852   ;
10853   return 0;
10854 }
10855 _ACEOF
10856 rm -f conftest.$ac_objext
10857 if { (ac_try="$ac_compile"
10858 case "(($ac_try" in
10859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860   *) ac_try_echo=$ac_try;;
10861 esac
10862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10863 $as_echo "$ac_try_echo") >&5
10864   (eval "$ac_compile") 2>conftest.er1
10865   ac_status=$?
10866   grep -v '^ *+' conftest.er1 >conftest.err
10867   rm -f conftest.er1
10868   cat conftest.err >&5
10869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); } && {
10871          test -z "$ac_c_werror_flag" ||
10872          test ! -s conftest.err
10873        } && test -s conftest.$ac_objext; then
10874   ac_hi=$ac_mid
10875 else
10876   $as_echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879         ac_lo=`expr '(' $ac_mid ')' + 1`
10880 fi
10881
10882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 done
10884 case $ac_lo in
10885 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10886 '') if test "$ac_cv_type_long_long" = yes; then
10887      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10889 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10890 See \`config.log' for more details." >&5
10891 $as_echo "$as_me: error: cannot compute sizeof (long long)
10892 See \`config.log' for more details." >&2;}
10893    { (exit 77); exit 77; }; }; }
10894    else
10895      ac_cv_sizeof_long_long=0
10896    fi ;;
10897 esac
10898 else
10899   cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h.  */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h.  */
10905 $ac_includes_default
10906 static long int longval () { return (long int) (sizeof (long long)); }
10907 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
10908 #include <stdio.h>
10909 #include <stdlib.h>
10910 int
10911 main ()
10912 {
10913
10914   FILE *f = fopen ("conftest.val", "w");
10915   if (! f)
10916     return 1;
10917   if (((long int) (sizeof (long long))) < 0)
10918     {
10919       long int i = longval ();
10920       if (i != ((long int) (sizeof (long long))))
10921         return 1;
10922       fprintf (f, "%ld", i);
10923     }
10924   else
10925     {
10926       unsigned long int i = ulongval ();
10927       if (i != ((long int) (sizeof (long long))))
10928         return 1;
10929       fprintf (f, "%lu", i);
10930     }
10931   /* Do not output a trailing newline, as this causes \r\n confusion
10932      on some platforms.  */
10933   return ferror (f) || fclose (f) != 0;
10934
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 rm -f conftest$ac_exeext
10940 if { (ac_try="$ac_link"
10941 case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10946 $as_echo "$ac_try_echo") >&5
10947   (eval "$ac_link") 2>&5
10948   ac_status=$?
10949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10951   { (case "(($ac_try" in
10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953   *) ac_try_echo=$ac_try;;
10954 esac
10955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10956 $as_echo "$ac_try_echo") >&5
10957   (eval "$ac_try") 2>&5
10958   ac_status=$?
10959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); }; }; then
10961   ac_cv_sizeof_long_long=`cat conftest.val`
10962 else
10963   $as_echo "$as_me: program exited with status $ac_status" >&5
10964 $as_echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967 ( exit $ac_status )
10968 if test "$ac_cv_type_long_long" = yes; then
10969      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10971 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10972 See \`config.log' for more details." >&5
10973 $as_echo "$as_me: error: cannot compute sizeof (long long)
10974 See \`config.log' for more details." >&2;}
10975    { (exit 77); exit 77; }; }; }
10976    else
10977      ac_cv_sizeof_long_long=0
10978    fi
10979 fi
10980 rm -rf conftest.dSYM
10981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10982 fi
10983 rm -f conftest.val
10984 fi
10985 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10986 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10987
10988
10989
10990 cat >>confdefs.h <<_ACEOF
10991 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10992 _ACEOF
10993
10994
10995 # The cast to long int works around a bug in the HP C Compiler
10996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10998 # This bug is HP SR number 8606223364.
10999 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
11000 $as_echo_n "checking size of void *... " >&6; }
11001 if test "${ac_cv_sizeof_void_p+set}" = set; then
11002   $as_echo_n "(cached) " >&6
11003 else
11004   if test "$cross_compiling" = yes; then
11005   # Depending upon the size, compute the lo and hi bounds.
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012 $ac_includes_default
11013 int
11014 main ()
11015 {
11016 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
11017 test_array [0] = 0
11018
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11030 $as_echo "$ac_try_echo") >&5
11031   (eval "$ac_compile") 2>conftest.er1
11032   ac_status=$?
11033   grep -v '^ *+' conftest.er1 >conftest.err
11034   rm -f conftest.er1
11035   cat conftest.err >&5
11036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); } && {
11038          test -z "$ac_c_werror_flag" ||
11039          test ! -s conftest.err
11040        } && test -s conftest.$ac_objext; then
11041   ac_lo=0 ac_mid=0
11042   while :; do
11043     cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h.  */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h.  */
11049 $ac_includes_default
11050 int
11051 main ()
11052 {
11053 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
11054 test_array [0] = 0
11055
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068   (eval "$ac_compile") 2>conftest.er1
11069   ac_status=$?
11070   grep -v '^ *+' conftest.er1 >conftest.err
11071   rm -f conftest.er1
11072   cat conftest.err >&5
11073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } && {
11075          test -z "$ac_c_werror_flag" ||
11076          test ! -s conftest.err
11077        } && test -s conftest.$ac_objext; then
11078   ac_hi=$ac_mid; break
11079 else
11080   $as_echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083         ac_lo=`expr $ac_mid + 1`
11084                         if test $ac_lo -le $ac_mid; then
11085                           ac_lo= ac_hi=
11086                           break
11087                         fi
11088                         ac_mid=`expr 2 '*' $ac_mid + 1`
11089 fi
11090
11091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092   done
11093 else
11094   $as_echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097         cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h.  */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h.  */
11103 $ac_includes_default
11104 int
11105 main ()
11106 {
11107 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
11108 test_array [0] = 0
11109
11110   ;
11111   return 0;
11112 }
11113 _ACEOF
11114 rm -f conftest.$ac_objext
11115 if { (ac_try="$ac_compile"
11116 case "(($ac_try" in
11117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118   *) ac_try_echo=$ac_try;;
11119 esac
11120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121 $as_echo "$ac_try_echo") >&5
11122   (eval "$ac_compile") 2>conftest.er1
11123   ac_status=$?
11124   grep -v '^ *+' conftest.er1 >conftest.err
11125   rm -f conftest.er1
11126   cat conftest.err >&5
11127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } && {
11129          test -z "$ac_c_werror_flag" ||
11130          test ! -s conftest.err
11131        } && test -s conftest.$ac_objext; then
11132   ac_hi=-1 ac_mid=-1
11133   while :; do
11134     cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h.  */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h.  */
11140 $ac_includes_default
11141 int
11142 main ()
11143 {
11144 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
11145 test_array [0] = 0
11146
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (ac_try="$ac_compile"
11153 case "(($ac_try" in
11154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155   *) ac_try_echo=$ac_try;;
11156 esac
11157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11158 $as_echo "$ac_try_echo") >&5
11159   (eval "$ac_compile") 2>conftest.er1
11160   ac_status=$?
11161   grep -v '^ *+' conftest.er1 >conftest.err
11162   rm -f conftest.er1
11163   cat conftest.err >&5
11164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); } && {
11166          test -z "$ac_c_werror_flag" ||
11167          test ! -s conftest.err
11168        } && test -s conftest.$ac_objext; then
11169   ac_lo=$ac_mid; break
11170 else
11171   $as_echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174         ac_hi=`expr '(' $ac_mid ')' - 1`
11175                         if test $ac_mid -le $ac_hi; then
11176                           ac_lo= ac_hi=
11177                           break
11178                         fi
11179                         ac_mid=`expr 2 '*' $ac_mid`
11180 fi
11181
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183   done
11184 else
11185   $as_echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188         ac_lo= ac_hi=
11189 fi
11190
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 fi
11193
11194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195 # Binary search between lo and hi bounds.
11196 while test "x$ac_lo" != "x$ac_hi"; do
11197   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11198   cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h.  */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h.  */
11204 $ac_includes_default
11205 int
11206 main ()
11207 {
11208 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
11209 test_array [0] = 0
11210
11211   ;
11212   return 0;
11213 }
11214 _ACEOF
11215 rm -f conftest.$ac_objext
11216 if { (ac_try="$ac_compile"
11217 case "(($ac_try" in
11218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219   *) ac_try_echo=$ac_try;;
11220 esac
11221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11222 $as_echo "$ac_try_echo") >&5
11223   (eval "$ac_compile") 2>conftest.er1
11224   ac_status=$?
11225   grep -v '^ *+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } && {
11230          test -z "$ac_c_werror_flag" ||
11231          test ! -s conftest.err
11232        } && test -s conftest.$ac_objext; then
11233   ac_hi=$ac_mid
11234 else
11235   $as_echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238         ac_lo=`expr '(' $ac_mid ')' + 1`
11239 fi
11240
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 done
11243 case $ac_lo in
11244 ?*) ac_cv_sizeof_void_p=$ac_lo;;
11245 '') if test "$ac_cv_type_void_p" = yes; then
11246      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11248 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
11249 See \`config.log' for more details." >&5
11250 $as_echo "$as_me: error: cannot compute sizeof (void *)
11251 See \`config.log' for more details." >&2;}
11252    { (exit 77); exit 77; }; }; }
11253    else
11254      ac_cv_sizeof_void_p=0
11255    fi ;;
11256 esac
11257 else
11258   cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264 $ac_includes_default
11265 static long int longval () { return (long int) (sizeof (void *)); }
11266 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
11267 #include <stdio.h>
11268 #include <stdlib.h>
11269 int
11270 main ()
11271 {
11272
11273   FILE *f = fopen ("conftest.val", "w");
11274   if (! f)
11275     return 1;
11276   if (((long int) (sizeof (void *))) < 0)
11277     {
11278       long int i = longval ();
11279       if (i != ((long int) (sizeof (void *))))
11280         return 1;
11281       fprintf (f, "%ld", i);
11282     }
11283   else
11284     {
11285       unsigned long int i = ulongval ();
11286       if (i != ((long int) (sizeof (void *))))
11287         return 1;
11288       fprintf (f, "%lu", i);
11289     }
11290   /* Do not output a trailing newline, as this causes \r\n confusion
11291      on some platforms.  */
11292   return ferror (f) || fclose (f) != 0;
11293
11294   ;
11295   return 0;
11296 }
11297 _ACEOF
11298 rm -f conftest$ac_exeext
11299 if { (ac_try="$ac_link"
11300 case "(($ac_try" in
11301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302   *) ac_try_echo=$ac_try;;
11303 esac
11304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305 $as_echo "$ac_try_echo") >&5
11306   (eval "$ac_link") 2>&5
11307   ac_status=$?
11308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11310   { (case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316   (eval "$ac_try") 2>&5
11317   ac_status=$?
11318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); }; }; then
11320   ac_cv_sizeof_void_p=`cat conftest.val`
11321 else
11322   $as_echo "$as_me: program exited with status $ac_status" >&5
11323 $as_echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326 ( exit $ac_status )
11327 if test "$ac_cv_type_void_p" = yes; then
11328      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11330 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
11331 See \`config.log' for more details." >&5
11332 $as_echo "$as_me: error: cannot compute sizeof (void *)
11333 See \`config.log' for more details." >&2;}
11334    { (exit 77); exit 77; }; }; }
11335    else
11336      ac_cv_sizeof_void_p=0
11337    fi
11338 fi
11339 rm -rf conftest.dSYM
11340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11341 fi
11342 rm -f conftest.val
11343 fi
11344 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
11345 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11346
11347
11348
11349 cat >>confdefs.h <<_ACEOF
11350 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11351 _ACEOF
11352
11353
11354
11355 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11356 $as_echo_n "checking for size_t... " >&6; }
11357 if test "${ac_cv_type_size_t+set}" = set; then
11358   $as_echo_n "(cached) " >&6
11359 else
11360   ac_cv_type_size_t=no
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h.  */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h.  */
11367 $ac_includes_default
11368 int
11369 main ()
11370 {
11371 if (sizeof (size_t))
11372        return 0;
11373   ;
11374   return 0;
11375 }
11376 _ACEOF
11377 rm -f conftest.$ac_objext
11378 if { (ac_try="$ac_compile"
11379 case "(($ac_try" in
11380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381   *) ac_try_echo=$ac_try;;
11382 esac
11383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384 $as_echo "$ac_try_echo") >&5
11385   (eval "$ac_compile") 2>conftest.er1
11386   ac_status=$?
11387   grep -v '^ *+' conftest.er1 >conftest.err
11388   rm -f conftest.er1
11389   cat conftest.err >&5
11390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); } && {
11392          test -z "$ac_c_werror_flag" ||
11393          test ! -s conftest.err
11394        } && test -s conftest.$ac_objext; then
11395   cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h.  */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h.  */
11401 $ac_includes_default
11402 int
11403 main ()
11404 {
11405 if (sizeof ((size_t)))
11406           return 0;
11407   ;
11408   return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext
11412 if { (ac_try="$ac_compile"
11413 case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11418 $as_echo "$ac_try_echo") >&5
11419   (eval "$ac_compile") 2>conftest.er1
11420   ac_status=$?
11421   grep -v '^ *+' conftest.er1 >conftest.err
11422   rm -f conftest.er1
11423   cat conftest.err >&5
11424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } && {
11426          test -z "$ac_c_werror_flag" ||
11427          test ! -s conftest.err
11428        } && test -s conftest.$ac_objext; then
11429   :
11430 else
11431   $as_echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11433
11434         ac_cv_type_size_t=yes
11435 fi
11436
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11438 else
11439   $as_echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11441
11442
11443 fi
11444
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446 fi
11447 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11448 $as_echo "$ac_cv_type_size_t" >&6; }
11449 if test "x$ac_cv_type_size_t" = x""yes; then
11450   :
11451 else
11452
11453 cat >>confdefs.h <<_ACEOF
11454 #define size_t unsigned int
11455 _ACEOF
11456
11457 fi
11458
11459 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11460 $as_echo_n "checking for pid_t... " >&6; }
11461 if test "${ac_cv_type_pid_t+set}" = set; then
11462   $as_echo_n "(cached) " >&6
11463 else
11464   ac_cv_type_pid_t=no
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h.  */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h.  */
11471 $ac_includes_default
11472 int
11473 main ()
11474 {
11475 if (sizeof (pid_t))
11476        return 0;
11477   ;
11478   return 0;
11479 }
11480 _ACEOF
11481 rm -f conftest.$ac_objext
11482 if { (ac_try="$ac_compile"
11483 case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11488 $as_echo "$ac_try_echo") >&5
11489   (eval "$ac_compile") 2>conftest.er1
11490   ac_status=$?
11491   grep -v '^ *+' conftest.er1 >conftest.err
11492   rm -f conftest.er1
11493   cat conftest.err >&5
11494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); } && {
11496          test -z "$ac_c_werror_flag" ||
11497          test ! -s conftest.err
11498        } && test -s conftest.$ac_objext; then
11499   cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h.  */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h.  */
11505 $ac_includes_default
11506 int
11507 main ()
11508 {
11509 if (sizeof ((pid_t)))
11510           return 0;
11511   ;
11512   return 0;
11513 }
11514 _ACEOF
11515 rm -f conftest.$ac_objext
11516 if { (ac_try="$ac_compile"
11517 case "(($ac_try" in
11518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519   *) ac_try_echo=$ac_try;;
11520 esac
11521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11522 $as_echo "$ac_try_echo") >&5
11523   (eval "$ac_compile") 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } && {
11530          test -z "$ac_c_werror_flag" ||
11531          test ! -s conftest.err
11532        } && test -s conftest.$ac_objext; then
11533   :
11534 else
11535   $as_echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538         ac_cv_type_pid_t=yes
11539 fi
11540
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 else
11543   $as_echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11545
11546
11547 fi
11548
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 fi
11551 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11552 $as_echo "$ac_cv_type_pid_t" >&6; }
11553 if test "x$ac_cv_type_pid_t" = x""yes; then
11554   :
11555 else
11556
11557 cat >>confdefs.h <<_ACEOF
11558 #define pid_t int
11559 _ACEOF
11560
11561 fi
11562
11563 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11564 $as_echo_n "checking for uint32_t... " >&6; }
11565 if test "${ac_cv_type_uint32_t+set}" = set; then
11566   $as_echo_n "(cached) " >&6
11567 else
11568   ac_cv_type_uint32_t=no
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 $ac_includes_default
11576 int
11577 main ()
11578 {
11579 if (sizeof (uint32_t))
11580        return 0;
11581   ;
11582   return 0;
11583 }
11584 _ACEOF
11585 rm -f conftest.$ac_objext
11586 if { (ac_try="$ac_compile"
11587 case "(($ac_try" in
11588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589   *) ac_try_echo=$ac_try;;
11590 esac
11591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11592 $as_echo "$ac_try_echo") >&5
11593   (eval "$ac_compile") 2>conftest.er1
11594   ac_status=$?
11595   grep -v '^ *+' conftest.er1 >conftest.err
11596   rm -f conftest.er1
11597   cat conftest.err >&5
11598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } && {
11600          test -z "$ac_c_werror_flag" ||
11601          test ! -s conftest.err
11602        } && test -s conftest.$ac_objext; then
11603   cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h.  */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h.  */
11609 $ac_includes_default
11610 int
11611 main ()
11612 {
11613 if (sizeof ((uint32_t)))
11614           return 0;
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (ac_try="$ac_compile"
11621 case "(($ac_try" in
11622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623   *) ac_try_echo=$ac_try;;
11624 esac
11625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11626 $as_echo "$ac_try_echo") >&5
11627   (eval "$ac_compile") 2>conftest.er1
11628   ac_status=$?
11629   grep -v '^ *+' conftest.er1 >conftest.err
11630   rm -f conftest.er1
11631   cat conftest.err >&5
11632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); } && {
11634          test -z "$ac_c_werror_flag" ||
11635          test ! -s conftest.err
11636        } && test -s conftest.$ac_objext; then
11637   :
11638 else
11639   $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642         ac_cv_type_uint32_t=yes
11643 fi
11644
11645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11646 else
11647   $as_echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650
11651 fi
11652
11653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11654 fi
11655 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11656 $as_echo "$ac_cv_type_uint32_t" >&6; }
11657 if test "x$ac_cv_type_uint32_t" = x""yes; then
11658
11659 cat >>confdefs.h <<_ACEOF
11660 #define HAVE_UINT32_T 1
11661 _ACEOF
11662
11663
11664 fi
11665 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11666 $as_echo_n "checking for uintptr_t... " >&6; }
11667 if test "${ac_cv_type_uintptr_t+set}" = set; then
11668   $as_echo_n "(cached) " >&6
11669 else
11670   ac_cv_type_uintptr_t=no
11671 cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h.  */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h.  */
11677 $ac_includes_default
11678 int
11679 main ()
11680 {
11681 if (sizeof (uintptr_t))
11682        return 0;
11683   ;
11684   return 0;
11685 }
11686 _ACEOF
11687 rm -f conftest.$ac_objext
11688 if { (ac_try="$ac_compile"
11689 case "(($ac_try" in
11690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691   *) ac_try_echo=$ac_try;;
11692 esac
11693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11694 $as_echo "$ac_try_echo") >&5
11695   (eval "$ac_compile") 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } && {
11702          test -z "$ac_c_werror_flag" ||
11703          test ! -s conftest.err
11704        } && test -s conftest.$ac_objext; then
11705   cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h.  */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h.  */
11711 $ac_includes_default
11712 int
11713 main ()
11714 {
11715 if (sizeof ((uintptr_t)))
11716           return 0;
11717   ;
11718   return 0;
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext
11722 if { (ac_try="$ac_compile"
11723 case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11728 $as_echo "$ac_try_echo") >&5
11729   (eval "$ac_compile") 2>conftest.er1
11730   ac_status=$?
11731   grep -v '^ *+' conftest.er1 >conftest.err
11732   rm -f conftest.er1
11733   cat conftest.err >&5
11734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); } && {
11736          test -z "$ac_c_werror_flag" ||
11737          test ! -s conftest.err
11738        } && test -s conftest.$ac_objext; then
11739   :
11740 else
11741   $as_echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744         ac_cv_type_uintptr_t=yes
11745 fi
11746
11747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748 else
11749   $as_echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752
11753 fi
11754
11755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756 fi
11757 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11758 $as_echo "$ac_cv_type_uintptr_t" >&6; }
11759 if test "x$ac_cv_type_uintptr_t" = x""yes; then
11760
11761 cat >>confdefs.h <<_ACEOF
11762 #define HAVE_UINTPTR_T 1
11763 _ACEOF
11764
11765
11766 fi
11767 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11768 $as_echo_n "checking for intptr_t... " >&6; }
11769 if test "${ac_cv_type_intptr_t+set}" = set; then
11770   $as_echo_n "(cached) " >&6
11771 else
11772   ac_cv_type_intptr_t=no
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h.  */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h.  */
11779 $ac_includes_default
11780 int
11781 main ()
11782 {
11783 if (sizeof (intptr_t))
11784        return 0;
11785   ;
11786   return 0;
11787 }
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793   *) ac_try_echo=$ac_try;;
11794 esac
11795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11796 $as_echo "$ac_try_echo") >&5
11797   (eval "$ac_compile") 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } && {
11804          test -z "$ac_c_werror_flag" ||
11805          test ! -s conftest.err
11806        } && test -s conftest.$ac_objext; then
11807   cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 $ac_includes_default
11814 int
11815 main ()
11816 {
11817 if (sizeof ((intptr_t)))
11818           return 0;
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831   (eval "$ac_compile") 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } && {
11838          test -z "$ac_c_werror_flag" ||
11839          test ! -s conftest.err
11840        } && test -s conftest.$ac_objext; then
11841   :
11842 else
11843   $as_echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846         ac_cv_type_intptr_t=yes
11847 fi
11848
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 else
11851   $as_echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854
11855 fi
11856
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 fi
11859 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11860 $as_echo "$ac_cv_type_intptr_t" >&6; }
11861 if test "x$ac_cv_type_intptr_t" = x""yes; then
11862
11863 cat >>confdefs.h <<_ACEOF
11864 #define HAVE_INTPTR_T 1
11865 _ACEOF
11866
11867
11868 fi
11869 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11870 $as_echo_n "checking for int64_t... " >&6; }
11871 if test "${ac_cv_type_int64_t+set}" = set; then
11872   $as_echo_n "(cached) " >&6
11873 else
11874   ac_cv_type_int64_t=no
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h.  */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h.  */
11881 $ac_includes_default
11882 int
11883 main ()
11884 {
11885 if (sizeof (int64_t))
11886        return 0;
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895   *) ac_try_echo=$ac_try;;
11896 esac
11897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11898 $as_echo "$ac_try_echo") >&5
11899   (eval "$ac_compile") 2>conftest.er1
11900   ac_status=$?
11901   grep -v '^ *+' conftest.er1 >conftest.err
11902   rm -f conftest.er1
11903   cat conftest.err >&5
11904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); } && {
11906          test -z "$ac_c_werror_flag" ||
11907          test ! -s conftest.err
11908        } && test -s conftest.$ac_objext; then
11909   cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 $ac_includes_default
11916 int
11917 main ()
11918 {
11919 if (sizeof ((int64_t)))
11920           return 0;
11921   ;
11922   return 0;
11923 }
11924 _ACEOF
11925 rm -f conftest.$ac_objext
11926 if { (ac_try="$ac_compile"
11927 case "(($ac_try" in
11928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929   *) ac_try_echo=$ac_try;;
11930 esac
11931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11932 $as_echo "$ac_try_echo") >&5
11933   (eval "$ac_compile") 2>conftest.er1
11934   ac_status=$?
11935   grep -v '^ *+' conftest.er1 >conftest.err
11936   rm -f conftest.er1
11937   cat conftest.err >&5
11938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); } && {
11940          test -z "$ac_c_werror_flag" ||
11941          test ! -s conftest.err
11942        } && test -s conftest.$ac_objext; then
11943   :
11944 else
11945   $as_echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11947
11948         ac_cv_type_int64_t=yes
11949 fi
11950
11951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11952 else
11953   $as_echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956
11957 fi
11958
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 fi
11961 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11962 $as_echo "$ac_cv_type_int64_t" >&6; }
11963 if test "x$ac_cv_type_int64_t" = x""yes; then
11964
11965 cat >>confdefs.h <<_ACEOF
11966 #define HAVE_INT64_T 1
11967 _ACEOF
11968
11969
11970 fi
11971
11972 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
11973 $as_echo_n "checking for sig_atomic_t... " >&6; }
11974 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
11975   $as_echo_n "(cached) " >&6
11976 else
11977   ac_cv_type_sig_atomic_t=no
11978 cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h.  */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h.  */
11984
11985 #include <stdio.h>
11986 #include <sys/types.h>
11987 #if HAVE_INTTYPES_H
11988 # include <inttypes.h>
11989 #endif
11990 #include <signal.h>
11991
11992
11993 int
11994 main ()
11995 {
11996 if (sizeof (sig_atomic_t))
11997        return 0;
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010   (eval "$ac_compile") 2>conftest.er1
12011   ac_status=$?
12012   grep -v '^ *+' conftest.er1 >conftest.err
12013   rm -f conftest.er1
12014   cat conftest.err >&5
12015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); } && {
12017          test -z "$ac_c_werror_flag" ||
12018          test ! -s conftest.err
12019        } && test -s conftest.$ac_objext; then
12020   cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h.  */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h.  */
12026
12027 #include <stdio.h>
12028 #include <sys/types.h>
12029 #if HAVE_INTTYPES_H
12030 # include <inttypes.h>
12031 #endif
12032 #include <signal.h>
12033
12034
12035 int
12036 main ()
12037 {
12038 if (sizeof ((sig_atomic_t)))
12039           return 0;
12040   ;
12041   return 0;
12042 }
12043 _ACEOF
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048   *) ac_try_echo=$ac_try;;
12049 esac
12050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12051 $as_echo "$ac_try_echo") >&5
12052   (eval "$ac_compile") 2>conftest.er1
12053   ac_status=$?
12054   grep -v '^ *+' conftest.er1 >conftest.err
12055   rm -f conftest.er1
12056   cat conftest.err >&5
12057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); } && {
12059          test -z "$ac_c_werror_flag" ||
12060          test ! -s conftest.err
12061        } && test -s conftest.$ac_objext; then
12062   :
12063 else
12064   $as_echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12066
12067         ac_cv_type_sig_atomic_t=yes
12068 fi
12069
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 else
12072   $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075
12076 fi
12077
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 fi
12080 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12081 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
12082 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
12083
12084 cat >>confdefs.h <<_ACEOF
12085 #define HAVE_SIG_ATOMIC_T 1
12086 _ACEOF
12087
12088
12089 fi
12090
12091
12092 # gnulib
12093
12094
12095
12096
12097
12098
12099
12100 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12101 # for constant arguments.  Useless!
12102 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12103 $as_echo_n "checking for working alloca.h... " >&6; }
12104 if test "${ac_cv_working_alloca_h+set}" = set; then
12105   $as_echo_n "(cached) " >&6
12106 else
12107   cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h.  */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h.  */
12113 #include <alloca.h>
12114 int
12115 main ()
12116 {
12117 char *p = (char *) alloca (2 * sizeof (int));
12118                           if (p) return 0;
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127   *) ac_try_echo=$ac_try;;
12128 esac
12129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12130 $as_echo "$ac_try_echo") >&5
12131   (eval "$ac_link") 2>conftest.er1
12132   ac_status=$?
12133   grep -v '^ *+' conftest.er1 >conftest.err
12134   rm -f conftest.er1
12135   cat conftest.err >&5
12136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } && {
12138          test -z "$ac_c_werror_flag" ||
12139          test ! -s conftest.err
12140        } && test -s conftest$ac_exeext && {
12141          test "$cross_compiling" = yes ||
12142          $as_test_x conftest$ac_exeext
12143        }; then
12144   ac_cv_working_alloca_h=yes
12145 else
12146   $as_echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149         ac_cv_working_alloca_h=no
12150 fi
12151
12152 rm -rf conftest.dSYM
12153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154       conftest$ac_exeext conftest.$ac_ext
12155 fi
12156 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12157 $as_echo "$ac_cv_working_alloca_h" >&6; }
12158 if test $ac_cv_working_alloca_h = yes; then
12159
12160 cat >>confdefs.h <<\_ACEOF
12161 #define HAVE_ALLOCA_H 1
12162 _ACEOF
12163
12164 fi
12165
12166 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12167 $as_echo_n "checking for alloca... " >&6; }
12168 if test "${ac_cv_func_alloca_works+set}" = set; then
12169   $as_echo_n "(cached) " >&6
12170 else
12171   cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h.  */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h.  */
12177 #ifdef __GNUC__
12178 # define alloca __builtin_alloca
12179 #else
12180 # ifdef _MSC_VER
12181 #  include <malloc.h>
12182 #  define alloca _alloca
12183 # else
12184 #  ifdef HAVE_ALLOCA_H
12185 #   include <alloca.h>
12186 #  else
12187 #   ifdef _AIX
12188  #pragma alloca
12189 #   else
12190 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12191 char *alloca ();
12192 #    endif
12193 #   endif
12194 #  endif
12195 # endif
12196 #endif
12197
12198 int
12199 main ()
12200 {
12201 char *p = (char *) alloca (1);
12202                                     if (p) return 0;
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211   *) ac_try_echo=$ac_try;;
12212 esac
12213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214 $as_echo "$ac_try_echo") >&5
12215   (eval "$ac_link") 2>conftest.er1
12216   ac_status=$?
12217   grep -v '^ *+' conftest.er1 >conftest.err
12218   rm -f conftest.er1
12219   cat conftest.err >&5
12220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } && {
12222          test -z "$ac_c_werror_flag" ||
12223          test ! -s conftest.err
12224        } && test -s conftest$ac_exeext && {
12225          test "$cross_compiling" = yes ||
12226          $as_test_x conftest$ac_exeext
12227        }; then
12228   ac_cv_func_alloca_works=yes
12229 else
12230   $as_echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233         ac_cv_func_alloca_works=no
12234 fi
12235
12236 rm -rf conftest.dSYM
12237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12238       conftest$ac_exeext conftest.$ac_ext
12239 fi
12240 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12241 $as_echo "$ac_cv_func_alloca_works" >&6; }
12242
12243 if test $ac_cv_func_alloca_works = yes; then
12244
12245 cat >>confdefs.h <<\_ACEOF
12246 #define HAVE_ALLOCA 1
12247 _ACEOF
12248
12249 else
12250   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12251 # that cause trouble.  Some versions do not even contain alloca or
12252 # contain a buggy version.  If you still want to use their alloca,
12253 # use ar to extract alloca.o from them instead of compiling alloca.c.
12254
12255
12256
12257
12258
12259 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12260
12261 cat >>confdefs.h <<\_ACEOF
12262 #define C_ALLOCA 1
12263 _ACEOF
12264
12265
12266 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12267 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12268 if test "${ac_cv_os_cray+set}" = set; then
12269   $as_echo_n "(cached) " >&6
12270 else
12271   cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h.  */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h.  */
12277 #if defined CRAY && ! defined CRAY2
12278 webecray
12279 #else
12280 wenotbecray
12281 #endif
12282
12283 _ACEOF
12284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12285   $EGREP "webecray" >/dev/null 2>&1; then
12286   ac_cv_os_cray=yes
12287 else
12288   ac_cv_os_cray=no
12289 fi
12290 rm -f conftest*
12291
12292 fi
12293 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12294 $as_echo "$ac_cv_os_cray" >&6; }
12295 if test $ac_cv_os_cray = yes; then
12296   for ac_func in _getb67 GETB67 getb67; do
12297     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12298 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12299 $as_echo_n "checking for $ac_func... " >&6; }
12300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12301   $as_echo_n "(cached) " >&6
12302 else
12303   cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h.  */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h.  */
12309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12311 #define $ac_func innocuous_$ac_func
12312
12313 /* System header to define __stub macros and hopefully few prototypes,
12314     which can conflict with char $ac_func (); below.
12315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12316     <limits.h> exists even on freestanding compilers.  */
12317
12318 #ifdef __STDC__
12319 # include <limits.h>
12320 #else
12321 # include <assert.h>
12322 #endif
12323
12324 #undef $ac_func
12325
12326 /* Override any GCC internal prototype to avoid an error.
12327    Use char because int might match the return type of a GCC
12328    builtin and then its argument prototype would still apply.  */
12329 #ifdef __cplusplus
12330 extern "C"
12331 #endif
12332 char $ac_func ();
12333 /* The GNU C library defines this for functions which it implements
12334     to always fail with ENOSYS.  Some functions are actually named
12335     something starting with __ and the normal name is an alias.  */
12336 #if defined __stub_$ac_func || defined __stub___$ac_func
12337 choke me
12338 #endif
12339
12340 int
12341 main ()
12342 {
12343 return $ac_func ();
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (ac_try="$ac_link"
12350 case "(($ac_try" in
12351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352   *) ac_try_echo=$ac_try;;
12353 esac
12354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12355 $as_echo "$ac_try_echo") >&5
12356   (eval "$ac_link") 2>conftest.er1
12357   ac_status=$?
12358   grep -v '^ *+' conftest.er1 >conftest.err
12359   rm -f conftest.er1
12360   cat conftest.err >&5
12361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } && {
12363          test -z "$ac_c_werror_flag" ||
12364          test ! -s conftest.err
12365        } && test -s conftest$ac_exeext && {
12366          test "$cross_compiling" = yes ||
12367          $as_test_x conftest$ac_exeext
12368        }; then
12369   eval "$as_ac_var=yes"
12370 else
12371   $as_echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374         eval "$as_ac_var=no"
12375 fi
12376
12377 rm -rf conftest.dSYM
12378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12379       conftest$ac_exeext conftest.$ac_ext
12380 fi
12381 ac_res=`eval 'as_val=${'$as_ac_var'}
12382                  $as_echo "$as_val"'`
12383                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12384 $as_echo "$ac_res" >&6; }
12385 as_val=`eval 'as_val=${'$as_ac_var'}
12386                  $as_echo "$as_val"'`
12387    if test "x$as_val" = x""yes; then
12388
12389 cat >>confdefs.h <<_ACEOF
12390 #define CRAY_STACKSEG_END $ac_func
12391 _ACEOF
12392
12393     break
12394 fi
12395
12396   done
12397 fi
12398
12399 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12400 $as_echo_n "checking stack direction for C alloca... " >&6; }
12401 if test "${ac_cv_c_stack_direction+set}" = set; then
12402   $as_echo_n "(cached) " >&6
12403 else
12404   if test "$cross_compiling" = yes; then
12405   ac_cv_c_stack_direction=0
12406 else
12407   cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h.  */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h.  */
12413 $ac_includes_default
12414 int
12415 find_stack_direction ()
12416 {
12417   static char *addr = 0;
12418   auto char dummy;
12419   if (addr == 0)
12420     {
12421       addr = &dummy;
12422       return find_stack_direction ();
12423     }
12424   else
12425     return (&dummy > addr) ? 1 : -1;
12426 }
12427
12428 int
12429 main ()
12430 {
12431   return find_stack_direction () < 0;
12432 }
12433 _ACEOF
12434 rm -f conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12441 $as_echo "$ac_try_echo") >&5
12442   (eval "$ac_link") 2>&5
12443   ac_status=$?
12444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12446   { (case "(($ac_try" in
12447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448   *) ac_try_echo=$ac_try;;
12449 esac
12450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12451 $as_echo "$ac_try_echo") >&5
12452   (eval "$ac_try") 2>&5
12453   ac_status=$?
12454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); }; }; then
12456   ac_cv_c_stack_direction=1
12457 else
12458   $as_echo "$as_me: program exited with status $ac_status" >&5
12459 $as_echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 ( exit $ac_status )
12463 ac_cv_c_stack_direction=-1
12464 fi
12465 rm -rf conftest.dSYM
12466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12467 fi
12468
12469
12470 fi
12471 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12472 $as_echo "$ac_cv_c_stack_direction" >&6; }
12473
12474 cat >>confdefs.h <<_ACEOF
12475 #define STACK_DIRECTION $ac_cv_c_stack_direction
12476 _ACEOF
12477
12478
12479 fi
12480
12481
12482
12483   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
12484 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12485 if test "${gl_cv_have_include_next+set}" = set; then
12486   $as_echo_n "(cached) " >&6
12487 else
12488   rm -rf conftestd1a conftestd1b conftestd2
12489      mkdir conftestd1a conftestd1b conftestd2
12490                                                   cat <<EOF > conftestd1a/conftest.h
12491 #define DEFINED_IN_CONFTESTD1
12492 #include_next <conftest.h>
12493 #ifdef DEFINED_IN_CONFTESTD2
12494 int foo;
12495 #else
12496 #error "include_next doesn't work"
12497 #endif
12498 EOF
12499      cat <<EOF > conftestd1b/conftest.h
12500 #define DEFINED_IN_CONFTESTD1
12501 #include <stdio.h>
12502 #include_next <conftest.h>
12503 #ifdef DEFINED_IN_CONFTESTD2
12504 int foo;
12505 #else
12506 #error "include_next doesn't work"
12507 #endif
12508 EOF
12509      cat <<EOF > conftestd2/conftest.h
12510 #ifndef DEFINED_IN_CONFTESTD1
12511 #error "include_next test doesn't work"
12512 #endif
12513 #define DEFINED_IN_CONFTESTD2
12514 EOF
12515      gl_save_CPPFLAGS="$CPPFLAGS"
12516      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12517      cat >conftest.$ac_ext <<_ACEOF
12518 #include <conftest.h>
12519 _ACEOF
12520 rm -f conftest.$ac_objext
12521 if { (ac_try="$ac_compile"
12522 case "(($ac_try" in
12523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524   *) ac_try_echo=$ac_try;;
12525 esac
12526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12527 $as_echo "$ac_try_echo") >&5
12528   (eval "$ac_compile") 2>conftest.er1
12529   ac_status=$?
12530   grep -v '^ *+' conftest.er1 >conftest.err
12531   rm -f conftest.er1
12532   cat conftest.err >&5
12533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); } && {
12535          test -z "$ac_c_werror_flag" ||
12536          test ! -s conftest.err
12537        } && test -s conftest.$ac_objext; then
12538   gl_cv_have_include_next=yes
12539 else
12540   $as_echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543         CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12544         cat >conftest.$ac_ext <<_ACEOF
12545 #include <conftest.h>
12546 _ACEOF
12547 rm -f conftest.$ac_objext
12548 if { (ac_try="$ac_compile"
12549 case "(($ac_try" in
12550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551   *) ac_try_echo=$ac_try;;
12552 esac
12553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12554 $as_echo "$ac_try_echo") >&5
12555   (eval "$ac_compile") 2>conftest.er1
12556   ac_status=$?
12557   grep -v '^ *+' conftest.er1 >conftest.err
12558   rm -f conftest.er1
12559   cat conftest.err >&5
12560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); } && {
12562          test -z "$ac_c_werror_flag" ||
12563          test ! -s conftest.err
12564        } && test -s conftest.$ac_objext; then
12565   gl_cv_have_include_next=buggy
12566 else
12567   $as_echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12569
12570         gl_cv_have_include_next=no
12571 fi
12572
12573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574
12575 fi
12576
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578      CPPFLAGS="$gl_save_CPPFLAGS"
12579      rm -rf conftestd1a conftestd1b conftestd2
12580
12581 fi
12582 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
12583 $as_echo "$gl_cv_have_include_next" >&6; }
12584   PRAGMA_SYSTEM_HEADER=
12585   if test $gl_cv_have_include_next = yes; then
12586     INCLUDE_NEXT=include_next
12587     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12588     if test -n "$GCC"; then
12589       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12590     fi
12591   else
12592     if test $gl_cv_have_include_next = buggy; then
12593       INCLUDE_NEXT=include
12594       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12595     else
12596       INCLUDE_NEXT=include
12597       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12598     fi
12599   fi
12600
12601
12602
12603
12604
12605
12606
12607
12608 for ac_header in $ac_header_list
12609 do
12610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12612   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12613 $as_echo_n "checking for $ac_header... " >&6; }
12614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12615   $as_echo_n "(cached) " >&6
12616 fi
12617 ac_res=`eval 'as_val=${'$as_ac_Header'}
12618                  $as_echo "$as_val"'`
12619                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12620 $as_echo "$ac_res" >&6; }
12621 else
12622   # Is the header compilable?
12623 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12624 $as_echo_n "checking $ac_header usability... " >&6; }
12625 cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h.  */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h.  */
12631 $ac_includes_default
12632 #include <$ac_header>
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (ac_try="$ac_compile"
12636 case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641 $as_echo "$ac_try_echo") >&5
12642   (eval "$ac_compile") 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } && {
12649          test -z "$ac_c_werror_flag" ||
12650          test ! -s conftest.err
12651        } && test -s conftest.$ac_objext; then
12652   ac_header_compiler=yes
12653 else
12654   $as_echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657         ac_header_compiler=no
12658 fi
12659
12660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12662 $as_echo "$ac_header_compiler" >&6; }
12663
12664 # Is the header present?
12665 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12666 $as_echo_n "checking $ac_header presence... " >&6; }
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673 #include <$ac_header>
12674 _ACEOF
12675 if { (ac_try="$ac_cpp conftest.$ac_ext"
12676 case "(($ac_try" in
12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678   *) ac_try_echo=$ac_try;;
12679 esac
12680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12681 $as_echo "$ac_try_echo") >&5
12682   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12683   ac_status=$?
12684   grep -v '^ *+' conftest.er1 >conftest.err
12685   rm -f conftest.er1
12686   cat conftest.err >&5
12687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); } >/dev/null && {
12689          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12690          test ! -s conftest.err
12691        }; then
12692   ac_header_preproc=yes
12693 else
12694   $as_echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697   ac_header_preproc=no
12698 fi
12699
12700 rm -f conftest.err conftest.$ac_ext
12701 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12702 $as_echo "$ac_header_preproc" >&6; }
12703
12704 # So?  What about this header?
12705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12706   yes:no: )
12707     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12708 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12709     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12710 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12711     ac_header_preproc=yes
12712     ;;
12713   no:yes:* )
12714     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12715 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12716     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12717 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12718     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12719 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12720     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12721 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12722     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12724     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12725 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12726     ( cat <<\_ASBOX
12727 ## ------------------------------- ##
12728 ## Report this to bug-wget@gnu.org ##
12729 ## ------------------------------- ##
12730 _ASBOX
12731      ) | sed "s/^/$as_me: WARNING:     /" >&2
12732     ;;
12733 esac
12734 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12735 $as_echo_n "checking for $ac_header... " >&6; }
12736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12737   $as_echo_n "(cached) " >&6
12738 else
12739   eval "$as_ac_Header=\$ac_header_preproc"
12740 fi
12741 ac_res=`eval 'as_val=${'$as_ac_Header'}
12742                  $as_echo "$as_val"'`
12743                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12744 $as_echo "$ac_res" >&6; }
12745
12746 fi
12747 as_val=`eval 'as_val=${'$as_ac_Header'}
12748                  $as_echo "$as_val"'`
12749    if test "x$as_val" = x""yes; then
12750   cat >>confdefs.h <<_ACEOF
12751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12752 _ACEOF
12753
12754 fi
12755
12756 done
12757
12758
12759
12760
12761
12762   { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12763 $as_echo_n "checking for complete errno.h... " >&6; }
12764 if test "${gl_cv_header_errno_h_complete+set}" = set; then
12765   $as_echo_n "(cached) " >&6
12766 else
12767
12768     cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h.  */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h.  */
12774
12775 #include <errno.h>
12776 #if !defined ENOMSG
12777 booboo
12778 #endif
12779 #if !defined EIDRM
12780 booboo
12781 #endif
12782 #if !defined ENOLINK
12783 booboo
12784 #endif
12785 #if !defined EPROTO
12786 booboo
12787 #endif
12788 #if !defined EMULTIHOP
12789 booboo
12790 #endif
12791 #if !defined EBADMSG
12792 booboo
12793 #endif
12794 #if !defined EOVERFLOW
12795 booboo
12796 #endif
12797 #if !defined ENOTSUP
12798 booboo
12799 #endif
12800 #if !defined ESTALE
12801 booboo
12802 #endif
12803 #if !defined ECANCELED
12804 booboo
12805 #endif
12806
12807 _ACEOF
12808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12809   $EGREP "booboo" >/dev/null 2>&1; then
12810   gl_cv_header_errno_h_complete=no
12811 else
12812   gl_cv_header_errno_h_complete=yes
12813 fi
12814 rm -f conftest*
12815
12816
12817 fi
12818 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12819 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12820   if test $gl_cv_header_errno_h_complete = yes; then
12821     ERRNO_H=''
12822   else
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834      if test $gl_cv_have_include_next = yes; then
12835        gl_cv_next_errno_h='<'errno.h'>'
12836      else
12837        { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12838 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12839 if test "${gl_cv_next_errno_h+set}" = set; then
12840   $as_echo_n "(cached) " >&6
12841 else
12842
12843           if test $ac_cv_header_errno_h = yes; then
12844             cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850 #include <errno.h>
12851
12852 _ACEOF
12853                                                                     case "$host_os" in
12854               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12855               *)    gl_absname_cpp="$ac_cpp" ;;
12856             esac
12857                                     gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12858                sed -n '\#/errno.h#{
12859                  s#.*"\(.*/errno.h\)".*#\1#
12860                  s#^/[^/]#//&#
12861                  p
12862                  q
12863                }'`'"'
12864           else
12865             gl_cv_next_errno_h='<'errno.h'>'
12866           fi
12867
12868 fi
12869 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12870 $as_echo "$gl_cv_next_errno_h" >&6; }
12871      fi
12872      NEXT_ERRNO_H=$gl_cv_next_errno_h
12873
12874      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12875        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12876        gl_next_as_first_directive='<'errno.h'>'
12877      else
12878        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12879        gl_next_as_first_directive=$gl_cv_next_errno_h
12880      fi
12881      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12882
12883
12884
12885     ERRNO_H='errno.h'
12886   fi
12887
12888
12889   if test -n "$ERRNO_H"; then
12890     { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12891 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12892 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12893   $as_echo_n "(cached) " >&6
12894 else
12895
12896       cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902
12903 #include <errno.h>
12904 #ifdef EMULTIHOP
12905 yes
12906 #endif
12907
12908 _ACEOF
12909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12910   $EGREP "yes" >/dev/null 2>&1; then
12911   gl_cv_header_errno_h_EMULTIHOP=yes
12912 else
12913   gl_cv_header_errno_h_EMULTIHOP=no
12914 fi
12915 rm -f conftest*
12916
12917       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12918         cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h.  */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h.  */
12924
12925 #define _XOPEN_SOURCE_EXTENDED 1
12926 #include <errno.h>
12927 #ifdef EMULTIHOP
12928 yes
12929 #endif
12930
12931 _ACEOF
12932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12933   $EGREP "yes" >/dev/null 2>&1; then
12934   gl_cv_header_errno_h_EMULTIHOP=hidden
12935 fi
12936 rm -f conftest*
12937
12938         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12939                               if test "$cross_compiling" = yes; then
12940   # Depending upon the size, compute the lo and hi bounds.
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947
12948 #define _XOPEN_SOURCE_EXTENDED 1
12949 #include <errno.h>
12950 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12951 #include <stdio.h>
12952 #include <stdlib.h>
12953
12954 int
12955 main ()
12956 {
12957 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12958 test_array [0] = 0
12959
12960   ;
12961   return 0;
12962 }
12963 _ACEOF
12964 rm -f conftest.$ac_objext
12965 if { (ac_try="$ac_compile"
12966 case "(($ac_try" in
12967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968   *) ac_try_echo=$ac_try;;
12969 esac
12970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12971 $as_echo "$ac_try_echo") >&5
12972   (eval "$ac_compile") 2>conftest.er1
12973   ac_status=$?
12974   grep -v '^ *+' conftest.er1 >conftest.err
12975   rm -f conftest.er1
12976   cat conftest.err >&5
12977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); } && {
12979          test -z "$ac_c_werror_flag" ||
12980          test ! -s conftest.err
12981        } && test -s conftest.$ac_objext; then
12982   ac_lo=0 ac_mid=0
12983   while :; do
12984     cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h.  */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h.  */
12990
12991 #define _XOPEN_SOURCE_EXTENDED 1
12992 #include <errno.h>
12993 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12994 #include <stdio.h>
12995 #include <stdlib.h>
12996
12997 int
12998 main ()
12999 {
13000 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13001 test_array [0] = 0
13002
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13014 $as_echo "$ac_try_echo") >&5
13015   (eval "$ac_compile") 2>conftest.er1
13016   ac_status=$?
13017   grep -v '^ *+' conftest.er1 >conftest.err
13018   rm -f conftest.er1
13019   cat conftest.err >&5
13020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); } && {
13022          test -z "$ac_c_werror_flag" ||
13023          test ! -s conftest.err
13024        } && test -s conftest.$ac_objext; then
13025   ac_hi=$ac_mid; break
13026 else
13027   $as_echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030         ac_lo=`expr $ac_mid + 1`
13031                         if test $ac_lo -le $ac_mid; then
13032                           ac_lo= ac_hi=
13033                           break
13034                         fi
13035                         ac_mid=`expr 2 '*' $ac_mid + 1`
13036 fi
13037
13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039   done
13040 else
13041   $as_echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044         cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050
13051 #define _XOPEN_SOURCE_EXTENDED 1
13052 #include <errno.h>
13053 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13054 #include <stdio.h>
13055 #include <stdlib.h>
13056
13057 int
13058 main ()
13059 {
13060 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
13061 test_array [0] = 0
13062
13063   ;
13064   return 0;
13065 }
13066 _ACEOF
13067 rm -f conftest.$ac_objext
13068 if { (ac_try="$ac_compile"
13069 case "(($ac_try" in
13070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071   *) ac_try_echo=$ac_try;;
13072 esac
13073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13074 $as_echo "$ac_try_echo") >&5
13075   (eval "$ac_compile") 2>conftest.er1
13076   ac_status=$?
13077   grep -v '^ *+' conftest.er1 >conftest.err
13078   rm -f conftest.er1
13079   cat conftest.err >&5
13080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } && {
13082          test -z "$ac_c_werror_flag" ||
13083          test ! -s conftest.err
13084        } && test -s conftest.$ac_objext; then
13085   ac_hi=-1 ac_mid=-1
13086   while :; do
13087     cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h.  */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h.  */
13093
13094 #define _XOPEN_SOURCE_EXTENDED 1
13095 #include <errno.h>
13096 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13097 #include <stdio.h>
13098 #include <stdlib.h>
13099
13100 int
13101 main ()
13102 {
13103 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
13104 test_array [0] = 0
13105
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext
13111 if { (ac_try="$ac_compile"
13112 case "(($ac_try" in
13113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114   *) ac_try_echo=$ac_try;;
13115 esac
13116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13117 $as_echo "$ac_try_echo") >&5
13118   (eval "$ac_compile") 2>conftest.er1
13119   ac_status=$?
13120   grep -v '^ *+' conftest.er1 >conftest.err
13121   rm -f conftest.er1
13122   cat conftest.err >&5
13123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); } && {
13125          test -z "$ac_c_werror_flag" ||
13126          test ! -s conftest.err
13127        } && test -s conftest.$ac_objext; then
13128   ac_lo=$ac_mid; break
13129 else
13130   $as_echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133         ac_hi=`expr '(' $ac_mid ')' - 1`
13134                         if test $ac_mid -le $ac_hi; then
13135                           ac_lo= ac_hi=
13136                           break
13137                         fi
13138                         ac_mid=`expr 2 '*' $ac_mid`
13139 fi
13140
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142   done
13143 else
13144   $as_echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147         ac_lo= ac_hi=
13148 fi
13149
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 fi
13152
13153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154 # Binary search between lo and hi bounds.
13155 while test "x$ac_lo" != "x$ac_hi"; do
13156   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13157   cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h.  */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h.  */
13163
13164 #define _XOPEN_SOURCE_EXTENDED 1
13165 #include <errno.h>
13166 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13167 #include <stdio.h>
13168 #include <stdlib.h>
13169
13170 int
13171 main ()
13172 {
13173 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13174 test_array [0] = 0
13175
13176   ;
13177   return 0;
13178 }
13179 _ACEOF
13180 rm -f conftest.$ac_objext
13181 if { (ac_try="$ac_compile"
13182 case "(($ac_try" in
13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184   *) ac_try_echo=$ac_try;;
13185 esac
13186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13187 $as_echo "$ac_try_echo") >&5
13188   (eval "$ac_compile") 2>conftest.er1
13189   ac_status=$?
13190   grep -v '^ *+' conftest.er1 >conftest.err
13191   rm -f conftest.er1
13192   cat conftest.err >&5
13193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); } && {
13195          test -z "$ac_c_werror_flag" ||
13196          test ! -s conftest.err
13197        } && test -s conftest.$ac_objext; then
13198   ac_hi=$ac_mid
13199 else
13200   $as_echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13202
13203         ac_lo=`expr '(' $ac_mid ')' + 1`
13204 fi
13205
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207 done
13208 case $ac_lo in
13209 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
13210 '')  ;;
13211 esac
13212 else
13213   cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219
13220 #define _XOPEN_SOURCE_EXTENDED 1
13221 #include <errno.h>
13222 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13223 #include <stdio.h>
13224 #include <stdlib.h>
13225
13226 static long int longval () { return EMULTIHOP; }
13227 static unsigned long int ulongval () { return EMULTIHOP; }
13228 #include <stdio.h>
13229 #include <stdlib.h>
13230 int
13231 main ()
13232 {
13233
13234   FILE *f = fopen ("conftest.val", "w");
13235   if (! f)
13236     return 1;
13237   if ((EMULTIHOP) < 0)
13238     {
13239       long int i = longval ();
13240       if (i != (EMULTIHOP))
13241         return 1;
13242       fprintf (f, "%ld", i);
13243     }
13244   else
13245     {
13246       unsigned long int i = ulongval ();
13247       if (i != (EMULTIHOP))
13248         return 1;
13249       fprintf (f, "%lu", i);
13250     }
13251   /* Do not output a trailing newline, as this causes \r\n confusion
13252      on some platforms.  */
13253   return ferror (f) || fclose (f) != 0;
13254
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13266 $as_echo "$ac_try_echo") >&5
13267   (eval "$ac_link") 2>&5
13268   ac_status=$?
13269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13271   { (case "(($ac_try" in
13272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273   *) ac_try_echo=$ac_try;;
13274 esac
13275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13276 $as_echo "$ac_try_echo") >&5
13277   (eval "$ac_try") 2>&5
13278   ac_status=$?
13279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; }; then
13281   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
13282 else
13283   $as_echo "$as_me: program exited with status $ac_status" >&5
13284 $as_echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287 fi
13288 rm -rf conftest.dSYM
13289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13290 fi
13291 rm -f conftest.val
13292         fi
13293       fi
13294
13295 fi
13296 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
13297 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
13298     case $gl_cv_header_errno_h_EMULTIHOP in
13299       yes | no)
13300         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
13301         ;;
13302       *)
13303         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
13304         ;;
13305     esac
13306
13307
13308   fi
13309
13310
13311   if test -n "$ERRNO_H"; then
13312     { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
13313 $as_echo_n "checking for ENOLINK value... " >&6; }
13314 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
13315   $as_echo_n "(cached) " >&6
13316 else
13317
13318       cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324
13325 #include <errno.h>
13326 #ifdef ENOLINK
13327 yes
13328 #endif
13329
13330 _ACEOF
13331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13332   $EGREP "yes" >/dev/null 2>&1; then
13333   gl_cv_header_errno_h_ENOLINK=yes
13334 else
13335   gl_cv_header_errno_h_ENOLINK=no
13336 fi
13337 rm -f conftest*
13338
13339       if test $gl_cv_header_errno_h_ENOLINK = no; then
13340         cat >conftest.$ac_ext <<_ACEOF
13341 /* confdefs.h.  */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h.  */
13346
13347 #define _XOPEN_SOURCE_EXTENDED 1
13348 #include <errno.h>
13349 #ifdef ENOLINK
13350 yes
13351 #endif
13352
13353 _ACEOF
13354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13355   $EGREP "yes" >/dev/null 2>&1; then
13356   gl_cv_header_errno_h_ENOLINK=hidden
13357 fi
13358 rm -f conftest*
13359
13360         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
13361                               if test "$cross_compiling" = yes; then
13362   # Depending upon the size, compute the lo and hi bounds.
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369
13370 #define _XOPEN_SOURCE_EXTENDED 1
13371 #include <errno.h>
13372 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13373 #include <stdio.h>
13374 #include <stdlib.h>
13375
13376 int
13377 main ()
13378 {
13379 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
13380 test_array [0] = 0
13381
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext
13387 if { (ac_try="$ac_compile"
13388 case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393 $as_echo "$ac_try_echo") >&5
13394   (eval "$ac_compile") 2>conftest.er1
13395   ac_status=$?
13396   grep -v '^ *+' conftest.er1 >conftest.err
13397   rm -f conftest.er1
13398   cat conftest.err >&5
13399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } && {
13401          test -z "$ac_c_werror_flag" ||
13402          test ! -s conftest.err
13403        } && test -s conftest.$ac_objext; then
13404   ac_lo=0 ac_mid=0
13405   while :; do
13406     cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412
13413 #define _XOPEN_SOURCE_EXTENDED 1
13414 #include <errno.h>
13415 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13416 #include <stdio.h>
13417 #include <stdlib.h>
13418
13419 int
13420 main ()
13421 {
13422 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13423 test_array [0] = 0
13424
13425   ;
13426   return 0;
13427 }
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (ac_try="$ac_compile"
13431 case "(($ac_try" in
13432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433   *) ac_try_echo=$ac_try;;
13434 esac
13435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13436 $as_echo "$ac_try_echo") >&5
13437   (eval "$ac_compile") 2>conftest.er1
13438   ac_status=$?
13439   grep -v '^ *+' conftest.er1 >conftest.err
13440   rm -f conftest.er1
13441   cat conftest.err >&5
13442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); } && {
13444          test -z "$ac_c_werror_flag" ||
13445          test ! -s conftest.err
13446        } && test -s conftest.$ac_objext; then
13447   ac_hi=$ac_mid; break
13448 else
13449   $as_echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452         ac_lo=`expr $ac_mid + 1`
13453                         if test $ac_lo -le $ac_mid; then
13454                           ac_lo= ac_hi=
13455                           break
13456                         fi
13457                         ac_mid=`expr 2 '*' $ac_mid + 1`
13458 fi
13459
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461   done
13462 else
13463   $as_echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13465
13466         cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h.  */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h.  */
13472
13473 #define _XOPEN_SOURCE_EXTENDED 1
13474 #include <errno.h>
13475 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13476 #include <stdio.h>
13477 #include <stdlib.h>
13478
13479 int
13480 main ()
13481 {
13482 static int test_array [1 - 2 * !((ENOLINK) < 0)];
13483 test_array [0] = 0
13484
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13496 $as_echo "$ac_try_echo") >&5
13497   (eval "$ac_compile") 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } && {
13504          test -z "$ac_c_werror_flag" ||
13505          test ! -s conftest.err
13506        } && test -s conftest.$ac_objext; then
13507   ac_hi=-1 ac_mid=-1
13508   while :; do
13509     cat >conftest.$ac_ext <<_ACEOF
13510 /* confdefs.h.  */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h.  */
13515
13516 #define _XOPEN_SOURCE_EXTENDED 1
13517 #include <errno.h>
13518 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13519 #include <stdio.h>
13520 #include <stdlib.h>
13521
13522 int
13523 main ()
13524 {
13525 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
13526 test_array [0] = 0
13527
13528   ;
13529   return 0;
13530 }
13531 _ACEOF
13532 rm -f conftest.$ac_objext
13533 if { (ac_try="$ac_compile"
13534 case "(($ac_try" in
13535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536   *) ac_try_echo=$ac_try;;
13537 esac
13538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13539 $as_echo "$ac_try_echo") >&5
13540   (eval "$ac_compile") 2>conftest.er1
13541   ac_status=$?
13542   grep -v '^ *+' conftest.er1 >conftest.err
13543   rm -f conftest.er1
13544   cat conftest.err >&5
13545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); } && {
13547          test -z "$ac_c_werror_flag" ||
13548          test ! -s conftest.err
13549        } && test -s conftest.$ac_objext; then
13550   ac_lo=$ac_mid; break
13551 else
13552   $as_echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13554
13555         ac_hi=`expr '(' $ac_mid ')' - 1`
13556                         if test $ac_mid -le $ac_hi; then
13557                           ac_lo= ac_hi=
13558                           break
13559                         fi
13560                         ac_mid=`expr 2 '*' $ac_mid`
13561 fi
13562
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564   done
13565 else
13566   $as_echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13568
13569         ac_lo= ac_hi=
13570 fi
13571
13572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 fi
13574
13575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576 # Binary search between lo and hi bounds.
13577 while test "x$ac_lo" != "x$ac_hi"; do
13578   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13579   cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h.  */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h.  */
13585
13586 #define _XOPEN_SOURCE_EXTENDED 1
13587 #include <errno.h>
13588 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13589 #include <stdio.h>
13590 #include <stdlib.h>
13591
13592 int
13593 main ()
13594 {
13595 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13596 test_array [0] = 0
13597
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606   *) ac_try_echo=$ac_try;;
13607 esac
13608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13609 $as_echo "$ac_try_echo") >&5
13610   (eval "$ac_compile") 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } && {
13617          test -z "$ac_c_werror_flag" ||
13618          test ! -s conftest.err
13619        } && test -s conftest.$ac_objext; then
13620   ac_hi=$ac_mid
13621 else
13622   $as_echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13624
13625         ac_lo=`expr '(' $ac_mid ')' + 1`
13626 fi
13627
13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629 done
13630 case $ac_lo in
13631 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
13632 '')  ;;
13633 esac
13634 else
13635   cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h.  */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h.  */
13641
13642 #define _XOPEN_SOURCE_EXTENDED 1
13643 #include <errno.h>
13644 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13645 #include <stdio.h>
13646 #include <stdlib.h>
13647
13648 static long int longval () { return ENOLINK; }
13649 static unsigned long int ulongval () { return ENOLINK; }
13650 #include <stdio.h>
13651 #include <stdlib.h>
13652 int
13653 main ()
13654 {
13655
13656   FILE *f = fopen ("conftest.val", "w");
13657   if (! f)
13658     return 1;
13659   if ((ENOLINK) < 0)
13660     {
13661       long int i = longval ();
13662       if (i != (ENOLINK))
13663         return 1;
13664       fprintf (f, "%ld", i);
13665     }
13666   else
13667     {
13668       unsigned long int i = ulongval ();
13669       if (i != (ENOLINK))
13670         return 1;
13671       fprintf (f, "%lu", i);
13672     }
13673   /* Do not output a trailing newline, as this causes \r\n confusion
13674      on some platforms.  */
13675   return ferror (f) || fclose (f) != 0;
13676
13677   ;
13678   return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest$ac_exeext
13682 if { (ac_try="$ac_link"
13683 case "(($ac_try" in
13684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685   *) ac_try_echo=$ac_try;;
13686 esac
13687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
13689   (eval "$ac_link") 2>&5
13690   ac_status=$?
13691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13693   { (case "(($ac_try" in
13694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695   *) ac_try_echo=$ac_try;;
13696 esac
13697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13698 $as_echo "$ac_try_echo") >&5
13699   (eval "$ac_try") 2>&5
13700   ac_status=$?
13701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
13704 else
13705   $as_echo "$as_me: program exited with status $ac_status" >&5
13706 $as_echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 fi
13710 rm -rf conftest.dSYM
13711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13712 fi
13713 rm -f conftest.val
13714         fi
13715       fi
13716
13717 fi
13718 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
13719 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13720     case $gl_cv_header_errno_h_ENOLINK in
13721       yes | no)
13722         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13723         ;;
13724       *)
13725         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13726         ;;
13727     esac
13728
13729
13730   fi
13731
13732
13733   if test -n "$ERRNO_H"; then
13734     { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13735 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13736 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13737   $as_echo_n "(cached) " >&6
13738 else
13739
13740       cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h.  */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h.  */
13746
13747 #include <errno.h>
13748 #ifdef EOVERFLOW
13749 yes
13750 #endif
13751
13752 _ACEOF
13753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13754   $EGREP "yes" >/dev/null 2>&1; then
13755   gl_cv_header_errno_h_EOVERFLOW=yes
13756 else
13757   gl_cv_header_errno_h_EOVERFLOW=no
13758 fi
13759 rm -f conftest*
13760
13761       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13762         cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h.  */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h.  */
13768
13769 #define _XOPEN_SOURCE_EXTENDED 1
13770 #include <errno.h>
13771 #ifdef EOVERFLOW
13772 yes
13773 #endif
13774
13775 _ACEOF
13776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13777   $EGREP "yes" >/dev/null 2>&1; then
13778   gl_cv_header_errno_h_EOVERFLOW=hidden
13779 fi
13780 rm -f conftest*
13781
13782         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13783                               if test "$cross_compiling" = yes; then
13784   # Depending upon the size, compute the lo and hi bounds.
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791
13792 #define _XOPEN_SOURCE_EXTENDED 1
13793 #include <errno.h>
13794 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13795 #include <stdio.h>
13796 #include <stdlib.h>
13797
13798 int
13799 main ()
13800 {
13801 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13802 test_array [0] = 0
13803
13804   ;
13805   return 0;
13806 }
13807 _ACEOF
13808 rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
13810 case "(($ac_try" in
13811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812   *) ac_try_echo=$ac_try;;
13813 esac
13814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13815 $as_echo "$ac_try_echo") >&5
13816   (eval "$ac_compile") 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } && {
13823          test -z "$ac_c_werror_flag" ||
13824          test ! -s conftest.err
13825        } && test -s conftest.$ac_objext; then
13826   ac_lo=0 ac_mid=0
13827   while :; do
13828     cat >conftest.$ac_ext <<_ACEOF
13829 /* confdefs.h.  */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h.  */
13834
13835 #define _XOPEN_SOURCE_EXTENDED 1
13836 #include <errno.h>
13837 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13838 #include <stdio.h>
13839 #include <stdlib.h>
13840
13841 int
13842 main ()
13843 {
13844 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13845 test_array [0] = 0
13846
13847   ;
13848   return 0;
13849 }
13850 _ACEOF
13851 rm -f conftest.$ac_objext
13852 if { (ac_try="$ac_compile"
13853 case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13858 $as_echo "$ac_try_echo") >&5
13859   (eval "$ac_compile") 2>conftest.er1
13860   ac_status=$?
13861   grep -v '^ *+' conftest.er1 >conftest.err
13862   rm -f conftest.er1
13863   cat conftest.err >&5
13864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); } && {
13866          test -z "$ac_c_werror_flag" ||
13867          test ! -s conftest.err
13868        } && test -s conftest.$ac_objext; then
13869   ac_hi=$ac_mid; break
13870 else
13871   $as_echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874         ac_lo=`expr $ac_mid + 1`
13875                         if test $ac_lo -le $ac_mid; then
13876                           ac_lo= ac_hi=
13877                           break
13878                         fi
13879                         ac_mid=`expr 2 '*' $ac_mid + 1`
13880 fi
13881
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883   done
13884 else
13885   $as_echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13887
13888         cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h.  */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h.  */
13894
13895 #define _XOPEN_SOURCE_EXTENDED 1
13896 #include <errno.h>
13897 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13898 #include <stdio.h>
13899 #include <stdlib.h>
13900
13901 int
13902 main ()
13903 {
13904 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13905 test_array [0] = 0
13906
13907   ;
13908   return 0;
13909 }
13910 _ACEOF
13911 rm -f conftest.$ac_objext
13912 if { (ac_try="$ac_compile"
13913 case "(($ac_try" in
13914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915   *) ac_try_echo=$ac_try;;
13916 esac
13917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13918 $as_echo "$ac_try_echo") >&5
13919   (eval "$ac_compile") 2>conftest.er1
13920   ac_status=$?
13921   grep -v '^ *+' conftest.er1 >conftest.err
13922   rm -f conftest.er1
13923   cat conftest.err >&5
13924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); } && {
13926          test -z "$ac_c_werror_flag" ||
13927          test ! -s conftest.err
13928        } && test -s conftest.$ac_objext; then
13929   ac_hi=-1 ac_mid=-1
13930   while :; do
13931     cat >conftest.$ac_ext <<_ACEOF
13932 /* confdefs.h.  */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h.  */
13937
13938 #define _XOPEN_SOURCE_EXTENDED 1
13939 #include <errno.h>
13940 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13941 #include <stdio.h>
13942 #include <stdlib.h>
13943
13944 int
13945 main ()
13946 {
13947 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13948 test_array [0] = 0
13949
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 rm -f conftest.$ac_objext
13955 if { (ac_try="$ac_compile"
13956 case "(($ac_try" in
13957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958   *) ac_try_echo=$ac_try;;
13959 esac
13960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13961 $as_echo "$ac_try_echo") >&5
13962   (eval "$ac_compile") 2>conftest.er1
13963   ac_status=$?
13964   grep -v '^ *+' conftest.er1 >conftest.err
13965   rm -f conftest.er1
13966   cat conftest.err >&5
13967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); } && {
13969          test -z "$ac_c_werror_flag" ||
13970          test ! -s conftest.err
13971        } && test -s conftest.$ac_objext; then
13972   ac_lo=$ac_mid; break
13973 else
13974   $as_echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977         ac_hi=`expr '(' $ac_mid ')' - 1`
13978                         if test $ac_mid -le $ac_hi; then
13979                           ac_lo= ac_hi=
13980                           break
13981                         fi
13982                         ac_mid=`expr 2 '*' $ac_mid`
13983 fi
13984
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986   done
13987 else
13988   $as_echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13990
13991         ac_lo= ac_hi=
13992 fi
13993
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 fi
13996
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 # Binary search between lo and hi bounds.
13999 while test "x$ac_lo" != "x$ac_hi"; do
14000   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14001   cat >conftest.$ac_ext <<_ACEOF
14002 /* confdefs.h.  */
14003 _ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h.  */
14007
14008 #define _XOPEN_SOURCE_EXTENDED 1
14009 #include <errno.h>
14010 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14011 #include <stdio.h>
14012 #include <stdlib.h>
14013
14014 int
14015 main ()
14016 {
14017 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14018 test_array [0] = 0
14019
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 rm -f conftest.$ac_objext
14025 if { (ac_try="$ac_compile"
14026 case "(($ac_try" in
14027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028   *) ac_try_echo=$ac_try;;
14029 esac
14030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031 $as_echo "$ac_try_echo") >&5
14032   (eval "$ac_compile") 2>conftest.er1
14033   ac_status=$?
14034   grep -v '^ *+' conftest.er1 >conftest.err
14035   rm -f conftest.er1
14036   cat conftest.err >&5
14037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } && {
14039          test -z "$ac_c_werror_flag" ||
14040          test ! -s conftest.err
14041        } && test -s conftest.$ac_objext; then
14042   ac_hi=$ac_mid
14043 else
14044   $as_echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14046
14047         ac_lo=`expr '(' $ac_mid ')' + 1`
14048 fi
14049
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 done
14052 case $ac_lo in
14053 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
14054 '')  ;;
14055 esac
14056 else
14057   cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063
14064 #define _XOPEN_SOURCE_EXTENDED 1
14065 #include <errno.h>
14066 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14067 #include <stdio.h>
14068 #include <stdlib.h>
14069
14070 static long int longval () { return EOVERFLOW; }
14071 static unsigned long int ulongval () { return EOVERFLOW; }
14072 #include <stdio.h>
14073 #include <stdlib.h>
14074 int
14075 main ()
14076 {
14077
14078   FILE *f = fopen ("conftest.val", "w");
14079   if (! f)
14080     return 1;
14081   if ((EOVERFLOW) < 0)
14082     {
14083       long int i = longval ();
14084       if (i != (EOVERFLOW))
14085         return 1;
14086       fprintf (f, "%ld", i);
14087     }
14088   else
14089     {
14090       unsigned long int i = ulongval ();
14091       if (i != (EOVERFLOW))
14092         return 1;
14093       fprintf (f, "%lu", i);
14094     }
14095   /* Do not output a trailing newline, as this causes \r\n confusion
14096      on some platforms.  */
14097   return ferror (f) || fclose (f) != 0;
14098
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 rm -f conftest$ac_exeext
14104 if { (ac_try="$ac_link"
14105 case "(($ac_try" in
14106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107   *) ac_try_echo=$ac_try;;
14108 esac
14109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14110 $as_echo "$ac_try_echo") >&5
14111   (eval "$ac_link") 2>&5
14112   ac_status=$?
14113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14115   { (case "(($ac_try" in
14116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117   *) ac_try_echo=$ac_try;;
14118 esac
14119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120 $as_echo "$ac_try_echo") >&5
14121   (eval "$ac_try") 2>&5
14122   ac_status=$?
14123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; }; then
14125   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
14126 else
14127   $as_echo "$as_me: program exited with status $ac_status" >&5
14128 $as_echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14130
14131 fi
14132 rm -rf conftest.dSYM
14133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14134 fi
14135 rm -f conftest.val
14136         fi
14137       fi
14138
14139 fi
14140 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
14141 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
14142     case $gl_cv_header_errno_h_EOVERFLOW in
14143       yes | no)
14144         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
14145         ;;
14146       *)
14147         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
14148         ;;
14149     esac
14150
14151
14152   fi
14153
14154
14155 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14156 $as_echo_n "checking whether strerror_r is declared... " >&6; }
14157 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14158   $as_echo_n "(cached) " >&6
14159 else
14160   cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h.  */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h.  */
14166 $ac_includes_default
14167 int
14168 main ()
14169 {
14170 #ifndef strerror_r
14171   (void) strerror_r;
14172 #endif
14173
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext
14179 if { (ac_try="$ac_compile"
14180 case "(($ac_try" in
14181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182   *) ac_try_echo=$ac_try;;
14183 esac
14184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185 $as_echo "$ac_try_echo") >&5
14186   (eval "$ac_compile") 2>conftest.er1
14187   ac_status=$?
14188   grep -v '^ *+' conftest.er1 >conftest.err
14189   rm -f conftest.er1
14190   cat conftest.err >&5
14191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } && {
14193          test -z "$ac_c_werror_flag" ||
14194          test ! -s conftest.err
14195        } && test -s conftest.$ac_objext; then
14196   ac_cv_have_decl_strerror_r=yes
14197 else
14198   $as_echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201         ac_cv_have_decl_strerror_r=no
14202 fi
14203
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 fi
14206 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14207 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
14208 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
14209
14210 cat >>confdefs.h <<_ACEOF
14211 #define HAVE_DECL_STRERROR_R 1
14212 _ACEOF
14213
14214
14215 else
14216   cat >>confdefs.h <<_ACEOF
14217 #define HAVE_DECL_STRERROR_R 0
14218 _ACEOF
14219
14220
14221 fi
14222
14223
14224
14225 for ac_func in strerror_r
14226 do
14227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14228 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14229 $as_echo_n "checking for $ac_func... " >&6; }
14230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14231   $as_echo_n "(cached) " >&6
14232 else
14233   cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14241 #define $ac_func innocuous_$ac_func
14242
14243 /* System header to define __stub macros and hopefully few prototypes,
14244     which can conflict with char $ac_func (); below.
14245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14246     <limits.h> exists even on freestanding compilers.  */
14247
14248 #ifdef __STDC__
14249 # include <limits.h>
14250 #else
14251 # include <assert.h>
14252 #endif
14253
14254 #undef $ac_func
14255
14256 /* Override any GCC internal prototype to avoid an error.
14257    Use char because int might match the return type of a GCC
14258    builtin and then its argument prototype would still apply.  */
14259 #ifdef __cplusplus
14260 extern "C"
14261 #endif
14262 char $ac_func ();
14263 /* The GNU C library defines this for functions which it implements
14264     to always fail with ENOSYS.  Some functions are actually named
14265     something starting with __ and the normal name is an alias.  */
14266 #if defined __stub_$ac_func || defined __stub___$ac_func
14267 choke me
14268 #endif
14269
14270 int
14271 main ()
14272 {
14273 return $ac_func ();
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 rm -f conftest.$ac_objext conftest$ac_exeext
14279 if { (ac_try="$ac_link"
14280 case "(($ac_try" in
14281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282   *) ac_try_echo=$ac_try;;
14283 esac
14284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14285 $as_echo "$ac_try_echo") >&5
14286   (eval "$ac_link") 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } && {
14293          test -z "$ac_c_werror_flag" ||
14294          test ! -s conftest.err
14295        } && test -s conftest$ac_exeext && {
14296          test "$cross_compiling" = yes ||
14297          $as_test_x conftest$ac_exeext
14298        }; then
14299   eval "$as_ac_var=yes"
14300 else
14301   $as_echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14303
14304         eval "$as_ac_var=no"
14305 fi
14306
14307 rm -rf conftest.dSYM
14308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14309       conftest$ac_exeext conftest.$ac_ext
14310 fi
14311 ac_res=`eval 'as_val=${'$as_ac_var'}
14312                  $as_echo "$as_val"'`
14313                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14314 $as_echo "$ac_res" >&6; }
14315 as_val=`eval 'as_val=${'$as_ac_var'}
14316                  $as_echo "$as_val"'`
14317    if test "x$as_val" = x""yes; then
14318   cat >>confdefs.h <<_ACEOF
14319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14320 _ACEOF
14321
14322 fi
14323 done
14324
14325 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14326 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
14327 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14328   $as_echo_n "(cached) " >&6
14329 else
14330
14331     ac_cv_func_strerror_r_char_p=no
14332     if test $ac_cv_have_decl_strerror_r = yes; then
14333       cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h.  */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h.  */
14339 $ac_includes_default
14340 int
14341 main ()
14342 {
14343
14344           char buf[100];
14345           char x = *strerror_r (0, buf, sizeof buf);
14346           char *p = strerror_r (0, buf, sizeof buf);
14347           return !p || x;
14348
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357   *) ac_try_echo=$ac_try;;
14358 esac
14359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14360 $as_echo "$ac_try_echo") >&5
14361   (eval "$ac_compile") 2>conftest.er1
14362   ac_status=$?
14363   grep -v '^ *+' conftest.er1 >conftest.err
14364   rm -f conftest.er1
14365   cat conftest.err >&5
14366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); } && {
14368          test -z "$ac_c_werror_flag" ||
14369          test ! -s conftest.err
14370        } && test -s conftest.$ac_objext; then
14371   ac_cv_func_strerror_r_char_p=yes
14372 else
14373   $as_echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376
14377 fi
14378
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380     else
14381       # strerror_r is not declared.  Choose between
14382       # systems that have relatively inaccessible declarations for the
14383       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
14384       # former has a strerror_r that returns char*, while the latter
14385       # has a strerror_r that returns `int'.
14386       # This test should segfault on the DEC system.
14387       if test "$cross_compiling" = yes; then
14388   :
14389 else
14390   cat >conftest.$ac_ext <<_ACEOF
14391 /* confdefs.h.  */
14392 _ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h.  */
14396 $ac_includes_default
14397         extern char *strerror_r ();
14398 int
14399 main ()
14400 {
14401 char buf[100];
14402           char x = *strerror_r (0, buf, sizeof buf);
14403           return ! isalpha (x);
14404   ;
14405   return 0;
14406 }
14407 _ACEOF
14408 rm -f conftest$ac_exeext
14409 if { (ac_try="$ac_link"
14410 case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415 $as_echo "$ac_try_echo") >&5
14416   (eval "$ac_link") 2>&5
14417   ac_status=$?
14418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14420   { (case "(($ac_try" in
14421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422   *) ac_try_echo=$ac_try;;
14423 esac
14424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14425 $as_echo "$ac_try_echo") >&5
14426   (eval "$ac_try") 2>&5
14427   ac_status=$?
14428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); }; }; then
14430   ac_cv_func_strerror_r_char_p=yes
14431 else
14432   $as_echo "$as_me: program exited with status $ac_status" >&5
14433 $as_echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 fi
14437 rm -rf conftest.dSYM
14438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14439 fi
14440
14441
14442     fi
14443
14444 fi
14445 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14446 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14447 if test $ac_cv_func_strerror_r_char_p = yes; then
14448
14449 cat >>confdefs.h <<\_ACEOF
14450 #define STRERROR_R_CHAR_P 1
14451 _ACEOF
14452
14453 fi
14454
14455
14456   XGETTEXT_EXTRA_OPTIONS=
14457
14458
14459   GNULIB_FPRINTF=0;
14460   GNULIB_FPRINTF_POSIX=0;
14461   GNULIB_PRINTF=0;
14462   GNULIB_PRINTF_POSIX=0;
14463   GNULIB_SNPRINTF=0;
14464   GNULIB_SPRINTF_POSIX=0;
14465   GNULIB_VFPRINTF=0;
14466   GNULIB_VFPRINTF_POSIX=0;
14467   GNULIB_VPRINTF=0;
14468   GNULIB_VPRINTF_POSIX=0;
14469   GNULIB_VSNPRINTF=0;
14470   GNULIB_VSPRINTF_POSIX=0;
14471   GNULIB_DPRINTF=0;
14472   GNULIB_VDPRINTF=0;
14473   GNULIB_VASPRINTF=0;
14474   GNULIB_OBSTACK_PRINTF=0;
14475   GNULIB_OBSTACK_PRINTF_POSIX=0;
14476   GNULIB_FOPEN=0;
14477   GNULIB_FREOPEN=0;
14478   GNULIB_FSEEK=0;
14479   GNULIB_FSEEKO=0;
14480   GNULIB_FTELL=0;
14481   GNULIB_FTELLO=0;
14482   GNULIB_FFLUSH=0;
14483   GNULIB_FPURGE=0;
14484   GNULIB_FCLOSE=0;
14485   GNULIB_FPUTC=0;
14486   GNULIB_PUTC=0;
14487   GNULIB_PUTCHAR=0;
14488   GNULIB_FPUTS=0;
14489   GNULIB_PUTS=0;
14490   GNULIB_FWRITE=0;
14491   GNULIB_POPEN=0;
14492   GNULIB_GETDELIM=0;
14493   GNULIB_GETLINE=0;
14494   GNULIB_PERROR=0;
14495   GNULIB_STDIO_H_SIGPIPE=0;
14496     REPLACE_STDIO_WRITE_FUNCS=0;
14497   REPLACE_FPRINTF=0;
14498   REPLACE_VFPRINTF=0;
14499   REPLACE_PRINTF=0;
14500   REPLACE_VPRINTF=0;
14501   REPLACE_SNPRINTF=0;
14502   HAVE_DECL_SNPRINTF=1;
14503   REPLACE_VSNPRINTF=0;
14504   HAVE_DECL_VSNPRINTF=1;
14505   REPLACE_SPRINTF=0;
14506   REPLACE_VSPRINTF=0;
14507   HAVE_DPRINTF=1;
14508   REPLACE_DPRINTF=0;
14509   HAVE_VDPRINTF=1;
14510   REPLACE_VDPRINTF=0;
14511   HAVE_VASPRINTF=1;
14512   REPLACE_VASPRINTF=0;
14513   HAVE_DECL_OBSTACK_PRINTF=1;
14514   REPLACE_OBSTACK_PRINTF=0;
14515   REPLACE_FOPEN=0;
14516   REPLACE_FREOPEN=0;
14517   HAVE_FSEEKO=1;
14518   REPLACE_FSEEKO=0;
14519   REPLACE_FSEEK=0;
14520   HAVE_FTELLO=1;
14521   REPLACE_FTELLO=0;
14522   REPLACE_FTELL=0;
14523   REPLACE_FFLUSH=0;
14524   REPLACE_FPURGE=0;
14525   HAVE_DECL_FPURGE=1;
14526   REPLACE_FCLOSE=0;
14527   REPLACE_POPEN=0;
14528   HAVE_DECL_GETDELIM=1;
14529   HAVE_DECL_GETLINE=1;
14530   REPLACE_GETLINE=0;
14531   REPLACE_PERROR=0;
14532
14533
14534     { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14535 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14536 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14537   $as_echo_n "(cached) " >&6
14538 else
14539   cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 #include <stdio.h>
14546 int
14547 main ()
14548 {
14549 #if defined __SL64 && defined __SCLE /* cygwin */
14550   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14551      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
14552      it is easier to do a version check than building a runtime test.  */
14553 # include <cygwin/version.h>
14554 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14555   choke me
14556 # endif
14557 #endif
14558   ;
14559   return 0;
14560 }
14561 _ACEOF
14562 rm -f conftest.$ac_objext conftest$ac_exeext
14563 if { (ac_try="$ac_link"
14564 case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569 $as_echo "$ac_try_echo") >&5
14570   (eval "$ac_link") 2>conftest.er1
14571   ac_status=$?
14572   grep -v '^ *+' conftest.er1 >conftest.err
14573   rm -f conftest.er1
14574   cat conftest.err >&5
14575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } && {
14577          test -z "$ac_c_werror_flag" ||
14578          test ! -s conftest.err
14579        } && test -s conftest$ac_exeext && {
14580          test "$cross_compiling" = yes ||
14581          $as_test_x conftest$ac_exeext
14582        }; then
14583   gl_cv_var_stdin_large_offset=yes
14584 else
14585   $as_echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14587
14588         gl_cv_var_stdin_large_offset=no
14589 fi
14590
14591 rm -rf conftest.dSYM
14592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14593       conftest$ac_exeext conftest.$ac_ext
14594 fi
14595 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14596 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14597
14598 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
14599 $as_echo_n "checking whether getdelim is declared... " >&6; }
14600 if test "${ac_cv_have_decl_getdelim+set}" = set; then
14601   $as_echo_n "(cached) " >&6
14602 else
14603   cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h.  */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h.  */
14609 $ac_includes_default
14610 int
14611 main ()
14612 {
14613 #ifndef getdelim
14614   (void) getdelim;
14615 #endif
14616
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625   *) ac_try_echo=$ac_try;;
14626 esac
14627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629   (eval "$ac_compile") 2>conftest.er1
14630   ac_status=$?
14631   grep -v '^ *+' conftest.er1 >conftest.err
14632   rm -f conftest.er1
14633   cat conftest.err >&5
14634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } && {
14636          test -z "$ac_c_werror_flag" ||
14637          test ! -s conftest.err
14638        } && test -s conftest.$ac_objext; then
14639   ac_cv_have_decl_getdelim=yes
14640 else
14641   $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14643
14644         ac_cv_have_decl_getdelim=no
14645 fi
14646
14647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648 fi
14649 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
14650 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
14651 if test "x$ac_cv_have_decl_getdelim" = x""yes; then
14652
14653 cat >>confdefs.h <<_ACEOF
14654 #define HAVE_DECL_GETDELIM 1
14655 _ACEOF
14656
14657
14658 else
14659   cat >>confdefs.h <<_ACEOF
14660 #define HAVE_DECL_GETDELIM 0
14661 _ACEOF
14662
14663
14664 fi
14665
14666
14667 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
14668 $as_echo_n "checking whether getline is declared... " >&6; }
14669 if test "${ac_cv_have_decl_getline+set}" = set; then
14670   $as_echo_n "(cached) " >&6
14671 else
14672   cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 $ac_includes_default
14679 int
14680 main ()
14681 {
14682 #ifndef getline
14683   (void) getline;
14684 #endif
14685
14686   ;
14687   return 0;
14688 }
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (ac_try="$ac_compile"
14692 case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14697 $as_echo "$ac_try_echo") >&5
14698   (eval "$ac_compile") 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } && {
14705          test -z "$ac_c_werror_flag" ||
14706          test ! -s conftest.err
14707        } && test -s conftest.$ac_objext; then
14708   ac_cv_have_decl_getline=yes
14709 else
14710   $as_echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14712
14713         ac_cv_have_decl_getline=no
14714 fi
14715
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717 fi
14718 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
14719 $as_echo "$ac_cv_have_decl_getline" >&6; }
14720 if test "x$ac_cv_have_decl_getline" = x""yes; then
14721
14722 cat >>confdefs.h <<_ACEOF
14723 #define HAVE_DECL_GETLINE 1
14724 _ACEOF
14725
14726
14727 else
14728   cat >>confdefs.h <<_ACEOF
14729 #define HAVE_DECL_GETLINE 0
14730 _ACEOF
14731
14732
14733 fi
14734
14735
14736
14737   GNULIB_CHOWN=0;
14738   GNULIB_CLOSE=0;
14739   GNULIB_DUP2=0;
14740   GNULIB_DUP3=0;
14741   GNULIB_ENVIRON=0;
14742   GNULIB_EUIDACCESS=0;
14743   GNULIB_FCHDIR=0;
14744   GNULIB_FSYNC=0;
14745   GNULIB_FTRUNCATE=0;
14746   GNULIB_GETCWD=0;
14747   GNULIB_GETDOMAINNAME=0;
14748   GNULIB_GETDTABLESIZE=0;
14749   GNULIB_GETHOSTNAME=0;
14750   GNULIB_GETLOGIN_R=0;
14751   GNULIB_GETPAGESIZE=0;
14752   GNULIB_GETUSERSHELL=0;
14753   GNULIB_LCHOWN=0;
14754   GNULIB_LINK=0;
14755   GNULIB_LSEEK=0;
14756   GNULIB_PIPE2=0;
14757   GNULIB_READLINK=0;
14758   GNULIB_SLEEP=0;
14759   GNULIB_UNISTD_H_GETOPT=0;
14760   GNULIB_UNISTD_H_SIGPIPE=0;
14761   GNULIB_WRITE=0;
14762     HAVE_DUP2=1;
14763   HAVE_DUP3=1;
14764   HAVE_EUIDACCESS=1;
14765   HAVE_FSYNC=1;
14766   HAVE_FTRUNCATE=1;
14767   HAVE_GETDOMAINNAME=1;
14768   HAVE_GETDTABLESIZE=1;
14769   HAVE_GETHOSTNAME=1;
14770   HAVE_GETPAGESIZE=1;
14771   HAVE_GETUSERSHELL=1;
14772   HAVE_LINK=1;
14773   HAVE_PIPE2=1;
14774   HAVE_READLINK=1;
14775   HAVE_SLEEP=1;
14776   HAVE_DECL_ENVIRON=1;
14777   HAVE_DECL_GETLOGIN_R=1;
14778   HAVE_OS_H=0;
14779   HAVE_SYS_PARAM_H=0;
14780   REPLACE_CHOWN=0;
14781   REPLACE_CLOSE=0;
14782   REPLACE_DUP2=0;
14783   REPLACE_FCHDIR=0;
14784   REPLACE_GETCWD=0;
14785   REPLACE_GETPAGESIZE=0;
14786   REPLACE_LCHOWN=0;
14787   REPLACE_LSEEK=0;
14788   REPLACE_WRITE=0;
14789   UNISTD_H_HAVE_WINSOCK2_H=0;
14790   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14791
14792
14793
14794
14795
14796
14797   gl_replace_getopt=
14798
14799     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14800
14801 for ac_header in getopt.h
14802 do
14803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14805   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14806 $as_echo_n "checking for $ac_header... " >&6; }
14807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14808   $as_echo_n "(cached) " >&6
14809 fi
14810 ac_res=`eval 'as_val=${'$as_ac_Header'}
14811                  $as_echo "$as_val"'`
14812                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14813 $as_echo "$ac_res" >&6; }
14814 else
14815   # Is the header compilable?
14816 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14817 $as_echo_n "checking $ac_header usability... " >&6; }
14818 cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h.  */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h.  */
14824 $ac_includes_default
14825 #include <$ac_header>
14826 _ACEOF
14827 rm -f conftest.$ac_objext
14828 if { (ac_try="$ac_compile"
14829 case "(($ac_try" in
14830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831   *) ac_try_echo=$ac_try;;
14832 esac
14833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14834 $as_echo "$ac_try_echo") >&5
14835   (eval "$ac_compile") 2>conftest.er1
14836   ac_status=$?
14837   grep -v '^ *+' conftest.er1 >conftest.err
14838   rm -f conftest.er1
14839   cat conftest.err >&5
14840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); } && {
14842          test -z "$ac_c_werror_flag" ||
14843          test ! -s conftest.err
14844        } && test -s conftest.$ac_objext; then
14845   ac_header_compiler=yes
14846 else
14847   $as_echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14849
14850         ac_header_compiler=no
14851 fi
14852
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14855 $as_echo "$ac_header_compiler" >&6; }
14856
14857 # Is the header present?
14858 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14859 $as_echo_n "checking $ac_header presence... " >&6; }
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866 #include <$ac_header>
14867 _ACEOF
14868 if { (ac_try="$ac_cpp conftest.$ac_ext"
14869 case "(($ac_try" in
14870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871   *) ac_try_echo=$ac_try;;
14872 esac
14873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14874 $as_echo "$ac_try_echo") >&5
14875   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14876   ac_status=$?
14877   grep -v '^ *+' conftest.er1 >conftest.err
14878   rm -f conftest.er1
14879   cat conftest.err >&5
14880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } >/dev/null && {
14882          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14883          test ! -s conftest.err
14884        }; then
14885   ac_header_preproc=yes
14886 else
14887   $as_echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890   ac_header_preproc=no
14891 fi
14892
14893 rm -f conftest.err conftest.$ac_ext
14894 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14895 $as_echo "$ac_header_preproc" >&6; }
14896
14897 # So?  What about this header?
14898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14899   yes:no: )
14900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14901 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14903 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14904     ac_header_preproc=yes
14905     ;;
14906   no:yes:* )
14907     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14908 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14909     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14910 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14911     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14912 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14914 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14917     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14918 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14919     ( cat <<\_ASBOX
14920 ## ------------------------------- ##
14921 ## Report this to bug-wget@gnu.org ##
14922 ## ------------------------------- ##
14923 _ASBOX
14924      ) | sed "s/^/$as_me: WARNING:     /" >&2
14925     ;;
14926 esac
14927 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14928 $as_echo_n "checking for $ac_header... " >&6; }
14929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930   $as_echo_n "(cached) " >&6
14931 else
14932   eval "$as_ac_Header=\$ac_header_preproc"
14933 fi
14934 ac_res=`eval 'as_val=${'$as_ac_Header'}
14935                  $as_echo "$as_val"'`
14936                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14937 $as_echo "$ac_res" >&6; }
14938
14939 fi
14940 as_val=`eval 'as_val=${'$as_ac_Header'}
14941                  $as_echo "$as_val"'`
14942    if test "x$as_val" = x""yes; then
14943   cat >>confdefs.h <<_ACEOF
14944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14945 _ACEOF
14946
14947 else
14948   gl_replace_getopt=yes
14949 fi
14950
14951 done
14952
14953   fi
14954
14955     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14956
14957 for ac_func in getopt_long_only
14958 do
14959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14960 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14961 $as_echo_n "checking for $ac_func... " >&6; }
14962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14963   $as_echo_n "(cached) " >&6
14964 else
14965   cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14973 #define $ac_func innocuous_$ac_func
14974
14975 /* System header to define __stub macros and hopefully few prototypes,
14976     which can conflict with char $ac_func (); below.
14977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14978     <limits.h> exists even on freestanding compilers.  */
14979
14980 #ifdef __STDC__
14981 # include <limits.h>
14982 #else
14983 # include <assert.h>
14984 #endif
14985
14986 #undef $ac_func
14987
14988 /* Override any GCC internal prototype to avoid an error.
14989    Use char because int might match the return type of a GCC
14990    builtin and then its argument prototype would still apply.  */
14991 #ifdef __cplusplus
14992 extern "C"
14993 #endif
14994 char $ac_func ();
14995 /* The GNU C library defines this for functions which it implements
14996     to always fail with ENOSYS.  Some functions are actually named
14997     something starting with __ and the normal name is an alias.  */
14998 #if defined __stub_$ac_func || defined __stub___$ac_func
14999 choke me
15000 #endif
15001
15002 int
15003 main ()
15004 {
15005 return $ac_func ();
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (ac_try="$ac_link"
15012 case "(($ac_try" in
15013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014   *) ac_try_echo=$ac_try;;
15015 esac
15016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15017 $as_echo "$ac_try_echo") >&5
15018   (eval "$ac_link") 2>conftest.er1
15019   ac_status=$?
15020   grep -v '^ *+' conftest.er1 >conftest.err
15021   rm -f conftest.er1
15022   cat conftest.err >&5
15023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } && {
15025          test -z "$ac_c_werror_flag" ||
15026          test ! -s conftest.err
15027        } && test -s conftest$ac_exeext && {
15028          test "$cross_compiling" = yes ||
15029          $as_test_x conftest$ac_exeext
15030        }; then
15031   eval "$as_ac_var=yes"
15032 else
15033   $as_echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15035
15036         eval "$as_ac_var=no"
15037 fi
15038
15039 rm -rf conftest.dSYM
15040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15041       conftest$ac_exeext conftest.$ac_ext
15042 fi
15043 ac_res=`eval 'as_val=${'$as_ac_var'}
15044                  $as_echo "$as_val"'`
15045                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15046 $as_echo "$ac_res" >&6; }
15047 as_val=`eval 'as_val=${'$as_ac_var'}
15048                  $as_echo "$as_val"'`
15049    if test "x$as_val" = x""yes; then
15050   cat >>confdefs.h <<_ACEOF
15051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15052 _ACEOF
15053
15054 else
15055   gl_replace_getopt=yes
15056 fi
15057 done
15058
15059   fi
15060
15061       if false && test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15062     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
15063 $as_echo_n "checking whether optreset is declared... " >&6; }
15064 if test "${ac_cv_have_decl_optreset+set}" = set; then
15065   $as_echo_n "(cached) " >&6
15066 else
15067   cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h.  */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h.  */
15073 #include <getopt.h>
15074
15075 int
15076 main ()
15077 {
15078 #ifndef optreset
15079   (void) optreset;
15080 #endif
15081
15082   ;
15083   return 0;
15084 }
15085 _ACEOF
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090   *) ac_try_echo=$ac_try;;
15091 esac
15092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15093 $as_echo "$ac_try_echo") >&5
15094   (eval "$ac_compile") 2>conftest.er1
15095   ac_status=$?
15096   grep -v '^ *+' conftest.er1 >conftest.err
15097   rm -f conftest.er1
15098   cat conftest.err >&5
15099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } && {
15101          test -z "$ac_c_werror_flag" ||
15102          test ! -s conftest.err
15103        } && test -s conftest.$ac_objext; then
15104   ac_cv_have_decl_optreset=yes
15105 else
15106   $as_echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15108
15109         ac_cv_have_decl_optreset=no
15110 fi
15111
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 fi
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
15115 $as_echo "$ac_cv_have_decl_optreset" >&6; }
15116 if test "x$ac_cv_have_decl_optreset" = x""yes; then
15117   gl_replace_getopt=yes
15118 fi
15119
15120   fi
15121
15122           if test -z "$gl_replace_getopt"; then
15123     { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15124 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15125 if test "${gl_cv_func_getopt_posix+set}" = set; then
15126   $as_echo_n "(cached) " >&6
15127 else
15128
15129                 if test "$cross_compiling" = yes; then
15130   case "$host_os" in
15131              mingw*) gl_cv_func_getopt_posix="guessing no";;
15132              *)      gl_cv_func_getopt_posix="guessing yes";;
15133            esac
15134
15135 else
15136   cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h.  */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h.  */
15142
15143 #include <unistd.h>
15144 #include <stdlib.h>
15145 #include <string.h>
15146
15147 /* The glibc implementation of getopt supports setting optind = 0 as a means
15148    of clearing the internal state, but other implementations don't.  */
15149 #if (__GLIBC__ >= 2)
15150 # define OPTIND_MIN 0
15151 #else
15152 # define OPTIND_MIN 1
15153 #endif
15154
15155 int
15156 main ()
15157 {
15158   {
15159     int argc = 0;
15160     char *argv[10];
15161     int c;
15162
15163     argv[argc++] = "program";
15164     argv[argc++] = "-a";
15165     argv[argc++] = "foo";
15166     argv[argc++] = "bar";
15167     optind = OPTIND_MIN;
15168     opterr = 0;
15169
15170     c = getopt (argc, argv, "ab");
15171     if (!(c == 'a'))
15172       return 1;
15173     c = getopt (argc, argv, "ab");
15174     if (!(c == -1))
15175       return 2;
15176     if (!(optind == 2))
15177       return 3;
15178   }
15179   /* Some internal state exists at this point.  */
15180   {
15181     int argc = 0;
15182     char *argv[10];
15183     int c;
15184
15185     argv[argc++] = "program";
15186     argv[argc++] = "donald";
15187     argv[argc++] = "-p";
15188     argv[argc++] = "billy";
15189     argv[argc++] = "duck";
15190     argv[argc++] = "-a";
15191     argv[argc++] = "bar";
15192     optind = OPTIND_MIN;
15193     opterr = 0;
15194
15195     c = getopt (argc, argv, "+abp:q:");
15196     if (!(c == -1))
15197       return 4;
15198     if (!(strcmp (argv[0], "program") == 0))
15199       return 5;
15200     if (!(strcmp (argv[1], "donald") == 0))
15201       return 6;
15202     if (!(strcmp (argv[2], "-p") == 0))
15203       return 7;
15204     if (!(strcmp (argv[3], "billy") == 0))
15205       return 8;
15206     if (!(strcmp (argv[4], "duck") == 0))
15207       return 9;
15208     if (!(strcmp (argv[5], "-a") == 0))
15209       return 10;
15210     if (!(strcmp (argv[6], "bar") == 0))
15211       return 11;
15212     if (!(optind == 1))
15213       return 12;
15214   }
15215
15216   return 0;
15217 }
15218
15219 _ACEOF
15220 rm -f conftest$ac_exeext
15221 if { (ac_try="$ac_link"
15222 case "(($ac_try" in
15223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224   *) ac_try_echo=$ac_try;;
15225 esac
15226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227 $as_echo "$ac_try_echo") >&5
15228   (eval "$ac_link") 2>&5
15229   ac_status=$?
15230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15232   { (case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15237 $as_echo "$ac_try_echo") >&5
15238   (eval "$ac_try") 2>&5
15239   ac_status=$?
15240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); }; }; then
15242   gl_cv_func_getopt_posix=yes
15243 else
15244   $as_echo "$as_me: program exited with status $ac_status" >&5
15245 $as_echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248 ( exit $ac_status )
15249 gl_cv_func_getopt_posix=no
15250 fi
15251 rm -rf conftest.dSYM
15252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15253 fi
15254
15255
15256
15257 fi
15258 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15259 $as_echo "$gl_cv_func_getopt_posix" >&6; }
15260     case "$gl_cv_func_getopt_posix" in
15261       *no) gl_replace_getopt=yes ;;
15262     esac
15263   fi
15264
15265   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15266     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15267 $as_echo_n "checking for working GNU getopt function... " >&6; }
15268 if test "${gl_cv_func_getopt_gnu+set}" = set; then
15269   $as_echo_n "(cached) " >&6
15270 else
15271   if test "$cross_compiling" = yes; then
15272            case "$host_os" in
15273            *-gnu* | mingw*) gl_cv_func_getopt_gnu=no;;
15274            *)               gl_cv_func_getopt_gnu=yes;;
15275          esac
15276
15277 else
15278   cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284 #include <getopt.h>
15285                            #include <stddef.h>
15286                            #include <string.h>
15287 int
15288 main ()
15289 {
15290
15291              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15292                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15293                 OSF/1 5.1, Solaris 10.  */
15294              {
15295                char *myargv[3];
15296                myargv[0] = "conftest";
15297                myargv[1] = "-+";
15298                myargv[2] = 0;
15299                opterr = 0;
15300                if (getopt (2, myargv, "+a") != '?')
15301                  return 1;
15302              }
15303              /* This code succeeds on glibc 2.8, mingw,
15304                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15305                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin.  */
15306              {
15307                char *argv[] = { "program", "-p", "foo", "bar" };
15308
15309                optind = 1;
15310                if (getopt (4, argv, "p::") != 'p')
15311                  return 2;
15312                if (optarg != NULL)
15313                  return 3;
15314                if (getopt (4, argv, "p::") != -1)
15315                  return 4;
15316                if (optind != 2)
15317                  return 5;
15318              }
15319              return 0;
15320
15321   ;
15322   return 0;
15323 }
15324 _ACEOF
15325 rm -f conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15332 $as_echo "$ac_try_echo") >&5
15333   (eval "$ac_link") 2>&5
15334   ac_status=$?
15335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15337   { (case "(($ac_try" in
15338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339   *) ac_try_echo=$ac_try;;
15340 esac
15341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15342 $as_echo "$ac_try_echo") >&5
15343   (eval "$ac_try") 2>&5
15344   ac_status=$?
15345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; }; then
15347   gl_cv_func_getopt_gnu=yes
15348 else
15349   $as_echo "$as_me: program exited with status $ac_status" >&5
15350 $as_echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 ( exit $ac_status )
15354 gl_cv_func_getopt_gnu=no
15355 fi
15356 rm -rf conftest.dSYM
15357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15358 fi
15359
15360
15361
15362 fi
15363 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15364 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15365     if test "$gl_cv_func_getopt_gnu" = "no"; then
15366       gl_replace_getopt=yes
15367     fi
15368   fi
15369
15370 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15371 $as_echo_n "checking whether getenv is declared... " >&6; }
15372 if test "${ac_cv_have_decl_getenv+set}" = set; then
15373   $as_echo_n "(cached) " >&6
15374 else
15375   cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381 $ac_includes_default
15382 int
15383 main ()
15384 {
15385 #ifndef getenv
15386   (void) getenv;
15387 #endif
15388
15389   ;
15390   return 0;
15391 }
15392 _ACEOF
15393 rm -f conftest.$ac_objext
15394 if { (ac_try="$ac_compile"
15395 case "(($ac_try" in
15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397   *) ac_try_echo=$ac_try;;
15398 esac
15399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15400 $as_echo "$ac_try_echo") >&5
15401   (eval "$ac_compile") 2>conftest.er1
15402   ac_status=$?
15403   grep -v '^ *+' conftest.er1 >conftest.err
15404   rm -f conftest.er1
15405   cat conftest.err >&5
15406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); } && {
15408          test -z "$ac_c_werror_flag" ||
15409          test ! -s conftest.err
15410        } && test -s conftest.$ac_objext; then
15411   ac_cv_have_decl_getenv=yes
15412 else
15413   $as_echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416         ac_cv_have_decl_getenv=no
15417 fi
15418
15419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15420 fi
15421 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15422 $as_echo "$ac_cv_have_decl_getenv" >&6; }
15423 if test "x$ac_cv_have_decl_getenv" = x""yes; then
15424
15425 cat >>confdefs.h <<_ACEOF
15426 #define HAVE_DECL_GETENV 1
15427 _ACEOF
15428
15429
15430 else
15431   cat >>confdefs.h <<_ACEOF
15432 #define HAVE_DECL_GETENV 0
15433 _ACEOF
15434
15435
15436 fi
15437
15438
15439
15440
15441
15442
15443
15444   if test -n "$gl_replace_getopt"; then
15445
15446
15447
15448   GETOPT_H=getopt.h
15449
15450 cat >>confdefs.h <<\_ACEOF
15451 #define __GETOPT_PREFIX rpl_
15452 _ACEOF
15453
15454
15455
15456     GNULIB_UNISTD_H_GETOPT=1
15457
15458
15459
15460
15461
15462
15463
15464
15465   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485 fi
15486
15487
15488
15489 { $as_echo "$as_me:$LINENO: checking whether getpass is declared" >&5
15490 $as_echo_n "checking whether getpass is declared... " >&6; }
15491 if test "${ac_cv_have_decl_getpass+set}" = set; then
15492   $as_echo_n "(cached) " >&6
15493 else
15494   cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500 $ac_includes_default
15501 int
15502 main ()
15503 {
15504 #ifndef getpass
15505   (void) getpass;
15506 #endif
15507
15508   ;
15509   return 0;
15510 }
15511 _ACEOF
15512 rm -f conftest.$ac_objext
15513 if { (ac_try="$ac_compile"
15514 case "(($ac_try" in
15515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516   *) ac_try_echo=$ac_try;;
15517 esac
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520   (eval "$ac_compile") 2>conftest.er1
15521   ac_status=$?
15522   grep -v '^ *+' conftest.er1 >conftest.err
15523   rm -f conftest.er1
15524   cat conftest.err >&5
15525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); } && {
15527          test -z "$ac_c_werror_flag" ||
15528          test ! -s conftest.err
15529        } && test -s conftest.$ac_objext; then
15530   ac_cv_have_decl_getpass=yes
15531 else
15532   $as_echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535         ac_cv_have_decl_getpass=no
15536 fi
15537
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 fi
15540 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
15541 $as_echo "$ac_cv_have_decl_getpass" >&6; }
15542 if test "x$ac_cv_have_decl_getpass" = x""yes; then
15543
15544 cat >>confdefs.h <<_ACEOF
15545 #define HAVE_DECL_GETPASS 1
15546 _ACEOF
15547
15548
15549 else
15550   cat >>confdefs.h <<_ACEOF
15551 #define HAVE_DECL_GETPASS 0
15552 _ACEOF
15553
15554
15555 fi
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566 for ac_func in $ac_func_list
15567 do
15568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15569 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15570 $as_echo_n "checking for $ac_func... " >&6; }
15571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15572   $as_echo_n "(cached) " >&6
15573 else
15574   cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15582 #define $ac_func innocuous_$ac_func
15583
15584 /* System header to define __stub macros and hopefully few prototypes,
15585     which can conflict with char $ac_func (); below.
15586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587     <limits.h> exists even on freestanding compilers.  */
15588
15589 #ifdef __STDC__
15590 # include <limits.h>
15591 #else
15592 # include <assert.h>
15593 #endif
15594
15595 #undef $ac_func
15596
15597 /* Override any GCC internal prototype to avoid an error.
15598    Use char because int might match the return type of a GCC
15599    builtin and then its argument prototype would still apply.  */
15600 #ifdef __cplusplus
15601 extern "C"
15602 #endif
15603 char $ac_func ();
15604 /* The GNU C library defines this for functions which it implements
15605     to always fail with ENOSYS.  Some functions are actually named
15606     something starting with __ and the normal name is an alias.  */
15607 #if defined __stub_$ac_func || defined __stub___$ac_func
15608 choke me
15609 #endif
15610
15611 int
15612 main ()
15613 {
15614 return $ac_func ();
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623   *) ac_try_echo=$ac_try;;
15624 esac
15625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626 $as_echo "$ac_try_echo") >&5
15627   (eval "$ac_link") 2>conftest.er1
15628   ac_status=$?
15629   grep -v '^ *+' conftest.er1 >conftest.err
15630   rm -f conftest.er1
15631   cat conftest.err >&5
15632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); } && {
15634          test -z "$ac_c_werror_flag" ||
15635          test ! -s conftest.err
15636        } && test -s conftest$ac_exeext && {
15637          test "$cross_compiling" = yes ||
15638          $as_test_x conftest$ac_exeext
15639        }; then
15640   eval "$as_ac_var=yes"
15641 else
15642   $as_echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645         eval "$as_ac_var=no"
15646 fi
15647
15648 rm -rf conftest.dSYM
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650       conftest$ac_exeext conftest.$ac_ext
15651 fi
15652 ac_res=`eval 'as_val=${'$as_ac_var'}
15653                  $as_echo "$as_val"'`
15654                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15655 $as_echo "$ac_res" >&6; }
15656 as_val=`eval 'as_val=${'$as_ac_var'}
15657                  $as_echo "$as_val"'`
15658    if test "x$as_val" = x""yes; then
15659   cat >>confdefs.h <<_ACEOF
15660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15661 _ACEOF
15662
15663 fi
15664 done
15665
15666
15667
15668
15669
15670
15671
15672 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
15673 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
15674 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
15675   $as_echo_n "(cached) " >&6
15676 else
15677   cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683 $ac_includes_default
15684 int
15685 main ()
15686 {
15687 #ifndef fflush_unlocked
15688   (void) fflush_unlocked;
15689 #endif
15690
15691   ;
15692   return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699   *) ac_try_echo=$ac_try;;
15700 esac
15701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15702 $as_echo "$ac_try_echo") >&5
15703   (eval "$ac_compile") 2>conftest.er1
15704   ac_status=$?
15705   grep -v '^ *+' conftest.er1 >conftest.err
15706   rm -f conftest.er1
15707   cat conftest.err >&5
15708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); } && {
15710          test -z "$ac_c_werror_flag" ||
15711          test ! -s conftest.err
15712        } && test -s conftest.$ac_objext; then
15713   ac_cv_have_decl_fflush_unlocked=yes
15714 else
15715   $as_echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15717
15718         ac_cv_have_decl_fflush_unlocked=no
15719 fi
15720
15721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722 fi
15723 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
15724 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
15725 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
15726
15727 cat >>confdefs.h <<_ACEOF
15728 #define HAVE_DECL_FFLUSH_UNLOCKED 1
15729 _ACEOF
15730
15731
15732 else
15733   cat >>confdefs.h <<_ACEOF
15734 #define HAVE_DECL_FFLUSH_UNLOCKED 0
15735 _ACEOF
15736
15737
15738 fi
15739
15740
15741 { $as_echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
15742 $as_echo_n "checking whether flockfile is declared... " >&6; }
15743 if test "${ac_cv_have_decl_flockfile+set}" = set; then
15744   $as_echo_n "(cached) " >&6
15745 else
15746   cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h.  */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h.  */
15752 $ac_includes_default
15753 int
15754 main ()
15755 {
15756 #ifndef flockfile
15757   (void) flockfile;
15758 #endif
15759
15760   ;
15761   return 0;
15762 }
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (ac_try="$ac_compile"
15766 case "(($ac_try" in
15767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768   *) ac_try_echo=$ac_try;;
15769 esac
15770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15771 $as_echo "$ac_try_echo") >&5
15772   (eval "$ac_compile") 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } && {
15779          test -z "$ac_c_werror_flag" ||
15780          test ! -s conftest.err
15781        } && test -s conftest.$ac_objext; then
15782   ac_cv_have_decl_flockfile=yes
15783 else
15784   $as_echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15786
15787         ac_cv_have_decl_flockfile=no
15788 fi
15789
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 fi
15792 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
15793 $as_echo "$ac_cv_have_decl_flockfile" >&6; }
15794 if test "x$ac_cv_have_decl_flockfile" = x""yes; then
15795
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_DECL_FLOCKFILE 1
15798 _ACEOF
15799
15800
15801 else
15802   cat >>confdefs.h <<_ACEOF
15803 #define HAVE_DECL_FLOCKFILE 0
15804 _ACEOF
15805
15806
15807 fi
15808
15809
15810 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
15811 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
15812 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
15813   $as_echo_n "(cached) " >&6
15814 else
15815   cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h.  */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h.  */
15821 $ac_includes_default
15822 int
15823 main ()
15824 {
15825 #ifndef fputs_unlocked
15826   (void) fputs_unlocked;
15827 #endif
15828
15829   ;
15830   return 0;
15831 }
15832 _ACEOF
15833 rm -f conftest.$ac_objext
15834 if { (ac_try="$ac_compile"
15835 case "(($ac_try" in
15836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837   *) ac_try_echo=$ac_try;;
15838 esac
15839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15840 $as_echo "$ac_try_echo") >&5
15841   (eval "$ac_compile") 2>conftest.er1
15842   ac_status=$?
15843   grep -v '^ *+' conftest.er1 >conftest.err
15844   rm -f conftest.er1
15845   cat conftest.err >&5
15846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); } && {
15848          test -z "$ac_c_werror_flag" ||
15849          test ! -s conftest.err
15850        } && test -s conftest.$ac_objext; then
15851   ac_cv_have_decl_fputs_unlocked=yes
15852 else
15853   $as_echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856         ac_cv_have_decl_fputs_unlocked=no
15857 fi
15858
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 fi
15861 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
15862 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
15863 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
15864
15865 cat >>confdefs.h <<_ACEOF
15866 #define HAVE_DECL_FPUTS_UNLOCKED 1
15867 _ACEOF
15868
15869
15870 else
15871   cat >>confdefs.h <<_ACEOF
15872 #define HAVE_DECL_FPUTS_UNLOCKED 0
15873 _ACEOF
15874
15875
15876 fi
15877
15878
15879 { $as_echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
15880 $as_echo_n "checking whether funlockfile is declared... " >&6; }
15881 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
15882   $as_echo_n "(cached) " >&6
15883 else
15884   cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890 $ac_includes_default
15891 int
15892 main ()
15893 {
15894 #ifndef funlockfile
15895   (void) funlockfile;
15896 #endif
15897
15898   ;
15899   return 0;
15900 }
15901 _ACEOF
15902 rm -f conftest.$ac_objext
15903 if { (ac_try="$ac_compile"
15904 case "(($ac_try" in
15905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906   *) ac_try_echo=$ac_try;;
15907 esac
15908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909 $as_echo "$ac_try_echo") >&5
15910   (eval "$ac_compile") 2>conftest.er1
15911   ac_status=$?
15912   grep -v '^ *+' conftest.er1 >conftest.err
15913   rm -f conftest.er1
15914   cat conftest.err >&5
15915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); } && {
15917          test -z "$ac_c_werror_flag" ||
15918          test ! -s conftest.err
15919        } && test -s conftest.$ac_objext; then
15920   ac_cv_have_decl_funlockfile=yes
15921 else
15922   $as_echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925         ac_cv_have_decl_funlockfile=no
15926 fi
15927
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 fi
15930 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
15931 $as_echo "$ac_cv_have_decl_funlockfile" >&6; }
15932 if test "x$ac_cv_have_decl_funlockfile" = x""yes; then
15933
15934 cat >>confdefs.h <<_ACEOF
15935 #define HAVE_DECL_FUNLOCKFILE 1
15936 _ACEOF
15937
15938
15939 else
15940   cat >>confdefs.h <<_ACEOF
15941 #define HAVE_DECL_FUNLOCKFILE 0
15942 _ACEOF
15943
15944
15945 fi
15946
15947
15948 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
15949 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
15950 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
15951   $as_echo_n "(cached) " >&6
15952 else
15953   cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h.  */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h.  */
15959 $ac_includes_default
15960 int
15961 main ()
15962 {
15963 #ifndef putc_unlocked
15964   (void) putc_unlocked;
15965 #endif
15966
15967   ;
15968   return 0;
15969 }
15970 _ACEOF
15971 rm -f conftest.$ac_objext
15972 if { (ac_try="$ac_compile"
15973 case "(($ac_try" in
15974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975   *) ac_try_echo=$ac_try;;
15976 esac
15977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15978 $as_echo "$ac_try_echo") >&5
15979   (eval "$ac_compile") 2>conftest.er1
15980   ac_status=$?
15981   grep -v '^ *+' conftest.er1 >conftest.err
15982   rm -f conftest.er1
15983   cat conftest.err >&5
15984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } && {
15986          test -z "$ac_c_werror_flag" ||
15987          test ! -s conftest.err
15988        } && test -s conftest.$ac_objext; then
15989   ac_cv_have_decl_putc_unlocked=yes
15990 else
15991   $as_echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15993
15994         ac_cv_have_decl_putc_unlocked=no
15995 fi
15996
15997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15998 fi
15999 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
16000 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
16001 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
16002
16003 cat >>confdefs.h <<_ACEOF
16004 #define HAVE_DECL_PUTC_UNLOCKED 1
16005 _ACEOF
16006
16007
16008 else
16009   cat >>confdefs.h <<_ACEOF
16010 #define HAVE_DECL_PUTC_UNLOCKED 0
16011 _ACEOF
16012
16013
16014 fi
16015
16016
16017
16018   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16019 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16020 if test "${am_cv_langinfo_codeset+set}" = set; then
16021   $as_echo_n "(cached) " >&6
16022 else
16023   cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029 #include <langinfo.h>
16030 int
16031 main ()
16032 {
16033 char* cs = nl_langinfo(CODESET); return !cs;
16034   ;
16035   return 0;
16036 }
16037 _ACEOF
16038 rm -f conftest.$ac_objext conftest$ac_exeext
16039 if { (ac_try="$ac_link"
16040 case "(($ac_try" in
16041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042   *) ac_try_echo=$ac_try;;
16043 esac
16044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16045 $as_echo "$ac_try_echo") >&5
16046   (eval "$ac_link") 2>conftest.er1
16047   ac_status=$?
16048   grep -v '^ *+' conftest.er1 >conftest.err
16049   rm -f conftest.er1
16050   cat conftest.err >&5
16051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); } && {
16053          test -z "$ac_c_werror_flag" ||
16054          test ! -s conftest.err
16055        } && test -s conftest$ac_exeext && {
16056          test "$cross_compiling" = yes ||
16057          $as_test_x conftest$ac_exeext
16058        }; then
16059   am_cv_langinfo_codeset=yes
16060 else
16061   $as_echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064         am_cv_langinfo_codeset=no
16065 fi
16066
16067 rm -rf conftest.dSYM
16068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16069       conftest$ac_exeext conftest.$ac_ext
16070
16071 fi
16072 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16073 $as_echo "$am_cv_langinfo_codeset" >&6; }
16074   if test $am_cv_langinfo_codeset = yes; then
16075
16076 cat >>confdefs.h <<\_ACEOF
16077 #define HAVE_LANGINFO_CODESET 1
16078 _ACEOF
16079
16080   fi
16081
16082 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
16083 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
16084 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
16085   $as_echo_n "(cached) " >&6
16086 else
16087   cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h.  */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h.  */
16093 $ac_includes_default
16094 int
16095 main ()
16096 {
16097 #ifndef getc_unlocked
16098   (void) getc_unlocked;
16099 #endif
16100
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext
16106 if { (ac_try="$ac_compile"
16107 case "(($ac_try" in
16108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109   *) ac_try_echo=$ac_try;;
16110 esac
16111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16112 $as_echo "$ac_try_echo") >&5
16113   (eval "$ac_compile") 2>conftest.er1
16114   ac_status=$?
16115   grep -v '^ *+' conftest.er1 >conftest.err
16116   rm -f conftest.er1
16117   cat conftest.err >&5
16118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); } && {
16120          test -z "$ac_c_werror_flag" ||
16121          test ! -s conftest.err
16122        } && test -s conftest.$ac_objext; then
16123   ac_cv_have_decl_getc_unlocked=yes
16124 else
16125   $as_echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16127
16128         ac_cv_have_decl_getc_unlocked=no
16129 fi
16130
16131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132 fi
16133 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
16134 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
16135 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
16136
16137 cat >>confdefs.h <<_ACEOF
16138 #define HAVE_DECL_GETC_UNLOCKED 1
16139 _ACEOF
16140
16141
16142 else
16143   cat >>confdefs.h <<_ACEOF
16144 #define HAVE_DECL_GETC_UNLOCKED 0
16145 _ACEOF
16146
16147
16148 fi
16149
16150
16151
16152     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
16153 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
16154 if test "${ac_cv_gnu_library_2_1+set}" = set; then
16155   $as_echo_n "(cached) " >&6
16156 else
16157   cat >conftest.$ac_ext <<_ACEOF
16158 /* confdefs.h.  */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h.  */
16163
16164 #include <features.h>
16165 #ifdef __GNU_LIBRARY__
16166  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16167   Lucky GNU user
16168  #endif
16169 #endif
16170
16171 _ACEOF
16172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
16174   ac_cv_gnu_library_2_1=yes
16175 else
16176   ac_cv_gnu_library_2_1=no
16177 fi
16178 rm -f conftest*
16179
16180
16181
16182 fi
16183 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
16184 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
16185
16186     GLIBC21="$ac_cv_gnu_library_2_1"
16187
16188
16189
16190   GNULIB_BTOWC=0;
16191   GNULIB_WCTOB=0;
16192   GNULIB_MBSINIT=0;
16193   GNULIB_MBRTOWC=0;
16194   GNULIB_MBRLEN=0;
16195   GNULIB_MBSRTOWCS=0;
16196   GNULIB_MBSNRTOWCS=0;
16197   GNULIB_WCRTOMB=0;
16198   GNULIB_WCSRTOMBS=0;
16199   GNULIB_WCSNRTOMBS=0;
16200   GNULIB_WCWIDTH=0;
16201     HAVE_BTOWC=1;
16202   HAVE_MBSINIT=1;
16203   HAVE_MBRTOWC=1;
16204   HAVE_MBRLEN=1;
16205   HAVE_MBSRTOWCS=1;
16206   HAVE_MBSNRTOWCS=1;
16207   HAVE_WCRTOMB=1;
16208   HAVE_WCSRTOMBS=1;
16209   HAVE_WCSNRTOMBS=1;
16210   HAVE_DECL_WCTOB=1;
16211   HAVE_DECL_WCWIDTH=1;
16212   REPLACE_MBSTATE_T=0;
16213   REPLACE_BTOWC=0;
16214   REPLACE_WCTOB=0;
16215   REPLACE_MBSINIT=0;
16216   REPLACE_MBRTOWC=0;
16217   REPLACE_MBRLEN=0;
16218   REPLACE_MBSRTOWCS=0;
16219   REPLACE_MBSNRTOWCS=0;
16220   REPLACE_WCRTOMB=0;
16221   REPLACE_WCSRTOMBS=0;
16222   REPLACE_WCSNRTOMBS=0;
16223   REPLACE_WCWIDTH=0;
16224   WCHAR_H='';
16225
16226
16227
16228    { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
16229 $as_echo_n "checking for mbstate_t... " >&6; }
16230 if test "${ac_cv_type_mbstate_t+set}" = set; then
16231   $as_echo_n "(cached) " >&6
16232 else
16233   cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h.  */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h.  */
16239 $ac_includes_default
16240 #           include <wchar.h>
16241 int
16242 main ()
16243 {
16244 mbstate_t x; return sizeof x;
16245   ;
16246   return 0;
16247 }
16248 _ACEOF
16249 rm -f conftest.$ac_objext
16250 if { (ac_try="$ac_compile"
16251 case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256 $as_echo "$ac_try_echo") >&5
16257   (eval "$ac_compile") 2>conftest.er1
16258   ac_status=$?
16259   grep -v '^ *+' conftest.er1 >conftest.err
16260   rm -f conftest.er1
16261   cat conftest.err >&5
16262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); } && {
16264          test -z "$ac_c_werror_flag" ||
16265          test ! -s conftest.err
16266        } && test -s conftest.$ac_objext; then
16267   ac_cv_type_mbstate_t=yes
16268 else
16269   $as_echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16271
16272         ac_cv_type_mbstate_t=no
16273 fi
16274
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 fi
16277 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
16278 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16279    if test $ac_cv_type_mbstate_t = yes; then
16280
16281 cat >>confdefs.h <<\_ACEOF
16282 #define HAVE_MBSTATE_T 1
16283 _ACEOF
16284
16285    else
16286
16287 cat >>confdefs.h <<\_ACEOF
16288 #define mbstate_t int
16289 _ACEOF
16290
16291    fi
16292
16293
16294
16295
16296
16297
16298
16299
16300   { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
16301 $as_echo_n "checking for a traditional japanese locale... " >&6; }
16302 if test "${gt_cv_locale_ja+set}" = set; then
16303   $as_echo_n "(cached) " >&6
16304 else
16305
16306     cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h.  */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h.  */
16312
16313 #include <locale.h>
16314 #include <time.h>
16315 #if HAVE_LANGINFO_CODESET
16316 # include <langinfo.h>
16317 #endif
16318 #include <stdlib.h>
16319 #include <string.h>
16320 struct tm t;
16321 char buf[16];
16322 int main ()
16323 {
16324   const char *p;
16325   /* Check whether the given locale name is recognized by the system.  */
16326   if (setlocale (LC_ALL, "") == NULL) return 1;
16327   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16328      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16329      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16330      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16331      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16332      some unit tests fail.  */
16333 #if HAVE_LANGINFO_CODESET
16334   {
16335     const char *cs = nl_langinfo (CODESET);
16336     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16337       return 1;
16338   }
16339 #endif
16340 #ifdef __CYGWIN__
16341   /* On Cygwin, avoid locale names without encoding suffix, because the
16342      locale_charset() function relies on the encoding suffix.  Note that
16343      LC_ALL is set on the command line.  */
16344   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16345 #endif
16346   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
16347      on Cygwin 1.5.x.  */
16348   if (MB_CUR_MAX == 1)
16349     return 1;
16350   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16351      This excludes the UTF-8 encoding.  */
16352   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16353   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16354   for (p = buf; *p != '\0'; p++)
16355     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16356       return 1;
16357   return 0;
16358 }
16359
16360 _ACEOF
16361     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362   (eval $ac_link) 2>&5
16363   ac_status=$?
16364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); } && test -s conftest$ac_exeext; then
16366       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16367       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16368       # configure script would override the LC_ALL setting. Likewise for
16369       # LC_CTYPE, which is also set at the beginning of the configure script.
16370       # Test for the AIX locale name.
16371       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16372         gt_cv_locale_ja=ja_JP
16373       else
16374         # Test for the locale name with explicit encoding suffix.
16375         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16376           gt_cv_locale_ja=ja_JP.EUC-JP
16377         else
16378           # Test for the HP-UX, OSF/1, NetBSD locale name.
16379           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16380             gt_cv_locale_ja=ja_JP.eucJP
16381           else
16382             # Test for the IRIX, FreeBSD locale name.
16383             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16384               gt_cv_locale_ja=ja_JP.EUC
16385             else
16386               # Test for the Solaris 7 locale name.
16387               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16388                 gt_cv_locale_ja=ja
16389               else
16390                 # Special test for NetBSD 1.6.
16391                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
16392                   gt_cv_locale_ja=ja_JP.eucJP
16393                 else
16394                   # None found.
16395                   gt_cv_locale_ja=none
16396                 fi
16397               fi
16398             fi
16399           fi
16400         fi
16401       fi
16402     fi
16403     rm -fr conftest*
16404
16405 fi
16406 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
16407 $as_echo "$gt_cv_locale_ja" >&6; }
16408   LOCALE_JA=$gt_cv_locale_ja
16409
16410
16411
16412
16413
16414   { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
16415 $as_echo_n "checking for a transitional chinese locale... " >&6; }
16416 if test "${gt_cv_locale_zh_CN+set}" = set; then
16417   $as_echo_n "(cached) " >&6
16418 else
16419
16420     cat >conftest.$ac_ext <<_ACEOF
16421 /* confdefs.h.  */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h.  */
16426
16427 #include <locale.h>
16428 #include <stdlib.h>
16429 #include <time.h>
16430 #if HAVE_LANGINFO_CODESET
16431 # include <langinfo.h>
16432 #endif
16433 #include <stdlib.h>
16434 #include <string.h>
16435 struct tm t;
16436 char buf[16];
16437 int main ()
16438 {
16439   const char *p;
16440   /* Check whether the given locale name is recognized by the system.  */
16441   if (setlocale (LC_ALL, "") == NULL) return 1;
16442   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16443      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16444      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16445      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16446      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16447      some unit tests fail.  */
16448 #if HAVE_LANGINFO_CODESET
16449   {
16450     const char *cs = nl_langinfo (CODESET);
16451     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16452       return 1;
16453   }
16454 #endif
16455 #ifdef __CYGWIN__
16456   /* On Cygwin, avoid locale names without encoding suffix, because the
16457      locale_charset() function relies on the encoding suffix.  Note that
16458      LC_ALL is set on the command line.  */
16459   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16460 #endif
16461   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
16462      This excludes the UTF-8 encoding.  */
16463   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16464   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
16465   for (p = buf; *p != '\0'; p++)
16466     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
16467       return 1;
16468   /* Check whether a typical GB18030 multibyte sequence is recognized as a
16469      single wide character.  This excludes the GB2312 and GBK encodings.  */
16470   if (mblen ("\203\062\332\066", 5) != 4)
16471     return 1;
16472   return 0;
16473 }
16474
16475 _ACEOF
16476     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477   (eval $ac_link) 2>&5
16478   ac_status=$?
16479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); } && test -s conftest$ac_exeext; then
16481       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16482       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16483       # configure script would override the LC_ALL setting. Likewise for
16484       # LC_CTYPE, which is also set at the beginning of the configure script.
16485       # Test for the locale name without encoding suffix.
16486       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16487         gt_cv_locale_zh_CN=zh_CN
16488       else
16489         # Test for the locale name with explicit encoding suffix.
16490         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16491           gt_cv_locale_zh_CN=zh_CN.GB18030
16492         else
16493           # None found.
16494           gt_cv_locale_zh_CN=none
16495         fi
16496       fi
16497     else
16498       # If there was a link error, due to mblen(), the system is so old that
16499       # it certainly doesn't have a chinese locale.
16500       gt_cv_locale_zh_CN=none
16501     fi
16502     rm -fr conftest*
16503
16504 fi
16505 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
16506 $as_echo "$gt_cv_locale_zh_CN" >&6; }
16507   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
16508
16509
16510
16511
16512   { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
16513 $as_echo_n "checking for a french Unicode locale... " >&6; }
16514 if test "${gt_cv_locale_fr_utf8+set}" = set; then
16515   $as_echo_n "(cached) " >&6
16516 else
16517
16518     cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524
16525 #include <locale.h>
16526 #include <time.h>
16527 #if HAVE_LANGINFO_CODESET
16528 # include <langinfo.h>
16529 #endif
16530 #include <stdlib.h>
16531 #include <string.h>
16532 struct tm t;
16533 char buf[16];
16534 int main () {
16535   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
16536      imitates locale dependent behaviour by looking at the environment
16537      variables, and all locales use the UTF-8 encoding.  */
16538 #if !(defined __BEOS__ || defined __HAIKU__)
16539   /* Check whether the given locale name is recognized by the system.  */
16540   if (setlocale (LC_ALL, "") == NULL) return 1;
16541   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
16542      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
16543      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
16544      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
16545      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
16546      some unit tests fail.  */
16547 # if HAVE_LANGINFO_CODESET
16548   {
16549     const char *cs = nl_langinfo (CODESET);
16550     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
16551       return 1;
16552   }
16553 # endif
16554 # ifdef __CYGWIN__
16555   /* On Cygwin, avoid locale names without encoding suffix, because the
16556      locale_charset() function relies on the encoding suffix.  Note that
16557      LC_ALL is set on the command line.  */
16558   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
16559 # endif
16560   /* Check whether in the abbreviation of the second month, the second
16561      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
16562      two bytes long, with UTF-8 encoding.  */
16563   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
16564   if (strftime (buf, sizeof (buf), "%b", &t) < 4
16565       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
16566     return 1;
16567 #endif
16568   /* Check whether the decimal separator is a comma.
16569      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
16570      are nl_langinfo(RADIXCHAR) are both ".".  */
16571   if (localeconv () ->decimal_point[0] != ',') return 1;
16572   return 0;
16573 }
16574
16575 _ACEOF
16576     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577   (eval $ac_link) 2>&5
16578   ac_status=$?
16579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); } && test -s conftest$ac_exeext; then
16581       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
16582       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
16583       # configure script would override the LC_ALL setting. Likewise for
16584       # LC_CTYPE, which is also set at the beginning of the configure script.
16585       # Test for the usual locale name.
16586       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16587         gt_cv_locale_fr_utf8=fr_FR
16588       else
16589         # Test for the locale name with explicit encoding suffix.
16590         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16591           gt_cv_locale_fr_utf8=fr_FR.UTF-8
16592         else
16593           # Test for the Solaris 7 locale name.
16594           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
16595             gt_cv_locale_fr_utf8=fr.UTF-8
16596           else
16597             # None found.
16598             gt_cv_locale_fr_utf8=none
16599           fi
16600         fi
16601       fi
16602     fi
16603     rm -fr conftest*
16604
16605 fi
16606 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
16607 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
16608   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
16609
16610
16611
16612
16613
16614
16615
16616   GNULIB_MEMCHR=0;
16617   GNULIB_MEMMEM=0;
16618   GNULIB_MEMPCPY=0;
16619   GNULIB_MEMRCHR=0;
16620   GNULIB_RAWMEMCHR=0;
16621   GNULIB_STPCPY=0;
16622   GNULIB_STPNCPY=0;
16623   GNULIB_STRCHRNUL=0;
16624   GNULIB_STRDUP=0;
16625   GNULIB_STRNDUP=0;
16626   GNULIB_STRNLEN=0;
16627   GNULIB_STRPBRK=0;
16628   GNULIB_STRSEP=0;
16629   GNULIB_STRSTR=0;
16630   GNULIB_STRCASESTR=0;
16631   GNULIB_STRTOK_R=0;
16632   GNULIB_MBSLEN=0;
16633   GNULIB_MBSNLEN=0;
16634   GNULIB_MBSCHR=0;
16635   GNULIB_MBSRCHR=0;
16636   GNULIB_MBSSTR=0;
16637   GNULIB_MBSCASECMP=0;
16638   GNULIB_MBSNCASECMP=0;
16639   GNULIB_MBSPCASECMP=0;
16640   GNULIB_MBSCASESTR=0;
16641   GNULIB_MBSCSPN=0;
16642   GNULIB_MBSPBRK=0;
16643   GNULIB_MBSSPN=0;
16644   GNULIB_MBSSEP=0;
16645   GNULIB_MBSTOK_R=0;
16646   GNULIB_STRERROR=0;
16647   GNULIB_STRSIGNAL=0;
16648   GNULIB_STRVERSCMP=0;
16649     HAVE_DECL_MEMMEM=1;
16650   HAVE_MEMPCPY=1;
16651   HAVE_DECL_MEMRCHR=1;
16652   HAVE_RAWMEMCHR=1;
16653   HAVE_STPCPY=1;
16654   HAVE_STPNCPY=1;
16655   HAVE_STRCHRNUL=1;
16656   HAVE_DECL_STRDUP=1;
16657   HAVE_STRNDUP=1;
16658   HAVE_DECL_STRNDUP=1;
16659   HAVE_DECL_STRNLEN=1;
16660   HAVE_STRPBRK=1;
16661   HAVE_STRSEP=1;
16662   HAVE_STRCASESTR=1;
16663   HAVE_DECL_STRTOK_R=1;
16664   HAVE_DECL_STRERROR=1;
16665   HAVE_DECL_STRSIGNAL=1;
16666   HAVE_STRVERSCMP=1;
16667   REPLACE_MEMCHR=0;
16668   REPLACE_MEMMEM=0;
16669   REPLACE_STRDUP=0;
16670   REPLACE_STRSTR=0;
16671   REPLACE_STRCASESTR=0;
16672   REPLACE_STRERROR=0;
16673   REPLACE_STRSIGNAL=0;
16674
16675
16676
16677
16678
16679
16680
16681
16682   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16683   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16684   # irrelevant for anonymous mappings.
16685   { $as_echo "$as_me:$LINENO: checking for mmap" >&5
16686 $as_echo_n "checking for mmap... " >&6; }
16687 if test "${ac_cv_func_mmap+set}" = set; then
16688   $as_echo_n "(cached) " >&6
16689 else
16690   cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h.  */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h.  */
16696 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
16697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16698 #define mmap innocuous_mmap
16699
16700 /* System header to define __stub macros and hopefully few prototypes,
16701     which can conflict with char mmap (); below.
16702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16703     <limits.h> exists even on freestanding compilers.  */
16704
16705 #ifdef __STDC__
16706 # include <limits.h>
16707 #else
16708 # include <assert.h>
16709 #endif
16710
16711 #undef mmap
16712
16713 /* Override any GCC internal prototype to avoid an error.
16714    Use char because int might match the return type of a GCC
16715    builtin and then its argument prototype would still apply.  */
16716 #ifdef __cplusplus
16717 extern "C"
16718 #endif
16719 char mmap ();
16720 /* The GNU C library defines this for functions which it implements
16721     to always fail with ENOSYS.  Some functions are actually named
16722     something starting with __ and the normal name is an alias.  */
16723 #if defined __stub_mmap || defined __stub___mmap
16724 choke me
16725 #endif
16726
16727 int
16728 main ()
16729 {
16730 return mmap ();
16731   ;
16732   return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739   *) ac_try_echo=$ac_try;;
16740 esac
16741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16742 $as_echo "$ac_try_echo") >&5
16743   (eval "$ac_link") 2>conftest.er1
16744   ac_status=$?
16745   grep -v '^ *+' conftest.er1 >conftest.err
16746   rm -f conftest.er1
16747   cat conftest.err >&5
16748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); } && {
16750          test -z "$ac_c_werror_flag" ||
16751          test ! -s conftest.err
16752        } && test -s conftest$ac_exeext && {
16753          test "$cross_compiling" = yes ||
16754          $as_test_x conftest$ac_exeext
16755        }; then
16756   ac_cv_func_mmap=yes
16757 else
16758   $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16760
16761         ac_cv_func_mmap=no
16762 fi
16763
16764 rm -rf conftest.dSYM
16765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16766       conftest$ac_exeext conftest.$ac_ext
16767 fi
16768 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
16769 $as_echo "$ac_cv_func_mmap" >&6; }
16770 if test "x$ac_cv_func_mmap" = x""yes; then
16771   gl_have_mmap=yes
16772 else
16773   gl_have_mmap=no
16774 fi
16775
16776
16777   # Try to allow MAP_ANONYMOUS.
16778   gl_have_mmap_anonymous=no
16779   if test $gl_have_mmap = yes; then
16780     { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
16781 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
16782     cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h.  */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h.  */
16788
16789 #include <sys/mman.h>
16790 #ifdef MAP_ANONYMOUS
16791     I cant identify this map.
16792 #endif
16793
16794 _ACEOF
16795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16796   $EGREP "I cant identify this map." >/dev/null 2>&1; then
16797   gl_have_mmap_anonymous=yes
16798 fi
16799 rm -f conftest*
16800
16801     if test $gl_have_mmap_anonymous != yes; then
16802       cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h.  */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h.  */
16808
16809 #include <sys/mman.h>
16810 #ifdef MAP_ANON
16811     I cant identify this map.
16812 #endif
16813
16814 _ACEOF
16815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16816   $EGREP "I cant identify this map." >/dev/null 2>&1; then
16817
16818 cat >>confdefs.h <<\_ACEOF
16819 #define MAP_ANONYMOUS MAP_ANON
16820 _ACEOF
16821
16822          gl_have_mmap_anonymous=yes
16823 fi
16824 rm -f conftest*
16825
16826     fi
16827     { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
16828 $as_echo "$gl_have_mmap_anonymous" >&6; }
16829     if test $gl_have_mmap_anonymous = yes; then
16830
16831 cat >>confdefs.h <<\_ACEOF
16832 #define HAVE_MAP_ANONYMOUS 1
16833 _ACEOF
16834
16835     fi
16836   fi
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861 for ac_func in memchr
16862 do
16863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16865 $as_echo_n "checking for $ac_func... " >&6; }
16866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16867   $as_echo_n "(cached) " >&6
16868 else
16869   cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h.  */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h.  */
16875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16877 #define $ac_func innocuous_$ac_func
16878
16879 /* System header to define __stub macros and hopefully few prototypes,
16880     which can conflict with char $ac_func (); below.
16881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16882     <limits.h> exists even on freestanding compilers.  */
16883
16884 #ifdef __STDC__
16885 # include <limits.h>
16886 #else
16887 # include <assert.h>
16888 #endif
16889
16890 #undef $ac_func
16891
16892 /* Override any GCC internal prototype to avoid an error.
16893    Use char because int might match the return type of a GCC
16894    builtin and then its argument prototype would still apply.  */
16895 #ifdef __cplusplus
16896 extern "C"
16897 #endif
16898 char $ac_func ();
16899 /* The GNU C library defines this for functions which it implements
16900     to always fail with ENOSYS.  Some functions are actually named
16901     something starting with __ and the normal name is an alias.  */
16902 #if defined __stub_$ac_func || defined __stub___$ac_func
16903 choke me
16904 #endif
16905
16906 int
16907 main ()
16908 {
16909 return $ac_func ();
16910   ;
16911   return 0;
16912 }
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918   *) ac_try_echo=$ac_try;;
16919 esac
16920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16921 $as_echo "$ac_try_echo") >&5
16922   (eval "$ac_link") 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } && {
16929          test -z "$ac_c_werror_flag" ||
16930          test ! -s conftest.err
16931        } && test -s conftest$ac_exeext && {
16932          test "$cross_compiling" = yes ||
16933          $as_test_x conftest$ac_exeext
16934        }; then
16935   eval "$as_ac_var=yes"
16936 else
16937   $as_echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940         eval "$as_ac_var=no"
16941 fi
16942
16943 rm -rf conftest.dSYM
16944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16945       conftest$ac_exeext conftest.$ac_ext
16946 fi
16947 ac_res=`eval 'as_val=${'$as_ac_var'}
16948                  $as_echo "$as_val"'`
16949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16950 $as_echo "$ac_res" >&6; }
16951 as_val=`eval 'as_val=${'$as_ac_var'}
16952                  $as_echo "$as_val"'`
16953    if test "x$as_val" = x""yes; then
16954   cat >>confdefs.h <<_ACEOF
16955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16956 _ACEOF
16957
16958 else
16959
16960     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16961
16962 fi
16963 done
16964
16965
16966   if test $ac_cv_func_memchr = no; then
16967
16968
16969 for ac_header in bp-sym.h
16970 do
16971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16973   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16974 $as_echo_n "checking for $ac_header... " >&6; }
16975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16976   $as_echo_n "(cached) " >&6
16977 fi
16978 ac_res=`eval 'as_val=${'$as_ac_Header'}
16979                  $as_echo "$as_val"'`
16980                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16981 $as_echo "$ac_res" >&6; }
16982 else
16983   # Is the header compilable?
16984 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16985 $as_echo_n "checking $ac_header usability... " >&6; }
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h.  */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h.  */
16992 $ac_includes_default
16993 #include <$ac_header>
16994 _ACEOF
16995 rm -f conftest.$ac_objext
16996 if { (ac_try="$ac_compile"
16997 case "(($ac_try" in
16998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999   *) ac_try_echo=$ac_try;;
17000 esac
17001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17002 $as_echo "$ac_try_echo") >&5
17003   (eval "$ac_compile") 2>conftest.er1
17004   ac_status=$?
17005   grep -v '^ *+' conftest.er1 >conftest.err
17006   rm -f conftest.er1
17007   cat conftest.err >&5
17008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); } && {
17010          test -z "$ac_c_werror_flag" ||
17011          test ! -s conftest.err
17012        } && test -s conftest.$ac_objext; then
17013   ac_header_compiler=yes
17014 else
17015   $as_echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17017
17018         ac_header_compiler=no
17019 fi
17020
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17023 $as_echo "$ac_header_compiler" >&6; }
17024
17025 # Is the header present?
17026 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17027 $as_echo_n "checking $ac_header presence... " >&6; }
17028 cat >conftest.$ac_ext <<_ACEOF
17029 /* confdefs.h.  */
17030 _ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h.  */
17034 #include <$ac_header>
17035 _ACEOF
17036 if { (ac_try="$ac_cpp conftest.$ac_ext"
17037 case "(($ac_try" in
17038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039   *) ac_try_echo=$ac_try;;
17040 esac
17041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042 $as_echo "$ac_try_echo") >&5
17043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17044   ac_status=$?
17045   grep -v '^ *+' conftest.er1 >conftest.err
17046   rm -f conftest.er1
17047   cat conftest.err >&5
17048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); } >/dev/null && {
17050          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17051          test ! -s conftest.err
17052        }; then
17053   ac_header_preproc=yes
17054 else
17055   $as_echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058   ac_header_preproc=no
17059 fi
17060
17061 rm -f conftest.err conftest.$ac_ext
17062 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17063 $as_echo "$ac_header_preproc" >&6; }
17064
17065 # So?  What about this header?
17066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17067   yes:no: )
17068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17069 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17072     ac_header_preproc=yes
17073     ;;
17074   no:yes:* )
17075     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17076 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17078 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17080 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17082 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17084 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17085     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17086 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17087     ( cat <<\_ASBOX
17088 ## ------------------------------- ##
17089 ## Report this to bug-wget@gnu.org ##
17090 ## ------------------------------- ##
17091 _ASBOX
17092      ) | sed "s/^/$as_me: WARNING:     /" >&2
17093     ;;
17094 esac
17095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17096 $as_echo_n "checking for $ac_header... " >&6; }
17097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17098   $as_echo_n "(cached) " >&6
17099 else
17100   eval "$as_ac_Header=\$ac_header_preproc"
17101 fi
17102 ac_res=`eval 'as_val=${'$as_ac_Header'}
17103                  $as_echo "$as_val"'`
17104                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17105 $as_echo "$ac_res" >&6; }
17106
17107 fi
17108 as_val=`eval 'as_val=${'$as_ac_Header'}
17109                  $as_echo "$as_val"'`
17110    if test "x$as_val" = x""yes; then
17111   cat >>confdefs.h <<_ACEOF
17112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17113 _ACEOF
17114
17115 fi
17116
17117 done
17118
17119
17120     REPLACE_MEMCHR=1
17121   fi
17122
17123   if test $ac_cv_func_memchr = yes; then
17124     # Detect platform-specific bugs in some versions of glibc:
17125     # memchr should not dereference anything with length 0
17126     #   http://bugzilla.redhat.com/499689
17127     # memchr should not dereference overestimated length after a match
17128     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17129     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17130     # Assume that memchr works on platforms that lack mprotect.
17131     { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
17132 $as_echo_n "checking whether memchr works... " >&6; }
17133 if test "${gl_cv_func_memchr_works+set}" = set; then
17134   $as_echo_n "(cached) " >&6
17135 else
17136   if test "$cross_compiling" = yes; then
17137          gl_cv_func_memchr_works="guessing no"
17138 else
17139   cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h.  */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h.  */
17145
17146 #include <string.h>
17147 #if HAVE_SYS_MMAN_H
17148 # include <fcntl.h>
17149 # include <unistd.h>
17150 # include <sys/types.h>
17151 # include <sys/mman.h>
17152 # ifndef MAP_FILE
17153 #  define MAP_FILE 0
17154 # endif
17155 #endif
17156
17157 int
17158 main ()
17159 {
17160
17161   char *fence = NULL;
17162 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17163 # if HAVE_MAP_ANONYMOUS
17164   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17165   const int fd = -1;
17166 # else /* !HAVE_MAP_ANONYMOUS */
17167   const int flags = MAP_FILE | MAP_PRIVATE;
17168   int fd = open ("/dev/zero", O_RDONLY, 0666);
17169   if (fd >= 0)
17170 # endif
17171     {
17172       int pagesize = getpagesize ();
17173       char *two_pages =
17174         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17175                        flags, fd, 0);
17176       if (two_pages != (char *)(-1)
17177           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17178         fence = two_pages + pagesize;
17179     }
17180 #endif
17181   if (fence)
17182     {
17183       if (memchr (fence, 0, 0))
17184         return 1;
17185       strcpy (fence - 9, "12345678");
17186       if (memchr (fence - 9, 0, 79) != fence - 1)
17187         return 2;
17188     }
17189   return 0;
17190
17191   ;
17192   return 0;
17193 }
17194 _ACEOF
17195 rm -f conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203   (eval "$ac_link") 2>&5
17204   ac_status=$?
17205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17207   { (case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212 $as_echo "$ac_try_echo") >&5
17213   (eval "$ac_try") 2>&5
17214   ac_status=$?
17215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; }; then
17217   gl_cv_func_memchr_works=yes
17218 else
17219   $as_echo "$as_me: program exited with status $ac_status" >&5
17220 $as_echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223 ( exit $ac_status )
17224 gl_cv_func_memchr_works=no
17225 fi
17226 rm -rf conftest.dSYM
17227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17228 fi
17229
17230
17231 fi
17232 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
17233 $as_echo "$gl_cv_func_memchr_works" >&6; }
17234     if test "$gl_cv_func_memchr_works" != yes; then
17235
17236
17237 for ac_header in bp-sym.h
17238 do
17239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17241   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17242 $as_echo_n "checking for $ac_header... " >&6; }
17243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17244   $as_echo_n "(cached) " >&6
17245 fi
17246 ac_res=`eval 'as_val=${'$as_ac_Header'}
17247                  $as_echo "$as_val"'`
17248                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17249 $as_echo "$ac_res" >&6; }
17250 else
17251   # Is the header compilable?
17252 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17253 $as_echo_n "checking $ac_header usability... " >&6; }
17254 cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h.  */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h.  */
17260 $ac_includes_default
17261 #include <$ac_header>
17262 _ACEOF
17263 rm -f conftest.$ac_objext
17264 if { (ac_try="$ac_compile"
17265 case "(($ac_try" in
17266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267   *) ac_try_echo=$ac_try;;
17268 esac
17269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17270 $as_echo "$ac_try_echo") >&5
17271   (eval "$ac_compile") 2>conftest.er1
17272   ac_status=$?
17273   grep -v '^ *+' conftest.er1 >conftest.err
17274   rm -f conftest.er1
17275   cat conftest.err >&5
17276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } && {
17278          test -z "$ac_c_werror_flag" ||
17279          test ! -s conftest.err
17280        } && test -s conftest.$ac_objext; then
17281   ac_header_compiler=yes
17282 else
17283   $as_echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17285
17286         ac_header_compiler=no
17287 fi
17288
17289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17290 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17291 $as_echo "$ac_header_compiler" >&6; }
17292
17293 # Is the header present?
17294 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17295 $as_echo_n "checking $ac_header presence... " >&6; }
17296 cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h.  */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h.  */
17302 #include <$ac_header>
17303 _ACEOF
17304 if { (ac_try="$ac_cpp conftest.$ac_ext"
17305 case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17310 $as_echo "$ac_try_echo") >&5
17311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17312   ac_status=$?
17313   grep -v '^ *+' conftest.er1 >conftest.err
17314   rm -f conftest.er1
17315   cat conftest.err >&5
17316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); } >/dev/null && {
17318          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17319          test ! -s conftest.err
17320        }; then
17321   ac_header_preproc=yes
17322 else
17323   $as_echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17325
17326   ac_header_preproc=no
17327 fi
17328
17329 rm -f conftest.err conftest.$ac_ext
17330 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17331 $as_echo "$ac_header_preproc" >&6; }
17332
17333 # So?  What about this header?
17334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17335   yes:no: )
17336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17337 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17338     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17339 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17340     ac_header_preproc=yes
17341     ;;
17342   no:yes:* )
17343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17344 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17346 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17348 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17350 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17354 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17355     ( cat <<\_ASBOX
17356 ## ------------------------------- ##
17357 ## Report this to bug-wget@gnu.org ##
17358 ## ------------------------------- ##
17359 _ASBOX
17360      ) | sed "s/^/$as_me: WARNING:     /" >&2
17361     ;;
17362 esac
17363 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17364 $as_echo_n "checking for $ac_header... " >&6; }
17365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17366   $as_echo_n "(cached) " >&6
17367 else
17368   eval "$as_ac_Header=\$ac_header_preproc"
17369 fi
17370 ac_res=`eval 'as_val=${'$as_ac_Header'}
17371                  $as_echo "$as_val"'`
17372                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17373 $as_echo "$ac_res" >&6; }
17374
17375 fi
17376 as_val=`eval 'as_val=${'$as_ac_Header'}
17377                  $as_echo "$as_val"'`
17378    if test "x$as_val" = x""yes; then
17379   cat >>confdefs.h <<_ACEOF
17380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17381 _ACEOF
17382
17383 fi
17384
17385 done
17386
17387
17388       REPLACE_MEMCHR=1
17389
17390
17391
17392
17393
17394
17395
17396
17397   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
17398
17399     fi
17400   fi
17401
17402
17403     gl_cv_c_multiarch=no
17404   cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h.  */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h.  */
17410 #ifndef __APPLE_CC__
17411          not a universal capable compiler
17412         #endif
17413         typedef int dummy;
17414
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (ac_try="$ac_compile"
17418 case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17423 $as_echo "$ac_try_echo") >&5
17424   (eval "$ac_compile") 2>conftest.er1
17425   ac_status=$?
17426   grep -v '^ *+' conftest.er1 >conftest.err
17427   rm -f conftest.er1
17428   cat conftest.err >&5
17429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } && {
17431          test -z "$ac_c_werror_flag" ||
17432          test ! -s conftest.err
17433        } && test -s conftest.$ac_objext; then
17434
17435                arch=
17436      prev=
17437      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17438        if test -n "$prev"; then
17439          case $word in
17440            i?86 | x86_64 | ppc | ppc64)
17441              if test -z "$arch" || test "$arch" = "$word"; then
17442                arch="$word"
17443              else
17444                gl_cv_c_multiarch=yes
17445              fi
17446              ;;
17447          esac
17448          prev=
17449        else
17450          if test "x$word" = "x-arch"; then
17451            prev=arch
17452          fi
17453        fi
17454      done
17455
17456 else
17457   $as_echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460
17461 fi
17462
17463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464   if test $gl_cv_c_multiarch = yes; then
17465
17466 cat >>confdefs.h <<\_ACEOF
17467 #define AA_APPLE_UNIVERSAL_BUILD 1
17468 _ACEOF
17469
17470     APPLE_UNIVERSAL_BUILD=1
17471   else
17472     APPLE_UNIVERSAL_BUILD=0
17473   fi
17474
17475
17476
17477   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17478 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17479 if test "${gl_cv_func_malloc_posix+set}" = set; then
17480   $as_echo_n "(cached) " >&6
17481 else
17482
17483                         cat >conftest.$ac_ext <<_ACEOF
17484 /* confdefs.h.  */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h.  */
17489
17490 int
17491 main ()
17492 {
17493 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17494          choke me
17495          #endif
17496
17497   ;
17498   return 0;
17499 }
17500 _ACEOF
17501 rm -f conftest.$ac_objext
17502 if { (ac_try="$ac_compile"
17503 case "(($ac_try" in
17504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505   *) ac_try_echo=$ac_try;;
17506 esac
17507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17508 $as_echo "$ac_try_echo") >&5
17509   (eval "$ac_compile") 2>conftest.er1
17510   ac_status=$?
17511   grep -v '^ *+' conftest.er1 >conftest.err
17512   rm -f conftest.er1
17513   cat conftest.err >&5
17514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515   (exit $ac_status); } && {
17516          test -z "$ac_c_werror_flag" ||
17517          test ! -s conftest.err
17518        } && test -s conftest.$ac_objext; then
17519   gl_cv_func_malloc_posix=yes
17520 else
17521   $as_echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524         gl_cv_func_malloc_posix=no
17525 fi
17526
17527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17528
17529 fi
17530 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
17531 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17532
17533
17534   GNULIB_MALLOC_POSIX=0;
17535   GNULIB_REALLOC_POSIX=0;
17536   GNULIB_CALLOC_POSIX=0;
17537   GNULIB_ATOLL=0;
17538   GNULIB_GETLOADAVG=0;
17539   GNULIB_GETSUBOPT=0;
17540   GNULIB_MKDTEMP=0;
17541   GNULIB_MKOSTEMP=0;
17542   GNULIB_MKSTEMP=0;
17543   GNULIB_PUTENV=0;
17544   GNULIB_RANDOM_R=0;
17545   GNULIB_RPMATCH=0;
17546   GNULIB_SETENV=0;
17547   GNULIB_STRTOD=0;
17548   GNULIB_STRTOLL=0;
17549   GNULIB_STRTOULL=0;
17550   GNULIB_UNSETENV=0;
17551     HAVE_ATOLL=1;
17552   HAVE_CALLOC_POSIX=1;
17553   HAVE_GETSUBOPT=1;
17554   HAVE_MALLOC_POSIX=1;
17555   HAVE_MKDTEMP=1;
17556   HAVE_MKOSTEMP=1;
17557   HAVE_REALLOC_POSIX=1;
17558   HAVE_RANDOM_R=1;
17559   HAVE_RPMATCH=1;
17560   HAVE_SETENV=1;
17561   HAVE_STRTOD=1;
17562   HAVE_STRTOLL=1;
17563   HAVE_STRTOULL=1;
17564   HAVE_STRUCT_RANDOM_DATA=1;
17565   HAVE_SYS_LOADAVG_H=0;
17566   HAVE_UNSETENV=1;
17567   HAVE_DECL_GETLOADAVG=1;
17568   REPLACE_MKSTEMP=0;
17569   REPLACE_PUTENV=0;
17570   REPLACE_STRTOD=0;
17571   VOID_UNSETENV=0;
17572
17573
17574     REPLACE_NULL=0;
17575   HAVE_WCHAR_T=1;
17576   STDDEF_H='';
17577
17578
17579   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
17580 $as_echo_n "checking for wchar_t... " >&6; }
17581 if test "${gt_cv_c_wchar_t+set}" = set; then
17582   $as_echo_n "(cached) " >&6
17583 else
17584   cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h.  */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h.  */
17590 #include <stddef.h>
17591        wchar_t foo = (wchar_t)'\0';
17592 int
17593 main ()
17594 {
17595
17596   ;
17597   return 0;
17598 }
17599 _ACEOF
17600 rm -f conftest.$ac_objext
17601 if { (ac_try="$ac_compile"
17602 case "(($ac_try" in
17603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604   *) ac_try_echo=$ac_try;;
17605 esac
17606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17607 $as_echo "$ac_try_echo") >&5
17608   (eval "$ac_compile") 2>conftest.er1
17609   ac_status=$?
17610   grep -v '^ *+' conftest.er1 >conftest.err
17611   rm -f conftest.er1
17612   cat conftest.err >&5
17613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); } && {
17615          test -z "$ac_c_werror_flag" ||
17616          test ! -s conftest.err
17617        } && test -s conftest.$ac_objext; then
17618   gt_cv_c_wchar_t=yes
17619 else
17620   $as_echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623         gt_cv_c_wchar_t=no
17624 fi
17625
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627 fi
17628 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
17629 $as_echo "$gt_cv_c_wchar_t" >&6; }
17630   if test $gt_cv_c_wchar_t = yes; then
17631
17632 cat >>confdefs.h <<\_ACEOF
17633 #define HAVE_WCHAR_T 1
17634 _ACEOF
17635
17636   fi
17637
17638
17639
17640
17641   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17642 $as_echo_n "checking for long long int... " >&6; }
17643 if test "${ac_cv_type_long_long_int+set}" = set; then
17644   $as_echo_n "(cached) " >&6
17645 else
17646   cat >conftest.$ac_ext <<_ACEOF
17647
17648   /* confdefs.h.  */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h.  */
17653 /* For now, do not test the preprocessor; as of 2007 there are too many
17654          implementations with broken preprocessors.  Perhaps this can
17655          be revisited in 2012.  In the meantime, code should not expect
17656          #if to work with literals wider than 32 bits.  */
17657       /* Test literals.  */
17658       long long int ll = 9223372036854775807ll;
17659       long long int nll = -9223372036854775807LL;
17660       unsigned long long int ull = 18446744073709551615ULL;
17661       /* Test constant expressions.   */
17662       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17663                      ? 1 : -1)];
17664       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17665                      ? 1 : -1)];
17666       int i = 63;
17667 int
17668 main ()
17669 {
17670 /* Test availability of runtime routines for shift and division.  */
17671       long long int llmax = 9223372036854775807ll;
17672       unsigned long long int ullmax = 18446744073709551615ull;
17673       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17674               | (llmax / ll) | (llmax % ll)
17675               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17676               | (ullmax / ull) | (ullmax % ull));
17677   ;
17678   return 0;
17679 }
17680
17681 _ACEOF
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (ac_try="$ac_link"
17684 case "(($ac_try" in
17685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686   *) ac_try_echo=$ac_try;;
17687 esac
17688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17689 $as_echo "$ac_try_echo") >&5
17690   (eval "$ac_link") 2>conftest.er1
17691   ac_status=$?
17692   grep -v '^ *+' conftest.er1 >conftest.err
17693   rm -f conftest.er1
17694   cat conftest.err >&5
17695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); } && {
17697          test -z "$ac_c_werror_flag" ||
17698          test ! -s conftest.err
17699        } && test -s conftest$ac_exeext && {
17700          test "$cross_compiling" = yes ||
17701          $as_test_x conftest$ac_exeext
17702        }; then
17703                         if test "$cross_compiling" = yes; then
17704   ac_cv_type_long_long_int=yes
17705 else
17706   cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712 #include <limits.h>
17713                #ifndef LLONG_MAX
17714                # define HALF \
17715                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17716                # define LLONG_MAX (HALF - 1 + HALF)
17717                #endif
17718 int
17719 main ()
17720 {
17721 long long int n = 1;
17722                int i;
17723                for (i = 0; ; i++)
17724                  {
17725                    long long int m = n << i;
17726                    if (m >> i != n)
17727                      return 1;
17728                    if (LLONG_MAX / 2 < m)
17729                      break;
17730                  }
17731                return 0;
17732   ;
17733   return 0;
17734 }
17735 _ACEOF
17736 rm -f conftest$ac_exeext
17737 if { (ac_try="$ac_link"
17738 case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17743 $as_echo "$ac_try_echo") >&5
17744   (eval "$ac_link") 2>&5
17745   ac_status=$?
17746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17748   { (case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17753 $as_echo "$ac_try_echo") >&5
17754   (eval "$ac_try") 2>&5
17755   ac_status=$?
17756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; }; then
17758   ac_cv_type_long_long_int=yes
17759 else
17760   $as_echo "$as_me: program exited with status $ac_status" >&5
17761 $as_echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764 ( exit $ac_status )
17765 ac_cv_type_long_long_int=no
17766 fi
17767 rm -rf conftest.dSYM
17768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17769 fi
17770
17771
17772 else
17773   $as_echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17775
17776         ac_cv_type_long_long_int=no
17777 fi
17778
17779 rm -rf conftest.dSYM
17780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17781       conftest$ac_exeext conftest.$ac_ext
17782 fi
17783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17784 $as_echo "$ac_cv_type_long_long_int" >&6; }
17785   if test $ac_cv_type_long_long_int = yes; then
17786
17787 cat >>confdefs.h <<\_ACEOF
17788 #define HAVE_LONG_LONG_INT 1
17789 _ACEOF
17790
17791   fi
17792
17793
17794   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
17795 $as_echo_n "checking for unsigned long long int... " >&6; }
17796 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
17797   $as_echo_n "(cached) " >&6
17798 else
17799   cat >conftest.$ac_ext <<_ACEOF
17800
17801   /* confdefs.h.  */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h.  */
17806 /* For now, do not test the preprocessor; as of 2007 there are too many
17807          implementations with broken preprocessors.  Perhaps this can
17808          be revisited in 2012.  In the meantime, code should not expect
17809          #if to work with literals wider than 32 bits.  */
17810       /* Test literals.  */
17811       long long int ll = 9223372036854775807ll;
17812       long long int nll = -9223372036854775807LL;
17813       unsigned long long int ull = 18446744073709551615ULL;
17814       /* Test constant expressions.   */
17815       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17816                      ? 1 : -1)];
17817       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17818                      ? 1 : -1)];
17819       int i = 63;
17820 int
17821 main ()
17822 {
17823 /* Test availability of runtime routines for shift and division.  */
17824       long long int llmax = 9223372036854775807ll;
17825       unsigned long long int ullmax = 18446744073709551615ull;
17826       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17827               | (llmax / ll) | (llmax % ll)
17828               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17829               | (ullmax / ull) | (ullmax % ull));
17830   ;
17831   return 0;
17832 }
17833
17834 _ACEOF
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (ac_try="$ac_link"
17837 case "(($ac_try" in
17838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839   *) ac_try_echo=$ac_try;;
17840 esac
17841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842 $as_echo "$ac_try_echo") >&5
17843   (eval "$ac_link") 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } && {
17850          test -z "$ac_c_werror_flag" ||
17851          test ! -s conftest.err
17852        } && test -s conftest$ac_exeext && {
17853          test "$cross_compiling" = yes ||
17854          $as_test_x conftest$ac_exeext
17855        }; then
17856   ac_cv_type_unsigned_long_long_int=yes
17857 else
17858   $as_echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17860
17861         ac_cv_type_unsigned_long_long_int=no
17862 fi
17863
17864 rm -rf conftest.dSYM
17865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866       conftest$ac_exeext conftest.$ac_ext
17867 fi
17868 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
17869 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17870   if test $ac_cv_type_unsigned_long_long_int = yes; then
17871
17872 cat >>confdefs.h <<\_ACEOF
17873 #define HAVE_UNSIGNED_LONG_LONG_INT 1
17874 _ACEOF
17875
17876   fi
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887     HAVE_STRCASECMP=1;
17888   HAVE_DECL_STRNCASECMP=1;
17889
17890
17891
17892
17893
17894
17895
17896
17897 for ac_func in strcasestr
17898 do
17899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17900 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17901 $as_echo_n "checking for $ac_func... " >&6; }
17902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17903   $as_echo_n "(cached) " >&6
17904 else
17905   cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h.  */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h.  */
17911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17913 #define $ac_func innocuous_$ac_func
17914
17915 /* System header to define __stub macros and hopefully few prototypes,
17916     which can conflict with char $ac_func (); below.
17917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17918     <limits.h> exists even on freestanding compilers.  */
17919
17920 #ifdef __STDC__
17921 # include <limits.h>
17922 #else
17923 # include <assert.h>
17924 #endif
17925
17926 #undef $ac_func
17927
17928 /* Override any GCC internal prototype to avoid an error.
17929    Use char because int might match the return type of a GCC
17930    builtin and then its argument prototype would still apply.  */
17931 #ifdef __cplusplus
17932 extern "C"
17933 #endif
17934 char $ac_func ();
17935 /* The GNU C library defines this for functions which it implements
17936     to always fail with ENOSYS.  Some functions are actually named
17937     something starting with __ and the normal name is an alias.  */
17938 #if defined __stub_$ac_func || defined __stub___$ac_func
17939 choke me
17940 #endif
17941
17942 int
17943 main ()
17944 {
17945 return $ac_func ();
17946   ;
17947   return 0;
17948 }
17949 _ACEOF
17950 rm -f conftest.$ac_objext conftest$ac_exeext
17951 if { (ac_try="$ac_link"
17952 case "(($ac_try" in
17953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954   *) ac_try_echo=$ac_try;;
17955 esac
17956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17957 $as_echo "$ac_try_echo") >&5
17958   (eval "$ac_link") 2>conftest.er1
17959   ac_status=$?
17960   grep -v '^ *+' conftest.er1 >conftest.err
17961   rm -f conftest.er1
17962   cat conftest.err >&5
17963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); } && {
17965          test -z "$ac_c_werror_flag" ||
17966          test ! -s conftest.err
17967        } && test -s conftest$ac_exeext && {
17968          test "$cross_compiling" = yes ||
17969          $as_test_x conftest$ac_exeext
17970        }; then
17971   eval "$as_ac_var=yes"
17972 else
17973   $as_echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17975
17976         eval "$as_ac_var=no"
17977 fi
17978
17979 rm -rf conftest.dSYM
17980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17981       conftest$ac_exeext conftest.$ac_ext
17982 fi
17983 ac_res=`eval 'as_val=${'$as_ac_var'}
17984                  $as_echo "$as_val"'`
17985                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17986 $as_echo "$ac_res" >&6; }
17987 as_val=`eval 'as_val=${'$as_ac_var'}
17988                  $as_echo "$as_val"'`
17989    if test "x$as_val" = x""yes; then
17990   cat >>confdefs.h <<_ACEOF
17991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17992 _ACEOF
17993
17994 fi
17995 done
17996
17997   if test $ac_cv_func_strcasestr = no; then
17998     HAVE_STRCASESTR=0
17999   else
18000     if test "$gl_cv_func_memchr_works" != yes; then
18001       REPLACE_STRCASESTR=1
18002     fi
18003   fi
18004   if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
18005
18006
18007
18008
18009
18010
18011
18012
18013   gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
18014
18015
18016   :
18017
18018   fi
18019
18020
18021
18022
18023
18024
18025   if test -z "$ERRNO_H"; then
18026     { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
18027 $as_echo_n "checking for working strerror function... " >&6; }
18028 if test "${gl_cv_func_working_strerror+set}" = set; then
18029   $as_echo_n "(cached) " >&6
18030 else
18031   if test "$cross_compiling" = yes; then
18032            cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h.  */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h.  */
18038 #include <string.h>
18039
18040 int
18041 main ()
18042 {
18043 return !*strerror (-2);
18044   ;
18045   return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext
18049 if { (ac_try="$ac_compile"
18050 case "(($ac_try" in
18051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052   *) ac_try_echo=$ac_try;;
18053 esac
18054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18055 $as_echo "$ac_try_echo") >&5
18056   (eval "$ac_compile") 2>conftest.er1
18057   ac_status=$?
18058   grep -v '^ *+' conftest.er1 >conftest.err
18059   rm -f conftest.er1
18060   cat conftest.err >&5
18061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } && {
18063          test -z "$ac_c_werror_flag" ||
18064          test ! -s conftest.err
18065        } && test -s conftest.$ac_objext; then
18066   gl_cv_func_working_strerror=yes
18067 else
18068   $as_echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18070
18071         gl_cv_func_working_strerror=no
18072 fi
18073
18074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075
18076 else
18077   cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h.  */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h.  */
18083 #include <string.h>
18084
18085 int
18086 main ()
18087 {
18088 return !*strerror (-2);
18089   ;
18090   return 0;
18091 }
18092 _ACEOF
18093 rm -f conftest$ac_exeext
18094 if { (ac_try="$ac_link"
18095 case "(($ac_try" in
18096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097   *) ac_try_echo=$ac_try;;
18098 esac
18099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18100 $as_echo "$ac_try_echo") >&5
18101   (eval "$ac_link") 2>&5
18102   ac_status=$?
18103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18105   { (case "(($ac_try" in
18106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107   *) ac_try_echo=$ac_try;;
18108 esac
18109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18110 $as_echo "$ac_try_echo") >&5
18111   (eval "$ac_try") 2>&5
18112   ac_status=$?
18113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; }; then
18115   gl_cv_func_working_strerror=yes
18116 else
18117   $as_echo "$as_me: program exited with status $ac_status" >&5
18118 $as_echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18120
18121 ( exit $ac_status )
18122 gl_cv_func_working_strerror=no
18123 fi
18124 rm -rf conftest.dSYM
18125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18126 fi
18127
18128
18129
18130 fi
18131 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
18132 $as_echo "$gl_cv_func_working_strerror" >&6; }
18133     if test $gl_cv_func_working_strerror = no; then
18134                   REPLACE_STRERROR=1
18135     fi
18136   else
18137             REPLACE_STRERROR=1
18138   fi
18139   if test $REPLACE_STRERROR = 1; then
18140
18141   { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
18142 $as_echo_n "checking whether strerror is declared... " >&6; }
18143 if test "${ac_cv_have_decl_strerror+set}" = set; then
18144   $as_echo_n "(cached) " >&6
18145 else
18146   cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h.  */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h.  */
18152 $ac_includes_default
18153 int
18154 main ()
18155 {
18156 #ifndef strerror
18157   (void) strerror;
18158 #endif
18159
18160   ;
18161   return 0;
18162 }
18163 _ACEOF
18164 rm -f conftest.$ac_objext
18165 if { (ac_try="$ac_compile"
18166 case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18171 $as_echo "$ac_try_echo") >&5
18172   (eval "$ac_compile") 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } && {
18179          test -z "$ac_c_werror_flag" ||
18180          test ! -s conftest.err
18181        } && test -s conftest.$ac_objext; then
18182   ac_cv_have_decl_strerror=yes
18183 else
18184   $as_echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18186
18187         ac_cv_have_decl_strerror=no
18188 fi
18189
18190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18191 fi
18192 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
18193 $as_echo "$ac_cv_have_decl_strerror" >&6; }
18194 if test "x$ac_cv_have_decl_strerror" = x""yes; then
18195
18196 cat >>confdefs.h <<_ACEOF
18197 #define HAVE_DECL_STRERROR 1
18198 _ACEOF
18199
18200
18201 else
18202   cat >>confdefs.h <<_ACEOF
18203 #define HAVE_DECL_STRERROR 0
18204 _ACEOF
18205
18206
18207 fi
18208
18209
18210
18211
18212
18213
18214
18215
18216   if test $ac_cv_header_sys_socket_h != yes; then
18217
18218 for ac_header in winsock2.h
18219 do
18220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18222   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18223 $as_echo_n "checking for $ac_header... " >&6; }
18224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18225   $as_echo_n "(cached) " >&6
18226 fi
18227 ac_res=`eval 'as_val=${'$as_ac_Header'}
18228                  $as_echo "$as_val"'`
18229                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18230 $as_echo "$ac_res" >&6; }
18231 else
18232   # Is the header compilable?
18233 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18234 $as_echo_n "checking $ac_header usability... " >&6; }
18235 cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h.  */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h.  */
18241 $ac_includes_default
18242 #include <$ac_header>
18243 _ACEOF
18244 rm -f conftest.$ac_objext
18245 if { (ac_try="$ac_compile"
18246 case "(($ac_try" in
18247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248   *) ac_try_echo=$ac_try;;
18249 esac
18250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18251 $as_echo "$ac_try_echo") >&5
18252   (eval "$ac_compile") 2>conftest.er1
18253   ac_status=$?
18254   grep -v '^ *+' conftest.er1 >conftest.err
18255   rm -f conftest.er1
18256   cat conftest.err >&5
18257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } && {
18259          test -z "$ac_c_werror_flag" ||
18260          test ! -s conftest.err
18261        } && test -s conftest.$ac_objext; then
18262   ac_header_compiler=yes
18263 else
18264   $as_echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267         ac_header_compiler=no
18268 fi
18269
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18272 $as_echo "$ac_header_compiler" >&6; }
18273
18274 # Is the header present?
18275 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18276 $as_echo_n "checking $ac_header presence... " >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h.  */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h.  */
18283 #include <$ac_header>
18284 _ACEOF
18285 if { (ac_try="$ac_cpp conftest.$ac_ext"
18286 case "(($ac_try" in
18287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288   *) ac_try_echo=$ac_try;;
18289 esac
18290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18291 $as_echo "$ac_try_echo") >&5
18292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } >/dev/null && {
18299          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18300          test ! -s conftest.err
18301        }; then
18302   ac_header_preproc=yes
18303 else
18304   $as_echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18306
18307   ac_header_preproc=no
18308 fi
18309
18310 rm -f conftest.err conftest.$ac_ext
18311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18312 $as_echo "$ac_header_preproc" >&6; }
18313
18314 # So?  What about this header?
18315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18316   yes:no: )
18317     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18318 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18321     ac_header_preproc=yes
18322     ;;
18323   no:yes:* )
18324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18325 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18327 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18329 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18331 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18335 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18336     ( cat <<\_ASBOX
18337 ## ------------------------------- ##
18338 ## Report this to bug-wget@gnu.org ##
18339 ## ------------------------------- ##
18340 _ASBOX
18341      ) | sed "s/^/$as_me: WARNING:     /" >&2
18342     ;;
18343 esac
18344 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18345 $as_echo_n "checking for $ac_header... " >&6; }
18346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18347   $as_echo_n "(cached) " >&6
18348 else
18349   eval "$as_ac_Header=\$ac_header_preproc"
18350 fi
18351 ac_res=`eval 'as_val=${'$as_ac_Header'}
18352                  $as_echo "$as_val"'`
18353                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18354 $as_echo "$ac_res" >&6; }
18355
18356 fi
18357 as_val=`eval 'as_val=${'$as_ac_Header'}
18358                  $as_echo "$as_val"'`
18359    if test "x$as_val" = x""yes; then
18360   cat >>confdefs.h <<_ACEOF
18361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18362 _ACEOF
18363
18364 fi
18365
18366 done
18367
18368   fi
18369
18370   fi
18371
18372 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
18373 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18374 if test "${ac_cv_c_restrict+set}" = set; then
18375   $as_echo_n "(cached) " >&6
18376 else
18377   ac_cv_c_restrict=no
18378    # The order here caters to the fact that C++ does not require restrict.
18379    for ac_kw in __restrict __restrict__ _Restrict restrict; do
18380      cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h.  */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h.  */
18386 typedef int * int_ptr;
18387         int foo (int_ptr $ac_kw ip) {
18388         return ip[0];
18389        }
18390 int
18391 main ()
18392 {
18393 int s[1];
18394         int * $ac_kw t = s;
18395         t[0] = 0;
18396         return foo(t)
18397   ;
18398   return 0;
18399 }
18400 _ACEOF
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405   *) ac_try_echo=$ac_try;;
18406 esac
18407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18408 $as_echo "$ac_try_echo") >&5
18409   (eval "$ac_compile") 2>conftest.er1
18410   ac_status=$?
18411   grep -v '^ *+' conftest.er1 >conftest.err
18412   rm -f conftest.er1
18413   cat conftest.err >&5
18414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); } && {
18416          test -z "$ac_c_werror_flag" ||
18417          test ! -s conftest.err
18418        } && test -s conftest.$ac_objext; then
18419   ac_cv_c_restrict=$ac_kw
18420 else
18421   $as_echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18423
18424
18425 fi
18426
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428      test "$ac_cv_c_restrict" != no && break
18429    done
18430
18431 fi
18432 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
18433 $as_echo "$ac_cv_c_restrict" >&6; }
18434
18435
18436  case $ac_cv_c_restrict in
18437    restrict) ;;
18438    no) cat >>confdefs.h <<\_ACEOF
18439 #define restrict /**/
18440 _ACEOF
18441  ;;
18442    *)  cat >>confdefs.h <<_ACEOF
18443 #define restrict $ac_cv_c_restrict
18444 _ACEOF
18445  ;;
18446  esac
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464      if test $gl_cv_have_include_next = yes; then
18465        gl_cv_next_string_h='<'string.h'>'
18466      else
18467        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
18468 $as_echo_n "checking absolute name of <string.h>... " >&6; }
18469 if test "${gl_cv_next_string_h+set}" = set; then
18470   $as_echo_n "(cached) " >&6
18471 else
18472
18473           if test $ac_cv_header_string_h = yes; then
18474             cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h.  */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h.  */
18480 #include <string.h>
18481
18482 _ACEOF
18483                                                                     case "$host_os" in
18484               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18485               *)    gl_absname_cpp="$ac_cpp" ;;
18486             esac
18487                                     gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18488                sed -n '\#/string.h#{
18489                  s#.*"\(.*/string.h\)".*#\1#
18490                  s#^/[^/]#//&#
18491                  p
18492                  q
18493                }'`'"'
18494           else
18495             gl_cv_next_string_h='<'string.h'>'
18496           fi
18497
18498 fi
18499 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
18500 $as_echo "$gl_cv_next_string_h" >&6; }
18501      fi
18502      NEXT_STRING_H=$gl_cv_next_string_h
18503
18504      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18505        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18506        gl_next_as_first_directive='<'string.h'>'
18507      else
18508        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18509        gl_next_as_first_directive=$gl_cv_next_string_h
18510      fi
18511      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531      if test $gl_cv_have_include_next = yes; then
18532        gl_cv_next_strings_h='<'strings.h'>'
18533      else
18534        { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
18535 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
18536 if test "${gl_cv_next_strings_h+set}" = set; then
18537   $as_echo_n "(cached) " >&6
18538 else
18539
18540           if test $ac_cv_header_strings_h = yes; then
18541             cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h.  */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h.  */
18547 #include <strings.h>
18548
18549 _ACEOF
18550                                                                     case "$host_os" in
18551               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18552               *)    gl_absname_cpp="$ac_cpp" ;;
18553             esac
18554                                     gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18555                sed -n '\#/strings.h#{
18556                  s#.*"\(.*/strings.h\)".*#\1#
18557                  s#^/[^/]#//&#
18558                  p
18559                  q
18560                }'`'"'
18561           else
18562             gl_cv_next_strings_h='<'strings.h'>'
18563           fi
18564
18565 fi
18566 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
18567 $as_echo "$gl_cv_next_strings_h" >&6; }
18568      fi
18569      NEXT_STRINGS_H=$gl_cv_next_strings_h
18570
18571      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18572        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18573        gl_next_as_first_directive='<'strings.h'>'
18574      else
18575        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18576        gl_next_as_first_directive=$gl_cv_next_strings_h
18577      fi
18578      NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
18579
18580
18581
18582
18583
18584
18585
18586   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
18587 $as_echo_n "checking for wint_t... " >&6; }
18588 if test "${gt_cv_c_wint_t+set}" = set; then
18589   $as_echo_n "(cached) " >&6
18590 else
18591   cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597
18598 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18599    <wchar.h>.
18600    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18601    before <wchar.h>.  */
18602 #include <stddef.h>
18603 #include <stdio.h>
18604 #include <time.h>
18605 #include <wchar.h>
18606        wint_t foo = (wchar_t)'\0';
18607 int
18608 main ()
18609 {
18610
18611   ;
18612   return 0;
18613 }
18614 _ACEOF
18615 rm -f conftest.$ac_objext
18616 if { (ac_try="$ac_compile"
18617 case "(($ac_try" in
18618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619   *) ac_try_echo=$ac_try;;
18620 esac
18621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18622 $as_echo "$ac_try_echo") >&5
18623   (eval "$ac_compile") 2>conftest.er1
18624   ac_status=$?
18625   grep -v '^ *+' conftest.er1 >conftest.err
18626   rm -f conftest.er1
18627   cat conftest.err >&5
18628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); } && {
18630          test -z "$ac_c_werror_flag" ||
18631          test ! -s conftest.err
18632        } && test -s conftest.$ac_objext; then
18633   gt_cv_c_wint_t=yes
18634 else
18635   $as_echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18637
18638         gt_cv_c_wint_t=no
18639 fi
18640
18641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18642 fi
18643 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
18644 $as_echo "$gt_cv_c_wint_t" >&6; }
18645   if test $gt_cv_c_wint_t = yes; then
18646
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE_WINT_T 1
18649 _ACEOF
18650
18651   fi
18652
18653
18654
18655
18656
18657
18658    if false; then
18659   GL_COND_LIBTOOL_TRUE=
18660   GL_COND_LIBTOOL_FALSE='#'
18661 else
18662   GL_COND_LIBTOOL_TRUE='#'
18663   GL_COND_LIBTOOL_FALSE=
18664 fi
18665
18666   gl_cond_libtool=false
18667   gl_libdeps=
18668   gl_ltlibdeps=
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678   gl_source_base='lib'
18679
18680
18681
18682
18683
18684   if test $ac_cv_func_alloca_works = no; then
18685     :
18686   fi
18687
18688   # Define an additional variable used in the Makefile substitution.
18689   if test $ac_cv_working_alloca_h = yes; then
18690     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18691 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18692 if test "${gl_cv_rpl_alloca+set}" = set; then
18693   $as_echo_n "(cached) " >&6
18694 else
18695
18696       cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h.  */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h.  */
18702
18703 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18704         Need own alloca
18705 #endif
18706
18707 _ACEOF
18708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18709   $EGREP "Need own alloca" >/dev/null 2>&1; then
18710   gl_cv_rpl_alloca=yes
18711 else
18712   gl_cv_rpl_alloca=no
18713 fi
18714 rm -f conftest*
18715
18716
18717 fi
18718 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18719 $as_echo "$gl_cv_rpl_alloca" >&6; }
18720     if test $gl_cv_rpl_alloca = yes; then
18721
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE_ALLOCA 1
18724 _ACEOF
18725
18726       ALLOCA_H=alloca.h
18727     else
18728                   ALLOCA_H=
18729     fi
18730   else
18731     ALLOCA_H=alloca.h
18732   fi
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
18750 $as_echo_n "checking for error_at_line... " >&6; }
18751 if test "${ac_cv_lib_error_at_line+set}" = set; then
18752   $as_echo_n "(cached) " >&6
18753 else
18754   cat >conftest.$ac_ext <<_ACEOF
18755 /* confdefs.h.  */
18756 _ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h.  */
18760 #include <error.h>
18761 int
18762 main ()
18763 {
18764 error_at_line (0, 0, "", 0, "an error occurred");
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18776 $as_echo "$ac_try_echo") >&5
18777   (eval "$ac_link") 2>conftest.er1
18778   ac_status=$?
18779   grep -v '^ *+' conftest.er1 >conftest.err
18780   rm -f conftest.er1
18781   cat conftest.err >&5
18782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); } && {
18784          test -z "$ac_c_werror_flag" ||
18785          test ! -s conftest.err
18786        } && test -s conftest$ac_exeext && {
18787          test "$cross_compiling" = yes ||
18788          $as_test_x conftest$ac_exeext
18789        }; then
18790   ac_cv_lib_error_at_line=yes
18791 else
18792   $as_echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795         ac_cv_lib_error_at_line=no
18796 fi
18797
18798 rm -rf conftest.dSYM
18799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800       conftest$ac_exeext conftest.$ac_ext
18801 fi
18802 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
18803 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18804 if test $ac_cv_lib_error_at_line = no; then
18805
18806
18807
18808
18809
18810
18811
18812
18813   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
18814
18815 fi
18816
18817
18818
18819   :
18820
18821
18822
18823
18824   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
18825
18826
18827
18828   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839   gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
18840
18841
18842     :
18843
18844
18845
18846
18847
18848
18849
18850
18851   { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
18852 $as_echo_n "checking for fseeko... " >&6; }
18853 if test "${gl_cv_func_fseeko+set}" = set; then
18854   $as_echo_n "(cached) " >&6
18855 else
18856
18857       cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h.  */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h.  */
18863 #include <stdio.h>
18864 int
18865 main ()
18866 {
18867 fseeko (stdin, 0, 0);
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (ac_try="$ac_link"
18874 case "(($ac_try" in
18875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876   *) ac_try_echo=$ac_try;;
18877 esac
18878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18879 $as_echo "$ac_try_echo") >&5
18880   (eval "$ac_link") 2>conftest.er1
18881   ac_status=$?
18882   grep -v '^ *+' conftest.er1 >conftest.err
18883   rm -f conftest.er1
18884   cat conftest.err >&5
18885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } && {
18887          test -z "$ac_c_werror_flag" ||
18888          test ! -s conftest.err
18889        } && test -s conftest$ac_exeext && {
18890          test "$cross_compiling" = yes ||
18891          $as_test_x conftest$ac_exeext
18892        }; then
18893   gl_cv_func_fseeko=yes
18894 else
18895   $as_echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18897
18898         gl_cv_func_fseeko=no
18899 fi
18900
18901 rm -rf conftest.dSYM
18902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903       conftest$ac_exeext conftest.$ac_ext
18904
18905 fi
18906 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
18907 $as_echo "$gl_cv_func_fseeko" >&6; }
18908   if test $gl_cv_func_fseeko = no; then
18909     HAVE_FSEEKO=0
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18920
18921
18922   REPLACE_FSEEKO=1
18923
18924   elif test $gl_cv_var_stdin_large_offset = no; then
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18935
18936
18937   REPLACE_FSEEKO=1
18938
18939   fi
18940
18941
18942
18943   GNULIB_FSEEKO=1
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959 for ac_func in getdelim
18960 do
18961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18962 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18963 $as_echo_n "checking for $ac_func... " >&6; }
18964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18965   $as_echo_n "(cached) " >&6
18966 else
18967   cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h.  */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h.  */
18973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18975 #define $ac_func innocuous_$ac_func
18976
18977 /* System header to define __stub macros and hopefully few prototypes,
18978     which can conflict with char $ac_func (); below.
18979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18980     <limits.h> exists even on freestanding compilers.  */
18981
18982 #ifdef __STDC__
18983 # include <limits.h>
18984 #else
18985 # include <assert.h>
18986 #endif
18987
18988 #undef $ac_func
18989
18990 /* Override any GCC internal prototype to avoid an error.
18991    Use char because int might match the return type of a GCC
18992    builtin and then its argument prototype would still apply.  */
18993 #ifdef __cplusplus
18994 extern "C"
18995 #endif
18996 char $ac_func ();
18997 /* The GNU C library defines this for functions which it implements
18998     to always fail with ENOSYS.  Some functions are actually named
18999     something starting with __ and the normal name is an alias.  */
19000 #if defined __stub_$ac_func || defined __stub___$ac_func
19001 choke me
19002 #endif
19003
19004 int
19005 main ()
19006 {
19007 return $ac_func ();
19008   ;
19009   return 0;
19010 }
19011 _ACEOF
19012 rm -f conftest.$ac_objext conftest$ac_exeext
19013 if { (ac_try="$ac_link"
19014 case "(($ac_try" in
19015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016   *) ac_try_echo=$ac_try;;
19017 esac
19018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19019 $as_echo "$ac_try_echo") >&5
19020   (eval "$ac_link") 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } && {
19027          test -z "$ac_c_werror_flag" ||
19028          test ! -s conftest.err
19029        } && test -s conftest$ac_exeext && {
19030          test "$cross_compiling" = yes ||
19031          $as_test_x conftest$ac_exeext
19032        }; then
19033   eval "$as_ac_var=yes"
19034 else
19035   $as_echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19037
19038         eval "$as_ac_var=no"
19039 fi
19040
19041 rm -rf conftest.dSYM
19042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19043       conftest$ac_exeext conftest.$ac_ext
19044 fi
19045 ac_res=`eval 'as_val=${'$as_ac_var'}
19046                  $as_echo "$as_val"'`
19047                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19048 $as_echo "$ac_res" >&6; }
19049 as_val=`eval 'as_val=${'$as_ac_var'}
19050                  $as_echo "$as_val"'`
19051    if test "x$as_val" = x""yes; then
19052   cat >>confdefs.h <<_ACEOF
19053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19054 _ACEOF
19055
19056 else
19057
19058     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19059
19060 fi
19061 done
19062
19063
19064
19065
19066
19067
19068
19069   if test $ac_cv_func_getdelim = no; then
19070
19071
19072
19073 for ac_func in flockfile funlockfile
19074 do
19075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19076 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19077 $as_echo_n "checking for $ac_func... " >&6; }
19078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19079   $as_echo_n "(cached) " >&6
19080 else
19081   cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19089 #define $ac_func innocuous_$ac_func
19090
19091 /* System header to define __stub macros and hopefully few prototypes,
19092     which can conflict with char $ac_func (); below.
19093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19094     <limits.h> exists even on freestanding compilers.  */
19095
19096 #ifdef __STDC__
19097 # include <limits.h>
19098 #else
19099 # include <assert.h>
19100 #endif
19101
19102 #undef $ac_func
19103
19104 /* Override any GCC internal prototype to avoid an error.
19105    Use char because int might match the return type of a GCC
19106    builtin and then its argument prototype would still apply.  */
19107 #ifdef __cplusplus
19108 extern "C"
19109 #endif
19110 char $ac_func ();
19111 /* The GNU C library defines this for functions which it implements
19112     to always fail with ENOSYS.  Some functions are actually named
19113     something starting with __ and the normal name is an alias.  */
19114 #if defined __stub_$ac_func || defined __stub___$ac_func
19115 choke me
19116 #endif
19117
19118 int
19119 main ()
19120 {
19121 return $ac_func ();
19122   ;
19123   return 0;
19124 }
19125 _ACEOF
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (ac_try="$ac_link"
19128 case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19133 $as_echo "$ac_try_echo") >&5
19134   (eval "$ac_link") 2>conftest.er1
19135   ac_status=$?
19136   grep -v '^ *+' conftest.er1 >conftest.err
19137   rm -f conftest.er1
19138   cat conftest.err >&5
19139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); } && {
19141          test -z "$ac_c_werror_flag" ||
19142          test ! -s conftest.err
19143        } && test -s conftest$ac_exeext && {
19144          test "$cross_compiling" = yes ||
19145          $as_test_x conftest$ac_exeext
19146        }; then
19147   eval "$as_ac_var=yes"
19148 else
19149   $as_echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19151
19152         eval "$as_ac_var=no"
19153 fi
19154
19155 rm -rf conftest.dSYM
19156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19157       conftest$ac_exeext conftest.$ac_ext
19158 fi
19159 ac_res=`eval 'as_val=${'$as_ac_var'}
19160                  $as_echo "$as_val"'`
19161                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19162 $as_echo "$ac_res" >&6; }
19163 as_val=`eval 'as_val=${'$as_ac_var'}
19164                  $as_echo "$as_val"'`
19165    if test "x$as_val" = x""yes; then
19166   cat >>confdefs.h <<_ACEOF
19167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19168 _ACEOF
19169
19170 fi
19171 done
19172
19173   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
19174 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19175 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
19176   $as_echo_n "(cached) " >&6
19177 else
19178   cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h.  */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h.  */
19184 $ac_includes_default
19185 int
19186 main ()
19187 {
19188 #ifndef getc_unlocked
19189   (void) getc_unlocked;
19190 #endif
19191
19192   ;
19193   return 0;
19194 }
19195 _ACEOF
19196 rm -f conftest.$ac_objext
19197 if { (ac_try="$ac_compile"
19198 case "(($ac_try" in
19199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200   *) ac_try_echo=$ac_try;;
19201 esac
19202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19203 $as_echo "$ac_try_echo") >&5
19204   (eval "$ac_compile") 2>conftest.er1
19205   ac_status=$?
19206   grep -v '^ *+' conftest.er1 >conftest.err
19207   rm -f conftest.er1
19208   cat conftest.err >&5
19209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); } && {
19211          test -z "$ac_c_werror_flag" ||
19212          test ! -s conftest.err
19213        } && test -s conftest.$ac_objext; then
19214   ac_cv_have_decl_getc_unlocked=yes
19215 else
19216   $as_echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219         ac_cv_have_decl_getc_unlocked=no
19220 fi
19221
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223 fi
19224 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
19225 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19226 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
19227
19228 cat >>confdefs.h <<_ACEOF
19229 #define HAVE_DECL_GETC_UNLOCKED 1
19230 _ACEOF
19231
19232
19233 else
19234   cat >>confdefs.h <<_ACEOF
19235 #define HAVE_DECL_GETC_UNLOCKED 0
19236 _ACEOF
19237
19238
19239 fi
19240
19241
19242
19243   fi
19244
19245   if test $ac_cv_have_decl_getdelim = no; then
19246     HAVE_DECL_GETDELIM=0
19247   fi
19248
19249
19250
19251   GNULIB_GETDELIM=1
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263   gl_getline_needs_run_time_check=no
19264   { $as_echo "$as_me:$LINENO: checking for getline" >&5
19265 $as_echo_n "checking for getline... " >&6; }
19266 if test "${ac_cv_func_getline+set}" = set; then
19267   $as_echo_n "(cached) " >&6
19268 else
19269   cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h.  */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h.  */
19275 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
19276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19277 #define getline innocuous_getline
19278
19279 /* System header to define __stub macros and hopefully few prototypes,
19280     which can conflict with char getline (); below.
19281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19282     <limits.h> exists even on freestanding compilers.  */
19283
19284 #ifdef __STDC__
19285 # include <limits.h>
19286 #else
19287 # include <assert.h>
19288 #endif
19289
19290 #undef getline
19291
19292 /* Override any GCC internal prototype to avoid an error.
19293    Use char because int might match the return type of a GCC
19294    builtin and then its argument prototype would still apply.  */
19295 #ifdef __cplusplus
19296 extern "C"
19297 #endif
19298 char getline ();
19299 /* The GNU C library defines this for functions which it implements
19300     to always fail with ENOSYS.  Some functions are actually named
19301     something starting with __ and the normal name is an alias.  */
19302 #if defined __stub_getline || defined __stub___getline
19303 choke me
19304 #endif
19305
19306 int
19307 main ()
19308 {
19309 return getline ();
19310   ;
19311   return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext conftest$ac_exeext
19315 if { (ac_try="$ac_link"
19316 case "(($ac_try" in
19317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318   *) ac_try_echo=$ac_try;;
19319 esac
19320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321 $as_echo "$ac_try_echo") >&5
19322   (eval "$ac_link") 2>conftest.er1
19323   ac_status=$?
19324   grep -v '^ *+' conftest.er1 >conftest.err
19325   rm -f conftest.er1
19326   cat conftest.err >&5
19327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } && {
19329          test -z "$ac_c_werror_flag" ||
19330          test ! -s conftest.err
19331        } && test -s conftest$ac_exeext && {
19332          test "$cross_compiling" = yes ||
19333          $as_test_x conftest$ac_exeext
19334        }; then
19335   ac_cv_func_getline=yes
19336 else
19337   $as_echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340         ac_cv_func_getline=no
19341 fi
19342
19343 rm -rf conftest.dSYM
19344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19345       conftest$ac_exeext conftest.$ac_ext
19346 fi
19347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
19348 $as_echo "$ac_cv_func_getline" >&6; }
19349 if test "x$ac_cv_func_getline" = x""yes; then
19350                 gl_getline_needs_run_time_check=yes
19351 else
19352   am_cv_func_working_getline=no
19353 fi
19354
19355   if test $gl_getline_needs_run_time_check = yes; then
19356     { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
19357 $as_echo_n "checking for working getline function... " >&6; }
19358 if test "${am_cv_func_working_getline+set}" = set; then
19359   $as_echo_n "(cached) " >&6
19360 else
19361   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
19362     if test "$cross_compiling" = yes; then
19363         cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369
19370 #include <features.h>
19371 #ifdef __GNU_LIBRARY__
19372  #if (__GLIBC__ >= 2)
19373   Lucky GNU user
19374  #endif
19375 #endif
19376
19377 _ACEOF
19378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19379   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
19380   am_cv_func_working_getline=yes
19381 else
19382   am_cv_func_working_getline=no
19383 fi
19384 rm -f conftest*
19385
19386
19387 else
19388   cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394
19395 #    include <stdio.h>
19396 #    include <stdlib.h>
19397 #    include <string.h>
19398     int main ()
19399     { /* Based on a test program from Karl Heuer.  */
19400       char *line = NULL;
19401       size_t siz = 0;
19402       int len;
19403       FILE *in = fopen ("./conftest.data", "r");
19404       if (!in)
19405         return 1;
19406       len = getline (&line, &siz, in);
19407       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
19408     }
19409
19410 _ACEOF
19411 rm -f conftest$ac_exeext
19412 if { (ac_try="$ac_link"
19413 case "(($ac_try" in
19414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415   *) ac_try_echo=$ac_try;;
19416 esac
19417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19418 $as_echo "$ac_try_echo") >&5
19419   (eval "$ac_link") 2>&5
19420   ac_status=$?
19421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423   { (case "(($ac_try" in
19424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425   *) ac_try_echo=$ac_try;;
19426 esac
19427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19428 $as_echo "$ac_try_echo") >&5
19429   (eval "$ac_try") 2>&5
19430   ac_status=$?
19431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; }; then
19433   am_cv_func_working_getline=yes
19434 else
19435   $as_echo "$as_me: program exited with status $ac_status" >&5
19436 $as_echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19438
19439 ( exit $ac_status )
19440 am_cv_func_working_getline=no
19441 fi
19442 rm -rf conftest.dSYM
19443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19444 fi
19445
19446
19447 fi
19448 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
19449 $as_echo "$am_cv_func_working_getline" >&6; }
19450   fi
19451
19452   if test $ac_cv_have_decl_getline = no; then
19453     HAVE_DECL_GETLINE=0
19454   fi
19455
19456   if test $am_cv_func_working_getline = no; then
19457     REPLACE_GETLINE=1
19458
19459
19460
19461
19462
19463
19464
19465
19466   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484 for ac_func in getdelim
19485 do
19486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19487 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19488 $as_echo_n "checking for $ac_func... " >&6; }
19489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19490   $as_echo_n "(cached) " >&6
19491 else
19492   cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h.  */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h.  */
19498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19500 #define $ac_func innocuous_$ac_func
19501
19502 /* System header to define __stub macros and hopefully few prototypes,
19503     which can conflict with char $ac_func (); below.
19504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19505     <limits.h> exists even on freestanding compilers.  */
19506
19507 #ifdef __STDC__
19508 # include <limits.h>
19509 #else
19510 # include <assert.h>
19511 #endif
19512
19513 #undef $ac_func
19514
19515 /* Override any GCC internal prototype to avoid an error.
19516    Use char because int might match the return type of a GCC
19517    builtin and then its argument prototype would still apply.  */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 char $ac_func ();
19522 /* The GNU C library defines this for functions which it implements
19523     to always fail with ENOSYS.  Some functions are actually named
19524     something starting with __ and the normal name is an alias.  */
19525 #if defined __stub_$ac_func || defined __stub___$ac_func
19526 choke me
19527 #endif
19528
19529 int
19530 main ()
19531 {
19532 return $ac_func ();
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19544 $as_echo "$ac_try_echo") >&5
19545   (eval "$ac_link") 2>conftest.er1
19546   ac_status=$?
19547   grep -v '^ *+' conftest.er1 >conftest.err
19548   rm -f conftest.er1
19549   cat conftest.err >&5
19550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); } && {
19552          test -z "$ac_c_werror_flag" ||
19553          test ! -s conftest.err
19554        } && test -s conftest$ac_exeext && {
19555          test "$cross_compiling" = yes ||
19556          $as_test_x conftest$ac_exeext
19557        }; then
19558   eval "$as_ac_var=yes"
19559 else
19560   $as_echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563         eval "$as_ac_var=no"
19564 fi
19565
19566 rm -rf conftest.dSYM
19567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19568       conftest$ac_exeext conftest.$ac_ext
19569 fi
19570 ac_res=`eval 'as_val=${'$as_ac_var'}
19571                  $as_echo "$as_val"'`
19572                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19573 $as_echo "$ac_res" >&6; }
19574 as_val=`eval 'as_val=${'$as_ac_var'}
19575                  $as_echo "$as_val"'`
19576    if test "x$as_val" = x""yes; then
19577   cat >>confdefs.h <<_ACEOF
19578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19579 _ACEOF
19580
19581 else
19582
19583     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19584
19585 fi
19586 done
19587
19588
19589
19590
19591
19592
19593
19594   if test $ac_cv_func_getdelim = no; then
19595
19596
19597
19598 for ac_func in flockfile funlockfile
19599 do
19600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19601 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19602 $as_echo_n "checking for $ac_func... " >&6; }
19603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19604   $as_echo_n "(cached) " >&6
19605 else
19606   cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19614 #define $ac_func innocuous_$ac_func
19615
19616 /* System header to define __stub macros and hopefully few prototypes,
19617     which can conflict with char $ac_func (); below.
19618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619     <limits.h> exists even on freestanding compilers.  */
19620
19621 #ifdef __STDC__
19622 # include <limits.h>
19623 #else
19624 # include <assert.h>
19625 #endif
19626
19627 #undef $ac_func
19628
19629 /* Override any GCC internal prototype to avoid an error.
19630    Use char because int might match the return type of a GCC
19631    builtin and then its argument prototype would still apply.  */
19632 #ifdef __cplusplus
19633 extern "C"
19634 #endif
19635 char $ac_func ();
19636 /* The GNU C library defines this for functions which it implements
19637     to always fail with ENOSYS.  Some functions are actually named
19638     something starting with __ and the normal name is an alias.  */
19639 #if defined __stub_$ac_func || defined __stub___$ac_func
19640 choke me
19641 #endif
19642
19643 int
19644 main ()
19645 {
19646 return $ac_func ();
19647   ;
19648   return 0;
19649 }
19650 _ACEOF
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655   *) ac_try_echo=$ac_try;;
19656 esac
19657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19658 $as_echo "$ac_try_echo") >&5
19659   (eval "$ac_link") 2>conftest.er1
19660   ac_status=$?
19661   grep -v '^ *+' conftest.er1 >conftest.err
19662   rm -f conftest.er1
19663   cat conftest.err >&5
19664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); } && {
19666          test -z "$ac_c_werror_flag" ||
19667          test ! -s conftest.err
19668        } && test -s conftest$ac_exeext && {
19669          test "$cross_compiling" = yes ||
19670          $as_test_x conftest$ac_exeext
19671        }; then
19672   eval "$as_ac_var=yes"
19673 else
19674   $as_echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19676
19677         eval "$as_ac_var=no"
19678 fi
19679
19680 rm -rf conftest.dSYM
19681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19682       conftest$ac_exeext conftest.$ac_ext
19683 fi
19684 ac_res=`eval 'as_val=${'$as_ac_var'}
19685                  $as_echo "$as_val"'`
19686                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19687 $as_echo "$ac_res" >&6; }
19688 as_val=`eval 'as_val=${'$as_ac_var'}
19689                  $as_echo "$as_val"'`
19690    if test "x$as_val" = x""yes; then
19691   cat >>confdefs.h <<_ACEOF
19692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19693 _ACEOF
19694
19695 fi
19696 done
19697
19698   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
19699 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19700 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
19701   $as_echo_n "(cached) " >&6
19702 else
19703   cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h.  */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h.  */
19709 $ac_includes_default
19710 int
19711 main ()
19712 {
19713 #ifndef getc_unlocked
19714   (void) getc_unlocked;
19715 #endif
19716
19717   ;
19718   return 0;
19719 }
19720 _ACEOF
19721 rm -f conftest.$ac_objext
19722 if { (ac_try="$ac_compile"
19723 case "(($ac_try" in
19724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725   *) ac_try_echo=$ac_try;;
19726 esac
19727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728 $as_echo "$ac_try_echo") >&5
19729   (eval "$ac_compile") 2>conftest.er1
19730   ac_status=$?
19731   grep -v '^ *+' conftest.er1 >conftest.err
19732   rm -f conftest.er1
19733   cat conftest.err >&5
19734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); } && {
19736          test -z "$ac_c_werror_flag" ||
19737          test ! -s conftest.err
19738        } && test -s conftest.$ac_objext; then
19739   ac_cv_have_decl_getc_unlocked=yes
19740 else
19741   $as_echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744         ac_cv_have_decl_getc_unlocked=no
19745 fi
19746
19747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19748 fi
19749 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
19750 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19751 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
19752
19753 cat >>confdefs.h <<_ACEOF
19754 #define HAVE_DECL_GETC_UNLOCKED 1
19755 _ACEOF
19756
19757
19758 else
19759   cat >>confdefs.h <<_ACEOF
19760 #define HAVE_DECL_GETC_UNLOCKED 0
19761 _ACEOF
19762
19763
19764 fi
19765
19766
19767
19768   fi
19769
19770   if test $ac_cv_have_decl_getdelim = no; then
19771     HAVE_DECL_GETDELIM=0
19772   fi
19773
19774
19775   fi
19776
19777
19778
19779   GNULIB_GETLINE=1
19780
19781
19782
19783
19784
19785
19786
19787
19788 cat >>confdefs.h <<\_ACEOF
19789 #define GNULIB_GETOPT_GNU 1
19790 _ACEOF
19791
19792
19793
19794
19795
19796
19797
19798   if test -n "$gl_replace_getopt"; then
19799
19800
19801
19802   GETOPT_H=getopt.h
19803
19804 cat >>confdefs.h <<\_ACEOF
19805 #define __GETOPT_PREFIX rpl_
19806 _ACEOF
19807
19808
19809
19810     GNULIB_UNISTD_H_GETOPT=1
19811
19812
19813
19814
19815
19816
19817
19818
19819   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839 fi
19840
19841
19842
19843
19844
19845
19846
19847 for ac_func in getpagesize
19848 do
19849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19850 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19851 $as_echo_n "checking for $ac_func... " >&6; }
19852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19853   $as_echo_n "(cached) " >&6
19854 else
19855   cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h.  */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h.  */
19861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19863 #define $ac_func innocuous_$ac_func
19864
19865 /* System header to define __stub macros and hopefully few prototypes,
19866     which can conflict with char $ac_func (); below.
19867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868     <limits.h> exists even on freestanding compilers.  */
19869
19870 #ifdef __STDC__
19871 # include <limits.h>
19872 #else
19873 # include <assert.h>
19874 #endif
19875
19876 #undef $ac_func
19877
19878 /* Override any GCC internal prototype to avoid an error.
19879    Use char because int might match the return type of a GCC
19880    builtin and then its argument prototype would still apply.  */
19881 #ifdef __cplusplus
19882 extern "C"
19883 #endif
19884 char $ac_func ();
19885 /* The GNU C library defines this for functions which it implements
19886     to always fail with ENOSYS.  Some functions are actually named
19887     something starting with __ and the normal name is an alias.  */
19888 #if defined __stub_$ac_func || defined __stub___$ac_func
19889 choke me
19890 #endif
19891
19892 int
19893 main ()
19894 {
19895 return $ac_func ();
19896   ;
19897   return 0;
19898 }
19899 _ACEOF
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (ac_try="$ac_link"
19902 case "(($ac_try" in
19903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904   *) ac_try_echo=$ac_try;;
19905 esac
19906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19907 $as_echo "$ac_try_echo") >&5
19908   (eval "$ac_link") 2>conftest.er1
19909   ac_status=$?
19910   grep -v '^ *+' conftest.er1 >conftest.err
19911   rm -f conftest.er1
19912   cat conftest.err >&5
19913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); } && {
19915          test -z "$ac_c_werror_flag" ||
19916          test ! -s conftest.err
19917        } && test -s conftest$ac_exeext && {
19918          test "$cross_compiling" = yes ||
19919          $as_test_x conftest$ac_exeext
19920        }; then
19921   eval "$as_ac_var=yes"
19922 else
19923   $as_echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19925
19926         eval "$as_ac_var=no"
19927 fi
19928
19929 rm -rf conftest.dSYM
19930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19931       conftest$ac_exeext conftest.$ac_ext
19932 fi
19933 ac_res=`eval 'as_val=${'$as_ac_var'}
19934                  $as_echo "$as_val"'`
19935                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19936 $as_echo "$ac_res" >&6; }
19937 as_val=`eval 'as_val=${'$as_ac_var'}
19938                  $as_echo "$as_val"'`
19939    if test "x$as_val" = x""yes; then
19940   cat >>confdefs.h <<_ACEOF
19941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19942 _ACEOF
19943
19944 fi
19945 done
19946
19947   if test $ac_cv_func_getpagesize = no; then
19948     HAVE_GETPAGESIZE=0
19949
19950 for ac_header in OS.h
19951 do
19952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19954   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19955 $as_echo_n "checking for $ac_header... " >&6; }
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957   $as_echo_n "(cached) " >&6
19958 fi
19959 ac_res=`eval 'as_val=${'$as_ac_Header'}
19960                  $as_echo "$as_val"'`
19961                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19962 $as_echo "$ac_res" >&6; }
19963 else
19964   # Is the header compilable?
19965 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19966 $as_echo_n "checking $ac_header usability... " >&6; }
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 $ac_includes_default
19974 #include <$ac_header>
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19983 $as_echo "$ac_try_echo") >&5
19984   (eval "$ac_compile") 2>conftest.er1
19985   ac_status=$?
19986   grep -v '^ *+' conftest.er1 >conftest.err
19987   rm -f conftest.er1
19988   cat conftest.err >&5
19989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); } && {
19991          test -z "$ac_c_werror_flag" ||
19992          test ! -s conftest.err
19993        } && test -s conftest.$ac_objext; then
19994   ac_header_compiler=yes
19995 else
19996   $as_echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999         ac_header_compiler=no
20000 fi
20001
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20004 $as_echo "$ac_header_compiler" >&6; }
20005
20006 # Is the header present?
20007 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20008 $as_echo_n "checking $ac_header presence... " >&6; }
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015 #include <$ac_header>
20016 _ACEOF
20017 if { (ac_try="$ac_cpp conftest.$ac_ext"
20018 case "(($ac_try" in
20019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020   *) ac_try_echo=$ac_try;;
20021 esac
20022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20023 $as_echo "$ac_try_echo") >&5
20024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20025   ac_status=$?
20026   grep -v '^ *+' conftest.er1 >conftest.err
20027   rm -f conftest.er1
20028   cat conftest.err >&5
20029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); } >/dev/null && {
20031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20032          test ! -s conftest.err
20033        }; then
20034   ac_header_preproc=yes
20035 else
20036   $as_echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20038
20039   ac_header_preproc=no
20040 fi
20041
20042 rm -f conftest.err conftest.$ac_ext
20043 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20044 $as_echo "$ac_header_preproc" >&6; }
20045
20046 # So?  What about this header?
20047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20048   yes:no: )
20049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20050 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20051     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20053     ac_header_preproc=yes
20054     ;;
20055   no:yes:* )
20056     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20057 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20058     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20059 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20060     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20061 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20063 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20067 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20068     ( cat <<\_ASBOX
20069 ## ------------------------------- ##
20070 ## Report this to bug-wget@gnu.org ##
20071 ## ------------------------------- ##
20072 _ASBOX
20073      ) | sed "s/^/$as_me: WARNING:     /" >&2
20074     ;;
20075 esac
20076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20077 $as_echo_n "checking for $ac_header... " >&6; }
20078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20079   $as_echo_n "(cached) " >&6
20080 else
20081   eval "$as_ac_Header=\$ac_header_preproc"
20082 fi
20083 ac_res=`eval 'as_val=${'$as_ac_Header'}
20084                  $as_echo "$as_val"'`
20085                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20086 $as_echo "$ac_res" >&6; }
20087
20088 fi
20089 as_val=`eval 'as_val=${'$as_ac_Header'}
20090                  $as_echo "$as_val"'`
20091    if test "x$as_val" = x""yes; then
20092   cat >>confdefs.h <<_ACEOF
20093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20094 _ACEOF
20095
20096 fi
20097
20098 done
20099
20100     if test $ac_cv_header_OS_h = yes; then
20101       HAVE_OS_H=1
20102     fi
20103
20104 for ac_header in sys/param.h
20105 do
20106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20108   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20109 $as_echo_n "checking for $ac_header... " >&6; }
20110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20111   $as_echo_n "(cached) " >&6
20112 fi
20113 ac_res=`eval 'as_val=${'$as_ac_Header'}
20114                  $as_echo "$as_val"'`
20115                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20116 $as_echo "$ac_res" >&6; }
20117 else
20118   # Is the header compilable?
20119 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20120 $as_echo_n "checking $ac_header usability... " >&6; }
20121 cat >conftest.$ac_ext <<_ACEOF
20122 /* confdefs.h.  */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h.  */
20127 $ac_includes_default
20128 #include <$ac_header>
20129 _ACEOF
20130 rm -f conftest.$ac_objext
20131 if { (ac_try="$ac_compile"
20132 case "(($ac_try" in
20133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134   *) ac_try_echo=$ac_try;;
20135 esac
20136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20137 $as_echo "$ac_try_echo") >&5
20138   (eval "$ac_compile") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } && {
20145          test -z "$ac_c_werror_flag" ||
20146          test ! -s conftest.err
20147        } && test -s conftest.$ac_objext; then
20148   ac_header_compiler=yes
20149 else
20150   $as_echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20152
20153         ac_header_compiler=no
20154 fi
20155
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20158 $as_echo "$ac_header_compiler" >&6; }
20159
20160 # Is the header present?
20161 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20162 $as_echo_n "checking $ac_header presence... " >&6; }
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 #include <$ac_header>
20170 _ACEOF
20171 if { (ac_try="$ac_cpp conftest.$ac_ext"
20172 case "(($ac_try" in
20173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174   *) ac_try_echo=$ac_try;;
20175 esac
20176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20177 $as_echo "$ac_try_echo") >&5
20178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } >/dev/null && {
20185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186          test ! -s conftest.err
20187        }; then
20188   ac_header_preproc=yes
20189 else
20190   $as_echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193   ac_header_preproc=no
20194 fi
20195
20196 rm -f conftest.err conftest.$ac_ext
20197 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198 $as_echo "$ac_header_preproc" >&6; }
20199
20200 # So?  What about this header?
20201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20202   yes:no: )
20203     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20204 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20207     ac_header_preproc=yes
20208     ;;
20209   no:yes:* )
20210     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20211 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20212     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20213 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20215 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20217 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20219 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20221 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20222     ( cat <<\_ASBOX
20223 ## ------------------------------- ##
20224 ## Report this to bug-wget@gnu.org ##
20225 ## ------------------------------- ##
20226 _ASBOX
20227      ) | sed "s/^/$as_me: WARNING:     /" >&2
20228     ;;
20229 esac
20230 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20231 $as_echo_n "checking for $ac_header... " >&6; }
20232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233   $as_echo_n "(cached) " >&6
20234 else
20235   eval "$as_ac_Header=\$ac_header_preproc"
20236 fi
20237 ac_res=`eval 'as_val=${'$as_ac_Header'}
20238                  $as_echo "$as_val"'`
20239                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20240 $as_echo "$ac_res" >&6; }
20241
20242 fi
20243 as_val=`eval 'as_val=${'$as_ac_Header'}
20244                  $as_echo "$as_val"'`
20245    if test "x$as_val" = x""yes; then
20246   cat >>confdefs.h <<_ACEOF
20247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20248 _ACEOF
20249
20250 fi
20251
20252 done
20253
20254     if test $ac_cv_header_sys_param_h = yes; then
20255       HAVE_SYS_PARAM_H=1
20256     fi
20257   fi
20258   case "$host_os" in
20259     mingw*)
20260       REPLACE_GETPAGESIZE=1
20261
20262
20263
20264
20265
20266
20267
20268
20269   gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
20270
20271       ;;
20272   esac
20273
20274
20275
20276   GNULIB_GETPAGESIZE=1
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291   gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312   { $as_echo "$as_me:$LINENO: checking whether __fsetlocking is declared" >&5
20313 $as_echo_n "checking whether __fsetlocking is declared... " >&6; }
20314 if test "${ac_cv_have_decl___fsetlocking+set}" = set; then
20315   $as_echo_n "(cached) " >&6
20316 else
20317   cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h.  */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h.  */
20323 #include <stdio.h>
20324      #if HAVE_STDIO_EXT_H
20325       #include <stdio_ext.h>
20326      #endif
20327
20328 int
20329 main ()
20330 {
20331 #ifndef __fsetlocking
20332   (void) __fsetlocking;
20333 #endif
20334
20335   ;
20336   return 0;
20337 }
20338 _ACEOF
20339 rm -f conftest.$ac_objext
20340 if { (ac_try="$ac_compile"
20341 case "(($ac_try" in
20342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343   *) ac_try_echo=$ac_try;;
20344 esac
20345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20346 $as_echo "$ac_try_echo") >&5
20347   (eval "$ac_compile") 2>conftest.er1
20348   ac_status=$?
20349   grep -v '^ *+' conftest.er1 >conftest.err
20350   rm -f conftest.er1
20351   cat conftest.err >&5
20352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); } && {
20354          test -z "$ac_c_werror_flag" ||
20355          test ! -s conftest.err
20356        } && test -s conftest.$ac_objext; then
20357   ac_cv_have_decl___fsetlocking=yes
20358 else
20359   $as_echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362         ac_cv_have_decl___fsetlocking=no
20363 fi
20364
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366 fi
20367 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fsetlocking" >&5
20368 $as_echo "$ac_cv_have_decl___fsetlocking" >&6; }
20369 if test "x$ac_cv_have_decl___fsetlocking" = x""yes; then
20370
20371 cat >>confdefs.h <<_ACEOF
20372 #define HAVE_DECL___FSETLOCKING 1
20373 _ACEOF
20374
20375
20376 else
20377   cat >>confdefs.h <<_ACEOF
20378 #define HAVE_DECL___FSETLOCKING 0
20379 _ACEOF
20380
20381
20382 fi
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405   :
20406
20407
20408 cat >>confdefs.h <<\_ACEOF
20409 #define getpass gnu_getpass
20410 _ACEOF
20411
20412
20413
20414
20415   # Autoconf 2.61a.99 and earlier don't support linking a file only
20416   # in VPATH builds.  But since GNUmakefile is for maintainer use
20417   # only, it does not matter if we skip the link with older autoconf.
20418   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
20419   # builds, so use a shell variable to bypass this.
20420   GNUmakefile=GNUmakefile
20421   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
20422
20423
20424
20425   { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
20426 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
20427 if test "${gl_cv_c_inline_effective+set}" = set; then
20428   $as_echo_n "(cached) " >&6
20429 else
20430   if test $ac_cv_c_inline = no; then
20431        gl_cv_c_inline_effective=no
20432      else
20433                                           cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h.  */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h.  */
20439
20440 int
20441 main ()
20442 {
20443 #ifdef __NO_INLINE__
20444                #error "inline is not effective"
20445              #endif
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 rm -f conftest.$ac_objext
20451 if { (ac_try="$ac_compile"
20452 case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20457 $as_echo "$ac_try_echo") >&5
20458   (eval "$ac_compile") 2>conftest.er1
20459   ac_status=$?
20460   grep -v '^ *+' conftest.er1 >conftest.err
20461   rm -f conftest.er1
20462   cat conftest.err >&5
20463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } && {
20465          test -z "$ac_c_werror_flag" ||
20466          test ! -s conftest.err
20467        } && test -s conftest.$ac_objext; then
20468   gl_cv_c_inline_effective=yes
20469 else
20470   $as_echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473         gl_cv_c_inline_effective=no
20474 fi
20475
20476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20477      fi
20478
20479 fi
20480 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
20481 $as_echo "$gl_cv_c_inline_effective" >&6; }
20482   if test $gl_cv_c_inline_effective = yes; then
20483
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE_INLINE 1
20486 _ACEOF
20487
20488   fi
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
20501
20502
20503
20504
20505   { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
20506 $as_echo_n "checking whether lseek detects pipes... " >&6; }
20507 if test "${gl_cv_func_lseek_pipe+set}" = set; then
20508   $as_echo_n "(cached) " >&6
20509 else
20510   if test $cross_compiling = no; then
20511        cat >conftest.$ac_ext <<_ACEOF
20512
20513 #include <sys/types.h> /* for off_t */
20514 #include <stdio.h> /* for SEEK_CUR */
20515 #include <unistd.h>
20516 int main ()
20517 {
20518   /* Exit with success only if stdin is seekable.  */
20519   return lseek (0, (off_t)0, SEEK_CUR) < 0;
20520 }
20521 _ACEOF
20522 rm -f conftest.$ac_objext conftest$ac_exeext
20523 if { (ac_try="$ac_link"
20524 case "(($ac_try" in
20525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526   *) ac_try_echo=$ac_try;;
20527 esac
20528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20529 $as_echo "$ac_try_echo") >&5
20530   (eval "$ac_link") 2>conftest.er1
20531   ac_status=$?
20532   grep -v '^ *+' conftest.er1 >conftest.err
20533   rm -f conftest.er1
20534   cat conftest.err >&5
20535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); } && {
20537          test -z "$ac_c_werror_flag" ||
20538          test ! -s conftest.err
20539        } && test -s conftest$ac_exeext && {
20540          test "$cross_compiling" = yes ||
20541          $as_test_x conftest$ac_exeext
20542        }; then
20543   if test -s conftest$ac_exeext \
20544              && ./conftest$ac_exeext < conftest.$ac_ext \
20545              && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
20546             gl_cv_func_lseek_pipe=yes
20547           else
20548             gl_cv_func_lseek_pipe=no
20549           fi
20550 else
20551   $as_echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554         gl_cv_func_lseek_pipe=no
20555 fi
20556
20557 rm -rf conftest.dSYM
20558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20559       conftest$ac_exeext conftest.$ac_ext
20560      else
20561        cat >conftest.$ac_ext <<_ACEOF
20562
20563 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
20564 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
20565   Choke me.
20566 #endif
20567 _ACEOF
20568 rm -f conftest.$ac_objext
20569 if { (ac_try="$ac_compile"
20570 case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20575 $as_echo "$ac_try_echo") >&5
20576   (eval "$ac_compile") 2>conftest.er1
20577   ac_status=$?
20578   grep -v '^ *+' conftest.er1 >conftest.err
20579   rm -f conftest.er1
20580   cat conftest.err >&5
20581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); } && {
20583          test -z "$ac_c_werror_flag" ||
20584          test ! -s conftest.err
20585        } && test -s conftest.$ac_objext; then
20586   gl_cv_func_lseek_pipe=yes
20587 else
20588   $as_echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591         gl_cv_func_lseek_pipe=no
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595      fi
20596 fi
20597 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
20598 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
20599   if test $gl_cv_func_lseek_pipe = no; then
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
20610
20611
20612   REPLACE_LSEEK=1
20613
20614 cat >>confdefs.h <<\_ACEOF
20615 #define LSEEK_PIPE_BROKEN 1
20616 _ACEOF
20617
20618
20619   fi
20620
20621
20622
20623   GNULIB_LSEEK=1
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20646
20647
20648
20649      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
20650 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20651 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
20652   $as_echo_n "(cached) " >&6
20653 else
20654
20655                   case "$host_os" in
20656               # Guess no on AIX and OSF/1.
20657         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20658               # Guess yes otherwise.
20659         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20660       esac
20661       if test $LOCALE_JA != none; then
20662         if test "$cross_compiling" = yes; then
20663   :
20664 else
20665   cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h.  */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h.  */
20671
20672 #include <locale.h>
20673 #include <string.h>
20674 #include <wchar.h>
20675 int main ()
20676 {
20677   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20678     {
20679       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20680       mbstate_t state;
20681       wchar_t wc;
20682
20683       memset (&state, '\0', sizeof (mbstate_t));
20684       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20685         if (mbsinit (&state))
20686           return 1;
20687     }
20688   return 0;
20689 }
20690 _ACEOF
20691 rm -f conftest$ac_exeext
20692 if { (ac_try="$ac_link"
20693 case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20698 $as_echo "$ac_try_echo") >&5
20699   (eval "$ac_link") 2>&5
20700   ac_status=$?
20701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20703   { (case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20708 $as_echo "$ac_try_echo") >&5
20709   (eval "$ac_try") 2>&5
20710   ac_status=$?
20711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   gl_cv_func_mbrtowc_incomplete_state=yes
20714 else
20715   $as_echo "$as_me: program exited with status $ac_status" >&5
20716 $as_echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ( exit $ac_status )
20720 gl_cv_func_mbrtowc_incomplete_state=no
20721 fi
20722 rm -rf conftest.dSYM
20723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20724 fi
20725
20726
20727       fi
20728
20729 fi
20730 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20731 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20732
20733
20734
20735
20736      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
20737 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20738 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
20739   $as_echo_n "(cached) " >&6
20740 else
20741
20742                   case "$host_os" in
20743                     # Guess no on Solaris 8.
20744         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20745                     # Guess yes otherwise.
20746         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20747       esac
20748       if test $LOCALE_ZH_CN != none; then
20749         if test "$cross_compiling" = yes; then
20750   :
20751 else
20752   cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758
20759 #include <locale.h>
20760 #include <stdlib.h>
20761 #include <string.h>
20762 #include <wchar.h>
20763 int main ()
20764 {
20765   /* This fails on Solaris 8:
20766      mbrtowc returns 2, and sets wc to 0x00F0.
20767      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
20768   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20769     {
20770       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20771       mbstate_t state;
20772       wchar_t wc;
20773
20774       memset (&state, '\0', sizeof (mbstate_t));
20775       if (mbrtowc (&wc, input + 3, 6, &state) != 4
20776           && mbtowc (&wc, input + 3, 6) == 4)
20777         return 1;
20778     }
20779   return 0;
20780 }
20781 _ACEOF
20782 rm -f conftest$ac_exeext
20783 if { (ac_try="$ac_link"
20784 case "(($ac_try" in
20785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786   *) ac_try_echo=$ac_try;;
20787 esac
20788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20789 $as_echo "$ac_try_echo") >&5
20790   (eval "$ac_link") 2>&5
20791   ac_status=$?
20792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20794   { (case "(($ac_try" in
20795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796   *) ac_try_echo=$ac_try;;
20797 esac
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800   (eval "$ac_try") 2>&5
20801   ac_status=$?
20802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; }; then
20804   gl_cv_func_mbrtowc_sanitycheck=yes
20805 else
20806   $as_echo "$as_me: program exited with status $ac_status" >&5
20807 $as_echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 ( exit $ac_status )
20811 gl_cv_func_mbrtowc_sanitycheck=no
20812 fi
20813 rm -rf conftest.dSYM
20814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20815 fi
20816
20817
20818       fi
20819
20820 fi
20821 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20822 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20823
20824     REPLACE_MBSTATE_T=0
20825     case "$gl_cv_func_mbrtowc_incomplete_state" in
20826       *yes) ;;
20827       *) REPLACE_MBSTATE_T=1 ;;
20828     esac
20829     case "$gl_cv_func_mbrtowc_sanitycheck" in
20830       *yes) ;;
20831       *) REPLACE_MBSTATE_T=1 ;;
20832     esac
20833   else
20834     REPLACE_MBSTATE_T=1
20835   fi
20836   if test $REPLACE_MBSTATE_T = 1; then
20837
20838
20839   WCHAR_H=wchar.h
20840
20841   fi
20842
20843   if test $REPLACE_MBSTATE_T = 1; then
20844     REPLACE_MBRTOWC=1
20845   fi
20846
20847
20848
20849
20850
20851
20852   if test $ac_cv_func_mbrtowc = no; then
20853     HAVE_MBRTOWC=0
20854   fi
20855   if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
20856
20857
20858
20859      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
20860 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20861 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
20862   $as_echo_n "(cached) " >&6
20863 else
20864
20865                   case "$host_os" in
20866               # Guess no on OSF/1.
20867         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
20868               # Guess yes otherwise.
20869         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
20870       esac
20871       if test $LOCALE_FR_UTF8 != none; then
20872         if test "$cross_compiling" = yes; then
20873   :
20874 else
20875   cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h.  */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h.  */
20881
20882 #include <locale.h>
20883 #include <string.h>
20884 #include <wchar.h>
20885 int main ()
20886 {
20887   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20888     {
20889       mbstate_t state;
20890       wchar_t wc;
20891       int ret;
20892
20893       memset (&state, '\0', sizeof (mbstate_t));
20894       wc = (wchar_t) 0xBADFACE;
20895       mbrtowc (&wc, NULL, 5, &state);
20896       /* Check that wc was not modified.  */
20897       if (wc != (wchar_t) 0xBADFACE)
20898         return 1;
20899     }
20900   return 0;
20901 }
20902 _ACEOF
20903 rm -f conftest$ac_exeext
20904 if { (ac_try="$ac_link"
20905 case "(($ac_try" in
20906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907   *) ac_try_echo=$ac_try;;
20908 esac
20909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20910 $as_echo "$ac_try_echo") >&5
20911   (eval "$ac_link") 2>&5
20912   ac_status=$?
20913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20915   { (case "(($ac_try" in
20916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917   *) ac_try_echo=$ac_try;;
20918 esac
20919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20920 $as_echo "$ac_try_echo") >&5
20921   (eval "$ac_try") 2>&5
20922   ac_status=$?
20923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; }; then
20925   gl_cv_func_mbrtowc_null_arg=yes
20926 else
20927   $as_echo "$as_me: program exited with status $ac_status" >&5
20928 $as_echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20930
20931 ( exit $ac_status )
20932 gl_cv_func_mbrtowc_null_arg=no
20933 fi
20934 rm -rf conftest.dSYM
20935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20936 fi
20937
20938
20939       fi
20940
20941 fi
20942 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
20943 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
20944
20945
20946
20947
20948
20949      { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
20950 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20951 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
20952   $as_echo_n "(cached) " >&6
20953 else
20954
20955                   case "$host_os" in
20956                           # Guess no on HP-UX and Solaris.
20957         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
20958                           # Guess yes otherwise.
20959         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
20960       esac
20961       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
20962         if test "$cross_compiling" = yes; then
20963   :
20964 else
20965   cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971
20972 #include <locale.h>
20973 #include <string.h>
20974 #include <wchar.h>
20975 int main ()
20976 {
20977   /* This fails on Solaris.  */
20978   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20979     {
20980       char input[] = "B\303\274\303\237er"; /* "Büßer" */
20981       mbstate_t state;
20982       wchar_t wc;
20983
20984       memset (&state, '\0', sizeof (mbstate_t));
20985       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20986         {
20987           input[1] = '\0';
20988           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20989             return 1;
20990         }
20991     }
20992   /* This fails on HP-UX 11.11.  */
20993   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20994     {
20995       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20996       mbstate_t state;
20997       wchar_t wc;
20998
20999       memset (&state, '\0', sizeof (mbstate_t));
21000       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21001         {
21002           input[1] = '\0';
21003           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
21004             return 1;
21005         }
21006     }
21007   return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest$ac_exeext
21011 if { (ac_try="$ac_link"
21012 case "(($ac_try" in
21013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014   *) ac_try_echo=$ac_try;;
21015 esac
21016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21017 $as_echo "$ac_try_echo") >&5
21018   (eval "$ac_link") 2>&5
21019   ac_status=$?
21020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21022   { (case "(($ac_try" in
21023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024   *) ac_try_echo=$ac_try;;
21025 esac
21026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21027 $as_echo "$ac_try_echo") >&5
21028   (eval "$ac_try") 2>&5
21029   ac_status=$?
21030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); }; }; then
21032   gl_cv_func_mbrtowc_retval=yes
21033 else
21034   $as_echo "$as_me: program exited with status $ac_status" >&5
21035 $as_echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038 ( exit $ac_status )
21039 gl_cv_func_mbrtowc_retval=no
21040 fi
21041 rm -rf conftest.dSYM
21042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21043 fi
21044
21045
21046       fi
21047
21048 fi
21049 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
21050 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
21051
21052
21053
21054
21055      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
21056 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
21057 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
21058   $as_echo_n "(cached) " >&6
21059 else
21060
21061                   case "$host_os" in
21062                        # Guess no on Solaris 8 and 9.
21063         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
21064                        # Guess yes otherwise.
21065         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
21066       esac
21067       if test $LOCALE_ZH_CN != none; then
21068         if test "$cross_compiling" = yes; then
21069   :
21070 else
21071   cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077
21078 #include <locale.h>
21079 #include <string.h>
21080 #include <wchar.h>
21081 int main ()
21082 {
21083   /* This fails on Solaris 8 and 9.  */
21084   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21085     {
21086       mbstate_t state;
21087       wchar_t wc;
21088
21089       memset (&state, '\0', sizeof (mbstate_t));
21090       if (mbrtowc (&wc, "", 1, &state) != 0)
21091         return 1;
21092     }
21093   return 0;
21094 }
21095 _ACEOF
21096 rm -f conftest$ac_exeext
21097 if { (ac_try="$ac_link"
21098 case "(($ac_try" in
21099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100   *) ac_try_echo=$ac_try;;
21101 esac
21102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103 $as_echo "$ac_try_echo") >&5
21104   (eval "$ac_link") 2>&5
21105   ac_status=$?
21106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21108   { (case "(($ac_try" in
21109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110   *) ac_try_echo=$ac_try;;
21111 esac
21112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21113 $as_echo "$ac_try_echo") >&5
21114   (eval "$ac_try") 2>&5
21115   ac_status=$?
21116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; }; then
21118   gl_cv_func_mbrtowc_nul_retval=yes
21119 else
21120   $as_echo "$as_me: program exited with status $ac_status" >&5
21121 $as_echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124 ( exit $ac_status )
21125 gl_cv_func_mbrtowc_nul_retval=no
21126 fi
21127 rm -rf conftest.dSYM
21128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21129 fi
21130
21131
21132       fi
21133
21134 fi
21135 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
21136 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
21137
21138     case "$gl_cv_func_mbrtowc_null_arg" in
21139       *yes) ;;
21140       *)
21141 cat >>confdefs.h <<\_ACEOF
21142 #define MBRTOWC_NULL_ARG_BUG 1
21143 _ACEOF
21144
21145          REPLACE_MBRTOWC=1
21146          ;;
21147     esac
21148     case "$gl_cv_func_mbrtowc_retval" in
21149       *yes) ;;
21150       *)
21151 cat >>confdefs.h <<\_ACEOF
21152 #define MBRTOWC_RETVAL_BUG 1
21153 _ACEOF
21154
21155          REPLACE_MBRTOWC=1
21156          ;;
21157     esac
21158     case "$gl_cv_func_mbrtowc_nul_retval" in
21159       *yes) ;;
21160       *)
21161 cat >>confdefs.h <<\_ACEOF
21162 #define MBRTOWC_NUL_RETVAL_BUG 1
21163 _ACEOF
21164
21165          REPLACE_MBRTOWC=1
21166          ;;
21167     esac
21168   fi
21169   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
21170
21171
21172   WCHAR_H=wchar.h
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
21183
21184
21185   :
21186
21187   fi
21188
21189
21190
21191   GNULIB_MBRTOWC=1
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21214
21215
21216
21217      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
21218 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21219 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
21220   $as_echo_n "(cached) " >&6
21221 else
21222
21223                   case "$host_os" in
21224               # Guess no on AIX and OSF/1.
21225         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
21226               # Guess yes otherwise.
21227         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
21228       esac
21229       if test $LOCALE_JA != none; then
21230         if test "$cross_compiling" = yes; then
21231   :
21232 else
21233   cat >conftest.$ac_ext <<_ACEOF
21234 /* confdefs.h.  */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h.  */
21239
21240 #include <locale.h>
21241 #include <string.h>
21242 #include <wchar.h>
21243 int main ()
21244 {
21245   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21246     {
21247       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21248       mbstate_t state;
21249       wchar_t wc;
21250
21251       memset (&state, '\0', sizeof (mbstate_t));
21252       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21253         if (mbsinit (&state))
21254           return 1;
21255     }
21256   return 0;
21257 }
21258 _ACEOF
21259 rm -f conftest$ac_exeext
21260 if { (ac_try="$ac_link"
21261 case "(($ac_try" in
21262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263   *) ac_try_echo=$ac_try;;
21264 esac
21265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21266 $as_echo "$ac_try_echo") >&5
21267   (eval "$ac_link") 2>&5
21268   ac_status=$?
21269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21271   { (case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21276 $as_echo "$ac_try_echo") >&5
21277   (eval "$ac_try") 2>&5
21278   ac_status=$?
21279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); }; }; then
21281   gl_cv_func_mbrtowc_incomplete_state=yes
21282 else
21283   $as_echo "$as_me: program exited with status $ac_status" >&5
21284 $as_echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287 ( exit $ac_status )
21288 gl_cv_func_mbrtowc_incomplete_state=no
21289 fi
21290 rm -rf conftest.dSYM
21291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21292 fi
21293
21294
21295       fi
21296
21297 fi
21298 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21299 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21300
21301
21302
21303
21304      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
21305 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21306 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
21307   $as_echo_n "(cached) " >&6
21308 else
21309
21310                   case "$host_os" in
21311                     # Guess no on Solaris 8.
21312         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
21313                     # Guess yes otherwise.
21314         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
21315       esac
21316       if test $LOCALE_ZH_CN != none; then
21317         if test "$cross_compiling" = yes; then
21318   :
21319 else
21320   cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326
21327 #include <locale.h>
21328 #include <stdlib.h>
21329 #include <string.h>
21330 #include <wchar.h>
21331 int main ()
21332 {
21333   /* This fails on Solaris 8:
21334      mbrtowc returns 2, and sets wc to 0x00F0.
21335      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
21336   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21337     {
21338       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21339       mbstate_t state;
21340       wchar_t wc;
21341
21342       memset (&state, '\0', sizeof (mbstate_t));
21343       if (mbrtowc (&wc, input + 3, 6, &state) != 4
21344           && mbtowc (&wc, input + 3, 6) == 4)
21345         return 1;
21346     }
21347   return 0;
21348 }
21349 _ACEOF
21350 rm -f conftest$ac_exeext
21351 if { (ac_try="$ac_link"
21352 case "(($ac_try" in
21353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354   *) ac_try_echo=$ac_try;;
21355 esac
21356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21357 $as_echo "$ac_try_echo") >&5
21358   (eval "$ac_link") 2>&5
21359   ac_status=$?
21360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21362   { (case "(($ac_try" in
21363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364   *) ac_try_echo=$ac_try;;
21365 esac
21366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21367 $as_echo "$ac_try_echo") >&5
21368   (eval "$ac_try") 2>&5
21369   ac_status=$?
21370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371   (exit $ac_status); }; }; then
21372   gl_cv_func_mbrtowc_sanitycheck=yes
21373 else
21374   $as_echo "$as_me: program exited with status $ac_status" >&5
21375 $as_echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21377
21378 ( exit $ac_status )
21379 gl_cv_func_mbrtowc_sanitycheck=no
21380 fi
21381 rm -rf conftest.dSYM
21382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21383 fi
21384
21385
21386       fi
21387
21388 fi
21389 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21390 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21391
21392     REPLACE_MBSTATE_T=0
21393     case "$gl_cv_func_mbrtowc_incomplete_state" in
21394       *yes) ;;
21395       *) REPLACE_MBSTATE_T=1 ;;
21396     esac
21397     case "$gl_cv_func_mbrtowc_sanitycheck" in
21398       *yes) ;;
21399       *) REPLACE_MBSTATE_T=1 ;;
21400     esac
21401   else
21402     REPLACE_MBSTATE_T=1
21403   fi
21404   if test $REPLACE_MBSTATE_T = 1; then
21405
21406
21407   WCHAR_H=wchar.h
21408
21409   fi
21410
21411   if test $REPLACE_MBSTATE_T = 1; then
21412     REPLACE_MBSINIT=1
21413   fi
21414
21415
21416
21417
21418
21419
21420   if test $ac_cv_func_mbsinit = no; then
21421     HAVE_MBSINIT=0
21422   fi
21423   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
21424
21425
21426   WCHAR_H=wchar.h
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
21437
21438
21439   :
21440
21441   fi
21442
21443
21444
21445   GNULIB_MBSINIT=1
21446
21447
21448
21449
21450   GNULIB_MEMCHR=1
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462   gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
21476
21477
21478
21479
21480   if test $gl_cv_func_malloc_posix = yes; then
21481     HAVE_REALLOC_POSIX=1
21482
21483 cat >>confdefs.h <<\_ACEOF
21484 #define HAVE_REALLOC_POSIX 1
21485 _ACEOF
21486
21487   else
21488
21489
21490
21491
21492
21493
21494
21495
21496   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
21497
21498     HAVE_REALLOC_POSIX=0
21499   fi
21500
21501
21502
21503
21504   GNULIB_REALLOC_POSIX=1
21505
21506
21507
21508
21509   # Define two additional variables used in the Makefile substitution.
21510
21511   if test "$ac_cv_header_stdbool_h" = yes; then
21512     STDBOOL_H=''
21513   else
21514     STDBOOL_H='stdbool.h'
21515   fi
21516
21517
21518   if test "$ac_cv_type__Bool" = yes; then
21519     HAVE__BOOL=1
21520   else
21521     HAVE__BOOL=0
21522   fi
21523
21524
21525
21526
21527
21528   if test $gt_cv_c_wchar_t = no; then
21529     HAVE_WCHAR_T=0
21530     STDDEF_H=stddef.h
21531   fi
21532   { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
21533 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21534 if test "${gl_cv_decl_null_works+set}" = set; then
21535   $as_echo_n "(cached) " >&6
21536 else
21537   cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h.  */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h.  */
21543 #include <stddef.h>
21544       int test[2 * (sizeof NULL == sizeof (void *)) -1];
21545
21546 int
21547 main ()
21548 {
21549
21550   ;
21551   return 0;
21552 }
21553 _ACEOF
21554 rm -f conftest.$ac_objext
21555 if { (ac_try="$ac_compile"
21556 case "(($ac_try" in
21557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558   *) ac_try_echo=$ac_try;;
21559 esac
21560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21561 $as_echo "$ac_try_echo") >&5
21562   (eval "$ac_compile") 2>conftest.er1
21563   ac_status=$?
21564   grep -v '^ *+' conftest.er1 >conftest.err
21565   rm -f conftest.er1
21566   cat conftest.err >&5
21567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); } && {
21569          test -z "$ac_c_werror_flag" ||
21570          test ! -s conftest.err
21571        } && test -s conftest.$ac_objext; then
21572   gl_cv_decl_null_works=yes
21573 else
21574   $as_echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577         gl_cv_decl_null_works=no
21578 fi
21579
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 fi
21582 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
21583 $as_echo "$gl_cv_decl_null_works" >&6; }
21584   if test $gl_cv_decl_null_works = no; then
21585     REPLACE_NULL=1
21586     STDDEF_H=stddef.h
21587   fi
21588   if test -n "$STDDEF_H"; then
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600      if test $gl_cv_have_include_next = yes; then
21601        gl_cv_next_stddef_h='<'stddef.h'>'
21602      else
21603        { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
21604 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21605 if test "${gl_cv_next_stddef_h+set}" = set; then
21606   $as_echo_n "(cached) " >&6
21607 else
21608
21609           if test $ac_cv_header_stddef_h = yes; then
21610             cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 #include <stddef.h>
21617
21618 _ACEOF
21619                                                                     case "$host_os" in
21620               aix*) gl_absname_cpp="$ac_cpp -C" ;;
21621               *)    gl_absname_cpp="$ac_cpp" ;;
21622             esac
21623                                     gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21624                sed -n '\#/stddef.h#{
21625                  s#.*"\(.*/stddef.h\)".*#\1#
21626                  s#^/[^/]#//&#
21627                  p
21628                  q
21629                }'`'"'
21630           else
21631             gl_cv_next_stddef_h='<'stddef.h'>'
21632           fi
21633
21634 fi
21635 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
21636 $as_echo "$gl_cv_next_stddef_h" >&6; }
21637      fi
21638      NEXT_STDDEF_H=$gl_cv_next_stddef_h
21639
21640      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21641        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21642        gl_next_as_first_directive='<'stddef.h'>'
21643      else
21644        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21645        gl_next_as_first_directive=$gl_cv_next_stddef_h
21646      fi
21647      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21648
21649
21650
21651   fi
21652
21653
21654
21655
21656   if test $ac_cv_type_long_long_int = yes; then
21657     HAVE_LONG_LONG_INT=1
21658   else
21659     HAVE_LONG_LONG_INT=0
21660   fi
21661
21662
21663   if test $ac_cv_type_unsigned_long_long_int = yes; then
21664     HAVE_UNSIGNED_LONG_LONG_INT=1
21665   else
21666     HAVE_UNSIGNED_LONG_LONG_INT=0
21667   fi
21668
21669
21670       if test $ac_cv_header_inttypes_h = yes; then
21671     HAVE_INTTYPES_H=1
21672   else
21673     HAVE_INTTYPES_H=0
21674   fi
21675
21676
21677       if test $ac_cv_header_sys_types_h = yes; then
21678     HAVE_SYS_TYPES_H=1
21679   else
21680     HAVE_SYS_TYPES_H=0
21681   fi
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695      if test $gl_cv_have_include_next = yes; then
21696        gl_cv_next_stdint_h='<'stdint.h'>'
21697      else
21698        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
21699 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
21700 if test "${gl_cv_next_stdint_h+set}" = set; then
21701   $as_echo_n "(cached) " >&6
21702 else
21703
21704           if test $ac_cv_header_stdint_h = yes; then
21705             cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #include <stdint.h>
21712
21713 _ACEOF
21714                                                                     case "$host_os" in
21715               aix*) gl_absname_cpp="$ac_cpp -C" ;;
21716               *)    gl_absname_cpp="$ac_cpp" ;;
21717             esac
21718                                     gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21719                sed -n '\#/stdint.h#{
21720                  s#.*"\(.*/stdint.h\)".*#\1#
21721                  s#^/[^/]#//&#
21722                  p
21723                  q
21724                }'`'"'
21725           else
21726             gl_cv_next_stdint_h='<'stdint.h'>'
21727           fi
21728
21729 fi
21730 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
21731 $as_echo "$gl_cv_next_stdint_h" >&6; }
21732      fi
21733      NEXT_STDINT_H=$gl_cv_next_stdint_h
21734
21735      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21736        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21737        gl_next_as_first_directive='<'stdint.h'>'
21738      else
21739        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21740        gl_next_as_first_directive=$gl_cv_next_stdint_h
21741      fi
21742      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21743
21744
21745
21746   if test $ac_cv_header_stdint_h = yes; then
21747     HAVE_STDINT_H=1
21748   else
21749     HAVE_STDINT_H=0
21750   fi
21751
21752
21753     if test $ac_cv_header_stdint_h = yes; then
21754     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
21755 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21756 if test "${gl_cv_header_working_stdint_h+set}" = set; then
21757   $as_echo_n "(cached) " >&6
21758 else
21759   gl_cv_header_working_stdint_h=no
21760        cat >conftest.$ac_ext <<_ACEOF
21761
21762          /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767
21768 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21769 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21770 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21771 #include <stdint.h>
21772 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
21773 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
21774 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21775 #endif
21776
21777
21778   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21779      included before <wchar.h>.  */
21780   #include <stddef.h>
21781   #include <signal.h>
21782   #if HAVE_WCHAR_H
21783   # include <stdio.h>
21784   # include <time.h>
21785   # include <wchar.h>
21786   #endif
21787
21788
21789 #ifdef INT8_MAX
21790 int8_t a1 = INT8_MAX;
21791 int8_t a1min = INT8_MIN;
21792 #endif
21793 #ifdef INT16_MAX
21794 int16_t a2 = INT16_MAX;
21795 int16_t a2min = INT16_MIN;
21796 #endif
21797 #ifdef INT32_MAX
21798 int32_t a3 = INT32_MAX;
21799 int32_t a3min = INT32_MIN;
21800 #endif
21801 #ifdef INT64_MAX
21802 int64_t a4 = INT64_MAX;
21803 int64_t a4min = INT64_MIN;
21804 #endif
21805 #ifdef UINT8_MAX
21806 uint8_t b1 = UINT8_MAX;
21807 #else
21808 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21809 #endif
21810 #ifdef UINT16_MAX
21811 uint16_t b2 = UINT16_MAX;
21812 #endif
21813 #ifdef UINT32_MAX
21814 uint32_t b3 = UINT32_MAX;
21815 #endif
21816 #ifdef UINT64_MAX
21817 uint64_t b4 = UINT64_MAX;
21818 #endif
21819 int_least8_t c1 = INT8_C (0x7f);
21820 int_least8_t c1max = INT_LEAST8_MAX;
21821 int_least8_t c1min = INT_LEAST8_MIN;
21822 int_least16_t c2 = INT16_C (0x7fff);
21823 int_least16_t c2max = INT_LEAST16_MAX;
21824 int_least16_t c2min = INT_LEAST16_MIN;
21825 int_least32_t c3 = INT32_C (0x7fffffff);
21826 int_least32_t c3max = INT_LEAST32_MAX;
21827 int_least32_t c3min = INT_LEAST32_MIN;
21828 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21829 int_least64_t c4max = INT_LEAST64_MAX;
21830 int_least64_t c4min = INT_LEAST64_MIN;
21831 uint_least8_t d1 = UINT8_C (0xff);
21832 uint_least8_t d1max = UINT_LEAST8_MAX;
21833 uint_least16_t d2 = UINT16_C (0xffff);
21834 uint_least16_t d2max = UINT_LEAST16_MAX;
21835 uint_least32_t d3 = UINT32_C (0xffffffff);
21836 uint_least32_t d3max = UINT_LEAST32_MAX;
21837 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21838 uint_least64_t d4max = UINT_LEAST64_MAX;
21839 int_fast8_t e1 = INT_FAST8_MAX;
21840 int_fast8_t e1min = INT_FAST8_MIN;
21841 int_fast16_t e2 = INT_FAST16_MAX;
21842 int_fast16_t e2min = INT_FAST16_MIN;
21843 int_fast32_t e3 = INT_FAST32_MAX;
21844 int_fast32_t e3min = INT_FAST32_MIN;
21845 int_fast64_t e4 = INT_FAST64_MAX;
21846 int_fast64_t e4min = INT_FAST64_MIN;
21847 uint_fast8_t f1 = UINT_FAST8_MAX;
21848 uint_fast16_t f2 = UINT_FAST16_MAX;
21849 uint_fast32_t f3 = UINT_FAST32_MAX;
21850 uint_fast64_t f4 = UINT_FAST64_MAX;
21851 #ifdef INTPTR_MAX
21852 intptr_t g = INTPTR_MAX;
21853 intptr_t gmin = INTPTR_MIN;
21854 #endif
21855 #ifdef UINTPTR_MAX
21856 uintptr_t h = UINTPTR_MAX;
21857 #endif
21858 intmax_t i = INTMAX_MAX;
21859 uintmax_t j = UINTMAX_MAX;
21860
21861 #include <limits.h> /* for CHAR_BIT */
21862 #define TYPE_MINIMUM(t) \
21863   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
21864 #define TYPE_MAXIMUM(t) \
21865   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
21866 struct s {
21867   int check_PTRDIFF:
21868       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21869       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21870       ? 1 : -1;
21871   /* Detect bug in FreeBSD 6.0 / ia64.  */
21872   int check_SIG_ATOMIC:
21873       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21874       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21875       ? 1 : -1;
21876   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21877   int check_WCHAR:
21878       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21879       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21880       ? 1 : -1;
21881   /* Detect bug in mingw.  */
21882   int check_WINT:
21883       WINT_MIN == TYPE_MINIMUM (wint_t)
21884       && WINT_MAX == TYPE_MAXIMUM (wint_t)
21885       ? 1 : -1;
21886
21887   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
21888   int check_UINT8_C:
21889         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21890   int check_UINT16_C:
21891         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21892
21893   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
21894 #ifdef UINT8_MAX
21895   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21896 #endif
21897 #ifdef UINT16_MAX
21898   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21899 #endif
21900 #ifdef UINT32_MAX
21901   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21902 #endif
21903 #ifdef UINT64_MAX
21904   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21905 #endif
21906   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21907   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21908   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21909   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21910   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21911   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21912   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21913   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21914   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21915   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21916   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21917 };
21918
21919 int
21920 main ()
21921 {
21922
21923   ;
21924   return 0;
21925 }
21926 _ACEOF
21927 rm -f conftest.$ac_objext
21928 if { (ac_try="$ac_compile"
21929 case "(($ac_try" in
21930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931   *) ac_try_echo=$ac_try;;
21932 esac
21933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21934 $as_echo "$ac_try_echo") >&5
21935   (eval "$ac_compile") 2>conftest.er1
21936   ac_status=$?
21937   grep -v '^ *+' conftest.er1 >conftest.err
21938   rm -f conftest.er1
21939   cat conftest.err >&5
21940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); } && {
21942          test -z "$ac_c_werror_flag" ||
21943          test ! -s conftest.err
21944        } && test -s conftest.$ac_objext; then
21945                                                     if test "$cross_compiling" = yes; then
21946                  gl_cv_header_working_stdint_h=yes
21947
21948 else
21949   cat >conftest.$ac_ext <<_ACEOF
21950
21951             /* confdefs.h.  */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h.  */
21956
21957 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21958 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21959 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21960 #include <stdint.h>
21961
21962
21963   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21964      included before <wchar.h>.  */
21965   #include <stddef.h>
21966   #include <signal.h>
21967   #if HAVE_WCHAR_H
21968   # include <stdio.h>
21969   # include <time.h>
21970   # include <wchar.h>
21971   #endif
21972
21973
21974 #include <stdio.h>
21975 #include <string.h>
21976 #define MVAL(macro) MVAL1(macro)
21977 #define MVAL1(expression) #expression
21978 static const char *macro_values[] =
21979   {
21980 #ifdef INT8_MAX
21981     MVAL (INT8_MAX),
21982 #endif
21983 #ifdef INT16_MAX
21984     MVAL (INT16_MAX),
21985 #endif
21986 #ifdef INT32_MAX
21987     MVAL (INT32_MAX),
21988 #endif
21989 #ifdef INT64_MAX
21990     MVAL (INT64_MAX),
21991 #endif
21992 #ifdef UINT8_MAX
21993     MVAL (UINT8_MAX),
21994 #endif
21995 #ifdef UINT16_MAX
21996     MVAL (UINT16_MAX),
21997 #endif
21998 #ifdef UINT32_MAX
21999     MVAL (UINT32_MAX),
22000 #endif
22001 #ifdef UINT64_MAX
22002     MVAL (UINT64_MAX),
22003 #endif
22004     NULL
22005   };
22006
22007 int
22008 main ()
22009 {
22010
22011   const char **mv;
22012   for (mv = macro_values; *mv != NULL; mv++)
22013     {
22014       const char *value = *mv;
22015       /* Test whether it looks like a cast expression.  */
22016       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
22017           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
22018           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
22019           || strncmp (value, "((int)"/*)*/, 6) == 0
22020           || strncmp (value, "((signed short)"/*)*/, 15) == 0
22021           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
22022         return 1;
22023     }
22024   return 0;
22025
22026   ;
22027   return 0;
22028 }
22029 _ACEOF
22030 rm -f conftest$ac_exeext
22031 if { (ac_try="$ac_link"
22032 case "(($ac_try" in
22033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034   *) ac_try_echo=$ac_try;;
22035 esac
22036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037 $as_echo "$ac_try_echo") >&5
22038   (eval "$ac_link") 2>&5
22039   ac_status=$?
22040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22042   { (case "(($ac_try" in
22043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044   *) ac_try_echo=$ac_try;;
22045 esac
22046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22047 $as_echo "$ac_try_echo") >&5
22048   (eval "$ac_try") 2>&5
22049   ac_status=$?
22050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); }; }; then
22052   gl_cv_header_working_stdint_h=yes
22053 else
22054   $as_echo "$as_me: program exited with status $ac_status" >&5
22055 $as_echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22057
22058 fi
22059 rm -rf conftest.dSYM
22060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22061 fi
22062
22063
22064
22065 else
22066   $as_echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22068
22069
22070 fi
22071
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073
22074 fi
22075 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
22076 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
22077   fi
22078   if test "$gl_cv_header_working_stdint_h" = yes; then
22079     STDINT_H=
22080   else
22081
22082
22083 for ac_header in sys/inttypes.h sys/bitypes.h
22084 do
22085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22087   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22088 $as_echo_n "checking for $ac_header... " >&6; }
22089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090   $as_echo_n "(cached) " >&6
22091 fi
22092 ac_res=`eval 'as_val=${'$as_ac_Header'}
22093                  $as_echo "$as_val"'`
22094                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22095 $as_echo "$ac_res" >&6; }
22096 else
22097   # Is the header compilable?
22098 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22099 $as_echo_n "checking $ac_header usability... " >&6; }
22100 cat >conftest.$ac_ext <<_ACEOF
22101 /* confdefs.h.  */
22102 _ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h.  */
22106 $ac_includes_default
22107 #include <$ac_header>
22108 _ACEOF
22109 rm -f conftest.$ac_objext
22110 if { (ac_try="$ac_compile"
22111 case "(($ac_try" in
22112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113   *) ac_try_echo=$ac_try;;
22114 esac
22115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22116 $as_echo "$ac_try_echo") >&5
22117   (eval "$ac_compile") 2>conftest.er1
22118   ac_status=$?
22119   grep -v '^ *+' conftest.er1 >conftest.err
22120   rm -f conftest.er1
22121   cat conftest.err >&5
22122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123   (exit $ac_status); } && {
22124          test -z "$ac_c_werror_flag" ||
22125          test ! -s conftest.err
22126        } && test -s conftest.$ac_objext; then
22127   ac_header_compiler=yes
22128 else
22129   $as_echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132         ac_header_compiler=no
22133 fi
22134
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22137 $as_echo "$ac_header_compiler" >&6; }
22138
22139 # Is the header present?
22140 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22141 $as_echo_n "checking $ac_header presence... " >&6; }
22142 cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h.  */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h.  */
22148 #include <$ac_header>
22149 _ACEOF
22150 if { (ac_try="$ac_cpp conftest.$ac_ext"
22151 case "(($ac_try" in
22152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153   *) ac_try_echo=$ac_try;;
22154 esac
22155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22156 $as_echo "$ac_try_echo") >&5
22157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22158   ac_status=$?
22159   grep -v '^ *+' conftest.er1 >conftest.err
22160   rm -f conftest.er1
22161   cat conftest.err >&5
22162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); } >/dev/null && {
22164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22165          test ! -s conftest.err
22166        }; then
22167   ac_header_preproc=yes
22168 else
22169   $as_echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22171
22172   ac_header_preproc=no
22173 fi
22174
22175 rm -f conftest.err conftest.$ac_ext
22176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22177 $as_echo "$ac_header_preproc" >&6; }
22178
22179 # So?  What about this header?
22180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22181   yes:no: )
22182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22183 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22186     ac_header_preproc=yes
22187     ;;
22188   no:yes:* )
22189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22190 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22192 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22194 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22196 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22199     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22200 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22201     ( cat <<\_ASBOX
22202 ## ------------------------------- ##
22203 ## Report this to bug-wget@gnu.org ##
22204 ## ------------------------------- ##
22205 _ASBOX
22206      ) | sed "s/^/$as_me: WARNING:     /" >&2
22207     ;;
22208 esac
22209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22210 $as_echo_n "checking for $ac_header... " >&6; }
22211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22212   $as_echo_n "(cached) " >&6
22213 else
22214   eval "$as_ac_Header=\$ac_header_preproc"
22215 fi
22216 ac_res=`eval 'as_val=${'$as_ac_Header'}
22217                  $as_echo "$as_val"'`
22218                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22219 $as_echo "$ac_res" >&6; }
22220
22221 fi
22222 as_val=`eval 'as_val=${'$as_ac_Header'}
22223                  $as_echo "$as_val"'`
22224    if test "x$as_val" = x""yes; then
22225   cat >>confdefs.h <<_ACEOF
22226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22227 _ACEOF
22228
22229 fi
22230
22231 done
22232
22233     if test $ac_cv_header_sys_inttypes_h = yes; then
22234       HAVE_SYS_INTTYPES_H=1
22235     else
22236       HAVE_SYS_INTTYPES_H=0
22237     fi
22238
22239     if test $ac_cv_header_sys_bitypes_h = yes; then
22240       HAVE_SYS_BITYPES_H=1
22241     else
22242       HAVE_SYS_BITYPES_H=0
22243     fi
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255   if test $APPLE_UNIVERSAL_BUILD = 0; then
22256
22257
22258
22259
22260   for gltype in ptrdiff_t size_t ; do
22261     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
22262 $as_echo_n "checking for bit size of $gltype... " >&6; }
22263 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
22264   $as_echo_n "(cached) " >&6
22265 else
22266   if test "$cross_compiling" = yes; then
22267   # Depending upon the size, compute the lo and hi bounds.
22268 cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h.  */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h.  */
22274
22275   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22276      included before <wchar.h>.  */
22277   #include <stddef.h>
22278   #include <signal.h>
22279   #if HAVE_WCHAR_H
22280   # include <stdio.h>
22281   # include <time.h>
22282   # include <wchar.h>
22283   #endif
22284
22285 #include <limits.h>
22286 int
22287 main ()
22288 {
22289 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
22290 test_array [0] = 0
22291
22292   ;
22293   return 0;
22294 }
22295 _ACEOF
22296 rm -f conftest.$ac_objext
22297 if { (ac_try="$ac_compile"
22298 case "(($ac_try" in
22299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300   *) ac_try_echo=$ac_try;;
22301 esac
22302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22303 $as_echo "$ac_try_echo") >&5
22304   (eval "$ac_compile") 2>conftest.er1
22305   ac_status=$?
22306   grep -v '^ *+' conftest.er1 >conftest.err
22307   rm -f conftest.er1
22308   cat conftest.err >&5
22309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } && {
22311          test -z "$ac_c_werror_flag" ||
22312          test ! -s conftest.err
22313        } && test -s conftest.$ac_objext; then
22314   ac_lo=0 ac_mid=0
22315   while :; do
22316     cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h.  */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h.  */
22322
22323   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22324      included before <wchar.h>.  */
22325   #include <stddef.h>
22326   #include <signal.h>
22327   #if HAVE_WCHAR_H
22328   # include <stdio.h>
22329   # include <time.h>
22330   # include <wchar.h>
22331   #endif
22332
22333 #include <limits.h>
22334 int
22335 main ()
22336 {
22337 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22338 test_array [0] = 0
22339
22340   ;
22341   return 0;
22342 }
22343 _ACEOF
22344 rm -f conftest.$ac_objext
22345 if { (ac_try="$ac_compile"
22346 case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22351 $as_echo "$ac_try_echo") >&5
22352   (eval "$ac_compile") 2>conftest.er1
22353   ac_status=$?
22354   grep -v '^ *+' conftest.er1 >conftest.err
22355   rm -f conftest.er1
22356   cat conftest.err >&5
22357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); } && {
22359          test -z "$ac_c_werror_flag" ||
22360          test ! -s conftest.err
22361        } && test -s conftest.$ac_objext; then
22362   ac_hi=$ac_mid; break
22363 else
22364   $as_echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367         ac_lo=`expr $ac_mid + 1`
22368                         if test $ac_lo -le $ac_mid; then
22369                           ac_lo= ac_hi=
22370                           break
22371                         fi
22372                         ac_mid=`expr 2 '*' $ac_mid + 1`
22373 fi
22374
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376   done
22377 else
22378   $as_echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22380
22381         cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h.  */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h.  */
22387
22388   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22389      included before <wchar.h>.  */
22390   #include <stddef.h>
22391   #include <signal.h>
22392   #if HAVE_WCHAR_H
22393   # include <stdio.h>
22394   # include <time.h>
22395   # include <wchar.h>
22396   #endif
22397
22398 #include <limits.h>
22399 int
22400 main ()
22401 {
22402 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
22403 test_array [0] = 0
22404
22405   ;
22406   return 0;
22407 }
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (ac_try="$ac_compile"
22411 case "(($ac_try" in
22412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413   *) ac_try_echo=$ac_try;;
22414 esac
22415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22416 $as_echo "$ac_try_echo") >&5
22417   (eval "$ac_compile") 2>conftest.er1
22418   ac_status=$?
22419   grep -v '^ *+' conftest.er1 >conftest.err
22420   rm -f conftest.er1
22421   cat conftest.err >&5
22422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); } && {
22424          test -z "$ac_c_werror_flag" ||
22425          test ! -s conftest.err
22426        } && test -s conftest.$ac_objext; then
22427   ac_hi=-1 ac_mid=-1
22428   while :; do
22429     cat >conftest.$ac_ext <<_ACEOF
22430 /* confdefs.h.  */
22431 _ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h.  */
22435
22436   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22437      included before <wchar.h>.  */
22438   #include <stddef.h>
22439   #include <signal.h>
22440   #if HAVE_WCHAR_H
22441   # include <stdio.h>
22442   # include <time.h>
22443   # include <wchar.h>
22444   #endif
22445
22446 #include <limits.h>
22447 int
22448 main ()
22449 {
22450 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
22451 test_array [0] = 0
22452
22453   ;
22454   return 0;
22455 }
22456 _ACEOF
22457 rm -f conftest.$ac_objext
22458 if { (ac_try="$ac_compile"
22459 case "(($ac_try" in
22460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461   *) ac_try_echo=$ac_try;;
22462 esac
22463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22464 $as_echo "$ac_try_echo") >&5
22465   (eval "$ac_compile") 2>conftest.er1
22466   ac_status=$?
22467   grep -v '^ *+' conftest.er1 >conftest.err
22468   rm -f conftest.er1
22469   cat conftest.err >&5
22470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); } && {
22472          test -z "$ac_c_werror_flag" ||
22473          test ! -s conftest.err
22474        } && test -s conftest.$ac_objext; then
22475   ac_lo=$ac_mid; break
22476 else
22477   $as_echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480         ac_hi=`expr '(' $ac_mid ')' - 1`
22481                         if test $ac_mid -le $ac_hi; then
22482                           ac_lo= ac_hi=
22483                           break
22484                         fi
22485                         ac_mid=`expr 2 '*' $ac_mid`
22486 fi
22487
22488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489   done
22490 else
22491   $as_echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494         ac_lo= ac_hi=
22495 fi
22496
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498 fi
22499
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 # Binary search between lo and hi bounds.
22502 while test "x$ac_lo" != "x$ac_hi"; do
22503   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22504   cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510
22511   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22512      included before <wchar.h>.  */
22513   #include <stddef.h>
22514   #include <signal.h>
22515   #if HAVE_WCHAR_H
22516   # include <stdio.h>
22517   # include <time.h>
22518   # include <wchar.h>
22519   #endif
22520
22521 #include <limits.h>
22522 int
22523 main ()
22524 {
22525 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22526 test_array [0] = 0
22527
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22539 $as_echo "$ac_try_echo") >&5
22540   (eval "$ac_compile") 2>conftest.er1
22541   ac_status=$?
22542   grep -v '^ *+' conftest.er1 >conftest.err
22543   rm -f conftest.er1
22544   cat conftest.err >&5
22545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); } && {
22547          test -z "$ac_c_werror_flag" ||
22548          test ! -s conftest.err
22549        } && test -s conftest.$ac_objext; then
22550   ac_hi=$ac_mid
22551 else
22552   $as_echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22554
22555         ac_lo=`expr '(' $ac_mid ')' + 1`
22556 fi
22557
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 done
22560 case $ac_lo in
22561 ?*) result=$ac_lo;;
22562 '') result=unknown ;;
22563 esac
22564 else
22565   cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h.  */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h.  */
22571
22572   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22573      included before <wchar.h>.  */
22574   #include <stddef.h>
22575   #include <signal.h>
22576   #if HAVE_WCHAR_H
22577   # include <stdio.h>
22578   # include <time.h>
22579   # include <wchar.h>
22580   #endif
22581
22582 #include <limits.h>
22583 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
22584 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
22585 #include <stdio.h>
22586 #include <stdlib.h>
22587 int
22588 main ()
22589 {
22590
22591   FILE *f = fopen ("conftest.val", "w");
22592   if (! f)
22593     return 1;
22594   if ((sizeof ($gltype) * CHAR_BIT) < 0)
22595     {
22596       long int i = longval ();
22597       if (i != (sizeof ($gltype) * CHAR_BIT))
22598         return 1;
22599       fprintf (f, "%ld", i);
22600     }
22601   else
22602     {
22603       unsigned long int i = ulongval ();
22604       if (i != (sizeof ($gltype) * CHAR_BIT))
22605         return 1;
22606       fprintf (f, "%lu", i);
22607     }
22608   /* Do not output a trailing newline, as this causes \r\n confusion
22609      on some platforms.  */
22610   return ferror (f) || fclose (f) != 0;
22611
22612   ;
22613   return 0;
22614 }
22615 _ACEOF
22616 rm -f conftest$ac_exeext
22617 if { (ac_try="$ac_link"
22618 case "(($ac_try" in
22619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620   *) ac_try_echo=$ac_try;;
22621 esac
22622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22623 $as_echo "$ac_try_echo") >&5
22624   (eval "$ac_link") 2>&5
22625   ac_status=$?
22626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22628   { (case "(($ac_try" in
22629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630   *) ac_try_echo=$ac_try;;
22631 esac
22632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22633 $as_echo "$ac_try_echo") >&5
22634   (eval "$ac_try") 2>&5
22635   ac_status=$?
22636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; }; then
22638   result=`cat conftest.val`
22639 else
22640   $as_echo "$as_me: program exited with status $ac_status" >&5
22641 $as_echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22643
22644 ( exit $ac_status )
22645 result=unknown
22646 fi
22647 rm -rf conftest.dSYM
22648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22649 fi
22650 rm -f conftest.val
22651        eval gl_cv_bitsizeof_${gltype}=\$result
22652
22653 fi
22654 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
22655                  $as_echo "$as_val"'`
22656                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22657 $as_echo "$ac_res" >&6; }
22658     eval result=\$gl_cv_bitsizeof_${gltype}
22659     if test $result = unknown; then
22660                                                 result=0
22661     fi
22662     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22663     cat >>confdefs.h <<_ACEOF
22664 #define BITSIZEOF_${GLTYPE} $result
22665 _ACEOF
22666
22667     eval BITSIZEOF_${GLTYPE}=\$result
22668   done
22669
22670
22671   fi
22672
22673
22674
22675
22676
22677   for gltype in sig_atomic_t wchar_t wint_t ; do
22678     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
22679 $as_echo_n "checking for bit size of $gltype... " >&6; }
22680 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
22681   $as_echo_n "(cached) " >&6
22682 else
22683   if test "$cross_compiling" = yes; then
22684   # Depending upon the size, compute the lo and hi bounds.
22685 cat >conftest.$ac_ext <<_ACEOF
22686 /* confdefs.h.  */
22687 _ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h.  */
22691
22692   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22693      included before <wchar.h>.  */
22694   #include <stddef.h>
22695   #include <signal.h>
22696   #if HAVE_WCHAR_H
22697   # include <stdio.h>
22698   # include <time.h>
22699   # include <wchar.h>
22700   #endif
22701
22702 #include <limits.h>
22703 int
22704 main ()
22705 {
22706 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
22707 test_array [0] = 0
22708
22709   ;
22710   return 0;
22711 }
22712 _ACEOF
22713 rm -f conftest.$ac_objext
22714 if { (ac_try="$ac_compile"
22715 case "(($ac_try" in
22716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717   *) ac_try_echo=$ac_try;;
22718 esac
22719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22720 $as_echo "$ac_try_echo") >&5
22721   (eval "$ac_compile") 2>conftest.er1
22722   ac_status=$?
22723   grep -v '^ *+' conftest.er1 >conftest.err
22724   rm -f conftest.er1
22725   cat conftest.err >&5
22726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); } && {
22728          test -z "$ac_c_werror_flag" ||
22729          test ! -s conftest.err
22730        } && test -s conftest.$ac_objext; then
22731   ac_lo=0 ac_mid=0
22732   while :; do
22733     cat >conftest.$ac_ext <<_ACEOF
22734 /* confdefs.h.  */
22735 _ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h.  */
22739
22740   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22741      included before <wchar.h>.  */
22742   #include <stddef.h>
22743   #include <signal.h>
22744   #if HAVE_WCHAR_H
22745   # include <stdio.h>
22746   # include <time.h>
22747   # include <wchar.h>
22748   #endif
22749
22750 #include <limits.h>
22751 int
22752 main ()
22753 {
22754 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22755 test_array [0] = 0
22756
22757   ;
22758   return 0;
22759 }
22760 _ACEOF
22761 rm -f conftest.$ac_objext
22762 if { (ac_try="$ac_compile"
22763 case "(($ac_try" in
22764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765   *) ac_try_echo=$ac_try;;
22766 esac
22767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22768 $as_echo "$ac_try_echo") >&5
22769   (eval "$ac_compile") 2>conftest.er1
22770   ac_status=$?
22771   grep -v '^ *+' conftest.er1 >conftest.err
22772   rm -f conftest.er1
22773   cat conftest.err >&5
22774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } && {
22776          test -z "$ac_c_werror_flag" ||
22777          test ! -s conftest.err
22778        } && test -s conftest.$ac_objext; then
22779   ac_hi=$ac_mid; break
22780 else
22781   $as_echo "$as_me: failed program was:" >&5
22782 sed 's/^/| /' conftest.$ac_ext >&5
22783
22784         ac_lo=`expr $ac_mid + 1`
22785                         if test $ac_lo -le $ac_mid; then
22786                           ac_lo= ac_hi=
22787                           break
22788                         fi
22789                         ac_mid=`expr 2 '*' $ac_mid + 1`
22790 fi
22791
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793   done
22794 else
22795   $as_echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798         cat >conftest.$ac_ext <<_ACEOF
22799 /* confdefs.h.  */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h.  */
22804
22805   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22806      included before <wchar.h>.  */
22807   #include <stddef.h>
22808   #include <signal.h>
22809   #if HAVE_WCHAR_H
22810   # include <stdio.h>
22811   # include <time.h>
22812   # include <wchar.h>
22813   #endif
22814
22815 #include <limits.h>
22816 int
22817 main ()
22818 {
22819 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
22820 test_array [0] = 0
22821
22822   ;
22823   return 0;
22824 }
22825 _ACEOF
22826 rm -f conftest.$ac_objext
22827 if { (ac_try="$ac_compile"
22828 case "(($ac_try" in
22829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830   *) ac_try_echo=$ac_try;;
22831 esac
22832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22833 $as_echo "$ac_try_echo") >&5
22834   (eval "$ac_compile") 2>conftest.er1
22835   ac_status=$?
22836   grep -v '^ *+' conftest.er1 >conftest.err
22837   rm -f conftest.er1
22838   cat conftest.err >&5
22839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); } && {
22841          test -z "$ac_c_werror_flag" ||
22842          test ! -s conftest.err
22843        } && test -s conftest.$ac_objext; then
22844   ac_hi=-1 ac_mid=-1
22845   while :; do
22846     cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852
22853   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22854      included before <wchar.h>.  */
22855   #include <stddef.h>
22856   #include <signal.h>
22857   #if HAVE_WCHAR_H
22858   # include <stdio.h>
22859   # include <time.h>
22860   # include <wchar.h>
22861   #endif
22862
22863 #include <limits.h>
22864 int
22865 main ()
22866 {
22867 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
22868 test_array [0] = 0
22869
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878   *) ac_try_echo=$ac_try;;
22879 esac
22880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22881 $as_echo "$ac_try_echo") >&5
22882   (eval "$ac_compile") 2>conftest.er1
22883   ac_status=$?
22884   grep -v '^ *+' conftest.er1 >conftest.err
22885   rm -f conftest.er1
22886   cat conftest.err >&5
22887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); } && {
22889          test -z "$ac_c_werror_flag" ||
22890          test ! -s conftest.err
22891        } && test -s conftest.$ac_objext; then
22892   ac_lo=$ac_mid; break
22893 else
22894   $as_echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22896
22897         ac_hi=`expr '(' $ac_mid ')' - 1`
22898                         if test $ac_mid -le $ac_hi; then
22899                           ac_lo= ac_hi=
22900                           break
22901                         fi
22902                         ac_mid=`expr 2 '*' $ac_mid`
22903 fi
22904
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906   done
22907 else
22908   $as_echo "$as_me: failed program was:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22910
22911         ac_lo= ac_hi=
22912 fi
22913
22914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22915 fi
22916
22917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918 # Binary search between lo and hi bounds.
22919 while test "x$ac_lo" != "x$ac_hi"; do
22920   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22921   cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927
22928   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22929      included before <wchar.h>.  */
22930   #include <stddef.h>
22931   #include <signal.h>
22932   #if HAVE_WCHAR_H
22933   # include <stdio.h>
22934   # include <time.h>
22935   # include <wchar.h>
22936   #endif
22937
22938 #include <limits.h>
22939 int
22940 main ()
22941 {
22942 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22943 test_array [0] = 0
22944
22945   ;
22946   return 0;
22947 }
22948 _ACEOF
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953   *) ac_try_echo=$ac_try;;
22954 esac
22955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22956 $as_echo "$ac_try_echo") >&5
22957   (eval "$ac_compile") 2>conftest.er1
22958   ac_status=$?
22959   grep -v '^ *+' conftest.er1 >conftest.err
22960   rm -f conftest.er1
22961   cat conftest.err >&5
22962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963   (exit $ac_status); } && {
22964          test -z "$ac_c_werror_flag" ||
22965          test ! -s conftest.err
22966        } && test -s conftest.$ac_objext; then
22967   ac_hi=$ac_mid
22968 else
22969   $as_echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22971
22972         ac_lo=`expr '(' $ac_mid ')' + 1`
22973 fi
22974
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 done
22977 case $ac_lo in
22978 ?*) result=$ac_lo;;
22979 '') result=unknown ;;
22980 esac
22981 else
22982   cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h.  */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h.  */
22988
22989   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22990      included before <wchar.h>.  */
22991   #include <stddef.h>
22992   #include <signal.h>
22993   #if HAVE_WCHAR_H
22994   # include <stdio.h>
22995   # include <time.h>
22996   # include <wchar.h>
22997   #endif
22998
22999 #include <limits.h>
23000 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
23001 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
23002 #include <stdio.h>
23003 #include <stdlib.h>
23004 int
23005 main ()
23006 {
23007
23008   FILE *f = fopen ("conftest.val", "w");
23009   if (! f)
23010     return 1;
23011   if ((sizeof ($gltype) * CHAR_BIT) < 0)
23012     {
23013       long int i = longval ();
23014       if (i != (sizeof ($gltype) * CHAR_BIT))
23015         return 1;
23016       fprintf (f, "%ld", i);
23017     }
23018   else
23019     {
23020       unsigned long int i = ulongval ();
23021       if (i != (sizeof ($gltype) * CHAR_BIT))
23022         return 1;
23023       fprintf (f, "%lu", i);
23024     }
23025   /* Do not output a trailing newline, as this causes \r\n confusion
23026      on some platforms.  */
23027   return ferror (f) || fclose (f) != 0;
23028
23029   ;
23030   return 0;
23031 }
23032 _ACEOF
23033 rm -f conftest$ac_exeext
23034 if { (ac_try="$ac_link"
23035 case "(($ac_try" in
23036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037   *) ac_try_echo=$ac_try;;
23038 esac
23039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23040 $as_echo "$ac_try_echo") >&5
23041   (eval "$ac_link") 2>&5
23042   ac_status=$?
23043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23045   { (case "(($ac_try" in
23046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047   *) ac_try_echo=$ac_try;;
23048 esac
23049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23050 $as_echo "$ac_try_echo") >&5
23051   (eval "$ac_try") 2>&5
23052   ac_status=$?
23053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; }; then
23055   result=`cat conftest.val`
23056 else
23057   $as_echo "$as_me: program exited with status $ac_status" >&5
23058 $as_echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23060
23061 ( exit $ac_status )
23062 result=unknown
23063 fi
23064 rm -rf conftest.dSYM
23065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23066 fi
23067 rm -f conftest.val
23068        eval gl_cv_bitsizeof_${gltype}=\$result
23069
23070 fi
23071 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
23072                  $as_echo "$as_val"'`
23073                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23074 $as_echo "$ac_res" >&6; }
23075     eval result=\$gl_cv_bitsizeof_${gltype}
23076     if test $result = unknown; then
23077                                                 result=0
23078     fi
23079     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23080     cat >>confdefs.h <<_ACEOF
23081 #define BITSIZEOF_${GLTYPE} $result
23082 _ACEOF
23083
23084     eval BITSIZEOF_${GLTYPE}=\$result
23085   done
23086
23087
23088
23089
23090
23091
23092
23093   for gltype in sig_atomic_t wchar_t wint_t ; do
23094     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
23095 $as_echo_n "checking whether $gltype is signed... " >&6; }
23096 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
23097   $as_echo_n "(cached) " >&6
23098 else
23099   cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105
23106   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23107      included before <wchar.h>.  */
23108   #include <stddef.h>
23109   #include <signal.h>
23110   #if HAVE_WCHAR_H
23111   # include <stdio.h>
23112   # include <time.h>
23113   # include <wchar.h>
23114   #endif
23115
23116             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
23117 int
23118 main ()
23119 {
23120
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext
23126 if { (ac_try="$ac_compile"
23127 case "(($ac_try" in
23128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129   *) ac_try_echo=$ac_try;;
23130 esac
23131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23132 $as_echo "$ac_try_echo") >&5
23133   (eval "$ac_compile") 2>conftest.er1
23134   ac_status=$?
23135   grep -v '^ *+' conftest.er1 >conftest.err
23136   rm -f conftest.er1
23137   cat conftest.err >&5
23138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); } && {
23140          test -z "$ac_c_werror_flag" ||
23141          test ! -s conftest.err
23142        } && test -s conftest.$ac_objext; then
23143   result=yes
23144 else
23145   $as_echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148         result=no
23149 fi
23150
23151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23152        eval gl_cv_type_${gltype}_signed=\$result
23153
23154 fi
23155 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
23156                  $as_echo "$as_val"'`
23157                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23158 $as_echo "$ac_res" >&6; }
23159     eval result=\$gl_cv_type_${gltype}_signed
23160     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23161     if test "$result" = yes; then
23162       cat >>confdefs.h <<_ACEOF
23163 #define HAVE_SIGNED_${GLTYPE} 1
23164 _ACEOF
23165
23166       eval HAVE_SIGNED_${GLTYPE}=1
23167     else
23168       eval HAVE_SIGNED_${GLTYPE}=0
23169     fi
23170   done
23171
23172
23173   gl_cv_type_ptrdiff_t_signed=yes
23174   gl_cv_type_size_t_signed=no
23175   if test $APPLE_UNIVERSAL_BUILD = 0; then
23176
23177
23178
23179
23180   for gltype in ptrdiff_t size_t ; do
23181     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
23182 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
23183 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
23184   $as_echo_n "(cached) " >&6
23185 else
23186   eval gl_cv_type_${gltype}_suffix=no
23187        eval result=\$gl_cv_type_${gltype}_signed
23188        if test "$result" = yes; then
23189          glsufu=
23190        else
23191          glsufu=u
23192        fi
23193        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
23194          case $glsuf in
23195            '')  gltype1='int';;
23196            l)   gltype1='long int';;
23197            ll)  gltype1='long long int';;
23198            i64) gltype1='__int64';;
23199            u)   gltype1='unsigned int';;
23200            ul)  gltype1='unsigned long int';;
23201            ull) gltype1='unsigned long long int';;
23202            ui64)gltype1='unsigned __int64';;
23203          esac
23204          cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h.  */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h.  */
23210
23211   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23212      included before <wchar.h>.  */
23213   #include <stddef.h>
23214   #include <signal.h>
23215   #if HAVE_WCHAR_H
23216   # include <stdio.h>
23217   # include <time.h>
23218   # include <wchar.h>
23219   #endif
23220
23221               extern $gltype foo;
23222               extern $gltype1 foo;
23223 int
23224 main ()
23225 {
23226
23227   ;
23228   return 0;
23229 }
23230 _ACEOF
23231 rm -f conftest.$ac_objext
23232 if { (ac_try="$ac_compile"
23233 case "(($ac_try" in
23234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235   *) ac_try_echo=$ac_try;;
23236 esac
23237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23238 $as_echo "$ac_try_echo") >&5
23239   (eval "$ac_compile") 2>conftest.er1
23240   ac_status=$?
23241   grep -v '^ *+' conftest.er1 >conftest.err
23242   rm -f conftest.er1
23243   cat conftest.err >&5
23244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); } && {
23246          test -z "$ac_c_werror_flag" ||
23247          test ! -s conftest.err
23248        } && test -s conftest.$ac_objext; then
23249   eval gl_cv_type_${gltype}_suffix=\$glsuf
23250 else
23251   $as_echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23253
23254
23255 fi
23256
23257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258          eval result=\$gl_cv_type_${gltype}_suffix
23259          test "$result" != no && break
23260        done
23261 fi
23262 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
23263                  $as_echo "$as_val"'`
23264                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23265 $as_echo "$ac_res" >&6; }
23266     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23267     eval result=\$gl_cv_type_${gltype}_suffix
23268     test "$result" = no && result=
23269     eval ${GLTYPE}_SUFFIX=\$result
23270     cat >>confdefs.h <<_ACEOF
23271 #define ${GLTYPE}_SUFFIX $result
23272 _ACEOF
23273
23274   done
23275
23276
23277   fi
23278
23279
23280
23281
23282
23283   for gltype in sig_atomic_t wchar_t wint_t ; do
23284     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
23285 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
23286 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
23287   $as_echo_n "(cached) " >&6
23288 else
23289   eval gl_cv_type_${gltype}_suffix=no
23290        eval result=\$gl_cv_type_${gltype}_signed
23291        if test "$result" = yes; then
23292          glsufu=
23293        else
23294          glsufu=u
23295        fi
23296        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
23297          case $glsuf in
23298            '')  gltype1='int';;
23299            l)   gltype1='long int';;
23300            ll)  gltype1='long long int';;
23301            i64) gltype1='__int64';;
23302            u)   gltype1='unsigned int';;
23303            ul)  gltype1='unsigned long int';;
23304            ull) gltype1='unsigned long long int';;
23305            ui64)gltype1='unsigned __int64';;
23306          esac
23307          cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h.  */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h.  */
23313
23314   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23315      included before <wchar.h>.  */
23316   #include <stddef.h>
23317   #include <signal.h>
23318   #if HAVE_WCHAR_H
23319   # include <stdio.h>
23320   # include <time.h>
23321   # include <wchar.h>
23322   #endif
23323
23324               extern $gltype foo;
23325               extern $gltype1 foo;
23326 int
23327 main ()
23328 {
23329
23330   ;
23331   return 0;
23332 }
23333 _ACEOF
23334 rm -f conftest.$ac_objext
23335 if { (ac_try="$ac_compile"
23336 case "(($ac_try" in
23337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338   *) ac_try_echo=$ac_try;;
23339 esac
23340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23341 $as_echo "$ac_try_echo") >&5
23342   (eval "$ac_compile") 2>conftest.er1
23343   ac_status=$?
23344   grep -v '^ *+' conftest.er1 >conftest.err
23345   rm -f conftest.er1
23346   cat conftest.err >&5
23347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348   (exit $ac_status); } && {
23349          test -z "$ac_c_werror_flag" ||
23350          test ! -s conftest.err
23351        } && test -s conftest.$ac_objext; then
23352   eval gl_cv_type_${gltype}_suffix=\$glsuf
23353 else
23354   $as_echo "$as_me: failed program was:" >&5
23355 sed 's/^/| /' conftest.$ac_ext >&5
23356
23357
23358 fi
23359
23360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361          eval result=\$gl_cv_type_${gltype}_suffix
23362          test "$result" != no && break
23363        done
23364 fi
23365 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
23366                  $as_echo "$as_val"'`
23367                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23368 $as_echo "$ac_res" >&6; }
23369     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23370     eval result=\$gl_cv_type_${gltype}_suffix
23371     test "$result" = no && result=
23372     eval ${GLTYPE}_SUFFIX=\$result
23373     cat >>confdefs.h <<_ACEOF
23374 #define ${GLTYPE}_SUFFIX $result
23375 _ACEOF
23376
23377   done
23378
23379
23380
23381     STDINT_H=stdint.h
23382   fi
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398      if test $gl_cv_have_include_next = yes; then
23399        gl_cv_next_stdio_h='<'stdio.h'>'
23400      else
23401        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
23402 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23403 if test "${gl_cv_next_stdio_h+set}" = set; then
23404   $as_echo_n "(cached) " >&6
23405 else
23406
23407           if test $ac_cv_header_stdio_h = yes; then
23408             cat >conftest.$ac_ext <<_ACEOF
23409 /* confdefs.h.  */
23410 _ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h.  */
23414 #include <stdio.h>
23415
23416 _ACEOF
23417                                                                     case "$host_os" in
23418               aix*) gl_absname_cpp="$ac_cpp -C" ;;
23419               *)    gl_absname_cpp="$ac_cpp" ;;
23420             esac
23421                                     gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23422                sed -n '\#/stdio.h#{
23423                  s#.*"\(.*/stdio.h\)".*#\1#
23424                  s#^/[^/]#//&#
23425                  p
23426                  q
23427                }'`'"'
23428           else
23429             gl_cv_next_stdio_h='<'stdio.h'>'
23430           fi
23431
23432 fi
23433 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
23434 $as_echo "$gl_cv_next_stdio_h" >&6; }
23435      fi
23436      NEXT_STDIO_H=$gl_cv_next_stdio_h
23437
23438      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23439        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23440        gl_next_as_first_directive='<'stdio.h'>'
23441      else
23442        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23443        gl_next_as_first_directive=$gl_cv_next_stdio_h
23444      fi
23445      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23446
23447
23448
23449       GNULIB_FPRINTF=1
23450   GNULIB_PRINTF=1
23451   GNULIB_VFPRINTF=1
23452   GNULIB_VPRINTF=1
23453   GNULIB_FPUTC=1
23454   GNULIB_PUTC=1
23455   GNULIB_PUTCHAR=1
23456   GNULIB_FPUTS=1
23457   GNULIB_PUTS=1
23458   GNULIB_FWRITE=1
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474      if test $gl_cv_have_include_next = yes; then
23475        gl_cv_next_stdlib_h='<'stdlib.h'>'
23476      else
23477        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
23478 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23479 if test "${gl_cv_next_stdlib_h+set}" = set; then
23480   $as_echo_n "(cached) " >&6
23481 else
23482
23483           if test $ac_cv_header_stdlib_h = yes; then
23484             cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h.  */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h.  */
23490 #include <stdlib.h>
23491
23492 _ACEOF
23493                                                                     case "$host_os" in
23494               aix*) gl_absname_cpp="$ac_cpp -C" ;;
23495               *)    gl_absname_cpp="$ac_cpp" ;;
23496             esac
23497                                     gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23498                sed -n '\#/stdlib.h#{
23499                  s#.*"\(.*/stdlib.h\)".*#\1#
23500                  s#^/[^/]#//&#
23501                  p
23502                  q
23503                }'`'"'
23504           else
23505             gl_cv_next_stdlib_h='<'stdlib.h'>'
23506           fi
23507
23508 fi
23509 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
23510 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23511      fi
23512      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23513
23514      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23515        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23516        gl_next_as_first_directive='<'stdlib.h'>'
23517      else
23518        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23519        gl_next_as_first_directive=$gl_cv_next_stdlib_h
23520      fi
23521      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23522
23523
23524
23525
23526 for ac_header in random.h
23527 do
23528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23529 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23530 $as_echo_n "checking for $ac_header... " >&6; }
23531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23532   $as_echo_n "(cached) " >&6
23533 else
23534   cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540 $ac_includes_default
23541
23542 #include <$ac_header>
23543 _ACEOF
23544 rm -f conftest.$ac_objext
23545 if { (ac_try="$ac_compile"
23546 case "(($ac_try" in
23547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548   *) ac_try_echo=$ac_try;;
23549 esac
23550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23551 $as_echo "$ac_try_echo") >&5
23552   (eval "$ac_compile") 2>conftest.er1
23553   ac_status=$?
23554   grep -v '^ *+' conftest.er1 >conftest.err
23555   rm -f conftest.er1
23556   cat conftest.err >&5
23557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); } && {
23559          test -z "$ac_c_werror_flag" ||
23560          test ! -s conftest.err
23561        } && test -s conftest.$ac_objext; then
23562   eval "$as_ac_Header=yes"
23563 else
23564   $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23566
23567         eval "$as_ac_Header=no"
23568 fi
23569
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571 fi
23572 ac_res=`eval 'as_val=${'$as_ac_Header'}
23573                  $as_echo "$as_val"'`
23574                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23575 $as_echo "$ac_res" >&6; }
23576 as_val=`eval 'as_val=${'$as_ac_Header'}
23577                  $as_echo "$as_val"'`
23578    if test "x$as_val" = x""yes; then
23579   cat >>confdefs.h <<_ACEOF
23580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23581 _ACEOF
23582
23583 fi
23584
23585 done
23586
23587   if test $ac_cv_header_random_h = yes; then
23588     HAVE_RANDOM_H=1
23589   else
23590     HAVE_RANDOM_H=0
23591   fi
23592
23593   { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
23594 $as_echo_n "checking for struct random_data... " >&6; }
23595 if test "${ac_cv_type_struct_random_data+set}" = set; then
23596   $as_echo_n "(cached) " >&6
23597 else
23598   ac_cv_type_struct_random_data=no
23599 cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h.  */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h.  */
23605 #include <stdlib.h>
23606       #if HAVE_RANDOM_H
23607       # include <random.h>
23608       #endif
23609
23610
23611 int
23612 main ()
23613 {
23614 if (sizeof (struct random_data))
23615        return 0;
23616   ;
23617   return 0;
23618 }
23619 _ACEOF
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624   *) ac_try_echo=$ac_try;;
23625 esac
23626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23627 $as_echo "$ac_try_echo") >&5
23628   (eval "$ac_compile") 2>conftest.er1
23629   ac_status=$?
23630   grep -v '^ *+' conftest.er1 >conftest.err
23631   rm -f conftest.er1
23632   cat conftest.err >&5
23633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); } && {
23635          test -z "$ac_c_werror_flag" ||
23636          test ! -s conftest.err
23637        } && test -s conftest.$ac_objext; then
23638   cat >conftest.$ac_ext <<_ACEOF
23639 /* confdefs.h.  */
23640 _ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h.  */
23644 #include <stdlib.h>
23645       #if HAVE_RANDOM_H
23646       # include <random.h>
23647       #endif
23648
23649
23650 int
23651 main ()
23652 {
23653 if (sizeof ((struct random_data)))
23654           return 0;
23655   ;
23656   return 0;
23657 }
23658 _ACEOF
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663   *) ac_try_echo=$ac_try;;
23664 esac
23665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23666 $as_echo "$ac_try_echo") >&5
23667   (eval "$ac_compile") 2>conftest.er1
23668   ac_status=$?
23669   grep -v '^ *+' conftest.er1 >conftest.err
23670   rm -f conftest.er1
23671   cat conftest.err >&5
23672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673   (exit $ac_status); } && {
23674          test -z "$ac_c_werror_flag" ||
23675          test ! -s conftest.err
23676        } && test -s conftest.$ac_objext; then
23677   :
23678 else
23679   $as_echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23681
23682         ac_cv_type_struct_random_data=yes
23683 fi
23684
23685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23686 else
23687   $as_echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23689
23690
23691 fi
23692
23693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23694 fi
23695 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
23696 $as_echo "$ac_cv_type_struct_random_data" >&6; }
23697 if test "x$ac_cv_type_struct_random_data" = x""yes; then
23698
23699 cat >>confdefs.h <<_ACEOF
23700 #define HAVE_STRUCT_RANDOM_DATA 1
23701 _ACEOF
23702
23703
23704 else
23705   HAVE_STRUCT_RANDOM_DATA=0
23706 fi
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721 for ac_func in strcasecmp
23722 do
23723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23725 $as_echo_n "checking for $ac_func... " >&6; }
23726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23727   $as_echo_n "(cached) " >&6
23728 else
23729   cat >conftest.$ac_ext <<_ACEOF
23730 /* confdefs.h.  */
23731 _ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h.  */
23735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23737 #define $ac_func innocuous_$ac_func
23738
23739 /* System header to define __stub macros and hopefully few prototypes,
23740     which can conflict with char $ac_func (); below.
23741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23742     <limits.h> exists even on freestanding compilers.  */
23743
23744 #ifdef __STDC__
23745 # include <limits.h>
23746 #else
23747 # include <assert.h>
23748 #endif
23749
23750 #undef $ac_func
23751
23752 /* Override any GCC internal prototype to avoid an error.
23753    Use char because int might match the return type of a GCC
23754    builtin and then its argument prototype would still apply.  */
23755 #ifdef __cplusplus
23756 extern "C"
23757 #endif
23758 char $ac_func ();
23759 /* The GNU C library defines this for functions which it implements
23760     to always fail with ENOSYS.  Some functions are actually named
23761     something starting with __ and the normal name is an alias.  */
23762 #if defined __stub_$ac_func || defined __stub___$ac_func
23763 choke me
23764 #endif
23765
23766 int
23767 main ()
23768 {
23769 return $ac_func ();
23770   ;
23771   return 0;
23772 }
23773 _ACEOF
23774 rm -f conftest.$ac_objext conftest$ac_exeext
23775 if { (ac_try="$ac_link"
23776 case "(($ac_try" in
23777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23778   *) ac_try_echo=$ac_try;;
23779 esac
23780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23781 $as_echo "$ac_try_echo") >&5
23782   (eval "$ac_link") 2>conftest.er1
23783   ac_status=$?
23784   grep -v '^ *+' conftest.er1 >conftest.err
23785   rm -f conftest.er1
23786   cat conftest.err >&5
23787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); } && {
23789          test -z "$ac_c_werror_flag" ||
23790          test ! -s conftest.err
23791        } && test -s conftest$ac_exeext && {
23792          test "$cross_compiling" = yes ||
23793          $as_test_x conftest$ac_exeext
23794        }; then
23795   eval "$as_ac_var=yes"
23796 else
23797   $as_echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23799
23800         eval "$as_ac_var=no"
23801 fi
23802
23803 rm -rf conftest.dSYM
23804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805       conftest$ac_exeext conftest.$ac_ext
23806 fi
23807 ac_res=`eval 'as_val=${'$as_ac_var'}
23808                  $as_echo "$as_val"'`
23809                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23810 $as_echo "$ac_res" >&6; }
23811 as_val=`eval 'as_val=${'$as_ac_var'}
23812                  $as_echo "$as_val"'`
23813    if test "x$as_val" = x""yes; then
23814   cat >>confdefs.h <<_ACEOF
23815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23816 _ACEOF
23817
23818 else
23819
23820     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23821
23822 fi
23823 done
23824
23825
23826   if test $ac_cv_func_strcasecmp = no; then
23827     HAVE_STRCASECMP=0
23828
23829   :
23830
23831   fi
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844 for ac_func in strncasecmp
23845 do
23846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23847 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23848 $as_echo_n "checking for $ac_func... " >&6; }
23849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23850   $as_echo_n "(cached) " >&6
23851 else
23852   cat >conftest.$ac_ext <<_ACEOF
23853 /* confdefs.h.  */
23854 _ACEOF
23855 cat confdefs.h >>conftest.$ac_ext
23856 cat >>conftest.$ac_ext <<_ACEOF
23857 /* end confdefs.h.  */
23858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23860 #define $ac_func innocuous_$ac_func
23861
23862 /* System header to define __stub macros and hopefully few prototypes,
23863     which can conflict with char $ac_func (); below.
23864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23865     <limits.h> exists even on freestanding compilers.  */
23866
23867 #ifdef __STDC__
23868 # include <limits.h>
23869 #else
23870 # include <assert.h>
23871 #endif
23872
23873 #undef $ac_func
23874
23875 /* Override any GCC internal prototype to avoid an error.
23876    Use char because int might match the return type of a GCC
23877    builtin and then its argument prototype would still apply.  */
23878 #ifdef __cplusplus
23879 extern "C"
23880 #endif
23881 char $ac_func ();
23882 /* The GNU C library defines this for functions which it implements
23883     to always fail with ENOSYS.  Some functions are actually named
23884     something starting with __ and the normal name is an alias.  */
23885 #if defined __stub_$ac_func || defined __stub___$ac_func
23886 choke me
23887 #endif
23888
23889 int
23890 main ()
23891 {
23892 return $ac_func ();
23893   ;
23894   return 0;
23895 }
23896 _ACEOF
23897 rm -f conftest.$ac_objext conftest$ac_exeext
23898 if { (ac_try="$ac_link"
23899 case "(($ac_try" in
23900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901   *) ac_try_echo=$ac_try;;
23902 esac
23903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23904 $as_echo "$ac_try_echo") >&5
23905   (eval "$ac_link") 2>conftest.er1
23906   ac_status=$?
23907   grep -v '^ *+' conftest.er1 >conftest.err
23908   rm -f conftest.er1
23909   cat conftest.err >&5
23910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911   (exit $ac_status); } && {
23912          test -z "$ac_c_werror_flag" ||
23913          test ! -s conftest.err
23914        } && test -s conftest$ac_exeext && {
23915          test "$cross_compiling" = yes ||
23916          $as_test_x conftest$ac_exeext
23917        }; then
23918   eval "$as_ac_var=yes"
23919 else
23920   $as_echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23922
23923         eval "$as_ac_var=no"
23924 fi
23925
23926 rm -rf conftest.dSYM
23927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23928       conftest$ac_exeext conftest.$ac_ext
23929 fi
23930 ac_res=`eval 'as_val=${'$as_ac_var'}
23931                  $as_echo "$as_val"'`
23932                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23933 $as_echo "$ac_res" >&6; }
23934 as_val=`eval 'as_val=${'$as_ac_var'}
23935                  $as_echo "$as_val"'`
23936    if test "x$as_val" = x""yes; then
23937   cat >>confdefs.h <<_ACEOF
23938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23939 _ACEOF
23940
23941 else
23942
23943     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23944
23945 fi
23946 done
23947
23948
23949   if test $ac_cv_func_strncasecmp = no; then
23950
23951   :
23952
23953   fi
23954   { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
23955 $as_echo_n "checking whether strncasecmp is declared... " >&6; }
23956 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
23957   $as_echo_n "(cached) " >&6
23958 else
23959   cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h.  */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h.  */
23965 $ac_includes_default
23966 int
23967 main ()
23968 {
23969 #ifndef strncasecmp
23970   (void) strncasecmp;
23971 #endif
23972
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 rm -f conftest.$ac_objext
23978 if { (ac_try="$ac_compile"
23979 case "(($ac_try" in
23980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981   *) ac_try_echo=$ac_try;;
23982 esac
23983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23984 $as_echo "$ac_try_echo") >&5
23985   (eval "$ac_compile") 2>conftest.er1
23986   ac_status=$?
23987   grep -v '^ *+' conftest.er1 >conftest.err
23988   rm -f conftest.er1
23989   cat conftest.err >&5
23990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); } && {
23992          test -z "$ac_c_werror_flag" ||
23993          test ! -s conftest.err
23994        } && test -s conftest.$ac_objext; then
23995   ac_cv_have_decl_strncasecmp=yes
23996 else
23997   $as_echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
23999
24000         ac_cv_have_decl_strncasecmp=no
24001 fi
24002
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 fi
24005 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
24006 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
24007 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
24008
24009 cat >>confdefs.h <<_ACEOF
24010 #define HAVE_DECL_STRNCASECMP 1
24011 _ACEOF
24012
24013
24014 else
24015   cat >>confdefs.h <<_ACEOF
24016 #define HAVE_DECL_STRNCASECMP 0
24017 _ACEOF
24018
24019
24020 fi
24021
24022
24023   if test $ac_cv_have_decl_strncasecmp = no; then
24024     HAVE_DECL_STRNCASECMP=0
24025   fi
24026
24027
24028
24029
24030   if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then
24031     { $as_echo "$as_me:$LINENO: checking whether strcasestr works in linear time" >&5
24032 $as_echo_n "checking whether strcasestr works in linear time... " >&6; }
24033 if test "${gl_cv_func_strcasestr_linear+set}" = set; then
24034   $as_echo_n "(cached) " >&6
24035 else
24036   if test "$cross_compiling" = yes; then
24037                  cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h.  */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h.  */
24043
24044 #include <features.h>
24045 #ifdef __GNU_LIBRARY__
24046  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
24047   Lucky user
24048  #endif
24049 #endif
24050 #ifdef __CYGWIN__
24051  #include <cygwin/version.h>
24052  #if CYGWIN_VERSION_DLL_MAJOR >= 1007
24053   Lucky user
24054  #endif
24055 #endif
24056
24057 _ACEOF
24058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24059   $EGREP "Lucky user" >/dev/null 2>&1; then
24060   gl_cv_func_strcasestr_linear=yes
24061 else
24062   gl_cv_func_strcasestr_linear="guessing no"
24063 fi
24064 rm -f conftest*
24065
24066
24067 else
24068   cat >conftest.$ac_ext <<_ACEOF
24069 /* confdefs.h.  */
24070 _ACEOF
24071 cat confdefs.h >>conftest.$ac_ext
24072 cat >>conftest.$ac_ext <<_ACEOF
24073 /* end confdefs.h.  */
24074
24075 #include <signal.h> /* for signal */
24076 #include <string.h> /* for memmem */
24077 #include <stdlib.h> /* for malloc */
24078 #include <unistd.h> /* for alarm */
24079
24080 int
24081 main ()
24082 {
24083 size_t m = 1000000;
24084     char *haystack = (char *) malloc (2 * m + 2);
24085     char *needle = (char *) malloc (m + 2);
24086     void *result = 0;
24087     /* Failure to compile this test due to missing alarm is okay,
24088        since all such platforms (mingw) also lack strcasestr.  */
24089     signal (SIGALRM, SIG_DFL);
24090     alarm (5);
24091     /* Check for quadratic performance.  */
24092     if (haystack && needle)
24093       {
24094         memset (haystack, 'A', 2 * m);
24095         haystack[2 * m] = 'B';
24096         haystack[2 * m + 1] = 0;
24097         memset (needle, 'A', m);
24098         needle[m] = 'B';
24099         needle[m + 1] = 0;
24100         result = strcasestr (haystack, needle);
24101       }
24102     return !result;
24103   ;
24104   return 0;
24105 }
24106 _ACEOF
24107 rm -f conftest$ac_exeext
24108 if { (ac_try="$ac_link"
24109 case "(($ac_try" in
24110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111   *) ac_try_echo=$ac_try;;
24112 esac
24113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24114 $as_echo "$ac_try_echo") >&5
24115   (eval "$ac_link") 2>&5
24116   ac_status=$?
24117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24119   { (case "(($ac_try" in
24120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121   *) ac_try_echo=$ac_try;;
24122 esac
24123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24124 $as_echo "$ac_try_echo") >&5
24125   (eval "$ac_try") 2>&5
24126   ac_status=$?
24127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128   (exit $ac_status); }; }; then
24129   gl_cv_func_strcasestr_linear=yes
24130 else
24131   $as_echo "$as_me: program exited with status $ac_status" >&5
24132 $as_echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24134
24135 ( exit $ac_status )
24136 gl_cv_func_strcasestr_linear=no
24137 fi
24138 rm -rf conftest.dSYM
24139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24140 fi
24141
24142
24143
24144 fi
24145 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strcasestr_linear" >&5
24146 $as_echo "$gl_cv_func_strcasestr_linear" >&6; }
24147     if test "$gl_cv_func_strcasestr_linear" != yes; then
24148       REPLACE_STRCASESTR=1
24149
24150
24151
24152
24153
24154
24155
24156
24157   gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
24158
24159
24160   :
24161
24162     fi
24163   fi
24164
24165
24166
24167
24168
24169
24170
24171
24172 for ac_func in strcasestr
24173 do
24174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24175 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24176 $as_echo_n "checking for $ac_func... " >&6; }
24177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24178   $as_echo_n "(cached) " >&6
24179 else
24180   cat >conftest.$ac_ext <<_ACEOF
24181 /* confdefs.h.  */
24182 _ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h.  */
24186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24188 #define $ac_func innocuous_$ac_func
24189
24190 /* System header to define __stub macros and hopefully few prototypes,
24191     which can conflict with char $ac_func (); below.
24192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24193     <limits.h> exists even on freestanding compilers.  */
24194
24195 #ifdef __STDC__
24196 # include <limits.h>
24197 #else
24198 # include <assert.h>
24199 #endif
24200
24201 #undef $ac_func
24202
24203 /* Override any GCC internal prototype to avoid an error.
24204    Use char because int might match the return type of a GCC
24205    builtin and then its argument prototype would still apply.  */
24206 #ifdef __cplusplus
24207 extern "C"
24208 #endif
24209 char $ac_func ();
24210 /* The GNU C library defines this for functions which it implements
24211     to always fail with ENOSYS.  Some functions are actually named
24212     something starting with __ and the normal name is an alias.  */
24213 #if defined __stub_$ac_func || defined __stub___$ac_func
24214 choke me
24215 #endif
24216
24217 int
24218 main ()
24219 {
24220 return $ac_func ();
24221   ;
24222   return 0;
24223 }
24224 _ACEOF
24225 rm -f conftest.$ac_objext conftest$ac_exeext
24226 if { (ac_try="$ac_link"
24227 case "(($ac_try" in
24228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229   *) ac_try_echo=$ac_try;;
24230 esac
24231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24232 $as_echo "$ac_try_echo") >&5
24233   (eval "$ac_link") 2>conftest.er1
24234   ac_status=$?
24235   grep -v '^ *+' conftest.er1 >conftest.err
24236   rm -f conftest.er1
24237   cat conftest.err >&5
24238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239   (exit $ac_status); } && {
24240          test -z "$ac_c_werror_flag" ||
24241          test ! -s conftest.err
24242        } && test -s conftest$ac_exeext && {
24243          test "$cross_compiling" = yes ||
24244          $as_test_x conftest$ac_exeext
24245        }; then
24246   eval "$as_ac_var=yes"
24247 else
24248   $as_echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24250
24251         eval "$as_ac_var=no"
24252 fi
24253
24254 rm -rf conftest.dSYM
24255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24256       conftest$ac_exeext conftest.$ac_ext
24257 fi
24258 ac_res=`eval 'as_val=${'$as_ac_var'}
24259                  $as_echo "$as_val"'`
24260                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24261 $as_echo "$ac_res" >&6; }
24262 as_val=`eval 'as_val=${'$as_ac_var'}
24263                  $as_echo "$as_val"'`
24264    if test "x$as_val" = x""yes; then
24265   cat >>confdefs.h <<_ACEOF
24266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24267 _ACEOF
24268
24269 fi
24270 done
24271
24272   if test $ac_cv_func_strcasestr = no; then
24273     HAVE_STRCASESTR=0
24274   else
24275     if test "$gl_cv_func_memchr_works" != yes; then
24276       REPLACE_STRCASESTR=1
24277     fi
24278   fi
24279   if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
24280
24281
24282
24283
24284
24285
24286
24287
24288   gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
24289
24290
24291   :
24292
24293   fi
24294
24295
24296
24297   GNULIB_STRCASESTR=1
24298
24299
24300
24301   if test $REPLACE_STRERROR = 1; then
24302
24303
24304
24305
24306
24307
24308
24309
24310   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24311
24312
24313 cat >>confdefs.h <<_ACEOF
24314 #define REPLACE_STRERROR $REPLACE_STRERROR
24315 _ACEOF
24316
24317   fi
24318
24319
24320
24321   GNULIB_STRERROR=1
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343      if test $gl_cv_have_include_next = yes; then
24344        gl_cv_next_unistd_h='<'unistd.h'>'
24345      else
24346        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
24347 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24348 if test "${gl_cv_next_unistd_h+set}" = set; then
24349   $as_echo_n "(cached) " >&6
24350 else
24351
24352           if test $ac_cv_header_unistd_h = yes; then
24353             cat >conftest.$ac_ext <<_ACEOF
24354 /* confdefs.h.  */
24355 _ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h.  */
24359 #include <unistd.h>
24360
24361 _ACEOF
24362                                                                     case "$host_os" in
24363               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24364               *)    gl_absname_cpp="$ac_cpp" ;;
24365             esac
24366                                     gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24367                sed -n '\#/unistd.h#{
24368                  s#.*"\(.*/unistd.h\)".*#\1#
24369                  s#^/[^/]#//&#
24370                  p
24371                  q
24372                }'`'"'
24373           else
24374             gl_cv_next_unistd_h='<'unistd.h'>'
24375           fi
24376
24377 fi
24378 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
24379 $as_echo "$gl_cv_next_unistd_h" >&6; }
24380      fi
24381      NEXT_UNISTD_H=$gl_cv_next_unistd_h
24382
24383      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24384        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24385        gl_next_as_first_directive='<'unistd.h'>'
24386      else
24387        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24388        gl_next_as_first_directive=$gl_cv_next_unistd_h
24389      fi
24390      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401   if test $ac_cv_header_unistd_h = yes; then
24402     HAVE_UNISTD_H=1
24403   else
24404     HAVE_UNISTD_H=0
24405   fi
24406
24407
24408
24409
24410   { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
24411 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
24412 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
24413   $as_echo_n "(cached) " >&6
24414 else
24415   cat >conftest.$ac_ext <<_ACEOF
24416 #include <wchar.h>
24417 wchar_t w;
24418 _ACEOF
24419 rm -f conftest.$ac_objext
24420 if { (ac_try="$ac_compile"
24421 case "(($ac_try" in
24422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423   *) ac_try_echo=$ac_try;;
24424 esac
24425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24426 $as_echo "$ac_try_echo") >&5
24427   (eval "$ac_compile") 2>conftest.er1
24428   ac_status=$?
24429   grep -v '^ *+' conftest.er1 >conftest.err
24430   rm -f conftest.er1
24431   cat conftest.err >&5
24432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); } && {
24434          test -z "$ac_c_werror_flag" ||
24435          test ! -s conftest.err
24436        } && test -s conftest.$ac_objext; then
24437   gl_cv_header_wchar_h_standalone=yes
24438 else
24439   $as_echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442         gl_cv_header_wchar_h_standalone=no
24443 fi
24444
24445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24446 fi
24447 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
24448 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
24449
24450
24451   if test $gt_cv_c_wint_t = yes; then
24452     HAVE_WINT_T=1
24453   else
24454     HAVE_WINT_T=0
24455   fi
24456
24457
24458
24459
24460   if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
24461     WCHAR_H=wchar.h
24462   fi
24463
24464
24465
24466
24467
24468
24469
24470   if test $ac_cv_header_wchar_h = yes; then
24471     HAVE_WCHAR_H=1
24472   else
24473     HAVE_WCHAR_H=0
24474   fi
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487      if test $gl_cv_have_include_next = yes; then
24488        gl_cv_next_wchar_h='<'wchar.h'>'
24489      else
24490        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
24491 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24492 if test "${gl_cv_next_wchar_h+set}" = set; then
24493   $as_echo_n "(cached) " >&6
24494 else
24495
24496           if test $ac_cv_header_wchar_h = yes; then
24497             cat >conftest.$ac_ext <<_ACEOF
24498 /* confdefs.h.  */
24499 _ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h.  */
24503 #include <wchar.h>
24504
24505 _ACEOF
24506                                                                     case "$host_os" in
24507               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24508               *)    gl_absname_cpp="$ac_cpp" ;;
24509             esac
24510                                     gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24511                sed -n '\#/wchar.h#{
24512                  s#.*"\(.*/wchar.h\)".*#\1#
24513                  s#^/[^/]#//&#
24514                  p
24515                  q
24516                }'`'"'
24517           else
24518             gl_cv_next_wchar_h='<'wchar.h'>'
24519           fi
24520
24521 fi
24522 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
24523 $as_echo "$gl_cv_next_wchar_h" >&6; }
24524      fi
24525      NEXT_WCHAR_H=$gl_cv_next_wchar_h
24526
24527      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24528        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24529        gl_next_as_first_directive='<'wchar.h'>'
24530      else
24531        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24532        gl_next_as_first_directive=$gl_cv_next_wchar_h
24533      fi
24534      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547   if test $ac_cv_func_iswcntrl = yes; then
24548     HAVE_ISWCNTRL=1
24549   else
24550     HAVE_ISWCNTRL=0
24551   fi
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562   if test $gt_cv_c_wint_t = yes; then
24563     HAVE_WINT_T=1
24564   else
24565     HAVE_WINT_T=0
24566   fi
24567
24568
24569   WCTYPE_H=wctype.h
24570   if test $ac_cv_header_wctype_h = yes; then
24571     if test $ac_cv_func_iswcntrl = yes; then
24572                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
24573 $as_echo_n "checking whether iswcntrl works... " >&6; }
24574 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
24575   $as_echo_n "(cached) " >&6
24576 else
24577
24578           if test "$cross_compiling" = yes; then
24579   cat >conftest.$ac_ext <<_ACEOF
24580 /* confdefs.h.  */
24581 _ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h.  */
24585 #include <stdlib.h>
24586                           #if __GNU_LIBRARY__ == 1
24587                           Linux libc5 i18n is broken.
24588                           #endif
24589 int
24590 main ()
24591 {
24592
24593   ;
24594   return 0;
24595 }
24596 _ACEOF
24597 rm -f conftest.$ac_objext
24598 if { (ac_try="$ac_compile"
24599 case "(($ac_try" in
24600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601   *) ac_try_echo=$ac_try;;
24602 esac
24603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24604 $as_echo "$ac_try_echo") >&5
24605   (eval "$ac_compile") 2>conftest.er1
24606   ac_status=$?
24607   grep -v '^ *+' conftest.er1 >conftest.err
24608   rm -f conftest.er1
24609   cat conftest.err >&5
24610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); } && {
24612          test -z "$ac_c_werror_flag" ||
24613          test ! -s conftest.err
24614        } && test -s conftest.$ac_objext; then
24615   gl_cv_func_iswcntrl_works=yes
24616 else
24617   $as_echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24619
24620         gl_cv_func_iswcntrl_works=no
24621 fi
24622
24623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624
24625 else
24626   cat >conftest.$ac_ext <<_ACEOF
24627 /* confdefs.h.  */
24628 _ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h.  */
24632 #include <stddef.h>
24633                       #include <stdio.h>
24634                       #include <time.h>
24635                       #include <wchar.h>
24636                       #include <wctype.h>
24637                       int main () { return iswprint ('x') == 0; }
24638 _ACEOF
24639 rm -f conftest$ac_exeext
24640 if { (ac_try="$ac_link"
24641 case "(($ac_try" in
24642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643   *) ac_try_echo=$ac_try;;
24644 esac
24645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24646 $as_echo "$ac_try_echo") >&5
24647   (eval "$ac_link") 2>&5
24648   ac_status=$?
24649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24651   { (case "(($ac_try" in
24652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653   *) ac_try_echo=$ac_try;;
24654 esac
24655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24656 $as_echo "$ac_try_echo") >&5
24657   (eval "$ac_try") 2>&5
24658   ac_status=$?
24659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660   (exit $ac_status); }; }; then
24661   gl_cv_func_iswcntrl_works=yes
24662 else
24663   $as_echo "$as_me: program exited with status $ac_status" >&5
24664 $as_echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24666
24667 ( exit $ac_status )
24668 gl_cv_func_iswcntrl_works=no
24669 fi
24670 rm -rf conftest.dSYM
24671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24672 fi
24673
24674
24675
24676 fi
24677 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
24678 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24679       if test $gl_cv_func_iswcntrl_works = yes; then
24680         WCTYPE_H=
24681       fi
24682     fi
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694      if test $gl_cv_have_include_next = yes; then
24695        gl_cv_next_wctype_h='<'wctype.h'>'
24696      else
24697        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
24698 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24699 if test "${gl_cv_next_wctype_h+set}" = set; then
24700   $as_echo_n "(cached) " >&6
24701 else
24702
24703           if test $ac_cv_header_wctype_h = yes; then
24704             cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710 #include <wctype.h>
24711
24712 _ACEOF
24713                                                                     case "$host_os" in
24714               aix*) gl_absname_cpp="$ac_cpp -C" ;;
24715               *)    gl_absname_cpp="$ac_cpp" ;;
24716             esac
24717                                     gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24718                sed -n '\#/wctype.h#{
24719                  s#.*"\(.*/wctype.h\)".*#\1#
24720                  s#^/[^/]#//&#
24721                  p
24722                  q
24723                }'`'"'
24724           else
24725             gl_cv_next_wctype_h='<'wctype.h'>'
24726           fi
24727
24728 fi
24729 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
24730 $as_echo "$gl_cv_next_wctype_h" >&6; }
24731      fi
24732      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
24733
24734      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24735        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24736        gl_next_as_first_directive='<'wctype.h'>'
24737      else
24738        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24739        gl_next_as_first_directive=$gl_cv_next_wctype_h
24740      fi
24741      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
24742
24743
24744
24745     HAVE_WCTYPE_H=1
24746   else
24747     HAVE_WCTYPE_H=0
24748   fi
24749
24750
24751
24752   if test "$gl_cv_func_iswcntrl_works" = no; then
24753     REPLACE_ISWCNTRL=1
24754   else
24755     REPLACE_ISWCNTRL=0
24756   fi
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
24769
24770
24771
24772
24773   :
24774
24775
24776   :
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788   gltests_libdeps=
24789   gltests_ltlibdeps=
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799   gl_source_base='tests'
24800
24801
24802
24803
24804
24805
24806
24807   LIBGNU_LIBDEPS="$gl_libdeps"
24808
24809   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
24810
24811
24812
24813
24814
24815 for ac_header in stdlib.h unistd.h
24816 do
24817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24819   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24820 $as_echo_n "checking for $ac_header... " >&6; }
24821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24822   $as_echo_n "(cached) " >&6
24823 fi
24824 ac_res=`eval 'as_val=${'$as_ac_Header'}
24825                  $as_echo "$as_val"'`
24826                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24827 $as_echo "$ac_res" >&6; }
24828 else
24829   # Is the header compilable?
24830 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24831 $as_echo_n "checking $ac_header usability... " >&6; }
24832 cat >conftest.$ac_ext <<_ACEOF
24833 /* confdefs.h.  */
24834 _ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h.  */
24838 $ac_includes_default
24839 #include <$ac_header>
24840 _ACEOF
24841 rm -f conftest.$ac_objext
24842 if { (ac_try="$ac_compile"
24843 case "(($ac_try" in
24844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845   *) ac_try_echo=$ac_try;;
24846 esac
24847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24848 $as_echo "$ac_try_echo") >&5
24849   (eval "$ac_compile") 2>conftest.er1
24850   ac_status=$?
24851   grep -v '^ *+' conftest.er1 >conftest.err
24852   rm -f conftest.er1
24853   cat conftest.err >&5
24854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855   (exit $ac_status); } && {
24856          test -z "$ac_c_werror_flag" ||
24857          test ! -s conftest.err
24858        } && test -s conftest.$ac_objext; then
24859   ac_header_compiler=yes
24860 else
24861   $as_echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24863
24864         ac_header_compiler=no
24865 fi
24866
24867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24869 $as_echo "$ac_header_compiler" >&6; }
24870
24871 # Is the header present?
24872 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24873 $as_echo_n "checking $ac_header presence... " >&6; }
24874 cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h.  */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h.  */
24880 #include <$ac_header>
24881 _ACEOF
24882 if { (ac_try="$ac_cpp conftest.$ac_ext"
24883 case "(($ac_try" in
24884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885   *) ac_try_echo=$ac_try;;
24886 esac
24887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24888 $as_echo "$ac_try_echo") >&5
24889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24890   ac_status=$?
24891   grep -v '^ *+' conftest.er1 >conftest.err
24892   rm -f conftest.er1
24893   cat conftest.err >&5
24894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); } >/dev/null && {
24896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24897          test ! -s conftest.err
24898        }; then
24899   ac_header_preproc=yes
24900 else
24901   $as_echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24903
24904   ac_header_preproc=no
24905 fi
24906
24907 rm -f conftest.err conftest.$ac_ext
24908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24909 $as_echo "$ac_header_preproc" >&6; }
24910
24911 # So?  What about this header?
24912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24913   yes:no: )
24914     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24915 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24916     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24918     ac_header_preproc=yes
24919     ;;
24920   no:yes:* )
24921     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24922 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24924 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24926 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24928 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24932 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24933     ( cat <<\_ASBOX
24934 ## ------------------------------- ##
24935 ## Report this to bug-wget@gnu.org ##
24936 ## ------------------------------- ##
24937 _ASBOX
24938      ) | sed "s/^/$as_me: WARNING:     /" >&2
24939     ;;
24940 esac
24941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24942 $as_echo_n "checking for $ac_header... " >&6; }
24943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24944   $as_echo_n "(cached) " >&6
24945 else
24946   eval "$as_ac_Header=\$ac_header_preproc"
24947 fi
24948 ac_res=`eval 'as_val=${'$as_ac_Header'}
24949                  $as_echo "$as_val"'`
24950                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24951 $as_echo "$ac_res" >&6; }
24952
24953 fi
24954 as_val=`eval 'as_val=${'$as_ac_Header'}
24955                  $as_echo "$as_val"'`
24956    if test "x$as_val" = x""yes; then
24957   cat >>confdefs.h <<_ACEOF
24958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24959 _ACEOF
24960
24961 fi
24962
24963 done
24964
24965
24966 for ac_func in getpagesize
24967 do
24968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24969 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24970 $as_echo_n "checking for $ac_func... " >&6; }
24971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24972   $as_echo_n "(cached) " >&6
24973 else
24974   cat >conftest.$ac_ext <<_ACEOF
24975 /* confdefs.h.  */
24976 _ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h.  */
24980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24982 #define $ac_func innocuous_$ac_func
24983
24984 /* System header to define __stub macros and hopefully few prototypes,
24985     which can conflict with char $ac_func (); below.
24986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24987     <limits.h> exists even on freestanding compilers.  */
24988
24989 #ifdef __STDC__
24990 # include <limits.h>
24991 #else
24992 # include <assert.h>
24993 #endif
24994
24995 #undef $ac_func
24996
24997 /* Override any GCC internal prototype to avoid an error.
24998    Use char because int might match the return type of a GCC
24999    builtin and then its argument prototype would still apply.  */
25000 #ifdef __cplusplus
25001 extern "C"
25002 #endif
25003 char $ac_func ();
25004 /* The GNU C library defines this for functions which it implements
25005     to always fail with ENOSYS.  Some functions are actually named
25006     something starting with __ and the normal name is an alias.  */
25007 #if defined __stub_$ac_func || defined __stub___$ac_func
25008 choke me
25009 #endif
25010
25011 int
25012 main ()
25013 {
25014 return $ac_func ();
25015   ;
25016   return 0;
25017 }
25018 _ACEOF
25019 rm -f conftest.$ac_objext conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023   *) ac_try_echo=$ac_try;;
25024 esac
25025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25026 $as_echo "$ac_try_echo") >&5
25027   (eval "$ac_link") 2>conftest.er1
25028   ac_status=$?
25029   grep -v '^ *+' conftest.er1 >conftest.err
25030   rm -f conftest.er1
25031   cat conftest.err >&5
25032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); } && {
25034          test -z "$ac_c_werror_flag" ||
25035          test ! -s conftest.err
25036        } && test -s conftest$ac_exeext && {
25037          test "$cross_compiling" = yes ||
25038          $as_test_x conftest$ac_exeext
25039        }; then
25040   eval "$as_ac_var=yes"
25041 else
25042   $as_echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25044
25045         eval "$as_ac_var=no"
25046 fi
25047
25048 rm -rf conftest.dSYM
25049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25050       conftest$ac_exeext conftest.$ac_ext
25051 fi
25052 ac_res=`eval 'as_val=${'$as_ac_var'}
25053                  $as_echo "$as_val"'`
25054                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25055 $as_echo "$ac_res" >&6; }
25056 as_val=`eval 'as_val=${'$as_ac_var'}
25057                  $as_echo "$as_val"'`
25058    if test "x$as_val" = x""yes; then
25059   cat >>confdefs.h <<_ACEOF
25060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25061 _ACEOF
25062
25063 fi
25064 done
25065
25066 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
25067 $as_echo_n "checking for working mmap... " >&6; }
25068 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25069   $as_echo_n "(cached) " >&6
25070 else
25071   if test "$cross_compiling" = yes; then
25072   ac_cv_func_mmap_fixed_mapped=no
25073 else
25074   cat >conftest.$ac_ext <<_ACEOF
25075 /* confdefs.h.  */
25076 _ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h.  */
25080 $ac_includes_default
25081 /* malloc might have been renamed as rpl_malloc. */
25082 #undef malloc
25083
25084 /* Thanks to Mike Haertel and Jim Avera for this test.
25085    Here is a matrix of mmap possibilities:
25086         mmap private not fixed
25087         mmap private fixed at somewhere currently unmapped
25088         mmap private fixed at somewhere already mapped
25089         mmap shared not fixed
25090         mmap shared fixed at somewhere currently unmapped
25091         mmap shared fixed at somewhere already mapped
25092    For private mappings, we should verify that changes cannot be read()
25093    back from the file, nor mmap's back from the file at a different
25094    address.  (There have been systems where private was not correctly
25095    implemented like the infamous i386 svr4.0, and systems where the
25096    VM page cache was not coherent with the file system buffer cache
25097    like early versions of FreeBSD and possibly contemporary NetBSD.)
25098    For shared mappings, we should conversely verify that changes get
25099    propagated back to all the places they're supposed to be.
25100
25101    Grep wants private fixed already mapped.
25102    The main things grep needs to know about mmap are:
25103    * does it exist and is it safe to write into the mmap'd area
25104    * how to use it (BSD variants)  */
25105
25106 #include <fcntl.h>
25107 #include <sys/mman.h>
25108
25109 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25110 char *malloc ();
25111 #endif
25112
25113 /* This mess was copied from the GNU getpagesize.h.  */
25114 #ifndef HAVE_GETPAGESIZE
25115 /* Assume that all systems that can run configure have sys/param.h.  */
25116 # ifndef HAVE_SYS_PARAM_H
25117 #  define HAVE_SYS_PARAM_H 1
25118 # endif
25119
25120 # ifdef _SC_PAGESIZE
25121 #  define getpagesize() sysconf(_SC_PAGESIZE)
25122 # else /* no _SC_PAGESIZE */
25123 #  ifdef HAVE_SYS_PARAM_H
25124 #   include <sys/param.h>
25125 #   ifdef EXEC_PAGESIZE
25126 #    define getpagesize() EXEC_PAGESIZE
25127 #   else /* no EXEC_PAGESIZE */
25128 #    ifdef NBPG
25129 #     define getpagesize() NBPG * CLSIZE
25130 #     ifndef CLSIZE
25131 #      define CLSIZE 1
25132 #     endif /* no CLSIZE */
25133 #    else /* no NBPG */
25134 #     ifdef NBPC
25135 #      define getpagesize() NBPC
25136 #     else /* no NBPC */
25137 #      ifdef PAGESIZE
25138 #       define getpagesize() PAGESIZE
25139 #      endif /* PAGESIZE */
25140 #     endif /* no NBPC */
25141 #    endif /* no NBPG */
25142 #   endif /* no EXEC_PAGESIZE */
25143 #  else /* no HAVE_SYS_PARAM_H */
25144 #   define getpagesize() 8192   /* punt totally */
25145 #  endif /* no HAVE_SYS_PARAM_H */
25146 # endif /* no _SC_PAGESIZE */
25147
25148 #endif /* no HAVE_GETPAGESIZE */
25149
25150 int
25151 main ()
25152 {
25153   char *data, *data2, *data3;
25154   int i, pagesize;
25155   int fd;
25156
25157   pagesize = getpagesize ();
25158
25159   /* First, make a file with some known garbage in it. */
25160   data = (char *) malloc (pagesize);
25161   if (!data)
25162     return 1;
25163   for (i = 0; i < pagesize; ++i)
25164     *(data + i) = rand ();
25165   umask (0);
25166   fd = creat ("conftest.mmap", 0600);
25167   if (fd < 0)
25168     return 1;
25169   if (write (fd, data, pagesize) != pagesize)
25170     return 1;
25171   close (fd);
25172
25173   /* Next, try to mmap the file at a fixed address which already has
25174      something else allocated at it.  If we can, also make sure that
25175      we see the same garbage.  */
25176   fd = open ("conftest.mmap", O_RDWR);
25177   if (fd < 0)
25178     return 1;
25179   data2 = (char *) malloc (2 * pagesize);
25180   if (!data2)
25181     return 1;
25182   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25183   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25184                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
25185     return 1;
25186   for (i = 0; i < pagesize; ++i)
25187     if (*(data + i) != *(data2 + i))
25188       return 1;
25189
25190   /* Finally, make sure that changes to the mapped area do not
25191      percolate back to the file as seen by read().  (This is a bug on
25192      some variants of i386 svr4.0.)  */
25193   for (i = 0; i < pagesize; ++i)
25194     *(data2 + i) = *(data2 + i) + 1;
25195   data3 = (char *) malloc (pagesize);
25196   if (!data3)
25197     return 1;
25198   if (read (fd, data3, pagesize) != pagesize)
25199     return 1;
25200   for (i = 0; i < pagesize; ++i)
25201     if (*(data + i) != *(data3 + i))
25202       return 1;
25203   close (fd);
25204   return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest$ac_exeext
25208 if { (ac_try="$ac_link"
25209 case "(($ac_try" in
25210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211   *) ac_try_echo=$ac_try;;
25212 esac
25213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25214 $as_echo "$ac_try_echo") >&5
25215   (eval "$ac_link") 2>&5
25216   ac_status=$?
25217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25219   { (case "(($ac_try" in
25220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221   *) ac_try_echo=$ac_try;;
25222 esac
25223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25224 $as_echo "$ac_try_echo") >&5
25225   (eval "$ac_try") 2>&5
25226   ac_status=$?
25227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228   (exit $ac_status); }; }; then
25229   ac_cv_func_mmap_fixed_mapped=yes
25230 else
25231   $as_echo "$as_me: program exited with status $ac_status" >&5
25232 $as_echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235 ( exit $ac_status )
25236 ac_cv_func_mmap_fixed_mapped=no
25237 fi
25238 rm -rf conftest.dSYM
25239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25240 fi
25241
25242
25243 fi
25244 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25245 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25246 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25247
25248 cat >>confdefs.h <<\_ACEOF
25249 #define HAVE_MMAP 1
25250 _ACEOF
25251
25252 fi
25253 rm -f conftest.mmap
25254
25255 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25256 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25257 if test "${ac_cv_sys_largefile_source+set}" = set; then
25258   $as_echo_n "(cached) " >&6
25259 else
25260   while :; do
25261   cat >conftest.$ac_ext <<_ACEOF
25262 /* confdefs.h.  */
25263 _ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h.  */
25267 #include <sys/types.h> /* for off_t */
25268      #include <stdio.h>
25269 int
25270 main ()
25271 {
25272 int (*fp) (FILE *, off_t, int) = fseeko;
25273      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25274   ;
25275   return 0;
25276 }
25277 _ACEOF
25278 rm -f conftest.$ac_objext conftest$ac_exeext
25279 if { (ac_try="$ac_link"
25280 case "(($ac_try" in
25281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282   *) ac_try_echo=$ac_try;;
25283 esac
25284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25285 $as_echo "$ac_try_echo") >&5
25286   (eval "$ac_link") 2>conftest.er1
25287   ac_status=$?
25288   grep -v '^ *+' conftest.er1 >conftest.err
25289   rm -f conftest.er1
25290   cat conftest.err >&5
25291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); } && {
25293          test -z "$ac_c_werror_flag" ||
25294          test ! -s conftest.err
25295        } && test -s conftest$ac_exeext && {
25296          test "$cross_compiling" = yes ||
25297          $as_test_x conftest$ac_exeext
25298        }; then
25299   ac_cv_sys_largefile_source=no; break
25300 else
25301   $as_echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25303
25304
25305 fi
25306
25307 rm -rf conftest.dSYM
25308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25309       conftest$ac_exeext conftest.$ac_ext
25310   cat >conftest.$ac_ext <<_ACEOF
25311 /* confdefs.h.  */
25312 _ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h.  */
25316 #define _LARGEFILE_SOURCE 1
25317 #include <sys/types.h> /* for off_t */
25318      #include <stdio.h>
25319 int
25320 main ()
25321 {
25322 int (*fp) (FILE *, off_t, int) = fseeko;
25323      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25324   ;
25325   return 0;
25326 }
25327 _ACEOF
25328 rm -f conftest.$ac_objext conftest$ac_exeext
25329 if { (ac_try="$ac_link"
25330 case "(($ac_try" in
25331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332   *) ac_try_echo=$ac_try;;
25333 esac
25334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25335 $as_echo "$ac_try_echo") >&5
25336   (eval "$ac_link") 2>conftest.er1
25337   ac_status=$?
25338   grep -v '^ *+' conftest.er1 >conftest.err
25339   rm -f conftest.er1
25340   cat conftest.err >&5
25341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); } && {
25343          test -z "$ac_c_werror_flag" ||
25344          test ! -s conftest.err
25345        } && test -s conftest$ac_exeext && {
25346          test "$cross_compiling" = yes ||
25347          $as_test_x conftest$ac_exeext
25348        }; then
25349   ac_cv_sys_largefile_source=1; break
25350 else
25351   $as_echo "$as_me: failed program was:" >&5
25352 sed 's/^/| /' conftest.$ac_ext >&5
25353
25354
25355 fi
25356
25357 rm -rf conftest.dSYM
25358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25359       conftest$ac_exeext conftest.$ac_ext
25360   ac_cv_sys_largefile_source=unknown
25361   break
25362 done
25363 fi
25364 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25365 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25366 case $ac_cv_sys_largefile_source in #(
25367   no | unknown) ;;
25368   *)
25369 cat >>confdefs.h <<_ACEOF
25370 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25371 _ACEOF
25372 ;;
25373 esac
25374 rm -rf conftest*
25375
25376 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25377 # in glibc 2.1.3, but that breaks too many other things.
25378 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25379 if test $ac_cv_sys_largefile_source != unknown; then
25380
25381 cat >>confdefs.h <<\_ACEOF
25382 #define HAVE_FSEEKO 1
25383 _ACEOF
25384
25385 fi
25386
25387
25388
25389
25390
25391
25392
25393 for ac_func in strptime timegm snprintf vsnprintf vasprintf drand48
25394 do
25395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25396 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25397 $as_echo_n "checking for $ac_func... " >&6; }
25398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25399   $as_echo_n "(cached) " >&6
25400 else
25401   cat >conftest.$ac_ext <<_ACEOF
25402 /* confdefs.h.  */
25403 _ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h.  */
25407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25409 #define $ac_func innocuous_$ac_func
25410
25411 /* System header to define __stub macros and hopefully few prototypes,
25412     which can conflict with char $ac_func (); below.
25413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25414     <limits.h> exists even on freestanding compilers.  */
25415
25416 #ifdef __STDC__
25417 # include <limits.h>
25418 #else
25419 # include <assert.h>
25420 #endif
25421
25422 #undef $ac_func
25423
25424 /* Override any GCC internal prototype to avoid an error.
25425    Use char because int might match the return type of a GCC
25426    builtin and then its argument prototype would still apply.  */
25427 #ifdef __cplusplus
25428 extern "C"
25429 #endif
25430 char $ac_func ();
25431 /* The GNU C library defines this for functions which it implements
25432     to always fail with ENOSYS.  Some functions are actually named
25433     something starting with __ and the normal name is an alias.  */
25434 #if defined __stub_$ac_func || defined __stub___$ac_func
25435 choke me
25436 #endif
25437
25438 int
25439 main ()
25440 {
25441 return $ac_func ();
25442   ;
25443   return 0;
25444 }
25445 _ACEOF
25446 rm -f conftest.$ac_objext conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450   *) ac_try_echo=$ac_try;;
25451 esac
25452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25453 $as_echo "$ac_try_echo") >&5
25454   (eval "$ac_link") 2>conftest.er1
25455   ac_status=$?
25456   grep -v '^ *+' conftest.er1 >conftest.err
25457   rm -f conftest.er1
25458   cat conftest.err >&5
25459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); } && {
25461          test -z "$ac_c_werror_flag" ||
25462          test ! -s conftest.err
25463        } && test -s conftest$ac_exeext && {
25464          test "$cross_compiling" = yes ||
25465          $as_test_x conftest$ac_exeext
25466        }; then
25467   eval "$as_ac_var=yes"
25468 else
25469   $as_echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472         eval "$as_ac_var=no"
25473 fi
25474
25475 rm -rf conftest.dSYM
25476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25477       conftest$ac_exeext conftest.$ac_ext
25478 fi
25479 ac_res=`eval 'as_val=${'$as_ac_var'}
25480                  $as_echo "$as_val"'`
25481                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25482 $as_echo "$ac_res" >&6; }
25483 as_val=`eval 'as_val=${'$as_ac_var'}
25484                  $as_echo "$as_val"'`
25485    if test "x$as_val" = x""yes; then
25486   cat >>confdefs.h <<_ACEOF
25487 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25488 _ACEOF
25489
25490 fi
25491 done
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501 for ac_func in strtoll usleep ftello sigblock sigsetjmp memrchr wcwidth mbtowc
25502 do
25503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25504 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25505 $as_echo_n "checking for $ac_func... " >&6; }
25506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25507   $as_echo_n "(cached) " >&6
25508 else
25509   cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h.  */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h.  */
25515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25517 #define $ac_func innocuous_$ac_func
25518
25519 /* System header to define __stub macros and hopefully few prototypes,
25520     which can conflict with char $ac_func (); below.
25521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25522     <limits.h> exists even on freestanding compilers.  */
25523
25524 #ifdef __STDC__
25525 # include <limits.h>
25526 #else
25527 # include <assert.h>
25528 #endif
25529
25530 #undef $ac_func
25531
25532 /* Override any GCC internal prototype to avoid an error.
25533    Use char because int might match the return type of a GCC
25534    builtin and then its argument prototype would still apply.  */
25535 #ifdef __cplusplus
25536 extern "C"
25537 #endif
25538 char $ac_func ();
25539 /* The GNU C library defines this for functions which it implements
25540     to always fail with ENOSYS.  Some functions are actually named
25541     something starting with __ and the normal name is an alias.  */
25542 #if defined __stub_$ac_func || defined __stub___$ac_func
25543 choke me
25544 #endif
25545
25546 int
25547 main ()
25548 {
25549 return $ac_func ();
25550   ;
25551   return 0;
25552 }
25553 _ACEOF
25554 rm -f conftest.$ac_objext conftest$ac_exeext
25555 if { (ac_try="$ac_link"
25556 case "(($ac_try" in
25557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558   *) ac_try_echo=$ac_try;;
25559 esac
25560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25561 $as_echo "$ac_try_echo") >&5
25562   (eval "$ac_link") 2>conftest.er1
25563   ac_status=$?
25564   grep -v '^ *+' conftest.er1 >conftest.err
25565   rm -f conftest.er1
25566   cat conftest.err >&5
25567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568   (exit $ac_status); } && {
25569          test -z "$ac_c_werror_flag" ||
25570          test ! -s conftest.err
25571        } && test -s conftest$ac_exeext && {
25572          test "$cross_compiling" = yes ||
25573          $as_test_x conftest$ac_exeext
25574        }; then
25575   eval "$as_ac_var=yes"
25576 else
25577   $as_echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25579
25580         eval "$as_ac_var=no"
25581 fi
25582
25583 rm -rf conftest.dSYM
25584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25585       conftest$ac_exeext conftest.$ac_ext
25586 fi
25587 ac_res=`eval 'as_val=${'$as_ac_var'}
25588                  $as_echo "$as_val"'`
25589                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25590 $as_echo "$ac_res" >&6; }
25591 as_val=`eval 'as_val=${'$as_ac_var'}
25592                  $as_echo "$as_val"'`
25593    if test "x$as_val" = x""yes; then
25594   cat >>confdefs.h <<_ACEOF
25595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25596 _ACEOF
25597
25598 fi
25599 done
25600
25601
25602 if test x"$ENABLE_OPIE" = xyes; then
25603   case " $LIBOBJS " in
25604   *" ftp-opie.$ac_objext "* ) ;;
25605   *) LIBOBJS="$LIBOBJS ftp-opie.$ac_objext"
25606  ;;
25607 esac
25608
25609 fi
25610
25611
25612 cat >>confdefs.h <<\_ACEOF
25613 #define HAVE_STRCASECMP 1
25614 _ACEOF
25615
25616
25617 cat >>confdefs.h <<\_ACEOF
25618 #define HAVE_STRNCASECMP 1
25619 _ACEOF
25620
25621
25622 cat >>confdefs.h <<\_ACEOF
25623 #define HAVE_STRDUP 1
25624 _ACEOF
25625
25626
25627 cat >>confdefs.h <<\_ACEOF
25628 #define HAVE_ISATTY 1
25629 _ACEOF
25630
25631
25632 cat >>confdefs.h <<\_ACEOF
25633 #define HAVE_SYMLINK 1
25634 _ACEOF
25635
25636
25637
25638   { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
25639 $as_echo_n "checking for struct utimbuf... " >&6; }
25640 if test "${ac_cv_type_struct_utimbuf+set}" = set; then
25641   $as_echo_n "(cached) " >&6
25642 else
25643   ac_cv_type_struct_utimbuf=no
25644 cat >conftest.$ac_ext <<_ACEOF
25645 /* confdefs.h.  */
25646 _ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h.  */
25650
25651 #include <stdio.h>
25652 #if HAVE_SYS_TYPES_H
25653 # include <sys/types.h>
25654 #endif
25655 #if HAVE_UTIME_H
25656 # include <utime.h>
25657 #endif
25658
25659
25660 int
25661 main ()
25662 {
25663 if (sizeof (struct utimbuf))
25664        return 0;
25665   ;
25666   return 0;
25667 }
25668 _ACEOF
25669 rm -f conftest.$ac_objext
25670 if { (ac_try="$ac_compile"
25671 case "(($ac_try" in
25672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673   *) ac_try_echo=$ac_try;;
25674 esac
25675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25676 $as_echo "$ac_try_echo") >&5
25677   (eval "$ac_compile") 2>conftest.er1
25678   ac_status=$?
25679   grep -v '^ *+' conftest.er1 >conftest.err
25680   rm -f conftest.er1
25681   cat conftest.err >&5
25682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); } && {
25684          test -z "$ac_c_werror_flag" ||
25685          test ! -s conftest.err
25686        } && test -s conftest.$ac_objext; then
25687   cat >conftest.$ac_ext <<_ACEOF
25688 /* confdefs.h.  */
25689 _ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h.  */
25693
25694 #include <stdio.h>
25695 #if HAVE_SYS_TYPES_H
25696 # include <sys/types.h>
25697 #endif
25698 #if HAVE_UTIME_H
25699 # include <utime.h>
25700 #endif
25701
25702
25703 int
25704 main ()
25705 {
25706 if (sizeof ((struct utimbuf)))
25707           return 0;
25708   ;
25709   return 0;
25710 }
25711 _ACEOF
25712 rm -f conftest.$ac_objext
25713 if { (ac_try="$ac_compile"
25714 case "(($ac_try" in
25715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716   *) ac_try_echo=$ac_try;;
25717 esac
25718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25719 $as_echo "$ac_try_echo") >&5
25720   (eval "$ac_compile") 2>conftest.er1
25721   ac_status=$?
25722   grep -v '^ *+' conftest.er1 >conftest.err
25723   rm -f conftest.er1
25724   cat conftest.err >&5
25725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); } && {
25727          test -z "$ac_c_werror_flag" ||
25728          test ! -s conftest.err
25729        } && test -s conftest.$ac_objext; then
25730   :
25731 else
25732   $as_echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735         ac_cv_type_struct_utimbuf=yes
25736 fi
25737
25738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739 else
25740   $as_echo "$as_me: failed program was:" >&5
25741 sed 's/^/| /' conftest.$ac_ext >&5
25742
25743
25744 fi
25745
25746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747 fi
25748 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_utimbuf" >&5
25749 $as_echo "$ac_cv_type_struct_utimbuf" >&6; }
25750 if test "x$ac_cv_type_struct_utimbuf" = x""yes; then
25751
25752 cat >>confdefs.h <<_ACEOF
25753 #define HAVE_STRUCT_UTIMBUF 1
25754 _ACEOF
25755
25756
25757 fi
25758
25759
25760
25761   { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
25762 $as_echo_n "checking for socklen_t... " >&6; }
25763   cat >conftest.$ac_ext <<_ACEOF
25764
25765 #include <sys/types.h>
25766 #include <sys/socket.h>
25767 socklen_t x;
25768
25769 _ACEOF
25770 rm -f conftest.$ac_objext
25771 if { (ac_try="$ac_compile"
25772 case "(($ac_try" in
25773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774   *) ac_try_echo=$ac_try;;
25775 esac
25776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25777 $as_echo "$ac_try_echo") >&5
25778   (eval "$ac_compile") 2>conftest.er1
25779   ac_status=$?
25780   grep -v '^ *+' conftest.er1 >conftest.err
25781   rm -f conftest.er1
25782   cat conftest.err >&5
25783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784   (exit $ac_status); } && {
25785          test -z "$ac_c_werror_flag" ||
25786          test ! -s conftest.err
25787        } && test -s conftest.$ac_objext; then
25788   { $as_echo "$as_me:$LINENO: result: socklen_t" >&5
25789 $as_echo "socklen_t" >&6; }
25790 else
25791   $as_echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25793
25794
25795     cat >conftest.$ac_ext <<_ACEOF
25796
25797 #include <sys/types.h>
25798 #include <sys/socket.h>
25799 int accept (int, struct sockaddr *, size_t *);
25800
25801 _ACEOF
25802 rm -f conftest.$ac_objext
25803 if { (ac_try="$ac_compile"
25804 case "(($ac_try" in
25805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25806   *) ac_try_echo=$ac_try;;
25807 esac
25808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25809 $as_echo "$ac_try_echo") >&5
25810   (eval "$ac_compile") 2>conftest.er1
25811   ac_status=$?
25812   grep -v '^ *+' conftest.er1 >conftest.err
25813   rm -f conftest.er1
25814   cat conftest.err >&5
25815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816   (exit $ac_status); } && {
25817          test -z "$ac_c_werror_flag" ||
25818          test ! -s conftest.err
25819        } && test -s conftest.$ac_objext; then
25820
25821       { $as_echo "$as_me:$LINENO: result: size_t" >&5
25822 $as_echo "size_t" >&6; }
25823
25824 cat >>confdefs.h <<\_ACEOF
25825 #define socklen_t size_t
25826 _ACEOF
25827
25828
25829 else
25830   $as_echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25832
25833
25834       { $as_echo "$as_me:$LINENO: result: int" >&5
25835 $as_echo "int" >&6; }
25836
25837 cat >>confdefs.h <<\_ACEOF
25838 #define socklen_t int
25839 _ACEOF
25840
25841
25842 fi
25843
25844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25845
25846 fi
25847
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25849
25850
25851   { $as_echo "$as_me:$LINENO: checking for working fnmatch.h" >&5
25852 $as_echo_n "checking for working fnmatch.h... " >&6; }
25853   cat >conftest.$ac_ext <<_ACEOF
25854 #include <fnmatch.h>
25855
25856 _ACEOF
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861   *) ac_try_echo=$ac_try;;
25862 esac
25863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865   (eval "$ac_compile") 2>conftest.er1
25866   ac_status=$?
25867   grep -v '^ *+' conftest.er1 >conftest.err
25868   rm -f conftest.er1
25869   cat conftest.err >&5
25870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871   (exit $ac_status); } && {
25872          test -z "$ac_c_werror_flag" ||
25873          test ! -s conftest.err
25874        } && test -s conftest.$ac_objext; then
25875
25876     { $as_echo "$as_me:$LINENO: result: yes" >&5
25877 $as_echo "yes" >&6; }
25878
25879 cat >>confdefs.h <<\_ACEOF
25880 #define HAVE_WORKING_FNMATCH_H 1
25881 _ACEOF
25882
25883
25884 else
25885   $as_echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25887
25888
25889     { $as_echo "$as_me:$LINENO: result: no" >&5
25890 $as_echo "no" >&6; }
25891
25892 fi
25893
25894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25895
25896
25897
25898 for ac_func in nanosleep
25899 do
25900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 $as_echo_n "checking for $ac_func... " >&6; }
25903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25904   $as_echo_n "(cached) " >&6
25905 else
25906   cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25914 #define $ac_func innocuous_$ac_func
25915
25916 /* System header to define __stub macros and hopefully few prototypes,
25917     which can conflict with char $ac_func (); below.
25918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919     <limits.h> exists even on freestanding compilers.  */
25920
25921 #ifdef __STDC__
25922 # include <limits.h>
25923 #else
25924 # include <assert.h>
25925 #endif
25926
25927 #undef $ac_func
25928
25929 /* Override any GCC internal prototype to avoid an error.
25930    Use char because int might match the return type of a GCC
25931    builtin and then its argument prototype would still apply.  */
25932 #ifdef __cplusplus
25933 extern "C"
25934 #endif
25935 char $ac_func ();
25936 /* The GNU C library defines this for functions which it implements
25937     to always fail with ENOSYS.  Some functions are actually named
25938     something starting with __ and the normal name is an alias.  */
25939 #if defined __stub_$ac_func || defined __stub___$ac_func
25940 choke me
25941 #endif
25942
25943 int
25944 main ()
25945 {
25946 return $ac_func ();
25947   ;
25948   return 0;
25949 }
25950 _ACEOF
25951 rm -f conftest.$ac_objext conftest$ac_exeext
25952 if { (ac_try="$ac_link"
25953 case "(($ac_try" in
25954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955   *) ac_try_echo=$ac_try;;
25956 esac
25957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25958 $as_echo "$ac_try_echo") >&5
25959   (eval "$ac_link") 2>conftest.er1
25960   ac_status=$?
25961   grep -v '^ *+' conftest.er1 >conftest.err
25962   rm -f conftest.er1
25963   cat conftest.err >&5
25964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); } && {
25966          test -z "$ac_c_werror_flag" ||
25967          test ! -s conftest.err
25968        } && test -s conftest$ac_exeext && {
25969          test "$cross_compiling" = yes ||
25970          $as_test_x conftest$ac_exeext
25971        }; then
25972   eval "$as_ac_var=yes"
25973 else
25974   $as_echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.$ac_ext >&5
25976
25977         eval "$as_ac_var=no"
25978 fi
25979
25980 rm -rf conftest.dSYM
25981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25982       conftest$ac_exeext conftest.$ac_ext
25983 fi
25984 ac_res=`eval 'as_val=${'$as_ac_var'}
25985                  $as_echo "$as_val"'`
25986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25987 $as_echo "$ac_res" >&6; }
25988 as_val=`eval 'as_val=${'$as_ac_var'}
25989                  $as_echo "$as_val"'`
25990    if test "x$as_val" = x""yes; then
25991   cat >>confdefs.h <<_ACEOF
25992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25993 _ACEOF
25994
25995 else
25996
25997     { $as_echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
25998 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
25999 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
26000   $as_echo_n "(cached) " >&6
26001 else
26002   ac_check_lib_save_LIBS=$LIBS
26003 LIBS="-lrt  $LIBS"
26004 cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h.  */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h.  */
26010
26011 /* Override any GCC internal prototype to avoid an error.
26012    Use char because int might match the return type of a GCC
26013    builtin and then its argument prototype would still apply.  */
26014 #ifdef __cplusplus
26015 extern "C"
26016 #endif
26017 char nanosleep ();
26018 int
26019 main ()
26020 {
26021 return nanosleep ();
26022   ;
26023   return 0;
26024 }
26025 _ACEOF
26026 rm -f conftest.$ac_objext conftest$ac_exeext
26027 if { (ac_try="$ac_link"
26028 case "(($ac_try" in
26029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030   *) ac_try_echo=$ac_try;;
26031 esac
26032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26033 $as_echo "$ac_try_echo") >&5
26034   (eval "$ac_link") 2>conftest.er1
26035   ac_status=$?
26036   grep -v '^ *+' conftest.er1 >conftest.err
26037   rm -f conftest.er1
26038   cat conftest.err >&5
26039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); } && {
26041          test -z "$ac_c_werror_flag" ||
26042          test ! -s conftest.err
26043        } && test -s conftest$ac_exeext && {
26044          test "$cross_compiling" = yes ||
26045          $as_test_x conftest$ac_exeext
26046        }; then
26047   ac_cv_lib_rt_nanosleep=yes
26048 else
26049   $as_echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26051
26052         ac_cv_lib_rt_nanosleep=no
26053 fi
26054
26055 rm -rf conftest.dSYM
26056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26057       conftest$ac_exeext conftest.$ac_ext
26058 LIBS=$ac_check_lib_save_LIBS
26059 fi
26060 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
26061 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
26062 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then
26063
26064
26065 cat >>confdefs.h <<\_ACEOF
26066 #define HAVE_NANOSLEEP 1
26067 _ACEOF
26068
26069       LIBS="-lrt $LIBS"
26070
26071 else
26072
26073       { $as_echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
26074 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
26075 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
26076   $as_echo_n "(cached) " >&6
26077 else
26078   ac_check_lib_save_LIBS=$LIBS
26079 LIBS="-lposix4  $LIBS"
26080 cat >conftest.$ac_ext <<_ACEOF
26081 /* confdefs.h.  */
26082 _ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h.  */
26086
26087 /* Override any GCC internal prototype to avoid an error.
26088    Use char because int might match the return type of a GCC
26089    builtin and then its argument prototype would still apply.  */
26090 #ifdef __cplusplus
26091 extern "C"
26092 #endif
26093 char nanosleep ();
26094 int
26095 main ()
26096 {
26097 return nanosleep ();
26098   ;
26099   return 0;
26100 }
26101 _ACEOF
26102 rm -f conftest.$ac_objext conftest$ac_exeext
26103 if { (ac_try="$ac_link"
26104 case "(($ac_try" in
26105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106   *) ac_try_echo=$ac_try;;
26107 esac
26108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26109 $as_echo "$ac_try_echo") >&5
26110   (eval "$ac_link") 2>conftest.er1
26111   ac_status=$?
26112   grep -v '^ *+' conftest.er1 >conftest.err
26113   rm -f conftest.er1
26114   cat conftest.err >&5
26115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); } && {
26117          test -z "$ac_c_werror_flag" ||
26118          test ! -s conftest.err
26119        } && test -s conftest$ac_exeext && {
26120          test "$cross_compiling" = yes ||
26121          $as_test_x conftest$ac_exeext
26122        }; then
26123   ac_cv_lib_posix4_nanosleep=yes
26124 else
26125   $as_echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26127
26128         ac_cv_lib_posix4_nanosleep=no
26129 fi
26130
26131 rm -rf conftest.dSYM
26132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26133       conftest$ac_exeext conftest.$ac_ext
26134 LIBS=$ac_check_lib_save_LIBS
26135 fi
26136 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
26137 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
26138 if test "x$ac_cv_lib_posix4_nanosleep" = x""yes; then
26139
26140
26141 cat >>confdefs.h <<\_ACEOF
26142 #define HAVE_NANOSLEEP 1
26143 _ACEOF
26144
26145         LIBS="-lposix4 $LIBS"
26146
26147 fi
26148
26149
26150 fi
26151
26152
26153 fi
26154 done
26155
26156
26157
26158
26159 for ac_func in clock_gettime
26160 do
26161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26162 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26163 $as_echo_n "checking for $ac_func... " >&6; }
26164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26165   $as_echo_n "(cached) " >&6
26166 else
26167   cat >conftest.$ac_ext <<_ACEOF
26168 /* confdefs.h.  */
26169 _ACEOF
26170 cat confdefs.h >>conftest.$ac_ext
26171 cat >>conftest.$ac_ext <<_ACEOF
26172 /* end confdefs.h.  */
26173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26175 #define $ac_func innocuous_$ac_func
26176
26177 /* System header to define __stub macros and hopefully few prototypes,
26178     which can conflict with char $ac_func (); below.
26179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26180     <limits.h> exists even on freestanding compilers.  */
26181
26182 #ifdef __STDC__
26183 # include <limits.h>
26184 #else
26185 # include <assert.h>
26186 #endif
26187
26188 #undef $ac_func
26189
26190 /* Override any GCC internal prototype to avoid an error.
26191    Use char because int might match the return type of a GCC
26192    builtin and then its argument prototype would still apply.  */
26193 #ifdef __cplusplus
26194 extern "C"
26195 #endif
26196 char $ac_func ();
26197 /* The GNU C library defines this for functions which it implements
26198     to always fail with ENOSYS.  Some functions are actually named
26199     something starting with __ and the normal name is an alias.  */
26200 #if defined __stub_$ac_func || defined __stub___$ac_func
26201 choke me
26202 #endif
26203
26204 int
26205 main ()
26206 {
26207 return $ac_func ();
26208   ;
26209   return 0;
26210 }
26211 _ACEOF
26212 rm -f conftest.$ac_objext conftest$ac_exeext
26213 if { (ac_try="$ac_link"
26214 case "(($ac_try" in
26215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26216   *) ac_try_echo=$ac_try;;
26217 esac
26218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26219 $as_echo "$ac_try_echo") >&5
26220   (eval "$ac_link") 2>conftest.er1
26221   ac_status=$?
26222   grep -v '^ *+' conftest.er1 >conftest.err
26223   rm -f conftest.er1
26224   cat conftest.err >&5
26225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); } && {
26227          test -z "$ac_c_werror_flag" ||
26228          test ! -s conftest.err
26229        } && test -s conftest$ac_exeext && {
26230          test "$cross_compiling" = yes ||
26231          $as_test_x conftest$ac_exeext
26232        }; then
26233   eval "$as_ac_var=yes"
26234 else
26235   $as_echo "$as_me: failed program was:" >&5
26236 sed 's/^/| /' conftest.$ac_ext >&5
26237
26238         eval "$as_ac_var=no"
26239 fi
26240
26241 rm -rf conftest.dSYM
26242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26243       conftest$ac_exeext conftest.$ac_ext
26244 fi
26245 ac_res=`eval 'as_val=${'$as_ac_var'}
26246                  $as_echo "$as_val"'`
26247                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26248 $as_echo "$ac_res" >&6; }
26249 as_val=`eval 'as_val=${'$as_ac_var'}
26250                  $as_echo "$as_val"'`
26251    if test "x$as_val" = x""yes; then
26252   cat >>confdefs.h <<_ACEOF
26253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26254 _ACEOF
26255
26256 else
26257
26258
26259 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
26260 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26261 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
26262   $as_echo_n "(cached) " >&6
26263 else
26264   ac_check_lib_save_LIBS=$LIBS
26265 LIBS="-lrt  $LIBS"
26266 cat >conftest.$ac_ext <<_ACEOF
26267 /* confdefs.h.  */
26268 _ACEOF
26269 cat confdefs.h >>conftest.$ac_ext
26270 cat >>conftest.$ac_ext <<_ACEOF
26271 /* end confdefs.h.  */
26272
26273 /* Override any GCC internal prototype to avoid an error.
26274    Use char because int might match the return type of a GCC
26275    builtin and then its argument prototype would still apply.  */
26276 #ifdef __cplusplus
26277 extern "C"
26278 #endif
26279 char clock_gettime ();
26280 int
26281 main ()
26282 {
26283 return clock_gettime ();
26284   ;
26285   return 0;
26286 }
26287 _ACEOF
26288 rm -f conftest.$ac_objext conftest$ac_exeext
26289 if { (ac_try="$ac_link"
26290 case "(($ac_try" in
26291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26292   *) ac_try_echo=$ac_try;;
26293 esac
26294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26295 $as_echo "$ac_try_echo") >&5
26296   (eval "$ac_link") 2>conftest.er1
26297   ac_status=$?
26298   grep -v '^ *+' conftest.er1 >conftest.err
26299   rm -f conftest.er1
26300   cat conftest.err >&5
26301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302   (exit $ac_status); } && {
26303          test -z "$ac_c_werror_flag" ||
26304          test ! -s conftest.err
26305        } && test -s conftest$ac_exeext && {
26306          test "$cross_compiling" = yes ||
26307          $as_test_x conftest$ac_exeext
26308        }; then
26309   ac_cv_lib_rt_clock_gettime=yes
26310 else
26311   $as_echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26313
26314         ac_cv_lib_rt_clock_gettime=no
26315 fi
26316
26317 rm -rf conftest.dSYM
26318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26319       conftest$ac_exeext conftest.$ac_ext
26320 LIBS=$ac_check_lib_save_LIBS
26321 fi
26322 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
26323 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26324 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
26325   cat >>confdefs.h <<_ACEOF
26326 #define HAVE_LIBRT 1
26327 _ACEOF
26328
26329   LIBS="-lrt $LIBS"
26330
26331 fi
26332
26333
26334 fi
26335 done
26336
26337
26338
26339               wget_check_in_nsl=NONE
26340
26341 for ac_func in gethostbyname
26342 do
26343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26345 $as_echo_n "checking for $ac_func... " >&6; }
26346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26347   $as_echo_n "(cached) " >&6
26348 else
26349   cat >conftest.$ac_ext <<_ACEOF
26350 /* confdefs.h.  */
26351 _ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h.  */
26355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26357 #define $ac_func innocuous_$ac_func
26358
26359 /* System header to define __stub macros and hopefully few prototypes,
26360     which can conflict with char $ac_func (); below.
26361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26362     <limits.h> exists even on freestanding compilers.  */
26363
26364 #ifdef __STDC__
26365 # include <limits.h>
26366 #else
26367 # include <assert.h>
26368 #endif
26369
26370 #undef $ac_func
26371
26372 /* Override any GCC internal prototype to avoid an error.
26373    Use char because int might match the return type of a GCC
26374    builtin and then its argument prototype would still apply.  */
26375 #ifdef __cplusplus
26376 extern "C"
26377 #endif
26378 char $ac_func ();
26379 /* The GNU C library defines this for functions which it implements
26380     to always fail with ENOSYS.  Some functions are actually named
26381     something starting with __ and the normal name is an alias.  */
26382 #if defined __stub_$ac_func || defined __stub___$ac_func
26383 choke me
26384 #endif
26385
26386 int
26387 main ()
26388 {
26389 return $ac_func ();
26390   ;
26391   return 0;
26392 }
26393 _ACEOF
26394 rm -f conftest.$ac_objext conftest$ac_exeext
26395 if { (ac_try="$ac_link"
26396 case "(($ac_try" in
26397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398   *) ac_try_echo=$ac_try;;
26399 esac
26400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26401 $as_echo "$ac_try_echo") >&5
26402   (eval "$ac_link") 2>conftest.er1
26403   ac_status=$?
26404   grep -v '^ *+' conftest.er1 >conftest.err
26405   rm -f conftest.er1
26406   cat conftest.err >&5
26407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408   (exit $ac_status); } && {
26409          test -z "$ac_c_werror_flag" ||
26410          test ! -s conftest.err
26411        } && test -s conftest$ac_exeext && {
26412          test "$cross_compiling" = yes ||
26413          $as_test_x conftest$ac_exeext
26414        }; then
26415   eval "$as_ac_var=yes"
26416 else
26417   $as_echo "$as_me: failed program was:" >&5
26418 sed 's/^/| /' conftest.$ac_ext >&5
26419
26420         eval "$as_ac_var=no"
26421 fi
26422
26423 rm -rf conftest.dSYM
26424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26425       conftest$ac_exeext conftest.$ac_ext
26426 fi
26427 ac_res=`eval 'as_val=${'$as_ac_var'}
26428                  $as_echo "$as_val"'`
26429                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26430 $as_echo "$ac_res" >&6; }
26431 as_val=`eval 'as_val=${'$as_ac_var'}
26432                  $as_echo "$as_val"'`
26433    if test "x$as_val" = x""yes; then
26434   cat >>confdefs.h <<_ACEOF
26435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26436 _ACEOF
26437
26438 else
26439
26440     wget_check_in_nsl=gethostbyname
26441
26442 fi
26443 done
26444
26445
26446 for ac_func in inet_ntoa
26447 do
26448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26449 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26450 $as_echo_n "checking for $ac_func... " >&6; }
26451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26452   $as_echo_n "(cached) " >&6
26453 else
26454   cat >conftest.$ac_ext <<_ACEOF
26455 /* confdefs.h.  */
26456 _ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h.  */
26460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26462 #define $ac_func innocuous_$ac_func
26463
26464 /* System header to define __stub macros and hopefully few prototypes,
26465     which can conflict with char $ac_func (); below.
26466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26467     <limits.h> exists even on freestanding compilers.  */
26468
26469 #ifdef __STDC__
26470 # include <limits.h>
26471 #else
26472 # include <assert.h>
26473 #endif
26474
26475 #undef $ac_func
26476
26477 /* Override any GCC internal prototype to avoid an error.
26478    Use char because int might match the return type of a GCC
26479    builtin and then its argument prototype would still apply.  */
26480 #ifdef __cplusplus
26481 extern "C"
26482 #endif
26483 char $ac_func ();
26484 /* The GNU C library defines this for functions which it implements
26485     to always fail with ENOSYS.  Some functions are actually named
26486     something starting with __ and the normal name is an alias.  */
26487 #if defined __stub_$ac_func || defined __stub___$ac_func
26488 choke me
26489 #endif
26490
26491 int
26492 main ()
26493 {
26494 return $ac_func ();
26495   ;
26496   return 0;
26497 }
26498 _ACEOF
26499 rm -f conftest.$ac_objext conftest$ac_exeext
26500 if { (ac_try="$ac_link"
26501 case "(($ac_try" in
26502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26503   *) ac_try_echo=$ac_try;;
26504 esac
26505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26506 $as_echo "$ac_try_echo") >&5
26507   (eval "$ac_link") 2>conftest.er1
26508   ac_status=$?
26509   grep -v '^ *+' conftest.er1 >conftest.err
26510   rm -f conftest.er1
26511   cat conftest.err >&5
26512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513   (exit $ac_status); } && {
26514          test -z "$ac_c_werror_flag" ||
26515          test ! -s conftest.err
26516        } && test -s conftest$ac_exeext && {
26517          test "$cross_compiling" = yes ||
26518          $as_test_x conftest$ac_exeext
26519        }; then
26520   eval "$as_ac_var=yes"
26521 else
26522   $as_echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26524
26525         eval "$as_ac_var=no"
26526 fi
26527
26528 rm -rf conftest.dSYM
26529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26530       conftest$ac_exeext conftest.$ac_ext
26531 fi
26532 ac_res=`eval 'as_val=${'$as_ac_var'}
26533                  $as_echo "$as_val"'`
26534                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26535 $as_echo "$ac_res" >&6; }
26536 as_val=`eval 'as_val=${'$as_ac_var'}
26537                  $as_echo "$as_val"'`
26538    if test "x$as_val" = x""yes; then
26539   cat >>confdefs.h <<_ACEOF
26540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26541 _ACEOF
26542
26543 else
26544
26545     wget_check_in_nsl=inet_ntoa
26546
26547 fi
26548 done
26549
26550   if test $wget_check_in_nsl != NONE; then
26551
26552 as_ac_Lib=`$as_echo "ac_cv_lib_nsl_$wget_check_in_nsl" | $as_tr_sh`
26553 { $as_echo "$as_me:$LINENO: checking for $wget_check_in_nsl in -lnsl" >&5
26554 $as_echo_n "checking for $wget_check_in_nsl in -lnsl... " >&6; }
26555 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26556   $as_echo_n "(cached) " >&6
26557 else
26558   ac_check_lib_save_LIBS=$LIBS
26559 LIBS="-lnsl  $LIBS"
26560 cat >conftest.$ac_ext <<_ACEOF
26561 /* confdefs.h.  */
26562 _ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h.  */
26566
26567 /* Override any GCC internal prototype to avoid an error.
26568    Use char because int might match the return type of a GCC
26569    builtin and then its argument prototype would still apply.  */
26570 #ifdef __cplusplus
26571 extern "C"
26572 #endif
26573 char $wget_check_in_nsl ();
26574 int
26575 main ()
26576 {
26577 return $wget_check_in_nsl ();
26578   ;
26579   return 0;
26580 }
26581 _ACEOF
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (ac_try="$ac_link"
26584 case "(($ac_try" in
26585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586   *) ac_try_echo=$ac_try;;
26587 esac
26588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26589 $as_echo "$ac_try_echo") >&5
26590   (eval "$ac_link") 2>conftest.er1
26591   ac_status=$?
26592   grep -v '^ *+' conftest.er1 >conftest.err
26593   rm -f conftest.er1
26594   cat conftest.err >&5
26595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596   (exit $ac_status); } && {
26597          test -z "$ac_c_werror_flag" ||
26598          test ! -s conftest.err
26599        } && test -s conftest$ac_exeext && {
26600          test "$cross_compiling" = yes ||
26601          $as_test_x conftest$ac_exeext
26602        }; then
26603   eval "$as_ac_Lib=yes"
26604 else
26605   $as_echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26607
26608         eval "$as_ac_Lib=no"
26609 fi
26610
26611 rm -rf conftest.dSYM
26612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26613       conftest$ac_exeext conftest.$ac_ext
26614 LIBS=$ac_check_lib_save_LIBS
26615 fi
26616 ac_res=`eval 'as_val=${'$as_ac_Lib'}
26617                  $as_echo "$as_val"'`
26618                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26619 $as_echo "$ac_res" >&6; }
26620 as_val=`eval 'as_val=${'$as_ac_Lib'}
26621                  $as_echo "$as_val"'`
26622    if test "x$as_val" = x""yes; then
26623   cat >>confdefs.h <<_ACEOF
26624 #define HAVE_LIBNSL 1
26625 _ACEOF
26626
26627   LIBS="-lnsl $LIBS"
26628
26629 fi
26630
26631   fi
26632
26633 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26634 $as_echo_n "checking for socket in -lsocket... " >&6; }
26635 if test "${ac_cv_lib_socket_socket+set}" = set; then
26636   $as_echo_n "(cached) " >&6
26637 else
26638   ac_check_lib_save_LIBS=$LIBS
26639 LIBS="-lsocket  $LIBS"
26640 cat >conftest.$ac_ext <<_ACEOF
26641 /* confdefs.h.  */
26642 _ACEOF
26643 cat confdefs.h >>conftest.$ac_ext
26644 cat >>conftest.$ac_ext <<_ACEOF
26645 /* end confdefs.h.  */
26646
26647 /* Override any GCC internal prototype to avoid an error.
26648    Use char because int might match the return type of a GCC
26649    builtin and then its argument prototype would still apply.  */
26650 #ifdef __cplusplus
26651 extern "C"
26652 #endif
26653 char socket ();
26654 int
26655 main ()
26656 {
26657 return socket ();
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 rm -f conftest.$ac_objext conftest$ac_exeext
26663 if { (ac_try="$ac_link"
26664 case "(($ac_try" in
26665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666   *) ac_try_echo=$ac_try;;
26667 esac
26668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26669 $as_echo "$ac_try_echo") >&5
26670   (eval "$ac_link") 2>conftest.er1
26671   ac_status=$?
26672   grep -v '^ *+' conftest.er1 >conftest.err
26673   rm -f conftest.er1
26674   cat conftest.err >&5
26675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } && {
26677          test -z "$ac_c_werror_flag" ||
26678          test ! -s conftest.err
26679        } && test -s conftest$ac_exeext && {
26680          test "$cross_compiling" = yes ||
26681          $as_test_x conftest$ac_exeext
26682        }; then
26683   ac_cv_lib_socket_socket=yes
26684 else
26685   $as_echo "$as_me: failed program was:" >&5
26686 sed 's/^/| /' conftest.$ac_ext >&5
26687
26688         ac_cv_lib_socket_socket=no
26689 fi
26690
26691 rm -rf conftest.dSYM
26692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26693       conftest$ac_exeext conftest.$ac_ext
26694 LIBS=$ac_check_lib_save_LIBS
26695 fi
26696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26697 $as_echo "$ac_cv_lib_socket_socket" >&6; }
26698 if test "x$ac_cv_lib_socket_socket" = x""yes; then
26699   cat >>confdefs.h <<_ACEOF
26700 #define HAVE_LIBSOCKET 1
26701 _ACEOF
26702
26703   LIBS="-lsocket $LIBS"
26704
26705 fi
26706
26707
26708
26709
26710 if test x"$with_ssl" = xgnutls; then
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722     use_additional=yes
26723
26724   acl_save_prefix="$prefix"
26725   prefix="$acl_final_prefix"
26726   acl_save_exec_prefix="$exec_prefix"
26727   exec_prefix="$acl_final_exec_prefix"
26728
26729     eval additional_includedir=\"$includedir\"
26730     eval additional_libdir=\"$libdir\"
26731
26732   exec_prefix="$acl_save_exec_prefix"
26733   prefix="$acl_save_prefix"
26734
26735
26736 # Check whether --with-libgnutls-prefix was given.
26737 if test "${with_libgnutls_prefix+set}" = set; then
26738   withval=$with_libgnutls_prefix;
26739     if test "X$withval" = "Xno"; then
26740       use_additional=no
26741     else
26742       if test "X$withval" = "X"; then
26743
26744   acl_save_prefix="$prefix"
26745   prefix="$acl_final_prefix"
26746   acl_save_exec_prefix="$exec_prefix"
26747   exec_prefix="$acl_final_exec_prefix"
26748
26749           eval additional_includedir=\"$includedir\"
26750           eval additional_libdir=\"$libdir\"
26751
26752   exec_prefix="$acl_save_exec_prefix"
26753   prefix="$acl_save_prefix"
26754
26755       else
26756         additional_includedir="$withval/include"
26757         additional_libdir="$withval/$acl_libdirstem"
26758       fi
26759     fi
26760
26761 fi
26762
26763       LIBGNUTLS=
26764   LTLIBGNUTLS=
26765   INCGNUTLS=
26766   LIBGNUTLS_PREFIX=
26767   rpathdirs=
26768   ltrpathdirs=
26769   names_already_handled=
26770   names_next_round='gnutls '
26771   while test -n "$names_next_round"; do
26772     names_this_round="$names_next_round"
26773     names_next_round=
26774     for name in $names_this_round; do
26775       already_handled=
26776       for n in $names_already_handled; do
26777         if test "$n" = "$name"; then
26778           already_handled=yes
26779           break
26780         fi
26781       done
26782       if test -z "$already_handled"; then
26783         names_already_handled="$names_already_handled $name"
26784                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26785         eval value=\"\$HAVE_LIB$uppername\"
26786         if test -n "$value"; then
26787           if test "$value" = yes; then
26788             eval value=\"\$LIB$uppername\"
26789             test -z "$value" || LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$value"
26790             eval value=\"\$LTLIB$uppername\"
26791             test -z "$value" || LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$value"
26792           else
26793                                     :
26794           fi
26795         else
26796                               found_dir=
26797           found_la=
26798           found_so=
26799           found_a=
26800           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
26801           if test -n "$acl_shlibext"; then
26802             shrext=".$acl_shlibext"             # typically: shrext=.so
26803           else
26804             shrext=
26805           fi
26806           if test $use_additional = yes; then
26807             dir="$additional_libdir"
26808                                     if test -n "$acl_shlibext"; then
26809               if test -f "$dir/$libname$shrext"; then
26810                 found_dir="$dir"
26811                 found_so="$dir/$libname$shrext"
26812               else
26813                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26814                   ver=`(cd "$dir" && \
26815                         for f in "$libname$shrext".*; do echo "$f"; done \
26816                         | sed -e "s,^$libname$shrext\\\\.,," \
26817                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26818                         | sed 1q ) 2>/dev/null`
26819                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26820                     found_dir="$dir"
26821                     found_so="$dir/$libname$shrext.$ver"
26822                   fi
26823                 else
26824                   eval library_names=\"$acl_library_names_spec\"
26825                   for f in $library_names; do
26826                     if test -f "$dir/$f"; then
26827                       found_dir="$dir"
26828                       found_so="$dir/$f"
26829                       break
26830                     fi
26831                   done
26832                 fi
26833               fi
26834             fi
26835                         if test "X$found_dir" = "X"; then
26836               if test -f "$dir/$libname.$acl_libext"; then
26837                 found_dir="$dir"
26838                 found_a="$dir/$libname.$acl_libext"
26839               fi
26840             fi
26841             if test "X$found_dir" != "X"; then
26842               if test -f "$dir/$libname.la"; then
26843                 found_la="$dir/$libname.la"
26844               fi
26845             fi
26846           fi
26847           if test "X$found_dir" = "X"; then
26848             for x in $LDFLAGS $LTLIBGNUTLS; do
26849
26850   acl_save_prefix="$prefix"
26851   prefix="$acl_final_prefix"
26852   acl_save_exec_prefix="$exec_prefix"
26853   exec_prefix="$acl_final_exec_prefix"
26854   eval x=\"$x\"
26855   exec_prefix="$acl_save_exec_prefix"
26856   prefix="$acl_save_prefix"
26857
26858               case "$x" in
26859                 -L*)
26860                   dir=`echo "X$x" | sed -e 's/^X-L//'`
26861                                     if test -n "$acl_shlibext"; then
26862                     if test -f "$dir/$libname$shrext"; then
26863                       found_dir="$dir"
26864                       found_so="$dir/$libname$shrext"
26865                     else
26866                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26867                         ver=`(cd "$dir" && \
26868                               for f in "$libname$shrext".*; do echo "$f"; done \
26869                               | sed -e "s,^$libname$shrext\\\\.,," \
26870                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26871                               | sed 1q ) 2>/dev/null`
26872                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26873                           found_dir="$dir"
26874                           found_so="$dir/$libname$shrext.$ver"
26875                         fi
26876                       else
26877                         eval library_names=\"$acl_library_names_spec\"
26878                         for f in $library_names; do
26879                           if test -f "$dir/$f"; then
26880                             found_dir="$dir"
26881                             found_so="$dir/$f"
26882                             break
26883                           fi
26884                         done
26885                       fi
26886                     fi
26887                   fi
26888                                     if test "X$found_dir" = "X"; then
26889                     if test -f "$dir/$libname.$acl_libext"; then
26890                       found_dir="$dir"
26891                       found_a="$dir/$libname.$acl_libext"
26892                     fi
26893                   fi
26894                   if test "X$found_dir" != "X"; then
26895                     if test -f "$dir/$libname.la"; then
26896                       found_la="$dir/$libname.la"
26897                     fi
26898                   fi
26899                   ;;
26900               esac
26901               if test "X$found_dir" != "X"; then
26902                 break
26903               fi
26904             done
26905           fi
26906           if test "X$found_dir" != "X"; then
26907                         LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$found_dir -l$name"
26908             if test "X$found_so" != "X"; then
26909                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
26910                                 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26911               else
26912                                                                                 haveit=
26913                 for x in $ltrpathdirs; do
26914                   if test "X$x" = "X$found_dir"; then
26915                     haveit=yes
26916                     break
26917                   fi
26918                 done
26919                 if test -z "$haveit"; then
26920                   ltrpathdirs="$ltrpathdirs $found_dir"
26921                 fi
26922                                 if test "$acl_hardcode_direct" = yes; then
26923                                                       LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26924                 else
26925                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26926                                                             LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26927                                                             haveit=
26928                     for x in $rpathdirs; do
26929                       if test "X$x" = "X$found_dir"; then
26930                         haveit=yes
26931                         break
26932                       fi
26933                     done
26934                     if test -z "$haveit"; then
26935                       rpathdirs="$rpathdirs $found_dir"
26936                     fi
26937                   else
26938                                                                                 haveit=
26939                     for x in $LDFLAGS $LIBGNUTLS; do
26940
26941   acl_save_prefix="$prefix"
26942   prefix="$acl_final_prefix"
26943   acl_save_exec_prefix="$exec_prefix"
26944   exec_prefix="$acl_final_exec_prefix"
26945   eval x=\"$x\"
26946   exec_prefix="$acl_save_exec_prefix"
26947   prefix="$acl_save_prefix"
26948
26949                       if test "X$x" = "X-L$found_dir"; then
26950                         haveit=yes
26951                         break
26952                       fi
26953                     done
26954                     if test -z "$haveit"; then
26955                       LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir"
26956                     fi
26957                     if test "$acl_hardcode_minus_L" != no; then
26958                                                                                         LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
26959                     else
26960                                                                                                                                                                                 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
26961                     fi
26962                   fi
26963                 fi
26964               fi
26965             else
26966               if test "X$found_a" != "X"; then
26967                                 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_a"
26968               else
26969                                                 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir -l$name"
26970               fi
26971             fi
26972                         additional_includedir=
26973             case "$found_dir" in
26974               */$acl_libdirstem | */$acl_libdirstem/)
26975                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26976                 LIBGNUTLS_PREFIX="$basedir"
26977                 additional_includedir="$basedir/include"
26978                 ;;
26979             esac
26980             if test "X$additional_includedir" != "X"; then
26981                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
26982                 haveit=
26983                 if test "X$additional_includedir" = "X/usr/local/include"; then
26984                   if test -n "$GCC"; then
26985                     case $host_os in
26986                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26987                     esac
26988                   fi
26989                 fi
26990                 if test -z "$haveit"; then
26991                   for x in $CPPFLAGS $INCGNUTLS; do
26992
26993   acl_save_prefix="$prefix"
26994   prefix="$acl_final_prefix"
26995   acl_save_exec_prefix="$exec_prefix"
26996   exec_prefix="$acl_final_exec_prefix"
26997   eval x=\"$x\"
26998   exec_prefix="$acl_save_exec_prefix"
26999   prefix="$acl_save_prefix"
27000
27001                     if test "X$x" = "X-I$additional_includedir"; then
27002                       haveit=yes
27003                       break
27004                     fi
27005                   done
27006                   if test -z "$haveit"; then
27007                     if test -d "$additional_includedir"; then
27008                                             INCGNUTLS="${INCGNUTLS}${INCGNUTLS:+ }-I$additional_includedir"
27009                     fi
27010                   fi
27011                 fi
27012               fi
27013             fi
27014                         if test -n "$found_la"; then
27015                                                         save_libdir="$libdir"
27016               case "$found_la" in
27017                 */* | *\\*) . "$found_la" ;;
27018                 *) . "./$found_la" ;;
27019               esac
27020               libdir="$save_libdir"
27021                             for dep in $dependency_libs; do
27022                 case "$dep" in
27023                   -L*)
27024                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27025                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27026                       haveit=
27027                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27028                         if test -n "$GCC"; then
27029                           case $host_os in
27030                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27031                           esac
27032                         fi
27033                       fi
27034                       if test -z "$haveit"; then
27035                         haveit=
27036                         for x in $LDFLAGS $LIBGNUTLS; do
27037
27038   acl_save_prefix="$prefix"
27039   prefix="$acl_final_prefix"
27040   acl_save_exec_prefix="$exec_prefix"
27041   exec_prefix="$acl_final_exec_prefix"
27042   eval x=\"$x\"
27043   exec_prefix="$acl_save_exec_prefix"
27044   prefix="$acl_save_prefix"
27045
27046                           if test "X$x" = "X-L$additional_libdir"; then
27047                             haveit=yes
27048                             break
27049                           fi
27050                         done
27051                         if test -z "$haveit"; then
27052                           if test -d "$additional_libdir"; then
27053                                                         LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$additional_libdir"
27054                           fi
27055                         fi
27056                         haveit=
27057                         for x in $LDFLAGS $LTLIBGNUTLS; do
27058
27059   acl_save_prefix="$prefix"
27060   prefix="$acl_final_prefix"
27061   acl_save_exec_prefix="$exec_prefix"
27062   exec_prefix="$acl_final_exec_prefix"
27063   eval x=\"$x\"
27064   exec_prefix="$acl_save_exec_prefix"
27065   prefix="$acl_save_prefix"
27066
27067                           if test "X$x" = "X-L$additional_libdir"; then
27068                             haveit=yes
27069                             break
27070                           fi
27071                         done
27072                         if test -z "$haveit"; then
27073                           if test -d "$additional_libdir"; then
27074                                                         LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$additional_libdir"
27075                           fi
27076                         fi
27077                       fi
27078                     fi
27079                     ;;
27080                   -R*)
27081                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
27082                     if test "$enable_rpath" != no; then
27083                                                                   haveit=
27084                       for x in $rpathdirs; do
27085                         if test "X$x" = "X$dir"; then
27086                           haveit=yes
27087                           break
27088                         fi
27089                       done
27090                       if test -z "$haveit"; then
27091                         rpathdirs="$rpathdirs $dir"
27092                       fi
27093                                                                   haveit=
27094                       for x in $ltrpathdirs; do
27095                         if test "X$x" = "X$dir"; then
27096                           haveit=yes
27097                           break
27098                         fi
27099                       done
27100                       if test -z "$haveit"; then
27101                         ltrpathdirs="$ltrpathdirs $dir"
27102                       fi
27103                     fi
27104                     ;;
27105                   -l*)
27106                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27107                     ;;
27108                   *.la)
27109                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27110                     ;;
27111                   *)
27112                                         LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$dep"
27113                     LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$dep"
27114                     ;;
27115                 esac
27116               done
27117             fi
27118           else
27119                                                             LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
27120             LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-l$name"
27121           fi
27122         fi
27123       fi
27124     done
27125   done
27126   if test "X$rpathdirs" != "X"; then
27127     if test -n "$acl_hardcode_libdir_separator"; then
27128                         alldirs=
27129       for found_dir in $rpathdirs; do
27130         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27131       done
27132             acl_save_libdir="$libdir"
27133       libdir="$alldirs"
27134       eval flag=\"$acl_hardcode_libdir_flag_spec\"
27135       libdir="$acl_save_libdir"
27136       LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
27137     else
27138             for found_dir in $rpathdirs; do
27139         acl_save_libdir="$libdir"
27140         libdir="$found_dir"
27141         eval flag=\"$acl_hardcode_libdir_flag_spec\"
27142         libdir="$acl_save_libdir"
27143         LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
27144       done
27145     fi
27146   fi
27147   if test "X$ltrpathdirs" != "X"; then
27148             for found_dir in $ltrpathdirs; do
27149       LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-R$found_dir"
27150     done
27151   fi
27152
27153
27154         ac_save_CPPFLAGS="$CPPFLAGS"
27155
27156   for element in $INCGNUTLS; do
27157     haveit=
27158     for x in $CPPFLAGS; do
27159
27160   acl_save_prefix="$prefix"
27161   prefix="$acl_final_prefix"
27162   acl_save_exec_prefix="$exec_prefix"
27163   exec_prefix="$acl_final_exec_prefix"
27164   eval x=\"$x\"
27165   exec_prefix="$acl_save_exec_prefix"
27166   prefix="$acl_save_prefix"
27167
27168       if test "X$x" = "X$element"; then
27169         haveit=yes
27170         break
27171       fi
27172     done
27173     if test -z "$haveit"; then
27174       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27175     fi
27176   done
27177
27178
27179   { $as_echo "$as_me:$LINENO: checking for libgnutls" >&5
27180 $as_echo_n "checking for libgnutls... " >&6; }
27181 if test "${ac_cv_libgnutls+set}" = set; then
27182   $as_echo_n "(cached) " >&6
27183 else
27184
27185     ac_save_LIBS="$LIBS"
27186     LIBS="$LIBS $LIBGNUTLS"
27187     cat >conftest.$ac_ext <<_ACEOF
27188 /* confdefs.h.  */
27189 _ACEOF
27190 cat confdefs.h >>conftest.$ac_ext
27191 cat >>conftest.$ac_ext <<_ACEOF
27192 /* end confdefs.h.  */
27193
27194 #include <gnutls/gnutls.h>
27195
27196 int
27197 main ()
27198 {
27199 gnutls_global_init()
27200   ;
27201   return 0;
27202 }
27203 _ACEOF
27204 rm -f conftest.$ac_objext conftest$ac_exeext
27205 if { (ac_try="$ac_link"
27206 case "(($ac_try" in
27207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208   *) ac_try_echo=$ac_try;;
27209 esac
27210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27211 $as_echo "$ac_try_echo") >&5
27212   (eval "$ac_link") 2>conftest.er1
27213   ac_status=$?
27214   grep -v '^ *+' conftest.er1 >conftest.err
27215   rm -f conftest.er1
27216   cat conftest.err >&5
27217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218   (exit $ac_status); } && {
27219          test -z "$ac_c_werror_flag" ||
27220          test ! -s conftest.err
27221        } && test -s conftest$ac_exeext && {
27222          test "$cross_compiling" = yes ||
27223          $as_test_x conftest$ac_exeext
27224        }; then
27225   ac_cv_libgnutls=yes
27226 else
27227   $as_echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27229
27230         ac_cv_libgnutls=no
27231 fi
27232
27233 rm -rf conftest.dSYM
27234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27235       conftest$ac_exeext conftest.$ac_ext
27236     LIBS="$ac_save_LIBS"
27237
27238 fi
27239 { $as_echo "$as_me:$LINENO: result: $ac_cv_libgnutls" >&5
27240 $as_echo "$ac_cv_libgnutls" >&6; }
27241   if test "$ac_cv_libgnutls" = yes; then
27242     HAVE_LIBGNUTLS=yes
27243
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_LIBGNUTLS 1
27246 _ACEOF
27247
27248     { $as_echo "$as_me:$LINENO: checking how to link with libgnutls" >&5
27249 $as_echo_n "checking how to link with libgnutls... " >&6; }
27250     { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS" >&5
27251 $as_echo "$LIBGNUTLS" >&6; }
27252   else
27253     HAVE_LIBGNUTLS=no
27254             CPPFLAGS="$ac_save_CPPFLAGS"
27255     LIBGNUTLS=
27256     LTLIBGNUTLS=
27257     LIBGNUTLS_PREFIX=
27258   fi
27259
27260
27261
27262
27263
27264
27265
27266   if test x"$LIBGNUTLS" != x
27267   then
27268     { $as_echo "$as_me:$LINENO: compiling in support for SSL via GnuTLS" >&5
27269 $as_echo "$as_me: compiling in support for SSL via GnuTLS" >&6;}
27270     case " $LIBOBJS " in
27271   *" gnutls.$ac_objext "* ) ;;
27272   *) LIBOBJS="$LIBOBJS gnutls.$ac_objext"
27273  ;;
27274 esac
27275
27276   else
27277     { { $as_echo "$as_me:$LINENO: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&5
27278 $as_echo "$as_me: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&2;}
27279    { (exit 1); exit 1; }; }
27280   fi
27281
27282 else
27283
27284   # --with-ssl is not gnutls: check if it's no
27285   if test x"$with_ssl" != xno; then
27286
27287
27288 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27289 $as_echo_n "checking for dlopen in -ldl... " >&6; }
27290 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27291   $as_echo_n "(cached) " >&6
27292 else
27293   ac_check_lib_save_LIBS=$LIBS
27294 LIBS="-ldl  $LIBS"
27295 cat >conftest.$ac_ext <<_ACEOF
27296 /* confdefs.h.  */
27297 _ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h.  */
27301
27302 /* Override any GCC internal prototype to avoid an error.
27303    Use char because int might match the return type of a GCC
27304    builtin and then its argument prototype would still apply.  */
27305 #ifdef __cplusplus
27306 extern "C"
27307 #endif
27308 char dlopen ();
27309 int
27310 main ()
27311 {
27312 return dlopen ();
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest.$ac_objext conftest$ac_exeext
27318 if { (ac_try="$ac_link"
27319 case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27324 $as_echo "$ac_try_echo") >&5
27325   (eval "$ac_link") 2>conftest.er1
27326   ac_status=$?
27327   grep -v '^ *+' conftest.er1 >conftest.err
27328   rm -f conftest.er1
27329   cat conftest.err >&5
27330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); } && {
27332          test -z "$ac_c_werror_flag" ||
27333          test ! -s conftest.err
27334        } && test -s conftest$ac_exeext && {
27335          test "$cross_compiling" = yes ||
27336          $as_test_x conftest$ac_exeext
27337        }; then
27338   ac_cv_lib_dl_dlopen=yes
27339 else
27340   $as_echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343         ac_cv_lib_dl_dlopen=no
27344 fi
27345
27346 rm -rf conftest.dSYM
27347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27348       conftest$ac_exeext conftest.$ac_ext
27349 LIBS=$ac_check_lib_save_LIBS
27350 fi
27351 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27352 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27353 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
27354   cat >>confdefs.h <<_ACEOF
27355 #define HAVE_LIBDL 1
27356 _ACEOF
27357
27358   LIBS="-ldl $LIBS"
27359
27360 else
27361
27362
27363 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldl" >&5
27364 $as_echo_n "checking for shl_load in -ldl... " >&6; }
27365 if test "${ac_cv_lib_dl_shl_load+set}" = set; then
27366   $as_echo_n "(cached) " >&6
27367 else
27368   ac_check_lib_save_LIBS=$LIBS
27369 LIBS="-ldl  $LIBS"
27370 cat >conftest.$ac_ext <<_ACEOF
27371 /* confdefs.h.  */
27372 _ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h.  */
27376
27377 /* Override any GCC internal prototype to avoid an error.
27378    Use char because int might match the return type of a GCC
27379    builtin and then its argument prototype would still apply.  */
27380 #ifdef __cplusplus
27381 extern "C"
27382 #endif
27383 char shl_load ();
27384 int
27385 main ()
27386 {
27387 return shl_load ();
27388   ;
27389   return 0;
27390 }
27391 _ACEOF
27392 rm -f conftest.$ac_objext conftest$ac_exeext
27393 if { (ac_try="$ac_link"
27394 case "(($ac_try" in
27395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396   *) ac_try_echo=$ac_try;;
27397 esac
27398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27399 $as_echo "$ac_try_echo") >&5
27400   (eval "$ac_link") 2>conftest.er1
27401   ac_status=$?
27402   grep -v '^ *+' conftest.er1 >conftest.err
27403   rm -f conftest.er1
27404   cat conftest.err >&5
27405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); } && {
27407          test -z "$ac_c_werror_flag" ||
27408          test ! -s conftest.err
27409        } && test -s conftest$ac_exeext && {
27410          test "$cross_compiling" = yes ||
27411          $as_test_x conftest$ac_exeext
27412        }; then
27413   ac_cv_lib_dl_shl_load=yes
27414 else
27415   $as_echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27417
27418         ac_cv_lib_dl_shl_load=no
27419 fi
27420
27421 rm -rf conftest.dSYM
27422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27423       conftest$ac_exeext conftest.$ac_ext
27424 LIBS=$ac_check_lib_save_LIBS
27425 fi
27426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_shl_load" >&5
27427 $as_echo "$ac_cv_lib_dl_shl_load" >&6; }
27428 if test "x$ac_cv_lib_dl_shl_load" = x""yes; then
27429   cat >>confdefs.h <<_ACEOF
27430 #define HAVE_LIBDL 1
27431 _ACEOF
27432
27433   LIBS="-ldl $LIBS"
27434
27435 fi
27436
27437
27438 fi
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451     use_additional=yes
27452
27453   acl_save_prefix="$prefix"
27454   prefix="$acl_final_prefix"
27455   acl_save_exec_prefix="$exec_prefix"
27456   exec_prefix="$acl_final_exec_prefix"
27457
27458     eval additional_includedir=\"$includedir\"
27459     eval additional_libdir=\"$libdir\"
27460
27461   exec_prefix="$acl_save_exec_prefix"
27462   prefix="$acl_save_prefix"
27463
27464
27465 # Check whether --with-libssl-prefix was given.
27466 if test "${with_libssl_prefix+set}" = set; then
27467   withval=$with_libssl_prefix;
27468     if test "X$withval" = "Xno"; then
27469       use_additional=no
27470     else
27471       if test "X$withval" = "X"; then
27472
27473   acl_save_prefix="$prefix"
27474   prefix="$acl_final_prefix"
27475   acl_save_exec_prefix="$exec_prefix"
27476   exec_prefix="$acl_final_exec_prefix"
27477
27478           eval additional_includedir=\"$includedir\"
27479           eval additional_libdir=\"$libdir\"
27480
27481   exec_prefix="$acl_save_exec_prefix"
27482   prefix="$acl_save_prefix"
27483
27484       else
27485         additional_includedir="$withval/include"
27486         additional_libdir="$withval/$acl_libdirstem"
27487       fi
27488     fi
27489
27490 fi
27491
27492       LIBSSL=
27493   LTLIBSSL=
27494   INCSSL=
27495   LIBSSL_PREFIX=
27496   rpathdirs=
27497   ltrpathdirs=
27498   names_already_handled=
27499   names_next_round='ssl crypto'
27500   while test -n "$names_next_round"; do
27501     names_this_round="$names_next_round"
27502     names_next_round=
27503     for name in $names_this_round; do
27504       already_handled=
27505       for n in $names_already_handled; do
27506         if test "$n" = "$name"; then
27507           already_handled=yes
27508           break
27509         fi
27510       done
27511       if test -z "$already_handled"; then
27512         names_already_handled="$names_already_handled $name"
27513                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27514         eval value=\"\$HAVE_LIB$uppername\"
27515         if test -n "$value"; then
27516           if test "$value" = yes; then
27517             eval value=\"\$LIB$uppername\"
27518             test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value"
27519             eval value=\"\$LTLIB$uppername\"
27520             test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value"
27521           else
27522                                     :
27523           fi
27524         else
27525                               found_dir=
27526           found_la=
27527           found_so=
27528           found_a=
27529           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
27530           if test -n "$acl_shlibext"; then
27531             shrext=".$acl_shlibext"             # typically: shrext=.so
27532           else
27533             shrext=
27534           fi
27535           if test $use_additional = yes; then
27536             dir="$additional_libdir"
27537                                     if test -n "$acl_shlibext"; then
27538               if test -f "$dir/$libname$shrext"; then
27539                 found_dir="$dir"
27540                 found_so="$dir/$libname$shrext"
27541               else
27542                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27543                   ver=`(cd "$dir" && \
27544                         for f in "$libname$shrext".*; do echo "$f"; done \
27545                         | sed -e "s,^$libname$shrext\\\\.,," \
27546                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27547                         | sed 1q ) 2>/dev/null`
27548                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27549                     found_dir="$dir"
27550                     found_so="$dir/$libname$shrext.$ver"
27551                   fi
27552                 else
27553                   eval library_names=\"$acl_library_names_spec\"
27554                   for f in $library_names; do
27555                     if test -f "$dir/$f"; then
27556                       found_dir="$dir"
27557                       found_so="$dir/$f"
27558                       break
27559                     fi
27560                   done
27561                 fi
27562               fi
27563             fi
27564                         if test "X$found_dir" = "X"; then
27565               if test -f "$dir/$libname.$acl_libext"; then
27566                 found_dir="$dir"
27567                 found_a="$dir/$libname.$acl_libext"
27568               fi
27569             fi
27570             if test "X$found_dir" != "X"; then
27571               if test -f "$dir/$libname.la"; then
27572                 found_la="$dir/$libname.la"
27573               fi
27574             fi
27575           fi
27576           if test "X$found_dir" = "X"; then
27577             for x in $LDFLAGS $LTLIBSSL; do
27578
27579   acl_save_prefix="$prefix"
27580   prefix="$acl_final_prefix"
27581   acl_save_exec_prefix="$exec_prefix"
27582   exec_prefix="$acl_final_exec_prefix"
27583   eval x=\"$x\"
27584   exec_prefix="$acl_save_exec_prefix"
27585   prefix="$acl_save_prefix"
27586
27587               case "$x" in
27588                 -L*)
27589                   dir=`echo "X$x" | sed -e 's/^X-L//'`
27590                                     if test -n "$acl_shlibext"; then
27591                     if test -f "$dir/$libname$shrext"; then
27592                       found_dir="$dir"
27593                       found_so="$dir/$libname$shrext"
27594                     else
27595                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27596                         ver=`(cd "$dir" && \
27597                               for f in "$libname$shrext".*; do echo "$f"; done \
27598                               | sed -e "s,^$libname$shrext\\\\.,," \
27599                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27600                               | sed 1q ) 2>/dev/null`
27601                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27602                           found_dir="$dir"
27603                           found_so="$dir/$libname$shrext.$ver"
27604                         fi
27605                       else
27606                         eval library_names=\"$acl_library_names_spec\"
27607                         for f in $library_names; do
27608                           if test -f "$dir/$f"; then
27609                             found_dir="$dir"
27610                             found_so="$dir/$f"
27611                             break
27612                           fi
27613                         done
27614                       fi
27615                     fi
27616                   fi
27617                                     if test "X$found_dir" = "X"; then
27618                     if test -f "$dir/$libname.$acl_libext"; then
27619                       found_dir="$dir"
27620                       found_a="$dir/$libname.$acl_libext"
27621                     fi
27622                   fi
27623                   if test "X$found_dir" != "X"; then
27624                     if test -f "$dir/$libname.la"; then
27625                       found_la="$dir/$libname.la"
27626                     fi
27627                   fi
27628                   ;;
27629               esac
27630               if test "X$found_dir" != "X"; then
27631                 break
27632               fi
27633             done
27634           fi
27635           if test "X$found_dir" != "X"; then
27636                         LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
27637             if test "X$found_so" != "X"; then
27638                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
27639                                 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27640               else
27641                                                                                 haveit=
27642                 for x in $ltrpathdirs; do
27643                   if test "X$x" = "X$found_dir"; then
27644                     haveit=yes
27645                     break
27646                   fi
27647                 done
27648                 if test -z "$haveit"; then
27649                   ltrpathdirs="$ltrpathdirs $found_dir"
27650                 fi
27651                                 if test "$acl_hardcode_direct" = yes; then
27652                                                       LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27653                 else
27654                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
27655                                                             LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27656                                                             haveit=
27657                     for x in $rpathdirs; do
27658                       if test "X$x" = "X$found_dir"; then
27659                         haveit=yes
27660                         break
27661                       fi
27662                     done
27663                     if test -z "$haveit"; then
27664                       rpathdirs="$rpathdirs $found_dir"
27665                     fi
27666                   else
27667                                                                                 haveit=
27668                     for x in $LDFLAGS $LIBSSL; do
27669
27670   acl_save_prefix="$prefix"
27671   prefix="$acl_final_prefix"
27672   acl_save_exec_prefix="$exec_prefix"
27673   exec_prefix="$acl_final_exec_prefix"
27674   eval x=\"$x\"
27675   exec_prefix="$acl_save_exec_prefix"
27676   prefix="$acl_save_prefix"
27677
27678                       if test "X$x" = "X-L$found_dir"; then
27679                         haveit=yes
27680                         break
27681                       fi
27682                     done
27683                     if test -z "$haveit"; then
27684                       LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
27685                     fi
27686                     if test "$acl_hardcode_minus_L" != no; then
27687                                                                                         LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
27688                     else
27689                                                                                                                                                                                 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
27690                     fi
27691                   fi
27692                 fi
27693               fi
27694             else
27695               if test "X$found_a" != "X"; then
27696                                 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a"
27697               else
27698                                                 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name"
27699               fi
27700             fi
27701                         additional_includedir=
27702             case "$found_dir" in
27703               */$acl_libdirstem | */$acl_libdirstem/)
27704                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27705                 LIBSSL_PREFIX="$basedir"
27706                 additional_includedir="$basedir/include"
27707                 ;;
27708             esac
27709             if test "X$additional_includedir" != "X"; then
27710                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
27711                 haveit=
27712                 if test "X$additional_includedir" = "X/usr/local/include"; then
27713                   if test -n "$GCC"; then
27714                     case $host_os in
27715                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27716                     esac
27717                   fi
27718                 fi
27719                 if test -z "$haveit"; then
27720                   for x in $CPPFLAGS $INCSSL; do
27721
27722   acl_save_prefix="$prefix"
27723   prefix="$acl_final_prefix"
27724   acl_save_exec_prefix="$exec_prefix"
27725   exec_prefix="$acl_final_exec_prefix"
27726   eval x=\"$x\"
27727   exec_prefix="$acl_save_exec_prefix"
27728   prefix="$acl_save_prefix"
27729
27730                     if test "X$x" = "X-I$additional_includedir"; then
27731                       haveit=yes
27732                       break
27733                     fi
27734                   done
27735                   if test -z "$haveit"; then
27736                     if test -d "$additional_includedir"; then
27737                                             INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir"
27738                     fi
27739                   fi
27740                 fi
27741               fi
27742             fi
27743                         if test -n "$found_la"; then
27744                                                         save_libdir="$libdir"
27745               case "$found_la" in
27746                 */* | *\\*) . "$found_la" ;;
27747                 *) . "./$found_la" ;;
27748               esac
27749               libdir="$save_libdir"
27750                             for dep in $dependency_libs; do
27751                 case "$dep" in
27752                   -L*)
27753                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27754                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27755                       haveit=
27756                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27757                         if test -n "$GCC"; then
27758                           case $host_os in
27759                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27760                           esac
27761                         fi
27762                       fi
27763                       if test -z "$haveit"; then
27764                         haveit=
27765                         for x in $LDFLAGS $LIBSSL; do
27766
27767   acl_save_prefix="$prefix"
27768   prefix="$acl_final_prefix"
27769   acl_save_exec_prefix="$exec_prefix"
27770   exec_prefix="$acl_final_exec_prefix"
27771   eval x=\"$x\"
27772   exec_prefix="$acl_save_exec_prefix"
27773   prefix="$acl_save_prefix"
27774
27775                           if test "X$x" = "X-L$additional_libdir"; then
27776                             haveit=yes
27777                             break
27778                           fi
27779                         done
27780                         if test -z "$haveit"; then
27781                           if test -d "$additional_libdir"; then
27782                                                         LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir"
27783                           fi
27784                         fi
27785                         haveit=
27786                         for x in $LDFLAGS $LTLIBSSL; do
27787
27788   acl_save_prefix="$prefix"
27789   prefix="$acl_final_prefix"
27790   acl_save_exec_prefix="$exec_prefix"
27791   exec_prefix="$acl_final_exec_prefix"
27792   eval x=\"$x\"
27793   exec_prefix="$acl_save_exec_prefix"
27794   prefix="$acl_save_prefix"
27795
27796                           if test "X$x" = "X-L$additional_libdir"; then
27797                             haveit=yes
27798                             break
27799                           fi
27800                         done
27801                         if test -z "$haveit"; then
27802                           if test -d "$additional_libdir"; then
27803                                                         LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir"
27804                           fi
27805                         fi
27806                       fi
27807                     fi
27808                     ;;
27809                   -R*)
27810                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
27811                     if test "$enable_rpath" != no; then
27812                                                                   haveit=
27813                       for x in $rpathdirs; do
27814                         if test "X$x" = "X$dir"; then
27815                           haveit=yes
27816                           break
27817                         fi
27818                       done
27819                       if test -z "$haveit"; then
27820                         rpathdirs="$rpathdirs $dir"
27821                       fi
27822                                                                   haveit=
27823                       for x in $ltrpathdirs; do
27824                         if test "X$x" = "X$dir"; then
27825                           haveit=yes
27826                           break
27827                         fi
27828                       done
27829                       if test -z "$haveit"; then
27830                         ltrpathdirs="$ltrpathdirs $dir"
27831                       fi
27832                     fi
27833                     ;;
27834                   -l*)
27835                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27836                     ;;
27837                   *.la)
27838                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27839                     ;;
27840                   *)
27841                                         LIBSSL="${LIBSSL}${LIBSSL:+ }$dep"
27842                     LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep"
27843                     ;;
27844                 esac
27845               done
27846             fi
27847           else
27848                                                             LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
27849             LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name"
27850           fi
27851         fi
27852       fi
27853     done
27854   done
27855   if test "X$rpathdirs" != "X"; then
27856     if test -n "$acl_hardcode_libdir_separator"; then
27857                         alldirs=
27858       for found_dir in $rpathdirs; do
27859         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27860       done
27861             acl_save_libdir="$libdir"
27862       libdir="$alldirs"
27863       eval flag=\"$acl_hardcode_libdir_flag_spec\"
27864       libdir="$acl_save_libdir"
27865       LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
27866     else
27867             for found_dir in $rpathdirs; do
27868         acl_save_libdir="$libdir"
27869         libdir="$found_dir"
27870         eval flag=\"$acl_hardcode_libdir_flag_spec\"
27871         libdir="$acl_save_libdir"
27872         LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
27873       done
27874     fi
27875   fi
27876   if test "X$ltrpathdirs" != "X"; then
27877             for found_dir in $ltrpathdirs; do
27878       LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir"
27879     done
27880   fi
27881
27882
27883         ac_save_CPPFLAGS="$CPPFLAGS"
27884
27885   for element in $INCSSL; do
27886     haveit=
27887     for x in $CPPFLAGS; do
27888
27889   acl_save_prefix="$prefix"
27890   prefix="$acl_final_prefix"
27891   acl_save_exec_prefix="$exec_prefix"
27892   exec_prefix="$acl_final_exec_prefix"
27893   eval x=\"$x\"
27894   exec_prefix="$acl_save_exec_prefix"
27895   prefix="$acl_save_prefix"
27896
27897       if test "X$x" = "X$element"; then
27898         haveit=yes
27899         break
27900       fi
27901     done
27902     if test -z "$haveit"; then
27903       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27904     fi
27905   done
27906
27907
27908   { $as_echo "$as_me:$LINENO: checking for libssl" >&5
27909 $as_echo_n "checking for libssl... " >&6; }
27910 if test "${ac_cv_libssl+set}" = set; then
27911   $as_echo_n "(cached) " >&6
27912 else
27913
27914     ac_save_LIBS="$LIBS"
27915     LIBS="$LIBS $LIBSSL"
27916     cat >conftest.$ac_ext <<_ACEOF
27917 /* confdefs.h.  */
27918 _ACEOF
27919 cat confdefs.h >>conftest.$ac_ext
27920 cat >>conftest.$ac_ext <<_ACEOF
27921 /* end confdefs.h.  */
27922
27923   #include <openssl/ssl.h>
27924   #include <openssl/x509.h>
27925   #include <openssl/err.h>
27926   #include <openssl/rand.h>
27927   #include <openssl/des.h>
27928   #include <openssl/md4.h>
27929   #include <openssl/md5.h>
27930
27931 int
27932 main ()
27933 {
27934 SSL_library_init ()
27935   ;
27936   return 0;
27937 }
27938 _ACEOF
27939 rm -f conftest.$ac_objext conftest$ac_exeext
27940 if { (ac_try="$ac_link"
27941 case "(($ac_try" in
27942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943   *) ac_try_echo=$ac_try;;
27944 esac
27945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27946 $as_echo "$ac_try_echo") >&5
27947   (eval "$ac_link") 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } && {
27954          test -z "$ac_c_werror_flag" ||
27955          test ! -s conftest.err
27956        } && test -s conftest$ac_exeext && {
27957          test "$cross_compiling" = yes ||
27958          $as_test_x conftest$ac_exeext
27959        }; then
27960   ac_cv_libssl=yes
27961 else
27962   $as_echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27964
27965         ac_cv_libssl=no
27966 fi
27967
27968 rm -rf conftest.dSYM
27969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27970       conftest$ac_exeext conftest.$ac_ext
27971     LIBS="$ac_save_LIBS"
27972
27973 fi
27974 { $as_echo "$as_me:$LINENO: result: $ac_cv_libssl" >&5
27975 $as_echo "$ac_cv_libssl" >&6; }
27976   if test "$ac_cv_libssl" = yes; then
27977     HAVE_LIBSSL=yes
27978
27979 cat >>confdefs.h <<\_ACEOF
27980 #define HAVE_LIBSSL 1
27981 _ACEOF
27982
27983     { $as_echo "$as_me:$LINENO: checking how to link with libssl" >&5
27984 $as_echo_n "checking how to link with libssl... " >&6; }
27985     { $as_echo "$as_me:$LINENO: result: $LIBSSL" >&5
27986 $as_echo "$LIBSSL" >&6; }
27987   else
27988     HAVE_LIBSSL=no
27989             CPPFLAGS="$ac_save_CPPFLAGS"
27990     LIBSSL=
27991     LTLIBSSL=
27992     LIBSSL_PREFIX=
27993   fi
27994
27995
27996
27997
27998
27999
28000
28001     if test x"$LIBSSL" != x
28002     then
28003       { $as_echo "$as_me:$LINENO: compiling in support for SSL via OpenSSL" >&5
28004 $as_echo "$as_me: compiling in support for SSL via OpenSSL" >&6;}
28005       case " $LIBOBJS " in
28006   *" openssl.$ac_objext "* ) ;;
28007   *) LIBOBJS="$LIBOBJS openssl.$ac_objext"
28008  ;;
28009 esac
28010
28011     elif test x"$with_ssl" != x
28012     then
28013       { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but SSL is not available." >&5
28014 $as_echo "$as_me: error: --with-ssl was given, but SSL is not available." >&2;}
28015    { (exit 1); exit 1; }; }
28016     fi
28017
28018 fi
28019  # endif: --with-ssl == no?
28020
28021 fi
28022  # endif: --with-ssl == gnutls?
28023
28024
28025 if test x"$LIBSSL" != x
28026 then
28027   if test x"$ENABLE_NTLM" != xno
28028   then
28029
28030 cat >>confdefs.h <<\_ACEOF
28031 #define ENABLE_NTLM 1
28032 _ACEOF
28033
28034     case " $LIBOBJS " in
28035   *" http-ntlm.$ac_objext "* ) ;;
28036   *) LIBOBJS="$LIBOBJS http-ntlm.$ac_objext"
28037  ;;
28038 esac
28039
28040   fi
28041 else
28042       if test x"$ENABLE_NTLM" = xyes
28043   then
28044     { { $as_echo "$as_me:$LINENO: error: NTLM authorization requested and OpenSSL not found; aborting" >&5
28045 $as_echo "$as_me: error: NTLM authorization requested and OpenSSL not found; aborting" >&2;}
28046    { (exit 1); exit 1; }; }
28047   fi
28048 fi
28049
28050
28051 if test x"$wget_need_md5" = xyes
28052 then
28053
28054   case " $LIBOBJS " in
28055   *" gen-md5.$ac_objext "* ) ;;
28056   *) LIBOBJS="$LIBOBJS gen-md5.$ac_objext"
28057  ;;
28058 esac
28059
28060   found_md5=no
28061
28062             if test x"$found_md5" = xno; then
28063     { $as_echo "$as_me:$LINENO: checking for md5_calc in -lmd5" >&5
28064 $as_echo_n "checking for md5_calc in -lmd5... " >&6; }
28065 if test "${ac_cv_lib_md5_md5_calc+set}" = set; then
28066   $as_echo_n "(cached) " >&6
28067 else
28068   ac_check_lib_save_LIBS=$LIBS
28069 LIBS="-lmd5  $LIBS"
28070 cat >conftest.$ac_ext <<_ACEOF
28071 /* confdefs.h.  */
28072 _ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h.  */
28076
28077 /* Override any GCC internal prototype to avoid an error.
28078    Use char because int might match the return type of a GCC
28079    builtin and then its argument prototype would still apply.  */
28080 #ifdef __cplusplus
28081 extern "C"
28082 #endif
28083 char md5_calc ();
28084 int
28085 main ()
28086 {
28087 return md5_calc ();
28088   ;
28089   return 0;
28090 }
28091 _ACEOF
28092 rm -f conftest.$ac_objext conftest$ac_exeext
28093 if { (ac_try="$ac_link"
28094 case "(($ac_try" in
28095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096   *) ac_try_echo=$ac_try;;
28097 esac
28098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28099 $as_echo "$ac_try_echo") >&5
28100   (eval "$ac_link") 2>conftest.er1
28101   ac_status=$?
28102   grep -v '^ *+' conftest.er1 >conftest.err
28103   rm -f conftest.er1
28104   cat conftest.err >&5
28105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106   (exit $ac_status); } && {
28107          test -z "$ac_c_werror_flag" ||
28108          test ! -s conftest.err
28109        } && test -s conftest$ac_exeext && {
28110          test "$cross_compiling" = yes ||
28111          $as_test_x conftest$ac_exeext
28112        }; then
28113   ac_cv_lib_md5_md5_calc=yes
28114 else
28115   $as_echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28117
28118         ac_cv_lib_md5_md5_calc=no
28119 fi
28120
28121 rm -rf conftest.dSYM
28122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28123       conftest$ac_exeext conftest.$ac_ext
28124 LIBS=$ac_check_lib_save_LIBS
28125 fi
28126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_md5_md5_calc" >&5
28127 $as_echo "$ac_cv_lib_md5_md5_calc" >&6; }
28128 if test "x$ac_cv_lib_md5_md5_calc" = x""yes; then
28129
28130                   { $as_echo "$as_me:$LINENO: checking for working md5.h" >&5
28131 $as_echo_n "checking for working md5.h... " >&6; }
28132       cat >conftest.$ac_ext <<_ACEOF
28133 #include <md5.h>
28134
28135 _ACEOF
28136 rm -f conftest.$ac_objext
28137 if { (ac_try="$ac_compile"
28138 case "(($ac_try" in
28139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140   *) ac_try_echo=$ac_try;;
28141 esac
28142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28143 $as_echo "$ac_try_echo") >&5
28144   (eval "$ac_compile") 2>conftest.er1
28145   ac_status=$?
28146   grep -v '^ *+' conftest.er1 >conftest.err
28147   rm -f conftest.er1
28148   cat conftest.err >&5
28149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150   (exit $ac_status); } && {
28151          test -z "$ac_c_werror_flag" ||
28152          test ! -s conftest.err
28153        } && test -s conftest.$ac_objext; then
28154
28155         { $as_echo "$as_me:$LINENO: result: yes" >&5
28156 $as_echo "yes" >&6; }
28157
28158 cat >>confdefs.h <<\_ACEOF
28159 #define HAVE_SOLARIS_MD5 1
28160 _ACEOF
28161
28162         LIBS="-lmd5 $LIBS"
28163         found_md5=yes
28164         { $as_echo "$as_me:$LINENO: using the Solaris MD5 implementation" >&5
28165 $as_echo "$as_me: using the Solaris MD5 implementation" >&6;}
28166
28167 else
28168   $as_echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.$ac_ext >&5
28170
28171         { $as_echo "$as_me:$LINENO: result: no" >&5
28172 $as_echo "no" >&6; }
28173 fi
28174
28175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28176
28177 fi
28178
28179   fi
28180
28181       if test x"$found_md5" = xno; then
28182     if test x"$LIBSSL" != x; then
28183
28184 cat >>confdefs.h <<\_ACEOF
28185 #define HAVE_OPENSSL_MD5 1
28186 _ACEOF
28187
28188       found_md5=yes
28189       { $as_echo "$as_me:$LINENO: using the OpenSSL MD5 implementation" >&5
28190 $as_echo "$as_me: using the OpenSSL MD5 implementation" >&6;}
28191     fi
28192   fi
28193
28194     if test x"$found_md5" = xno; then
28195
28196 cat >>confdefs.h <<\_ACEOF
28197 #define HAVE_BUILTIN_MD5 1
28198 _ACEOF
28199
28200     found_md5=yes
28201     { $as_echo "$as_me:$LINENO: using the built-in (GNU) MD5 implementation" >&5
28202 $as_echo "$as_me: using the built-in (GNU) MD5 implementation" >&6;}
28203
28204  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28205 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28206 if test "${ac_cv_c_bigendian+set}" = set; then
28207   $as_echo_n "(cached) " >&6
28208 else
28209   ac_cv_c_bigendian=unknown
28210     # See if we're dealing with a universal compiler.
28211     cat >conftest.$ac_ext <<_ACEOF
28212 /* confdefs.h.  */
28213 _ACEOF
28214 cat confdefs.h >>conftest.$ac_ext
28215 cat >>conftest.$ac_ext <<_ACEOF
28216 /* end confdefs.h.  */
28217 #ifndef __APPLE_CC__
28218                not a universal capable compiler
28219              #endif
28220              typedef int dummy;
28221
28222 _ACEOF
28223 rm -f conftest.$ac_objext
28224 if { (ac_try="$ac_compile"
28225 case "(($ac_try" in
28226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227   *) ac_try_echo=$ac_try;;
28228 esac
28229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28230 $as_echo "$ac_try_echo") >&5
28231   (eval "$ac_compile") 2>conftest.er1
28232   ac_status=$?
28233   grep -v '^ *+' conftest.er1 >conftest.err
28234   rm -f conftest.er1
28235   cat conftest.err >&5
28236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); } && {
28238          test -z "$ac_c_werror_flag" ||
28239          test ! -s conftest.err
28240        } && test -s conftest.$ac_objext; then
28241
28242         # Check for potential -arch flags.  It is not universal unless
28243         # there are some -arch flags.  Note that *ppc* also matches
28244         # ppc64.  This check is also rather less than ideal.
28245         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
28246           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
28247         esac
28248 else
28249   $as_echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252
28253 fi
28254
28255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256     if test $ac_cv_c_bigendian = unknown; then
28257       # See if sys/param.h defines the BYTE_ORDER macro.
28258       cat >conftest.$ac_ext <<_ACEOF
28259 /* confdefs.h.  */
28260 _ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h.  */
28264 #include <sys/types.h>
28265              #include <sys/param.h>
28266
28267 int
28268 main ()
28269 {
28270 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28271                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28272                      && LITTLE_ENDIAN)
28273               bogus endian macros
28274              #endif
28275
28276   ;
28277   return 0;
28278 }
28279 _ACEOF
28280 rm -f conftest.$ac_objext
28281 if { (ac_try="$ac_compile"
28282 case "(($ac_try" in
28283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284   *) ac_try_echo=$ac_try;;
28285 esac
28286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28287 $as_echo "$ac_try_echo") >&5
28288   (eval "$ac_compile") 2>conftest.er1
28289   ac_status=$?
28290   grep -v '^ *+' conftest.er1 >conftest.err
28291   rm -f conftest.er1
28292   cat conftest.err >&5
28293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); } && {
28295          test -z "$ac_c_werror_flag" ||
28296          test ! -s conftest.err
28297        } && test -s conftest.$ac_objext; then
28298   # It does; now see whether it defined to BIG_ENDIAN or not.
28299          cat >conftest.$ac_ext <<_ACEOF
28300 /* confdefs.h.  */
28301 _ACEOF
28302 cat confdefs.h >>conftest.$ac_ext
28303 cat >>conftest.$ac_ext <<_ACEOF
28304 /* end confdefs.h.  */
28305 #include <sys/types.h>
28306                 #include <sys/param.h>
28307
28308 int
28309 main ()
28310 {
28311 #if BYTE_ORDER != BIG_ENDIAN
28312                  not big endian
28313                 #endif
28314
28315   ;
28316   return 0;
28317 }
28318 _ACEOF
28319 rm -f conftest.$ac_objext
28320 if { (ac_try="$ac_compile"
28321 case "(($ac_try" in
28322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323   *) ac_try_echo=$ac_try;;
28324 esac
28325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28326 $as_echo "$ac_try_echo") >&5
28327   (eval "$ac_compile") 2>conftest.er1
28328   ac_status=$?
28329   grep -v '^ *+' conftest.er1 >conftest.err
28330   rm -f conftest.er1
28331   cat conftest.err >&5
28332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333   (exit $ac_status); } && {
28334          test -z "$ac_c_werror_flag" ||
28335          test ! -s conftest.err
28336        } && test -s conftest.$ac_objext; then
28337   ac_cv_c_bigendian=yes
28338 else
28339   $as_echo "$as_me: failed program was:" >&5
28340 sed 's/^/| /' conftest.$ac_ext >&5
28341
28342         ac_cv_c_bigendian=no
28343 fi
28344
28345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28346 else
28347   $as_echo "$as_me: failed program was:" >&5
28348 sed 's/^/| /' conftest.$ac_ext >&5
28349
28350
28351 fi
28352
28353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28354     fi
28355     if test $ac_cv_c_bigendian = unknown; then
28356       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28357       cat >conftest.$ac_ext <<_ACEOF
28358 /* confdefs.h.  */
28359 _ACEOF
28360 cat confdefs.h >>conftest.$ac_ext
28361 cat >>conftest.$ac_ext <<_ACEOF
28362 /* end confdefs.h.  */
28363 #include <limits.h>
28364
28365 int
28366 main ()
28367 {
28368 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28369               bogus endian macros
28370              #endif
28371
28372   ;
28373   return 0;
28374 }
28375 _ACEOF
28376 rm -f conftest.$ac_objext
28377 if { (ac_try="$ac_compile"
28378 case "(($ac_try" in
28379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380   *) ac_try_echo=$ac_try;;
28381 esac
28382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28383 $as_echo "$ac_try_echo") >&5
28384   (eval "$ac_compile") 2>conftest.er1
28385   ac_status=$?
28386   grep -v '^ *+' conftest.er1 >conftest.err
28387   rm -f conftest.er1
28388   cat conftest.err >&5
28389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390   (exit $ac_status); } && {
28391          test -z "$ac_c_werror_flag" ||
28392          test ! -s conftest.err
28393        } && test -s conftest.$ac_objext; then
28394   # It does; now see whether it defined to _BIG_ENDIAN or not.
28395          cat >conftest.$ac_ext <<_ACEOF
28396 /* confdefs.h.  */
28397 _ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h.  */
28401 #include <limits.h>
28402
28403 int
28404 main ()
28405 {
28406 #ifndef _BIG_ENDIAN
28407                  not big endian
28408                 #endif
28409
28410   ;
28411   return 0;
28412 }
28413 _ACEOF
28414 rm -f conftest.$ac_objext
28415 if { (ac_try="$ac_compile"
28416 case "(($ac_try" in
28417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418   *) ac_try_echo=$ac_try;;
28419 esac
28420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28421 $as_echo "$ac_try_echo") >&5
28422   (eval "$ac_compile") 2>conftest.er1
28423   ac_status=$?
28424   grep -v '^ *+' conftest.er1 >conftest.err
28425   rm -f conftest.er1
28426   cat conftest.err >&5
28427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428   (exit $ac_status); } && {
28429          test -z "$ac_c_werror_flag" ||
28430          test ! -s conftest.err
28431        } && test -s conftest.$ac_objext; then
28432   ac_cv_c_bigendian=yes
28433 else
28434   $as_echo "$as_me: failed program was:" >&5
28435 sed 's/^/| /' conftest.$ac_ext >&5
28436
28437         ac_cv_c_bigendian=no
28438 fi
28439
28440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28441 else
28442   $as_echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28444
28445
28446 fi
28447
28448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28449     fi
28450     if test $ac_cv_c_bigendian = unknown; then
28451       # Compile a test program.
28452       if test "$cross_compiling" = yes; then
28453   # Try to guess by grepping values from an object file.
28454          cat >conftest.$ac_ext <<_ACEOF
28455 /* confdefs.h.  */
28456 _ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h.  */
28460 short int ascii_mm[] =
28461                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28462                 short int ascii_ii[] =
28463                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28464                 int use_ascii (int i) {
28465                   return ascii_mm[i] + ascii_ii[i];
28466                 }
28467                 short int ebcdic_ii[] =
28468                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28469                 short int ebcdic_mm[] =
28470                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28471                 int use_ebcdic (int i) {
28472                   return ebcdic_mm[i] + ebcdic_ii[i];
28473                 }
28474                 extern int foo;
28475
28476 int
28477 main ()
28478 {
28479 return use_ascii (foo) == use_ebcdic (foo);
28480   ;
28481   return 0;
28482 }
28483 _ACEOF
28484 rm -f conftest.$ac_objext
28485 if { (ac_try="$ac_compile"
28486 case "(($ac_try" in
28487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488   *) ac_try_echo=$ac_try;;
28489 esac
28490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28491 $as_echo "$ac_try_echo") >&5
28492   (eval "$ac_compile") 2>conftest.er1
28493   ac_status=$?
28494   grep -v '^ *+' conftest.er1 >conftest.err
28495   rm -f conftest.er1
28496   cat conftest.err >&5
28497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498   (exit $ac_status); } && {
28499          test -z "$ac_c_werror_flag" ||
28500          test ! -s conftest.err
28501        } && test -s conftest.$ac_objext; then
28502   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28503               ac_cv_c_bigendian=yes
28504             fi
28505             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28506               if test "$ac_cv_c_bigendian" = unknown; then
28507                 ac_cv_c_bigendian=no
28508               else
28509                 # finding both strings is unlikely to happen, but who knows?
28510                 ac_cv_c_bigendian=unknown
28511               fi
28512             fi
28513 else
28514   $as_echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28516
28517
28518 fi
28519
28520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28521 else
28522   cat >conftest.$ac_ext <<_ACEOF
28523 /* confdefs.h.  */
28524 _ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h.  */
28528 $ac_includes_default
28529 int
28530 main ()
28531 {
28532
28533              /* Are we little or big endian?  From Harbison&Steele.  */
28534              union
28535              {
28536                long int l;
28537                char c[sizeof (long int)];
28538              } u;
28539              u.l = 1;
28540              return u.c[sizeof (long int) - 1] == 1;
28541
28542   ;
28543   return 0;
28544 }
28545 _ACEOF
28546 rm -f conftest$ac_exeext
28547 if { (ac_try="$ac_link"
28548 case "(($ac_try" in
28549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550   *) ac_try_echo=$ac_try;;
28551 esac
28552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28553 $as_echo "$ac_try_echo") >&5
28554   (eval "$ac_link") 2>&5
28555   ac_status=$?
28556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28558   { (case "(($ac_try" in
28559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560   *) ac_try_echo=$ac_try;;
28561 esac
28562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28563 $as_echo "$ac_try_echo") >&5
28564   (eval "$ac_try") 2>&5
28565   ac_status=$?
28566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); }; }; then
28568   ac_cv_c_bigendian=no
28569 else
28570   $as_echo "$as_me: program exited with status $ac_status" >&5
28571 $as_echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28573
28574 ( exit $ac_status )
28575 ac_cv_c_bigendian=yes
28576 fi
28577 rm -rf conftest.dSYM
28578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28579 fi
28580
28581
28582     fi
28583 fi
28584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28585 $as_echo "$ac_cv_c_bigendian" >&6; }
28586  case $ac_cv_c_bigendian in #(
28587    yes)
28588      cat >>confdefs.h <<\_ACEOF
28589 #define WORDS_BIGENDIAN 1
28590 _ACEOF
28591 ;; #(
28592    no)
28593       ;; #(
28594    universal)
28595
28596 cat >>confdefs.h <<\_ACEOF
28597 #define AC_APPLE_UNIVERSAL_BUILD 1
28598 _ACEOF
28599
28600      ;; #(
28601    *)
28602      { { $as_echo "$as_me:$LINENO: error: unknown endianness
28603  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28604 $as_echo "$as_me: error: unknown endianness
28605  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28606    { (exit 1); exit 1; }; } ;;
28607  esac
28608
28609
28610     MD5_CPPFLAGS='-I $(top_srcdir)/md5'
28611
28612     MD5_LDADD='../md5/libmd5.a'
28613
28614     MD5_SUBDIR=md5
28615
28616
28617
28618  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28619 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28620 if test "${ac_cv_c_bigendian+set}" = set; then
28621   $as_echo_n "(cached) " >&6
28622 else
28623   ac_cv_c_bigendian=unknown
28624     # See if we're dealing with a universal compiler.
28625     cat >conftest.$ac_ext <<_ACEOF
28626 /* confdefs.h.  */
28627 _ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h.  */
28631 #ifndef __APPLE_CC__
28632                not a universal capable compiler
28633              #endif
28634              typedef int dummy;
28635
28636 _ACEOF
28637 rm -f conftest.$ac_objext
28638 if { (ac_try="$ac_compile"
28639 case "(($ac_try" in
28640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641   *) ac_try_echo=$ac_try;;
28642 esac
28643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28644 $as_echo "$ac_try_echo") >&5
28645   (eval "$ac_compile") 2>conftest.er1
28646   ac_status=$?
28647   grep -v '^ *+' conftest.er1 >conftest.err
28648   rm -f conftest.er1
28649   cat conftest.err >&5
28650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); } && {
28652          test -z "$ac_c_werror_flag" ||
28653          test ! -s conftest.err
28654        } && test -s conftest.$ac_objext; then
28655
28656         # Check for potential -arch flags.  It is not universal unless
28657         # there are some -arch flags.  Note that *ppc* also matches
28658         # ppc64.  This check is also rather less than ideal.
28659         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
28660           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
28661         esac
28662 else
28663   $as_echo "$as_me: failed program was:" >&5
28664 sed 's/^/| /' conftest.$ac_ext >&5
28665
28666
28667 fi
28668
28669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28670     if test $ac_cv_c_bigendian = unknown; then
28671       # See if sys/param.h defines the BYTE_ORDER macro.
28672       cat >conftest.$ac_ext <<_ACEOF
28673 /* confdefs.h.  */
28674 _ACEOF
28675 cat confdefs.h >>conftest.$ac_ext
28676 cat >>conftest.$ac_ext <<_ACEOF
28677 /* end confdefs.h.  */
28678 #include <sys/types.h>
28679              #include <sys/param.h>
28680
28681 int
28682 main ()
28683 {
28684 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28685                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28686                      && LITTLE_ENDIAN)
28687               bogus endian macros
28688              #endif
28689
28690   ;
28691   return 0;
28692 }
28693 _ACEOF
28694 rm -f conftest.$ac_objext
28695 if { (ac_try="$ac_compile"
28696 case "(($ac_try" in
28697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698   *) ac_try_echo=$ac_try;;
28699 esac
28700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28701 $as_echo "$ac_try_echo") >&5
28702   (eval "$ac_compile") 2>conftest.er1
28703   ac_status=$?
28704   grep -v '^ *+' conftest.er1 >conftest.err
28705   rm -f conftest.er1
28706   cat conftest.err >&5
28707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708   (exit $ac_status); } && {
28709          test -z "$ac_c_werror_flag" ||
28710          test ! -s conftest.err
28711        } && test -s conftest.$ac_objext; then
28712   # It does; now see whether it defined to BIG_ENDIAN or not.
28713          cat >conftest.$ac_ext <<_ACEOF
28714 /* confdefs.h.  */
28715 _ACEOF
28716 cat confdefs.h >>conftest.$ac_ext
28717 cat >>conftest.$ac_ext <<_ACEOF
28718 /* end confdefs.h.  */
28719 #include <sys/types.h>
28720                 #include <sys/param.h>
28721
28722 int
28723 main ()
28724 {
28725 #if BYTE_ORDER != BIG_ENDIAN
28726                  not big endian
28727                 #endif
28728
28729   ;
28730   return 0;
28731 }
28732 _ACEOF
28733 rm -f conftest.$ac_objext
28734 if { (ac_try="$ac_compile"
28735 case "(($ac_try" in
28736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737   *) ac_try_echo=$ac_try;;
28738 esac
28739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28740 $as_echo "$ac_try_echo") >&5
28741   (eval "$ac_compile") 2>conftest.er1
28742   ac_status=$?
28743   grep -v '^ *+' conftest.er1 >conftest.err
28744   rm -f conftest.er1
28745   cat conftest.err >&5
28746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); } && {
28748          test -z "$ac_c_werror_flag" ||
28749          test ! -s conftest.err
28750        } && test -s conftest.$ac_objext; then
28751   ac_cv_c_bigendian=yes
28752 else
28753   $as_echo "$as_me: failed program was:" >&5
28754 sed 's/^/| /' conftest.$ac_ext >&5
28755
28756         ac_cv_c_bigendian=no
28757 fi
28758
28759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28760 else
28761   $as_echo "$as_me: failed program was:" >&5
28762 sed 's/^/| /' conftest.$ac_ext >&5
28763
28764
28765 fi
28766
28767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28768     fi
28769     if test $ac_cv_c_bigendian = unknown; then
28770       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28771       cat >conftest.$ac_ext <<_ACEOF
28772 /* confdefs.h.  */
28773 _ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h.  */
28777 #include <limits.h>
28778
28779 int
28780 main ()
28781 {
28782 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28783               bogus endian macros
28784              #endif
28785
28786   ;
28787   return 0;
28788 }
28789 _ACEOF
28790 rm -f conftest.$ac_objext
28791 if { (ac_try="$ac_compile"
28792 case "(($ac_try" in
28793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794   *) ac_try_echo=$ac_try;;
28795 esac
28796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28797 $as_echo "$ac_try_echo") >&5
28798   (eval "$ac_compile") 2>conftest.er1
28799   ac_status=$?
28800   grep -v '^ *+' conftest.er1 >conftest.err
28801   rm -f conftest.er1
28802   cat conftest.err >&5
28803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804   (exit $ac_status); } && {
28805          test -z "$ac_c_werror_flag" ||
28806          test ! -s conftest.err
28807        } && test -s conftest.$ac_objext; then
28808   # It does; now see whether it defined to _BIG_ENDIAN or not.
28809          cat >conftest.$ac_ext <<_ACEOF
28810 /* confdefs.h.  */
28811 _ACEOF
28812 cat confdefs.h >>conftest.$ac_ext
28813 cat >>conftest.$ac_ext <<_ACEOF
28814 /* end confdefs.h.  */
28815 #include <limits.h>
28816
28817 int
28818 main ()
28819 {
28820 #ifndef _BIG_ENDIAN
28821                  not big endian
28822                 #endif
28823
28824   ;
28825   return 0;
28826 }
28827 _ACEOF
28828 rm -f conftest.$ac_objext
28829 if { (ac_try="$ac_compile"
28830 case "(($ac_try" in
28831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832   *) ac_try_echo=$ac_try;;
28833 esac
28834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28835 $as_echo "$ac_try_echo") >&5
28836   (eval "$ac_compile") 2>conftest.er1
28837   ac_status=$?
28838   grep -v '^ *+' conftest.er1 >conftest.err
28839   rm -f conftest.er1
28840   cat conftest.err >&5
28841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); } && {
28843          test -z "$ac_c_werror_flag" ||
28844          test ! -s conftest.err
28845        } && test -s conftest.$ac_objext; then
28846   ac_cv_c_bigendian=yes
28847 else
28848   $as_echo "$as_me: failed program was:" >&5
28849 sed 's/^/| /' conftest.$ac_ext >&5
28850
28851         ac_cv_c_bigendian=no
28852 fi
28853
28854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855 else
28856   $as_echo "$as_me: failed program was:" >&5
28857 sed 's/^/| /' conftest.$ac_ext >&5
28858
28859
28860 fi
28861
28862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28863     fi
28864     if test $ac_cv_c_bigendian = unknown; then
28865       # Compile a test program.
28866       if test "$cross_compiling" = yes; then
28867   # Try to guess by grepping values from an object file.
28868          cat >conftest.$ac_ext <<_ACEOF
28869 /* confdefs.h.  */
28870 _ACEOF
28871 cat confdefs.h >>conftest.$ac_ext
28872 cat >>conftest.$ac_ext <<_ACEOF
28873 /* end confdefs.h.  */
28874 short int ascii_mm[] =
28875                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28876                 short int ascii_ii[] =
28877                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28878                 int use_ascii (int i) {
28879                   return ascii_mm[i] + ascii_ii[i];
28880                 }
28881                 short int ebcdic_ii[] =
28882                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28883                 short int ebcdic_mm[] =
28884                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28885                 int use_ebcdic (int i) {
28886                   return ebcdic_mm[i] + ebcdic_ii[i];
28887                 }
28888                 extern int foo;
28889
28890 int
28891 main ()
28892 {
28893 return use_ascii (foo) == use_ebcdic (foo);
28894   ;
28895   return 0;
28896 }
28897 _ACEOF
28898 rm -f conftest.$ac_objext
28899 if { (ac_try="$ac_compile"
28900 case "(($ac_try" in
28901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902   *) ac_try_echo=$ac_try;;
28903 esac
28904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28905 $as_echo "$ac_try_echo") >&5
28906   (eval "$ac_compile") 2>conftest.er1
28907   ac_status=$?
28908   grep -v '^ *+' conftest.er1 >conftest.err
28909   rm -f conftest.er1
28910   cat conftest.err >&5
28911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); } && {
28913          test -z "$ac_c_werror_flag" ||
28914          test ! -s conftest.err
28915        } && test -s conftest.$ac_objext; then
28916   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28917               ac_cv_c_bigendian=yes
28918             fi
28919             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28920               if test "$ac_cv_c_bigendian" = unknown; then
28921                 ac_cv_c_bigendian=no
28922               else
28923                 # finding both strings is unlikely to happen, but who knows?
28924                 ac_cv_c_bigendian=unknown
28925               fi
28926             fi
28927 else
28928   $as_echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28930
28931
28932 fi
28933
28934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28935 else
28936   cat >conftest.$ac_ext <<_ACEOF
28937 /* confdefs.h.  */
28938 _ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h.  */
28942 $ac_includes_default
28943 int
28944 main ()
28945 {
28946
28947              /* Are we little or big endian?  From Harbison&Steele.  */
28948              union
28949              {
28950                long int l;
28951                char c[sizeof (long int)];
28952              } u;
28953              u.l = 1;
28954              return u.c[sizeof (long int) - 1] == 1;
28955
28956   ;
28957   return 0;
28958 }
28959 _ACEOF
28960 rm -f conftest$ac_exeext
28961 if { (ac_try="$ac_link"
28962 case "(($ac_try" in
28963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964   *) ac_try_echo=$ac_try;;
28965 esac
28966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28967 $as_echo "$ac_try_echo") >&5
28968   (eval "$ac_link") 2>&5
28969   ac_status=$?
28970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28972   { (case "(($ac_try" in
28973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974   *) ac_try_echo=$ac_try;;
28975 esac
28976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28977 $as_echo "$ac_try_echo") >&5
28978   (eval "$ac_try") 2>&5
28979   ac_status=$?
28980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981   (exit $ac_status); }; }; then
28982   ac_cv_c_bigendian=no
28983 else
28984   $as_echo "$as_me: program exited with status $ac_status" >&5
28985 $as_echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28987
28988 ( exit $ac_status )
28989 ac_cv_c_bigendian=yes
28990 fi
28991 rm -rf conftest.dSYM
28992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28993 fi
28994
28995
28996     fi
28997 fi
28998 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28999 $as_echo "$ac_cv_c_bigendian" >&6; }
29000  case $ac_cv_c_bigendian in #(
29001    yes)
29002      cat >>confdefs.h <<\_ACEOF
29003 #define WORDS_BIGENDIAN 1
29004 _ACEOF
29005 ;; #(
29006    no)
29007       ;; #(
29008    universal)
29009
29010 cat >>confdefs.h <<\_ACEOF
29011 #define AC_APPLE_UNIVERSAL_BUILD 1
29012 _ACEOF
29013
29014      ;; #(
29015    *)
29016      { { $as_echo "$as_me:$LINENO: error: unknown endianness
29017  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
29018 $as_echo "$as_me: error: unknown endianness
29019  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
29020    { (exit 1); exit 1; }; } ;;
29021  esac
29022
29023
29024
29025    if false; then
29026   GL_COND_LIBTOOL_TRUE=
29027   GL_COND_LIBTOOL_FALSE='#'
29028 else
29029   GL_COND_LIBTOOL_TRUE='#'
29030   GL_COND_LIBTOOL_FALSE=
29031 fi
29032
29033   gl_cond_libtool=false
29034   gl_libdeps=
29035   gl_ltlibdeps=
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045   gl_source_base='md5'
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055   md5_LIBOBJS="$md5_LIBOBJS md5.$ac_objext"
29056
29057
29058
29059
29060   :
29061
29062
29063
29064
29065
29066   if test $gt_cv_c_wchar_t = no; then
29067     HAVE_WCHAR_T=0
29068     STDDEF_H=stddef.h
29069   fi
29070   { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
29071 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
29072 if test "${gl_cv_decl_null_works+set}" = set; then
29073   $as_echo_n "(cached) " >&6
29074 else
29075   cat >conftest.$ac_ext <<_ACEOF
29076 /* confdefs.h.  */
29077 _ACEOF
29078 cat confdefs.h >>conftest.$ac_ext
29079 cat >>conftest.$ac_ext <<_ACEOF
29080 /* end confdefs.h.  */
29081 #include <stddef.h>
29082       int test[2 * (sizeof NULL == sizeof (void *)) -1];
29083
29084 int
29085 main ()
29086 {
29087
29088   ;
29089   return 0;
29090 }
29091 _ACEOF
29092 rm -f conftest.$ac_objext
29093 if { (ac_try="$ac_compile"
29094 case "(($ac_try" in
29095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096   *) ac_try_echo=$ac_try;;
29097 esac
29098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29099 $as_echo "$ac_try_echo") >&5
29100   (eval "$ac_compile") 2>conftest.er1
29101   ac_status=$?
29102   grep -v '^ *+' conftest.er1 >conftest.err
29103   rm -f conftest.er1
29104   cat conftest.err >&5
29105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); } && {
29107          test -z "$ac_c_werror_flag" ||
29108          test ! -s conftest.err
29109        } && test -s conftest.$ac_objext; then
29110   gl_cv_decl_null_works=yes
29111 else
29112   $as_echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29114
29115         gl_cv_decl_null_works=no
29116 fi
29117
29118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29119 fi
29120 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
29121 $as_echo "$gl_cv_decl_null_works" >&6; }
29122   if test $gl_cv_decl_null_works = no; then
29123     REPLACE_NULL=1
29124     STDDEF_H=stddef.h
29125   fi
29126   if test -n "$STDDEF_H"; then
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138      if test $gl_cv_have_include_next = yes; then
29139        gl_cv_next_stddef_h='<'stddef.h'>'
29140      else
29141        { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
29142 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
29143 if test "${gl_cv_next_stddef_h+set}" = set; then
29144   $as_echo_n "(cached) " >&6
29145 else
29146
29147           if test $ac_cv_header_stddef_h = yes; then
29148             cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h.  */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h.  */
29154 #include <stddef.h>
29155
29156 _ACEOF
29157                                                                     case "$host_os" in
29158               aix*) gl_absname_cpp="$ac_cpp -C" ;;
29159               *)    gl_absname_cpp="$ac_cpp" ;;
29160             esac
29161                                     gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29162                sed -n '\#/stddef.h#{
29163                  s#.*"\(.*/stddef.h\)".*#\1#
29164                  s#^/[^/]#//&#
29165                  p
29166                  q
29167                }'`'"'
29168           else
29169             gl_cv_next_stddef_h='<'stddef.h'>'
29170           fi
29171
29172 fi
29173 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
29174 $as_echo "$gl_cv_next_stddef_h" >&6; }
29175      fi
29176      NEXT_STDDEF_H=$gl_cv_next_stddef_h
29177
29178      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29179        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29180        gl_next_as_first_directive='<'stddef.h'>'
29181      else
29182        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29183        gl_next_as_first_directive=$gl_cv_next_stddef_h
29184      fi
29185      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
29186
29187
29188
29189   fi
29190
29191
29192
29193
29194   if test $ac_cv_type_long_long_int = yes; then
29195     HAVE_LONG_LONG_INT=1
29196   else
29197     HAVE_LONG_LONG_INT=0
29198   fi
29199
29200
29201   if test $ac_cv_type_unsigned_long_long_int = yes; then
29202     HAVE_UNSIGNED_LONG_LONG_INT=1
29203   else
29204     HAVE_UNSIGNED_LONG_LONG_INT=0
29205   fi
29206
29207
29208       if test $ac_cv_header_inttypes_h = yes; then
29209     HAVE_INTTYPES_H=1
29210   else
29211     HAVE_INTTYPES_H=0
29212   fi
29213
29214
29215       if test $ac_cv_header_sys_types_h = yes; then
29216     HAVE_SYS_TYPES_H=1
29217   else
29218     HAVE_SYS_TYPES_H=0
29219   fi
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233      if test $gl_cv_have_include_next = yes; then
29234        gl_cv_next_stdint_h='<'stdint.h'>'
29235      else
29236        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
29237 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
29238 if test "${gl_cv_next_stdint_h+set}" = set; then
29239   $as_echo_n "(cached) " >&6
29240 else
29241
29242           if test $ac_cv_header_stdint_h = yes; then
29243             cat >conftest.$ac_ext <<_ACEOF
29244 /* confdefs.h.  */
29245 _ACEOF
29246 cat confdefs.h >>conftest.$ac_ext
29247 cat >>conftest.$ac_ext <<_ACEOF
29248 /* end confdefs.h.  */
29249 #include <stdint.h>
29250
29251 _ACEOF
29252                                                                     case "$host_os" in
29253               aix*) gl_absname_cpp="$ac_cpp -C" ;;
29254               *)    gl_absname_cpp="$ac_cpp" ;;
29255             esac
29256                                     gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29257                sed -n '\#/stdint.h#{
29258                  s#.*"\(.*/stdint.h\)".*#\1#
29259                  s#^/[^/]#//&#
29260                  p
29261                  q
29262                }'`'"'
29263           else
29264             gl_cv_next_stdint_h='<'stdint.h'>'
29265           fi
29266
29267 fi
29268 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
29269 $as_echo "$gl_cv_next_stdint_h" >&6; }
29270      fi
29271      NEXT_STDINT_H=$gl_cv_next_stdint_h
29272
29273      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29274        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29275        gl_next_as_first_directive='<'stdint.h'>'
29276      else
29277        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29278        gl_next_as_first_directive=$gl_cv_next_stdint_h
29279      fi
29280      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
29281
29282
29283
29284   if test $ac_cv_header_stdint_h = yes; then
29285     HAVE_STDINT_H=1
29286   else
29287     HAVE_STDINT_H=0
29288   fi
29289
29290
29291     if test $ac_cv_header_stdint_h = yes; then
29292     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
29293 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
29294 if test "${gl_cv_header_working_stdint_h+set}" = set; then
29295   $as_echo_n "(cached) " >&6
29296 else
29297   gl_cv_header_working_stdint_h=no
29298        cat >conftest.$ac_ext <<_ACEOF
29299
29300          /* confdefs.h.  */
29301 _ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h.  */
29305
29306 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29307 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29308 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29309 #include <stdint.h>
29310 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
29311 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
29312 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
29313 #endif
29314
29315
29316   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29317      included before <wchar.h>.  */
29318   #include <stddef.h>
29319   #include <signal.h>
29320   #if HAVE_WCHAR_H
29321   # include <stdio.h>
29322   # include <time.h>
29323   # include <wchar.h>
29324   #endif
29325
29326
29327 #ifdef INT8_MAX
29328 int8_t a1 = INT8_MAX;
29329 int8_t a1min = INT8_MIN;
29330 #endif
29331 #ifdef INT16_MAX
29332 int16_t a2 = INT16_MAX;
29333 int16_t a2min = INT16_MIN;
29334 #endif
29335 #ifdef INT32_MAX
29336 int32_t a3 = INT32_MAX;
29337 int32_t a3min = INT32_MIN;
29338 #endif
29339 #ifdef INT64_MAX
29340 int64_t a4 = INT64_MAX;
29341 int64_t a4min = INT64_MIN;
29342 #endif
29343 #ifdef UINT8_MAX
29344 uint8_t b1 = UINT8_MAX;
29345 #else
29346 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
29347 #endif
29348 #ifdef UINT16_MAX
29349 uint16_t b2 = UINT16_MAX;
29350 #endif
29351 #ifdef UINT32_MAX
29352 uint32_t b3 = UINT32_MAX;
29353 #endif
29354 #ifdef UINT64_MAX
29355 uint64_t b4 = UINT64_MAX;
29356 #endif
29357 int_least8_t c1 = INT8_C (0x7f);
29358 int_least8_t c1max = INT_LEAST8_MAX;
29359 int_least8_t c1min = INT_LEAST8_MIN;
29360 int_least16_t c2 = INT16_C (0x7fff);
29361 int_least16_t c2max = INT_LEAST16_MAX;
29362 int_least16_t c2min = INT_LEAST16_MIN;
29363 int_least32_t c3 = INT32_C (0x7fffffff);
29364 int_least32_t c3max = INT_LEAST32_MAX;
29365 int_least32_t c3min = INT_LEAST32_MIN;
29366 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
29367 int_least64_t c4max = INT_LEAST64_MAX;
29368 int_least64_t c4min = INT_LEAST64_MIN;
29369 uint_least8_t d1 = UINT8_C (0xff);
29370 uint_least8_t d1max = UINT_LEAST8_MAX;
29371 uint_least16_t d2 = UINT16_C (0xffff);
29372 uint_least16_t d2max = UINT_LEAST16_MAX;
29373 uint_least32_t d3 = UINT32_C (0xffffffff);
29374 uint_least32_t d3max = UINT_LEAST32_MAX;
29375 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
29376 uint_least64_t d4max = UINT_LEAST64_MAX;
29377 int_fast8_t e1 = INT_FAST8_MAX;
29378 int_fast8_t e1min = INT_FAST8_MIN;
29379 int_fast16_t e2 = INT_FAST16_MAX;
29380 int_fast16_t e2min = INT_FAST16_MIN;
29381 int_fast32_t e3 = INT_FAST32_MAX;
29382 int_fast32_t e3min = INT_FAST32_MIN;
29383 int_fast64_t e4 = INT_FAST64_MAX;
29384 int_fast64_t e4min = INT_FAST64_MIN;
29385 uint_fast8_t f1 = UINT_FAST8_MAX;
29386 uint_fast16_t f2 = UINT_FAST16_MAX;
29387 uint_fast32_t f3 = UINT_FAST32_MAX;
29388 uint_fast64_t f4 = UINT_FAST64_MAX;
29389 #ifdef INTPTR_MAX
29390 intptr_t g = INTPTR_MAX;
29391 intptr_t gmin = INTPTR_MIN;
29392 #endif
29393 #ifdef UINTPTR_MAX
29394 uintptr_t h = UINTPTR_MAX;
29395 #endif
29396 intmax_t i = INTMAX_MAX;
29397 uintmax_t j = UINTMAX_MAX;
29398
29399 #include <limits.h> /* for CHAR_BIT */
29400 #define TYPE_MINIMUM(t) \
29401   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
29402 #define TYPE_MAXIMUM(t) \
29403   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
29404 struct s {
29405   int check_PTRDIFF:
29406       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
29407       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
29408       ? 1 : -1;
29409   /* Detect bug in FreeBSD 6.0 / ia64.  */
29410   int check_SIG_ATOMIC:
29411       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
29412       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
29413       ? 1 : -1;
29414   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
29415   int check_WCHAR:
29416       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
29417       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
29418       ? 1 : -1;
29419   /* Detect bug in mingw.  */
29420   int check_WINT:
29421       WINT_MIN == TYPE_MINIMUM (wint_t)
29422       && WINT_MAX == TYPE_MAXIMUM (wint_t)
29423       ? 1 : -1;
29424
29425   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
29426   int check_UINT8_C:
29427         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
29428   int check_UINT16_C:
29429         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
29430
29431   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
29432 #ifdef UINT8_MAX
29433   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
29434 #endif
29435 #ifdef UINT16_MAX
29436   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
29437 #endif
29438 #ifdef UINT32_MAX
29439   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
29440 #endif
29441 #ifdef UINT64_MAX
29442   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
29443 #endif
29444   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
29445   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
29446   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
29447   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
29448   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
29449   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
29450   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
29451   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
29452   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
29453   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
29454   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
29455 };
29456
29457 int
29458 main ()
29459 {
29460
29461   ;
29462   return 0;
29463 }
29464 _ACEOF
29465 rm -f conftest.$ac_objext
29466 if { (ac_try="$ac_compile"
29467 case "(($ac_try" in
29468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469   *) ac_try_echo=$ac_try;;
29470 esac
29471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29472 $as_echo "$ac_try_echo") >&5
29473   (eval "$ac_compile") 2>conftest.er1
29474   ac_status=$?
29475   grep -v '^ *+' conftest.er1 >conftest.err
29476   rm -f conftest.er1
29477   cat conftest.err >&5
29478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); } && {
29480          test -z "$ac_c_werror_flag" ||
29481          test ! -s conftest.err
29482        } && test -s conftest.$ac_objext; then
29483                                                     if test "$cross_compiling" = yes; then
29484                  gl_cv_header_working_stdint_h=yes
29485
29486 else
29487   cat >conftest.$ac_ext <<_ACEOF
29488
29489             /* confdefs.h.  */
29490 _ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h.  */
29494
29495 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29496 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29497 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
29498 #include <stdint.h>
29499
29500
29501   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29502      included before <wchar.h>.  */
29503   #include <stddef.h>
29504   #include <signal.h>
29505   #if HAVE_WCHAR_H
29506   # include <stdio.h>
29507   # include <time.h>
29508   # include <wchar.h>
29509   #endif
29510
29511
29512 #include <stdio.h>
29513 #include <string.h>
29514 #define MVAL(macro) MVAL1(macro)
29515 #define MVAL1(expression) #expression
29516 static const char *macro_values[] =
29517   {
29518 #ifdef INT8_MAX
29519     MVAL (INT8_MAX),
29520 #endif
29521 #ifdef INT16_MAX
29522     MVAL (INT16_MAX),
29523 #endif
29524 #ifdef INT32_MAX
29525     MVAL (INT32_MAX),
29526 #endif
29527 #ifdef INT64_MAX
29528     MVAL (INT64_MAX),
29529 #endif
29530 #ifdef UINT8_MAX
29531     MVAL (UINT8_MAX),
29532 #endif
29533 #ifdef UINT16_MAX
29534     MVAL (UINT16_MAX),
29535 #endif
29536 #ifdef UINT32_MAX
29537     MVAL (UINT32_MAX),
29538 #endif
29539 #ifdef UINT64_MAX
29540     MVAL (UINT64_MAX),
29541 #endif
29542     NULL
29543   };
29544
29545 int
29546 main ()
29547 {
29548
29549   const char **mv;
29550   for (mv = macro_values; *mv != NULL; mv++)
29551     {
29552       const char *value = *mv;
29553       /* Test whether it looks like a cast expression.  */
29554       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
29555           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
29556           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
29557           || strncmp (value, "((int)"/*)*/, 6) == 0
29558           || strncmp (value, "((signed short)"/*)*/, 15) == 0
29559           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
29560         return 1;
29561     }
29562   return 0;
29563
29564   ;
29565   return 0;
29566 }
29567 _ACEOF
29568 rm -f conftest$ac_exeext
29569 if { (ac_try="$ac_link"
29570 case "(($ac_try" in
29571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572   *) ac_try_echo=$ac_try;;
29573 esac
29574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29575 $as_echo "$ac_try_echo") >&5
29576   (eval "$ac_link") 2>&5
29577   ac_status=$?
29578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29580   { (case "(($ac_try" in
29581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29582   *) ac_try_echo=$ac_try;;
29583 esac
29584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29585 $as_echo "$ac_try_echo") >&5
29586   (eval "$ac_try") 2>&5
29587   ac_status=$?
29588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589   (exit $ac_status); }; }; then
29590   gl_cv_header_working_stdint_h=yes
29591 else
29592   $as_echo "$as_me: program exited with status $ac_status" >&5
29593 $as_echo "$as_me: failed program was:" >&5
29594 sed 's/^/| /' conftest.$ac_ext >&5
29595
29596 fi
29597 rm -rf conftest.dSYM
29598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29599 fi
29600
29601
29602
29603 else
29604   $as_echo "$as_me: failed program was:" >&5
29605 sed 's/^/| /' conftest.$ac_ext >&5
29606
29607
29608 fi
29609
29610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29611
29612 fi
29613 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
29614 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
29615   fi
29616   if test "$gl_cv_header_working_stdint_h" = yes; then
29617     STDINT_H=
29618   else
29619
29620
29621 for ac_header in sys/inttypes.h sys/bitypes.h
29622 do
29623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29626 $as_echo_n "checking for $ac_header... " >&6; }
29627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29628   $as_echo_n "(cached) " >&6
29629 fi
29630 ac_res=`eval 'as_val=${'$as_ac_Header'}
29631                  $as_echo "$as_val"'`
29632                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29633 $as_echo "$ac_res" >&6; }
29634 else
29635   # Is the header compilable?
29636 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29637 $as_echo_n "checking $ac_header usability... " >&6; }
29638 cat >conftest.$ac_ext <<_ACEOF
29639 /* confdefs.h.  */
29640 _ACEOF
29641 cat confdefs.h >>conftest.$ac_ext
29642 cat >>conftest.$ac_ext <<_ACEOF
29643 /* end confdefs.h.  */
29644 $ac_includes_default
29645 #include <$ac_header>
29646 _ACEOF
29647 rm -f conftest.$ac_objext
29648 if { (ac_try="$ac_compile"
29649 case "(($ac_try" in
29650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651   *) ac_try_echo=$ac_try;;
29652 esac
29653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29654 $as_echo "$ac_try_echo") >&5
29655   (eval "$ac_compile") 2>conftest.er1
29656   ac_status=$?
29657   grep -v '^ *+' conftest.er1 >conftest.err
29658   rm -f conftest.er1
29659   cat conftest.err >&5
29660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661   (exit $ac_status); } && {
29662          test -z "$ac_c_werror_flag" ||
29663          test ! -s conftest.err
29664        } && test -s conftest.$ac_objext; then
29665   ac_header_compiler=yes
29666 else
29667   $as_echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29669
29670         ac_header_compiler=no
29671 fi
29672
29673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29674 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29675 $as_echo "$ac_header_compiler" >&6; }
29676
29677 # Is the header present?
29678 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29679 $as_echo_n "checking $ac_header presence... " >&6; }
29680 cat >conftest.$ac_ext <<_ACEOF
29681 /* confdefs.h.  */
29682 _ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h.  */
29686 #include <$ac_header>
29687 _ACEOF
29688 if { (ac_try="$ac_cpp conftest.$ac_ext"
29689 case "(($ac_try" in
29690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29691   *) ac_try_echo=$ac_try;;
29692 esac
29693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29694 $as_echo "$ac_try_echo") >&5
29695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29696   ac_status=$?
29697   grep -v '^ *+' conftest.er1 >conftest.err
29698   rm -f conftest.er1
29699   cat conftest.err >&5
29700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701   (exit $ac_status); } >/dev/null && {
29702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29703          test ! -s conftest.err
29704        }; then
29705   ac_header_preproc=yes
29706 else
29707   $as_echo "$as_me: failed program was:" >&5
29708 sed 's/^/| /' conftest.$ac_ext >&5
29709
29710   ac_header_preproc=no
29711 fi
29712
29713 rm -f conftest.err conftest.$ac_ext
29714 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29715 $as_echo "$ac_header_preproc" >&6; }
29716
29717 # So?  What about this header?
29718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29719   yes:no: )
29720     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29721 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29722     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29724     ac_header_preproc=yes
29725     ;;
29726   no:yes:* )
29727     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29728 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29729     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29730 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29731     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29732 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29733     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29734 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29735     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29737     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29738 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29739     ( cat <<\_ASBOX
29740 ## ------------------------------- ##
29741 ## Report this to bug-wget@gnu.org ##
29742 ## ------------------------------- ##
29743 _ASBOX
29744      ) | sed "s/^/$as_me: WARNING:     /" >&2
29745     ;;
29746 esac
29747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29748 $as_echo_n "checking for $ac_header... " >&6; }
29749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29750   $as_echo_n "(cached) " >&6
29751 else
29752   eval "$as_ac_Header=\$ac_header_preproc"
29753 fi
29754 ac_res=`eval 'as_val=${'$as_ac_Header'}
29755                  $as_echo "$as_val"'`
29756                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29757 $as_echo "$ac_res" >&6; }
29758
29759 fi
29760 as_val=`eval 'as_val=${'$as_ac_Header'}
29761                  $as_echo "$as_val"'`
29762    if test "x$as_val" = x""yes; then
29763   cat >>confdefs.h <<_ACEOF
29764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29765 _ACEOF
29766
29767 fi
29768
29769 done
29770
29771     if test $ac_cv_header_sys_inttypes_h = yes; then
29772       HAVE_SYS_INTTYPES_H=1
29773     else
29774       HAVE_SYS_INTTYPES_H=0
29775     fi
29776
29777     if test $ac_cv_header_sys_bitypes_h = yes; then
29778       HAVE_SYS_BITYPES_H=1
29779     else
29780       HAVE_SYS_BITYPES_H=0
29781     fi
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793   if test $APPLE_UNIVERSAL_BUILD = 0; then
29794
29795
29796
29797
29798   for gltype in ptrdiff_t size_t ; do
29799     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29800 $as_echo_n "checking for bit size of $gltype... " >&6; }
29801 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29802   $as_echo_n "(cached) " >&6
29803 else
29804   if test "$cross_compiling" = yes; then
29805   # Depending upon the size, compute the lo and hi bounds.
29806 cat >conftest.$ac_ext <<_ACEOF
29807 /* confdefs.h.  */
29808 _ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h.  */
29812
29813   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29814      included before <wchar.h>.  */
29815   #include <stddef.h>
29816   #include <signal.h>
29817   #if HAVE_WCHAR_H
29818   # include <stdio.h>
29819   # include <time.h>
29820   # include <wchar.h>
29821   #endif
29822
29823 #include <limits.h>
29824 int
29825 main ()
29826 {
29827 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29828 test_array [0] = 0
29829
29830   ;
29831   return 0;
29832 }
29833 _ACEOF
29834 rm -f conftest.$ac_objext
29835 if { (ac_try="$ac_compile"
29836 case "(($ac_try" in
29837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838   *) ac_try_echo=$ac_try;;
29839 esac
29840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29841 $as_echo "$ac_try_echo") >&5
29842   (eval "$ac_compile") 2>conftest.er1
29843   ac_status=$?
29844   grep -v '^ *+' conftest.er1 >conftest.err
29845   rm -f conftest.er1
29846   cat conftest.err >&5
29847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848   (exit $ac_status); } && {
29849          test -z "$ac_c_werror_flag" ||
29850          test ! -s conftest.err
29851        } && test -s conftest.$ac_objext; then
29852   ac_lo=0 ac_mid=0
29853   while :; do
29854     cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h.  */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h.  */
29860
29861   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29862      included before <wchar.h>.  */
29863   #include <stddef.h>
29864   #include <signal.h>
29865   #if HAVE_WCHAR_H
29866   # include <stdio.h>
29867   # include <time.h>
29868   # include <wchar.h>
29869   #endif
29870
29871 #include <limits.h>
29872 int
29873 main ()
29874 {
29875 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29876 test_array [0] = 0
29877
29878   ;
29879   return 0;
29880 }
29881 _ACEOF
29882 rm -f conftest.$ac_objext
29883 if { (ac_try="$ac_compile"
29884 case "(($ac_try" in
29885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886   *) ac_try_echo=$ac_try;;
29887 esac
29888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29889 $as_echo "$ac_try_echo") >&5
29890   (eval "$ac_compile") 2>conftest.er1
29891   ac_status=$?
29892   grep -v '^ *+' conftest.er1 >conftest.err
29893   rm -f conftest.er1
29894   cat conftest.err >&5
29895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896   (exit $ac_status); } && {
29897          test -z "$ac_c_werror_flag" ||
29898          test ! -s conftest.err
29899        } && test -s conftest.$ac_objext; then
29900   ac_hi=$ac_mid; break
29901 else
29902   $as_echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29904
29905         ac_lo=`expr $ac_mid + 1`
29906                         if test $ac_lo -le $ac_mid; then
29907                           ac_lo= ac_hi=
29908                           break
29909                         fi
29910                         ac_mid=`expr 2 '*' $ac_mid + 1`
29911 fi
29912
29913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29914   done
29915 else
29916   $as_echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29918
29919         cat >conftest.$ac_ext <<_ACEOF
29920 /* confdefs.h.  */
29921 _ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h.  */
29925
29926   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29927      included before <wchar.h>.  */
29928   #include <stddef.h>
29929   #include <signal.h>
29930   #if HAVE_WCHAR_H
29931   # include <stdio.h>
29932   # include <time.h>
29933   # include <wchar.h>
29934   #endif
29935
29936 #include <limits.h>
29937 int
29938 main ()
29939 {
29940 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29941 test_array [0] = 0
29942
29943   ;
29944   return 0;
29945 }
29946 _ACEOF
29947 rm -f conftest.$ac_objext
29948 if { (ac_try="$ac_compile"
29949 case "(($ac_try" in
29950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951   *) ac_try_echo=$ac_try;;
29952 esac
29953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29954 $as_echo "$ac_try_echo") >&5
29955   (eval "$ac_compile") 2>conftest.er1
29956   ac_status=$?
29957   grep -v '^ *+' conftest.er1 >conftest.err
29958   rm -f conftest.er1
29959   cat conftest.err >&5
29960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961   (exit $ac_status); } && {
29962          test -z "$ac_c_werror_flag" ||
29963          test ! -s conftest.err
29964        } && test -s conftest.$ac_objext; then
29965   ac_hi=-1 ac_mid=-1
29966   while :; do
29967     cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h.  */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h.  */
29973
29974   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29975      included before <wchar.h>.  */
29976   #include <stddef.h>
29977   #include <signal.h>
29978   #if HAVE_WCHAR_H
29979   # include <stdio.h>
29980   # include <time.h>
29981   # include <wchar.h>
29982   #endif
29983
29984 #include <limits.h>
29985 int
29986 main ()
29987 {
29988 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29989 test_array [0] = 0
29990
29991   ;
29992   return 0;
29993 }
29994 _ACEOF
29995 rm -f conftest.$ac_objext
29996 if { (ac_try="$ac_compile"
29997 case "(($ac_try" in
29998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999   *) ac_try_echo=$ac_try;;
30000 esac
30001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30002 $as_echo "$ac_try_echo") >&5
30003   (eval "$ac_compile") 2>conftest.er1
30004   ac_status=$?
30005   grep -v '^ *+' conftest.er1 >conftest.err
30006   rm -f conftest.er1
30007   cat conftest.err >&5
30008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } && {
30010          test -z "$ac_c_werror_flag" ||
30011          test ! -s conftest.err
30012        } && test -s conftest.$ac_objext; then
30013   ac_lo=$ac_mid; break
30014 else
30015   $as_echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30017
30018         ac_hi=`expr '(' $ac_mid ')' - 1`
30019                         if test $ac_mid -le $ac_hi; then
30020                           ac_lo= ac_hi=
30021                           break
30022                         fi
30023                         ac_mid=`expr 2 '*' $ac_mid`
30024 fi
30025
30026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30027   done
30028 else
30029   $as_echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031
30032         ac_lo= ac_hi=
30033 fi
30034
30035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30036 fi
30037
30038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039 # Binary search between lo and hi bounds.
30040 while test "x$ac_lo" != "x$ac_hi"; do
30041   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30042   cat >conftest.$ac_ext <<_ACEOF
30043 /* confdefs.h.  */
30044 _ACEOF
30045 cat confdefs.h >>conftest.$ac_ext
30046 cat >>conftest.$ac_ext <<_ACEOF
30047 /* end confdefs.h.  */
30048
30049   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30050      included before <wchar.h>.  */
30051   #include <stddef.h>
30052   #include <signal.h>
30053   #if HAVE_WCHAR_H
30054   # include <stdio.h>
30055   # include <time.h>
30056   # include <wchar.h>
30057   #endif
30058
30059 #include <limits.h>
30060 int
30061 main ()
30062 {
30063 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30064 test_array [0] = 0
30065
30066   ;
30067   return 0;
30068 }
30069 _ACEOF
30070 rm -f conftest.$ac_objext
30071 if { (ac_try="$ac_compile"
30072 case "(($ac_try" in
30073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074   *) ac_try_echo=$ac_try;;
30075 esac
30076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30077 $as_echo "$ac_try_echo") >&5
30078   (eval "$ac_compile") 2>conftest.er1
30079   ac_status=$?
30080   grep -v '^ *+' conftest.er1 >conftest.err
30081   rm -f conftest.er1
30082   cat conftest.err >&5
30083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084   (exit $ac_status); } && {
30085          test -z "$ac_c_werror_flag" ||
30086          test ! -s conftest.err
30087        } && test -s conftest.$ac_objext; then
30088   ac_hi=$ac_mid
30089 else
30090   $as_echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30092
30093         ac_lo=`expr '(' $ac_mid ')' + 1`
30094 fi
30095
30096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30097 done
30098 case $ac_lo in
30099 ?*) result=$ac_lo;;
30100 '') result=unknown ;;
30101 esac
30102 else
30103   cat >conftest.$ac_ext <<_ACEOF
30104 /* confdefs.h.  */
30105 _ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h.  */
30109
30110   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30111      included before <wchar.h>.  */
30112   #include <stddef.h>
30113   #include <signal.h>
30114   #if HAVE_WCHAR_H
30115   # include <stdio.h>
30116   # include <time.h>
30117   # include <wchar.h>
30118   #endif
30119
30120 #include <limits.h>
30121 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30122 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30123 #include <stdio.h>
30124 #include <stdlib.h>
30125 int
30126 main ()
30127 {
30128
30129   FILE *f = fopen ("conftest.val", "w");
30130   if (! f)
30131     return 1;
30132   if ((sizeof ($gltype) * CHAR_BIT) < 0)
30133     {
30134       long int i = longval ();
30135       if (i != (sizeof ($gltype) * CHAR_BIT))
30136         return 1;
30137       fprintf (f, "%ld", i);
30138     }
30139   else
30140     {
30141       unsigned long int i = ulongval ();
30142       if (i != (sizeof ($gltype) * CHAR_BIT))
30143         return 1;
30144       fprintf (f, "%lu", i);
30145     }
30146   /* Do not output a trailing newline, as this causes \r\n confusion
30147      on some platforms.  */
30148   return ferror (f) || fclose (f) != 0;
30149
30150   ;
30151   return 0;
30152 }
30153 _ACEOF
30154 rm -f conftest$ac_exeext
30155 if { (ac_try="$ac_link"
30156 case "(($ac_try" in
30157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30158   *) ac_try_echo=$ac_try;;
30159 esac
30160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30161 $as_echo "$ac_try_echo") >&5
30162   (eval "$ac_link") 2>&5
30163   ac_status=$?
30164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30166   { (case "(($ac_try" in
30167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30168   *) ac_try_echo=$ac_try;;
30169 esac
30170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30171 $as_echo "$ac_try_echo") >&5
30172   (eval "$ac_try") 2>&5
30173   ac_status=$?
30174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175   (exit $ac_status); }; }; then
30176   result=`cat conftest.val`
30177 else
30178   $as_echo "$as_me: program exited with status $ac_status" >&5
30179 $as_echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30181
30182 ( exit $ac_status )
30183 result=unknown
30184 fi
30185 rm -rf conftest.dSYM
30186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30187 fi
30188 rm -f conftest.val
30189        eval gl_cv_bitsizeof_${gltype}=\$result
30190
30191 fi
30192 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
30193                  $as_echo "$as_val"'`
30194                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30195 $as_echo "$ac_res" >&6; }
30196     eval result=\$gl_cv_bitsizeof_${gltype}
30197     if test $result = unknown; then
30198                                                 result=0
30199     fi
30200     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30201     cat >>confdefs.h <<_ACEOF
30202 #define BITSIZEOF_${GLTYPE} $result
30203 _ACEOF
30204
30205     eval BITSIZEOF_${GLTYPE}=\$result
30206   done
30207
30208
30209   fi
30210
30211
30212
30213
30214
30215   for gltype in sig_atomic_t wchar_t wint_t ; do
30216     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30217 $as_echo_n "checking for bit size of $gltype... " >&6; }
30218 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30219   $as_echo_n "(cached) " >&6
30220 else
30221   if test "$cross_compiling" = yes; then
30222   # Depending upon the size, compute the lo and hi bounds.
30223 cat >conftest.$ac_ext <<_ACEOF
30224 /* confdefs.h.  */
30225 _ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h.  */
30229
30230   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30231      included before <wchar.h>.  */
30232   #include <stddef.h>
30233   #include <signal.h>
30234   #if HAVE_WCHAR_H
30235   # include <stdio.h>
30236   # include <time.h>
30237   # include <wchar.h>
30238   #endif
30239
30240 #include <limits.h>
30241 int
30242 main ()
30243 {
30244 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30245 test_array [0] = 0
30246
30247   ;
30248   return 0;
30249 }
30250 _ACEOF
30251 rm -f conftest.$ac_objext
30252 if { (ac_try="$ac_compile"
30253 case "(($ac_try" in
30254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255   *) ac_try_echo=$ac_try;;
30256 esac
30257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30258 $as_echo "$ac_try_echo") >&5
30259   (eval "$ac_compile") 2>conftest.er1
30260   ac_status=$?
30261   grep -v '^ *+' conftest.er1 >conftest.err
30262   rm -f conftest.er1
30263   cat conftest.err >&5
30264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265   (exit $ac_status); } && {
30266          test -z "$ac_c_werror_flag" ||
30267          test ! -s conftest.err
30268        } && test -s conftest.$ac_objext; then
30269   ac_lo=0 ac_mid=0
30270   while :; do
30271     cat >conftest.$ac_ext <<_ACEOF
30272 /* confdefs.h.  */
30273 _ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h.  */
30277
30278   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30279      included before <wchar.h>.  */
30280   #include <stddef.h>
30281   #include <signal.h>
30282   #if HAVE_WCHAR_H
30283   # include <stdio.h>
30284   # include <time.h>
30285   # include <wchar.h>
30286   #endif
30287
30288 #include <limits.h>
30289 int
30290 main ()
30291 {
30292 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30293 test_array [0] = 0
30294
30295   ;
30296   return 0;
30297 }
30298 _ACEOF
30299 rm -f conftest.$ac_objext
30300 if { (ac_try="$ac_compile"
30301 case "(($ac_try" in
30302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303   *) ac_try_echo=$ac_try;;
30304 esac
30305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30306 $as_echo "$ac_try_echo") >&5
30307   (eval "$ac_compile") 2>conftest.er1
30308   ac_status=$?
30309   grep -v '^ *+' conftest.er1 >conftest.err
30310   rm -f conftest.er1
30311   cat conftest.err >&5
30312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313   (exit $ac_status); } && {
30314          test -z "$ac_c_werror_flag" ||
30315          test ! -s conftest.err
30316        } && test -s conftest.$ac_objext; then
30317   ac_hi=$ac_mid; break
30318 else
30319   $as_echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30321
30322         ac_lo=`expr $ac_mid + 1`
30323                         if test $ac_lo -le $ac_mid; then
30324                           ac_lo= ac_hi=
30325                           break
30326                         fi
30327                         ac_mid=`expr 2 '*' $ac_mid + 1`
30328 fi
30329
30330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30331   done
30332 else
30333   $as_echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30335
30336         cat >conftest.$ac_ext <<_ACEOF
30337 /* confdefs.h.  */
30338 _ACEOF
30339 cat confdefs.h >>conftest.$ac_ext
30340 cat >>conftest.$ac_ext <<_ACEOF
30341 /* end confdefs.h.  */
30342
30343   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30344      included before <wchar.h>.  */
30345   #include <stddef.h>
30346   #include <signal.h>
30347   #if HAVE_WCHAR_H
30348   # include <stdio.h>
30349   # include <time.h>
30350   # include <wchar.h>
30351   #endif
30352
30353 #include <limits.h>
30354 int
30355 main ()
30356 {
30357 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30358 test_array [0] = 0
30359
30360   ;
30361   return 0;
30362 }
30363 _ACEOF
30364 rm -f conftest.$ac_objext
30365 if { (ac_try="$ac_compile"
30366 case "(($ac_try" in
30367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368   *) ac_try_echo=$ac_try;;
30369 esac
30370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30371 $as_echo "$ac_try_echo") >&5
30372   (eval "$ac_compile") 2>conftest.er1
30373   ac_status=$?
30374   grep -v '^ *+' conftest.er1 >conftest.err
30375   rm -f conftest.er1
30376   cat conftest.err >&5
30377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378   (exit $ac_status); } && {
30379          test -z "$ac_c_werror_flag" ||
30380          test ! -s conftest.err
30381        } && test -s conftest.$ac_objext; then
30382   ac_hi=-1 ac_mid=-1
30383   while :; do
30384     cat >conftest.$ac_ext <<_ACEOF
30385 /* confdefs.h.  */
30386 _ACEOF
30387 cat confdefs.h >>conftest.$ac_ext
30388 cat >>conftest.$ac_ext <<_ACEOF
30389 /* end confdefs.h.  */
30390
30391   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30392      included before <wchar.h>.  */
30393   #include <stddef.h>
30394   #include <signal.h>
30395   #if HAVE_WCHAR_H
30396   # include <stdio.h>
30397   # include <time.h>
30398   # include <wchar.h>
30399   #endif
30400
30401 #include <limits.h>
30402 int
30403 main ()
30404 {
30405 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30406 test_array [0] = 0
30407
30408   ;
30409   return 0;
30410 }
30411 _ACEOF
30412 rm -f conftest.$ac_objext
30413 if { (ac_try="$ac_compile"
30414 case "(($ac_try" in
30415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416   *) ac_try_echo=$ac_try;;
30417 esac
30418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30419 $as_echo "$ac_try_echo") >&5
30420   (eval "$ac_compile") 2>conftest.er1
30421   ac_status=$?
30422   grep -v '^ *+' conftest.er1 >conftest.err
30423   rm -f conftest.er1
30424   cat conftest.err >&5
30425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426   (exit $ac_status); } && {
30427          test -z "$ac_c_werror_flag" ||
30428          test ! -s conftest.err
30429        } && test -s conftest.$ac_objext; then
30430   ac_lo=$ac_mid; break
30431 else
30432   $as_echo "$as_me: failed program was:" >&5
30433 sed 's/^/| /' conftest.$ac_ext >&5
30434
30435         ac_hi=`expr '(' $ac_mid ')' - 1`
30436                         if test $ac_mid -le $ac_hi; then
30437                           ac_lo= ac_hi=
30438                           break
30439                         fi
30440                         ac_mid=`expr 2 '*' $ac_mid`
30441 fi
30442
30443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30444   done
30445 else
30446   $as_echo "$as_me: failed program was:" >&5
30447 sed 's/^/| /' conftest.$ac_ext >&5
30448
30449         ac_lo= ac_hi=
30450 fi
30451
30452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30453 fi
30454
30455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456 # Binary search between lo and hi bounds.
30457 while test "x$ac_lo" != "x$ac_hi"; do
30458   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30459   cat >conftest.$ac_ext <<_ACEOF
30460 /* confdefs.h.  */
30461 _ACEOF
30462 cat confdefs.h >>conftest.$ac_ext
30463 cat >>conftest.$ac_ext <<_ACEOF
30464 /* end confdefs.h.  */
30465
30466   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30467      included before <wchar.h>.  */
30468   #include <stddef.h>
30469   #include <signal.h>
30470   #if HAVE_WCHAR_H
30471   # include <stdio.h>
30472   # include <time.h>
30473   # include <wchar.h>
30474   #endif
30475
30476 #include <limits.h>
30477 int
30478 main ()
30479 {
30480 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30481 test_array [0] = 0
30482
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest.$ac_objext
30488 if { (ac_try="$ac_compile"
30489 case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30494 $as_echo "$ac_try_echo") >&5
30495   (eval "$ac_compile") 2>conftest.er1
30496   ac_status=$?
30497   grep -v '^ *+' conftest.er1 >conftest.err
30498   rm -f conftest.er1
30499   cat conftest.err >&5
30500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501   (exit $ac_status); } && {
30502          test -z "$ac_c_werror_flag" ||
30503          test ! -s conftest.err
30504        } && test -s conftest.$ac_objext; then
30505   ac_hi=$ac_mid
30506 else
30507   $as_echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30509
30510         ac_lo=`expr '(' $ac_mid ')' + 1`
30511 fi
30512
30513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30514 done
30515 case $ac_lo in
30516 ?*) result=$ac_lo;;
30517 '') result=unknown ;;
30518 esac
30519 else
30520   cat >conftest.$ac_ext <<_ACEOF
30521 /* confdefs.h.  */
30522 _ACEOF
30523 cat confdefs.h >>conftest.$ac_ext
30524 cat >>conftest.$ac_ext <<_ACEOF
30525 /* end confdefs.h.  */
30526
30527   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30528      included before <wchar.h>.  */
30529   #include <stddef.h>
30530   #include <signal.h>
30531   #if HAVE_WCHAR_H
30532   # include <stdio.h>
30533   # include <time.h>
30534   # include <wchar.h>
30535   #endif
30536
30537 #include <limits.h>
30538 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30539 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30540 #include <stdio.h>
30541 #include <stdlib.h>
30542 int
30543 main ()
30544 {
30545
30546   FILE *f = fopen ("conftest.val", "w");
30547   if (! f)
30548     return 1;
30549   if ((sizeof ($gltype) * CHAR_BIT) < 0)
30550     {
30551       long int i = longval ();
30552       if (i != (sizeof ($gltype) * CHAR_BIT))
30553         return 1;
30554       fprintf (f, "%ld", i);
30555     }
30556   else
30557     {
30558       unsigned long int i = ulongval ();
30559       if (i != (sizeof ($gltype) * CHAR_BIT))
30560         return 1;
30561       fprintf (f, "%lu", i);
30562     }
30563   /* Do not output a trailing newline, as this causes \r\n confusion
30564      on some platforms.  */
30565   return ferror (f) || fclose (f) != 0;
30566
30567   ;
30568   return 0;
30569 }
30570 _ACEOF
30571 rm -f conftest$ac_exeext
30572 if { (ac_try="$ac_link"
30573 case "(($ac_try" in
30574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575   *) ac_try_echo=$ac_try;;
30576 esac
30577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30578 $as_echo "$ac_try_echo") >&5
30579   (eval "$ac_link") 2>&5
30580   ac_status=$?
30581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30583   { (case "(($ac_try" in
30584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585   *) ac_try_echo=$ac_try;;
30586 esac
30587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30588 $as_echo "$ac_try_echo") >&5
30589   (eval "$ac_try") 2>&5
30590   ac_status=$?
30591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); }; }; then
30593   result=`cat conftest.val`
30594 else
30595   $as_echo "$as_me: program exited with status $ac_status" >&5
30596 $as_echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30598
30599 ( exit $ac_status )
30600 result=unknown
30601 fi
30602 rm -rf conftest.dSYM
30603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30604 fi
30605 rm -f conftest.val
30606        eval gl_cv_bitsizeof_${gltype}=\$result
30607
30608 fi
30609 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
30610                  $as_echo "$as_val"'`
30611                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30612 $as_echo "$ac_res" >&6; }
30613     eval result=\$gl_cv_bitsizeof_${gltype}
30614     if test $result = unknown; then
30615                                                 result=0
30616     fi
30617     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30618     cat >>confdefs.h <<_ACEOF
30619 #define BITSIZEOF_${GLTYPE} $result
30620 _ACEOF
30621
30622     eval BITSIZEOF_${GLTYPE}=\$result
30623   done
30624
30625
30626
30627
30628
30629
30630
30631   for gltype in sig_atomic_t wchar_t wint_t ; do
30632     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
30633 $as_echo_n "checking whether $gltype is signed... " >&6; }
30634 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
30635   $as_echo_n "(cached) " >&6
30636 else
30637   cat >conftest.$ac_ext <<_ACEOF
30638 /* confdefs.h.  */
30639 _ACEOF
30640 cat confdefs.h >>conftest.$ac_ext
30641 cat >>conftest.$ac_ext <<_ACEOF
30642 /* end confdefs.h.  */
30643
30644   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30645      included before <wchar.h>.  */
30646   #include <stddef.h>
30647   #include <signal.h>
30648   #if HAVE_WCHAR_H
30649   # include <stdio.h>
30650   # include <time.h>
30651   # include <wchar.h>
30652   #endif
30653
30654             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
30655 int
30656 main ()
30657 {
30658
30659   ;
30660   return 0;
30661 }
30662 _ACEOF
30663 rm -f conftest.$ac_objext
30664 if { (ac_try="$ac_compile"
30665 case "(($ac_try" in
30666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667   *) ac_try_echo=$ac_try;;
30668 esac
30669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30670 $as_echo "$ac_try_echo") >&5
30671   (eval "$ac_compile") 2>conftest.er1
30672   ac_status=$?
30673   grep -v '^ *+' conftest.er1 >conftest.err
30674   rm -f conftest.er1
30675   cat conftest.err >&5
30676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); } && {
30678          test -z "$ac_c_werror_flag" ||
30679          test ! -s conftest.err
30680        } && test -s conftest.$ac_objext; then
30681   result=yes
30682 else
30683   $as_echo "$as_me: failed program was:" >&5
30684 sed 's/^/| /' conftest.$ac_ext >&5
30685
30686         result=no
30687 fi
30688
30689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30690        eval gl_cv_type_${gltype}_signed=\$result
30691
30692 fi
30693 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
30694                  $as_echo "$as_val"'`
30695                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30696 $as_echo "$ac_res" >&6; }
30697     eval result=\$gl_cv_type_${gltype}_signed
30698     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30699     if test "$result" = yes; then
30700       cat >>confdefs.h <<_ACEOF
30701 #define HAVE_SIGNED_${GLTYPE} 1
30702 _ACEOF
30703
30704       eval HAVE_SIGNED_${GLTYPE}=1
30705     else
30706       eval HAVE_SIGNED_${GLTYPE}=0
30707     fi
30708   done
30709
30710
30711   gl_cv_type_ptrdiff_t_signed=yes
30712   gl_cv_type_size_t_signed=no
30713   if test $APPLE_UNIVERSAL_BUILD = 0; then
30714
30715
30716
30717
30718   for gltype in ptrdiff_t size_t ; do
30719     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30720 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30721 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30722   $as_echo_n "(cached) " >&6
30723 else
30724   eval gl_cv_type_${gltype}_suffix=no
30725        eval result=\$gl_cv_type_${gltype}_signed
30726        if test "$result" = yes; then
30727          glsufu=
30728        else
30729          glsufu=u
30730        fi
30731        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30732          case $glsuf in
30733            '')  gltype1='int';;
30734            l)   gltype1='long int';;
30735            ll)  gltype1='long long int';;
30736            i64) gltype1='__int64';;
30737            u)   gltype1='unsigned int';;
30738            ul)  gltype1='unsigned long int';;
30739            ull) gltype1='unsigned long long int';;
30740            ui64)gltype1='unsigned __int64';;
30741          esac
30742          cat >conftest.$ac_ext <<_ACEOF
30743 /* confdefs.h.  */
30744 _ACEOF
30745 cat confdefs.h >>conftest.$ac_ext
30746 cat >>conftest.$ac_ext <<_ACEOF
30747 /* end confdefs.h.  */
30748
30749   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30750      included before <wchar.h>.  */
30751   #include <stddef.h>
30752   #include <signal.h>
30753   #if HAVE_WCHAR_H
30754   # include <stdio.h>
30755   # include <time.h>
30756   # include <wchar.h>
30757   #endif
30758
30759               extern $gltype foo;
30760               extern $gltype1 foo;
30761 int
30762 main ()
30763 {
30764
30765   ;
30766   return 0;
30767 }
30768 _ACEOF
30769 rm -f conftest.$ac_objext
30770 if { (ac_try="$ac_compile"
30771 case "(($ac_try" in
30772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773   *) ac_try_echo=$ac_try;;
30774 esac
30775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30776 $as_echo "$ac_try_echo") >&5
30777   (eval "$ac_compile") 2>conftest.er1
30778   ac_status=$?
30779   grep -v '^ *+' conftest.er1 >conftest.err
30780   rm -f conftest.er1
30781   cat conftest.err >&5
30782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783   (exit $ac_status); } && {
30784          test -z "$ac_c_werror_flag" ||
30785          test ! -s conftest.err
30786        } && test -s conftest.$ac_objext; then
30787   eval gl_cv_type_${gltype}_suffix=\$glsuf
30788 else
30789   $as_echo "$as_me: failed program was:" >&5
30790 sed 's/^/| /' conftest.$ac_ext >&5
30791
30792
30793 fi
30794
30795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30796          eval result=\$gl_cv_type_${gltype}_suffix
30797          test "$result" != no && break
30798        done
30799 fi
30800 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30801                  $as_echo "$as_val"'`
30802                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30803 $as_echo "$ac_res" >&6; }
30804     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30805     eval result=\$gl_cv_type_${gltype}_suffix
30806     test "$result" = no && result=
30807     eval ${GLTYPE}_SUFFIX=\$result
30808     cat >>confdefs.h <<_ACEOF
30809 #define ${GLTYPE}_SUFFIX $result
30810 _ACEOF
30811
30812   done
30813
30814
30815   fi
30816
30817
30818
30819
30820
30821   for gltype in sig_atomic_t wchar_t wint_t ; do
30822     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30823 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30824 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30825   $as_echo_n "(cached) " >&6
30826 else
30827   eval gl_cv_type_${gltype}_suffix=no
30828        eval result=\$gl_cv_type_${gltype}_signed
30829        if test "$result" = yes; then
30830          glsufu=
30831        else
30832          glsufu=u
30833        fi
30834        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30835          case $glsuf in
30836            '')  gltype1='int';;
30837            l)   gltype1='long int';;
30838            ll)  gltype1='long long int';;
30839            i64) gltype1='__int64';;
30840            u)   gltype1='unsigned int';;
30841            ul)  gltype1='unsigned long int';;
30842            ull) gltype1='unsigned long long int';;
30843            ui64)gltype1='unsigned __int64';;
30844          esac
30845          cat >conftest.$ac_ext <<_ACEOF
30846 /* confdefs.h.  */
30847 _ACEOF
30848 cat confdefs.h >>conftest.$ac_ext
30849 cat >>conftest.$ac_ext <<_ACEOF
30850 /* end confdefs.h.  */
30851
30852   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30853      included before <wchar.h>.  */
30854   #include <stddef.h>
30855   #include <signal.h>
30856   #if HAVE_WCHAR_H
30857   # include <stdio.h>
30858   # include <time.h>
30859   # include <wchar.h>
30860   #endif
30861
30862               extern $gltype foo;
30863               extern $gltype1 foo;
30864 int
30865 main ()
30866 {
30867
30868   ;
30869   return 0;
30870 }
30871 _ACEOF
30872 rm -f conftest.$ac_objext
30873 if { (ac_try="$ac_compile"
30874 case "(($ac_try" in
30875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876   *) ac_try_echo=$ac_try;;
30877 esac
30878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30879 $as_echo "$ac_try_echo") >&5
30880   (eval "$ac_compile") 2>conftest.er1
30881   ac_status=$?
30882   grep -v '^ *+' conftest.er1 >conftest.err
30883   rm -f conftest.er1
30884   cat conftest.err >&5
30885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); } && {
30887          test -z "$ac_c_werror_flag" ||
30888          test ! -s conftest.err
30889        } && test -s conftest.$ac_objext; then
30890   eval gl_cv_type_${gltype}_suffix=\$glsuf
30891 else
30892   $as_echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30894
30895
30896 fi
30897
30898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30899          eval result=\$gl_cv_type_${gltype}_suffix
30900          test "$result" != no && break
30901        done
30902 fi
30903 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30904                  $as_echo "$as_val"'`
30905                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30906 $as_echo "$ac_res" >&6; }
30907     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30908     eval result=\$gl_cv_type_${gltype}_suffix
30909     test "$result" = no && result=
30910     eval ${GLTYPE}_SUFFIX=\$result
30911     cat >>confdefs.h <<_ACEOF
30912 #define ${GLTYPE}_SUFFIX $result
30913 _ACEOF
30914
30915   done
30916
30917
30918
30919     STDINT_H=stdint.h
30920   fi
30921
30922
30923
30924
30925   { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
30926 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
30927 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
30928   $as_echo_n "(cached) " >&6
30929 else
30930   cat >conftest.$ac_ext <<_ACEOF
30931 #include <wchar.h>
30932 wchar_t w;
30933 _ACEOF
30934 rm -f conftest.$ac_objext
30935 if { (ac_try="$ac_compile"
30936 case "(($ac_try" in
30937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938   *) ac_try_echo=$ac_try;;
30939 esac
30940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30941 $as_echo "$ac_try_echo") >&5
30942   (eval "$ac_compile") 2>conftest.er1
30943   ac_status=$?
30944   grep -v '^ *+' conftest.er1 >conftest.err
30945   rm -f conftest.er1
30946   cat conftest.err >&5
30947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948   (exit $ac_status); } && {
30949          test -z "$ac_c_werror_flag" ||
30950          test ! -s conftest.err
30951        } && test -s conftest.$ac_objext; then
30952   gl_cv_header_wchar_h_standalone=yes
30953 else
30954   $as_echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30956
30957         gl_cv_header_wchar_h_standalone=no
30958 fi
30959
30960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30961 fi
30962 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
30963 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
30964
30965
30966   if test $gt_cv_c_wint_t = yes; then
30967     HAVE_WINT_T=1
30968   else
30969     HAVE_WINT_T=0
30970   fi
30971
30972
30973
30974
30975   if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
30976     WCHAR_H=wchar.h
30977   fi
30978
30979
30980
30981
30982
30983
30984
30985   if test $ac_cv_header_wchar_h = yes; then
30986     HAVE_WCHAR_H=1
30987   else
30988     HAVE_WCHAR_H=0
30989   fi
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002      if test $gl_cv_have_include_next = yes; then
31003        gl_cv_next_wchar_h='<'wchar.h'>'
31004      else
31005        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
31006 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
31007 if test "${gl_cv_next_wchar_h+set}" = set; then
31008   $as_echo_n "(cached) " >&6
31009 else
31010
31011           if test $ac_cv_header_wchar_h = yes; then
31012             cat >conftest.$ac_ext <<_ACEOF
31013 /* confdefs.h.  */
31014 _ACEOF
31015 cat confdefs.h >>conftest.$ac_ext
31016 cat >>conftest.$ac_ext <<_ACEOF
31017 /* end confdefs.h.  */
31018 #include <wchar.h>
31019
31020 _ACEOF
31021                                                                     case "$host_os" in
31022               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31023               *)    gl_absname_cpp="$ac_cpp" ;;
31024             esac
31025                                     gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31026                sed -n '\#/wchar.h#{
31027                  s#.*"\(.*/wchar.h\)".*#\1#
31028                  s#^/[^/]#//&#
31029                  p
31030                  q
31031                }'`'"'
31032           else
31033             gl_cv_next_wchar_h='<'wchar.h'>'
31034           fi
31035
31036 fi
31037 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
31038 $as_echo "$gl_cv_next_wchar_h" >&6; }
31039      fi
31040      NEXT_WCHAR_H=$gl_cv_next_wchar_h
31041
31042      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31043        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31044        gl_next_as_first_directive='<'wchar.h'>'
31045      else
31046        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31047        gl_next_as_first_directive=$gl_cv_next_wchar_h
31048      fi
31049      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063   gltests_libdeps=
31064   gltests_ltlibdeps=
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074   gl_source_base='tests'
31075
31076
31077
31078
31079
31080
31081
31082   LIBMD5_LIBDEPS="$gl_libdeps"
31083
31084   LIBMD5_LTLIBDEPS="$gl_ltlibdeps"
31085
31086
31087   fi
31088
31089 cat >>confdefs.h <<\_ACEOF
31090 #define HAVE_MD5 1
31091 _ACEOF
31092
31093 fi
31094
31095
31096
31097 # Check whether --enable-ipv6 was given.
31098 if test "${enable_ipv6+set}" = set; then
31099   enableval=$enable_ipv6; case "${enable_ipv6}" in
31100     no)
31101       { $as_echo "$as_me:$LINENO: disabling IPv6 at user request" >&5
31102 $as_echo "$as_me: disabling IPv6 at user request" >&6;}
31103             ipv6=no
31104       ;;
31105     yes)
31106             ipv6=yes
31107       force_ipv6=yes
31108       ;;
31109     auto)
31110             ipv6=yes
31111       ;;
31112     *)
31113       { { $as_echo "$as_me:$LINENO: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&5
31114 $as_echo "$as_me: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&2;}
31115    { (exit 1); exit 1; }; }
31116       ;;
31117     esac
31118
31119 else
31120
31121         ipv6=yes
31122
31123
31124 fi
31125
31126
31127 if test "X$ipv6" = "Xyes"; then
31128
31129 for ac_func in getaddrinfo
31130 do
31131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31133 $as_echo_n "checking for $ac_func... " >&6; }
31134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31135   $as_echo_n "(cached) " >&6
31136 else
31137   cat >conftest.$ac_ext <<_ACEOF
31138 /* confdefs.h.  */
31139 _ACEOF
31140 cat confdefs.h >>conftest.$ac_ext
31141 cat >>conftest.$ac_ext <<_ACEOF
31142 /* end confdefs.h.  */
31143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31145 #define $ac_func innocuous_$ac_func
31146
31147 /* System header to define __stub macros and hopefully few prototypes,
31148     which can conflict with char $ac_func (); below.
31149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31150     <limits.h> exists even on freestanding compilers.  */
31151
31152 #ifdef __STDC__
31153 # include <limits.h>
31154 #else
31155 # include <assert.h>
31156 #endif
31157
31158 #undef $ac_func
31159
31160 /* Override any GCC internal prototype to avoid an error.
31161    Use char because int might match the return type of a GCC
31162    builtin and then its argument prototype would still apply.  */
31163 #ifdef __cplusplus
31164 extern "C"
31165 #endif
31166 char $ac_func ();
31167 /* The GNU C library defines this for functions which it implements
31168     to always fail with ENOSYS.  Some functions are actually named
31169     something starting with __ and the normal name is an alias.  */
31170 #if defined __stub_$ac_func || defined __stub___$ac_func
31171 choke me
31172 #endif
31173
31174 int
31175 main ()
31176 {
31177 return $ac_func ();
31178   ;
31179   return 0;
31180 }
31181 _ACEOF
31182 rm -f conftest.$ac_objext conftest$ac_exeext
31183 if { (ac_try="$ac_link"
31184 case "(($ac_try" in
31185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31186   *) ac_try_echo=$ac_try;;
31187 esac
31188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31189 $as_echo "$ac_try_echo") >&5
31190   (eval "$ac_link") 2>conftest.er1
31191   ac_status=$?
31192   grep -v '^ *+' conftest.er1 >conftest.err
31193   rm -f conftest.er1
31194   cat conftest.err >&5
31195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196   (exit $ac_status); } && {
31197          test -z "$ac_c_werror_flag" ||
31198          test ! -s conftest.err
31199        } && test -s conftest$ac_exeext && {
31200          test "$cross_compiling" = yes ||
31201          $as_test_x conftest$ac_exeext
31202        }; then
31203   eval "$as_ac_var=yes"
31204 else
31205   $as_echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31207
31208         eval "$as_ac_var=no"
31209 fi
31210
31211 rm -rf conftest.dSYM
31212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31213       conftest$ac_exeext conftest.$ac_ext
31214 fi
31215 ac_res=`eval 'as_val=${'$as_ac_var'}
31216                  $as_echo "$as_val"'`
31217                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31218 $as_echo "$ac_res" >&6; }
31219 as_val=`eval 'as_val=${'$as_ac_var'}
31220                  $as_echo "$as_val"'`
31221    if test "x$as_val" = x""yes; then
31222   cat >>confdefs.h <<_ACEOF
31223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31224 _ACEOF
31225
31226 else
31227
31228     { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&5
31229 $as_echo "$as_me: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&6;}
31230     ipv6=no
31231
31232 fi
31233 done
31234
31235 fi
31236
31237 if test "X$ipv6" = "Xyes"; then
31238
31239   { $as_echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
31240 $as_echo_n "checking for INET6 protocol support... " >&6; }
31241 if test "${wget_cv_proto_inet6+set}" = set; then
31242   $as_echo_n "(cached) " >&6
31243 else
31244
31245     cat >conftest.$ac_ext <<_ACEOF
31246 /* confdefs.h.  */
31247 _ACEOF
31248 cat confdefs.h >>conftest.$ac_ext
31249 cat >>conftest.$ac_ext <<_ACEOF
31250 /* end confdefs.h.  */
31251
31252 #include <sys/types.h>
31253 #include <sys/socket.h>
31254
31255 #ifndef PF_INET6
31256 #error Missing PF_INET6
31257 #endif
31258 #ifndef AF_INET6
31259 #error Mlssing AF_INET6
31260 #endif
31261
31262 _ACEOF
31263 if { (ac_try="$ac_cpp conftest.$ac_ext"
31264 case "(($ac_try" in
31265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266   *) ac_try_echo=$ac_try;;
31267 esac
31268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31269 $as_echo "$ac_try_echo") >&5
31270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31271   ac_status=$?
31272   grep -v '^ *+' conftest.er1 >conftest.err
31273   rm -f conftest.er1
31274   cat conftest.err >&5
31275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276   (exit $ac_status); } >/dev/null && {
31277          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31278          test ! -s conftest.err
31279        }; then
31280
31281       wget_cv_proto_inet6=yes
31282
31283 else
31284   $as_echo "$as_me: failed program was:" >&5
31285 sed 's/^/| /' conftest.$ac_ext >&5
31286
31287
31288       wget_cv_proto_inet6=no
31289
31290 fi
31291
31292 rm -f conftest.err conftest.$ac_ext
31293
31294 fi
31295 { $as_echo "$as_me:$LINENO: result: $wget_cv_proto_inet6" >&5
31296 $as_echo "$wget_cv_proto_inet6" >&6; }
31297
31298   if test "X$wget_cv_proto_inet6" = "Xyes"; then :
31299
31300   else :
31301
31302     { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&5
31303 $as_echo "$as_me: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&6;}
31304     ipv6=no
31305
31306   fi
31307
31308 fi
31309
31310 if test "X$ipv6" = "Xyes"; then
31311
31312   wget_have_sockaddr_in6=
31313   { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
31314 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
31315 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
31316   $as_echo_n "(cached) " >&6
31317 else
31318   ac_cv_type_struct_sockaddr_in6=no
31319 cat >conftest.$ac_ext <<_ACEOF
31320 /* confdefs.h.  */
31321 _ACEOF
31322 cat confdefs.h >>conftest.$ac_ext
31323 cat >>conftest.$ac_ext <<_ACEOF
31324 /* end confdefs.h.  */
31325
31326 #include <sys/types.h>
31327 #include <sys/socket.h>
31328 #include <netinet/in.h>
31329
31330
31331 int
31332 main ()
31333 {
31334 if (sizeof (struct sockaddr_in6))
31335        return 0;
31336   ;
31337   return 0;
31338 }
31339 _ACEOF
31340 rm -f conftest.$ac_objext
31341 if { (ac_try="$ac_compile"
31342 case "(($ac_try" in
31343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344   *) ac_try_echo=$ac_try;;
31345 esac
31346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31347 $as_echo "$ac_try_echo") >&5
31348   (eval "$ac_compile") 2>conftest.er1
31349   ac_status=$?
31350   grep -v '^ *+' conftest.er1 >conftest.err
31351   rm -f conftest.er1
31352   cat conftest.err >&5
31353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354   (exit $ac_status); } && {
31355          test -z "$ac_c_werror_flag" ||
31356          test ! -s conftest.err
31357        } && test -s conftest.$ac_objext; then
31358   cat >conftest.$ac_ext <<_ACEOF
31359 /* confdefs.h.  */
31360 _ACEOF
31361 cat confdefs.h >>conftest.$ac_ext
31362 cat >>conftest.$ac_ext <<_ACEOF
31363 /* end confdefs.h.  */
31364
31365 #include <sys/types.h>
31366 #include <sys/socket.h>
31367 #include <netinet/in.h>
31368
31369
31370 int
31371 main ()
31372 {
31373 if (sizeof ((struct sockaddr_in6)))
31374           return 0;
31375   ;
31376   return 0;
31377 }
31378 _ACEOF
31379 rm -f conftest.$ac_objext
31380 if { (ac_try="$ac_compile"
31381 case "(($ac_try" in
31382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383   *) ac_try_echo=$ac_try;;
31384 esac
31385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31386 $as_echo "$ac_try_echo") >&5
31387   (eval "$ac_compile") 2>conftest.er1
31388   ac_status=$?
31389   grep -v '^ *+' conftest.er1 >conftest.err
31390   rm -f conftest.er1
31391   cat conftest.err >&5
31392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393   (exit $ac_status); } && {
31394          test -z "$ac_c_werror_flag" ||
31395          test ! -s conftest.err
31396        } && test -s conftest.$ac_objext; then
31397   :
31398 else
31399   $as_echo "$as_me: failed program was:" >&5
31400 sed 's/^/| /' conftest.$ac_ext >&5
31401
31402         ac_cv_type_struct_sockaddr_in6=yes
31403 fi
31404
31405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31406 else
31407   $as_echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31409
31410
31411 fi
31412
31413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31414 fi
31415 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
31416 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
31417 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
31418
31419 cat >>confdefs.h <<_ACEOF
31420 #define HAVE_STRUCT_SOCKADDR_IN6 1
31421 _ACEOF
31422
31423
31424     wget_have_sockaddr_in6=yes
31425
31426 else
31427
31428     wget_have_sockaddr_in6=no
31429
31430 fi
31431
31432
31433   if test "X$wget_have_sockaddr_in6" = "Xyes"; then :
31434
31435   else :
31436
31437     { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&5
31438 $as_echo "$as_me: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&6;}
31439     ipv6=no
31440
31441   fi
31442
31443   if test "X$ipv6" = "Xyes"; then
31444
31445   { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
31446 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
31447 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
31448   $as_echo_n "(cached) " >&6
31449 else
31450   ac_cv_type_struct_sockaddr_storage=no
31451 cat >conftest.$ac_ext <<_ACEOF
31452 /* confdefs.h.  */
31453 _ACEOF
31454 cat confdefs.h >>conftest.$ac_ext
31455 cat >>conftest.$ac_ext <<_ACEOF
31456 /* end confdefs.h.  */
31457
31458 #include <sys/types.h>
31459 #include <sys/socket.h>
31460
31461
31462 int
31463 main ()
31464 {
31465 if (sizeof (struct sockaddr_storage))
31466        return 0;
31467   ;
31468   return 0;
31469 }
31470 _ACEOF
31471 rm -f conftest.$ac_objext
31472 if { (ac_try="$ac_compile"
31473 case "(($ac_try" in
31474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475   *) ac_try_echo=$ac_try;;
31476 esac
31477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31478 $as_echo "$ac_try_echo") >&5
31479   (eval "$ac_compile") 2>conftest.er1
31480   ac_status=$?
31481   grep -v '^ *+' conftest.er1 >conftest.err
31482   rm -f conftest.er1
31483   cat conftest.err >&5
31484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485   (exit $ac_status); } && {
31486          test -z "$ac_c_werror_flag" ||
31487          test ! -s conftest.err
31488        } && test -s conftest.$ac_objext; then
31489   cat >conftest.$ac_ext <<_ACEOF
31490 /* confdefs.h.  */
31491 _ACEOF
31492 cat confdefs.h >>conftest.$ac_ext
31493 cat >>conftest.$ac_ext <<_ACEOF
31494 /* end confdefs.h.  */
31495
31496 #include <sys/types.h>
31497 #include <sys/socket.h>
31498
31499
31500 int
31501 main ()
31502 {
31503 if (sizeof ((struct sockaddr_storage)))
31504           return 0;
31505   ;
31506   return 0;
31507 }
31508 _ACEOF
31509 rm -f conftest.$ac_objext
31510 if { (ac_try="$ac_compile"
31511 case "(($ac_try" in
31512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513   *) ac_try_echo=$ac_try;;
31514 esac
31515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31516 $as_echo "$ac_try_echo") >&5
31517   (eval "$ac_compile") 2>conftest.er1
31518   ac_status=$?
31519   grep -v '^ *+' conftest.er1 >conftest.err
31520   rm -f conftest.er1
31521   cat conftest.err >&5
31522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523   (exit $ac_status); } && {
31524          test -z "$ac_c_werror_flag" ||
31525          test ! -s conftest.err
31526        } && test -s conftest.$ac_objext; then
31527   :
31528 else
31529   $as_echo "$as_me: failed program was:" >&5
31530 sed 's/^/| /' conftest.$ac_ext >&5
31531
31532         ac_cv_type_struct_sockaddr_storage=yes
31533 fi
31534
31535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31536 else
31537   $as_echo "$as_me: failed program was:" >&5
31538 sed 's/^/| /' conftest.$ac_ext >&5
31539
31540
31541 fi
31542
31543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31544 fi
31545 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
31546 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
31547 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
31548
31549 cat >>confdefs.h <<_ACEOF
31550 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
31551 _ACEOF
31552
31553
31554 fi
31555
31556
31557
31558
31559
31560   wget_member_sin6_scope_id=
31561   if test "X$wget_have_sockaddr_in6" = "Xyes"; then
31562     { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
31563 $as_echo_n "checking for struct sockaddr_in6.sin6_scope_id... " >&6; }
31564 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
31565   $as_echo_n "(cached) " >&6
31566 else
31567   cat >conftest.$ac_ext <<_ACEOF
31568 /* confdefs.h.  */
31569 _ACEOF
31570 cat confdefs.h >>conftest.$ac_ext
31571 cat >>conftest.$ac_ext <<_ACEOF
31572 /* end confdefs.h.  */
31573
31574 #include <sys/types.h>
31575 #include <sys/socket.h>
31576 #include <netinet/in.h>
31577
31578
31579 int
31580 main ()
31581 {
31582 static struct sockaddr_in6 ac_aggr;
31583 if (ac_aggr.sin6_scope_id)
31584 return 0;
31585   ;
31586   return 0;
31587 }
31588 _ACEOF
31589 rm -f conftest.$ac_objext
31590 if { (ac_try="$ac_compile"
31591 case "(($ac_try" in
31592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593   *) ac_try_echo=$ac_try;;
31594 esac
31595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31596 $as_echo "$ac_try_echo") >&5
31597   (eval "$ac_compile") 2>conftest.er1
31598   ac_status=$?
31599   grep -v '^ *+' conftest.er1 >conftest.err
31600   rm -f conftest.er1
31601   cat conftest.err >&5
31602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603   (exit $ac_status); } && {
31604          test -z "$ac_c_werror_flag" ||
31605          test ! -s conftest.err
31606        } && test -s conftest.$ac_objext; then
31607   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
31608 else
31609   $as_echo "$as_me: failed program was:" >&5
31610 sed 's/^/| /' conftest.$ac_ext >&5
31611
31612         cat >conftest.$ac_ext <<_ACEOF
31613 /* confdefs.h.  */
31614 _ACEOF
31615 cat confdefs.h >>conftest.$ac_ext
31616 cat >>conftest.$ac_ext <<_ACEOF
31617 /* end confdefs.h.  */
31618
31619 #include <sys/types.h>
31620 #include <sys/socket.h>
31621 #include <netinet/in.h>
31622
31623
31624 int
31625 main ()
31626 {
31627 static struct sockaddr_in6 ac_aggr;
31628 if (sizeof ac_aggr.sin6_scope_id)
31629 return 0;
31630   ;
31631   return 0;
31632 }
31633 _ACEOF
31634 rm -f conftest.$ac_objext
31635 if { (ac_try="$ac_compile"
31636 case "(($ac_try" in
31637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638   *) ac_try_echo=$ac_try;;
31639 esac
31640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31641 $as_echo "$ac_try_echo") >&5
31642   (eval "$ac_compile") 2>conftest.er1
31643   ac_status=$?
31644   grep -v '^ *+' conftest.er1 >conftest.err
31645   rm -f conftest.er1
31646   cat conftest.err >&5
31647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648   (exit $ac_status); } && {
31649          test -z "$ac_c_werror_flag" ||
31650          test ! -s conftest.err
31651        } && test -s conftest.$ac_objext; then
31652   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
31653 else
31654   $as_echo "$as_me: failed program was:" >&5
31655 sed 's/^/| /' conftest.$ac_ext >&5
31656
31657         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
31658 fi
31659
31660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31661 fi
31662
31663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31664 fi
31665 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
31666 $as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
31667 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then
31668
31669       wget_member_sin6_scope_id=yes
31670
31671 else
31672
31673       wget_member_sin6_scope_id=no
31674
31675 fi
31676
31677   fi
31678
31679   if test "X$wget_member_sin6_scope_id" = "Xyes"; then
31680
31681 cat >>confdefs.h <<\_ACEOF
31682 #define HAVE_SOCKADDR_IN6_SCOPE_ID 1
31683 _ACEOF
31684
31685
31686   else :
31687
31688   fi
31689
31690   fi
31691 fi
31692
31693 if test "X$ipv6" = "Xyes"; then
31694
31695 cat >>confdefs.h <<\_ACEOF
31696 #define ENABLE_IPV6 1
31697 _ACEOF
31698
31699   { $as_echo "$as_me:$LINENO: Enabling support for IPv6." >&5
31700 $as_echo "$as_me: Enabling support for IPv6." >&6;}
31701 elif test "x$force_ipv6" = "xyes"; then
31702   { { $as_echo "$as_me:$LINENO: error: IPv6 support requested but not found; aborting" >&5
31703 $as_echo "$as_me: error: IPv6 support requested but not found; aborting" >&2;}
31704    { (exit 1); exit 1; }; }
31705 fi
31706
31707
31708 ALL_LINGUAS="en@quot en@boldquot en_US $(cd ${srcdir}/po && ls *.po | grep -v 'en@.*quot' | grep -v 'en_US\.po' | sed -e 's/\.po$//' | tr '\012' ' ')"
31709
31710
31711 for ac_prog in makeinfo
31712 do
31713   # Extract the first word of "$ac_prog", so it can be a program name with args.
31714 set dummy $ac_prog; ac_word=$2
31715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31716 $as_echo_n "checking for $ac_word... " >&6; }
31717 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
31718   $as_echo_n "(cached) " >&6
31719 else
31720   if test -n "$MAKEINFO"; then
31721   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
31722 else
31723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31724 for as_dir in $PATH
31725 do
31726   IFS=$as_save_IFS
31727   test -z "$as_dir" && as_dir=.
31728   for ac_exec_ext in '' $ac_executable_extensions; do
31729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31730     ac_cv_prog_MAKEINFO="$ac_prog"
31731     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31732     break 2
31733   fi
31734 done
31735 done
31736 IFS=$as_save_IFS
31737
31738 fi
31739 fi
31740 MAKEINFO=$ac_cv_prog_MAKEINFO
31741 if test -n "$MAKEINFO"; then
31742   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
31743 $as_echo "$MAKEINFO" >&6; }
31744 else
31745   { $as_echo "$as_me:$LINENO: result: no" >&5
31746 $as_echo "no" >&6; }
31747 fi
31748
31749
31750   test -n "$MAKEINFO" && break
31751 done
31752 test -n "$MAKEINFO" || MAKEINFO="true"
31753
31754
31755
31756 for ac_prog in perl5 perl
31757 do
31758   # Extract the first word of "$ac_prog", so it can be a program name with args.
31759 set dummy $ac_prog; ac_word=$2
31760 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31761 $as_echo_n "checking for $ac_word... " >&6; }
31762 if test "${ac_cv_path_PERL+set}" = set; then
31763   $as_echo_n "(cached) " >&6
31764 else
31765   case $PERL in
31766   [\\/]* | ?:[\\/]*)
31767   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31768   ;;
31769   *)
31770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31771 for as_dir in $PATH
31772 do
31773   IFS=$as_save_IFS
31774   test -z "$as_dir" && as_dir=.
31775   for ac_exec_ext in '' $ac_executable_extensions; do
31776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31777     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31778     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31779     break 2
31780   fi
31781 done
31782 done
31783 IFS=$as_save_IFS
31784
31785   ;;
31786 esac
31787 fi
31788 PERL=$ac_cv_path_PERL
31789 if test -n "$PERL"; then
31790   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
31791 $as_echo "$PERL" >&6; }
31792 else
31793   { $as_echo "$as_me:$LINENO: result: no" >&5
31794 $as_echo "no" >&6; }
31795 fi
31796
31797
31798   test -n "$PERL" && break
31799 done
31800 test -n "$PERL" || PERL="no"
31801
31802 # Extract the first word of "pod2man", so it can be a program name with args.
31803 set dummy pod2man; ac_word=$2
31804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31805 $as_echo_n "checking for $ac_word... " >&6; }
31806 if test "${ac_cv_path_POD2MAN+set}" = set; then
31807   $as_echo_n "(cached) " >&6
31808 else
31809   case $POD2MAN in
31810   [\\/]* | ?:[\\/]*)
31811   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
31812   ;;
31813   *)
31814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31815 for as_dir in $PATH
31816 do
31817   IFS=$as_save_IFS
31818   test -z "$as_dir" && as_dir=.
31819   for ac_exec_ext in '' $ac_executable_extensions; do
31820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31821     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
31822     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31823     break 2
31824   fi
31825 done
31826 done
31827 IFS=$as_save_IFS
31828
31829   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
31830   ;;
31831 esac
31832 fi
31833 POD2MAN=$ac_cv_path_POD2MAN
31834 if test -n "$POD2MAN"; then
31835   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
31836 $as_echo "$POD2MAN" >&6; }
31837 else
31838   { $as_echo "$as_me:$LINENO: result: no" >&5
31839 $as_echo "no" >&6; }
31840 fi
31841
31842
31843
31844 if test "x${POD2MAN}" = xno; then
31845   COMMENT_IF_NO_POD2MAN="# "
31846 else
31847   COMMENT_IF_NO_POD2MAN=
31848 fi
31849
31850
31851
31852
31853 # Check whether --enable-iri was given.
31854 if test "${enable_iri+set}" = set; then
31855   enableval=$enable_iri; case "${enable_iri}" in
31856     no)
31857             { $as_echo "$as_me:$LINENO: disabling IRIs at user request" >&5
31858 $as_echo "$as_me: disabling IRIs at user request" >&6;}
31859       iri=no
31860       ;;
31861     yes)
31862             iri=yes
31863       force_iri=yes
31864       ;;
31865     auto)
31866             iri=yes
31867       ;;
31868     *)
31869       { { $as_echo "$as_me:$LINENO: error: Invalid --enable-iri argument \`$enable_iri'" >&5
31870 $as_echo "$as_me: error: Invalid --enable-iri argument \`$enable_iri'" >&2;}
31871    { (exit 1); exit 1; }; }
31872       ;;
31873     esac
31874
31875 else
31876
31877         iri=yes
31878
31879
31880 fi
31881
31882
31883
31884 # Check whether --with-libidn was given.
31885 if test "${with_libidn+set}" = set; then
31886   withval=$with_libidn; libidn=$withval
31887 else
31888   libidn=""
31889 fi
31890
31891 if test "X$iri" != "Xno"; then
31892
31893
31894
31895
31896
31897
31898           am_save_CPPFLAGS="$CPPFLAGS"
31899
31900   for element in $INCICONV; do
31901     haveit=
31902     for x in $CPPFLAGS; do
31903
31904   acl_save_prefix="$prefix"
31905   prefix="$acl_final_prefix"
31906   acl_save_exec_prefix="$exec_prefix"
31907   exec_prefix="$acl_final_exec_prefix"
31908   eval x=\"$x\"
31909   exec_prefix="$acl_save_exec_prefix"
31910   prefix="$acl_save_prefix"
31911
31912       if test "X$x" = "X$element"; then
31913         haveit=yes
31914         break
31915       fi
31916     done
31917     if test -z "$haveit"; then
31918       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31919     fi
31920   done
31921
31922
31923   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
31924 $as_echo_n "checking for iconv... " >&6; }
31925 if test "${am_cv_func_iconv+set}" = set; then
31926   $as_echo_n "(cached) " >&6
31927 else
31928
31929     am_cv_func_iconv="no, consider installing GNU libiconv"
31930     am_cv_lib_iconv=no
31931     cat >conftest.$ac_ext <<_ACEOF
31932 /* confdefs.h.  */
31933 _ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h.  */
31937 #include <stdlib.h>
31938 #include <iconv.h>
31939 int
31940 main ()
31941 {
31942 iconv_t cd = iconv_open("","");
31943        iconv(cd,NULL,NULL,NULL,NULL);
31944        iconv_close(cd);
31945   ;
31946   return 0;
31947 }
31948 _ACEOF
31949 rm -f conftest.$ac_objext conftest$ac_exeext
31950 if { (ac_try="$ac_link"
31951 case "(($ac_try" in
31952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953   *) ac_try_echo=$ac_try;;
31954 esac
31955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31956 $as_echo "$ac_try_echo") >&5
31957   (eval "$ac_link") 2>conftest.er1
31958   ac_status=$?
31959   grep -v '^ *+' conftest.er1 >conftest.err
31960   rm -f conftest.er1
31961   cat conftest.err >&5
31962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963   (exit $ac_status); } && {
31964          test -z "$ac_c_werror_flag" ||
31965          test ! -s conftest.err
31966        } && test -s conftest$ac_exeext && {
31967          test "$cross_compiling" = yes ||
31968          $as_test_x conftest$ac_exeext
31969        }; then
31970   am_cv_func_iconv=yes
31971 else
31972   $as_echo "$as_me: failed program was:" >&5
31973 sed 's/^/| /' conftest.$ac_ext >&5
31974
31975
31976 fi
31977
31978 rm -rf conftest.dSYM
31979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31980       conftest$ac_exeext conftest.$ac_ext
31981     if test "$am_cv_func_iconv" != yes; then
31982       am_save_LIBS="$LIBS"
31983       LIBS="$LIBS $LIBICONV"
31984       cat >conftest.$ac_ext <<_ACEOF
31985 /* confdefs.h.  */
31986 _ACEOF
31987 cat confdefs.h >>conftest.$ac_ext
31988 cat >>conftest.$ac_ext <<_ACEOF
31989 /* end confdefs.h.  */
31990 #include <stdlib.h>
31991 #include <iconv.h>
31992 int
31993 main ()
31994 {
31995 iconv_t cd = iconv_open("","");
31996          iconv(cd,NULL,NULL,NULL,NULL);
31997          iconv_close(cd);
31998   ;
31999   return 0;
32000 }
32001 _ACEOF
32002 rm -f conftest.$ac_objext conftest$ac_exeext
32003 if { (ac_try="$ac_link"
32004 case "(($ac_try" in
32005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006   *) ac_try_echo=$ac_try;;
32007 esac
32008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32009 $as_echo "$ac_try_echo") >&5
32010   (eval "$ac_link") 2>conftest.er1
32011   ac_status=$?
32012   grep -v '^ *+' conftest.er1 >conftest.err
32013   rm -f conftest.er1
32014   cat conftest.err >&5
32015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016   (exit $ac_status); } && {
32017          test -z "$ac_c_werror_flag" ||
32018          test ! -s conftest.err
32019        } && test -s conftest$ac_exeext && {
32020          test "$cross_compiling" = yes ||
32021          $as_test_x conftest$ac_exeext
32022        }; then
32023   am_cv_lib_iconv=yes
32024         am_cv_func_iconv=yes
32025 else
32026   $as_echo "$as_me: failed program was:" >&5
32027 sed 's/^/| /' conftest.$ac_ext >&5
32028
32029
32030 fi
32031
32032 rm -rf conftest.dSYM
32033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32034       conftest$ac_exeext conftest.$ac_ext
32035       LIBS="$am_save_LIBS"
32036     fi
32037
32038 fi
32039 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32040 $as_echo "$am_cv_func_iconv" >&6; }
32041   if test "$am_cv_func_iconv" = yes; then
32042     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
32043 $as_echo_n "checking for working iconv... " >&6; }
32044 if test "${am_cv_func_iconv_works+set}" = set; then
32045   $as_echo_n "(cached) " >&6
32046 else
32047
32048             am_save_LIBS="$LIBS"
32049       if test $am_cv_lib_iconv = yes; then
32050         LIBS="$LIBS $LIBICONV"
32051       fi
32052       if test "$cross_compiling" = yes; then
32053   case "$host_os" in
32054            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
32055            *)            am_cv_func_iconv_works="guessing yes" ;;
32056          esac
32057 else
32058   cat >conftest.$ac_ext <<_ACEOF
32059 /* confdefs.h.  */
32060 _ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h.  */
32064
32065 #include <iconv.h>
32066 #include <string.h>
32067 int main ()
32068 {
32069   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
32070      returns.  */
32071   {
32072     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
32073     if (cd_utf8_to_88591 != (iconv_t)(-1))
32074       {
32075         static const char input[] = "\342\202\254"; /* EURO SIGN */
32076         char buf[10];
32077         const char *inptr = input;
32078         size_t inbytesleft = strlen (input);
32079         char *outptr = buf;
32080         size_t outbytesleft = sizeof (buf);
32081         size_t res = iconv (cd_utf8_to_88591,
32082                             (char **) &inptr, &inbytesleft,
32083                             &outptr, &outbytesleft);
32084         if (res == 0)
32085           return 1;
32086       }
32087   }
32088 #if 0 /* This bug could be worked around by the caller.  */
32089   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
32090   {
32091     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
32092     if (cd_88591_to_utf8 != (iconv_t)(-1))
32093       {
32094         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
32095         char buf[50];
32096         const char *inptr = input;
32097         size_t inbytesleft = strlen (input);
32098         char *outptr = buf;
32099         size_t outbytesleft = sizeof (buf);
32100         size_t res = iconv (cd_88591_to_utf8,
32101                             (char **) &inptr, &inbytesleft,
32102                             &outptr, &outbytesleft);
32103         if ((int)res > 0)
32104           return 1;
32105       }
32106   }
32107 #endif
32108   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
32109      provided.  */
32110   if (/* Try standardized names.  */
32111       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
32112       /* Try IRIX, OSF/1 names.  */
32113       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
32114       /* Try AIX names.  */
32115       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
32116       /* Try HP-UX names.  */
32117       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
32118     return 1;
32119   return 0;
32120 }
32121 _ACEOF
32122 rm -f conftest$ac_exeext
32123 if { (ac_try="$ac_link"
32124 case "(($ac_try" in
32125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126   *) ac_try_echo=$ac_try;;
32127 esac
32128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32129 $as_echo "$ac_try_echo") >&5
32130   (eval "$ac_link") 2>&5
32131   ac_status=$?
32132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32134   { (case "(($ac_try" in
32135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136   *) ac_try_echo=$ac_try;;
32137 esac
32138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32139 $as_echo "$ac_try_echo") >&5
32140   (eval "$ac_try") 2>&5
32141   ac_status=$?
32142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143   (exit $ac_status); }; }; then
32144   am_cv_func_iconv_works=yes
32145 else
32146   $as_echo "$as_me: program exited with status $ac_status" >&5
32147 $as_echo "$as_me: failed program was:" >&5
32148 sed 's/^/| /' conftest.$ac_ext >&5
32149
32150 ( exit $ac_status )
32151 am_cv_func_iconv_works=no
32152 fi
32153 rm -rf conftest.dSYM
32154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32155 fi
32156
32157
32158       LIBS="$am_save_LIBS"
32159
32160 fi
32161 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
32162 $as_echo "$am_cv_func_iconv_works" >&6; }
32163     case "$am_cv_func_iconv_works" in
32164       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
32165       *)   am_func_iconv=yes ;;
32166     esac
32167   else
32168     am_func_iconv=no am_cv_lib_iconv=no
32169   fi
32170   if test "$am_func_iconv" = yes; then
32171
32172 cat >>confdefs.h <<\_ACEOF
32173 #define HAVE_ICONV 1
32174 _ACEOF
32175
32176   fi
32177   if test "$am_cv_lib_iconv" = yes; then
32178     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
32179 $as_echo_n "checking how to link with libiconv... " >&6; }
32180     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
32181 $as_echo "$LIBICONV" >&6; }
32182   else
32183             CPPFLAGS="$am_save_CPPFLAGS"
32184     LIBICONV=
32185     LTLIBICONV=
32186   fi
32187
32188
32189
32190   if test "$am_cv_func_iconv" = yes; then
32191     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
32192 $as_echo_n "checking for iconv declaration... " >&6; }
32193     if test "${am_cv_proto_iconv+set}" = set; then
32194   $as_echo_n "(cached) " >&6
32195 else
32196
32197       cat >conftest.$ac_ext <<_ACEOF
32198 /* confdefs.h.  */
32199 _ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h.  */
32203
32204 #include <stdlib.h>
32205 #include <iconv.h>
32206 extern
32207 #ifdef __cplusplus
32208 "C"
32209 #endif
32210 #if defined(__STDC__) || defined(__cplusplus)
32211 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32212 #else
32213 size_t iconv();
32214 #endif
32215
32216 int
32217 main ()
32218 {
32219
32220   ;
32221   return 0;
32222 }
32223 _ACEOF
32224 rm -f conftest.$ac_objext
32225 if { (ac_try="$ac_compile"
32226 case "(($ac_try" in
32227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228   *) ac_try_echo=$ac_try;;
32229 esac
32230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32231 $as_echo "$ac_try_echo") >&5
32232   (eval "$ac_compile") 2>conftest.er1
32233   ac_status=$?
32234   grep -v '^ *+' conftest.er1 >conftest.err
32235   rm -f conftest.er1
32236   cat conftest.err >&5
32237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238   (exit $ac_status); } && {
32239          test -z "$ac_c_werror_flag" ||
32240          test ! -s conftest.err
32241        } && test -s conftest.$ac_objext; then
32242   am_cv_proto_iconv_arg1=""
32243 else
32244   $as_echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32246
32247         am_cv_proto_iconv_arg1="const"
32248 fi
32249
32250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32251       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
32252 fi
32253
32254     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
32255     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
32256          }$am_cv_proto_iconv" >&5
32257 $as_echo "${ac_t:-
32258          }$am_cv_proto_iconv" >&6; }
32259
32260 cat >>confdefs.h <<_ACEOF
32261 #define ICONV_CONST $am_cv_proto_iconv_arg1
32262 _ACEOF
32263
32264   fi
32265
32266
32267   if test "X$am_cv_func_iconv" != "Xyes"; then
32268     iri=no
32269     if test "X$force_iri" = "Xyes"; then
32270       { { $as_echo "$as_me:$LINENO: error: Libiconv is required for IRIs support" >&5
32271 $as_echo "$as_me: error: Libiconv is required for IRIs support" >&2;}
32272    { (exit 1); exit 1; }; }
32273     else
32274       { $as_echo "$as_me:$LINENO: disabling IRIs because libiconv wasn't found" >&5
32275 $as_echo "$as_me: disabling IRIs because libiconv wasn't found" >&6;}
32276     fi
32277   fi
32278
32279 else
32280     # else
32281   # For some reason, this seems to be set even when we don't check.
32282   # Explicitly unset.
32283   LIBICONV=
32284
32285 fi
32286
32287
32288 if test "X$iri" != "Xno"; then
32289   if test "$libidn" != ""; then
32290     LDFLAGS="${LDFLAGS} -L$libidn/lib"
32291     CPPFLAGS="${CPPFLAGS} -I$libidn/include"
32292   fi
32293
32294   # If idna.h can't be found, check to see if it was installed under
32295   # /usr/include/idn (OpenSolaris, at least, places it there).
32296   # Check for idn-int.h in that case, because idna.h won't find
32297   # idn-int.h until we've decided to add -I/usr/include/idn.
32298   if test "${ac_cv_header_idna_h+set}" = set; then
32299   { $as_echo "$as_me:$LINENO: checking for idna.h" >&5
32300 $as_echo_n "checking for idna.h... " >&6; }
32301 if test "${ac_cv_header_idna_h+set}" = set; then
32302   $as_echo_n "(cached) " >&6
32303 fi
32304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_idna_h" >&5
32305 $as_echo "$ac_cv_header_idna_h" >&6; }
32306 else
32307   # Is the header compilable?
32308 { $as_echo "$as_me:$LINENO: checking idna.h usability" >&5
32309 $as_echo_n "checking idna.h usability... " >&6; }
32310 cat >conftest.$ac_ext <<_ACEOF
32311 /* confdefs.h.  */
32312 _ACEOF
32313 cat confdefs.h >>conftest.$ac_ext
32314 cat >>conftest.$ac_ext <<_ACEOF
32315 /* end confdefs.h.  */
32316 $ac_includes_default
32317 #include <idna.h>
32318 _ACEOF
32319 rm -f conftest.$ac_objext
32320 if { (ac_try="$ac_compile"
32321 case "(($ac_try" in
32322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323   *) ac_try_echo=$ac_try;;
32324 esac
32325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32326 $as_echo "$ac_try_echo") >&5
32327   (eval "$ac_compile") 2>conftest.er1
32328   ac_status=$?
32329   grep -v '^ *+' conftest.er1 >conftest.err
32330   rm -f conftest.er1
32331   cat conftest.err >&5
32332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333   (exit $ac_status); } && {
32334          test -z "$ac_c_werror_flag" ||
32335          test ! -s conftest.err
32336        } && test -s conftest.$ac_objext; then
32337   ac_header_compiler=yes
32338 else
32339   $as_echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32341
32342         ac_header_compiler=no
32343 fi
32344
32345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32347 $as_echo "$ac_header_compiler" >&6; }
32348
32349 # Is the header present?
32350 { $as_echo "$as_me:$LINENO: checking idna.h presence" >&5
32351 $as_echo_n "checking idna.h presence... " >&6; }
32352 cat >conftest.$ac_ext <<_ACEOF
32353 /* confdefs.h.  */
32354 _ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h.  */
32358 #include <idna.h>
32359 _ACEOF
32360 if { (ac_try="$ac_cpp conftest.$ac_ext"
32361 case "(($ac_try" in
32362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363   *) ac_try_echo=$ac_try;;
32364 esac
32365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32366 $as_echo "$ac_try_echo") >&5
32367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32368   ac_status=$?
32369   grep -v '^ *+' conftest.er1 >conftest.err
32370   rm -f conftest.er1
32371   cat conftest.err >&5
32372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373   (exit $ac_status); } >/dev/null && {
32374          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32375          test ! -s conftest.err
32376        }; then
32377   ac_header_preproc=yes
32378 else
32379   $as_echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32381
32382   ac_header_preproc=no
32383 fi
32384
32385 rm -f conftest.err conftest.$ac_ext
32386 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32387 $as_echo "$ac_header_preproc" >&6; }
32388
32389 # So?  What about this header?
32390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32391   yes:no: )
32392     { $as_echo "$as_me:$LINENO: WARNING: idna.h: accepted by the compiler, rejected by the preprocessor!" >&5
32393 $as_echo "$as_me: WARNING: idna.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32394     { $as_echo "$as_me:$LINENO: WARNING: idna.h: proceeding with the compiler's result" >&5
32395 $as_echo "$as_me: WARNING: idna.h: proceeding with the compiler's result" >&2;}
32396     ac_header_preproc=yes
32397     ;;
32398   no:yes:* )
32399     { $as_echo "$as_me:$LINENO: WARNING: idna.h: present but cannot be compiled" >&5
32400 $as_echo "$as_me: WARNING: idna.h: present but cannot be compiled" >&2;}
32401     { $as_echo "$as_me:$LINENO: WARNING: idna.h:     check for missing prerequisite headers?" >&5
32402 $as_echo "$as_me: WARNING: idna.h:     check for missing prerequisite headers?" >&2;}
32403     { $as_echo "$as_me:$LINENO: WARNING: idna.h: see the Autoconf documentation" >&5
32404 $as_echo "$as_me: WARNING: idna.h: see the Autoconf documentation" >&2;}
32405     { $as_echo "$as_me:$LINENO: WARNING: idna.h:     section \"Present But Cannot Be Compiled\"" >&5
32406 $as_echo "$as_me: WARNING: idna.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32407     { $as_echo "$as_me:$LINENO: WARNING: idna.h: proceeding with the preprocessor's result" >&5
32408 $as_echo "$as_me: WARNING: idna.h: proceeding with the preprocessor's result" >&2;}
32409     { $as_echo "$as_me:$LINENO: WARNING: idna.h: in the future, the compiler will take precedence" >&5
32410 $as_echo "$as_me: WARNING: idna.h: in the future, the compiler will take precedence" >&2;}
32411     ( cat <<\_ASBOX
32412 ## ------------------------------- ##
32413 ## Report this to bug-wget@gnu.org ##
32414 ## ------------------------------- ##
32415 _ASBOX
32416      ) | sed "s/^/$as_me: WARNING:     /" >&2
32417     ;;
32418 esac
32419 { $as_echo "$as_me:$LINENO: checking for idna.h" >&5
32420 $as_echo_n "checking for idna.h... " >&6; }
32421 if test "${ac_cv_header_idna_h+set}" = set; then
32422   $as_echo_n "(cached) " >&6
32423 else
32424   ac_cv_header_idna_h=$ac_header_preproc
32425 fi
32426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_idna_h" >&5
32427 $as_echo "$ac_cv_header_idna_h" >&6; }
32428
32429 fi
32430 if test "x$ac_cv_header_idna_h" = x""yes; then
32431   :
32432 else
32433   if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
32434   { $as_echo "$as_me:$LINENO: checking for idn/idn-int.h" >&5
32435 $as_echo_n "checking for idn/idn-int.h... " >&6; }
32436 if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
32437   $as_echo_n "(cached) " >&6
32438 fi
32439 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_idn_idn_int_h" >&5
32440 $as_echo "$ac_cv_header_idn_idn_int_h" >&6; }
32441 else
32442   # Is the header compilable?
32443 { $as_echo "$as_me:$LINENO: checking idn/idn-int.h usability" >&5
32444 $as_echo_n "checking idn/idn-int.h usability... " >&6; }
32445 cat >conftest.$ac_ext <<_ACEOF
32446 /* confdefs.h.  */
32447 _ACEOF
32448 cat confdefs.h >>conftest.$ac_ext
32449 cat >>conftest.$ac_ext <<_ACEOF
32450 /* end confdefs.h.  */
32451 $ac_includes_default
32452 #include <idn/idn-int.h>
32453 _ACEOF
32454 rm -f conftest.$ac_objext
32455 if { (ac_try="$ac_compile"
32456 case "(($ac_try" in
32457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458   *) ac_try_echo=$ac_try;;
32459 esac
32460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32461 $as_echo "$ac_try_echo") >&5
32462   (eval "$ac_compile") 2>conftest.er1
32463   ac_status=$?
32464   grep -v '^ *+' conftest.er1 >conftest.err
32465   rm -f conftest.er1
32466   cat conftest.err >&5
32467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468   (exit $ac_status); } && {
32469          test -z "$ac_c_werror_flag" ||
32470          test ! -s conftest.err
32471        } && test -s conftest.$ac_objext; then
32472   ac_header_compiler=yes
32473 else
32474   $as_echo "$as_me: failed program was:" >&5
32475 sed 's/^/| /' conftest.$ac_ext >&5
32476
32477         ac_header_compiler=no
32478 fi
32479
32480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32482 $as_echo "$ac_header_compiler" >&6; }
32483
32484 # Is the header present?
32485 { $as_echo "$as_me:$LINENO: checking idn/idn-int.h presence" >&5
32486 $as_echo_n "checking idn/idn-int.h presence... " >&6; }
32487 cat >conftest.$ac_ext <<_ACEOF
32488 /* confdefs.h.  */
32489 _ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h.  */
32493 #include <idn/idn-int.h>
32494 _ACEOF
32495 if { (ac_try="$ac_cpp conftest.$ac_ext"
32496 case "(($ac_try" in
32497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498   *) ac_try_echo=$ac_try;;
32499 esac
32500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32501 $as_echo "$ac_try_echo") >&5
32502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32503   ac_status=$?
32504   grep -v '^ *+' conftest.er1 >conftest.err
32505   rm -f conftest.er1
32506   cat conftest.err >&5
32507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); } >/dev/null && {
32509          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32510          test ! -s conftest.err
32511        }; then
32512   ac_header_preproc=yes
32513 else
32514   $as_echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.$ac_ext >&5
32516
32517   ac_header_preproc=no
32518 fi
32519
32520 rm -f conftest.err conftest.$ac_ext
32521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32522 $as_echo "$ac_header_preproc" >&6; }
32523
32524 # So?  What about this header?
32525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32526   yes:no: )
32527     { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: accepted by the compiler, rejected by the preprocessor!" >&5
32528 $as_echo "$as_me: WARNING: idn/idn-int.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32529     { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: proceeding with the compiler's result" >&5
32530 $as_echo "$as_me: WARNING: idn/idn-int.h: proceeding with the compiler's result" >&2;}
32531     ac_header_preproc=yes
32532     ;;
32533   no:yes:* )
32534     { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: present but cannot be compiled" >&5
32535 $as_echo "$as_me: WARNING: idn/idn-int.h: present but cannot be compiled" >&2;}
32536     { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h:     check for missing prerequisite headers?" >&5
32537 $as_echo "$as_me: WARNING: idn/idn-int.h:     check for missing prerequisite headers?" >&2;}
32538     { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: see the Autoconf documentation" >&5
32539 $as_echo "$as_me: WARNING: idn/idn-int.h: see the Autoconf documentation" >&2;}
32540     { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h:     section \"Present But Cannot Be Compiled\"" >&5
32541 $as_echo "$as_me: WARNING: idn/idn-int.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32542     { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: proceeding with the preprocessor's result" >&5
32543 $as_echo "$as_me: WARNING: idn/idn-int.h: proceeding with the preprocessor's result" >&2;}
32544     { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: in the future, the compiler will take precedence" >&5
32545 $as_echo "$as_me: WARNING: idn/idn-int.h: in the future, the compiler will take precedence" >&2;}
32546     ( cat <<\_ASBOX
32547 ## ------------------------------- ##
32548 ## Report this to bug-wget@gnu.org ##
32549 ## ------------------------------- ##
32550 _ASBOX
32551      ) | sed "s/^/$as_me: WARNING:     /" >&2
32552     ;;
32553 esac
32554 { $as_echo "$as_me:$LINENO: checking for idn/idn-int.h" >&5
32555 $as_echo_n "checking for idn/idn-int.h... " >&6; }
32556 if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
32557   $as_echo_n "(cached) " >&6
32558 else
32559   ac_cv_header_idn_idn_int_h=$ac_header_preproc
32560 fi
32561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_idn_idn_int_h" >&5
32562 $as_echo "$ac_cv_header_idn_idn_int_h" >&6; }
32563
32564 fi
32565 if test "x$ac_cv_header_idn_idn_int_h" = x""yes; then
32566   CPPFLAGS="${CPPFLAGS} -I/usr/include/idn"
32567 else
32568   iri=no
32569 fi
32570
32571
32572
32573 fi
32574
32575
32576
32577   if test "X$iri" != "Xno"; then
32578     { $as_echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
32579 $as_echo_n "checking for stringprep_check_version in -lidn... " >&6; }
32580 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
32581   $as_echo_n "(cached) " >&6
32582 else
32583   ac_check_lib_save_LIBS=$LIBS
32584 LIBS="-lidn  $LIBS"
32585 cat >conftest.$ac_ext <<_ACEOF
32586 /* confdefs.h.  */
32587 _ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h.  */
32591
32592 /* Override any GCC internal prototype to avoid an error.
32593    Use char because int might match the return type of a GCC
32594    builtin and then its argument prototype would still apply.  */
32595 #ifdef __cplusplus
32596 extern "C"
32597 #endif
32598 char stringprep_check_version ();
32599 int
32600 main ()
32601 {
32602 return stringprep_check_version ();
32603   ;
32604   return 0;
32605 }
32606 _ACEOF
32607 rm -f conftest.$ac_objext conftest$ac_exeext
32608 if { (ac_try="$ac_link"
32609 case "(($ac_try" in
32610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611   *) ac_try_echo=$ac_try;;
32612 esac
32613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32614 $as_echo "$ac_try_echo") >&5
32615   (eval "$ac_link") 2>conftest.er1
32616   ac_status=$?
32617   grep -v '^ *+' conftest.er1 >conftest.err
32618   rm -f conftest.er1
32619   cat conftest.err >&5
32620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621   (exit $ac_status); } && {
32622          test -z "$ac_c_werror_flag" ||
32623          test ! -s conftest.err
32624        } && test -s conftest$ac_exeext && {
32625          test "$cross_compiling" = yes ||
32626          $as_test_x conftest$ac_exeext
32627        }; then
32628   ac_cv_lib_idn_stringprep_check_version=yes
32629 else
32630   $as_echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32632
32633         ac_cv_lib_idn_stringprep_check_version=no
32634 fi
32635
32636 rm -rf conftest.dSYM
32637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32638       conftest$ac_exeext conftest.$ac_ext
32639 LIBS=$ac_check_lib_save_LIBS
32640 fi
32641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
32642 $as_echo "$ac_cv_lib_idn_stringprep_check_version" >&6; }
32643 if test "x$ac_cv_lib_idn_stringprep_check_version" = x""yes; then
32644   iri=yes LIBS="${LIBS} -lidn"
32645 else
32646   iri=no
32647 fi
32648
32649   fi
32650
32651   if test "X$iri" != "Xno" ; then
32652
32653 cat >>confdefs.h <<\_ACEOF
32654 #define ENABLE_IRI 1
32655 _ACEOF
32656
32657     { $as_echo "$as_me:$LINENO: Enabling support for IRI." >&5
32658 $as_echo "$as_me: Enabling support for IRI." >&6;}
32659   else
32660     { $as_echo "$as_me:$LINENO: WARNING: Libidn not found" >&5
32661 $as_echo "$as_me: WARNING: Libidn not found" >&2;}
32662   fi
32663 fi
32664
32665
32666  if test "X$iri" != "Xno"; then
32667   IRI_IS_ENABLED_TRUE=
32668   IRI_IS_ENABLED_FALSE='#'
32669 else
32670   IRI_IS_ENABLED_TRUE='#'
32671   IRI_IS_ENABLED_FALSE=
32672 fi
32673
32674
32675
32676 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in tests/Makefile tests/WgetTest.pm lib/Makefile md5/Makefile windows/Makefile"
32677
32678 ac_config_headers="$ac_config_headers src/config.h"
32679
32680 cat >confcache <<\_ACEOF
32681 # This file is a shell script that caches the results of configure
32682 # tests run on this system so they can be shared between configure
32683 # scripts and configure runs, see configure's option --config-cache.
32684 # It is not useful on other systems.  If it contains results you don't
32685 # want to keep, you may remove or edit it.
32686 #
32687 # config.status only pays attention to the cache file if you give it
32688 # the --recheck option to rerun configure.
32689 #
32690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32692 # following values.
32693
32694 _ACEOF
32695
32696 # The following way of writing the cache mishandles newlines in values,
32697 # but we know of no workaround that is simple, portable, and efficient.
32698 # So, we kill variables containing newlines.
32699 # Ultrix sh set writes to stderr and can't be redirected directly,
32700 # and sets the high bit in the cache file unless we assign to the vars.
32701 (
32702   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32703     eval ac_val=\$$ac_var
32704     case $ac_val in #(
32705     *${as_nl}*)
32706       case $ac_var in #(
32707       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
32708 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32709       esac
32710       case $ac_var in #(
32711       _ | IFS | as_nl) ;; #(
32712       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32713       *) $as_unset $ac_var ;;
32714       esac ;;
32715     esac
32716   done
32717
32718   (set) 2>&1 |
32719     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32720     *${as_nl}ac_space=\ *)
32721       # `set' does not quote correctly, so add quotes (double-quote
32722       # substitution turns \\\\ into \\, and sed turns \\ into \).
32723       sed -n \
32724         "s/'/'\\\\''/g;
32725           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32726       ;; #(
32727     *)
32728       # `set' quotes correctly as required by POSIX, so do not add quotes.
32729       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32730       ;;
32731     esac |
32732     sort
32733 ) |
32734   sed '
32735      /^ac_cv_env_/b end
32736      t clear
32737      :clear
32738      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32739      t end
32740      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32741      :end' >>confcache
32742 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32743   if test -w "$cache_file"; then
32744     test "x$cache_file" != "x/dev/null" &&
32745       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
32746 $as_echo "$as_me: updating cache $cache_file" >&6;}
32747     cat confcache >$cache_file
32748   else
32749     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32750 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32751   fi
32752 fi
32753 rm -f confcache
32754
32755 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32756 # Let make expand exec_prefix.
32757 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32758
32759 DEFS=-DHAVE_CONFIG_H
32760
32761 ac_libobjs=
32762 ac_ltlibobjs=
32763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32764   # 1. Remove the extension, and $U if already installed.
32765   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32766   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32767   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32768   #    will be set to the directory where LIBOBJS objects are built.
32769   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32770   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32771 done
32772 LIBOBJS=$ac_libobjs
32773
32774 LTLIBOBJS=$ac_ltlibobjs
32775
32776
32777 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32778   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32779 Usually this means the macro was only invoked conditionally." >&5
32780 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
32781 Usually this means the macro was only invoked conditionally." >&2;}
32782    { (exit 1); exit 1; }; }
32783 fi
32784 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32785   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32786 Usually this means the macro was only invoked conditionally." >&5
32787 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32788 Usually this means the macro was only invoked conditionally." >&2;}
32789    { (exit 1); exit 1; }; }
32790 fi
32791 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32792   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32793 Usually this means the macro was only invoked conditionally." >&5
32794 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32795 Usually this means the macro was only invoked conditionally." >&2;}
32796    { (exit 1); exit 1; }; }
32797 fi
32798
32799     gl_libobjs=
32800     gl_ltlibobjs=
32801     if test -n "$gl_LIBOBJS"; then
32802       # Remove the extension.
32803       sed_drop_objext='s/\.o$//;s/\.obj$//'
32804       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32805         gl_libobjs="$gl_libobjs $i.$ac_objext"
32806         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
32807       done
32808     fi
32809     gl_LIBOBJS=$gl_libobjs
32810
32811     gl_LTLIBOBJS=$gl_ltlibobjs
32812
32813
32814
32815     gltests_libobjs=
32816     gltests_ltlibobjs=
32817     if test -n "$gltests_LIBOBJS"; then
32818       # Remove the extension.
32819       sed_drop_objext='s/\.o$//;s/\.obj$//'
32820       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32821         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
32822         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
32823       done
32824     fi
32825     gltests_LIBOBJS=$gltests_libobjs
32826
32827     gltests_LTLIBOBJS=$gltests_ltlibobjs
32828
32829
32830
32831 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32832   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32833 Usually this means the macro was only invoked conditionally." >&5
32834 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
32835 Usually this means the macro was only invoked conditionally." >&2;}
32836    { (exit 1); exit 1; }; }
32837 fi
32838
32839
32840     md5_libobjs=
32841     md5_ltlibobjs=
32842     if test -n "$md5_LIBOBJS"; then
32843       # Remove the extension.
32844       sed_drop_objext='s/\.o$//;s/\.obj$//'
32845       for i in `for i in $md5_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32846         md5_libobjs="$md5_libobjs $i.$ac_objext"
32847         md5_ltlibobjs="$md5_ltlibobjs $i.lo"
32848       done
32849     fi
32850     md5_LIBOBJS=$md5_libobjs
32851
32852     md5_LTLIBOBJS=$md5_ltlibobjs
32853
32854
32855
32856     md5tests_libobjs=
32857     md5tests_ltlibobjs=
32858     if test -n "$md5tests_LIBOBJS"; then
32859       # Remove the extension.
32860       sed_drop_objext='s/\.o$//;s/\.obj$//'
32861       for i in `for i in $md5tests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
32862         md5tests_libobjs="$md5tests_libobjs $i.$ac_objext"
32863         md5tests_ltlibobjs="$md5tests_ltlibobjs $i.lo"
32864       done
32865     fi
32866     md5tests_LIBOBJS=$md5tests_libobjs
32867
32868     md5tests_LTLIBOBJS=$md5tests_ltlibobjs
32869
32870
32871 if test -z "${IRI_IS_ENABLED_TRUE}" && test -z "${IRI_IS_ENABLED_FALSE}"; then
32872   { { $as_echo "$as_me:$LINENO: error: conditional \"IRI_IS_ENABLED\" was never defined.
32873 Usually this means the macro was only invoked conditionally." >&5
32874 $as_echo "$as_me: error: conditional \"IRI_IS_ENABLED\" was never defined.
32875 Usually this means the macro was only invoked conditionally." >&2;}
32876    { (exit 1); exit 1; }; }
32877 fi
32878
32879 : ${CONFIG_STATUS=./config.status}
32880 ac_write_fail=0
32881 ac_clean_files_save=$ac_clean_files
32882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32883 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32884 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32885 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32886 #! $SHELL
32887 # Generated by $as_me.
32888 # Run this file to recreate the current configuration.
32889 # Compiler output produced by configure, useful for debugging
32890 # configure, is in config.log if it exists.
32891
32892 debug=false
32893 ac_cs_recheck=false
32894 ac_cs_silent=false
32895 SHELL=\${CONFIG_SHELL-$SHELL}
32896 _ACEOF
32897
32898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32899 ## --------------------- ##
32900 ## M4sh Initialization.  ##
32901 ## --------------------- ##
32902
32903 # Be more Bourne compatible
32904 DUALCASE=1; export DUALCASE # for MKS sh
32905 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32906   emulate sh
32907   NULLCMD=:
32908   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32909   # is contrary to our usage.  Disable this feature.
32910   alias -g '${1+"$@"}'='"$@"'
32911   setopt NO_GLOB_SUBST
32912 else
32913   case `(set -o) 2>/dev/null` in
32914   *posix*) set -o posix ;;
32915 esac
32916
32917 fi
32918
32919
32920
32921
32922 # PATH needs CR
32923 # Avoid depending upon Character Ranges.
32924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32927 as_cr_digits='0123456789'
32928 as_cr_alnum=$as_cr_Letters$as_cr_digits
32929
32930 as_nl='
32931 '
32932 export as_nl
32933 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32934 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32935 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32936 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32937 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32938   as_echo='printf %s\n'
32939   as_echo_n='printf %s'
32940 else
32941   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32942     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32943     as_echo_n='/usr/ucb/echo -n'
32944   else
32945     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32946     as_echo_n_body='eval
32947       arg=$1;
32948       case $arg in
32949       *"$as_nl"*)
32950         expr "X$arg" : "X\\(.*\\)$as_nl";
32951         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32952       esac;
32953       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32954     '
32955     export as_echo_n_body
32956     as_echo_n='sh -c $as_echo_n_body as_echo'
32957   fi
32958   export as_echo_body
32959   as_echo='sh -c $as_echo_body as_echo'
32960 fi
32961
32962 # The user is always right.
32963 if test "${PATH_SEPARATOR+set}" != set; then
32964   PATH_SEPARATOR=:
32965   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32966     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32967       PATH_SEPARATOR=';'
32968   }
32969 fi
32970
32971 # Support unset when possible.
32972 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32973   as_unset=unset
32974 else
32975   as_unset=false
32976 fi
32977
32978
32979 # IFS
32980 # We need space, tab and new line, in precisely that order.  Quoting is
32981 # there to prevent editors from complaining about space-tab.
32982 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32983 # splitting by setting IFS to empty value.)
32984 IFS=" ""        $as_nl"
32985
32986 # Find who we are.  Look in the path if we contain no directory separator.
32987 case $0 in
32988   *[\\/]* ) as_myself=$0 ;;
32989   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32990 for as_dir in $PATH
32991 do
32992   IFS=$as_save_IFS
32993   test -z "$as_dir" && as_dir=.
32994   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32995 done
32996 IFS=$as_save_IFS
32997
32998      ;;
32999 esac
33000 # We did not find ourselves, most probably we were run as `sh COMMAND'
33001 # in which case we are not to be found in the path.
33002 if test "x$as_myself" = x; then
33003   as_myself=$0
33004 fi
33005 if test ! -f "$as_myself"; then
33006   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33007   { (exit 1); exit 1; }
33008 fi
33009
33010 # Work around bugs in pre-3.0 UWIN ksh.
33011 for as_var in ENV MAIL MAILPATH
33012 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33013 done
33014 PS1='$ '
33015 PS2='> '
33016 PS4='+ '
33017
33018 # NLS nuisances.
33019 LC_ALL=C
33020 export LC_ALL
33021 LANGUAGE=C
33022 export LANGUAGE
33023
33024 # Required to use basename.
33025 if expr a : '\(a\)' >/dev/null 2>&1 &&
33026    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33027   as_expr=expr
33028 else
33029   as_expr=false
33030 fi
33031
33032 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33033   as_basename=basename
33034 else
33035   as_basename=false
33036 fi
33037
33038
33039 # Name of the executable.
33040 as_me=`$as_basename -- "$0" ||
33041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33042          X"$0" : 'X\(//\)$' \| \
33043          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33044 $as_echo X/"$0" |
33045     sed '/^.*\/\([^/][^/]*\)\/*$/{
33046             s//\1/
33047             q
33048           }
33049           /^X\/\(\/\/\)$/{
33050             s//\1/
33051             q
33052           }
33053           /^X\/\(\/\).*/{
33054             s//\1/
33055             q
33056           }
33057           s/.*/./; q'`
33058
33059 # CDPATH.
33060 $as_unset CDPATH
33061
33062
33063
33064   as_lineno_1=$LINENO
33065   as_lineno_2=$LINENO
33066   test "x$as_lineno_1" != "x$as_lineno_2" &&
33067   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33068
33069   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33070   # uniformly replaced by the line number.  The first 'sed' inserts a
33071   # line-number line after each line using $LINENO; the second 'sed'
33072   # does the real work.  The second script uses 'N' to pair each
33073   # line-number line with the line containing $LINENO, and appends
33074   # trailing '-' during substitution so that $LINENO is not a special
33075   # case at line end.
33076   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33077   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33078   # E. McMahon (1931-1989) for sed's syntax.  :-)
33079   sed -n '
33080     p
33081     /[$]LINENO/=
33082   ' <$as_myself |
33083     sed '
33084       s/[$]LINENO.*/&-/
33085       t lineno
33086       b
33087       :lineno
33088       N
33089       :loop
33090       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33091       t loop
33092       s/-\n.*//
33093     ' >$as_me.lineno &&
33094   chmod +x "$as_me.lineno" ||
33095     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33096    { (exit 1); exit 1; }; }
33097
33098   # Don't try to exec as it changes $[0], causing all sort of problems
33099   # (the dirname of $[0] is not the place where we might find the
33100   # original and so on.  Autoconf is especially sensitive to this).
33101   . "./$as_me.lineno"
33102   # Exit status is that of the last command.
33103   exit
33104 }
33105
33106
33107 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33108   as_dirname=dirname
33109 else
33110   as_dirname=false
33111 fi
33112
33113 ECHO_C= ECHO_N= ECHO_T=
33114 case `echo -n x` in
33115 -n*)
33116   case `echo 'x\c'` in
33117   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33118   *)   ECHO_C='\c';;
33119   esac;;
33120 *)
33121   ECHO_N='-n';;
33122 esac
33123 if expr a : '\(a\)' >/dev/null 2>&1 &&
33124    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33125   as_expr=expr
33126 else
33127   as_expr=false
33128 fi
33129
33130 rm -f conf$$ conf$$.exe conf$$.file
33131 if test -d conf$$.dir; then
33132   rm -f conf$$.dir/conf$$.file
33133 else
33134   rm -f conf$$.dir
33135   mkdir conf$$.dir 2>/dev/null
33136 fi
33137 if (echo >conf$$.file) 2>/dev/null; then
33138   if ln -s conf$$.file conf$$ 2>/dev/null; then
33139     as_ln_s='ln -s'
33140     # ... but there are two gotchas:
33141     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33142     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33143     # In both cases, we have to default to `cp -p'.
33144     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33145       as_ln_s='cp -p'
33146   elif ln conf$$.file conf$$ 2>/dev/null; then
33147     as_ln_s=ln
33148   else
33149     as_ln_s='cp -p'
33150   fi
33151 else
33152   as_ln_s='cp -p'
33153 fi
33154 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33155 rmdir conf$$.dir 2>/dev/null
33156
33157 if mkdir -p . 2>/dev/null; then
33158   as_mkdir_p=:
33159 else
33160   test -d ./-p && rmdir ./-p
33161   as_mkdir_p=false
33162 fi
33163
33164 if test -x / >/dev/null 2>&1; then
33165   as_test_x='test -x'
33166 else
33167   if ls -dL / >/dev/null 2>&1; then
33168     as_ls_L_option=L
33169   else
33170     as_ls_L_option=
33171   fi
33172   as_test_x='
33173     eval sh -c '\''
33174       if test -d "$1"; then
33175         test -d "$1/.";
33176       else
33177         case $1 in
33178         -*)set "./$1";;
33179         esac;
33180         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33181         ???[sx]*):;;*)false;;esac;fi
33182     '\'' sh
33183   '
33184 fi
33185 as_executable_p=$as_test_x
33186
33187 # Sed expression to map a string onto a valid CPP name.
33188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33189
33190 # Sed expression to map a string onto a valid variable name.
33191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33192
33193
33194 exec 6>&1
33195
33196 # Save the log message, to keep $[0] and so on meaningful, and to
33197 # report actual input values of CONFIG_FILES etc. instead of their
33198 # values after options handling.
33199 ac_log="
33200 This file was extended by wget $as_me 1.12, which was
33201 generated by GNU Autoconf 2.63.  Invocation command line was
33202
33203   CONFIG_FILES    = $CONFIG_FILES
33204   CONFIG_HEADERS  = $CONFIG_HEADERS
33205   CONFIG_LINKS    = $CONFIG_LINKS
33206   CONFIG_COMMANDS = $CONFIG_COMMANDS
33207   $ $0 $@
33208
33209 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33210 "
33211
33212 _ACEOF
33213
33214 case $ac_config_files in *"
33215 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33216 esac
33217
33218 case $ac_config_headers in *"
33219 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33220 esac
33221
33222
33223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33224 # Files that config.status was made for.
33225 config_files="$ac_config_files"
33226 config_headers="$ac_config_headers"
33227 config_links="$ac_config_links"
33228 config_commands="$ac_config_commands"
33229
33230 _ACEOF
33231
33232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33233 ac_cs_usage="\
33234 \`$as_me' instantiates files from templates according to the
33235 current configuration.
33236
33237 Usage: $0 [OPTION]... [FILE]...
33238
33239   -h, --help       print this help, then exit
33240   -V, --version    print version number and configuration settings, then exit
33241   -q, --quiet, --silent
33242                    do not print progress messages
33243   -d, --debug      don't remove temporary files
33244       --recheck    update $as_me by reconfiguring in the same conditions
33245       --file=FILE[:TEMPLATE]
33246                    instantiate the configuration file FILE
33247       --header=FILE[:TEMPLATE]
33248                    instantiate the configuration header FILE
33249
33250 Configuration files:
33251 $config_files
33252
33253 Configuration headers:
33254 $config_headers
33255
33256 Configuration links:
33257 $config_links
33258
33259 Configuration commands:
33260 $config_commands
33261
33262 Report bugs to <bug-autoconf@gnu.org>."
33263
33264 _ACEOF
33265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33266 ac_cs_version="\\
33267 wget config.status 1.12
33268 configured by $0, generated by GNU Autoconf 2.63,
33269   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33270
33271 Copyright (C) 2008 Free Software Foundation, Inc.
33272 This config.status script is free software; the Free Software Foundation
33273 gives unlimited permission to copy, distribute and modify it."
33274
33275 ac_pwd='$ac_pwd'
33276 srcdir='$srcdir'
33277 INSTALL='$INSTALL'
33278 MKDIR_P='$MKDIR_P'
33279 AWK='$AWK'
33280 test -n "\$AWK" || AWK=awk
33281 _ACEOF
33282
33283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33284 # The default lists apply if the user does not specify any file.
33285 ac_need_defaults=:
33286 while test $# != 0
33287 do
33288   case $1 in
33289   --*=*)
33290     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33291     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33292     ac_shift=:
33293     ;;
33294   *)
33295     ac_option=$1
33296     ac_optarg=$2
33297     ac_shift=shift
33298     ;;
33299   esac
33300
33301   case $ac_option in
33302   # Handling of the options.
33303   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33304     ac_cs_recheck=: ;;
33305   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33306     $as_echo "$ac_cs_version"; exit ;;
33307   --debug | --debu | --deb | --de | --d | -d )
33308     debug=: ;;
33309   --file | --fil | --fi | --f )
33310     $ac_shift
33311     case $ac_optarg in
33312     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33313     esac
33314     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
33315     ac_need_defaults=false;;
33316   --header | --heade | --head | --hea )
33317     $ac_shift
33318     case $ac_optarg in
33319     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33320     esac
33321     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
33322     ac_need_defaults=false;;
33323   --he | --h)
33324     # Conflict between --help and --header
33325     { $as_echo "$as_me: error: ambiguous option: $1
33326 Try \`$0 --help' for more information." >&2
33327    { (exit 1); exit 1; }; };;
33328   --help | --hel | -h )
33329     $as_echo "$ac_cs_usage"; exit ;;
33330   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33331   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33332     ac_cs_silent=: ;;
33333
33334   # This is an error.
33335   -*) { $as_echo "$as_me: error: unrecognized option: $1
33336 Try \`$0 --help' for more information." >&2
33337    { (exit 1); exit 1; }; } ;;
33338
33339   *) ac_config_targets="$ac_config_targets $1"
33340      ac_need_defaults=false ;;
33341
33342   esac
33343   shift
33344 done
33345
33346 ac_configure_extra_args=
33347
33348 if $ac_cs_silent; then
33349   exec 6>/dev/null
33350   ac_configure_extra_args="$ac_configure_extra_args --silent"
33351 fi
33352
33353 _ACEOF
33354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33355 if \$ac_cs_recheck; then
33356   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33357   shift
33358   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33359   CONFIG_SHELL='$SHELL'
33360   export CONFIG_SHELL
33361   exec "\$@"
33362 fi
33363
33364 _ACEOF
33365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33366 exec 5>>config.log
33367 {
33368   echo
33369   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33370 ## Running $as_me. ##
33371 _ASBOX
33372   $as_echo "$ac_log"
33373 } >&5
33374
33375 _ACEOF
33376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33377 #
33378 # INIT-COMMANDS
33379 #
33380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33381 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33382     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33383     # from automake < 1.5.
33384     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33385     # Capture the value of LINGUAS because we need it to compute CATALOGS.
33386     LINGUAS="${LINGUAS-%UNSET%}"
33387
33388 GNUmakefile=$GNUmakefile
33389
33390 _ACEOF
33391
33392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33393
33394 # Handling of arguments.
33395 for ac_config_target in $ac_config_targets
33396 do
33397   case $ac_config_target in
33398     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33399     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
33400     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
33401     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33402     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33403     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33404     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
33405     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33406     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33407     "tests/WgetTest.pm") CONFIG_FILES="$CONFIG_FILES tests/WgetTest.pm" ;;
33408     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
33409     "md5/Makefile") CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
33410     "windows/Makefile") CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
33411     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
33412
33413   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33414 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33415    { (exit 1); exit 1; }; };;
33416   esac
33417 done
33418
33419
33420 # If the user did not use the arguments to specify the items to instantiate,
33421 # then the envvar interface is used.  Set only those that are not.
33422 # We use the long form for the default assignment because of an extremely
33423 # bizarre bug on SunOS 4.1.3.
33424 if $ac_need_defaults; then
33425   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33426   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33427   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33428   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33429 fi
33430
33431 # Have a temporary directory for convenience.  Make it in the build tree
33432 # simply because there is no reason against having it here, and in addition,
33433 # creating and moving files from /tmp can sometimes cause problems.
33434 # Hook for its removal unless debugging.
33435 # Note that there is a small window in which the directory will not be cleaned:
33436 # after its creation but before its name has been assigned to `$tmp'.
33437 $debug ||
33438 {
33439   tmp=
33440   trap 'exit_status=$?
33441   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33442 ' 0
33443   trap '{ (exit 1); exit 1; }' 1 2 13 15
33444 }
33445 # Create a (secure) tmp directory for tmp files.
33446
33447 {
33448   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33449   test -n "$tmp" && test -d "$tmp"
33450 }  ||
33451 {
33452   tmp=./conf$$-$RANDOM
33453   (umask 077 && mkdir "$tmp")
33454 } ||
33455 {
33456    $as_echo "$as_me: cannot create a temporary directory in ." >&2
33457    { (exit 1); exit 1; }
33458 }
33459
33460 # Set up the scripts for CONFIG_FILES section.
33461 # No need to generate them if there are no CONFIG_FILES.
33462 # This happens for instance with `./config.status config.h'.
33463 if test -n "$CONFIG_FILES"; then
33464
33465
33466 ac_cr='\r'
33467 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33468 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33469   ac_cs_awk_cr='\\r'
33470 else
33471   ac_cs_awk_cr=$ac_cr
33472 fi
33473
33474 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33475 _ACEOF
33476
33477
33478 {
33479   echo "cat >conf$$subs.awk <<_ACEOF" &&
33480   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33481   echo "_ACEOF"
33482 } >conf$$subs.sh ||
33483   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33484 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33485    { (exit 1); exit 1; }; }
33486 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33487 ac_delim='%!_!# '
33488 for ac_last_try in false false false false false :; do
33489   . ./conf$$subs.sh ||
33490     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33491 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33492    { (exit 1); exit 1; }; }
33493
33494   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33495   if test $ac_delim_n = $ac_delim_num; then
33496     break
33497   elif $ac_last_try; then
33498     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33499 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33500    { (exit 1); exit 1; }; }
33501   else
33502     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33503   fi
33504 done
33505 rm -f conf$$subs.sh
33506
33507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33508 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33509 _ACEOF
33510 sed -n '
33511 h
33512 s/^/S["/; s/!.*/"]=/
33513 p
33514 g
33515 s/^[^!]*!//
33516 :repl
33517 t repl
33518 s/'"$ac_delim"'$//
33519 t delim
33520 :nl
33521 h
33522 s/\(.\{148\}\).*/\1/
33523 t more1
33524 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33525 p
33526 n
33527 b repl
33528 :more1
33529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33530 p
33531 g
33532 s/.\{148\}//
33533 t nl
33534 :delim
33535 h
33536 s/\(.\{148\}\).*/\1/
33537 t more2
33538 s/["\\]/\\&/g; s/^/"/; s/$/"/
33539 p
33540 b
33541 :more2
33542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33543 p
33544 g
33545 s/.\{148\}//
33546 t delim
33547 ' <conf$$subs.awk | sed '
33548 /^[^""]/{
33549   N
33550   s/\n//
33551 }
33552 ' >>$CONFIG_STATUS || ac_write_fail=1
33553 rm -f conf$$subs.awk
33554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33555 _ACAWK
33556 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33557   for (key in S) S_is_set[key] = 1
33558   FS = "\a"
33559
33560 }
33561 {
33562   line = $ 0
33563   nfields = split(line, field, "@")
33564   substed = 0
33565   len = length(field[1])
33566   for (i = 2; i < nfields; i++) {
33567     key = field[i]
33568     keylen = length(key)
33569     if (S_is_set[key]) {
33570       value = S[key]
33571       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33572       len += length(value) + length(field[++i])
33573       substed = 1
33574     } else
33575       len += 1 + keylen
33576   }
33577
33578   print line
33579 }
33580
33581 _ACAWK
33582 _ACEOF
33583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33584 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33585   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33586 else
33587   cat
33588 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33589   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
33590 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
33591    { (exit 1); exit 1; }; }
33592 _ACEOF
33593
33594 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33595 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33596 # trailing colons and then remove the whole line if VPATH becomes empty
33597 # (actually we leave an empty line to preserve line numbers).
33598 if test "x$srcdir" = x.; then
33599   ac_vpsub='/^[  ]*VPATH[        ]*=/{
33600 s/:*\$(srcdir):*/:/
33601 s/:*\${srcdir}:*/:/
33602 s/:*@srcdir@:*/:/
33603 s/^\([^=]*=[     ]*\):*/\1/
33604 s/:*$//
33605 s/^[^=]*=[       ]*$//
33606 }'
33607 fi
33608
33609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33610 fi # test -n "$CONFIG_FILES"
33611
33612 # Set up the scripts for CONFIG_HEADERS section.
33613 # No need to generate them if there are no CONFIG_HEADERS.
33614 # This happens for instance with `./config.status Makefile'.
33615 if test -n "$CONFIG_HEADERS"; then
33616 cat >"$tmp/defines.awk" <<\_ACAWK ||
33617 BEGIN {
33618 _ACEOF
33619
33620 # Transform confdefs.h into an awk script `defines.awk', embedded as
33621 # here-document in config.status, that substitutes the proper values into
33622 # config.h.in to produce config.h.
33623
33624 # Create a delimiter string that does not exist in confdefs.h, to ease
33625 # handling of long lines.
33626 ac_delim='%!_!# '
33627 for ac_last_try in false false :; do
33628   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33629   if test -z "$ac_t"; then
33630     break
33631   elif $ac_last_try; then
33632     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
33633 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
33634    { (exit 1); exit 1; }; }
33635   else
33636     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33637   fi
33638 done
33639
33640 # For the awk script, D is an array of macro values keyed by name,
33641 # likewise P contains macro parameters if any.  Preserve backslash
33642 # newline sequences.
33643
33644 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33645 sed -n '
33646 s/.\{148\}/&'"$ac_delim"'/g
33647 t rset
33648 :rset
33649 s/^[     ]*#[    ]*define[       ][      ]*/ /
33650 t def
33651 d
33652 :def
33653 s/\\$//
33654 t bsnl
33655 s/["\\]/\\&/g
33656 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
33657 D["\1"]=" \3"/p
33658 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
33659 d
33660 :bsnl
33661 s/["\\]/\\&/g
33662 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
33663 D["\1"]=" \3\\\\\\n"\\/p
33664 t cont
33665 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33666 t cont
33667 d
33668 :cont
33669 n
33670 s/.\{148\}/&'"$ac_delim"'/g
33671 t clear
33672 :clear
33673 s/\\$//
33674 t bsnlc
33675 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33676 d
33677 :bsnlc
33678 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33679 b cont
33680 ' <confdefs.h | sed '
33681 s/'"$ac_delim"'/"\\\
33682 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33683
33684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33685   for (key in D) D_is_set[key] = 1
33686   FS = "\a"
33687 }
33688 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33689   line = \$ 0
33690   split(line, arg, " ")
33691   if (arg[1] == "#") {
33692     defundef = arg[2]
33693     mac1 = arg[3]
33694   } else {
33695     defundef = substr(arg[1], 2)
33696     mac1 = arg[2]
33697   }
33698   split(mac1, mac2, "(") #)
33699   macro = mac2[1]
33700   prefix = substr(line, 1, index(line, defundef) - 1)
33701   if (D_is_set[macro]) {
33702     # Preserve the white space surrounding the "#".
33703     print prefix "define", macro P[macro] D[macro]
33704     next
33705   } else {
33706     # Replace #undef with comments.  This is necessary, for example,
33707     # in the case of _POSIX_SOURCE, which is predefined and required
33708     # on some systems where configure will not decide to define it.
33709     if (defundef == "undef") {
33710       print "/*", prefix defundef, macro, "*/"
33711       next
33712     }
33713   }
33714 }
33715 { print }
33716 _ACAWK
33717 _ACEOF
33718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33719   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
33720 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
33721    { (exit 1); exit 1; }; }
33722 fi # test -n "$CONFIG_HEADERS"
33723
33724
33725 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
33726 shift
33727 for ac_tag
33728 do
33729   case $ac_tag in
33730   :[FHLC]) ac_mode=$ac_tag; continue;;
33731   esac
33732   case $ac_mode$ac_tag in
33733   :[FHL]*:*);;
33734   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
33735 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
33736    { (exit 1); exit 1; }; };;
33737   :[FH]-) ac_tag=-:-;;
33738   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33739   esac
33740   ac_save_IFS=$IFS
33741   IFS=:
33742   set x $ac_tag
33743   IFS=$ac_save_IFS
33744   shift
33745   ac_file=$1
33746   shift
33747
33748   case $ac_mode in
33749   :L) ac_source=$1;;
33750   :[FH])
33751     ac_file_inputs=
33752     for ac_f
33753     do
33754       case $ac_f in
33755       -) ac_f="$tmp/stdin";;
33756       *) # Look for the file first in the build tree, then in the source tree
33757          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33758          # because $ac_f cannot contain `:'.
33759          test -f "$ac_f" ||
33760            case $ac_f in
33761            [\\/$]*) false;;
33762            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33763            esac ||
33764            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33765 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33766    { (exit 1); exit 1; }; };;
33767       esac
33768       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33769       ac_file_inputs="$ac_file_inputs '$ac_f'"
33770     done
33771
33772     # Let's still pretend it is `configure' which instantiates (i.e., don't
33773     # use $as_me), people would be surprised to read:
33774     #    /* config.h.  Generated by config.status.  */
33775     configure_input='Generated from '`
33776           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33777         `' by configure.'
33778     if test x"$ac_file" != x-; then
33779       configure_input="$ac_file.  $configure_input"
33780       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
33781 $as_echo "$as_me: creating $ac_file" >&6;}
33782     fi
33783     # Neutralize special characters interpreted by sed in replacement strings.
33784     case $configure_input in #(
33785     *\&* | *\|* | *\\* )
33786        ac_sed_conf_input=`$as_echo "$configure_input" |
33787        sed 's/[\\\\&|]/\\\\&/g'`;; #(
33788     *) ac_sed_conf_input=$configure_input;;
33789     esac
33790
33791     case $ac_tag in
33792     *:-:* | *:-) cat >"$tmp/stdin" \
33793       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33794 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33795    { (exit 1); exit 1; }; } ;;
33796     esac
33797     ;;
33798   esac
33799
33800   ac_dir=`$as_dirname -- "$ac_file" ||
33801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33802          X"$ac_file" : 'X\(//\)[^/]' \| \
33803          X"$ac_file" : 'X\(//\)$' \| \
33804          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33805 $as_echo X"$ac_file" |
33806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33807             s//\1/
33808             q
33809           }
33810           /^X\(\/\/\)[^/].*/{
33811             s//\1/
33812             q
33813           }
33814           /^X\(\/\/\)$/{
33815             s//\1/
33816             q
33817           }
33818           /^X\(\/\).*/{
33819             s//\1/
33820             q
33821           }
33822           s/.*/./; q'`
33823   { as_dir="$ac_dir"
33824   case $as_dir in #(
33825   -*) as_dir=./$as_dir;;
33826   esac
33827   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33828     as_dirs=
33829     while :; do
33830       case $as_dir in #(
33831       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33832       *) as_qdir=$as_dir;;
33833       esac
33834       as_dirs="'$as_qdir' $as_dirs"
33835       as_dir=`$as_dirname -- "$as_dir" ||
33836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33837          X"$as_dir" : 'X\(//\)[^/]' \| \
33838          X"$as_dir" : 'X\(//\)$' \| \
33839          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33840 $as_echo X"$as_dir" |
33841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33842             s//\1/
33843             q
33844           }
33845           /^X\(\/\/\)[^/].*/{
33846             s//\1/
33847             q
33848           }
33849           /^X\(\/\/\)$/{
33850             s//\1/
33851             q
33852           }
33853           /^X\(\/\).*/{
33854             s//\1/
33855             q
33856           }
33857           s/.*/./; q'`
33858       test -d "$as_dir" && break
33859     done
33860     test -z "$as_dirs" || eval "mkdir $as_dirs"
33861   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33862 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
33863    { (exit 1); exit 1; }; }; }
33864   ac_builddir=.
33865
33866 case "$ac_dir" in
33867 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33868 *)
33869   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33870   # A ".." for each directory in $ac_dir_suffix.
33871   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33872   case $ac_top_builddir_sub in
33873   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33874   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33875   esac ;;
33876 esac
33877 ac_abs_top_builddir=$ac_pwd
33878 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33879 # for backward compatibility:
33880 ac_top_builddir=$ac_top_build_prefix
33881
33882 case $srcdir in
33883   .)  # We are building in place.
33884     ac_srcdir=.
33885     ac_top_srcdir=$ac_top_builddir_sub
33886     ac_abs_top_srcdir=$ac_pwd ;;
33887   [\\/]* | ?:[\\/]* )  # Absolute name.
33888     ac_srcdir=$srcdir$ac_dir_suffix;
33889     ac_top_srcdir=$srcdir
33890     ac_abs_top_srcdir=$srcdir ;;
33891   *) # Relative name.
33892     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33893     ac_top_srcdir=$ac_top_build_prefix$srcdir
33894     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33895 esac
33896 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33897
33898
33899   case $ac_mode in
33900   :F)
33901   #
33902   # CONFIG_FILE
33903   #
33904
33905   case $INSTALL in
33906   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33907   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33908   esac
33909   ac_MKDIR_P=$MKDIR_P
33910   case $MKDIR_P in
33911   [\\/$]* | ?:[\\/]* ) ;;
33912   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33913   esac
33914 _ACEOF
33915
33916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33917 # If the template does not know about datarootdir, expand it.
33918 # FIXME: This hack should be removed a few years after 2.60.
33919 ac_datarootdir_hack=; ac_datarootdir_seen=
33920
33921 ac_sed_dataroot='
33922 /datarootdir/ {
33923   p
33924   q
33925 }
33926 /@datadir@/p
33927 /@docdir@/p
33928 /@infodir@/p
33929 /@localedir@/p
33930 /@mandir@/p
33931 '
33932 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33933 *datarootdir*) ac_datarootdir_seen=yes;;
33934 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33935   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33936 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33937 _ACEOF
33938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33939   ac_datarootdir_hack='
33940   s&@datadir@&$datadir&g
33941   s&@docdir@&$docdir&g
33942   s&@infodir@&$infodir&g
33943   s&@localedir@&$localedir&g
33944   s&@mandir@&$mandir&g
33945     s&\\\${datarootdir}&$datarootdir&g' ;;
33946 esac
33947 _ACEOF
33948
33949 # Neutralize VPATH when `$srcdir' = `.'.
33950 # Shell code in configure.ac might set extrasub.
33951 # FIXME: do we really want to maintain this feature?
33952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33953 ac_sed_extra="$ac_vpsub
33954 $extrasub
33955 _ACEOF
33956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33957 :t
33958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33959 s|@configure_input@|$ac_sed_conf_input|;t t
33960 s&@top_builddir@&$ac_top_builddir_sub&;t t
33961 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33962 s&@srcdir@&$ac_srcdir&;t t
33963 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33964 s&@top_srcdir@&$ac_top_srcdir&;t t
33965 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33966 s&@builddir@&$ac_builddir&;t t
33967 s&@abs_builddir@&$ac_abs_builddir&;t t
33968 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33969 s&@INSTALL@&$ac_INSTALL&;t t
33970 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33971 $ac_datarootdir_hack
33972 "
33973 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
33974   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33975 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33976    { (exit 1); exit 1; }; }
33977
33978 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33979   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33980   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33981   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33982 which seems to be undefined.  Please make sure it is defined." >&5
33983 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33984 which seems to be undefined.  Please make sure it is defined." >&2;}
33985
33986   rm -f "$tmp/stdin"
33987   case $ac_file in
33988   -) cat "$tmp/out" && rm -f "$tmp/out";;
33989   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33990   esac \
33991   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33992 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33993    { (exit 1); exit 1; }; }
33994  ;;
33995   :H)
33996   #
33997   # CONFIG_HEADER
33998   #
33999   if test x"$ac_file" != x-; then
34000     {
34001       $as_echo "/* $configure_input  */" \
34002       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34003     } >"$tmp/config.h" \
34004       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34005 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34006    { (exit 1); exit 1; }; }
34007     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34008       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34009 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34010     else
34011       rm -f "$ac_file"
34012       mv "$tmp/config.h" "$ac_file" \
34013         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34014 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34015    { (exit 1); exit 1; }; }
34016     fi
34017   else
34018     $as_echo "/* $configure_input  */" \
34019       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34020       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
34021 $as_echo "$as_me: error: could not create -" >&2;}
34022    { (exit 1); exit 1; }; }
34023   fi
34024 # Compute "$ac_file"'s index in $config_headers.
34025 _am_arg="$ac_file"
34026 _am_stamp_count=1
34027 for _am_header in $config_headers :; do
34028   case $_am_header in
34029     $_am_arg | $_am_arg:* )
34030       break ;;
34031     * )
34032       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34033   esac
34034 done
34035 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34036 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34037          X"$_am_arg" : 'X\(//\)[^/]' \| \
34038          X"$_am_arg" : 'X\(//\)$' \| \
34039          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34040 $as_echo X"$_am_arg" |
34041     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34042             s//\1/
34043             q
34044           }
34045           /^X\(\/\/\)[^/].*/{
34046             s//\1/
34047             q
34048           }
34049           /^X\(\/\/\)$/{
34050             s//\1/
34051             q
34052           }
34053           /^X\(\/\).*/{
34054             s//\1/
34055             q
34056           }
34057           s/.*/./; q'`/stamp-h$_am_stamp_count
34058  ;;
34059   :L)
34060   #
34061   # CONFIG_LINK
34062   #
34063
34064   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
34065     :
34066   else
34067     # Prefer the file from the source tree if names are identical.
34068     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34069       ac_source=$srcdir/$ac_source
34070     fi
34071
34072     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
34073 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34074
34075     if test ! -r "$ac_source"; then
34076       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
34077 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
34078    { (exit 1); exit 1; }; }
34079     fi
34080     rm -f "$ac_file"
34081
34082     # Try a relative symlink, then a hard link, then a copy.
34083     case $srcdir in
34084     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34085         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34086     esac
34087     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34088       ln "$ac_source" "$ac_file" 2>/dev/null ||
34089       cp -p "$ac_source" "$ac_file" ||
34090       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
34091 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
34092    { (exit 1); exit 1; }; }
34093   fi
34094  ;;
34095   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
34096 $as_echo "$as_me: executing $ac_file commands" >&6;}
34097  ;;
34098   esac
34099
34100
34101   case $ac_file$ac_mode in
34102     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34103   # Autoconf 2.62 quotes --file arguments for eval, but not when files
34104   # are listed without --file.  Let's play safe and only enable the eval
34105   # if we detect the quoting.
34106   case $CONFIG_FILES in
34107   *\'*) eval set x "$CONFIG_FILES" ;;
34108   *)   set x $CONFIG_FILES ;;
34109   esac
34110   shift
34111   for mf
34112   do
34113     # Strip MF so we end up with the name of the file.
34114     mf=`echo "$mf" | sed -e 's/:.*$//'`
34115     # Check whether this is an Automake generated Makefile or not.
34116     # We used to match only the files named `Makefile.in', but
34117     # some people rename them; so instead we look at the file content.
34118     # Grep'ing the first line is not enough: some people post-process
34119     # each Makefile.in and add a new line on top of each file to say so.
34120     # Grep'ing the whole file is not good either: AIX grep has a line
34121     # limit of 2048, but all sed's we know have understand at least 4000.
34122     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34123       dirpart=`$as_dirname -- "$mf" ||
34124 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34125          X"$mf" : 'X\(//\)[^/]' \| \
34126          X"$mf" : 'X\(//\)$' \| \
34127          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34128 $as_echo X"$mf" |
34129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34130             s//\1/
34131             q
34132           }
34133           /^X\(\/\/\)[^/].*/{
34134             s//\1/
34135             q
34136           }
34137           /^X\(\/\/\)$/{
34138             s//\1/
34139             q
34140           }
34141           /^X\(\/\).*/{
34142             s//\1/
34143             q
34144           }
34145           s/.*/./; q'`
34146     else
34147       continue
34148     fi
34149     # Extract the definition of DEPDIR, am__include, and am__quote
34150     # from the Makefile without running `make'.
34151     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34152     test -z "$DEPDIR" && continue
34153     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34154     test -z "am__include" && continue
34155     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34156     # When using ansi2knr, U may be empty or an underscore; expand it
34157     U=`sed -n 's/^U = //p' < "$mf"`
34158     # Find all dependency output files, they are included files with
34159     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34160     # simplest approach to changing $(DEPDIR) to its actual value in the
34161     # expansion.
34162     for file in `sed -n "
34163       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34164          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34165       # Make sure the directory exists.
34166       test -f "$dirpart/$file" && continue
34167       fdir=`$as_dirname -- "$file" ||
34168 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34169          X"$file" : 'X\(//\)[^/]' \| \
34170          X"$file" : 'X\(//\)$' \| \
34171          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34172 $as_echo X"$file" |
34173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34174             s//\1/
34175             q
34176           }
34177           /^X\(\/\/\)[^/].*/{
34178             s//\1/
34179             q
34180           }
34181           /^X\(\/\/\)$/{
34182             s//\1/
34183             q
34184           }
34185           /^X\(\/\).*/{
34186             s//\1/
34187             q
34188           }
34189           s/.*/./; q'`
34190       { as_dir=$dirpart/$fdir
34191   case $as_dir in #(
34192   -*) as_dir=./$as_dir;;
34193   esac
34194   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34195     as_dirs=
34196     while :; do
34197       case $as_dir in #(
34198       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34199       *) as_qdir=$as_dir;;
34200       esac
34201       as_dirs="'$as_qdir' $as_dirs"
34202       as_dir=`$as_dirname -- "$as_dir" ||
34203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34204          X"$as_dir" : 'X\(//\)[^/]' \| \
34205          X"$as_dir" : 'X\(//\)$' \| \
34206          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34207 $as_echo X"$as_dir" |
34208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34209             s//\1/
34210             q
34211           }
34212           /^X\(\/\/\)[^/].*/{
34213             s//\1/
34214             q
34215           }
34216           /^X\(\/\/\)$/{
34217             s//\1/
34218             q
34219           }
34220           /^X\(\/\).*/{
34221             s//\1/
34222             q
34223           }
34224           s/.*/./; q'`
34225       test -d "$as_dir" && break
34226     done
34227     test -z "$as_dirs" || eval "mkdir $as_dirs"
34228   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34229 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34230    { (exit 1); exit 1; }; }; }
34231       # echo "creating $dirpart/$file"
34232       echo '# dummy' > "$dirpart/$file"
34233     done
34234   done
34235 }
34236  ;;
34237     "po-directories":C)
34238     for ac_file in $CONFIG_FILES; do
34239       # Support "outfile[:infile[:infile...]]"
34240       case "$ac_file" in
34241         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
34242       esac
34243       # PO directories have a Makefile.in generated from Makefile.in.in.
34244       case "$ac_file" in */Makefile.in)
34245         # Adjust a relative srcdir.
34246         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
34247         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
34248         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
34249         # In autoconf-2.13 it is called $ac_given_srcdir.
34250         # In autoconf-2.50 it is called $srcdir.
34251         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
34252         case "$ac_given_srcdir" in
34253           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
34254           /*) top_srcdir="$ac_given_srcdir" ;;
34255           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
34256         esac
34257         # Treat a directory as a PO directory if and only if it has a
34258         # POTFILES.in file. This allows packages to have multiple PO
34259         # directories under different names or in different locations.
34260         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
34261           rm -f "$ac_dir/POTFILES"
34262           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
34263           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
34264           POMAKEFILEDEPS="POTFILES.in"
34265           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
34266           # on $ac_dir but don't depend on user-specified configuration
34267           # parameters.
34268           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
34269             # The LINGUAS file contains the set of available languages.
34270             if test -n "$OBSOLETE_ALL_LINGUAS"; then
34271               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
34272             fi
34273             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
34274             # Hide the ALL_LINGUAS assigment from automake < 1.5.
34275             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
34276             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
34277           else
34278             # The set of available languages was given in configure.in.
34279             # Hide the ALL_LINGUAS assigment from automake < 1.5.
34280             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
34281           fi
34282           # Compute POFILES
34283           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
34284           # Compute UPDATEPOFILES
34285           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
34286           # Compute DUMMYPOFILES
34287           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
34288           # Compute GMOFILES
34289           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
34290           case "$ac_given_srcdir" in
34291             .) srcdirpre= ;;
34292             *) srcdirpre='$(srcdir)/' ;;
34293           esac
34294           POFILES=
34295           UPDATEPOFILES=
34296           DUMMYPOFILES=
34297           GMOFILES=
34298           for lang in $ALL_LINGUAS; do
34299             POFILES="$POFILES $srcdirpre$lang.po"
34300             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
34301             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
34302             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
34303           done
34304           # CATALOGS depends on both $ac_dir and the user's LINGUAS
34305           # environment variable.
34306           INST_LINGUAS=
34307           if test -n "$ALL_LINGUAS"; then
34308             for presentlang in $ALL_LINGUAS; do
34309               useit=no
34310               if test "%UNSET%" != "$LINGUAS"; then
34311                 desiredlanguages="$LINGUAS"
34312               else
34313                 desiredlanguages="$ALL_LINGUAS"
34314               fi
34315               for desiredlang in $desiredlanguages; do
34316                 # Use the presentlang catalog if desiredlang is
34317                 #   a. equal to presentlang, or
34318                 #   b. a variant of presentlang (because in this case,
34319                 #      presentlang can be used as a fallback for messages
34320                 #      which are not translated in the desiredlang catalog).
34321                 case "$desiredlang" in
34322                   "$presentlang"*) useit=yes;;
34323                 esac
34324               done
34325               if test $useit = yes; then
34326                 INST_LINGUAS="$INST_LINGUAS $presentlang"
34327               fi
34328             done
34329           fi
34330           CATALOGS=
34331           if test -n "$INST_LINGUAS"; then
34332             for lang in $INST_LINGUAS; do
34333               CATALOGS="$CATALOGS $lang.gmo"
34334             done
34335           fi
34336           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
34337           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
34338           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
34339             if test -f "$f"; then
34340               case "$f" in
34341                 *.orig | *.bak | *~) ;;
34342                 *) cat "$f" >> "$ac_dir/Makefile" ;;
34343               esac
34344             fi
34345           done
34346         fi
34347         ;;
34348       esac
34349     done ;;
34350
34351   esac
34352 done # for ac_tag
34353
34354
34355 { (exit 0); exit 0; }
34356 _ACEOF
34357 chmod +x $CONFIG_STATUS
34358 ac_clean_files=$ac_clean_files_save
34359
34360 test $ac_write_fail = 0 ||
34361   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
34362 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
34363    { (exit 1); exit 1; }; }
34364
34365
34366 # configure is writing to config.log, and then calls config.status.
34367 # config.status does its own redirection, appending to config.log.
34368 # Unfortunately, on DOS this fails, as config.log is still kept open
34369 # by configure, so config.status won't be able to write to it; its
34370 # output is simply discarded.  So we exec the FD to /dev/null,
34371 # effectively closing config.log, so it can be properly (re)opened and
34372 # appended to by config.status.  When coming back to configure, we
34373 # need to make the FD available again.
34374 if test "$no_create" != yes; then
34375   ac_cs_success=:
34376   ac_config_status_args=
34377   test "$silent" = yes &&
34378     ac_config_status_args="$ac_config_status_args --quiet"
34379   exec 5>/dev/null
34380   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34381   exec 5>>config.log
34382   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34383   # would make configure fail if this is the last instruction.
34384   $ac_cs_success || { (exit 1); exit 1; }
34385 fi
34386 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34387   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34388 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34389 fi
34390